@wow-two-beta/fe 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/AuthBridge.d.ts +15 -0
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +47 -8
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/providers/AuthProvider.vue.d.ts +1 -1
- package/dist/chunks/{SidebarMenuSection.vue_vue_type_script_setup_true_lang-CIEgYHl_.js → AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js} +641 -226
- package/dist/chunks/AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js.map +1 -0
- package/dist/chunks/Breakpoints-CltjxN0E.js +32 -0
- package/dist/chunks/Breakpoints-CltjxN0E.js.map +1 -0
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-C17R6SMV.js → DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js} +4 -12
- package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js.map +1 -0
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DBPGTzwk.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js} +2 -2
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DBPGTzwk.js.map → ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js.map} +1 -1
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-HSUZqn0g.js → LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js} +71 -477
- package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js.map +1 -0
- package/dist/chunks/ListboxPicker.variants-hiMcl66_.js +44 -0
- package/dist/chunks/ListboxPicker.variants-hiMcl66_.js.map +1 -0
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-CKhBN2SC.js → MasonryLayout.vue_vue_type_script_setup_true_lang-TuNWahLw.js} +2 -2
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-CKhBN2SC.js.map → MasonryLayout.vue_vue_type_script_setup_true_lang-TuNWahLw.js.map} +1 -1
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-vfxAeyB7.js → MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js} +197 -130
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js.map +1 -0
- package/dist/chunks/OverlayChrome-BqRpuYX5.js +13 -0
- package/dist/chunks/OverlayChrome-BqRpuYX5.js.map +1 -0
- package/dist/chunks/OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js +429 -0
- package/dist/chunks/OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js.map +1 -0
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-hfb8AAVv.js → PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js} +2 -43
- package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js.map +1 -0
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-Xr-kmwgK.js → ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js} +2 -1
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-Xr-kmwgK.js.map → ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js.map} +1 -1
- package/dist/feedback/FeedbackQueryErrors.d.ts +4 -3
- package/dist/feedback/FeedbackSessionExpiry.d.ts +5 -0
- package/dist/feedback/index.d.ts +1 -0
- package/dist/feedback/index.js +13 -1
- package/dist/feedback/index.js.map +1 -1
- package/dist/foundation/device/index.js +3 -27
- package/dist/foundation/device/index.js.map +1 -1
- package/dist/foundation/http/CreateApiClient.d.ts +1 -0
- package/dist/foundation/http/index.js +5 -1
- package/dist/foundation/http/index.js.map +1 -1
- package/dist/index.js +220 -216
- package/dist/index.js.map +1 -1
- package/dist/presentation/feedback/index.js +2 -2
- package/dist/presentation/feedback/toastHost/index.js +1 -1
- package/dist/presentation/forms/OptionCollection.d.ts +24 -0
- package/dist/presentation/forms/index.js +2 -2
- package/dist/presentation/forms/multiSelectPicker/MultiSelectPicker.vue.d.ts +3 -4
- package/dist/presentation/forms/multiSelectPicker/MultiSelectPickerContext.d.ts +3 -5
- package/dist/presentation/forms/passwordInput/PasswordInput.vue.d.ts +4 -0
- package/dist/presentation/forms/selectPicker/SelectPicker.vue.d.ts +5 -8
- package/dist/presentation/forms/selectPicker/SelectPickerContext.d.ts +6 -2
- package/dist/presentation/layout/index.js +1 -1
- package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenu.vue.d.ts +81 -0
- package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenuExtensions.d.ts +8 -0
- package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenuPanel.vue.d.ts +25 -0
- package/dist/presentation/nav/appSwitcherMenu/index.d.ts +1 -0
- package/dist/presentation/nav/index.d.ts +1 -0
- package/dist/presentation/nav/index.js +72 -70
- package/dist/presentation/overlays/index.js +55 -54
- package/dist/presentation/overlays/index.js.map +1 -1
- package/dist/router/adapters/vueRouter/Guards.d.ts +6 -1
- package/dist/router/adapters/vueRouter/index.d.ts +1 -1
- package/dist/router/index.js +8 -0
- package/dist/router/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-C17R6SMV.js.map +0 -1
- package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-HSUZqn0g.js.map +0 -1
- package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-vfxAeyB7.js.map +0 -1
- package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-hfb8AAVv.js.map +0 -1
- package/dist/chunks/SidebarMenuSection.vue_vue_type_script_setup_true_lang-CIEgYHl_.js.map +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
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, withModifiers, useId as useId$1, toHandlers, resolveComponent, resolveDynamicComponent, toValue, withKeys, onUpdated } from "vue";
|
|
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
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-eqG5AyoV.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
|
+
import { u as useLocaleDefaults } from "./UseLocaleDefaults-DnL2Ctbe.js";
|
|
8
9
|
import { _ as _sfc_main$1$ } from "./Icon.vue_vue_type_script_setup_true_lang-Ca4wsJw9.js";
|
|
9
10
|
import { S as Size } from "./StyleTokens-Bkz7Dm5L.js";
|
|
10
11
|
import { _ as _sfc_main$22 } from "./FieldErrorCallout.vue_vue_type_script_setup_true_lang-BRcaaXCd.js";
|
|
@@ -14,8 +15,8 @@ import { S as Side } from "./Side-Kw61CDou.js";
|
|
|
14
15
|
import { O as Orientation } from "./Orientation-u-sYunuG.js";
|
|
15
16
|
import { _ as _sfc_main$25, a as _sfc_main$2i } from "./StackLayout.vue_vue_type_script_setup_true_lang-DuAFfjSc.js";
|
|
16
17
|
import { u as useLocale } from "./LocaleContext-B7vUZmX-.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
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-BIHYpwzT.js";
|
|
19
20
|
import { A as AriaAttribute } from "./AriaAttribute-CmUjjXjp.js";
|
|
20
21
|
import { D as DomOrderExtensions } from "./DomOrderExtensions-Czsyvn6e.js";
|
|
21
22
|
import { s as surfaceVariants } from "./SurfaceStyles-B8KNkFsm.js";
|
|
@@ -627,6 +628,8 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
|
627
628
|
size: {},
|
|
628
629
|
state: {},
|
|
629
630
|
hasToggle: { type: Boolean, default: true },
|
|
631
|
+
revealLabel: {},
|
|
632
|
+
concealLabel: {},
|
|
630
633
|
modelValue: {},
|
|
631
634
|
defaultValue: {},
|
|
632
635
|
autocomplete: { default: void 0 },
|
|
@@ -642,7 +645,11 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
|
642
645
|
},
|
|
643
646
|
emits: ["update:modelValue"],
|
|
644
647
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
645
|
-
const
|
|
648
|
+
const componentProps = __props;
|
|
649
|
+
const props = useLocaleDefaults(componentProps, "PasswordInput", {
|
|
650
|
+
revealLabel: "Show password",
|
|
651
|
+
concealLabel: "Hide password"
|
|
652
|
+
});
|
|
646
653
|
const emit = __emit;
|
|
647
654
|
const attrs = useAttrs();
|
|
648
655
|
const ctx = useFormControl();
|
|
@@ -663,7 +670,7 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
|
663
670
|
visible.value = !visible.value;
|
|
664
671
|
}
|
|
665
672
|
const inputType = computed(() => visible.value ? "text" : "password");
|
|
666
|
-
const toggleLabel = computed(() => visible.value ?
|
|
673
|
+
const toggleLabel = computed(() => visible.value ? props.concealLabel : props.revealLabel);
|
|
667
674
|
const toggleIcon = computed(() => visible.value ? EyeOff : Eye);
|
|
668
675
|
const autocompleteValue = computed(() => props.autocomplete ?? props.autoComplete ?? "current-password");
|
|
669
676
|
const inputId = computed(() => props.id ?? ctx?.id);
|
|
@@ -3065,7 +3072,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
3065
3072
|
default: () => props.defaultValue ?? null,
|
|
3066
3073
|
onChange: (value) => emit("update:modelValue", value)
|
|
3067
3074
|
});
|
|
3068
|
-
const
|
|
3075
|
+
const registrations = shallowRef([]);
|
|
3069
3076
|
const labelCache = /* @__PURE__ */ new Map();
|
|
3070
3077
|
function cachedKey(key) {
|
|
3071
3078
|
if (!props.keyEquals || labelCache.has(key)) return key;
|
|
@@ -3090,29 +3097,35 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
3090
3097
|
const fn = props.getOptionLabel;
|
|
3091
3098
|
return fn ? fn(key) : null;
|
|
3092
3099
|
}
|
|
3093
|
-
function registerItem(entry) {
|
|
3100
|
+
function registerItem(owner, entry) {
|
|
3094
3101
|
cacheLabel(entry.itemKey, entry.label);
|
|
3095
|
-
const list =
|
|
3096
|
-
const idx = list.findIndex((
|
|
3097
|
-
if (idx
|
|
3098
|
-
|
|
3099
|
-
if (existing && existing.label === entry.label && existing.text === entry.text && existing.isDisabled === entry.isDisabled && Object.is(existing.value, entry.value)) {
|
|
3100
|
-
return;
|
|
3101
|
-
}
|
|
3102
|
-
const next = list.slice();
|
|
3103
|
-
next[idx] = entry;
|
|
3104
|
-
items.value = next;
|
|
3102
|
+
const list = registrations.value;
|
|
3103
|
+
const idx = list.findIndex((r) => r.owner === owner);
|
|
3104
|
+
if (idx === -1) {
|
|
3105
|
+
registrations.value = [...list, { owner, entry }];
|
|
3105
3106
|
return;
|
|
3106
3107
|
}
|
|
3107
|
-
|
|
3108
|
+
const existing = list[idx]?.entry;
|
|
3109
|
+
if (existing && Object.is(existing.itemKey, entry.itemKey) && existing.label === entry.label && existing.text === entry.text && existing.isDisabled === entry.isDisabled && Object.is(existing.value, entry.value)) {
|
|
3110
|
+
return;
|
|
3111
|
+
}
|
|
3112
|
+
const next = list.slice();
|
|
3113
|
+
next[idx] = { owner, entry };
|
|
3114
|
+
registrations.value = next;
|
|
3108
3115
|
}
|
|
3109
|
-
function unregisterItem(
|
|
3110
|
-
const
|
|
3111
|
-
if (
|
|
3112
|
-
|
|
3113
|
-
next.splice(idx, 1);
|
|
3114
|
-
items.value = next;
|
|
3116
|
+
function unregisterItem(owner) {
|
|
3117
|
+
const list = registrations.value;
|
|
3118
|
+
if (!list.some((r) => r.owner === owner)) return;
|
|
3119
|
+
registrations.value = list.filter((r) => r.owner !== owner);
|
|
3115
3120
|
}
|
|
3121
|
+
const items = computed(() => {
|
|
3122
|
+
const equals = keyEqualsFn.value;
|
|
3123
|
+
const unique = [];
|
|
3124
|
+
for (const { entry } of registrations.value) {
|
|
3125
|
+
if (!unique.some((i) => equals(i.itemKey, entry.itemKey))) unique.push(entry);
|
|
3126
|
+
}
|
|
3127
|
+
return unique;
|
|
3128
|
+
});
|
|
3116
3129
|
function getCachedLabel(key) {
|
|
3117
3130
|
return labelCache.get(cachedKey(key));
|
|
3118
3131
|
}
|
|
@@ -3147,6 +3160,12 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
3147
3160
|
{ immediate: true }
|
|
3148
3161
|
);
|
|
3149
3162
|
const hasSelection = computed(() => keyCtl.value.value !== null && keyCtl.value.value !== void 0);
|
|
3163
|
+
const needsOptionCollection = computed(() => {
|
|
3164
|
+
const seeds = seedItems.value;
|
|
3165
|
+
if (seeds.length === 0) return true;
|
|
3166
|
+
if (!hasSelection.value) return false;
|
|
3167
|
+
return !seeds.some((seed) => keyEqualsFn.value(seed.itemKey, keyCtl.value.value));
|
|
3168
|
+
});
|
|
3150
3169
|
const selectedLabel = computed(() => {
|
|
3151
3170
|
const captured = selectedEntry.value;
|
|
3152
3171
|
if (!captured || !hasSelection.value) return null;
|
|
@@ -3196,6 +3215,9 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
3196
3215
|
},
|
|
3197
3216
|
registerItem,
|
|
3198
3217
|
unregisterItem,
|
|
3218
|
+
get needsOptionCollection() {
|
|
3219
|
+
return needsOptionCollection.value;
|
|
3220
|
+
},
|
|
3199
3221
|
getCachedLabel,
|
|
3200
3222
|
get query() {
|
|
3201
3223
|
return query.value;
|
|
@@ -3535,6 +3557,30 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
3535
3557
|
};
|
|
3536
3558
|
}
|
|
3537
3559
|
});
|
|
3560
|
+
const OptionCollectionKey = Symbol("presentation.optionCollection");
|
|
3561
|
+
function useOptionCollection() {
|
|
3562
|
+
return inject(OptionCollectionKey, false);
|
|
3563
|
+
}
|
|
3564
|
+
const OptionCollection = defineComponent({
|
|
3565
|
+
name: "OptionCollection",
|
|
3566
|
+
props: {
|
|
3567
|
+
/** Renders the slot into the detached element while true; the picker passes its closed state. */
|
|
3568
|
+
isActive: { type: Boolean, required: true }
|
|
3569
|
+
},
|
|
3570
|
+
setup(props, { slots }) {
|
|
3571
|
+
provide(OptionCollectionKey, true);
|
|
3572
|
+
const host = shallowRef(null);
|
|
3573
|
+
const hasFailed = shallowRef(false);
|
|
3574
|
+
onMounted(() => {
|
|
3575
|
+
host.value = document.createElement("div");
|
|
3576
|
+
});
|
|
3577
|
+
onErrorCaptured(() => {
|
|
3578
|
+
hasFailed.value = true;
|
|
3579
|
+
return false;
|
|
3580
|
+
});
|
|
3581
|
+
return () => host.value && props.isActive && !hasFailed.value ? h(Teleport, { to: host.value }, slots.default?.() ?? []) : null;
|
|
3582
|
+
}
|
|
3583
|
+
});
|
|
3538
3584
|
const _hoisted_1$1d = {
|
|
3539
3585
|
key: 0,
|
|
3540
3586
|
class: "border-b border-border p-1"
|
|
@@ -3607,65 +3653,75 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
3607
3653
|
);
|
|
3608
3654
|
const selectedForListbox = computed(() => ctx.selectedKey ?? void 0);
|
|
3609
3655
|
return (_ctx, _cache) => {
|
|
3610
|
-
return openBlock(),
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3656
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
3657
|
+
createVNode(unref(_sfc_main$2a), mergeProps({
|
|
3658
|
+
variant: __props.variant,
|
|
3659
|
+
tone: __props.tone,
|
|
3660
|
+
radius: __props.radius,
|
|
3661
|
+
padding: __props.padding ?? "none",
|
|
3662
|
+
elevation: __props.elevation
|
|
3663
|
+
}, _ctx.$attrs, {
|
|
3664
|
+
class: [contentClass.value, _ctx.$attrs.class]
|
|
3665
|
+
}), {
|
|
3666
|
+
default: withCtx(() => [
|
|
3667
|
+
__props.isSearchable ? (openBlock(), createElementBlock("div", _hoisted_1$1d, [
|
|
3668
|
+
createVNode(_sfc_main$1U, {
|
|
3669
|
+
size: "sm",
|
|
3670
|
+
autofocus: "",
|
|
3671
|
+
role: "combobox",
|
|
3672
|
+
"aria-expanded": "true",
|
|
3673
|
+
"aria-controls": unref(ctx).listboxId,
|
|
3674
|
+
"aria-activedescendant": unref(ctx).activeDescendant ?? void 0,
|
|
3675
|
+
"aria-autocomplete": "list",
|
|
3676
|
+
"model-value": unref(ctx).query,
|
|
3677
|
+
placeholder: unref(props).searchPlaceholder,
|
|
3678
|
+
"is-clearable": "",
|
|
3679
|
+
class: "rounded-sm",
|
|
3680
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(ctx).setQuery($event)),
|
|
3681
|
+
onKeydown: handleSearchKeyDown,
|
|
3682
|
+
onClear: _cache[1] || (_cache[1] = ($event) => unref(ctx).setQuery(""))
|
|
3683
|
+
}, null, 8, ["aria-controls", "aria-activedescendant", "model-value", "placeholder"])
|
|
3684
|
+
])) : createCommentVNode("", true),
|
|
3685
|
+
createVNode(_sfc_main$1C, {
|
|
3686
|
+
ref_key: "listbox",
|
|
3687
|
+
ref: listbox,
|
|
3688
|
+
id: unref(ctx).listboxId,
|
|
3689
|
+
"model-value": selectedForListbox.value,
|
|
3690
|
+
"is-equal": unref(ctx).keyEquals,
|
|
3691
|
+
"is-disabled": unref(ctx).isDisabled || unref(ctx).isLoading,
|
|
3692
|
+
variant: "flat",
|
|
3693
|
+
radius: "none",
|
|
3694
|
+
tabindex: __props.isSearchable ? -1 : 0,
|
|
3695
|
+
"onUpdate:modelValue": onListboxValueChange,
|
|
3696
|
+
onActiveChange: _cache[2] || (_cache[2] = ($event) => unref(ctx).setActiveDescendant($event))
|
|
3697
|
+
}, {
|
|
3698
|
+
default: withCtx(() => [
|
|
3699
|
+
unref(ctx).isLoading ? (openBlock(), createElementBlock("div", _hoisted_2$W, [
|
|
3700
|
+
createVNode(unref(LoaderIcon), { class: "h-4 w-4 animate-spin" }),
|
|
3701
|
+
createElementVNode("span", null, toDisplayString(unref(ctx).loadingLabel), 1)
|
|
3702
|
+
])) : createCommentVNode("", true),
|
|
3703
|
+
renderSlot(_ctx.$slots, "default"),
|
|
3704
|
+
!unref(ctx).isLoading && showEmpty.value ? (openBlock(), createBlock(_sfc_main$1y, { key: 1 }, {
|
|
3705
|
+
default: withCtx(() => [
|
|
3706
|
+
createTextVNode(toDisplayString(unref(props).noResultsLabel), 1)
|
|
3707
|
+
]),
|
|
3708
|
+
_: 1
|
|
3709
|
+
})) : createCommentVNode("", true)
|
|
3710
|
+
]),
|
|
3711
|
+
_: 3
|
|
3712
|
+
}, 8, ["id", "model-value", "is-equal", "is-disabled", "tabindex"])
|
|
3713
|
+
]),
|
|
3714
|
+
_: 3
|
|
3715
|
+
}, 16, ["variant", "tone", "radius", "padding", "elevation", "class"]),
|
|
3716
|
+
createVNode(unref(OptionCollection), {
|
|
3717
|
+
"is-active": !unref(ctx).open && unref(ctx).needsOptionCollection
|
|
3718
|
+
}, {
|
|
3719
|
+
default: withCtx(() => [
|
|
3720
|
+
renderSlot(_ctx.$slots, "default")
|
|
3721
|
+
]),
|
|
3722
|
+
_: 3
|
|
3723
|
+
}, 8, ["is-active"])
|
|
3724
|
+
], 64);
|
|
3669
3725
|
};
|
|
3670
3726
|
}
|
|
3671
3727
|
});
|
|
@@ -3682,6 +3738,8 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
3682
3738
|
setup(__props) {
|
|
3683
3739
|
const props = __props;
|
|
3684
3740
|
const ctx = useSelectContext();
|
|
3741
|
+
const isCollected = useOptionCollection();
|
|
3742
|
+
const owner = Symbol("SelectPickerItem");
|
|
3685
3743
|
const resolvedValue = computed(() => props.value === void 0 ? props.itemKey : props.value);
|
|
3686
3744
|
const itemText = computed(() => props.text !== void 0 ? props.text : extractText(props.label));
|
|
3687
3745
|
watch(
|
|
@@ -3692,16 +3750,13 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
3692
3750
|
text: itemText.value,
|
|
3693
3751
|
isDisabled: props.isDisabled
|
|
3694
3752
|
}),
|
|
3695
|
-
(entry
|
|
3696
|
-
if (previous && !Object.is(previous.itemKey, entry.itemKey)) ctx.unregisterItem(previous.itemKey);
|
|
3697
|
-
ctx.registerItem(entry);
|
|
3698
|
-
},
|
|
3753
|
+
(entry) => ctx.registerItem(owner, entry),
|
|
3699
3754
|
{ immediate: true }
|
|
3700
3755
|
);
|
|
3701
|
-
onBeforeUnmount(() => ctx.unregisterItem(
|
|
3756
|
+
onBeforeUnmount(() => ctx.unregisterItem(owner));
|
|
3702
3757
|
const matchesQuery = computed(() => !ctx.query || itemText.value.toLowerCase().includes(ctx.query.toLowerCase()));
|
|
3703
3758
|
return (_ctx, _cache) => {
|
|
3704
|
-
return matchesQuery.value ? (openBlock(), createBlock(_sfc_main$1B, mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
3759
|
+
return !unref(isCollected) && matchesQuery.value ? (openBlock(), createBlock(_sfc_main$1B, mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
3705
3760
|
value: __props.itemKey,
|
|
3706
3761
|
"is-disabled": __props.isDisabled
|
|
3707
3762
|
}), {
|
|
@@ -4022,31 +4077,41 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
4022
4077
|
ctx.setValues(next);
|
|
4023
4078
|
}
|
|
4024
4079
|
return (_ctx, _cache) => {
|
|
4025
|
-
return openBlock(),
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4080
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
4081
|
+
createVNode(unref(_sfc_main$2a), {
|
|
4082
|
+
variant: __props.variant,
|
|
4083
|
+
tone: __props.tone,
|
|
4084
|
+
radius: __props.radius,
|
|
4085
|
+
padding: resolvedPadding.value,
|
|
4086
|
+
elevation: __props.elevation,
|
|
4087
|
+
class: normalizeClass(panelClass.value)
|
|
4088
|
+
}, {
|
|
4089
|
+
default: withCtx(() => [
|
|
4090
|
+
createVNode(unref(_sfc_main$1C), {
|
|
4091
|
+
"is-disabled": unref(ctx).isDisabled,
|
|
4092
|
+
"is-multiple": "",
|
|
4093
|
+
"model-value": selected.value,
|
|
4094
|
+
variant: "flat",
|
|
4095
|
+
radius: "none",
|
|
4096
|
+
"onUpdate:modelValue": onValueChange
|
|
4097
|
+
}, {
|
|
4098
|
+
default: withCtx(() => [
|
|
4099
|
+
renderSlot(_ctx.$slots, "default")
|
|
4100
|
+
]),
|
|
4101
|
+
_: 3
|
|
4102
|
+
}, 8, ["is-disabled", "model-value"])
|
|
4103
|
+
]),
|
|
4104
|
+
_: 3
|
|
4105
|
+
}, 8, ["variant", "tone", "radius", "padding", "elevation", "class"]),
|
|
4106
|
+
createVNode(unref(OptionCollection), {
|
|
4107
|
+
"is-active": !unref(ctx).open
|
|
4108
|
+
}, {
|
|
4109
|
+
default: withCtx(() => [
|
|
4110
|
+
renderSlot(_ctx.$slots, "default")
|
|
4111
|
+
]),
|
|
4112
|
+
_: 3
|
|
4113
|
+
}, 8, ["is-active"])
|
|
4114
|
+
], 64);
|
|
4050
4115
|
};
|
|
4051
4116
|
}
|
|
4052
4117
|
});
|
|
@@ -4062,10 +4127,12 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
4062
4127
|
const props = __props;
|
|
4063
4128
|
const el = useTemplateRef("el");
|
|
4064
4129
|
const ctx = useMultiSelectContext();
|
|
4130
|
+
const isCollected = useOptionCollection();
|
|
4065
4131
|
const registeredLabel = computed(() => props.label ?? props.value);
|
|
4066
4132
|
watch([() => props.value, registeredLabel], ([value, label]) => ctx.registerLabel(value, label), { immediate: true });
|
|
4067
4133
|
return (_ctx, _cache) => {
|
|
4068
|
-
return openBlock(), createBlock(unref(_sfc_main$1B), {
|
|
4134
|
+
return !unref(isCollected) ? (openBlock(), createBlock(unref(_sfc_main$1B), {
|
|
4135
|
+
key: 0,
|
|
4069
4136
|
ref_key: "el",
|
|
4070
4137
|
ref: el,
|
|
4071
4138
|
value: __props.value,
|
|
@@ -4075,7 +4142,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
4075
4142
|
renderSlot(_ctx.$slots, "default")
|
|
4076
4143
|
]),
|
|
4077
4144
|
_: 3
|
|
4078
|
-
}, 8, ["value", "is-disabled"]);
|
|
4145
|
+
}, 8, ["value", "is-disabled"])) : createCommentVNode("", true);
|
|
4079
4146
|
};
|
|
4080
4147
|
}
|
|
4081
4148
|
});
|
|
@@ -6429,8 +6496,8 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
6429
6496
|
function clamp01(n) {
|
|
6430
6497
|
return Math.max(0, Math.min(1, n));
|
|
6431
6498
|
}
|
|
6432
|
-
function clampHue(
|
|
6433
|
-
let v =
|
|
6499
|
+
function clampHue(h2) {
|
|
6500
|
+
let v = h2 % 360;
|
|
6434
6501
|
if (v < 0) v += 360;
|
|
6435
6502
|
return v;
|
|
6436
6503
|
}
|
|
@@ -6474,21 +6541,21 @@ function rgbToHsv({ r, g, b, a = 1 }) {
|
|
|
6474
6541
|
const max = Math.max(rn, gn, bn);
|
|
6475
6542
|
const min = Math.min(rn, gn, bn);
|
|
6476
6543
|
const d = max - min;
|
|
6477
|
-
let
|
|
6544
|
+
let h2 = 0;
|
|
6478
6545
|
if (d !== 0) {
|
|
6479
|
-
if (max === rn)
|
|
6480
|
-
else if (max === gn)
|
|
6481
|
-
else
|
|
6482
|
-
|
|
6483
|
-
if (
|
|
6546
|
+
if (max === rn) h2 = (gn - bn) / d % 6;
|
|
6547
|
+
else if (max === gn) h2 = (bn - rn) / d + 2;
|
|
6548
|
+
else h2 = (rn - gn) / d + 4;
|
|
6549
|
+
h2 *= 60;
|
|
6550
|
+
if (h2 < 0) h2 += 360;
|
|
6484
6551
|
}
|
|
6485
6552
|
const s = max === 0 ? 0 : d / max;
|
|
6486
6553
|
const v = max;
|
|
6487
|
-
return { h, s, v, a };
|
|
6554
|
+
return { h: h2, s, v, a };
|
|
6488
6555
|
}
|
|
6489
|
-
function hsvToRgb({ h, s, v, a = 1 }) {
|
|
6556
|
+
function hsvToRgb({ h: h2, s, v, a = 1 }) {
|
|
6490
6557
|
const c = v * s;
|
|
6491
|
-
const hh = clampHue(
|
|
6558
|
+
const hh = clampHue(h2) / 60;
|
|
6492
6559
|
const x = c * (1 - Math.abs(hh % 2 - 1));
|
|
6493
6560
|
let r1 = 0;
|
|
6494
6561
|
let g1 = 0;
|
|
@@ -7450,8 +7517,8 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
7450
7517
|
hsv.value = next;
|
|
7451
7518
|
controlled.setValue(hsvToHex(next, { withAlpha: props.hasAlpha }));
|
|
7452
7519
|
}
|
|
7453
|
-
function onHueChange(
|
|
7454
|
-
updateHsv({ ...hsv.value, h });
|
|
7520
|
+
function onHueChange(h2) {
|
|
7521
|
+
updateHsv({ ...hsv.value, h: h2 });
|
|
7455
7522
|
}
|
|
7456
7523
|
function onAlphaChange(a) {
|
|
7457
7524
|
updateHsv({ ...hsv.value, a });
|
|
@@ -18730,4 +18797,4 @@ export {
|
|
|
18730
18797
|
_sfc_main$1m as y,
|
|
18731
18798
|
_sfc_main$1k as z
|
|
18732
18799
|
};
|
|
18733
|
-
//# sourceMappingURL=MentionInput.vue_vue_type_script_setup_true_lang-
|
|
18800
|
+
//# sourceMappingURL=MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js.map
|