@wssto2/vue-core 0.4.3 → 0.4.5
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/{Activity-DnW1LTO2.js → Activity-DukTfcmn.js} +2 -2
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-bxYKlHB7.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-B7qSUiee.js} +137 -129
- package/dist/{Changes-DJDSlnp1.js → Changes-Dhi7EBe9.js} +2 -2
- package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-BuAdhiy_.js +1514 -0
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-DBtMgcW6.js → DataTable.vue_vue_type_script_setup_true_lang-KPm5NrDE.js} +1 -1
- package/dist/{DeadLetters-C8ICE47Y.js → DeadLetters-CfKE1axC.js} +2 -2
- package/dist/{General-BbEDM3y_.js → General-BwT5Y_TN.js} +2 -2
- package/dist/IconTile.vue_vue_type_script_setup_true_lang-_FXvaj93.js +50 -0
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-ClsOlOSr.js → Menu.vue_vue_type_script_setup_true_lang-uPmxWvds.js} +56 -50
- package/dist/{NewRolePage-CYfEuRIV.js → NewRolePage-B8OGQE-A.js} +3 -3
- package/dist/{ProfilePage-V2ywWbL3.js → ProfilePage-DIJEhiW-.js} +4 -4
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-BCTNrzBb.js → RecordHeader.vue_vue_type_script_setup_true_lang-D87Hs75d.js} +1 -1
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-C_tQTUyN.js → ResourcePage.vue_vue_type_script_setup_true_lang-gJGEfLzX.js} +1 -1
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-et4dyitf.js → RoleEditor.vue_vue_type_script_setup_true_lang-4YJhNgbn.js} +1 -1
- package/dist/{RolePage-CjCBcRau.js → RolePage-Bn0re7VE.js} +6 -6
- package/dist/{RolesPage-Cr3Hlr4Q.js → RolesPage-CjEAQvTq.js} +3 -3
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-BtQjHjd4.js → SectionList.vue_vue_type_script_setup_true_lang-B0p_8xQG.js} +2 -2
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-BGc8A9AQ.js → SectionNavigator.vue_vue_type_script_setup_true_lang-ROl9_pdO.js} +3 -3
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-BJoAkBo2.js +437 -0
- package/dist/{SessionList.vue_vue_type_script_setup_true_lang-D5KRitar.js → SessionList.vue_vue_type_script_setup_true_lang-D4k5QeWS.js} +1 -1
- package/dist/{Sessions-_35nYhoR.js → Sessions-BZnBtu7h.js} +2 -2
- package/dist/{SettingsPage-CDESMl3M.js → SettingsPage-BmRCB75J.js} +2 -2
- package/dist/{SignIn-CkXwxorT.js → SignIn-D-n9cfMH.js} +2 -2
- package/dist/{SignInPage-BdwfKB31.js → SignInPage-BzIP6sPa.js} +1 -1
- package/dist/{SignInTable.vue_vue_type_script_setup_true_lang-CifEaH7c.js → SignInTable.vue_vue_type_script_setup_true_lang-ALAuc0sI.js} +1 -1
- package/dist/{SignIns-Dvdid5QB.js → SignIns-dFIzemgy.js} +2 -2
- package/dist/ToneDot.vue_vue_type_script_setup_true_lang-99rNn-L5.js +24 -0
- package/dist/{UserRecord-CM0JQQGT.js → UserRecord-DoOu1hWB.js} +5 -5
- package/dist/{UsersList-CR3RpQ4-.js → UsersList-CYBGEOqE.js} +4 -4
- package/dist/access/index.js +1 -1
- package/dist/collection/CollectionCell.vue.d.ts +2 -0
- package/dist/collection/RecordIdentity.vue.d.ts +6 -0
- package/dist/collection/filters.d.ts +4 -0
- package/dist/collection/index.js +3 -3
- package/dist/collection/rowInteractions.d.ts +2 -0
- package/dist/controls/IconTile.vue.d.ts +10 -3
- package/dist/controls/index.js +1 -1
- package/dist/form/I18nField.vue.d.ts +1 -1
- package/dist/form/TextareaField.vue.d.ts +1 -1
- package/dist/form/index.js +4 -4
- package/dist/form/options.d.ts +3 -0
- package/dist/identity/index.js +1 -1
- package/dist/{index-ClU_gPzK.js → index-BHt1dLX2.js} +2 -2
- package/dist/{index-B1jflSA6.js → index-BVX0nmMv.js} +10 -10
- package/dist/{index-DVp6cwfN.js → index-CixCeO47.js} +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/overlay/AlertDialog.vue.d.ts +2 -2
- package/dist/overlay/Menu.vue.d.ts +3 -0
- package/dist/overlay/index.js +1 -1
- package/dist/page/AdaptivePageShell.vue.d.ts +2 -2
- package/dist/page/ResourceHeader.vue.d.ts +2 -2
- package/dist/page/index.js +5 -5
- package/dist/resource/index.js +1 -1
- package/dist/{rowLayout-CZ7uZFnE.js → rowLayout-BkQWulan.js} +239 -221
- package/dist/shell/NavigationList.vue.d.ts +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/state/ToneDot.vue.d.ts +12 -0
- package/dist/{status-D2Fmu3YH.js → status-D3cLPSCh.js} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/styles/collection.css +1 -1
- package/src/styles/theme.css +7 -0
- package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-B-TJDr4d.js +0 -1485
- package/dist/IconTile.vue_vue_type_script_setup_true_lang-BpIjgu5E.js +0 -40
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-7O1BAx04.js +0 -423
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as S, ref as g, watch as w, computed as k, openBlock as i, createElementBlock as y, createVNode as _, unref as t, createElementVNode as r, withCtx as f, toDisplayString as u, Fragment as C, renderList as N, createBlock as x, createTextVNode as j, createCommentVNode as R } from "vue";
|
|
2
2
|
import { useI18n as q } from "vue-i18n";
|
|
3
|
-
import { _ as D } from "./IconTile.vue_vue_type_script_setup_true_lang-
|
|
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-B8mJm946.js";
|
|
6
6
|
import { _ as U } from "./DateField.vue_vue_type_script_setup_true_lang-GVasv8ao.js";
|
|
7
7
|
import { _ as T } from "./FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js";
|
|
8
8
|
import { e as z } from "./control-7EP4tjYy.js";
|
|
9
|
-
import { P as G, c as H, i as J } from "./index-
|
|
9
|
+
import { P as G, c as H, i as J } from "./index-BVX0nmMv.js";
|
|
10
10
|
import { u as K } from "./platform-q3cjODLx.js";
|
|
11
11
|
import { b as M } from "./routeResource-DstM0hvf.js";
|
|
12
12
|
import { _ as Q } from "./AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js";
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as $, getCurrentInstance as D, inject as F, computed as k, openBlock as
|
|
1
|
+
import { defineComponent as $, getCurrentInstance as D, inject as F, computed as k, openBlock as r, createBlock as _, Teleport as O, renderSlot as v, createElementBlock as p, Fragment as I, renderList as M, withCtx as x, createTextVNode as w, toDisplayString as h, unref as l, createElementVNode as m, mergeProps as H, createVNode as b, createCommentVNode as f, toValue as z, watch as T, onMounted as R, onBeforeUnmount as C, useTemplateRef as V, provide as A, ref as K, createSlots as q, normalizeClass as Q } from "vue";
|
|
2
2
|
import { a as j } from "./mediaQuery-CygcXmFW.js";
|
|
3
3
|
import { b as U } from "./bottomDock-BZEiOPYZ.js";
|
|
4
|
-
import { useI18n as
|
|
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-
|
|
8
|
-
import { RouterLink as
|
|
7
|
+
import { _ as Y } from "./Menu.vue_vue_type_script_setup_true_lang-uPmxWvds.js";
|
|
8
|
+
import { RouterLink as B, useRoute as G } from "vue-router";
|
|
9
9
|
import { a as N, c as J, p as X } from "./chrome-nUcmVu8G.js";
|
|
10
10
|
import { d as Z } from "./context-Ch1r4fdN.js";
|
|
11
11
|
const ee = /* @__PURE__ */ $({
|
|
12
12
|
__name: "BottomDockPortal",
|
|
13
|
-
setup(
|
|
13
|
+
setup(d) {
|
|
14
14
|
const e = D() ? F(U, null) : null, n = k(() => e?.value ?? null);
|
|
15
|
-
return (
|
|
15
|
+
return (c, i) => (r(), _(O, {
|
|
16
16
|
to: n.value,
|
|
17
17
|
disabled: !n.value
|
|
18
18
|
}, [
|
|
19
|
-
v(
|
|
19
|
+
v(c.$slots, "default")
|
|
20
20
|
], 8, ["to", "disabled"]));
|
|
21
21
|
}
|
|
22
22
|
}), te = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "flex min-w-0 flex-wrap items-center justify-end gap-2"
|
|
25
|
-
}, ne = ["aria-label", "onClick"],
|
|
25
|
+
}, ne = ["aria-label", "onClick"], E = /* @__PURE__ */ $({
|
|
26
26
|
__name: "PageActions",
|
|
27
27
|
props: {
|
|
28
28
|
actions: {},
|
|
29
29
|
leading: {}
|
|
30
30
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const e =
|
|
31
|
+
setup(d) {
|
|
32
|
+
const e = d, { t: n } = P(), c = k(() => [
|
|
33
33
|
...e.leading ? [e.leading] : [],
|
|
34
34
|
...e.actions.filter((t) => t.placement !== "overflow" && t.tone !== "critical")
|
|
35
|
-
]),
|
|
35
|
+
]), i = k(() => e.actions.filter((t) => t.placement === "overflow" || t.tone === "critical").map((t) => ({
|
|
36
36
|
id: t.id,
|
|
37
37
|
label: t.label,
|
|
38
38
|
icon: t.icon,
|
|
@@ -41,38 +41,38 @@ const ee = /* @__PURE__ */ $({
|
|
|
41
41
|
processing: t.processing,
|
|
42
42
|
onSelect: t.onClick
|
|
43
43
|
})));
|
|
44
|
-
function
|
|
44
|
+
function u(t) {
|
|
45
45
|
return t === e.leading || t.prominence === "plain" ? "plain" : t.prominence === "standard" ? "standard" : t.placement === "primary" ? "primary" : "standard";
|
|
46
46
|
}
|
|
47
|
-
return (t,
|
|
48
|
-
(
|
|
49
|
-
key:
|
|
50
|
-
prominence:
|
|
51
|
-
icon:
|
|
52
|
-
disabled:
|
|
53
|
-
processing:
|
|
54
|
-
"keyboard-shortcut":
|
|
55
|
-
"data-page-action":
|
|
56
|
-
onClick: (g) =>
|
|
47
|
+
return (t, o) => c.value.length || i.value.length ? (r(), p("div", te, [
|
|
48
|
+
(r(!0), p(I, null, M(c.value, (s) => (r(), _(W, {
|
|
49
|
+
key: s.id,
|
|
50
|
+
prominence: u(s),
|
|
51
|
+
icon: s.icon,
|
|
52
|
+
disabled: s.disabled,
|
|
53
|
+
processing: s.processing,
|
|
54
|
+
"keyboard-shortcut": s.keyboardShortcut,
|
|
55
|
+
"data-page-action": s.id,
|
|
56
|
+
onClick: (g) => s.onClick()
|
|
57
57
|
}, {
|
|
58
58
|
default: x(() => [
|
|
59
|
-
w(h(
|
|
59
|
+
w(h(s.label), 1)
|
|
60
60
|
]),
|
|
61
61
|
_: 2
|
|
62
62
|
}, 1032, ["prominence", "icon", "disabled", "processing", "keyboard-shortcut", "data-page-action", "onClick"]))), 128)),
|
|
63
|
-
|
|
63
|
+
i.value.length ? (r(), _(Y, {
|
|
64
64
|
key: 0,
|
|
65
|
-
items:
|
|
66
|
-
label:
|
|
65
|
+
items: i.value,
|
|
66
|
+
label: l(n)("core.page.more_actions")
|
|
67
67
|
}, {
|
|
68
|
-
trigger: x(({ toggle:
|
|
68
|
+
trigger: x(({ toggle: s, attrs: g }) => [
|
|
69
69
|
m("button", H({ type: "button" }, g, {
|
|
70
|
-
"aria-label":
|
|
70
|
+
"aria-label": l(n)("core.page.more_actions"),
|
|
71
71
|
"data-page-overflow": "",
|
|
72
72
|
class: "hit-target flex size-9 cursor-pointer items-center justify-center rounded-button bg-fill text-content-strong transition-colors duration-motion-fast hover:bg-fill-strong focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus",
|
|
73
|
-
onClick:
|
|
73
|
+
onClick: s
|
|
74
74
|
}), [
|
|
75
|
-
b(
|
|
75
|
+
b(l(y), { name: "moreLine" })
|
|
76
76
|
], 16, ne)
|
|
77
77
|
]),
|
|
78
78
|
_: 1
|
|
@@ -99,63 +99,63 @@ const ee = /* @__PURE__ */ $({
|
|
|
99
99
|
leading: {},
|
|
100
100
|
status: {}
|
|
101
101
|
},
|
|
102
|
-
setup(
|
|
103
|
-
const e =
|
|
104
|
-
return (
|
|
105
|
-
|
|
102
|
+
setup(d) {
|
|
103
|
+
const e = d, { t: n } = P(), c = k(() => e.path && e.path.length >= 2 ? e.path.slice(0, -1) : []), i = k(() => e.path && c.value.length ? e.path[e.path.length - 1] ?? null : e.back ?? null);
|
|
104
|
+
return (u, t) => (r(), p("div", ae, [
|
|
105
|
+
c.value.length && i.value ? (r(), p("nav", {
|
|
106
106
|
key: 0,
|
|
107
|
-
"aria-label":
|
|
107
|
+
"aria-label": l(n)("core.page.breadcrumbs"),
|
|
108
108
|
class: "-ml-1 flex min-w-0 items-center"
|
|
109
109
|
}, [
|
|
110
110
|
m("span", se, [
|
|
111
|
-
b(
|
|
111
|
+
b(l(y), {
|
|
112
112
|
name: "arrowLeftSLine",
|
|
113
113
|
size: 20
|
|
114
114
|
})
|
|
115
115
|
]),
|
|
116
116
|
m("ol", le, [
|
|
117
|
-
(
|
|
118
|
-
key:
|
|
117
|
+
(r(!0), p(I, null, M(c.value, (o) => (r(), p("li", {
|
|
118
|
+
key: o.label,
|
|
119
119
|
class: "flex min-w-0 max-w-48 shrink items-center max-lg:hidden"
|
|
120
120
|
}, [
|
|
121
|
-
b(
|
|
122
|
-
to:
|
|
121
|
+
b(l(B), {
|
|
122
|
+
to: o.to,
|
|
123
123
|
"data-page-path-item": "",
|
|
124
124
|
class: "min-w-0 truncate rounded-control px-1 py-1 text-subheadline text-content-muted hover:bg-tint-soft hover:text-content-link focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus"
|
|
125
125
|
}, {
|
|
126
126
|
default: x(() => [
|
|
127
|
-
w(h(
|
|
127
|
+
w(h(o.label), 1)
|
|
128
128
|
]),
|
|
129
129
|
_: 2
|
|
130
130
|
}, 1032, ["to"]),
|
|
131
131
|
m("span", re, [
|
|
132
|
-
b(
|
|
132
|
+
b(l(y), {
|
|
133
133
|
name: "arrowRightSLine",
|
|
134
134
|
size: 14
|
|
135
135
|
})
|
|
136
136
|
])
|
|
137
137
|
]))), 128)),
|
|
138
138
|
m("li", ie, [
|
|
139
|
-
b(
|
|
140
|
-
to:
|
|
139
|
+
b(l(B), {
|
|
140
|
+
to: i.value.to,
|
|
141
141
|
"data-page-back": "",
|
|
142
142
|
class: "min-w-0 truncate rounded-control px-1 py-1 text-subheadline font-medium text-content-link hover:bg-tint-soft focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus"
|
|
143
143
|
}, {
|
|
144
144
|
default: x(() => [
|
|
145
|
-
w(h(
|
|
145
|
+
w(h(i.value.label), 1)
|
|
146
146
|
]),
|
|
147
147
|
_: 1
|
|
148
148
|
}, 8, ["to"])
|
|
149
149
|
])
|
|
150
150
|
])
|
|
151
|
-
], 8, oe)) : e.back ? (
|
|
151
|
+
], 8, oe)) : e.back ? (r(), _(l(B), {
|
|
152
152
|
key: 1,
|
|
153
153
|
to: e.back.to,
|
|
154
154
|
"data-page-back": "",
|
|
155
155
|
class: "-ml-1 flex min-w-0 items-center gap-0.5 rounded-control py-1 pr-2 pl-0.5 text-subheadline font-medium text-content-link hover:bg-tint-soft focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus"
|
|
156
156
|
}, {
|
|
157
157
|
default: x(() => [
|
|
158
|
-
b(
|
|
158
|
+
b(l(y), {
|
|
159
159
|
name: "arrowLeftSLine",
|
|
160
160
|
size: 20
|
|
161
161
|
}),
|
|
@@ -164,30 +164,30 @@ const ee = /* @__PURE__ */ $({
|
|
|
164
164
|
_: 1
|
|
165
165
|
}, 8, ["to"])) : f("", !0),
|
|
166
166
|
t[1] || (t[1] = m("div", { class: "min-w-0 flex-1" }, null, -1)),
|
|
167
|
-
v(
|
|
168
|
-
e.status ? (
|
|
167
|
+
v(u.$slots, "pager"),
|
|
168
|
+
e.status ? (r(), p("span", ue, [
|
|
169
169
|
t[0] || (t[0] = m("span", {
|
|
170
170
|
class: "size-1.75 rounded-full bg-tint",
|
|
171
171
|
"aria-hidden": "true"
|
|
172
172
|
}, null, -1)),
|
|
173
173
|
w(h(e.status), 1)
|
|
174
174
|
])) : f("", !0),
|
|
175
|
-
b(
|
|
175
|
+
b(E, {
|
|
176
176
|
actions: e.actions,
|
|
177
177
|
leading: e.leading
|
|
178
178
|
}, null, 8, ["actions", "leading"])
|
|
179
179
|
]));
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
|
-
function pe(
|
|
183
|
-
const
|
|
184
|
-
if (!
|
|
185
|
-
const
|
|
186
|
-
let
|
|
187
|
-
|
|
188
|
-
!
|
|
189
|
-
}),
|
|
190
|
-
|
|
182
|
+
function pe(d, e, n = !0) {
|
|
183
|
+
const c = N();
|
|
184
|
+
if (!c || !z(n)) return;
|
|
185
|
+
const i = c.claim();
|
|
186
|
+
let u = null;
|
|
187
|
+
T(() => z(e), (t) => i.setTitle(t), { immediate: !0 }), R(() => {
|
|
188
|
+
!d.value || typeof IntersectionObserver > "u" || (u = new IntersectionObserver(([t]) => i.setTitleInView(t?.isIntersecting ?? !0), { rootMargin: "-52px 0px 0px 0px" }), u.observe(d.value));
|
|
189
|
+
}), C(() => {
|
|
190
|
+
u?.disconnect(), i.clearTitle();
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
const me = { class: "flex min-w-0 flex-wrap items-center gap-x-4 gap-y-3" }, fe = { class: "flex min-w-0 flex-[1_1_16rem] items-center gap-3.5" }, ge = {
|
|
@@ -221,13 +221,13 @@ const me = { class: "flex min-w-0 flex-wrap items-center gap-x-4 gap-y-3" }, fe
|
|
|
221
221
|
status: { default: null },
|
|
222
222
|
inlineActions: { type: Boolean, default: !1 }
|
|
223
223
|
},
|
|
224
|
-
setup(
|
|
225
|
-
const e =
|
|
226
|
-
return pe(
|
|
224
|
+
setup(d) {
|
|
225
|
+
const e = d, { locale: n } = P(), c = j("(max-width: 47.999rem)"), i = k(() => e.count == null ? null : new Intl.NumberFormat(n.value).format(e.count)), u = V("titleElement");
|
|
226
|
+
return pe(u, () => e.title), (t, o) => (r(), p("div", me, [
|
|
227
227
|
m("div", fe, [
|
|
228
228
|
v(t.$slots, "leading", {}, () => [
|
|
229
|
-
e.icon ? (
|
|
230
|
-
b(
|
|
229
|
+
e.icon ? (r(), p("span", ge, [
|
|
230
|
+
b(l(y), {
|
|
231
231
|
name: e.icon,
|
|
232
232
|
size: 20
|
|
233
233
|
}, null, 8, ["name"])
|
|
@@ -237,24 +237,24 @@ const me = { class: "flex min-w-0 flex-wrap items-center gap-x-4 gap-y-3" }, fe
|
|
|
237
237
|
m("div", be, [
|
|
238
238
|
m("h1", {
|
|
239
239
|
ref_key: "titleElement",
|
|
240
|
-
ref:
|
|
240
|
+
ref: u,
|
|
241
241
|
class: "min-w-0 text-large-title font-semibold tracking-tight break-words text-content-strong"
|
|
242
242
|
}, h(e.title), 513),
|
|
243
|
-
|
|
243
|
+
i.value !== null ? (r(), p("span", he, h(i.value), 1)) : f("", !0)
|
|
244
244
|
]),
|
|
245
|
-
e.description ? (
|
|
245
|
+
e.description ? (r(), p("p", ke, h(e.description), 1)) : f("", !0),
|
|
246
246
|
v(t.$slots, "description")
|
|
247
247
|
])
|
|
248
248
|
]),
|
|
249
|
-
e.inlineActions || !
|
|
250
|
-
e.status ? (
|
|
251
|
-
|
|
249
|
+
e.inlineActions || !l(c) ? (r(), p("div", _e, [
|
|
250
|
+
e.status ? (r(), p("span", xe, [
|
|
251
|
+
o[0] || (o[0] = m("span", {
|
|
252
252
|
class: "size-1.75 rounded-full bg-tint",
|
|
253
253
|
"aria-hidden": "true"
|
|
254
254
|
}, null, -1)),
|
|
255
255
|
w(h(e.status), 1)
|
|
256
256
|
])) : f("", !0),
|
|
257
|
-
b(
|
|
257
|
+
b(E, {
|
|
258
258
|
actions: e.actions,
|
|
259
259
|
leading: e.leading
|
|
260
260
|
}, null, 8, ["actions", "leading"])
|
|
@@ -262,25 +262,33 @@ const me = { class: "flex min-w-0 flex-wrap items-center gap-x-4 gap-y-3" }, fe
|
|
|
262
262
|
]));
|
|
263
263
|
}
|
|
264
264
|
}), [ye, je] = Z("vue-core.pageSectionBack");
|
|
265
|
-
function $e(
|
|
266
|
-
const
|
|
267
|
-
let
|
|
268
|
-
|
|
269
|
-
|
|
265
|
+
function $e(d, e) {
|
|
266
|
+
const n = G();
|
|
267
|
+
let c = n.fullPath;
|
|
268
|
+
const i = n.matched[n.matched.length - 1];
|
|
269
|
+
T(
|
|
270
|
+
() => n.fullPath,
|
|
271
|
+
(s) => {
|
|
272
|
+
n.matched[n.matched.length - 1] === i && (c = s);
|
|
273
|
+
}
|
|
274
|
+
);
|
|
275
|
+
let u, t;
|
|
276
|
+
function o() {
|
|
277
|
+
u?.disconnect(), clearTimeout(t), document.removeEventListener("pointerdown", o, !0), document.removeEventListener("keydown", o, !0);
|
|
270
278
|
}
|
|
271
279
|
R(() => {
|
|
272
|
-
const
|
|
273
|
-
if (!
|
|
274
|
-
const
|
|
275
|
-
const
|
|
276
|
-
(
|
|
280
|
+
const s = e.focusMemory.take(c);
|
|
281
|
+
if (!s || !d.value) return;
|
|
282
|
+
const g = () => {
|
|
283
|
+
const S = Array.from(d.value?.querySelectorAll("a[href]") ?? []).find(
|
|
284
|
+
(a) => a.getAttribute("href") === s.href
|
|
277
285
|
);
|
|
278
|
-
|
|
286
|
+
S && (S.focus({ preventScroll: !0 }), window.scrollTo({ top: s.top, behavior: "instant" }), o());
|
|
279
287
|
};
|
|
280
|
-
|
|
281
|
-
}),
|
|
282
|
-
const
|
|
283
|
-
|
|
288
|
+
u = new MutationObserver(g), u.observe(d.value, { subtree: !0, childList: !0 }), document.addEventListener("pointerdown", o, !0), document.addEventListener("keydown", o, !0), t = setTimeout(o, 1e4), g();
|
|
289
|
+
}), C(() => {
|
|
290
|
+
const s = document.activeElement;
|
|
291
|
+
s instanceof HTMLAnchorElement && d.value?.contains(s) && e.focusMemory.put(c, { href: s.getAttribute("href") ?? "", top: window.scrollY }), o();
|
|
284
292
|
});
|
|
285
293
|
}
|
|
286
294
|
const Se = { key: 1 }, Te = {
|
|
@@ -299,85 +307,85 @@ const Se = { key: 1 }, Te = {
|
|
|
299
307
|
path: { default: void 0 },
|
|
300
308
|
width: { default: "full" }
|
|
301
309
|
},
|
|
302
|
-
setup(
|
|
303
|
-
const e =
|
|
310
|
+
setup(d) {
|
|
311
|
+
const e = d, n = N() ?? J();
|
|
304
312
|
A(X, n);
|
|
305
|
-
const
|
|
306
|
-
|
|
307
|
-
const
|
|
308
|
-
$e(
|
|
309
|
-
const
|
|
313
|
+
const c = n.claimShell();
|
|
314
|
+
C(c);
|
|
315
|
+
const i = V("root");
|
|
316
|
+
$e(i, n);
|
|
317
|
+
const u = j("(max-width: 47.999rem)"), t = K(null);
|
|
310
318
|
A(ye, t);
|
|
311
|
-
const
|
|
319
|
+
const o = k(() => {
|
|
312
320
|
if (t.value) return t.value;
|
|
313
321
|
if (e.back !== void 0) return e.back;
|
|
314
|
-
const
|
|
315
|
-
return
|
|
316
|
-
}),
|
|
317
|
-
const
|
|
318
|
-
return
|
|
322
|
+
const a = e.path?.[e.path.length - 1];
|
|
323
|
+
return a ? { label: a.label, to: a.to } : null;
|
|
324
|
+
}), s = k(() => {
|
|
325
|
+
const a = t.value;
|
|
326
|
+
return a ? a.path ? [...e.path ?? (e.back ? [e.back] : []), ...a.path] : null : e.path;
|
|
319
327
|
}), g = n.claim();
|
|
320
|
-
|
|
328
|
+
T(
|
|
321
329
|
() => [e.actions, e.documentTitle],
|
|
322
|
-
([
|
|
330
|
+
([a, L]) => g.setRegistration({ actions: a, leading: null, status: null, navTitle: null, documentTitle: L ?? null }),
|
|
323
331
|
{ immediate: !0 }
|
|
324
|
-
),
|
|
332
|
+
), T(o, (a) => g.setBack(a), { immediate: !0 }), C(() => {
|
|
325
333
|
g.clearRegistration(), g.clearBack();
|
|
326
334
|
});
|
|
327
|
-
const
|
|
328
|
-
return (
|
|
335
|
+
const S = { full: "", content: "max-w-content", readable: "max-w-readable" };
|
|
336
|
+
return (a, L) => (r(), p("div", {
|
|
329
337
|
ref_key: "root",
|
|
330
|
-
ref:
|
|
338
|
+
ref: i,
|
|
331
339
|
class: "min-w-0 w-full flex-1 bg-surface-page",
|
|
332
340
|
"data-page-shell": ""
|
|
333
341
|
}, [
|
|
334
|
-
|
|
342
|
+
o.value && !l(u) ? (r(), _(de, {
|
|
335
343
|
key: 0,
|
|
336
|
-
back:
|
|
337
|
-
path:
|
|
338
|
-
actions:
|
|
339
|
-
leading:
|
|
340
|
-
status:
|
|
344
|
+
back: o.value,
|
|
345
|
+
path: s.value,
|
|
346
|
+
actions: l(n).actions.value,
|
|
347
|
+
leading: l(n).leading.value,
|
|
348
|
+
status: l(n).status.value
|
|
341
349
|
}, q({ _: 2 }, [
|
|
342
|
-
|
|
350
|
+
a.$slots.pager ? {
|
|
343
351
|
name: "pager",
|
|
344
352
|
fn: x(() => [
|
|
345
|
-
v(
|
|
353
|
+
v(a.$slots, "pager")
|
|
346
354
|
]),
|
|
347
355
|
key: "0"
|
|
348
356
|
} : void 0
|
|
349
357
|
]), 1032, ["back", "path", "actions", "leading", "status"])) : f("", !0),
|
|
350
358
|
m("div", {
|
|
351
|
-
class: Q(["mx-auto flex min-w-0 flex-col gap-section-gap pt-section-gap pr-[max(var(--app-screen-padding),var(--app-safe-right))] pb-[max(var(--app-screen-padding),var(--app-safe-bottom),calc(var(--bottom-dock-h,0px)+var(--app-screen-padding)))] pl-[max(var(--app-screen-padding),var(--app-safe-left))] lg:pt-[calc(var(--app-section-gap)*1.5)] lg:pr-[max(2.5rem,var(--app-safe-right))] lg:pl-[max(2.5rem,var(--app-safe-left))]",
|
|
359
|
+
class: Q(["mx-auto flex min-w-0 flex-col gap-section-gap pt-section-gap pr-[max(var(--app-screen-padding),var(--app-safe-right))] pb-[max(var(--app-screen-padding),var(--app-safe-bottom),calc(var(--bottom-dock-h,0px)+var(--app-screen-padding)))] pl-[max(var(--app-screen-padding),var(--app-safe-left))] lg:pt-[calc(var(--app-section-gap)*1.5)] lg:pr-[max(2.5rem,var(--app-safe-right))] lg:pl-[max(2.5rem,var(--app-safe-left))]", S[e.width]])
|
|
352
360
|
}, [
|
|
353
|
-
v(
|
|
361
|
+
v(a.$slots, "header", {}, () => [
|
|
354
362
|
b(we, {
|
|
355
363
|
title: e.title,
|
|
356
364
|
description: e.description,
|
|
357
365
|
icon: e.icon,
|
|
358
366
|
count: e.count,
|
|
359
|
-
actions:
|
|
360
|
-
leading:
|
|
361
|
-
status:
|
|
367
|
+
actions: o.value ? [] : l(n).actions.value,
|
|
368
|
+
leading: o.value ? null : l(n).leading.value,
|
|
369
|
+
status: o.value ? null : l(n).status.value
|
|
362
370
|
}, null, 8, ["title", "description", "icon", "count", "actions", "leading", "status"])
|
|
363
371
|
]),
|
|
364
|
-
|
|
372
|
+
a.$slots.header && !o.value && !l(u) ? (r(), _(E, {
|
|
365
373
|
key: 0,
|
|
366
|
-
actions:
|
|
367
|
-
leading:
|
|
374
|
+
actions: l(n).actions.value,
|
|
375
|
+
leading: l(n).leading.value
|
|
368
376
|
}, null, 8, ["actions", "leading"])) : f("", !0),
|
|
369
|
-
|
|
370
|
-
v(
|
|
377
|
+
a.$slots.notices ? (r(), p("div", Se, [
|
|
378
|
+
v(a.$slots, "notices")
|
|
371
379
|
])) : f("", !0),
|
|
372
|
-
v(
|
|
373
|
-
|
|
374
|
-
v(
|
|
380
|
+
v(a.$slots, "default"),
|
|
381
|
+
a.$slots.pager && l(u) ? (r(), p("div", Te, [
|
|
382
|
+
v(a.$slots, "pager")
|
|
375
383
|
])) : f("", !0)
|
|
376
384
|
], 2),
|
|
377
|
-
|
|
385
|
+
a.$slots.bottom ? (r(), _(ee, { key: 1 }, {
|
|
378
386
|
default: x(() => [
|
|
379
387
|
m("div", Ce, [
|
|
380
|
-
v(
|
|
388
|
+
v(a.$slots, "bottom")
|
|
381
389
|
])
|
|
382
390
|
]),
|
|
383
391
|
_: 3
|
|
@@ -388,7 +396,7 @@ const Se = { key: 1 }, Te = {
|
|
|
388
396
|
export {
|
|
389
397
|
ee as _,
|
|
390
398
|
Ne as a,
|
|
391
|
-
|
|
399
|
+
E as b,
|
|
392
400
|
de as c,
|
|
393
401
|
we as d,
|
|
394
402
|
je as e,
|
|
@@ -1,12 +1,12 @@
|
|
|
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-BVX0nmMv.js";
|
|
4
4
|
import { u as S } from "./platform-q3cjODLx.js";
|
|
5
5
|
import { b as B } from "./routeResource-DstM0hvf.js";
|
|
6
6
|
import { _ as F } from "./AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js";
|
|
7
7
|
import { u as L } from "./useLoad-CYRVx6HW.js";
|
|
8
8
|
import { _ as P } from "./Avatar.vue_vue_type_script_setup_true_lang-CFIheaSr.js";
|
|
9
|
-
import { _ as I } from "./IconTile.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as I } from "./IconTile.vue_vue_type_script_setup_true_lang-_FXvaj93.js";
|
|
10
10
|
import { u as O } from "./format-B8mJm946.js";
|
|
11
11
|
import { _ as T } from "./FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js";
|
|
12
12
|
import { e as U } from "./control-7EP4tjYy.js";
|