@wow-two-beta/fe 0.0.28 → 0.0.30

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.
Files changed (26) hide show
  1. package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js.map +1 -1
  2. package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-hYD3uP3P.js → MentionInput.vue_vue_type_script_setup_true_lang-D8OEoQ37.js} +687 -380
  3. package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-D8OEoQ37.js.map +1 -0
  4. package/dist/chunks/VisuallyHidden.vue_vue_type_script_setup_true_lang-SZseKI7j.js +29 -0
  5. package/dist/chunks/VisuallyHidden.vue_vue_type_script_setup_true_lang-SZseKI7j.js.map +1 -0
  6. package/dist/chunks/{index-Dp6L9sX7.js → index-Clq52PIa.js} +5 -28
  7. package/dist/chunks/index-Clq52PIa.js.map +1 -0
  8. package/dist/foundation/primitives/index.js +5 -4
  9. package/dist/foundation/primitives/index.js.map +1 -1
  10. package/dist/index.css +5 -0
  11. package/dist/index.js +2 -2
  12. package/dist/presentation/forms/InputStyles.d.ts +11 -4
  13. package/dist/presentation/forms/ReadOnlyHint.vue.d.ts +6 -0
  14. package/dist/presentation/forms/UseReadOnlyHint.d.ts +17 -0
  15. package/dist/presentation/forms/colorSwatchPicker/ColorSwatchItem.vue.d.ts +2 -0
  16. package/dist/presentation/forms/comboboxPicker/ComboboxPickerContext.d.ts +3 -0
  17. package/dist/presentation/forms/emojiPicker/EmojiPickerPopover.vue.d.ts +6 -0
  18. package/dist/presentation/forms/fontPicker/FontPicker.vue.d.ts +3 -0
  19. package/dist/presentation/forms/iconPicker/IconPicker.vue.d.ts +6 -0
  20. package/dist/presentation/forms/index.js +1 -1
  21. package/dist/presentation/forms/multiSelectPicker/MultiSelectPickerContext.d.ts +5 -0
  22. package/dist/presentation/forms/selectPicker/SelectPicker.variants.d.ts +5 -5
  23. package/dist/presentation/forms/selectPicker/SelectPickerContext.d.ts +3 -0
  24. package/package.json +1 -1
  25. package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-hYD3uP3P.js.map +0 -1
  26. package/dist/chunks/index-Dp6L9sX7.js.map +0 -1
@@ -1,31 +1,31 @@
1
- import { defineComponent, useAttrs, computed, useTemplateRef, openBlock, createElementBlock, mergeProps, unref, normalizeClass, createElementVNode, createVNode, ref, createCommentVNode, nextTick, useSlots, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createSlots, inject, watch, provide, shallowRef, Fragment, renderList, onBeforeUnmount, onMounted, normalizeStyle, onErrorCaptured, h, Teleport, withModifiers, useId as useId$1, toHandlers, resolveComponent, resolveDynamicComponent, toValue, withKeys, onUpdated } from "vue";
2
- import { x as useNativeFormReset, e as _sfc_main$21, c as _sfc_main$23, _ as _sfc_main$24, f as _sfc_main$26, 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$2e, b as ColorSwatchPreviewSize, g as _sfc_main$2g, U as daysInMonth, d as _sfc_main$2h, i as _sfc_main$2k, j as _sfc_main$2l, h as _sfc_main$2m } from "./FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js";
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-DuMcXUch.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$1$ } from "./Icon.vue_vue_type_script_setup_true_lang-Ca4wsJw9.js";
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$22 } from "./FieldErrorCallout.vue_vue_type_script_setup_true_lang-BRcaaXCd.js";
12
- import { _ as _sfc_main$20 } from "./FormControlProvider.vue_vue_type_script_setup_true_lang-D_yikT2o.js";
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$25, a as _sfc_main$2i } from "./StackLayout.vue_vue_type_script_setup_true_lang-DuAFfjSc.js";
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$27, b as _sfc_main$29, a as _sfc_main$2a } from "./PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js";
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-C6YKEo3H.js";
20
20
  import { A as AriaAttribute } from "./AriaAttribute-CmUjjXjp.js";
21
21
  import { D as DomOrderExtensions } from "./DomOrderExtensions-Czsyvn6e.js";
22
22
  import { s as surfaceVariants } from "./SurfaceStyles-BYvRlsWe.js";
23
- import { _ as _sfc_main$2b } from "./Portal.vue_vue_type_script_setup_true_lang-C2_xSIMy.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$2c } from "./AnchoredPositioner.vue_vue_type_script_setup_true_lang-BpBVI2Cu.js";
26
- import { _ as _sfc_main$2d } from "./DismissableLayer.vue_vue_type_script_setup_true_lang-B8hZrhek.js";
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$2f, O as Orientation$1 } from "./RovingFocusGroup.vue_vue_type_script_setup_true_lang-DVRYYua_.js";
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";
@@ -35,19 +35,20 @@ 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$2j, a as ButtonVariant, B as ButtonShape } from "./Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js";
38
+ import { _ as _sfc_main$2l, a as ButtonVariant, B as ButtonShape } from "./Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.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$28 } from "./Announce.vue_vue_type_script_setup_true_lang-DbqODft3.js";
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({
50
- base: "flex w-full rounded-md bg-field text-foreground placeholder:text-subtle-foreground transition-colors focus-visible:outline-hidden focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60 read-only:bg-muted",
51
+ base: "flex w-full rounded-md bg-field text-foreground placeholder:text-subtle-foreground transition-colors focus-visible:outline-hidden focus-visible:ring-ring disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-60 readonly:cursor-default readonly:bg-muted readonly:text-muted-foreground readonly:focus-visible:ring-1",
51
52
  variants: {
52
53
  size: {
53
54
  xs: "h-7 px-2 text-xs",
@@ -56,7 +57,7 @@ const inputBaseVariants = tv({
56
57
  lg: "h-12 px-4 text-base"
57
58
  },
58
59
  state: {
59
- default: "border-input hover:border-border-strong",
60
+ default: "border-input hover:border-border-strong readonly:hover:border-input readonly:focus-visible:ring-muted-foreground",
60
61
  invalid: "border-destructive-soft-foreground focus-visible:ring-destructive-soft-foreground"
61
62
  },
62
63
  /* Border weight — scale like `size`/`radius`; default `sm` (1px). */
@@ -76,6 +77,8 @@ const inputBaseVariants = tv({
76
77
  lg: "focus-visible:ring-4"
77
78
  }
78
79
  },
80
+ /* A caller that turned the focus ring off keeps it off while the control is read-only. */
81
+ compoundVariants: [{ ring: "none", class: "readonly:focus-visible:ring-0" }],
79
82
  defaultVariants: {
80
83
  size: "md",
81
84
  state: "default",
@@ -83,6 +86,7 @@ const inputBaseVariants = tv({
83
86
  ring: "md"
84
87
  }
85
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";
86
90
  const InputSize = {
87
91
  /** Refers to the extra-small step (h-7). */
88
92
  Xs: "xs",
@@ -124,7 +128,7 @@ const InputRing = {
124
128
  Lg: "lg"
125
129
  };
126
130
  const _hoisted_1$1G = ["id", "value", "disabled", "required", "readonly", "aria-invalid", "aria-describedby", "data-skeleton", "inert"];
127
- const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
131
+ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
128
132
  ...{ name: "TextInput", inheritAttrs: false },
129
133
  __name: "TextInput",
130
134
  props: {
@@ -214,7 +218,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
214
218
  }
215
219
  });
216
220
  const _hoisted_1$1F = ["id", "value", "disabled", "required", "readonly", "aria-invalid", "aria-describedby"];
217
- const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
221
+ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
218
222
  ...{ name: "EmailInput", inheritAttrs: false },
219
223
  __name: "EmailInput",
220
224
  props: {
@@ -302,7 +306,7 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
302
306
  }
303
307
  });
304
308
  const _hoisted_1$1E = ["id", "value", "disabled", "required", "readonly", "aria-invalid", "aria-describedby"];
305
- const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
309
+ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
306
310
  ...{ name: "TelInput", inheritAttrs: false },
307
311
  __name: "TelInput",
308
312
  props: {
@@ -389,7 +393,7 @@ const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
389
393
  }
390
394
  });
391
395
  const _hoisted_1$1D = ["id", "value", "disabled", "required", "readonly", "aria-invalid", "aria-describedby"];
392
- const _sfc_main$1X = /* @__PURE__ */ defineComponent({
396
+ const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
393
397
  ...{ name: "UrlInput", inheritAttrs: false },
394
398
  __name: "UrlInput",
395
399
  props: {
@@ -479,8 +483,8 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
479
483
  const _hoisted_1$1C = ["step", "id", "value", "disabled", "required", "readonly", "aria-invalid", "aria-describedby"];
480
484
  const _hoisted_2$1b = { class: "absolute right-1 top-1/2 flex -translate-y-1/2 items-center" };
481
485
  const _hoisted_3$N = ["disabled", "aria-label"];
482
- const _hoisted_4$E = ["disabled", "aria-label"];
483
- const _sfc_main$1W = /* @__PURE__ */ defineComponent({
486
+ const _hoisted_4$D = ["disabled", "aria-label"];
487
+ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
484
488
  ...{ name: "NumberInput", inheritAttrs: false },
485
489
  __name: "NumberInput",
486
490
  props: {
@@ -597,7 +601,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
597
601
  class: "grid h-7 w-6 place-items-center rounded text-muted-foreground hover:bg-muted disabled:opacity-50",
598
602
  onClick: _cache[0] || (_cache[0] = ($event) => adjust(-1))
599
603
  }, [
600
- createVNode(unref(_sfc_main$1$), {
604
+ createVNode(unref(_sfc_main$20), {
601
605
  icon: unref(MinusIcon),
602
606
  size: 14
603
607
  }, null, 8, ["icon"])
@@ -609,11 +613,11 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
609
613
  class: "grid h-7 w-6 place-items-center rounded text-muted-foreground hover:bg-muted disabled:opacity-50",
610
614
  onClick: _cache[1] || (_cache[1] = ($event) => adjust(1))
611
615
  }, [
612
- createVNode(unref(_sfc_main$1$), {
616
+ createVNode(unref(_sfc_main$20), {
613
617
  icon: unref(PlusIcon),
614
618
  size: 14
615
619
  }, null, 8, ["icon"])
616
- ], 8, _hoisted_4$E)
620
+ ], 8, _hoisted_4$D)
617
621
  ])
618
622
  ], 2);
619
623
  };
@@ -621,7 +625,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
621
625
  });
622
626
  const _hoisted_1$1B = ["type", "autocomplete", "id", "disabled", "required", "readonly", "value", "aria-invalid", "aria-describedby"];
623
627
  const _hoisted_2$1a = ["disabled", "aria-label", "aria-pressed"];
624
- const _sfc_main$1V = /* @__PURE__ */ defineComponent({
628
+ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
625
629
  ...{ name: "PasswordInput", inheritAttrs: false },
626
630
  __name: "PasswordInput",
627
631
  props: {
@@ -729,7 +733,7 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
729
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",
730
734
  onClick: toggle
731
735
  }, [
732
- createVNode(unref(_sfc_main$1$), {
736
+ createVNode(unref(_sfc_main$20), {
733
737
  icon: toggleIcon.value,
734
738
  size: 16
735
739
  }, null, 8, ["icon"])
@@ -740,7 +744,7 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
740
744
  });
741
745
  const _hoisted_1$1A = ["id", "value", "disabled", "required", "readonly", "aria-invalid", "aria-describedby"];
742
746
  const _hoisted_2$19 = ["disabled", "aria-label"];
743
- const _sfc_main$1U = /* @__PURE__ */ defineComponent({
747
+ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
744
748
  ...{ name: "SearchInput", inheritAttrs: false },
745
749
  __name: "SearchInput",
746
750
  props: {
@@ -827,7 +831,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
827
831
  return openBlock(), createElementBlock("div", {
828
832
  class: normalizeClass(wrapperClass.value)
829
833
  }, [
830
- createVNode(unref(_sfc_main$1$), {
834
+ createVNode(unref(_sfc_main$20), {
831
835
  icon: unref(SearchIcon),
832
836
  size: 16,
833
837
  class: "absolute left-3 top-1/2 -translate-y-1/2 text-subtle-foreground"
@@ -856,7 +860,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
856
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",
857
861
  onClick: handleClear
858
862
  }, [
859
- createVNode(unref(_sfc_main$1$), {
863
+ createVNode(unref(_sfc_main$20), {
860
864
  icon: unref(ClearIcon),
861
865
  size: 14
862
866
  }, null, 8, ["icon"])
@@ -866,7 +870,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
866
870
  }
867
871
  });
868
872
  const _hoisted_1$1z = ["rows", "id", "value", "disabled", "required", "readonly", "aria-invalid", "aria-describedby", "data-skeleton", "inert"];
869
- const _sfc_main$1T = /* @__PURE__ */ defineComponent({
873
+ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
870
874
  ...{ name: "TextAreaInput", inheritAttrs: false },
871
875
  __name: "TextAreaInput",
872
876
  props: {
@@ -958,8 +962,41 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
958
962
  };
959
963
  }
960
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
+ });
961
998
  const _hoisted_1$1y = ["data-skeleton", "inert"];
962
- 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"];
963
1000
  const SizeClass$4 = {
964
1001
  sm: "h-4 w-4",
965
1002
  md: "h-5 w-5",
@@ -1011,7 +1048,9 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
1011
1048
  const finalReadOnly = computed(() => props.isReadOnly ?? props.readonly ?? ctx?.isReadOnly ?? false);
1012
1049
  const finalRequired = computed(() => props.isRequired ?? props.required ?? ctx?.isRequired);
1013
1050
  const isInvalid = computed(() => ctx?.isInvalid || void 0);
1014
- const OwnedAttributes = /* @__PURE__ */ new Set(["class", "checked"]);
1051
+ const readOnlyHint = useReadOnlyHint(finalReadOnly);
1052
+ const describedBy = computed(() => readOnlyHint.describedBy(attrs[AriaAttribute.DescribedBy]));
1053
+ const OwnedAttributes = /* @__PURE__ */ new Set(["class", "checked", AriaAttribute.DescribedBy]);
1015
1054
  const passthroughAttrs = computed(
1016
1055
  () => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
1017
1056
  );
@@ -1020,7 +1059,7 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
1020
1059
  );
1021
1060
  const VisualClass = cn(
1022
1061
  "pointer-events-none grid h-full w-full place-items-center rounded-full border border-input bg-background transition-colors",
1023
- "peer-checked:border-primary-soft-foreground",
1062
+ "peer-checked:border-primary-soft-foreground peer-data-[readonly]:bg-muted",
1024
1063
  /* `peer-checked:` cannot reach descendants — the dot's opacity is gated by a child selector on this peer span. */
1025
1064
  "[&>span]:opacity-0 peer-checked:[&>span]:opacity-100",
1026
1065
  "peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-1",
@@ -1050,18 +1089,23 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
1050
1089
  required: finalRequired.value,
1051
1090
  checked: unref(isChecked),
1052
1091
  "aria-invalid": isInvalid.value,
1053
- class: "peer absolute inset-0 m-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed"
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"
1054
1095
  }, passthroughAttrs.value, {
1055
1096
  onChange,
1056
- onClick: _cache[0] || (_cache[0] = ($event) => finalReadOnly.value && $event.preventDefault()),
1057
- "aria-readonly": finalReadOnly.value || void 0
1097
+ onClick: _cache[0] || (_cache[0] = ($event) => finalReadOnly.value && $event.preventDefault())
1058
1098
  }), null, 16, _hoisted_2$18),
1059
1099
  createElementVNode("span", {
1060
1100
  "aria-hidden": "true",
1061
1101
  class: normalizeClass(visualClass.value)
1062
1102
  }, [..._cache[1] || (_cache[1] = [
1063
1103
  createElementVNode("span", { class: "h-2 w-2 rounded-full bg-primary-soft-foreground" }, null, -1)
1064
- ])], 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)
1065
1109
  ], 10, _hoisted_1$1y);
1066
1110
  };
1067
1111
  }
@@ -1326,7 +1370,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
1326
1370
  const root = useTemplateRef("root");
1327
1371
  __expose({ el: root });
1328
1372
  return (_ctx, _cache) => {
1329
- return openBlock(), createBlock(unref(_sfc_main$20), {
1373
+ return openBlock(), createBlock(unref(_sfc_main$22), {
1330
1374
  id: parentId.value,
1331
1375
  errors: parentErrors.value,
1332
1376
  "is-invalid": isInvalid.value,
@@ -1342,7 +1386,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
1342
1386
  "aria-busy": props.isSkeleton || void 0,
1343
1387
  class: rootClass.value
1344
1388
  }, passthroughAttrs.value), [
1345
- hasLabel.value ? (openBlock(), createBlock(_sfc_main$21, { key: 0 }, {
1389
+ hasLabel.value ? (openBlock(), createBlock(_sfc_main$23, { key: 0 }, {
1346
1390
  default: withCtx(() => [
1347
1391
  renderSlot(_ctx.$slots, "label", {}, () => [
1348
1392
  createTextVNode(toDisplayString(__props.label), 1)
@@ -1351,7 +1395,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
1351
1395
  _: 3
1352
1396
  })) : createCommentVNode("", true),
1353
1397
  renderSlot(_ctx.$slots, "default"),
1354
- showError.value ? (openBlock(), createBlock(_sfc_main$22, {
1398
+ showError.value ? (openBlock(), createBlock(_sfc_main$24, {
1355
1399
  key: 1,
1356
1400
  message: hasOwnError.value ? __props.error : void 0
1357
1401
  }, createSlots({ _: 2 }, [
@@ -1362,7 +1406,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
1362
1406
  ]),
1363
1407
  key: "0"
1364
1408
  } : void 0
1365
- ]), 1032, ["message"])) : hasHelper.value ? (openBlock(), createBlock(_sfc_main$23, { key: 2 }, {
1409
+ ]), 1032, ["message"])) : hasHelper.value ? (openBlock(), createBlock(_sfc_main$25, { key: 2 }, {
1366
1410
  default: withCtx(() => [
1367
1411
  renderSlot(_ctx.$slots, "helper", {}, () => [
1368
1412
  createTextVNode(toDisplayString(__props.helper), 1)
@@ -1384,7 +1428,7 @@ function useCheckboxGroup() {
1384
1428
  const _hoisted_1$1u = ["for"];
1385
1429
  const _hoisted_2$16 = { class: "flex flex-col gap-0.5 text-sm" };
1386
1430
  const _hoisted_3$M = { class: "font-medium text-foreground" };
1387
- const _hoisted_4$D = {
1431
+ const _hoisted_4$C = {
1388
1432
  key: 0,
1389
1433
  class: "text-muted-foreground"
1390
1434
  };
@@ -1451,13 +1495,13 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
1451
1495
  for: inputId.value,
1452
1496
  class: normalizeClass(wrapperClass.value)
1453
1497
  }, [
1454
- isInGroup.value ? (openBlock(), createBlock(unref(_sfc_main$20), {
1498
+ isInGroup.value ? (openBlock(), createBlock(unref(_sfc_main$22), {
1455
1499
  key: 0,
1456
1500
  "is-disabled": groupDisabled.value,
1457
1501
  "is-invalid": groupInvalid.value
1458
1502
  }, {
1459
1503
  default: withCtx(() => [
1460
- createVNode(_sfc_main$24, mergeProps({
1504
+ createVNode(_sfc_main$26, mergeProps({
1461
1505
  ref_key: "inner",
1462
1506
  ref: inner
1463
1507
  }, { ...checkboxProps.value, ...passthroughAttrs.value }, {
@@ -1468,7 +1512,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
1468
1512
  }), null, 16, ["id", "model-value", "class"])
1469
1513
  ]),
1470
1514
  _: 1
1471
- }, 8, ["is-disabled", "is-invalid"])) : (openBlock(), createBlock(_sfc_main$24, mergeProps({
1515
+ }, 8, ["is-disabled", "is-invalid"])) : (openBlock(), createBlock(_sfc_main$26, mergeProps({
1472
1516
  key: 1,
1473
1517
  ref_key: "inner",
1474
1518
  ref: inner
@@ -1482,7 +1526,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
1482
1526
  createTextVNode(toDisplayString(__props.label), 1)
1483
1527
  ])
1484
1528
  ]),
1485
- hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_4$D, [
1529
+ hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_4$C, [
1486
1530
  renderSlot(_ctx.$slots, "description", {}, () => [
1487
1531
  createTextVNode(toDisplayString(__props.description), 1)
1488
1532
  ])
@@ -1499,7 +1543,7 @@ function useRadioGroup() {
1499
1543
  const _hoisted_1$1t = ["for"];
1500
1544
  const _hoisted_2$15 = { class: "flex flex-col gap-0.5 text-sm" };
1501
1545
  const _hoisted_3$L = { class: "font-medium text-foreground" };
1502
- const _hoisted_4$C = {
1546
+ const _hoisted_4$B = {
1503
1547
  key: 0,
1504
1548
  class: "text-muted-foreground"
1505
1549
  };
@@ -1572,7 +1616,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
1572
1616
  for: inputId.value,
1573
1617
  class: normalizeClass(wrapperClass.value)
1574
1618
  }, [
1575
- isInGroup.value ? (openBlock(), createBlock(unref(_sfc_main$20), {
1619
+ isInGroup.value ? (openBlock(), createBlock(unref(_sfc_main$22), {
1576
1620
  key: 0,
1577
1621
  "is-disabled": groupDisabled.value,
1578
1622
  "is-invalid": groupInvalid.value,
@@ -1605,7 +1649,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
1605
1649
  createTextVNode(toDisplayString(__props.label), 1)
1606
1650
  ])
1607
1651
  ]),
1608
- hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_4$C, [
1652
+ hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_4$B, [
1609
1653
  renderSlot(_ctx.$slots, "description", {}, () => [
1610
1654
  createTextVNode(toDisplayString(__props.description), 1)
1611
1655
  ])
@@ -1618,7 +1662,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
1618
1662
  const _hoisted_1$1s = ["for"];
1619
1663
  const _hoisted_2$14 = { class: "flex flex-col gap-0.5 text-sm" };
1620
1664
  const _hoisted_3$K = { class: "font-medium text-foreground" };
1621
- const _hoisted_4$B = {
1665
+ const _hoisted_4$A = {
1622
1666
  key: 0,
1623
1667
  class: "text-muted-foreground"
1624
1668
  };
@@ -1686,7 +1730,7 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
1686
1730
  createTextVNode(toDisplayString(__props.label), 1)
1687
1731
  ])
1688
1732
  ]),
1689
- hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_4$B, [
1733
+ hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_4$A, [
1690
1734
  renderSlot(_ctx.$slots, "description", {}, () => [
1691
1735
  createTextVNode(toDisplayString(__props.description), 1)
1692
1736
  ])
@@ -1757,7 +1801,7 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
1757
1801
  controlled.reset();
1758
1802
  });
1759
1803
  return (_ctx, _cache) => {
1760
- return openBlock(), createBlock(_sfc_main$25, mergeProps({
1804
+ return openBlock(), createBlock(_sfc_main$27, mergeProps({
1761
1805
  key: unref(formResetRevision),
1762
1806
  ref_key: "root",
1763
1807
  ref: root,
@@ -1769,7 +1813,7 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
1769
1813
  class: rootClass.value
1770
1814
  }, passthroughAttrs.value), {
1771
1815
  default: withCtx(() => [
1772
- hasLegend.value ? (openBlock(), createBlock(_sfc_main$26, { key: 0 }, {
1816
+ hasLegend.value ? (openBlock(), createBlock(_sfc_main$28, { key: 0 }, {
1773
1817
  default: withCtx(() => [
1774
1818
  renderSlot(_ctx.$slots, "legend", {}, () => [
1775
1819
  createTextVNode(toDisplayString(__props.legend), 1)
@@ -1863,7 +1907,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
1863
1907
  controlled.reset();
1864
1908
  });
1865
1909
  return (_ctx, _cache) => {
1866
- return openBlock(), createBlock(_sfc_main$25, mergeProps({
1910
+ return openBlock(), createBlock(_sfc_main$27, mergeProps({
1867
1911
  key: unref(formResetRevision),
1868
1912
  ref_key: "root",
1869
1913
  ref: root,
@@ -1876,7 +1920,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
1876
1920
  class: rootClass.value
1877
1921
  }, passthroughAttrs.value), {
1878
1922
  default: withCtx(() => [
1879
- hasLegend.value ? (openBlock(), createBlock(_sfc_main$26, { key: 0 }, {
1923
+ hasLegend.value ? (openBlock(), createBlock(_sfc_main$28, { key: 0 }, {
1880
1924
  default: withCtx(() => [
1881
1925
  renderSlot(_ctx.$slots, "legend", {}, () => [
1882
1926
  createTextVNode(toDisplayString(__props.legend), 1)
@@ -2224,7 +2268,7 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
2224
2268
  class: normalizeClass(wrapperClass.value)
2225
2269
  }, [
2226
2270
  createElementVNode("span", _hoisted_1$1n, toDisplayString(__props.symbol), 1),
2227
- createVNode(_sfc_main$1W, mergeProps({
2271
+ createVNode(_sfc_main$1X, mergeProps({
2228
2272
  ref_key: "inner",
2229
2273
  ref: inner
2230
2274
  }, { ...numberProps.value, ...passthroughAttrs.value }, { class: "pl-7" }), null, 16)
@@ -2268,7 +2312,7 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
2268
2312
  return openBlock(), createElementBlock("div", {
2269
2313
  class: normalizeClass(wrapperClass.value)
2270
2314
  }, [
2271
- createVNode(_sfc_main$1W, mergeProps({
2315
+ createVNode(_sfc_main$1X, mergeProps({
2272
2316
  ref_key: "inner",
2273
2317
  ref: inner
2274
2318
  }, { ...props, ...passthroughAttrs.value }, { class: "pr-16" }), null, 16),
@@ -2309,7 +2353,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
2309
2353
  class: rootClass.value
2310
2354
  }, passthroughAttrs.value), [
2311
2355
  createElementVNode("div", _hoisted_1$1m, [
2312
- createVNode(_sfc_main$21, { for: unref(generatedId) }, {
2356
+ createVNode(_sfc_main$23, { for: unref(generatedId) }, {
2313
2357
  default: withCtx(() => [
2314
2358
  renderSlot(_ctx.$slots, "label", {}, () => [
2315
2359
  createTextVNode(toDisplayString(__props.label), 1)
@@ -2334,9 +2378,9 @@ const _hoisted_3$J = {
2334
2378
  key: 0,
2335
2379
  class: "text-muted-foreground"
2336
2380
  };
2337
- const _hoisted_4$A = { class: "min-w-0 flex-1" };
2381
+ const _hoisted_4$z = { class: "min-w-0 flex-1" };
2338
2382
  const _hoisted_5$p = { class: "font-medium text-foreground" };
2339
- const _hoisted_6$l = {
2383
+ const _hoisted_6$m = {
2340
2384
  key: 0,
2341
2385
  class: "mt-0.5 text-muted-foreground"
2342
2386
  };
@@ -2416,7 +2460,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
2416
2460
  for: inputId.value,
2417
2461
  class: normalizeClass(rootClass.value)
2418
2462
  }, [
2419
- isInGroup.value ? (openBlock(), createBlock(unref(_sfc_main$20), {
2463
+ isInGroup.value ? (openBlock(), createBlock(unref(_sfc_main$22), {
2420
2464
  key: 0,
2421
2465
  "is-disabled": groupDisabled.value,
2422
2466
  "is-invalid": groupInvalid.value,
@@ -2449,13 +2493,13 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
2449
2493
  createTextVNode(toDisplayString(__props.icon), 1)
2450
2494
  ])
2451
2495
  ])) : createCommentVNode("", true),
2452
- createElementVNode("div", _hoisted_4$A, [
2496
+ createElementVNode("div", _hoisted_4$z, [
2453
2497
  createElementVNode("div", _hoisted_5$p, [
2454
2498
  renderSlot(_ctx.$slots, "label", {}, () => [
2455
2499
  createTextVNode(toDisplayString(__props.label), 1)
2456
2500
  ])
2457
2501
  ]),
2458
- hasDescription.value ? (openBlock(), createElementBlock("div", _hoisted_6$l, [
2502
+ hasDescription.value ? (openBlock(), createElementBlock("div", _hoisted_6$m, [
2459
2503
  renderSlot(_ctx.$slots, "description", {}, () => [
2460
2504
  createTextVNode(toDisplayString(__props.description), 1)
2461
2505
  ])
@@ -2466,10 +2510,10 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
2466
2510
  };
2467
2511
  }
2468
2512
  });
2469
- const _hoisted_1$1k = ["disabled", "aria-describedby"];
2513
+ const _hoisted_1$1k = ["disabled", "aria-describedby", "data-readonly"];
2470
2514
  const _hoisted_2$10 = ["id", "disabled", "aria-invalid", "aria-describedby", "aria-required"];
2471
2515
  const _hoisted_3$I = {
2472
- key: 0,
2516
+ key: 1,
2473
2517
  class: "truncate text-sm text-muted-foreground"
2474
2518
  };
2475
2519
  const SizeClass$1 = {
@@ -2502,7 +2546,10 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
2502
2546
  const finalReadOnly = computed(() => props.isReadOnly ?? props.readonly ?? ctx?.isReadOnly);
2503
2547
  const inactive = computed(() => finalDisabled.value || finalReadOnly.value);
2504
2548
  const inputId = computed(() => props.id ?? ctx?.id);
2549
+ const readOnlyButton = computed(() => Boolean(finalReadOnly.value) && !finalDisabled.value);
2550
+ const readOnlyHint = useReadOnlyHint(readOnlyButton);
2505
2551
  const describedBy = computed(() => ctx?.describedBy);
2552
+ const buttonDescribedBy = computed(() => readOnlyHint.describedBy(ctx?.describedBy));
2506
2553
  const isInvalid = computed(() => ctx?.isInvalid || void 0);
2507
2554
  const finalRequired = computed(() => ctx?.isRequired || void 0);
2508
2555
  const hasPreview = computed(() => Boolean(props.preview) || Boolean(slots.preview));
@@ -2528,6 +2575,8 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
2528
2575
  const buttonClass = computed(
2529
2576
  () => cn(
2530
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",
2531
2580
  SizeClass$1[props.size] ?? SizeClass$1.md
2532
2581
  )
2533
2582
  );
@@ -2539,12 +2588,13 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
2539
2588
  }, [
2540
2589
  createElementVNode("button", {
2541
2590
  type: "button",
2542
- disabled: inactive.value,
2543
- "aria-describedby": describedBy.value,
2591
+ disabled: finalDisabled.value,
2592
+ "aria-describedby": buttonDescribedBy.value,
2593
+ "data-readonly": readOnlyButton.value || void 0,
2544
2594
  class: normalizeClass(buttonClass.value),
2545
2595
  onClick: openPicker
2546
2596
  }, [
2547
- createVNode(unref(_sfc_main$1$), {
2597
+ createVNode(unref(_sfc_main$20), {
2548
2598
  icon: unref(UploadIcon),
2549
2599
  size: 16
2550
2600
  }, null, 8, ["icon"]),
@@ -2552,6 +2602,10 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
2552
2602
  createTextVNode(toDisplayString(unref(props).label), 1)
2553
2603
  ])
2554
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),
2555
2609
  createElementVNode("input", mergeProps({
2556
2610
  ref_key: "input",
2557
2611
  ref: input,
@@ -3228,6 +3282,9 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
3228
3282
  get isDisabled() {
3229
3283
  return finalDisabled.value || finalReadOnly.value;
3230
3284
  },
3285
+ get isReadOnly() {
3286
+ return finalReadOnly.value && !finalDisabled.value;
3287
+ },
3231
3288
  get isLoading() {
3232
3289
  return props.isLoading;
3233
3290
  },
@@ -3281,7 +3338,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
3281
3338
  activeDescendant.value = null;
3282
3339
  });
3283
3340
  return (_ctx, _cache) => {
3284
- return openBlock(), createBlock(unref(_sfc_main$27), {
3341
+ return openBlock(), createBlock(unref(_sfc_main$29), {
3285
3342
  key: unref(formResetRevision),
3286
3343
  open: isOpenNow.value,
3287
3344
  placement: __props.placement,
@@ -3374,9 +3431,9 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
3374
3431
  }
3375
3432
  });
3376
3433
  const _hoisted_1$1e = ["data-skeleton", "inert"];
3377
- const _hoisted_2$X = ["id", "disabled", "aria-busy", "aria-controls", "aria-activedescendant", "aria-invalid", "aria-labelledby", "aria-describedby", "data-state"];
3434
+ const _hoisted_2$X = ["id", "disabled", "aria-readonly", "aria-busy", "aria-controls", "aria-activedescendant", "aria-invalid", "aria-labelledby", "aria-describedby", "data-state"];
3378
3435
  const _hoisted_3$G = { class: "ml-auto flex shrink-0 items-center gap-1.5" };
3379
- const _hoisted_4$z = ["aria-label"];
3436
+ const _hoisted_4$y = ["aria-label"];
3380
3437
  const TriggerIconClasses = {
3381
3438
  xs: "h-3 w-3",
3382
3439
  sm: "h-3.5 w-3.5",
@@ -3439,6 +3496,11 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
3439
3496
  function handleTriggerKeyDown(event) {
3440
3497
  attrs.onKeydown?.(event);
3441
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
+ }
3442
3504
  if (!ctx.open && triggerTypeahead.onKeyDown(event)) {
3443
3505
  event.preventDefault();
3444
3506
  }
@@ -3452,7 +3514,8 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
3452
3514
  const dividerClass = computed(() => TriggerDividerClasses[sizeKey.value]);
3453
3515
  const clearOffsetClass = computed(() => TriggerClearOffsetClasses[sizeKey.value]);
3454
3516
  const labelledBy = computed(() => !ariaLabel.value ? ctx.labelId : void 0);
3455
- const dataState = computed(() => triggerDataState(ctx.open, ctx.isLoading, ctx.isDisabled, ctx.isInvalid));
3517
+ const isHardDisabled = computed(() => ctx.isDisabled && !ctx.isReadOnly);
3518
+ const dataState = computed(() => triggerDataState(ctx.open, ctx.isLoading, isHardDisabled.value, ctx.isInvalid));
3456
3519
  const chevronClass = computed(
3457
3520
  () => cn(iconClass.value, "text-muted-foreground transition-transform", ctx.open && "rotate-180")
3458
3521
  );
@@ -3492,20 +3555,22 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
3492
3555
  "data-skeleton": unref(skeleton).isSkeleton.value || void 0,
3493
3556
  inert: unref(skeleton).isSkeleton.value || void 0
3494
3557
  }, [
3495
- createVNode(unref(_sfc_main$28), null, {
3558
+ createVNode(unref(_sfc_main$2a), null, {
3496
3559
  default: withCtx(() => [
3497
3560
  createTextVNode(toDisplayString(unref(ctx).isLoading ? unref(ctx).loadingLabel : ""), 1)
3498
3561
  ]),
3499
3562
  _: 1
3500
3563
  }),
3501
- createVNode(unref(_sfc_main$29), { "as-child": "" }, {
3564
+ createVNode(unref(_sfc_main$2b), { "as-child": "" }, {
3502
3565
  default: withCtx(() => [
3503
3566
  createElementVNode("button", mergeProps({
3504
3567
  ref_key: "root",
3505
3568
  ref: root,
3506
3569
  type: "button",
3570
+ role: "combobox",
3507
3571
  id: unref(ctx).fieldId,
3508
- disabled: unref(ctx).isDisabled || unref(ctx).isLoading,
3572
+ disabled: isHardDisabled.value || unref(ctx).isLoading,
3573
+ "aria-readonly": unref(ctx).isReadOnly || void 0,
3509
3574
  "aria-busy": unref(ctx).isLoading || void 0,
3510
3575
  "aria-haspopup": "listbox",
3511
3576
  "aria-controls": unref(ctx).listboxId,
@@ -3552,7 +3617,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
3552
3617
  createVNode(unref(ClearIcon), {
3553
3618
  class: normalizeClass(iconClass.value)
3554
3619
  }, null, 8, ["class"])
3555
- ], 10, _hoisted_4$z)) : createCommentVNode("", true)
3620
+ ], 10, _hoisted_4$y)) : createCommentVNode("", true)
3556
3621
  ], 14, _hoisted_1$1e);
3557
3622
  };
3558
3623
  }
@@ -3654,7 +3719,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
3654
3719
  const selectedForListbox = computed(() => ctx.selectedKey ?? void 0);
3655
3720
  return (_ctx, _cache) => {
3656
3721
  return openBlock(), createElementBlock(Fragment, null, [
3657
- createVNode(unref(_sfc_main$2a), mergeProps({
3722
+ createVNode(unref(_sfc_main$2c), mergeProps({
3658
3723
  variant: __props.variant,
3659
3724
  tone: __props.tone,
3660
3725
  radius: __props.radius,
@@ -3665,7 +3730,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
3665
3730
  }), {
3666
3731
  default: withCtx(() => [
3667
3732
  __props.isSearchable ? (openBlock(), createElementBlock("div", _hoisted_1$1d, [
3668
- createVNode(_sfc_main$1U, {
3733
+ createVNode(_sfc_main$1V, {
3669
3734
  size: "sm",
3670
3735
  autofocus: "",
3671
3736
  role: "combobox",
@@ -3802,6 +3867,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
3802
3867
  const finalReadOnly = computed(() => props.isReadOnly ?? field?.isReadOnly ?? false);
3803
3868
  const inactive = computed(() => finalDisabled.value || finalReadOnly.value);
3804
3869
  const finalInvalid = computed(() => props.isInvalid ?? field?.isInvalid);
3870
+ const listboxId = useId("multi-select-listbox");
3805
3871
  const openCtl = useControlled({
3806
3872
  controlled: () => props.open,
3807
3873
  default: () => props.defaultOpen,
@@ -3830,13 +3896,14 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
3830
3896
  function getOptionLabelFn(value) {
3831
3897
  return props.getOptionLabel?.(value) ?? null;
3832
3898
  }
3899
+ function onOpenChange(next) {
3900
+ if (!next || !inactive.value) openCtl.setValue(next);
3901
+ }
3833
3902
  provide(multiSelectContextKey, {
3834
3903
  get open() {
3835
3904
  return openCtl.value.value;
3836
3905
  },
3837
- setOpen: (next) => {
3838
- if (!next || !inactive.value) openCtl.setValue(next);
3839
- },
3906
+ setOpen: onOpenChange,
3840
3907
  get values() {
3841
3908
  return valuesCtl.value.value;
3842
3909
  },
@@ -3852,12 +3919,18 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
3852
3919
  get isDisabled() {
3853
3920
  return inactive.value;
3854
3921
  },
3922
+ get isReadOnly() {
3923
+ return finalReadOnly.value && !finalDisabled.value;
3924
+ },
3855
3925
  get name() {
3856
3926
  return props.name;
3857
3927
  },
3858
3928
  get isInvalid() {
3859
3929
  return finalInvalid.value;
3860
3930
  },
3931
+ get listboxId() {
3932
+ return listboxId;
3933
+ },
3861
3934
  get fieldId() {
3862
3935
  return field?.id;
3863
3936
  },
@@ -3876,12 +3949,12 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
3876
3949
  valuesCtl.reset();
3877
3950
  });
3878
3951
  return (_ctx, _cache) => {
3879
- return openBlock(), createBlock(unref(_sfc_main$27), {
3952
+ return openBlock(), createBlock(unref(_sfc_main$29), {
3880
3953
  key: unref(formResetRevision),
3881
3954
  open: isOpenNow.value,
3882
3955
  placement: __props.placement,
3883
3956
  offset: 6,
3884
- "onUpdate:open": unref(openCtl).setValue
3957
+ "onUpdate:open": onOpenChange
3885
3958
  }, {
3886
3959
  default: withCtx(() => [
3887
3960
  renderSlot(_ctx.$slots, "default"),
@@ -3904,7 +3977,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
3904
3977
  }, null, 8, _hoisted_2$V)
3905
3978
  ]),
3906
3979
  _: 3
3907
- }, 8, ["open", "placement", "onUpdate:open"]);
3980
+ }, 8, ["open", "placement"]);
3908
3981
  };
3909
3982
  }
3910
3983
  });
@@ -3917,7 +3990,7 @@ const _hoisted_3$F = {
3917
3990
  key: 0,
3918
3991
  class: "ml-0.5 flex shrink-0 items-center gap-1.5"
3919
3992
  };
3920
- const _hoisted_4$y = { class: "text-xs font-medium tabular-nums text-muted-foreground" };
3993
+ const _hoisted_4$x = { class: "text-xs font-medium tabular-nums text-muted-foreground" };
3921
3994
  const _sfc_main$1r = /* @__PURE__ */ defineComponent({
3922
3995
  ...{ name: "MultiSelectPickerTags" },
3923
3996
  __name: "MultiSelectPickerTags",
@@ -3980,13 +4053,13 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
3980
4053
  "aria-hidden": "true",
3981
4054
  class: "h-4 w-px shrink-0 bg-border"
3982
4055
  }, null, -1)),
3983
- createElementVNode("span", _hoisted_4$y, " +" + toDisplayString(overflowCount.value), 1)
4056
+ createElementVNode("span", _hoisted_4$x, " +" + toDisplayString(overflowCount.value), 1)
3984
4057
  ])) : createCommentVNode("", true)
3985
4058
  ], 2));
3986
4059
  };
3987
4060
  }
3988
4061
  });
3989
- const _hoisted_1$1a = ["id", "disabled", "aria-invalid", "aria-labelledby", "aria-describedby"];
4062
+ const _hoisted_1$1a = ["id", "disabled", "aria-readonly", "aria-controls", "aria-invalid", "aria-labelledby", "aria-describedby"];
3990
4063
  const _sfc_main$1q = /* @__PURE__ */ defineComponent({
3991
4064
  ...{ name: "MultiSelectPickerTrigger", inheritAttrs: false },
3992
4065
  __name: "MultiSelectPickerTrigger",
@@ -4007,6 +4080,11 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
4007
4080
  function onKeydown(event) {
4008
4081
  if (event.isComposing) return;
4009
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
+ }
4010
4088
  if (event.key === "Backspace" && ctx.values.length > 0) {
4011
4089
  ctx.setValues(ctx.values.slice(0, -1));
4012
4090
  }
@@ -4029,14 +4107,18 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
4029
4107
  const ChevronDownIcon = ChevronDown;
4030
4108
  __expose({ el: root });
4031
4109
  return (_ctx, _cache) => {
4032
- return openBlock(), createBlock(unref(_sfc_main$29), { "as-child": "" }, {
4110
+ return openBlock(), createBlock(unref(_sfc_main$2b), { "as-child": "" }, {
4033
4111
  default: withCtx(() => [
4034
4112
  createElementVNode("button", mergeProps({
4035
4113
  ref_key: "root",
4036
4114
  ref: root,
4037
4115
  type: "button",
4116
+ role: "combobox",
4038
4117
  id: unref(ctx).fieldId,
4039
- disabled: unref(ctx).isDisabled,
4118
+ disabled: unref(ctx).isDisabled && !unref(ctx).isReadOnly,
4119
+ "aria-readonly": unref(ctx).isReadOnly || void 0,
4120
+ "aria-haspopup": "listbox",
4121
+ "aria-controls": unref(ctx).listboxId,
4040
4122
  "aria-invalid": triggerState.value === "invalid" || void 0,
4041
4123
  "aria-labelledby": labelledBy.value,
4042
4124
  "aria-describedby": unref(ctx).describedBy,
@@ -4078,7 +4160,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
4078
4160
  }
4079
4161
  return (_ctx, _cache) => {
4080
4162
  return openBlock(), createElementBlock(Fragment, null, [
4081
- createVNode(unref(_sfc_main$2a), {
4163
+ createVNode(unref(_sfc_main$2c), {
4082
4164
  variant: __props.variant,
4083
4165
  tone: __props.tone,
4084
4166
  radius: __props.radius,
@@ -4088,6 +4170,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
4088
4170
  }, {
4089
4171
  default: withCtx(() => [
4090
4172
  createVNode(unref(_sfc_main$1C), {
4173
+ id: unref(ctx).listboxId,
4091
4174
  "is-disabled": unref(ctx).isDisabled,
4092
4175
  "is-multiple": "",
4093
4176
  "model-value": selected.value,
@@ -4099,7 +4182,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
4099
4182
  renderSlot(_ctx.$slots, "default")
4100
4183
  ]),
4101
4184
  _: 3
4102
- }, 8, ["is-disabled", "model-value"])
4185
+ }, 8, ["id", "is-disabled", "model-value"])
4103
4186
  ]),
4104
4187
  _: 3
4105
4188
  }, 8, ["variant", "tone", "radius", "padding", "elevation", "class"]),
@@ -4273,6 +4356,9 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
4273
4356
  get isDisabled() {
4274
4357
  return inactive.value;
4275
4358
  },
4359
+ get isReadOnly() {
4360
+ return finalReadOnly.value && !finalDisabled.value;
4361
+ },
4276
4362
  get isInvalid() {
4277
4363
  return props.isInvalid ?? field?.isInvalid;
4278
4364
  },
@@ -4307,7 +4393,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
4307
4393
  };
4308
4394
  }
4309
4395
  });
4310
- const _hoisted_1$18 = ["aria-expanded", "aria-controls", "aria-activedescendant", "aria-disabled", "disabled", "value"];
4396
+ const _hoisted_1$18 = ["aria-expanded", "aria-controls", "aria-activedescendant", "aria-disabled", "disabled", "readonly", "value"];
4311
4397
  const _sfc_main$1m = /* @__PURE__ */ defineComponent({
4312
4398
  ...{ name: "ComboboxPickerInput", inheritAttrs: false },
4313
4399
  __name: "ComboboxPickerInput",
@@ -4417,6 +4503,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
4417
4503
  const passthroughAttrs = computed(
4418
4504
  () => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
4419
4505
  );
4506
+ const isHardDisabled = computed(() => ctx.isDisabled && !ctx.isReadOnly);
4420
4507
  const inputClass = computed(
4421
4508
  () => cn(inputBaseVariants({ size: props.size, state: inputState.value }), attrs.class)
4422
4509
  );
@@ -4430,8 +4517,9 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
4430
4517
  "aria-controls": unref(ctx).listboxId,
4431
4518
  "aria-activedescendant": activeDescendant.value,
4432
4519
  "aria-autocomplete": "list",
4433
- "aria-disabled": unref(ctx).isDisabled || void 0,
4434
- disabled: unref(ctx).isDisabled,
4520
+ "aria-disabled": isHardDisabled.value || void 0,
4521
+ disabled: isHardDisabled.value,
4522
+ readonly: unref(ctx).isReadOnly,
4435
4523
  value: unref(ctx).inputValue,
4436
4524
  class: inputClass.value
4437
4525
  }, passthroughAttrs.value, {
@@ -4518,19 +4606,19 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
4518
4606
  )
4519
4607
  );
4520
4608
  return (_ctx, _cache) => {
4521
- return openBlock(), createBlock(unref(_sfc_main$2b), null, {
4609
+ return openBlock(), createBlock(unref(_sfc_main$2d), null, {
4522
4610
  default: withCtx(() => [
4523
4611
  createVNode(unref(Presence), { "is-present": isOpen.value }, {
4524
4612
  default: withCtx(() => [
4525
4613
  createElementVNode("div", _hoisted_1$17, [
4526
- createVNode(unref(_sfc_main$2c), {
4614
+ createVNode(unref(_sfc_main$2e), {
4527
4615
  anchor: anchor.value,
4528
4616
  placement: __props.placement,
4529
4617
  offset: __props.offset,
4530
4618
  class: "z-dropdown"
4531
4619
  }, {
4532
4620
  default: withCtx(() => [
4533
- createVNode(unref(_sfc_main$2d), mergeProps({
4621
+ createVNode(unref(_sfc_main$2f), mergeProps({
4534
4622
  ref: setRef,
4535
4623
  "on-escape": onEscape,
4536
4624
  "on-outside-pointer-down": onOutsidePointerDown,
@@ -4699,10 +4787,10 @@ const _hoisted_3$E = {
4699
4787
  class: "text-sm font-medium",
4700
4788
  "aria-live": "polite"
4701
4789
  };
4702
- const _hoisted_4$x = ["aria-label"];
4790
+ const _hoisted_4$w = ["aria-label"];
4703
4791
  const _hoisted_5$o = { class: "grid grid-cols-7 gap-0 px-1" };
4704
- const _hoisted_6$k = ["aria-label"];
4705
- const _hoisted_7$e = ["data-date", "aria-disabled", "data-today", "data-out-of-month", "data-disabled", "tabindex", "onClick", "onKeydown"];
4792
+ const _hoisted_6$l = ["aria-label"];
4793
+ const _hoisted_7$f = ["data-date", "aria-disabled", "data-today", "data-out-of-month", "data-disabled", "tabindex", "onClick", "onKeydown"];
4706
4794
  const MaxDisabledSkip$1 = 400;
4707
4795
  const _sfc_main$1g = /* @__PURE__ */ defineComponent({
4708
4796
  ...{ name: "MonthGrid", inheritAttrs: false },
@@ -4890,7 +4978,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
4890
4978
  onClick: _cache[1] || (_cache[1] = ($event) => emit("update:viewMonth", unref(addMonths)(__props.viewMonth, 1)))
4891
4979
  }, [
4892
4980
  createVNode(unref(ChevronRightIcon), { class: "h-4 w-4" })
4893
- ], 8, _hoisted_4$x)
4981
+ ], 8, _hoisted_4$w)
4894
4982
  ]),
4895
4983
  createElementVNode("div", _hoisted_5$o, [
4896
4984
  (openBlock(true), createElementBlock(Fragment, null, renderList(WeekdayLabels.value, (w) => {
@@ -4928,11 +5016,11 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
4928
5016
  class: cellClass(cell.date, cell.outOfMonth),
4929
5017
  onClick: ($event) => onCellClick(cell.date, cell.outOfMonth),
4930
5018
  onKeydown: ($event) => onCellKeydown($event, cell.date, cell.outOfMonth)
4931
- }), toDisplayString(cell.date.day), 17, _hoisted_7$e);
5019
+ }), toDisplayString(cell.date.day), 17, _hoisted_7$f);
4932
5020
  }), 128))
4933
5021
  ]);
4934
5022
  }), 128))
4935
- ], 8, _hoisted_6$k)
5023
+ ], 8, _hoisted_6$l)
4936
5024
  ], 2);
4937
5025
  };
4938
5026
  }
@@ -5188,7 +5276,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5188
5276
  "aria-invalid": isInvalid.value,
5189
5277
  "aria-describedby": describedBy.value,
5190
5278
  class: inputClass.value
5191
- }, passthroughAttrs.value, { onInput: onNativeInput }), null, 16, _hoisted_1$12)) : (openBlock(), createBlock(unref(_sfc_main$27), {
5279
+ }, passthroughAttrs.value, { onInput: onNativeInput }), null, 16, _hoisted_1$12)) : (openBlock(), createBlock(unref(_sfc_main$29), {
5192
5280
  key: 1,
5193
5281
  open: open.value,
5194
5282
  "onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
@@ -5216,7 +5304,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5216
5304
  onBlur,
5217
5305
  onKeydown
5218
5306
  }), null, 16, _hoisted_2$P),
5219
- createVNode(unref(_sfc_main$29), {
5307
+ createVNode(unref(_sfc_main$2b), {
5220
5308
  "aria-label": unref(locale).t("DateInput.chooseDate", void 0, "Choose date"),
5221
5309
  disabled: finalDisabled.value || finalReadOnly.value,
5222
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"
@@ -5226,7 +5314,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5226
5314
  ]),
5227
5315
  _: 1
5228
5316
  }, 8, ["aria-label", "disabled"]),
5229
- createVNode(unref(_sfc_main$2a), { "is-bare": "" }, {
5317
+ createVNode(unref(_sfc_main$2c), { "is-bare": "" }, {
5230
5318
  default: withCtx(() => [
5231
5319
  createVNode(_sfc_main$1f, {
5232
5320
  "model-value": unref(committed),
@@ -5249,7 +5337,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
5249
5337
  const _hoisted_1$11 = ["aria-label", "tabindex", "aria-disabled", "aria-readonly", "aria-activedescendant"];
5250
5338
  const _hoisted_2$O = ["id", "disabled", "aria-selected", "data-active", "data-selected", "onClick"];
5251
5339
  const _hoisted_3$D = ["aria-label", "tabindex", "aria-disabled", "aria-readonly", "aria-activedescendant"];
5252
- const _hoisted_4$w = ["id", "disabled", "aria-selected", "data-active", "data-selected", "onClick"];
5340
+ const _hoisted_4$v = ["id", "disabled", "aria-selected", "data-active", "data-selected", "onClick"];
5253
5341
  const _sfc_main$1d = /* @__PURE__ */ defineComponent({
5254
5342
  ...{ name: "TimeColumns", inheritAttrs: false },
5255
5343
  __name: "TimeColumns",
@@ -5429,7 +5517,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
5429
5517
  "data-selected": __props.modelValue?.minute === minute ? "" : void 0,
5430
5518
  class: normalizeClass(cellClass(__props.modelValue?.minute === minute, activeMinute.value === minute)),
5431
5519
  onClick: ($event) => select("minute", minute)
5432
- }, toDisplayString(pad(minute)), 11, _hoisted_4$w);
5520
+ }, toDisplayString(pad(minute)), 11, _hoisted_4$v);
5433
5521
  }), 128))
5434
5522
  ], 40, _hoisted_3$D)
5435
5523
  ], 16);
@@ -5439,7 +5527,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
5439
5527
  const _hoisted_1$10 = ["step", "id", "value", "min", "max", "disabled", "readonly", "required", "aria-invalid", "aria-describedby"];
5440
5528
  const _hoisted_2$N = ["id", "value", "placeholder", "disabled", "readonly", "required", "aria-invalid", "aria-describedby"];
5441
5529
  const _hoisted_3$C = { class: "flex items-start gap-2" };
5442
- const _hoisted_4$v = ["disabled", "form", "name", "value"];
5530
+ const _hoisted_4$u = ["disabled", "form", "name", "value"];
5443
5531
  const _sfc_main$1c = /* @__PURE__ */ defineComponent({
5444
5532
  ...{ name: "DateTimeInput", inheritAttrs: false },
5445
5533
  __name: "DateTimeInput",
@@ -5611,7 +5699,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
5611
5699
  "aria-invalid": isInvalid.value,
5612
5700
  "aria-describedby": describedBy.value,
5613
5701
  class: inputClass.value
5614
- }, passthroughAttrs.value, { onInput: onNativeInput }), null, 16, _hoisted_1$10)) : (openBlock(), createBlock(unref(_sfc_main$27), {
5702
+ }, passthroughAttrs.value, { onInput: onNativeInput }), null, 16, _hoisted_1$10)) : (openBlock(), createBlock(unref(_sfc_main$29), {
5615
5703
  key: 1,
5616
5704
  open: open.value,
5617
5705
  "onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
@@ -5639,7 +5727,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
5639
5727
  onBlur,
5640
5728
  onKeydown
5641
5729
  }), null, 16, _hoisted_2$N),
5642
- createVNode(unref(_sfc_main$29), {
5730
+ createVNode(unref(_sfc_main$2b), {
5643
5731
  "aria-label": unref(locale).t("DateTimeInput.chooseDateAndTime", void 0, "Choose date and time"),
5644
5732
  disabled: finalDisabled.value || finalReadOnly.value,
5645
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"
@@ -5649,7 +5737,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
5649
5737
  ]),
5650
5738
  _: 1
5651
5739
  }, 8, ["aria-label", "disabled"]),
5652
- createVNode(unref(_sfc_main$2a), { "is-bare": "" }, {
5740
+ createVNode(unref(_sfc_main$2c), { "is-bare": "" }, {
5653
5741
  default: withCtx(() => [
5654
5742
  createElementVNode("div", _hoisted_3$C, [
5655
5743
  createVNode(_sfc_main$1f, {
@@ -5682,7 +5770,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
5682
5770
  form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
5683
5771
  name: __props.name,
5684
5772
  value: isoValue.value
5685
- }, null, 8, _hoisted_4$v)) : createCommentVNode("", true)
5773
+ }, null, 8, _hoisted_4$u)) : createCommentVNode("", true)
5686
5774
  ], 2);
5687
5775
  };
5688
5776
  }
@@ -5839,7 +5927,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
5839
5927
  "aria-invalid": isInvalid.value,
5840
5928
  "aria-describedby": describedBy.value,
5841
5929
  class: inputClass.value
5842
- }, passthroughAttrs.value, { onInput: onNativeInput }), null, 16, _hoisted_1$$)) : (openBlock(), createBlock(unref(_sfc_main$27), {
5930
+ }, passthroughAttrs.value, { onInput: onNativeInput }), null, 16, _hoisted_1$$)) : (openBlock(), createBlock(unref(_sfc_main$29), {
5843
5931
  key: 1,
5844
5932
  open: open.value,
5845
5933
  "onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
@@ -5868,7 +5956,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
5868
5956
  onBlur,
5869
5957
  onKeydown
5870
5958
  }), null, 16, _hoisted_2$M),
5871
- createVNode(unref(_sfc_main$29), {
5959
+ createVNode(unref(_sfc_main$2b), {
5872
5960
  "aria-label": unref(locale).t("TimeInput.chooseTime", void 0, "Choose time"),
5873
5961
  disabled: finalDisabled.value || finalReadOnly.value,
5874
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"
@@ -5878,7 +5966,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
5878
5966
  ]),
5879
5967
  _: 1
5880
5968
  }, 8, ["aria-label", "disabled"]),
5881
- createVNode(unref(_sfc_main$2a), { "is-bare": "" }, {
5969
+ createVNode(unref(_sfc_main$2c), { "is-bare": "" }, {
5882
5970
  default: withCtx(() => [
5883
5971
  createVNode(_sfc_main$1d, {
5884
5972
  "is-disabled": finalDisabled.value || finalReadOnly.value,
@@ -6113,14 +6201,21 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
6113
6201
  const ariaLabel = computed(() => attrs[AriaAttribute.Label]);
6114
6202
  const triggerId = computed(() => props.id ?? field?.id);
6115
6203
  const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
6116
- const describedBy = computed(() => field?.describedBy);
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
+ );
6117
6209
  const ariaInvalid = computed(() => triggerState.value === InputState.Invalid || void 0);
6118
6210
  const defaultMonth = computed(() => date.value ?? today());
6119
6211
  const hiddenValue = computed(() => formatISODate(date.value));
6120
- const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label]);
6212
+ const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label, AriaAttribute.DescribedBy]);
6121
6213
  const passthroughAttrs = computed(
6122
6214
  () => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
6123
6215
  );
6216
+ function onTriggerClick(event) {
6217
+ if (finalReadOnly.value) event.preventDefault();
6218
+ }
6124
6219
  const triggerClass = computed(
6125
6220
  () => cn(selectTriggerVariants({ size: props.size, state: triggerState.value }), attrs.class)
6126
6221
  );
@@ -6132,7 +6227,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
6132
6227
  controlled.reset();
6133
6228
  });
6134
6229
  return (_ctx, _cache) => {
6135
- return openBlock(), createBlock(unref(_sfc_main$27), {
6230
+ return openBlock(), createBlock(unref(_sfc_main$29), {
6136
6231
  key: unref(formResetRevision),
6137
6232
  open: open.value,
6138
6233
  "onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
@@ -6140,17 +6235,18 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
6140
6235
  offset: 6
6141
6236
  }, {
6142
6237
  default: withCtx(() => [
6143
- createVNode(unref(_sfc_main$29), mergeProps({
6238
+ createVNode(unref(_sfc_main$2b), mergeProps({
6144
6239
  ref_key: "trigger",
6145
6240
  ref: trigger,
6146
6241
  id: triggerId.value,
6147
- disabled: finalDisabled.value || finalReadOnly.value,
6242
+ disabled: finalDisabled.value,
6243
+ "data-readonly": readOnlyTrigger.value || void 0,
6148
6244
  "aria-invalid": ariaInvalid.value,
6149
6245
  "aria-label": ariaLabel.value,
6150
6246
  "aria-labelledby": labelledBy.value,
6151
6247
  "aria-describedby": describedBy.value,
6152
6248
  class: triggerClass.value
6153
- }, passthroughAttrs.value), {
6249
+ }, passthroughAttrs.value, { onClick: onTriggerClick }), {
6154
6250
  default: withCtx(() => [
6155
6251
  createElementVNode("span", {
6156
6252
  class: normalizeClass(labelClass.value)
@@ -6158,8 +6254,12 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
6158
6254
  createVNode(unref(Calendar), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
6159
6255
  ]),
6160
6256
  _: 1
6161
- }, 16, ["id", "disabled", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
6162
- createVNode(unref(_sfc_main$2a), { "is-bare": "" }, {
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": "" }, {
6163
6263
  default: withCtx(() => [
6164
6264
  createVNode(_sfc_main$1f, {
6165
6265
  "model-value": unref(date),
@@ -6174,7 +6274,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
6174
6274
  _: 1
6175
6275
  }),
6176
6276
  __props.name ? (openBlock(), createElementBlock("input", {
6177
- key: 0,
6277
+ key: 1,
6178
6278
  type: "hidden",
6179
6279
  disabled: finalDisabled.value,
6180
6280
  form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
@@ -6252,13 +6352,20 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6252
6352
  const ariaLabel = computed(() => attrs[AriaAttribute.Label]);
6253
6353
  const triggerId = computed(() => props.id ?? field?.id);
6254
6354
  const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
6255
- const describedBy = computed(() => field?.describedBy);
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
+ );
6256
6360
  const ariaInvalid = computed(() => triggerState.value === InputState.Invalid || void 0);
6257
6361
  const hiddenValue = computed(() => time.value?.toString({ smallestUnit: "minute" }) ?? "");
6258
- const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label]);
6362
+ const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label, AriaAttribute.DescribedBy]);
6259
6363
  const passthroughAttrs = computed(
6260
6364
  () => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
6261
6365
  );
6366
+ function onTriggerClick(event) {
6367
+ if (finalReadOnly.value) event.preventDefault();
6368
+ }
6262
6369
  const triggerClass = computed(
6263
6370
  () => cn(selectTriggerVariants({ size: props.size, state: triggerState.value }), attrs.class)
6264
6371
  );
@@ -6270,7 +6377,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6270
6377
  controlled.reset();
6271
6378
  });
6272
6379
  return (_ctx, _cache) => {
6273
- return openBlock(), createBlock(unref(_sfc_main$27), {
6380
+ return openBlock(), createBlock(unref(_sfc_main$29), {
6274
6381
  key: unref(formResetRevision),
6275
6382
  open: open.value,
6276
6383
  "onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
@@ -6278,17 +6385,18 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6278
6385
  offset: 6
6279
6386
  }, {
6280
6387
  default: withCtx(() => [
6281
- createVNode(unref(_sfc_main$29), mergeProps({
6388
+ createVNode(unref(_sfc_main$2b), mergeProps({
6282
6389
  ref_key: "trigger",
6283
6390
  ref: trigger,
6284
6391
  id: triggerId.value,
6285
- disabled: finalDisabled.value || finalReadOnly.value,
6392
+ disabled: finalDisabled.value,
6393
+ "data-readonly": readOnlyTrigger.value || void 0,
6286
6394
  "aria-invalid": ariaInvalid.value,
6287
6395
  "aria-label": ariaLabel.value,
6288
6396
  "aria-labelledby": labelledBy.value,
6289
6397
  "aria-describedby": describedBy.value,
6290
6398
  class: triggerClass.value
6291
- }, passthroughAttrs.value), {
6399
+ }, passthroughAttrs.value, { onClick: onTriggerClick }), {
6292
6400
  default: withCtx(() => [
6293
6401
  createElementVNode("span", {
6294
6402
  class: normalizeClass(labelClass.value)
@@ -6296,8 +6404,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6296
6404
  createVNode(unref(Clock), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
6297
6405
  ]),
6298
6406
  _: 1
6299
- }, 16, ["id", "disabled", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
6300
- createVNode(unref(_sfc_main$2a), { "is-bare": "" }, {
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": "" }, {
6301
6413
  default: withCtx(() => [
6302
6414
  createVNode(_sfc_main$1d, {
6303
6415
  "is-disabled": finalDisabled.value || finalReadOnly.value,
@@ -6311,7 +6423,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
6311
6423
  _: 1
6312
6424
  }),
6313
6425
  __props.name && unref(time) ? (openBlock(), createElementBlock("input", {
6314
- key: 0,
6426
+ key: 1,
6315
6427
  type: "hidden",
6316
6428
  disabled: finalDisabled.value,
6317
6429
  form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
@@ -6403,15 +6515,22 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
6403
6515
  const ariaLabel = computed(() => attrs[AriaAttribute.Label]);
6404
6516
  const triggerId = computed(() => props.id ?? field?.id);
6405
6517
  const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
6406
- const describedBy = computed(() => field?.describedBy);
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
+ );
6407
6523
  const ariaInvalid = computed(() => triggerState.value === InputState.Invalid || void 0);
6408
6524
  const defaultMonth = computed(() => range.value?.start ?? today());
6409
6525
  const hiddenStart = computed(() => formatISODate(range.value?.start));
6410
6526
  const hiddenEnd = computed(() => formatISODate(range.value?.end));
6411
- const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label]);
6527
+ const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label, AriaAttribute.DescribedBy]);
6412
6528
  const passthroughAttrs = computed(
6413
6529
  () => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
6414
6530
  );
6531
+ function onTriggerClick(event) {
6532
+ if (finalReadOnly.value) event.preventDefault();
6533
+ }
6415
6534
  const triggerClass = computed(
6416
6535
  () => cn(selectTriggerVariants({ size: props.size, state: triggerState.value }), attrs.class)
6417
6536
  );
@@ -6423,7 +6542,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
6423
6542
  controlled.reset();
6424
6543
  });
6425
6544
  return (_ctx, _cache) => {
6426
- return openBlock(), createBlock(unref(_sfc_main$27), {
6545
+ return openBlock(), createBlock(unref(_sfc_main$29), {
6427
6546
  key: unref(formResetRevision),
6428
6547
  open: open.value,
6429
6548
  "onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
@@ -6431,17 +6550,18 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
6431
6550
  offset: 6
6432
6551
  }, {
6433
6552
  default: withCtx(() => [
6434
- createVNode(unref(_sfc_main$29), mergeProps({
6553
+ createVNode(unref(_sfc_main$2b), mergeProps({
6435
6554
  ref_key: "trigger",
6436
6555
  ref: trigger,
6437
6556
  id: triggerId.value,
6438
- disabled: finalDisabled.value || finalReadOnly.value,
6557
+ disabled: finalDisabled.value,
6558
+ "data-readonly": readOnlyTrigger.value || void 0,
6439
6559
  "aria-invalid": ariaInvalid.value,
6440
6560
  "aria-label": ariaLabel.value,
6441
6561
  "aria-labelledby": labelledBy.value,
6442
6562
  "aria-describedby": describedBy.value,
6443
6563
  class: triggerClass.value
6444
- }, passthroughAttrs.value), {
6564
+ }, passthroughAttrs.value, { onClick: onTriggerClick }), {
6445
6565
  default: withCtx(() => [
6446
6566
  createElementVNode("span", {
6447
6567
  class: normalizeClass(labelClass.value)
@@ -6449,8 +6569,12 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
6449
6569
  createVNode(unref(Calendar), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
6450
6570
  ]),
6451
6571
  _: 1
6452
- }, 16, ["id", "disabled", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
6453
- createVNode(unref(_sfc_main$2a), { "is-bare": "" }, {
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": "" }, {
6454
6578
  default: withCtx(() => [
6455
6579
  createVNode(_sfc_main$1a, {
6456
6580
  "model-value": unref(range),
@@ -6464,7 +6588,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
6464
6588
  ]),
6465
6589
  _: 1
6466
6590
  }),
6467
- __props.name ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
6591
+ __props.name ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
6468
6592
  createElementVNode("input", {
6469
6593
  type: "hidden",
6470
6594
  disabled: finalDisabled.value,
@@ -6695,7 +6819,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
6695
6819
  return (_ctx, _cache) => {
6696
6820
  return openBlock(), createElementBlock("div", _hoisted_1$W, [
6697
6821
  createElementVNode("span", _hoisted_2$I, [
6698
- createVNode(_sfc_main$2e, {
6822
+ createVNode(_sfc_main$2g, {
6699
6823
  color: swatchColor.value,
6700
6824
  size: "sm",
6701
6825
  shape: __props.swatchShape
@@ -6941,10 +7065,10 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
6941
7065
  };
6942
7066
  }
6943
7067
  });
6944
- const _hoisted_1$U = ["id", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby", "aria-disabled", "aria-readonly", "data-disabled"];
7068
+ const _hoisted_1$U = ["id", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby", "aria-disabled", "data-disabled"];
6945
7069
  const _hoisted_2$G = ["tabindex", "aria-label", "aria-valuenow", "aria-valuetext", "aria-disabled", "aria-readonly"];
6946
7070
  const _hoisted_3$z = ["tabindex", "aria-label", "aria-valuenow", "aria-valuetext", "aria-disabled", "aria-readonly"];
6947
- const _hoisted_4$u = ["form"];
7071
+ const _hoisted_4$t = ["form"];
6948
7072
  const _sfc_main$14 = /* @__PURE__ */ defineComponent({
6949
7073
  ...{ name: "ColorArea", inheritAttrs: false },
6950
7074
  __name: "ColorArea",
@@ -7092,7 +7216,6 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
7092
7216
  "aria-invalid": isInvalid.value,
7093
7217
  "aria-describedby": describedBy.value,
7094
7218
  "aria-disabled": disabled.value || void 0,
7095
- "aria-readonly": readOnly.value || void 0,
7096
7219
  "data-disabled": disabled.value ? "" : void 0,
7097
7220
  style: trackStyle.value,
7098
7221
  class: rootClass.value
@@ -7137,7 +7260,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
7137
7260
  type: "hidden",
7138
7261
  form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
7139
7262
  "aria-hidden": "true"
7140
- }, null, 8, _hoisted_4$u)
7263
+ }, null, 8, _hoisted_4$t)
7141
7264
  ], 16, _hoisted_1$U);
7142
7265
  };
7143
7266
  }
@@ -7328,6 +7451,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
7328
7451
  color: {},
7329
7452
  isSelected: { type: Boolean },
7330
7453
  isDisabled: { type: Boolean },
7454
+ isReadOnly: { type: Boolean },
7331
7455
  size: {},
7332
7456
  shape: {}
7333
7457
  },
@@ -7346,20 +7470,21 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
7346
7470
  }
7347
7471
  }
7348
7472
  return (_ctx, _cache) => {
7349
- return openBlock(), createBlock(_sfc_main$2e, {
7473
+ return openBlock(), createBlock(_sfc_main$2g, {
7350
7474
  ref: unref(roving).ref,
7351
7475
  color: __props.color,
7352
7476
  size: __props.size,
7353
7477
  shape: __props.shape,
7354
7478
  "is-selected": __props.isSelected,
7355
7479
  "is-disabled": __props.isDisabled,
7480
+ class: normalizeClass(__props.isReadOnly && "cursor-default hover:shadow-none"),
7356
7481
  tabindex: unref(roving).tabindex,
7357
7482
  "data-roving-focus-item": unref(roving)["data-roving-focus-item"],
7358
7483
  "aria-label": __props.color,
7359
7484
  onClick: _cache[0] || (_cache[0] = ($event) => emit("select", __props.color)),
7360
7485
  onFocus: _cache[1] || (_cache[1] = ($event) => unref(roving).onFocus()),
7361
7486
  onKeydown: handleKeydown
7362
- }, 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"]);
7363
7488
  };
7364
7489
  }
7365
7490
  });
@@ -7384,6 +7509,9 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
7384
7509
  const attrs = useAttrs();
7385
7510
  const field = useFormControl();
7386
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);
7387
7515
  const controlled = useControlled({
7388
7516
  /* `??` is wrong here — `null` is a MEANINGFUL selection ("nothing selected"), and `??`
7389
7517
  would fall through it to `modelValue`. Only `undefined` means "not controlled". */
@@ -7395,13 +7523,13 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
7395
7523
  });
7396
7524
  const selected = controlled.value;
7397
7525
  function onSelect(color) {
7398
- if (finalDisabled.value || (props.isReadOnly ?? field?.isReadOnly)) return;
7526
+ if (finalDisabled.value || finalReadOnly.value) return;
7399
7527
  controlled.setValue(color);
7400
7528
  }
7401
7529
  const ariaLabel = computed(() => attrs[AriaAttribute.Label]);
7402
7530
  const groupId = computed(() => props.id ?? field?.id);
7403
7531
  const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
7404
- const describedBy = computed(() => field?.describedBy);
7532
+ const describedBy = computed(() => readOnlyHint.describedBy(field?.describedBy));
7405
7533
  const OwnedAttributes = /* @__PURE__ */ new Set(["class"]);
7406
7534
  const passthroughAttrs = computed(
7407
7535
  () => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
@@ -7414,7 +7542,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
7414
7542
  controlled.reset();
7415
7543
  });
7416
7544
  return (_ctx, _cache) => {
7417
- return openBlock(), createBlock(unref(_sfc_main$2f), mergeProps({
7545
+ return openBlock(), createBlock(unref(_sfc_main$2h), mergeProps({
7418
7546
  key: unref(formResetRevision),
7419
7547
  ref_key: "root",
7420
7548
  ref: root,
@@ -7423,6 +7551,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
7423
7551
  id: groupId.value,
7424
7552
  "aria-labelledby": labelledBy.value,
7425
7553
  "aria-describedby": describedBy.value,
7554
+ "data-readonly": readOnlyGroup.value || void 0,
7426
7555
  class: rootClass.value
7427
7556
  }, passthroughAttrs.value), {
7428
7557
  default: withCtx(() => [
@@ -7431,12 +7560,17 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
7431
7560
  key: c,
7432
7561
  color: c,
7433
7562
  "is-selected": unref(selected) === c,
7434
- "is-disabled": finalDisabled.value || (props.isReadOnly ?? unref(field)?.isReadOnly ?? false),
7563
+ "is-disabled": finalDisabled.value,
7564
+ "is-read-only": readOnlyGroup.value,
7435
7565
  size: __props.swatchSize,
7436
7566
  shape: __props.swatchShape,
7437
7567
  onSelect
7438
- }, null, 8, ["color", "is-selected", "is-disabled", "size", "shape"]);
7568
+ }, null, 8, ["color", "is-selected", "is-disabled", "is-read-only", "size", "shape"]);
7439
7569
  }), 128)),
7570
+ readOnlyGroup.value ? (openBlock(), createBlock(_sfc_main$1T, {
7571
+ key: 0,
7572
+ id: unref(readOnlyHint).hintId
7573
+ }, null, 8, ["id"])) : createCommentVNode("", true),
7440
7574
  createElementVNode("input", {
7441
7575
  ref_key: "formResetAnchor",
7442
7576
  ref: formResetAnchor,
@@ -7446,7 +7580,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
7446
7580
  }, null, 8, _hoisted_1$S)
7447
7581
  ]),
7448
7582
  _: 1
7449
- }, 16, ["orientation", "id", "aria-labelledby", "aria-describedby", "class"]);
7583
+ }, 16, ["orientation", "id", "aria-labelledby", "aria-describedby", "data-readonly", "class"]);
7450
7584
  };
7451
7585
  }
7452
7586
  });
@@ -7490,7 +7624,11 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
7490
7624
  const ariaLabel = computed(() => attrs[AriaAttribute.Label]);
7491
7625
  const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
7492
7626
  const finalAriaLabel = computed(() => ariaLabel.value ?? (labelledBy.value ? void 0 : "Pick a color"));
7493
- const describedBy = computed(() => field?.describedBy);
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
+ );
7494
7632
  const isInvalid = computed(() => field?.isInvalid || void 0);
7495
7633
  const controlled = useControlled({
7496
7634
  /* `??` is wrong here — `null` is a MEANINGFUL committed value ("no color"), and `??` would
@@ -7541,17 +7679,24 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
7541
7679
  const hiddenValue = computed(() => hex.value ?? "");
7542
7680
  const alphaValue = computed(() => hsv.value.a ?? 1);
7543
7681
  const hasPresets = computed(() => Boolean(props.presets && props.presets.length > 0));
7544
- const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label]);
7682
+ const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.Label, AriaAttribute.DescribedBy]);
7545
7683
  const passthroughAttrs = computed(
7546
7684
  () => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
7547
7685
  );
7686
+ function onTriggerClick(event) {
7687
+ if (finalReadOnly.value) event.preventDefault();
7688
+ }
7548
7689
  const framedTriggerClass = computed(
7549
7690
  () => cn(
7550
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",
7551
7694
  attrs.class
7552
7695
  )
7553
7696
  );
7554
- const swatchTriggerClass = computed(() => attrs.class);
7697
+ const swatchTriggerClass = computed(
7698
+ () => cn("readonly:cursor-default readonly:hover:shadow-none", attrs.class)
7699
+ );
7555
7700
  const trigger = useTemplateRef("trigger");
7556
7701
  __expose({ el: computed(() => trigger.value?.el ?? null) });
7557
7702
  const formResetAnchor = useTemplateRef("formResetAnchor");
@@ -7560,20 +7705,23 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
7560
7705
  });
7561
7706
  const locale = useLocale();
7562
7707
  return (_ctx, _cache) => {
7563
- return openBlock(), createBlock(unref(_sfc_main$27), { key: unref(formResetRevision) }, {
7708
+ return openBlock(), createBlock(unref(_sfc_main$29), { key: unref(formResetRevision) }, {
7564
7709
  default: withCtx(() => [
7565
- hasCustomTrigger.value ? (openBlock(), createBlock(unref(_sfc_main$29), {
7710
+ hasCustomTrigger.value ? (openBlock(), createBlock(unref(_sfc_main$2b), {
7566
7711
  key: 0,
7567
7712
  ref_key: "trigger",
7568
7713
  ref: trigger,
7569
7714
  "as-child": "",
7570
- disabled: finalDisabled.value || finalReadOnly.value
7715
+ disabled: finalDisabled.value,
7716
+ "data-readonly": readOnlyTrigger.value || void 0,
7717
+ "aria-describedby": unref(readOnlyHint).describedBy(),
7718
+ onClick: onTriggerClick
7571
7719
  }, {
7572
7720
  default: withCtx(() => [
7573
7721
  renderSlot(_ctx.$slots, "trigger")
7574
7722
  ]),
7575
7723
  _: 3
7576
- }, 8, ["disabled"])) : isSwatchTrigger.value ? (openBlock(), createBlock(unref(_sfc_main$29), mergeProps({
7724
+ }, 8, ["disabled", "data-readonly", "aria-describedby"])) : isSwatchTrigger.value ? (openBlock(), createBlock(unref(_sfc_main$2b), mergeProps({
7577
7725
  key: 1,
7578
7726
  ref_key: "trigger",
7579
7727
  ref: trigger,
@@ -7582,19 +7730,20 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
7582
7730
  "aria-label": finalAriaLabel.value,
7583
7731
  "aria-labelledby": labelledBy.value,
7584
7732
  "aria-describedby": describedBy.value,
7585
- "aria-invalid": isInvalid.value
7586
- }, passthroughAttrs.value), {
7733
+ "aria-invalid": isInvalid.value,
7734
+ "data-readonly": readOnlyTrigger.value || void 0
7735
+ }, passthroughAttrs.value, { onClick: onTriggerClick }), {
7587
7736
  default: withCtx(() => [
7588
- createVNode(_sfc_main$2e, {
7737
+ createVNode(_sfc_main$2g, {
7589
7738
  color: swatchColor.value,
7590
7739
  size: __props.triggerSize,
7591
- "is-disabled": finalDisabled.value || finalReadOnly.value,
7740
+ "is-disabled": finalDisabled.value,
7592
7741
  class: normalizeClass(swatchTriggerClass.value),
7593
7742
  onClick: noop
7594
7743
  }, null, 8, ["color", "size", "is-disabled", "class"])
7595
7744
  ]),
7596
7745
  _: 1
7597
- }, 16, ["id", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid"])) : (openBlock(), createBlock(unref(_sfc_main$29), mergeProps({
7746
+ }, 16, ["id", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "data-readonly"])) : (openBlock(), createBlock(unref(_sfc_main$2b), mergeProps({
7598
7747
  key: 2,
7599
7748
  ref_key: "trigger",
7600
7749
  ref: trigger,
@@ -7603,11 +7752,12 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
7603
7752
  "aria-labelledby": labelledBy.value,
7604
7753
  "aria-describedby": describedBy.value,
7605
7754
  "aria-invalid": isInvalid.value,
7606
- disabled: finalDisabled.value || finalReadOnly.value,
7755
+ disabled: finalDisabled.value,
7756
+ "data-readonly": readOnlyTrigger.value || void 0,
7607
7757
  class: framedTriggerClass.value
7608
- }, passthroughAttrs.value), {
7758
+ }, passthroughAttrs.value, { onClick: onTriggerClick }), {
7609
7759
  default: withCtx(() => [
7610
- isFullTrigger.value ? (openBlock(), createBlock(_sfc_main$2e, {
7760
+ isFullTrigger.value ? (openBlock(), createBlock(_sfc_main$2g, {
7611
7761
  key: 0,
7612
7762
  color: swatchColor.value,
7613
7763
  size: __props.triggerSize
@@ -7615,13 +7765,17 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
7615
7765
  createElementVNode("span", _hoisted_1$R, toDisplayString(hexText.value), 1)
7616
7766
  ]),
7617
7767
  _: 1
7618
- }, 16, ["id", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "disabled", "class"])),
7619
- createVNode(unref(_sfc_main$2a), {
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), {
7620
7774
  "aria-label": unref(locale).t("ColorPicker.colorPicker", void 0, "Color picker"),
7621
7775
  class: "flex w-64 flex-col gap-3"
7622
7776
  }, {
7623
7777
  default: withCtx(() => [
7624
- createVNode(unref(_sfc_main$20), {
7778
+ createVNode(unref(_sfc_main$22), {
7625
7779
  "is-disabled": finalDisabled.value || finalReadOnly.value,
7626
7780
  "is-read-only": finalReadOnly.value
7627
7781
  }, {
@@ -7636,7 +7790,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
7636
7790
  ]),
7637
7791
  _: 1
7638
7792
  }, 8, ["is-disabled", "is-read-only"]),
7639
- createVNode(unref(_sfc_main$20), {
7793
+ createVNode(unref(_sfc_main$22), {
7640
7794
  "is-disabled": finalDisabled.value || finalReadOnly.value,
7641
7795
  "is-read-only": finalReadOnly.value
7642
7796
  }, {
@@ -7650,7 +7804,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
7650
7804
  ]),
7651
7805
  _: 1
7652
7806
  }, 8, ["is-disabled", "is-read-only"]),
7653
- __props.hasAlpha ? (openBlock(), createBlock(unref(_sfc_main$20), {
7807
+ __props.hasAlpha ? (openBlock(), createBlock(unref(_sfc_main$22), {
7654
7808
  key: 0,
7655
7809
  "is-disabled": finalDisabled.value || finalReadOnly.value,
7656
7810
  "is-read-only": finalReadOnly.value
@@ -7666,7 +7820,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
7666
7820
  ]),
7667
7821
  _: 1
7668
7822
  }, 8, ["is-disabled", "is-read-only"])) : createCommentVNode("", true),
7669
- createVNode(unref(_sfc_main$20), {
7823
+ createVNode(unref(_sfc_main$22), {
7670
7824
  "is-disabled": finalDisabled.value || finalReadOnly.value,
7671
7825
  "is-read-only": finalReadOnly.value
7672
7826
  }, {
@@ -7680,7 +7834,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
7680
7834
  ]),
7681
7835
  _: 1
7682
7836
  }, 8, ["is-disabled", "is-read-only"]),
7683
- hasPresets.value ? (openBlock(), createBlock(unref(_sfc_main$20), {
7837
+ hasPresets.value ? (openBlock(), createBlock(unref(_sfc_main$22), {
7684
7838
  key: 1,
7685
7839
  "is-disabled": finalDisabled.value || finalReadOnly.value,
7686
7840
  "is-read-only": finalReadOnly.value
@@ -7699,7 +7853,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
7699
7853
  _: 1
7700
7854
  }, 8, ["aria-label"]),
7701
7855
  __props.name ? (openBlock(), createElementBlock("input", {
7702
- key: 3,
7856
+ key: 4,
7703
7857
  type: "hidden",
7704
7858
  disabled: finalDisabled.value,
7705
7859
  form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
@@ -7722,7 +7876,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
7722
7876
  const _hoisted_1$Q = ["data-disabled", "data-readonly", "data-invalid"];
7723
7877
  const _hoisted_2$D = ["id", "value", "placeholder", "disabled", "readonly", "aria-invalid", "aria-describedby", "aria-required"];
7724
7878
  const _hoisted_3$x = ["disabled", "form", "name", "value"];
7725
- const _hoisted_4$t = ["form"];
7879
+ const _hoisted_4$s = ["form"];
7726
7880
  const _sfc_main$$ = /* @__PURE__ */ defineComponent({
7727
7881
  ...{ name: "TagsInput", inheritAttrs: false },
7728
7882
  __name: "TagsInput",
@@ -7874,7 +8028,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
7874
8028
  onClick: onContainerClick
7875
8029
  }, [
7876
8030
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(tags), (t, i) => {
7877
- return openBlock(), createBlock(_sfc_main$2g, mergeProps({
8031
+ return openBlock(), createBlock(_sfc_main$2i, mergeProps({
7878
8032
  key: `${t}-${i}`,
7879
8033
  variant: __props.tagVariant,
7880
8034
  "data-pending-delete": isPendingDelete(i) ? "" : void 0,
@@ -7898,7 +8052,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
7898
8052
  "aria-invalid": invalid.value || void 0,
7899
8053
  "aria-describedby": describedBy.value,
7900
8054
  "aria-required": requiredAttr.value,
7901
- class: "min-w-[6rem] flex-1 border-0 bg-transparent p-0 text-sm outline-hidden placeholder:text-subtle-foreground disabled:cursor-not-allowed"
8055
+ class: "min-w-[6rem] flex-1 border-0 bg-transparent p-0 text-sm outline-hidden placeholder:text-subtle-foreground disabled:cursor-not-allowed readonly:cursor-default"
7902
8056
  }, passthroughAttrs.value, {
7903
8057
  onInput,
7904
8058
  onCompositionend: onInput,
@@ -7919,18 +8073,17 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
7919
8073
  type: "hidden",
7920
8074
  form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
7921
8075
  "aria-hidden": "true"
7922
- }, null, 8, _hoisted_4$t)
8076
+ }, null, 8, _hoisted_4$s)
7923
8077
  ], 10, _hoisted_1$Q);
7924
8078
  };
7925
8079
  }
7926
8080
  });
7927
- const _hoisted_1$P = ["tabindex", "aria-disabled", "aria-describedby", "data-drag-state", "data-invalid"];
7928
- const _hoisted_2$C = { class: "font-medium text-foreground" };
7929
- 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 = {
7930
8083
  key: 0,
7931
8084
  class: "text-xs"
7932
8085
  };
7933
- const _hoisted_4$s = ["id", "accept", "multiple", "disabled", "aria-invalid", "aria-describedby", "aria-required", "name"];
8086
+ const _hoisted_3$w = ["id", "accept", "multiple", "disabled", "aria-invalid", "aria-describedby", "aria-required", "name"];
7934
8087
  const FileRejectionReason = {
7935
8088
  /** Refers to a file whose MIME type / extension is not accepted. */
7936
8089
  Type: "type",
@@ -7971,6 +8124,9 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
7971
8124
  const finalDisabled = computed(() => props.isDisabled ?? props.disabled ?? ctx?.isDisabled);
7972
8125
  const finalReadOnly = computed(() => props.isReadOnly ?? props.readonly ?? ctx?.isReadOnly);
7973
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));
7974
8130
  watch(inactive, (value) => {
7975
8131
  if (value) {
7976
8132
  dragCounter.value = 0;
@@ -8079,9 +8235,12 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
8079
8235
  "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring",
8080
8236
  dragState.value === "over" && "border-primary bg-primary-soft/30 text-foreground",
8081
8237
  showError.value && "border-destructive bg-destructive-soft/30 text-destructive-soft-foreground",
8082
- 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"
8083
8241
  )
8084
8242
  );
8243
+ const labelClass = computed(() => cn("font-medium", readOnlyZone.value ? "text-muted-foreground" : "text-foreground"));
8085
8244
  const iconClass = computed(
8086
8245
  () => cn(
8087
8246
  "text-muted-foreground",
@@ -8097,9 +8256,10 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
8097
8256
  }, [
8098
8257
  createElementVNode("div", {
8099
8258
  role: "button",
8100
- tabindex: inactive.value ? -1 : 0,
8101
- "aria-disabled": inactive.value || void 0,
8102
- "aria-describedby": unref(ctx)?.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,
8103
8263
  "data-drag-state": dragState.value,
8104
8264
  "data-invalid": showError.value || void 0,
8105
8265
  class: normalizeClass(zoneClass.value),
@@ -8110,17 +8270,19 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
8110
8270
  onDragleave: onDragLeave,
8111
8271
  onDrop
8112
8272
  }, [
8113
- createVNode(unref(_sfc_main$1$), {
8273
+ createVNode(unref(_sfc_main$20), {
8114
8274
  icon: unref(UploadIcon),
8115
8275
  size: 28,
8116
8276
  class: normalizeClass(iconClass.value)
8117
8277
  }, null, 8, ["icon", "class"]),
8118
- createElementVNode("div", _hoisted_2$C, [
8278
+ createElementVNode("div", {
8279
+ class: normalizeClass(labelClass.value)
8280
+ }, [
8119
8281
  renderSlot(_ctx.$slots, "label", {}, () => [
8120
8282
  createTextVNode(toDisplayString(unref(props).label), 1)
8121
8283
  ])
8122
- ]),
8123
- hasHint.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
8284
+ ], 2),
8285
+ hasHint.value ? (openBlock(), createElementBlock("div", _hoisted_2$C, [
8124
8286
  renderSlot(_ctx.$slots, "hint", {}, () => [
8125
8287
  createTextVNode(toDisplayString(__props.hint), 1)
8126
8288
  ])
@@ -8138,8 +8300,12 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
8138
8300
  "aria-required": unref(ctx)?.isRequired || void 0,
8139
8301
  name: __props.name,
8140
8302
  class: "sr-only"
8141
- }, passthroughAttrs.value, { onChange }), null, 16, _hoisted_4$s)
8303
+ }, passthroughAttrs.value, { onChange }), null, 16, _hoisted_3$w)
8142
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),
8143
8309
  renderSlot(_ctx.$slots, "default")
8144
8310
  ], 2);
8145
8311
  };
@@ -8324,7 +8490,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
8324
8490
  onClick
8325
8491
  }), [
8326
8492
  renderSlot(_ctx.$slots, "default", {}, () => [
8327
- createVNode(unref(_sfc_main$1$), {
8493
+ createVNode(unref(_sfc_main$20), {
8328
8494
  icon: unref(CloseIcon),
8329
8495
  size: 14
8330
8496
  }, null, 8, ["icon"])
@@ -8494,7 +8660,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
8494
8660
  onClick
8495
8661
  }), [
8496
8662
  renderSlot(_ctx.$slots, "default", {}, () => [
8497
- createVNode(unref(_sfc_main$1$), {
8663
+ createVNode(unref(_sfc_main$20), {
8498
8664
  icon: unref(CheckIcon),
8499
8665
  size: 14
8500
8666
  }, null, 8, ["icon"])
@@ -9102,8 +9268,8 @@ const _hoisted_2$x = { class: "flex items-center gap-1 border-b border-border bg
9102
9268
  const _hoisted_3$s = ["aria-label"];
9103
9269
  const _hoisted_4$p = ["aria-label", "disabled", "onClick"];
9104
9270
  const _hoisted_5$n = ["aria-label"];
9105
- const _hoisted_6$j = ["aria-checked", "onClick"];
9106
- const _hoisted_7$d = {
9271
+ const _hoisted_6$k = ["aria-checked", "onClick"];
9272
+ const _hoisted_7$e = {
9107
9273
  class: "flex flex-1 divide-x divide-border",
9108
9274
  style: { minHeight: 0 }
9109
9275
  };
@@ -9309,7 +9475,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9309
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",
9310
9476
  onClick: ($event) => applyAction(a)
9311
9477
  }, [
9312
- createVNode(unref(_sfc_main$1$), {
9478
+ createVNode(unref(_sfc_main$20), {
9313
9479
  icon: a.icon,
9314
9480
  size: 14
9315
9481
  }, null, 8, ["icon"])
@@ -9329,11 +9495,11 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9329
9495
  "aria-checked": unref(mode) === v,
9330
9496
  class: normalizeClass(viewButtonClass(v)),
9331
9497
  onClick: ($event) => unref(viewCtl).setValue(v)
9332
- }, toDisplayString(v), 11, _hoisted_6$j);
9498
+ }, toDisplayString(v), 11, _hoisted_6$k);
9333
9499
  }), 64))
9334
9500
  ], 8, _hoisted_5$n)
9335
9501
  ]),
9336
- createElementVNode("div", _hoisted_7$d, [
9502
+ createElementVNode("div", _hoisted_7$e, [
9337
9503
  showEdit.value ? (openBlock(), createElementBlock("textarea", mergeProps({
9338
9504
  key: 0,
9339
9505
  ref_key: "textarea",
@@ -9440,8 +9606,8 @@ const _hoisted_5$m = {
9440
9606
  key: 3,
9441
9607
  class: "text-muted-foreground"
9442
9608
  };
9443
- const _hoisted_6$i = ["aria-label", "aria-invalid", "aria-describedby", "value"];
9444
- const _hoisted_7$c = ["aria-label"];
9609
+ const _hoisted_6$j = ["aria-label", "aria-invalid", "aria-describedby", "value"];
9610
+ const _hoisted_7$d = ["aria-label"];
9445
9611
  const _hoisted_8$9 = {
9446
9612
  key: 0,
9447
9613
  role: "group"
@@ -9545,7 +9711,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
9545
9711
  class: "inline-flex h-5 w-5 items-center justify-center text-muted-foreground hover:text-foreground",
9546
9712
  onClick: _cache[0] || (_cache[0] = ($event) => open.value = !open.value)
9547
9713
  }, [
9548
- createVNode(unref(_sfc_main$1$), {
9714
+ createVNode(unref(_sfc_main$20), {
9549
9715
  icon: unref(ChevronIcon),
9550
9716
  size: 12,
9551
9717
  class: normalizeClass(chevronClass.value)
@@ -9566,7 +9732,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
9566
9732
  onInput: onDraftInput,
9567
9733
  onKeydown,
9568
9734
  onBlur: commitEdit
9569
- }, null, 40, _hoisted_6$i)) : (openBlock(), createElementBlock("button", {
9735
+ }, null, 40, _hoisted_6$j)) : (openBlock(), createElementBlock("button", {
9570
9736
  key: 5,
9571
9737
  type: "button",
9572
9738
  class: normalizeClass(leafClass.value),
@@ -9578,11 +9744,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
9578
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",
9579
9745
  onClick: copyPath
9580
9746
  }, [
9581
- createVNode(unref(_sfc_main$1$), {
9747
+ createVNode(unref(_sfc_main$20), {
9582
9748
  icon: unref(CopyIcon),
9583
9749
  size: 11
9584
9750
  }, null, 8, ["icon"])
9585
- ], 8, _hoisted_7$c)
9751
+ ], 8, _hoisted_7$d)
9586
9752
  ], 4),
9587
9753
  isObject.value && open.value ? (openBlock(), createElementBlock("ul", _hoisted_8$9, [
9588
9754
  (openBlock(true), createElementBlock(Fragment, null, renderList(entries.value, ([k, v]) => {
@@ -9716,7 +9882,7 @@ const _hoisted_5$l = {
9716
9882
  class: "flex-1 overflow-auto",
9717
9883
  style: { minHeight: 0 }
9718
9884
  };
9719
- const _hoisted_6$h = ["form"];
9885
+ const _hoisted_6$i = ["form"];
9720
9886
  const _sfc_main$L = /* @__PURE__ */ defineComponent({
9721
9887
  ...{ name: "JsonEditor", inheritAttrs: false },
9722
9888
  __name: "JsonEditor",
@@ -9842,7 +10008,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
9842
10008
  type: "hidden",
9843
10009
  form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
9844
10010
  "aria-hidden": "true"
9845
- }, null, 8, _hoisted_6$h)
10011
+ }, null, 8, _hoisted_6$i)
9846
10012
  ], 16, _hoisted_1$B);
9847
10013
  };
9848
10014
  }
@@ -9852,8 +10018,8 @@ const _hoisted_2$t = { class: "flex flex-wrap items-center gap-2 text-sm" };
9852
10018
  const _hoisted_3$o = ["for"];
9853
10019
  const _hoisted_4$m = ["id", "value", "disabled", "readonly"];
9854
10020
  const _hoisted_5$k = ["aria-label", "value", "disabled"];
9855
- const _hoisted_6$g = { value: "DAILY" };
9856
- const _hoisted_7$b = { value: "WEEKLY" };
10021
+ const _hoisted_6$h = { value: "DAILY" };
10022
+ const _hoisted_7$c = { value: "WEEKLY" };
9857
10023
  const _hoisted_8$8 = { value: "MONTHLY" };
9858
10024
  const _hoisted_9$5 = { value: "YEARLY" };
9859
10025
  const _hoisted_10$5 = {
@@ -10143,8 +10309,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
10143
10309
  class: normalizeClass(unref(freqClass)),
10144
10310
  onChange: onFreqChange
10145
10311
  }, [
10146
- createElementVNode("option", _hoisted_6$g, toDisplayString(unref(rule).interval > 1 ? "days" : "day"), 1),
10147
- createElementVNode("option", _hoisted_7$b, toDisplayString(unref(rule).interval > 1 ? "weeks" : "week"), 1),
10312
+ createElementVNode("option", _hoisted_6$h, toDisplayString(unref(rule).interval > 1 ? "days" : "day"), 1),
10313
+ createElementVNode("option", _hoisted_7$c, toDisplayString(unref(rule).interval > 1 ? "weeks" : "week"), 1),
10148
10314
  createElementVNode("option", _hoisted_8$8, toDisplayString(unref(rule).interval > 1 ? "months" : "month"), 1),
10149
10315
  createElementVNode("option", _hoisted_9$5, toDisplayString(unref(rule).interval > 1 ? "years" : "year"), 1)
10150
10316
  ], 42, _hoisted_5$k)
@@ -10292,12 +10458,12 @@ const _hoisted_2$s = ["width", "height"];
10292
10458
  const _hoisted_3$n = ["d"];
10293
10459
  const _hoisted_4$l = ["d"];
10294
10460
  const _hoisted_5$j = ["x1", "y1", "x2", "y2"];
10295
- const _hoisted_6$f = {
10461
+ const _hoisted_6$g = {
10296
10462
  key: 0,
10297
10463
  "aria-hidden": "true",
10298
10464
  class: "absolute inset-0 grid place-items-center text-[10px] font-medium tabular-nums text-foreground"
10299
10465
  };
10300
- const _hoisted_7$a = ["disabled", "form", "name", "value"];
10466
+ const _hoisted_7$b = ["disabled", "form", "name", "value"];
10301
10467
  const _hoisted_8$7 = ["form"];
10302
10468
  const KnobInputTone = {
10303
10469
  /** Refers to the primary brand accent. */
@@ -10525,7 +10691,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
10525
10691
  "stroke-linecap": "round"
10526
10692
  }, null, 8, _hoisted_5$j)
10527
10693
  ], 8, _hoisted_2$s)),
10528
- __props.isValueShown ? (openBlock(), createElementBlock("span", _hoisted_6$f, toDisplayString(readout.value), 1)) : createCommentVNode("", true),
10694
+ __props.isValueShown ? (openBlock(), createElementBlock("span", _hoisted_6$g, toDisplayString(readout.value), 1)) : createCommentVNode("", true),
10529
10695
  __props.name ? (openBlock(), createElementBlock("input", {
10530
10696
  key: 1,
10531
10697
  type: "hidden",
@@ -10533,7 +10699,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
10533
10699
  form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
10534
10700
  name: __props.name,
10535
10701
  value: unref(current)
10536
- }, null, 8, _hoisted_7$a)) : createCommentVNode("", true),
10702
+ }, null, 8, _hoisted_7$b)) : createCommentVNode("", true),
10537
10703
  createElementVNode("input", {
10538
10704
  ref_key: "formResetAnchor",
10539
10705
  ref: formResetAnchor,
@@ -10545,7 +10711,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
10545
10711
  };
10546
10712
  }
10547
10713
  });
10548
- 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"];
10549
10715
  const _hoisted_2$r = {
10550
10716
  key: 0,
10551
10717
  class: "text-xs text-muted-foreground"
@@ -10562,8 +10728,8 @@ const _hoisted_5$i = {
10562
10728
  key: 0,
10563
10729
  "aria-hidden": "true"
10564
10730
  };
10565
- const _hoisted_6$e = ["form"];
10566
- const _hoisted_7$9 = ["disabled", "form", "name", "value"];
10731
+ const _hoisted_6$f = ["form"];
10732
+ const _hoisted_7$a = ["disabled", "form", "name", "value"];
10567
10733
  const IsMac = typeof navigator !== "undefined" && navigator.platform?.toLowerCase().includes("mac");
10568
10734
  const ModifierNames = {
10569
10735
  Control: "Ctrl",
@@ -10607,6 +10773,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
10607
10773
  const finalDisabled = computed(() => props.isDisabled ?? props.disabled ?? field?.isDisabled);
10608
10774
  const finalReadOnly = computed(() => props.isReadOnly ?? props.readonly ?? field?.isReadOnly);
10609
10775
  const inactive = computed(() => finalDisabled.value || finalReadOnly.value);
10776
+ const readOnlyButton = computed(() => Boolean(finalReadOnly.value) && !finalDisabled.value);
10777
+ const readOnlyHint = useReadOnlyHint(readOnlyButton);
10610
10778
  const controlled = useControlled({
10611
10779
  controlled: () => props.modelValue,
10612
10780
  default: () => props.defaultValue ?? [],
@@ -10682,7 +10850,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
10682
10850
  }
10683
10851
  const buttonId = computed(() => props.id ?? field?.id);
10684
10852
  const labelledBy = computed(() => ariaLabelledBy.value ?? (ariaLabel.value ? void 0 : field?.labelledBy));
10685
- const describedBy = computed(() => ariaDescribedBy.value ?? field?.describedBy);
10853
+ const describedBy = computed(() => readOnlyHint.describedBy(ariaDescribedBy.value ?? field?.describedBy));
10686
10854
  const hiddenValue = computed(() => keys.value.join("+"));
10687
10855
  const OwnedAttributes = /* @__PURE__ */ new Set(["class", AriaAttribute.LabelledBy, AriaAttribute.DescribedBy]);
10688
10856
  const passthroughAttrs = computed(
@@ -10691,6 +10859,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
10691
10859
  const buttonClass = computed(
10692
10860
  () => cn(
10693
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",
10694
10864
  recording.value && "border-primary bg-primary-soft text-primary-soft-foreground",
10695
10865
  attrs.class
10696
10866
  )
@@ -10712,7 +10882,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
10712
10882
  "aria-invalid": unref(field)?.isInvalid || void 0,
10713
10883
  "aria-labelledby": labelledBy.value,
10714
10884
  "aria-describedby": describedBy.value,
10715
- disabled: inactive.value,
10885
+ disabled: finalDisabled.value,
10886
+ "data-readonly": readOnlyButton.value || void 0,
10716
10887
  class: buttonClass.value
10717
10888
  }, passthroughAttrs.value, {
10718
10889
  onClick: startRecord,
@@ -10730,7 +10901,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
10730
10901
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(keys), (k, i) => {
10731
10902
  return openBlock(), createElementBlock(Fragment, { key: k }, [
10732
10903
  i > 0 ? (openBlock(), createElementBlock("span", _hoisted_5$i, "+")) : createCommentVNode("", true),
10733
- createVNode(_sfc_main$2h, null, {
10904
+ createVNode(_sfc_main$2j, null, {
10734
10905
  default: withCtx(() => [
10735
10906
  createTextVNode(toDisplayString(modifierLabel(k)), 1)
10736
10907
  ]),
@@ -10745,29 +10916,34 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
10745
10916
  type: "hidden",
10746
10917
  form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
10747
10918
  "aria-hidden": "true"
10748
- }, null, 8, _hoisted_6$e)
10919
+ }, null, 8, _hoisted_6$f)
10749
10920
  ], 16, _hoisted_1$y)),
10750
- __props.name ? (openBlock(), createElementBlock("input", {
10921
+ readOnlyButton.value ? (openBlock(), createBlock(_sfc_main$1T, {
10751
10922
  key: 0,
10923
+ id: unref(readOnlyHint).hintId
10924
+ }, null, 8, ["id"])) : createCommentVNode("", true),
10925
+ __props.name ? (openBlock(), createElementBlock("input", {
10926
+ key: 1,
10752
10927
  type: "hidden",
10753
10928
  disabled: finalDisabled.value,
10754
10929
  form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
10755
10930
  name: __props.name,
10756
10931
  value: hiddenValue.value
10757
- }, null, 8, _hoisted_7$9)) : createCommentVNode("", true)
10932
+ }, null, 8, _hoisted_7$a)) : createCommentVNode("", true)
10758
10933
  ], 64);
10759
10934
  };
10760
10935
  }
10761
10936
  });
10762
- const _hoisted_1$x = ["value", "placeholder", "disabled"];
10763
- const _hoisted_2$q = ["id", "aria-label", "aria-labelledby", "aria-describedby"];
10764
- const _hoisted_3$l = ["aria-pressed", "aria-label", "disabled", "onClick"];
10765
- 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 = {
10766
10942
  key: 0,
10767
10943
  class: "col-span-full px-2 py-6 text-center text-xs text-muted-foreground"
10768
10944
  };
10769
- const _hoisted_5$h = ["disabled", "form", "name", "value"];
10770
- const _hoisted_6$d = ["form"];
10945
+ const _hoisted_6$e = ["disabled", "form", "name", "value"];
10946
+ const _hoisted_7$9 = ["form"];
10771
10947
  const BuiltInIcons = {
10772
10948
  bell: Bell,
10773
10949
  bookmark: Bookmark,
@@ -10835,6 +11011,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
10835
11011
  iconButtonSize: { default: 36 },
10836
11012
  placeholder: {},
10837
11013
  isDisabled: { type: Boolean, default: void 0 },
11014
+ isReadOnly: { type: Boolean, default: void 0 },
10838
11015
  name: {},
10839
11016
  id: {}
10840
11017
  },
@@ -10847,7 +11024,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
10847
11024
  const el = useTemplateRef("el");
10848
11025
  const field = useFormControl();
10849
11026
  const finalDisabled = computed(() => props.isDisabled ?? field?.isDisabled);
11027
+ const finalReadOnly = computed(() => props.isReadOnly ?? field?.isReadOnly ?? false);
10850
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));
10851
11032
  const controlled = useControlled({
10852
11033
  controlled: () => props.modelValue,
10853
11034
  default: () => props.defaultValue ?? "",
@@ -10856,6 +11037,10 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
10856
11037
  }
10857
11038
  });
10858
11039
  const selected = controlled.value;
11040
+ function pick(key) {
11041
+ if (finalDisabled.value || finalReadOnly.value) return;
11042
+ controlled.setValue(key);
11043
+ }
10859
11044
  const query = ref("");
10860
11045
  const filtered = computed(() => {
10861
11046
  const entries = Object.entries(props.icons);
@@ -10869,7 +11054,10 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
10869
11054
  function buttonClass(key) {
10870
11055
  return cn(
10871
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",
10872
- 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"
10873
11061
  );
10874
11062
  }
10875
11063
  const gridStyle = computed(() => ({
@@ -10888,6 +11076,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
10888
11076
  const panelClass = computed(
10889
11077
  () => cn(
10890
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",
10891
11080
  attrs.class
10892
11081
  )
10893
11082
  );
@@ -10903,6 +11092,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
10903
11092
  key: unref(formResetRevision),
10904
11093
  ref_key: "el",
10905
11094
  ref: el,
11095
+ "data-readonly": readOnlyGrid.value || void 0,
10906
11096
  class: panelClass.value
10907
11097
  }, passthroughAttrs.value), [
10908
11098
  createElementVNode("input", {
@@ -10912,13 +11102,13 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
10912
11102
  disabled: finalDisabled.value,
10913
11103
  class: normalizeClass(unref(searchClass)),
10914
11104
  onInput: onQueryInput
10915
- }, null, 42, _hoisted_1$x),
11105
+ }, null, 42, _hoisted_2$q),
10916
11106
  createElementVNode("div", {
10917
11107
  role: "group",
10918
11108
  id: gridId.value,
10919
11109
  "aria-label": labelledBy.value ? void 0 : unref(locale).t("IconPicker.icons", void 0, "Icons"),
10920
11110
  "aria-labelledby": labelledBy.value,
10921
- "aria-describedby": unref(field)?.describedBy,
11111
+ "aria-describedby": describedBy.value,
10922
11112
  class: "grid gap-1 overflow-y-auto",
10923
11113
  style: normalizeStyle(gridStyle.value)
10924
11114
  }, [
@@ -10931,42 +11121,46 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
10931
11121
  disabled: finalDisabled.value,
10932
11122
  style: normalizeStyle(buttonStyle.value),
10933
11123
  class: normalizeClass(buttonClass(key)),
10934
- onClick: ($event) => unref(controlled).setValue(key)
11124
+ onClick: ($event) => pick(key)
10935
11125
  }, [
10936
- createVNode(unref(_sfc_main$1$), {
11126
+ createVNode(unref(_sfc_main$20), {
10937
11127
  icon: iconComp,
10938
11128
  size: __props.size
10939
11129
  }, null, 8, ["icon", "size"])
10940
- ], 14, _hoisted_3$l)
11130
+ ], 14, _hoisted_4$j)
10941
11131
  ]);
10942
11132
  }), 128)),
10943
- filtered.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(unref(locale).t("IconPicker.noIconsMatch", void 0, "No icons match.")), 1)) : createCommentVNode("", true)
10944
- ], 12, _hoisted_2$q),
10945
- __props.name ? (openBlock(), createElementBlock("input", {
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, {
10946
11136
  key: 0,
11137
+ id: unref(readOnlyHint).hintId
11138
+ }, null, 8, ["id"])) : createCommentVNode("", true),
11139
+ __props.name ? (openBlock(), createElementBlock("input", {
11140
+ key: 1,
10947
11141
  type: "hidden",
10948
11142
  disabled: finalDisabled.value,
10949
11143
  form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
10950
11144
  name: __props.name,
10951
11145
  value: unref(selected)
10952
- }, null, 8, _hoisted_5$h)) : createCommentVNode("", true),
11146
+ }, null, 8, _hoisted_6$e)) : createCommentVNode("", true),
10953
11147
  createElementVNode("input", {
10954
11148
  ref_key: "formResetAnchor",
10955
11149
  ref: formResetAnchor,
10956
11150
  type: "hidden",
10957
11151
  form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
10958
11152
  "aria-hidden": "true"
10959
- }, null, 8, _hoisted_6$d)
10960
- ], 16);
11153
+ }, null, 8, _hoisted_7$9)
11154
+ ], 16, _hoisted_1$x);
10961
11155
  };
10962
11156
  }
10963
11157
  });
10964
- 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"];
10965
11159
  const _hoisted_2$p = ["aria-label", "value", "placeholder"];
10966
11160
  const _hoisted_3$k = ["aria-label"];
10967
11161
  const _hoisted_4$i = ["aria-selected", "onClick"];
10968
11162
  const _hoisted_5$g = { class: "font-medium" };
10969
- const _hoisted_6$c = {
11163
+ const _hoisted_6$d = {
10970
11164
  key: 0,
10971
11165
  class: "px-2 py-6 text-center text-xs text-muted-foreground"
10972
11166
  };
@@ -10997,6 +11191,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
10997
11191
  placeholder: {},
10998
11192
  previewText: {},
10999
11193
  isDisabled: { type: Boolean, default: void 0 },
11194
+ isReadOnly: { type: Boolean, default: void 0 },
11000
11195
  name: {},
11001
11196
  id: {}
11002
11197
  },
@@ -11011,6 +11206,10 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
11011
11206
  const attrs = useAttrs();
11012
11207
  const field = useFormControl();
11013
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));
11014
11213
  const controlled = useControlled({
11015
11214
  controlled: () => props.modelValue,
11016
11215
  default: () => props.defaultValue ?? props.fonts[0]?.family ?? "",
@@ -11028,12 +11227,17 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
11028
11227
  });
11029
11228
  const current = computed(() => props.fonts.find((f) => f.family === family.value));
11030
11229
  function onOpenChange(next) {
11230
+ if (next && finalReadOnly.value) return;
11031
11231
  open.value = next;
11032
11232
  }
11233
+ function onTriggerClick(event) {
11234
+ if (finalReadOnly.value) event.preventDefault();
11235
+ }
11033
11236
  function onQueryInput(event) {
11034
11237
  query.value = event.target.value;
11035
11238
  }
11036
11239
  function select(option) {
11240
+ if (finalDisabled.value || finalReadOnly.value) return;
11037
11241
  controlled.setValue(option.family);
11038
11242
  open.value = false;
11039
11243
  }
@@ -11076,6 +11280,11 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
11076
11280
  () => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
11077
11281
  );
11078
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
+ );
11079
11288
  const ChevronDownIcon = ChevronDown;
11080
11289
  const formResetAnchor = useTemplateRef("formResetAnchor");
11081
11290
  const formResetRevision = useNativeFormReset(formResetAnchor, () => {
@@ -11087,12 +11296,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
11087
11296
  key: unref(formResetRevision),
11088
11297
  class: wrapperClass.value
11089
11298
  }, passthroughAttrs.value), [
11090
- createVNode(unref(_sfc_main$27), {
11299
+ createVNode(unref(_sfc_main$29), {
11091
11300
  open: open.value,
11092
11301
  "onUpdate:open": onOpenChange
11093
11302
  }, {
11094
11303
  default: withCtx(() => [
11095
- createVNode(unref(_sfc_main$29), { "as-child": "" }, {
11304
+ createVNode(unref(_sfc_main$2b), { "as-child": "" }, {
11096
11305
  default: withCtx(() => [
11097
11306
  createElementVNode("button", {
11098
11307
  type: "button",
@@ -11100,25 +11309,31 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
11100
11309
  disabled: finalDisabled.value,
11101
11310
  "aria-invalid": unref(field)?.isInvalid || void 0,
11102
11311
  "aria-labelledby": unref(field)?.labelledBy,
11103
- "aria-describedby": unref(field)?.describedBy,
11312
+ "aria-describedby": describedBy.value,
11313
+ "data-readonly": readOnlyTrigger.value || void 0,
11104
11314
  "aria-haspopup": "listbox",
11105
11315
  "aria-expanded": open.value,
11106
- class: "inline-flex h-10 min-w-[14rem] items-center justify-between 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"
11316
+ class: normalizeClass(unref(triggerClass)),
11317
+ onClick: onTriggerClick
11107
11318
  }, [
11108
11319
  createElementVNode("span", {
11109
11320
  style: normalizeStyle({ fontFamily: unref(family) }),
11110
- class: "truncate text-foreground"
11321
+ class: "truncate"
11111
11322
  }, toDisplayString(current.value?.name ?? __props.placeholder), 5),
11112
- createVNode(unref(_sfc_main$1$), {
11323
+ createVNode(unref(_sfc_main$20), {
11113
11324
  icon: unref(ChevronDownIcon),
11114
11325
  size: 14,
11115
11326
  class: "text-muted-foreground"
11116
11327
  }, null, 8, ["icon"])
11117
- ], 8, _hoisted_1$w)
11328
+ ], 10, _hoisted_1$w)
11118
11329
  ]),
11119
11330
  _: 1
11120
11331
  }),
11121
- createVNode(unref(_sfc_main$2a), { class: "w-[20rem] p-2" }, {
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" }, {
11122
11337
  default: withCtx(() => [
11123
11338
  createElementVNode("input", {
11124
11339
  ref_key: "search",
@@ -11157,7 +11372,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
11157
11372
  }, toDisplayString(f.sample ?? __props.previewText), 5)
11158
11373
  ], 10, _hoisted_4$i);
11159
11374
  }), 128)),
11160
- filtered.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$c, toDisplayString(unref(locale).t("FontPicker.noFontsMatch", void 0, "No fonts match.")), 1)) : createCommentVNode("", true)
11375
+ filtered.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$d, toDisplayString(unref(locale).t("FontPicker.noFontsMatch", void 0, "No fonts match.")), 1)) : createCommentVNode("", true)
11161
11376
  ], 40, _hoisted_3$k)
11162
11377
  ]),
11163
11378
  _: 1
@@ -11396,7 +11611,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
11396
11611
  };
11397
11612
  }
11398
11613
  });
11399
- 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"];
11400
11615
  const _hoisted_2$n = { class: "flex items-center gap-2 text-sm" };
11401
11616
  const _hoisted_3$j = ["aria-label"];
11402
11617
  const _hoisted_4$h = ["aria-checked", "disabled", "onClick"];
@@ -11404,11 +11619,11 @@ const _hoisted_5$f = {
11404
11619
  key: 0,
11405
11620
  class: "ml-auto flex items-center gap-2 text-xs text-muted-foreground"
11406
11621
  };
11407
- const _hoisted_6$b = ["value", "disabled"];
11622
+ const _hoisted_6$c = ["value", "disabled", "readonly"];
11408
11623
  const _hoisted_7$7 = { class: "flex flex-col gap-2" };
11409
- const _hoisted_8$5 = ["aria-label", "value", "disabled", "onInput"];
11410
- const _hoisted_9$4 = ["aria-label", "value", "disabled", "onInput"];
11411
- 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"];
11412
11627
  const _hoisted_11$4 = ["aria-label", "disabled", "onClick"];
11413
11628
  const _hoisted_12$4 = ["disabled"];
11414
11629
  const _hoisted_13$4 = { class: "block break-all rounded-md bg-muted/40 px-2 py-1.5 text-[10px] text-muted-foreground" };
@@ -11458,6 +11673,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11458
11673
  const isDisabled = computed(() => props.isDisabled ?? ctx?.isDisabled);
11459
11674
  const isReadOnly = computed(() => props.isReadOnly ?? ctx?.isReadOnly);
11460
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));
11461
11679
  const controlled = useControlled({
11462
11680
  controlled: () => props.modelValue,
11463
11681
  default: () => props.defaultValue ?? DefaultGradient,
@@ -11510,9 +11728,13 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11510
11728
  function kindClass(kind) {
11511
11729
  return cn(
11512
11730
  "inline-flex h-6 items-center rounded px-2 text-xs font-medium transition-colors",
11513
- 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"
11514
11733
  );
11515
11734
  }
11735
+ function keepColorClosed(event) {
11736
+ if (isReadOnly.value) event.preventDefault();
11737
+ }
11516
11738
  const rootId = computed(() => props.id ?? ctx?.id);
11517
11739
  const OwnedAttributes = /* @__PURE__ */ new Set(["class"]);
11518
11740
  const passthroughAttrs = computed(
@@ -11522,6 +11744,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11522
11744
  () => cn(
11523
11745
  "flex flex-col gap-3 rounded-md border border-border bg-card p-3 text-card-foreground shadow-sm",
11524
11746
  isDisabled.value && "opacity-60",
11747
+ "readonly:bg-muted readonly:text-muted-foreground",
11525
11748
  attrs.class
11526
11749
  )
11527
11750
  );
@@ -11544,8 +11767,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11544
11767
  role: "group",
11545
11768
  id: rootId.value,
11546
11769
  "aria-labelledby": unref(ctx)?.labelledBy,
11547
- "aria-describedby": unref(ctx)?.describedBy,
11770
+ "aria-describedby": describedBy.value,
11548
11771
  "aria-invalid": unref(ctx)?.isInvalid || void 0,
11772
+ "data-readonly": readOnlyGroup.value || void 0,
11549
11773
  class: rootClass.value
11550
11774
  }, passthroughAttrs.value), [
11551
11775
  createElementVNode("div", _hoisted_2$n, [
@@ -11560,7 +11784,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11560
11784
  type: "button",
11561
11785
  role: "radio",
11562
11786
  "aria-checked": unref(gradient).kind === k,
11563
- disabled: inactive.value,
11787
+ disabled: isDisabled.value,
11564
11788
  class: normalizeClass(kindClass(k)),
11565
11789
  onClick: ($event) => update({ kind: k })
11566
11790
  }, toDisplayString(k), 11, _hoisted_4$h);
@@ -11573,10 +11797,11 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11573
11797
  min: 0,
11574
11798
  max: 360,
11575
11799
  value: unref(gradient).angle,
11576
- disabled: inactive.value,
11800
+ disabled: isDisabled.value,
11801
+ readonly: isReadOnly.value,
11577
11802
  class: normalizeClass(unref(angleInputClass)),
11578
11803
  onInput: onAngleInput
11579
- }, null, 42, _hoisted_6$b),
11804
+ }, null, 42, _hoisted_6$c),
11580
11805
  _cache[0] || (_cache[0] = createTextVNode(" ° ", -1))
11581
11806
  ])) : createCommentVNode("", true)
11582
11807
  ]),
@@ -11595,15 +11820,18 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11595
11820
  type: "color",
11596
11821
  "aria-label": unref(locale).t("GradientPicker.stopColor", void 0, "Stop color"),
11597
11822
  value: stop.color,
11598
- disabled: inactive.value,
11599
- 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,
11600
11827
  onInput: ($event) => onStopColorInput(i, $event)
11601
11828
  }, null, 40, _hoisted_8$5),
11602
11829
  createElementVNode("input", {
11603
11830
  type: "text",
11604
11831
  "aria-label": unref(locale).t("GradientPicker.stopColorHex", void 0, "Stop color hex"),
11605
11832
  value: stop.color,
11606
- disabled: inactive.value,
11833
+ disabled: isDisabled.value,
11834
+ readonly: isReadOnly.value,
11607
11835
  class: normalizeClass(unref(hexInputClass)),
11608
11836
  onInput: ($event) => onStopColorInput(i, $event)
11609
11837
  }, null, 42, _hoisted_9$4),
@@ -11613,7 +11841,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11613
11841
  min: 0,
11614
11842
  max: 100,
11615
11843
  value: stop.position,
11616
- disabled: inactive.value,
11844
+ disabled: isDisabled.value,
11845
+ readonly: isReadOnly.value,
11617
11846
  class: normalizeClass(unref(positionInputClass)),
11618
11847
  onInput: ($event) => onStopPositionInput(i, $event)
11619
11848
  }, null, 42, _hoisted_10$4),
@@ -11625,7 +11854,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11625
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",
11626
11855
  onClick: ($event) => removeStop(i)
11627
11856
  }, [
11628
- createVNode(unref(_sfc_main$1$), {
11857
+ createVNode(unref(_sfc_main$20), {
11629
11858
  icon: unref(TrashIcon),
11630
11859
  size: 12
11631
11860
  }, null, 8, ["icon"])
@@ -11639,15 +11868,19 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11639
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",
11640
11869
  onClick: addStop
11641
11870
  }, [
11642
- createVNode(unref(_sfc_main$1$), {
11871
+ createVNode(unref(_sfc_main$20), {
11643
11872
  icon: unref(PlusIcon),
11644
11873
  size: 12
11645
11874
  }, null, 8, ["icon"]),
11646
11875
  createTextVNode(" " + toDisplayString(unref(locale).t("GradientPicker.addStop", void 0, "Add stop")), 1)
11647
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),
11648
11881
  createElementVNode("code", _hoisted_13$4, toDisplayString(css.value), 1),
11649
11882
  __props.name ? (openBlock(), createElementBlock("input", {
11650
- key: 0,
11883
+ key: 1,
11651
11884
  type: "hidden",
11652
11885
  disabled: isDisabled.value,
11653
11886
  form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
@@ -11670,7 +11903,7 @@ const _hoisted_2$m = { class: "flex flex-col gap-1" };
11670
11903
  const _hoisted_3$i = ["for"];
11671
11904
  const _hoisted_4$g = ["id", "value", "disabled"];
11672
11905
  const _hoisted_5$e = ["value"];
11673
- const _hoisted_6$a = { value: "XX" };
11906
+ const _hoisted_6$b = { value: "XX" };
11674
11907
  const _hoisted_7$6 = { class: "flex flex-col gap-1" };
11675
11908
  const _hoisted_8$4 = ["for"];
11676
11909
  const _hoisted_9$3 = ["id", "value", "disabled", "readonly"];
@@ -11878,7 +12111,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11878
12111
  value: c.iso
11879
12112
  }, toDisplayString(c.name), 9, _hoisted_5$e);
11880
12113
  }), 128)),
11881
- createElementVNode("option", _hoisted_6$a, toDisplayString(unref(locale).t("AddressEditor.other", void 0, "Other")), 1)
12114
+ createElementVNode("option", _hoisted_6$b, toDisplayString(unref(locale).t("AddressEditor.other", void 0, "Other")), 1)
11882
12115
  ], 42, _hoisted_4$g)
11883
12116
  ]),
11884
12117
  createElementVNode("div", _hoisted_7$6, [
@@ -12039,11 +12272,12 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12039
12272
  };
12040
12273
  }
12041
12274
  });
12042
- const _hoisted_1$s = ["aria-label", "value", "disabled"];
12043
- const _hoisted_2$l = ["value"];
12044
- const _hoisted_3$h = ["id", "value", "placeholder", "disabled", "readonly", "aria-invalid", "aria-describedby", "aria-required"];
12045
- const _hoisted_4$f = ["disabled", "form", "name", "value"];
12046
- const _hoisted_5$d = ["form"];
12275
+ const _hoisted_1$s = ["data-readonly"];
12276
+ const _hoisted_2$l = ["aria-label", "value", "disabled"];
12277
+ const _hoisted_3$h = ["value"];
12278
+ const _hoisted_4$f = ["id", "value", "placeholder", "disabled", "readonly", "aria-invalid", "aria-describedby", "aria-required"];
12279
+ const _hoisted_5$d = ["disabled", "form", "name", "value"];
12280
+ const _hoisted_6$a = ["form"];
12047
12281
  const PhoneCountries = [
12048
12282
  { iso: "US", name: "United States", dial: "+1", flag: "🇺🇸" },
12049
12283
  { iso: "CA", name: "Canada", dial: "+1", flag: "🇨🇦" },
@@ -12175,13 +12409,20 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12175
12409
  "inline-flex items-stretch overflow-hidden rounded-md border bg-background",
12176
12410
  invalid.value ? "border-destructive" : "border-input",
12177
12411
  disabled.value && "opacity-60",
12412
+ readOnly.value && "bg-muted text-muted-foreground",
12178
12413
  attrs.class
12179
12414
  )
12180
12415
  );
12181
- const selectClass = cn(
12182
- "h-10 cursor-pointer border-r border-input bg-card pl-2 pr-1 text-sm outline-hidden focus-visible:ring-2 focus-visible:ring-ring"
12416
+ const selectClass = computed(
12417
+ () => cn(
12418
+ "h-10 cursor-pointer border-r border-input bg-card pl-2 pr-1 text-sm outline-hidden focus-visible:ring-2 focus-visible:ring-ring",
12419
+ readOnly.value && "cursor-default bg-muted text-muted-foreground"
12420
+ )
12421
+ );
12422
+ const inputClass = cn(
12423
+ inputBaseVariants({ size: InputSize.Md }),
12424
+ "rounded-none border-0 focus-visible:ring-0 readonly:focus-visible:ring-0"
12183
12425
  );
12184
- const inputClass = cn(inputBaseVariants({ size: InputSize.Md }), "rounded-none border-0 focus-visible:ring-0");
12185
12426
  const formResetAnchor = useTemplateRef("formResetAnchor");
12186
12427
  const formResetRevision = useNativeFormReset(formResetAnchor, () => {
12187
12428
  controlled.reset();
@@ -12190,13 +12431,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12190
12431
  return (_ctx, _cache) => {
12191
12432
  return openBlock(), createElementBlock("div", mergeProps({
12192
12433
  key: unref(formResetRevision),
12434
+ "data-readonly": readOnly.value || void 0,
12193
12435
  class: rootClass.value
12194
12436
  }, passthroughAttrs.value), [
12195
12437
  createElementVNode("select", {
12196
12438
  "aria-label": unref(locale).t("PhoneInput.country", void 0, "Country"),
12197
12439
  value: iso.value,
12198
12440
  disabled: disabled.value || readOnly.value,
12199
- class: normalizeClass(unref(selectClass)),
12441
+ class: normalizeClass(selectClass.value),
12200
12442
  style: { minWidth: "90px" },
12201
12443
  onChange: setCountry
12202
12444
  }, [
@@ -12204,9 +12446,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12204
12446
  return createElementVNode("option", {
12205
12447
  key: c.iso,
12206
12448
  value: c.iso
12207
- }, toDisplayString(c.flag) + " " + toDisplayString(c.dial), 9, _hoisted_2$l);
12449
+ }, toDisplayString(c.flag) + " " + toDisplayString(c.dial), 9, _hoisted_3$h);
12208
12450
  }), 64))
12209
- ], 42, _hoisted_1$s),
12451
+ ], 42, _hoisted_2$l),
12210
12452
  createElementVNode("input", {
12211
12453
  type: "tel",
12212
12454
  inputmode: "tel",
@@ -12221,7 +12463,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12221
12463
  "aria-required": unref(ctx)?.isRequired || void 0,
12222
12464
  class: normalizeClass(unref(inputClass)),
12223
12465
  onInput: setNational
12224
- }, null, 42, _hoisted_3$h),
12466
+ }, null, 42, _hoisted_4$f),
12225
12467
  __props.name ? (openBlock(), createElementBlock("input", {
12226
12468
  key: 0,
12227
12469
  type: "hidden",
@@ -12229,15 +12471,15 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12229
12471
  form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
12230
12472
  name: __props.name,
12231
12473
  value: unref(e164)
12232
- }, null, 8, _hoisted_4$f)) : createCommentVNode("", true),
12474
+ }, null, 8, _hoisted_5$d)) : createCommentVNode("", true),
12233
12475
  createElementVNode("input", {
12234
12476
  ref_key: "formResetAnchor",
12235
12477
  ref: formResetAnchor,
12236
12478
  type: "hidden",
12237
12479
  form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
12238
12480
  "aria-hidden": "true"
12239
- }, null, 8, _hoisted_5$d)
12240
- ], 16);
12481
+ }, null, 8, _hoisted_6$a)
12482
+ ], 16, _hoisted_1$s);
12241
12483
  };
12242
12484
  }
12243
12485
  });
@@ -12676,14 +12918,14 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12676
12918
  });
12677
12919
  const locale = useLocale();
12678
12920
  return (_ctx, _cache) => {
12679
- return openBlock(), createBlock(unref(_sfc_main$2i), {
12921
+ return openBlock(), createBlock(unref(_sfc_main$2k), {
12680
12922
  key: unref(formResetRevision),
12681
12923
  gap: "3"
12682
12924
  }, {
12683
12925
  default: withCtx(() => [
12684
12926
  createElementVNode("div", _hoisted_1$p, [
12685
12927
  createElementVNode("span", _hoisted_2$j, toDisplayString(unref(props).label), 1),
12686
- createVNode(unref(_sfc_main$2j), {
12928
+ createVNode(unref(_sfc_main$2l), {
12687
12929
  variant: isNoneSelected.value ? void 0 : unref(ButtonVariant).Outline,
12688
12930
  tone: isNoneSelected.value ? unref(ColorTone).Primary : unref(ColorTone).Neutral,
12689
12931
  size: unref(SizePreset).Sm,
@@ -12696,14 +12938,14 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12696
12938
  _: 1
12697
12939
  }, 8, ["variant", "tone", "size", "aria-pressed"])
12698
12940
  ]),
12699
- createVNode(_sfc_main$1U, {
12941
+ createVNode(_sfc_main$1V, {
12700
12942
  size: searchSize.value,
12701
12943
  placeholder: unref(locale).t("EmojiPicker.searchEmoji", void 0, "Search emoji…"),
12702
12944
  "model-value": unref(picker).searchKeyword.value,
12703
12945
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(picker).searchKeyword.value = $event),
12704
12946
  onClear: _cache[2] || (_cache[2] = ($event) => unref(picker).searchKeyword.value = "")
12705
12947
  }, null, 8, ["size", "placeholder", "model-value"]),
12706
- createVNode(unref(_sfc_main$2i), { gap: "2" }, {
12948
+ createVNode(unref(_sfc_main$2k), { gap: "2" }, {
12707
12949
  default: withCtx(() => [
12708
12950
  !unref(picker).showSearch.value ? (openBlock(), createBlock(_sfc_main$B, {
12709
12951
  key: 0,
@@ -12755,7 +12997,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12755
12997
  scrollThumbColor: {},
12756
12998
  placement: { default: "bottom" },
12757
12999
  open: { type: Boolean, default: void 0 },
12758
- defaultOpen: { type: Boolean, default: false }
13000
+ defaultOpen: { type: Boolean, default: false },
13001
+ isReadOnly: { type: Boolean, default: void 0 }
12759
13002
  },
12760
13003
  emits: ["update:modelValue", "update:open"],
12761
13004
  setup(__props, { emit: __emit }) {
@@ -12774,10 +13017,17 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12774
13017
  const fieldId = computed(() => field?.id);
12775
13018
  const fieldLabelledBy = computed(() => field?.labelledBy);
12776
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
+ }
12777
13027
  const fieldInvalid = computed(() => field?.isInvalid || void 0);
12778
13028
  const triggerGlyph = computed(() => currentValue.value?.glyph ?? "🙂");
12779
13029
  function onPick(entry) {
12780
- if (field?.isDisabled || field?.isReadOnly) return;
13030
+ if (field?.isDisabled || finalReadOnly.value) return;
12781
13031
  emit("update:modelValue", entry);
12782
13032
  if (entry !== null) openCtl.setValue(false);
12783
13033
  }
@@ -12788,20 +13038,23 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12788
13038
  });
12789
13039
  const locale = useLocale();
12790
13040
  return (_ctx, _cache) => {
12791
- return openBlock(), createBlock(unref(_sfc_main$27), {
13041
+ return openBlock(), createBlock(unref(_sfc_main$29), {
12792
13042
  key: unref(formResetRevision),
12793
13043
  open: isOpenNow.value,
12794
13044
  placement: __props.placement,
12795
13045
  "onUpdate:open": _cache[0] || (_cache[0] = ($event) => unref(openCtl).setValue($event))
12796
13046
  }, {
12797
13047
  default: withCtx(() => [
12798
- createVNode(unref(_sfc_main$29), {
13048
+ createVNode(unref(_sfc_main$2b), {
12799
13049
  "as-child": "",
12800
- disabled: unref(field)?.isDisabled || unref(field)?.isReadOnly
13050
+ disabled: unref(field)?.isDisabled,
13051
+ "data-readonly": readOnlyTrigger.value || void 0,
13052
+ "aria-describedby": unref(readOnlyHint).describedBy(),
13053
+ onClick: onTriggerClick
12801
13054
  }, {
12802
13055
  default: withCtx(() => [
12803
13056
  renderSlot(_ctx.$slots, "trigger", {}, () => [
12804
- createVNode(unref(_sfc_main$2j), {
13057
+ createVNode(unref(_sfc_main$2l), {
12805
13058
  variant: unref(ButtonVariant).Ghost,
12806
13059
  tone: unref(ColorTone).Neutral,
12807
13060
  size: unref(SizePreset).Sm,
@@ -12809,8 +13062,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12809
13062
  id: fieldId.value,
12810
13063
  "aria-label": unref(locale).t("EmojiPickerPopover.chooseEmoji", void 0, "Choose emoji"),
12811
13064
  "aria-labelledby": fieldLabelledBy.value,
12812
- "aria-describedby": fieldDescribedBy.value,
12813
- "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"
12814
13068
  }, {
12815
13069
  default: withCtx(() => [
12816
13070
  createTextVNode(toDisplayString(triggerGlyph.value), 1)
@@ -12820,15 +13074,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12820
13074
  ])
12821
13075
  ]),
12822
13076
  _: 3
12823
- }, 8, ["disabled"]),
12824
- createVNode(unref(_sfc_main$2a), {
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), {
12825
13083
  class: "w-80",
12826
13084
  padding: "sm"
12827
13085
  }, {
12828
13086
  default: withCtx(() => [
12829
- createVNode(unref(_sfc_main$20), {
13087
+ createVNode(unref(_sfc_main$22), {
12830
13088
  "is-disabled": unref(field)?.isDisabled,
12831
- "is-read-only": unref(field)?.isReadOnly
13089
+ "is-read-only": finalReadOnly.value
12832
13090
  }, {
12833
13091
  default: withCtx(() => [
12834
13092
  createVNode(_sfc_main$y, {
@@ -13504,7 +13762,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
13504
13762
  const root = useTemplateRef("root");
13505
13763
  __expose({ el: computed(() => root.value?.el ?? null) });
13506
13764
  return (_ctx, _cache) => {
13507
- return openBlock(), createBlock(unref(_sfc_main$25), mergeProps({
13765
+ return openBlock(), createBlock(unref(_sfc_main$27), mergeProps({
13508
13766
  ref_key: "root",
13509
13767
  ref: root,
13510
13768
  disabled: finalDisabled.value,
@@ -13792,7 +14050,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
13792
14050
  });
13793
14051
  return (_ctx, _cache) => {
13794
14052
  return openBlock(), createElementBlock(Fragment, null, [
13795
- (openBlock(), createBlock(_sfc_main$2j, mergeProps({
14053
+ (openBlock(), createBlock(_sfc_main$2l, mergeProps({
13796
14054
  key: unref(formResetRevision),
13797
14055
  variant: unref(ButtonVariant).Ghost,
13798
14056
  tone: __props.tone ?? void 0,
@@ -14693,7 +14951,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
14693
14951
  class: "inline-flex h-7 w-7 items-center justify-center rounded text-muted-foreground hover:bg-muted hover:text-foreground",
14694
14952
  onClick: zoomIn
14695
14953
  }, [
14696
- createVNode(unref(_sfc_main$1$), {
14954
+ createVNode(unref(_sfc_main$20), {
14697
14955
  icon: unref(Plus),
14698
14956
  size: 14
14699
14957
  }, null, 8, ["icon"])
@@ -14704,7 +14962,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
14704
14962
  class: "inline-flex h-7 w-7 items-center justify-center rounded text-muted-foreground hover:bg-muted hover:text-foreground",
14705
14963
  onClick: zoomOut
14706
14964
  }, [
14707
- createVNode(unref(_sfc_main$1$), {
14965
+ createVNode(unref(_sfc_main$20), {
14708
14966
  icon: unref(Minus),
14709
14967
  size: 14
14710
14968
  }, null, 8, ["icon"])
@@ -14715,7 +14973,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
14715
14973
  class: "inline-flex h-7 w-7 items-center justify-center rounded text-muted-foreground hover:bg-muted hover:text-foreground",
14716
14974
  onClick: fitView
14717
14975
  }, [
14718
- createVNode(unref(_sfc_main$1$), {
14976
+ createVNode(unref(_sfc_main$20), {
14719
14977
  icon: unref(Maximize),
14720
14978
  size: 12
14721
14979
  }, null, 8, ["icon"])
@@ -15286,7 +15544,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
15286
15544
  ),
15287
15545
  "data-fill": fillOf(mark) === 1 ? "full" : fillOf(mark) > 0 ? "partial" : "empty"
15288
15546
  }, [
15289
- createVNode(unref(_sfc_main$1$), {
15547
+ createVNode(unref(_sfc_main$20), {
15290
15548
  icon: markIcon.value,
15291
15549
  size: iconSize.value,
15292
15550
  class: "text-muted-foreground/40"
@@ -15295,7 +15553,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
15295
15553
  class: "pointer-events-none absolute inset-y-0 start-0 overflow-hidden",
15296
15554
  style: normalizeStyle({ width: `${fillOf(mark) * 100}%` })
15297
15555
  }, [
15298
- createVNode(unref(_sfc_main$1$), {
15556
+ createVNode(unref(_sfc_main$20), {
15299
15557
  icon: markIcon.value,
15300
15558
  size: iconSize.value,
15301
15559
  class: normalizeClass(unref(cn)("fill-current", ToneClass[__props.tone] ?? ToneClass.warning))
@@ -16097,12 +16355,19 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
16097
16355
  const ariaLabel = computed(() => attrs[AriaAttribute.Label]);
16098
16356
  const triggerId = computed(() => props.id ?? field?.id);
16099
16357
  const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
16100
- const describedBy = computed(() => field?.describedBy);
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
+ );
16101
16363
  const formId = computed(() => typeof attrs.form === "string" ? attrs.form : void 0);
16102
- const OwnedAttributes = /* @__PURE__ */ new Set(["class", "form", AriaAttribute.Label]);
16364
+ const OwnedAttributes = /* @__PURE__ */ new Set(["class", "form", AriaAttribute.Label, AriaAttribute.DescribedBy]);
16103
16365
  const passthroughAttrs = computed(
16104
16366
  () => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
16105
16367
  );
16368
+ function onTriggerClick(event) {
16369
+ if (readOnly.value) event.preventDefault();
16370
+ }
16106
16371
  const triggerClass = computed(
16107
16372
  () => cn(
16108
16373
  selectTriggerVariants({ size: props.size, state: invalid.value ? InputState.Invalid : InputState.Default }),
@@ -16117,7 +16382,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
16117
16382
  controlled.reset();
16118
16383
  });
16119
16384
  return (_ctx, _cache) => {
16120
- return openBlock(), createBlock(unref(_sfc_main$27), {
16385
+ return openBlock(), createBlock(unref(_sfc_main$29), {
16121
16386
  key: unref(formResetRevision),
16122
16387
  open: open.value,
16123
16388
  "onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
@@ -16125,17 +16390,18 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
16125
16390
  offset: 6
16126
16391
  }, {
16127
16392
  default: withCtx(() => [
16128
- createVNode(unref(_sfc_main$29), mergeProps({
16393
+ createVNode(unref(_sfc_main$2b), mergeProps({
16129
16394
  ref_key: "trigger",
16130
16395
  ref: trigger,
16131
16396
  id: triggerId.value,
16132
- disabled: disabled.value || readOnly.value,
16397
+ disabled: disabled.value,
16398
+ "data-readonly": readOnlyTrigger.value || void 0,
16133
16399
  "aria-invalid": invalid.value || void 0,
16134
16400
  "aria-label": ariaLabel.value,
16135
16401
  "aria-labelledby": labelledBy.value,
16136
16402
  "aria-describedby": describedBy.value,
16137
16403
  class: triggerClass.value
16138
- }, passthroughAttrs.value), {
16404
+ }, passthroughAttrs.value, { onClick: onTriggerClick }), {
16139
16405
  default: withCtx(() => [
16140
16406
  createElementVNode("span", {
16141
16407
  class: normalizeClass(labelClass.value)
@@ -16143,8 +16409,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
16143
16409
  createVNode(unref(Calendar), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
16144
16410
  ]),
16145
16411
  _: 1
16146
- }, 16, ["id", "disabled", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
16147
- createVNode(unref(_sfc_main$2a), { "is-bare": "" }, {
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": "" }, {
16148
16418
  default: withCtx(() => [
16149
16419
  createVNode(_sfc_main$c, {
16150
16420
  kind: props.kind,
@@ -16159,7 +16429,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
16159
16429
  _: 1
16160
16430
  }),
16161
16431
  props.name ? (openBlock(), createElementBlock("input", {
16162
- key: 0,
16432
+ key: 1,
16163
16433
  type: "hidden",
16164
16434
  disabled: disabled.value,
16165
16435
  form: formId.value,
@@ -16291,7 +16561,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
16291
16561
  };
16292
16562
  }
16293
16563
  });
16294
- const _hoisted_1$7 = ["aria-label", "aria-labelledby", "aria-describedby", "aria-disabled"];
16564
+ const _hoisted_1$7 = ["aria-label", "aria-labelledby", "aria-describedby", "aria-disabled", "data-readonly"];
16295
16565
  const _hoisted_2$7 = ["id", "aria-label", "aria-invalid", "data-unit", "value", "disabled", "readonly", "onInput", "onKeydown"];
16296
16566
  const _hoisted_3$6 = {
16297
16567
  class: "me-1 text-muted-foreground last:me-0",
@@ -16432,11 +16702,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
16432
16702
  "items-center gap-1 focus-within:ring-2 focus-within:ring-ring",
16433
16703
  invalid.value && "focus-within:ring-destructive-soft-foreground",
16434
16704
  disabled.value && "cursor-not-allowed opacity-60",
16435
- readOnly.value && "bg-muted",
16705
+ readOnly.value && "focus-within:ring-1 focus-within:ring-muted-foreground",
16436
16706
  attrs.class
16437
16707
  )
16438
16708
  );
16439
- const SegmentClass = "min-w-[2ch] bg-transparent text-end tabular-nums outline-hidden placeholder:text-subtle-foreground disabled:cursor-not-allowed";
16709
+ const SegmentClass = "min-w-[2ch] bg-transparent text-end tabular-nums outline-hidden placeholder:text-subtle-foreground disabled:cursor-not-allowed readonly:cursor-default";
16440
16710
  const formResetAnchor = useTemplateRef("formResetAnchor");
16441
16711
  useNativeFormReset(formResetAnchor, () => {
16442
16712
  controlled.reset();
@@ -16449,6 +16719,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
16449
16719
  "aria-labelledby": groupLabelledBy.value,
16450
16720
  "aria-describedby": unref(field)?.describedBy,
16451
16721
  "aria-disabled": disabled.value || void 0,
16722
+ "data-readonly": readOnly.value || void 0,
16452
16723
  class: groupClass.value
16453
16724
  }, passthroughAttrs.value), [
16454
16725
  (openBlock(true), createElementBlock(Fragment, null, renderList(shownUnits.value, (unit, position) => {
@@ -16545,6 +16816,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
16545
16816
  const readOnly = computed(() => props.isReadOnly ?? field?.isReadOnly ?? false);
16546
16817
  const invalid = computed(() => props.isInvalid ?? field?.isInvalid ?? false);
16547
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));
16548
16822
  const controlled = useControlled({
16549
16823
  controlled: () => props.modelValue,
16550
16824
  default: () => props.defaultValue ?? null,
@@ -16707,7 +16981,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
16707
16981
  )
16708
16982
  );
16709
16983
  const canvasClass = computed(
16710
- () => cn("absolute inset-0 size-full touch-none", locked.value ? "cursor-not-allowed" : "cursor-crosshair")
16984
+ () => cn(
16985
+ "absolute inset-0 size-full touch-none",
16986
+ disabled.value ? "cursor-not-allowed" : readOnly.value ? "cursor-default" : "cursor-crosshair"
16987
+ )
16711
16988
  );
16712
16989
  return (_ctx, _cache) => {
16713
16990
  return openBlock(), createElementBlock("div", mergeProps({
@@ -16731,7 +17008,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
16731
17008
  role: "img",
16732
17009
  "aria-label": padName.value,
16733
17010
  "aria-labelledby": unref(attrs)[unref(AriaAttribute).Label] ? void 0 : unref(field)?.labelledBy,
16734
- "aria-describedby": unref(field)?.describedBy,
17011
+ "aria-describedby": describedBy.value,
16735
17012
  "aria-invalid": invalid.value || void 0,
16736
17013
  "aria-disabled": disabled.value || void 0,
16737
17014
  class: normalizeClass(canvasClass.value),
@@ -16741,9 +17018,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
16741
17018
  onPointercancel: onPointerEnd
16742
17019
  }, null, 42, _hoisted_4$5)
16743
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),
16744
17025
  createElementVNode("div", _hoisted_5$5, [
16745
17026
  createElementVNode("span", _hoisted_6$4, toDisplayString(statusText.value), 1),
16746
- createVNode(unref(_sfc_main$2j), {
17027
+ createVNode(unref(_sfc_main$2l), {
16747
17028
  size: "sm",
16748
17029
  variant: "ghost",
16749
17030
  disabled: locked.value || strokeCount.value === 0,
@@ -16754,7 +17035,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
16754
17035
  ]),
16755
17036
  _: 1
16756
17037
  }, 8, ["disabled"]),
16757
- createVNode(unref(_sfc_main$2j), {
17038
+ createVNode(unref(_sfc_main$2l), {
16758
17039
  size: "sm",
16759
17040
  variant: "ghost",
16760
17041
  disabled: locked.value || isEmpty.value,
@@ -16767,7 +17048,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
16767
17048
  }, 8, ["disabled"])
16768
17049
  ]),
16769
17050
  unref(props).name ? (openBlock(), createElementBlock("input", {
16770
- key: 0,
17051
+ key: 1,
16771
17052
  type: "hidden",
16772
17053
  disabled: disabled.value,
16773
17054
  form: formId.value,
@@ -17026,7 +17307,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
17026
17307
  setup(__props) {
17027
17308
  return (_ctx, _cache) => {
17028
17309
  const _component_TreeSelectPickerNode = resolveComponent("TreeSelectPickerNode", true);
17029
- return __props.node.children && __props.node.children.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$2k), {
17310
+ return __props.node.children && __props.node.children.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$2m), {
17030
17311
  key: 0,
17031
17312
  value: __props.node.value,
17032
17313
  label: __props.node.label,
@@ -17041,7 +17322,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
17041
17322
  }), 128))
17042
17323
  ]),
17043
17324
  _: 1
17044
- }, 8, ["value", "label", "is-disabled"])) : (openBlock(), createBlock(unref(_sfc_main$2l), {
17325
+ }, 8, ["value", "label", "is-disabled"])) : (openBlock(), createBlock(unref(_sfc_main$2n), {
17045
17326
  key: 1,
17046
17327
  value: __props.node.value,
17047
17328
  "is-disabled": __props.node.isDisabled
@@ -17114,12 +17395,20 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
17114
17395
  return props.isPathShown ? picked.value.path.join(" / ") : picked.value.label;
17115
17396
  });
17116
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
+ );
17117
17403
  const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
17118
17404
  const formId = computed(() => typeof attrs.form === "string" ? attrs.form : void 0);
17119
- const OwnedAttributes = /* @__PURE__ */ new Set(["class", "form", AriaAttribute.Label]);
17405
+ const OwnedAttributes = /* @__PURE__ */ new Set(["class", "form", AriaAttribute.Label, AriaAttribute.DescribedBy]);
17120
17406
  const passthroughAttrs = computed(
17121
17407
  () => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
17122
17408
  );
17409
+ function onTriggerClick(event) {
17410
+ if (readOnly.value) event.preventDefault();
17411
+ }
17123
17412
  const triggerClass = computed(
17124
17413
  () => cn(
17125
17414
  selectTriggerVariants({ size: props.size, state: invalid.value ? InputState.Invalid : InputState.Default }),
@@ -17132,7 +17421,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
17132
17421
  controlled.reset();
17133
17422
  });
17134
17423
  return (_ctx, _cache) => {
17135
- return openBlock(), createBlock(unref(_sfc_main$27), {
17424
+ return openBlock(), createBlock(unref(_sfc_main$29), {
17136
17425
  key: unref(formResetRevision),
17137
17426
  open: open.value,
17138
17427
  "onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
@@ -17140,15 +17429,16 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
17140
17429
  offset: 6
17141
17430
  }, {
17142
17431
  default: withCtx(() => [
17143
- createVNode(unref(_sfc_main$29), mergeProps({
17432
+ createVNode(unref(_sfc_main$2b), mergeProps({
17144
17433
  id: unref(props).id ?? unref(field)?.id,
17145
- disabled: disabled.value || readOnly.value,
17434
+ disabled: disabled.value,
17435
+ "data-readonly": readOnlyTrigger.value || void 0,
17146
17436
  "aria-invalid": invalid.value || void 0,
17147
17437
  "aria-label": ariaLabel.value,
17148
17438
  "aria-labelledby": labelledBy.value,
17149
- "aria-describedby": unref(field)?.describedBy,
17439
+ "aria-describedby": describedBy.value,
17150
17440
  class: triggerClass.value
17151
- }, passthroughAttrs.value), {
17441
+ }, passthroughAttrs.value, { onClick: onTriggerClick }), {
17152
17442
  default: withCtx(() => [
17153
17443
  createElementVNode("span", {
17154
17444
  class: normalizeClass(labelClass.value)
@@ -17156,10 +17446,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
17156
17446
  createVNode(unref(ChevronDown), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
17157
17447
  ]),
17158
17448
  _: 1
17159
- }, 16, ["id", "disabled", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
17160
- createVNode(unref(_sfc_main$2a), { class: "max-h-80 min-w-56 overflow-y-auto p-1" }, {
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" }, {
17161
17455
  default: withCtx(() => [
17162
- createVNode(unref(_sfc_main$2m), {
17456
+ createVNode(unref(_sfc_main$2o), {
17163
17457
  "model-value": unref(value),
17164
17458
  "default-expanded": initialExpanded.value,
17165
17459
  "aria-label": ariaLabel.value,
@@ -17180,7 +17474,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
17180
17474
  _: 1
17181
17475
  }),
17182
17476
  unref(props).name ? (openBlock(), createElementBlock("input", {
17183
- key: 0,
17477
+ key: 1,
17184
17478
  type: "hidden",
17185
17479
  disabled: disabled.value,
17186
17480
  form: formId.value,
@@ -17330,12 +17624,20 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
17330
17624
  return browsed.value[column - 1]?.label;
17331
17625
  }
17332
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
+ );
17333
17632
  const labelledBy = computed(() => ariaLabel.value ? void 0 : field?.labelledBy);
17334
17633
  const formId = computed(() => typeof attrs.form === "string" ? attrs.form : void 0);
17335
- const OwnedAttributes = /* @__PURE__ */ new Set(["class", "form", AriaAttribute.Label]);
17634
+ const OwnedAttributes = /* @__PURE__ */ new Set(["class", "form", AriaAttribute.Label, AriaAttribute.DescribedBy]);
17336
17635
  const passthroughAttrs = computed(
17337
17636
  () => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
17338
17637
  );
17638
+ function onTriggerClick(event) {
17639
+ if (readOnly.value) event.preventDefault();
17640
+ }
17339
17641
  const triggerClass = computed(
17340
17642
  () => cn(
17341
17643
  selectTriggerVariants({ size: props.size, state: invalid.value ? InputState.Invalid : InputState.Default }),
@@ -17357,7 +17659,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
17357
17659
  controlled.reset();
17358
17660
  });
17359
17661
  return (_ctx, _cache) => {
17360
- return openBlock(), createBlock(unref(_sfc_main$27), {
17662
+ return openBlock(), createBlock(unref(_sfc_main$29), {
17361
17663
  key: unref(formResetRevision),
17362
17664
  open: open.value,
17363
17665
  "onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
@@ -17365,15 +17667,16 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
17365
17667
  offset: 6
17366
17668
  }, {
17367
17669
  default: withCtx(() => [
17368
- createVNode(unref(_sfc_main$29), mergeProps({
17670
+ createVNode(unref(_sfc_main$2b), mergeProps({
17369
17671
  id: unref(props).id ?? unref(field)?.id,
17370
- disabled: disabled.value || readOnly.value,
17672
+ disabled: disabled.value,
17673
+ "data-readonly": readOnlyTrigger.value || void 0,
17371
17674
  "aria-invalid": invalid.value || void 0,
17372
17675
  "aria-label": ariaLabel.value,
17373
17676
  "aria-labelledby": labelledBy.value,
17374
- "aria-describedby": unref(field)?.describedBy,
17677
+ "aria-describedby": describedBy.value,
17375
17678
  class: triggerClass.value
17376
- }, passthroughAttrs.value), {
17679
+ }, passthroughAttrs.value, { onClick: onTriggerClick }), {
17377
17680
  default: withCtx(() => [
17378
17681
  createElementVNode("span", {
17379
17682
  class: normalizeClass(labelClass.value)
@@ -17381,8 +17684,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
17381
17684
  createVNode(unref(ChevronDown), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
17382
17685
  ]),
17383
17686
  _: 1
17384
- }, 16, ["id", "disabled", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
17385
- createVNode(unref(_sfc_main$2a), { class: "max-w-[calc(100vw-2rem)] overflow-x-auto p-0" }, {
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" }, {
17386
17693
  default: withCtx(() => [
17387
17694
  createElementVNode("div", {
17388
17695
  ref_key: "columnsEl",
@@ -17423,7 +17730,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
17423
17730
  ]),
17424
17731
  _: 1
17425
17732
  }),
17426
- unref(props).name ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(value) ?? [], (segment, depth) => {
17733
+ unref(props).name ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(value) ?? [], (segment, depth) => {
17427
17734
  return openBlock(), createElementBlock("input", {
17428
17735
  key: depth,
17429
17736
  type: "hidden",
@@ -18060,7 +18367,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18060
18367
  role: "group",
18061
18368
  "aria-label": label("history", "Edit history")
18062
18369
  }, [
18063
- createVNode(unref(_sfc_main$2j), {
18370
+ createVNode(unref(_sfc_main$2l), {
18064
18371
  type: "button",
18065
18372
  variant: "outline",
18066
18373
  size: "sm",
@@ -18072,7 +18379,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18072
18379
  ]),
18073
18380
  _: 1
18074
18381
  }, 8, ["is-disabled"]),
18075
- createVNode(unref(_sfc_main$2j), {
18382
+ createVNode(unref(_sfc_main$2l), {
18076
18383
  type: "button",
18077
18384
  variant: "outline",
18078
18385
  size: "sm",
@@ -18084,7 +18391,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18084
18391
  ]),
18085
18392
  _: 1
18086
18393
  }, 8, ["is-disabled"]),
18087
- createVNode(unref(_sfc_main$2j), {
18394
+ createVNode(unref(_sfc_main$2l), {
18088
18395
  type: "button",
18089
18396
  variant: "outline",
18090
18397
  size: "sm",
@@ -18116,7 +18423,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18116
18423
  "aria-label": label("aspect", "Crop aspect ratio")
18117
18424
  }, [
18118
18425
  (openBlock(), createElementBlock(Fragment, null, renderList(ratios, (preset) => {
18119
- return createVNode(unref(_sfc_main$2j), {
18426
+ return createVNode(unref(_sfc_main$2l), {
18120
18427
  key: preset.key,
18121
18428
  type: "button",
18122
18429
  variant: "outline",
@@ -18131,7 +18438,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18131
18438
  _: 2
18132
18439
  }, 1032, ["aria-pressed", "is-disabled", "onClick"]);
18133
18440
  }), 64)),
18134
- createVNode(unref(_sfc_main$2j), {
18441
+ createVNode(unref(_sfc_main$2l), {
18135
18442
  type: "button",
18136
18443
  variant: "outline",
18137
18444
  size: "sm",
@@ -18163,7 +18470,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18163
18470
  role: "group",
18164
18471
  "aria-label": label("transform", "Rotate and flip")
18165
18472
  }, [
18166
- createVNode(unref(_sfc_main$2j), {
18473
+ createVNode(unref(_sfc_main$2l), {
18167
18474
  type: "button",
18168
18475
  variant: "outline",
18169
18476
  size: "sm",
@@ -18175,7 +18482,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18175
18482
  ]),
18176
18483
  _: 1
18177
18484
  }, 8, ["is-disabled"]),
18178
- createVNode(unref(_sfc_main$2j), {
18485
+ createVNode(unref(_sfc_main$2l), {
18179
18486
  type: "button",
18180
18487
  variant: "outline",
18181
18488
  size: "sm",
@@ -18187,7 +18494,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18187
18494
  ]),
18188
18495
  _: 1
18189
18496
  }, 8, ["is-disabled"]),
18190
- createVNode(unref(_sfc_main$2j), {
18497
+ createVNode(unref(_sfc_main$2l), {
18191
18498
  type: "button",
18192
18499
  variant: "outline",
18193
18500
  size: "sm",
@@ -18200,7 +18507,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18200
18507
  ]),
18201
18508
  _: 1
18202
18509
  }, 8, ["aria-pressed", "is-disabled"]),
18203
- createVNode(unref(_sfc_main$2j), {
18510
+ createVNode(unref(_sfc_main$2l), {
18204
18511
  type: "button",
18205
18512
  variant: "outline",
18206
18513
  size: "sm",
@@ -18221,7 +18528,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18221
18528
  for: `${unref(id)}-width`
18222
18529
  }, [
18223
18530
  createElementVNode("span", null, toDisplayString(label("width", "Output width")), 1),
18224
- createVNode(unref(_sfc_main$1W), {
18531
+ createVNode(unref(_sfc_main$1X), {
18225
18532
  id: `${unref(id)}-width`,
18226
18533
  "model-value": outputSize.value.width,
18227
18534
  min: 1,
@@ -18235,7 +18542,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18235
18542
  for: `${unref(id)}-height`
18236
18543
  }, [
18237
18544
  createElementVNode("span", null, toDisplayString(label("height", "Output height")), 1),
18238
- createVNode(unref(_sfc_main$1W), {
18545
+ createVNode(unref(_sfc_main$1X), {
18239
18546
  id: `${unref(id)}-height`,
18240
18547
  "model-value": outputSize.value.height,
18241
18548
  min: 1,
@@ -18246,7 +18553,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18246
18553
  ], 8, _hoisted_16)
18247
18554
  ]),
18248
18555
  createElementVNode("label", _hoisted_17, [
18249
- createVNode(unref(_sfc_main$24), {
18556
+ createVNode(unref(_sfc_main$26), {
18250
18557
  modelValue: isProportional.value,
18251
18558
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => isProportional.value = $event),
18252
18559
  "is-disabled": locked.value
@@ -18259,7 +18566,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18259
18566
  "aria-label": label("format", "Output format")
18260
18567
  }, [
18261
18568
  (openBlock(), createElementBlock(Fragment, null, renderList(formats, (item) => {
18262
- return createVNode(unref(_sfc_main$2j), {
18569
+ return createVNode(unref(_sfc_main$2l), {
18263
18570
  key: item,
18264
18571
  type: "button",
18265
18572
  variant: "outline",
@@ -18280,7 +18587,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18280
18587
  for: `${unref(id)}-quality`
18281
18588
  }, [
18282
18589
  createElementVNode("span", null, toDisplayString(label("quality", "Output quality (JPEG and WebP)")), 1),
18283
- createVNode(unref(_sfc_main$1W), {
18590
+ createVNode(unref(_sfc_main$1X), {
18284
18591
  id: `${unref(id)}-quality`,
18285
18592
  "model-value": unref(value).output.quality,
18286
18593
  min: 1,
@@ -18290,7 +18597,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18290
18597
  }, null, 8, ["id", "model-value", "is-disabled"])
18291
18598
  ], 8, _hoisted_19),
18292
18599
  createElementVNode("label", _hoisted_20, [
18293
- createVNode(unref(_sfc_main$24), {
18600
+ createVNode(unref(_sfc_main$26), {
18294
18601
  "model-value": unref(value).removeBackground,
18295
18602
  "is-disabled": locked.value || !__props.canRemoveBackground && !unref(value).removeBackground,
18296
18603
  "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => patch({ removeBackground: $event }))
@@ -18301,7 +18608,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18301
18608
  __props.error || validationMessage.value ? (openBlock(), createElementBlock("p", _hoisted_22, toDisplayString(__props.error || validationMessage.value), 1)) : createCommentVNode("", true),
18302
18609
  __props.isBusy ? (openBlock(), createElementBlock("p", _hoisted_23, toDisplayString(label("busy", "Processing image…")), 1)) : createCommentVNode("", true),
18303
18610
  createElementVNode("div", _hoisted_24, [
18304
- createVNode(unref(_sfc_main$2j), {
18611
+ createVNode(unref(_sfc_main$2l), {
18305
18612
  type: "button",
18306
18613
  variant: "outline",
18307
18614
  "is-disabled": locked.value || Boolean(issue.value) || needsSourceReset.value,
@@ -18312,7 +18619,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18312
18619
  ]),
18313
18620
  _: 1
18314
18621
  }, 8, ["is-disabled"]),
18315
- createVNode(unref(_sfc_main$2j), {
18622
+ createVNode(unref(_sfc_main$2l), {
18316
18623
  type: "button",
18317
18624
  "is-disabled": locked.value || Boolean(issue.value) || needsSourceReset.value,
18318
18625
  onClick: _cache[12] || (_cache[12] = ($event) => request("apply"))
@@ -18566,9 +18873,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18566
18873
  style: normalizeStyle(markerStyle.value),
18567
18874
  "aria-hidden": "true"
18568
18875
  }, null, 4),
18569
- isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$2b), { key: 0 }, {
18876
+ isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$2d), { key: 0 }, {
18570
18877
  default: withCtx(() => [
18571
- createVNode(unref(_sfc_main$2c), {
18878
+ createVNode(unref(_sfc_main$2e), {
18572
18879
  anchor: marker.value,
18573
18880
  placement: "bottom-start",
18574
18881
  offset: 4,
@@ -18641,7 +18948,7 @@ export {
18641
18948
  _sfc_main$X as W,
18642
18949
  _sfc_main$W as X,
18643
18950
  _sfc_main$V as Y,
18644
- _sfc_main$1Z as Z,
18951
+ _sfc_main$1_ as Z,
18645
18952
  _sfc_main$D as _,
18646
18953
  _sfc_main$1f as a,
18647
18954
  RatingStep as a$,
@@ -18663,10 +18970,10 @@ export {
18663
18970
  _sfc_main$1r as aF,
18664
18971
  _sfc_main$1q as aG,
18665
18972
  _sfc_main$l as aH,
18666
- _sfc_main$1W as aI,
18973
+ _sfc_main$1X as aI,
18667
18974
  _sfc_main$r as aJ,
18668
18975
  _sfc_main$p as aK,
18669
- _sfc_main$1V as aL,
18976
+ _sfc_main$1W as aL,
18670
18977
  _sfc_main$1G as aM,
18671
18978
  PhoneCountries as aN,
18672
18979
  _sfc_main$C as aO,
@@ -18715,7 +19022,7 @@ export {
18715
19022
  RecurrenceEndMode as b3,
18716
19023
  RecurrenceFreq as b4,
18717
19024
  RecurrenceWeekday as b5,
18718
- _sfc_main$1U as b6,
19025
+ _sfc_main$1V as b6,
18719
19026
  _sfc_main$o as b7,
18720
19027
  _sfc_main$1x as b8,
18721
19028
  _sfc_main$1u as b9,
@@ -18724,7 +19031,7 @@ export {
18724
19031
  ToggleMode as bC,
18725
19032
  _sfc_main$6 as bD,
18726
19033
  _sfc_main$4 as bE,
18727
- _sfc_main$1X as bF,
19034
+ _sfc_main$1Y as bF,
18728
19035
  _sfc_main$U as bG,
18729
19036
  _sfc_main$T as bH,
18730
19037
  _sfc_main$S as bI,
@@ -18761,9 +19068,9 @@ export {
18761
19068
  _sfc_main$1M as bm,
18762
19069
  _sfc_main$1R as bn,
18763
19070
  _sfc_main$$ as bo,
18764
- _sfc_main$1Y as bp,
18765
- _sfc_main$1T as bq,
18766
- _sfc_main$1_ as br,
19071
+ _sfc_main$1Z as bp,
19072
+ _sfc_main$1U as bq,
19073
+ _sfc_main$1$ as br,
18767
19074
  _sfc_main$1b as bs,
18768
19075
  _sfc_main$18 as bt,
18769
19076
  _sfc_main$d as bu,
@@ -18797,4 +19104,4 @@ export {
18797
19104
  _sfc_main$1m as y,
18798
19105
  _sfc_main$1k as z
18799
19106
  };
18800
- //# sourceMappingURL=MentionInput.vue_vue_type_script_setup_true_lang-hYD3uP3P.js.map
19107
+ //# sourceMappingURL=MentionInput.vue_vue_type_script_setup_true_lang-D8OEoQ37.js.map