@wow-two-beta/fe 0.0.27 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js → AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js} +700 -283
- package/dist/chunks/AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js.map +1 -0
- package/dist/chunks/Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js +267 -0
- package/dist/chunks/Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js.map +1 -0
- package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-CNMcUYtR.js → BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js} +2 -2
- package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-CNMcUYtR.js.map → BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js.map} +1 -1
- package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-BrgCAsgC.js → Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js} +2 -3
- package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-BrgCAsgC.js.map → Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js.map} +1 -1
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js → DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js} +2 -2
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js.map → DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js.map} +1 -1
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js} +4 -4
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js.map → ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js.map} +1 -1
- package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-eqG5AyoV.js → FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js} +2 -2
- package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-eqG5AyoV.js.map → FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js.map} +1 -1
- package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-BCnquIre.js → KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js} +169 -427
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js.map +1 -0
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js → LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js} +6 -6
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js.map → LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js.map} +1 -1
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-2CWeHWdV.js → MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js} +4 -4
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-2CWeHWdV.js.map → MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js.map} +1 -1
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js → MentionInput.vue_vue_type_script_setup_true_lang-5pRxNIcK.js} +133 -82
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-5pRxNIcK.js.map +1 -0
- package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js → OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js} +2 -2
- package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js.map → OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js.map} +1 -1
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js → PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js} +2 -2
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js.map → PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js.map} +1 -1
- package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-l4DjtcpM.js → ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js} +2 -2
- package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-l4DjtcpM.js.map → ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js.map} +1 -1
- package/dist/chunks/{SurfaceStyles-B8KNkFsm.js → SurfaceStyles-BYvRlsWe.js} +2 -2
- package/dist/chunks/{SurfaceStyles-B8KNkFsm.js.map → SurfaceStyles-BYvRlsWe.js.map} +1 -1
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js → ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js} +3 -3
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js.map → ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js.map} +1 -1
- package/dist/chunks/{Tones-CQu-OvAk.js → Tones-Bcz8dIo3.js} +159 -1
- package/dist/chunks/Tones-Bcz8dIo3.js.map +1 -0
- package/dist/chunks/{index-C-r59Hob.js → index-CGIXFfl9.js} +3 -4
- package/dist/chunks/{index-C-r59Hob.js.map → index-CGIXFfl9.js.map} +1 -1
- package/dist/foundation/config/ConfigSource.d.ts +12 -5
- package/dist/foundation/config/DefineConfig.d.ts +9 -4
- package/dist/foundation/config/index.d.ts +1 -1
- package/dist/foundation/config/index.js +12 -9
- package/dist/foundation/config/index.js.map +1 -1
- package/dist/foundation/styles/index.js +9 -10
- package/dist/foundation/styles/index.js.map +1 -1
- package/dist/index.css +5 -0
- package/dist/index.js +465 -463
- package/dist/index.js.map +1 -1
- package/dist/presentation/actions/index.js +2 -2
- package/dist/presentation/display/index.js +178 -177
- package/dist/presentation/display/index.js.map +1 -1
- package/dist/presentation/feedback/index.js +3 -3
- package/dist/presentation/feedback/toastHost/index.js +1 -1
- package/dist/presentation/forms/InputStyles.d.ts +4 -4
- package/dist/presentation/forms/comboboxPicker/ComboboxPickerContext.d.ts +3 -0
- package/dist/presentation/forms/index.js +2 -2
- package/dist/presentation/forms/multiSelectPicker/MultiSelectPickerContext.d.ts +3 -0
- package/dist/presentation/forms/selectPicker/SelectPicker.variants.d.ts +5 -5
- package/dist/presentation/forms/selectPicker/SelectPickerContext.d.ts +3 -0
- package/dist/presentation/layout/index.js +1 -1
- package/dist/presentation/nav/accountMenu/AccountMenu.vue.d.ts +131 -0
- package/dist/presentation/nav/accountMenu/index.d.ts +1 -0
- package/dist/presentation/nav/index.d.ts +1 -0
- package/dist/presentation/nav/index.js +72 -71
- package/dist/presentation/overlays/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunks/AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js.map +0 -1
- package/dist/chunks/CssExtensions-ctGVlfYU.js +0 -161
- package/dist/chunks/CssExtensions-ctGVlfYU.js.map +0 -1
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-BCnquIre.js.map +0 -1
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js.map +0 -1
- package/dist/chunks/Tones-CQu-OvAk.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
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";
|
|
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";
|
|
@@ -16,10 +16,10 @@ import { O as Orientation } from "./Orientation-u-sYunuG.js";
|
|
|
16
16
|
import { _ as _sfc_main$25, a as _sfc_main$2i } 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-
|
|
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";
|
|
20
20
|
import { A as AriaAttribute } from "./AriaAttribute-CmUjjXjp.js";
|
|
21
21
|
import { D as DomOrderExtensions } from "./DomOrderExtensions-Czsyvn6e.js";
|
|
22
|
-
import { s as surfaceVariants } from "./SurfaceStyles-
|
|
22
|
+
import { s as surfaceVariants } from "./SurfaceStyles-BYvRlsWe.js";
|
|
23
23
|
import { _ as _sfc_main$2b } from "./Portal.vue_vue_type_script_setup_true_lang-C2_xSIMy.js";
|
|
24
24
|
import { P as Presence } from "./Presence-DDk0ZtAr.js";
|
|
25
25
|
import { _ as _sfc_main$2c } from "./AnchoredPositioner.vue_vue_type_script_setup_true_lang-BpBVI2Cu.js";
|
|
@@ -30,12 +30,12 @@ import { a as matchesAcceptType, m as matchesAccept } from "./Accept-BWpCXDmS.js
|
|
|
30
30
|
import { U as UrlExtensions } from "./UrlExtensions-DqgLm0KY.js";
|
|
31
31
|
import { Marked } from "marked";
|
|
32
32
|
import { u as useEventListener } from "./UseEventListener-C1WgWGoT.js";
|
|
33
|
-
import { C as CssExtensions, S as SizePreset } from "./
|
|
33
|
+
import { C as CssExtensions, S as SizePreset } from "./Tones-Bcz8dIo3.js";
|
|
34
34
|
import { a as ColorTone } from "./ColorExtensions-DiCSaVbJ.js";
|
|
35
35
|
import { a as EmojiCategory, E as EmojiCatalog } from "./EmojiCatalog-BZxsd9fO.js";
|
|
36
36
|
import { K as Key } from "./Key-CQlkK53D.js";
|
|
37
37
|
import { a as useRecentItems } from "./UseRecentItems-BV7p4em6.js";
|
|
38
|
-
import { _ as _sfc_main$2j, a as ButtonVariant, B as ButtonShape } from "./Button.vue_vue_type_script_setup_true_lang-
|
|
38
|
+
import { _ as _sfc_main$2j, 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";
|
|
@@ -47,7 +47,7 @@ import { u as useResizeObserver } from "./UseResizeObserver-Des0Rurq.js";
|
|
|
47
47
|
import { ImageEditRecipeExtensions } from "../domain/imageEditing/index.js";
|
|
48
48
|
import { c as createSnapshotHistory, u as useHistoryVersion } from "./UseUndoHistory-C0ASU3yD.js";
|
|
49
49
|
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
|
|
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:bg-muted disabled:opacity-60 readonly:cursor-default readonly:bg-muted readonly:text-muted-foreground readonly:focus-visible:ring-1",
|
|
51
51
|
variants: {
|
|
52
52
|
size: {
|
|
53
53
|
xs: "h-7 px-2 text-xs",
|
|
@@ -56,7 +56,7 @@ const inputBaseVariants = tv({
|
|
|
56
56
|
lg: "h-12 px-4 text-base"
|
|
57
57
|
},
|
|
58
58
|
state: {
|
|
59
|
-
default: "border-input hover:border-border-strong",
|
|
59
|
+
default: "border-input hover:border-border-strong readonly:hover:border-input readonly:focus-visible:ring-muted-foreground",
|
|
60
60
|
invalid: "border-destructive-soft-foreground focus-visible:ring-destructive-soft-foreground"
|
|
61
61
|
},
|
|
62
62
|
/* Border weight — scale like `size`/`radius`; default `sm` (1px). */
|
|
@@ -76,6 +76,8 @@ const inputBaseVariants = tv({
|
|
|
76
76
|
lg: "focus-visible:ring-4"
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
+
/* A caller that turned the focus ring off keeps it off while the control is read-only. */
|
|
80
|
+
compoundVariants: [{ ring: "none", class: "readonly:focus-visible:ring-0" }],
|
|
79
81
|
defaultVariants: {
|
|
80
82
|
size: "md",
|
|
81
83
|
state: "default",
|
|
@@ -2336,7 +2338,7 @@ const _hoisted_3$J = {
|
|
|
2336
2338
|
};
|
|
2337
2339
|
const _hoisted_4$A = { class: "min-w-0 flex-1" };
|
|
2338
2340
|
const _hoisted_5$p = { class: "font-medium text-foreground" };
|
|
2339
|
-
const _hoisted_6$
|
|
2341
|
+
const _hoisted_6$m = {
|
|
2340
2342
|
key: 0,
|
|
2341
2343
|
class: "mt-0.5 text-muted-foreground"
|
|
2342
2344
|
};
|
|
@@ -2455,7 +2457,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
2455
2457
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
2456
2458
|
])
|
|
2457
2459
|
]),
|
|
2458
|
-
hasDescription.value ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
2460
|
+
hasDescription.value ? (openBlock(), createElementBlock("div", _hoisted_6$m, [
|
|
2459
2461
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
2460
2462
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
2461
2463
|
])
|
|
@@ -3228,6 +3230,9 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
3228
3230
|
get isDisabled() {
|
|
3229
3231
|
return finalDisabled.value || finalReadOnly.value;
|
|
3230
3232
|
},
|
|
3233
|
+
get isReadOnly() {
|
|
3234
|
+
return finalReadOnly.value && !finalDisabled.value;
|
|
3235
|
+
},
|
|
3231
3236
|
get isLoading() {
|
|
3232
3237
|
return props.isLoading;
|
|
3233
3238
|
},
|
|
@@ -3374,7 +3379,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
3374
3379
|
}
|
|
3375
3380
|
});
|
|
3376
3381
|
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"];
|
|
3382
|
+
const _hoisted_2$X = ["id", "disabled", "aria-readonly", "aria-busy", "aria-controls", "aria-activedescendant", "aria-invalid", "aria-labelledby", "aria-describedby", "data-state"];
|
|
3378
3383
|
const _hoisted_3$G = { class: "ml-auto flex shrink-0 items-center gap-1.5" };
|
|
3379
3384
|
const _hoisted_4$z = ["aria-label"];
|
|
3380
3385
|
const TriggerIconClasses = {
|
|
@@ -3452,7 +3457,8 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
3452
3457
|
const dividerClass = computed(() => TriggerDividerClasses[sizeKey.value]);
|
|
3453
3458
|
const clearOffsetClass = computed(() => TriggerClearOffsetClasses[sizeKey.value]);
|
|
3454
3459
|
const labelledBy = computed(() => !ariaLabel.value ? ctx.labelId : void 0);
|
|
3455
|
-
const
|
|
3460
|
+
const isHardDisabled = computed(() => ctx.isDisabled && !ctx.isReadOnly);
|
|
3461
|
+
const dataState = computed(() => triggerDataState(ctx.open, ctx.isLoading, isHardDisabled.value, ctx.isInvalid));
|
|
3456
3462
|
const chevronClass = computed(
|
|
3457
3463
|
() => cn(iconClass.value, "text-muted-foreground transition-transform", ctx.open && "rotate-180")
|
|
3458
3464
|
);
|
|
@@ -3505,7 +3511,8 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
3505
3511
|
ref: root,
|
|
3506
3512
|
type: "button",
|
|
3507
3513
|
id: unref(ctx).fieldId,
|
|
3508
|
-
disabled:
|
|
3514
|
+
disabled: isHardDisabled.value || unref(ctx).isLoading,
|
|
3515
|
+
"aria-readonly": unref(ctx).isReadOnly || void 0,
|
|
3509
3516
|
"aria-busy": unref(ctx).isLoading || void 0,
|
|
3510
3517
|
"aria-haspopup": "listbox",
|
|
3511
3518
|
"aria-controls": unref(ctx).listboxId,
|
|
@@ -3830,13 +3837,14 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
3830
3837
|
function getOptionLabelFn(value) {
|
|
3831
3838
|
return props.getOptionLabel?.(value) ?? null;
|
|
3832
3839
|
}
|
|
3840
|
+
function onOpenChange(next) {
|
|
3841
|
+
if (!next || !inactive.value) openCtl.setValue(next);
|
|
3842
|
+
}
|
|
3833
3843
|
provide(multiSelectContextKey, {
|
|
3834
3844
|
get open() {
|
|
3835
3845
|
return openCtl.value.value;
|
|
3836
3846
|
},
|
|
3837
|
-
setOpen:
|
|
3838
|
-
if (!next || !inactive.value) openCtl.setValue(next);
|
|
3839
|
-
},
|
|
3847
|
+
setOpen: onOpenChange,
|
|
3840
3848
|
get values() {
|
|
3841
3849
|
return valuesCtl.value.value;
|
|
3842
3850
|
},
|
|
@@ -3852,6 +3860,9 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
3852
3860
|
get isDisabled() {
|
|
3853
3861
|
return inactive.value;
|
|
3854
3862
|
},
|
|
3863
|
+
get isReadOnly() {
|
|
3864
|
+
return finalReadOnly.value && !finalDisabled.value;
|
|
3865
|
+
},
|
|
3855
3866
|
get name() {
|
|
3856
3867
|
return props.name;
|
|
3857
3868
|
},
|
|
@@ -3881,7 +3892,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
3881
3892
|
open: isOpenNow.value,
|
|
3882
3893
|
placement: __props.placement,
|
|
3883
3894
|
offset: 6,
|
|
3884
|
-
"onUpdate:open":
|
|
3895
|
+
"onUpdate:open": onOpenChange
|
|
3885
3896
|
}, {
|
|
3886
3897
|
default: withCtx(() => [
|
|
3887
3898
|
renderSlot(_ctx.$slots, "default"),
|
|
@@ -3904,7 +3915,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
3904
3915
|
}, null, 8, _hoisted_2$V)
|
|
3905
3916
|
]),
|
|
3906
3917
|
_: 3
|
|
3907
|
-
}, 8, ["open", "placement"
|
|
3918
|
+
}, 8, ["open", "placement"]);
|
|
3908
3919
|
};
|
|
3909
3920
|
}
|
|
3910
3921
|
});
|
|
@@ -3986,7 +3997,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
3986
3997
|
};
|
|
3987
3998
|
}
|
|
3988
3999
|
});
|
|
3989
|
-
const _hoisted_1$1a = ["id", "disabled", "aria-invalid", "aria-labelledby", "aria-describedby"];
|
|
4000
|
+
const _hoisted_1$1a = ["id", "disabled", "aria-readonly", "aria-invalid", "aria-labelledby", "aria-describedby"];
|
|
3990
4001
|
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
3991
4002
|
...{ name: "MultiSelectPickerTrigger", inheritAttrs: false },
|
|
3992
4003
|
__name: "MultiSelectPickerTrigger",
|
|
@@ -4036,7 +4047,8 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
4036
4047
|
ref: root,
|
|
4037
4048
|
type: "button",
|
|
4038
4049
|
id: unref(ctx).fieldId,
|
|
4039
|
-
disabled: unref(ctx).isDisabled,
|
|
4050
|
+
disabled: unref(ctx).isDisabled && !unref(ctx).isReadOnly,
|
|
4051
|
+
"aria-readonly": unref(ctx).isReadOnly || void 0,
|
|
4040
4052
|
"aria-invalid": triggerState.value === "invalid" || void 0,
|
|
4041
4053
|
"aria-labelledby": labelledBy.value,
|
|
4042
4054
|
"aria-describedby": unref(ctx).describedBy,
|
|
@@ -4273,6 +4285,9 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
4273
4285
|
get isDisabled() {
|
|
4274
4286
|
return inactive.value;
|
|
4275
4287
|
},
|
|
4288
|
+
get isReadOnly() {
|
|
4289
|
+
return finalReadOnly.value && !finalDisabled.value;
|
|
4290
|
+
},
|
|
4276
4291
|
get isInvalid() {
|
|
4277
4292
|
return props.isInvalid ?? field?.isInvalid;
|
|
4278
4293
|
},
|
|
@@ -4307,7 +4322,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
4307
4322
|
};
|
|
4308
4323
|
}
|
|
4309
4324
|
});
|
|
4310
|
-
const _hoisted_1$18 = ["aria-expanded", "aria-controls", "aria-activedescendant", "aria-disabled", "disabled", "value"];
|
|
4325
|
+
const _hoisted_1$18 = ["aria-expanded", "aria-controls", "aria-activedescendant", "aria-disabled", "disabled", "readonly", "value"];
|
|
4311
4326
|
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
4312
4327
|
...{ name: "ComboboxPickerInput", inheritAttrs: false },
|
|
4313
4328
|
__name: "ComboboxPickerInput",
|
|
@@ -4417,6 +4432,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
4417
4432
|
const passthroughAttrs = computed(
|
|
4418
4433
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
4419
4434
|
);
|
|
4435
|
+
const isHardDisabled = computed(() => ctx.isDisabled && !ctx.isReadOnly);
|
|
4420
4436
|
const inputClass = computed(
|
|
4421
4437
|
() => cn(inputBaseVariants({ size: props.size, state: inputState.value }), attrs.class)
|
|
4422
4438
|
);
|
|
@@ -4430,8 +4446,9 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
4430
4446
|
"aria-controls": unref(ctx).listboxId,
|
|
4431
4447
|
"aria-activedescendant": activeDescendant.value,
|
|
4432
4448
|
"aria-autocomplete": "list",
|
|
4433
|
-
"aria-disabled":
|
|
4434
|
-
disabled:
|
|
4449
|
+
"aria-disabled": isHardDisabled.value || void 0,
|
|
4450
|
+
disabled: isHardDisabled.value,
|
|
4451
|
+
readonly: unref(ctx).isReadOnly,
|
|
4435
4452
|
value: unref(ctx).inputValue,
|
|
4436
4453
|
class: inputClass.value
|
|
4437
4454
|
}, passthroughAttrs.value, {
|
|
@@ -4701,7 +4718,7 @@ const _hoisted_3$E = {
|
|
|
4701
4718
|
};
|
|
4702
4719
|
const _hoisted_4$x = ["aria-label"];
|
|
4703
4720
|
const _hoisted_5$o = { class: "grid grid-cols-7 gap-0 px-1" };
|
|
4704
|
-
const _hoisted_6$
|
|
4721
|
+
const _hoisted_6$l = ["aria-label"];
|
|
4705
4722
|
const _hoisted_7$e = ["data-date", "aria-disabled", "data-today", "data-out-of-month", "data-disabled", "tabindex", "onClick", "onKeydown"];
|
|
4706
4723
|
const MaxDisabledSkip$1 = 400;
|
|
4707
4724
|
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
@@ -4932,7 +4949,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
4932
4949
|
}), 128))
|
|
4933
4950
|
]);
|
|
4934
4951
|
}), 128))
|
|
4935
|
-
], 8, _hoisted_6$
|
|
4952
|
+
], 8, _hoisted_6$l)
|
|
4936
4953
|
], 2);
|
|
4937
4954
|
};
|
|
4938
4955
|
}
|
|
@@ -6121,6 +6138,9 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
6121
6138
|
const passthroughAttrs = computed(
|
|
6122
6139
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
6123
6140
|
);
|
|
6141
|
+
function onTriggerClick(event) {
|
|
6142
|
+
if (finalReadOnly.value) event.preventDefault();
|
|
6143
|
+
}
|
|
6124
6144
|
const triggerClass = computed(
|
|
6125
6145
|
() => cn(selectTriggerVariants({ size: props.size, state: triggerState.value }), attrs.class)
|
|
6126
6146
|
);
|
|
@@ -6144,13 +6164,14 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
6144
6164
|
ref_key: "trigger",
|
|
6145
6165
|
ref: trigger,
|
|
6146
6166
|
id: triggerId.value,
|
|
6147
|
-
disabled: finalDisabled.value
|
|
6167
|
+
disabled: finalDisabled.value,
|
|
6168
|
+
"aria-readonly": finalReadOnly.value && !finalDisabled.value ? true : void 0,
|
|
6148
6169
|
"aria-invalid": ariaInvalid.value,
|
|
6149
6170
|
"aria-label": ariaLabel.value,
|
|
6150
6171
|
"aria-labelledby": labelledBy.value,
|
|
6151
6172
|
"aria-describedby": describedBy.value,
|
|
6152
6173
|
class: triggerClass.value
|
|
6153
|
-
}, passthroughAttrs.value), {
|
|
6174
|
+
}, passthroughAttrs.value, { onClick: onTriggerClick }), {
|
|
6154
6175
|
default: withCtx(() => [
|
|
6155
6176
|
createElementVNode("span", {
|
|
6156
6177
|
class: normalizeClass(labelClass.value)
|
|
@@ -6158,7 +6179,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
6158
6179
|
createVNode(unref(Calendar), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
6159
6180
|
]),
|
|
6160
6181
|
_: 1
|
|
6161
|
-
}, 16, ["id", "disabled", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
6182
|
+
}, 16, ["id", "disabled", "aria-readonly", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
6162
6183
|
createVNode(unref(_sfc_main$2a), { "is-bare": "" }, {
|
|
6163
6184
|
default: withCtx(() => [
|
|
6164
6185
|
createVNode(_sfc_main$1f, {
|
|
@@ -6259,6 +6280,9 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
6259
6280
|
const passthroughAttrs = computed(
|
|
6260
6281
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
6261
6282
|
);
|
|
6283
|
+
function onTriggerClick(event) {
|
|
6284
|
+
if (finalReadOnly.value) event.preventDefault();
|
|
6285
|
+
}
|
|
6262
6286
|
const triggerClass = computed(
|
|
6263
6287
|
() => cn(selectTriggerVariants({ size: props.size, state: triggerState.value }), attrs.class)
|
|
6264
6288
|
);
|
|
@@ -6282,13 +6306,14 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
6282
6306
|
ref_key: "trigger",
|
|
6283
6307
|
ref: trigger,
|
|
6284
6308
|
id: triggerId.value,
|
|
6285
|
-
disabled: finalDisabled.value
|
|
6309
|
+
disabled: finalDisabled.value,
|
|
6310
|
+
"aria-readonly": finalReadOnly.value && !finalDisabled.value ? true : void 0,
|
|
6286
6311
|
"aria-invalid": ariaInvalid.value,
|
|
6287
6312
|
"aria-label": ariaLabel.value,
|
|
6288
6313
|
"aria-labelledby": labelledBy.value,
|
|
6289
6314
|
"aria-describedby": describedBy.value,
|
|
6290
6315
|
class: triggerClass.value
|
|
6291
|
-
}, passthroughAttrs.value), {
|
|
6316
|
+
}, passthroughAttrs.value, { onClick: onTriggerClick }), {
|
|
6292
6317
|
default: withCtx(() => [
|
|
6293
6318
|
createElementVNode("span", {
|
|
6294
6319
|
class: normalizeClass(labelClass.value)
|
|
@@ -6296,7 +6321,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
6296
6321
|
createVNode(unref(Clock), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
6297
6322
|
]),
|
|
6298
6323
|
_: 1
|
|
6299
|
-
}, 16, ["id", "disabled", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
6324
|
+
}, 16, ["id", "disabled", "aria-readonly", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
6300
6325
|
createVNode(unref(_sfc_main$2a), { "is-bare": "" }, {
|
|
6301
6326
|
default: withCtx(() => [
|
|
6302
6327
|
createVNode(_sfc_main$1d, {
|
|
@@ -6412,6 +6437,9 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
6412
6437
|
const passthroughAttrs = computed(
|
|
6413
6438
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
6414
6439
|
);
|
|
6440
|
+
function onTriggerClick(event) {
|
|
6441
|
+
if (finalReadOnly.value) event.preventDefault();
|
|
6442
|
+
}
|
|
6415
6443
|
const triggerClass = computed(
|
|
6416
6444
|
() => cn(selectTriggerVariants({ size: props.size, state: triggerState.value }), attrs.class)
|
|
6417
6445
|
);
|
|
@@ -6435,13 +6463,14 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
6435
6463
|
ref_key: "trigger",
|
|
6436
6464
|
ref: trigger,
|
|
6437
6465
|
id: triggerId.value,
|
|
6438
|
-
disabled: finalDisabled.value
|
|
6466
|
+
disabled: finalDisabled.value,
|
|
6467
|
+
"aria-readonly": finalReadOnly.value && !finalDisabled.value ? true : void 0,
|
|
6439
6468
|
"aria-invalid": ariaInvalid.value,
|
|
6440
6469
|
"aria-label": ariaLabel.value,
|
|
6441
6470
|
"aria-labelledby": labelledBy.value,
|
|
6442
6471
|
"aria-describedby": describedBy.value,
|
|
6443
6472
|
class: triggerClass.value
|
|
6444
|
-
}, passthroughAttrs.value), {
|
|
6473
|
+
}, passthroughAttrs.value, { onClick: onTriggerClick }), {
|
|
6445
6474
|
default: withCtx(() => [
|
|
6446
6475
|
createElementVNode("span", {
|
|
6447
6476
|
class: normalizeClass(labelClass.value)
|
|
@@ -6449,7 +6478,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
6449
6478
|
createVNode(unref(Calendar), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
6450
6479
|
]),
|
|
6451
6480
|
_: 1
|
|
6452
|
-
}, 16, ["id", "disabled", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
6481
|
+
}, 16, ["id", "disabled", "aria-readonly", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
6453
6482
|
createVNode(unref(_sfc_main$2a), { "is-bare": "" }, {
|
|
6454
6483
|
default: withCtx(() => [
|
|
6455
6484
|
createVNode(_sfc_main$1a, {
|
|
@@ -7898,7 +7927,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
7898
7927
|
"aria-invalid": invalid.value || void 0,
|
|
7899
7928
|
"aria-describedby": describedBy.value,
|
|
7900
7929
|
"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"
|
|
7930
|
+
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
7931
|
}, passthroughAttrs.value, {
|
|
7903
7932
|
onInput,
|
|
7904
7933
|
onCompositionend: onInput,
|
|
@@ -9102,7 +9131,7 @@ const _hoisted_2$x = { class: "flex items-center gap-1 border-b border-border bg
|
|
|
9102
9131
|
const _hoisted_3$s = ["aria-label"];
|
|
9103
9132
|
const _hoisted_4$p = ["aria-label", "disabled", "onClick"];
|
|
9104
9133
|
const _hoisted_5$n = ["aria-label"];
|
|
9105
|
-
const _hoisted_6$
|
|
9134
|
+
const _hoisted_6$k = ["aria-checked", "onClick"];
|
|
9106
9135
|
const _hoisted_7$d = {
|
|
9107
9136
|
class: "flex flex-1 divide-x divide-border",
|
|
9108
9137
|
style: { minHeight: 0 }
|
|
@@ -9329,7 +9358,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9329
9358
|
"aria-checked": unref(mode) === v,
|
|
9330
9359
|
class: normalizeClass(viewButtonClass(v)),
|
|
9331
9360
|
onClick: ($event) => unref(viewCtl).setValue(v)
|
|
9332
|
-
}, toDisplayString(v), 11, _hoisted_6$
|
|
9361
|
+
}, toDisplayString(v), 11, _hoisted_6$k);
|
|
9333
9362
|
}), 64))
|
|
9334
9363
|
], 8, _hoisted_5$n)
|
|
9335
9364
|
]),
|
|
@@ -9440,7 +9469,7 @@ const _hoisted_5$m = {
|
|
|
9440
9469
|
key: 3,
|
|
9441
9470
|
class: "text-muted-foreground"
|
|
9442
9471
|
};
|
|
9443
|
-
const _hoisted_6$
|
|
9472
|
+
const _hoisted_6$j = ["aria-label", "aria-invalid", "aria-describedby", "value"];
|
|
9444
9473
|
const _hoisted_7$c = ["aria-label"];
|
|
9445
9474
|
const _hoisted_8$9 = {
|
|
9446
9475
|
key: 0,
|
|
@@ -9566,7 +9595,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9566
9595
|
onInput: onDraftInput,
|
|
9567
9596
|
onKeydown,
|
|
9568
9597
|
onBlur: commitEdit
|
|
9569
|
-
}, null, 40, _hoisted_6$
|
|
9598
|
+
}, null, 40, _hoisted_6$j)) : (openBlock(), createElementBlock("button", {
|
|
9570
9599
|
key: 5,
|
|
9571
9600
|
type: "button",
|
|
9572
9601
|
class: normalizeClass(leafClass.value),
|
|
@@ -9716,7 +9745,7 @@ const _hoisted_5$l = {
|
|
|
9716
9745
|
class: "flex-1 overflow-auto",
|
|
9717
9746
|
style: { minHeight: 0 }
|
|
9718
9747
|
};
|
|
9719
|
-
const _hoisted_6$
|
|
9748
|
+
const _hoisted_6$i = ["form"];
|
|
9720
9749
|
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
9721
9750
|
...{ name: "JsonEditor", inheritAttrs: false },
|
|
9722
9751
|
__name: "JsonEditor",
|
|
@@ -9842,7 +9871,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
9842
9871
|
type: "hidden",
|
|
9843
9872
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
9844
9873
|
"aria-hidden": "true"
|
|
9845
|
-
}, null, 8, _hoisted_6$
|
|
9874
|
+
}, null, 8, _hoisted_6$i)
|
|
9846
9875
|
], 16, _hoisted_1$B);
|
|
9847
9876
|
};
|
|
9848
9877
|
}
|
|
@@ -9852,7 +9881,7 @@ const _hoisted_2$t = { class: "flex flex-wrap items-center gap-2 text-sm" };
|
|
|
9852
9881
|
const _hoisted_3$o = ["for"];
|
|
9853
9882
|
const _hoisted_4$m = ["id", "value", "disabled", "readonly"];
|
|
9854
9883
|
const _hoisted_5$k = ["aria-label", "value", "disabled"];
|
|
9855
|
-
const _hoisted_6$
|
|
9884
|
+
const _hoisted_6$h = { value: "DAILY" };
|
|
9856
9885
|
const _hoisted_7$b = { value: "WEEKLY" };
|
|
9857
9886
|
const _hoisted_8$8 = { value: "MONTHLY" };
|
|
9858
9887
|
const _hoisted_9$5 = { value: "YEARLY" };
|
|
@@ -10143,7 +10172,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
10143
10172
|
class: normalizeClass(unref(freqClass)),
|
|
10144
10173
|
onChange: onFreqChange
|
|
10145
10174
|
}, [
|
|
10146
|
-
createElementVNode("option", _hoisted_6$
|
|
10175
|
+
createElementVNode("option", _hoisted_6$h, toDisplayString(unref(rule).interval > 1 ? "days" : "day"), 1),
|
|
10147
10176
|
createElementVNode("option", _hoisted_7$b, toDisplayString(unref(rule).interval > 1 ? "weeks" : "week"), 1),
|
|
10148
10177
|
createElementVNode("option", _hoisted_8$8, toDisplayString(unref(rule).interval > 1 ? "months" : "month"), 1),
|
|
10149
10178
|
createElementVNode("option", _hoisted_9$5, toDisplayString(unref(rule).interval > 1 ? "years" : "year"), 1)
|
|
@@ -10292,7 +10321,7 @@ const _hoisted_2$s = ["width", "height"];
|
|
|
10292
10321
|
const _hoisted_3$n = ["d"];
|
|
10293
10322
|
const _hoisted_4$l = ["d"];
|
|
10294
10323
|
const _hoisted_5$j = ["x1", "y1", "x2", "y2"];
|
|
10295
|
-
const _hoisted_6$
|
|
10324
|
+
const _hoisted_6$g = {
|
|
10296
10325
|
key: 0,
|
|
10297
10326
|
"aria-hidden": "true",
|
|
10298
10327
|
class: "absolute inset-0 grid place-items-center text-[10px] font-medium tabular-nums text-foreground"
|
|
@@ -10525,7 +10554,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
10525
10554
|
"stroke-linecap": "round"
|
|
10526
10555
|
}, null, 8, _hoisted_5$j)
|
|
10527
10556
|
], 8, _hoisted_2$s)),
|
|
10528
|
-
__props.isValueShown ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
10557
|
+
__props.isValueShown ? (openBlock(), createElementBlock("span", _hoisted_6$g, toDisplayString(readout.value), 1)) : createCommentVNode("", true),
|
|
10529
10558
|
__props.name ? (openBlock(), createElementBlock("input", {
|
|
10530
10559
|
key: 1,
|
|
10531
10560
|
type: "hidden",
|
|
@@ -10562,7 +10591,7 @@ const _hoisted_5$i = {
|
|
|
10562
10591
|
key: 0,
|
|
10563
10592
|
"aria-hidden": "true"
|
|
10564
10593
|
};
|
|
10565
|
-
const _hoisted_6$
|
|
10594
|
+
const _hoisted_6$f = ["form"];
|
|
10566
10595
|
const _hoisted_7$9 = ["disabled", "form", "name", "value"];
|
|
10567
10596
|
const IsMac = typeof navigator !== "undefined" && navigator.platform?.toLowerCase().includes("mac");
|
|
10568
10597
|
const ModifierNames = {
|
|
@@ -10745,7 +10774,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
10745
10774
|
type: "hidden",
|
|
10746
10775
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
10747
10776
|
"aria-hidden": "true"
|
|
10748
|
-
}, null, 8, _hoisted_6$
|
|
10777
|
+
}, null, 8, _hoisted_6$f)
|
|
10749
10778
|
], 16, _hoisted_1$y)),
|
|
10750
10779
|
__props.name ? (openBlock(), createElementBlock("input", {
|
|
10751
10780
|
key: 0,
|
|
@@ -10767,7 +10796,7 @@ const _hoisted_4$j = {
|
|
|
10767
10796
|
class: "col-span-full px-2 py-6 text-center text-xs text-muted-foreground"
|
|
10768
10797
|
};
|
|
10769
10798
|
const _hoisted_5$h = ["disabled", "form", "name", "value"];
|
|
10770
|
-
const _hoisted_6$
|
|
10799
|
+
const _hoisted_6$e = ["form"];
|
|
10771
10800
|
const BuiltInIcons = {
|
|
10772
10801
|
bell: Bell,
|
|
10773
10802
|
bookmark: Bookmark,
|
|
@@ -10956,7 +10985,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
10956
10985
|
type: "hidden",
|
|
10957
10986
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
10958
10987
|
"aria-hidden": "true"
|
|
10959
|
-
}, null, 8, _hoisted_6$
|
|
10988
|
+
}, null, 8, _hoisted_6$e)
|
|
10960
10989
|
], 16);
|
|
10961
10990
|
};
|
|
10962
10991
|
}
|
|
@@ -10966,7 +10995,7 @@ const _hoisted_2$p = ["aria-label", "value", "placeholder"];
|
|
|
10966
10995
|
const _hoisted_3$k = ["aria-label"];
|
|
10967
10996
|
const _hoisted_4$i = ["aria-selected", "onClick"];
|
|
10968
10997
|
const _hoisted_5$g = { class: "font-medium" };
|
|
10969
|
-
const _hoisted_6$
|
|
10998
|
+
const _hoisted_6$d = {
|
|
10970
10999
|
key: 0,
|
|
10971
11000
|
class: "px-2 py-6 text-center text-xs text-muted-foreground"
|
|
10972
11001
|
};
|
|
@@ -11157,7 +11186,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
11157
11186
|
}, toDisplayString(f.sample ?? __props.previewText), 5)
|
|
11158
11187
|
], 10, _hoisted_4$i);
|
|
11159
11188
|
}), 128)),
|
|
11160
|
-
filtered.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
11189
|
+
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
11190
|
], 40, _hoisted_3$k)
|
|
11162
11191
|
]),
|
|
11163
11192
|
_: 1
|
|
@@ -11404,7 +11433,7 @@ const _hoisted_5$f = {
|
|
|
11404
11433
|
key: 0,
|
|
11405
11434
|
class: "ml-auto flex items-center gap-2 text-xs text-muted-foreground"
|
|
11406
11435
|
};
|
|
11407
|
-
const _hoisted_6$
|
|
11436
|
+
const _hoisted_6$c = ["value", "disabled"];
|
|
11408
11437
|
const _hoisted_7$7 = { class: "flex flex-col gap-2" };
|
|
11409
11438
|
const _hoisted_8$5 = ["aria-label", "value", "disabled", "onInput"];
|
|
11410
11439
|
const _hoisted_9$4 = ["aria-label", "value", "disabled", "onInput"];
|
|
@@ -11576,7 +11605,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
11576
11605
|
disabled: inactive.value,
|
|
11577
11606
|
class: normalizeClass(unref(angleInputClass)),
|
|
11578
11607
|
onInput: onAngleInput
|
|
11579
|
-
}, null, 42, _hoisted_6$
|
|
11608
|
+
}, null, 42, _hoisted_6$c),
|
|
11580
11609
|
_cache[0] || (_cache[0] = createTextVNode(" ° ", -1))
|
|
11581
11610
|
])) : createCommentVNode("", true)
|
|
11582
11611
|
]),
|
|
@@ -11670,7 +11699,7 @@ const _hoisted_2$m = { class: "flex flex-col gap-1" };
|
|
|
11670
11699
|
const _hoisted_3$i = ["for"];
|
|
11671
11700
|
const _hoisted_4$g = ["id", "value", "disabled"];
|
|
11672
11701
|
const _hoisted_5$e = ["value"];
|
|
11673
|
-
const _hoisted_6$
|
|
11702
|
+
const _hoisted_6$b = { value: "XX" };
|
|
11674
11703
|
const _hoisted_7$6 = { class: "flex flex-col gap-1" };
|
|
11675
11704
|
const _hoisted_8$4 = ["for"];
|
|
11676
11705
|
const _hoisted_9$3 = ["id", "value", "disabled", "readonly"];
|
|
@@ -11878,7 +11907,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
11878
11907
|
value: c.iso
|
|
11879
11908
|
}, toDisplayString(c.name), 9, _hoisted_5$e);
|
|
11880
11909
|
}), 128)),
|
|
11881
|
-
createElementVNode("option", _hoisted_6$
|
|
11910
|
+
createElementVNode("option", _hoisted_6$b, toDisplayString(unref(locale).t("AddressEditor.other", void 0, "Other")), 1)
|
|
11882
11911
|
], 42, _hoisted_4$g)
|
|
11883
11912
|
]),
|
|
11884
11913
|
createElementVNode("div", _hoisted_7$6, [
|
|
@@ -12039,11 +12068,12 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12039
12068
|
};
|
|
12040
12069
|
}
|
|
12041
12070
|
});
|
|
12042
|
-
const _hoisted_1$s = ["
|
|
12043
|
-
const _hoisted_2$l = ["value"];
|
|
12044
|
-
const _hoisted_3$h = ["
|
|
12045
|
-
const _hoisted_4$f = ["disabled", "
|
|
12046
|
-
const _hoisted_5$d = ["form"];
|
|
12071
|
+
const _hoisted_1$s = ["data-readonly"];
|
|
12072
|
+
const _hoisted_2$l = ["aria-label", "value", "disabled"];
|
|
12073
|
+
const _hoisted_3$h = ["value"];
|
|
12074
|
+
const _hoisted_4$f = ["id", "value", "placeholder", "disabled", "readonly", "aria-invalid", "aria-describedby", "aria-required"];
|
|
12075
|
+
const _hoisted_5$d = ["disabled", "form", "name", "value"];
|
|
12076
|
+
const _hoisted_6$a = ["form"];
|
|
12047
12077
|
const PhoneCountries = [
|
|
12048
12078
|
{ iso: "US", name: "United States", dial: "+1", flag: "🇺🇸" },
|
|
12049
12079
|
{ iso: "CA", name: "Canada", dial: "+1", flag: "🇨🇦" },
|
|
@@ -12175,13 +12205,20 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12175
12205
|
"inline-flex items-stretch overflow-hidden rounded-md border bg-background",
|
|
12176
12206
|
invalid.value ? "border-destructive" : "border-input",
|
|
12177
12207
|
disabled.value && "opacity-60",
|
|
12208
|
+
readOnly.value && "bg-muted text-muted-foreground",
|
|
12178
12209
|
attrs.class
|
|
12179
12210
|
)
|
|
12180
12211
|
);
|
|
12181
|
-
const selectClass =
|
|
12182
|
-
|
|
12212
|
+
const selectClass = computed(
|
|
12213
|
+
() => cn(
|
|
12214
|
+
"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",
|
|
12215
|
+
readOnly.value && "cursor-default bg-muted text-muted-foreground"
|
|
12216
|
+
)
|
|
12217
|
+
);
|
|
12218
|
+
const inputClass = cn(
|
|
12219
|
+
inputBaseVariants({ size: InputSize.Md }),
|
|
12220
|
+
"rounded-none border-0 focus-visible:ring-0 readonly:focus-visible:ring-0"
|
|
12183
12221
|
);
|
|
12184
|
-
const inputClass = cn(inputBaseVariants({ size: InputSize.Md }), "rounded-none border-0 focus-visible:ring-0");
|
|
12185
12222
|
const formResetAnchor = useTemplateRef("formResetAnchor");
|
|
12186
12223
|
const formResetRevision = useNativeFormReset(formResetAnchor, () => {
|
|
12187
12224
|
controlled.reset();
|
|
@@ -12190,13 +12227,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12190
12227
|
return (_ctx, _cache) => {
|
|
12191
12228
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
12192
12229
|
key: unref(formResetRevision),
|
|
12230
|
+
"data-readonly": readOnly.value || void 0,
|
|
12193
12231
|
class: rootClass.value
|
|
12194
12232
|
}, passthroughAttrs.value), [
|
|
12195
12233
|
createElementVNode("select", {
|
|
12196
12234
|
"aria-label": unref(locale).t("PhoneInput.country", void 0, "Country"),
|
|
12197
12235
|
value: iso.value,
|
|
12198
12236
|
disabled: disabled.value || readOnly.value,
|
|
12199
|
-
class: normalizeClass(
|
|
12237
|
+
class: normalizeClass(selectClass.value),
|
|
12200
12238
|
style: { minWidth: "90px" },
|
|
12201
12239
|
onChange: setCountry
|
|
12202
12240
|
}, [
|
|
@@ -12204,9 +12242,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12204
12242
|
return createElementVNode("option", {
|
|
12205
12243
|
key: c.iso,
|
|
12206
12244
|
value: c.iso
|
|
12207
|
-
}, toDisplayString(c.flag) + " " + toDisplayString(c.dial), 9,
|
|
12245
|
+
}, toDisplayString(c.flag) + " " + toDisplayString(c.dial), 9, _hoisted_3$h);
|
|
12208
12246
|
}), 64))
|
|
12209
|
-
], 42,
|
|
12247
|
+
], 42, _hoisted_2$l),
|
|
12210
12248
|
createElementVNode("input", {
|
|
12211
12249
|
type: "tel",
|
|
12212
12250
|
inputmode: "tel",
|
|
@@ -12221,7 +12259,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12221
12259
|
"aria-required": unref(ctx)?.isRequired || void 0,
|
|
12222
12260
|
class: normalizeClass(unref(inputClass)),
|
|
12223
12261
|
onInput: setNational
|
|
12224
|
-
}, null, 42,
|
|
12262
|
+
}, null, 42, _hoisted_4$f),
|
|
12225
12263
|
__props.name ? (openBlock(), createElementBlock("input", {
|
|
12226
12264
|
key: 0,
|
|
12227
12265
|
type: "hidden",
|
|
@@ -12229,15 +12267,15 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12229
12267
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
12230
12268
|
name: __props.name,
|
|
12231
12269
|
value: unref(e164)
|
|
12232
|
-
}, null, 8,
|
|
12270
|
+
}, null, 8, _hoisted_5$d)) : createCommentVNode("", true),
|
|
12233
12271
|
createElementVNode("input", {
|
|
12234
12272
|
ref_key: "formResetAnchor",
|
|
12235
12273
|
ref: formResetAnchor,
|
|
12236
12274
|
type: "hidden",
|
|
12237
12275
|
form: typeof _ctx.$attrs.form === "string" ? _ctx.$attrs.form : void 0,
|
|
12238
12276
|
"aria-hidden": "true"
|
|
12239
|
-
}, null, 8,
|
|
12240
|
-
], 16);
|
|
12277
|
+
}, null, 8, _hoisted_6$a)
|
|
12278
|
+
], 16, _hoisted_1$s);
|
|
12241
12279
|
};
|
|
12242
12280
|
}
|
|
12243
12281
|
});
|
|
@@ -16103,6 +16141,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
16103
16141
|
const passthroughAttrs = computed(
|
|
16104
16142
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
16105
16143
|
);
|
|
16144
|
+
function onTriggerClick(event) {
|
|
16145
|
+
if (readOnly.value) event.preventDefault();
|
|
16146
|
+
}
|
|
16106
16147
|
const triggerClass = computed(
|
|
16107
16148
|
() => cn(
|
|
16108
16149
|
selectTriggerVariants({ size: props.size, state: invalid.value ? InputState.Invalid : InputState.Default }),
|
|
@@ -16129,13 +16170,14 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
16129
16170
|
ref_key: "trigger",
|
|
16130
16171
|
ref: trigger,
|
|
16131
16172
|
id: triggerId.value,
|
|
16132
|
-
disabled: disabled.value
|
|
16173
|
+
disabled: disabled.value,
|
|
16174
|
+
"aria-readonly": readOnly.value && !disabled.value ? true : void 0,
|
|
16133
16175
|
"aria-invalid": invalid.value || void 0,
|
|
16134
16176
|
"aria-label": ariaLabel.value,
|
|
16135
16177
|
"aria-labelledby": labelledBy.value,
|
|
16136
16178
|
"aria-describedby": describedBy.value,
|
|
16137
16179
|
class: triggerClass.value
|
|
16138
|
-
}, passthroughAttrs.value), {
|
|
16180
|
+
}, passthroughAttrs.value, { onClick: onTriggerClick }), {
|
|
16139
16181
|
default: withCtx(() => [
|
|
16140
16182
|
createElementVNode("span", {
|
|
16141
16183
|
class: normalizeClass(labelClass.value)
|
|
@@ -16143,7 +16185,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
16143
16185
|
createVNode(unref(Calendar), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
16144
16186
|
]),
|
|
16145
16187
|
_: 1
|
|
16146
|
-
}, 16, ["id", "disabled", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
16188
|
+
}, 16, ["id", "disabled", "aria-readonly", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
16147
16189
|
createVNode(unref(_sfc_main$2a), { "is-bare": "" }, {
|
|
16148
16190
|
default: withCtx(() => [
|
|
16149
16191
|
createVNode(_sfc_main$c, {
|
|
@@ -16291,7 +16333,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
16291
16333
|
};
|
|
16292
16334
|
}
|
|
16293
16335
|
});
|
|
16294
|
-
const _hoisted_1$7 = ["aria-label", "aria-labelledby", "aria-describedby", "aria-disabled"];
|
|
16336
|
+
const _hoisted_1$7 = ["aria-label", "aria-labelledby", "aria-describedby", "aria-disabled", "data-readonly"];
|
|
16295
16337
|
const _hoisted_2$7 = ["id", "aria-label", "aria-invalid", "data-unit", "value", "disabled", "readonly", "onInput", "onKeydown"];
|
|
16296
16338
|
const _hoisted_3$6 = {
|
|
16297
16339
|
class: "me-1 text-muted-foreground last:me-0",
|
|
@@ -16432,11 +16474,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
16432
16474
|
"items-center gap-1 focus-within:ring-2 focus-within:ring-ring",
|
|
16433
16475
|
invalid.value && "focus-within:ring-destructive-soft-foreground",
|
|
16434
16476
|
disabled.value && "cursor-not-allowed opacity-60",
|
|
16435
|
-
readOnly.value && "
|
|
16477
|
+
readOnly.value && "focus-within:ring-1 focus-within:ring-muted-foreground",
|
|
16436
16478
|
attrs.class
|
|
16437
16479
|
)
|
|
16438
16480
|
);
|
|
16439
|
-
const SegmentClass = "min-w-[2ch] bg-transparent text-end tabular-nums outline-hidden placeholder:text-subtle-foreground disabled:cursor-not-allowed";
|
|
16481
|
+
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
16482
|
const formResetAnchor = useTemplateRef("formResetAnchor");
|
|
16441
16483
|
useNativeFormReset(formResetAnchor, () => {
|
|
16442
16484
|
controlled.reset();
|
|
@@ -16449,6 +16491,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
16449
16491
|
"aria-labelledby": groupLabelledBy.value,
|
|
16450
16492
|
"aria-describedby": unref(field)?.describedBy,
|
|
16451
16493
|
"aria-disabled": disabled.value || void 0,
|
|
16494
|
+
"data-readonly": readOnly.value || void 0,
|
|
16452
16495
|
class: groupClass.value
|
|
16453
16496
|
}, passthroughAttrs.value), [
|
|
16454
16497
|
(openBlock(true), createElementBlock(Fragment, null, renderList(shownUnits.value, (unit, position) => {
|
|
@@ -17120,6 +17163,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
17120
17163
|
const passthroughAttrs = computed(
|
|
17121
17164
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
17122
17165
|
);
|
|
17166
|
+
function onTriggerClick(event) {
|
|
17167
|
+
if (readOnly.value) event.preventDefault();
|
|
17168
|
+
}
|
|
17123
17169
|
const triggerClass = computed(
|
|
17124
17170
|
() => cn(
|
|
17125
17171
|
selectTriggerVariants({ size: props.size, state: invalid.value ? InputState.Invalid : InputState.Default }),
|
|
@@ -17142,13 +17188,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
17142
17188
|
default: withCtx(() => [
|
|
17143
17189
|
createVNode(unref(_sfc_main$29), mergeProps({
|
|
17144
17190
|
id: unref(props).id ?? unref(field)?.id,
|
|
17145
|
-
disabled: disabled.value
|
|
17191
|
+
disabled: disabled.value,
|
|
17192
|
+
"aria-readonly": readOnly.value && !disabled.value ? true : void 0,
|
|
17146
17193
|
"aria-invalid": invalid.value || void 0,
|
|
17147
17194
|
"aria-label": ariaLabel.value,
|
|
17148
17195
|
"aria-labelledby": labelledBy.value,
|
|
17149
17196
|
"aria-describedby": unref(field)?.describedBy,
|
|
17150
17197
|
class: triggerClass.value
|
|
17151
|
-
}, passthroughAttrs.value), {
|
|
17198
|
+
}, passthroughAttrs.value, { onClick: onTriggerClick }), {
|
|
17152
17199
|
default: withCtx(() => [
|
|
17153
17200
|
createElementVNode("span", {
|
|
17154
17201
|
class: normalizeClass(labelClass.value)
|
|
@@ -17156,7 +17203,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
17156
17203
|
createVNode(unref(ChevronDown), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
17157
17204
|
]),
|
|
17158
17205
|
_: 1
|
|
17159
|
-
}, 16, ["id", "disabled", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
17206
|
+
}, 16, ["id", "disabled", "aria-readonly", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
17160
17207
|
createVNode(unref(_sfc_main$2a), { class: "max-h-80 min-w-56 overflow-y-auto p-1" }, {
|
|
17161
17208
|
default: withCtx(() => [
|
|
17162
17209
|
createVNode(unref(_sfc_main$2m), {
|
|
@@ -17336,6 +17383,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
17336
17383
|
const passthroughAttrs = computed(
|
|
17337
17384
|
() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key)))
|
|
17338
17385
|
);
|
|
17386
|
+
function onTriggerClick(event) {
|
|
17387
|
+
if (readOnly.value) event.preventDefault();
|
|
17388
|
+
}
|
|
17339
17389
|
const triggerClass = computed(
|
|
17340
17390
|
() => cn(
|
|
17341
17391
|
selectTriggerVariants({ size: props.size, state: invalid.value ? InputState.Invalid : InputState.Default }),
|
|
@@ -17367,13 +17417,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
17367
17417
|
default: withCtx(() => [
|
|
17368
17418
|
createVNode(unref(_sfc_main$29), mergeProps({
|
|
17369
17419
|
id: unref(props).id ?? unref(field)?.id,
|
|
17370
|
-
disabled: disabled.value
|
|
17420
|
+
disabled: disabled.value,
|
|
17421
|
+
"aria-readonly": readOnly.value && !disabled.value ? true : void 0,
|
|
17371
17422
|
"aria-invalid": invalid.value || void 0,
|
|
17372
17423
|
"aria-label": ariaLabel.value,
|
|
17373
17424
|
"aria-labelledby": labelledBy.value,
|
|
17374
17425
|
"aria-describedby": unref(field)?.describedBy,
|
|
17375
17426
|
class: triggerClass.value
|
|
17376
|
-
}, passthroughAttrs.value), {
|
|
17427
|
+
}, passthroughAttrs.value, { onClick: onTriggerClick }), {
|
|
17377
17428
|
default: withCtx(() => [
|
|
17378
17429
|
createElementVNode("span", {
|
|
17379
17430
|
class: normalizeClass(labelClass.value)
|
|
@@ -17381,7 +17432,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
17381
17432
|
createVNode(unref(ChevronDown), { class: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
17382
17433
|
]),
|
|
17383
17434
|
_: 1
|
|
17384
|
-
}, 16, ["id", "disabled", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
17435
|
+
}, 16, ["id", "disabled", "aria-readonly", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "class"]),
|
|
17385
17436
|
createVNode(unref(_sfc_main$2a), { class: "max-w-[calc(100vw-2rem)] overflow-x-auto p-0" }, {
|
|
17386
17437
|
default: withCtx(() => [
|
|
17387
17438
|
createElementVNode("div", {
|
|
@@ -18797,4 +18848,4 @@ export {
|
|
|
18797
18848
|
_sfc_main$1m as y,
|
|
18798
18849
|
_sfc_main$1k as z
|
|
18799
18850
|
};
|
|
18800
|
-
//# sourceMappingURL=MentionInput.vue_vue_type_script_setup_true_lang-
|
|
18851
|
+
//# sourceMappingURL=MentionInput.vue_vue_type_script_setup_true_lang-5pRxNIcK.js.map
|