@wssto2/vue-core 0.4.18 → 0.4.20
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-DOjn7fqy.js → ActionRow.vue_vue_type_script_setup_true_lang-QPvYudWc.js} +1 -1
- package/dist/{Activity-DB9ABAMb.js → Activity-C0NvjIi5.js} +4 -4
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-Bm0sxqNz.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-CxU9aNRQ.js} +1 -1
- package/dist/{Changes-IIczcs6O.js → Changes-hoMHeAZt.js} +3 -3
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-CUoyYpaW.js → CollectionPage.vue_vue_type_script_setup_true_lang-BNM_cbXa.js} +6 -6
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-Wuvo-l_z.js → DataTable.vue_vue_type_script_setup_true_lang-DPuH84I7.js} +1 -1
- package/dist/{DateButton.vue_vue_type_script_setup_true_lang-EcqrfWKz.js → DateButton.vue_vue_type_script_setup_true_lang-CovKG5lN.js} +5 -5
- package/dist/DateField.vue_vue_type_script_setup_true_lang-CpuH0WTl.js +281 -0
- package/dist/{DeadLetters-Bq5YpnvT.js → DeadLetters-O6QReswO.js} +2 -2
- package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-BokxZ7LU.js → FormGroup.vue_vue_type_script_setup_true_lang-DSwSRsA5.js} +3 -2
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-Dz5TZt92.js → FormView.vue_vue_type_script_setup_true_lang-Dbfg_jGh.js} +1 -1
- package/dist/{General-DQruOZs2.js → General-9Sgxb74n.js} +6 -6
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-uPmxWvds.js → Menu.vue_vue_type_script_setup_true_lang-DsFOeCVe.js} +1 -1
- package/dist/{NewRolePage-BcA8jBBQ.js → NewRolePage-D-LunWMH.js} +3 -3
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-DaE5BLm4.js +161 -0
- package/dist/{Popover.vue_vue_type_script_setup_true_lang-BTOzgIQF.js → Popover.vue_vue_type_script_setup_true_lang-C70GrCP7.js} +8 -8
- package/dist/{ProfilePage-BqdCzyax.js → ProfilePage-DJUDCyEr.js} +6 -6
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-DijFQnU6.js → RecordHeader.vue_vue_type_script_setup_true_lang-szzWzdDu.js} +1 -1
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-BpLnmA6n.js → ResourcePage.vue_vue_type_script_setup_true_lang-BFaaFQSm.js} +2 -2
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-DPpCuJWk.js → RoleEditor.vue_vue_type_script_setup_true_lang-D-b-O6SG.js} +7 -7
- package/dist/{RolePage-IES_ADt5.js → RolePage-Ha-EgoEJ.js} +7 -7
- package/dist/{RolesPage-D0K7tEL-.js → RolesPage-8uWWCClN.js} +5 -5
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-D5QWy-c1.js → SectionList.vue_vue_type_script_setup_true_lang-BJnz2ROc.js} +2 -2
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-CW81A_bn.js → SectionNavigator.vue_vue_type_script_setup_true_lang-BltrQnrQ.js} +2 -2
- package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-BMBkEmxr.js → SegmentedField.vue_vue_type_script_setup_true_lang-Dg-_ZjgR.js} +1 -1
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-C3FbRQW7.js +515 -0
- package/dist/{SessionList.vue_vue_type_script_setup_true_lang-C0XvavBw.js → SessionList.vue_vue_type_script_setup_true_lang-D5qm77Zo.js} +2 -2
- package/dist/{Sessions-BfpiOhGs.js → Sessions-Dz4KYMu9.js} +2 -2
- package/dist/{SettingsPage-BnEpURcU.js → SettingsPage-D47NSOYW.js} +7 -7
- package/dist/{SignIn-DrLE0gNr.js → SignIn-CNv68Tba.js} +4 -4
- package/dist/{SignInPage-CRynZCU2.js → SignInPage-CsjC4aiV.js} +3 -3
- package/dist/{SignInTable.vue_vue_type_script_setup_true_lang-7Z9EmLs-.js → SignInTable.vue_vue_type_script_setup_true_lang-ByEAVfjv.js} +1 -1
- package/dist/{SignIns-BQ8tISWn.js → SignIns-CgsNf8uf.js} +2 -2
- package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-0weBvsJf.js → SwitchField.vue_vue_type_script_setup_true_lang-ALvJisiP.js} +1 -1
- package/dist/TextField.vue_vue_type_script_setup_true_lang-CP2WeU36.js +317 -0
- package/dist/TextareaField.vue_vue_type_script_setup_true_lang-BJ4__cvJ.js +93 -0
- package/dist/TimeField.vue_vue_type_script_setup_true_lang-DBxKAWRo.js +190 -0
- package/dist/{Tooltip.vue_vue_type_script_setup_true_lang-OOD_XNWx.js → Tooltip.vue_vue_type_script_setup_true_lang-mErNPt8e.js} +1 -1
- package/dist/{UserRecord-CqmPm4Fv.js → UserRecord-B9r_9U1z.js} +7 -7
- package/dist/{UsersList-CHAray61.js → UsersList-BBLa3OCv.js} +6 -6
- package/dist/access/index.js +1 -1
- package/dist/{anchored-Cj4--8dT.js → anchored-DpuUwf-9.js} +17 -15
- package/dist/collection/index.js +4 -4
- package/dist/{control-B_Nwtmag.js → control-B4SdblL6.js} +134 -118
- package/dist/controls/index.js +1 -1
- package/dist/form/ComboField.vue.d.ts +9 -3
- package/dist/form/DateField.vue.d.ts +4 -0
- package/dist/form/DateTimeField.vue.d.ts +4 -0
- package/dist/form/Field.vue.d.ts +2 -0
- package/dist/form/MoneyField.vue.d.ts +10 -5
- package/dist/form/NumberField.vue.d.ts +13 -5
- package/dist/form/SelectField.vue.d.ts +5 -1
- package/dist/form/TextField.vue.d.ts +10 -2
- package/dist/form/TextareaField.vue.d.ts +4 -0
- package/dist/form/TimeField.vue.d.ts +4 -0
- package/dist/form/index.d.ts +1 -1
- package/dist/form/index.js +1173 -1142
- package/dist/form/options.d.ts +4 -0
- package/dist/identity/index.js +1 -1
- package/dist/{index-91Lo0hJy.js → index-D-0JNiFF.js} +3 -3
- package/dist/{index-wlRejl73.js → index-D6BjUQJT.js} +7 -7
- package/dist/{index-sYamgVg7.js → index-Dxu7ZfCC.js} +12 -12
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/overlay/anchored.d.ts +2 -0
- package/dist/overlay/index.js +3 -3
- package/dist/page/index.js +5 -5
- package/dist/phone/index.js +2 -2
- package/dist/resource/index.js +1 -1
- package/dist/{rowLayout-BFz4Kdoy.js → rowLayout-D1vrdy0s.js} +2 -2
- package/dist/shell/index.js +2 -2
- package/dist/{status-B_IMA25a.js → status-BLTC7wi1.js} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/DateField.vue_vue_type_script_setup_true_lang-8mvjzRA-.js +0 -278
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-CC8bKyR_.js +0 -150
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-DkbBJpYX.js +0 -489
- package/dist/TextField.vue_vue_type_script_setup_true_lang-CWgn-vGl.js +0 -299
- package/dist/TextareaField.vue_vue_type_script_setup_true_lang-4wC3c0BM.js +0 -91
- package/dist/TimeField.vue_vue_type_script_setup_true_lang-BebAIPeL.js +0 -187
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as r, openBlock as s, createBlock as d, unref as n, withCtx as f, createElementVNode as t, normalizeClass as m, toDisplayString as l, createElementBlock as u, createCommentVNode as p, createVNode as b } from "vue";
|
|
2
|
-
import { e as _ } from "./control-
|
|
2
|
+
import { e as _ } from "./control-B4SdblL6.js";
|
|
3
3
|
import { _ as x } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
4
4
|
const k = ["disabled"], y = { class: "flex min-w-0 flex-1 flex-col" }, h = {
|
|
5
5
|
key: 0,
|
|
@@ -3,10 +3,10 @@ import { useI18n as q } from "vue-i18n";
|
|
|
3
3
|
import { _ as D } from "./IconTile.vue_vue_type_script_setup_true_lang-_FXvaj93.js";
|
|
4
4
|
import { _ as I } from "./Tabs.vue_vue_type_script_setup_true_lang-CcMcE38r.js";
|
|
5
5
|
import { u as O } from "./format-D8X4zsx6.js";
|
|
6
|
-
import { _ as U } from "./DateField.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as T } from "./FormGroup.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { e as z } from "./control-
|
|
9
|
-
import { P as G, c as H, i as J } from "./index-
|
|
6
|
+
import { _ as U } from "./DateField.vue_vue_type_script_setup_true_lang-CpuH0WTl.js";
|
|
7
|
+
import { _ as T } from "./FormGroup.vue_vue_type_script_setup_true_lang-DSwSRsA5.js";
|
|
8
|
+
import { e as z } from "./control-B4SdblL6.js";
|
|
9
|
+
import { P as G, c as H, i as J } from "./index-Dxu7ZfCC.js";
|
|
10
10
|
import { u as K } from "./platform-q3cjODLx.js";
|
|
11
11
|
import { b as M } from "./routeResource-DlTsGTg_.js";
|
|
12
12
|
import { _ as Q } from "./AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js";
|
|
@@ -4,7 +4,7 @@ import { b as U } from "./bottomDock-BZEiOPYZ.js";
|
|
|
4
4
|
import { useI18n as P } from "vue-i18n";
|
|
5
5
|
import { _ as W } from "./Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
|
|
6
6
|
import { _ as y } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
7
|
-
import { _ as Y } from "./Menu.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as Y } from "./Menu.vue_vue_type_script_setup_true_lang-DsFOeCVe.js";
|
|
8
8
|
import { RouterLink as B, useRoute as G } from "vue-router";
|
|
9
9
|
import { i as J } from "./intlLocale-CeRU44qJ.js";
|
|
10
10
|
import { a as N, c as X, p as Z } from "./chrome-nUcmVu8G.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as k, computed as N, openBlock as n, createBlock as u, unref as a, withCtx as g, createElementBlock as p, Fragment as _, renderList as $, createElementVNode as i, toDisplayString as h, createCommentVNode as C, ref as x, watch as b, createVNode as y } from "vue";
|
|
2
2
|
import { useI18n as E } from "vue-i18n";
|
|
3
|
-
import { P as V, i as R } from "./index-
|
|
3
|
+
import { P as V, i as R } from "./index-Dxu7ZfCC.js";
|
|
4
4
|
import { u as S } from "./platform-q3cjODLx.js";
|
|
5
5
|
import { b as B } from "./routeResource-DlTsGTg_.js";
|
|
6
6
|
import { _ as F } from "./AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js";
|
|
@@ -8,8 +8,8 @@ import { u as L } from "./useLoad-M7V-AVwR.js";
|
|
|
8
8
|
import { _ as P } from "./Avatar.vue_vue_type_script_setup_true_lang-CFIheaSr.js";
|
|
9
9
|
import { _ as I } from "./IconTile.vue_vue_type_script_setup_true_lang-_FXvaj93.js";
|
|
10
10
|
import { u as O } from "./format-D8X4zsx6.js";
|
|
11
|
-
import { _ as T } from "./FormGroup.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { e as U } from "./control-
|
|
11
|
+
import { _ as T } from "./FormGroup.vue_vue_type_script_setup_true_lang-DSwSRsA5.js";
|
|
12
|
+
import { e as U } from "./control-B4SdblL6.js";
|
|
13
13
|
import { _ as q } from "./PageBar.vue_vue_type_script_setup_true_lang-B7qdEeej.js";
|
|
14
14
|
import { _ as z } from "./SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js";
|
|
15
15
|
import { _ as A } from "./ViewTabs.vue_vue_type_script_setup_true_lang-BJIoZAlH.js";
|
|
@@ -2,7 +2,7 @@ import { hasInjectionContext as lt, inject as ot, shallowRef as xe, computed as
|
|
|
2
2
|
import { routerKey as ct } from "vue-router";
|
|
3
3
|
import { i as qe, a as ut } from "./error-CD7x0Jrz.js";
|
|
4
4
|
import { a as dt, d as Re, o as ft, L as Te, e as je, w as pt, b as vt } from "./http-D_D9YbLH.js";
|
|
5
|
-
import { a as mt } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { a as mt } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-CxU9aNRQ.js";
|
|
6
6
|
import { useI18n as he } from "vue-i18n";
|
|
7
7
|
import { _ as ce, u as Ne } from "./Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
|
|
8
8
|
import { _ as Ge } from "./Tabs.vue_vue_type_script_setup_true_lang-CcMcE38r.js";
|
|
@@ -10,12 +10,12 @@ import { u as Pe } from "./format-D8X4zsx6.js";
|
|
|
10
10
|
import { _ as I } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
11
11
|
import { _ as Ae } from "./Banner.vue_vue_type_script_setup_true_lang-DSStj_5z.js";
|
|
12
12
|
import { _ as Ee } from "./EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp8I.js";
|
|
13
|
-
import { u as bt, _ as gt } from "./rowLayout-
|
|
14
|
-
import { _ as Ye } from "./Menu.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { _ as Ze } from "./Popover.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { u as bt, _ as gt } from "./rowLayout-D1vrdy0s.js";
|
|
14
|
+
import { _ as Ye } from "./Menu.vue_vue_type_script_setup_true_lang-DsFOeCVe.js";
|
|
15
|
+
import { _ as Ze } from "./Popover.vue_vue_type_script_setup_true_lang-C70GrCP7.js";
|
|
16
16
|
import { _ as we } from "./ToneDot.vue_vue_type_script_setup_true_lang-99rNn-L5.js";
|
|
17
|
-
import { _ as ht } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { _ as yt } from "./SelectField.vue_vue_type_script_setup_true_lang-
|
|
17
|
+
import { _ as ht } from "./NumberField.vue_vue_type_script_setup_true_lang-DaE5BLm4.js";
|
|
18
|
+
import { _ as yt } from "./SelectField.vue_vue_type_script_setup_true_lang-C3FbRQW7.js";
|
|
19
19
|
import { a as _t } from "./mediaQuery-CygcXmFW.js";
|
|
20
20
|
import { _ as xt } from "./Sheet.vue_vue_type_script_setup_true_lang-DgOFV4fa.js";
|
|
21
21
|
import { t as ke } from "./toast-CqSDTWRX.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, computed as u, useSlots as p, openBlock as w, createElementBlock as y, createVNode as f, unref as k, createSlots as b, renderList as m, withCtx as h, renderSlot as v, normalizeProps as _, guardReactiveProps as g } from "vue";
|
|
2
|
-
import { u as R, _ as L } from "./rowLayout-
|
|
2
|
+
import { u as R, _ as L } from "./rowLayout-D1vrdy0s.js";
|
|
3
3
|
const F = ["aria-busy"], V = /* @__PURE__ */ d({
|
|
4
4
|
__name: "DataTable",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as u, useSlots as f, computed as m, openBlock as a, createElementBlock as n, normalizeClass as
|
|
1
|
+
import { defineComponent as u, useSlots as f, computed as m, openBlock as a, createElementBlock as n, normalizeClass as x, renderSlot as b, toDisplayString as v, Comment as y } from "vue";
|
|
2
2
|
import { c as g } from "./controlSurface-t7OEFESJ.js";
|
|
3
|
-
const
|
|
3
|
+
const h = ["disabled", "aria-expanded", "aria-invalid"], k = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "text-content-disabled"
|
|
6
6
|
}, C = /* @__PURE__ */ u({
|
|
@@ -23,11 +23,11 @@ const k = ["disabled", "aria-expanded", "aria-invalid"], _ = {
|
|
|
23
23
|
"aria-haspopup": "dialog",
|
|
24
24
|
"aria-expanded": e.expanded,
|
|
25
25
|
"aria-invalid": e.invalid || void 0,
|
|
26
|
-
class:
|
|
26
|
+
class: x(["hit-target inline-flex max-w-full items-center whitespace-nowrap rounded-control text-right px-2.5 py-1 text-body tabular-nums disabled:cursor-not-allowed disabled:opacity-45", e.expanded ? "bg-tint-soft font-semibold text-content-link ring-[1.5px] ring-inset ring-border-focus transition-colors duration-motion-fast ease-motion-standard" : ["text-content-strong", r.value]]),
|
|
27
27
|
onClick: o[0] || (o[0] = (p) => d("click", p))
|
|
28
28
|
}, [
|
|
29
|
-
c() ?
|
|
30
|
-
], 10,
|
|
29
|
+
c() ? b(t.$slots, "default", {}, void 0, void 0, 0) : (a(), n("span", k, v(e.placeholder), 1))
|
|
30
|
+
], 10, h));
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
export {
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { computed as p, defineComponent as re, useModel as oe, useTemplateRef as T, openBlock as g, createBlock as Y, mergeProps as E, unref as s, createSlots as ae, withCtx as y, createElementBlock as C, Fragment as H, createVNode as D, createTextVNode as ne, toDisplayString as K, createCommentVNode as M, createElementVNode as O, normalizeClass as le, renderSlot as S, mergeModels as G, mergeDefaults as se, nextTick as J } from "vue";
|
|
2
|
+
import { useI18n as L } from "vue-i18n";
|
|
3
|
+
import { _ as ie } from "./DateButton.vue_vue_type_script_setup_true_lang-CovKG5lN.js";
|
|
4
|
+
import { u as W } from "./format-D8X4zsx6.js";
|
|
5
|
+
import { _ as de } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
6
|
+
import { u as ue } from "./mediaQuery-CygcXmFW.js";
|
|
7
|
+
import { _ as ce } from "./Popover.vue_vue_type_script_setup_true_lang-C70GrCP7.js";
|
|
8
|
+
import { c as me, _ as fe, f as pe, b as be } from "./control-B4SdblL6.js";
|
|
9
|
+
import { e as q, f as j, m as X, g as Z, h as ve, j as ye, u as ke, k as ge, _ as he, l as xe, c as we } from "./useTypedEntry-C7k7Dyl-.js";
|
|
10
|
+
const _e = ["d", "m", "y"];
|
|
11
|
+
function $e(o) {
|
|
12
|
+
const r = o("2033-11-22"), t = { y: r.indexOf("2033") >= 0 ? r.indexOf("2033") : r.indexOf("33"), m: r.indexOf("11"), d: r.indexOf("22") };
|
|
13
|
+
return t.y < 0 || t.m < 0 || t.d < 0 ? _e : ["d", "m", "y"].sort((e, a) => t[e] - t[a]);
|
|
14
|
+
}
|
|
15
|
+
const De = (o) => o.trim().toLowerCase().replace(/\.+$/, "");
|
|
16
|
+
function Ne(o, r) {
|
|
17
|
+
if (o.length === 4) return Number(o);
|
|
18
|
+
if (o.length > 2) return null;
|
|
19
|
+
const t = 2e3 + Number(o);
|
|
20
|
+
return t > Number(r.slice(0, 4)) + 30 ? t - 100 : t;
|
|
21
|
+
}
|
|
22
|
+
function h(o, r) {
|
|
23
|
+
const t = o.y === void 0 ? Number(r.slice(0, 4)) : Ne(o.y, r), e = o.m === void 0 ? Number(r.slice(5, 7)) : Number(o.m);
|
|
24
|
+
return t === null || o.d === void 0 ? null : X(t, e, Number(o.d));
|
|
25
|
+
}
|
|
26
|
+
function Te(o, r) {
|
|
27
|
+
const t = r.today ?? q(), e = De(o);
|
|
28
|
+
if (e === "") return null;
|
|
29
|
+
const { words: a } = r;
|
|
30
|
+
if (a.today.includes(e)) return t;
|
|
31
|
+
if (a.tomorrow.includes(e)) return j(t, 1);
|
|
32
|
+
if (a.yesterday.includes(e)) return j(t, -1);
|
|
33
|
+
const u = /^([+-])\s*(\d{1,4})$/.exec(e);
|
|
34
|
+
if (u) return j(t, Number(u[2]) * (u[1] === "-" ? -1 : 1));
|
|
35
|
+
const i = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(e);
|
|
36
|
+
if (i) return X(Number(i[1]), Number(i[2]), Number(i[3]));
|
|
37
|
+
if (!/^[\d\s./-]+$/.test(e)) return null;
|
|
38
|
+
const n = r.order, x = n.filter((m) => m !== "y");
|
|
39
|
+
if (/^\d+$/.test(e)) {
|
|
40
|
+
if (e.length <= 2) return h({ d: e }, t);
|
|
41
|
+
if (e.length === 4) return h(F(x, [e.slice(0, 2), e.slice(2)]), t);
|
|
42
|
+
if (e.length === 6 || e.length === 8) {
|
|
43
|
+
const m = n.map((k) => k === "y" ? e.length - 4 : 2);
|
|
44
|
+
let w = 0;
|
|
45
|
+
const N = n.map((k, b) => [k, e.slice(w, w += m[b])]);
|
|
46
|
+
return h(Object.fromEntries(N), t);
|
|
47
|
+
}
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
const c = e.split(/[^\d]+/).filter(Boolean);
|
|
51
|
+
return c.length === 3 ? h(F(n, c), t) : c.length === 2 ? h(F(x, c), t) : c.length === 1 ? h({ d: c[0] }, t) : null;
|
|
52
|
+
}
|
|
53
|
+
function F(o, r) {
|
|
54
|
+
return Object.fromEntries(o.map((t, e) => [t, r[e]]));
|
|
55
|
+
}
|
|
56
|
+
function Qe(o) {
|
|
57
|
+
const r = o.trim().replace(/^(\d{4}-\d{2}-\d{2})T/, "$1 ").split(/\s+/).filter(Boolean), t = r[r.length - 1];
|
|
58
|
+
if (t === void 0) return { date: null, time: null };
|
|
59
|
+
if (!(t.includes(":") || r.length > 1 && /^\d{1,2}\.\d{2}$/.test(t))) return { date: r.join(" "), time: null };
|
|
60
|
+
const a = r.slice(0, -1).join(" ");
|
|
61
|
+
return { date: a === "" ? null : a, time: t };
|
|
62
|
+
}
|
|
63
|
+
function Ce(o, r, t) {
|
|
64
|
+
const e = o(t), a = /\D+/.exec(e)?.[0].trim() ?? ".", u = /\D+$/.test(e) ? a : "", i = { d: String(Number(t.slice(8))), m: String(Number(t.slice(5, 7))), y: "" };
|
|
65
|
+
return r.filter((n) => n !== "y").map((n) => i[n]).join(a) + u;
|
|
66
|
+
}
|
|
67
|
+
function Oe(o) {
|
|
68
|
+
const { t: r } = L(), t = W(), e = (n) => t.date(n), a = p(() => $e(e)), u = p(() => ({
|
|
69
|
+
today: [r("core.form.date.words.today").toLowerCase(), "today"],
|
|
70
|
+
tomorrow: [r("core.form.date.words.tomorrow").toLowerCase(), "tomorrow"],
|
|
71
|
+
yesterday: [r("core.form.date.words.yesterday").toLowerCase(), "yesterday"]
|
|
72
|
+
}));
|
|
73
|
+
return {
|
|
74
|
+
placeholder: p(() => r("core.form.date.placeholder", { example: Ce(e, a.value, q()) })),
|
|
75
|
+
/** The day a text means, or null. */
|
|
76
|
+
parse: (n) => Te(n, { order: a.value, words: u.value }),
|
|
77
|
+
available: (n) => !Z(n, o()),
|
|
78
|
+
invalidMessage: () => r("core.form.date.invalid", { example: e(q()) }),
|
|
79
|
+
unavailableMessage: () => r("core.form.date.unavailable")
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function qe(o, r, t) {
|
|
83
|
+
const { t: e } = L();
|
|
84
|
+
return p(() => {
|
|
85
|
+
const a = q();
|
|
86
|
+
return (o() ?? ve(r())).map((u) => {
|
|
87
|
+
const i = ye(u, (n) => e(`core.form.date.${n.replace(/-/g, "_")}`), a);
|
|
88
|
+
return { ...i, disabled: Z(i.value, t()) };
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
const Pe = ["id", "name", "value", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], Ve = ["aria-label", "onClick"], Be = { class: "flex flex-col gap-2.5" }, Ee = {
|
|
93
|
+
key: 0,
|
|
94
|
+
class: "border-t border-border-separator pt-2.5"
|
|
95
|
+
}, Me = { class: "text-footnote text-content-muted" }, Ye = /* @__PURE__ */ re({
|
|
96
|
+
__name: "DateField",
|
|
97
|
+
props: /* @__PURE__ */ G(/* @__PURE__ */ se({
|
|
98
|
+
label: {},
|
|
99
|
+
labelHidden: { type: Boolean },
|
|
100
|
+
hint: {},
|
|
101
|
+
error: {},
|
|
102
|
+
required: { type: Boolean },
|
|
103
|
+
editable: { type: Boolean },
|
|
104
|
+
disabled: { type: Boolean },
|
|
105
|
+
lockedReason: {},
|
|
106
|
+
presentation: {},
|
|
107
|
+
name: {},
|
|
108
|
+
min: {},
|
|
109
|
+
max: {},
|
|
110
|
+
disabledDates: { type: [Array, Function] },
|
|
111
|
+
openOn: {},
|
|
112
|
+
quickPicks: {}
|
|
113
|
+
}, { ...be, min: void 0, max: void 0, disabledDates: void 0, openOn: void 0, quickPicks: void 0 }), {
|
|
114
|
+
modelValue: { default: null },
|
|
115
|
+
modelModifiers: {}
|
|
116
|
+
}),
|
|
117
|
+
emits: /* @__PURE__ */ G(["focus", "blur"], ["update:modelValue"]),
|
|
118
|
+
setup(o, { expose: r, emit: t }) {
|
|
119
|
+
const e = o, a = oe(o, "modelValue"), u = t, { t: i } = L(), n = W(), x = ue(), c = T("input"), m = T("popover"), w = T("calendar"), N = T("sheet"), k = p(() => ({ min: e.min, max: e.max, disabled: e.disabledDates })), b = Oe(() => k.value), f = ke({
|
|
120
|
+
model: a,
|
|
121
|
+
display: (l) => n.date(l),
|
|
122
|
+
parse: (l) => {
|
|
123
|
+
const d = b.parse(l);
|
|
124
|
+
return d ? b.available(d) ? { value: d } : { error: b.unavailableMessage() } : { error: b.invalidMessage() };
|
|
125
|
+
}
|
|
126
|
+
}), P = qe(() => e.quickPicks, () => x.value, () => k.value), z = p(() => e.error || f.message.value), V = p(() => a.value ? n.date(a.value) : null), ee = me("date", () => z.value ? "error" : e.disabled ? "locked" : "rest"), U = p(() => f.typed.value ?? (ge(a.value) ? a.value : null));
|
|
127
|
+
async function B(l) {
|
|
128
|
+
e.disabled || (m.value?.present(), l && (await J(), await J(), w.value?.focus()));
|
|
129
|
+
}
|
|
130
|
+
function te(l) {
|
|
131
|
+
l.key === "Enter" ? (f.commit(), m.value?.dismiss()) : l.key === "ArrowDown" && (l.preventDefault(), B(!0));
|
|
132
|
+
}
|
|
133
|
+
function R(l, d) {
|
|
134
|
+
f.set(l), d();
|
|
135
|
+
}
|
|
136
|
+
return r({ focus: () => c.value?.focus() }), (l, d) => (g(), Y(fe, E({ ...s(pe)(e), error: z.value }, {
|
|
137
|
+
value: V.value,
|
|
138
|
+
"value-style": "numeric"
|
|
139
|
+
}), ae({
|
|
140
|
+
default: y(({ id: A, describedby: I, invalid: Q }) => [
|
|
141
|
+
s(x) ? (g(), C(H, { key: 0 }, [
|
|
142
|
+
D(ie, E({ id: A, "aria-describedby": I }, {
|
|
143
|
+
disabled: e.disabled,
|
|
144
|
+
invalid: Q,
|
|
145
|
+
placeholder: s(i)("core.form.select.choose"),
|
|
146
|
+
onClick: d[0] || (d[0] = (_) => N.value?.present())
|
|
147
|
+
}), {
|
|
148
|
+
default: y(() => [
|
|
149
|
+
V.value ? (g(), C(H, { key: 0 }, [
|
|
150
|
+
ne(K(V.value), 1)
|
|
151
|
+
], 64)) : M("", !0)
|
|
152
|
+
]),
|
|
153
|
+
_: 1
|
|
154
|
+
}, 16, ["disabled", "invalid", "placeholder"]),
|
|
155
|
+
D(he, {
|
|
156
|
+
ref_key: "sheet",
|
|
157
|
+
ref: N,
|
|
158
|
+
title: e.label ?? s(i)("core.form.date.calendar"),
|
|
159
|
+
mode: "date",
|
|
160
|
+
"model-value": a.value,
|
|
161
|
+
min: e.min,
|
|
162
|
+
max: e.max,
|
|
163
|
+
"disabled-dates": e.disabledDates,
|
|
164
|
+
"open-on": e.openOn,
|
|
165
|
+
shortcuts: s(P),
|
|
166
|
+
clearable: !e.required,
|
|
167
|
+
"onUpdate:modelValue": s(f).set
|
|
168
|
+
}, null, 8, ["title", "model-value", "min", "max", "disabled-dates", "open-on", "shortcuts", "clearable", "onUpdate:modelValue"])
|
|
169
|
+
], 64)) : (g(), Y(ce, {
|
|
170
|
+
key: 1,
|
|
171
|
+
ref_key: "popover",
|
|
172
|
+
ref: m,
|
|
173
|
+
label: e.label ?? s(i)("core.form.date.calendar"),
|
|
174
|
+
width: "lg",
|
|
175
|
+
placement: "bottom-start",
|
|
176
|
+
arrow: !1,
|
|
177
|
+
autofocus: !1
|
|
178
|
+
}, {
|
|
179
|
+
trigger: y(({ attrs: _, presented: $ }) => [
|
|
180
|
+
O("div", {
|
|
181
|
+
class: le(["inline-flex max-w-full items-center gap-2", s(ee)])
|
|
182
|
+
}, [
|
|
183
|
+
O("input", E({
|
|
184
|
+
id: A,
|
|
185
|
+
ref_key: "input",
|
|
186
|
+
ref: c
|
|
187
|
+
}, _, {
|
|
188
|
+
type: "text",
|
|
189
|
+
role: "combobox",
|
|
190
|
+
autocomplete: "off",
|
|
191
|
+
size: "16",
|
|
192
|
+
name: e.name,
|
|
193
|
+
value: s(f).text.value,
|
|
194
|
+
placeholder: s(b).placeholder.value,
|
|
195
|
+
disabled: e.disabled,
|
|
196
|
+
required: e.required,
|
|
197
|
+
"aria-required": e.required || void 0,
|
|
198
|
+
"aria-invalid": Q || void 0,
|
|
199
|
+
"aria-describedby": I,
|
|
200
|
+
class: "block min-h-7 min-w-0 border-0 bg-transparent py-1 pl-2.5 text-body tabular-nums text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed",
|
|
201
|
+
onInput: d[1] || (d[1] = (v) => s(f).input(v.target.value)),
|
|
202
|
+
onFocus: d[2] || (d[2] = (v) => u("focus", v)),
|
|
203
|
+
onBlur: d[3] || (d[3] = (v) => {
|
|
204
|
+
s(f).commit(), u("blur", v);
|
|
205
|
+
}),
|
|
206
|
+
onKeydown: te,
|
|
207
|
+
onClick: d[4] || (d[4] = (v) => B(!1))
|
|
208
|
+
}), null, 16, Pe),
|
|
209
|
+
e.disabled ? M("", !0) : (g(), C("button", {
|
|
210
|
+
key: 0,
|
|
211
|
+
type: "button",
|
|
212
|
+
tabindex: "-1",
|
|
213
|
+
"aria-label": s(i)("core.form.date.open"),
|
|
214
|
+
class: "mr-2 flex shrink-0 cursor-pointer items-center text-content-link",
|
|
215
|
+
onClick: (v) => $ ? m.value?.dismiss() : B(!0)
|
|
216
|
+
}, [
|
|
217
|
+
D(s(de), {
|
|
218
|
+
name: "calendarLine",
|
|
219
|
+
size: 18
|
|
220
|
+
})
|
|
221
|
+
], 8, Ve))
|
|
222
|
+
], 2)
|
|
223
|
+
]),
|
|
224
|
+
default: y(({ dismiss: _ }) => [
|
|
225
|
+
O("div", Be, [
|
|
226
|
+
D(xe, {
|
|
227
|
+
ref_key: "calendar",
|
|
228
|
+
ref: w,
|
|
229
|
+
"model-value": U.value,
|
|
230
|
+
min: e.min,
|
|
231
|
+
max: e.max,
|
|
232
|
+
"disabled-dates": e.disabledDates,
|
|
233
|
+
"open-on": e.openOn,
|
|
234
|
+
"month-picker": "",
|
|
235
|
+
"onUpdate:modelValue": ($) => R($, _)
|
|
236
|
+
}, null, 8, ["model-value", "min", "max", "disabled-dates", "open-on", "onUpdate:modelValue"]),
|
|
237
|
+
s(P).length > 0 ? (g(), C("div", Ee, [
|
|
238
|
+
D(we, {
|
|
239
|
+
items: s(P),
|
|
240
|
+
selected: U.value,
|
|
241
|
+
onPick: ($) => R($, _)
|
|
242
|
+
}, null, 8, ["items", "selected", "onPick"])
|
|
243
|
+
])) : M("", !0),
|
|
244
|
+
O("p", Me, K(s(i)("core.form.date.keys")), 1)
|
|
245
|
+
])
|
|
246
|
+
]),
|
|
247
|
+
_: 2
|
|
248
|
+
}, 1032, ["label"]))
|
|
249
|
+
]),
|
|
250
|
+
_: 2
|
|
251
|
+
}, [
|
|
252
|
+
l.$slots.trailing ? {
|
|
253
|
+
name: "trailing",
|
|
254
|
+
fn: y(() => [
|
|
255
|
+
S(l.$slots, "trailing")
|
|
256
|
+
]),
|
|
257
|
+
key: "0"
|
|
258
|
+
} : void 0,
|
|
259
|
+
l.$slots.labelTrailing ? {
|
|
260
|
+
name: "labelTrailing",
|
|
261
|
+
fn: y(() => [
|
|
262
|
+
S(l.$slots, "labelTrailing")
|
|
263
|
+
]),
|
|
264
|
+
key: "1"
|
|
265
|
+
} : void 0,
|
|
266
|
+
l.$slots.readonly ? {
|
|
267
|
+
name: "readonly",
|
|
268
|
+
fn: y(() => [
|
|
269
|
+
S(l.$slots, "readonly")
|
|
270
|
+
]),
|
|
271
|
+
key: "2"
|
|
272
|
+
} : void 0
|
|
273
|
+
]), 1040, ["value"]));
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
export {
|
|
277
|
+
Ye as _,
|
|
278
|
+
qe as a,
|
|
279
|
+
Qe as s,
|
|
280
|
+
Oe as u
|
|
281
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as B, useTemplateRef as C, computed as y, ref as v, openBlock as D, createBlock as z, unref as r, withCtx as m, createVNode as F, createElementVNode as b, normalizeClass as $, toDisplayString as h } from "vue";
|
|
2
2
|
import { useI18n as q } from "vue-i18n";
|
|
3
3
|
import { a as k } from "./error-CD7x0Jrz.js";
|
|
4
|
-
import { u as V, _ as N } from "./CollectionPage.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as V, _ as N } from "./CollectionPage.vue_vue_type_script_setup_true_lang-BNM_cbXa.js";
|
|
5
5
|
import { u as P } from "./describeError-B-NMa--w.js";
|
|
6
6
|
import { u as I } from "./format-D8X4zsx6.js";
|
|
7
|
-
import { e as a, R as O } from "./index-
|
|
7
|
+
import { e as a, R as O } from "./index-D-0JNiFF.js";
|
|
8
8
|
import { _ as W } from "./AlertDialog.vue_vue_type_script_setup_true_lang-whA4WLdl.js";
|
|
9
9
|
import { t as i } from "./toast-CqSDTWRX.js";
|
|
10
10
|
import { u as Y } from "./useLoad-M7V-AVwR.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as B, openBlock as d, createBlock as L, withCtx as N, createTextVNode as v, toDisplayString as m, unref as h, createCommentVNode as i, inject as C, provide as y, ref as R, useSlots as O, computed as n, shallowReactive as E, useTemplateRef as V, useId as A, createElementBlock as p, normalizeStyle as M, normalizeClass as G, createElementVNode as S, renderSlot as f } from "vue";
|
|
2
2
|
import { s as T, u as W } from "./sectionIndex-BS0ic5W7.js";
|
|
3
|
-
import { d as $, g as j } from "./control-
|
|
3
|
+
import { d as $, g as j } from "./control-B4SdblL6.js";
|
|
4
4
|
import { useI18n as D } from "vue-i18n";
|
|
5
5
|
import { _ as q } from "./Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
|
|
6
6
|
const H = /* @__PURE__ */ B({
|
|
@@ -50,7 +50,7 @@ function le(s) {
|
|
|
50
50
|
register: (t, o) => e.register(t, o)
|
|
51
51
|
}), e;
|
|
52
52
|
}
|
|
53
|
-
const Q = ["id"], U = {
|
|
53
|
+
const Q = ["id", "data-group"], U = {
|
|
54
54
|
key: 0,
|
|
55
55
|
class: "flex min-w-0 items-end gap-2 px-row-inset pb-2"
|
|
56
56
|
}, X = { class: "min-w-0 flex-1 text-subheadline font-semibold text-content-strong compact:text-footnote compact:font-normal compact:uppercase compact:tracking-wide compact:text-content-muted" }, Y = { class: "form-group-cell rounded-group bg-surface-cell shadow-group" }, Z = {
|
|
@@ -93,6 +93,7 @@ const Q = ["id"], U = {
|
|
|
93
93
|
ref: _,
|
|
94
94
|
id: e.section ? h(w) : void 0,
|
|
95
95
|
"data-test": "form-group",
|
|
96
|
+
"data-group": e.group,
|
|
96
97
|
class: G(["form-group flex min-w-0 flex-col has-[>.form-group-cell:empty]:hidden", { "scroll-mt-4": e.section }]),
|
|
97
98
|
style: M({ "--form-label-width": e.labelWidth })
|
|
98
99
|
}, [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as n, provide as f, computed as s, useTemplateRef as u, openBlock as t, createElementBlock as p, withModifiers as c, createBlock as d, createCommentVNode as b, renderSlot as _ } from "vue";
|
|
2
|
-
import { d as v } from "./control-
|
|
2
|
+
import { d as v } from "./control-B4SdblL6.js";
|
|
3
3
|
import { _ as k } from "./FormErrors.vue_vue_type_script_setup_true_lang-DWcVKZM3.js";
|
|
4
4
|
const x = /* @__PURE__ */ n({
|
|
5
5
|
__name: "FormView",
|
|
@@ -3,17 +3,17 @@ import { useI18n as V } from "vue-i18n";
|
|
|
3
3
|
import { RouterLink as B } from "vue-router";
|
|
4
4
|
import { u as E } from "./format-D8X4zsx6.js";
|
|
5
5
|
import { u as T } from "./useResourceForm-CP2lCwmD.js";
|
|
6
|
-
import { _ as h } from "./FormGroup.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as F } from "./FormView.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as L } from "./SelectField.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as f } from "./TextField.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as h } from "./FormGroup.vue_vue_type_script_setup_true_lang-DSwSRsA5.js";
|
|
7
|
+
import { _ as F } from "./FormView.vue_vue_type_script_setup_true_lang-Dbfg_jGh.js";
|
|
8
|
+
import { _ as L } from "./SelectField.vue_vue_type_script_setup_true_lang-C3FbRQW7.js";
|
|
9
|
+
import { _ as f } from "./TextField.vue_vue_type_script_setup_true_lang-CP2WeU36.js";
|
|
10
10
|
import { u as A } from "./useSaveChrome-7huA3FzR.js";
|
|
11
|
-
import { P as D, b as G, i as I } from "./index-
|
|
11
|
+
import { P as D, b as G, i as I } from "./index-Dxu7ZfCC.js";
|
|
12
12
|
import { t as M } from "./toast-CqSDTWRX.js";
|
|
13
13
|
import { u as O } from "./platform-q3cjODLx.js";
|
|
14
14
|
import { b as U } from "./routeResource-DlTsGTg_.js";
|
|
15
15
|
import { u as j } from "./fieldMessages-6HVzSDqG.js";
|
|
16
|
-
import { _ as $ } from "./ActionRow.vue_vue_type_script_setup_true_lang-
|
|
16
|
+
import { _ as $ } from "./ActionRow.vue_vue_type_script_setup_true_lang-QPvYudWc.js";
|
|
17
17
|
import { _ as z } from "./SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js";
|
|
18
18
|
import { u as H } from "./languages-BShG9LpE.js";
|
|
19
19
|
const J = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as G, useId as Y, ref as v, computed as y, watch as k, nextTick as h, onUnmounted as j, openBlock as o, createElementBlock as r, Fragment as x, renderSlot as J, createCommentVNode as u, createBlock as d, Teleport as Q, createVNode as W, Transition as X, withCtx as Z, mergeProps as ee, unref as p, renderList as te, normalizeClass as ne, createElementVNode as oe, toDisplayString as R } from "vue";
|
|
2
2
|
import { _ } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
3
3
|
import { _ as ae } from "./ToneDot.vue_vue_type_script_setup_true_lang-99rNn-L5.js";
|
|
4
|
-
import { u as ie } from "./anchored-
|
|
4
|
+
import { u as ie } from "./anchored-DpuUwf-9.js";
|
|
5
5
|
import { I as re } from "./dialogStack-DZZg55w0.js";
|
|
6
6
|
import { C as O } from "./closeOverlays-CjVsIrpL.js";
|
|
7
7
|
const se = ["aria-label"], ce = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as _, computed as d, openBlock as y, createBlock as w, unref as e, withCtx as i, createVNode as l } from "vue";
|
|
2
2
|
import { useI18n as v } from "vue-i18n";
|
|
3
3
|
import { useRoute as k, useRouter as R } from "vue-router";
|
|
4
|
-
import { a as $ } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { a as $ } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-CxU9aNRQ.js";
|
|
5
5
|
import { _ as b } from "./AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js";
|
|
6
6
|
import { u as g } from "./useLoad-M7V-AVwR.js";
|
|
7
|
-
import { a as x, c as u } from "./index-
|
|
8
|
-
import { _ as P } from "./RoleEditor.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { a as x, c as u } from "./index-D6BjUQJT.js";
|
|
8
|
+
import { _ as P } from "./RoleEditor.vue_vue_type_script_setup_true_lang-D-b-O6SG.js";
|
|
9
9
|
const V = /* @__PURE__ */ _({
|
|
10
10
|
__name: "NewRolePage",
|
|
11
11
|
setup(h) {
|