@wssto2/vue-core 0.4.14 → 0.4.15
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/{ActionRow.vue_vue_type_script_setup_true_lang-LlfIPWsJ.js → ActionRow.vue_vue_type_script_setup_true_lang-CkvS5W6K.js} +1 -1
- package/dist/{Activity-BdSvn0GP.js → Activity-4q26REYj.js} +6 -6
- package/dist/{Changes-BQO--N9F.js → Changes-CKIuGF8O.js} +5 -5
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-DkpFEHUw.js → CollectionPage.vue_vue_type_script_setup_true_lang-B17cUOzj.js} +2 -2
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-GVasv8ao.js → DateField.vue_vue_type_script_setup_true_lang-DehwWm78.js} +17 -16
- package/dist/{DeadLetters-OmeiADEi.js → DeadLetters-DPGcQOz1.js} +4 -4
- package/dist/FormErrors.vue_vue_type_script_setup_true_lang-DWcVKZM3.js +285 -0
- package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js → FormGroup.vue_vue_type_script_setup_true_lang-noYI9QMk.js} +1 -1
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-cr0xNDXP.js → FormView.vue_vue_type_script_setup_true_lang-BcIbTMHN.js} +2 -2
- package/dist/{General-CBwFLiKQ.js → General-CUA9b3ML.js} +10 -10
- package/dist/{NewRolePage-CblUW2gA.js → NewRolePage-DBfCvDWA.js} +3 -3
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-Dm6FfJ2T.js +126 -0
- package/dist/{ProfilePage-BOoDDbmB.js → ProfilePage-On-eAiJ-.js} +41 -41
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-BCE5yrwy.js → RoleEditor.vue_vue_type_script_setup_true_lang-fvAf3rQm.js} +44 -44
- package/dist/{RolePage-xDsFL_eC.js → RolePage-B8oul55j.js} +8 -8
- package/dist/{RolesPage-C39wsF6X.js → RolesPage-DsXVivdj.js} +5 -5
- package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-BMqWlpsL.js → SegmentedField.vue_vue_type_script_setup_true_lang-B2d55hrh.js} +7 -6
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-DedKLLQK.js +443 -0
- package/dist/{SessionList.vue_vue_type_script_setup_true_lang-D4k5QeWS.js → SessionList.vue_vue_type_script_setup_true_lang-CirlMdHb.js} +2 -2
- package/dist/{Sessions-m_i4aTfw.js → Sessions-BTyXDEuY.js} +4 -4
- package/dist/{SettingsPage-ktKvQQnE.js → SettingsPage-DHTmMgif.js} +9 -9
- package/dist/{SignIn-CkoEixY4.js → SignIn-DU4DE2wj.js} +6 -6
- package/dist/{SignInPage-DVcpFz3G.js → SignInPage-BA22kyOp.js} +3 -3
- package/dist/{SignIns-BnVAtncZ.js → SignIns-C8QAZBaL.js} +3 -3
- package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-CM8yp9JQ.js → SwitchField.vue_vue_type_script_setup_true_lang-B2Z2hy_h.js} +11 -10
- package/dist/{TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js → TextField.vue_vue_type_script_setup_true_lang-nqnGG7Zc.js} +27 -26
- package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-CqAWfABZ.js → TextareaField.vue_vue_type_script_setup_true_lang-BgIQyYtf.js} +9 -8
- package/dist/{TimeField.vue_vue_type_script_setup_true_lang-DWfAUlnz.js → TimeField.vue_vue_type_script_setup_true_lang-Dr0h-V_8.js} +25 -24
- package/dist/{UserRecord-Cg69_mbU.js → UserRecord-D1BNmYp9.js} +10 -10
- package/dist/{UsersList-BFmBDGs7.js → UsersList-ltx3G23-.js} +8 -8
- package/dist/access/index.js +1 -1
- package/dist/app/application.d.ts +7 -1
- package/dist/app/index.js +93 -93
- package/dist/collection/index.js +1 -1
- package/dist/control-CX9BG2UB.js +320 -0
- package/dist/{describeError-CvGmajU0.js → describeError-B-NMa--w.js} +12 -7
- package/dist/fieldMessages-DV6sESpn.js +25 -0
- package/dist/form/DateField.vue.d.ts +1 -0
- package/dist/form/DateTimeField.vue.d.ts +1 -0
- package/dist/form/Field.vue.d.ts +1 -0
- package/dist/form/FileField.vue.d.ts +1 -0
- package/dist/form/FormErrors.vue.d.ts +1 -1
- package/dist/form/FormRow.vue.d.ts +3 -0
- package/dist/form/I18nField.vue.d.ts +1 -0
- package/dist/form/MoneyField.vue.d.ts +1 -0
- package/dist/form/MonthYearField.vue.d.ts +1 -0
- package/dist/form/NumberField.vue.d.ts +5 -0
- package/dist/form/PhotoField.vue.d.ts +1 -0
- package/dist/form/SelectField.vue.d.ts +5 -6
- package/dist/form/SwitchField.vue.d.ts +1 -0
- package/dist/form/TextField.vue.d.ts +1 -0
- package/dist/form/TextareaField.vue.d.ts +1 -0
- package/dist/form/TimeField.vue.d.ts +1 -0
- package/dist/form/field.d.ts +3 -0
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +469 -456
- package/dist/form/useForm.d.ts +2 -2
- package/dist/form/useHiddenFieldErrors.d.ts +23 -0
- package/dist/form/useSaveChrome.d.ts +8 -3
- package/dist/i18n/describeError.d.ts +8 -0
- package/dist/i18n/index.d.ts +2 -2
- package/dist/i18n/index.js +3 -2
- package/dist/identity/fieldMessages.d.ts +1 -1
- package/dist/identity/index.js +1 -1
- package/dist/{index-B416VXmR.js → index-BCw_Ki6z.js} +2 -2
- package/dist/{index-KcCoCfr-.js → index-Chh4z9xW.js} +10 -10
- package/dist/{index-RNF5-9uf.js → index-DwdVrW6q.js} +15 -15
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/phone/PhoneField.vue.d.ts +1 -0
- package/dist/phone/index.js +66 -65
- package/dist/resource/index.js +1 -1
- package/dist/{routeResource-BwEFXzIX.js → routeResource-DlTsGTg_.js} +1 -1
- package/dist/state/index.js +1 -1
- package/dist/{status-OZUHZpWl.js → status-cWCAMAmW.js} +1 -1
- package/dist/{useCommand-BkONMn3X.js → useCommand-B-N6HJOz.js} +1 -1
- package/dist/{useLoad-DuEsLECT.js → useLoad-M7V-AVwR.js} +1 -1
- package/dist/{useResourceForm-D1hIpwW5.js → useResourceForm-CP2lCwmD.js} +1 -1
- package/dist/useSaveChrome-7huA3FzR.js +26 -0
- package/package.json +1 -1
- package/dist/FormErrors.vue_vue_type_script_setup_true_lang-BQb7wLT0.js +0 -276
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-C7N5nq0P.js +0 -113
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-BJoAkBo2.js +0 -437
- package/dist/control-7EP4tjYy.js +0 -313
- package/dist/fieldMessages-D_dpSe19.js +0 -25
- package/dist/useSaveChrome-DuWm0Czf.js +0 -25
package/dist/app/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var Z = (e, n, r) =>
|
|
4
|
-
import { effectScope as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { createRouter as
|
|
7
|
-
import { i as
|
|
8
|
-
import { c as
|
|
1
|
+
var Se = Object.defineProperty;
|
|
2
|
+
var Re = (e, n, r) => n in e ? Se(e, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[n] = r;
|
|
3
|
+
var Z = (e, n, r) => Re(e, typeof n != "symbol" ? n + "" : n, r);
|
|
4
|
+
import { effectScope as P, watch as W, defineComponent as pe, openBlock as Me, createElementBlock as Ae, createVNode as ee, unref as C, withCtx as te, createTextVNode as je, toDisplayString as Le, shallowRef as Ne, computed as Ke, h as se, createApp as Oe } from "vue";
|
|
5
|
+
import { useI18n as Ce, createI18n as _e } from "vue-i18n";
|
|
6
|
+
import { createRouter as Fe, isNavigationFailure as Ie } from "vue-router";
|
|
7
|
+
import { i as Te } from "../leaveGuard-Cc8yeLxM.js";
|
|
8
|
+
import { c as qe, i as De, f as Pe } from "../format-B8mJm946.js";
|
|
9
9
|
import { coreMessages as oe, createMessageRuntime as We } from "../i18n/index.js";
|
|
10
|
-
import { i as Be, a as
|
|
11
|
-
import { i as
|
|
12
|
-
import { i as
|
|
13
|
-
import { i as
|
|
14
|
-
import { c as
|
|
15
|
-
import { c as
|
|
16
|
-
import { i as
|
|
17
|
-
import { b as
|
|
18
|
-
import { c as
|
|
10
|
+
import { i as Be, a as He } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
11
|
+
import { i as Ve, b as Ge } from "../bottomDock-BZEiOPYZ.js";
|
|
12
|
+
import { i as Je, p as ze } from "../chrome-nUcmVu8G.js";
|
|
13
|
+
import { i as Qe, g as Ue } from "../platform-q3cjODLx.js";
|
|
14
|
+
import { c as Xe, A as Ye, r as re } from "../access-DmAceEo5.js";
|
|
15
|
+
import { c as Ze, _ as et } from "../NoAccess.vue_vue_type_script_setup_true_lang-DWxq-MTM.js";
|
|
16
|
+
import { i as tt } from "../guards-Dve61KjR.js";
|
|
17
|
+
import { b as st, c as ot, n as ae } from "../navigation-Cm3iChlR.js";
|
|
18
|
+
import { c as rt, s as ne } from "../contributions-DsfmDoRD.js";
|
|
19
19
|
import { S as Pt } from "../contributions-DsfmDoRD.js";
|
|
20
20
|
import { a as ie } from "../environment-Dva-SG8D.js";
|
|
21
21
|
import { u as Bt } from "../environment-Dva-SG8D.js";
|
|
22
|
-
import { b as ce } from "../describeError-
|
|
23
|
-
import { _ as
|
|
24
|
-
import { _ as
|
|
25
|
-
import { i as
|
|
26
|
-
import { d as
|
|
27
|
-
import { k as
|
|
28
|
-
function
|
|
29
|
-
const { platform: n } = e, r =
|
|
22
|
+
import { b as ce, c as le } from "../describeError-B-NMa--w.js";
|
|
23
|
+
import { _ as at } from "../Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
|
|
24
|
+
import { _ as nt } from "../EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp8I.js";
|
|
25
|
+
import { i as it } from "../feature-DdUAfyi4.js";
|
|
26
|
+
import { d as Vt, p as Gt } from "../feature-DdUAfyi4.js";
|
|
27
|
+
import { k as zt } from "../keepAlive-CDvMQlcJ.js";
|
|
28
|
+
function ct(e) {
|
|
29
|
+
const { platform: n } = e, r = P();
|
|
30
30
|
let i = null, w = null, v = !1;
|
|
31
31
|
function E(l, m) {
|
|
32
32
|
const h = new AbortController(), u = { controller: h, stops: [] };
|
|
@@ -60,7 +60,7 @@ function it(e) {
|
|
|
60
60
|
);
|
|
61
61
|
const l = j("session");
|
|
62
62
|
r.run(
|
|
63
|
-
() =>
|
|
63
|
+
() => W(
|
|
64
64
|
() => M(n.session.state.value),
|
|
65
65
|
(m) => {
|
|
66
66
|
R(w), w = null;
|
|
@@ -79,28 +79,28 @@ function it(e) {
|
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const lt = { class: "mx-auto flex min-h-screen max-w-content items-center justify-center p-screen-padding" }, ut = /* @__PURE__ */ pe({
|
|
83
83
|
__name: "StartupFailure",
|
|
84
84
|
props: {
|
|
85
85
|
kind: {}
|
|
86
86
|
},
|
|
87
87
|
emits: ["retry"],
|
|
88
88
|
setup(e) {
|
|
89
|
-
const { t: n } =
|
|
90
|
-
return (r, i) => (
|
|
91
|
-
ee(C(
|
|
89
|
+
const { t: n } = Ce();
|
|
90
|
+
return (r, i) => (Me(), Ae("div", lt, [
|
|
91
|
+
ee(C(nt), {
|
|
92
92
|
title: C(n)("core.startup.title"),
|
|
93
93
|
description: C(n)(e.kind === "startup" ? "core.startup.other" : `core.startup.${e.kind}`),
|
|
94
94
|
icon: "errorWarningLine"
|
|
95
95
|
}, {
|
|
96
96
|
actions: te(() => [
|
|
97
|
-
ee(C(
|
|
97
|
+
ee(C(at), {
|
|
98
98
|
prominence: "primary",
|
|
99
99
|
icon: "refreshLine",
|
|
100
100
|
onClick: i[0] || (i[0] = (w) => r.$emit("retry"))
|
|
101
101
|
}, {
|
|
102
102
|
default: te(() => [
|
|
103
|
-
|
|
103
|
+
je(Le(C(n)("core.actions.retry")), 1)
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
})
|
|
@@ -110,7 +110,7 @@ const ct = { class: "mx-auto flex min-h-screen max-w-content items-center justif
|
|
|
110
110
|
]));
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
|
-
class
|
|
113
|
+
class ue extends Error {
|
|
114
114
|
constructor(r) {
|
|
115
115
|
super(`The application composition is invalid:
|
|
116
116
|
${r.map((i) => ` - [${i.owner}] ${i.message}`).join(`
|
|
@@ -119,17 +119,17 @@ ${r.map((i) => ` - [${i.owner}] ${i.message}`).join(`
|
|
|
119
119
|
this.name = "ApplicationError", this.issues = r;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
const
|
|
123
|
-
function*
|
|
122
|
+
const fe = "application", g = (e) => `feature "${e.id}"`;
|
|
123
|
+
function* B(e, n = "") {
|
|
124
124
|
for (const r of e) {
|
|
125
125
|
const i = r.path.startsWith("/") ? r.path : `${n.replace(/\/$/, "")}/${r.path}`;
|
|
126
|
-
yield { record: r, path: i }, r.children && (yield*
|
|
126
|
+
yield { record: r, path: i }, r.children && (yield* B(r.children, i));
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function ft(e) {
|
|
130
130
|
const n = [], r = (o, s) => n.push({ owner: o, message: s }), i = [];
|
|
131
131
|
e.features.forEach((o, s) => {
|
|
132
|
-
|
|
132
|
+
it(o) ? i.push(o) : r(fe, `features[${s}] was not created with defineFeature().`);
|
|
133
133
|
});
|
|
134
134
|
const w = /* @__PURE__ */ new Map();
|
|
135
135
|
for (const o of i)
|
|
@@ -162,7 +162,7 @@ function ut(e) {
|
|
|
162
162
|
const c = s.path.length > 1 ? s.path.replace(/\/$/, "") : s.path, d = l.get(c);
|
|
163
163
|
d ? r(g(o), `declares the path "${s.path}", which feature "${d.id}" declares too.`) : l.set(c, o);
|
|
164
164
|
}
|
|
165
|
-
for (const { record: s } of
|
|
165
|
+
for (const { record: s } of B(o.routes)) {
|
|
166
166
|
if (s.meta && "feature" in s.meta && r(g(o), `the route "${String(s.name ?? s.path)}" sets meta.feature, which the runtime owns.`), typeof s.name != "string") continue;
|
|
167
167
|
const c = M.get(s.name);
|
|
168
168
|
c ? r(g(o), `declares the route name "${s.name}", which feature "${c.id}" declares too.`) : M.set(s.name, o);
|
|
@@ -185,10 +185,10 @@ function ut(e) {
|
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
for (const o of i) k(g(o), o.messages);
|
|
188
|
-
k(
|
|
188
|
+
k(fe, e.messages);
|
|
189
189
|
const $ = (o) => u.has(o);
|
|
190
190
|
for (const o of i)
|
|
191
|
-
for (const { record: s } of
|
|
191
|
+
for (const { record: s } of B(o.routes))
|
|
192
192
|
for (const c of s.meta?.messages ?? [])
|
|
193
193
|
$(c) || r(g(o), `the route "${String(s.name ?? s.path)}" needs the message namespace "${c}", which nobody declares.`);
|
|
194
194
|
const x = /* @__PURE__ */ new Map();
|
|
@@ -209,54 +209,54 @@ function ut(e) {
|
|
|
209
209
|
}
|
|
210
210
|
return { features: i, issues: n };
|
|
211
211
|
}
|
|
212
|
-
const
|
|
212
|
+
const dt = (e, n, r) => _e({
|
|
213
213
|
legacy: !1,
|
|
214
214
|
locale: e,
|
|
215
215
|
fallbackLocale: n,
|
|
216
216
|
pluralRules: r?.pluralRules && { ...r.pluralRules },
|
|
217
217
|
...r?.missingWarn === !1 && { missingWarn: !1, fallbackWarn: !1 },
|
|
218
218
|
messages: {}
|
|
219
|
-
}),
|
|
220
|
-
function
|
|
219
|
+
}), pt = (e) => typeof e == "object" && e !== null && "component" in e && "slots" in e;
|
|
220
|
+
function me(e, n) {
|
|
221
221
|
return e.map((r) => ({
|
|
222
222
|
...r,
|
|
223
223
|
meta: { ...r.meta, feature: n },
|
|
224
|
-
...r.children && { children:
|
|
224
|
+
...r.children && { children: me(r.children, n) }
|
|
225
225
|
}));
|
|
226
226
|
}
|
|
227
|
-
const
|
|
228
|
-
function
|
|
229
|
-
const { platform: n } = e, r = e.locale?.supported ?? Object.keys(oe), i = e.locale?.fallback ?? "en", w = e.shell === void 0 ? void 0 :
|
|
227
|
+
const de = (e) => [...new Set(e)];
|
|
228
|
+
function Tt(e) {
|
|
229
|
+
const { platform: n } = e, r = e.locale?.supported ?? Object.keys(oe), i = e.locale?.fallback ?? "en", w = e.shell === void 0 ? void 0 : pt(e.shell) ? e.shell : { component: e.shell, slots: void 0, progress: void 0 }, v = [];
|
|
230
230
|
r.includes(i) || v.push({ owner: "application", message: `the fallback locale "${i}" is not among the supported locales (${r.join(", ")}).` });
|
|
231
231
|
for (const t of Object.keys(e.locale?.flags ?? {}))
|
|
232
232
|
r.includes(t) || v.push({ owner: "application", message: `locale.flags names the locale "${t}", which is not among the supported locales (${r.join(", ")}).` });
|
|
233
233
|
const E = e.locale?.initial ?? (r.includes(n.config.locale) ? n.config.locale : i);
|
|
234
234
|
r.includes(E) || v.push({ owner: "application", message: `the initial locale "${E}" is not among the supported locales (${r.join(", ")}).` });
|
|
235
|
-
const R = [
|
|
235
|
+
const R = [Ue, Pe, ze, Ge, He, ae, ne, re, ie, ce, le], j = ft({
|
|
236
236
|
features: e.features,
|
|
237
237
|
platform: n,
|
|
238
238
|
messages: e.messages ?? [],
|
|
239
239
|
reservedContexts: R,
|
|
240
240
|
supportedLocales: r,
|
|
241
241
|
shellSlots: w?.slots
|
|
242
|
-
}), M = [...v, ...j.issues], l = j.features, m =
|
|
242
|
+
}), M = [...v, ...j.issues], l = j.features, m = st(
|
|
243
243
|
l.flatMap((t) => t.navigation.map((a) => ({ feature: t.id, binding: a }))),
|
|
244
244
|
e.navigation
|
|
245
245
|
);
|
|
246
246
|
for (const t of m.issues) M.push({ owner: "navigation", message: t });
|
|
247
|
-
if (M.length > 0) throw new
|
|
248
|
-
const h =
|
|
247
|
+
if (M.length > 0) throw new ue(M);
|
|
248
|
+
const h = dt(E, i, e.i18n), u = h.global;
|
|
249
249
|
for (const [t, a] of Object.entries(oe)) u.mergeLocaleMessage(t, a);
|
|
250
250
|
for (const [t, a] of Object.entries(e.i18n?.messages ?? {})) u.mergeLocaleMessage(t, a);
|
|
251
|
-
const k =
|
|
251
|
+
const k = qe({ locale: () => u.locale.value, formatters: e.formatting }), $ = [...l.flatMap((t) => t.messages), ...e.messages ?? []], x = (t) => (e.onError ?? mt)({ ...t, route: s.currentRoute.value.matched.length > 0 ? s.currentRoute.value.fullPath : null }), A = We({
|
|
252
252
|
target: u,
|
|
253
253
|
namespaces: $,
|
|
254
254
|
fallback: i,
|
|
255
255
|
supported: r,
|
|
256
256
|
onFailure: (t) => x({ source: "messages", error: t.error, detail: `${t.namespace} (${t.locale})`, feature: o.get(t.namespace) })
|
|
257
|
-
}), o = new Map(l.flatMap((t) => t.messages.map((a) => [a.namespace, t.id]))), s =
|
|
258
|
-
history: e.router?.history ??
|
|
259
|
-
routes: l.flatMap((t) =>
|
|
257
|
+
}), o = new Map(l.flatMap((t) => t.messages.map((a) => [a.namespace, t.id]))), s = Fe({
|
|
258
|
+
history: e.router?.history ?? Ze(),
|
|
259
|
+
routes: l.flatMap((t) => me(t.routes, t.id)),
|
|
260
260
|
scrollBehavior: e.router?.scrollBehavior ?? ((t, a) => t.name === a.name ? !1 : { top: 0 })
|
|
261
261
|
}), c = e.router?.login ?? { name: "login" }, d = e.router?.home ?? { path: "/" }, L = [], H = (t) => {
|
|
262
262
|
try {
|
|
@@ -274,10 +274,10 @@ function Ft(e) {
|
|
|
274
274
|
const f = H(a.to);
|
|
275
275
|
f && L.push({ owner: `feature "${t}"`, message: `the destination "${a.destination}" is bound to ${JSON.stringify(a.to)}, which ${f}.` });
|
|
276
276
|
}
|
|
277
|
-
if (L.length > 0) throw new
|
|
278
|
-
const N =
|
|
277
|
+
if (L.length > 0) throw new ue(L);
|
|
278
|
+
const N = Ne({ status: "idle" }), F = {
|
|
279
279
|
state: N,
|
|
280
|
-
locale:
|
|
280
|
+
locale: Ke(() => u.locale.value),
|
|
281
281
|
locales: r,
|
|
282
282
|
localeFlags: e.locale?.flags ?? {},
|
|
283
283
|
setLocale: async (t) => {
|
|
@@ -292,42 +292,42 @@ function Ft(e) {
|
|
|
292
292
|
}
|
|
293
293
|
return f;
|
|
294
294
|
},
|
|
295
|
-
retry: () =>
|
|
296
|
-
},
|
|
295
|
+
retry: () => D()
|
|
296
|
+
}, I = {
|
|
297
297
|
contributions: l.flatMap((t) => t.contributions.map((a) => ({ feature: t.id, contribution: a }))),
|
|
298
298
|
effects: l.flatMap((t) => t.effects.map((a) => ({ feature: t.id, effect: a })))
|
|
299
|
-
}, V =
|
|
300
|
-
effects:
|
|
299
|
+
}, V = ct({
|
|
300
|
+
effects: I.effects,
|
|
301
301
|
platform: n,
|
|
302
302
|
sessionKey: e.sessionKey,
|
|
303
303
|
onError: (t, a) => x({ source: "effect", error: t, feature: a.feature, detail: a.effect.id })
|
|
304
|
-
}),
|
|
305
|
-
async function
|
|
306
|
-
const a = t.matched.flatMap((b) => [...
|
|
307
|
-
await A.load(
|
|
304
|
+
}), he = new Map(l.map((t) => [t.id, t.messages.map((a) => a.namespace)])), G = (t) => de(I.contributions.filter(({ contribution: a }) => a.scope === t).flatMap(({ contribution: a }) => a.messages ?? [])), ge = G("always"), we = G("authenticated");
|
|
305
|
+
async function ve(t) {
|
|
306
|
+
const a = t.matched.flatMap((b) => [...he.get(b.meta.feature ?? "") ?? [], ...b.meta.messages ?? []]), f = n.session.state.value.status === "authenticated";
|
|
307
|
+
await A.load(de([...a, ...ge, ...f ? we : []]));
|
|
308
308
|
}
|
|
309
309
|
let T = null;
|
|
310
310
|
function q(t) {
|
|
311
|
-
const a = t.meta.titleKey, f = T?.documentTitle.value ?? (a && u.te(a) ? u.t(a) : null), b = (e.router?.documentTitle ??
|
|
311
|
+
const a = t.meta.titleKey, f = T?.documentTitle.value ?? (a && u.te(a) ? u.t(a) : null), b = (e.router?.documentTitle ?? ht)(f, n.config.appName);
|
|
312
312
|
b !== "" && (document.title = b);
|
|
313
313
|
}
|
|
314
|
-
const
|
|
314
|
+
const ye = ot({ session: n.session, router: s, i18n: u, destinations: m.destinations }), $e = rt(I.contributions, n.session), be = Xe({ router: s, access: n.access, noAccess: e.noAccess ?? et }), Ee = pe({
|
|
315
315
|
name: "ApplicationRoot",
|
|
316
316
|
setup() {
|
|
317
317
|
return () => {
|
|
318
318
|
const t = N.value;
|
|
319
|
-
return t.status === "failed" ? se(
|
|
319
|
+
return t.status === "failed" ? se(ut, { kind: t.kind, onRetry: () => void D() }) : t.status !== "ready" ? null : se(w?.component ?? Ye);
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
|
-
}), p =
|
|
323
|
-
|
|
322
|
+
}), p = Oe(Ee);
|
|
323
|
+
Qe(p, n), p.use(h), De(p, k), T = Je(p), Ve(p), Te(p), e.icons && Be(p, ...Array.isArray(e.icons) ? e.icons : [e.icons]), p.provide(ie, F), e.describeError && p.provide(ce, e.describeError), e.describeFieldError && p.provide(le, e.describeFieldError), p.provide(ae, ye), p.provide(ne, $e), p.provide(re, be);
|
|
324
324
|
for (const t of l) for (const { key: a, value: f } of t.contexts) p.provide(a, f);
|
|
325
325
|
let S = !1, J = !1, z = !1, Q = !1;
|
|
326
326
|
const K = [];
|
|
327
|
-
function
|
|
327
|
+
function ke() {
|
|
328
328
|
const t = p.config.errorHandler;
|
|
329
|
-
p.config.errorHandler = (y,
|
|
330
|
-
x({ source: "vue", error: y, detail: Y }), t?.(y,
|
|
329
|
+
p.config.errorHandler = (y, xe, Y) => {
|
|
330
|
+
x({ source: "vue", error: y, detail: Y }), t?.(y, xe, Y);
|
|
331
331
|
};
|
|
332
332
|
const a = (y) => x({ source: "unhandledrejection", error: y.reason }), f = (y) => {
|
|
333
333
|
y.error && x({ source: "window", error: y.error });
|
|
@@ -337,23 +337,23 @@ function Ft(e) {
|
|
|
337
337
|
});
|
|
338
338
|
const b = l.some((y) => y.holdsExpiredSession);
|
|
339
339
|
n.session.holdExpired(b), K.push(() => n.session.holdExpired(!1)), K.push(
|
|
340
|
-
|
|
340
|
+
tt({
|
|
341
341
|
router: s,
|
|
342
342
|
session: n.session,
|
|
343
343
|
login: c,
|
|
344
344
|
home: d,
|
|
345
345
|
holdExpired: b,
|
|
346
|
-
prepare:
|
|
346
|
+
prepare: ve,
|
|
347
347
|
afterNavigation: q,
|
|
348
348
|
progress: e.router?.progress ?? w?.progress,
|
|
349
349
|
onError: (y) => x({ source: "router", error: y })
|
|
350
350
|
})
|
|
351
351
|
);
|
|
352
|
-
const O =
|
|
353
|
-
O.run(() =>
|
|
354
|
-
const X =
|
|
352
|
+
const O = P();
|
|
353
|
+
O.run(() => W(() => T?.documentTitle.value, () => q(s.currentRoute.value))), K.push(() => O.stop());
|
|
354
|
+
const X = P();
|
|
355
355
|
X.run(
|
|
356
|
-
() =>
|
|
356
|
+
() => W(
|
|
357
357
|
() => u.locale.value,
|
|
358
358
|
(y) => {
|
|
359
359
|
document.documentElement.lang = y, q(s.currentRoute.value);
|
|
@@ -384,7 +384,7 @@ function Ft(e) {
|
|
|
384
384
|
Q || (p.use(s), Q = !0), N.value = { status: "ready" }, V.start();
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
|
-
async function
|
|
387
|
+
async function D() {
|
|
388
388
|
S || N.value.status !== "failed" || (await A.retry(), await U());
|
|
389
389
|
}
|
|
390
390
|
return {
|
|
@@ -392,14 +392,14 @@ function Ft(e) {
|
|
|
392
392
|
router: s,
|
|
393
393
|
i18n: h,
|
|
394
394
|
state: N,
|
|
395
|
-
locale:
|
|
396
|
-
setLocale:
|
|
395
|
+
locale: F.locale,
|
|
396
|
+
setLocale: F.setLocale,
|
|
397
397
|
async mount(t) {
|
|
398
398
|
if (S) throw new Error("This application was disposed; create a new one with createApplication().");
|
|
399
399
|
if (J) throw new Error("This application is already mounted.");
|
|
400
|
-
J = !0,
|
|
400
|
+
J = !0, ke(), await U(), !S && (p.mount(t), z = !0);
|
|
401
401
|
},
|
|
402
|
-
retry:
|
|
402
|
+
retry: D,
|
|
403
403
|
dispose() {
|
|
404
404
|
if (!S) {
|
|
405
405
|
S = !0, V.dispose(), A.dispose(), z && p.unmount();
|
|
@@ -409,19 +409,19 @@ function Ft(e) {
|
|
|
409
409
|
}
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function mt(e) {
|
|
413
413
|
console.error(`[vue-core] ${e.source}${e.feature ? ` (${e.feature})` : ""}${e.detail ? `: ${e.detail}` : ""}`, e.error);
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function ht(e, n) {
|
|
416
416
|
return [e, n].filter((r) => !!r).join(" · ");
|
|
417
417
|
}
|
|
418
418
|
export {
|
|
419
|
-
|
|
419
|
+
ue as ApplicationError,
|
|
420
420
|
Pt as ShellOutlet,
|
|
421
421
|
ie as applicationKey,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
422
|
+
Tt as createApplication,
|
|
423
|
+
Vt as defineFeature,
|
|
424
|
+
zt as keepSessionAlive,
|
|
425
|
+
Gt as provideContext,
|
|
426
426
|
Bt as useApplication
|
|
427
427
|
};
|
package/dist/collection/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as O, L as j, a as U, h as G, l as X, r as Z } from "../http-D_D9YbLH.js";
|
|
2
|
-
import { _ as H, a as J, u as K } from "../CollectionPage.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as H, a as J, u as K } from "../CollectionPage.vue_vue_type_script_setup_true_lang-B17cUOzj.js";
|
|
3
3
|
import { u as W, a as Y } from "../neighbors-DVN_cADL.js";
|
|
4
4
|
import { a as te, b as se } from "../rowLayout-D1cYQghV.js";
|
|
5
5
|
import { _ as ae } from "../DataTable.vue_vue_type_script_setup_true_lang-ChS9ULwk.js";
|