@wssto2/vue-core 0.14.0 → 0.15.0
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 +21 -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-MOAIv6s4.js} +3 -3
- package/dist/{Changes-CSaHgVuz.js → Changes-Bu7D0dhY.js} +2 -2
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-dIrdS_Gn.js → CollectionPage.vue_vue_type_script_setup_true_lang-D5HsYIck.js} +2 -2
- package/dist/{DeadLetters-CHX4Ypgy.js → DeadLetters-DsujMnLG.js} +4 -4
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-CTVuhEbW.js +428 -0
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-DvbPEiNQ.js → FormView.vue_vue_type_script_setup_true_lang-Cfvh7rF6.js} +1 -1
- package/dist/{General-v_24-zZw.js → General-Dswj1oXt.js} +6 -6
- package/dist/{IncidentRecord-BwSBNE37.js → IncidentRecord-DcmqpziF.js} +7 -7
- package/dist/{IncidentsList-BqzRU5cZ.js → IncidentsList-BRNqHZdU.js} +3 -3
- package/dist/{NewRolePage-Dt0O0VSI.js → NewRolePage-dFLznJGH.js} +2 -2
- package/dist/{PersonAccess.vue_vue_type_script_setup_true_lang-CWCt9_dM.js → PersonAccess.vue_vue_type_script_setup_true_lang-D3yp43o5.js} +4 -4
- package/dist/{ProfilePage-DApTxq8C.js → ProfilePage-BnHR3xGB.js} +8 -8
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-d_aaeXTT.js → RoleEditor.vue_vue_type_script_setup_true_lang-DNF9wzE9.js} +4 -4
- package/dist/{RolePage-noy-wmNc.js → RolePage-BtM2rFLm.js} +5 -5
- package/dist/{RolesPage-NRRainCw.js → RolesPage-MO1gAfdT.js} +3 -3
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-D_08MS1-.js → SectionNavigator.vue_vue_type_script_setup_true_lang-TMdsmYAg.js} +1 -1
- package/dist/ServiceAccountDialog.vue_vue_type_script_setup_true_lang-Bo3phlqB.js +127 -0
- package/dist/{ServiceAccountRecord-D_HduQoK.js → ServiceAccountRecord-C1M-dcju.js} +6 -6
- package/dist/{ServiceAccountsList-CdSsqTGt.js → ServiceAccountsList-zfyS2WJB.js} +4 -4
- package/dist/{Sessions-CTjzMfNg.js → Sessions-BYBUSqHI.js} +3 -3
- package/dist/{SettingsPage-CpqASf_D.js → SettingsPage-C9Kp2ddX.js} +5 -5
- package/dist/{SignIn-D6tWsKf0.js → SignIn-HBYLSZ1M.js} +4 -4
- package/dist/{SignInPage-BCNGI871.js → SignInPage-CEoz3fWE.js} +3 -3
- package/dist/{SignIns-BxGGA99u.js → SignIns-BAz7V4vy.js} +2 -2
- package/dist/{UserRecord-B0kG0-Tm.js → UserRecord-DkyhGma-.js} +8 -8
- package/dist/{UsersList-KMgImERy.js → UsersList-CsW-jU0m.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-2gHiwAVy.js} +5 -5
- 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 +4 -4
- 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/eslint/index.js +2 -2
- package/dist/form/index.js +8 -8
- 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--AF_DNhE.js} +20 -20
- package/dist/{index-DNeIZpXo.js → index-DYva-K_4.js} +4 -4
- package/dist/{index-Crz-j_Hu.js → index-Dlu-PA4W.js} +105 -105
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- 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/page/index.js +1 -1
- 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/resource/index.js +1 -1
- package/dist/router/index.js +3 -3
- 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 +4 -4
- 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-BvcU3AlW.js} +1 -1
- package/dist/{useGroupSheet-CPjHydQV.js → useGroupSheet-BGIntPKD.js} +1 -1
- package/dist/{usePreferences-B8LIZp_f.js → usePreferences-BfMXVbSO.js} +1 -1
- package/dist/{useRecordDialog-DdkauXnU.js → useRecordDialog-q_BNXdb7.js} +1 -1
- package/dist/{useResourceForm-Dl6YFYyz.js → useResourceForm-C1S628UI.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/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,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
|
-
};
|