@wow-two-beta/fe 0.0.29 → 0.0.31
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 +11 -0
- package/dist/chunks/{AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js → AccountMenu.vue_vue_type_script_setup_true_lang-CG03MviN.js} +91 -26
- package/dist/chunks/AccountMenu.vue_vue_type_script_setup_true_lang-CG03MviN.js.map +1 -0
- package/dist/chunks/{Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js → Avatar.vue_vue_type_script_setup_true_lang-BHnzqtQH.js} +2 -2
- package/dist/chunks/{Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js.map → Avatar.vue_vue_type_script_setup_true_lang-BHnzqtQH.js.map} +1 -1
- package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js → BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js} +2 -2
- package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js.map → BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js.map} +1 -1
- package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js → Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js} +2 -2
- package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js.map → Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js.map} +1 -1
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js → DrawerContent.vue_vue_type_script_setup_true_lang-ClhduLMN.js} +2 -2
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js.map → DrawerContent.vue_vue_type_script_setup_true_lang-ClhduLMN.js.map} +1 -1
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js} +4 -4
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js.map → ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js.map} +1 -1
- package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js → FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js} +2 -2
- package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js.map → FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js.map} +1 -1
- package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js → KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js} +6 -6
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js.map +1 -0
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js → LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js} +6 -6
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js.map → LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js.map} +1 -1
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js → MasonryLayout.vue_vue_type_script_setup_true_lang-C5GpXgfl.js} +28 -9
- package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-C5GpXgfl.js.map +1 -0
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-5pRxNIcK.js → MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js} +578 -322
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js.map +1 -0
- package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js → OverlayCloseButton.vue_vue_type_script_setup_true_lang-D0f_usZ9.js} +2 -2
- package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js.map → OverlayCloseButton.vue_vue_type_script_setup_true_lang-D0f_usZ9.js.map} +1 -1
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js → PopoverContent.vue_vue_type_script_setup_true_lang-iUlvOlO9.js} +2 -2
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js.map → PopoverContent.vue_vue_type_script_setup_true_lang-iUlvOlO9.js.map} +1 -1
- package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js → ReportAction.vue_vue_type_script_setup_true_lang-CcAxgi-G.js} +2 -2
- package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js.map → ReportAction.vue_vue_type_script_setup_true_lang-CcAxgi-G.js.map} +1 -1
- package/dist/chunks/{SurfaceStyles-BYvRlsWe.js → SurfaceStyles-DUVz963_.js} +25 -6
- package/dist/chunks/SurfaceStyles-DUVz963_.js.map +1 -0
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js → ToastHost.vue_vue_type_script_setup_true_lang-BKfF6cjS.js} +3 -3
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js.map → ToastHost.vue_vue_type_script_setup_true_lang-BKfF6cjS.js.map} +1 -1
- package/dist/chunks/{Tones-Bcz8dIo3.js → Tones-BU9yaXKf.js} +5 -3
- package/dist/chunks/{Tones-Bcz8dIo3.js.map → Tones-BU9yaXKf.js.map} +1 -1
- package/dist/chunks/VisuallyHidden.vue_vue_type_script_setup_true_lang-SZseKI7j.js +29 -0
- package/dist/chunks/VisuallyHidden.vue_vue_type_script_setup_true_lang-SZseKI7j.js.map +1 -0
- package/dist/chunks/{index-CGIXFfl9.js → index-Bk5JPh5t.js} +3 -3
- package/dist/chunks/{index-CGIXFfl9.js.map → index-Bk5JPh5t.js.map} +1 -1
- package/dist/chunks/{index-DA17sNzP.js → index-CRV9gpyX.js} +52 -3
- package/dist/chunks/index-CRV9gpyX.js.map +1 -0
- package/dist/chunks/{index-Dp6L9sX7.js → index-Clq52PIa.js} +5 -28
- package/dist/chunks/index-Clq52PIa.js.map +1 -0
- package/dist/foundation/primitives/index.js +5 -4
- package/dist/foundation/primitives/index.js.map +1 -1
- package/dist/foundation/styles/SurfaceStyles.d.ts +25 -8
- package/dist/foundation/styles/index.js +3 -3
- package/dist/foundation/themes/Theme.d.ts +33 -0
- package/dist/foundation/themes/index.d.ts +1 -1
- package/dist/foundation/themes/index.js +1 -1
- package/dist/index.css +106 -0
- package/dist/index.js +18 -18
- package/dist/presentation/actions/index.js +2 -2
- package/dist/presentation/display/card/Card.vue.d.ts +4 -1
- package/dist/presentation/display/index.js +3 -3
- package/dist/presentation/feedback/index.js +3 -3
- package/dist/presentation/feedback/toastHost/index.js +1 -1
- package/dist/presentation/forms/InputStyles.d.ts +7 -0
- package/dist/presentation/forms/ReadOnlyHint.vue.d.ts +6 -0
- package/dist/presentation/forms/UseReadOnlyHint.d.ts +17 -0
- package/dist/presentation/forms/colorSwatchPicker/ColorSwatchItem.vue.d.ts +2 -0
- package/dist/presentation/forms/emojiPicker/EmojiPickerPopover.vue.d.ts +6 -0
- package/dist/presentation/forms/fontPicker/FontPicker.vue.d.ts +3 -0
- package/dist/presentation/forms/iconPicker/IconPicker.vue.d.ts +6 -0
- package/dist/presentation/forms/index.js +2 -2
- package/dist/presentation/forms/multiSelectPicker/MultiSelectPickerContext.d.ts +2 -0
- package/dist/presentation/layout/appShell/AppShellSidebar.vue.d.ts +13 -10
- package/dist/presentation/layout/index.js +1 -1
- package/dist/presentation/layout/navbar/Navbar.variants.d.ts +11 -2
- package/dist/presentation/layout/surfaceLayout/SurfaceLayout.vue.d.ts +4 -1
- package/dist/presentation/nav/index.js +1 -1
- package/dist/presentation/nav/menu/MenuContext.d.ts +1 -1
- package/dist/presentation/nav/menu/MenuItem.vue.d.ts +19 -1
- package/dist/presentation/overlays/index.js +4 -4
- package/dist/themes.css +18 -0
- package/package.json +1 -1
- package/dist/chunks/AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js.map +0 -1
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js.map +0 -1
- package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js.map +0 -1
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-5pRxNIcK.js.map +0 -1
- package/dist/chunks/SurfaceStyles-BYvRlsWe.js.map +0 -1
- package/dist/chunks/index-DA17sNzP.js.map +0 -1
- package/dist/chunks/index-Dp6L9sX7.js.map +0 -1
|
@@ -1,49 +1,50 @@
|
|
|
1
|
-
import { defineComponent, useAttrs, computed, useTemplateRef, openBlock, createElementBlock, mergeProps, unref, normalizeClass, createElementVNode, createVNode, ref, createCommentVNode,
|
|
2
|
-
import { x as useNativeFormReset, e as _sfc_main$
|
|
1
|
+
import { defineComponent, useAttrs, computed, useTemplateRef, openBlock, createElementBlock, mergeProps, unref, normalizeClass, createElementVNode, createVNode, ref, createCommentVNode, toValue, createBlock, withCtx, createTextVNode, toDisplayString, nextTick, useSlots, renderSlot, createSlots, inject, watch, provide, shallowRef, Fragment, renderList, onBeforeUnmount, onMounted, normalizeStyle, onErrorCaptured, h, Teleport, withModifiers, useId as useId$1, toHandlers, resolveComponent, resolveDynamicComponent, withKeys, onUpdated } from "vue";
|
|
2
|
+
import { x as useNativeFormReset, e as _sfc_main$23, c as _sfc_main$25, _ as _sfc_main$26, f as _sfc_main$28, y as buildMonthGrid, s as addDays, A as sundayIndex, B as addMonths, D as isSameDay, v as isToday, E as startOfMonth, p as today, F as isDateDisabled, G as formatISODate, H as parseISODate, I as normalizeMinuteStep, J as isTimeInBounds, K as clampTime, L as formatISODateTime, M as clampDate, N as parseISODateTime, O as clampDateTime, P as isDateTimeInBounds, Q as formatISOTime, R as isInRange, S as SwatchShape, a as _sfc_main$2g, b as ColorSwatchPreviewSize, g as _sfc_main$2i, U as daysInMonth, d as _sfc_main$2j, i as _sfc_main$2m, j as _sfc_main$2n, h as _sfc_main$2o } from "./FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js";
|
|
3
3
|
import { c as cn } from "./Cn-C7De6POU.js";
|
|
4
4
|
import { u as useControlled } from "./UseControlled-BQneb7BW.js";
|
|
5
5
|
import { u as useSkeletonState, p as provideSkeletonState } from "./SkeletonStateContext-tVYMa6xt.js";
|
|
6
6
|
import { u as useFormControl } from "./FormControlContext-B71MFW26.js";
|
|
7
7
|
import { Minus, Plus, EyeOff, Eye, Search, X, Upload, Check, Loader2, ChevronDown, ChevronLeft, ChevronRight, Calendar, CalendarClock, Clock, UploadCloud, Heading1, Heading2, Bold, Italic, Code, Link2, List, Quote, Copy, Zap, Wallet, Video, User, Trash, Tag, Sun, Star, ShoppingCart, Share2, Settings, Send, Play, Pin, Phone, Pencil, Paperclip, Music, Moon, Mic, MessageCircle, Map as Map$1, Mail, Lock, Lightbulb, Layers, Info, Inbox, Image, Home, Heart, Globe, Folder, File, ExternalLink, Edit, Download, Compass, Coffee, Cloud, Camera, Bookmark, Bell, Flag, Hash, Car, Bike, Utensils, PawPrint, Smile, Maximize, ChevronsRight, ChevronsLeft } from "lucide-vue-next";
|
|
8
8
|
import { u as useLocaleDefaults } from "./UseLocaleDefaults-DnL2Ctbe.js";
|
|
9
|
-
import { _ as _sfc_main$
|
|
9
|
+
import { _ as _sfc_main$20 } from "./Icon.vue_vue_type_script_setup_true_lang-Ca4wsJw9.js";
|
|
10
10
|
import { S as Size } from "./StyleTokens-Bkz7Dm5L.js";
|
|
11
|
-
import { _ as _sfc_main$
|
|
12
|
-
import { _ as _sfc_main$
|
|
11
|
+
import { _ as _sfc_main$24 } from "./FieldErrorCallout.vue_vue_type_script_setup_true_lang-BRcaaXCd.js";
|
|
12
|
+
import { _ as _sfc_main$22 } from "./FormControlProvider.vue_vue_type_script_setup_true_lang-D_yikT2o.js";
|
|
13
13
|
import { u as useId } from "./UseId-CtgAhGrn.js";
|
|
14
14
|
import { S as Side } from "./Side-Kw61CDou.js";
|
|
15
15
|
import { O as Orientation } from "./Orientation-u-sYunuG.js";
|
|
16
|
-
import { _ as _sfc_main$
|
|
16
|
+
import { _ as _sfc_main$27, a as _sfc_main$2k } from "./StackLayout.vue_vue_type_script_setup_true_lang-DuAFfjSc.js";
|
|
17
17
|
import { u as useLocale } from "./LocaleContext-B7vUZmX-.js";
|
|
18
18
|
import { d as listboxVariants, L as ListboxPickerItemState, a as listboxItemVariants, l as listboxGroupLabelVariants, c as listboxSeparatorVariants, b as listboxEmptyVariants } from "./ListboxPicker.variants-hiMcl66_.js";
|
|
19
|
-
import { _ as _sfc_main$
|
|
19
|
+
import { _ as _sfc_main$29, b as _sfc_main$2b, a as _sfc_main$2c } from "./PopoverContent.vue_vue_type_script_setup_true_lang-iUlvOlO9.js";
|
|
20
20
|
import { A as AriaAttribute } from "./AriaAttribute-CmUjjXjp.js";
|
|
21
21
|
import { D as DomOrderExtensions } from "./DomOrderExtensions-Czsyvn6e.js";
|
|
22
|
-
import { s as surfaceVariants } from "./SurfaceStyles-
|
|
23
|
-
import { _ as _sfc_main$
|
|
22
|
+
import { s as surfaceVariants } from "./SurfaceStyles-DUVz963_.js";
|
|
23
|
+
import { _ as _sfc_main$2d } from "./Portal.vue_vue_type_script_setup_true_lang-C2_xSIMy.js";
|
|
24
24
|
import { P as Presence } from "./Presence-DDk0ZtAr.js";
|
|
25
|
-
import { _ as _sfc_main$
|
|
26
|
-
import { _ as _sfc_main$
|
|
25
|
+
import { _ as _sfc_main$2e } from "./AnchoredPositioner.vue_vue_type_script_setup_true_lang-BpBVI2Cu.js";
|
|
26
|
+
import { _ as _sfc_main$2f } from "./DismissableLayer.vue_vue_type_script_setup_true_lang-B8hZrhek.js";
|
|
27
27
|
import { Temporal } from "temporal-polyfill";
|
|
28
|
-
import { b as useRovingFocusItem, _ as _sfc_main$
|
|
28
|
+
import { b as useRovingFocusItem, _ as _sfc_main$2h, O as Orientation$1 } from "./RovingFocusGroup.vue_vue_type_script_setup_true_lang-DVRYYua_.js";
|
|
29
29
|
import { a as matchesAcceptType, m as matchesAccept } from "./Accept-BWpCXDmS.js";
|
|
30
30
|
import { U as UrlExtensions } from "./UrlExtensions-DqgLm0KY.js";
|
|
31
31
|
import { Marked } from "marked";
|
|
32
32
|
import { u as useEventListener } from "./UseEventListener-C1WgWGoT.js";
|
|
33
|
-
import { C as CssExtensions, S as SizePreset } from "./Tones-
|
|
33
|
+
import { C as CssExtensions, S as SizePreset } from "./Tones-BU9yaXKf.js";
|
|
34
34
|
import { a as ColorTone } from "./ColorExtensions-DiCSaVbJ.js";
|
|
35
35
|
import { a as EmojiCategory, E as EmojiCatalog } from "./EmojiCatalog-BZxsd9fO.js";
|
|
36
36
|
import { K as Key } from "./Key-CQlkK53D.js";
|
|
37
37
|
import { a as useRecentItems } from "./UseRecentItems-BV7p4em6.js";
|
|
38
|
-
import { _ as _sfc_main$
|
|
38
|
+
import { _ as _sfc_main$2l, a as ButtonVariant, B as ButtonShape } from "./Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js";
|
|
39
39
|
import { tv } from "tailwind-variants";
|
|
40
40
|
import { S as SkeletonStateLine } from "./SkeletonStateLine-anGWn2Vm.js";
|
|
41
41
|
import { E as ExactNumber } from "./ExactNumber-CboRl3_0.js";
|
|
42
42
|
import { R as ResultExtensions } from "./ResultExtensions-B7dWH0FZ.js";
|
|
43
43
|
import { E as Equality } from "./Equality-BabbLMBX.js";
|
|
44
44
|
import { u as useTypeahead } from "./UseTypeahead-C-y7nBo2.js";
|
|
45
|
-
import { _ as _sfc_main$
|
|
45
|
+
import { _ as _sfc_main$2a } from "./Announce.vue_vue_type_script_setup_true_lang-DbqODft3.js";
|
|
46
46
|
import { u as useResizeObserver } from "./UseResizeObserver-Des0Rurq.js";
|
|
47
|
+
import { _ as _sfc_main$21 } from "./VisuallyHidden.vue_vue_type_script_setup_true_lang-SZseKI7j.js";
|
|
47
48
|
import { ImageEditRecipeExtensions } from "../domain/imageEditing/index.js";
|
|
48
49
|
import { c as createSnapshotHistory, u as useHistoryVersion } from "./UseUndoHistory-C0ASU3yD.js";
|
|
49
50
|
const inputBaseVariants = tv({
|
|
@@ -85,6 +86,7 @@ const inputBaseVariants = tv({
|
|
|
85
86
|
ring: "md"
|
|
86
87
|
}
|
|
87
88
|
});
|
|
89
|
+
const ReadOnlyLook = "readonly:cursor-default readonly:bg-muted readonly:text-muted-foreground readonly:hover:bg-muted readonly:focus-visible:ring-1 readonly:focus-visible:ring-muted-foreground";
|
|
88
90
|
const InputSize = {
|
|
89
91
|
/** Refers to the extra-small step (h-7). */
|
|
90
92
|
Xs: "xs",
|
|
@@ -126,7 +128,7 @@ const InputRing = {
|
|
|
126
128
|
Lg: "lg"
|
|
127
129
|
};
|
|
128
130
|
const _hoisted_1$1G = ["id", "value", "disabled", "required", "readonly", "aria-invalid", "aria-describedby", "data-skeleton", "inert"];
|
|
129
|
-
const _sfc_main$
|
|
131
|
+
const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
|
|
130
132
|
...{ name: "TextInput", inheritAttrs: false },
|
|
131
133
|
__name: "TextInput",
|
|
132
134
|
props: {
|
|
@@ -216,7 +218,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
216
218
|
}
|
|
217
219
|
});
|
|
218
220
|
const _hoisted_1$1F = ["id", "value", "disabled", "required", "readonly", "aria-invalid", "aria-describedby"];
|
|
219
|
-
const _sfc_main$
|
|
221
|
+
const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
220
222
|
...{ name: "EmailInput", inheritAttrs: false },
|
|
221
223
|
__name: "EmailInput",
|
|
222
224
|
props: {
|
|
@@ -304,7 +306,7 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
|
|
|
304
306
|
}
|
|
305
307
|
});
|
|
306
308
|
const _hoisted_1$1E = ["id", "value", "disabled", "required", "readonly", "aria-invalid", "aria-describedby"];
|
|
307
|
-
const _sfc_main$
|
|
309
|
+
const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
|
|
308
310
|
...{ name: "TelInput", inheritAttrs: false },
|
|
309
311
|
__name: "TelInput",
|
|
310
312
|
props: {
|
|
@@ -391,7 +393,7 @@ const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
|
|
|
391
393
|
}
|
|
392
394
|
});
|
|
393
395
|
const _hoisted_1$1D = ["id", "value", "disabled", "required", "readonly", "aria-invalid", "aria-describedby"];
|
|
394
|
-
const _sfc_main$
|
|
396
|
+
const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
|
|
395
397
|
...{ name: "UrlInput", inheritAttrs: false },
|
|
396
398
|
__name: "UrlInput",
|
|
397
399
|
props: {
|
|
@@ -481,8 +483,8 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
|
481
483
|
const _hoisted_1$1C = ["step", "id", "value", "disabled", "required", "readonly", "aria-invalid", "aria-describedby"];
|
|
482
484
|
const _hoisted_2$1b = { class: "absolute right-1 top-1/2 flex -translate-y-1/2 items-center" };
|
|
483
485
|
const _hoisted_3$N = ["disabled", "aria-label"];
|
|
484
|
-
const _hoisted_4$
|
|
485
|
-
const _sfc_main$
|
|
486
|
+
const _hoisted_4$D = ["disabled", "aria-label"];
|
|
487
|
+
const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
486
488
|
...{ name: "NumberInput", inheritAttrs: false },
|
|
487
489
|
__name: "NumberInput",
|
|
488
490
|
props: {
|
|
@@ -599,7 +601,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
599
601
|
class: "grid h-7 w-6 place-items-center rounded text-muted-foreground hover:bg-muted disabled:opacity-50",
|
|
600
602
|
onClick: _cache[0] || (_cache[0] = ($event) => adjust(-1))
|
|
601
603
|
}, [
|
|
602
|
-
createVNode(unref(_sfc_main$
|
|
604
|
+
createVNode(unref(_sfc_main$20), {
|
|
603
605
|
icon: unref(MinusIcon),
|
|
604
606
|
size: 14
|
|
605
607
|
}, null, 8, ["icon"])
|
|
@@ -611,11 +613,11 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
611
613
|
class: "grid h-7 w-6 place-items-center rounded text-muted-foreground hover:bg-muted disabled:opacity-50",
|
|
612
614
|
onClick: _cache[1] || (_cache[1] = ($event) => adjust(1))
|
|
613
615
|
}, [
|
|
614
|
-
createVNode(unref(_sfc_main$
|
|
616
|
+
createVNode(unref(_sfc_main$20), {
|
|
615
617
|
icon: unref(PlusIcon),
|
|
616
618
|
size: 14
|
|
617
619
|
}, null, 8, ["icon"])
|
|
618
|
-
], 8, _hoisted_4$
|
|
620
|
+
], 8, _hoisted_4$D)
|
|
619
621
|
])
|
|
620
622
|
], 2);
|
|
621
623
|
};
|
|
@@ -623,7 +625,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
623
625
|
});
|
|
624
626
|
const _hoisted_1$1B = ["type", "autocomplete", "id", "disabled", "required", "readonly", "value", "aria-invalid", "aria-describedby"];
|
|
625
627
|
const _hoisted_2$1a = ["disabled", "aria-label", "aria-pressed"];
|
|
626
|
-
const _sfc_main$
|
|
628
|
+
const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
627
629
|
...{ name: "PasswordInput", inheritAttrs: false },
|
|
628
630
|
__name: "PasswordInput",
|
|
629
631
|
props: {
|
|
@@ -731,7 +733,7 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
|
731
733
|
class: "absolute right-1 top-1/2 grid h-8 w-8 -translate-y-1/2 place-items-center rounded text-muted-foreground hover:bg-muted disabled:opacity-50",
|
|
732
734
|
onClick: toggle
|
|
733
735
|
}, [
|
|
734
|
-
createVNode(unref(_sfc_main$
|
|
736
|
+
createVNode(unref(_sfc_main$20), {
|
|
735
737
|
icon: toggleIcon.value,
|
|
736
738
|
size: 16
|
|
737
739
|
}, null, 8, ["icon"])
|
|
@@ -742,7 +744,7 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
|
742
744
|
});
|
|
743
745
|
const _hoisted_1$1A = ["id", "value", "disabled", "required", "readonly", "aria-invalid", "aria-describedby"];
|
|
744
746
|
const _hoisted_2$19 = ["disabled", "aria-label"];
|
|
745
|
-
const _sfc_main$
|
|
747
|
+
const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
746
748
|
...{ name: "SearchInput", inheritAttrs: false },
|
|
747
749
|
__name: "SearchInput",
|
|
748
750
|
props: {
|
|
@@ -829,7 +831,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
829
831
|
return openBlock(), createElementBlock("div", {
|
|
830
832
|
class: normalizeClass(wrapperClass.value)
|
|
831
833
|
}, [
|
|
832
|
-
createVNode(unref(_sfc_main$
|
|
834
|
+
createVNode(unref(_sfc_main$20), {
|
|
833
835
|
icon: unref(SearchIcon),
|
|
834
836
|
size: 16,
|
|
835
837
|
class: "absolute left-3 top-1/2 -translate-y-1/2 text-subtle-foreground"
|
|
@@ -858,7 +860,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
858
860
|
class: "absolute right-1 top-1/2 grid h-8 w-8 -translate-y-1/2 place-items-center rounded text-subtle-foreground hover:bg-muted hover:text-muted-foreground",
|
|
859
861
|
onClick: handleClear
|
|
860
862
|
}, [
|
|
861
|
-
createVNode(unref(_sfc_main$
|
|
863
|
+
createVNode(unref(_sfc_main$20), {
|
|
862
864
|
icon: unref(ClearIcon),
|
|
863
865
|
size: 14
|
|
864
866
|
}, null, 8, ["icon"])
|
|
@@ -868,7 +870,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
868
870
|
}
|
|
869
871
|
});
|
|
870
872
|
const _hoisted_1$1z = ["rows", "id", "value", "disabled", "required", "readonly", "aria-invalid", "aria-describedby", "data-skeleton", "inert"];
|
|
871
|
-
const _sfc_main$
|
|
873
|
+
const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
872
874
|
...{ name: "TextAreaInput", inheritAttrs: false },
|
|
873
875
|
__name: "TextAreaInput",
|
|
874
876
|
props: {
|
|
@@ -960,8 +962,41 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
960
962
|
};
|
|
961
963
|
}
|
|
962
964
|
});
|
|
965
|
+
function useReadOnlyHint(isReadOnly) {
|
|
966
|
+
const hintId = useId("read-only");
|
|
967
|
+
const isShown = computed(() => Boolean(toValue(isReadOnly)));
|
|
968
|
+
return {
|
|
969
|
+
hintId,
|
|
970
|
+
isShown,
|
|
971
|
+
describedBy: (ids) => {
|
|
972
|
+
const joined = [ids, isShown.value ? hintId : void 0].filter(Boolean).join(" ");
|
|
973
|
+
return joined === "" ? void 0 : joined;
|
|
974
|
+
}
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
978
|
+
...{ name: "ReadOnlyHint" },
|
|
979
|
+
__name: "ReadOnlyHint",
|
|
980
|
+
props: {
|
|
981
|
+
id: {}
|
|
982
|
+
},
|
|
983
|
+
setup(__props) {
|
|
984
|
+
const props = __props;
|
|
985
|
+
const locale = useLocale();
|
|
986
|
+
return (_ctx, _cache) => {
|
|
987
|
+
return openBlock(), createBlock(unref(_sfc_main$21), {
|
|
988
|
+
id: props.id
|
|
989
|
+
}, {
|
|
990
|
+
default: withCtx(() => [
|
|
991
|
+
createTextVNode(toDisplayString(unref(locale).t("Field.readOnly", void 0, "Read only")), 1)
|
|
992
|
+
]),
|
|
993
|
+
_: 1
|
|
994
|
+
}, 8, ["id"]);
|
|
995
|
+
};
|
|
996
|
+
}
|
|
997
|
+
});
|
|
963
998
|
const _hoisted_1$1y = ["data-skeleton", "inert"];
|
|
964
|
-
const _hoisted_2$18 = ["id", "disabled", "required", "checked", "aria-invalid", "aria-readonly"];
|
|
999
|
+
const _hoisted_2$18 = ["id", "disabled", "required", "checked", "aria-invalid", "aria-describedby", "data-readonly"];
|
|
965
1000
|
const SizeClass$4 = {
|
|
966
1001
|
sm: "h-4 w-4",
|
|
967
1002
|
md: "h-5 w-5",
|
|
@@ -1013,7 +1048,9 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
1013
1048
|
const finalReadOnly = computed(() => props.isReadOnly ?? props.readonly ?? ctx?.isReadOnly ?? false);
|
|
1014
1049
|
const finalRequired = computed(() => props.isRequired ?? props.required ?? ctx?.isRequired);
|
|
1015
1050
|
const isInvalid = computed(() => ctx?.isInvalid || void 0);
|
|
1016
|
-
const
|
|
1051
|
+
const readOnlyHint = useReadOnlyHint(finalReadOnly);
|
|
1052
|
+
const describedBy = computed(() => readOnlyHint.describedBy(attrs[AriaAttribute.DescribedBy]));
|
|
1053
|
+
const OwnedAttributes = /* @__PURE__ */ new Set(["class", "checked", AriaAttribute.DescribedBy]);
|
|
1017
1054
|
const passthroughAttrs = computed(
|
|
1018
1055
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
1019
1056
|
);
|
|
@@ -1022,7 +1059,7 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
1022
1059
|
);
|
|
1023
1060
|
const VisualClass = cn(
|
|
1024
1061
|
"pointer-events-none grid h-full w-full place-items-center rounded-full border border-input bg-background transition-colors",
|
|
1025
|
-
"peer-checked:border-primary-soft-foreground",
|
|
1062
|
+
"peer-checked:border-primary-soft-foreground peer-data-[readonly]:bg-muted",
|
|
1026
1063
|
/* `peer-checked:` cannot reach descendants — the dot's opacity is gated by a child selector on this peer span. */
|
|
1027
1064
|
"[&>span]:opacity-0 peer-checked:[&>span]:opacity-100",
|
|
1028
1065
|
"peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-1",
|
|
@@ -1052,18 +1089,23 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
1052
1089
|
required: finalRequired.value,
|
|
1053
1090
|
checked: unref(isChecked),
|
|
1054
1091
|
"aria-invalid": isInvalid.value,
|
|
1055
|
-
|
|
1092
|
+
"aria-describedby": describedBy.value,
|
|
1093
|
+
"data-readonly": finalReadOnly.value || void 0,
|
|
1094
|
+
class: "peer absolute inset-0 m-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed readonly:cursor-default"
|
|
1056
1095
|
}, passthroughAttrs.value, {
|
|
1057
1096
|
onChange,
|
|
1058
|
-
onClick: _cache[0] || (_cache[0] = ($event) => finalReadOnly.value && $event.preventDefault())
|
|
1059
|
-
"aria-readonly": finalReadOnly.value || void 0
|
|
1097
|
+
onClick: _cache[0] || (_cache[0] = ($event) => finalReadOnly.value && $event.preventDefault())
|
|
1060
1098
|
}), null, 16, _hoisted_2$18),
|
|
1061
1099
|
createElementVNode("span", {
|
|
1062
1100
|
"aria-hidden": "true",
|
|
1063
1101
|
class: normalizeClass(visualClass.value)
|
|
1064
1102
|
}, [..._cache[1] || (_cache[1] = [
|
|
1065
1103
|
createElementVNode("span", { class: "h-2 w-2 rounded-full bg-primary-soft-foreground" }, null, -1)
|
|
1066
|
-
])], 2)
|
|
1104
|
+
])], 2),
|
|
1105
|
+
finalReadOnly.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
1106
|
+
key: 0,
|
|
1107
|
+
id: unref(readOnlyHint).hintId
|
|
1108
|
+
}, null, 8, ["id"])) : createCommentVNode("", true)
|
|
1067
1109
|
], 10, _hoisted_1$1y);
|
|
1068
1110
|
};
|
|
1069
1111
|
}
|
|
@@ -1328,7 +1370,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
1328
1370
|
const root = useTemplateRef("root");
|
|
1329
1371
|
__expose({ el: root });
|
|
1330
1372
|
return (_ctx, _cache) => {
|
|
1331
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
1373
|
+
return openBlock(), createBlock(unref(_sfc_main$22), {
|
|
1332
1374
|
id: parentId.value,
|
|
1333
1375
|
errors: parentErrors.value,
|
|
1334
1376
|
"is-invalid": isInvalid.value,
|
|
@@ -1344,7 +1386,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
1344
1386
|
"aria-busy": props.isSkeleton || void 0,
|
|
1345
1387
|
class: rootClass.value
|
|
1346
1388
|
}, passthroughAttrs.value), [
|
|
1347
|
-
hasLabel.value ? (openBlock(), createBlock(_sfc_main$
|
|
1389
|
+
hasLabel.value ? (openBlock(), createBlock(_sfc_main$23, { key: 0 }, {
|
|
1348
1390
|
default: withCtx(() => [
|
|
1349
1391
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
1350
1392
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
@@ -1353,7 +1395,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
1353
1395
|
_: 3
|
|
1354
1396
|
})) : createCommentVNode("", true),
|
|
1355
1397
|
renderSlot(_ctx.$slots, "default"),
|
|
1356
|
-
showError.value ? (openBlock(), createBlock(_sfc_main$
|
|
1398
|
+
showError.value ? (openBlock(), createBlock(_sfc_main$24, {
|
|
1357
1399
|
key: 1,
|
|
1358
1400
|
message: hasOwnError.value ? __props.error : void 0
|
|
1359
1401
|
}, createSlots({ _: 2 }, [
|
|
@@ -1364,7 +1406,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
1364
1406
|
]),
|
|
1365
1407
|
key: "0"
|
|
1366
1408
|
} : void 0
|
|
1367
|
-
]), 1032, ["message"])) : hasHelper.value ? (openBlock(), createBlock(_sfc_main$
|
|
1409
|
+
]), 1032, ["message"])) : hasHelper.value ? (openBlock(), createBlock(_sfc_main$25, { key: 2 }, {
|
|
1368
1410
|
default: withCtx(() => [
|
|
1369
1411
|
renderSlot(_ctx.$slots, "helper", {}, () => [
|
|
1370
1412
|
createTextVNode(toDisplayString(__props.helper), 1)
|
|
@@ -1386,7 +1428,7 @@ function useCheckboxGroup() {
|
|
|
1386
1428
|
const _hoisted_1$1u = ["for"];
|
|
1387
1429
|
const _hoisted_2$16 = { class: "flex flex-col gap-0.5 text-sm" };
|
|
1388
1430
|
const _hoisted_3$M = { class: "font-medium text-foreground" };
|
|
1389
|
-
const _hoisted_4$
|
|
1431
|
+
const _hoisted_4$C = {
|
|
1390
1432
|
key: 0,
|
|
1391
1433
|
class: "text-muted-foreground"
|
|
1392
1434
|
};
|
|
@@ -1453,13 +1495,13 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
1453
1495
|
for: inputId.value,
|
|
1454
1496
|
class: normalizeClass(wrapperClass.value)
|
|
1455
1497
|
}, [
|
|
1456
|
-
isInGroup.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
1498
|
+
isInGroup.value ? (openBlock(), createBlock(unref(_sfc_main$22), {
|
|
1457
1499
|
key: 0,
|
|
1458
1500
|
"is-disabled": groupDisabled.value,
|
|
1459
1501
|
"is-invalid": groupInvalid.value
|
|
1460
1502
|
}, {
|
|
1461
1503
|
default: withCtx(() => [
|
|
1462
|
-
createVNode(_sfc_main$
|
|
1504
|
+
createVNode(_sfc_main$26, mergeProps({
|
|
1463
1505
|
ref_key: "inner",
|
|
1464
1506
|
ref: inner
|
|
1465
1507
|
}, { ...checkboxProps.value, ...passthroughAttrs.value }, {
|
|
@@ -1470,7 +1512,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
1470
1512
|
}), null, 16, ["id", "model-value", "class"])
|
|
1471
1513
|
]),
|
|
1472
1514
|
_: 1
|
|
1473
|
-
}, 8, ["is-disabled", "is-invalid"])) : (openBlock(), createBlock(_sfc_main$
|
|
1515
|
+
}, 8, ["is-disabled", "is-invalid"])) : (openBlock(), createBlock(_sfc_main$26, mergeProps({
|
|
1474
1516
|
key: 1,
|
|
1475
1517
|
ref_key: "inner",
|
|
1476
1518
|
ref: inner
|
|
@@ -1484,7 +1526,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
1484
1526
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1485
1527
|
])
|
|
1486
1528
|
]),
|
|
1487
|
-
hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1529
|
+
hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_4$C, [
|
|
1488
1530
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
1489
1531
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
1490
1532
|
])
|
|
@@ -1501,7 +1543,7 @@ function useRadioGroup() {
|
|
|
1501
1543
|
const _hoisted_1$1t = ["for"];
|
|
1502
1544
|
const _hoisted_2$15 = { class: "flex flex-col gap-0.5 text-sm" };
|
|
1503
1545
|
const _hoisted_3$L = { class: "font-medium text-foreground" };
|
|
1504
|
-
const _hoisted_4$
|
|
1546
|
+
const _hoisted_4$B = {
|
|
1505
1547
|
key: 0,
|
|
1506
1548
|
class: "text-muted-foreground"
|
|
1507
1549
|
};
|
|
@@ -1574,7 +1616,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
1574
1616
|
for: inputId.value,
|
|
1575
1617
|
class: normalizeClass(wrapperClass.value)
|
|
1576
1618
|
}, [
|
|
1577
|
-
isInGroup.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
1619
|
+
isInGroup.value ? (openBlock(), createBlock(unref(_sfc_main$22), {
|
|
1578
1620
|
key: 0,
|
|
1579
1621
|
"is-disabled": groupDisabled.value,
|
|
1580
1622
|
"is-invalid": groupInvalid.value,
|
|
@@ -1607,7 +1649,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
1607
1649
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1608
1650
|
])
|
|
1609
1651
|
]),
|
|
1610
|
-
hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1652
|
+
hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_4$B, [
|
|
1611
1653
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
1612
1654
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
1613
1655
|
])
|
|
@@ -1620,7 +1662,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
1620
1662
|
const _hoisted_1$1s = ["for"];
|
|
1621
1663
|
const _hoisted_2$14 = { class: "flex flex-col gap-0.5 text-sm" };
|
|
1622
1664
|
const _hoisted_3$K = { class: "font-medium text-foreground" };
|
|
1623
|
-
const _hoisted_4$
|
|
1665
|
+
const _hoisted_4$A = {
|
|
1624
1666
|
key: 0,
|
|
1625
1667
|
class: "text-muted-foreground"
|
|
1626
1668
|
};
|
|
@@ -1688,7 +1730,7 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
1688
1730
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1689
1731
|
])
|
|
1690
1732
|
]),
|
|
1691
|
-
hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1733
|
+
hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_4$A, [
|
|
1692
1734
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
1693
1735
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
1694
1736
|
])
|
|
@@ -1759,7 +1801,7 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
|
1759
1801
|
controlled.reset();
|
|
1760
1802
|
});
|
|
1761
1803
|
return (_ctx, _cache) => {
|
|
1762
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1804
|
+
return openBlock(), createBlock(_sfc_main$27, mergeProps({
|
|
1763
1805
|
key: unref(formResetRevision),
|
|
1764
1806
|
ref_key: "root",
|
|
1765
1807
|
ref: root,
|
|
@@ -1771,7 +1813,7 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
|
1771
1813
|
class: rootClass.value
|
|
1772
1814
|
}, passthroughAttrs.value), {
|
|
1773
1815
|
default: withCtx(() => [
|
|
1774
|
-
hasLegend.value ? (openBlock(), createBlock(_sfc_main$
|
|
1816
|
+
hasLegend.value ? (openBlock(), createBlock(_sfc_main$28, { key: 0 }, {
|
|
1775
1817
|
default: withCtx(() => [
|
|
1776
1818
|
renderSlot(_ctx.$slots, "legend", {}, () => [
|
|
1777
1819
|
createTextVNode(toDisplayString(__props.legend), 1)
|
|
@@ -1865,7 +1907,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
1865
1907
|
controlled.reset();
|
|
1866
1908
|
});
|
|
1867
1909
|
return (_ctx, _cache) => {
|
|
1868
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1910
|
+
return openBlock(), createBlock(_sfc_main$27, mergeProps({
|
|
1869
1911
|
key: unref(formResetRevision),
|
|
1870
1912
|
ref_key: "root",
|
|
1871
1913
|
ref: root,
|
|
@@ -1878,7 +1920,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
1878
1920
|
class: rootClass.value
|
|
1879
1921
|
}, passthroughAttrs.value), {
|
|
1880
1922
|
default: withCtx(() => [
|
|
1881
|
-
hasLegend.value ? (openBlock(), createBlock(_sfc_main$
|
|
1923
|
+
hasLegend.value ? (openBlock(), createBlock(_sfc_main$28, { key: 0 }, {
|
|
1882
1924
|
default: withCtx(() => [
|
|
1883
1925
|
renderSlot(_ctx.$slots, "legend", {}, () => [
|
|
1884
1926
|
createTextVNode(toDisplayString(__props.legend), 1)
|
|
@@ -2226,7 +2268,7 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
|
2226
2268
|
class: normalizeClass(wrapperClass.value)
|
|
2227
2269
|
}, [
|
|
2228
2270
|
createElementVNode("span", _hoisted_1$1n, toDisplayString(__props.symbol), 1),
|
|
2229
|
-
createVNode(_sfc_main$
|
|
2271
|
+
createVNode(_sfc_main$1X, mergeProps({
|
|
2230
2272
|
ref_key: "inner",
|
|
2231
2273
|
ref: inner
|
|
2232
2274
|
}, { ...numberProps.value, ...passthroughAttrs.value }, { class: "pl-7" }), null, 16)
|
|
@@ -2270,7 +2312,7 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
2270
2312
|
return openBlock(), createElementBlock("div", {
|
|
2271
2313
|
class: normalizeClass(wrapperClass.value)
|
|
2272
2314
|
}, [
|
|
2273
|
-
createVNode(_sfc_main$
|
|
2315
|
+
createVNode(_sfc_main$1X, mergeProps({
|
|
2274
2316
|
ref_key: "inner",
|
|
2275
2317
|
ref: inner
|
|
2276
2318
|
}, { ...props, ...passthroughAttrs.value }, { class: "pr-16" }), null, 16),
|
|
@@ -2311,7 +2353,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
2311
2353
|
class: rootClass.value
|
|
2312
2354
|
}, passthroughAttrs.value), [
|
|
2313
2355
|
createElementVNode("div", _hoisted_1$1m, [
|
|
2314
|
-
createVNode(_sfc_main$
|
|
2356
|
+
createVNode(_sfc_main$23, { for: unref(generatedId) }, {
|
|
2315
2357
|
default: withCtx(() => [
|
|
2316
2358
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
2317
2359
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
@@ -2336,7 +2378,7 @@ const _hoisted_3$J = {
|
|
|
2336
2378
|
key: 0,
|
|
2337
2379
|
class: "text-muted-foreground"
|
|
2338
2380
|
};
|
|
2339
|
-
const _hoisted_4$
|
|
2381
|
+
const _hoisted_4$z = { class: "min-w-0 flex-1" };
|
|
2340
2382
|
const _hoisted_5$p = { class: "font-medium text-foreground" };
|
|
2341
2383
|
const _hoisted_6$m = {
|
|
2342
2384
|
key: 0,
|
|
@@ -2418,7 +2460,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
2418
2460
|
for: inputId.value,
|
|
2419
2461
|
class: normalizeClass(rootClass.value)
|
|
2420
2462
|
}, [
|
|
2421
|
-
isInGroup.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
2463
|
+
isInGroup.value ? (openBlock(), createBlock(unref(_sfc_main$22), {
|
|
2422
2464
|
key: 0,
|
|
2423
2465
|
"is-disabled": groupDisabled.value,
|
|
2424
2466
|
"is-invalid": groupInvalid.value,
|
|
@@ -2451,7 +2493,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
2451
2493
|
createTextVNode(toDisplayString(__props.icon), 1)
|
|
2452
2494
|
])
|
|
2453
2495
|
])) : createCommentVNode("", true),
|
|
2454
|
-
createElementVNode("div", _hoisted_4$
|
|
2496
|
+
createElementVNode("div", _hoisted_4$z, [
|
|
2455
2497
|
createElementVNode("div", _hoisted_5$p, [
|
|
2456
2498
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
2457
2499
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
@@ -2468,10 +2510,10 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
2468
2510
|
};
|
|
2469
2511
|
}
|
|
2470
2512
|
});
|
|
2471
|
-
const _hoisted_1$1k = ["disabled", "aria-describedby"];
|
|
2513
|
+
const _hoisted_1$1k = ["disabled", "aria-describedby", "data-readonly"];
|
|
2472
2514
|
const _hoisted_2$10 = ["id", "disabled", "aria-invalid", "aria-describedby", "aria-required"];
|
|
2473
2515
|
const _hoisted_3$I = {
|
|
2474
|
-
key:
|
|
2516
|
+
key: 1,
|
|
2475
2517
|
class: "truncate text-sm text-muted-foreground"
|
|
2476
2518
|
};
|
|
2477
2519
|
const SizeClass$1 = {
|
|
@@ -2504,7 +2546,10 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
2504
2546
|
const finalReadOnly = computed(() => props.isReadOnly ?? props.readonly ?? ctx?.isReadOnly);
|
|
2505
2547
|
const inactive = computed(() => finalDisabled.value || finalReadOnly.value);
|
|
2506
2548
|
const inputId = computed(() => props.id ?? ctx?.id);
|
|
2549
|
+
const readOnlyButton = computed(() => Boolean(finalReadOnly.value) && !finalDisabled.value);
|
|
2550
|
+
const readOnlyHint = useReadOnlyHint(readOnlyButton);
|
|
2507
2551
|
const describedBy = computed(() => ctx?.describedBy);
|
|
2552
|
+
const buttonDescribedBy = computed(() => readOnlyHint.describedBy(ctx?.describedBy));
|
|
2508
2553
|
const isInvalid = computed(() => ctx?.isInvalid || void 0);
|
|
2509
2554
|
const finalRequired = computed(() => ctx?.isRequired || void 0);
|
|
2510
2555
|
const hasPreview = computed(() => Boolean(props.preview) || Boolean(slots.preview));
|
|
@@ -2530,6 +2575,8 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
2530
2575
|
const buttonClass = computed(
|
|
2531
2576
|
() => cn(
|
|
2532
2577
|
"inline-flex items-center gap-2 rounded-md border border-input bg-background font-medium text-foreground transition-colors hover:bg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
2578
|
+
ReadOnlyLook,
|
|
2579
|
+
"readonly:hover:border-input",
|
|
2533
2580
|
SizeClass$1[props.size] ?? SizeClass$1.md
|
|
2534
2581
|
)
|
|
2535
2582
|
);
|
|
@@ -2541,12 +2588,13 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
2541
2588
|
}, [
|
|
2542
2589
|
createElementVNode("button", {
|
|
2543
2590
|
type: "button",
|
|
2544
|
-
disabled:
|
|
2545
|
-
"aria-describedby":
|
|
2591
|
+
disabled: finalDisabled.value,
|
|
2592
|
+
"aria-describedby": buttonDescribedBy.value,
|
|
2593
|
+
"data-readonly": readOnlyButton.value || void 0,
|
|
2546
2594
|
class: normalizeClass(buttonClass.value),
|
|
2547
2595
|
onClick: openPicker
|
|
2548
2596
|
}, [
|
|
2549
|
-
createVNode(unref(_sfc_main$
|
|
2597
|
+
createVNode(unref(_sfc_main$20), {
|
|
2550
2598
|
icon: unref(UploadIcon),
|
|
2551
2599
|
size: 16
|
|
2552
2600
|
}, null, 8, ["icon"]),
|
|
@@ -2554,6 +2602,10 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
2554
2602
|
createTextVNode(toDisplayString(unref(props).label), 1)
|
|
2555
2603
|
])
|
|
2556
2604
|
], 10, _hoisted_1$1k),
|
|
2605
|
+
readOnlyButton.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
2606
|
+
key: 0,
|
|
2607
|
+
id: unref(readOnlyHint).hintId
|
|
2608
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
2557
2609
|
createElementVNode("input", mergeProps({
|
|
2558
2610
|
ref_key: "input",
|
|
2559
2611
|
ref: input,
|
|
@@ -3286,7 +3338,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
3286
3338
|
activeDescendant.value = null;
|
|
3287
3339
|
});
|
|
3288
3340
|
return (_ctx, _cache) => {
|
|
3289
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3341
|
+
return openBlock(), createBlock(unref(_sfc_main$29), {
|
|
3290
3342
|
key: unref(formResetRevision),
|
|
3291
3343
|
open: isOpenNow.value,
|
|
3292
3344
|
placement: __props.placement,
|
|
@@ -3381,7 +3433,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
3381
3433
|
const _hoisted_1$1e = ["data-skeleton", "inert"];
|
|
3382
3434
|
const _hoisted_2$X = ["id", "disabled", "aria-readonly", "aria-busy", "aria-controls", "aria-activedescendant", "aria-invalid", "aria-labelledby", "aria-describedby", "data-state"];
|
|
3383
3435
|
const _hoisted_3$G = { class: "ml-auto flex shrink-0 items-center gap-1.5" };
|
|
3384
|
-
const _hoisted_4$
|
|
3436
|
+
const _hoisted_4$y = ["aria-label"];
|
|
3385
3437
|
const TriggerIconClasses = {
|
|
3386
3438
|
xs: "h-3 w-3",
|
|
3387
3439
|
sm: "h-3.5 w-3.5",
|
|
@@ -3444,6 +3496,11 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
3444
3496
|
function handleTriggerKeyDown(event) {
|
|
3445
3497
|
attrs.onKeydown?.(event);
|
|
3446
3498
|
if (event.defaultPrevented) return;
|
|
3499
|
+
if (!ctx.open && (event.key === "ArrowDown" || event.key === "ArrowUp")) {
|
|
3500
|
+
event.preventDefault();
|
|
3501
|
+
ctx.setOpen(true);
|
|
3502
|
+
return;
|
|
3503
|
+
}
|
|
3447
3504
|
if (!ctx.open && triggerTypeahead.onKeyDown(event)) {
|
|
3448
3505
|
event.preventDefault();
|
|
3449
3506
|
}
|
|
@@ -3498,18 +3555,19 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
3498
3555
|
"data-skeleton": unref(skeleton).isSkeleton.value || void 0,
|
|
3499
3556
|
inert: unref(skeleton).isSkeleton.value || void 0
|
|
3500
3557
|
}, [
|
|
3501
|
-
createVNode(unref(_sfc_main$
|
|
3558
|
+
createVNode(unref(_sfc_main$2a), null, {
|
|
3502
3559
|
default: withCtx(() => [
|
|
3503
3560
|
createTextVNode(toDisplayString(unref(ctx).isLoading ? unref(ctx).loadingLabel : ""), 1)
|
|
3504
3561
|
]),
|
|
3505
3562
|
_: 1
|
|
3506
3563
|
}),
|
|
3507
|
-
createVNode(unref(_sfc_main$
|
|
3564
|
+
createVNode(unref(_sfc_main$2b), { "as-child": "" }, {
|
|
3508
3565
|
default: withCtx(() => [
|
|
3509
3566
|
createElementVNode("button", mergeProps({
|
|
3510
3567
|
ref_key: "root",
|
|
3511
3568
|
ref: root,
|
|
3512
3569
|
type: "button",
|
|
3570
|
+
role: "combobox",
|
|
3513
3571
|
id: unref(ctx).fieldId,
|
|
3514
3572
|
disabled: isHardDisabled.value || unref(ctx).isLoading,
|
|
3515
3573
|
"aria-readonly": unref(ctx).isReadOnly || void 0,
|
|
@@ -3559,7 +3617,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
3559
3617
|
createVNode(unref(ClearIcon), {
|
|
3560
3618
|
class: normalizeClass(iconClass.value)
|
|
3561
3619
|
}, null, 8, ["class"])
|
|
3562
|
-
], 10, _hoisted_4$
|
|
3620
|
+
], 10, _hoisted_4$y)) : createCommentVNode("", true)
|
|
3563
3621
|
], 14, _hoisted_1$1e);
|
|
3564
3622
|
};
|
|
3565
3623
|
}
|
|
@@ -3661,7 +3719,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
3661
3719
|
const selectedForListbox = computed(() => ctx.selectedKey ?? void 0);
|
|
3662
3720
|
return (_ctx, _cache) => {
|
|
3663
3721
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
3664
|
-
createVNode(unref(_sfc_main$
|
|
3722
|
+
createVNode(unref(_sfc_main$2c), mergeProps({
|
|
3665
3723
|
variant: __props.variant,
|
|
3666
3724
|
tone: __props.tone,
|
|
3667
3725
|
radius: __props.radius,
|
|
@@ -3672,7 +3730,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
3672
3730
|
}), {
|
|
3673
3731
|
default: withCtx(() => [
|
|
3674
3732
|
__props.isSearchable ? (openBlock(), createElementBlock("div", _hoisted_1$1d, [
|
|
3675
|
-
createVNode(_sfc_main$
|
|
3733
|
+
createVNode(_sfc_main$1V, {
|
|
3676
3734
|
size: "sm",
|
|
3677
3735
|
autofocus: "",
|
|
3678
3736
|
role: "combobox",
|
|
@@ -3809,6 +3867,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
3809
3867
|
const finalReadOnly = computed(() => props.isReadOnly ?? field?.isReadOnly ?? false);
|
|
3810
3868
|
const inactive = computed(() => finalDisabled.value || finalReadOnly.value);
|
|
3811
3869
|
const finalInvalid = computed(() => props.isInvalid ?? field?.isInvalid);
|
|
3870
|
+
const listboxId = useId("multi-select-listbox");
|
|
3812
3871
|
const openCtl = useControlled({
|
|
3813
3872
|
controlled: () => props.open,
|
|
3814
3873
|
default: () => props.defaultOpen,
|
|
@@ -3869,6 +3928,9 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
3869
3928
|
get isInvalid() {
|
|
3870
3929
|
return finalInvalid.value;
|
|
3871
3930
|
},
|
|
3931
|
+
get listboxId() {
|
|
3932
|
+
return listboxId;
|
|
3933
|
+
},
|
|
3872
3934
|
get fieldId() {
|
|
3873
3935
|
return field?.id;
|
|
3874
3936
|
},
|
|
@@ -3887,7 +3949,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
3887
3949
|
valuesCtl.reset();
|
|
3888
3950
|
});
|
|
3889
3951
|
return (_ctx, _cache) => {
|
|
3890
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
3952
|
+
return openBlock(), createBlock(unref(_sfc_main$29), {
|
|
3891
3953
|
key: unref(formResetRevision),
|
|
3892
3954
|
open: isOpenNow.value,
|
|
3893
3955
|
placement: __props.placement,
|
|
@@ -3928,7 +3990,7 @@ const _hoisted_3$F = {
|
|
|
3928
3990
|
key: 0,
|
|
3929
3991
|
class: "ml-0.5 flex shrink-0 items-center gap-1.5"
|
|
3930
3992
|
};
|
|
3931
|
-
const _hoisted_4$
|
|
3993
|
+
const _hoisted_4$x = { class: "text-xs font-medium tabular-nums text-muted-foreground" };
|
|
3932
3994
|
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
3933
3995
|
...{ name: "MultiSelectPickerTags" },
|
|
3934
3996
|
__name: "MultiSelectPickerTags",
|
|
@@ -3991,13 +4053,13 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
3991
4053
|
"aria-hidden": "true",
|
|
3992
4054
|
class: "h-4 w-px shrink-0 bg-border"
|
|
3993
4055
|
}, null, -1)),
|
|
3994
|
-
createElementVNode("span", _hoisted_4$
|
|
4056
|
+
createElementVNode("span", _hoisted_4$x, " +" + toDisplayString(overflowCount.value), 1)
|
|
3995
4057
|
])) : createCommentVNode("", true)
|
|
3996
4058
|
], 2));
|
|
3997
4059
|
};
|
|
3998
4060
|
}
|
|
3999
4061
|
});
|
|
4000
|
-
const _hoisted_1$1a = ["id", "disabled", "aria-readonly", "aria-invalid", "aria-labelledby", "aria-describedby"];
|
|
4062
|
+
const _hoisted_1$1a = ["id", "disabled", "aria-readonly", "aria-controls", "aria-invalid", "aria-labelledby", "aria-describedby"];
|
|
4001
4063
|
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
4002
4064
|
...{ name: "MultiSelectPickerTrigger", inheritAttrs: false },
|
|
4003
4065
|
__name: "MultiSelectPickerTrigger",
|
|
@@ -4018,6 +4080,11 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
4018
4080
|
function onKeydown(event) {
|
|
4019
4081
|
if (event.isComposing) return;
|
|
4020
4082
|
if (event.defaultPrevented) return;
|
|
4083
|
+
if (!ctx.open && (event.key === "ArrowDown" || event.key === "ArrowUp")) {
|
|
4084
|
+
event.preventDefault();
|
|
4085
|
+
ctx.setOpen(true);
|
|
4086
|
+
return;
|
|
4087
|
+
}
|
|
4021
4088
|
if (event.key === "Backspace" && ctx.values.length > 0) {
|
|
4022
4089
|
ctx.setValues(ctx.values.slice(0, -1));
|
|
4023
4090
|
}
|
|
@@ -4040,15 +4107,18 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
4040
4107
|
const ChevronDownIcon = ChevronDown;
|
|
4041
4108
|
__expose({ el: root });
|
|
4042
4109
|
return (_ctx, _cache) => {
|
|
4043
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4110
|
+
return openBlock(), createBlock(unref(_sfc_main$2b), { "as-child": "" }, {
|
|
4044
4111
|
default: withCtx(() => [
|
|
4045
4112
|
createElementVNode("button", mergeProps({
|
|
4046
4113
|
ref_key: "root",
|
|
4047
4114
|
ref: root,
|
|
4048
4115
|
type: "button",
|
|
4116
|
+
role: "combobox",
|
|
4049
4117
|
id: unref(ctx).fieldId,
|
|
4050
4118
|
disabled: unref(ctx).isDisabled && !unref(ctx).isReadOnly,
|
|
4051
4119
|
"aria-readonly": unref(ctx).isReadOnly || void 0,
|
|
4120
|
+
"aria-haspopup": "listbox",
|
|
4121
|
+
"aria-controls": unref(ctx).listboxId,
|
|
4052
4122
|
"aria-invalid": triggerState.value === "invalid" || void 0,
|
|
4053
4123
|
"aria-labelledby": labelledBy.value,
|
|
4054
4124
|
"aria-describedby": unref(ctx).describedBy,
|
|
@@ -4090,7 +4160,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
4090
4160
|
}
|
|
4091
4161
|
return (_ctx, _cache) => {
|
|
4092
4162
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
4093
|
-
createVNode(unref(_sfc_main$
|
|
4163
|
+
createVNode(unref(_sfc_main$2c), {
|
|
4094
4164
|
variant: __props.variant,
|
|
4095
4165
|
tone: __props.tone,
|
|
4096
4166
|
radius: __props.radius,
|
|
@@ -4100,6 +4170,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
4100
4170
|
}, {
|
|
4101
4171
|
default: withCtx(() => [
|
|
4102
4172
|
createVNode(unref(_sfc_main$1C), {
|
|
4173
|
+
id: unref(ctx).listboxId,
|
|
4103
4174
|
"is-disabled": unref(ctx).isDisabled,
|
|
4104
4175
|
"is-multiple": "",
|
|
4105
4176
|
"model-value": selected.value,
|
|
@@ -4111,7 +4182,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
4111
4182
|
renderSlot(_ctx.$slots, "default")
|
|
4112
4183
|
]),
|
|
4113
4184
|
_: 3
|
|
4114
|
-
}, 8, ["is-disabled", "model-value"])
|
|
4185
|
+
}, 8, ["id", "is-disabled", "model-value"])
|
|
4115
4186
|
]),
|
|
4116
4187
|
_: 3
|
|
4117
4188
|
}, 8, ["variant", "tone", "radius", "padding", "elevation", "class"]),
|
|
@@ -4535,19 +4606,19 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
4535
4606
|
)
|
|
4536
4607
|
);
|
|
4537
4608
|
return (_ctx, _cache) => {
|
|
4538
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4609
|
+
return openBlock(), createBlock(unref(_sfc_main$2d), null, {
|
|
4539
4610
|
default: withCtx(() => [
|
|
4540
4611
|
createVNode(unref(Presence), { "is-present": isOpen.value }, {
|
|
4541
4612
|
default: withCtx(() => [
|
|
4542
4613
|
createElementVNode("div", _hoisted_1$17, [
|
|
4543
|
-
createVNode(unref(_sfc_main$
|
|
4614
|
+
createVNode(unref(_sfc_main$2e), {
|
|
4544
4615
|
anchor: anchor.value,
|
|
4545
4616
|
placement: __props.placement,
|
|
4546
4617
|
offset: __props.offset,
|
|
4547
4618
|
class: "z-dropdown"
|
|
4548
4619
|
}, {
|
|
4549
4620
|
default: withCtx(() => [
|
|
4550
|
-
createVNode(unref(_sfc_main$
|
|
4621
|
+
createVNode(unref(_sfc_main$2f), mergeProps({
|
|
4551
4622
|
ref: setRef,
|
|
4552
4623
|
"on-escape": onEscape,
|
|
4553
4624
|
"on-outside-pointer-down": onOutsidePointerDown,
|
|
@@ -4716,10 +4787,10 @@ const _hoisted_3$E = {
|
|
|
4716
4787
|
class: "text-sm font-medium",
|
|
4717
4788
|
"aria-live": "polite"
|
|
4718
4789
|
};
|
|
4719
|
-
const _hoisted_4$
|
|
4790
|
+
const _hoisted_4$w = ["aria-label"];
|
|
4720
4791
|
const _hoisted_5$o = { class: "grid grid-cols-7 gap-0 px-1" };
|
|
4721
4792
|
const _hoisted_6$l = ["aria-label"];
|
|
4722
|
-
const _hoisted_7$
|
|
4793
|
+
const _hoisted_7$f = ["data-date", "aria-disabled", "data-today", "data-out-of-month", "data-disabled", "tabindex", "onClick", "onKeydown"];
|
|
4723
4794
|
const MaxDisabledSkip$1 = 400;
|
|
4724
4795
|
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
4725
4796
|
...{ name: "MonthGrid", inheritAttrs: false },
|
|
@@ -4907,7 +4978,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
4907
4978
|
onClick: _cache[1] || (_cache[1] = ($event) => emit("update:viewMonth", unref(addMonths)(__props.viewMonth, 1)))
|
|
4908
4979
|
}, [
|
|
4909
4980
|
createVNode(unref(ChevronRightIcon), { class: "h-4 w-4" })
|
|
4910
|
-
], 8, _hoisted_4$
|
|
4981
|
+
], 8, _hoisted_4$w)
|
|
4911
4982
|
]),
|
|
4912
4983
|
createElementVNode("div", _hoisted_5$o, [
|
|
4913
4984
|
(openBlock(true), createElementBlock(Fragment, null, renderList(WeekdayLabels.value, (w) => {
|
|
@@ -4945,7 +5016,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
4945
5016
|
class: cellClass(cell.date, cell.outOfMonth),
|
|
4946
5017
|
onClick: ($event) => onCellClick(cell.date, cell.outOfMonth),
|
|
4947
5018
|
onKeydown: ($event) => onCellKeydown($event, cell.date, cell.outOfMonth)
|
|
4948
|
-
}), toDisplayString(cell.date.day), 17, _hoisted_7$
|
|
5019
|
+
}), toDisplayString(cell.date.day), 17, _hoisted_7$f);
|
|
4949
5020
|
}), 128))
|
|
4950
5021
|
]);
|
|
4951
5022
|
}), 128))
|
|
@@ -5205,7 +5276,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
5205
5276
|
"aria-invalid": isInvalid.value,
|
|
5206
5277
|
"aria-describedby": describedBy.value,
|
|
5207
5278
|
class: inputClass.value
|
|
5208
|
-
}, passthroughAttrs.value, { onInput: onNativeInput }), null, 16, _hoisted_1$12)) : (openBlock(), createBlock(unref(_sfc_main$
|
|
5279
|
+
}, passthroughAttrs.value, { onInput: onNativeInput }), null, 16, _hoisted_1$12)) : (openBlock(), createBlock(unref(_sfc_main$29), {
|
|
5209
5280
|
key: 1,
|
|
5210
5281
|
open: open.value,
|
|
5211
5282
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
@@ -5233,7 +5304,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
5233
5304
|
onBlur,
|
|
5234
5305
|
onKeydown
|
|
5235
5306
|
}), null, 16, _hoisted_2$P),
|
|
5236
|
-
createVNode(unref(_sfc_main$
|
|
5307
|
+
createVNode(unref(_sfc_main$2b), {
|
|
5237
5308
|
"aria-label": unref(locale).t("DateInput.chooseDate", void 0, "Choose date"),
|
|
5238
5309
|
disabled: finalDisabled.value || finalReadOnly.value,
|
|
5239
5310
|
class: "absolute right-1 top-1/2 grid h-8 w-8 -translate-y-1/2 place-items-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50"
|
|
@@ -5243,7 +5314,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
5243
5314
|
]),
|
|
5244
5315
|
_: 1
|
|
5245
5316
|
}, 8, ["aria-label", "disabled"]),
|
|
5246
|
-
createVNode(unref(_sfc_main$
|
|
5317
|
+
createVNode(unref(_sfc_main$2c), { "is-bare": "" }, {
|
|
5247
5318
|
default: withCtx(() => [
|
|
5248
5319
|
createVNode(_sfc_main$1f, {
|
|
5249
5320
|
"model-value": unref(committed),
|
|
@@ -5266,7 +5337,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
5266
5337
|
const _hoisted_1$11 = ["aria-label", "tabindex", "aria-disabled", "aria-readonly", "aria-activedescendant"];
|
|
5267
5338
|
const _hoisted_2$O = ["id", "disabled", "aria-selected", "data-active", "data-selected", "onClick"];
|
|
5268
5339
|
const _hoisted_3$D = ["aria-label", "tabindex", "aria-disabled", "aria-readonly", "aria-activedescendant"];
|
|
5269
|
-
const _hoisted_4$
|
|
5340
|
+
const _hoisted_4$v = ["id", "disabled", "aria-selected", "data-active", "data-selected", "onClick"];
|
|
5270
5341
|
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
5271
5342
|
...{ name: "TimeColumns", inheritAttrs: false },
|
|
5272
5343
|
__name: "TimeColumns",
|
|
@@ -5446,7 +5517,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
5446
5517
|
"data-selected": __props.modelValue?.minute === minute ? "" : void 0,
|
|
5447
5518
|
class: normalizeClass(cellClass(__props.modelValue?.minute === minute, activeMinute.value === minute)),
|
|
5448
5519
|
onClick: ($event) => select("minute", minute)
|
|
5449
|
-
}, toDisplayString(pad(minute)), 11, _hoisted_4$
|
|
5520
|
+
}, toDisplayString(pad(minute)), 11, _hoisted_4$v);
|
|
5450
5521
|
}), 128))
|
|
5451
5522
|
], 40, _hoisted_3$D)
|
|
5452
5523
|
], 16);
|
|
@@ -5456,7 +5527,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
5456
5527
|
const _hoisted_1$10 = ["step", "id", "value", "min", "max", "disabled", "readonly", "required", "aria-invalid", "aria-describedby"];
|
|
5457
5528
|
const _hoisted_2$N = ["id", "value", "placeholder", "disabled", "readonly", "required", "aria-invalid", "aria-describedby"];
|
|
5458
5529
|
const _hoisted_3$C = { class: "flex items-start gap-2" };
|
|
5459
|
-
const _hoisted_4$
|
|
5530
|
+
const _hoisted_4$u = ["disabled", "form", "name", "value"];
|
|
5460
5531
|
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
5461
5532
|
...{ name: "DateTimeInput", inheritAttrs: false },
|
|
5462
5533
|
__name: "DateTimeInput",
|
|
@@ -5628,7 +5699,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
5628
5699
|
"aria-invalid": isInvalid.value,
|
|
5629
5700
|
"aria-describedby": describedBy.value,
|
|
5630
5701
|
class: inputClass.value
|
|
5631
|
-
}, passthroughAttrs.value, { onInput: onNativeInput }), null, 16, _hoisted_1$10)) : (openBlock(), createBlock(unref(_sfc_main$
|
|
5702
|
+
}, passthroughAttrs.value, { onInput: onNativeInput }), null, 16, _hoisted_1$10)) : (openBlock(), createBlock(unref(_sfc_main$29), {
|
|
5632
5703
|
key: 1,
|
|
5633
5704
|
open: open.value,
|
|
5634
5705
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
@@ -5656,7 +5727,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
5656
5727
|
onBlur,
|
|
5657
5728
|
onKeydown
|
|
5658
5729
|
}), null, 16, _hoisted_2$N),
|
|
5659
|
-
createVNode(unref(_sfc_main$
|
|
5730
|
+
createVNode(unref(_sfc_main$2b), {
|
|
5660
5731
|
"aria-label": unref(locale).t("DateTimeInput.chooseDateAndTime", void 0, "Choose date and time"),
|
|
5661
5732
|
disabled: finalDisabled.value || finalReadOnly.value,
|
|
5662
5733
|
class: "absolute right-1 top-1/2 grid h-8 w-8 -translate-y-1/2 place-items-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50"
|
|
@@ -5666,7 +5737,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
5666
5737
|
]),
|
|
5667
5738
|
_: 1
|
|
5668
5739
|
}, 8, ["aria-label", "disabled"]),
|
|
5669
|
-
createVNode(unref(_sfc_main$
|
|
5740
|
+
createVNode(unref(_sfc_main$2c), { "is-bare": "" }, {
|
|
5670
5741
|
default: withCtx(() => [
|
|
5671
5742
|
createElementVNode("div", _hoisted_3$C, [
|
|
5672
5743
|
createVNode(_sfc_main$1f, {
|
|
@@ -5699,7 +5770,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
5699
5770
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
5700
5771
|
name: __props.name,
|
|
5701
5772
|
value: isoValue.value
|
|
5702
|
-
}, null, 8, _hoisted_4$
|
|
5773
|
+
}, null, 8, _hoisted_4$u)) : createCommentVNode("", true)
|
|
5703
5774
|
], 2);
|
|
5704
5775
|
};
|
|
5705
5776
|
}
|
|
@@ -5856,7 +5927,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
5856
5927
|
"aria-invalid": isInvalid.value,
|
|
5857
5928
|
"aria-describedby": describedBy.value,
|
|
5858
5929
|
class: inputClass.value
|
|
5859
|
-
}, passthroughAttrs.value, { onInput: onNativeInput }), null, 16, _hoisted_1$$)) : (openBlock(), createBlock(unref(_sfc_main$
|
|
5930
|
+
}, passthroughAttrs.value, { onInput: onNativeInput }), null, 16, _hoisted_1$$)) : (openBlock(), createBlock(unref(_sfc_main$29), {
|
|
5860
5931
|
key: 1,
|
|
5861
5932
|
open: open.value,
|
|
5862
5933
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
@@ -5885,7 +5956,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
5885
5956
|
onBlur,
|
|
5886
5957
|
onKeydown
|
|
5887
5958
|
}), null, 16, _hoisted_2$M),
|
|
5888
|
-
createVNode(unref(_sfc_main$
|
|
5959
|
+
createVNode(unref(_sfc_main$2b), {
|
|
5889
5960
|
"aria-label": unref(locale).t("TimeInput.chooseTime", void 0, "Choose time"),
|
|
5890
5961
|
disabled: finalDisabled.value || finalReadOnly.value,
|
|
5891
5962
|
class: "absolute right-1 top-1/2 grid h-8 w-8 -translate-y-1/2 place-items-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50"
|
|
@@ -5895,7 +5966,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
5895
5966
|
]),
|
|
5896
5967
|
_: 1
|
|
5897
5968
|
}, 8, ["aria-label", "disabled"]),
|
|
5898
|
-
createVNode(unref(_sfc_main$
|
|
5969
|
+
createVNode(unref(_sfc_main$2c), { "is-bare": "" }, {
|
|
5899
5970
|
default: withCtx(() => [
|
|
5900
5971
|
createVNode(_sfc_main$1d, {
|
|
5901
5972
|
"is-disabled": finalDisabled.value || finalReadOnly.value,
|
|
@@ -6130,11 +6201,15 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
6130
6201
|
const ariaLabel = computed(() => attrs[AriaAttribute.Label]);
|
|
6131
6202
|
const triggerId = computed(() => props.id ?? field?.id);
|
|
6132
6203
|
const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
|
|
6133
|
-
const
|
|
6204
|
+
const readOnlyTrigger = computed(() => finalReadOnly.value && !finalDisabled.value);
|
|
6205
|
+
const readOnlyHint = useReadOnlyHint(readOnlyTrigger);
|
|
6206
|
+
const describedBy = computed(
|
|
6207
|
+
() => readOnlyHint.describedBy(attrs[AriaAttribute.DescribedBy] ?? field?.describedBy)
|
|
6208
|
+
);
|
|
6134
6209
|
const ariaInvalid = computed(() => triggerState.value === InputState.Invalid || void 0);
|
|
6135
6210
|
const defaultMonth = computed(() => date.value ?? today());
|
|
6136
6211
|
const hiddenValue = computed(() => formatISODate(date.value));
|
|
6137
|
-
const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label]);
|
|
6212
|
+
const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label, AriaAttribute.DescribedBy]);
|
|
6138
6213
|
const passthroughAttrs = computed(
|
|
6139
6214
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
6140
6215
|
);
|
|
@@ -6152,7 +6227,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
6152
6227
|
controlled.reset();
|
|
6153
6228
|
});
|
|
6154
6229
|
return (_ctx, _cache) => {
|
|
6155
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6230
|
+
return openBlock(), createBlock(unref(_sfc_main$29), {
|
|
6156
6231
|
key: unref(formResetRevision),
|
|
6157
6232
|
open: open.value,
|
|
6158
6233
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
@@ -6160,12 +6235,12 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
6160
6235
|
offset: 6
|
|
6161
6236
|
}, {
|
|
6162
6237
|
default: withCtx(() => [
|
|
6163
|
-
createVNode(unref(_sfc_main$
|
|
6238
|
+
createVNode(unref(_sfc_main$2b), mergeProps({
|
|
6164
6239
|
ref_key: "trigger",
|
|
6165
6240
|
ref: trigger,
|
|
6166
6241
|
id: triggerId.value,
|
|
6167
6242
|
disabled: finalDisabled.value,
|
|
6168
|
-
"
|
|
6243
|
+
"data-readonly": readOnlyTrigger.value || void 0,
|
|
6169
6244
|
"aria-invalid": ariaInvalid.value,
|
|
6170
6245
|
"aria-label": ariaLabel.value,
|
|
6171
6246
|
"aria-labelledby": labelledBy.value,
|
|
@@ -6179,8 +6254,12 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
6179
6254
|
createVNode(unref(Calendar), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
6180
6255
|
]),
|
|
6181
6256
|
_: 1
|
|
6182
|
-
}, 16, ["id", "disabled", "
|
|
6183
|
-
|
|
6257
|
+
}, 16, ["id", "disabled", "data-readonly", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
6258
|
+
readOnlyTrigger.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
6259
|
+
key: 0,
|
|
6260
|
+
id: unref(readOnlyHint).hintId
|
|
6261
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
6262
|
+
createVNode(unref(_sfc_main$2c), { "is-bare": "" }, {
|
|
6184
6263
|
default: withCtx(() => [
|
|
6185
6264
|
createVNode(_sfc_main$1f, {
|
|
6186
6265
|
"model-value": unref(date),
|
|
@@ -6195,7 +6274,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
6195
6274
|
_: 1
|
|
6196
6275
|
}),
|
|
6197
6276
|
__props.name ? (openBlock(), createElementBlock("input", {
|
|
6198
|
-
key:
|
|
6277
|
+
key: 1,
|
|
6199
6278
|
type: "hidden",
|
|
6200
6279
|
disabled: finalDisabled.value,
|
|
6201
6280
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
@@ -6273,10 +6352,14 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
6273
6352
|
const ariaLabel = computed(() => attrs[AriaAttribute.Label]);
|
|
6274
6353
|
const triggerId = computed(() => props.id ?? field?.id);
|
|
6275
6354
|
const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
|
|
6276
|
-
const
|
|
6355
|
+
const readOnlyTrigger = computed(() => finalReadOnly.value && !finalDisabled.value);
|
|
6356
|
+
const readOnlyHint = useReadOnlyHint(readOnlyTrigger);
|
|
6357
|
+
const describedBy = computed(
|
|
6358
|
+
() => readOnlyHint.describedBy(attrs[AriaAttribute.DescribedBy] ?? field?.describedBy)
|
|
6359
|
+
);
|
|
6277
6360
|
const ariaInvalid = computed(() => triggerState.value === InputState.Invalid || void 0);
|
|
6278
6361
|
const hiddenValue = computed(() => time.value?.toString({ smallestUnit: "minute" }) ?? "");
|
|
6279
|
-
const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label]);
|
|
6362
|
+
const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label, AriaAttribute.DescribedBy]);
|
|
6280
6363
|
const passthroughAttrs = computed(
|
|
6281
6364
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
6282
6365
|
);
|
|
@@ -6294,7 +6377,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
6294
6377
|
controlled.reset();
|
|
6295
6378
|
});
|
|
6296
6379
|
return (_ctx, _cache) => {
|
|
6297
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6380
|
+
return openBlock(), createBlock(unref(_sfc_main$29), {
|
|
6298
6381
|
key: unref(formResetRevision),
|
|
6299
6382
|
open: open.value,
|
|
6300
6383
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
@@ -6302,12 +6385,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
6302
6385
|
offset: 6
|
|
6303
6386
|
}, {
|
|
6304
6387
|
default: withCtx(() => [
|
|
6305
|
-
createVNode(unref(_sfc_main$
|
|
6388
|
+
createVNode(unref(_sfc_main$2b), mergeProps({
|
|
6306
6389
|
ref_key: "trigger",
|
|
6307
6390
|
ref: trigger,
|
|
6308
6391
|
id: triggerId.value,
|
|
6309
6392
|
disabled: finalDisabled.value,
|
|
6310
|
-
"
|
|
6393
|
+
"data-readonly": readOnlyTrigger.value || void 0,
|
|
6311
6394
|
"aria-invalid": ariaInvalid.value,
|
|
6312
6395
|
"aria-label": ariaLabel.value,
|
|
6313
6396
|
"aria-labelledby": labelledBy.value,
|
|
@@ -6321,8 +6404,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
6321
6404
|
createVNode(unref(Clock), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
6322
6405
|
]),
|
|
6323
6406
|
_: 1
|
|
6324
|
-
}, 16, ["id", "disabled", "
|
|
6325
|
-
|
|
6407
|
+
}, 16, ["id", "disabled", "data-readonly", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
6408
|
+
readOnlyTrigger.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
6409
|
+
key: 0,
|
|
6410
|
+
id: unref(readOnlyHint).hintId
|
|
6411
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
6412
|
+
createVNode(unref(_sfc_main$2c), { "is-bare": "" }, {
|
|
6326
6413
|
default: withCtx(() => [
|
|
6327
6414
|
createVNode(_sfc_main$1d, {
|
|
6328
6415
|
"is-disabled": finalDisabled.value || finalReadOnly.value,
|
|
@@ -6336,7 +6423,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
6336
6423
|
_: 1
|
|
6337
6424
|
}),
|
|
6338
6425
|
__props.name && unref(time) ? (openBlock(), createElementBlock("input", {
|
|
6339
|
-
key:
|
|
6426
|
+
key: 1,
|
|
6340
6427
|
type: "hidden",
|
|
6341
6428
|
disabled: finalDisabled.value,
|
|
6342
6429
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
@@ -6428,12 +6515,16 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
6428
6515
|
const ariaLabel = computed(() => attrs[AriaAttribute.Label]);
|
|
6429
6516
|
const triggerId = computed(() => props.id ?? field?.id);
|
|
6430
6517
|
const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
|
|
6431
|
-
const
|
|
6518
|
+
const readOnlyTrigger = computed(() => finalReadOnly.value && !finalDisabled.value);
|
|
6519
|
+
const readOnlyHint = useReadOnlyHint(readOnlyTrigger);
|
|
6520
|
+
const describedBy = computed(
|
|
6521
|
+
() => readOnlyHint.describedBy(attrs[AriaAttribute.DescribedBy] ?? field?.describedBy)
|
|
6522
|
+
);
|
|
6432
6523
|
const ariaInvalid = computed(() => triggerState.value === InputState.Invalid || void 0);
|
|
6433
6524
|
const defaultMonth = computed(() => range.value?.start ?? today());
|
|
6434
6525
|
const hiddenStart = computed(() => formatISODate(range.value?.start));
|
|
6435
6526
|
const hiddenEnd = computed(() => formatISODate(range.value?.end));
|
|
6436
|
-
const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label]);
|
|
6527
|
+
const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label, AriaAttribute.DescribedBy]);
|
|
6437
6528
|
const passthroughAttrs = computed(
|
|
6438
6529
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
6439
6530
|
);
|
|
@@ -6451,7 +6542,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
6451
6542
|
controlled.reset();
|
|
6452
6543
|
});
|
|
6453
6544
|
return (_ctx, _cache) => {
|
|
6454
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
6545
|
+
return openBlock(), createBlock(unref(_sfc_main$29), {
|
|
6455
6546
|
key: unref(formResetRevision),
|
|
6456
6547
|
open: open.value,
|
|
6457
6548
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
@@ -6459,12 +6550,12 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
6459
6550
|
offset: 6
|
|
6460
6551
|
}, {
|
|
6461
6552
|
default: withCtx(() => [
|
|
6462
|
-
createVNode(unref(_sfc_main$
|
|
6553
|
+
createVNode(unref(_sfc_main$2b), mergeProps({
|
|
6463
6554
|
ref_key: "trigger",
|
|
6464
6555
|
ref: trigger,
|
|
6465
6556
|
id: triggerId.value,
|
|
6466
6557
|
disabled: finalDisabled.value,
|
|
6467
|
-
"
|
|
6558
|
+
"data-readonly": readOnlyTrigger.value || void 0,
|
|
6468
6559
|
"aria-invalid": ariaInvalid.value,
|
|
6469
6560
|
"aria-label": ariaLabel.value,
|
|
6470
6561
|
"aria-labelledby": labelledBy.value,
|
|
@@ -6478,8 +6569,12 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
6478
6569
|
createVNode(unref(Calendar), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
6479
6570
|
]),
|
|
6480
6571
|
_: 1
|
|
6481
|
-
}, 16, ["id", "disabled", "
|
|
6482
|
-
|
|
6572
|
+
}, 16, ["id", "disabled", "data-readonly", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
6573
|
+
readOnlyTrigger.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
6574
|
+
key: 0,
|
|
6575
|
+
id: unref(readOnlyHint).hintId
|
|
6576
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
6577
|
+
createVNode(unref(_sfc_main$2c), { "is-bare": "" }, {
|
|
6483
6578
|
default: withCtx(() => [
|
|
6484
6579
|
createVNode(_sfc_main$1a, {
|
|
6485
6580
|
"model-value": unref(range),
|
|
@@ -6493,7 +6588,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
6493
6588
|
]),
|
|
6494
6589
|
_: 1
|
|
6495
6590
|
}),
|
|
6496
|
-
__props.name ? (openBlock(), createElementBlock(Fragment, { key:
|
|
6591
|
+
__props.name ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
6497
6592
|
createElementVNode("input", {
|
|
6498
6593
|
type: "hidden",
|
|
6499
6594
|
disabled: finalDisabled.value,
|
|
@@ -6724,7 +6819,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
6724
6819
|
return (_ctx, _cache) => {
|
|
6725
6820
|
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
6726
6821
|
createElementVNode("span", _hoisted_2$I, [
|
|
6727
|
-
createVNode(_sfc_main$
|
|
6822
|
+
createVNode(_sfc_main$2g, {
|
|
6728
6823
|
color: swatchColor.value,
|
|
6729
6824
|
size: "sm",
|
|
6730
6825
|
shape: __props.swatchShape
|
|
@@ -6970,10 +7065,10 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
6970
7065
|
};
|
|
6971
7066
|
}
|
|
6972
7067
|
});
|
|
6973
|
-
const _hoisted_1$U = ["id", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby", "aria-disabled", "
|
|
7068
|
+
const _hoisted_1$U = ["id", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby", "aria-disabled", "data-disabled"];
|
|
6974
7069
|
const _hoisted_2$G = ["tabindex", "aria-label", "aria-valuenow", "aria-valuetext", "aria-disabled", "aria-readonly"];
|
|
6975
7070
|
const _hoisted_3$z = ["tabindex", "aria-label", "aria-valuenow", "aria-valuetext", "aria-disabled", "aria-readonly"];
|
|
6976
|
-
const _hoisted_4$
|
|
7071
|
+
const _hoisted_4$t = ["form"];
|
|
6977
7072
|
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
6978
7073
|
...{ name: "ColorArea", inheritAttrs: false },
|
|
6979
7074
|
__name: "ColorArea",
|
|
@@ -7121,7 +7216,6 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
7121
7216
|
"aria-invalid": isInvalid.value,
|
|
7122
7217
|
"aria-describedby": describedBy.value,
|
|
7123
7218
|
"aria-disabled": disabled.value || void 0,
|
|
7124
|
-
"aria-readonly": readOnly.value || void 0,
|
|
7125
7219
|
"data-disabled": disabled.value ? "" : void 0,
|
|
7126
7220
|
style: trackStyle.value,
|
|
7127
7221
|
class: rootClass.value
|
|
@@ -7166,7 +7260,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
7166
7260
|
type: "hidden",
|
|
7167
7261
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
7168
7262
|
"aria-hidden": "true"
|
|
7169
|
-
}, null, 8, _hoisted_4$
|
|
7263
|
+
}, null, 8, _hoisted_4$t)
|
|
7170
7264
|
], 16, _hoisted_1$U);
|
|
7171
7265
|
};
|
|
7172
7266
|
}
|
|
@@ -7357,6 +7451,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
7357
7451
|
color: {},
|
|
7358
7452
|
isSelected: { type: Boolean },
|
|
7359
7453
|
isDisabled: { type: Boolean },
|
|
7454
|
+
isReadOnly: { type: Boolean },
|
|
7360
7455
|
size: {},
|
|
7361
7456
|
shape: {}
|
|
7362
7457
|
},
|
|
@@ -7375,20 +7470,21 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
7375
7470
|
}
|
|
7376
7471
|
}
|
|
7377
7472
|
return (_ctx, _cache) => {
|
|
7378
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7473
|
+
return openBlock(), createBlock(_sfc_main$2g, {
|
|
7379
7474
|
ref: unref(roving).ref,
|
|
7380
7475
|
color: __props.color,
|
|
7381
7476
|
size: __props.size,
|
|
7382
7477
|
shape: __props.shape,
|
|
7383
7478
|
"is-selected": __props.isSelected,
|
|
7384
7479
|
"is-disabled": __props.isDisabled,
|
|
7480
|
+
class: normalizeClass(__props.isReadOnly && "cursor-default hover:shadow-none"),
|
|
7385
7481
|
tabindex: unref(roving).tabindex,
|
|
7386
7482
|
"data-roving-focus-item": unref(roving)["data-roving-focus-item"],
|
|
7387
7483
|
"aria-label": __props.color,
|
|
7388
7484
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("select", __props.color)),
|
|
7389
7485
|
onFocus: _cache[1] || (_cache[1] = ($event) => unref(roving).onFocus()),
|
|
7390
7486
|
onKeydown: handleKeydown
|
|
7391
|
-
}, null, 8, ["color", "size", "shape", "is-selected", "is-disabled", "tabindex", "data-roving-focus-item", "aria-label"]);
|
|
7487
|
+
}, null, 8, ["color", "size", "shape", "is-selected", "is-disabled", "class", "tabindex", "data-roving-focus-item", "aria-label"]);
|
|
7392
7488
|
};
|
|
7393
7489
|
}
|
|
7394
7490
|
});
|
|
@@ -7413,6 +7509,9 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
7413
7509
|
const attrs = useAttrs();
|
|
7414
7510
|
const field = useFormControl();
|
|
7415
7511
|
const finalDisabled = computed(() => props.isDisabled ?? field?.isDisabled ?? false);
|
|
7512
|
+
const finalReadOnly = computed(() => props.isReadOnly ?? field?.isReadOnly ?? false);
|
|
7513
|
+
const readOnlyGroup = computed(() => finalReadOnly.value && !finalDisabled.value);
|
|
7514
|
+
const readOnlyHint = useReadOnlyHint(readOnlyGroup);
|
|
7416
7515
|
const controlled = useControlled({
|
|
7417
7516
|
/* `??` is wrong here — `null` is a MEANINGFUL selection ("nothing selected"), and `??`
|
|
7418
7517
|
would fall through it to `modelValue`. Only `undefined` means "not controlled". */
|
|
@@ -7424,13 +7523,13 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
7424
7523
|
});
|
|
7425
7524
|
const selected = controlled.value;
|
|
7426
7525
|
function onSelect(color) {
|
|
7427
|
-
if (finalDisabled.value ||
|
|
7526
|
+
if (finalDisabled.value || finalReadOnly.value) return;
|
|
7428
7527
|
controlled.setValue(color);
|
|
7429
7528
|
}
|
|
7430
7529
|
const ariaLabel = computed(() => attrs[AriaAttribute.Label]);
|
|
7431
7530
|
const groupId = computed(() => props.id ?? field?.id);
|
|
7432
7531
|
const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
|
|
7433
|
-
const describedBy = computed(() => field?.describedBy);
|
|
7532
|
+
const describedBy = computed(() => readOnlyHint.describedBy(field?.describedBy));
|
|
7434
7533
|
const OwnedAttributes = /* @__PURE__ */ new Set(["class"]);
|
|
7435
7534
|
const passthroughAttrs = computed(
|
|
7436
7535
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
@@ -7443,7 +7542,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
7443
7542
|
controlled.reset();
|
|
7444
7543
|
});
|
|
7445
7544
|
return (_ctx, _cache) => {
|
|
7446
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
7545
|
+
return openBlock(), createBlock(unref(_sfc_main$2h), mergeProps({
|
|
7447
7546
|
key: unref(formResetRevision),
|
|
7448
7547
|
ref_key: "root",
|
|
7449
7548
|
ref: root,
|
|
@@ -7452,6 +7551,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
7452
7551
|
id: groupId.value,
|
|
7453
7552
|
"aria-labelledby": labelledBy.value,
|
|
7454
7553
|
"aria-describedby": describedBy.value,
|
|
7554
|
+
"data-readonly": readOnlyGroup.value || void 0,
|
|
7455
7555
|
class: rootClass.value
|
|
7456
7556
|
}, passthroughAttrs.value), {
|
|
7457
7557
|
default: withCtx(() => [
|
|
@@ -7460,12 +7560,17 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
7460
7560
|
key: c,
|
|
7461
7561
|
color: c,
|
|
7462
7562
|
"is-selected": unref(selected) === c,
|
|
7463
|
-
"is-disabled": finalDisabled.value
|
|
7563
|
+
"is-disabled": finalDisabled.value,
|
|
7564
|
+
"is-read-only": readOnlyGroup.value,
|
|
7464
7565
|
size: __props.swatchSize,
|
|
7465
7566
|
shape: __props.swatchShape,
|
|
7466
7567
|
onSelect
|
|
7467
|
-
}, null, 8, ["color", "is-selected", "is-disabled", "size", "shape"]);
|
|
7568
|
+
}, null, 8, ["color", "is-selected", "is-disabled", "is-read-only", "size", "shape"]);
|
|
7468
7569
|
}), 128)),
|
|
7570
|
+
readOnlyGroup.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
7571
|
+
key: 0,
|
|
7572
|
+
id: unref(readOnlyHint).hintId
|
|
7573
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
7469
7574
|
createElementVNode("input", {
|
|
7470
7575
|
ref_key: "formResetAnchor",
|
|
7471
7576
|
ref: formResetAnchor,
|
|
@@ -7475,7 +7580,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
7475
7580
|
}, null, 8, _hoisted_1$S)
|
|
7476
7581
|
]),
|
|
7477
7582
|
_: 1
|
|
7478
|
-
}, 16, ["orientation", "id", "aria-labelledby", "aria-describedby", "class"]);
|
|
7583
|
+
}, 16, ["orientation", "id", "aria-labelledby", "aria-describedby", "data-readonly", "class"]);
|
|
7479
7584
|
};
|
|
7480
7585
|
}
|
|
7481
7586
|
});
|
|
@@ -7519,7 +7624,11 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
7519
7624
|
const ariaLabel = computed(() => attrs[AriaAttribute.Label]);
|
|
7520
7625
|
const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
|
|
7521
7626
|
const finalAriaLabel = computed(() => ariaLabel.value ?? (labelledBy.value ? void 0 : "Pick a color"));
|
|
7522
|
-
const
|
|
7627
|
+
const readOnlyTrigger = computed(() => finalReadOnly.value && !finalDisabled.value);
|
|
7628
|
+
const readOnlyHint = useReadOnlyHint(readOnlyTrigger);
|
|
7629
|
+
const describedBy = computed(
|
|
7630
|
+
() => readOnlyHint.describedBy(attrs[AriaAttribute.DescribedBy] ?? field?.describedBy)
|
|
7631
|
+
);
|
|
7523
7632
|
const isInvalid = computed(() => field?.isInvalid || void 0);
|
|
7524
7633
|
const controlled = useControlled({
|
|
7525
7634
|
/* `??` is wrong here — `null` is a MEANINGFUL committed value ("no color"), and `??` would
|
|
@@ -7570,17 +7679,24 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
7570
7679
|
const hiddenValue = computed(() => hex.value ?? "");
|
|
7571
7680
|
const alphaValue = computed(() => hsv.value.a ?? 1);
|
|
7572
7681
|
const hasPresets = computed(() => Boolean(props.presets && props.presets.length > 0));
|
|
7573
|
-
const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label]);
|
|
7682
|
+
const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label, AriaAttribute.DescribedBy]);
|
|
7574
7683
|
const passthroughAttrs = computed(
|
|
7575
7684
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
7576
7685
|
);
|
|
7686
|
+
function onTriggerClick(event) {
|
|
7687
|
+
if (finalReadOnly.value) event.preventDefault();
|
|
7688
|
+
}
|
|
7577
7689
|
const framedTriggerClass = computed(
|
|
7578
7690
|
() => cn(
|
|
7579
7691
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-2 py-1 text-sm transition-colors hover:border-border-strong focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60",
|
|
7692
|
+
ReadOnlyLook,
|
|
7693
|
+
"readonly:hover:border-border",
|
|
7580
7694
|
attrs.class
|
|
7581
7695
|
)
|
|
7582
7696
|
);
|
|
7583
|
-
const swatchTriggerClass = computed(
|
|
7697
|
+
const swatchTriggerClass = computed(
|
|
7698
|
+
() => cn("readonly:cursor-default readonly:hover:shadow-none", attrs.class)
|
|
7699
|
+
);
|
|
7584
7700
|
const trigger = useTemplateRef("trigger");
|
|
7585
7701
|
__expose({ el: computed(() => trigger.value?.el ?? null) });
|
|
7586
7702
|
const formResetAnchor = useTemplateRef("formResetAnchor");
|
|
@@ -7589,20 +7705,23 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
7589
7705
|
});
|
|
7590
7706
|
const locale = useLocale();
|
|
7591
7707
|
return (_ctx, _cache) => {
|
|
7592
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
7708
|
+
return openBlock(), createBlock(unref(_sfc_main$29), { key: unref(formResetRevision) }, {
|
|
7593
7709
|
default: withCtx(() => [
|
|
7594
|
-
hasCustomTrigger.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
7710
|
+
hasCustomTrigger.value ? (openBlock(), createBlock(unref(_sfc_main$2b), {
|
|
7595
7711
|
key: 0,
|
|
7596
7712
|
ref_key: "trigger",
|
|
7597
7713
|
ref: trigger,
|
|
7598
7714
|
"as-child": "",
|
|
7599
|
-
disabled: finalDisabled.value
|
|
7715
|
+
disabled: finalDisabled.value,
|
|
7716
|
+
"data-readonly": readOnlyTrigger.value || void 0,
|
|
7717
|
+
"aria-describedby": unref(readOnlyHint).describedBy(),
|
|
7718
|
+
onClick: onTriggerClick
|
|
7600
7719
|
}, {
|
|
7601
7720
|
default: withCtx(() => [
|
|
7602
7721
|
renderSlot(_ctx.$slots, "trigger")
|
|
7603
7722
|
]),
|
|
7604
7723
|
_: 3
|
|
7605
|
-
}, 8, ["disabled"])) : isSwatchTrigger.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
7724
|
+
}, 8, ["disabled", "data-readonly", "aria-describedby"])) : isSwatchTrigger.value ? (openBlock(), createBlock(unref(_sfc_main$2b), mergeProps({
|
|
7606
7725
|
key: 1,
|
|
7607
7726
|
ref_key: "trigger",
|
|
7608
7727
|
ref: trigger,
|
|
@@ -7611,19 +7730,20 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
7611
7730
|
"aria-label": finalAriaLabel.value,
|
|
7612
7731
|
"aria-labelledby": labelledBy.value,
|
|
7613
7732
|
"aria-describedby": describedBy.value,
|
|
7614
|
-
"aria-invalid": isInvalid.value
|
|
7615
|
-
|
|
7733
|
+
"aria-invalid": isInvalid.value,
|
|
7734
|
+
"data-readonly": readOnlyTrigger.value || void 0
|
|
7735
|
+
}, passthroughAttrs.value, { onClick: onTriggerClick }), {
|
|
7616
7736
|
default: withCtx(() => [
|
|
7617
|
-
createVNode(_sfc_main$
|
|
7737
|
+
createVNode(_sfc_main$2g, {
|
|
7618
7738
|
color: swatchColor.value,
|
|
7619
7739
|
size: __props.triggerSize,
|
|
7620
|
-
"is-disabled": finalDisabled.value
|
|
7740
|
+
"is-disabled": finalDisabled.value,
|
|
7621
7741
|
class: normalizeClass(swatchTriggerClass.value),
|
|
7622
7742
|
onClick: noop
|
|
7623
7743
|
}, null, 8, ["color", "size", "is-disabled", "class"])
|
|
7624
7744
|
]),
|
|
7625
7745
|
_: 1
|
|
7626
|
-
}, 16, ["id", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
7746
|
+
}, 16, ["id", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "data-readonly"])) : (openBlock(), createBlock(unref(_sfc_main$2b), mergeProps({
|
|
7627
7747
|
key: 2,
|
|
7628
7748
|
ref_key: "trigger",
|
|
7629
7749
|
ref: trigger,
|
|
@@ -7632,11 +7752,12 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
7632
7752
|
"aria-labelledby": labelledBy.value,
|
|
7633
7753
|
"aria-describedby": describedBy.value,
|
|
7634
7754
|
"aria-invalid": isInvalid.value,
|
|
7635
|
-
disabled: finalDisabled.value
|
|
7755
|
+
disabled: finalDisabled.value,
|
|
7756
|
+
"data-readonly": readOnlyTrigger.value || void 0,
|
|
7636
7757
|
class: framedTriggerClass.value
|
|
7637
|
-
}, passthroughAttrs.value), {
|
|
7758
|
+
}, passthroughAttrs.value, { onClick: onTriggerClick }), {
|
|
7638
7759
|
default: withCtx(() => [
|
|
7639
|
-
isFullTrigger.value ? (openBlock(), createBlock(_sfc_main$
|
|
7760
|
+
isFullTrigger.value ? (openBlock(), createBlock(_sfc_main$2g, {
|
|
7640
7761
|
key: 0,
|
|
7641
7762
|
color: swatchColor.value,
|
|
7642
7763
|
size: __props.triggerSize
|
|
@@ -7644,13 +7765,17 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
7644
7765
|
createElementVNode("span", _hoisted_1$R, toDisplayString(hexText.value), 1)
|
|
7645
7766
|
]),
|
|
7646
7767
|
_: 1
|
|
7647
|
-
}, 16, ["id", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "disabled", "class"])),
|
|
7648
|
-
|
|
7768
|
+
}, 16, ["id", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "disabled", "data-readonly", "class"])),
|
|
7769
|
+
readOnlyTrigger.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
7770
|
+
key: 3,
|
|
7771
|
+
id: unref(readOnlyHint).hintId
|
|
7772
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
7773
|
+
createVNode(unref(_sfc_main$2c), {
|
|
7649
7774
|
"aria-label": unref(locale).t("ColorPicker.colorPicker", void 0, "Color picker"),
|
|
7650
7775
|
class: "flex w-64 flex-col gap-3"
|
|
7651
7776
|
}, {
|
|
7652
7777
|
default: withCtx(() => [
|
|
7653
|
-
createVNode(unref(_sfc_main$
|
|
7778
|
+
createVNode(unref(_sfc_main$22), {
|
|
7654
7779
|
"is-disabled": finalDisabled.value || finalReadOnly.value,
|
|
7655
7780
|
"is-read-only": finalReadOnly.value
|
|
7656
7781
|
}, {
|
|
@@ -7665,7 +7790,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
7665
7790
|
]),
|
|
7666
7791
|
_: 1
|
|
7667
7792
|
}, 8, ["is-disabled", "is-read-only"]),
|
|
7668
|
-
createVNode(unref(_sfc_main$
|
|
7793
|
+
createVNode(unref(_sfc_main$22), {
|
|
7669
7794
|
"is-disabled": finalDisabled.value || finalReadOnly.value,
|
|
7670
7795
|
"is-read-only": finalReadOnly.value
|
|
7671
7796
|
}, {
|
|
@@ -7679,7 +7804,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
7679
7804
|
]),
|
|
7680
7805
|
_: 1
|
|
7681
7806
|
}, 8, ["is-disabled", "is-read-only"]),
|
|
7682
|
-
__props.hasAlpha ? (openBlock(), createBlock(unref(_sfc_main$
|
|
7807
|
+
__props.hasAlpha ? (openBlock(), createBlock(unref(_sfc_main$22), {
|
|
7683
7808
|
key: 0,
|
|
7684
7809
|
"is-disabled": finalDisabled.value || finalReadOnly.value,
|
|
7685
7810
|
"is-read-only": finalReadOnly.value
|
|
@@ -7695,7 +7820,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
7695
7820
|
]),
|
|
7696
7821
|
_: 1
|
|
7697
7822
|
}, 8, ["is-disabled", "is-read-only"])) : createCommentVNode("", true),
|
|
7698
|
-
createVNode(unref(_sfc_main$
|
|
7823
|
+
createVNode(unref(_sfc_main$22), {
|
|
7699
7824
|
"is-disabled": finalDisabled.value || finalReadOnly.value,
|
|
7700
7825
|
"is-read-only": finalReadOnly.value
|
|
7701
7826
|
}, {
|
|
@@ -7709,7 +7834,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
7709
7834
|
]),
|
|
7710
7835
|
_: 1
|
|
7711
7836
|
}, 8, ["is-disabled", "is-read-only"]),
|
|
7712
|
-
hasPresets.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
7837
|
+
hasPresets.value ? (openBlock(), createBlock(unref(_sfc_main$22), {
|
|
7713
7838
|
key: 1,
|
|
7714
7839
|
"is-disabled": finalDisabled.value || finalReadOnly.value,
|
|
7715
7840
|
"is-read-only": finalReadOnly.value
|
|
@@ -7728,7 +7853,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
7728
7853
|
_: 1
|
|
7729
7854
|
}, 8, ["aria-label"]),
|
|
7730
7855
|
__props.name ? (openBlock(), createElementBlock("input", {
|
|
7731
|
-
key:
|
|
7856
|
+
key: 4,
|
|
7732
7857
|
type: "hidden",
|
|
7733
7858
|
disabled: finalDisabled.value,
|
|
7734
7859
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
@@ -7751,7 +7876,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
7751
7876
|
const _hoisted_1$Q = ["data-disabled", "data-readonly", "data-invalid"];
|
|
7752
7877
|
const _hoisted_2$D = ["id", "value", "placeholder", "disabled", "readonly", "aria-invalid", "aria-describedby", "aria-required"];
|
|
7753
7878
|
const _hoisted_3$x = ["disabled", "form", "name", "value"];
|
|
7754
|
-
const _hoisted_4$
|
|
7879
|
+
const _hoisted_4$s = ["form"];
|
|
7755
7880
|
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
7756
7881
|
...{ name: "TagsInput", inheritAttrs: false },
|
|
7757
7882
|
__name: "TagsInput",
|
|
@@ -7903,7 +8028,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
7903
8028
|
onClick: onContainerClick
|
|
7904
8029
|
}, [
|
|
7905
8030
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(tags), (t, i) => {
|
|
7906
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8031
|
+
return openBlock(), createBlock(_sfc_main$2i, mergeProps({
|
|
7907
8032
|
key: `${t}-${i}`,
|
|
7908
8033
|
variant: __props.tagVariant,
|
|
7909
8034
|
"data-pending-delete": isPendingDelete(i) ? "" : void 0,
|
|
@@ -7948,18 +8073,17 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
7948
8073
|
type: "hidden",
|
|
7949
8074
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
7950
8075
|
"aria-hidden": "true"
|
|
7951
|
-
}, null, 8, _hoisted_4$
|
|
8076
|
+
}, null, 8, _hoisted_4$s)
|
|
7952
8077
|
], 10, _hoisted_1$Q);
|
|
7953
8078
|
};
|
|
7954
8079
|
}
|
|
7955
8080
|
});
|
|
7956
|
-
const _hoisted_1$P = ["tabindex", "aria-disabled", "aria-describedby", "data-drag-state", "data-invalid"];
|
|
7957
|
-
const _hoisted_2$C = {
|
|
7958
|
-
const _hoisted_3$w = {
|
|
8081
|
+
const _hoisted_1$P = ["tabindex", "aria-disabled", "aria-describedby", "data-readonly", "data-drag-state", "data-invalid"];
|
|
8082
|
+
const _hoisted_2$C = {
|
|
7959
8083
|
key: 0,
|
|
7960
8084
|
class: "text-xs"
|
|
7961
8085
|
};
|
|
7962
|
-
const
|
|
8086
|
+
const _hoisted_3$w = ["id", "accept", "multiple", "disabled", "aria-invalid", "aria-describedby", "aria-required", "name"];
|
|
7963
8087
|
const FileRejectionReason = {
|
|
7964
8088
|
/** Refers to a file whose MIME type / extension is not accepted. */
|
|
7965
8089
|
Type: "type",
|
|
@@ -8000,6 +8124,9 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
8000
8124
|
const finalDisabled = computed(() => props.isDisabled ?? props.disabled ?? ctx?.isDisabled);
|
|
8001
8125
|
const finalReadOnly = computed(() => props.isReadOnly ?? props.readonly ?? ctx?.isReadOnly);
|
|
8002
8126
|
const inactive = computed(() => finalDisabled.value || finalReadOnly.value);
|
|
8127
|
+
const readOnlyZone = computed(() => Boolean(finalReadOnly.value) && !finalDisabled.value);
|
|
8128
|
+
const readOnlyHint = useReadOnlyHint(readOnlyZone);
|
|
8129
|
+
const zoneDescribedBy = computed(() => readOnlyHint.describedBy(ctx?.describedBy));
|
|
8003
8130
|
watch(inactive, (value) => {
|
|
8004
8131
|
if (value) {
|
|
8005
8132
|
dragCounter.value = 0;
|
|
@@ -8108,9 +8235,12 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
8108
8235
|
"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring",
|
|
8109
8236
|
dragState.value === "over" && "border-primary bg-primary-soft/30 text-foreground",
|
|
8110
8237
|
showError.value && "border-destructive bg-destructive-soft/30 text-destructive-soft-foreground",
|
|
8111
|
-
finalDisabled.value && "cursor-not-allowed opacity-60 hover:border-input hover:bg-background"
|
|
8238
|
+
finalDisabled.value && "cursor-not-allowed opacity-60 hover:border-input hover:bg-background",
|
|
8239
|
+
ReadOnlyLook,
|
|
8240
|
+
!showError.value && "readonly:hover:border-input"
|
|
8112
8241
|
)
|
|
8113
8242
|
);
|
|
8243
|
+
const labelClass = computed(() => cn("font-medium", readOnlyZone.value ? "text-muted-foreground" : "text-foreground"));
|
|
8114
8244
|
const iconClass = computed(
|
|
8115
8245
|
() => cn(
|
|
8116
8246
|
"text-muted-foreground",
|
|
@@ -8126,9 +8256,10 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
8126
8256
|
}, [
|
|
8127
8257
|
createElementVNode("div", {
|
|
8128
8258
|
role: "button",
|
|
8129
|
-
tabindex:
|
|
8130
|
-
"aria-disabled":
|
|
8131
|
-
"aria-describedby":
|
|
8259
|
+
tabindex: finalDisabled.value ? -1 : 0,
|
|
8260
|
+
"aria-disabled": finalDisabled.value || void 0,
|
|
8261
|
+
"aria-describedby": zoneDescribedBy.value,
|
|
8262
|
+
"data-readonly": readOnlyZone.value || void 0,
|
|
8132
8263
|
"data-drag-state": dragState.value,
|
|
8133
8264
|
"data-invalid": showError.value || void 0,
|
|
8134
8265
|
class: normalizeClass(zoneClass.value),
|
|
@@ -8139,17 +8270,19 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
8139
8270
|
onDragleave: onDragLeave,
|
|
8140
8271
|
onDrop
|
|
8141
8272
|
}, [
|
|
8142
|
-
createVNode(unref(_sfc_main$
|
|
8273
|
+
createVNode(unref(_sfc_main$20), {
|
|
8143
8274
|
icon: unref(UploadIcon),
|
|
8144
8275
|
size: 28,
|
|
8145
8276
|
class: normalizeClass(iconClass.value)
|
|
8146
8277
|
}, null, 8, ["icon", "class"]),
|
|
8147
|
-
createElementVNode("div",
|
|
8278
|
+
createElementVNode("div", {
|
|
8279
|
+
class: normalizeClass(labelClass.value)
|
|
8280
|
+
}, [
|
|
8148
8281
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
8149
8282
|
createTextVNode(toDisplayString(unref(props).label), 1)
|
|
8150
8283
|
])
|
|
8151
|
-
]),
|
|
8152
|
-
hasHint.value ? (openBlock(), createElementBlock("div",
|
|
8284
|
+
], 2),
|
|
8285
|
+
hasHint.value ? (openBlock(), createElementBlock("div", _hoisted_2$C, [
|
|
8153
8286
|
renderSlot(_ctx.$slots, "hint", {}, () => [
|
|
8154
8287
|
createTextVNode(toDisplayString(__props.hint), 1)
|
|
8155
8288
|
])
|
|
@@ -8167,8 +8300,12 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
8167
8300
|
"aria-required": unref(ctx)?.isRequired || void 0,
|
|
8168
8301
|
name: __props.name,
|
|
8169
8302
|
class: "sr-only"
|
|
8170
|
-
}, passthroughAttrs.value, { onChange }), null, 16,
|
|
8303
|
+
}, passthroughAttrs.value, { onChange }), null, 16, _hoisted_3$w)
|
|
8171
8304
|
], 42, _hoisted_1$P),
|
|
8305
|
+
readOnlyZone.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
8306
|
+
key: 0,
|
|
8307
|
+
id: unref(readOnlyHint).hintId
|
|
8308
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
8172
8309
|
renderSlot(_ctx.$slots, "default")
|
|
8173
8310
|
], 2);
|
|
8174
8311
|
};
|
|
@@ -8353,7 +8490,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
8353
8490
|
onClick
|
|
8354
8491
|
}), [
|
|
8355
8492
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
8356
|
-
createVNode(unref(_sfc_main$
|
|
8493
|
+
createVNode(unref(_sfc_main$20), {
|
|
8357
8494
|
icon: unref(CloseIcon),
|
|
8358
8495
|
size: 14
|
|
8359
8496
|
}, null, 8, ["icon"])
|
|
@@ -8523,7 +8660,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
8523
8660
|
onClick
|
|
8524
8661
|
}), [
|
|
8525
8662
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
8526
|
-
createVNode(unref(_sfc_main$
|
|
8663
|
+
createVNode(unref(_sfc_main$20), {
|
|
8527
8664
|
icon: unref(CheckIcon),
|
|
8528
8665
|
size: 14
|
|
8529
8666
|
}, null, 8, ["icon"])
|
|
@@ -9132,7 +9269,7 @@ const _hoisted_3$s = ["aria-label"];
|
|
|
9132
9269
|
const _hoisted_4$p = ["aria-label", "disabled", "onClick"];
|
|
9133
9270
|
const _hoisted_5$n = ["aria-label"];
|
|
9134
9271
|
const _hoisted_6$k = ["aria-checked", "onClick"];
|
|
9135
|
-
const _hoisted_7$
|
|
9272
|
+
const _hoisted_7$e = {
|
|
9136
9273
|
class: "flex flex-1 divide-x divide-border",
|
|
9137
9274
|
style: { minHeight: 0 }
|
|
9138
9275
|
};
|
|
@@ -9338,7 +9475,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9338
9475
|
class: "inline-flex h-7 w-7 items-center justify-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 disabled:pointer-events-none disabled:opacity-50",
|
|
9339
9476
|
onClick: ($event) => applyAction(a)
|
|
9340
9477
|
}, [
|
|
9341
|
-
createVNode(unref(_sfc_main$
|
|
9478
|
+
createVNode(unref(_sfc_main$20), {
|
|
9342
9479
|
icon: a.icon,
|
|
9343
9480
|
size: 14
|
|
9344
9481
|
}, null, 8, ["icon"])
|
|
@@ -9362,7 +9499,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9362
9499
|
}), 64))
|
|
9363
9500
|
], 8, _hoisted_5$n)
|
|
9364
9501
|
]),
|
|
9365
|
-
createElementVNode("div", _hoisted_7$
|
|
9502
|
+
createElementVNode("div", _hoisted_7$e, [
|
|
9366
9503
|
showEdit.value ? (openBlock(), createElementBlock("textarea", mergeProps({
|
|
9367
9504
|
key: 0,
|
|
9368
9505
|
ref_key: "textarea",
|
|
@@ -9470,7 +9607,7 @@ const _hoisted_5$m = {
|
|
|
9470
9607
|
class: "text-muted-foreground"
|
|
9471
9608
|
};
|
|
9472
9609
|
const _hoisted_6$j = ["aria-label", "aria-invalid", "aria-describedby", "value"];
|
|
9473
|
-
const _hoisted_7$
|
|
9610
|
+
const _hoisted_7$d = ["aria-label"];
|
|
9474
9611
|
const _hoisted_8$9 = {
|
|
9475
9612
|
key: 0,
|
|
9476
9613
|
role: "group"
|
|
@@ -9574,7 +9711,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9574
9711
|
class: "inline-flex h-5 w-5 items-center justify-center text-muted-foreground hover:text-foreground",
|
|
9575
9712
|
onClick: _cache[0] || (_cache[0] = ($event) => open.value = !open.value)
|
|
9576
9713
|
}, [
|
|
9577
|
-
createVNode(unref(_sfc_main$
|
|
9714
|
+
createVNode(unref(_sfc_main$20), {
|
|
9578
9715
|
icon: unref(ChevronIcon),
|
|
9579
9716
|
size: 12,
|
|
9580
9717
|
class: normalizeClass(chevronClass.value)
|
|
@@ -9607,11 +9744,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9607
9744
|
class: "ml-auto opacity-0 transition-opacity group-hover:opacity-100 inline-flex h-5 w-5 items-center justify-center rounded text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
9608
9745
|
onClick: copyPath
|
|
9609
9746
|
}, [
|
|
9610
|
-
createVNode(unref(_sfc_main$
|
|
9747
|
+
createVNode(unref(_sfc_main$20), {
|
|
9611
9748
|
icon: unref(CopyIcon),
|
|
9612
9749
|
size: 11
|
|
9613
9750
|
}, null, 8, ["icon"])
|
|
9614
|
-
], 8, _hoisted_7$
|
|
9751
|
+
], 8, _hoisted_7$d)
|
|
9615
9752
|
], 4),
|
|
9616
9753
|
isObject.value && open.value ? (openBlock(), createElementBlock("ul", _hoisted_8$9, [
|
|
9617
9754
|
(openBlock(true), createElementBlock(Fragment, null, renderList(entries.value, ([k, v]) => {
|
|
@@ -9882,7 +10019,7 @@ const _hoisted_3$o = ["for"];
|
|
|
9882
10019
|
const _hoisted_4$m = ["id", "value", "disabled", "readonly"];
|
|
9883
10020
|
const _hoisted_5$k = ["aria-label", "value", "disabled"];
|
|
9884
10021
|
const _hoisted_6$h = { value: "DAILY" };
|
|
9885
|
-
const _hoisted_7$
|
|
10022
|
+
const _hoisted_7$c = { value: "WEEKLY" };
|
|
9886
10023
|
const _hoisted_8$8 = { value: "MONTHLY" };
|
|
9887
10024
|
const _hoisted_9$5 = { value: "YEARLY" };
|
|
9888
10025
|
const _hoisted_10$5 = {
|
|
@@ -10173,7 +10310,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
10173
10310
|
onChange: onFreqChange
|
|
10174
10311
|
}, [
|
|
10175
10312
|
createElementVNode("option", _hoisted_6$h, toDisplayString(unref(rule).interval > 1 ? "days" : "day"), 1),
|
|
10176
|
-
createElementVNode("option", _hoisted_7$
|
|
10313
|
+
createElementVNode("option", _hoisted_7$c, toDisplayString(unref(rule).interval > 1 ? "weeks" : "week"), 1),
|
|
10177
10314
|
createElementVNode("option", _hoisted_8$8, toDisplayString(unref(rule).interval > 1 ? "months" : "month"), 1),
|
|
10178
10315
|
createElementVNode("option", _hoisted_9$5, toDisplayString(unref(rule).interval > 1 ? "years" : "year"), 1)
|
|
10179
10316
|
], 42, _hoisted_5$k)
|
|
@@ -10326,7 +10463,7 @@ const _hoisted_6$g = {
|
|
|
10326
10463
|
"aria-hidden": "true",
|
|
10327
10464
|
class: "absolute inset-0 grid place-items-center text-[10px] font-medium tabular-nums text-foreground"
|
|
10328
10465
|
};
|
|
10329
|
-
const _hoisted_7$
|
|
10466
|
+
const _hoisted_7$b = ["disabled", "form", "name", "value"];
|
|
10330
10467
|
const _hoisted_8$7 = ["form"];
|
|
10331
10468
|
const KnobInputTone = {
|
|
10332
10469
|
/** Refers to the primary brand accent. */
|
|
@@ -10562,7 +10699,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
10562
10699
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
10563
10700
|
name: __props.name,
|
|
10564
10701
|
value: unref(current)
|
|
10565
|
-
}, null, 8, _hoisted_7$
|
|
10702
|
+
}, null, 8, _hoisted_7$b)) : createCommentVNode("", true),
|
|
10566
10703
|
createElementVNode("input", {
|
|
10567
10704
|
ref_key: "formResetAnchor",
|
|
10568
10705
|
ref: formResetAnchor,
|
|
@@ -10574,7 +10711,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
10574
10711
|
};
|
|
10575
10712
|
}
|
|
10576
10713
|
});
|
|
10577
|
-
const _hoisted_1$y = ["id", "aria-pressed", "aria-invalid", "aria-labelledby", "aria-describedby", "disabled"];
|
|
10714
|
+
const _hoisted_1$y = ["id", "aria-pressed", "aria-invalid", "aria-labelledby", "aria-describedby", "disabled", "data-readonly"];
|
|
10578
10715
|
const _hoisted_2$r = {
|
|
10579
10716
|
key: 0,
|
|
10580
10717
|
class: "text-xs text-muted-foreground"
|
|
@@ -10592,7 +10729,7 @@ const _hoisted_5$i = {
|
|
|
10592
10729
|
"aria-hidden": "true"
|
|
10593
10730
|
};
|
|
10594
10731
|
const _hoisted_6$f = ["form"];
|
|
10595
|
-
const _hoisted_7$
|
|
10732
|
+
const _hoisted_7$a = ["disabled", "form", "name", "value"];
|
|
10596
10733
|
const IsMac = typeof navigator !== "undefined" && navigator.platform?.toLowerCase().includes("mac");
|
|
10597
10734
|
const ModifierNames = {
|
|
10598
10735
|
Control: "Ctrl",
|
|
@@ -10636,6 +10773,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
10636
10773
|
const finalDisabled = computed(() => props.isDisabled ?? props.disabled ?? field?.isDisabled);
|
|
10637
10774
|
const finalReadOnly = computed(() => props.isReadOnly ?? props.readonly ?? field?.isReadOnly);
|
|
10638
10775
|
const inactive = computed(() => finalDisabled.value || finalReadOnly.value);
|
|
10776
|
+
const readOnlyButton = computed(() => Boolean(finalReadOnly.value) && !finalDisabled.value);
|
|
10777
|
+
const readOnlyHint = useReadOnlyHint(readOnlyButton);
|
|
10639
10778
|
const controlled = useControlled({
|
|
10640
10779
|
controlled: () => props.modelValue,
|
|
10641
10780
|
default: () => props.defaultValue ?? [],
|
|
@@ -10711,7 +10850,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
10711
10850
|
}
|
|
10712
10851
|
const buttonId = computed(() => props.id ?? field?.id);
|
|
10713
10852
|
const labelledBy = computed(() => ariaLabelledBy.value ?? (ariaLabel.value ? void 0 : field?.labelledBy));
|
|
10714
|
-
const describedBy = computed(() => ariaDescribedBy.value ?? field?.describedBy);
|
|
10853
|
+
const describedBy = computed(() => readOnlyHint.describedBy(ariaDescribedBy.value ?? field?.describedBy));
|
|
10715
10854
|
const hiddenValue = computed(() => keys.value.join("+"));
|
|
10716
10855
|
const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.LabelledBy, AriaAttribute.DescribedBy]);
|
|
10717
10856
|
const passthroughAttrs = computed(
|
|
@@ -10720,6 +10859,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
10720
10859
|
const buttonClass = computed(
|
|
10721
10860
|
() => cn(
|
|
10722
10861
|
"inline-flex h-9 items-center gap-2 rounded-md border border-input bg-background px-3 text-sm transition-colors hover:bg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60",
|
|
10862
|
+
ReadOnlyLook,
|
|
10863
|
+
"readonly:hover:border-input",
|
|
10723
10864
|
recording.value && "border-primary bg-primary-soft text-primary-soft-foreground",
|
|
10724
10865
|
attrs.class
|
|
10725
10866
|
)
|
|
@@ -10741,7 +10882,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
10741
10882
|
"aria-invalid": unref(field)?.isInvalid || void 0,
|
|
10742
10883
|
"aria-labelledby": labelledBy.value,
|
|
10743
10884
|
"aria-describedby": describedBy.value,
|
|
10744
|
-
disabled:
|
|
10885
|
+
disabled: finalDisabled.value,
|
|
10886
|
+
"data-readonly": readOnlyButton.value || void 0,
|
|
10745
10887
|
class: buttonClass.value
|
|
10746
10888
|
}, passthroughAttrs.value, {
|
|
10747
10889
|
onClick: startRecord,
|
|
@@ -10759,7 +10901,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
10759
10901
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(keys), (k, i) => {
|
|
10760
10902
|
return openBlock(), createElementBlock(Fragment, { key: k }, [
|
|
10761
10903
|
i > 0 ? (openBlock(), createElementBlock("span", _hoisted_5$i, "+")) : createCommentVNode("", true),
|
|
10762
|
-
createVNode(_sfc_main$
|
|
10904
|
+
createVNode(_sfc_main$2j, null, {
|
|
10763
10905
|
default: withCtx(() => [
|
|
10764
10906
|
createTextVNode(toDisplayString(modifierLabel(k)), 1)
|
|
10765
10907
|
]),
|
|
@@ -10776,27 +10918,32 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
10776
10918
|
"aria-hidden": "true"
|
|
10777
10919
|
}, null, 8, _hoisted_6$f)
|
|
10778
10920
|
], 16, _hoisted_1$y)),
|
|
10779
|
-
|
|
10921
|
+
readOnlyButton.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
10780
10922
|
key: 0,
|
|
10923
|
+
id: unref(readOnlyHint).hintId
|
|
10924
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
10925
|
+
__props.name ? (openBlock(), createElementBlock("input", {
|
|
10926
|
+
key: 1,
|
|
10781
10927
|
type: "hidden",
|
|
10782
10928
|
disabled: finalDisabled.value,
|
|
10783
10929
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
10784
10930
|
name: __props.name,
|
|
10785
10931
|
value: hiddenValue.value
|
|
10786
|
-
}, null, 8, _hoisted_7$
|
|
10932
|
+
}, null, 8, _hoisted_7$a)) : createCommentVNode("", true)
|
|
10787
10933
|
], 64);
|
|
10788
10934
|
};
|
|
10789
10935
|
}
|
|
10790
10936
|
});
|
|
10791
|
-
const _hoisted_1$x = ["
|
|
10792
|
-
const _hoisted_2$q = ["
|
|
10793
|
-
const _hoisted_3$l = ["
|
|
10794
|
-
const _hoisted_4$j =
|
|
10937
|
+
const _hoisted_1$x = ["data-readonly"];
|
|
10938
|
+
const _hoisted_2$q = ["value", "placeholder", "disabled"];
|
|
10939
|
+
const _hoisted_3$l = ["id", "aria-label", "aria-labelledby", "aria-describedby"];
|
|
10940
|
+
const _hoisted_4$j = ["aria-pressed", "aria-label", "disabled", "onClick"];
|
|
10941
|
+
const _hoisted_5$h = {
|
|
10795
10942
|
key: 0,
|
|
10796
10943
|
class: "col-span-full px-2 py-6 text-center text-xs text-muted-foreground"
|
|
10797
10944
|
};
|
|
10798
|
-
const
|
|
10799
|
-
const
|
|
10945
|
+
const _hoisted_6$e = ["disabled", "form", "name", "value"];
|
|
10946
|
+
const _hoisted_7$9 = ["form"];
|
|
10800
10947
|
const BuiltInIcons = {
|
|
10801
10948
|
bell: Bell,
|
|
10802
10949
|
bookmark: Bookmark,
|
|
@@ -10864,6 +11011,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
10864
11011
|
iconButtonSize: { default: 36 },
|
|
10865
11012
|
placeholder: {},
|
|
10866
11013
|
isDisabled: { type: Boolean, default: void 0 },
|
|
11014
|
+
isReadOnly: { type: Boolean, default: void 0 },
|
|
10867
11015
|
name: {},
|
|
10868
11016
|
id: {}
|
|
10869
11017
|
},
|
|
@@ -10876,7 +11024,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
10876
11024
|
const el = useTemplateRef("el");
|
|
10877
11025
|
const field = useFormControl();
|
|
10878
11026
|
const finalDisabled = computed(() => props.isDisabled ?? field?.isDisabled);
|
|
11027
|
+
const finalReadOnly = computed(() => props.isReadOnly ?? field?.isReadOnly ?? false);
|
|
10879
11028
|
const labelledBy = computed(() => field?.labelledBy);
|
|
11029
|
+
const readOnlyGrid = computed(() => finalReadOnly.value && !finalDisabled.value);
|
|
11030
|
+
const readOnlyHint = useReadOnlyHint(readOnlyGrid);
|
|
11031
|
+
const describedBy = computed(() => readOnlyHint.describedBy(field?.describedBy));
|
|
10880
11032
|
const controlled = useControlled({
|
|
10881
11033
|
controlled: () => props.modelValue,
|
|
10882
11034
|
default: () => props.defaultValue ?? "",
|
|
@@ -10885,6 +11037,10 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
10885
11037
|
}
|
|
10886
11038
|
});
|
|
10887
11039
|
const selected = controlled.value;
|
|
11040
|
+
function pick(key) {
|
|
11041
|
+
if (finalDisabled.value || finalReadOnly.value) return;
|
|
11042
|
+
controlled.setValue(key);
|
|
11043
|
+
}
|
|
10888
11044
|
const query = ref("");
|
|
10889
11045
|
const filtered = computed(() => {
|
|
10890
11046
|
const entries = Object.entries(props.icons);
|
|
@@ -10898,7 +11054,10 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
10898
11054
|
function buttonClass(key) {
|
|
10899
11055
|
return cn(
|
|
10900
11056
|
"inline-flex items-center justify-center rounded-md border text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring",
|
|
10901
|
-
selected.value === key ? "border-primary bg-primary text-primary-foreground hover:bg-primary" : "border-transparent"
|
|
11057
|
+
selected.value === key ? "border-primary bg-primary text-primary-foreground hover:bg-primary" : "border-transparent",
|
|
11058
|
+
readOnlyGrid.value && "cursor-default hover:bg-transparent hover:text-muted-foreground",
|
|
11059
|
+
readOnlyGrid.value && selected.value === key && "hover:bg-primary hover:text-primary-foreground",
|
|
11060
|
+
readOnlyGrid.value && "focus-visible:ring-1 focus-visible:ring-muted-foreground"
|
|
10902
11061
|
);
|
|
10903
11062
|
}
|
|
10904
11063
|
const gridStyle = computed(() => ({
|
|
@@ -10917,6 +11076,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
10917
11076
|
const panelClass = computed(
|
|
10918
11077
|
() => cn(
|
|
10919
11078
|
"flex flex-col gap-2 rounded-md border border-border bg-card p-3 text-card-foreground shadow-sm",
|
|
11079
|
+
"readonly:bg-muted readonly:text-muted-foreground",
|
|
10920
11080
|
attrs.class
|
|
10921
11081
|
)
|
|
10922
11082
|
);
|
|
@@ -10932,6 +11092,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
10932
11092
|
key: unref(formResetRevision),
|
|
10933
11093
|
ref_key: "el",
|
|
10934
11094
|
ref: el,
|
|
11095
|
+
"data-readonly": readOnlyGrid.value || void 0,
|
|
10935
11096
|
class: panelClass.value
|
|
10936
11097
|
}, passthroughAttrs.value), [
|
|
10937
11098
|
createElementVNode("input", {
|
|
@@ -10941,13 +11102,13 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
10941
11102
|
disabled: finalDisabled.value,
|
|
10942
11103
|
class: normalizeClass(unref(searchClass)),
|
|
10943
11104
|
onInput: onQueryInput
|
|
10944
|
-
}, null, 42,
|
|
11105
|
+
}, null, 42, _hoisted_2$q),
|
|
10945
11106
|
createElementVNode("div", {
|
|
10946
11107
|
role: "group",
|
|
10947
11108
|
id: gridId.value,
|
|
10948
11109
|
"aria-label": labelledBy.value ? void 0 : unref(locale).t("IconPicker.icons", void 0, "Icons"),
|
|
10949
11110
|
"aria-labelledby": labelledBy.value,
|
|
10950
|
-
"aria-describedby":
|
|
11111
|
+
"aria-describedby": describedBy.value,
|
|
10951
11112
|
class: "grid gap-1 overflow-y-auto",
|
|
10952
11113
|
style: normalizeStyle(gridStyle.value)
|
|
10953
11114
|
}, [
|
|
@@ -10960,37 +11121,41 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
10960
11121
|
disabled: finalDisabled.value,
|
|
10961
11122
|
style: normalizeStyle(buttonStyle.value),
|
|
10962
11123
|
class: normalizeClass(buttonClass(key)),
|
|
10963
|
-
onClick: ($event) =>
|
|
11124
|
+
onClick: ($event) => pick(key)
|
|
10964
11125
|
}, [
|
|
10965
|
-
createVNode(unref(_sfc_main$
|
|
11126
|
+
createVNode(unref(_sfc_main$20), {
|
|
10966
11127
|
icon: iconComp,
|
|
10967
11128
|
size: __props.size
|
|
10968
11129
|
}, null, 8, ["icon", "size"])
|
|
10969
|
-
], 14,
|
|
11130
|
+
], 14, _hoisted_4$j)
|
|
10970
11131
|
]);
|
|
10971
11132
|
}), 128)),
|
|
10972
|
-
filtered.value.length === 0 ? (openBlock(), createElementBlock("div",
|
|
10973
|
-
], 12,
|
|
10974
|
-
|
|
11133
|
+
filtered.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_5$h, toDisplayString(unref(locale).t("IconPicker.noIconsMatch", void 0, "No icons match.")), 1)) : createCommentVNode("", true)
|
|
11134
|
+
], 12, _hoisted_3$l),
|
|
11135
|
+
readOnlyGrid.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
10975
11136
|
key: 0,
|
|
11137
|
+
id: unref(readOnlyHint).hintId
|
|
11138
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
11139
|
+
__props.name ? (openBlock(), createElementBlock("input", {
|
|
11140
|
+
key: 1,
|
|
10976
11141
|
type: "hidden",
|
|
10977
11142
|
disabled: finalDisabled.value,
|
|
10978
11143
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
10979
11144
|
name: __props.name,
|
|
10980
11145
|
value: unref(selected)
|
|
10981
|
-
}, null, 8,
|
|
11146
|
+
}, null, 8, _hoisted_6$e)) : createCommentVNode("", true),
|
|
10982
11147
|
createElementVNode("input", {
|
|
10983
11148
|
ref_key: "formResetAnchor",
|
|
10984
11149
|
ref: formResetAnchor,
|
|
10985
11150
|
type: "hidden",
|
|
10986
11151
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
10987
11152
|
"aria-hidden": "true"
|
|
10988
|
-
}, null, 8,
|
|
10989
|
-
], 16);
|
|
11153
|
+
}, null, 8, _hoisted_7$9)
|
|
11154
|
+
], 16, _hoisted_1$x);
|
|
10990
11155
|
};
|
|
10991
11156
|
}
|
|
10992
11157
|
});
|
|
10993
|
-
const _hoisted_1$w = ["id", "disabled", "aria-invalid", "aria-labelledby", "aria-describedby", "aria-expanded"];
|
|
11158
|
+
const _hoisted_1$w = ["id", "disabled", "aria-invalid", "aria-labelledby", "aria-describedby", "data-readonly", "aria-expanded"];
|
|
10994
11159
|
const _hoisted_2$p = ["aria-label", "value", "placeholder"];
|
|
10995
11160
|
const _hoisted_3$k = ["aria-label"];
|
|
10996
11161
|
const _hoisted_4$i = ["aria-selected", "onClick"];
|
|
@@ -11026,6 +11191,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
11026
11191
|
placeholder: {},
|
|
11027
11192
|
previewText: {},
|
|
11028
11193
|
isDisabled: { type: Boolean, default: void 0 },
|
|
11194
|
+
isReadOnly: { type: Boolean, default: void 0 },
|
|
11029
11195
|
name: {},
|
|
11030
11196
|
id: {}
|
|
11031
11197
|
},
|
|
@@ -11040,6 +11206,10 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
11040
11206
|
const attrs = useAttrs();
|
|
11041
11207
|
const field = useFormControl();
|
|
11042
11208
|
const finalDisabled = computed(() => props.isDisabled ?? field?.isDisabled);
|
|
11209
|
+
const finalReadOnly = computed(() => props.isReadOnly ?? field?.isReadOnly ?? false);
|
|
11210
|
+
const readOnlyTrigger = computed(() => finalReadOnly.value && !finalDisabled.value);
|
|
11211
|
+
const readOnlyHint = useReadOnlyHint(readOnlyTrigger);
|
|
11212
|
+
const describedBy = computed(() => readOnlyHint.describedBy(field?.describedBy));
|
|
11043
11213
|
const controlled = useControlled({
|
|
11044
11214
|
controlled: () => props.modelValue,
|
|
11045
11215
|
default: () => props.defaultValue ?? props.fonts[0]?.family ?? "",
|
|
@@ -11057,12 +11227,17 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
11057
11227
|
});
|
|
11058
11228
|
const current = computed(() => props.fonts.find((f) => f.family === family.value));
|
|
11059
11229
|
function onOpenChange(next) {
|
|
11230
|
+
if (next && finalReadOnly.value) return;
|
|
11060
11231
|
open.value = next;
|
|
11061
11232
|
}
|
|
11233
|
+
function onTriggerClick(event) {
|
|
11234
|
+
if (finalReadOnly.value) event.preventDefault();
|
|
11235
|
+
}
|
|
11062
11236
|
function onQueryInput(event) {
|
|
11063
11237
|
query.value = event.target.value;
|
|
11064
11238
|
}
|
|
11065
11239
|
function select(option) {
|
|
11240
|
+
if (finalDisabled.value || finalReadOnly.value) return;
|
|
11066
11241
|
controlled.setValue(option.family);
|
|
11067
11242
|
open.value = false;
|
|
11068
11243
|
}
|
|
@@ -11105,6 +11280,11 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
11105
11280
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
11106
11281
|
);
|
|
11107
11282
|
const wrapperClass = computed(() => cn("inline-block", attrs.class));
|
|
11283
|
+
const triggerClass = cn(
|
|
11284
|
+
"inline-flex h-10 min-w-[14rem] items-center justify-between gap-2 rounded-md border border-input bg-background px-3 text-sm text-foreground transition-colors hover:bg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60",
|
|
11285
|
+
ReadOnlyLook,
|
|
11286
|
+
"readonly:hover:border-input"
|
|
11287
|
+
);
|
|
11108
11288
|
const ChevronDownIcon = ChevronDown;
|
|
11109
11289
|
const formResetAnchor = useTemplateRef("formResetAnchor");
|
|
11110
11290
|
const formResetRevision = useNativeFormReset(formResetAnchor, () => {
|
|
@@ -11116,12 +11296,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
11116
11296
|
key: unref(formResetRevision),
|
|
11117
11297
|
class: wrapperClass.value
|
|
11118
11298
|
}, passthroughAttrs.value), [
|
|
11119
|
-
createVNode(unref(_sfc_main$
|
|
11299
|
+
createVNode(unref(_sfc_main$29), {
|
|
11120
11300
|
open: open.value,
|
|
11121
11301
|
"onUpdate:open": onOpenChange
|
|
11122
11302
|
}, {
|
|
11123
11303
|
default: withCtx(() => [
|
|
11124
|
-
createVNode(unref(_sfc_main$
|
|
11304
|
+
createVNode(unref(_sfc_main$2b), { "as-child": "" }, {
|
|
11125
11305
|
default: withCtx(() => [
|
|
11126
11306
|
createElementVNode("button", {
|
|
11127
11307
|
type: "button",
|
|
@@ -11129,25 +11309,31 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
11129
11309
|
disabled: finalDisabled.value,
|
|
11130
11310
|
"aria-invalid": unref(field)?.isInvalid || void 0,
|
|
11131
11311
|
"aria-labelledby": unref(field)?.labelledBy,
|
|
11132
|
-
"aria-describedby":
|
|
11312
|
+
"aria-describedby": describedBy.value,
|
|
11313
|
+
"data-readonly": readOnlyTrigger.value || void 0,
|
|
11133
11314
|
"aria-haspopup": "listbox",
|
|
11134
11315
|
"aria-expanded": open.value,
|
|
11135
|
-
class:
|
|
11316
|
+
class: normalizeClass(unref(triggerClass)),
|
|
11317
|
+
onClick: onTriggerClick
|
|
11136
11318
|
}, [
|
|
11137
11319
|
createElementVNode("span", {
|
|
11138
11320
|
style: normalizeStyle({ fontFamily: unref(family) }),
|
|
11139
|
-
class: "truncate
|
|
11321
|
+
class: "truncate"
|
|
11140
11322
|
}, toDisplayString(current.value?.name ?? __props.placeholder), 5),
|
|
11141
|
-
createVNode(unref(_sfc_main$
|
|
11323
|
+
createVNode(unref(_sfc_main$20), {
|
|
11142
11324
|
icon: unref(ChevronDownIcon),
|
|
11143
11325
|
size: 14,
|
|
11144
11326
|
class: "text-muted-foreground"
|
|
11145
11327
|
}, null, 8, ["icon"])
|
|
11146
|
-
],
|
|
11328
|
+
], 10, _hoisted_1$w)
|
|
11147
11329
|
]),
|
|
11148
11330
|
_: 1
|
|
11149
11331
|
}),
|
|
11150
|
-
|
|
11332
|
+
readOnlyTrigger.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
11333
|
+
key: 0,
|
|
11334
|
+
id: unref(readOnlyHint).hintId
|
|
11335
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
11336
|
+
createVNode(unref(_sfc_main$2c), { class: "w-[20rem] p-2" }, {
|
|
11151
11337
|
default: withCtx(() => [
|
|
11152
11338
|
createElementVNode("input", {
|
|
11153
11339
|
ref_key: "search",
|
|
@@ -11425,7 +11611,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
11425
11611
|
};
|
|
11426
11612
|
}
|
|
11427
11613
|
});
|
|
11428
|
-
const _hoisted_1$u = ["id", "aria-labelledby", "aria-describedby", "aria-invalid"];
|
|
11614
|
+
const _hoisted_1$u = ["id", "aria-labelledby", "aria-describedby", "aria-invalid", "data-readonly"];
|
|
11429
11615
|
const _hoisted_2$n = { class: "flex items-center gap-2 text-sm" };
|
|
11430
11616
|
const _hoisted_3$j = ["aria-label"];
|
|
11431
11617
|
const _hoisted_4$h = ["aria-checked", "disabled", "onClick"];
|
|
@@ -11433,11 +11619,11 @@ const _hoisted_5$f = {
|
|
|
11433
11619
|
key: 0,
|
|
11434
11620
|
class: "ml-auto flex items-center gap-2 text-xs text-muted-foreground"
|
|
11435
11621
|
};
|
|
11436
|
-
const _hoisted_6$c = ["value", "disabled"];
|
|
11622
|
+
const _hoisted_6$c = ["value", "disabled", "readonly"];
|
|
11437
11623
|
const _hoisted_7$7 = { class: "flex flex-col gap-2" };
|
|
11438
|
-
const _hoisted_8$5 = ["aria-label", "value", "disabled", "onInput"];
|
|
11439
|
-
const _hoisted_9$4 = ["aria-label", "value", "disabled", "onInput"];
|
|
11440
|
-
const _hoisted_10$4 = ["aria-label", "value", "disabled", "onInput"];
|
|
11624
|
+
const _hoisted_8$5 = ["aria-label", "value", "disabled", "data-readonly", "onInput"];
|
|
11625
|
+
const _hoisted_9$4 = ["aria-label", "value", "disabled", "readonly", "onInput"];
|
|
11626
|
+
const _hoisted_10$4 = ["aria-label", "value", "disabled", "readonly", "onInput"];
|
|
11441
11627
|
const _hoisted_11$4 = ["aria-label", "disabled", "onClick"];
|
|
11442
11628
|
const _hoisted_12$4 = ["disabled"];
|
|
11443
11629
|
const _hoisted_13$4 = { class: "block break-all rounded-md bg-muted/40 px-2 py-1.5 text-[10px] text-muted-foreground" };
|
|
@@ -11487,6 +11673,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
11487
11673
|
const isDisabled = computed(() => props.isDisabled ?? ctx?.isDisabled);
|
|
11488
11674
|
const isReadOnly = computed(() => props.isReadOnly ?? ctx?.isReadOnly);
|
|
11489
11675
|
const inactive = computed(() => isDisabled.value || isReadOnly.value);
|
|
11676
|
+
const readOnlyGroup = computed(() => Boolean(isReadOnly.value) && !isDisabled.value);
|
|
11677
|
+
const readOnlyHint = useReadOnlyHint(readOnlyGroup);
|
|
11678
|
+
const describedBy = computed(() => readOnlyHint.describedBy(ctx?.describedBy));
|
|
11490
11679
|
const controlled = useControlled({
|
|
11491
11680
|
controlled: () => props.modelValue,
|
|
11492
11681
|
default: () => props.defaultValue ?? DefaultGradient,
|
|
@@ -11539,9 +11728,13 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
11539
11728
|
function kindClass(kind) {
|
|
11540
11729
|
return cn(
|
|
11541
11730
|
"inline-flex h-6 items-center rounded px-2 text-xs font-medium transition-colors",
|
|
11542
|
-
gradient.value.kind === kind ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:text-foreground"
|
|
11731
|
+
gradient.value.kind === kind ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:text-foreground",
|
|
11732
|
+
readOnlyGroup.value && "cursor-default"
|
|
11543
11733
|
);
|
|
11544
11734
|
}
|
|
11735
|
+
function keepColorClosed(event) {
|
|
11736
|
+
if (isReadOnly.value) event.preventDefault();
|
|
11737
|
+
}
|
|
11545
11738
|
const rootId = computed(() => props.id ?? ctx?.id);
|
|
11546
11739
|
const OwnedAttributes = /* @__PURE__ */ new Set(["class"]);
|
|
11547
11740
|
const passthroughAttrs = computed(
|
|
@@ -11551,6 +11744,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
11551
11744
|
() => cn(
|
|
11552
11745
|
"flex flex-col gap-3 rounded-md border border-border bg-card p-3 text-card-foreground shadow-sm",
|
|
11553
11746
|
isDisabled.value && "opacity-60",
|
|
11747
|
+
"readonly:bg-muted readonly:text-muted-foreground",
|
|
11554
11748
|
attrs.class
|
|
11555
11749
|
)
|
|
11556
11750
|
);
|
|
@@ -11573,8 +11767,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
11573
11767
|
role: "group",
|
|
11574
11768
|
id: rootId.value,
|
|
11575
11769
|
"aria-labelledby": unref(ctx)?.labelledBy,
|
|
11576
|
-
"aria-describedby":
|
|
11770
|
+
"aria-describedby": describedBy.value,
|
|
11577
11771
|
"aria-invalid": unref(ctx)?.isInvalid || void 0,
|
|
11772
|
+
"data-readonly": readOnlyGroup.value || void 0,
|
|
11578
11773
|
class: rootClass.value
|
|
11579
11774
|
}, passthroughAttrs.value), [
|
|
11580
11775
|
createElementVNode("div", _hoisted_2$n, [
|
|
@@ -11589,7 +11784,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
11589
11784
|
type: "button",
|
|
11590
11785
|
role: "radio",
|
|
11591
11786
|
"aria-checked": unref(gradient).kind === k,
|
|
11592
|
-
disabled:
|
|
11787
|
+
disabled: isDisabled.value,
|
|
11593
11788
|
class: normalizeClass(kindClass(k)),
|
|
11594
11789
|
onClick: ($event) => update({ kind: k })
|
|
11595
11790
|
}, toDisplayString(k), 11, _hoisted_4$h);
|
|
@@ -11602,7 +11797,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
11602
11797
|
min: 0,
|
|
11603
11798
|
max: 360,
|
|
11604
11799
|
value: unref(gradient).angle,
|
|
11605
|
-
disabled:
|
|
11800
|
+
disabled: isDisabled.value,
|
|
11801
|
+
readonly: isReadOnly.value,
|
|
11606
11802
|
class: normalizeClass(unref(angleInputClass)),
|
|
11607
11803
|
onInput: onAngleInput
|
|
11608
11804
|
}, null, 42, _hoisted_6$c),
|
|
@@ -11624,15 +11820,18 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
11624
11820
|
type: "color",
|
|
11625
11821
|
"aria-label": unref(locale).t("GradientPicker.stopColor", void 0, "Stop color"),
|
|
11626
11822
|
value: stop.color,
|
|
11627
|
-
disabled:
|
|
11628
|
-
class: "h-7 w-10 cursor-pointer rounded-sm border border-input bg-background",
|
|
11823
|
+
disabled: isDisabled.value,
|
|
11824
|
+
class: "h-7 w-10 cursor-pointer rounded-sm border border-input bg-background readonly:cursor-default",
|
|
11825
|
+
"data-readonly": readOnlyGroup.value || void 0,
|
|
11826
|
+
onClick: keepColorClosed,
|
|
11629
11827
|
onInput: ($event) => onStopColorInput(i, $event)
|
|
11630
11828
|
}, null, 40, _hoisted_8$5),
|
|
11631
11829
|
createElementVNode("input", {
|
|
11632
11830
|
type: "text",
|
|
11633
11831
|
"aria-label": unref(locale).t("GradientPicker.stopColorHex", void 0, "Stop color hex"),
|
|
11634
11832
|
value: stop.color,
|
|
11635
|
-
disabled:
|
|
11833
|
+
disabled: isDisabled.value,
|
|
11834
|
+
readonly: isReadOnly.value,
|
|
11636
11835
|
class: normalizeClass(unref(hexInputClass)),
|
|
11637
11836
|
onInput: ($event) => onStopColorInput(i, $event)
|
|
11638
11837
|
}, null, 42, _hoisted_9$4),
|
|
@@ -11642,7 +11841,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
11642
11841
|
min: 0,
|
|
11643
11842
|
max: 100,
|
|
11644
11843
|
value: stop.position,
|
|
11645
|
-
disabled:
|
|
11844
|
+
disabled: isDisabled.value,
|
|
11845
|
+
readonly: isReadOnly.value,
|
|
11646
11846
|
class: normalizeClass(unref(positionInputClass)),
|
|
11647
11847
|
onInput: ($event) => onStopPositionInput(i, $event)
|
|
11648
11848
|
}, null, 42, _hoisted_10$4),
|
|
@@ -11654,7 +11854,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
11654
11854
|
class: "inline-flex h-7 w-7 items-center justify-center rounded text-destructive-soft-foreground hover:bg-destructive-soft disabled:pointer-events-none disabled:opacity-40",
|
|
11655
11855
|
onClick: ($event) => removeStop(i)
|
|
11656
11856
|
}, [
|
|
11657
|
-
createVNode(unref(_sfc_main$
|
|
11857
|
+
createVNode(unref(_sfc_main$20), {
|
|
11658
11858
|
icon: unref(TrashIcon),
|
|
11659
11859
|
size: 12
|
|
11660
11860
|
}, null, 8, ["icon"])
|
|
@@ -11668,15 +11868,19 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
11668
11868
|
class: "inline-flex h-8 w-full items-center justify-center gap-1 rounded-md border border-dashed border-border text-xs text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
11669
11869
|
onClick: addStop
|
|
11670
11870
|
}, [
|
|
11671
|
-
createVNode(unref(_sfc_main$
|
|
11871
|
+
createVNode(unref(_sfc_main$20), {
|
|
11672
11872
|
icon: unref(PlusIcon),
|
|
11673
11873
|
size: 12
|
|
11674
11874
|
}, null, 8, ["icon"]),
|
|
11675
11875
|
createTextVNode(" " + toDisplayString(unref(locale).t("GradientPicker.addStop", void 0, "Add stop")), 1)
|
|
11676
11876
|
], 8, _hoisted_12$4),
|
|
11877
|
+
readOnlyGroup.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
11878
|
+
key: 0,
|
|
11879
|
+
id: unref(readOnlyHint).hintId
|
|
11880
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
11677
11881
|
createElementVNode("code", _hoisted_13$4, toDisplayString(css.value), 1),
|
|
11678
11882
|
__props.name ? (openBlock(), createElementBlock("input", {
|
|
11679
|
-
key:
|
|
11883
|
+
key: 1,
|
|
11680
11884
|
type: "hidden",
|
|
11681
11885
|
disabled: isDisabled.value,
|
|
11682
11886
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
@@ -12714,14 +12918,14 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12714
12918
|
});
|
|
12715
12919
|
const locale = useLocale();
|
|
12716
12920
|
return (_ctx, _cache) => {
|
|
12717
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
12921
|
+
return openBlock(), createBlock(unref(_sfc_main$2k), {
|
|
12718
12922
|
key: unref(formResetRevision),
|
|
12719
12923
|
gap: "3"
|
|
12720
12924
|
}, {
|
|
12721
12925
|
default: withCtx(() => [
|
|
12722
12926
|
createElementVNode("div", _hoisted_1$p, [
|
|
12723
12927
|
createElementVNode("span", _hoisted_2$j, toDisplayString(unref(props).label), 1),
|
|
12724
|
-
createVNode(unref(_sfc_main$
|
|
12928
|
+
createVNode(unref(_sfc_main$2l), {
|
|
12725
12929
|
variant: isNoneSelected.value ? void 0 : unref(ButtonVariant).Outline,
|
|
12726
12930
|
tone: isNoneSelected.value ? unref(ColorTone).Primary : unref(ColorTone).Neutral,
|
|
12727
12931
|
size: unref(SizePreset).Sm,
|
|
@@ -12734,14 +12938,14 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
12734
12938
|
_: 1
|
|
12735
12939
|
}, 8, ["variant", "tone", "size", "aria-pressed"])
|
|
12736
12940
|
]),
|
|
12737
|
-
createVNode(_sfc_main$
|
|
12941
|
+
createVNode(_sfc_main$1V, {
|
|
12738
12942
|
size: searchSize.value,
|
|
12739
12943
|
placeholder: unref(locale).t("EmojiPicker.searchEmoji", void 0, "Search emoji…"),
|
|
12740
12944
|
"model-value": unref(picker).searchKeyword.value,
|
|
12741
12945
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(picker).searchKeyword.value = $event),
|
|
12742
12946
|
onClear: _cache[2] || (_cache[2] = ($event) => unref(picker).searchKeyword.value = "")
|
|
12743
12947
|
}, null, 8, ["size", "placeholder", "model-value"]),
|
|
12744
|
-
createVNode(unref(_sfc_main$
|
|
12948
|
+
createVNode(unref(_sfc_main$2k), { gap: "2" }, {
|
|
12745
12949
|
default: withCtx(() => [
|
|
12746
12950
|
!unref(picker).showSearch.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
12747
12951
|
key: 0,
|
|
@@ -12793,7 +12997,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12793
12997
|
scrollThumbColor: {},
|
|
12794
12998
|
placement: { default: "bottom" },
|
|
12795
12999
|
open: { type: Boolean, default: void 0 },
|
|
12796
|
-
defaultOpen: { type: Boolean, default: false }
|
|
13000
|
+
defaultOpen: { type: Boolean, default: false },
|
|
13001
|
+
isReadOnly: { type: Boolean, default: void 0 }
|
|
12797
13002
|
},
|
|
12798
13003
|
emits: ["update:modelValue", "update:open"],
|
|
12799
13004
|
setup(__props, { emit: __emit }) {
|
|
@@ -12812,10 +13017,17 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12812
13017
|
const fieldId = computed(() => field?.id);
|
|
12813
13018
|
const fieldLabelledBy = computed(() => field?.labelledBy);
|
|
12814
13019
|
const fieldDescribedBy = computed(() => field?.describedBy);
|
|
13020
|
+
const finalReadOnly = computed(() => props.isReadOnly ?? field?.isReadOnly ?? false);
|
|
13021
|
+
const readOnlyTrigger = computed(() => finalReadOnly.value && !field?.isDisabled);
|
|
13022
|
+
const readOnlyHint = useReadOnlyHint(readOnlyTrigger);
|
|
13023
|
+
const describedBy = computed(() => readOnlyHint.describedBy(fieldDescribedBy.value));
|
|
13024
|
+
function onTriggerClick(event) {
|
|
13025
|
+
if (finalReadOnly.value) event.preventDefault();
|
|
13026
|
+
}
|
|
12815
13027
|
const fieldInvalid = computed(() => field?.isInvalid || void 0);
|
|
12816
13028
|
const triggerGlyph = computed(() => currentValue.value?.glyph ?? "🙂");
|
|
12817
13029
|
function onPick(entry) {
|
|
12818
|
-
if (field?.isDisabled ||
|
|
13030
|
+
if (field?.isDisabled || finalReadOnly.value) return;
|
|
12819
13031
|
emit("update:modelValue", entry);
|
|
12820
13032
|
if (entry !== null) openCtl.setValue(false);
|
|
12821
13033
|
}
|
|
@@ -12826,20 +13038,23 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12826
13038
|
});
|
|
12827
13039
|
const locale = useLocale();
|
|
12828
13040
|
return (_ctx, _cache) => {
|
|
12829
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
13041
|
+
return openBlock(), createBlock(unref(_sfc_main$29), {
|
|
12830
13042
|
key: unref(formResetRevision),
|
|
12831
13043
|
open: isOpenNow.value,
|
|
12832
13044
|
placement: __props.placement,
|
|
12833
13045
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => unref(openCtl).setValue($event))
|
|
12834
13046
|
}, {
|
|
12835
13047
|
default: withCtx(() => [
|
|
12836
|
-
createVNode(unref(_sfc_main$
|
|
13048
|
+
createVNode(unref(_sfc_main$2b), {
|
|
12837
13049
|
"as-child": "",
|
|
12838
|
-
disabled: unref(field)?.isDisabled
|
|
13050
|
+
disabled: unref(field)?.isDisabled,
|
|
13051
|
+
"data-readonly": readOnlyTrigger.value || void 0,
|
|
13052
|
+
"aria-describedby": unref(readOnlyHint).describedBy(),
|
|
13053
|
+
onClick: onTriggerClick
|
|
12839
13054
|
}, {
|
|
12840
13055
|
default: withCtx(() => [
|
|
12841
13056
|
renderSlot(_ctx.$slots, "trigger", {}, () => [
|
|
12842
|
-
createVNode(unref(_sfc_main$
|
|
13057
|
+
createVNode(unref(_sfc_main$2l), {
|
|
12843
13058
|
variant: unref(ButtonVariant).Ghost,
|
|
12844
13059
|
tone: unref(ColorTone).Neutral,
|
|
12845
13060
|
size: unref(SizePreset).Sm,
|
|
@@ -12847,8 +13062,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12847
13062
|
id: fieldId.value,
|
|
12848
13063
|
"aria-label": unref(locale).t("EmojiPickerPopover.chooseEmoji", void 0, "Choose emoji"),
|
|
12849
13064
|
"aria-labelledby": fieldLabelledBy.value,
|
|
12850
|
-
"aria-describedby":
|
|
12851
|
-
"aria-invalid": fieldInvalid.value
|
|
13065
|
+
"aria-describedby": describedBy.value,
|
|
13066
|
+
"aria-invalid": fieldInvalid.value,
|
|
13067
|
+
class: "readonly:cursor-default readonly:text-muted-foreground readonly:hover:bg-transparent"
|
|
12852
13068
|
}, {
|
|
12853
13069
|
default: withCtx(() => [
|
|
12854
13070
|
createTextVNode(toDisplayString(triggerGlyph.value), 1)
|
|
@@ -12858,15 +13074,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12858
13074
|
])
|
|
12859
13075
|
]),
|
|
12860
13076
|
_: 3
|
|
12861
|
-
}, 8, ["disabled"]),
|
|
12862
|
-
|
|
13077
|
+
}, 8, ["disabled", "data-readonly", "aria-describedby"]),
|
|
13078
|
+
readOnlyTrigger.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
13079
|
+
key: 0,
|
|
13080
|
+
id: unref(readOnlyHint).hintId
|
|
13081
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
13082
|
+
createVNode(unref(_sfc_main$2c), {
|
|
12863
13083
|
class: "w-80",
|
|
12864
13084
|
padding: "sm"
|
|
12865
13085
|
}, {
|
|
12866
13086
|
default: withCtx(() => [
|
|
12867
|
-
createVNode(unref(_sfc_main$
|
|
13087
|
+
createVNode(unref(_sfc_main$22), {
|
|
12868
13088
|
"is-disabled": unref(field)?.isDisabled,
|
|
12869
|
-
"is-read-only":
|
|
13089
|
+
"is-read-only": finalReadOnly.value
|
|
12870
13090
|
}, {
|
|
12871
13091
|
default: withCtx(() => [
|
|
12872
13092
|
createVNode(_sfc_main$y, {
|
|
@@ -13542,7 +13762,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
13542
13762
|
const root = useTemplateRef("root");
|
|
13543
13763
|
__expose({ el: computed(() => root.value?.el ?? null) });
|
|
13544
13764
|
return (_ctx, _cache) => {
|
|
13545
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
13765
|
+
return openBlock(), createBlock(unref(_sfc_main$27), mergeProps({
|
|
13546
13766
|
ref_key: "root",
|
|
13547
13767
|
ref: root,
|
|
13548
13768
|
disabled: finalDisabled.value,
|
|
@@ -13830,7 +14050,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
13830
14050
|
});
|
|
13831
14051
|
return (_ctx, _cache) => {
|
|
13832
14052
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
13833
|
-
(openBlock(), createBlock(_sfc_main$
|
|
14053
|
+
(openBlock(), createBlock(_sfc_main$2l, mergeProps({
|
|
13834
14054
|
key: unref(formResetRevision),
|
|
13835
14055
|
variant: unref(ButtonVariant).Ghost,
|
|
13836
14056
|
tone: __props.tone ?? void 0,
|
|
@@ -14731,7 +14951,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
14731
14951
|
class: "inline-flex h-7 w-7 items-center justify-center rounded text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
14732
14952
|
onClick: zoomIn
|
|
14733
14953
|
}, [
|
|
14734
|
-
createVNode(unref(_sfc_main$
|
|
14954
|
+
createVNode(unref(_sfc_main$20), {
|
|
14735
14955
|
icon: unref(Plus),
|
|
14736
14956
|
size: 14
|
|
14737
14957
|
}, null, 8, ["icon"])
|
|
@@ -14742,7 +14962,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
14742
14962
|
class: "inline-flex h-7 w-7 items-center justify-center rounded text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
14743
14963
|
onClick: zoomOut
|
|
14744
14964
|
}, [
|
|
14745
|
-
createVNode(unref(_sfc_main$
|
|
14965
|
+
createVNode(unref(_sfc_main$20), {
|
|
14746
14966
|
icon: unref(Minus),
|
|
14747
14967
|
size: 14
|
|
14748
14968
|
}, null, 8, ["icon"])
|
|
@@ -14753,7 +14973,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
14753
14973
|
class: "inline-flex h-7 w-7 items-center justify-center rounded text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
14754
14974
|
onClick: fitView
|
|
14755
14975
|
}, [
|
|
14756
|
-
createVNode(unref(_sfc_main$
|
|
14976
|
+
createVNode(unref(_sfc_main$20), {
|
|
14757
14977
|
icon: unref(Maximize),
|
|
14758
14978
|
size: 12
|
|
14759
14979
|
}, null, 8, ["icon"])
|
|
@@ -15324,7 +15544,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15324
15544
|
),
|
|
15325
15545
|
"data-fill": fillOf(mark) === 1 ? "full" : fillOf(mark) > 0 ? "partial" : "empty"
|
|
15326
15546
|
}, [
|
|
15327
|
-
createVNode(unref(_sfc_main$
|
|
15547
|
+
createVNode(unref(_sfc_main$20), {
|
|
15328
15548
|
icon: markIcon.value,
|
|
15329
15549
|
size: iconSize.value,
|
|
15330
15550
|
class: "text-muted-foreground/40"
|
|
@@ -15333,7 +15553,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15333
15553
|
class: "pointer-events-none absolute inset-y-0 start-0 overflow-hidden",
|
|
15334
15554
|
style: normalizeStyle({ width: `${fillOf(mark) * 100}%` })
|
|
15335
15555
|
}, [
|
|
15336
|
-
createVNode(unref(_sfc_main$
|
|
15556
|
+
createVNode(unref(_sfc_main$20), {
|
|
15337
15557
|
icon: markIcon.value,
|
|
15338
15558
|
size: iconSize.value,
|
|
15339
15559
|
class: normalizeClass(unref(cn)("fill-current", ToneClass[__props.tone] ?? ToneClass.warning))
|
|
@@ -16135,9 +16355,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
16135
16355
|
const ariaLabel = computed(() => attrs[AriaAttribute.Label]);
|
|
16136
16356
|
const triggerId = computed(() => props.id ?? field?.id);
|
|
16137
16357
|
const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
|
|
16138
|
-
const
|
|
16358
|
+
const readOnlyTrigger = computed(() => readOnly.value && !disabled.value);
|
|
16359
|
+
const readOnlyHint = useReadOnlyHint(readOnlyTrigger);
|
|
16360
|
+
const describedBy = computed(
|
|
16361
|
+
() => readOnlyHint.describedBy(attrs[AriaAttribute.DescribedBy] ?? field?.describedBy)
|
|
16362
|
+
);
|
|
16139
16363
|
const formId = computed(() => typeof attrs.form === "string" ? attrs.form : void 0);
|
|
16140
|
-
const OwnedAttributes = /* @__PURE__ */ new Set(["class", "form", AriaAttribute.Label]);
|
|
16364
|
+
const OwnedAttributes = /* @__PURE__ */ new Set(["class", "form", AriaAttribute.Label, AriaAttribute.DescribedBy]);
|
|
16141
16365
|
const passthroughAttrs = computed(
|
|
16142
16366
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
16143
16367
|
);
|
|
@@ -16158,7 +16382,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
16158
16382
|
controlled.reset();
|
|
16159
16383
|
});
|
|
16160
16384
|
return (_ctx, _cache) => {
|
|
16161
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
16385
|
+
return openBlock(), createBlock(unref(_sfc_main$29), {
|
|
16162
16386
|
key: unref(formResetRevision),
|
|
16163
16387
|
open: open.value,
|
|
16164
16388
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
@@ -16166,12 +16390,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
16166
16390
|
offset: 6
|
|
16167
16391
|
}, {
|
|
16168
16392
|
default: withCtx(() => [
|
|
16169
|
-
createVNode(unref(_sfc_main$
|
|
16393
|
+
createVNode(unref(_sfc_main$2b), mergeProps({
|
|
16170
16394
|
ref_key: "trigger",
|
|
16171
16395
|
ref: trigger,
|
|
16172
16396
|
id: triggerId.value,
|
|
16173
16397
|
disabled: disabled.value,
|
|
16174
|
-
"
|
|
16398
|
+
"data-readonly": readOnlyTrigger.value || void 0,
|
|
16175
16399
|
"aria-invalid": invalid.value || void 0,
|
|
16176
16400
|
"aria-label": ariaLabel.value,
|
|
16177
16401
|
"aria-labelledby": labelledBy.value,
|
|
@@ -16185,8 +16409,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
16185
16409
|
createVNode(unref(Calendar), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
16186
16410
|
]),
|
|
16187
16411
|
_: 1
|
|
16188
|
-
}, 16, ["id", "disabled", "
|
|
16189
|
-
|
|
16412
|
+
}, 16, ["id", "disabled", "data-readonly", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
16413
|
+
readOnlyTrigger.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
16414
|
+
key: 0,
|
|
16415
|
+
id: unref(readOnlyHint).hintId
|
|
16416
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
16417
|
+
createVNode(unref(_sfc_main$2c), { "is-bare": "" }, {
|
|
16190
16418
|
default: withCtx(() => [
|
|
16191
16419
|
createVNode(_sfc_main$c, {
|
|
16192
16420
|
kind: props.kind,
|
|
@@ -16201,7 +16429,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
16201
16429
|
_: 1
|
|
16202
16430
|
}),
|
|
16203
16431
|
props.name ? (openBlock(), createElementBlock("input", {
|
|
16204
|
-
key:
|
|
16432
|
+
key: 1,
|
|
16205
16433
|
type: "hidden",
|
|
16206
16434
|
disabled: disabled.value,
|
|
16207
16435
|
form: formId.value,
|
|
@@ -16588,6 +16816,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
16588
16816
|
const readOnly = computed(() => props.isReadOnly ?? field?.isReadOnly ?? false);
|
|
16589
16817
|
const invalid = computed(() => props.isInvalid ?? field?.isInvalid ?? false);
|
|
16590
16818
|
const locked = computed(() => disabled.value || readOnly.value);
|
|
16819
|
+
const readOnlyPad = computed(() => readOnly.value && !disabled.value);
|
|
16820
|
+
const readOnlyHint = useReadOnlyHint(readOnlyPad);
|
|
16821
|
+
const describedBy = computed(() => readOnlyHint.describedBy(field?.describedBy));
|
|
16591
16822
|
const controlled = useControlled({
|
|
16592
16823
|
controlled: () => props.modelValue,
|
|
16593
16824
|
default: () => props.defaultValue ?? null,
|
|
@@ -16750,7 +16981,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
16750
16981
|
)
|
|
16751
16982
|
);
|
|
16752
16983
|
const canvasClass = computed(
|
|
16753
|
-
() => cn(
|
|
16984
|
+
() => cn(
|
|
16985
|
+
"absolute inset-0 size-full touch-none",
|
|
16986
|
+
disabled.value ? "cursor-not-allowed" : readOnly.value ? "cursor-default" : "cursor-crosshair"
|
|
16987
|
+
)
|
|
16754
16988
|
);
|
|
16755
16989
|
return (_ctx, _cache) => {
|
|
16756
16990
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
@@ -16774,7 +17008,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
16774
17008
|
role: "img",
|
|
16775
17009
|
"aria-label": padName.value,
|
|
16776
17010
|
"aria-labelledby": unref(attrs)[unref(AriaAttribute).Label] ? void 0 : unref(field)?.labelledBy,
|
|
16777
|
-
"aria-describedby":
|
|
17011
|
+
"aria-describedby": describedBy.value,
|
|
16778
17012
|
"aria-invalid": invalid.value || void 0,
|
|
16779
17013
|
"aria-disabled": disabled.value || void 0,
|
|
16780
17014
|
class: normalizeClass(canvasClass.value),
|
|
@@ -16784,9 +17018,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
16784
17018
|
onPointercancel: onPointerEnd
|
|
16785
17019
|
}, null, 42, _hoisted_4$5)
|
|
16786
17020
|
], 10, _hoisted_1$6),
|
|
17021
|
+
readOnlyPad.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
17022
|
+
key: 0,
|
|
17023
|
+
id: unref(readOnlyHint).hintId
|
|
17024
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
16787
17025
|
createElementVNode("div", _hoisted_5$5, [
|
|
16788
17026
|
createElementVNode("span", _hoisted_6$4, toDisplayString(statusText.value), 1),
|
|
16789
|
-
createVNode(unref(_sfc_main$
|
|
17027
|
+
createVNode(unref(_sfc_main$2l), {
|
|
16790
17028
|
size: "sm",
|
|
16791
17029
|
variant: "ghost",
|
|
16792
17030
|
disabled: locked.value || strokeCount.value === 0,
|
|
@@ -16797,7 +17035,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
16797
17035
|
]),
|
|
16798
17036
|
_: 1
|
|
16799
17037
|
}, 8, ["disabled"]),
|
|
16800
|
-
createVNode(unref(_sfc_main$
|
|
17038
|
+
createVNode(unref(_sfc_main$2l), {
|
|
16801
17039
|
size: "sm",
|
|
16802
17040
|
variant: "ghost",
|
|
16803
17041
|
disabled: locked.value || isEmpty.value,
|
|
@@ -16810,7 +17048,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
16810
17048
|
}, 8, ["disabled"])
|
|
16811
17049
|
]),
|
|
16812
17050
|
unref(props).name ? (openBlock(), createElementBlock("input", {
|
|
16813
|
-
key:
|
|
17051
|
+
key: 1,
|
|
16814
17052
|
type: "hidden",
|
|
16815
17053
|
disabled: disabled.value,
|
|
16816
17054
|
form: formId.value,
|
|
@@ -17069,7 +17307,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
17069
17307
|
setup(__props) {
|
|
17070
17308
|
return (_ctx, _cache) => {
|
|
17071
17309
|
const _component_TreeSelectPickerNode = resolveComponent("TreeSelectPickerNode", true);
|
|
17072
|
-
return __props.node.children && __props.node.children.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$
|
|
17310
|
+
return __props.node.children && __props.node.children.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$2m), {
|
|
17073
17311
|
key: 0,
|
|
17074
17312
|
value: __props.node.value,
|
|
17075
17313
|
label: __props.node.label,
|
|
@@ -17084,7 +17322,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
17084
17322
|
}), 128))
|
|
17085
17323
|
]),
|
|
17086
17324
|
_: 1
|
|
17087
|
-
}, 8, ["value", "label", "is-disabled"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
17325
|
+
}, 8, ["value", "label", "is-disabled"])) : (openBlock(), createBlock(unref(_sfc_main$2n), {
|
|
17088
17326
|
key: 1,
|
|
17089
17327
|
value: __props.node.value,
|
|
17090
17328
|
"is-disabled": __props.node.isDisabled
|
|
@@ -17157,9 +17395,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
17157
17395
|
return props.isPathShown ? picked.value.path.join(" / ") : picked.value.label;
|
|
17158
17396
|
});
|
|
17159
17397
|
const ariaLabel = computed(() => attrs[AriaAttribute.Label]);
|
|
17398
|
+
const readOnlyTrigger = computed(() => readOnly.value && !disabled.value);
|
|
17399
|
+
const readOnlyHint = useReadOnlyHint(readOnlyTrigger);
|
|
17400
|
+
const describedBy = computed(
|
|
17401
|
+
() => readOnlyHint.describedBy(attrs[AriaAttribute.DescribedBy] ?? field?.describedBy)
|
|
17402
|
+
);
|
|
17160
17403
|
const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
|
|
17161
17404
|
const formId = computed(() => typeof attrs.form === "string" ? attrs.form : void 0);
|
|
17162
|
-
const OwnedAttributes = /* @__PURE__ */ new Set(["class", "form", AriaAttribute.Label]);
|
|
17405
|
+
const OwnedAttributes = /* @__PURE__ */ new Set(["class", "form", AriaAttribute.Label, AriaAttribute.DescribedBy]);
|
|
17163
17406
|
const passthroughAttrs = computed(
|
|
17164
17407
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
17165
17408
|
);
|
|
@@ -17178,7 +17421,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
17178
17421
|
controlled.reset();
|
|
17179
17422
|
});
|
|
17180
17423
|
return (_ctx, _cache) => {
|
|
17181
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
17424
|
+
return openBlock(), createBlock(unref(_sfc_main$29), {
|
|
17182
17425
|
key: unref(formResetRevision),
|
|
17183
17426
|
open: open.value,
|
|
17184
17427
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
@@ -17186,14 +17429,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
17186
17429
|
offset: 6
|
|
17187
17430
|
}, {
|
|
17188
17431
|
default: withCtx(() => [
|
|
17189
|
-
createVNode(unref(_sfc_main$
|
|
17432
|
+
createVNode(unref(_sfc_main$2b), mergeProps({
|
|
17190
17433
|
id: unref(props).id ?? unref(field)?.id,
|
|
17191
17434
|
disabled: disabled.value,
|
|
17192
|
-
"
|
|
17435
|
+
"data-readonly": readOnlyTrigger.value || void 0,
|
|
17193
17436
|
"aria-invalid": invalid.value || void 0,
|
|
17194
17437
|
"aria-label": ariaLabel.value,
|
|
17195
17438
|
"aria-labelledby": labelledBy.value,
|
|
17196
|
-
"aria-describedby":
|
|
17439
|
+
"aria-describedby": describedBy.value,
|
|
17197
17440
|
class: triggerClass.value
|
|
17198
17441
|
}, passthroughAttrs.value, { onClick: onTriggerClick }), {
|
|
17199
17442
|
default: withCtx(() => [
|
|
@@ -17203,10 +17446,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
17203
17446
|
createVNode(unref(ChevronDown), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
17204
17447
|
]),
|
|
17205
17448
|
_: 1
|
|
17206
|
-
}, 16, ["id", "disabled", "
|
|
17207
|
-
|
|
17449
|
+
}, 16, ["id", "disabled", "data-readonly", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
17450
|
+
readOnlyTrigger.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
17451
|
+
key: 0,
|
|
17452
|
+
id: unref(readOnlyHint).hintId
|
|
17453
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
17454
|
+
createVNode(unref(_sfc_main$2c), { class: "max-h-80 min-w-56 overflow-y-auto p-1" }, {
|
|
17208
17455
|
default: withCtx(() => [
|
|
17209
|
-
createVNode(unref(_sfc_main$
|
|
17456
|
+
createVNode(unref(_sfc_main$2o), {
|
|
17210
17457
|
"model-value": unref(value),
|
|
17211
17458
|
"default-expanded": initialExpanded.value,
|
|
17212
17459
|
"aria-label": ariaLabel.value,
|
|
@@ -17227,7 +17474,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
17227
17474
|
_: 1
|
|
17228
17475
|
}),
|
|
17229
17476
|
unref(props).name ? (openBlock(), createElementBlock("input", {
|
|
17230
|
-
key:
|
|
17477
|
+
key: 1,
|
|
17231
17478
|
type: "hidden",
|
|
17232
17479
|
disabled: disabled.value,
|
|
17233
17480
|
form: formId.value,
|
|
@@ -17377,9 +17624,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
17377
17624
|
return browsed.value[column - 1]?.label;
|
|
17378
17625
|
}
|
|
17379
17626
|
const ariaLabel = computed(() => attrs[AriaAttribute.Label]);
|
|
17627
|
+
const readOnlyTrigger = computed(() => readOnly.value && !disabled.value);
|
|
17628
|
+
const readOnlyHint = useReadOnlyHint(readOnlyTrigger);
|
|
17629
|
+
const describedBy = computed(
|
|
17630
|
+
() => readOnlyHint.describedBy(attrs[AriaAttribute.DescribedBy] ?? field?.describedBy)
|
|
17631
|
+
);
|
|
17380
17632
|
const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
|
|
17381
17633
|
const formId = computed(() => typeof attrs.form === "string" ? attrs.form : void 0);
|
|
17382
|
-
const OwnedAttributes = /* @__PURE__ */ new Set(["class", "form", AriaAttribute.Label]);
|
|
17634
|
+
const OwnedAttributes = /* @__PURE__ */ new Set(["class", "form", AriaAttribute.Label, AriaAttribute.DescribedBy]);
|
|
17383
17635
|
const passthroughAttrs = computed(
|
|
17384
17636
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
17385
17637
|
);
|
|
@@ -17407,7 +17659,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
17407
17659
|
controlled.reset();
|
|
17408
17660
|
});
|
|
17409
17661
|
return (_ctx, _cache) => {
|
|
17410
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
17662
|
+
return openBlock(), createBlock(unref(_sfc_main$29), {
|
|
17411
17663
|
key: unref(formResetRevision),
|
|
17412
17664
|
open: open.value,
|
|
17413
17665
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
@@ -17415,14 +17667,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
17415
17667
|
offset: 6
|
|
17416
17668
|
}, {
|
|
17417
17669
|
default: withCtx(() => [
|
|
17418
|
-
createVNode(unref(_sfc_main$
|
|
17670
|
+
createVNode(unref(_sfc_main$2b), mergeProps({
|
|
17419
17671
|
id: unref(props).id ?? unref(field)?.id,
|
|
17420
17672
|
disabled: disabled.value,
|
|
17421
|
-
"
|
|
17673
|
+
"data-readonly": readOnlyTrigger.value || void 0,
|
|
17422
17674
|
"aria-invalid": invalid.value || void 0,
|
|
17423
17675
|
"aria-label": ariaLabel.value,
|
|
17424
17676
|
"aria-labelledby": labelledBy.value,
|
|
17425
|
-
"aria-describedby":
|
|
17677
|
+
"aria-describedby": describedBy.value,
|
|
17426
17678
|
class: triggerClass.value
|
|
17427
17679
|
}, passthroughAttrs.value, { onClick: onTriggerClick }), {
|
|
17428
17680
|
default: withCtx(() => [
|
|
@@ -17432,8 +17684,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
17432
17684
|
createVNode(unref(ChevronDown), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
17433
17685
|
]),
|
|
17434
17686
|
_: 1
|
|
17435
|
-
}, 16, ["id", "disabled", "
|
|
17436
|
-
|
|
17687
|
+
}, 16, ["id", "disabled", "data-readonly", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
17688
|
+
readOnlyTrigger.value ? (openBlock(), createBlock(_sfc_main$1T, {
|
|
17689
|
+
key: 0,
|
|
17690
|
+
id: unref(readOnlyHint).hintId
|
|
17691
|
+
}, null, 8, ["id"])) : createCommentVNode("", true),
|
|
17692
|
+
createVNode(unref(_sfc_main$2c), { class: "max-w-[calc(100vw-2rem)] overflow-x-auto p-0" }, {
|
|
17437
17693
|
default: withCtx(() => [
|
|
17438
17694
|
createElementVNode("div", {
|
|
17439
17695
|
ref_key: "columnsEl",
|
|
@@ -17474,7 +17730,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
17474
17730
|
]),
|
|
17475
17731
|
_: 1
|
|
17476
17732
|
}),
|
|
17477
|
-
unref(props).name ? (openBlock(true), createElementBlock(Fragment, { key:
|
|
17733
|
+
unref(props).name ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(value) ?? [], (segment, depth) => {
|
|
17478
17734
|
return openBlock(), createElementBlock("input", {
|
|
17479
17735
|
key: depth,
|
|
17480
17736
|
type: "hidden",
|
|
@@ -18111,7 +18367,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18111
18367
|
role: "group",
|
|
18112
18368
|
"aria-label": label("history", "Edit history")
|
|
18113
18369
|
}, [
|
|
18114
|
-
createVNode(unref(_sfc_main$
|
|
18370
|
+
createVNode(unref(_sfc_main$2l), {
|
|
18115
18371
|
type: "button",
|
|
18116
18372
|
variant: "outline",
|
|
18117
18373
|
size: "sm",
|
|
@@ -18123,7 +18379,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18123
18379
|
]),
|
|
18124
18380
|
_: 1
|
|
18125
18381
|
}, 8, ["is-disabled"]),
|
|
18126
|
-
createVNode(unref(_sfc_main$
|
|
18382
|
+
createVNode(unref(_sfc_main$2l), {
|
|
18127
18383
|
type: "button",
|
|
18128
18384
|
variant: "outline",
|
|
18129
18385
|
size: "sm",
|
|
@@ -18135,7 +18391,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18135
18391
|
]),
|
|
18136
18392
|
_: 1
|
|
18137
18393
|
}, 8, ["is-disabled"]),
|
|
18138
|
-
createVNode(unref(_sfc_main$
|
|
18394
|
+
createVNode(unref(_sfc_main$2l), {
|
|
18139
18395
|
type: "button",
|
|
18140
18396
|
variant: "outline",
|
|
18141
18397
|
size: "sm",
|
|
@@ -18167,7 +18423,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18167
18423
|
"aria-label": label("aspect", "Crop aspect ratio")
|
|
18168
18424
|
}, [
|
|
18169
18425
|
(openBlock(), createElementBlock(Fragment, null, renderList(ratios, (preset) => {
|
|
18170
|
-
return createVNode(unref(_sfc_main$
|
|
18426
|
+
return createVNode(unref(_sfc_main$2l), {
|
|
18171
18427
|
key: preset.key,
|
|
18172
18428
|
type: "button",
|
|
18173
18429
|
variant: "outline",
|
|
@@ -18182,7 +18438,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18182
18438
|
_: 2
|
|
18183
18439
|
}, 1032, ["aria-pressed", "is-disabled", "onClick"]);
|
|
18184
18440
|
}), 64)),
|
|
18185
|
-
createVNode(unref(_sfc_main$
|
|
18441
|
+
createVNode(unref(_sfc_main$2l), {
|
|
18186
18442
|
type: "button",
|
|
18187
18443
|
variant: "outline",
|
|
18188
18444
|
size: "sm",
|
|
@@ -18214,7 +18470,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18214
18470
|
role: "group",
|
|
18215
18471
|
"aria-label": label("transform", "Rotate and flip")
|
|
18216
18472
|
}, [
|
|
18217
|
-
createVNode(unref(_sfc_main$
|
|
18473
|
+
createVNode(unref(_sfc_main$2l), {
|
|
18218
18474
|
type: "button",
|
|
18219
18475
|
variant: "outline",
|
|
18220
18476
|
size: "sm",
|
|
@@ -18226,7 +18482,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18226
18482
|
]),
|
|
18227
18483
|
_: 1
|
|
18228
18484
|
}, 8, ["is-disabled"]),
|
|
18229
|
-
createVNode(unref(_sfc_main$
|
|
18485
|
+
createVNode(unref(_sfc_main$2l), {
|
|
18230
18486
|
type: "button",
|
|
18231
18487
|
variant: "outline",
|
|
18232
18488
|
size: "sm",
|
|
@@ -18238,7 +18494,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18238
18494
|
]),
|
|
18239
18495
|
_: 1
|
|
18240
18496
|
}, 8, ["is-disabled"]),
|
|
18241
|
-
createVNode(unref(_sfc_main$
|
|
18497
|
+
createVNode(unref(_sfc_main$2l), {
|
|
18242
18498
|
type: "button",
|
|
18243
18499
|
variant: "outline",
|
|
18244
18500
|
size: "sm",
|
|
@@ -18251,7 +18507,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18251
18507
|
]),
|
|
18252
18508
|
_: 1
|
|
18253
18509
|
}, 8, ["aria-pressed", "is-disabled"]),
|
|
18254
|
-
createVNode(unref(_sfc_main$
|
|
18510
|
+
createVNode(unref(_sfc_main$2l), {
|
|
18255
18511
|
type: "button",
|
|
18256
18512
|
variant: "outline",
|
|
18257
18513
|
size: "sm",
|
|
@@ -18272,7 +18528,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18272
18528
|
for: `${unref(id)}-width`
|
|
18273
18529
|
}, [
|
|
18274
18530
|
createElementVNode("span", null, toDisplayString(label("width", "Output width")), 1),
|
|
18275
|
-
createVNode(unref(_sfc_main$
|
|
18531
|
+
createVNode(unref(_sfc_main$1X), {
|
|
18276
18532
|
id: `${unref(id)}-width`,
|
|
18277
18533
|
"model-value": outputSize.value.width,
|
|
18278
18534
|
min: 1,
|
|
@@ -18286,7 +18542,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18286
18542
|
for: `${unref(id)}-height`
|
|
18287
18543
|
}, [
|
|
18288
18544
|
createElementVNode("span", null, toDisplayString(label("height", "Output height")), 1),
|
|
18289
|
-
createVNode(unref(_sfc_main$
|
|
18545
|
+
createVNode(unref(_sfc_main$1X), {
|
|
18290
18546
|
id: `${unref(id)}-height`,
|
|
18291
18547
|
"model-value": outputSize.value.height,
|
|
18292
18548
|
min: 1,
|
|
@@ -18297,7 +18553,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18297
18553
|
], 8, _hoisted_16)
|
|
18298
18554
|
]),
|
|
18299
18555
|
createElementVNode("label", _hoisted_17, [
|
|
18300
|
-
createVNode(unref(_sfc_main$
|
|
18556
|
+
createVNode(unref(_sfc_main$26), {
|
|
18301
18557
|
modelValue: isProportional.value,
|
|
18302
18558
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => isProportional.value = $event),
|
|
18303
18559
|
"is-disabled": locked.value
|
|
@@ -18310,7 +18566,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18310
18566
|
"aria-label": label("format", "Output format")
|
|
18311
18567
|
}, [
|
|
18312
18568
|
(openBlock(), createElementBlock(Fragment, null, renderList(formats, (item) => {
|
|
18313
|
-
return createVNode(unref(_sfc_main$
|
|
18569
|
+
return createVNode(unref(_sfc_main$2l), {
|
|
18314
18570
|
key: item,
|
|
18315
18571
|
type: "button",
|
|
18316
18572
|
variant: "outline",
|
|
@@ -18331,7 +18587,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18331
18587
|
for: `${unref(id)}-quality`
|
|
18332
18588
|
}, [
|
|
18333
18589
|
createElementVNode("span", null, toDisplayString(label("quality", "Output quality (JPEG and WebP)")), 1),
|
|
18334
|
-
createVNode(unref(_sfc_main$
|
|
18590
|
+
createVNode(unref(_sfc_main$1X), {
|
|
18335
18591
|
id: `${unref(id)}-quality`,
|
|
18336
18592
|
"model-value": unref(value).output.quality,
|
|
18337
18593
|
min: 1,
|
|
@@ -18341,7 +18597,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18341
18597
|
}, null, 8, ["id", "model-value", "is-disabled"])
|
|
18342
18598
|
], 8, _hoisted_19),
|
|
18343
18599
|
createElementVNode("label", _hoisted_20, [
|
|
18344
|
-
createVNode(unref(_sfc_main$
|
|
18600
|
+
createVNode(unref(_sfc_main$26), {
|
|
18345
18601
|
"model-value": unref(value).removeBackground,
|
|
18346
18602
|
"is-disabled": locked.value || !__props.canRemoveBackground && !unref(value).removeBackground,
|
|
18347
18603
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => patch({ removeBackground: $event }))
|
|
@@ -18352,7 +18608,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18352
18608
|
__props.error || validationMessage.value ? (openBlock(), createElementBlock("p", _hoisted_22, toDisplayString(__props.error || validationMessage.value), 1)) : createCommentVNode("", true),
|
|
18353
18609
|
__props.isBusy ? (openBlock(), createElementBlock("p", _hoisted_23, toDisplayString(label("busy", "Processing image…")), 1)) : createCommentVNode("", true),
|
|
18354
18610
|
createElementVNode("div", _hoisted_24, [
|
|
18355
|
-
createVNode(unref(_sfc_main$
|
|
18611
|
+
createVNode(unref(_sfc_main$2l), {
|
|
18356
18612
|
type: "button",
|
|
18357
18613
|
variant: "outline",
|
|
18358
18614
|
"is-disabled": locked.value || Boolean(issue.value) || needsSourceReset.value,
|
|
@@ -18363,7 +18619,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18363
18619
|
]),
|
|
18364
18620
|
_: 1
|
|
18365
18621
|
}, 8, ["is-disabled"]),
|
|
18366
|
-
createVNode(unref(_sfc_main$
|
|
18622
|
+
createVNode(unref(_sfc_main$2l), {
|
|
18367
18623
|
type: "button",
|
|
18368
18624
|
"is-disabled": locked.value || Boolean(issue.value) || needsSourceReset.value,
|
|
18369
18625
|
onClick: _cache[12] || (_cache[12] = ($event) => request("apply"))
|
|
@@ -18617,9 +18873,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18617
18873
|
style: normalizeStyle(markerStyle.value),
|
|
18618
18874
|
"aria-hidden": "true"
|
|
18619
18875
|
}, null, 4),
|
|
18620
|
-
isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
18876
|
+
isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$2d), { key: 0 }, {
|
|
18621
18877
|
default: withCtx(() => [
|
|
18622
|
-
createVNode(unref(_sfc_main$
|
|
18878
|
+
createVNode(unref(_sfc_main$2e), {
|
|
18623
18879
|
anchor: marker.value,
|
|
18624
18880
|
placement: "bottom-start",
|
|
18625
18881
|
offset: 4,
|
|
@@ -18692,7 +18948,7 @@ export {
|
|
|
18692
18948
|
_sfc_main$X as W,
|
|
18693
18949
|
_sfc_main$W as X,
|
|
18694
18950
|
_sfc_main$V as Y,
|
|
18695
|
-
_sfc_main$
|
|
18951
|
+
_sfc_main$1_ as Z,
|
|
18696
18952
|
_sfc_main$D as _,
|
|
18697
18953
|
_sfc_main$1f as a,
|
|
18698
18954
|
RatingStep as a$,
|
|
@@ -18714,10 +18970,10 @@ export {
|
|
|
18714
18970
|
_sfc_main$1r as aF,
|
|
18715
18971
|
_sfc_main$1q as aG,
|
|
18716
18972
|
_sfc_main$l as aH,
|
|
18717
|
-
_sfc_main$
|
|
18973
|
+
_sfc_main$1X as aI,
|
|
18718
18974
|
_sfc_main$r as aJ,
|
|
18719
18975
|
_sfc_main$p as aK,
|
|
18720
|
-
_sfc_main$
|
|
18976
|
+
_sfc_main$1W as aL,
|
|
18721
18977
|
_sfc_main$1G as aM,
|
|
18722
18978
|
PhoneCountries as aN,
|
|
18723
18979
|
_sfc_main$C as aO,
|
|
@@ -18766,7 +19022,7 @@ export {
|
|
|
18766
19022
|
RecurrenceEndMode as b3,
|
|
18767
19023
|
RecurrenceFreq as b4,
|
|
18768
19024
|
RecurrenceWeekday as b5,
|
|
18769
|
-
_sfc_main$
|
|
19025
|
+
_sfc_main$1V as b6,
|
|
18770
19026
|
_sfc_main$o as b7,
|
|
18771
19027
|
_sfc_main$1x as b8,
|
|
18772
19028
|
_sfc_main$1u as b9,
|
|
@@ -18775,7 +19031,7 @@ export {
|
|
|
18775
19031
|
ToggleMode as bC,
|
|
18776
19032
|
_sfc_main$6 as bD,
|
|
18777
19033
|
_sfc_main$4 as bE,
|
|
18778
|
-
_sfc_main$
|
|
19034
|
+
_sfc_main$1Y as bF,
|
|
18779
19035
|
_sfc_main$U as bG,
|
|
18780
19036
|
_sfc_main$T as bH,
|
|
18781
19037
|
_sfc_main$S as bI,
|
|
@@ -18812,9 +19068,9 @@ export {
|
|
|
18812
19068
|
_sfc_main$1M as bm,
|
|
18813
19069
|
_sfc_main$1R as bn,
|
|
18814
19070
|
_sfc_main$$ as bo,
|
|
18815
|
-
_sfc_main$
|
|
18816
|
-
_sfc_main$
|
|
18817
|
-
_sfc_main$
|
|
19071
|
+
_sfc_main$1Z as bp,
|
|
19072
|
+
_sfc_main$1U as bq,
|
|
19073
|
+
_sfc_main$1$ as br,
|
|
18818
19074
|
_sfc_main$1b as bs,
|
|
18819
19075
|
_sfc_main$18 as bt,
|
|
18820
19076
|
_sfc_main$d as bu,
|
|
@@ -18848,4 +19104,4 @@ export {
|
|
|
18848
19104
|
_sfc_main$1m as y,
|
|
18849
19105
|
_sfc_main$1k as z
|
|
18850
19106
|
};
|
|
18851
|
-
//# sourceMappingURL=MentionInput.vue_vue_type_script_setup_true_lang-
|
|
19107
|
+
//# sourceMappingURL=MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js.map
|