@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
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
let t = null;
|
|
2
|
-
function
|
|
2
|
+
function r(e) {
|
|
3
3
|
return t = e, () => {
|
|
4
4
|
t === e && (t = null);
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function n() {
|
|
8
8
|
if (!t)
|
|
9
9
|
throw new Error(
|
|
10
10
|
"There is no application yet: currentApplication() returns the one createApplication() made. Call it when the code runs (not while the module loads), after main.ts created the application; in a unit test call createTestApplication() from @wssto2/vue-core/testing first and dispose() it afterwards."
|
|
11
11
|
);
|
|
12
12
|
return t;
|
|
13
13
|
}
|
|
14
|
+
function i() {
|
|
15
|
+
return n().platform.http;
|
|
16
|
+
}
|
|
14
17
|
export {
|
|
15
|
-
|
|
16
|
-
r as
|
|
18
|
+
i as a,
|
|
19
|
+
r as b,
|
|
20
|
+
n as c
|
|
17
21
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { computed as f, onUnmounted as y, shallowRef as m } from "vue";
|
|
2
|
+
import { p as h } from "./perDocument-DUuFrdGU.js";
|
|
3
|
+
const g = "data-dialog-inert-skip", c = "overflow-hidden", p = 9e3, l = "data-dialog-z", A = Symbol("vue-core:dialog-stack"), a = () => h(A, () => ({ entries: m([]), inertedByUs: /* @__PURE__ */ new Set(), lockedByUs: !1 }));
|
|
4
|
+
function u(t) {
|
|
5
|
+
const n = t.entries.value[t.entries.value.length - 1]?.root() ?? null;
|
|
6
|
+
for (const e of Array.from(document.body.children)) {
|
|
7
|
+
if (!(e instanceof HTMLElement)) continue;
|
|
8
|
+
const o = n !== null && !e.hasAttribute(g) && !e.contains(n);
|
|
9
|
+
o && !e.inert ? (e.inert = !0, t.inertedByUs.add(e)) : !o && t.inertedByUs.has(e) && (e.inert = !1, t.inertedByUs.delete(e));
|
|
10
|
+
}
|
|
11
|
+
const s = /* @__PURE__ */ new Map();
|
|
12
|
+
t.entries.value.forEach((e, o) => {
|
|
13
|
+
const r = e.root(), d = r && Array.from(document.body.children).find((v) => v.contains(r));
|
|
14
|
+
d && s.set(d, o);
|
|
15
|
+
});
|
|
16
|
+
for (const e of Array.from(document.body.children)) {
|
|
17
|
+
if (!(e instanceof HTMLElement)) continue;
|
|
18
|
+
const o = s.get(e);
|
|
19
|
+
o !== void 0 ? (e.style.zIndex = String(p + o), e.setAttribute(l, "")) : e.hasAttribute(l) && (e.style.zIndex = "", e.removeAttribute(l));
|
|
20
|
+
}
|
|
21
|
+
const i = t.entries.value.length > 0;
|
|
22
|
+
i && !document.body.classList.contains(c) ? (document.body.classList.add(c), t.lockedByUs = !0) : !i && t.lockedByUs && (document.body.classList.remove(c), t.lockedByUs = !1);
|
|
23
|
+
}
|
|
24
|
+
function B(t) {
|
|
25
|
+
const n = a(), s = { root: () => t.value }, i = f(() => n.entries.value[n.entries.value.length - 1] === s), e = () => {
|
|
26
|
+
n.entries.value.includes(s) || (n.entries.value = [...n.entries.value, s]), u(n);
|
|
27
|
+
}, o = () => {
|
|
28
|
+
n.entries.value.includes(s) && (n.entries.value = n.entries.value.filter((r) => r !== s), u(n));
|
|
29
|
+
};
|
|
30
|
+
return y(o), { isTop: i, activate: e, deactivate: o };
|
|
31
|
+
}
|
|
32
|
+
function L() {
|
|
33
|
+
const t = a().entries.value;
|
|
34
|
+
return t.length === 0 ? void 0 : t[t.length - 1].root();
|
|
35
|
+
}
|
|
36
|
+
function T() {
|
|
37
|
+
const t = a();
|
|
38
|
+
return f(() => t.entries.value.length);
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
g as I,
|
|
42
|
+
c as S,
|
|
43
|
+
B as a,
|
|
44
|
+
L as t,
|
|
45
|
+
T as u
|
|
46
|
+
};
|
package/dist/eslint/index.js
CHANGED
|
@@ -76,8 +76,8 @@ function b({ typed: e = !1, tsconfigRootDir: n, ignores: i = [], rules: p = {} }
|
|
|
76
76
|
...p
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
-
// Test
|
|
80
|
-
{ files: ["**/*.test.ts"], languageOptions: { globals: r.vitest }, rules: { "vue/require-prop-types": "off", "vue/one-component-per-file": "off" } }
|
|
79
|
+
// Test files (named *.test.ts or in a tests/ folder) define stub components inline, several per file, with untyped prop lists on purpose.
|
|
80
|
+
{ files: ["**/*.test.ts", "tests/**/*.{ts,vue}"], languageOptions: { globals: r.vitest }, rules: { "vue/require-prop-types": "off", "vue/one-component-per-file": "off" } }
|
|
81
81
|
];
|
|
82
82
|
}
|
|
83
83
|
export {
|
package/dist/form/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as ot, _ as We, c as nt, f as st } from "../FormGroup.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { E as Bo, b as Lo, d as To, p as qo, r as zo, u as Vo, e as Do, g as Ro } from "../FormGroup.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { f as qe } from "../useCommand-
|
|
4
|
-
import { _ as Io, a as jo, u as Oo } from "../useCommand-
|
|
1
|
+
import { a as ot, _ as We, c as nt, f as st } from "../FormGroup.vue_vue_type_script_setup_true_lang-dsO1m9Mm.js";
|
|
2
|
+
import { E as Bo, b as Lo, d as To, p as qo, r as zo, u as Vo, e as Do, g as Ro } from "../FormGroup.vue_vue_type_script_setup_true_lang-dsO1m9Mm.js";
|
|
3
|
+
import { f as qe } from "../useCommand-DAMgQ5NE.js";
|
|
4
|
+
import { _ as Io, a as jo, u as Oo } from "../useCommand-DAMgQ5NE.js";
|
|
5
5
|
import { ref as P, computed as h, defineComponent as G, openBlock as d, createBlock as R, mergeProps as J, unref as s, createSlots as Z, withCtx as f, createElementVNode as p, normalizeClass as j, createElementBlock as y, Fragment as de, renderList as $e, createVNode as I, createCommentVNode as q, toDisplayString as C, renderSlot as S, mergeDefaults as ce, useModel as re, useId as Re, withKeys as Se, withModifiers as pe, createTextVNode as H, mergeModels as le, useTemplateRef as U, shallowRef as Ne, watch as ge, normalizeProps as ze, guardReactiveProps as Ve, nextTick as xe, provide as rt, inject as Je, onBeforeUnmount as Ze, getCurrentScope as it, onScopeDispose as ut, toValue as dt, shallowReactive as Ae, normalizeStyle as ct, resolveDynamicComponent as ft } from "vue";
|
|
6
6
|
import { a as Xe } from "../leaveGuard-Cc8yeLxM.js";
|
|
7
7
|
import { M as No, c as Ao, i as Go, l as Ko, u as Po } from "../leaveGuard-Cc8yeLxM.js";
|
|
8
|
-
import { _ as Uo } from "../LeaveGuardRoot.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as Wo } from "../useResourceForm-
|
|
8
|
+
import { _ as Uo } from "../LeaveGuardRoot.vue_vue_type_script_setup_true_lang-CrGrjrlO.js";
|
|
9
|
+
import { u as Wo } from "../useResourceForm-Oa6bk3NI.js";
|
|
10
10
|
import { _ as X } from "../Icon.vue_vue_type_script_lang-BhhsFYwp.js";
|
|
11
11
|
import { u as Qe, _ as ye, f as fe, b as me, a as et, e as Me, g as mt, j as vt, k as pt } from "../options-B48UiYsG.js";
|
|
12
12
|
import { d as Zo, h as Xo, m as Qo } from "../options-B48UiYsG.js";
|
|
@@ -16,32 +16,32 @@ import { a as gt } from "../TextField.vue_vue_type_script_setup_true_lang-CWIeeZ
|
|
|
16
16
|
import { _ as tn } from "../TextField.vue_vue_type_script_setup_true_lang-CWIeeZRE.js";
|
|
17
17
|
import { u as yt, l as ht } from "../suggestions-q_v3M7G6.js";
|
|
18
18
|
import { r as ln } from "../suggestions-q_v3M7G6.js";
|
|
19
|
-
import { s as _e, u as Ge, i as kt, o as Ce, e as Fe, k as xt, _ as wt, l as $t, c as _t, b as Ct, t as Te, g as St, q as Ft } from "../useTypedEntry-
|
|
20
|
-
import { u as Bt, a as Lt, s as Tt } from "../DateField.vue_vue_type_script_setup_true_lang-
|
|
21
|
-
import { _ as nn } from "../DateField.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { s as _e, u as Ge, i as kt, o as Ce, e as Fe, k as xt, _ as wt, l as $t, c as _t, b as Ct, t as Te, g as St, q as Ft } from "../useTypedEntry-CITij2C_.js";
|
|
20
|
+
import { u as Bt, a as Lt, s as Tt } from "../DateField.vue_vue_type_script_setup_true_lang-DzCvYHAf.js";
|
|
21
|
+
import { _ as nn } from "../DateField.vue_vue_type_script_setup_true_lang-DzCvYHAf.js";
|
|
22
22
|
import { _ as tt } from "../DateButton.vue_vue_type_script_setup_true_lang-CovKG5lN.js";
|
|
23
23
|
import { u as at } from "../format-Cp1h0vsC.js";
|
|
24
24
|
import { u as Ie } from "../mediaQuery-CygcXmFW.js";
|
|
25
|
-
import { _ as je } from "../Popover.vue_vue_type_script_setup_true_lang-
|
|
26
|
-
import { u as qt } from "../TimeField.vue_vue_type_script_setup_true_lang-
|
|
27
|
-
import { _ as rn } from "../TimeField.vue_vue_type_script_setup_true_lang-
|
|
28
|
-
import { _ as be } from "../Button.vue_vue_type_script_setup_true_lang-
|
|
29
|
-
import { _ as dn } from "../FormView.vue_vue_type_script_setup_true_lang-
|
|
25
|
+
import { _ as je } from "../Popover.vue_vue_type_script_setup_true_lang-BK8HL_V0.js";
|
|
26
|
+
import { u as qt } from "../TimeField.vue_vue_type_script_setup_true_lang-C1mLvOkc.js";
|
|
27
|
+
import { _ as rn } from "../TimeField.vue_vue_type_script_setup_true_lang-C1mLvOkc.js";
|
|
28
|
+
import { _ as be } from "../Button.vue_vue_type_script_setup_true_lang-JrqhO99l.js";
|
|
29
|
+
import { _ as dn } from "../FormView.vue_vue_type_script_setup_true_lang-Bq_Qa4py.js";
|
|
30
30
|
import { a as zt } from "../environment-Dva-SG8D.js";
|
|
31
31
|
import { _ as Vt } from "../NumberField.vue_vue_type_script_setup_true_lang-U-_kcnGr.js";
|
|
32
|
-
import { _ as Dt } from "../Sheet.vue_vue_type_script_setup_true_lang-
|
|
33
|
-
import { b as Rt, a as Ke } from "../SelectField.vue_vue_type_script_setup_true_lang-
|
|
34
|
-
import { _ as fn, u as mn } from "../SelectField.vue_vue_type_script_setup_true_lang-
|
|
35
|
-
import { _ as pn, b as bn, a as gn, u as yn } from "../useGroupSheet-
|
|
36
|
-
import { _ as Pe } from "../PhotoViewer.vue_vue_type_script_setup_true_lang-
|
|
32
|
+
import { _ as Dt } from "../Sheet.vue_vue_type_script_setup_true_lang-BG8HUNfs.js";
|
|
33
|
+
import { b as Rt, a as Ke } from "../SelectField.vue_vue_type_script_setup_true_lang-CLkoPbGm.js";
|
|
34
|
+
import { _ as fn, u as mn } from "../SelectField.vue_vue_type_script_setup_true_lang-CLkoPbGm.js";
|
|
35
|
+
import { _ as pn, b as bn, a as gn, u as yn } from "../useGroupSheet-Qqo3ywsS.js";
|
|
36
|
+
import { _ as Pe } from "../PhotoViewer.vue_vue_type_script_setup_true_lang-DmMg1T_V.js";
|
|
37
37
|
import { _ as kn } from "../SegmentedField.vue_vue_type_script_setup_true_lang-zv_AxpBn.js";
|
|
38
38
|
import { _ as wn } from "../SwitchField.vue_vue_type_script_setup_true_lang-Ds4q0bbl.js";
|
|
39
39
|
import { _ as _n } from "../TextareaField.vue_vue_type_script_setup_true_lang-D2j4s96s.js";
|
|
40
|
-
import { _ as Mt } from "../AdaptivePageShell.vue_vue_type_script_setup_true_lang-
|
|
41
|
-
import { _ as It, a as jt } from "../SectionList.vue_vue_type_script_setup_true_lang-
|
|
40
|
+
import { _ as Mt } from "../AdaptivePageShell.vue_vue_type_script_setup_true_lang-uO4EAmBb.js";
|
|
41
|
+
import { _ as It, a as jt } from "../SectionList.vue_vue_type_script_setup_true_lang-CodyVezo.js";
|
|
42
42
|
import { p as Ot } from "../sectionIndex-BS0ic5W7.js";
|
|
43
43
|
import { u as Et } from "../useSaveChrome-7huA3FzR.js";
|
|
44
|
-
import { u as Sn } from "../useRecordDialog-
|
|
44
|
+
import { u as Sn } from "../useRecordDialog-QPKFH1Ww.js";
|
|
45
45
|
import { matchedRouteKey as Nt, onBeforeRouteLeave as At } from "vue-router";
|
|
46
46
|
function Gt(l) {
|
|
47
47
|
const a = P(null);
|
package/dist/form/useForm.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ export interface FormOptions<Values extends object, Output = Values> {
|
|
|
80
80
|
readonly defaults: Values | (() => Values);
|
|
81
81
|
/** The app's schema (anything with Zod's `safeParse`). Without one the server is the only validator. */
|
|
82
82
|
readonly validator?: FormValidator<Output>;
|
|
83
|
-
/** A field message into a sentence, for a form that says it differently from the rest of the app. Default: the application's (`createApplication({ describeFieldError })`), else as sent. */
|
|
83
|
+
/** A field message into a sentence, for a form that says it differently from the rest of the app. Default: the application's (`createApplication({ describeFieldError })`), else the library's words for go-core's validator keys (`useServerMessages`), other text as sent. */
|
|
84
84
|
readonly describeFieldError?: (message: string, field: string) => string;
|
|
85
85
|
/** The draft's name for a field the server names, given the whole dotted path (`tax_id` is `taxId`, `lines.0.unit_price` is `lines.0.unitPrice`). Default: the same name. */
|
|
86
86
|
readonly serverField?: (field: string) => string;
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -214,6 +214,9 @@ export type CoreMessages = {
|
|
|
214
214
|
no_access: {
|
|
215
215
|
title: string;
|
|
216
216
|
body: string;
|
|
217
|
+
/** Shown before the address `RestrictedPanel` is given to write to. */
|
|
218
|
+
contact: string;
|
|
219
|
+
back: string;
|
|
217
220
|
};
|
|
218
221
|
shortcuts: {
|
|
219
222
|
title: string;
|
|
@@ -398,7 +401,8 @@ export { localeMessages } from "./messages";
|
|
|
398
401
|
export type { LocaleMessagesOptions, MessageLoader, MessageNamespace, Messages } from "./messages";
|
|
399
402
|
export { createMessageRuntime } from "./runtime";
|
|
400
403
|
export type { MessageFailure, MessageRuntime, MessageRuntimeOptions, MessageTarget } from "./runtime";
|
|
401
|
-
export { useServerMessages } from "./serverMessages";
|
|
404
|
+
export { fieldMessageWith, useServerMessages } from "./serverMessages";
|
|
405
|
+
export type { ServerMessagesOptions } from "./serverMessages";
|
|
402
406
|
export { appErrorDescriberKey, appFieldErrorDescriberKey, useDescribeError } from "./describeError";
|
|
403
407
|
export type { AppErrorDescriber, AppFieldErrorDescriber, DescribeError, DescribeErrorOptions } from "./describeError";
|
|
404
408
|
export { slavicPluralRule, slavicPluralRules, slovenianPluralRule } from "./plural";
|