@wssto2/vue-core 0.14.0 → 0.15.1
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/CHANGELOG.md +28 -0
- package/README.md +2 -2
- package/bin/architecture/engine.mjs +11 -1
- package/bin/architecture/rules.mjs +95 -0
- package/bin/commands/check-architecture.mjs +8 -1
- package/bin/config.mjs +2 -0
- package/dist/{AccessGate.vue_vue_type_script_setup_true_lang-DEzXovsY.js → AccessGate.vue_vue_type_script_setup_true_lang-BH3f0hda.js} +1 -1
- package/dist/{Activity-C0HUEDUz.js → Activity-RAk3h7Aa.js} +5 -5
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-Bsv5j5Z8.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-uO4EAmBb.js} +2 -2
- package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-CrFhR9rJ.js → AlertDialog.vue_vue_type_script_setup_true_lang-WuGvAOrj.js} +1 -1
- package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-DGzQ-Snp.js → AsyncSection.vue_vue_type_script_setup_true_lang-CX8mpXRE.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-C74hcb0N.js → Button.vue_vue_type_script_setup_true_lang-JrqhO99l.js} +1 -1
- package/dist/{Changes-CSaHgVuz.js → Changes-Dsar4rXS.js} +3 -3
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-dIrdS_Gn.js → CollectionPage.vue_vue_type_script_setup_true_lang-qxeSTAKV.js} +10 -10
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-J3PhyJAS.js → DataTable.vue_vue_type_script_setup_true_lang-DbRS37n3.js} +1 -1
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-CKKG4JEg.js → DateField.vue_vue_type_script_setup_true_lang-DzCvYHAf.js} +2 -2
- package/dist/{DeadLetters-CHX4Ypgy.js → DeadLetters-vt9vhJD7.js} +5 -5
- package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-B3WbLyNb.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-92szOrYd.js} +1 -1
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-dsO1m9Mm.js +428 -0
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-DvbPEiNQ.js → FormView.vue_vue_type_script_setup_true_lang-Bq_Qa4py.js} +1 -1
- package/dist/{General-v_24-zZw.js → General-Bu_ZIVbk.js} +7 -7
- package/dist/{IncidentRecord-BwSBNE37.js → IncidentRecord-CQdv_bN5.js} +12 -12
- package/dist/{IncidentsList-BqzRU5cZ.js → IncidentsList-DwQ0wuM8.js} +4 -4
- package/dist/{LeaveGuardRoot.vue_vue_type_script_setup_true_lang-CIwW7y4j.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-CrGrjrlO.js} +1 -1
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-wKc9gdCn.js → Menu.vue_vue_type_script_setup_true_lang-Cqu4Ebsb.js} +1 -1
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-DDS0iEnn.js → Modal.vue_vue_type_script_setup_true_lang-CZ7WrDwu.js} +2 -2
- package/dist/{NewRolePage-Dt0O0VSI.js → NewRolePage-C-wbA-uW.js} +4 -4
- package/dist/{PersonAccess.vue_vue_type_script_setup_true_lang-CWCt9_dM.js → PersonAccess.vue_vue_type_script_setup_true_lang-BPDh9s2m.js} +8 -8
- package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-Bqxj_uJ5.js → PhotoViewer.vue_vue_type_script_setup_true_lang-DmMg1T_V.js} +1 -1
- package/dist/{Popover.vue_vue_type_script_setup_true_lang-C20Hf3Hl.js → Popover.vue_vue_type_script_setup_true_lang-BK8HL_V0.js} +1 -1
- package/dist/{ProfilePage-DApTxq8C.js → ProfilePage-7Xk2hsNL.js} +13 -13
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-SDgLjwEI.js → RecordHeader.vue_vue_type_script_setup_true_lang-CZtvUH5L.js} +1 -1
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-DRC3h71-.js → ResourcePage.vue_vue_type_script_setup_true_lang-uLrX13ab.js} +4 -4
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-d_aaeXTT.js → RoleEditor.vue_vue_type_script_setup_true_lang-V2D7fhR9.js} +6 -6
- package/dist/{RolePage-noy-wmNc.js → RolePage-Crp71rRb.js} +11 -11
- package/dist/{RolesPage-NRRainCw.js → RolesPage-DKXXnnDV.js} +5 -5
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-DR0_NsqC.js → SectionList.vue_vue_type_script_setup_true_lang-CodyVezo.js} +1 -1
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-D_08MS1-.js → SectionNavigator.vue_vue_type_script_setup_true_lang-5ogQCj8M.js} +3 -3
- package/dist/{SelectField.vue_vue_type_script_setup_true_lang-BZwdANL3.js → SelectField.vue_vue_type_script_setup_true_lang-CLkoPbGm.js} +3 -3
- package/dist/ServiceAccountDialog.vue_vue_type_script_setup_true_lang-CGvJW3bi.js +127 -0
- package/dist/{ServiceAccountRecord-D_HduQoK.js → ServiceAccountRecord-Caj7mo3A.js} +13 -13
- package/dist/{ServiceAccountsList-CdSsqTGt.js → ServiceAccountsList-D-YqPi_h.js} +6 -6
- package/dist/{Sessions-CTjzMfNg.js → Sessions-Bv5GU5Oi.js} +6 -6
- package/dist/{SettingsPage-CpqASf_D.js → SettingsPage-lRWvsMYK.js} +12 -12
- package/dist/{Sheet.vue_vue_type_script_setup_true_lang-B91aRD_y.js → Sheet.vue_vue_type_script_setup_true_lang-BG8HUNfs.js} +1 -1
- package/dist/{SignIn-D6tWsKf0.js → SignIn-m6PANavm.js} +5 -5
- package/dist/{SignInPage-BCNGI871.js → SignInPage-C9--4P11.js} +4 -4
- package/dist/{SignIns-BxGGA99u.js → SignIns-BhLnkY08.js} +3 -3
- package/dist/{TimeField.vue_vue_type_script_setup_true_lang-BDlTAMsh.js → TimeField.vue_vue_type_script_setup_true_lang-C1mLvOkc.js} +2 -2
- package/dist/{Tooltip.vue_vue_type_script_setup_true_lang-Dtg5Y6pf.js → Tooltip.vue_vue_type_script_setup_true_lang-C1C1qeBj.js} +1 -1
- package/dist/{UserRecord-B0kG0-Tm.js → UserRecord-L3ahHNjb.js} +10 -10
- package/dist/{UsersList-KMgImERy.js → UsersList-C6u3YCCp.js} +3 -3
- package/dist/access/RestrictedPanel.vue.d.ts +20 -0
- package/dist/access/index.d.ts +1 -0
- package/dist/access/index.js +91 -31
- package/dist/app/application.d.ts +2 -2
- package/dist/app/current.d.ts +6 -0
- package/dist/app/index.d.ts +1 -1
- package/dist/app/index.js +17 -16
- package/dist/{application-CrXtiGdw.js → application-C900Wz0A.js} +6 -6
- package/dist/button/index.js +2 -2
- package/dist/client/client.d.ts +6 -0
- package/dist/client/index.js +1 -1
- package/dist/client-Do8v1I5l.js +193 -0
- package/dist/collection/index.js +8 -8
- package/dist/config/index.d.ts +21 -1
- package/dist/content/StatSummary.vue.d.ts +40 -0
- package/dist/content/index.d.ts +1 -0
- package/dist/content/index.js +245 -176
- package/dist/{contributions-obnyn03x.js → contributions-9CPT-Z5v.js} +1 -1
- package/dist/{current-B0lHKTWr.js → current-CslcEPXp.js} +8 -4
- package/dist/dialogStack-DbO4IiAq.js +46 -0
- package/dist/eslint/index.js +2 -2
- package/dist/form/index.js +22 -22
- package/dist/form/useForm.d.ts +1 -1
- package/dist/{guards-DGcSfTEh.js → guards-6fJxfUtk.js} +1 -1
- package/dist/{http-DOEfFCDA.js → http-D6qOS6xs.js} +1 -1
- package/dist/i18n/index.d.ts +5 -1
- package/dist/i18n/index.js +14 -13
- package/dist/i18n/serverMessages.d.ts +15 -1
- package/dist/identity/index.js +2 -2
- package/dist/incidents/index.js +1 -1
- package/dist/{index-D-2NNye6.js → index-D5DuvKP1.js} +24 -24
- package/dist/{index-Crz-j_Hu.js → index-_hDHxrt5.js} +105 -105
- package/dist/{index-DNeIZpXo.js → index-vES_D5ls.js} +8 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modal/index.js +5 -5
- package/dist/{navigation-CctcxT51.js → navigation-DMJ6akat.js} +1 -1
- package/dist/{neighbors-Csfan8Ho.js → neighbors-DrEahe7B.js} +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/onboarding/index.js +1 -1
- package/dist/overlay/dialogStack.d.ts +3 -0
- package/dist/overlay/index.js +7 -7
- package/dist/page/index.js +4 -4
- package/dist/phone/index.d.ts +1 -1
- package/dist/phone/index.js +153 -141
- package/dist/phone/phone.d.ts +6 -0
- package/dist/platform/index.js +3 -3
- package/dist/{platform-DtISOEt7.js → platform-ORzRR3Tw.js} +1 -1
- package/dist/pwa/index.js +2 -2
- package/dist/resource/index.js +2 -2
- package/dist/router/index.js +3 -3
- package/dist/{rowLayout-Ohh5ng1u.js → rowLayout-QKfNHsML.js} +2 -2
- package/dist/{sections-fkW_IJLc.js → sections-DI_JhgQG.js} +1 -1
- package/dist/serverMessages-Ce8-MK4e.js +30 -0
- package/dist/shell/index.js +11 -11
- package/dist/{shortcut-DUR6yPWA.js → shortcut-oixX55SZ.js} +1 -1
- package/dist/state/index.js +2 -2
- package/dist/{state-CXMexi0l.js → state-QDaxntgR.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing/index.js +2 -2
- package/dist/{useCommand-Ch_nx1AQ.js → useCommand-DAMgQ5NE.js} +5 -5
- package/dist/{useDialog-DfNmqM-0.js → useDialog-B4_MpX2v.js} +1 -1
- package/dist/{useGroupSheet-CPjHydQV.js → useGroupSheet-Qqo3ywsS.js} +3 -3
- package/dist/{usePreferences-B8LIZp_f.js → usePreferences-BfMXVbSO.js} +1 -1
- package/dist/{useRecordDialog-DdkauXnU.js → useRecordDialog-QPKFH1Ww.js} +1 -1
- package/dist/{useResourceForm-Dl6YFYyz.js → useResourceForm-Oa6bk3NI.js} +1 -1
- package/dist/{useTypedEntry-tttjrClq.js → useTypedEntry-CITij2C_.js} +1 -1
- package/package.json +1 -1
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-D6jYfNjW.js +0 -427
- package/dist/ServiceAccountDialog.vue_vue_type_script_setup_true_lang-DDcaju7L.js +0 -127
- package/dist/client-Dg303Pmc.js +0 -193
- package/dist/dialogStack-B5G6xHq0.js +0 -36
- package/dist/serverMessages-DnTqVS3h.js +0 -25
package/dist/client-Dg303Pmc.js
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { A as S, k as C, a as q } from "./error-CD7x0Jrz.js";
|
|
2
|
-
function B(t) {
|
|
3
|
-
if (!t) return "";
|
|
4
|
-
const e = new URLSearchParams();
|
|
5
|
-
for (const [s, r] of Object.entries(t))
|
|
6
|
-
if (!(r == null || r === ""))
|
|
7
|
-
if (Array.isArray(r)) for (const o of r) e.append(s, String(o));
|
|
8
|
-
else e.append(s, String(r));
|
|
9
|
-
return e.toString();
|
|
10
|
-
}
|
|
11
|
-
const E = (t) => typeof Blob < "u" && t instanceof Blob;
|
|
12
|
-
function _(t) {
|
|
13
|
-
const e = new FormData();
|
|
14
|
-
for (const [s, r] of Object.entries(t))
|
|
15
|
-
if (r != null)
|
|
16
|
-
if (Array.isArray(r))
|
|
17
|
-
for (const o of r) e.append(`${s}[]`, j(o));
|
|
18
|
-
else
|
|
19
|
-
e.append(s, j(r));
|
|
20
|
-
return e;
|
|
21
|
-
}
|
|
22
|
-
function j(t) {
|
|
23
|
-
return E(t) ? t : t instanceof Date ? t.toISOString() : typeof t == "object" && t !== null ? JSON.stringify(t) : String(t);
|
|
24
|
-
}
|
|
25
|
-
function F(t) {
|
|
26
|
-
if (t === void 0) return { body: void 0, contentType: null };
|
|
27
|
-
if (typeof t == "string" || t instanceof FormData || t instanceof URLSearchParams || t instanceof ArrayBuffer || ArrayBuffer.isView(t) || E(t))
|
|
28
|
-
return { body: t, contentType: null };
|
|
29
|
-
if (typeof t == "object" && t !== null && !Array.isArray(t)) {
|
|
30
|
-
const e = t;
|
|
31
|
-
if (Object.values(e).some((s) => E(s) || Array.isArray(s) && s.some(E)))
|
|
32
|
-
return { body: _(e), contentType: null };
|
|
33
|
-
}
|
|
34
|
-
return { body: JSON.stringify(t), contentType: "application/json" };
|
|
35
|
-
}
|
|
36
|
-
function N() {
|
|
37
|
-
const t = new Uint8Array(16);
|
|
38
|
-
return globalThis.crypto.getRandomValues(t), Array.from(t, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
39
|
-
}
|
|
40
|
-
const T = "X-Request-ID", R = (t) => typeof t == "object" && t !== null && !Array.isArray(t), A = (t) => typeof t == "string" && t !== "" ? t : null;
|
|
41
|
-
function P(t) {
|
|
42
|
-
const e = t?.errors ?? t?.fields;
|
|
43
|
-
if (!R(e)) return {};
|
|
44
|
-
const s = {};
|
|
45
|
-
for (const [r, o] of Object.entries(e))
|
|
46
|
-
Array.isArray(o) ? s[r] = o.map(String) : o != null && (s[r] = [String(o)]);
|
|
47
|
-
return s;
|
|
48
|
-
}
|
|
49
|
-
async function H(t) {
|
|
50
|
-
const e = await t.text();
|
|
51
|
-
if (e.trim() === "") return { payload: null, readable: !0 };
|
|
52
|
-
try {
|
|
53
|
-
return { payload: JSON.parse(e), readable: !0 };
|
|
54
|
-
} catch {
|
|
55
|
-
return { payload: null, readable: !1 };
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
async function k(t, e) {
|
|
59
|
-
const s = t.headers.get(T) ?? e, { payload: r, readable: o } = await H(t), c = R(r) ? r : null;
|
|
60
|
-
if (!t.ok) {
|
|
61
|
-
const b = P(c), p = c?.params;
|
|
62
|
-
throw new S({
|
|
63
|
-
kind: C(t.status, Object.keys(b).length > 0),
|
|
64
|
-
message: A(c?.error) ?? A(c?.message) ?? `Request failed with status ${t.status}`,
|
|
65
|
-
status: t.status,
|
|
66
|
-
fields: b,
|
|
67
|
-
code: A(c?.code),
|
|
68
|
-
params: R(p) ? p : null,
|
|
69
|
-
requestId: s,
|
|
70
|
-
payload: r
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
if (!o)
|
|
74
|
-
throw new S({
|
|
75
|
-
kind: "malformed",
|
|
76
|
-
message: `The server answered ${t.status} with a body that is not JSON`,
|
|
77
|
-
status: t.status,
|
|
78
|
-
requestId: s
|
|
79
|
-
});
|
|
80
|
-
return c !== null && typeof c.success == "boolean" ? {
|
|
81
|
-
data: c.data ?? null,
|
|
82
|
-
meta: c.meta ?? null,
|
|
83
|
-
message: A(c.message),
|
|
84
|
-
status: t.status,
|
|
85
|
-
requestId: s
|
|
86
|
-
} : { data: r, meta: null, message: null, status: t.status, requestId: s };
|
|
87
|
-
}
|
|
88
|
-
const J = /;\s*([^\s=;]+)\s*=\s*("(?:[^"\\]|\\.)*"|[^;]*)/g;
|
|
89
|
-
function L(t) {
|
|
90
|
-
const e = /^([^']*)'[^']*'(.*)$/s.exec(t);
|
|
91
|
-
if (!e) return null;
|
|
92
|
-
const s = new TextEncoder(), r = [];
|
|
93
|
-
for (const [, o, c] of e[2].matchAll(/%([0-9a-f]{2})|(.)/gis)) r.push(...o ? [parseInt(o, 16)] : s.encode(c));
|
|
94
|
-
try {
|
|
95
|
-
return new TextDecoder(e[1] || "utf-8", { fatal: !0 }).decode(Uint8Array.from(r));
|
|
96
|
-
} catch {
|
|
97
|
-
return null;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
const G = (t) => t.slice(Math.max(t.lastIndexOf("/"), t.lastIndexOf("\\")) + 1).trim();
|
|
101
|
-
function Q(t) {
|
|
102
|
-
if (!t) return null;
|
|
103
|
-
let e = null, s = null;
|
|
104
|
-
for (const [, r, o] of t.replace(/^[^;]*/, "").matchAll(J)) {
|
|
105
|
-
const c = r.toLowerCase();
|
|
106
|
-
if (c !== "filename" && c !== "filename*") continue;
|
|
107
|
-
const p = o.startsWith('"') ? o.slice(1, -1).replace(/\\(.)/g, "$1") : o.trim();
|
|
108
|
-
c === "filename*" ? s ?? (s = L(p)) : e ?? (e = p);
|
|
109
|
-
}
|
|
110
|
-
return G(s ?? e ?? "") || null;
|
|
111
|
-
}
|
|
112
|
-
const V = (t, e) => globalThis.fetch(t, e), M = 20, Z = (t) => /^[a-z][a-z0-9+.-]*:\/\//i.test(t);
|
|
113
|
-
function W(t, e, s) {
|
|
114
|
-
const r = Z(e) || t === "" ? e : `${t.replace(/\/+$/, "")}/${e.replace(/^\/+/, "")}`;
|
|
115
|
-
return s === "" ? r : `${r}${r.includes("?") ? "&" : "?"}${s}`;
|
|
116
|
-
}
|
|
117
|
-
const $ = (t, e) => new S({ kind: "aborted", message: "The request was cancelled", requestId: t, cause: e });
|
|
118
|
-
function K(t = {}) {
|
|
119
|
-
const { baseUrl: e = "", transport: s = V, credentials: r = "include" } = t, o = [], c = (n) => {
|
|
120
|
-
n !== null && (o.push(n), o.length > M && o.shift());
|
|
121
|
-
};
|
|
122
|
-
async function b(n, a, i, u, h, m) {
|
|
123
|
-
const { signal: f } = u, l = t.requestId === !1 ? null : (t.requestId ?? N)();
|
|
124
|
-
if (f?.aborted) throw $(l, f.reason);
|
|
125
|
-
const y = F(i), w = new Headers({ Accept: h }), D = t.headers ? await t.headers() : void 0;
|
|
126
|
-
for (const d of [D, u.headers])
|
|
127
|
-
d && new Headers(d).forEach((v, z) => w.set(z, v));
|
|
128
|
-
l !== null && !w.has(T) && w.set(T, l), y.contentType !== null && !w.has("Content-Type") && w.set("Content-Type", y.contentType);
|
|
129
|
-
const U = { method: n, headers: w, credentials: r, body: y.body, signal: f }, O = W(e, a, B(u.query));
|
|
130
|
-
try {
|
|
131
|
-
const d = await s(O, U);
|
|
132
|
-
return await m(d, l);
|
|
133
|
-
} catch (d) {
|
|
134
|
-
throw q(d) ? (c(d.requestId), d) : f?.aborted || d instanceof Error && d.name === "AbortError" ? $(l, d) : (c(l), new S({
|
|
135
|
-
kind: "network",
|
|
136
|
-
message: d instanceof Error ? d.message : "The server could not be reached",
|
|
137
|
-
requestId: l,
|
|
138
|
-
cause: d
|
|
139
|
-
}));
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
async function p(n, a, i, u, h, m) {
|
|
143
|
-
try {
|
|
144
|
-
return await b(n, a, i, u, h, m);
|
|
145
|
-
} catch (f) {
|
|
146
|
-
if (!q(f) || f.kind !== "unauthorized" || u.handleUnauthorized === !1 || !t.onUnauthorized || await t.onUnauthorized({ error: f, method: n, path: a }) !== "retry") throw f;
|
|
147
|
-
return b(n, a, i, u, h, m);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
const g = (n, a, i, u = {}) => p(n, a, i, u, "application/json", async (h, m) => {
|
|
151
|
-
const f = await k(h, m);
|
|
152
|
-
return c(f.requestId), f;
|
|
153
|
-
});
|
|
154
|
-
function I(n, a = {}, i) {
|
|
155
|
-
const { accept: u = "*/*", method: h = "GET", body: m, ...f } = a;
|
|
156
|
-
return p(h, n, m, f, u, async (l, y) => {
|
|
157
|
-
l.ok || await k(l, y);
|
|
158
|
-
const w = l.headers.get(T) ?? y;
|
|
159
|
-
return c(w), i(l, w);
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
async function x(n, a, i = {}) {
|
|
163
|
-
const u = typeof a == "object" && a !== null && !Array.isArray(a) ? { ...a } : {}, h = n.path.replace(/:([A-Za-z_][A-Za-z0-9_]*)/g, (f, l) => {
|
|
164
|
-
const y = u[l];
|
|
165
|
-
if (y == null || y === "")
|
|
166
|
-
throw new Error(`${n.method} ${n.path}: the input has no value for the path parameter "${l}"`);
|
|
167
|
-
return delete u[l], encodeURIComponent(String(y));
|
|
168
|
-
}), m = Object.keys(u).length > 0;
|
|
169
|
-
return n.method === "GET" || n.method === "DELETE" ? g(n.method, h, void 0, { ...i, query: { ...u, ...i.query } }) : g(n.method, h, m ? u : void 0, i);
|
|
170
|
-
}
|
|
171
|
-
return {
|
|
172
|
-
// the rest-tuple overload is the public contract; the implementation takes its arguments positionally
|
|
173
|
-
request: x,
|
|
174
|
-
get: (n, a) => g("GET", n, void 0, a),
|
|
175
|
-
post: (n, a, i) => g("POST", n, a, i),
|
|
176
|
-
put: (n, a, i) => g("PUT", n, a, i),
|
|
177
|
-
patch: (n, a, i) => g("PATCH", n, a, i),
|
|
178
|
-
delete: (n, a) => g("DELETE", n, void 0, a),
|
|
179
|
-
download: (n, a) => I(n, a, async (i, u) => ({
|
|
180
|
-
blob: await i.blob(),
|
|
181
|
-
filename: Q(i.headers.get("Content-Disposition")),
|
|
182
|
-
requestId: u
|
|
183
|
-
})),
|
|
184
|
-
stream: (n, a) => I(n, a, async (i) => i),
|
|
185
|
-
recentRequestIds: () => [...o]
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
export {
|
|
189
|
-
M as R,
|
|
190
|
-
T as a,
|
|
191
|
-
K as c,
|
|
192
|
-
V as f
|
|
193
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { computed as a, onUnmounted as d, shallowRef as f } from "vue";
|
|
2
|
-
import { p as v } from "./perDocument-DUuFrdGU.js";
|
|
3
|
-
const y = "data-dialog-inert-skip", i = "overflow-hidden", m = Symbol("vue-core:dialog-stack"), r = () => v(m, () => ({ entries: f([]), inertedByUs: /* @__PURE__ */ new Set(), lockedByUs: !1 }));
|
|
4
|
-
function c(e) {
|
|
5
|
-
const n = e.entries.value[e.entries.value.length - 1]?.root() ?? null;
|
|
6
|
-
for (const t of Array.from(document.body.children)) {
|
|
7
|
-
if (!(t instanceof HTMLElement)) continue;
|
|
8
|
-
const s = n !== null && !t.hasAttribute(y) && !t.contains(n);
|
|
9
|
-
s && !t.inert ? (t.inert = !0, e.inertedByUs.add(t)) : !s && e.inertedByUs.has(t) && (t.inert = !1, e.inertedByUs.delete(t));
|
|
10
|
-
}
|
|
11
|
-
const o = e.entries.value.length > 0;
|
|
12
|
-
o && !document.body.classList.contains(i) ? (document.body.classList.add(i), e.lockedByUs = !0) : !o && e.lockedByUs && (document.body.classList.remove(i), e.lockedByUs = !1);
|
|
13
|
-
}
|
|
14
|
-
function g(e) {
|
|
15
|
-
const n = r(), o = { root: () => e.value }, t = a(() => n.entries.value[n.entries.value.length - 1] === o), s = () => {
|
|
16
|
-
n.entries.value.includes(o) || (n.entries.value = [...n.entries.value, o]), c(n);
|
|
17
|
-
}, l = () => {
|
|
18
|
-
n.entries.value.includes(o) && (n.entries.value = n.entries.value.filter((u) => u !== o), c(n));
|
|
19
|
-
};
|
|
20
|
-
return d(l), { isTop: t, activate: s, deactivate: l };
|
|
21
|
-
}
|
|
22
|
-
function B() {
|
|
23
|
-
const e = r().entries.value;
|
|
24
|
-
return e.length === 0 ? void 0 : e[e.length - 1].root();
|
|
25
|
-
}
|
|
26
|
-
function S() {
|
|
27
|
-
const e = r();
|
|
28
|
-
return a(() => e.entries.value.length);
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
y as I,
|
|
32
|
-
i as S,
|
|
33
|
-
g as a,
|
|
34
|
-
B as t,
|
|
35
|
-
S as u
|
|
36
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { useI18n as f } from "vue-i18n";
|
|
2
|
-
import { a as c } from "./error-CD7x0Jrz.js";
|
|
3
|
-
import { u as m } from "./format-Cp1h0vsC.js";
|
|
4
|
-
import { u as l } from "./describeError-B-NMa--w.js";
|
|
5
|
-
function E() {
|
|
6
|
-
const { t: i, te: u } = f(), a = m(), d = l(), s = (e) => [`errors.${e}`, `core.errors.${e}`].find((t) => u(t));
|
|
7
|
-
function n(e, t) {
|
|
8
|
-
if (c(e) && e.code) {
|
|
9
|
-
const r = s(e.code), o = typeof e.params?.locked_until == "string" ? new Date(e.params.locked_until) : null;
|
|
10
|
-
if (r && o && !Number.isNaN(o.getTime())) return i(r, { ...e.params, locked_until: a.time(o) });
|
|
11
|
-
}
|
|
12
|
-
return d(e, t === void 0 ? void 0 : { fallback: t });
|
|
13
|
-
}
|
|
14
|
-
return {
|
|
15
|
-
sentence: n,
|
|
16
|
-
describeFieldError: (e) => {
|
|
17
|
-
const t = s(e);
|
|
18
|
-
return t === void 0 ? e : i(t);
|
|
19
|
-
},
|
|
20
|
-
failureMessage: (e, t) => c(t) && t.code && (e === "failed" || e === "forbidden" || e === "conflict") ? n(t) : void 0
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
E as u
|
|
25
|
-
};
|