@wow-two-beta/fe 0.0.31 → 0.0.33
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 +7 -6
- package/dist/chunks/{AccountMenu.vue_vue_type_script_setup_true_lang-CG03MviN.js → AccountMenu.vue_vue_type_script_setup_true_lang-LEQUWCXJ.js} +7 -3
- package/dist/chunks/{AccountMenu.vue_vue_type_script_setup_true_lang-CG03MviN.js.map → AccountMenu.vue_vue_type_script_setup_true_lang-LEQUWCXJ.js.map} +1 -1
- package/dist/chunks/Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js +155 -0
- package/dist/chunks/Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js.map +1 -0
- package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js → ColorSwatchPreview.vue_vue_type_script_setup_true_lang-Btd7KUEw.js} +70 -230
- package/dist/chunks/ColorSwatchPreview.vue_vue_type_script_setup_true_lang-Btd7KUEw.js.map +1 -0
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-E72RRrNG.js} +87 -233
- package/dist/chunks/ErrorBoundary.vue_vue_type_script_setup_true_lang-E72RRrNG.js.map +1 -0
- package/dist/chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-2IDI_JgQ.js +216 -0
- package/dist/chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-2IDI_JgQ.js.map +1 -0
- package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js → KanbanCard.vue_vue_type_script_setup_true_lang-BrQFyOiU.js} +177 -223
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-BrQFyOiU.js.map +1 -0
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-C5GpXgfl.js → MasonryLayout.vue_vue_type_script_setup_true_lang-BmWwoZrv.js} +29 -104
- package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-BmWwoZrv.js.map +1 -0
- package/dist/chunks/Navbar.variants-7DXJlilx.js +88 -0
- package/dist/chunks/Navbar.variants-7DXJlilx.js.map +1 -0
- package/dist/chunks/TypedConfirmField.vue_vue_type_script_setup_true_lang-DXCZlnlM.js +447 -0
- package/dist/chunks/TypedConfirmField.vue_vue_type_script_setup_true_lang-DXCZlnlM.js.map +1 -0
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js → TypedConfirmModal.vue_vue_type_script_setup_true_lang-CoIaH_xx.js} +299 -108
- package/dist/chunks/TypedConfirmModal.vue_vue_type_script_setup_true_lang-CoIaH_xx.js.map +1 -0
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js → UseTypedConfirmation-CvY2T4Up.js} +331 -582
- package/dist/chunks/UseTypedConfirmation-CvY2T4Up.js.map +1 -0
- package/dist/chunks/{index-CRV9gpyX.js → index-ou-qGNDu.js} +6 -3
- package/dist/chunks/index-ou-qGNDu.js.map +1 -0
- package/dist/foundation/http/ApiDecoderExtensions.d.ts +22 -0
- package/dist/foundation/http/ApiFailureExtensions.d.ts +22 -0
- package/dist/foundation/http/ProblemDetailsExtensions.d.ts +31 -0
- package/dist/foundation/http/index.d.ts +3 -0
- package/dist/foundation/http/index.js +93 -2
- package/dist/foundation/http/index.js.map +1 -1
- package/dist/foundation/themes/Theme.d.ts +7 -2
- package/dist/foundation/themes/index.js +1 -1
- package/dist/index.css +15 -9
- package/dist/index.js +657 -651
- package/dist/index.js.map +1 -1
- package/dist/presentation/display/index.js +158 -157
- package/dist/presentation/display/index.js.map +1 -1
- package/dist/presentation/feedback/index.js +43 -42
- package/dist/presentation/feedback/index.js.map +1 -1
- package/dist/presentation/forms/index.d.ts +1 -0
- package/dist/presentation/forms/index.js +139 -137
- package/dist/presentation/forms/tagsInput/TagsInput.vue.d.ts +1 -1
- package/dist/presentation/forms/typedConfirmField/TypedConfirmField.vue.d.ts +61 -0
- package/dist/presentation/forms/typedConfirmField/UseTypedConfirmation.d.ts +32 -0
- package/dist/presentation/forms/typedConfirmField/index.d.ts +2 -0
- package/dist/presentation/layout/index.js +34 -33
- package/dist/presentation/layout/index.js.map +1 -1
- package/dist/presentation/layout/navbar/Navbar.variants.d.ts +7 -1
- package/dist/presentation/nav/bottomNavMenu/BottomNavMenu.vue.d.ts +8 -0
- package/dist/presentation/nav/index.js +1 -1
- package/dist/presentation/overlays/index.d.ts +1 -0
- package/dist/presentation/overlays/index.js +6 -5
- package/dist/presentation/overlays/typedConfirmModal/TypedConfirmModal.vue.d.ts +64 -0
- package/dist/presentation/overlays/typedConfirmModal/index.d.ts +1 -0
- package/dist/themes.css +2 -0
- package/package.json +1 -1
- package/dist/chunks/ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js.map +0 -1
- package/dist/chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js.map +0 -1
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js.map +0 -1
- package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js.map +0 -1
- package/dist/chunks/ListboxPicker.variants-hiMcl66_.js +0 -44
- package/dist/chunks/ListboxPicker.variants-hiMcl66_.js.map +0 -1
- package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-C5GpXgfl.js.map +0 -1
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js.map +0 -1
- package/dist/chunks/index-CRV9gpyX.js.map +0 -1
|
@@ -1,32 +1,34 @@
|
|
|
1
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$
|
|
4
|
-
import { u as useModalContext, a as _sfc_main$
|
|
3
|
+
import { O as OverlayExtensions, _ as _sfc_main$y, b as _sfc_main$z, a as _sfc_main$A } from "./PopoverContent.vue_vue_type_script_setup_true_lang-iUlvOlO9.js";
|
|
4
|
+
import { u as useModalContext, a as _sfc_main$u, M as ModalPhoneLayout, c as _sfc_main$v, b as _sfc_main$w, _ as _sfc_main$G } from "./OverlayCloseButton.vue_vue_type_script_setup_true_lang-D0f_usZ9.js";
|
|
5
5
|
import { P as Primitive } from "./Primitive-D-9ShOm7.js";
|
|
6
6
|
import { c as cn } from "./Cn-C7De6POU.js";
|
|
7
|
-
import { u as useDrawerContext, _ as _sfc_main$
|
|
8
|
-
import { _ as _sfc_main$
|
|
7
|
+
import { u as useDrawerContext, _ as _sfc_main$E, a as _sfc_main$F } from "./DrawerContent.vue_vue_type_script_setup_true_lang-ClhduLMN.js";
|
|
8
|
+
import { _ as _sfc_main$x } from "./OverlayArrow.vue_vue_type_script_setup_true_lang-CLYhnI8i.js";
|
|
9
9
|
import { u as useLocaleDefaults } from "./UseLocaleDefaults-DnL2Ctbe.js";
|
|
10
10
|
import { u as useId } from "./UseId-CtgAhGrn.js";
|
|
11
11
|
import { u as useControlled } from "./UseControlled-BQneb7BW.js";
|
|
12
|
-
import { _ as _sfc_main$
|
|
12
|
+
import { _ as _sfc_main$B } from "./Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js";
|
|
13
13
|
import { u as useEscape } from "./UseEscape-3hj5BJus.js";
|
|
14
|
-
import { _ as _sfc_main$
|
|
15
|
-
import { _ as _sfc_main$
|
|
14
|
+
import { _ as _sfc_main$C } from "./Portal.vue_vue_type_script_setup_true_lang-C2_xSIMy.js";
|
|
15
|
+
import { _ as _sfc_main$D } from "./AnchoredPositioner.vue_vue_type_script_setup_true_lang-BpBVI2Cu.js";
|
|
16
16
|
import { P as Presence } from "./Presence-DDk0ZtAr.js";
|
|
17
17
|
import { u as useLocale } from "./LocaleContext-B7vUZmX-.js";
|
|
18
|
-
import { u as useOverlayChromeContext, o as overlayChromeContextKey } from "./OverlayChrome-BqRpuYX5.js";
|
|
19
18
|
import { s as surfaceVariants } from "./SurfaceStyles-DUVz963_.js";
|
|
20
|
-
import { _ as _sfc_main$
|
|
21
|
-
import {
|
|
22
|
-
import { _ as _sfc_main$
|
|
23
|
-
import { _ as _sfc_main$J } from "./
|
|
19
|
+
import { _ as _sfc_main$I } from "./BackdropOverlay.vue_vue_type_script_setup_true_lang-BsjQoWDM.js";
|
|
20
|
+
import { u as useOverlayChromeContext, o as overlayChromeContextKey } from "./OverlayChrome-BqRpuYX5.js";
|
|
21
|
+
import { _ as _sfc_main$H } from "./ScrollLockProvider.vue_vue_type_script_setup_true_lang-C6WDtqT0.js";
|
|
22
|
+
import { _ as _sfc_main$J } from "./FocusScope.vue_vue_type_script_setup_true_lang-C4XeQoxg.js";
|
|
23
|
+
import { _ as _sfc_main$K } from "./DismissableLayer.vue_vue_type_script_setup_true_lang-B8hZrhek.js";
|
|
24
24
|
import { a as useHotkeys } from "./UseHotkeys-Dapfyg78.js";
|
|
25
25
|
import { D as DomOrderExtensions } from "./DomOrderExtensions-Czsyvn6e.js";
|
|
26
26
|
import { Search, ChevronLeft, ChevronRight } from "lucide-vue-next";
|
|
27
|
-
import { _ as _sfc_main$
|
|
28
|
-
import { l as listboxGroupLabelVariants,
|
|
29
|
-
|
|
27
|
+
import { _ as _sfc_main$L } from "./Icon.vue_vue_type_script_setup_true_lang-Ca4wsJw9.js";
|
|
28
|
+
import { l as listboxGroupLabelVariants, f as listboxItemVariants, g as listboxEmptyVariants, h as listboxSeparatorVariants, e as _sfc_main$M } from "./TypedConfirmField.vue_vue_type_script_setup_true_lang-DXCZlnlM.js";
|
|
29
|
+
import { B as ButtonType } from "./HtmlValues-jlKY5f9C.js";
|
|
30
|
+
import { _ as _sfc_main$N } from "./Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js";
|
|
31
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
30
32
|
...{ name: "ModalTrigger", inheritAttrs: false },
|
|
31
33
|
__name: "ModalTrigger",
|
|
32
34
|
props: {
|
|
@@ -70,7 +72,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
70
72
|
};
|
|
71
73
|
}
|
|
72
74
|
});
|
|
73
|
-
const _sfc_main$
|
|
75
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
74
76
|
...{ name: "OverlayHeader", inheritAttrs: false },
|
|
75
77
|
__name: "OverlayHeader",
|
|
76
78
|
setup(__props, { expose: __expose }) {
|
|
@@ -93,7 +95,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
93
95
|
}
|
|
94
96
|
});
|
|
95
97
|
const _hoisted_1$8 = ["id"];
|
|
96
|
-
const _sfc_main$
|
|
98
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
97
99
|
...{ name: "OverlayDescription", inheritAttrs: false },
|
|
98
100
|
__name: "OverlayDescription",
|
|
99
101
|
setup(__props, { expose: __expose }) {
|
|
@@ -117,7 +119,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
117
119
|
};
|
|
118
120
|
}
|
|
119
121
|
});
|
|
120
|
-
const _sfc_main$
|
|
122
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
121
123
|
...{ name: "OverlayBody", inheritAttrs: false },
|
|
122
124
|
__name: "OverlayBody",
|
|
123
125
|
setup(__props, { expose: __expose }) {
|
|
@@ -141,7 +143,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
141
143
|
};
|
|
142
144
|
}
|
|
143
145
|
});
|
|
144
|
-
const _sfc_main$
|
|
146
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
145
147
|
...{ name: "OverlayFooter", inheritAttrs: false },
|
|
146
148
|
__name: "OverlayFooter",
|
|
147
149
|
setup(__props, { expose: __expose }) {
|
|
@@ -165,7 +167,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
165
167
|
};
|
|
166
168
|
}
|
|
167
169
|
});
|
|
168
|
-
const _sfc_main$
|
|
170
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
169
171
|
...{ name: "AlertModal", inheritAttrs: false },
|
|
170
172
|
__name: "AlertModal",
|
|
171
173
|
props: {
|
|
@@ -183,7 +185,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
183
185
|
emit("update:open", open);
|
|
184
186
|
}
|
|
185
187
|
return (_ctx, _cache) => {
|
|
186
|
-
return openBlock(), createBlock(_sfc_main$
|
|
188
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
187
189
|
open: props.open,
|
|
188
190
|
"default-open": props.defaultOpen,
|
|
189
191
|
"dismiss-on-escape": props.dismissOnEscape,
|
|
@@ -199,7 +201,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
199
201
|
};
|
|
200
202
|
}
|
|
201
203
|
});
|
|
202
|
-
const _sfc_main$
|
|
204
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
203
205
|
...{ name: "AlertModalContent", inheritAttrs: false },
|
|
204
206
|
__name: "AlertModalContent",
|
|
205
207
|
props: {
|
|
@@ -223,7 +225,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
223
225
|
const el = computed(() => resolveElement(inner.value));
|
|
224
226
|
__expose({ el });
|
|
225
227
|
return (_ctx, _cache) => {
|
|
226
|
-
return openBlock(), createBlock(_sfc_main$
|
|
228
|
+
return openBlock(), createBlock(_sfc_main$v, mergeProps({
|
|
227
229
|
ref_key: "inner",
|
|
228
230
|
ref: inner
|
|
229
231
|
}, forwarded.value), {
|
|
@@ -235,7 +237,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
235
237
|
};
|
|
236
238
|
}
|
|
237
239
|
});
|
|
238
|
-
const _sfc_main$
|
|
240
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
239
241
|
...{ name: "AlertModalAction", inheritAttrs: false },
|
|
240
242
|
__name: "AlertModalAction",
|
|
241
243
|
emits: ["action"],
|
|
@@ -260,7 +262,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
260
262
|
const el = computed(() => resolveElement(inner.value));
|
|
261
263
|
__expose({ el });
|
|
262
264
|
return (_ctx, _cache) => {
|
|
263
|
-
return openBlock(), createBlock(_sfc_main$
|
|
265
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
264
266
|
ref_key: "inner",
|
|
265
267
|
ref: inner,
|
|
266
268
|
"as-child": ""
|
|
@@ -279,7 +281,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
279
281
|
};
|
|
280
282
|
}
|
|
281
283
|
});
|
|
282
|
-
const _sfc_main$
|
|
284
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
283
285
|
...{ name: "AlertModalCancel", inheritAttrs: false },
|
|
284
286
|
__name: "AlertModalCancel",
|
|
285
287
|
setup(__props, { expose: __expose }) {
|
|
@@ -298,7 +300,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
298
300
|
const el = computed(() => resolveElement(inner.value));
|
|
299
301
|
__expose({ el });
|
|
300
302
|
return (_ctx, _cache) => {
|
|
301
|
-
return openBlock(), createBlock(_sfc_main$
|
|
303
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
302
304
|
ref_key: "inner",
|
|
303
305
|
ref: inner,
|
|
304
306
|
"as-child": ""
|
|
@@ -316,7 +318,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
316
318
|
};
|
|
317
319
|
}
|
|
318
320
|
});
|
|
319
|
-
const _sfc_main$
|
|
321
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
320
322
|
...{ name: "DrawerTrigger", inheritAttrs: false },
|
|
321
323
|
__name: "DrawerTrigger",
|
|
322
324
|
props: {
|
|
@@ -360,7 +362,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
360
362
|
};
|
|
361
363
|
}
|
|
362
364
|
});
|
|
363
|
-
const _sfc_main$
|
|
365
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
364
366
|
...{ name: "PopoverArrow", inheritAttrs: false },
|
|
365
367
|
__name: "PopoverArrow",
|
|
366
368
|
props: {
|
|
@@ -376,7 +378,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
376
378
|
return others;
|
|
377
379
|
});
|
|
378
380
|
return (_ctx, _cache) => {
|
|
379
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
381
|
+
return openBlock(), createBlock(unref(_sfc_main$x), mergeProps({
|
|
380
382
|
width: props.width,
|
|
381
383
|
height: props.height
|
|
382
384
|
}, rest.value, { class: classes.value }), null, 16, ["width", "height", "class"]);
|
|
@@ -388,10 +390,10 @@ const _hoisted_2$5 = { class: "space-y-1" };
|
|
|
388
390
|
const _hoisted_3$1 = ["id"];
|
|
389
391
|
const _hoisted_4$1 = ["id"];
|
|
390
392
|
const _hoisted_5$1 = { class: "flex justify-end gap-2" };
|
|
391
|
-
function isThenable(value) {
|
|
393
|
+
function isThenable$1(value) {
|
|
392
394
|
return (typeof value === "object" || typeof value === "function") && value !== null && typeof value.then === "function";
|
|
393
395
|
}
|
|
394
|
-
const _sfc_main$
|
|
396
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
395
397
|
...{ name: "ConfirmPopover", inheritAttrs: false },
|
|
396
398
|
__name: "ConfirmPopover",
|
|
397
399
|
props: {
|
|
@@ -447,7 +449,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
447
449
|
emit("error", error);
|
|
448
450
|
return;
|
|
449
451
|
}
|
|
450
|
-
if (isThenable(outcome)) {
|
|
452
|
+
if (isThenable$1(outcome)) {
|
|
451
453
|
isPending.value = true;
|
|
452
454
|
try {
|
|
453
455
|
await outcome;
|
|
@@ -463,7 +465,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
463
465
|
controlled.setValue(false);
|
|
464
466
|
}
|
|
465
467
|
return (_ctx, _cache) => {
|
|
466
|
-
return openBlock(), createBlock(_sfc_main$
|
|
468
|
+
return openBlock(), createBlock(_sfc_main$y, {
|
|
467
469
|
open: unref(isOpen),
|
|
468
470
|
placement: unref(props).placement,
|
|
469
471
|
offset: unref(props).offset,
|
|
@@ -472,7 +474,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
472
474
|
"onUpdate:open": requestOpen
|
|
473
475
|
}, {
|
|
474
476
|
default: withCtx(() => [
|
|
475
|
-
createVNode(_sfc_main$
|
|
477
|
+
createVNode(_sfc_main$z, {
|
|
476
478
|
"as-child": "",
|
|
477
479
|
"aria-disabled": unref(props).isDisabled || void 0
|
|
478
480
|
}, {
|
|
@@ -481,7 +483,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
481
483
|
]),
|
|
482
484
|
_: 3
|
|
483
485
|
}, 8, ["aria-disabled"]),
|
|
484
|
-
createVNode(_sfc_main$
|
|
486
|
+
createVNode(_sfc_main$A, mergeProps({
|
|
485
487
|
"aria-labelledby": unref(titleId),
|
|
486
488
|
"aria-describedby": hasDescription.value ? unref(descriptionId) : void 0,
|
|
487
489
|
"aria-busy": isPending.value || void 0
|
|
@@ -504,7 +506,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
504
506
|
], 8, _hoisted_4$1)) : createCommentVNode("", true)
|
|
505
507
|
]),
|
|
506
508
|
createElementVNode("div", _hoisted_5$1, [
|
|
507
|
-
createVNode(_sfc_main$
|
|
509
|
+
createVNode(_sfc_main$B, {
|
|
508
510
|
variant: "ghost",
|
|
509
511
|
size: "sm",
|
|
510
512
|
"is-disabled": isPending.value,
|
|
@@ -515,7 +517,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
515
517
|
]),
|
|
516
518
|
_: 1
|
|
517
519
|
}, 8, ["is-disabled"]),
|
|
518
|
-
createVNode(_sfc_main$
|
|
520
|
+
createVNode(_sfc_main$B, {
|
|
519
521
|
variant: "solid",
|
|
520
522
|
size: "sm",
|
|
521
523
|
tone: unref(props).tone,
|
|
@@ -544,7 +546,7 @@ function useHoverCardContext() {
|
|
|
544
546
|
if (!context) throw new Error("HoverCard.* must be used inside <HoverCard>");
|
|
545
547
|
return context;
|
|
546
548
|
}
|
|
547
|
-
const _sfc_main$
|
|
549
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
548
550
|
...{ name: "HoverCard", inheritAttrs: false },
|
|
549
551
|
__name: "HoverCard",
|
|
550
552
|
props: {
|
|
@@ -612,7 +614,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
612
614
|
};
|
|
613
615
|
}
|
|
614
616
|
});
|
|
615
|
-
const _sfc_main$
|
|
617
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
616
618
|
...{ name: "HoverCardTrigger", inheritAttrs: false },
|
|
617
619
|
__name: "HoverCardTrigger",
|
|
618
620
|
props: {
|
|
@@ -658,7 +660,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
658
660
|
};
|
|
659
661
|
}
|
|
660
662
|
});
|
|
661
|
-
const _sfc_main$
|
|
663
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
662
664
|
...{ name: "HoverCardContent", inheritAttrs: false },
|
|
663
665
|
__name: "HoverCardContent",
|
|
664
666
|
setup(__props, { expose: __expose }) {
|
|
@@ -682,9 +684,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
682
684
|
});
|
|
683
685
|
__expose({ el });
|
|
684
686
|
return (_ctx, _cache) => {
|
|
685
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
687
|
+
return openBlock(), createBlock(unref(_sfc_main$C), null, {
|
|
686
688
|
default: withCtx(() => [
|
|
687
|
-
createVNode(unref(_sfc_main$
|
|
689
|
+
createVNode(unref(_sfc_main$D), {
|
|
688
690
|
anchor: anchor.value,
|
|
689
691
|
placement: unref(placement),
|
|
690
692
|
offset: unref(offset),
|
|
@@ -715,7 +717,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
715
717
|
};
|
|
716
718
|
}
|
|
717
719
|
});
|
|
718
|
-
const _sfc_main$
|
|
720
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
719
721
|
...{ name: "HoverCardArrow", inheritAttrs: false },
|
|
720
722
|
__name: "HoverCardArrow",
|
|
721
723
|
props: {
|
|
@@ -731,7 +733,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
731
733
|
return others;
|
|
732
734
|
});
|
|
733
735
|
return (_ctx, _cache) => {
|
|
734
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
736
|
+
return openBlock(), createBlock(unref(_sfc_main$x), mergeProps({
|
|
735
737
|
width: props.width,
|
|
736
738
|
height: props.height
|
|
737
739
|
}, rest.value, { class: classes.value }), null, 16, ["width", "height", "class"]);
|
|
@@ -749,7 +751,7 @@ function useActionSheetContext() {
|
|
|
749
751
|
if (!context) throw new Error("ActionSheet.* must be used inside <ActionSheet>");
|
|
750
752
|
return context;
|
|
751
753
|
}
|
|
752
|
-
const _sfc_main$
|
|
754
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
753
755
|
...{ name: "ActionSheet", inheritAttrs: false },
|
|
754
756
|
__name: "ActionSheet",
|
|
755
757
|
props: {
|
|
@@ -783,16 +785,16 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
783
785
|
return others;
|
|
784
786
|
});
|
|
785
787
|
return (_ctx, _cache) => {
|
|
786
|
-
return openBlock(), createBlock(_sfc_main$
|
|
788
|
+
return openBlock(), createBlock(_sfc_main$E, {
|
|
787
789
|
open: unref(resolvedOpen),
|
|
788
790
|
side: "bottom",
|
|
789
791
|
"onUpdate:open": unref(controlled).setValue
|
|
790
792
|
}, {
|
|
791
793
|
default: withCtx(() => [
|
|
792
|
-
createVNode(_sfc_main$
|
|
794
|
+
createVNode(_sfc_main$F, mergeProps(rest.value, { class: classes.value }), {
|
|
793
795
|
default: withCtx(() => [
|
|
794
796
|
hasTitle.value || hasDescription.value ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
795
|
-
hasTitle.value ? (openBlock(), createBlock(_sfc_main$
|
|
797
|
+
hasTitle.value ? (openBlock(), createBlock(_sfc_main$G, {
|
|
796
798
|
key: 0,
|
|
797
799
|
class: "text-sm font-medium text-muted-foreground"
|
|
798
800
|
}, {
|
|
@@ -803,7 +805,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
803
805
|
]),
|
|
804
806
|
_: 3
|
|
805
807
|
})) : createCommentVNode("", true),
|
|
806
|
-
hasDescription.value ? (openBlock(), createBlock(_sfc_main$
|
|
808
|
+
hasDescription.value ? (openBlock(), createBlock(_sfc_main$r, {
|
|
807
809
|
key: 1,
|
|
808
810
|
class: "mt-1 text-xs text-muted-foreground"
|
|
809
811
|
}, {
|
|
@@ -827,7 +829,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
827
829
|
};
|
|
828
830
|
}
|
|
829
831
|
});
|
|
830
|
-
const _sfc_main$
|
|
832
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
831
833
|
...{ name: "ActionSheetAction", inheritAttrs: false },
|
|
832
834
|
__name: "ActionSheetAction",
|
|
833
835
|
props: {
|
|
@@ -871,7 +873,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
871
873
|
};
|
|
872
874
|
}
|
|
873
875
|
});
|
|
874
|
-
const _sfc_main$
|
|
876
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
875
877
|
...{ name: "ActionSheetCancel", inheritAttrs: false },
|
|
876
878
|
__name: "ActionSheetCancel",
|
|
877
879
|
setup(__props, { expose: __expose }) {
|
|
@@ -927,7 +929,7 @@ function resolveSnapPx(point, viewport) {
|
|
|
927
929
|
const n = parseFloat(trimmed);
|
|
928
930
|
return Number.isFinite(n) ? n : 0;
|
|
929
931
|
}
|
|
930
|
-
const _sfc_main$
|
|
932
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
931
933
|
...{ name: "BottomSheet", inheritAttrs: false },
|
|
932
934
|
__name: "BottomSheet",
|
|
933
935
|
props: {
|
|
@@ -1104,11 +1106,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1104
1106
|
const el = computed(() => panelEl());
|
|
1105
1107
|
__expose({ el });
|
|
1106
1108
|
return (_ctx, _cache) => {
|
|
1107
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1109
|
+
return openBlock(), createBlock(unref(_sfc_main$C), null, {
|
|
1108
1110
|
default: withCtx(() => [
|
|
1109
|
-
createVNode(unref(_sfc_main$
|
|
1111
|
+
createVNode(unref(_sfc_main$H), { "is-enabled": unref(resolvedOpen) }, {
|
|
1110
1112
|
default: withCtx(() => [
|
|
1111
|
-
createVNode(_sfc_main$
|
|
1113
|
+
createVNode(_sfc_main$I, {
|
|
1112
1114
|
"is-inline": "",
|
|
1113
1115
|
"is-open": unref(resolvedOpen)
|
|
1114
1116
|
}, null, 8, ["is-open"]),
|
|
@@ -1119,7 +1121,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1119
1121
|
}, [
|
|
1120
1122
|
createVNode(unref(Presence), { "is-present": unref(resolvedOpen) }, {
|
|
1121
1123
|
default: withCtx(() => [
|
|
1122
|
-
createVNode(unref(_sfc_main$
|
|
1124
|
+
createVNode(unref(_sfc_main$J), {
|
|
1123
1125
|
"as-child": "",
|
|
1124
1126
|
"is-trapped": "",
|
|
1125
1127
|
"can-loop": "",
|
|
@@ -1127,7 +1129,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1127
1129
|
"on-mount-auto-focus": handleMountAutoFocus
|
|
1128
1130
|
}, {
|
|
1129
1131
|
default: withCtx(() => [
|
|
1130
|
-
createVNode(unref(_sfc_main$
|
|
1132
|
+
createVNode(unref(_sfc_main$K), mergeProps({
|
|
1131
1133
|
ref_key: "panel",
|
|
1132
1134
|
ref: panel,
|
|
1133
1135
|
"is-escape-disabled": !dismissesOnEscape.value,
|
|
@@ -1192,7 +1194,7 @@ function useCommandPaletteContext() {
|
|
|
1192
1194
|
return context;
|
|
1193
1195
|
}
|
|
1194
1196
|
const defaultFilter = (searchText, search) => searchText.toLowerCase().includes(search.toLowerCase());
|
|
1195
|
-
const _sfc_main$
|
|
1197
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
1196
1198
|
...{ name: "CommandPaletteModal", inheritAttrs: false },
|
|
1197
1199
|
__name: "CommandPaletteModal",
|
|
1198
1200
|
props: {
|
|
@@ -1273,7 +1275,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1273
1275
|
});
|
|
1274
1276
|
const resolvedOpen = openState.value;
|
|
1275
1277
|
return (_ctx, _cache) => {
|
|
1276
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1278
|
+
return openBlock(), createBlock(unref(_sfc_main$u), {
|
|
1277
1279
|
open: unref(resolvedOpen),
|
|
1278
1280
|
"onUpdate:open": unref(openState).setValue
|
|
1279
1281
|
}, {
|
|
@@ -1285,7 +1287,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1285
1287
|
};
|
|
1286
1288
|
}
|
|
1287
1289
|
});
|
|
1288
|
-
const _sfc_main$
|
|
1290
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
1289
1291
|
...{ name: "CommandPaletteModalContent", inheritAttrs: false },
|
|
1290
1292
|
__name: "CommandPaletteModalContent",
|
|
1291
1293
|
setup(__props) {
|
|
@@ -1296,7 +1298,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1296
1298
|
return others;
|
|
1297
1299
|
});
|
|
1298
1300
|
return (_ctx, _cache) => {
|
|
1299
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1301
|
+
return openBlock(), createBlock(unref(_sfc_main$v), mergeProps(rest.value, { class: classes.value }), {
|
|
1300
1302
|
default: withCtx(() => [
|
|
1301
1303
|
renderSlot(_ctx.$slots, "default")
|
|
1302
1304
|
]),
|
|
@@ -1308,7 +1310,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1308
1310
|
const _hoisted_1$4 = { class: "flex items-center gap-2 border-b border-border px-3" };
|
|
1309
1311
|
const _hoisted_2$2 = ["id", "aria-controls", "aria-activedescendant", "placeholder", "value"];
|
|
1310
1312
|
const DefaultPlaceholder = "Type a command…";
|
|
1311
|
-
const _sfc_main$
|
|
1313
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1312
1314
|
...{ name: "CommandPaletteModalInput", inheritAttrs: false },
|
|
1313
1315
|
__name: "CommandPaletteModalInput",
|
|
1314
1316
|
setup(__props, { expose: __expose }) {
|
|
@@ -1415,7 +1417,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1415
1417
|
__expose({ el });
|
|
1416
1418
|
return (_ctx, _cache) => {
|
|
1417
1419
|
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
1418
|
-
createVNode(unref(_sfc_main$
|
|
1420
|
+
createVNode(unref(_sfc_main$L), {
|
|
1419
1421
|
icon: unref(Search),
|
|
1420
1422
|
size: 16,
|
|
1421
1423
|
class: "text-muted-foreground"
|
|
@@ -1440,7 +1442,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1440
1442
|
}
|
|
1441
1443
|
});
|
|
1442
1444
|
const _hoisted_1$3 = ["id", "aria-labelledby"];
|
|
1443
|
-
const _sfc_main$
|
|
1445
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
1444
1446
|
...{ name: "CommandPaletteModalList", inheritAttrs: false },
|
|
1445
1447
|
__name: "CommandPaletteModalList",
|
|
1446
1448
|
setup(__props, { expose: __expose }) {
|
|
@@ -1468,7 +1470,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1468
1470
|
});
|
|
1469
1471
|
const _hoisted_1$2 = ["aria-labelledby"];
|
|
1470
1472
|
const _hoisted_2$1 = ["id"];
|
|
1471
|
-
const _sfc_main$
|
|
1473
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
1472
1474
|
...{ name: "CommandPaletteModalGroup", inheritAttrs: false },
|
|
1473
1475
|
__name: "CommandPaletteModalGroup",
|
|
1474
1476
|
props: {
|
|
@@ -1504,7 +1506,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1504
1506
|
}
|
|
1505
1507
|
});
|
|
1506
1508
|
const _hoisted_1$1 = ["id", "aria-selected", "aria-disabled", "data-active"];
|
|
1507
|
-
const _sfc_main$
|
|
1509
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
1508
1510
|
...{ name: "CommandPaletteModalItem", inheritAttrs: false },
|
|
1509
1511
|
__name: "CommandPaletteModalItem",
|
|
1510
1512
|
props: {
|
|
@@ -1582,7 +1584,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1582
1584
|
};
|
|
1583
1585
|
}
|
|
1584
1586
|
});
|
|
1585
|
-
const _sfc_main$
|
|
1587
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1586
1588
|
...{ name: "CommandPaletteModalEmpty", inheritAttrs: false },
|
|
1587
1589
|
__name: "CommandPaletteModalEmpty",
|
|
1588
1590
|
setup(__props, { expose: __expose }) {
|
|
@@ -1611,7 +1613,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1611
1613
|
};
|
|
1612
1614
|
}
|
|
1613
1615
|
});
|
|
1614
|
-
const _sfc_main$
|
|
1616
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1615
1617
|
...{ name: "CommandPaletteModalSeparator", inheritAttrs: false },
|
|
1616
1618
|
__name: "CommandPaletteModalSeparator",
|
|
1617
1619
|
setup(__props, { expose: __expose }) {
|
|
@@ -1651,7 +1653,7 @@ const _hoisted_7 = {
|
|
|
1651
1653
|
};
|
|
1652
1654
|
const SwipeDistance = 48;
|
|
1653
1655
|
const StepButtonClass = "absolute top-1/2 grid size-10 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white transition-colors hover:bg-black/70 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-white disabled:pointer-events-none disabled:opacity-30";
|
|
1654
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1656
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1655
1657
|
...{ name: "LightboxModal", inheritAttrs: false },
|
|
1656
1658
|
__name: "LightboxModal",
|
|
1657
1659
|
props: {
|
|
@@ -1759,19 +1761,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1759
1761
|
)
|
|
1760
1762
|
);
|
|
1761
1763
|
return (_ctx, _cache) => {
|
|
1762
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1764
|
+
return openBlock(), createBlock(unref(_sfc_main$u), {
|
|
1763
1765
|
open: unref(isOpen),
|
|
1764
1766
|
"onUpdate:open": setOpen
|
|
1765
1767
|
}, {
|
|
1766
1768
|
default: withCtx(() => [
|
|
1767
1769
|
renderSlot(_ctx.$slots, "default", { openAt }),
|
|
1768
|
-
createVNode(unref(_sfc_main$
|
|
1770
|
+
createVNode(unref(_sfc_main$v), mergeProps(rest.value, {
|
|
1769
1771
|
"is-blurred": "",
|
|
1770
1772
|
class: contentClass.value,
|
|
1771
1773
|
onKeydown
|
|
1772
1774
|
}), {
|
|
1773
1775
|
default: withCtx(() => [
|
|
1774
|
-
createVNode(unref(_sfc_main$
|
|
1776
|
+
createVNode(unref(_sfc_main$G), { class: "sr-only" }, {
|
|
1775
1777
|
default: withCtx(() => [
|
|
1776
1778
|
createTextVNode(toDisplayString(unref(props).label), 1)
|
|
1777
1779
|
]),
|
|
@@ -1779,7 +1781,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1779
1781
|
}),
|
|
1780
1782
|
createElementVNode("div", _hoisted_1, [
|
|
1781
1783
|
hasMany.value ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(counterText.value), 1)) : createCommentVNode("", true),
|
|
1782
|
-
createVNode(unref(_sfc_main$
|
|
1784
|
+
createVNode(unref(_sfc_main$w), { class: "ms-auto text-white hover:bg-white/10" })
|
|
1783
1785
|
]),
|
|
1784
1786
|
createElementVNode("figure", {
|
|
1785
1787
|
class: "relative flex min-h-0 flex-1 touch-pan-y touch-pinch-zoom flex-col items-center justify-center gap-2",
|
|
@@ -1827,39 +1829,228 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1827
1829
|
};
|
|
1828
1830
|
}
|
|
1829
1831
|
});
|
|
1832
|
+
function isThenable(value) {
|
|
1833
|
+
return (typeof value === "object" || typeof value === "function") && value !== null && typeof value.then === "function";
|
|
1834
|
+
}
|
|
1835
|
+
function isFailedResult(value) {
|
|
1836
|
+
return typeof value === "object" && value !== null && value.ok === false && "failure" in value;
|
|
1837
|
+
}
|
|
1838
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1839
|
+
...{ name: "TypedConfirmModal", inheritAttrs: false },
|
|
1840
|
+
__name: "TypedConfirmModal",
|
|
1841
|
+
props: {
|
|
1842
|
+
open: { type: Boolean, default: void 0 },
|
|
1843
|
+
defaultOpen: { type: Boolean, default: false },
|
|
1844
|
+
title: {},
|
|
1845
|
+
description: { default: void 0 },
|
|
1846
|
+
expected: {},
|
|
1847
|
+
label: { default: void 0 },
|
|
1848
|
+
helper: { default: void 0 },
|
|
1849
|
+
error: { default: void 0 },
|
|
1850
|
+
confirmLabel: {},
|
|
1851
|
+
cancelLabel: {},
|
|
1852
|
+
tone: { default: "danger" },
|
|
1853
|
+
onConfirm: { type: Function, default: void 0 }
|
|
1854
|
+
},
|
|
1855
|
+
emits: ["update:open", "cancel", "error"],
|
|
1856
|
+
setup(__props, { emit: __emit }) {
|
|
1857
|
+
const componentProps = __props;
|
|
1858
|
+
const props = useLocaleDefaults(componentProps, "TypedConfirmModal", {
|
|
1859
|
+
confirmLabel: "Confirm",
|
|
1860
|
+
cancelLabel: "Cancel"
|
|
1861
|
+
});
|
|
1862
|
+
const emit = __emit;
|
|
1863
|
+
const attrs = useAttrs();
|
|
1864
|
+
const slots = useSlots();
|
|
1865
|
+
const controlled = useControlled({
|
|
1866
|
+
controlled: () => props.open,
|
|
1867
|
+
default: () => props.defaultOpen,
|
|
1868
|
+
onChange: (value) => {
|
|
1869
|
+
emit("update:open", value);
|
|
1870
|
+
}
|
|
1871
|
+
});
|
|
1872
|
+
const isOpen = controlled.value;
|
|
1873
|
+
const typed = shallowRef("");
|
|
1874
|
+
const isPending = shallowRef(false);
|
|
1875
|
+
let attempt = 0;
|
|
1876
|
+
const isConfirmed = computed(() => props.expected.length > 0 && typed.value === props.expected);
|
|
1877
|
+
const hasDescription = computed(() => Boolean(props.description) || Boolean(slots.description));
|
|
1878
|
+
watch(isOpen, (open) => {
|
|
1879
|
+
if (!open) return;
|
|
1880
|
+
typed.value = "";
|
|
1881
|
+
});
|
|
1882
|
+
watch(
|
|
1883
|
+
() => props.expected,
|
|
1884
|
+
() => {
|
|
1885
|
+
typed.value = "";
|
|
1886
|
+
}
|
|
1887
|
+
);
|
|
1888
|
+
onScopeDispose(() => {
|
|
1889
|
+
attempt += 1;
|
|
1890
|
+
});
|
|
1891
|
+
function requestOpen(next) {
|
|
1892
|
+
if (!next && isPending.value) return;
|
|
1893
|
+
const wasOpen = isOpen.value;
|
|
1894
|
+
controlled.setValue(next);
|
|
1895
|
+
if (wasOpen && !next) emit("cancel");
|
|
1896
|
+
}
|
|
1897
|
+
async function confirm() {
|
|
1898
|
+
if (!isConfirmed.value || isPending.value) return;
|
|
1899
|
+
const current = ++attempt;
|
|
1900
|
+
let outcome;
|
|
1901
|
+
try {
|
|
1902
|
+
outcome = props.onConfirm?.(typed.value);
|
|
1903
|
+
} catch (error) {
|
|
1904
|
+
emit("error", error);
|
|
1905
|
+
return;
|
|
1906
|
+
}
|
|
1907
|
+
if (isThenable(outcome)) {
|
|
1908
|
+
isPending.value = true;
|
|
1909
|
+
try {
|
|
1910
|
+
outcome = await outcome;
|
|
1911
|
+
} catch (error) {
|
|
1912
|
+
if (current !== attempt) return;
|
|
1913
|
+
isPending.value = false;
|
|
1914
|
+
emit("error", error);
|
|
1915
|
+
return;
|
|
1916
|
+
}
|
|
1917
|
+
if (current !== attempt) return;
|
|
1918
|
+
isPending.value = false;
|
|
1919
|
+
}
|
|
1920
|
+
if (isFailedResult(outcome)) {
|
|
1921
|
+
emit("error", outcome.failure);
|
|
1922
|
+
return;
|
|
1923
|
+
}
|
|
1924
|
+
controlled.setValue(false);
|
|
1925
|
+
}
|
|
1926
|
+
return (_ctx, _cache) => {
|
|
1927
|
+
return openBlock(), createBlock(_sfc_main$o, {
|
|
1928
|
+
open: unref(isOpen),
|
|
1929
|
+
"dismiss-on-escape": !isPending.value,
|
|
1930
|
+
"onUpdate:open": requestOpen
|
|
1931
|
+
}, {
|
|
1932
|
+
default: withCtx(() => [
|
|
1933
|
+
createVNode(_sfc_main$n, mergeProps(unref(attrs), {
|
|
1934
|
+
"aria-busy": isPending.value || void 0
|
|
1935
|
+
}), {
|
|
1936
|
+
default: withCtx(() => [
|
|
1937
|
+
createElementVNode("form", {
|
|
1938
|
+
class: "flex min-h-0 flex-1 flex-col",
|
|
1939
|
+
novalidate: "",
|
|
1940
|
+
onSubmit: withModifiers(confirm, ["prevent"])
|
|
1941
|
+
}, [
|
|
1942
|
+
createVNode(_sfc_main$s, null, {
|
|
1943
|
+
default: withCtx(() => [
|
|
1944
|
+
createVNode(_sfc_main$G, null, {
|
|
1945
|
+
default: withCtx(() => [
|
|
1946
|
+
createTextVNode(toDisplayString(unref(props).title), 1)
|
|
1947
|
+
]),
|
|
1948
|
+
_: 1
|
|
1949
|
+
}),
|
|
1950
|
+
hasDescription.value ? (openBlock(), createBlock(_sfc_main$r, { key: 0 }, {
|
|
1951
|
+
default: withCtx(() => [
|
|
1952
|
+
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
1953
|
+
createTextVNode(toDisplayString(unref(props).description), 1)
|
|
1954
|
+
])
|
|
1955
|
+
]),
|
|
1956
|
+
_: 3
|
|
1957
|
+
})) : createCommentVNode("", true)
|
|
1958
|
+
]),
|
|
1959
|
+
_: 3
|
|
1960
|
+
}),
|
|
1961
|
+
createVNode(_sfc_main$q, { class: "flex flex-col gap-4" }, {
|
|
1962
|
+
default: withCtx(() => [
|
|
1963
|
+
renderSlot(_ctx.$slots, "default"),
|
|
1964
|
+
createVNode(_sfc_main$M, {
|
|
1965
|
+
modelValue: typed.value,
|
|
1966
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => typed.value = $event),
|
|
1967
|
+
expected: unref(props).expected,
|
|
1968
|
+
label: unref(props).label,
|
|
1969
|
+
helper: unref(props).helper,
|
|
1970
|
+
"is-read-only": isPending.value
|
|
1971
|
+
}, null, 8, ["modelValue", "expected", "label", "helper", "is-read-only"]),
|
|
1972
|
+
unref(props).error ? (openBlock(), createBlock(_sfc_main$N, {
|
|
1973
|
+
key: 0,
|
|
1974
|
+
role: "alert",
|
|
1975
|
+
severity: "danger",
|
|
1976
|
+
description: unref(props).error
|
|
1977
|
+
}, null, 8, ["description"])) : createCommentVNode("", true)
|
|
1978
|
+
]),
|
|
1979
|
+
_: 3
|
|
1980
|
+
}),
|
|
1981
|
+
createVNode(_sfc_main$p, null, {
|
|
1982
|
+
default: withCtx(() => [
|
|
1983
|
+
createVNode(_sfc_main$B, {
|
|
1984
|
+
type: unref(ButtonType).Button,
|
|
1985
|
+
variant: "outline",
|
|
1986
|
+
tone: "neutral",
|
|
1987
|
+
"is-disabled": isPending.value,
|
|
1988
|
+
onClick: _cache[1] || (_cache[1] = ($event) => requestOpen(false))
|
|
1989
|
+
}, {
|
|
1990
|
+
default: withCtx(() => [
|
|
1991
|
+
createTextVNode(toDisplayString(unref(props).cancelLabel), 1)
|
|
1992
|
+
]),
|
|
1993
|
+
_: 1
|
|
1994
|
+
}, 8, ["type", "is-disabled"]),
|
|
1995
|
+
createVNode(_sfc_main$B, {
|
|
1996
|
+
type: unref(ButtonType).Submit,
|
|
1997
|
+
variant: "solid",
|
|
1998
|
+
tone: unref(props).tone,
|
|
1999
|
+
"is-disabled": !isConfirmed.value,
|
|
2000
|
+
"is-loading": isPending.value
|
|
2001
|
+
}, {
|
|
2002
|
+
default: withCtx(() => [
|
|
2003
|
+
createTextVNode(toDisplayString(unref(props).confirmLabel), 1)
|
|
2004
|
+
]),
|
|
2005
|
+
_: 1
|
|
2006
|
+
}, 8, ["type", "tone", "is-disabled", "is-loading"])
|
|
2007
|
+
]),
|
|
2008
|
+
_: 1
|
|
2009
|
+
})
|
|
2010
|
+
], 32)
|
|
2011
|
+
]),
|
|
2012
|
+
_: 3
|
|
2013
|
+
}, 16, ["aria-busy"])
|
|
2014
|
+
]),
|
|
2015
|
+
_: 3
|
|
2016
|
+
}, 8, ["open", "dismiss-on-escape"]);
|
|
2017
|
+
};
|
|
2018
|
+
}
|
|
2019
|
+
});
|
|
1830
2020
|
export {
|
|
1831
|
-
_sfc_main as A,
|
|
1832
|
-
_sfc_main$
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
_sfc_main$
|
|
1839
|
-
_sfc_main$
|
|
1840
|
-
_sfc_main$
|
|
1841
|
-
_sfc_main$
|
|
1842
|
-
_sfc_main$
|
|
1843
|
-
_sfc_main$
|
|
1844
|
-
_sfc_main$
|
|
1845
|
-
_sfc_main$
|
|
1846
|
-
_sfc_main$
|
|
1847
|
-
_sfc_main$
|
|
1848
|
-
_sfc_main$
|
|
1849
|
-
_sfc_main$
|
|
1850
|
-
_sfc_main$
|
|
1851
|
-
_sfc_main$
|
|
1852
|
-
_sfc_main$
|
|
1853
|
-
_sfc_main$
|
|
1854
|
-
_sfc_main$
|
|
1855
|
-
_sfc_main$
|
|
1856
|
-
_sfc_main$
|
|
1857
|
-
_sfc_main$
|
|
1858
|
-
_sfc_main$s as
|
|
1859
|
-
_sfc_main$
|
|
1860
|
-
_sfc_main$
|
|
1861
|
-
_sfc_main$
|
|
1862
|
-
_sfc_main$e as
|
|
1863
|
-
_sfc_main$f as
|
|
2021
|
+
_sfc_main$1 as A,
|
|
2022
|
+
_sfc_main$j as B,
|
|
2023
|
+
_sfc_main as C,
|
|
2024
|
+
commandPaletteContextKey as D,
|
|
2025
|
+
defaultFilter as E,
|
|
2026
|
+
useBottomSheet as F,
|
|
2027
|
+
useCommandPaletteContext as G,
|
|
2028
|
+
_sfc_main$d as _,
|
|
2029
|
+
_sfc_main$c as a,
|
|
2030
|
+
_sfc_main$b as b,
|
|
2031
|
+
_sfc_main$o as c,
|
|
2032
|
+
_sfc_main$m as d,
|
|
2033
|
+
_sfc_main$l as e,
|
|
2034
|
+
_sfc_main$n as f,
|
|
2035
|
+
_sfc_main$a as g,
|
|
2036
|
+
_sfc_main$r as h,
|
|
2037
|
+
_sfc_main$9 as i,
|
|
2038
|
+
_sfc_main$8 as j,
|
|
2039
|
+
_sfc_main$3 as k,
|
|
2040
|
+
_sfc_main$5 as l,
|
|
2041
|
+
_sfc_main$7 as m,
|
|
2042
|
+
_sfc_main$4 as n,
|
|
2043
|
+
_sfc_main$6 as o,
|
|
2044
|
+
_sfc_main$2 as p,
|
|
2045
|
+
_sfc_main$i as q,
|
|
2046
|
+
_sfc_main$q as r,
|
|
2047
|
+
_sfc_main$p as s,
|
|
2048
|
+
_sfc_main$s as t,
|
|
2049
|
+
_sfc_main$t as u,
|
|
2050
|
+
_sfc_main$k as v,
|
|
2051
|
+
_sfc_main$h as w,
|
|
2052
|
+
_sfc_main$e as x,
|
|
2053
|
+
_sfc_main$f as y,
|
|
2054
|
+
_sfc_main$g as z
|
|
1864
2055
|
};
|
|
1865
|
-
//# sourceMappingURL=
|
|
2056
|
+
//# sourceMappingURL=TypedConfirmModal.vue_vue_type_script_setup_true_lang-CoIaH_xx.js.map
|