@wow-two-beta/fe 0.0.22 → 0.0.23
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/auth/AuthBridge.d.ts +15 -0
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +47 -8
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/providers/AuthProvider.vue.d.ts +1 -1
- package/dist/chunks/{SidebarMenuSection.vue_vue_type_script_setup_true_lang-CIEgYHl_.js → AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js} +641 -226
- package/dist/chunks/AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js.map +1 -0
- package/dist/chunks/Breakpoints-CltjxN0E.js +32 -0
- package/dist/chunks/Breakpoints-CltjxN0E.js.map +1 -0
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-C17R6SMV.js → DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js} +4 -12
- package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js.map +1 -0
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DBPGTzwk.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js} +2 -2
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DBPGTzwk.js.map → ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js.map} +1 -1
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-HSUZqn0g.js → LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js} +71 -477
- package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js.map +1 -0
- package/dist/chunks/ListboxPicker.variants-hiMcl66_.js +44 -0
- package/dist/chunks/ListboxPicker.variants-hiMcl66_.js.map +1 -0
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-CKhBN2SC.js → MasonryLayout.vue_vue_type_script_setup_true_lang-TuNWahLw.js} +2 -2
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-CKhBN2SC.js.map → MasonryLayout.vue_vue_type_script_setup_true_lang-TuNWahLw.js.map} +1 -1
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-C7X9NYpR.js → MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js} +12 -5
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js.map +1 -0
- package/dist/chunks/OverlayChrome-BqRpuYX5.js +13 -0
- package/dist/chunks/OverlayChrome-BqRpuYX5.js.map +1 -0
- package/dist/chunks/OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js +429 -0
- package/dist/chunks/OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js.map +1 -0
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-hfb8AAVv.js → PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js} +2 -43
- package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js.map +1 -0
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-Xr-kmwgK.js → ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js} +2 -1
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-Xr-kmwgK.js.map → ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js.map} +1 -1
- package/dist/feedback/FeedbackQueryErrors.d.ts +4 -3
- package/dist/feedback/FeedbackSessionExpiry.d.ts +5 -0
- package/dist/feedback/index.d.ts +1 -0
- package/dist/feedback/index.js +13 -1
- package/dist/feedback/index.js.map +1 -1
- package/dist/foundation/device/index.js +3 -27
- package/dist/foundation/device/index.js.map +1 -1
- package/dist/foundation/http/CreateApiClient.d.ts +1 -0
- package/dist/foundation/http/index.js +5 -1
- package/dist/foundation/http/index.js.map +1 -1
- package/dist/index.js +220 -216
- package/dist/index.js.map +1 -1
- package/dist/presentation/feedback/index.js +2 -2
- package/dist/presentation/feedback/toastHost/index.js +1 -1
- package/dist/presentation/forms/index.js +2 -2
- package/dist/presentation/forms/passwordInput/PasswordInput.vue.d.ts +4 -0
- package/dist/presentation/layout/index.js +1 -1
- package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenu.vue.d.ts +81 -0
- package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenuExtensions.d.ts +8 -0
- package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenuPanel.vue.d.ts +25 -0
- package/dist/presentation/nav/appSwitcherMenu/index.d.ts +1 -0
- package/dist/presentation/nav/index.d.ts +1 -0
- package/dist/presentation/nav/index.js +72 -70
- package/dist/presentation/overlays/index.js +55 -54
- package/dist/presentation/overlays/index.js.map +1 -1
- package/dist/router/adapters/vueRouter/Guards.d.ts +6 -1
- package/dist/router/adapters/vueRouter/index.d.ts +1 -1
- package/dist/router/index.js +8 -0
- package/dist/router/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-C17R6SMV.js.map +0 -1
- package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-HSUZqn0g.js.map +0 -1
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-C7X9NYpR.js.map +0 -1
- package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-hfb8AAVv.js.map +0 -1
- package/dist/chunks/SidebarMenuSection.vue_vue_type_script_setup_true_lang-CIEgYHl_.js.map +0 -1
|
@@ -1,82 +1,32 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, useAttrs, useTemplateRef, watch, computed, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createElementBlock, createElementVNode, useSlots, shallowRef, onScopeDispose, createVNode, toDisplayString, createTextVNode, createCommentVNode, provide, inject, ref, normalizeStyle, withModifiers, normalizeClass } from "vue";
|
|
2
2
|
import { r as resolveElement } from "./ResolveElement-CyRfM82x.js";
|
|
3
|
-
import { O as OverlayExtensions, _ as _sfc_main$
|
|
3
|
+
import { O as OverlayExtensions, _ as _sfc_main$x, b as _sfc_main$y, a as _sfc_main$z } from "./PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js";
|
|
4
|
+
import { u as useModalContext, a as _sfc_main$t, M as ModalPhoneLayout, c as _sfc_main$u, b as _sfc_main$v, _ as _sfc_main$F } from "./OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js";
|
|
4
5
|
import { P as Primitive } from "./Primitive-D-9ShOm7.js";
|
|
5
6
|
import { c as cn } from "./Cn-C7De6POU.js";
|
|
6
|
-
import {
|
|
7
|
-
import { _ as _sfc_main$
|
|
7
|
+
import { u as useDrawerContext, _ as _sfc_main$D, a as _sfc_main$E } from "./DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js";
|
|
8
|
+
import { _ as _sfc_main$w } from "./OverlayArrow.vue_vue_type_script_setup_true_lang-CLYhnI8i.js";
|
|
8
9
|
import { u as useLocaleDefaults } from "./UseLocaleDefaults-DnL2Ctbe.js";
|
|
9
10
|
import { u as useId } from "./UseId-CtgAhGrn.js";
|
|
10
11
|
import { u as useControlled } from "./UseControlled-BQneb7BW.js";
|
|
11
|
-
import { _ as _sfc_main$
|
|
12
|
+
import { _ as _sfc_main$A } from "./Button.vue_vue_type_script_setup_true_lang-BrgCAsgC.js";
|
|
12
13
|
import { u as useEscape } from "./UseEscape-3hj5BJus.js";
|
|
13
|
-
import { _ as _sfc_main$
|
|
14
|
-
import { _ as _sfc_main$
|
|
14
|
+
import { _ as _sfc_main$B } from "./Portal.vue_vue_type_script_setup_true_lang-C2_xSIMy.js";
|
|
15
|
+
import { _ as _sfc_main$C } from "./AnchoredPositioner.vue_vue_type_script_setup_true_lang-BpBVI2Cu.js";
|
|
15
16
|
import { P as Presence } from "./Presence-DDk0ZtAr.js";
|
|
16
17
|
import { u as useLocale } from "./LocaleContext-B7vUZmX-.js";
|
|
18
|
+
import { u as useOverlayChromeContext, o as overlayChromeContextKey } from "./OverlayChrome-BqRpuYX5.js";
|
|
17
19
|
import { s as surfaceVariants } from "./SurfaceStyles-B8KNkFsm.js";
|
|
18
|
-
import { _ as _sfc_main$
|
|
19
|
-
import { _ as _sfc_main$
|
|
20
|
-
import { _ as _sfc_main$
|
|
21
|
-
import { _ as _sfc_main$
|
|
20
|
+
import { _ as _sfc_main$H } from "./BackdropOverlay.vue_vue_type_script_setup_true_lang-BsjQoWDM.js";
|
|
21
|
+
import { _ as _sfc_main$G } from "./ScrollLockProvider.vue_vue_type_script_setup_true_lang-C6WDtqT0.js";
|
|
22
|
+
import { _ as _sfc_main$I } from "./FocusScope.vue_vue_type_script_setup_true_lang-C4XeQoxg.js";
|
|
23
|
+
import { _ as _sfc_main$J } from "./DismissableLayer.vue_vue_type_script_setup_true_lang-B8hZrhek.js";
|
|
22
24
|
import { a as useHotkeys } from "./UseHotkeys-Dapfyg78.js";
|
|
23
25
|
import { D as DomOrderExtensions } from "./DomOrderExtensions-Czsyvn6e.js";
|
|
24
|
-
import {
|
|
26
|
+
import { Search, ChevronLeft, ChevronRight } from "lucide-vue-next";
|
|
25
27
|
import { _ as _sfc_main$K } from "./Icon.vue_vue_type_script_setup_true_lang-Ca4wsJw9.js";
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
Dialog: "dialog",
|
|
29
|
-
/** Refers to an alert dialog that interrupts to convey an urgent message. */
|
|
30
|
-
AlertDialog: "alertdialog"
|
|
31
|
-
};
|
|
32
|
-
const modalContextKey = Symbol("wow-two.modal");
|
|
33
|
-
function useModalContext() {
|
|
34
|
-
const context = inject(modalContextKey, null);
|
|
35
|
-
if (!context) throw new Error("Modal.* must be used inside <Modal>");
|
|
36
|
-
return context;
|
|
37
|
-
}
|
|
38
|
-
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
39
|
-
...{ name: "Modal", inheritAttrs: false },
|
|
40
|
-
__name: "Modal",
|
|
41
|
-
props: {
|
|
42
|
-
open: { type: Boolean, default: void 0 },
|
|
43
|
-
defaultOpen: { type: Boolean, default: false },
|
|
44
|
-
canDismissOnOutsideClick: { type: Boolean, default: void 0 },
|
|
45
|
-
dismissOnOutsideClick: { type: Boolean, default: void 0 },
|
|
46
|
-
canDismissOnEscape: { type: Boolean, default: void 0 },
|
|
47
|
-
dismissOnEscape: { type: Boolean, default: void 0 },
|
|
48
|
-
role: { default: "dialog" }
|
|
49
|
-
},
|
|
50
|
-
emits: ["update:open"],
|
|
51
|
-
setup(__props, { emit: __emit }) {
|
|
52
|
-
const props = __props;
|
|
53
|
-
const emit = __emit;
|
|
54
|
-
const controlled = useControlled({
|
|
55
|
-
controlled: () => props.open,
|
|
56
|
-
default: () => props.defaultOpen,
|
|
57
|
-
onChange: (value) => {
|
|
58
|
-
emit("update:open", value);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
const triggerEl = shallowRef(null);
|
|
62
|
-
const titleId = useId("modal-title");
|
|
63
|
-
const descriptionId = useId("modal-description");
|
|
64
|
-
provide(modalContextKey, {
|
|
65
|
-
open: controlled.value,
|
|
66
|
-
setOpen: controlled.setValue,
|
|
67
|
-
triggerEl,
|
|
68
|
-
titleId,
|
|
69
|
-
descriptionId,
|
|
70
|
-
role: computed(() => props.role),
|
|
71
|
-
dismissOnOutsideClick: computed(() => props.canDismissOnOutsideClick ?? props.dismissOnOutsideClick ?? true),
|
|
72
|
-
dismissOnEscape: computed(() => props.canDismissOnEscape ?? props.dismissOnEscape ?? true)
|
|
73
|
-
});
|
|
74
|
-
return (_ctx, _cache) => {
|
|
75
|
-
return renderSlot(_ctx.$slots, "default");
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
28
|
+
import { l as listboxGroupLabelVariants, a as listboxItemVariants, b as listboxEmptyVariants, c as listboxSeparatorVariants } from "./ListboxPicker.variants-hiMcl66_.js";
|
|
29
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
80
30
|
...{ name: "ModalTrigger", inheritAttrs: false },
|
|
81
31
|
__name: "ModalTrigger",
|
|
82
32
|
props: {
|
|
@@ -120,278 +70,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
120
70
|
};
|
|
121
71
|
}
|
|
122
72
|
});
|
|
123
|
-
const
|
|
124
|
-
const _hoisted_2$6 = ["role", "aria-labelledby", "aria-describedby", "data-phone-layout"];
|
|
125
|
-
const _hoisted_3$2 = {
|
|
126
|
-
key: 1,
|
|
127
|
-
"aria-hidden": "true",
|
|
128
|
-
class: "block h-[env(safe-area-inset-top)] shrink-0 sm:hidden"
|
|
129
|
-
};
|
|
130
|
-
const _hoisted_4$2 = {
|
|
131
|
-
key: 2,
|
|
132
|
-
"aria-hidden": "true",
|
|
133
|
-
class: "block h-[env(safe-area-inset-bottom)] shrink-0 sm:hidden"
|
|
134
|
-
};
|
|
135
|
-
const ModalSize = {
|
|
136
|
-
/** Refers to a narrow panel (24rem) — confirmations and short prompts. */
|
|
137
|
-
Sm: "sm",
|
|
138
|
-
/** Refers to the default panel (32rem). */
|
|
139
|
-
Md: "md",
|
|
140
|
-
/** Refers to a wide panel (42rem) — forms with paired fields. */
|
|
141
|
-
Lg: "lg",
|
|
142
|
-
/** Refers to an extra-wide panel (56rem) — tables and multi-column forms. */
|
|
143
|
-
Xl: "xl",
|
|
144
|
-
/** Refers to a panel that spans the window, inside its gutter. */
|
|
145
|
-
Full: "full"
|
|
146
|
-
};
|
|
147
|
-
const ModalPhoneLayout = {
|
|
148
|
-
/** Refers to a panel that fills the screen — header on top, a scrolling body, the footer pinned to the bottom. */
|
|
149
|
-
Fullscreen: "fullscreen",
|
|
150
|
-
/** Refers to a sheet docked to the bottom edge, rounded on top, that slides up. */
|
|
151
|
-
Sheet: "sheet",
|
|
152
|
-
/** Refers to the centred card, as on wider screens. */
|
|
153
|
-
Card: "card"
|
|
154
|
-
};
|
|
155
|
-
const ModalSizeClass = {
|
|
156
|
-
sm: "max-w-sm",
|
|
157
|
-
md: "max-w-lg",
|
|
158
|
-
lg: "max-w-2xl",
|
|
159
|
-
xl: "max-w-4xl",
|
|
160
|
-
full: "max-w-none"
|
|
161
|
-
};
|
|
162
|
-
const LayerPhoneClass = {
|
|
163
|
-
fullscreen: "max-sm:place-items-stretch max-sm:p-0",
|
|
164
|
-
sheet: "max-sm:items-end max-sm:justify-items-stretch max-sm:p-0",
|
|
165
|
-
card: ""
|
|
166
|
-
};
|
|
167
|
-
const FramePhoneClass = {
|
|
168
|
-
fullscreen: "max-sm:justify-items-stretch",
|
|
169
|
-
sheet: "max-sm:justify-items-stretch",
|
|
170
|
-
card: ""
|
|
171
|
-
};
|
|
172
|
-
const PanelPhoneClass = {
|
|
173
|
-
fullscreen: cn(
|
|
174
|
-
"max-sm:h-dvh max-sm:max-h-dvh max-sm:w-full max-sm:max-w-none max-sm:rounded-none",
|
|
175
|
-
"max-sm:[--ui-overlay-inset-top:env(safe-area-inset-top)]",
|
|
176
|
-
"max-sm:[&>form]:flex max-sm:[&>form]:min-h-0 max-sm:[&>form]:flex-1 max-sm:[&>form]:flex-col"
|
|
177
|
-
),
|
|
178
|
-
sheet: "max-sm:w-full max-sm:max-w-none max-sm:rounded-t-2xl max-sm:rounded-b-none",
|
|
179
|
-
card: ""
|
|
180
|
-
};
|
|
181
|
-
const PanelMotionClass = {
|
|
182
|
-
fullscreen: cn(
|
|
183
|
-
"sm:motion-safe:group-data-[state=open]:animate-(--animate-pop-in)",
|
|
184
|
-
"sm:motion-safe:group-data-[state=closed]:animate-(--animate-pop-out)",
|
|
185
|
-
"max-sm:motion-safe:group-data-[state=open]:animate-(--animate-sheet-in)",
|
|
186
|
-
"max-sm:motion-safe:group-data-[state=closed]:animate-(--animate-sheet-out)"
|
|
187
|
-
),
|
|
188
|
-
sheet: cn(
|
|
189
|
-
"sm:motion-safe:group-data-[state=open]:animate-(--animate-pop-in)",
|
|
190
|
-
"sm:motion-safe:group-data-[state=closed]:animate-(--animate-pop-out)",
|
|
191
|
-
"max-sm:motion-safe:group-data-[state=open]:animate-(--animate-sheet-in)",
|
|
192
|
-
"max-sm:motion-safe:group-data-[state=closed]:animate-(--animate-sheet-out)"
|
|
193
|
-
),
|
|
194
|
-
card: cn(
|
|
195
|
-
"motion-safe:group-data-[state=open]:animate-(--animate-pop-in)",
|
|
196
|
-
"motion-safe:group-data-[state=closed]:animate-(--animate-pop-out)"
|
|
197
|
-
)
|
|
198
|
-
};
|
|
199
|
-
const HandleDismissDistance = 96;
|
|
200
|
-
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
201
|
-
...{ name: "ModalContent", inheritAttrs: false },
|
|
202
|
-
__name: "ModalContent",
|
|
203
|
-
props: {
|
|
204
|
-
showBackdrop: { type: Boolean, default: void 0 },
|
|
205
|
-
hideBackdrop: { type: Boolean, default: void 0 },
|
|
206
|
-
isBlurred: { type: Boolean },
|
|
207
|
-
size: { default: "md" },
|
|
208
|
-
variant: {},
|
|
209
|
-
tone: {},
|
|
210
|
-
radius: {},
|
|
211
|
-
padding: {},
|
|
212
|
-
elevation: {},
|
|
213
|
-
phoneLayout: { default: ModalPhoneLayout.Fullscreen },
|
|
214
|
-
showHandle: { type: Boolean, default: false }
|
|
215
|
-
},
|
|
216
|
-
setup(__props, { expose: __expose }) {
|
|
217
|
-
const props = __props;
|
|
218
|
-
const hasBackdrop = computed(() => props.showBackdrop ?? !(props.hideBackdrop ?? false));
|
|
219
|
-
const attrs = useAttrs();
|
|
220
|
-
const context = useModalContext();
|
|
221
|
-
const el = useTemplateRef("el");
|
|
222
|
-
const isOpen = context.open;
|
|
223
|
-
const role = context.role;
|
|
224
|
-
const dismissOnEscape = context.dismissOnEscape;
|
|
225
|
-
function close() {
|
|
226
|
-
context.setOpen(false);
|
|
227
|
-
}
|
|
228
|
-
provide(overlayChromeContextKey, {
|
|
229
|
-
titleId: context.titleId,
|
|
230
|
-
descriptionId: context.descriptionId,
|
|
231
|
-
close
|
|
232
|
-
});
|
|
233
|
-
const hasBottomInset = computed(() => props.phoneLayout !== ModalPhoneLayout.Card);
|
|
234
|
-
const hasTopInset = computed(() => props.phoneLayout === ModalPhoneLayout.Fullscreen);
|
|
235
|
-
const hasHandle = computed(() => props.showHandle && props.phoneLayout === ModalPhoneLayout.Sheet);
|
|
236
|
-
const layerClasses = computed(
|
|
237
|
-
() => cn(
|
|
238
|
-
"ui-modal-layer group fixed inset-0 z-modal grid place-items-center overflow-y-auto p-4",
|
|
239
|
-
"motion-safe:data-[state=open]:animate-(--animate-fade-in)",
|
|
240
|
-
"motion-safe:data-[state=closed]:animate-(--animate-fade-out)",
|
|
241
|
-
LayerPhoneClass[props.phoneLayout]
|
|
242
|
-
)
|
|
243
|
-
);
|
|
244
|
-
const frameClasses = computed(
|
|
245
|
-
() => cn("ui-modal-frame grid w-full justify-items-center", FramePhoneClass[props.phoneLayout])
|
|
246
|
-
);
|
|
247
|
-
const classes = computed(
|
|
248
|
-
() => cn(
|
|
249
|
-
"ui-modal-content relative w-full",
|
|
250
|
-
ModalSizeClass[props.size],
|
|
251
|
-
/* The panel never outgrows the window: it caps at the viewport and its body scrolls under a fixed header and
|
|
252
|
-
footer. A panel without a body part scrolls whole. */
|
|
253
|
-
"flex max-h-[calc(100dvh-2rem)] flex-col overflow-y-auto overscroll-contain",
|
|
254
|
-
PanelMotionClass[props.phoneLayout],
|
|
255
|
-
surfaceVariants({
|
|
256
|
-
variant: props.variant ?? "elevated",
|
|
257
|
-
tone: props.tone,
|
|
258
|
-
radius: props.radius ?? "lg",
|
|
259
|
-
padding: props.padding ?? "xl",
|
|
260
|
-
elevation: props.elevation
|
|
261
|
-
}),
|
|
262
|
-
attrs.class,
|
|
263
|
-
/* Last, so a caller's width, height or radius serves the card and the phone layout still fills the screen. */
|
|
264
|
-
PanelPhoneClass[props.phoneLayout]
|
|
265
|
-
)
|
|
266
|
-
);
|
|
267
|
-
const rest = computed(() => {
|
|
268
|
-
const { class: _class, ...others } = attrs;
|
|
269
|
-
return others;
|
|
270
|
-
});
|
|
271
|
-
const dragOffset = shallowRef(0);
|
|
272
|
-
const isDragging = shallowRef(false);
|
|
273
|
-
let dragPointer = null;
|
|
274
|
-
watch(isOpen, (open) => {
|
|
275
|
-
if (open) dragOffset.value = 0;
|
|
276
|
-
});
|
|
277
|
-
const dragStyle = computed(
|
|
278
|
-
() => hasHandle.value ? {
|
|
279
|
-
transform: dragOffset.value > 0 ? `translateY(${dragOffset.value}px)` : void 0,
|
|
280
|
-
transition: isDragging.value ? "none" : "transform var(--duration-base) var(--ease-out)"
|
|
281
|
-
} : void 0
|
|
282
|
-
);
|
|
283
|
-
function handlePointerDown(event) {
|
|
284
|
-
if (event.button !== 0) return;
|
|
285
|
-
dragPointer = { id: event.pointerId, startY: event.clientY };
|
|
286
|
-
isDragging.value = true;
|
|
287
|
-
try {
|
|
288
|
-
event.currentTarget.setPointerCapture(event.pointerId);
|
|
289
|
-
} catch {
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
function handlePointerMove(event) {
|
|
293
|
-
if (dragPointer?.id !== event.pointerId) return;
|
|
294
|
-
dragOffset.value = Math.max(0, event.clientY - dragPointer.startY);
|
|
295
|
-
}
|
|
296
|
-
function handlePointerEnd(event) {
|
|
297
|
-
if (dragPointer?.id !== event.pointerId) return;
|
|
298
|
-
dragPointer = null;
|
|
299
|
-
isDragging.value = false;
|
|
300
|
-
const height = el.value?.offsetHeight ?? 0;
|
|
301
|
-
const distance = Math.min(HandleDismissDistance, height / 3);
|
|
302
|
-
if (event.type === "pointerup" && dragOffset.value > distance && context.dismissOnOutsideClick.value) {
|
|
303
|
-
context.setOpen(false);
|
|
304
|
-
return;
|
|
305
|
-
}
|
|
306
|
-
dragOffset.value = 0;
|
|
307
|
-
}
|
|
308
|
-
function handleOutsideClick() {
|
|
309
|
-
if (context.dismissOnOutsideClick.value) context.setOpen(false);
|
|
310
|
-
}
|
|
311
|
-
function handleEscape() {
|
|
312
|
-
context.setOpen(false);
|
|
313
|
-
}
|
|
314
|
-
__expose({ el });
|
|
315
|
-
return (_ctx, _cache) => {
|
|
316
|
-
return openBlock(), createBlock(unref(_sfc_main$x), null, {
|
|
317
|
-
default: withCtx(() => [
|
|
318
|
-
createVNode(unref(_sfc_main$y), { "is-enabled": unref(isOpen) }, {
|
|
319
|
-
default: withCtx(() => [
|
|
320
|
-
hasBackdrop.value ? (openBlock(), createBlock(_sfc_main$z, {
|
|
321
|
-
key: 0,
|
|
322
|
-
"is-inline": "",
|
|
323
|
-
"is-open": unref(isOpen),
|
|
324
|
-
"is-blurred": props.isBlurred
|
|
325
|
-
}, null, 8, ["is-open", "is-blurred"])) : createCommentVNode("", true),
|
|
326
|
-
createVNode(unref(Presence), { "is-present": unref(isOpen) }, {
|
|
327
|
-
default: withCtx(() => [
|
|
328
|
-
createElementVNode("div", {
|
|
329
|
-
class: normalizeClass(layerClasses.value),
|
|
330
|
-
"data-phone-layout": props.phoneLayout,
|
|
331
|
-
onClick: withModifiers(handleOutsideClick, ["self"])
|
|
332
|
-
}, [
|
|
333
|
-
createVNode(unref(_sfc_main$A), {
|
|
334
|
-
"as-child": "",
|
|
335
|
-
"is-trapped": "",
|
|
336
|
-
"can-loop": "",
|
|
337
|
-
"is-modal": ""
|
|
338
|
-
}, {
|
|
339
|
-
default: withCtx(() => [
|
|
340
|
-
createVNode(unref(_sfc_main$B), {
|
|
341
|
-
class: normalizeClass(frameClasses.value),
|
|
342
|
-
"is-escape-disabled": !unref(dismissOnEscape),
|
|
343
|
-
"is-outside-click-disabled": "",
|
|
344
|
-
"on-escape": handleEscape
|
|
345
|
-
}, {
|
|
346
|
-
default: withCtx(() => [
|
|
347
|
-
createElementVNode("div", mergeProps({
|
|
348
|
-
ref_key: "el",
|
|
349
|
-
ref: el,
|
|
350
|
-
role: unref(role),
|
|
351
|
-
"aria-modal": "true",
|
|
352
|
-
"aria-labelledby": unref(context).titleId,
|
|
353
|
-
"aria-describedby": unref(context).descriptionId,
|
|
354
|
-
"data-phone-layout": props.phoneLayout
|
|
355
|
-
}, rest.value, {
|
|
356
|
-
class: classes.value,
|
|
357
|
-
style: dragStyle.value
|
|
358
|
-
}), [
|
|
359
|
-
hasHandle.value ? (openBlock(), createElementBlock("div", {
|
|
360
|
-
key: 0,
|
|
361
|
-
"data-modal-handle": "",
|
|
362
|
-
"aria-hidden": "true",
|
|
363
|
-
class: "absolute inset-x-0 top-0 z-raised flex h-6 cursor-grab touch-none justify-center pt-2 sm:hidden",
|
|
364
|
-
onPointerdown: handlePointerDown,
|
|
365
|
-
onPointermove: handlePointerMove,
|
|
366
|
-
onPointerup: handlePointerEnd,
|
|
367
|
-
onPointercancel: handlePointerEnd
|
|
368
|
-
}, [..._cache[0] || (_cache[0] = [
|
|
369
|
-
createElementVNode("span", { class: "h-1 w-10 rounded-full bg-border-strong forced-colors:bg-[CanvasText]" }, null, -1)
|
|
370
|
-
])], 32)) : createCommentVNode("", true),
|
|
371
|
-
hasTopInset.value ? (openBlock(), createElementBlock("span", _hoisted_3$2)) : createCommentVNode("", true),
|
|
372
|
-
renderSlot(_ctx.$slots, "default"),
|
|
373
|
-
hasBottomInset.value ? (openBlock(), createElementBlock("span", _hoisted_4$2)) : createCommentVNode("", true)
|
|
374
|
-
], 16, _hoisted_2$6)
|
|
375
|
-
]),
|
|
376
|
-
_: 3
|
|
377
|
-
}, 8, ["class", "is-escape-disabled"])
|
|
378
|
-
]),
|
|
379
|
-
_: 3
|
|
380
|
-
})
|
|
381
|
-
], 10, _hoisted_1$a)
|
|
382
|
-
]),
|
|
383
|
-
_: 3
|
|
384
|
-
}, 8, ["is-present"])
|
|
385
|
-
]),
|
|
386
|
-
_: 3
|
|
387
|
-
}, 8, ["is-enabled"])
|
|
388
|
-
]),
|
|
389
|
-
_: 3
|
|
390
|
-
});
|
|
391
|
-
};
|
|
392
|
-
}
|
|
393
|
-
});
|
|
394
|
-
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
73
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
395
74
|
...{ name: "OverlayHeader", inheritAttrs: false },
|
|
396
75
|
__name: "OverlayHeader",
|
|
397
76
|
setup(__props, { expose: __expose }) {
|
|
@@ -413,35 +92,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
413
92
|
};
|
|
414
93
|
}
|
|
415
94
|
});
|
|
416
|
-
const _hoisted_1$9 = ["id"];
|
|
417
|
-
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
418
|
-
...{ name: "OverlayTitle", inheritAttrs: false },
|
|
419
|
-
__name: "OverlayTitle",
|
|
420
|
-
setup(__props, { expose: __expose }) {
|
|
421
|
-
const attrs = useAttrs();
|
|
422
|
-
const context = useOverlayChromeContext();
|
|
423
|
-
const el = useTemplateRef("el");
|
|
424
|
-
const classes = computed(
|
|
425
|
-
() => cn("text-lg font-semibold leading-none text-foreground", attrs.class)
|
|
426
|
-
);
|
|
427
|
-
const rest = computed(() => {
|
|
428
|
-
const { class: _class, ...others } = attrs;
|
|
429
|
-
return others;
|
|
430
|
-
});
|
|
431
|
-
__expose({ el });
|
|
432
|
-
return (_ctx, _cache) => {
|
|
433
|
-
return openBlock(), createElementBlock("h2", mergeProps({
|
|
434
|
-
ref_key: "el",
|
|
435
|
-
ref: el,
|
|
436
|
-
id: unref(context).titleId
|
|
437
|
-
}, rest.value, { class: classes.value }), [
|
|
438
|
-
renderSlot(_ctx.$slots, "default")
|
|
439
|
-
], 16, _hoisted_1$9);
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
});
|
|
443
95
|
const _hoisted_1$8 = ["id"];
|
|
444
|
-
const _sfc_main$
|
|
96
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
445
97
|
...{ name: "OverlayDescription", inheritAttrs: false },
|
|
446
98
|
__name: "OverlayDescription",
|
|
447
99
|
setup(__props, { expose: __expose }) {
|
|
@@ -465,7 +117,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
465
117
|
};
|
|
466
118
|
}
|
|
467
119
|
});
|
|
468
|
-
const _sfc_main$
|
|
120
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
469
121
|
...{ name: "OverlayBody", inheritAttrs: false },
|
|
470
122
|
__name: "OverlayBody",
|
|
471
123
|
setup(__props, { expose: __expose }) {
|
|
@@ -489,7 +141,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
489
141
|
};
|
|
490
142
|
}
|
|
491
143
|
});
|
|
492
|
-
const _sfc_main$
|
|
144
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
493
145
|
...{ name: "OverlayFooter", inheritAttrs: false },
|
|
494
146
|
__name: "OverlayFooter",
|
|
495
147
|
setup(__props, { expose: __expose }) {
|
|
@@ -513,57 +165,6 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
513
165
|
};
|
|
514
166
|
}
|
|
515
167
|
});
|
|
516
|
-
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
517
|
-
...{ name: "OverlayCloseButton", inheritAttrs: false },
|
|
518
|
-
__name: "OverlayCloseButton",
|
|
519
|
-
props: {
|
|
520
|
-
asChild: { type: Boolean, default: false }
|
|
521
|
-
},
|
|
522
|
-
setup(__props, { expose: __expose }) {
|
|
523
|
-
const locale = useLocale();
|
|
524
|
-
const props = __props;
|
|
525
|
-
const attrs = useAttrs();
|
|
526
|
-
const slots = useSlots();
|
|
527
|
-
const context = useOverlayChromeContext();
|
|
528
|
-
const inner = useTemplateRef("inner");
|
|
529
|
-
const classes = computed(
|
|
530
|
-
() => props.asChild ? attrs.class : cn(
|
|
531
|
-
"absolute right-4 top-[calc(1rem+var(--ui-overlay-inset-top,0px))] grid h-7 w-7 place-items-center rounded-sm text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring",
|
|
532
|
-
attrs.class
|
|
533
|
-
)
|
|
534
|
-
);
|
|
535
|
-
const rest = computed(() => {
|
|
536
|
-
const { class: _class, ...others } = attrs;
|
|
537
|
-
return others;
|
|
538
|
-
});
|
|
539
|
-
function handleClick(event) {
|
|
540
|
-
if (event.defaultPrevented) return;
|
|
541
|
-
context.close();
|
|
542
|
-
}
|
|
543
|
-
const el = computed(() => resolveElement(inner.value));
|
|
544
|
-
__expose({ el });
|
|
545
|
-
return (_ctx, _cache) => {
|
|
546
|
-
return openBlock(), createBlock(unref(Primitive), mergeProps({
|
|
547
|
-
ref_key: "inner",
|
|
548
|
-
ref: inner,
|
|
549
|
-
as: "button",
|
|
550
|
-
"as-child": props.asChild,
|
|
551
|
-
type: "button",
|
|
552
|
-
"aria-label": unref(slots).default ? void 0 : unref(locale).t("OverlayCloseButton.close", void 0, "Close")
|
|
553
|
-
}, rest.value, {
|
|
554
|
-
class: classes.value,
|
|
555
|
-
onClick: handleClick
|
|
556
|
-
}), {
|
|
557
|
-
default: withCtx(() => [
|
|
558
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
559
|
-
createVNode(unref(X), { class: "h-4 w-4" })
|
|
560
|
-
])
|
|
561
|
-
]),
|
|
562
|
-
_: 3
|
|
563
|
-
}, 16, ["as-child", "aria-label", "class"]);
|
|
564
|
-
};
|
|
565
|
-
}
|
|
566
|
-
});
|
|
567
168
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
568
169
|
...{ name: "AlertModal", inheritAttrs: false },
|
|
569
170
|
__name: "AlertModal",
|
|
@@ -582,7 +183,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
582
183
|
emit("update:open", open);
|
|
583
184
|
}
|
|
584
185
|
return (_ctx, _cache) => {
|
|
585
|
-
return openBlock(), createBlock(_sfc_main$
|
|
186
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
586
187
|
open: props.open,
|
|
587
188
|
"default-open": props.defaultOpen,
|
|
588
189
|
"dismiss-on-escape": props.dismissOnEscape,
|
|
@@ -659,7 +260,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
659
260
|
const el = computed(() => resolveElement(inner.value));
|
|
660
261
|
__expose({ el });
|
|
661
262
|
return (_ctx, _cache) => {
|
|
662
|
-
return openBlock(), createBlock(_sfc_main$
|
|
263
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
663
264
|
ref_key: "inner",
|
|
664
265
|
ref: inner,
|
|
665
266
|
"as-child": ""
|
|
@@ -697,7 +298,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
697
298
|
const el = computed(() => resolveElement(inner.value));
|
|
698
299
|
__expose({ el });
|
|
699
300
|
return (_ctx, _cache) => {
|
|
700
|
-
return openBlock(), createBlock(_sfc_main$
|
|
301
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
701
302
|
ref_key: "inner",
|
|
702
303
|
ref: inner,
|
|
703
304
|
"as-child": ""
|
|
@@ -775,7 +376,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
775
376
|
return others;
|
|
776
377
|
});
|
|
777
378
|
return (_ctx, _cache) => {
|
|
778
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
379
|
+
return openBlock(), createBlock(unref(_sfc_main$w), mergeProps({
|
|
779
380
|
width: props.width,
|
|
780
381
|
height: props.height
|
|
781
382
|
}, rest.value, { class: classes.value }), null, 16, ["width", "height", "class"]);
|
|
@@ -862,7 +463,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
862
463
|
controlled.setValue(false);
|
|
863
464
|
}
|
|
864
465
|
return (_ctx, _cache) => {
|
|
865
|
-
return openBlock(), createBlock(_sfc_main$
|
|
466
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
866
467
|
open: unref(isOpen),
|
|
867
468
|
placement: unref(props).placement,
|
|
868
469
|
offset: unref(props).offset,
|
|
@@ -871,7 +472,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
871
472
|
"onUpdate:open": requestOpen
|
|
872
473
|
}, {
|
|
873
474
|
default: withCtx(() => [
|
|
874
|
-
createVNode(_sfc_main$
|
|
475
|
+
createVNode(_sfc_main$y, {
|
|
875
476
|
"as-child": "",
|
|
876
477
|
"aria-disabled": unref(props).isDisabled || void 0
|
|
877
478
|
}, {
|
|
@@ -880,7 +481,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
880
481
|
]),
|
|
881
482
|
_: 3
|
|
882
483
|
}, 8, ["aria-disabled"]),
|
|
883
|
-
createVNode(_sfc_main$
|
|
484
|
+
createVNode(_sfc_main$z, mergeProps({
|
|
884
485
|
"aria-labelledby": unref(titleId),
|
|
885
486
|
"aria-describedby": hasDescription.value ? unref(descriptionId) : void 0,
|
|
886
487
|
"aria-busy": isPending.value || void 0
|
|
@@ -903,7 +504,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
903
504
|
], 8, _hoisted_4$1)) : createCommentVNode("", true)
|
|
904
505
|
]),
|
|
905
506
|
createElementVNode("div", _hoisted_5$1, [
|
|
906
|
-
createVNode(_sfc_main$
|
|
507
|
+
createVNode(_sfc_main$A, {
|
|
907
508
|
variant: "ghost",
|
|
908
509
|
size: "sm",
|
|
909
510
|
"is-disabled": isPending.value,
|
|
@@ -914,7 +515,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
914
515
|
]),
|
|
915
516
|
_: 1
|
|
916
517
|
}, 8, ["is-disabled"]),
|
|
917
|
-
createVNode(_sfc_main$
|
|
518
|
+
createVNode(_sfc_main$A, {
|
|
918
519
|
variant: "solid",
|
|
919
520
|
size: "sm",
|
|
920
521
|
tone: unref(props).tone,
|
|
@@ -1081,9 +682,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1081
682
|
});
|
|
1082
683
|
__expose({ el });
|
|
1083
684
|
return (_ctx, _cache) => {
|
|
1084
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
685
|
+
return openBlock(), createBlock(unref(_sfc_main$B), null, {
|
|
1085
686
|
default: withCtx(() => [
|
|
1086
|
-
createVNode(unref(_sfc_main$
|
|
687
|
+
createVNode(unref(_sfc_main$C), {
|
|
1087
688
|
anchor: anchor.value,
|
|
1088
689
|
placement: unref(placement),
|
|
1089
690
|
offset: unref(offset),
|
|
@@ -1130,7 +731,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1130
731
|
return others;
|
|
1131
732
|
});
|
|
1132
733
|
return (_ctx, _cache) => {
|
|
1133
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
734
|
+
return openBlock(), createBlock(unref(_sfc_main$w), mergeProps({
|
|
1134
735
|
width: props.width,
|
|
1135
736
|
height: props.height
|
|
1136
737
|
}, rest.value, { class: classes.value }), null, 16, ["width", "height", "class"]);
|
|
@@ -1182,16 +783,16 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1182
783
|
return others;
|
|
1183
784
|
});
|
|
1184
785
|
return (_ctx, _cache) => {
|
|
1185
|
-
return openBlock(), createBlock(_sfc_main$
|
|
786
|
+
return openBlock(), createBlock(_sfc_main$D, {
|
|
1186
787
|
open: unref(resolvedOpen),
|
|
1187
788
|
side: "bottom",
|
|
1188
789
|
"onUpdate:open": unref(controlled).setValue
|
|
1189
790
|
}, {
|
|
1190
791
|
default: withCtx(() => [
|
|
1191
|
-
createVNode(_sfc_main$
|
|
792
|
+
createVNode(_sfc_main$E, mergeProps(rest.value, { class: classes.value }), {
|
|
1192
793
|
default: withCtx(() => [
|
|
1193
794
|
hasTitle.value || hasDescription.value ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
1194
|
-
hasTitle.value ? (openBlock(), createBlock(_sfc_main$
|
|
795
|
+
hasTitle.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
1195
796
|
key: 0,
|
|
1196
797
|
class: "text-sm font-medium text-muted-foreground"
|
|
1197
798
|
}, {
|
|
@@ -1202,7 +803,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1202
803
|
]),
|
|
1203
804
|
_: 3
|
|
1204
805
|
})) : createCommentVNode("", true),
|
|
1205
|
-
hasDescription.value ? (openBlock(), createBlock(_sfc_main$
|
|
806
|
+
hasDescription.value ? (openBlock(), createBlock(_sfc_main$q, {
|
|
1206
807
|
key: 1,
|
|
1207
808
|
class: "mt-1 text-xs text-muted-foreground"
|
|
1208
809
|
}, {
|
|
@@ -1503,11 +1104,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1503
1104
|
const el = computed(() => panelEl());
|
|
1504
1105
|
__expose({ el });
|
|
1505
1106
|
return (_ctx, _cache) => {
|
|
1506
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1107
|
+
return openBlock(), createBlock(unref(_sfc_main$B), null, {
|
|
1507
1108
|
default: withCtx(() => [
|
|
1508
|
-
createVNode(unref(_sfc_main$
|
|
1109
|
+
createVNode(unref(_sfc_main$G), { "is-enabled": unref(resolvedOpen) }, {
|
|
1509
1110
|
default: withCtx(() => [
|
|
1510
|
-
createVNode(_sfc_main$
|
|
1111
|
+
createVNode(_sfc_main$H, {
|
|
1511
1112
|
"is-inline": "",
|
|
1512
1113
|
"is-open": unref(resolvedOpen)
|
|
1513
1114
|
}, null, 8, ["is-open"]),
|
|
@@ -1518,7 +1119,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1518
1119
|
}, [
|
|
1519
1120
|
createVNode(unref(Presence), { "is-present": unref(resolvedOpen) }, {
|
|
1520
1121
|
default: withCtx(() => [
|
|
1521
|
-
createVNode(unref(_sfc_main$
|
|
1122
|
+
createVNode(unref(_sfc_main$I), {
|
|
1522
1123
|
"as-child": "",
|
|
1523
1124
|
"is-trapped": "",
|
|
1524
1125
|
"can-loop": "",
|
|
@@ -1526,7 +1127,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1526
1127
|
"on-mount-auto-focus": handleMountAutoFocus
|
|
1527
1128
|
}, {
|
|
1528
1129
|
default: withCtx(() => [
|
|
1529
|
-
createVNode(unref(_sfc_main$
|
|
1130
|
+
createVNode(unref(_sfc_main$J), mergeProps({
|
|
1530
1131
|
ref_key: "panel",
|
|
1531
1132
|
ref: panel,
|
|
1532
1133
|
"is-escape-disabled": !dismissesOnEscape.value,
|
|
@@ -1672,7 +1273,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1672
1273
|
});
|
|
1673
1274
|
const resolvedOpen = openState.value;
|
|
1674
1275
|
return (_ctx, _cache) => {
|
|
1675
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1276
|
+
return openBlock(), createBlock(unref(_sfc_main$t), {
|
|
1676
1277
|
open: unref(resolvedOpen),
|
|
1677
1278
|
"onUpdate:open": unref(openState).setValue
|
|
1678
1279
|
}, {
|
|
@@ -2158,7 +1759,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2158
1759
|
)
|
|
2159
1760
|
);
|
|
2160
1761
|
return (_ctx, _cache) => {
|
|
2161
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1762
|
+
return openBlock(), createBlock(unref(_sfc_main$t), {
|
|
2162
1763
|
open: unref(isOpen),
|
|
2163
1764
|
"onUpdate:open": setOpen
|
|
2164
1765
|
}, {
|
|
@@ -2170,7 +1771,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2170
1771
|
onKeydown
|
|
2171
1772
|
}), {
|
|
2172
1773
|
default: withCtx(() => [
|
|
2173
|
-
createVNode(unref(_sfc_main$
|
|
1774
|
+
createVNode(unref(_sfc_main$F), { class: "sr-only" }, {
|
|
2174
1775
|
default: withCtx(() => [
|
|
2175
1776
|
createTextVNode(toDisplayString(unref(props).label), 1)
|
|
2176
1777
|
]),
|
|
@@ -2178,7 +1779,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2178
1779
|
}),
|
|
2179
1780
|
createElementVNode("div", _hoisted_1, [
|
|
2180
1781
|
hasMany.value ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(counterText.value), 1)) : createCommentVNode("", true),
|
|
2181
|
-
createVNode(unref(_sfc_main$
|
|
1782
|
+
createVNode(unref(_sfc_main$v), { class: "ms-auto text-white hover:bg-white/10" })
|
|
2182
1783
|
]),
|
|
2183
1784
|
createElementVNode("figure", {
|
|
2184
1785
|
class: "relative flex min-h-0 flex-1 touch-pan-y touch-pinch-zoom flex-col items-center justify-center gap-2",
|
|
@@ -2227,19 +1828,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2227
1828
|
}
|
|
2228
1829
|
});
|
|
2229
1830
|
export {
|
|
2230
|
-
_sfc_main
|
|
2231
|
-
_sfc_main$
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
ModalSize as G,
|
|
2237
|
-
_sfc_main$i as H,
|
|
2238
|
-
commandPaletteContextKey as I,
|
|
2239
|
-
defaultFilter as J,
|
|
2240
|
-
useBottomSheet as K,
|
|
2241
|
-
useCommandPaletteContext as L,
|
|
2242
|
-
ModalPhoneLayout as M,
|
|
1831
|
+
_sfc_main as A,
|
|
1832
|
+
_sfc_main$i as B,
|
|
1833
|
+
commandPaletteContextKey as C,
|
|
1834
|
+
defaultFilter as D,
|
|
1835
|
+
useBottomSheet as E,
|
|
1836
|
+
useCommandPaletteContext as F,
|
|
2243
1837
|
_sfc_main$c as _,
|
|
2244
1838
|
_sfc_main$b as a,
|
|
2245
1839
|
_sfc_main$a as b,
|
|
@@ -2248,24 +1842,24 @@ export {
|
|
|
2248
1842
|
_sfc_main$k as e,
|
|
2249
1843
|
_sfc_main$m as f,
|
|
2250
1844
|
_sfc_main$9 as g,
|
|
2251
|
-
_sfc_main$
|
|
2252
|
-
_sfc_main$
|
|
2253
|
-
_sfc_main$
|
|
2254
|
-
_sfc_main$
|
|
2255
|
-
_sfc_main$
|
|
2256
|
-
_sfc_main$
|
|
2257
|
-
_sfc_main$
|
|
2258
|
-
_sfc_main$
|
|
2259
|
-
_sfc_main$
|
|
2260
|
-
_sfc_main$
|
|
2261
|
-
_sfc_main$
|
|
2262
|
-
_sfc_main$
|
|
2263
|
-
_sfc_main$
|
|
2264
|
-
_sfc_main$
|
|
2265
|
-
_sfc_main$
|
|
2266
|
-
_sfc_main$
|
|
2267
|
-
_sfc_main$
|
|
2268
|
-
_sfc_main$
|
|
2269
|
-
_sfc_main$
|
|
1845
|
+
_sfc_main$q as h,
|
|
1846
|
+
_sfc_main$8 as i,
|
|
1847
|
+
_sfc_main$7 as j,
|
|
1848
|
+
_sfc_main$2 as k,
|
|
1849
|
+
_sfc_main$4 as l,
|
|
1850
|
+
_sfc_main$6 as m,
|
|
1851
|
+
_sfc_main$3 as n,
|
|
1852
|
+
_sfc_main$5 as o,
|
|
1853
|
+
_sfc_main$1 as p,
|
|
1854
|
+
_sfc_main$h as q,
|
|
1855
|
+
_sfc_main$p as r,
|
|
1856
|
+
_sfc_main$o as s,
|
|
1857
|
+
_sfc_main$r as t,
|
|
1858
|
+
_sfc_main$s as u,
|
|
1859
|
+
_sfc_main$j as v,
|
|
1860
|
+
_sfc_main$g as w,
|
|
1861
|
+
_sfc_main$d as x,
|
|
1862
|
+
_sfc_main$e as y,
|
|
1863
|
+
_sfc_main$f as z
|
|
2270
1864
|
};
|
|
2271
|
-
//# sourceMappingURL=LightboxModal.vue_vue_type_script_setup_true_lang-
|
|
1865
|
+
//# sourceMappingURL=LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js.map
|