@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
|
@@ -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
|
};
|
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-CTVuhEbW.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-CTVuhEbW.js";
|
|
3
|
+
import { f as qe } from "../useCommand-BvcU3AlW.js";
|
|
4
|
+
import { _ as Io, a as jo, u as Oo } from "../useCommand-BvcU3AlW.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
8
|
import { _ as Uo } from "../LeaveGuardRoot.vue_vue_type_script_setup_true_lang-CIwW7y4j.js";
|
|
9
|
-
import { u as Wo } from "../useResourceForm-
|
|
9
|
+
import { u as Wo } from "../useResourceForm-C1S628UI.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";
|
|
@@ -26,13 +26,13 @@ import { _ as je } from "../Popover.vue_vue_type_script_setup_true_lang-C20Hf3Hl
|
|
|
26
26
|
import { u as qt } from "../TimeField.vue_vue_type_script_setup_true_lang-BDlTAMsh.js";
|
|
27
27
|
import { _ as rn } from "../TimeField.vue_vue_type_script_setup_true_lang-BDlTAMsh.js";
|
|
28
28
|
import { _ as be } from "../Button.vue_vue_type_script_setup_true_lang-C74hcb0N.js";
|
|
29
|
-
import { _ as dn } from "../FormView.vue_vue_type_script_setup_true_lang-
|
|
29
|
+
import { _ as dn } from "../FormView.vue_vue_type_script_setup_true_lang-Cfvh7rF6.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
32
|
import { _ as Dt } from "../Sheet.vue_vue_type_script_setup_true_lang-B91aRD_y.js";
|
|
33
33
|
import { b as Rt, a as Ke } from "../SelectField.vue_vue_type_script_setup_true_lang-BZwdANL3.js";
|
|
34
34
|
import { _ as fn, u as mn } from "../SelectField.vue_vue_type_script_setup_true_lang-BZwdANL3.js";
|
|
35
|
-
import { _ as pn, b as bn, a as gn, u as yn } from "../useGroupSheet-
|
|
35
|
+
import { _ as pn, b as bn, a as gn, u as yn } from "../useGroupSheet-BGIntPKD.js";
|
|
36
36
|
import { _ as Pe } from "../PhotoViewer.vue_vue_type_script_setup_true_lang-Bqxj_uJ5.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";
|
|
@@ -41,7 +41,7 @@ import { _ as Mt } from "../AdaptivePageShell.vue_vue_type_script_setup_true_lan
|
|
|
41
41
|
import { _ as It, a as jt } from "../SectionList.vue_vue_type_script_setup_true_lang-DR0_NsqC.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-q_BNXdb7.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";
|