@wssto2/vue-core 0.1.0 → 0.2.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/README.md +20 -9
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-CKghARkW.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-CeKK8_g5.js} +2 -2
- package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-BZb4qKXo.js → AlertDialog.vue_vue_type_script_setup_true_lang-e4hzkzg3.js} +1 -1
- package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-B82bl36A.js → AsyncSection.vue_vue_type_script_setup_true_lang-CWLB3xsR.js} +1 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js +51 -0
- package/dist/Button.vue_vue_type_script_setup_true_lang-B1eZgLae.js +182 -0
- package/dist/CountryFlag.vue_vue_type_script_setup_true_lang-Kry_vPPZ.js +299 -0
- package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-Bx5O1RZJ.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-DyhYHRyz.js} +1 -1
- package/dist/{LeaveGuardRoot.vue_vue_type_script_setup_true_lang-DH6EB8br.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-CvwoT1JF.js} +1 -1
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-D44EHXQZ.js → Menu.vue_vue_type_script_setup_true_lang-CrMj6KPD.js} +1 -1
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-DYQgaUtj.js → Modal.vue_vue_type_script_setup_true_lang-BQZM49gC.js} +138 -128
- package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-DDVQXJRB.js → PhotoViewer.vue_vue_type_script_setup_true_lang-ElDizaW2.js} +1 -1
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-DGcKX_OJ.js → SectionList.vue_vue_type_script_setup_true_lang-L9ita_Kx.js} +2 -2
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-DZTrU8NJ.js +661 -0
- package/dist/{Sheet.vue_vue_type_script_setup_true_lang-BLBD5ps8.js → Sheet.vue_vue_type_script_setup_true_lang-CtkJ-4e3.js} +1 -1
- package/dist/{Tooltip.vue_vue_type_script_setup_true_lang-BJWPVyfT.js → Tooltip.vue_vue_type_script_setup_true_lang-OOD_XNWx.js} +1 -1
- package/dist/app/application.d.ts +5 -0
- package/dist/app/environment.d.ts +2 -0
- package/dist/app/index.js +75 -72
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +5 -3
- package/dist/button/shortcut.d.ts +28 -2
- package/dist/collection/CollectionPage.vue.d.ts +1 -0
- package/dist/collection/CollectionRows.vue.d.ts +59 -0
- package/dist/collection/CollectionTable.vue.d.ts +1 -1
- package/dist/collection/DataTable.vue.d.ts +47 -0
- package/dist/collection/RowActions.vue.d.ts +19 -0
- package/dist/collection/columns.d.ts +2 -0
- package/dist/collection/index.d.ts +4 -2
- package/dist/collection/index.js +1752 -1610
- package/dist/collection/rowLayout.d.ts +10 -0
- package/dist/collection/slots.d.ts +6 -3
- package/dist/describeError-l5T9b8Uv.js +41 -0
- package/dist/dialogStack-DZZg55w0.js +31 -0
- package/dist/form/CommandDialog.vue.d.ts +12 -1
- package/dist/form/FormGroup.vue.d.ts +1 -1
- package/dist/form/MultiSelectField.vue.d.ts +4 -1
- package/dist/form/NumberField.vue.d.ts +6 -0
- package/dist/form/OptionList.vue.d.ts +6 -2
- package/dist/form/SelectField.vue.d.ts +4 -1
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +1940 -2008
- package/dist/form/suggestions.d.ts +11 -0
- package/dist/form/useOptions.d.ts +60 -0
- package/dist/i18n/describeError.d.ts +31 -0
- package/dist/i18n/index.d.ts +26 -0
- package/dist/i18n/index.js +22 -20
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/CountryFlag.vue.d.ts +10 -0
- package/dist/modal/Modal.vue.d.ts +4 -0
- package/dist/modal/ShortcutHelp.vue.d.ts +2 -0
- package/dist/modal/index.d.ts +2 -0
- package/dist/modal/index.js +64 -6
- package/dist/modal/placement.d.ts +22 -0
- package/dist/{options-CjSz2dQK.js → options-DAkBtYkI.js} +3 -3
- package/dist/overlay/Popover.vue.d.ts +3 -0
- package/dist/overlay/dialogStack.d.ts +9 -0
- package/dist/overlay/index.d.ts +1 -1
- package/dist/overlay/index.js +18 -17
- package/dist/page/index.js +4 -4
- package/dist/phone/index.js +247 -540
- package/dist/platform/AccessGate.vue.d.ts +50 -0
- package/dist/platform/index.d.ts +2 -0
- package/dist/platform/index.js +86 -66
- package/dist/resource/index.js +42 -42
- package/dist/shell/AccountMenuItem.vue.d.ts +3 -0
- package/dist/shell/NavigationList.vue.d.ts +1 -1
- package/dist/shell/index.js +406 -394
- package/dist/state/Badge.vue.d.ts +17 -10
- package/dist/state/hue.d.ts +8 -0
- package/dist/state/index.d.ts +2 -0
- package/dist/state/index.js +92 -56
- package/dist/state/useLoad.d.ts +41 -0
- package/dist/styles.css +1 -1
- package/dist/testing/app.d.ts +61 -0
- package/dist/testing/async.d.ts +12 -0
- package/dist/testing/collection.d.ts +18 -0
- package/dist/testing/format.d.ts +9 -0
- package/dist/testing/i18n.d.ts +16 -0
- package/dist/testing/index.d.ts +14 -0
- package/dist/testing/index.js +178 -0
- package/dist/testing/media.d.ts +23 -0
- package/dist/testing/platform.d.ts +40 -0
- package/dist/testing/transport.d.ts +40 -0
- package/dist/{toast-BTeX0r66.js → toast-DvrHQ6Ag.js} +45 -43
- package/dist/{useDialog-wmyNx2j_.js → useDialog-CXR3hN0G.js} +1 -1
- package/package.json +5 -1
- package/src/styles/theme.css +60 -0
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DKc6ugmr.js +0 -31
- package/dist/Button.vue_vue_type_script_setup_true_lang-3f0emVNU.js +0 -141
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-SyFWE33A.js +0 -422
- package/dist/dialogStack-DiTG1rZc.js +0 -26
- package/dist/phone/CountryFlag.vue.d.ts +0 -10
- /package/dist/{phone → internal}/flagLoaders.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as F, useId as H, ref as m, computed as b, watch as y, nextTick as p, onUnmounted as G, openBlock as a, createElementBlock as r, Fragment as k, renderSlot as j, createCommentVNode as f, createBlock as x, Teleport as J, createVNode as Q, Transition as W, withCtx as X, mergeProps as Y, unref as v, renderList as Z, normalizeClass as ee, createElementVNode as te, toDisplayString as S } from "vue";
|
|
2
2
|
import { _ as $ } from "./Icon.vue_vue_type_script_lang-DtC4_mkz.js";
|
|
3
3
|
import { u as ne } from "./anchored-Cj4--8dT.js";
|
|
4
|
-
import { I as oe } from "./dialogStack-
|
|
4
|
+
import { I as oe } from "./dialogStack-DZZg55w0.js";
|
|
5
5
|
const ae = ["aria-label"], ie = {
|
|
6
6
|
key: 0,
|
|
7
7
|
role: "separator",
|
|
@@ -1,60 +1,65 @@
|
|
|
1
|
-
import { watch as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { _ as
|
|
1
|
+
import { toValue as oe, watch as ee, onUnmounted as le, computed as i, ref as j, defineComponent as ne, useSlots as q, useId as ie, inject as re, openBlock as t, createBlock as _, Teleport as de, createElementBlock as a, unref as s, createVNode as k, Transition as T, withCtx as z, normalizeStyle as V, createCommentVNode as o, normalizeClass as y, createElementVNode as n, mergeProps as G, toDisplayString as m, renderSlot as f, createTextVNode as ce } from "vue";
|
|
2
|
+
import { useI18n as ue } from "vue-i18n";
|
|
3
|
+
import { _ as J } from "./Button.vue_vue_type_script_setup_true_lang-B1eZgLae.js";
|
|
4
4
|
import { _ as Q } from "./Icon.vue_vue_type_script_lang-DtC4_mkz.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as R, a as
|
|
9
|
-
import { p as
|
|
10
|
-
const
|
|
11
|
-
function
|
|
12
|
-
const
|
|
5
|
+
import { u as pe } from "./mediaQuery-CygcXmFW.js";
|
|
6
|
+
import { u as me } from "./useDialog-CXR3hN0G.js";
|
|
7
|
+
import { u as fe } from "./Sheet.vue_vue_type_script_setup_true_lang-CtkJ-4e3.js";
|
|
8
|
+
import { _ as R, a as Y } from "./ProgressTrack.vue_vue_type_script_setup_true_lang-1DDaNs2W.js";
|
|
9
|
+
import { p as ve } from "./perDocument-DUuFrdGU.js";
|
|
10
|
+
const be = Symbol("vue-core.modalPlacement");
|
|
11
|
+
function ye(g, l) {
|
|
12
|
+
const d = g === void 0 ? {} : oe(g);
|
|
13
|
+
return { align: l?.align ?? d.align ?? "center", offsetX: l?.offsetX ?? d.offsetX ?? 0 };
|
|
14
|
+
}
|
|
15
|
+
const ge = Symbol("vue-core:open-sheets"), he = () => ve(ge, () => j([]));
|
|
16
|
+
function xe(g) {
|
|
17
|
+
const l = he(), d = Symbol("sheet");
|
|
13
18
|
function e() {
|
|
14
|
-
|
|
19
|
+
l.value = l.value.filter((r) => r !== d);
|
|
15
20
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}, { immediate: !0 }),
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
return
|
|
22
|
-
}), C = i(() =>
|
|
23
|
-
return { covered:
|
|
21
|
+
ee(g, (r) => {
|
|
22
|
+
r && !l.value.includes(d) && (l.value = [...l.value, d]), r || e();
|
|
23
|
+
}, { immediate: !0 }), le(e);
|
|
24
|
+
const w = i(() => {
|
|
25
|
+
const r = l.value.indexOf(d);
|
|
26
|
+
return r >= 0 && r < l.value.length - 1;
|
|
27
|
+
}), C = i(() => l.value.indexOf(d) > 0);
|
|
28
|
+
return { covered: w, stacked: C };
|
|
24
29
|
}
|
|
25
|
-
const
|
|
30
|
+
const _e = ["aria-labelledby", "data-presentation"], ke = ["data-covered"], we = { class: "grid min-h-bar-height grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-2 px-row-inset" }, Se = { class: "flex justify-start" }, $e = ["disabled"], ze = ["id"], Ce = { key: 1 }, Le = { class: "flex justify-end" }, Be = ["disabled", "aria-busy"], De = {
|
|
26
31
|
key: 0,
|
|
27
32
|
class: "-mt-1 px-row-inset pb-1 text-center text-footnote text-content-muted"
|
|
28
|
-
},
|
|
33
|
+
}, Pe = {
|
|
29
34
|
key: 1,
|
|
30
35
|
class: "px-screen-padding pt-1 pb-3"
|
|
31
|
-
},
|
|
36
|
+
}, Ie = {
|
|
32
37
|
key: 1,
|
|
33
38
|
class: "flex shrink-0 flex-col gap-2 border-t border-border-separator bg-surface-cell px-screen-padding pt-3 pb-[max(0.75rem,var(--app-safe-bottom))]"
|
|
34
|
-
},
|
|
39
|
+
}, Ee = {
|
|
35
40
|
key: 0,
|
|
36
41
|
class: "flex items-center justify-center"
|
|
37
|
-
},
|
|
42
|
+
}, je = ["data-covered"], Xe = {
|
|
38
43
|
key: 0,
|
|
39
44
|
class: "absolute inset-x-0 top-0 z-20 overflow-hidden rounded-t-dialog"
|
|
40
|
-
},
|
|
45
|
+
}, Fe = { class: "flex min-w-0 flex-1 flex-col gap-3.5" }, Ne = {
|
|
41
46
|
key: 0,
|
|
42
47
|
class: "flex flex-col gap-0.5"
|
|
43
|
-
},
|
|
48
|
+
}, Te = ["id"], Ve = {
|
|
44
49
|
key: 0,
|
|
45
50
|
class: "text-subheadline text-content-muted"
|
|
46
|
-
},
|
|
51
|
+
}, Oe = ["disabled", "aria-label"], Ae = {
|
|
47
52
|
key: 2,
|
|
48
53
|
class: "sticky bottom-0 z-10 flex flex-row-reverse flex-wrap items-center gap-2.5 rounded-b-dialog border-t border-border-separator bg-surface-cell px-5 py-3.5"
|
|
49
|
-
},
|
|
54
|
+
}, He = {
|
|
50
55
|
key: 0,
|
|
51
56
|
class: "contents",
|
|
52
57
|
"data-part": "primary"
|
|
53
|
-
},
|
|
58
|
+
}, Me = {
|
|
54
59
|
key: 1,
|
|
55
60
|
class: "contents",
|
|
56
61
|
"data-part": "cancel"
|
|
57
|
-
},
|
|
62
|
+
}, We = { class: "flex grow items-center" }, et = /* @__PURE__ */ ne({
|
|
58
63
|
__name: "Modal",
|
|
59
64
|
props: {
|
|
60
65
|
title: { default: void 0 },
|
|
@@ -71,39 +76,40 @@ const ve = ["aria-labelledby", "data-presentation"], be = ["data-covered"], ye =
|
|
|
71
76
|
processingLabel: { default: void 0 },
|
|
72
77
|
doneLabel: { default: void 0 },
|
|
73
78
|
cancellableWhileProcessing: { type: Boolean, default: !1 },
|
|
74
|
-
progress: { default: void 0 }
|
|
79
|
+
progress: { default: void 0 },
|
|
80
|
+
placement: { default: void 0 }
|
|
75
81
|
},
|
|
76
82
|
emits: ["primary", "presented", "dismissed"],
|
|
77
|
-
setup(
|
|
78
|
-
const e =
|
|
83
|
+
setup(g, { expose: l, emit: d }) {
|
|
84
|
+
const e = g, w = d, C = q(), { t: r } = ue(), L = q(), B = j(null), O = j(null), S = ie(), $ = pe(), te = re(be, void 0), X = i(() => ye(te, e.placement)), v = me(B, {
|
|
79
85
|
beforeDismiss: () => e.beforeDismiss?.() ?? !0,
|
|
80
|
-
initialFocus: () =>
|
|
81
|
-
onPresented: () =>
|
|
82
|
-
onDismissed: () =>
|
|
83
|
-
}), { isOpen: b } = v,
|
|
86
|
+
initialFocus: () => $.value ? "panel" : "first",
|
|
87
|
+
onPresented: () => w("presented"),
|
|
88
|
+
onDismissed: () => w("dismissed")
|
|
89
|
+
}), { isOpen: b } = v, h = fe({ enabled: $, panel: B, body: O, onDismiss: () => v.dismiss() }), { covered: D, stacked: A } = xe(b), F = j(!1), H = () => {
|
|
84
90
|
b.value || (F.value = !1);
|
|
85
91
|
};
|
|
86
|
-
|
|
87
|
-
|
|
92
|
+
ee(b, (c) => {
|
|
93
|
+
c && (F.value = !0);
|
|
88
94
|
}, { flush: "sync" });
|
|
89
|
-
function
|
|
90
|
-
|
|
95
|
+
function se() {
|
|
96
|
+
h.reset(), v.present();
|
|
91
97
|
}
|
|
92
|
-
const
|
|
98
|
+
const x = i(() => e.status === "processing"), u = i(() => e.status === "done"), P = i(() => !!(e.title || L.header)), I = i(() => !e.withoutCloseButton), M = i(() => e.primaryLabel || L.actions ? r("core.actions.cancel") : r("core.actions.close")), W = i(() => e.primaryDisabled || x.value || u.value), N = i(() => x.value && !e.cancellableWhileProcessing || u.value), E = i(() => u.value && e.doneLabel ? e.doneLabel : x.value && e.processingLabel ? e.processingLabel : e.primaryLabel), K = i(() => e.withoutFooter ? !1 : $.value ? !!(L.actions || L.timestamp) : !0);
|
|
93
99
|
function U() {
|
|
94
|
-
|
|
100
|
+
W.value || w("primary");
|
|
95
101
|
}
|
|
96
|
-
const
|
|
97
|
-
return
|
|
102
|
+
const ae = { sm: "max-w-sm", md: "max-w-dialog", lg: "max-w-4xl", xl: "max-w-6xl" };
|
|
103
|
+
return l({ present: se, dismiss: async () => v.dismiss() }), (c, p) => (t(), _(de, { to: "body" }, [
|
|
98
104
|
F.value ? (t(), a("div", {
|
|
99
105
|
key: 0,
|
|
100
106
|
class: "relative z-9999",
|
|
101
|
-
"aria-labelledby":
|
|
107
|
+
"aria-labelledby": P.value && e.title ? s(S) : void 0,
|
|
102
108
|
role: "dialog",
|
|
103
109
|
"aria-modal": "true",
|
|
104
|
-
"data-presentation": s(
|
|
110
|
+
"data-presentation": s($) ? "sheet" : "dialog"
|
|
105
111
|
}, [
|
|
106
|
-
|
|
112
|
+
k(T, {
|
|
107
113
|
appear: "",
|
|
108
114
|
"enter-active-class": "transition-opacity duration-motion-normal ease-motion-standard",
|
|
109
115
|
"enter-from-class": "opacity-0",
|
|
@@ -114,76 +120,76 @@ const ve = ["aria-labelledby", "data-presentation"], be = ["data-covered"], ye =
|
|
|
114
120
|
s(b) ? (t(), a("div", {
|
|
115
121
|
key: 0,
|
|
116
122
|
class: "fixed inset-0 bg-scrim",
|
|
117
|
-
style:
|
|
123
|
+
style: V(s(h).backdropStyle.value),
|
|
118
124
|
"aria-hidden": "true"
|
|
119
125
|
}, null, 4)) : o("", !0)
|
|
120
126
|
]),
|
|
121
127
|
_: 1
|
|
122
128
|
}),
|
|
123
|
-
s(
|
|
129
|
+
s($) ? (t(), _(T, {
|
|
124
130
|
key: 0,
|
|
125
131
|
appear: "",
|
|
126
132
|
"enter-active-class": "transition-transform duration-motion-sheet ease-motion-sheet",
|
|
127
133
|
"enter-from-class": "translate-y-full",
|
|
128
134
|
"leave-active-class": "pointer-events-none transition-transform duration-motion-normal ease-motion-standard",
|
|
129
135
|
"leave-to-class": "translate-y-full",
|
|
130
|
-
onAfterLeave:
|
|
136
|
+
onAfterLeave: H
|
|
131
137
|
}, {
|
|
132
138
|
default: z(() => [
|
|
133
139
|
s(b) ? (t(), a("div", {
|
|
134
140
|
key: 0,
|
|
135
141
|
ref_key: "panel",
|
|
136
|
-
ref:
|
|
142
|
+
ref: B,
|
|
137
143
|
tabindex: "-1",
|
|
138
144
|
"data-part": "panel",
|
|
139
|
-
class:
|
|
140
|
-
"data-covered": s(
|
|
141
|
-
style:
|
|
145
|
+
class: y(["fixed inset-x-0 bottom-0 top-[calc(var(--app-safe-top)+0.625rem)] mx-auto flex w-full max-w-readable flex-col overflow-hidden rounded-t-sheet text-content-strong shadow-dialog outline-none", [e.grouped ? "bg-surface-page" : "bg-surface-cell", s(h).dragging.value ? "" : "transition-transform duration-motion-normal ease-motion-sheet", s(D) ? "origin-top scale-95" : "", s(A) ? "translate-y-3" : ""]]),
|
|
146
|
+
"data-covered": s(D) || void 0,
|
|
147
|
+
style: V(s(h).panelStyle.value)
|
|
142
148
|
}, [
|
|
143
|
-
e.progress ? (t(),
|
|
149
|
+
e.progress ? (t(), _(R, {
|
|
144
150
|
key: 0,
|
|
145
151
|
hairline: "",
|
|
146
152
|
value: e.progress.value,
|
|
147
153
|
done: e.progress.complete,
|
|
148
154
|
class: "absolute inset-x-0 top-0 z-20"
|
|
149
155
|
}, null, 8, ["value", "done"])) : o("", !0),
|
|
150
|
-
n("div",
|
|
151
|
-
|
|
156
|
+
n("div", G({ class: "shrink-0 cursor-grab touch-none select-none" }, s(h).handleEvents), [
|
|
157
|
+
p[3] || (p[3] = n("div", {
|
|
152
158
|
class: "flex justify-center pt-1.5",
|
|
153
159
|
"aria-hidden": "true"
|
|
154
160
|
}, [
|
|
155
161
|
n("span", { class: "h-1.25 w-9 rounded-full bg-fill-strong" })
|
|
156
162
|
], -1)),
|
|
157
|
-
n("div",
|
|
158
|
-
n("div",
|
|
163
|
+
n("div", we, [
|
|
164
|
+
n("div", Se, [
|
|
159
165
|
I.value ? (t(), a("button", {
|
|
160
166
|
key: 0,
|
|
161
167
|
type: "button",
|
|
162
168
|
disabled: N.value,
|
|
163
169
|
"data-part": "cancel",
|
|
164
170
|
class: "hit-target -ml-1 cursor-pointer rounded-control px-1 text-body text-content-link disabled:text-content-disabled",
|
|
165
|
-
onClick:
|
|
166
|
-
},
|
|
171
|
+
onClick: p[0] || (p[0] = (Z) => s(v).dismiss())
|
|
172
|
+
}, m(M.value), 9, $e)) : o("", !0)
|
|
167
173
|
]),
|
|
168
174
|
e.title ? (t(), a("h2", {
|
|
169
175
|
key: 0,
|
|
170
|
-
id: s(
|
|
176
|
+
id: s(S),
|
|
171
177
|
class: "truncate text-center text-headline font-semibold"
|
|
172
|
-
},
|
|
173
|
-
n("div",
|
|
178
|
+
}, m(e.title), 9, ze)) : (t(), a("span", Ce)),
|
|
179
|
+
n("div", Le, [
|
|
174
180
|
e.primaryLabel ? (t(), a("button", {
|
|
175
181
|
key: 0,
|
|
176
182
|
type: "button",
|
|
177
|
-
disabled:
|
|
183
|
+
disabled: W.value,
|
|
178
184
|
"data-part": "primary",
|
|
179
185
|
class: "hit-target -mr-1 flex cursor-pointer items-center gap-1.5 rounded-control px-1 text-body font-semibold text-content-link disabled:cursor-default disabled:text-content-disabled",
|
|
180
|
-
"aria-busy":
|
|
186
|
+
"aria-busy": x.value || void 0,
|
|
181
187
|
onClick: U
|
|
182
188
|
}, [
|
|
183
|
-
|
|
189
|
+
u.value ? (t(), _(Y, {
|
|
184
190
|
key: 0,
|
|
185
191
|
size: 15
|
|
186
|
-
})) :
|
|
192
|
+
})) : x.value ? (t(), _(s(Q), {
|
|
187
193
|
key: 1,
|
|
188
194
|
name: "loader4Line",
|
|
189
195
|
size: 16,
|
|
@@ -192,78 +198,81 @@ const ve = ["aria-labelledby", "data-presentation"], be = ["data-covered"], ye =
|
|
|
192
198
|
(t(), a("span", {
|
|
193
199
|
key: E.value,
|
|
194
200
|
class: "animate-text-swap"
|
|
195
|
-
},
|
|
196
|
-
], 8,
|
|
201
|
+
}, m(E.value), 1))
|
|
202
|
+
], 8, Be)) : o("", !0)
|
|
197
203
|
])
|
|
198
204
|
]),
|
|
199
|
-
e.subtitle ? (t(), a("p",
|
|
200
|
-
C.header ? (t(), a("div",
|
|
201
|
-
|
|
202
|
-
titleId: s(
|
|
205
|
+
e.subtitle ? (t(), a("p", De, m(e.subtitle), 1)) : o("", !0),
|
|
206
|
+
C.header ? (t(), a("div", Pe, [
|
|
207
|
+
f(c.$slots, "header", {
|
|
208
|
+
titleId: s(S),
|
|
203
209
|
compact: !0
|
|
204
210
|
})
|
|
205
211
|
])) : o("", !0)
|
|
206
212
|
], 16),
|
|
207
|
-
n("div",
|
|
213
|
+
n("div", G({
|
|
208
214
|
ref_key: "body",
|
|
209
215
|
ref: O,
|
|
210
216
|
class: "min-h-0 flex-1 overflow-y-auto overscroll-contain px-screen-padding pt-2 pb-8"
|
|
211
|
-
}, s(
|
|
212
|
-
|
|
217
|
+
}, s(h).bodyEvents), [
|
|
218
|
+
f(c.$slots, "default")
|
|
213
219
|
], 16),
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
C.timestamp ? (t(), a("div",
|
|
217
|
-
|
|
220
|
+
K.value ? (t(), a("div", Ie, [
|
|
221
|
+
f(c.$slots, "actions"),
|
|
222
|
+
C.timestamp ? (t(), a("div", Ee, [
|
|
223
|
+
f(c.$slots, "timestamp")
|
|
218
224
|
])) : o("", !0)
|
|
219
225
|
])) : o("", !0)
|
|
220
|
-
], 14,
|
|
226
|
+
], 14, ke)) : o("", !0)
|
|
221
227
|
]),
|
|
222
228
|
_: 3
|
|
223
229
|
})) : (t(), a("div", {
|
|
224
230
|
key: 1,
|
|
225
|
-
class:
|
|
231
|
+
class: y(["fixed inset-0 z-10 w-screen overflow-y-auto [scrollbar-gutter:stable_both-edges]", s(b) ? "" : "pointer-events-none"])
|
|
226
232
|
}, [
|
|
227
|
-
n("div",
|
|
228
|
-
|
|
233
|
+
n("div", {
|
|
234
|
+
class: y(["flex min-h-full justify-center p-4", X.value.align === "top" ? "items-start pt-10" : "items-center"])
|
|
235
|
+
}, [
|
|
236
|
+
k(T, {
|
|
229
237
|
appear: "",
|
|
230
238
|
"enter-active-class": "transition duration-motion-normal ease-motion-standard",
|
|
231
239
|
"enter-from-class": "opacity-0 scale-95",
|
|
232
240
|
"leave-active-class": "pointer-events-none transition duration-motion-fast ease-motion-standard",
|
|
233
241
|
"leave-to-class": "opacity-0 scale-95",
|
|
234
|
-
onAfterLeave:
|
|
242
|
+
onAfterLeave: H
|
|
235
243
|
}, {
|
|
236
244
|
default: z(() => [
|
|
237
245
|
s(b) ? (t(), a("div", {
|
|
238
246
|
key: 0,
|
|
239
247
|
ref_key: "panel",
|
|
240
|
-
ref:
|
|
248
|
+
ref: B,
|
|
241
249
|
tabindex: "-1",
|
|
242
250
|
"data-part": "panel",
|
|
243
|
-
class:
|
|
244
|
-
"data-covered": s(
|
|
251
|
+
class: y(["relative my-8 w-full rounded-dialog text-left text-content-strong shadow-dialog outline-none transition-transform duration-motion-sheet ease-motion-sheet", [ae[e.size], e.grouped ? "bg-surface-page" : "bg-surface-cell", s(D) ? "-translate-y-4" : "", s(A) ? "translate-y-4 scale-96" : ""]]),
|
|
252
|
+
"data-covered": s(D) || void 0,
|
|
253
|
+
style: V(X.value.offsetX ? { transform: `translateX(${X.value.offsetX}px)` } : void 0)
|
|
245
254
|
}, [
|
|
246
|
-
e.progress ? (t(), a("div",
|
|
247
|
-
|
|
255
|
+
e.progress ? (t(), a("div", Xe, [
|
|
256
|
+
k(R, {
|
|
248
257
|
hairline: "",
|
|
249
258
|
value: e.progress.value,
|
|
250
259
|
done: e.progress.complete
|
|
251
260
|
}, null, 8, ["value", "done"])
|
|
252
261
|
])) : o("", !0),
|
|
253
|
-
|
|
262
|
+
P.value || I.value ? (t(), a("div", {
|
|
254
263
|
key: 1,
|
|
255
|
-
class:
|
|
264
|
+
class: y(["sticky top-0 z-10 flex items-start gap-3 rounded-t-dialog px-5 pt-4.5", [P.value ? "pb-3.5" : "pb-0", e.grouped ? "bg-surface-page" : "bg-surface-cell"]])
|
|
256
265
|
}, [
|
|
257
|
-
n("div",
|
|
258
|
-
e.title ? (t(), a("div",
|
|
266
|
+
n("div", Fe, [
|
|
267
|
+
e.title ? (t(), a("div", Ne, [
|
|
259
268
|
n("h2", {
|
|
260
|
-
id: s(
|
|
269
|
+
id: s(S),
|
|
261
270
|
class: "text-title font-semibold"
|
|
262
|
-
},
|
|
263
|
-
e.subtitle ? (t(), a("p",
|
|
271
|
+
}, m(e.title), 9, Te),
|
|
272
|
+
e.subtitle ? (t(), a("p", Ve, m(e.subtitle), 1)) : o("", !0)
|
|
264
273
|
])) : o("", !0),
|
|
265
|
-
|
|
266
|
-
titleId: s(
|
|
274
|
+
f(c.$slots, "header", {
|
|
275
|
+
titleId: s(S),
|
|
267
276
|
compact: !1
|
|
268
277
|
})
|
|
269
278
|
]),
|
|
@@ -272,72 +281,73 @@ const ve = ["aria-labelledby", "data-presentation"], be = ["data-covered"], ye =
|
|
|
272
281
|
type: "button",
|
|
273
282
|
"data-initial-focus-skip": "",
|
|
274
283
|
disabled: N.value,
|
|
275
|
-
"aria-label": s(
|
|
284
|
+
"aria-label": s(r)("core.actions.close"),
|
|
276
285
|
"data-part": "close",
|
|
277
286
|
class: "hit-target flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-full bg-fill text-content-muted transition-colors duration-motion-fast hover:bg-fill-strong disabled:opacity-45",
|
|
278
|
-
onClick:
|
|
287
|
+
onClick: p[1] || (p[1] = (Z) => s(v).dismiss())
|
|
279
288
|
}, [
|
|
280
|
-
|
|
289
|
+
k(s(Q), {
|
|
281
290
|
name: "close",
|
|
282
291
|
size: 14
|
|
283
292
|
})
|
|
284
|
-
], 8,
|
|
293
|
+
], 8, Oe)) : o("", !0)
|
|
285
294
|
], 2)) : o("", !0),
|
|
286
295
|
n("div", {
|
|
287
|
-
class:
|
|
296
|
+
class: y(["px-5 pb-5", P.value ? "pt-1" : "pt-3"])
|
|
288
297
|
}, [
|
|
289
|
-
|
|
298
|
+
f(c.$slots, "default")
|
|
290
299
|
], 2),
|
|
291
|
-
|
|
292
|
-
e.primaryLabel ? (t(), a("span",
|
|
293
|
-
|
|
300
|
+
K.value ? (t(), a("div", Ae, [
|
|
301
|
+
e.primaryLabel ? (t(), a("span", He, [
|
|
302
|
+
k(J, {
|
|
294
303
|
prominence: "primary",
|
|
295
|
-
icon:
|
|
296
|
-
processing:
|
|
297
|
-
disabled: e.primaryDisabled ||
|
|
298
|
-
class:
|
|
304
|
+
icon: u.value ? void 0 : e.primaryIcon,
|
|
305
|
+
processing: x.value,
|
|
306
|
+
disabled: e.primaryDisabled || u.value,
|
|
307
|
+
class: y(u.value ? "bg-control-on! opacity-100!" : ""),
|
|
299
308
|
onClick: U
|
|
300
309
|
}, {
|
|
301
310
|
default: z(() => [
|
|
302
|
-
|
|
311
|
+
u.value ? (t(), _(Y, {
|
|
303
312
|
key: 0,
|
|
304
313
|
size: 16
|
|
305
314
|
})) : o("", !0),
|
|
306
315
|
(t(), a("span", {
|
|
307
316
|
key: E.value,
|
|
308
317
|
class: "animate-text-swap"
|
|
309
|
-
},
|
|
318
|
+
}, m(E.value), 1))
|
|
310
319
|
]),
|
|
311
320
|
_: 1
|
|
312
321
|
}, 8, ["icon", "processing", "disabled", "class"])
|
|
313
322
|
])) : o("", !0),
|
|
314
|
-
|
|
315
|
-
I.value ? (t(), a("span",
|
|
316
|
-
|
|
323
|
+
f(c.$slots, "actions"),
|
|
324
|
+
I.value ? (t(), a("span", Me, [
|
|
325
|
+
k(J, {
|
|
317
326
|
prominence: "plain",
|
|
318
327
|
disabled: N.value,
|
|
319
|
-
onClick:
|
|
328
|
+
onClick: p[2] || (p[2] = (Z) => s(v).dismiss())
|
|
320
329
|
}, {
|
|
321
330
|
default: z(() => [
|
|
322
|
-
|
|
331
|
+
ce(m(M.value), 1)
|
|
323
332
|
]),
|
|
324
333
|
_: 1
|
|
325
334
|
}, 8, ["disabled"])
|
|
326
335
|
])) : o("", !0),
|
|
327
|
-
n("div",
|
|
328
|
-
|
|
336
|
+
n("div", We, [
|
|
337
|
+
f(c.$slots, "timestamp")
|
|
329
338
|
])
|
|
330
339
|
])) : o("", !0)
|
|
331
|
-
],
|
|
340
|
+
], 14, je)) : o("", !0)
|
|
332
341
|
]),
|
|
333
342
|
_: 3
|
|
334
343
|
})
|
|
335
|
-
])
|
|
344
|
+
], 2)
|
|
336
345
|
], 2))
|
|
337
|
-
], 8,
|
|
346
|
+
], 8, _e)) : o("", !0)
|
|
338
347
|
]));
|
|
339
348
|
}
|
|
340
349
|
});
|
|
341
350
|
export {
|
|
342
|
-
|
|
351
|
+
et as _,
|
|
352
|
+
be as m
|
|
343
353
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as Ae, useModel as Re, ref as _, useTemplateRef as se, watch as Q, computed as g, onBeforeUnmount as Ne, nextTick as ye, onMounted as Xe, openBlock as m, createBlock as Ve, Teleport as Ye, createElementBlock as f, createVNode as T, Transition as Ze, withCtx as Ee, unref as u, createElementVNode as h, toDisplayString as ee, createCommentVNode as k, renderSlot as Ke, normalizeClass as M, withModifiers as re, normalizeStyle as te, Fragment as We, renderList as je, mergeModels as be } from "vue";
|
|
2
2
|
import { useI18n as Ue } from "vue-i18n";
|
|
3
3
|
import { _ as S } from "./Icon.vue_vue_type_script_lang-DtC4_mkz.js";
|
|
4
|
-
import { u as Fe } from "./useDialog-
|
|
4
|
+
import { u as Fe } from "./useDialog-CXR3hN0G.js";
|
|
5
5
|
const _e = [1, 1.5, 2, 3, 4, 5], ke = 1, ue = 5, He = (a) => Math.min(ue, Math.max(ke, a)), Me = (a, l) => l % 2 === 0 ? a : { width: a.height, height: a.width };
|
|
6
6
|
function qe(a, l, s) {
|
|
7
7
|
const i = Me(a, s);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { inject as I, shallowRef as B, ref as D, watch as k, getCurrentScope as N, onScopeDispose as R, provide as T, onMounted as j, onBeforeUnmount as A, nextTick as M, defineComponent as E, computed as w, unref as d, openBlock as p, createBlock as L, withCtx as y, createElementVNode as m, createVNode as $, mergeProps as U, createElementBlock as h, toDisplayString as v, createCommentVNode as _, resolveDynamicComponent as P, normalizeClass as C, Fragment as V, renderList as H, withModifiers as K, normalizeStyle as Y } from "vue";
|
|
2
2
|
import { useI18n as z } from "vue-i18n";
|
|
3
3
|
import { _ as F } from "./Icon.vue_vue_type_script_lang-DtC4_mkz.js";
|
|
4
|
-
import { _ as G } from "./Menu.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as J } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as G } from "./Menu.vue_vue_type_script_setup_true_lang-CrMj6KPD.js";
|
|
5
|
+
import { _ as J } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-CeKK8_g5.js";
|
|
6
6
|
import { routerKey as W } from "vue-router";
|
|
7
7
|
const O = Symbol("vue-core.sectionIndex"), Q = 120, X = (l, a) => l.element.compareDocumentPosition(a.element) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1, Z = () => window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth";
|
|
8
8
|
function $e(l) {
|