@hina-ui/vue 1.7.7 → 1.7.9
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/index.js +1338 -562
- package/dist/index.js.map +1 -1
- package/dist/shared/behavior/anchor-follow.ts +20 -11
- package/dist/shared/behavior/form.ts +5 -9
- package/dist/shared/lib/command-palette/match.ts +9 -0
- package/dist/shared/lib/line-clamp.ts +76 -0
- package/dist/shared/lib/scroll-restore.ts +163 -0
- package/dist/shared/locale/en-US.ts +4 -0
- package/dist/shared/locale/index.ts +2 -0
- package/dist/shared/locale/ja-JP.ts +229 -0
- package/dist/shared/locale/types.ts +4 -0
- package/dist/shared/locale/zh-CN.ts +4 -0
- package/dist/shared/styles/density.css +4 -0
- package/dist/shared/styles/line-clamp.css +98 -0
- package/dist/shared/styles/tokens.css +1 -0
- package/dist/shared/styles/typography.css +18 -0
- package/dist/shared/variants/button.ts +2 -0
- package/dist/shared/variants/command-palette.ts +4 -0
- package/dist/shared/variants/line-clamp.ts +13 -0
- package/dist/shared/variants/tag.ts +1 -0
- package/dist/types/shared/src/behavior/anchor-follow.d.ts.map +1 -1
- package/dist/types/shared/src/behavior/form.d.ts.map +1 -1
- package/dist/types/shared/src/lib/command-palette/match.d.ts +5 -0
- package/dist/types/shared/src/lib/command-palette/match.d.ts.map +1 -1
- package/dist/types/shared/src/lib/line-clamp.d.ts +6 -0
- package/dist/types/shared/src/lib/line-clamp.d.ts.map +1 -0
- package/dist/types/shared/src/lib/scroll-restore.d.ts +16 -0
- package/dist/types/shared/src/lib/scroll-restore.d.ts.map +1 -1
- package/dist/types/shared/src/locale/en-US.d.ts.map +1 -1
- package/dist/types/shared/src/locale/index.d.ts +1 -0
- package/dist/types/shared/src/locale/index.d.ts.map +1 -1
- package/dist/types/shared/src/locale/ja-JP.d.ts +3 -0
- package/dist/types/shared/src/locale/ja-JP.d.ts.map +1 -0
- package/dist/types/shared/src/locale/types.d.ts +4 -0
- package/dist/types/shared/src/locale/types.d.ts.map +1 -1
- package/dist/types/shared/src/locale/zh-CN.d.ts.map +1 -1
- package/dist/types/shared/src/variants/button.d.ts +6 -0
- package/dist/types/shared/src/variants/button.d.ts.map +1 -1
- package/dist/types/shared/src/variants/command-palette.d.ts +1 -0
- package/dist/types/shared/src/variants/command-palette.d.ts.map +1 -1
- package/dist/types/shared/src/variants/line-clamp.d.ts +4 -0
- package/dist/types/shared/src/variants/line-clamp.d.ts.map +1 -0
- package/dist/types/shared/src/variants/tag.d.ts +3 -0
- package/dist/types/shared/src/variants/tag.d.ts.map +1 -1
- package/dist/types/shared/src/variants/toggle.d.ts +7 -0
- package/dist/types/shared/src/variants/toggle.d.ts.map +1 -1
- package/dist/types/vue/src/components/app-shell/AppShell.vue.d.ts +2 -2
- package/dist/types/vue/src/components/app-shell/AppShell.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/close-button/CloseButton.vue.d.ts +1 -1
- package/dist/types/vue/src/components/command-palette/CommandPalette.vue.d.ts +40 -34
- package/dist/types/vue/src/components/command-palette/CommandPalette.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/command-palette/CommandPaletteInput.vue.d.ts +8 -0
- package/dist/types/vue/src/components/command-palette/CommandPaletteInput.vue.d.ts.map +1 -0
- package/dist/types/vue/src/components/command-palette/CommandPaletteItem.vue.d.ts +21 -7
- package/dist/types/vue/src/components/command-palette/CommandPaletteItem.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/command-palette/CommandPalettePanel.vue.d.ts +37 -31
- package/dist/types/vue/src/components/command-palette/CommandPalettePanel.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/command-palette/composables/useCommandItems.d.ts +6 -6
- package/dist/types/vue/src/components/command-palette/composables/useCommandItems.d.ts.map +1 -1
- package/dist/types/vue/src/components/command-palette/context.d.ts +11 -0
- package/dist/types/vue/src/components/command-palette/context.d.ts.map +1 -0
- package/dist/types/vue/src/components/command-palette/types.d.ts +16 -5
- package/dist/types/vue/src/components/command-palette/types.d.ts.map +1 -1
- package/dist/types/vue/src/components/command-palette/utils/match.d.ts +3 -3
- package/dist/types/vue/src/components/command-palette/utils/match.d.ts.map +1 -1
- package/dist/types/vue/src/components/copy-button/CopyButton.vue.d.ts +1 -1
- package/dist/types/vue/src/components/description-list/DescriptionList.vue.d.ts +1 -0
- package/dist/types/vue/src/components/description-list/DescriptionList.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/dialog/Dialog.vue.d.ts +3 -0
- package/dist/types/vue/src/components/dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/drawer/Drawer.vue.d.ts +3 -0
- package/dist/types/vue/src/components/drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/form/Form.vue.d.ts +5 -0
- package/dist/types/vue/src/components/form/Form.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/form/scope.d.ts +4 -0
- package/dist/types/vue/src/components/form/scope.d.ts.map +1 -0
- package/dist/types/vue/src/components/line-clamp/LineClamp.vue.d.ts +28 -0
- package/dist/types/vue/src/components/line-clamp/LineClamp.vue.d.ts.map +1 -0
- package/dist/types/vue/src/components/line-clamp/line-clamp.variants.d.ts +2 -0
- package/dist/types/vue/src/components/line-clamp/line-clamp.variants.d.ts.map +1 -0
- package/dist/types/vue/src/components/sheet/Sheet.vue.d.ts +3 -0
- package/dist/types/vue/src/components/sheet/Sheet.vue.d.ts.map +1 -1
- package/dist/types/vue/src/index.d.ts +6 -4
- package/dist/types/vue/src/index.d.ts.map +1 -1
- package/dist/types/vue/src/locale/index.d.ts +1 -1
- package/dist/types/vue/src/locale/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/app-shell/AppShell.vue +54 -4
- package/src/components/command-palette/CommandPalette.vue +53 -16
- package/src/components/command-palette/CommandPaletteInput.vue +32 -0
- package/src/components/command-palette/CommandPaletteItem.vue +7 -5
- package/src/components/command-palette/CommandPalettePanel.vue +95 -34
- package/src/components/command-palette/composables/useCommandItems.ts +16 -14
- package/src/components/command-palette/context.ts +28 -0
- package/src/components/command-palette/types.ts +21 -5
- package/src/components/command-palette/utils/match.ts +6 -3
- package/src/components/description-list/DescriptionList.vue +8 -2
- package/src/components/dialog/Dialog.vue +13 -8
- package/src/components/drawer/Drawer.vue +13 -8
- package/src/components/form/Form.vue +14 -1
- package/src/components/form/scope.ts +39 -0
- package/src/components/line-clamp/LineClamp.vue +105 -0
- package/src/components/line-clamp/line-clamp.variants.ts +1 -0
- package/src/components/sheet/Sheet.vue +14 -10
- package/src/index.ts +16 -2
- package/src/locale/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { clsx } from "clsx";
|
|
2
2
|
import { extendTailwindMerge } from "tailwind-merge";
|
|
3
3
|
import { createTV } from "tailwind-variants";
|
|
4
|
-
import { Comment, Fragment, Text, Transition, camelize, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, h, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onBeforeUpdate, onMounted, onScopeDispose, onUnmounted, onUpdated, openBlock, provide, reactive, ref, render, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, triggerRef, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, vModelDynamic, vModelSelect, vModelText, vShow, watch, watchEffect, watchPostEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
4
|
+
import { Comment, Fragment, Text, Transition, camelize, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, h, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onBeforeUpdate, onMounted, onScopeDispose, onUnmounted, onUpdated, openBlock, provide, reactive, ref, render, renderList, renderSlot, resolveDynamicComponent, shallowRef, ssrContextKey, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, triggerRef, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, vModelDynamic, vModelSelect, vModelText, vShow, watch, watchEffect, watchPostEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
5
5
|
import { AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, CalendarCell, CalendarCellTrigger, CalendarGrid, CalendarGridBody, CalendarGridHead, CalendarGridRow, CalendarHeadCell, CalendarNext, CalendarPrev, CalendarRoot, ComboboxAnchor, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxItemIndicator, ComboboxLabel, ComboboxPortal, ComboboxRoot, ComboboxTrigger, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuItemIndicator, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuRoot, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DateFieldInput, DateFieldRoot, DateRangeFieldInput, DateRangeFieldRoot, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogRoot, DialogTitle, DialogTrigger, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, HoverCardContent, HoverCardPortal, HoverCardRoot, HoverCardTrigger, ListboxContent, ListboxFilter, ListboxGroup, ListboxGroupLabel, ListboxItem, ListboxItemIndicator, ListboxRoot, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarItemIndicator, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarRoot, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MonthPickerCell, MonthPickerCellTrigger, MonthPickerGrid, MonthPickerGridBody, MonthPickerGridRow, MonthPickerNext, MonthPickerPrev, MonthPickerRoot, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, PopoverAnchor, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, RangeCalendarCell, RangeCalendarCellTrigger, RangeCalendarGrid, RangeCalendarGridBody, RangeCalendarGridHead, RangeCalendarGridRow, RangeCalendarHeadCell, RangeCalendarNext, RangeCalendarPrev, RangeCalendarRoot, SelectContent, SelectGroup, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, SelectPortal, SelectRoot, SelectTrigger, TagsInputInput, TagsInputItem, TagsInputItemText, TagsInputRoot, TimeFieldInput, TimeFieldRoot, ToastClose, ToastDescription, ToastPortal, ToastProvider, ToastRoot, ToastTitle, ToastViewport, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger, TreeItem, TreeRoot, VisuallyHidden, YearPickerCell, YearPickerCellTrigger, YearPickerGrid, YearPickerGridBody, YearPickerGridRow, YearPickerNext, YearPickerPrev, YearPickerRoot, injectComboboxRootContext, injectConfigProviderContext, injectDialogRootContext, injectHoverCardRootContext, injectListboxItemContext, injectListboxRootContext, injectPopoverRootContext, injectSelectRootContext, injectTooltipProviderContext, injectTooltipRootContext, injectTreeRootContext, useBodyScrollLock, useDirection, useFilter, useForwardExpose, useForwardPropsEmits } from "reka-ui";
|
|
6
6
|
import { ArrowDown, ArrowLeft, ArrowRight, ArrowUp, CalendarClock, CalendarDays, CalendarRange, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, ChevronsLeft, ChevronsRight, ChevronsUpDown, CircleAlert, CircleCheck, CircleX, Copy, Download, Eye, EyeOff, File, GripVertical, Inbox, Info, LayoutGrid, Lightbulb, List, Megaphone, Minus, MoreHorizontal, PanelLeft, Pause, Pencil, Play, QrCode, RefreshCw, RotateCw, Scan, Search, Shrink, Star, TrendingDown, TrendingUp, TriangleAlert, Upload, User, X, ZoomIn, ZoomOut } from "@lucide/vue";
|
|
7
7
|
import { createSharedComposable, defaultDocument, unrefElement, useActiveElement, useDocumentVisibility, useElementBounding, useEventListener, useIntersectionObserver, useIntervalFn, useMediaQuery, useMounted, useMutationObserver, usePreferredReducedMotion, useRafFn, useResizeObserver, useVModel, useWindowSize } from "@vueuse/core";
|
|
@@ -316,6 +316,10 @@ var zhCN = {
|
|
|
316
316
|
placeholder: "搜索",
|
|
317
317
|
empty: "无匹配项"
|
|
318
318
|
},
|
|
319
|
+
lineClamp: {
|
|
320
|
+
expand: "展开全部",
|
|
321
|
+
collapse: "收起"
|
|
322
|
+
},
|
|
319
323
|
calendar: {
|
|
320
324
|
label: "日历",
|
|
321
325
|
prev: "上个月",
|
|
@@ -517,6 +521,10 @@ var enUS = {
|
|
|
517
521
|
placeholder: "Search",
|
|
518
522
|
empty: "No matches"
|
|
519
523
|
},
|
|
524
|
+
lineClamp: {
|
|
525
|
+
expand: "Show all",
|
|
526
|
+
collapse: "Show less"
|
|
527
|
+
},
|
|
520
528
|
calendar: {
|
|
521
529
|
label: "Calendar",
|
|
522
530
|
prev: "Previous month",
|
|
@@ -531,6 +539,211 @@ var enUS = {
|
|
|
531
539
|
}
|
|
532
540
|
};
|
|
533
541
|
//#endregion
|
|
542
|
+
//#region ../shared/src/locale/ja-JP.ts
|
|
543
|
+
var jaJP = {
|
|
544
|
+
qrCode: {
|
|
545
|
+
label: "QRコード",
|
|
546
|
+
empty: "コンテンツがありません",
|
|
547
|
+
expired: "QRコードの有効期限が切れました",
|
|
548
|
+
scanned: "スキャン済み",
|
|
549
|
+
error: "QRコードを生成できません",
|
|
550
|
+
refresh: "QRコードを更新"
|
|
551
|
+
},
|
|
552
|
+
carousel: {
|
|
553
|
+
label: "おすすめコンテンツ",
|
|
554
|
+
role: "カルーセル",
|
|
555
|
+
slide: "スライド",
|
|
556
|
+
prev: "前のグループ",
|
|
557
|
+
next: "次のグループ",
|
|
558
|
+
choose: "表示位置を選択",
|
|
559
|
+
play: "自動再生を開始",
|
|
560
|
+
pause: "自動再生を停止",
|
|
561
|
+
empty: "コンテンツがありません",
|
|
562
|
+
position: (index, total) => `${total} 件中 ${index} 件目`,
|
|
563
|
+
goTo: (index) => `グループ ${index} に移動`
|
|
564
|
+
},
|
|
565
|
+
monthGrid: { today: "今月に戻る" },
|
|
566
|
+
masonry: { empty: "コンテンツがありません" },
|
|
567
|
+
splitButton: { more: "その他の操作" },
|
|
568
|
+
editable: {
|
|
569
|
+
edit: "編集",
|
|
570
|
+
save: "保存",
|
|
571
|
+
placeholder: "クリックして編集",
|
|
572
|
+
failed: "保存できませんでした。もう一度お試しください"
|
|
573
|
+
},
|
|
574
|
+
tag: "ja-JP",
|
|
575
|
+
stepper: {
|
|
576
|
+
label: "ステップ",
|
|
577
|
+
progress: (step, total) => `ステップ ${step} / ${total}`,
|
|
578
|
+
completed: "完了",
|
|
579
|
+
error: "このステップにエラーがあります"
|
|
580
|
+
},
|
|
581
|
+
common: {
|
|
582
|
+
close: "閉じる",
|
|
583
|
+
copy: "コピー",
|
|
584
|
+
copied: "コピーしました",
|
|
585
|
+
clear: "クリア",
|
|
586
|
+
loading: "読み込み中",
|
|
587
|
+
confirm: "OK",
|
|
588
|
+
cancel: "キャンセル"
|
|
589
|
+
},
|
|
590
|
+
banner: {
|
|
591
|
+
prev: "前のお知らせ",
|
|
592
|
+
next: "次のお知らせ"
|
|
593
|
+
},
|
|
594
|
+
pagination: {
|
|
595
|
+
rangeLabel: (from, to, total) => total ? String(from) + "–" + to + " / 全 " + total + " 件" : "全 0 件",
|
|
596
|
+
pageCountLabel: (page, count) => page + " / " + count + " ページ",
|
|
597
|
+
pageSizeLabel: "1 ページあたりの件数",
|
|
598
|
+
pageSizeOption: (n) => String(n) + " 件 / ページ",
|
|
599
|
+
jumpLabel: "ページへ移動",
|
|
600
|
+
previousPagesLabel: (n) => n + " ページ戻る",
|
|
601
|
+
nextPagesLabel: (n) => n + " ページ進む",
|
|
602
|
+
choosePage: "ページを選択",
|
|
603
|
+
choosePageHint: "上下の矢印キーでページを選択",
|
|
604
|
+
navLabel: "ページネーション",
|
|
605
|
+
prev: "前のページ",
|
|
606
|
+
next: "次のページ",
|
|
607
|
+
first: "最初のページ",
|
|
608
|
+
last: "最後のページ",
|
|
609
|
+
pageLabel: (n) => `${n} ページ`,
|
|
610
|
+
totalLabel: (n) => `全 ${n} 件`
|
|
611
|
+
},
|
|
612
|
+
table: {
|
|
613
|
+
edit: "編集",
|
|
614
|
+
save: "保存",
|
|
615
|
+
cancel: "キャンセル",
|
|
616
|
+
editFailed: "保存できませんでした。もう一度お試しください",
|
|
617
|
+
selectPage: "現在のページを選択",
|
|
618
|
+
selectFiltered: "絞り込み結果を選択",
|
|
619
|
+
expand: "展開",
|
|
620
|
+
collapse: "折りたたむ",
|
|
621
|
+
moveRow: "行を移動",
|
|
622
|
+
moveColumn: "列を移動",
|
|
623
|
+
resizeColumn: "列幅を調整",
|
|
624
|
+
noColumns: "表示する列がありません",
|
|
625
|
+
empty: "データがありません",
|
|
626
|
+
loading: "読み込み中",
|
|
627
|
+
sortAsc: "昇順で並べ替え",
|
|
628
|
+
sortDesc: "降順で並べ替え",
|
|
629
|
+
sortNone: "並べ替えを解除",
|
|
630
|
+
selectRow: "この行を選択",
|
|
631
|
+
selectAll: "すべて選択"
|
|
632
|
+
},
|
|
633
|
+
select: {
|
|
634
|
+
placeholder: "選択してください",
|
|
635
|
+
empty: "一致する項目がありません",
|
|
636
|
+
optionCountLabel: (n) => `${n} 件の選択肢があります`
|
|
637
|
+
},
|
|
638
|
+
upload: {
|
|
639
|
+
choose: "ファイルを選択",
|
|
640
|
+
dropHint: "ここにファイルをドロップ、またはクリックして選択",
|
|
641
|
+
tooLargeLabel: (readableSize) => `ファイルが上限の ${readableSize} を超えています`,
|
|
642
|
+
remove: "削除",
|
|
643
|
+
removeFile: (name) => `${name} を削除`
|
|
644
|
+
},
|
|
645
|
+
time: {
|
|
646
|
+
justNow: "たった今",
|
|
647
|
+
unknown: "日時不明"
|
|
648
|
+
},
|
|
649
|
+
virtualList: { empty: "データがありません" },
|
|
650
|
+
dataList: {
|
|
651
|
+
empty: "データがありません",
|
|
652
|
+
list: "リスト表示",
|
|
653
|
+
grid: "グリッド表示",
|
|
654
|
+
layout: "表示レイアウト"
|
|
655
|
+
},
|
|
656
|
+
scroll: {
|
|
657
|
+
regionLabel: "スクロール可能な領域",
|
|
658
|
+
backToTop: "ページの先頭へ戻る"
|
|
659
|
+
},
|
|
660
|
+
toast: { regionLabel: "通知" },
|
|
661
|
+
spoiler: {
|
|
662
|
+
revealLabel: "ネタバレを含みます。クリックして表示",
|
|
663
|
+
hideLabel: "ネタバレを隠す"
|
|
664
|
+
},
|
|
665
|
+
codeblock: { copy: "コードをコピー" },
|
|
666
|
+
splitter: { handleLabel: "パネルのサイズを調整" },
|
|
667
|
+
sidebar: {
|
|
668
|
+
navLabel: "サイドバーナビゲーション",
|
|
669
|
+
toggleLabel: "サイドバーを切り替え"
|
|
670
|
+
},
|
|
671
|
+
anchor: { navLabel: "このページの目次" },
|
|
672
|
+
breadcrumb: { navLabel: "パンくずリスト" },
|
|
673
|
+
lightbox: {
|
|
674
|
+
zoomIn: "拡大",
|
|
675
|
+
zoomOut: "縮小",
|
|
676
|
+
resetZoom: "ウィンドウに合わせる",
|
|
677
|
+
actualSize: "実際のサイズ",
|
|
678
|
+
rotate: "回転",
|
|
679
|
+
download: "ダウンロード",
|
|
680
|
+
loadingLarge: "高画質版を読み込み中"
|
|
681
|
+
},
|
|
682
|
+
chip: { remove: "削除" },
|
|
683
|
+
numberInput: {
|
|
684
|
+
increase: "増やす",
|
|
685
|
+
decrease: "減らす"
|
|
686
|
+
},
|
|
687
|
+
passwordInput: {
|
|
688
|
+
show: "パスワードを表示",
|
|
689
|
+
hide: "パスワードを隠す"
|
|
690
|
+
},
|
|
691
|
+
tree: { empty: "ノードがありません" },
|
|
692
|
+
treeSelect: { search: "ノードを検索" },
|
|
693
|
+
combobox: {
|
|
694
|
+
placeholder: "入力または選択",
|
|
695
|
+
toggle: "選択肢を表示"
|
|
696
|
+
},
|
|
697
|
+
slider: {
|
|
698
|
+
minimum: "最小値",
|
|
699
|
+
maximum: "最大値"
|
|
700
|
+
},
|
|
701
|
+
pinInput: { cellLabel: (index, total) => `${total} 桁中 ${index} 桁目` },
|
|
702
|
+
dateField: {
|
|
703
|
+
year: "年",
|
|
704
|
+
month: "月",
|
|
705
|
+
day: "日",
|
|
706
|
+
hour: "時",
|
|
707
|
+
minute: "分",
|
|
708
|
+
second: "秒",
|
|
709
|
+
dayPeriod: "午前または午後"
|
|
710
|
+
},
|
|
711
|
+
dateRangeField: {
|
|
712
|
+
start: "開始日",
|
|
713
|
+
end: "終了日",
|
|
714
|
+
separator: "〜"
|
|
715
|
+
},
|
|
716
|
+
datePicker: { open: "カレンダーを開く" },
|
|
717
|
+
dateTimePicker: { time: "時刻" },
|
|
718
|
+
rating: {
|
|
719
|
+
star: (value) => `星 ${value}`,
|
|
720
|
+
label: (value, max) => `星 ${max} 個中 ${value} 個`,
|
|
721
|
+
score: (value, max) => `${max} 点中 ${value} 点`
|
|
722
|
+
},
|
|
723
|
+
form: { required: "必須" },
|
|
724
|
+
command: {
|
|
725
|
+
label: "コマンドパレット",
|
|
726
|
+
placeholder: "検索",
|
|
727
|
+
empty: "一致する項目がありません"
|
|
728
|
+
},
|
|
729
|
+
lineClamp: {
|
|
730
|
+
expand: "すべて表示",
|
|
731
|
+
collapse: "折りたたむ"
|
|
732
|
+
},
|
|
733
|
+
calendar: {
|
|
734
|
+
label: "カレンダー",
|
|
735
|
+
prev: "前の月",
|
|
736
|
+
next: "次の月",
|
|
737
|
+
prevYear: "前の年",
|
|
738
|
+
nextYear: "次の年",
|
|
739
|
+
prevYears: "前の 12 年",
|
|
740
|
+
nextYears: "次の 12 年",
|
|
741
|
+
pickMonth: "月を選択",
|
|
742
|
+
pickYear: "年を選択",
|
|
743
|
+
weekStartsOn: 0
|
|
744
|
+
}
|
|
745
|
+
};
|
|
746
|
+
//#endregion
|
|
534
747
|
//#region ../shared/src/locale/index.ts
|
|
535
748
|
function mergeUiMessages(base, patch) {
|
|
536
749
|
return {
|
|
@@ -698,6 +911,10 @@ function mergeUiMessages(base, patch) {
|
|
|
698
911
|
command: {
|
|
699
912
|
...base.command,
|
|
700
913
|
...patch.command
|
|
914
|
+
},
|
|
915
|
+
lineClamp: {
|
|
916
|
+
...base.lineClamp,
|
|
917
|
+
...patch.lineClamp
|
|
701
918
|
}
|
|
702
919
|
};
|
|
703
920
|
}
|
|
@@ -744,6 +961,7 @@ var button = tv({
|
|
|
744
961
|
danger: ""
|
|
745
962
|
},
|
|
746
963
|
size: {
|
|
964
|
+
xs: "h-[var(--hn-control-h-xs)] px-[var(--hn-control-px-xs)] text-xs [&_svg]:size-3.5",
|
|
747
965
|
sm: "h-[var(--hn-control-h-sm)] px-[var(--hn-control-px-sm)] text-sm [&_svg]:size-3.5",
|
|
748
966
|
md: "h-[var(--hn-control-h-md)] px-[var(--hn-control-px-md)] text-base [&_svg]:size-4",
|
|
749
967
|
lg: "h-[var(--hn-control-h-lg)] px-[var(--hn-control-px-lg)] text-md [&_svg]:size-[1.125rem]"
|
|
@@ -847,6 +1065,7 @@ var button = tv({
|
|
|
847
1065
|
var buttonIconBox = tv({
|
|
848
1066
|
base: "relative inline-flex shrink-0 items-center justify-center",
|
|
849
1067
|
variants: { size: {
|
|
1068
|
+
xs: "size-3.5",
|
|
850
1069
|
sm: "size-3.5",
|
|
851
1070
|
md: "size-4",
|
|
852
1071
|
lg: "size-[1.125rem]"
|
|
@@ -866,7 +1085,7 @@ var spinner = tv({
|
|
|
866
1085
|
});
|
|
867
1086
|
//#endregion
|
|
868
1087
|
//#region src/components/spinner/Spinner.vue?vue&type=script&setup=true&lang.ts
|
|
869
|
-
var _hoisted_1$
|
|
1088
|
+
var _hoisted_1$131 = ["aria-label"];
|
|
870
1089
|
//#endregion
|
|
871
1090
|
//#region src/components/spinner/Spinner.vue
|
|
872
1091
|
var Spinner_default = /* @__PURE__ */ defineComponent({
|
|
@@ -886,13 +1105,13 @@ var Spinner_default = /* @__PURE__ */ defineComponent({
|
|
|
886
1105
|
"aria-label": props.label ?? unref(t).common.loading,
|
|
887
1106
|
class: unref(cn)(unref(spinner)({ size: props.size })),
|
|
888
1107
|
style: { animation: "hn-spin var(--hn-spin-duration) var(--hn-ease-linear) infinite" }
|
|
889
|
-
}), null, 16, _hoisted_1$
|
|
1108
|
+
}), null, 16, _hoisted_1$131);
|
|
890
1109
|
};
|
|
891
1110
|
}
|
|
892
1111
|
});
|
|
893
1112
|
//#endregion
|
|
894
1113
|
//#region src/components/button/IconSlot.vue?vue&type=script&setup=true&lang.ts
|
|
895
|
-
var _hoisted_1$
|
|
1114
|
+
var _hoisted_1$130 = {
|
|
896
1115
|
key: 0,
|
|
897
1116
|
"aria-hidden": "true",
|
|
898
1117
|
class: "absolute inset-0 inline-flex items-center justify-center"
|
|
@@ -916,7 +1135,7 @@ var IconSlot_default$1 = /* @__PURE__ */ defineComponent({
|
|
|
916
1135
|
"leave-active-class": "hn-transition",
|
|
917
1136
|
"leave-to-class": "scale-90 opacity-0"
|
|
918
1137
|
}, {
|
|
919
|
-
default: withCtx(() => [props.swapped ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1138
|
+
default: withCtx(() => [props.swapped ? (openBlock(), createElementBlock("span", _hoisted_1$130, [createVNode(Spinner_default, { size: props.spinnerSize }, null, 8, ["size"])])) : createCommentVNode("", true)]),
|
|
920
1139
|
_: 1
|
|
921
1140
|
})], 2);
|
|
922
1141
|
};
|
|
@@ -1140,7 +1359,7 @@ function useRipple(container, surface, isDisabled) {
|
|
|
1140
1359
|
}
|
|
1141
1360
|
//#endregion
|
|
1142
1361
|
//#region src/components/ripple/Ripple.vue?vue&type=script&setup=true&lang.ts
|
|
1143
|
-
var _hoisted_1$
|
|
1362
|
+
var _hoisted_1$129 = ["data-pressed"];
|
|
1144
1363
|
//#endregion
|
|
1145
1364
|
//#region src/components/ripple/Ripple.vue
|
|
1146
1365
|
var Ripple_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1163,7 +1382,7 @@ var Ripple_default = /* @__PURE__ */ defineComponent({
|
|
|
1163
1382
|
ref: surface,
|
|
1164
1383
|
class: "hn-ripple-surface",
|
|
1165
1384
|
"data-pressed": unref(pressed) ? "" : void 0
|
|
1166
|
-
}, null, 8, _hoisted_1$
|
|
1385
|
+
}, null, 8, _hoisted_1$129)], 512);
|
|
1167
1386
|
};
|
|
1168
1387
|
}
|
|
1169
1388
|
});
|
|
@@ -1226,7 +1445,7 @@ var Primitive = defineComponent({
|
|
|
1226
1445
|
});
|
|
1227
1446
|
//#endregion
|
|
1228
1447
|
//#region src/components/button/Button.vue?vue&type=script&setup=true&lang.ts
|
|
1229
|
-
var _hoisted_1$
|
|
1448
|
+
var _hoisted_1$128 = {
|
|
1230
1449
|
key: 0,
|
|
1231
1450
|
"aria-hidden": "true",
|
|
1232
1451
|
class: "absolute inset-0 flex items-center justify-center"
|
|
@@ -1337,7 +1556,7 @@ var Button_default = /* @__PURE__ */ defineComponent({
|
|
|
1337
1556
|
"leave-active-class": "hn-transition",
|
|
1338
1557
|
"leave-to-class": "opacity-0"
|
|
1339
1558
|
}, {
|
|
1340
|
-
default: withCtx(() => [props.loading && spinnerAt.value === "center" ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1559
|
+
default: withCtx(() => [props.loading && spinnerAt.value === "center" ? (openBlock(), createElementBlock("span", _hoisted_1$128, [createVNode(Spinner_default, { size: spinnerSize.value }, null, 8, ["size"])])) : createCommentVNode("", true)]),
|
|
1341
1560
|
_: 1
|
|
1342
1561
|
})
|
|
1343
1562
|
], 64))]),
|
|
@@ -1588,7 +1807,7 @@ function useCopy(text, onCopied, resetAfter = () => COPIED_RESET_MS) {
|
|
|
1588
1807
|
}
|
|
1589
1808
|
//#endregion
|
|
1590
1809
|
//#region src/components/copy-button/CopyButton.vue?vue&type=script&setup=true&lang.ts
|
|
1591
|
-
var _hoisted_1$
|
|
1810
|
+
var _hoisted_1$127 = { class: "relative inline-flex size-[1em]" };
|
|
1592
1811
|
//#endregion
|
|
1593
1812
|
//#region src/components/copy-button/CopyButton.vue
|
|
1594
1813
|
var CopyButton_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1620,7 +1839,7 @@ var CopyButton_default = /* @__PURE__ */ defineComponent({
|
|
|
1620
1839
|
class: props.class,
|
|
1621
1840
|
onClick: unref(copy)
|
|
1622
1841
|
}), {
|
|
1623
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_1$
|
|
1842
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_1$127, [createVNode(Transition, {
|
|
1624
1843
|
"enter-active-class": "hn-transition-base",
|
|
1625
1844
|
"enter-from-class": "scale-90 opacity-0",
|
|
1626
1845
|
"leave-active-class": "hn-transition",
|
|
@@ -1695,7 +1914,7 @@ var buttonGroup = tv({
|
|
|
1695
1914
|
});
|
|
1696
1915
|
//#endregion
|
|
1697
1916
|
//#region src/components/button-group/ButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
1698
|
-
var _hoisted_1$
|
|
1917
|
+
var _hoisted_1$126 = ["aria-label", "aria-orientation"];
|
|
1699
1918
|
//#endregion
|
|
1700
1919
|
//#region src/components/button-group/ButtonGroup.vue
|
|
1701
1920
|
var ButtonGroup_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1726,7 +1945,7 @@ var ButtonGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
1726
1945
|
block: props.block,
|
|
1727
1946
|
divider: props.divider
|
|
1728
1947
|
}), props.class))
|
|
1729
|
-
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
1948
|
+
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$126);
|
|
1730
1949
|
};
|
|
1731
1950
|
}
|
|
1732
1951
|
});
|
|
@@ -1953,7 +2172,7 @@ function floatButtonOffset(offset) {
|
|
|
1953
2172
|
}
|
|
1954
2173
|
//#endregion
|
|
1955
2174
|
//#region src/components/float-button/FloatButton.vue?vue&type=script&setup=true&lang.ts
|
|
1956
|
-
var _hoisted_1$
|
|
2175
|
+
var _hoisted_1$125 = {
|
|
1957
2176
|
key: 0,
|
|
1958
2177
|
class: "min-w-0 truncate"
|
|
1959
2178
|
};
|
|
@@ -2057,7 +2276,7 @@ var FloatButton_default = /* @__PURE__ */ defineComponent({
|
|
|
2057
2276
|
}), props.class),
|
|
2058
2277
|
style: [offset.value, props.style]
|
|
2059
2278
|
}), createSlots({
|
|
2060
|
-
default: withCtx(() => [props.extended ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2279
|
+
default: withCtx(() => [props.extended ? (openBlock(), createElementBlock("span", _hoisted_1$125, toDisplayString(props.label), 1)) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)]),
|
|
2061
2280
|
_: 2
|
|
2062
2281
|
}, [props.extended ? {
|
|
2063
2282
|
name: "icon",
|
|
@@ -2622,7 +2841,7 @@ var splitButton = tv({
|
|
|
2622
2841
|
var splitButtonAction = tv({ base: "min-w-0 flex-1 shrink [&>span]:min-w-0" });
|
|
2623
2842
|
//#endregion
|
|
2624
2843
|
//#region src/components/split-button/SplitButton.vue?vue&type=script&setup=true&lang.ts
|
|
2625
|
-
var _hoisted_1$
|
|
2844
|
+
var _hoisted_1$124 = { class: "min-w-0 truncate" };
|
|
2626
2845
|
//#endregion
|
|
2627
2846
|
//#region src/components/split-button/SplitButton.vue
|
|
2628
2847
|
var SplitButton_default = /* @__PURE__ */ defineComponent({
|
|
@@ -2747,7 +2966,7 @@ var SplitButton_default = /* @__PURE__ */ defineComponent({
|
|
|
2747
2966
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("click", $event)),
|
|
2748
2967
|
onKeydown
|
|
2749
2968
|
}), createSlots({
|
|
2750
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_1$
|
|
2969
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_1$124, [renderSlot(_ctx.$slots, "default")])]),
|
|
2751
2970
|
_: 2
|
|
2752
2971
|
}, [_ctx.$slots.icon ? {
|
|
2753
2972
|
name: "icon",
|
|
@@ -2850,7 +3069,8 @@ var tag = tv({
|
|
|
2850
3069
|
},
|
|
2851
3070
|
size: {
|
|
2852
3071
|
sm: "h-5 px-1.5 text-xs [&_svg]:size-3",
|
|
2853
|
-
md: "h-6 px-2 text-sm [&_svg]:size-3.5"
|
|
3072
|
+
md: "h-6 px-2 text-sm [&_svg]:size-3.5",
|
|
3073
|
+
lg: "h-7 px-2.5 text-sm [&_svg]:size-4"
|
|
2854
3074
|
},
|
|
2855
3075
|
pill: { true: "rounded-full" }
|
|
2856
3076
|
},
|
|
@@ -3060,8 +3280,8 @@ var chipRemove = tv({
|
|
|
3060
3280
|
});
|
|
3061
3281
|
//#endregion
|
|
3062
3282
|
//#region src/components/chip/IconSlot.vue?vue&type=script&setup=true&lang.ts
|
|
3063
|
-
var _hoisted_1$
|
|
3064
|
-
var _hoisted_2$
|
|
3283
|
+
var _hoisted_1$123 = { class: "hn-collapse-body" };
|
|
3284
|
+
var _hoisted_2$71 = {
|
|
3065
3285
|
key: 0,
|
|
3066
3286
|
"aria-hidden": "true",
|
|
3067
3287
|
class: "absolute inset-0 inline-flex items-center justify-center"
|
|
@@ -3082,7 +3302,7 @@ var IconSlot_default = /* @__PURE__ */ defineComponent({
|
|
|
3082
3302
|
return openBlock(), createElementBlock("span", {
|
|
3083
3303
|
"data-hn-icon": "",
|
|
3084
3304
|
class: normalizeClass(["hn-collapse-x", props.icon || props.checked ? "hn-collapse-open" : "hn-collapse-closed"])
|
|
3085
|
-
}, [createElementVNode("span", _hoisted_1$
|
|
3305
|
+
}, [createElementVNode("span", _hoisted_1$123, [createElementVNode("span", { class: normalizeClass(unref(chipIcon)({ size: props.size })) }, [props.icon ? (openBlock(), createElementBlock("span", {
|
|
3086
3306
|
key: 0,
|
|
3087
3307
|
class: normalizeClass(["hn-transition inline-flex items-center justify-center", props.checked ? "scale-90 opacity-0" : "scale-100 opacity-100"])
|
|
3088
3308
|
}, [renderSlot(_ctx.$slots, "default")], 2)) : createCommentVNode("", true), createVNode(Transition, {
|
|
@@ -3091,7 +3311,7 @@ var IconSlot_default = /* @__PURE__ */ defineComponent({
|
|
|
3091
3311
|
"leave-active-class": "hn-transition",
|
|
3092
3312
|
"leave-to-class": "scale-90 opacity-0"
|
|
3093
3313
|
}, {
|
|
3094
|
-
default: withCtx(() => [props.checked ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
3314
|
+
default: withCtx(() => [props.checked ? (openBlock(), createElementBlock("span", _hoisted_2$71, [createVNode(unref(Check))])) : createCommentVNode("", true)]),
|
|
3095
3315
|
_: 1
|
|
3096
3316
|
})], 2)])], 2);
|
|
3097
3317
|
};
|
|
@@ -3314,12 +3534,12 @@ var VisuallyHidden_default = /* @__PURE__ */ defineComponent({
|
|
|
3314
3534
|
});
|
|
3315
3535
|
//#endregion
|
|
3316
3536
|
//#region src/components/lightbox/LightboxStrip.vue?vue&type=script&setup=true&lang.ts
|
|
3317
|
-
var _hoisted_1$
|
|
3537
|
+
var _hoisted_1$122 = [
|
|
3318
3538
|
"src",
|
|
3319
3539
|
"alt",
|
|
3320
3540
|
"onLoad"
|
|
3321
3541
|
];
|
|
3322
|
-
var _hoisted_2$
|
|
3542
|
+
var _hoisted_2$70 = ["src"];
|
|
3323
3543
|
var _hoisted_3$37 = [
|
|
3324
3544
|
"src",
|
|
3325
3545
|
"alt",
|
|
@@ -3381,7 +3601,7 @@ var LightboxStrip_default = /* @__PURE__ */ defineComponent({
|
|
|
3381
3601
|
draggable: "false",
|
|
3382
3602
|
class: "block size-full object-contain",
|
|
3383
3603
|
onLoad: ($event) => emit("learn", slide.item.id, $event.target)
|
|
3384
|
-
}, null, 40, _hoisted_1$
|
|
3604
|
+
}, null, 40, _hoisted_1$122), createVNode(Transition, {
|
|
3385
3605
|
"enter-active-class": "hn-transition-base",
|
|
3386
3606
|
"enter-from-class": "opacity-0",
|
|
3387
3607
|
"leave-active-class": "hn-transition",
|
|
@@ -3394,7 +3614,7 @@ var LightboxStrip_default = /* @__PURE__ */ defineComponent({
|
|
|
3394
3614
|
"aria-hidden": "true",
|
|
3395
3615
|
draggable: "false",
|
|
3396
3616
|
class: "absolute inset-0 size-full object-contain"
|
|
3397
|
-
}, null, 8, _hoisted_2$
|
|
3617
|
+
}, null, 8, _hoisted_2$70)) : createCommentVNode("", true)]),
|
|
3398
3618
|
_: 1
|
|
3399
3619
|
})]),
|
|
3400
3620
|
_: 2
|
|
@@ -6118,8 +6338,8 @@ function useScrollFocus(host, viewport, options) {
|
|
|
6118
6338
|
}
|
|
6119
6339
|
//#endregion
|
|
6120
6340
|
//#region src/components/scroll-area/ScrollArea.vue?vue&type=script&setup=true&lang.ts
|
|
6121
|
-
var _hoisted_1$
|
|
6122
|
-
var _hoisted_2$
|
|
6341
|
+
var _hoisted_1$121 = ["dir"];
|
|
6342
|
+
var _hoisted_2$69 = ["data-visible"];
|
|
6123
6343
|
var _hoisted_3$36 = ["data-visible"];
|
|
6124
6344
|
var _hoisted_4$30 = ["data-visible"];
|
|
6125
6345
|
var _hoisted_5$23 = ["data-visible"];
|
|
@@ -6210,7 +6430,7 @@ var ScrollArea_default = /* @__PURE__ */ defineComponent({
|
|
|
6210
6430
|
"data-side": "x-start",
|
|
6211
6431
|
"data-visible": unref(showXStart) ? "" : void 0,
|
|
6212
6432
|
"aria-hidden": "true"
|
|
6213
|
-
}, null, 8, _hoisted_2$
|
|
6433
|
+
}, null, 8, _hoisted_2$69)) : createCommentVNode("", true),
|
|
6214
6434
|
props.direction !== "vertical" ? (openBlock(), createElementBlock("div", {
|
|
6215
6435
|
key: 1,
|
|
6216
6436
|
class: "hn-scroll-shadow",
|
|
@@ -6232,7 +6452,7 @@ var ScrollArea_default = /* @__PURE__ */ defineComponent({
|
|
|
6232
6452
|
"data-visible": unref(showYEnd) ? "" : void 0,
|
|
6233
6453
|
"aria-hidden": "true"
|
|
6234
6454
|
}, null, 8, _hoisted_5$23)) : createCommentVNode("", true)
|
|
6235
|
-
], 64)) : createCommentVNode("", true)], 10, _hoisted_1$
|
|
6455
|
+
], 64)) : createCommentVNode("", true)], 10, _hoisted_1$121);
|
|
6236
6456
|
};
|
|
6237
6457
|
}
|
|
6238
6458
|
});
|
|
@@ -6290,11 +6510,11 @@ var Highlight_default = /* @__PURE__ */ defineComponent({
|
|
|
6290
6510
|
});
|
|
6291
6511
|
//#endregion
|
|
6292
6512
|
//#region src/components/lightbox/LightboxThumbs.vue?vue&type=script&setup=true&lang.ts
|
|
6293
|
-
var _hoisted_1$
|
|
6513
|
+
var _hoisted_1$120 = {
|
|
6294
6514
|
"data-hn-thumbs": "",
|
|
6295
6515
|
class: "relative isolate flex w-max gap-2 px-4 py-3"
|
|
6296
6516
|
};
|
|
6297
|
-
var _hoisted_2$
|
|
6517
|
+
var _hoisted_2$68 = [
|
|
6298
6518
|
"aria-label",
|
|
6299
6519
|
"aria-current",
|
|
6300
6520
|
"onClick"
|
|
@@ -6335,7 +6555,7 @@ var LightboxThumbs_default = /* @__PURE__ */ defineComponent({
|
|
|
6335
6555
|
scrollbar: false,
|
|
6336
6556
|
class: "max-w-full"
|
|
6337
6557
|
}, {
|
|
6338
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
6558
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$120, [(openBlock(true), createElementBlock(Fragment, null, renderList(props.items, (item, at) => {
|
|
6339
6559
|
return openBlock(), createElementBlock("button", {
|
|
6340
6560
|
key: item.id,
|
|
6341
6561
|
ref_for: true,
|
|
@@ -6359,7 +6579,7 @@ var LightboxThumbs_default = /* @__PURE__ */ defineComponent({
|
|
|
6359
6579
|
axis: "x",
|
|
6360
6580
|
class: "ring-accent absolute inset-0 rounded-md ring-2 ring-inset"
|
|
6361
6581
|
}, null, 8, ["id"])) : createCommentVNode("", true)
|
|
6362
|
-
], 10, _hoisted_2$
|
|
6582
|
+
], 10, _hoisted_2$68);
|
|
6363
6583
|
}), 128))])]),
|
|
6364
6584
|
_: 1
|
|
6365
6585
|
});
|
|
@@ -6368,8 +6588,8 @@ var LightboxThumbs_default = /* @__PURE__ */ defineComponent({
|
|
|
6368
6588
|
});
|
|
6369
6589
|
//#endregion
|
|
6370
6590
|
//#region src/components/lightbox/LightboxToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
6371
|
-
var _hoisted_1$
|
|
6372
|
-
var _hoisted_2$
|
|
6591
|
+
var _hoisted_1$119 = { class: "flex flex-col items-center gap-1 pb-[max(--spacing(3),env(safe-area-inset-bottom))]" };
|
|
6592
|
+
var _hoisted_2$67 = { class: "flex items-center gap-1" };
|
|
6373
6593
|
//#endregion
|
|
6374
6594
|
//#region src/components/lightbox/LightboxToolbar.vue
|
|
6375
6595
|
var LightboxToolbar_default = /* @__PURE__ */ defineComponent({
|
|
@@ -6396,12 +6616,12 @@ var LightboxToolbar_default = /* @__PURE__ */ defineComponent({
|
|
|
6396
6616
|
const emit = __emit;
|
|
6397
6617
|
const t = useUiLocale();
|
|
6398
6618
|
return (_ctx, _cache) => {
|
|
6399
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6619
|
+
return openBlock(), createElementBlock("div", _hoisted_1$119, [props.items.length > 1 ? (openBlock(), createBlock(LightboxThumbs_default, {
|
|
6400
6620
|
key: 0,
|
|
6401
6621
|
items: props.items,
|
|
6402
6622
|
index: props.index,
|
|
6403
6623
|
onSelect: _cache[0] || (_cache[0] = ($event) => emit("select", $event))
|
|
6404
|
-
}, null, 8, ["items", "index"])) : createCommentVNode("", true), createElementVNode("div", _hoisted_2$
|
|
6624
|
+
}, null, 8, ["items", "index"])) : createCommentVNode("", true), createElementVNode("div", _hoisted_2$67, [
|
|
6405
6625
|
createVNode(IconButton_default, {
|
|
6406
6626
|
label: unref(t).lightbox.zoomOut,
|
|
6407
6627
|
disabled: !props.zoomed,
|
|
@@ -8010,8 +8230,8 @@ async function saveImage(url) {
|
|
|
8010
8230
|
}
|
|
8011
8231
|
//#endregion
|
|
8012
8232
|
//#region src/components/lightbox/Lightbox.vue?vue&type=script&setup=true&lang.ts
|
|
8013
|
-
var _hoisted_1$
|
|
8014
|
-
var _hoisted_2$
|
|
8233
|
+
var _hoisted_1$118 = ["data-hn-phase"];
|
|
8234
|
+
var _hoisted_2$66 = {
|
|
8015
8235
|
"aria-hidden": "true",
|
|
8016
8236
|
class: "pointer-events-none absolute inset-0 isolate"
|
|
8017
8237
|
};
|
|
@@ -8179,7 +8399,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8179
8399
|
onWheel: _cache[10] || (_cache[10] = (...args) => unref(gesture).onWheel && unref(gesture).onWheel(...args)),
|
|
8180
8400
|
onKeydown
|
|
8181
8401
|
}, [
|
|
8182
|
-
createElementVNode("div", _hoisted_2$
|
|
8402
|
+
createElementVNode("div", _hoisted_2$66, [createVNode(unref(Motion), {
|
|
8183
8403
|
class: "hn-scrim",
|
|
8184
8404
|
style: normalizeStyle({ opacity: unref(motion).presence })
|
|
8185
8405
|
}, null, 8, ["style"])]),
|
|
@@ -8249,7 +8469,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8249
8469
|
"hint",
|
|
8250
8470
|
"presence"
|
|
8251
8471
|
])
|
|
8252
|
-
], 42, _hoisted_1$
|
|
8472
|
+
], 42, _hoisted_1$118)]),
|
|
8253
8473
|
_: 1
|
|
8254
8474
|
})]),
|
|
8255
8475
|
_: 1
|
|
@@ -8421,7 +8641,7 @@ function useImageGroup() {
|
|
|
8421
8641
|
}
|
|
8422
8642
|
//#endregion
|
|
8423
8643
|
//#region src/components/image/Image.vue?vue&type=script&setup=true&lang.ts
|
|
8424
|
-
var _hoisted_1$
|
|
8644
|
+
var _hoisted_1$117 = [
|
|
8425
8645
|
"src",
|
|
8426
8646
|
"alt",
|
|
8427
8647
|
"decoding",
|
|
@@ -8531,7 +8751,7 @@ var Image_default = /* @__PURE__ */ defineComponent({
|
|
|
8531
8751
|
fit: props.fit,
|
|
8532
8752
|
lazy: props.lazy
|
|
8533
8753
|
}), props.lazy && !unref(revealed) && "opacity-0", props.imageClass)
|
|
8534
|
-
}), null, 16, _hoisted_1$
|
|
8754
|
+
}), null, 16, _hoisted_1$117)) : unref(failed) ? renderSlot(_ctx.$slots, "error", {}, void 0, void 0, 1) : renderSlot(_ctx.$slots, "empty", {}, void 0, void 0, 2),
|
|
8535
8755
|
unref(showSkeleton) ? (openBlock(), createElementBlock("span", {
|
|
8536
8756
|
key: 3,
|
|
8537
8757
|
ref_key: "skeletonEl",
|
|
@@ -8805,7 +9025,7 @@ var indicator = tv({
|
|
|
8805
9025
|
});
|
|
8806
9026
|
//#endregion
|
|
8807
9027
|
//#region src/components/indicator/Indicator.vue?vue&type=script&setup=true&lang.ts
|
|
8808
|
-
var _hoisted_1$
|
|
9028
|
+
var _hoisted_1$116 = {
|
|
8809
9029
|
key: 0,
|
|
8810
9030
|
"aria-hidden": "true",
|
|
8811
9031
|
class: "hn-ping absolute inset-0 rounded-full bg-inherit"
|
|
@@ -8836,7 +9056,7 @@ var Indicator_default = /* @__PURE__ */ defineComponent({
|
|
|
8836
9056
|
size: props.size
|
|
8837
9057
|
}), props.class))
|
|
8838
9058
|
}, {
|
|
8839
|
-
default: withCtx(() => [props.pulse ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
9059
|
+
default: withCtx(() => [props.pulse ? (openBlock(), createElementBlock("span", _hoisted_1$116)) : createCommentVNode("", true), props.label ? (openBlock(), createBlock(VisuallyHidden_default, { key: 1 }, {
|
|
8840
9060
|
default: withCtx(() => [createTextVNode(toDisplayString(props.label), 1)]),
|
|
8841
9061
|
_: 1
|
|
8842
9062
|
})) : createCommentVNode("", true)]),
|
|
@@ -8888,8 +9108,8 @@ var calloutIcons = {
|
|
|
8888
9108
|
};
|
|
8889
9109
|
//#endregion
|
|
8890
9110
|
//#region src/components/callout/Callout.vue?vue&type=script&setup=true&lang.ts
|
|
8891
|
-
var _hoisted_1$
|
|
8892
|
-
var _hoisted_2$
|
|
9111
|
+
var _hoisted_1$115 = { class: "flex min-w-0 flex-1 flex-col gap-1" };
|
|
9112
|
+
var _hoisted_2$65 = {
|
|
8893
9113
|
key: 0,
|
|
8894
9114
|
class: "text-fg font-medium"
|
|
8895
9115
|
};
|
|
@@ -8917,7 +9137,7 @@ var Callout_default = /* @__PURE__ */ defineComponent({
|
|
|
8917
9137
|
key: 0,
|
|
8918
9138
|
class: normalizeClass(unref(calloutIcon)({ tone: props.tone })),
|
|
8919
9139
|
"aria-hidden": "true"
|
|
8920
|
-
}, null, 8, ["class"])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_1$
|
|
9140
|
+
}, null, 8, ["class"])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_1$115, [props.title ? (openBlock(), createElementBlock("p", _hoisted_2$65, toDisplayString(props.title), 1)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")])], 2);
|
|
8921
9141
|
};
|
|
8922
9142
|
}
|
|
8923
9143
|
});
|
|
@@ -8973,12 +9193,12 @@ function useCollapseGap() {
|
|
|
8973
9193
|
}
|
|
8974
9194
|
//#endregion
|
|
8975
9195
|
//#region src/components/alert/Alert.vue?vue&type=script&setup=true&lang.ts
|
|
8976
|
-
var _hoisted_1$
|
|
9196
|
+
var _hoisted_1$114 = {
|
|
8977
9197
|
key: 0,
|
|
8978
9198
|
"data-hn-alert": "",
|
|
8979
9199
|
class: "hn-collapse"
|
|
8980
9200
|
};
|
|
8981
|
-
var _hoisted_2$
|
|
9201
|
+
var _hoisted_2$64 = { class: "hn-collapse-body" };
|
|
8982
9202
|
var _hoisted_3$34 = ["role"];
|
|
8983
9203
|
var _hoisted_4$29 = { class: "flex min-w-0 flex-1 flex-col gap-1" };
|
|
8984
9204
|
var _hoisted_5$22 = {
|
|
@@ -9029,7 +9249,7 @@ var Alert_default = /* @__PURE__ */ defineComponent({
|
|
|
9029
9249
|
"leave-from-class": "hn-collapse-open",
|
|
9030
9250
|
"leave-to-class": "hn-collapse-closed"
|
|
9031
9251
|
}, toHandlers(unref(hooks))), {
|
|
9032
|
-
default: withCtx(() => [open.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9252
|
+
default: withCtx(() => [open.value ? (openBlock(), createElementBlock("div", _hoisted_1$114, [createElementVNode("div", _hoisted_2$64, [createElementVNode("div", {
|
|
9033
9253
|
role: role.value,
|
|
9034
9254
|
class: normalizeClass(unref(cn)(unref(callout)({ tone: props.tone }), props.class))
|
|
9035
9255
|
}, [
|
|
@@ -9741,7 +9961,7 @@ var PaginationPage_default = /* @__PURE__ */ defineComponent({
|
|
|
9741
9961
|
});
|
|
9742
9962
|
//#endregion
|
|
9743
9963
|
//#region src/components/pagination/PaginationEllipsis.vue?vue&type=script&setup=true&lang.ts
|
|
9744
|
-
var _hoisted_1$
|
|
9964
|
+
var _hoisted_1$113 = {
|
|
9745
9965
|
class: "grid",
|
|
9746
9966
|
"aria-hidden": "true"
|
|
9747
9967
|
};
|
|
@@ -9788,7 +10008,7 @@ var PaginationEllipsis_default = /* @__PURE__ */ defineComponent({
|
|
|
9788
10008
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {
|
|
9789
10009
|
side: props.range.side,
|
|
9790
10010
|
expanded: expanded.value
|
|
9791
|
-
}, () => [createElementVNode("span", _hoisted_1$
|
|
10011
|
+
}, () => [createElementVNode("span", _hoisted_1$113, [createVNode(unref(MoreHorizontal), { class: normalizeClass(["hn-transition-base [grid-area:1/1]", expanded.value ? "scale-90 opacity-0" : "scale-100 opacity-100"]) }, null, 8, ["class"]), (openBlock(), createBlock(resolveDynamicComponent(props.range.side === "prev" ? unref(ChevronLeft) : unref(ChevronRight)), { class: normalizeClass([[unref(paginationArrow)({ dir: unref(direction) }), expanded.value ? "scale-100 opacity-100" : "scale-90 opacity-0"], "hn-transition-base [grid-area:1/1]"]) }, null, 8, ["class"]))])])]),
|
|
9792
10012
|
_: 3
|
|
9793
10013
|
}, 8, [
|
|
9794
10014
|
"size",
|
|
@@ -10333,8 +10553,8 @@ function usePaginationEllipsis(host, items) {
|
|
|
10333
10553
|
}
|
|
10334
10554
|
//#endregion
|
|
10335
10555
|
//#region src/components/pagination/PaginationPages.vue?vue&type=script&setup=true&lang.ts
|
|
10336
|
-
var _hoisted_1$
|
|
10337
|
-
var _hoisted_2$
|
|
10556
|
+
var _hoisted_1$112 = { key: 0 };
|
|
10557
|
+
var _hoisted_2$63 = { key: 1 };
|
|
10338
10558
|
//#endregion
|
|
10339
10559
|
//#region src/components/pagination/PaginationPages.vue
|
|
10340
10560
|
var PaginationPages_default = /* @__PURE__ */ defineComponent({
|
|
@@ -10350,7 +10570,7 @@ var PaginationPages_default = /* @__PURE__ */ defineComponent({
|
|
|
10350
10570
|
const ellipsis = usePaginationEllipsis(toRef(props, "host"), () => props.items);
|
|
10351
10571
|
return (_ctx, _cache) => {
|
|
10352
10572
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
10353
|
-
unref(showFirstLast) ? (openBlock(), createElementBlock("li", _hoisted_1$
|
|
10573
|
+
unref(showFirstLast) ? (openBlock(), createElementBlock("li", _hoisted_1$112, [createVNode(PaginationControl_default, {
|
|
10354
10574
|
action: "first",
|
|
10355
10575
|
size: unref(size),
|
|
10356
10576
|
dir: unref(direction)
|
|
@@ -10383,7 +10603,7 @@ var PaginationPages_default = /* @__PURE__ */ defineComponent({
|
|
|
10383
10603
|
size: unref(size),
|
|
10384
10604
|
dir: unref(direction)
|
|
10385
10605
|
}, null, 8, ["size", "dir"])]),
|
|
10386
|
-
unref(showFirstLast) ? (openBlock(), createElementBlock("li", _hoisted_2$
|
|
10606
|
+
unref(showFirstLast) ? (openBlock(), createElementBlock("li", _hoisted_2$63, [createVNode(PaginationControl_default, {
|
|
10387
10607
|
action: "last",
|
|
10388
10608
|
size: unref(size),
|
|
10389
10609
|
dir: unref(direction)
|
|
@@ -11045,8 +11265,8 @@ var virtualListItem = tv({
|
|
|
11045
11265
|
var virtualListStatus = tv({ base: "text-muted flex shrink-0 items-center justify-center gap-2 p-4 text-sm" });
|
|
11046
11266
|
//#endregion
|
|
11047
11267
|
//#region src/components/virtual-list/VirtualChoices.vue?vue&type=script&setup=true&lang.ts
|
|
11048
|
-
var _hoisted_1$
|
|
11049
|
-
var _hoisted_2$
|
|
11268
|
+
var _hoisted_1$111 = ["data-index"];
|
|
11269
|
+
var _hoisted_2$62 = ["id"];
|
|
11050
11270
|
//#endregion
|
|
11051
11271
|
//#region src/components/virtual-list/VirtualChoices.vue
|
|
11052
11272
|
var VirtualChoices_default = /* @__PURE__ */ defineComponent({
|
|
@@ -11096,7 +11316,7 @@ var VirtualChoices_default = /* @__PURE__ */ defineComponent({
|
|
|
11096
11316
|
key: 1,
|
|
11097
11317
|
id: unref(labelId)(entry.index),
|
|
11098
11318
|
class: normalizeClass(unref(selectLabel)())
|
|
11099
|
-
}, toDisplayString(unref(rows)[entry.index].label), 11, _hoisted_2$
|
|
11319
|
+
}, toDisplayString(unref(rows)[entry.index].label), 11, _hoisted_2$62))], 14, _hoisted_1$111);
|
|
11100
11320
|
}), 128))], 16), !unref(rows).length ? (openBlock(), createElementBlock("div", {
|
|
11101
11321
|
key: 0,
|
|
11102
11322
|
class: normalizeClass(unref(selectEmpty)())
|
|
@@ -11140,8 +11360,8 @@ var rekaNavigationViewportStyle = {
|
|
|
11140
11360
|
};
|
|
11141
11361
|
//#endregion
|
|
11142
11362
|
//#region src/components/select/SelectList.vue?vue&type=script&setup=true&lang.ts
|
|
11143
|
-
var _hoisted_1$
|
|
11144
|
-
var _hoisted_2$
|
|
11363
|
+
var _hoisted_1$110 = { class: "min-w-0 flex-1" };
|
|
11364
|
+
var _hoisted_2$61 = { class: "block truncate" };
|
|
11145
11365
|
var _hoisted_3$33 = {
|
|
11146
11366
|
key: 0,
|
|
11147
11367
|
class: "text-muted block truncate text-xs"
|
|
@@ -11207,7 +11427,7 @@ var SelectList_default = /* @__PURE__ */ defineComponent({
|
|
|
11207
11427
|
class: unref(selectItem)()
|
|
11208
11428
|
}), {
|
|
11209
11429
|
default: withCtx(() => [createVNode(unref(SelectItemText), { "as-child": "" }, {
|
|
11210
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_1$
|
|
11430
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_1$110, [renderSlot(_ctx.$slots, "option", { option }, () => [createElementVNode("span", _hoisted_2$61, toDisplayString(option.label), 1), option.description ? (openBlock(), createElementBlock("span", _hoisted_3$33, toDisplayString(option.description), 1)) : createCommentVNode("", true)])])]),
|
|
11211
11431
|
_: 2
|
|
11212
11432
|
}, 1024), createElementVNode("span", _hoisted_4$28, [createVNode(unref(SelectItemIndicator), null, {
|
|
11213
11433
|
default: withCtx(() => [createVNode(unref(Check))]),
|
|
@@ -11326,7 +11546,7 @@ function useClearTransition(visible) {
|
|
|
11326
11546
|
}
|
|
11327
11547
|
//#endregion
|
|
11328
11548
|
//#region src/components/select/Select.vue?vue&type=script&setup=true&lang.ts
|
|
11329
|
-
var _hoisted_1$
|
|
11549
|
+
var _hoisted_1$109 = [
|
|
11330
11550
|
"dir",
|
|
11331
11551
|
"data-invalid",
|
|
11332
11552
|
"data-disabled"
|
|
@@ -11445,7 +11665,7 @@ var Select_default = /* @__PURE__ */ defineComponent({
|
|
|
11445
11665
|
_: 1
|
|
11446
11666
|
}, 8, ["label"])], 2)) : createCommentVNode("", true)]),
|
|
11447
11667
|
_: 1
|
|
11448
|
-
}, 16)], 10, _hoisted_1$
|
|
11668
|
+
}, 16)], 10, _hoisted_1$109), createVNode(SelectList_default, {
|
|
11449
11669
|
options: props.options,
|
|
11450
11670
|
keyboard: keyboard.value,
|
|
11451
11671
|
virtualize: props.virtualize
|
|
@@ -11539,12 +11759,12 @@ function focusFieldFrom(root, target) {
|
|
|
11539
11759
|
}
|
|
11540
11760
|
//#endregion
|
|
11541
11761
|
//#region src/components/input/InputBase.vue?vue&type=script&setup=true&lang.ts
|
|
11542
|
-
var _hoisted_1$
|
|
11762
|
+
var _hoisted_1$108 = [
|
|
11543
11763
|
"data-invalid",
|
|
11544
11764
|
"data-disabled",
|
|
11545
11765
|
"aria-busy"
|
|
11546
11766
|
];
|
|
11547
|
-
var _hoisted_2$
|
|
11767
|
+
var _hoisted_2$60 = [
|
|
11548
11768
|
"id",
|
|
11549
11769
|
"disabled",
|
|
11550
11770
|
"aria-invalid",
|
|
@@ -11631,7 +11851,7 @@ var InputBase_default = /* @__PURE__ */ defineComponent({
|
|
|
11631
11851
|
leading: !!unref(slots).leading,
|
|
11632
11852
|
trailing: clearing.value || trailingSpinner.value || !!unref(slots).trailing
|
|
11633
11853
|
})
|
|
11634
|
-
}), null, 16, _hoisted_2$
|
|
11854
|
+
}), null, 16, _hoisted_2$60), [[vModelDynamic, model.value]]),
|
|
11635
11855
|
createVNode(Transition, {
|
|
11636
11856
|
"enter-active-class": "hn-transition-base",
|
|
11637
11857
|
"enter-from-class": "scale-90 opacity-0",
|
|
@@ -11667,7 +11887,7 @@ var InputBase_default = /* @__PURE__ */ defineComponent({
|
|
|
11667
11887
|
key: 1,
|
|
11668
11888
|
class: normalizeClass(unref(inputAdornment)())
|
|
11669
11889
|
}, [renderSlot(_ctx.$slots, "trailing")], 2)) : createCommentVNode("", true)
|
|
11670
|
-
], 10, _hoisted_1$
|
|
11890
|
+
], 10, _hoisted_1$108);
|
|
11671
11891
|
};
|
|
11672
11892
|
}
|
|
11673
11893
|
});
|
|
@@ -11868,8 +12088,8 @@ function usePagination(props, model, sizeModel, change) {
|
|
|
11868
12088
|
}
|
|
11869
12089
|
//#endregion
|
|
11870
12090
|
//#region src/components/pagination/Pagination.vue?vue&type=script&setup=true&lang.ts
|
|
11871
|
-
var _hoisted_1$
|
|
11872
|
-
var _hoisted_2$
|
|
12091
|
+
var _hoisted_1$107 = ["dir", "aria-busy"];
|
|
12092
|
+
var _hoisted_2$59 = {
|
|
11873
12093
|
key: 0,
|
|
11874
12094
|
class: "relative min-h-0 flex-auto"
|
|
11875
12095
|
};
|
|
@@ -11947,7 +12167,7 @@ var Pagination_default = /* @__PURE__ */ defineComponent({
|
|
|
11947
12167
|
dir: unref(rootDirection),
|
|
11948
12168
|
"aria-busy": props.pending || void 0,
|
|
11949
12169
|
class: unref(cn)("max-w-full", _ctx.$slots.list && "flex min-h-0 flex-col gap-3", props.class)
|
|
11950
|
-
}), [_ctx.$slots.list ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12170
|
+
}), [_ctx.$slots.list ? (openBlock(), createElementBlock("div", _hoisted_2$59, [createElementVNode("div", { inert: props.pending || void 0 }, [renderSlot(_ctx.$slots, "list", normalizeProps(guardReactiveProps(unref(state))))], 8, _hoisted_3$32), createVNode(LoadingOverlay_default, { visible: props.pending }, null, 8, ["visible"])])) : createCommentVNode("", true), !props.hideSinglePage || unref(state).pageCount > 1 ? (openBlock(), createBlock(unref(PaginationRoot), {
|
|
11951
12171
|
key: 1,
|
|
11952
12172
|
page: unref(page),
|
|
11953
12173
|
total: unref(total),
|
|
@@ -11985,13 +12205,13 @@ var Pagination_default = /* @__PURE__ */ defineComponent({
|
|
|
11985
12205
|
"show-edges",
|
|
11986
12206
|
"disabled",
|
|
11987
12207
|
"onUpdate:page"
|
|
11988
|
-
])) : createCommentVNode("", true)], 16, _hoisted_1$
|
|
12208
|
+
])) : createCommentVNode("", true)], 16, _hoisted_1$107);
|
|
11989
12209
|
};
|
|
11990
12210
|
}
|
|
11991
12211
|
});
|
|
11992
12212
|
//#endregion
|
|
11993
12213
|
//#region src/components/prev-next/PrevNext.vue?vue&type=script&setup=true&lang.ts
|
|
11994
|
-
var _hoisted_1$
|
|
12214
|
+
var _hoisted_1$106 = ["aria-label"];
|
|
11995
12215
|
//#endregion
|
|
11996
12216
|
//#region src/components/prev-next/PrevNext.vue
|
|
11997
12217
|
var PrevNext_default = /* @__PURE__ */ defineComponent({
|
|
@@ -12008,7 +12228,7 @@ var PrevNext_default = /* @__PURE__ */ defineComponent({
|
|
|
12008
12228
|
return openBlock(), createElementBlock("nav", {
|
|
12009
12229
|
"aria-label": props.label ?? unref(t).pagination.navLabel,
|
|
12010
12230
|
class: normalizeClass(unref(cn)("grid grid-cols-1 gap-4 sm:grid-cols-2", props.class))
|
|
12011
|
-
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
12231
|
+
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$106);
|
|
12012
12232
|
};
|
|
12013
12233
|
}
|
|
12014
12234
|
});
|
|
@@ -12032,7 +12252,7 @@ var prevNextEyebrow = tv({
|
|
|
12032
12252
|
});
|
|
12033
12253
|
//#endregion
|
|
12034
12254
|
//#region src/components/prev-next/PrevNextLink.vue?vue&type=script&setup=true&lang.ts
|
|
12035
|
-
var _hoisted_1$
|
|
12255
|
+
var _hoisted_1$105 = { class: "text-fg max-w-full font-medium" };
|
|
12036
12256
|
//#endregion
|
|
12037
12257
|
//#region src/components/prev-next/PrevNextLink.vue
|
|
12038
12258
|
var PrevNextLink_default = /* @__PURE__ */ defineComponent({
|
|
@@ -12068,7 +12288,7 @@ var PrevNextLink_default = /* @__PURE__ */ defineComponent({
|
|
|
12068
12288
|
class: "size-4",
|
|
12069
12289
|
"aria-hidden": "true"
|
|
12070
12290
|
})), createTextVNode(" " + toDisplayString(props.label ?? (props.direction === "prev" ? unref(t).pagination.prev : unref(t).pagination.next)), 1)], 2),
|
|
12071
|
-
createElementVNode("span", _hoisted_1$
|
|
12291
|
+
createElementVNode("span", _hoisted_1$105, [renderSlot(_ctx.$slots, "default")])
|
|
12072
12292
|
]),
|
|
12073
12293
|
_: 3
|
|
12074
12294
|
}, 16, [
|
|
@@ -12144,8 +12364,8 @@ var tableCell = tv({
|
|
|
12144
12364
|
});
|
|
12145
12365
|
//#endregion
|
|
12146
12366
|
//#region src/components/table/Table.vue?vue&type=script&setup=true&lang.ts
|
|
12147
|
-
var _hoisted_1$
|
|
12148
|
-
var _hoisted_2$
|
|
12367
|
+
var _hoisted_1$104 = { class: "hn-table" };
|
|
12368
|
+
var _hoisted_2$58 = { key: 0 };
|
|
12149
12369
|
//#endregion
|
|
12150
12370
|
//#region src/components/table/Table.vue
|
|
12151
12371
|
var Table_default = /* @__PURE__ */ defineComponent({
|
|
@@ -12182,7 +12402,7 @@ var Table_default = /* @__PURE__ */ defineComponent({
|
|
|
12182
12402
|
stickyHeader: props.stickyHeader
|
|
12183
12403
|
}), props.class))
|
|
12184
12404
|
}, {
|
|
12185
|
-
default: withCtx(() => [createElementVNode("table", _hoisted_1$
|
|
12405
|
+
default: withCtx(() => [createElementVNode("table", _hoisted_1$104, [props.caption ? (openBlock(), createElementBlock("caption", _hoisted_2$58, [createElementVNode("span", null, toDisplayString(props.caption), 1)])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")])]),
|
|
12186
12406
|
_: 3
|
|
12187
12407
|
}, 8, ["direction", "class"]);
|
|
12188
12408
|
};
|
|
@@ -12229,7 +12449,7 @@ var TableRow_default = /* @__PURE__ */ defineComponent({
|
|
|
12229
12449
|
});
|
|
12230
12450
|
//#endregion
|
|
12231
12451
|
//#region src/components/table/TableHead.vue?vue&type=script&setup=true&lang.ts
|
|
12232
|
-
var _hoisted_1$
|
|
12452
|
+
var _hoisted_1$103 = ["scope"];
|
|
12233
12453
|
//#endregion
|
|
12234
12454
|
//#region src/components/table/TableHead.vue
|
|
12235
12455
|
var TableHead_default = /* @__PURE__ */ defineComponent({
|
|
@@ -12254,7 +12474,7 @@ var TableHead_default = /* @__PURE__ */ defineComponent({
|
|
|
12254
12474
|
sticky: props.sticky,
|
|
12255
12475
|
head: true
|
|
12256
12476
|
}), props.class))
|
|
12257
|
-
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
12477
|
+
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$103);
|
|
12258
12478
|
};
|
|
12259
12479
|
}
|
|
12260
12480
|
});
|
|
@@ -13530,8 +13750,8 @@ var textareaField = tv({ base: [
|
|
|
13530
13750
|
] });
|
|
13531
13751
|
//#endregion
|
|
13532
13752
|
//#region src/components/textarea/Textarea.vue?vue&type=script&setup=true&lang.ts
|
|
13533
|
-
var _hoisted_1$
|
|
13534
|
-
var _hoisted_2$
|
|
13753
|
+
var _hoisted_1$102 = ["data-invalid", "data-disabled"];
|
|
13754
|
+
var _hoisted_2$57 = [
|
|
13535
13755
|
"id",
|
|
13536
13756
|
"rows",
|
|
13537
13757
|
"disabled",
|
|
@@ -13604,9 +13824,9 @@ var Textarea_default = /* @__PURE__ */ defineComponent({
|
|
|
13604
13824
|
"aria-describedby": unref(describedBy),
|
|
13605
13825
|
class: unref(textareaField)(),
|
|
13606
13826
|
onInput: _cache[1] || (_cache[1] = (...args) => unref(fit) && unref(fit)(...args))
|
|
13607
|
-
}), null, 16, _hoisted_2$
|
|
13827
|
+
}), null, 16, _hoisted_2$57), [[vModelText, model.value]])]),
|
|
13608
13828
|
_: 1
|
|
13609
|
-
}, 512)], 14, _hoisted_1$
|
|
13829
|
+
}, 512)], 14, _hoisted_1$102);
|
|
13610
13830
|
};
|
|
13611
13831
|
}
|
|
13612
13832
|
});
|
|
@@ -14440,7 +14660,7 @@ var NumberInput_default = /* @__PURE__ */ defineComponent({
|
|
|
14440
14660
|
});
|
|
14441
14661
|
//#endregion
|
|
14442
14662
|
//#region src/components/password-input/PasswordInput.vue?vue&type=script&setup=true&lang.ts
|
|
14443
|
-
var _hoisted_1$
|
|
14663
|
+
var _hoisted_1$101 = { class: "relative inline-flex" };
|
|
14444
14664
|
//#endregion
|
|
14445
14665
|
//#region src/components/password-input/PasswordInput.vue
|
|
14446
14666
|
var PasswordInput_default = /* @__PURE__ */ defineComponent({
|
|
@@ -14492,7 +14712,7 @@ var PasswordInput_default = /* @__PURE__ */ defineComponent({
|
|
|
14492
14712
|
disabled: props.disabled,
|
|
14493
14713
|
onClick: _cache[0] || (_cache[0] = ($event) => visible.value = !visible.value)
|
|
14494
14714
|
}, {
|
|
14495
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_1$
|
|
14715
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_1$101, [createVNode(Transition, {
|
|
14496
14716
|
"enter-active-class": "hn-transition-base",
|
|
14497
14717
|
"enter-from-class": "scale-90 opacity-0",
|
|
14498
14718
|
"leave-active-class": "hn-transition absolute",
|
|
@@ -14594,7 +14814,7 @@ var inputGroup = tv({
|
|
|
14594
14814
|
var inputGroupAddon = tv({ base: "text-muted flex shrink-0 items-center gap-2 px-[var(--hn-input-px)] whitespace-nowrap [&>svg]:size-[var(--hn-input-icon)]" });
|
|
14595
14815
|
//#endregion
|
|
14596
14816
|
//#region src/components/input-group/InputGroup.vue?vue&type=script&setup=true&lang.ts
|
|
14597
|
-
var _hoisted_1$
|
|
14817
|
+
var _hoisted_1$100 = ["data-invalid", "data-disabled"];
|
|
14598
14818
|
//#endregion
|
|
14599
14819
|
//#region src/components/input-group/InputGroup.vue
|
|
14600
14820
|
var InputGroup_default = /* @__PURE__ */ defineComponent({
|
|
@@ -14626,7 +14846,7 @@ var InputGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
14626
14846
|
size: props.size
|
|
14627
14847
|
}), unref(inputGroup)({ divided: props.variant !== "bare" }), props.class)),
|
|
14628
14848
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(focusFieldFrom)($event.currentTarget, $event.target))
|
|
14629
|
-
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
14849
|
+
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$100);
|
|
14630
14850
|
};
|
|
14631
14851
|
}
|
|
14632
14852
|
});
|
|
@@ -14656,8 +14876,8 @@ var multiSelectTrigger = tv({ base: [
|
|
|
14656
14876
|
var multiSelectChips = tv({ base: "flex min-w-0 flex-1 items-center gap-1 overflow-hidden" });
|
|
14657
14877
|
//#endregion
|
|
14658
14878
|
//#region src/components/multi-select/MultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
14659
|
-
var _hoisted_1$
|
|
14660
|
-
var _hoisted_2$
|
|
14879
|
+
var _hoisted_1$99 = { class: "min-w-0 truncate" };
|
|
14880
|
+
var _hoisted_2$56 = {
|
|
14661
14881
|
key: 1,
|
|
14662
14882
|
class: "min-w-0 truncate"
|
|
14663
14883
|
};
|
|
@@ -14773,7 +14993,7 @@ var MultiSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
14773
14993
|
onClick: isolate,
|
|
14774
14994
|
onRemove: ($event) => remove(option.value)
|
|
14775
14995
|
}, {
|
|
14776
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_1$
|
|
14996
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_1$99, toDisplayString(option.label), 1)]),
|
|
14777
14997
|
_: 2
|
|
14778
14998
|
}, 1032, [
|
|
14779
14999
|
"size",
|
|
@@ -14788,7 +15008,7 @@ var MultiSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
14788
15008
|
}, {
|
|
14789
15009
|
default: withCtx(() => [createTextVNode(" +" + toDisplayString(overflow.value), 1)]),
|
|
14790
15010
|
_: 1
|
|
14791
|
-
}, 8, ["size", "disabled"])) : createCommentVNode("", true)], 64)) : (openBlock(), createElementBlock("span", _hoisted_2$
|
|
15011
|
+
}, 8, ["size", "disabled"])) : createCommentVNode("", true)], 64)) : (openBlock(), createElementBlock("span", _hoisted_2$56, toDisplayString(props.placeholder ?? unref(t).select.placeholder), 1))], 2),
|
|
14792
15012
|
createVNode(Transition, {
|
|
14793
15013
|
"enter-active-class": "hn-transition-base",
|
|
14794
15014
|
"enter-from-class": "scale-90 opacity-0",
|
|
@@ -14941,8 +15161,8 @@ var comboboxContent = tv({ base: ["hn-anim-pop z-(--hn-z-overlay) flex w-[var(--
|
|
|
14941
15161
|
var comboboxList = tv({ base: "max-h-[min(20rem,var(--hn-overlay-available-height,20rem))]" });
|
|
14942
15162
|
//#endregion
|
|
14943
15163
|
//#region src/components/combobox/ComboboxList.vue?vue&type=script&setup=true&lang.ts
|
|
14944
|
-
var _hoisted_1$
|
|
14945
|
-
var _hoisted_2$
|
|
15164
|
+
var _hoisted_1$98 = { class: "min-w-0 flex-1" };
|
|
15165
|
+
var _hoisted_2$55 = { class: "block truncate" };
|
|
14946
15166
|
var _hoisted_3$30 = {
|
|
14947
15167
|
key: 0,
|
|
14948
15168
|
class: "text-muted block truncate text-xs"
|
|
@@ -15007,7 +15227,7 @@ var ComboboxList_default = /* @__PURE__ */ defineComponent({
|
|
|
15007
15227
|
"text-value": option.label,
|
|
15008
15228
|
class: unref(selectItem)()
|
|
15009
15229
|
}), {
|
|
15010
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_1$
|
|
15230
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_1$98, [renderSlot(_ctx.$slots, "option", { option }, () => [createElementVNode("span", _hoisted_2$55, toDisplayString(option.label), 1), option.description ? (openBlock(), createElementBlock("span", _hoisted_3$30, toDisplayString(option.description), 1)) : createCommentVNode("", true)])]), createElementVNode("span", _hoisted_4$25, [createVNode(unref(ComboboxItemIndicator), null, {
|
|
15011
15231
|
default: withCtx(() => [createVNode(unref(Check))]),
|
|
15012
15232
|
_: 1
|
|
15013
15233
|
})])]),
|
|
@@ -15092,7 +15312,7 @@ var ComboboxList_default = /* @__PURE__ */ defineComponent({
|
|
|
15092
15312
|
});
|
|
15093
15313
|
//#endregion
|
|
15094
15314
|
//#region src/components/combobox/Combobox.vue?vue&type=script&setup=true&lang.ts
|
|
15095
|
-
var _hoisted_1$
|
|
15315
|
+
var _hoisted_1$97 = [
|
|
15096
15316
|
"data-invalid",
|
|
15097
15317
|
"data-disabled",
|
|
15098
15318
|
"aria-busy"
|
|
@@ -15242,7 +15462,7 @@ var Combobox_default = /* @__PURE__ */ defineComponent({
|
|
|
15242
15462
|
"disabled",
|
|
15243
15463
|
"class"
|
|
15244
15464
|
])
|
|
15245
|
-
], 42, _hoisted_1$
|
|
15465
|
+
], 42, _hoisted_1$97)]),
|
|
15246
15466
|
_: 1
|
|
15247
15467
|
}), createVNode(ComboboxList_default, {
|
|
15248
15468
|
options: props.options,
|
|
@@ -15567,8 +15787,8 @@ function useAutocomplete(config) {
|
|
|
15567
15787
|
}
|
|
15568
15788
|
//#endregion
|
|
15569
15789
|
//#region src/components/autocomplete/Autocomplete.vue?vue&type=script&setup=true&lang.ts
|
|
15570
|
-
var _hoisted_1$
|
|
15571
|
-
var _hoisted_2$
|
|
15790
|
+
var _hoisted_1$96 = ["data-invalid", "data-disabled"];
|
|
15791
|
+
var _hoisted_2$54 = [
|
|
15572
15792
|
"id",
|
|
15573
15793
|
"value",
|
|
15574
15794
|
"aria-expanded",
|
|
@@ -15715,7 +15935,7 @@ var Autocomplete_default = /* @__PURE__ */ defineComponent({
|
|
|
15715
15935
|
onKeydown: _cache[4] || (_cache[4] = (...args) => unref(onKeydown) && unref(onKeydown)(...args)),
|
|
15716
15936
|
onCompositionstart: _cache[5] || (_cache[5] = ($event) => composing.value = true),
|
|
15717
15937
|
onCompositionend: _cache[6] || (_cache[6] = (...args) => unref(onCompositionEnd) && unref(onCompositionEnd)(...args))
|
|
15718
|
-
}), null, 16, _hoisted_2$
|
|
15938
|
+
}), null, 16, _hoisted_2$54),
|
|
15719
15939
|
createVNode(Transition, {
|
|
15720
15940
|
"enter-active-class": "hn-transition-base",
|
|
15721
15941
|
"enter-from-class": "scale-90 opacity-0",
|
|
@@ -15732,7 +15952,7 @@ var Autocomplete_default = /* @__PURE__ */ defineComponent({
|
|
|
15732
15952
|
key: 1,
|
|
15733
15953
|
class: normalizeClass(unref(inputAdornment)())
|
|
15734
15954
|
}, [renderSlot(_ctx.$slots, "trailing")], 2)) : createCommentVNode("", true)
|
|
15735
|
-
], 10, _hoisted_1$
|
|
15955
|
+
], 10, _hoisted_1$96), createVNode(Popover_default, {
|
|
15736
15956
|
open: unref(visible),
|
|
15737
15957
|
"onUpdate:open": _cache[9] || (_cache[9] = ($event) => isRef(visible) ? visible.value = $event : null),
|
|
15738
15958
|
anchor: unref(host),
|
|
@@ -15795,19 +16015,6 @@ var Autocomplete_default = /* @__PURE__ */ defineComponent({
|
|
|
15795
16015
|
}
|
|
15796
16016
|
});
|
|
15797
16017
|
//#endregion
|
|
15798
|
-
//#region src/components/kbd/Kbd.vue
|
|
15799
|
-
var Kbd_default = /* @__PURE__ */ defineComponent({
|
|
15800
|
-
name: "HnKbd",
|
|
15801
|
-
__name: "Kbd",
|
|
15802
|
-
props: { class: {} },
|
|
15803
|
-
setup(__props) {
|
|
15804
|
-
const props = __props;
|
|
15805
|
-
return (_ctx, _cache) => {
|
|
15806
|
-
return openBlock(), createElementBlock("kbd", { class: normalizeClass(unref(cn)("hn-kbd", props.class)) }, [renderSlot(_ctx.$slots, "default")], 2);
|
|
15807
|
-
};
|
|
15808
|
-
}
|
|
15809
|
-
});
|
|
15810
|
-
//#endregion
|
|
15811
16018
|
//#region ../shared/src/variants/command-palette.ts
|
|
15812
16019
|
var commandWrapper = tv({ base: "pointer-events-none fixed inset-0 z-(--hn-z-overlay) grid items-start justify-items-center p-4 pt-[15dvh] max-sm:pt-4" });
|
|
15813
16020
|
var commandCard = tv({
|
|
@@ -15822,10 +16029,71 @@ var commandItemBody = tv({ base: "flex min-w-0 flex-1 flex-col" });
|
|
|
15822
16029
|
var commandItemMatch = tv({ base: "text-accent-text font-medium" });
|
|
15823
16030
|
var commandItemHint = tv({ base: "ms-auto flex shrink-0 items-center gap-1" });
|
|
15824
16031
|
var commandEmpty = tv({ base: "text-muted px-4 py-8 text-center text-sm" });
|
|
16032
|
+
var commandStatus = tv({ base: "border-line text-muted shrink-0 border-t px-4 py-2 text-center text-sm" });
|
|
16033
|
+
//#endregion
|
|
16034
|
+
//#region src/components/command-palette/context.ts
|
|
16035
|
+
var COMMAND_PALETTE_KEY = Symbol("hn-command-palette");
|
|
16036
|
+
function provideCommandPalette(context) {
|
|
16037
|
+
provide(COMMAND_PALETTE_KEY, context);
|
|
16038
|
+
}
|
|
16039
|
+
function injectCommandPalette() {
|
|
16040
|
+
const context = inject(COMMAND_PALETTE_KEY, null);
|
|
16041
|
+
if (!context) throw new Error("CommandPaletteInput must be used inside CommandPalette");
|
|
16042
|
+
return context;
|
|
16043
|
+
}
|
|
16044
|
+
//#endregion
|
|
16045
|
+
//#region src/components/command-palette/CommandPaletteInput.vue
|
|
16046
|
+
var CommandPaletteInput_default = /* @__PURE__ */ defineComponent({
|
|
16047
|
+
name: "HnCommandPaletteInput",
|
|
16048
|
+
__name: "CommandPaletteInput",
|
|
16049
|
+
props: {
|
|
16050
|
+
placeholder: {},
|
|
16051
|
+
class: {}
|
|
16052
|
+
},
|
|
16053
|
+
setup(__props) {
|
|
16054
|
+
const props = __props;
|
|
16055
|
+
const context = injectCommandPalette();
|
|
16056
|
+
const filter = shallowRef();
|
|
16057
|
+
watchEffect(() => {
|
|
16058
|
+
context.input.value = filter.value?.$el;
|
|
16059
|
+
});
|
|
16060
|
+
return (_ctx, _cache) => {
|
|
16061
|
+
return openBlock(), createBlock(unref(ListboxFilter), {
|
|
16062
|
+
ref_key: "filter",
|
|
16063
|
+
ref: filter,
|
|
16064
|
+
modelValue: unref(context).search.value,
|
|
16065
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(context).search.value = $event),
|
|
16066
|
+
"auto-focus": unref(context).autoFocus.value,
|
|
16067
|
+
placeholder: props.placeholder ?? unref(context).placeholder.value,
|
|
16068
|
+
"aria-label": unref(context).label.value,
|
|
16069
|
+
class: normalizeClass(props.class ? unref(cn)(unref(commandInput)(), props.class) : unref(commandInput)())
|
|
16070
|
+
}, null, 8, [
|
|
16071
|
+
"modelValue",
|
|
16072
|
+
"auto-focus",
|
|
16073
|
+
"placeholder",
|
|
16074
|
+
"aria-label",
|
|
16075
|
+
"class"
|
|
16076
|
+
]);
|
|
16077
|
+
};
|
|
16078
|
+
}
|
|
16079
|
+
});
|
|
16080
|
+
//#endregion
|
|
16081
|
+
//#region src/components/kbd/Kbd.vue
|
|
16082
|
+
var Kbd_default = /* @__PURE__ */ defineComponent({
|
|
16083
|
+
name: "HnKbd",
|
|
16084
|
+
__name: "Kbd",
|
|
16085
|
+
props: { class: {} },
|
|
16086
|
+
setup(__props) {
|
|
16087
|
+
const props = __props;
|
|
16088
|
+
return (_ctx, _cache) => {
|
|
16089
|
+
return openBlock(), createElementBlock("kbd", { class: normalizeClass(unref(cn)("hn-kbd", props.class)) }, [renderSlot(_ctx.$slots, "default")], 2);
|
|
16090
|
+
};
|
|
16091
|
+
}
|
|
16092
|
+
});
|
|
15825
16093
|
//#endregion
|
|
15826
16094
|
//#region src/components/command-palette/CommandPaletteItem.vue?vue&type=script&setup=true&lang.ts
|
|
15827
|
-
var _hoisted_1$
|
|
15828
|
-
var _hoisted_2$
|
|
16095
|
+
var _hoisted_1$95 = { class: "truncate" };
|
|
16096
|
+
var _hoisted_2$53 = ["textContent"];
|
|
15829
16097
|
var _hoisted_3$28 = ["textContent"];
|
|
15830
16098
|
var _hoisted_4$23 = ["textContent"];
|
|
15831
16099
|
var _hoisted_5$17 = {
|
|
@@ -15864,13 +16132,16 @@ var CommandPaletteItem_default = /* @__PURE__ */ defineComponent({
|
|
|
15864
16132
|
onSelect: _cache[0] || (_cache[0] = ($event) => emit("select"))
|
|
15865
16133
|
}, {
|
|
15866
16134
|
default: withCtx(() => [
|
|
15867
|
-
props.match.item.icon ? (openBlock(), createBlock(resolveDynamicComponent(props.match.item.icon), {
|
|
15868
|
-
key:
|
|
16135
|
+
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 0) : props.match.item.icon ? (openBlock(), createBlock(resolveDynamicComponent(props.match.item.icon), {
|
|
16136
|
+
key: 1,
|
|
15869
16137
|
"aria-hidden": "true",
|
|
15870
16138
|
class: "text-muted"
|
|
15871
16139
|
})) : createCommentVNode("", true),
|
|
15872
|
-
|
|
15873
|
-
|
|
16140
|
+
!_ctx.$slots.default ? (openBlock(), createElementBlock("span", {
|
|
16141
|
+
key: 2,
|
|
16142
|
+
class: normalizeClass(unref(commandItemBody)())
|
|
16143
|
+
}, [createElementVNode("span", _hoisted_1$95, [
|
|
16144
|
+
createElementVNode("span", { textContent: toDisplayString(parts.value[0]) }, null, 8, _hoisted_2$53),
|
|
15874
16145
|
parts.value[1] ? (openBlock(), createElementBlock("span", {
|
|
15875
16146
|
key: 0,
|
|
15876
16147
|
class: normalizeClass(unref(commandItemMatch)()),
|
|
@@ -15880,9 +16151,9 @@ var CommandPaletteItem_default = /* @__PURE__ */ defineComponent({
|
|
|
15880
16151
|
key: 1,
|
|
15881
16152
|
textContent: toDisplayString(parts.value[2])
|
|
15882
16153
|
}, null, 8, _hoisted_4$23)) : createCommentVNode("", true)
|
|
15883
|
-
]), props.match.item.description ? (openBlock(), createElementBlock("span", _hoisted_5$17, toDisplayString(props.match.item.description), 1)) : createCommentVNode("", true)], 2),
|
|
15884
|
-
props.match.item.kbd?.length ? (openBlock(), createElementBlock("span", {
|
|
15885
|
-
key:
|
|
16154
|
+
]), props.match.item.description ? (openBlock(), createElementBlock("span", _hoisted_5$17, toDisplayString(props.match.item.description), 1)) : createCommentVNode("", true)], 2)) : createCommentVNode("", true),
|
|
16155
|
+
!_ctx.$slots.default && props.match.item.kbd?.length ? (openBlock(), createElementBlock("span", {
|
|
16156
|
+
key: 3,
|
|
15886
16157
|
class: normalizeClass(unref(commandItemHint)())
|
|
15887
16158
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(props.match.item.kbd, (key) => {
|
|
15888
16159
|
return openBlock(), createBlock(Kbd_default, { key }, {
|
|
@@ -15891,7 +16162,7 @@ var CommandPaletteItem_default = /* @__PURE__ */ defineComponent({
|
|
|
15891
16162
|
}, 1024);
|
|
15892
16163
|
}), 128))], 2)) : createCommentVNode("", true)
|
|
15893
16164
|
]),
|
|
15894
|
-
_:
|
|
16165
|
+
_: 3
|
|
15895
16166
|
}, 8, [
|
|
15896
16167
|
"value",
|
|
15897
16168
|
"disabled",
|
|
@@ -15989,6 +16260,12 @@ function filterCommands(items, query) {
|
|
|
15989
16260
|
matches
|
|
15990
16261
|
}));
|
|
15991
16262
|
}
|
|
16263
|
+
function commandMatchRange(match) {
|
|
16264
|
+
return match.start < 0 ? null : {
|
|
16265
|
+
start: match.start,
|
|
16266
|
+
end: match.end
|
|
16267
|
+
};
|
|
16268
|
+
}
|
|
15992
16269
|
//#endregion
|
|
15993
16270
|
//#region src/components/command-palette/composables/useCommandItems.ts
|
|
15994
16271
|
function useCommandItems(props, search) {
|
|
@@ -16022,6 +16299,7 @@ var CommandPalettePanel_default = /* @__PURE__ */ defineComponent({
|
|
|
16022
16299
|
label: {},
|
|
16023
16300
|
placeholder: {},
|
|
16024
16301
|
ignoreFilter: { type: Boolean },
|
|
16302
|
+
loading: { type: Boolean },
|
|
16025
16303
|
autoFocus: { type: Boolean },
|
|
16026
16304
|
inline: { type: Boolean },
|
|
16027
16305
|
class: {}
|
|
@@ -16037,6 +16315,25 @@ var CommandPalettePanel_default = /* @__PURE__ */ defineComponent({
|
|
|
16037
16315
|
const t = useUiLocale();
|
|
16038
16316
|
const input = shallowRef();
|
|
16039
16317
|
const { sections, options } = useCommandItems(props, () => search.value);
|
|
16318
|
+
function select(item) {
|
|
16319
|
+
const field = input.value;
|
|
16320
|
+
const panel = field?.closest("[data-hn-command-palette]");
|
|
16321
|
+
const inside = !!panel?.contains(document.activeElement);
|
|
16322
|
+
emit("select", item);
|
|
16323
|
+
if (!field || !panel || !inside) return;
|
|
16324
|
+
nextTick(() => {
|
|
16325
|
+
const active = document.activeElement;
|
|
16326
|
+
if (!field.isConnected) return;
|
|
16327
|
+
if (!active || active === document.body || panel.contains(active)) field.focus({ preventScroll: true });
|
|
16328
|
+
});
|
|
16329
|
+
}
|
|
16330
|
+
provideCommandPalette({
|
|
16331
|
+
search,
|
|
16332
|
+
label: computed(() => props.label),
|
|
16333
|
+
placeholder: computed(() => props.placeholder ?? t.value.command.placeholder),
|
|
16334
|
+
autoFocus: computed(() => props.autoFocus),
|
|
16335
|
+
input
|
|
16336
|
+
});
|
|
16040
16337
|
return (_ctx, _cache) => {
|
|
16041
16338
|
return openBlock(), createBlock(Card_default, mergeProps(_ctx.$attrs, {
|
|
16042
16339
|
"data-hn-command-palette": "",
|
|
@@ -16048,83 +16345,107 @@ var CommandPalettePanel_default = /* @__PURE__ */ defineComponent({
|
|
|
16048
16345
|
"highlight-on-hover": "",
|
|
16049
16346
|
class: "flex min-h-0 flex-col"
|
|
16050
16347
|
}, {
|
|
16051
|
-
default: withCtx(() => [
|
|
16052
|
-
|
|
16053
|
-
|
|
16054
|
-
|
|
16055
|
-
"
|
|
16056
|
-
|
|
16057
|
-
|
|
16058
|
-
|
|
16059
|
-
class: normalizeClass(unref(commandInput)())
|
|
16060
|
-
}, null, 8, [
|
|
16061
|
-
"modelValue",
|
|
16062
|
-
"auto-focus",
|
|
16063
|
-
"placeholder",
|
|
16064
|
-
"aria-label",
|
|
16065
|
-
"class"
|
|
16066
|
-
])], 2), props.virtualize ? (openBlock(), createBlock(unref(ListboxContent), {
|
|
16067
|
-
key: 0,
|
|
16068
|
-
"as-child": "",
|
|
16069
|
-
"aria-label": props.label
|
|
16070
|
-
}, {
|
|
16071
|
-
default: withCtx(() => [createVNode(VirtualChoices_default, {
|
|
16072
|
-
options: unref(options),
|
|
16073
|
-
virtualize: props.virtualize,
|
|
16074
|
-
input: input.value?.$el,
|
|
16075
|
-
kind: "listbox",
|
|
16076
|
-
class: normalizeClass(unref(commandList)())
|
|
16077
|
-
}, {
|
|
16078
|
-
default: withCtx(({ option, attrs }) => [createVNode(CommandPaletteItem_default, mergeProps(attrs, {
|
|
16079
|
-
match: option.match,
|
|
16080
|
-
onSelect: ($event) => emit("select", option.match.item)
|
|
16081
|
-
}), null, 16, ["match", "onSelect"])]),
|
|
16082
|
-
empty: withCtx(() => [createTextVNode(toDisplayString(unref(t).command.empty), 1)]),
|
|
16083
|
-
_: 1
|
|
16084
|
-
}, 8, [
|
|
16085
|
-
"options",
|
|
16086
|
-
"virtualize",
|
|
16087
|
-
"input",
|
|
16088
|
-
"class"
|
|
16089
|
-
])]),
|
|
16090
|
-
_: 1
|
|
16091
|
-
}, 8, ["aria-label"])) : (openBlock(), createBlock(ScrollArea_default, {
|
|
16092
|
-
key: 1,
|
|
16093
|
-
class: normalizeClass(unref(commandList)())
|
|
16094
|
-
}, {
|
|
16095
|
-
default: withCtx(() => [createVNode(unref(ListboxContent), {
|
|
16348
|
+
default: withCtx(() => [
|
|
16349
|
+
_ctx.$slots.input ? renderSlot(_ctx.$slots, "input", {}, void 0, void 0, 0) : (openBlock(), createElementBlock("div", {
|
|
16350
|
+
key: 1,
|
|
16351
|
+
class: normalizeClass(unref(commandInputRow)())
|
|
16352
|
+
}, [createVNode(unref(Search), { "aria-hidden": "true" }), createVNode(CommandPaletteInput_default)], 2)),
|
|
16353
|
+
props.virtualize ? (openBlock(), createBlock(unref(ListboxContent), {
|
|
16354
|
+
key: 2,
|
|
16355
|
+
"as-child": "",
|
|
16096
16356
|
"aria-label": props.label,
|
|
16097
|
-
|
|
16357
|
+
"aria-busy": props.loading || void 0
|
|
16358
|
+
}, {
|
|
16359
|
+
default: withCtx(() => [createVNode(VirtualChoices_default, {
|
|
16360
|
+
options: unref(options),
|
|
16361
|
+
virtualize: props.virtualize,
|
|
16362
|
+
input: input.value,
|
|
16363
|
+
kind: "listbox",
|
|
16364
|
+
class: normalizeClass(unref(commandList)())
|
|
16365
|
+
}, {
|
|
16366
|
+
default: withCtx(({ option, attrs }) => [createVNode(CommandPaletteItem_default, mergeProps(attrs, {
|
|
16367
|
+
match: option.match,
|
|
16368
|
+
onSelect: ($event) => select(option.match.item)
|
|
16369
|
+
}), createSlots({ _: 2 }, [_ctx.$slots.item ? {
|
|
16370
|
+
name: "default",
|
|
16371
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "item", {
|
|
16372
|
+
item: option.match.item,
|
|
16373
|
+
match: unref(commandMatchRange)(option.match)
|
|
16374
|
+
})]),
|
|
16375
|
+
key: "0"
|
|
16376
|
+
} : void 0]), 1040, ["match", "onSelect"])]),
|
|
16377
|
+
empty: withCtx(() => [props.loading ? renderSlot(_ctx.$slots, "loading", {}, () => [createTextVNode(toDisplayString(unref(t).common.loading), 1)], void 0, 0) : renderSlot(_ctx.$slots, "empty", { search: search.value }, () => [createTextVNode(toDisplayString(unref(t).command.empty), 1)], void 0, 1)]),
|
|
16378
|
+
_: 3
|
|
16379
|
+
}, 8, [
|
|
16380
|
+
"options",
|
|
16381
|
+
"virtualize",
|
|
16382
|
+
"input",
|
|
16383
|
+
"class"
|
|
16384
|
+
])]),
|
|
16385
|
+
_: 3
|
|
16386
|
+
}, 8, ["aria-label", "aria-busy"])) : (openBlock(), createBlock(ScrollArea_default, {
|
|
16387
|
+
key: 3,
|
|
16388
|
+
class: normalizeClass(unref(commandList)())
|
|
16098
16389
|
}, {
|
|
16099
|
-
default: withCtx(() => [(
|
|
16100
|
-
|
|
16101
|
-
|
|
16102
|
-
|
|
16390
|
+
default: withCtx(() => [createVNode(unref(ListboxContent), {
|
|
16391
|
+
"aria-label": props.label,
|
|
16392
|
+
"aria-busy": props.loading || void 0,
|
|
16393
|
+
class: normalizeClass(unref(selectListBody)())
|
|
16394
|
+
}, {
|
|
16395
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(sections), (section) => {
|
|
16396
|
+
return openBlock(), createElementBlock(Fragment, { key: section.key }, [section.label ? (openBlock(), createBlock(unref(ListboxGroup), { key: 0 }, {
|
|
16397
|
+
default: withCtx(() => [createVNode(unref(ListboxGroupLabel), { class: normalizeClass(unref(selectLabel)()) }, {
|
|
16398
|
+
default: withCtx(() => [createTextVNode(toDisplayString(section.label), 1)]),
|
|
16399
|
+
_: 2
|
|
16400
|
+
}, 1032, ["class"]), (openBlock(true), createElementBlock(Fragment, null, renderList(section.matches, (match) => {
|
|
16401
|
+
return openBlock(), createBlock(CommandPaletteItem_default, {
|
|
16402
|
+
key: match.item.id,
|
|
16403
|
+
match,
|
|
16404
|
+
onSelect: ($event) => select(match.item)
|
|
16405
|
+
}, createSlots({ _: 2 }, [_ctx.$slots.item ? {
|
|
16406
|
+
name: "default",
|
|
16407
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "item", {
|
|
16408
|
+
item: match.item,
|
|
16409
|
+
match: unref(commandMatchRange)(match)
|
|
16410
|
+
})]),
|
|
16411
|
+
key: "0"
|
|
16412
|
+
} : void 0]), 1032, ["match", "onSelect"]);
|
|
16413
|
+
}), 128))]),
|
|
16103
16414
|
_: 2
|
|
16104
|
-
},
|
|
16415
|
+
}, 1024)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(section.matches, (match) => {
|
|
16105
16416
|
return openBlock(), createBlock(CommandPaletteItem_default, {
|
|
16106
16417
|
key: match.item.id,
|
|
16107
16418
|
match,
|
|
16108
|
-
onSelect: ($event) =>
|
|
16109
|
-
},
|
|
16110
|
-
|
|
16111
|
-
|
|
16112
|
-
|
|
16113
|
-
|
|
16114
|
-
|
|
16115
|
-
|
|
16116
|
-
|
|
16117
|
-
},
|
|
16118
|
-
}), 128))],
|
|
16119
|
-
|
|
16419
|
+
onSelect: ($event) => select(match.item)
|
|
16420
|
+
}, createSlots({ _: 2 }, [_ctx.$slots.item ? {
|
|
16421
|
+
name: "default",
|
|
16422
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "item", {
|
|
16423
|
+
item: match.item,
|
|
16424
|
+
match: unref(commandMatchRange)(match)
|
|
16425
|
+
})]),
|
|
16426
|
+
key: "0"
|
|
16427
|
+
} : void 0]), 1032, ["match", "onSelect"]);
|
|
16428
|
+
}), 128))], 64);
|
|
16429
|
+
}), 128))]),
|
|
16430
|
+
_: 3
|
|
16431
|
+
}, 8, [
|
|
16432
|
+
"aria-label",
|
|
16433
|
+
"aria-busy",
|
|
16434
|
+
"class"
|
|
16435
|
+
]), unref(sections).length === 0 ? (openBlock(), createElementBlock("div", {
|
|
16120
16436
|
key: 0,
|
|
16437
|
+
role: "status",
|
|
16121
16438
|
class: normalizeClass(unref(commandEmpty)())
|
|
16122
|
-
}, toDisplayString(unref(t).command.empty),
|
|
16123
|
-
_:
|
|
16124
|
-
}, 8, ["
|
|
16125
|
-
|
|
16126
|
-
|
|
16127
|
-
|
|
16439
|
+
}, [props.loading ? renderSlot(_ctx.$slots, "loading", {}, () => [createTextVNode(toDisplayString(unref(t).common.loading), 1)], void 0, 0) : renderSlot(_ctx.$slots, "empty", { search: search.value }, () => [createTextVNode(toDisplayString(unref(t).command.empty), 1)], void 0, 1)], 2)) : createCommentVNode("", true)]),
|
|
16440
|
+
_: 3
|
|
16441
|
+
}, 8, ["class"])),
|
|
16442
|
+
props.loading && unref(sections).length > 0 ? (openBlock(), createElementBlock("div", {
|
|
16443
|
+
key: 4,
|
|
16444
|
+
role: "status",
|
|
16445
|
+
class: normalizeClass(unref(commandStatus)())
|
|
16446
|
+
}, [renderSlot(_ctx.$slots, "loading", {}, () => [createTextVNode(toDisplayString(unref(t).common.loading), 1)])], 2)) : createCommentVNode("", true)
|
|
16447
|
+
]),
|
|
16448
|
+
_: 3
|
|
16128
16449
|
})]),
|
|
16129
16450
|
_: 3
|
|
16130
16451
|
}, 16, ["class"]);
|
|
@@ -16174,6 +16495,11 @@ var CommandPalette_default = /* @__PURE__ */ defineComponent({
|
|
|
16174
16495
|
label: {},
|
|
16175
16496
|
hotkey: {},
|
|
16176
16497
|
ignoreFilter: { type: Boolean },
|
|
16498
|
+
loading: { type: Boolean },
|
|
16499
|
+
closeOnSelect: {
|
|
16500
|
+
type: Boolean,
|
|
16501
|
+
default: true
|
|
16502
|
+
},
|
|
16177
16503
|
inline: { type: Boolean },
|
|
16178
16504
|
class: {}
|
|
16179
16505
|
}, {
|
|
@@ -16202,7 +16528,7 @@ var CommandPalette_default = /* @__PURE__ */ defineComponent({
|
|
|
16202
16528
|
function select(item) {
|
|
16203
16529
|
item.onSelect?.();
|
|
16204
16530
|
emit("select", item);
|
|
16205
|
-
if (!props.inline) open.value = false;
|
|
16531
|
+
if (!props.inline && (item.closeOnSelect ?? props.closeOnSelect)) open.value = false;
|
|
16206
16532
|
}
|
|
16207
16533
|
return (_ctx, _cache) => {
|
|
16208
16534
|
return props.inline ? (openBlock(), createBlock(CommandPalettePanel_default, mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
@@ -16214,15 +16540,38 @@ var CommandPalette_default = /* @__PURE__ */ defineComponent({
|
|
|
16214
16540
|
label: label.value,
|
|
16215
16541
|
placeholder: props.placeholder,
|
|
16216
16542
|
"ignore-filter": props.ignoreFilter,
|
|
16543
|
+
loading: props.loading,
|
|
16217
16544
|
class: props.class,
|
|
16218
16545
|
onSelect: select
|
|
16219
|
-
}),
|
|
16546
|
+
}), createSlots({ _: 2 }, [
|
|
16547
|
+
_ctx.$slots.input ? {
|
|
16548
|
+
name: "input",
|
|
16549
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "input")]),
|
|
16550
|
+
key: "0"
|
|
16551
|
+
} : void 0,
|
|
16552
|
+
_ctx.$slots.item ? {
|
|
16553
|
+
name: "item",
|
|
16554
|
+
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
16555
|
+
key: "1"
|
|
16556
|
+
} : void 0,
|
|
16557
|
+
_ctx.$slots.loading ? {
|
|
16558
|
+
name: "loading",
|
|
16559
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "loading")]),
|
|
16560
|
+
key: "2"
|
|
16561
|
+
} : void 0,
|
|
16562
|
+
_ctx.$slots.empty ? {
|
|
16563
|
+
name: "empty",
|
|
16564
|
+
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, "empty", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
16565
|
+
key: "3"
|
|
16566
|
+
} : void 0
|
|
16567
|
+
]), 1040, [
|
|
16220
16568
|
"search",
|
|
16221
16569
|
"items",
|
|
16222
16570
|
"virtualize",
|
|
16223
16571
|
"label",
|
|
16224
16572
|
"placeholder",
|
|
16225
16573
|
"ignore-filter",
|
|
16574
|
+
"loading",
|
|
16226
16575
|
"class"
|
|
16227
16576
|
])) : (openBlock(), createBlock(unref(DialogRoot), {
|
|
16228
16577
|
key: 1,
|
|
@@ -16246,9 +16595,10 @@ var CommandPalette_default = /* @__PURE__ */ defineComponent({
|
|
|
16246
16595
|
label: label.value,
|
|
16247
16596
|
placeholder: props.placeholder,
|
|
16248
16597
|
"ignore-filter": props.ignoreFilter,
|
|
16598
|
+
loading: props.loading,
|
|
16249
16599
|
class: props.class,
|
|
16250
16600
|
onSelect: select
|
|
16251
|
-
}), {
|
|
16601
|
+
}), createSlots({
|
|
16252
16602
|
default: withCtx(() => [createVNode(unref(VisuallyHidden), null, {
|
|
16253
16603
|
default: withCtx(() => [createVNode(unref(DialogTitle), null, {
|
|
16254
16604
|
default: withCtx(() => [createTextVNode(toDisplayString(label.value), 1)]),
|
|
@@ -16256,19 +16606,41 @@ var CommandPalette_default = /* @__PURE__ */ defineComponent({
|
|
|
16256
16606
|
})]),
|
|
16257
16607
|
_: 1
|
|
16258
16608
|
})]),
|
|
16259
|
-
_:
|
|
16260
|
-
},
|
|
16609
|
+
_: 2
|
|
16610
|
+
}, [
|
|
16611
|
+
_ctx.$slots.input ? {
|
|
16612
|
+
name: "input",
|
|
16613
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "input")]),
|
|
16614
|
+
key: "0"
|
|
16615
|
+
} : void 0,
|
|
16616
|
+
_ctx.$slots.item ? {
|
|
16617
|
+
name: "item",
|
|
16618
|
+
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
16619
|
+
key: "1"
|
|
16620
|
+
} : void 0,
|
|
16621
|
+
_ctx.$slots.loading ? {
|
|
16622
|
+
name: "loading",
|
|
16623
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "loading")]),
|
|
16624
|
+
key: "2"
|
|
16625
|
+
} : void 0,
|
|
16626
|
+
_ctx.$slots.empty ? {
|
|
16627
|
+
name: "empty",
|
|
16628
|
+
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, "empty", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
16629
|
+
key: "3"
|
|
16630
|
+
} : void 0
|
|
16631
|
+
]), 1040, [
|
|
16261
16632
|
"search",
|
|
16262
16633
|
"items",
|
|
16263
16634
|
"virtualize",
|
|
16264
16635
|
"label",
|
|
16265
16636
|
"placeholder",
|
|
16266
16637
|
"ignore-filter",
|
|
16638
|
+
"loading",
|
|
16267
16639
|
"class"
|
|
16268
16640
|
])]),
|
|
16269
|
-
_:
|
|
16641
|
+
_: 3
|
|
16270
16642
|
})], 2)]),
|
|
16271
|
-
_:
|
|
16643
|
+
_: 3
|
|
16272
16644
|
})]),
|
|
16273
16645
|
_: 3
|
|
16274
16646
|
}, 8, ["open"]));
|
|
@@ -16277,8 +16649,8 @@ var CommandPalette_default = /* @__PURE__ */ defineComponent({
|
|
|
16277
16649
|
});
|
|
16278
16650
|
//#endregion
|
|
16279
16651
|
//#region src/components/listbox/ListboxOptionContent.vue?vue&type=script&setup=true&lang.ts
|
|
16280
|
-
var _hoisted_1$
|
|
16281
|
-
var _hoisted_2$
|
|
16652
|
+
var _hoisted_1$94 = { class: "min-w-0 flex-1" };
|
|
16653
|
+
var _hoisted_2$52 = { class: "block truncate" };
|
|
16282
16654
|
var _hoisted_3$27 = {
|
|
16283
16655
|
key: 0,
|
|
16284
16656
|
class: "text-muted block truncate text-xs"
|
|
@@ -16299,10 +16671,10 @@ var ListboxOptionContent_default = /* @__PURE__ */ defineComponent({
|
|
|
16299
16671
|
const slots = useSlots();
|
|
16300
16672
|
const { isSelected: selected } = injectListboxItemContext();
|
|
16301
16673
|
return (_ctx, _cache) => {
|
|
16302
|
-
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("span", _hoisted_1$
|
|
16674
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("span", _hoisted_1$94, [renderSlot(_ctx.$slots, "option", {
|
|
16303
16675
|
option: props.option,
|
|
16304
16676
|
selected: unref(selected)
|
|
16305
|
-
}, () => [createElementVNode("span", _hoisted_2$
|
|
16677
|
+
}, () => [createElementVNode("span", _hoisted_2$52, toDisplayString(props.option.label), 1), props.option.description ? (openBlock(), createElementBlock("span", _hoisted_3$27, toDisplayString(props.option.description), 1)) : createCommentVNode("", true)])]), slots.trailing ? renderSlot(_ctx.$slots, "trailing", {
|
|
16306
16678
|
option: props.option,
|
|
16307
16679
|
selected: unref(selected)
|
|
16308
16680
|
}, void 0, void 0, 0) : (openBlock(), createElementBlock("span", _hoisted_4$22, [createVNode(unref(ListboxItemIndicator), null, {
|
|
@@ -16578,7 +16950,7 @@ var checkboxDescription = tv({
|
|
|
16578
16950
|
});
|
|
16579
16951
|
//#endregion
|
|
16580
16952
|
//#region src/components/tree/TreeCheck.vue?vue&type=script&setup=true&lang.ts
|
|
16581
|
-
var _hoisted_1$
|
|
16953
|
+
var _hoisted_1$93 = ["data-state"];
|
|
16582
16954
|
//#endregion
|
|
16583
16955
|
//#region src/components/tree/TreeCheck.vue
|
|
16584
16956
|
var TreeCheck_default = /* @__PURE__ */ defineComponent({
|
|
@@ -16611,7 +16983,7 @@ var TreeCheck_default = /* @__PURE__ */ defineComponent({
|
|
|
16611
16983
|
}, {
|
|
16612
16984
|
default: withCtx(() => [props.indeterminate ? (openBlock(), createBlock(unref(Minus), { key: 0 })) : createCommentVNode("", true)]),
|
|
16613
16985
|
_: 1
|
|
16614
|
-
})], 10, _hoisted_1$
|
|
16986
|
+
})], 10, _hoisted_1$93);
|
|
16615
16987
|
};
|
|
16616
16988
|
}
|
|
16617
16989
|
});
|
|
@@ -16738,7 +17110,7 @@ function useVirtualTree(props, viewport) {
|
|
|
16738
17110
|
}
|
|
16739
17111
|
//#endregion
|
|
16740
17112
|
//#region src/components/tree/VirtualTreeWindow.vue?vue&type=script&setup=true&lang.ts
|
|
16741
|
-
var _hoisted_1$
|
|
17113
|
+
var _hoisted_1$92 = ["data-index"];
|
|
16742
17114
|
//#endregion
|
|
16743
17115
|
//#region src/components/tree/VirtualTreeWindow.vue
|
|
16744
17116
|
var VirtualTreeWindow_default = /* @__PURE__ */ defineComponent({
|
|
@@ -16775,7 +17147,7 @@ var VirtualTreeWindow_default = /* @__PURE__ */ defineComponent({
|
|
|
16775
17147
|
role: "presentation",
|
|
16776
17148
|
class: normalizeClass(unref(virtualListItem)({ orientation: "vertical" })),
|
|
16777
17149
|
style: normalizeStyle({ marginBlockStart: `${entry.gapBefore}px` })
|
|
16778
|
-
}, [renderSlot(_ctx.$slots, "default", { item: props.items[entry.index] })], 14, _hoisted_1$
|
|
17150
|
+
}, [renderSlot(_ctx.$slots, "default", { item: props.items[entry.index] })], 14, _hoisted_1$92);
|
|
16779
17151
|
}), 128))], 6);
|
|
16780
17152
|
};
|
|
16781
17153
|
}
|
|
@@ -16994,12 +17366,12 @@ var treeToggle = tv({ base: "text-muted flex size-5 shrink-0 cursor-pointer item
|
|
|
16994
17366
|
var treeEmpty = tv({ base: "text-muted px-2.5 py-2 text-sm" });
|
|
16995
17367
|
//#endregion
|
|
16996
17368
|
//#region src/components/tree/Tree.vue?vue&type=script&setup=true&lang.ts
|
|
16997
|
-
var _hoisted_1$
|
|
17369
|
+
var _hoisted_1$91 = [
|
|
16998
17370
|
"id",
|
|
16999
17371
|
"aria-labelledby",
|
|
17000
17372
|
"aria-describedby"
|
|
17001
17373
|
];
|
|
17002
|
-
var _hoisted_2$
|
|
17374
|
+
var _hoisted_2$51 = ["onClick"];
|
|
17003
17375
|
var _hoisted_3$26 = {
|
|
17004
17376
|
key: 1,
|
|
17005
17377
|
class: "size-5 shrink-0",
|
|
@@ -17051,7 +17423,7 @@ var Tree_default = /* @__PURE__ */ defineComponent({
|
|
|
17051
17423
|
"aria-describedby": unref(describedBy),
|
|
17052
17424
|
"data-hn-tree": "",
|
|
17053
17425
|
class: unref(cn)(unref(treeEmpty)(), props.class)
|
|
17054
|
-
}), [renderSlot(_ctx.$slots, "empty", {}, () => [createTextVNode(toDisplayString(unref(t).tree.empty), 1)])], 16, _hoisted_1$
|
|
17426
|
+
}), [renderSlot(_ctx.$slots, "empty", {}, () => [createTextVNode(toDisplayString(unref(t).tree.empty), 1)])], 16, _hoisted_1$91)) : (openBlock(), createBlock(unref(TreeRoot), mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
17055
17427
|
id: unref(id),
|
|
17056
17428
|
expanded: unref(expanded),
|
|
17057
17429
|
"onUpdate:expanded": _cache[0] || (_cache[0] = ($event) => isRef(expanded) ? expanded.value = $event : null),
|
|
@@ -17099,7 +17471,7 @@ var Tree_default = /* @__PURE__ */ defineComponent({
|
|
|
17099
17471
|
}, [createVNode(DisclosureIcon_default, {
|
|
17100
17472
|
direction: "end",
|
|
17101
17473
|
open: isExpanded
|
|
17102
|
-
}, null, 8, ["open"])], 10, _hoisted_2$
|
|
17474
|
+
}, null, 8, ["open"])], 10, _hoisted_2$51)) : (openBlock(), createElementBlock("span", _hoisted_3$26)),
|
|
17103
17475
|
props.multiple ? (openBlock(), createBlock(TreeCheck_default, {
|
|
17104
17476
|
key: 2,
|
|
17105
17477
|
selected: unref(state)(item.value).selected,
|
|
@@ -17169,8 +17541,8 @@ var treeSelectRow = tv({ base: [
|
|
|
17169
17541
|
var treeSelectToggle = tv({ base: ["text-muted flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-sm", "[&>span>svg]:size-3.5"] });
|
|
17170
17542
|
//#endregion
|
|
17171
17543
|
//#region src/components/tree-select/TreeSelectSearch.vue?vue&type=script&setup=true&lang.ts
|
|
17172
|
-
var _hoisted_1$
|
|
17173
|
-
var _hoisted_2$
|
|
17544
|
+
var _hoisted_1$90 = { class: "border-line shrink-0 border-b px-1" };
|
|
17545
|
+
var _hoisted_2$50 = [
|
|
17174
17546
|
"aria-label",
|
|
17175
17547
|
"aria-controls",
|
|
17176
17548
|
"placeholder"
|
|
@@ -17197,7 +17569,7 @@ var TreeSelectSearch_default = /* @__PURE__ */ defineComponent({
|
|
|
17197
17569
|
const input = shallowRef(null);
|
|
17198
17570
|
__expose({ focus: () => input.value?.focus() });
|
|
17199
17571
|
return (_ctx, _cache) => {
|
|
17200
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17572
|
+
return openBlock(), createElementBlock("div", _hoisted_1$90, [createElementVNode("div", { class: normalizeClass(unref(textInputHost)({
|
|
17201
17573
|
variant: "bare",
|
|
17202
17574
|
size: "sm"
|
|
17203
17575
|
})) }, [
|
|
@@ -17218,7 +17590,7 @@ var TreeSelectSearch_default = /* @__PURE__ */ defineComponent({
|
|
|
17218
17590
|
trailing: !!model.value
|
|
17219
17591
|
})),
|
|
17220
17592
|
onKeydown: _cache[1] || (_cache[1] = ($event) => emit("keydown", $event))
|
|
17221
|
-
}, null, 42, _hoisted_2$
|
|
17593
|
+
}, null, 42, _hoisted_2$50), [[vModelText, model.value]]),
|
|
17222
17594
|
createVNode(Transition, {
|
|
17223
17595
|
"enter-active-class": "hn-transition-base",
|
|
17224
17596
|
"enter-from-class": "scale-90 opacity-0",
|
|
@@ -17378,7 +17750,7 @@ function useTreeSelect(props, model, open, search) {
|
|
|
17378
17750
|
}
|
|
17379
17751
|
//#endregion
|
|
17380
17752
|
//#region src/components/tree-select/TreeSelect.vue?vue&type=script&setup=true&lang.ts
|
|
17381
|
-
var _hoisted_1$
|
|
17753
|
+
var _hoisted_1$89 = [
|
|
17382
17754
|
"id",
|
|
17383
17755
|
"aria-describedby",
|
|
17384
17756
|
"aria-expanded",
|
|
@@ -17388,7 +17760,7 @@ var _hoisted_1$87 = [
|
|
|
17388
17760
|
"data-disabled",
|
|
17389
17761
|
"aria-invalid"
|
|
17390
17762
|
];
|
|
17391
|
-
var _hoisted_2$
|
|
17763
|
+
var _hoisted_2$49 = { class: "min-w-0 flex-1 truncate" };
|
|
17392
17764
|
var _hoisted_3$25 = ["onClick"];
|
|
17393
17765
|
var _hoisted_4$20 = {
|
|
17394
17766
|
key: 1,
|
|
@@ -17472,7 +17844,7 @@ var TreeSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
17472
17844
|
variant: props.variant,
|
|
17473
17845
|
size: props.size
|
|
17474
17846
|
}), unref(selectTrigger)(), props.class)
|
|
17475
|
-
}), [createElementVNode("span", _hoisted_2$
|
|
17847
|
+
}), [createElementVNode("span", _hoisted_2$49, toDisplayString(unref(selected) ? unref(selected).label : props.placeholder ?? unref(t).select.placeholder), 1), createElementVNode("span", { class: normalizeClass(unref(inputAdornment)()) }, [createVNode(DisclosureIcon_default)], 2)], 16, _hoisted_1$89)]),
|
|
17476
17848
|
_: 1
|
|
17477
17849
|
}), createVNode(unref(PopoverPortal), null, {
|
|
17478
17850
|
default: withCtx(() => [createVNode(unref(PopoverContent), {
|
|
@@ -17882,7 +18254,7 @@ var CheckboxRoot = defineComponent({
|
|
|
17882
18254
|
});
|
|
17883
18255
|
//#endregion
|
|
17884
18256
|
//#region src/components/checkbox/Checkbox.vue?vue&type=script&setup=true&lang.ts
|
|
17885
|
-
var _hoisted_1$
|
|
18257
|
+
var _hoisted_1$88 = ["data-disabled"];
|
|
17886
18258
|
//#endregion
|
|
17887
18259
|
//#region src/components/checkbox/Checkbox.vue
|
|
17888
18260
|
var Checkbox_default = /* @__PURE__ */ defineComponent({
|
|
@@ -17979,7 +18351,7 @@ var Checkbox_default = /* @__PURE__ */ defineComponent({
|
|
|
17979
18351
|
controlPlacement: props.controlPlacement
|
|
17980
18352
|
}))
|
|
17981
18353
|
}, toDisplayString(props.description), 3)) : createCommentVNode("", true)
|
|
17982
|
-
], 10, _hoisted_1$
|
|
18354
|
+
], 10, _hoisted_1$88);
|
|
17983
18355
|
};
|
|
17984
18356
|
}
|
|
17985
18357
|
});
|
|
@@ -18453,7 +18825,7 @@ var RadioGroupIndicator = defineComponent({
|
|
|
18453
18825
|
var radioDot = tv({ base: "block size-[calc(var(--hn-checkbox-size)/2)] bg-surface rounded-full" });
|
|
18454
18826
|
//#endregion
|
|
18455
18827
|
//#region src/components/radio-group/RadioGroup.vue?vue&type=script&setup=true&lang.ts
|
|
18456
|
-
var _hoisted_1$
|
|
18828
|
+
var _hoisted_1$87 = ["data-disabled"];
|
|
18457
18829
|
//#endregion
|
|
18458
18830
|
//#region src/components/radio-group/RadioGroup.vue
|
|
18459
18831
|
var RadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
@@ -18547,7 +18919,7 @@ var RadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
18547
18919
|
controlPlacement: props.controlPlacement
|
|
18548
18920
|
}))
|
|
18549
18921
|
}, toDisplayString(option.description), 3)) : createCommentVNode("", true)
|
|
18550
|
-
], 10, _hoisted_1$
|
|
18922
|
+
], 10, _hoisted_1$87);
|
|
18551
18923
|
}), 128))]),
|
|
18552
18924
|
_: 3
|
|
18553
18925
|
}, 8, [
|
|
@@ -18699,7 +19071,7 @@ var switchThumb = tv({ base: [
|
|
|
18699
19071
|
] });
|
|
18700
19072
|
//#endregion
|
|
18701
19073
|
//#region src/components/switch/Switch.vue?vue&type=script&setup=true&lang.ts
|
|
18702
|
-
var _hoisted_1$
|
|
19074
|
+
var _hoisted_1$86 = ["data-disabled"];
|
|
18703
19075
|
//#endregion
|
|
18704
19076
|
//#region src/components/switch/Switch.vue
|
|
18705
19077
|
var Switch_default = /* @__PURE__ */ defineComponent({
|
|
@@ -18780,7 +19152,7 @@ var Switch_default = /* @__PURE__ */ defineComponent({
|
|
|
18780
19152
|
controlPlacement: props.controlPlacement
|
|
18781
19153
|
}))
|
|
18782
19154
|
}, toDisplayString(props.description), 3)) : createCommentVNode("", true)
|
|
18783
|
-
], 10, _hoisted_1$
|
|
19155
|
+
], 10, _hoisted_1$86);
|
|
18784
19156
|
};
|
|
18785
19157
|
}
|
|
18786
19158
|
});
|
|
@@ -19556,7 +19928,7 @@ var SliderMarks_default = /* @__PURE__ */ defineComponent({
|
|
|
19556
19928
|
});
|
|
19557
19929
|
//#endregion
|
|
19558
19930
|
//#region src/components/slider/Slider.vue?vue&type=script&setup=true&lang.ts
|
|
19559
|
-
var _hoisted_1$
|
|
19931
|
+
var _hoisted_1$85 = [
|
|
19560
19932
|
"dir",
|
|
19561
19933
|
"data-disabled",
|
|
19562
19934
|
"data-dragging"
|
|
@@ -19677,13 +20049,13 @@ var Slider_default = /* @__PURE__ */ defineComponent({
|
|
|
19677
20049
|
"marks",
|
|
19678
20050
|
"min",
|
|
19679
20051
|
"max"
|
|
19680
|
-
])) : createCommentVNode("", true)], 16, _hoisted_1$
|
|
20052
|
+
])) : createCommentVNode("", true)], 16, _hoisted_1$85);
|
|
19681
20053
|
};
|
|
19682
20054
|
}
|
|
19683
20055
|
});
|
|
19684
20056
|
//#endregion
|
|
19685
20057
|
//#region src/components/range-slider/RangeSlider.vue?vue&type=script&setup=true&lang.ts
|
|
19686
|
-
var _hoisted_1$
|
|
20058
|
+
var _hoisted_1$84 = [
|
|
19687
20059
|
"aria-labelledby",
|
|
19688
20060
|
"aria-describedby",
|
|
19689
20061
|
"aria-invalid",
|
|
@@ -19830,7 +20202,7 @@ var RangeSlider_default = /* @__PURE__ */ defineComponent({
|
|
|
19830
20202
|
"marks",
|
|
19831
20203
|
"min",
|
|
19832
20204
|
"max"
|
|
19833
|
-
])) : createCommentVNode("", true)], 16, _hoisted_1$
|
|
20205
|
+
])) : createCommentVNode("", true)], 16, _hoisted_1$84);
|
|
19834
20206
|
};
|
|
19835
20207
|
}
|
|
19836
20208
|
});
|
|
@@ -19933,11 +20305,11 @@ var toggle = tv({
|
|
|
19933
20305
|
});
|
|
19934
20306
|
//#endregion
|
|
19935
20307
|
//#region src/components/toggle/Toggle.vue?vue&type=script&setup=true&lang.ts
|
|
19936
|
-
var _hoisted_1$
|
|
20308
|
+
var _hoisted_1$83 = {
|
|
19937
20309
|
key: "on",
|
|
19938
20310
|
class: "inline-flex items-center justify-center"
|
|
19939
20311
|
};
|
|
19940
|
-
var _hoisted_2$
|
|
20312
|
+
var _hoisted_2$48 = {
|
|
19941
20313
|
key: "off",
|
|
19942
20314
|
class: "inline-flex items-center justify-center"
|
|
19943
20315
|
};
|
|
@@ -20018,7 +20390,7 @@ var Toggle_default = /* @__PURE__ */ defineComponent({
|
|
|
20018
20390
|
"leave-active-class": "hn-transition absolute",
|
|
20019
20391
|
"leave-to-class": "scale-90 opacity-0"
|
|
20020
20392
|
}, {
|
|
20021
|
-
default: withCtx(() => [swapped.value ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
20393
|
+
default: withCtx(() => [swapped.value ? (openBlock(), createElementBlock("span", _hoisted_1$83, [renderSlot(_ctx.$slots, "pressed-icon")])) : (openBlock(), createElementBlock("span", _hoisted_2$48, [renderSlot(_ctx.$slots, "icon", { pressed: pressed.value })]))]),
|
|
20022
20394
|
_: 3
|
|
20023
20395
|
})], 2)) : createCommentVNode("", true),
|
|
20024
20396
|
unref(slots).default ? (openBlock(), createElementBlock("span", _hoisted_3$24, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true)
|
|
@@ -20441,7 +20813,7 @@ var toolbarSeparator = tv({
|
|
|
20441
20813
|
});
|
|
20442
20814
|
//#endregion
|
|
20443
20815
|
//#region src/components/toolbar/Toolbar.vue?vue&type=script&setup=true&lang.ts
|
|
20444
|
-
var _hoisted_1$
|
|
20816
|
+
var _hoisted_1$82 = ["dir"];
|
|
20445
20817
|
//#endregion
|
|
20446
20818
|
//#region src/components/toolbar/Toolbar.vue
|
|
20447
20819
|
var Toolbar_default = /* @__PURE__ */ defineComponent({
|
|
@@ -20489,7 +20861,7 @@ var Toolbar_default = /* @__PURE__ */ defineComponent({
|
|
|
20489
20861
|
ref: root,
|
|
20490
20862
|
dir: unref(rootDirection),
|
|
20491
20863
|
"data-hn-toolbar": ""
|
|
20492
|
-
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1$
|
|
20864
|
+
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1$82)]),
|
|
20493
20865
|
_: 3
|
|
20494
20866
|
}, 8, [
|
|
20495
20867
|
"orientation",
|
|
@@ -20696,8 +21068,8 @@ var navigationMenuViewport = tv({
|
|
|
20696
21068
|
});
|
|
20697
21069
|
//#endregion
|
|
20698
21070
|
//#region src/components/navigation-menu/NavigationMenu.vue?vue&type=script&setup=true&lang.ts
|
|
20699
|
-
var _hoisted_1$
|
|
20700
|
-
var _hoisted_2$
|
|
21071
|
+
var _hoisted_1$81 = ["dir"];
|
|
21072
|
+
var _hoisted_2$47 = ["data-hn-ready"];
|
|
20701
21073
|
//#endregion
|
|
20702
21074
|
//#region src/components/navigation-menu/NavigationMenu.vue
|
|
20703
21075
|
var NavigationMenu_default = /* @__PURE__ */ defineComponent({
|
|
@@ -20780,13 +21152,13 @@ var NavigationMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
20780
21152
|
ref: viewport,
|
|
20781
21153
|
"data-hn-ready": unref(ready) ? "" : void 0,
|
|
20782
21154
|
style: normalizeStyle(unref(rekaNavigationViewportStyle))
|
|
20783
|
-
}, null, 12, _hoisted_2$
|
|
21155
|
+
}, null, 12, _hoisted_2$47)]),
|
|
20784
21156
|
_: 1
|
|
20785
21157
|
}, 8, [
|
|
20786
21158
|
"align",
|
|
20787
21159
|
"data-side",
|
|
20788
21160
|
"class"
|
|
20789
|
-
])], 12, _hoisted_1$
|
|
21161
|
+
])], 12, _hoisted_1$81)]),
|
|
20790
21162
|
_: 3
|
|
20791
21163
|
}, 8, [
|
|
20792
21164
|
"modelValue",
|
|
@@ -20822,7 +21194,7 @@ var NavigationMenuItem_default = /* @__PURE__ */ defineComponent({
|
|
|
20822
21194
|
});
|
|
20823
21195
|
//#endregion
|
|
20824
21196
|
//#region src/components/navigation-menu/NavigationMenuTrigger.vue?vue&type=script&setup=true&lang.ts
|
|
20825
|
-
var _hoisted_1$
|
|
21197
|
+
var _hoisted_1$80 = { class: "min-w-0 flex-1" };
|
|
20826
21198
|
//#endregion
|
|
20827
21199
|
//#region src/components/navigation-menu/NavigationMenuTrigger.vue
|
|
20828
21200
|
var NavigationMenuTrigger_default = /* @__PURE__ */ defineComponent({
|
|
@@ -20851,7 +21223,7 @@ var NavigationMenuTrigger_default = /* @__PURE__ */ defineComponent({
|
|
|
20851
21223
|
class: normalizeClass(unref(navigationMenuIcon)()),
|
|
20852
21224
|
"aria-hidden": "true"
|
|
20853
21225
|
}, [renderSlot(_ctx.$slots, "icon")], 2)) : createCommentVNode("", true),
|
|
20854
|
-
createElementVNode("span", _hoisted_1$
|
|
21226
|
+
createElementVNode("span", _hoisted_1$80, [renderSlot(_ctx.$slots, "default")]),
|
|
20855
21227
|
createElementVNode("span", { class: normalizeClass(unref(navigationMenuIcon)()) }, [renderSlot(_ctx.$slots, "trailing", {}, () => [createElementVNode("span", { class: normalizeClass(unref(navigationMenuDisclosure)({ orientation: unref(menu).orientation.value })) }, [createVNode(DisclosureIcon_default, { direction: unref(menu).orientation.value === "vertical" ? "end" : "down" }, null, 8, ["direction"])], 2)])], 2)
|
|
20856
21228
|
]),
|
|
20857
21229
|
_: 3
|
|
@@ -20861,8 +21233,8 @@ var NavigationMenuTrigger_default = /* @__PURE__ */ defineComponent({
|
|
|
20861
21233
|
});
|
|
20862
21234
|
//#endregion
|
|
20863
21235
|
//#region src/components/navigation-menu/NavigationMenuLink.vue?vue&type=script&setup=true&lang.ts
|
|
20864
|
-
var _hoisted_1$
|
|
20865
|
-
var _hoisted_2$
|
|
21236
|
+
var _hoisted_1$79 = { class: "flex min-w-0 flex-1 flex-col gap-1" };
|
|
21237
|
+
var _hoisted_2$46 = {
|
|
20866
21238
|
key: 0,
|
|
20867
21239
|
class: "text-muted text-xs leading-relaxed font-normal"
|
|
20868
21240
|
};
|
|
@@ -20912,7 +21284,7 @@ var NavigationMenuLink_default = /* @__PURE__ */ defineComponent({
|
|
|
20912
21284
|
class: normalizeClass(unref(navigationMenuIcon)()),
|
|
20913
21285
|
"aria-hidden": "true"
|
|
20914
21286
|
}, [renderSlot(_ctx.$slots, "icon")], 2)) : createCommentVNode("", true),
|
|
20915
|
-
createElementVNode("span", _hoisted_1$
|
|
21287
|
+
createElementVNode("span", _hoisted_1$79, [createElementVNode("span", null, [renderSlot(_ctx.$slots, "default")]), props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_2$46, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(props.description), 1)])])) : createCommentVNode("", true)]),
|
|
20916
21288
|
_ctx.$slots.trailing ? (openBlock(), createElementBlock("span", {
|
|
20917
21289
|
key: 1,
|
|
20918
21290
|
class: normalizeClass(unref(navigationMenuIcon)())
|
|
@@ -21372,7 +21744,7 @@ var tagsInputControl = tv({
|
|
|
21372
21744
|
var tagsInputChip = tv({ base: "max-w-full min-w-0 shrink data-disabled:opacity-100" });
|
|
21373
21745
|
//#endregion
|
|
21374
21746
|
//#region src/components/tags-input/TagsInputChip.vue?vue&type=script&setup=true&lang.ts
|
|
21375
|
-
var _hoisted_1$
|
|
21747
|
+
var _hoisted_1$78 = { class: "min-w-0 truncate" };
|
|
21376
21748
|
//#endregion
|
|
21377
21749
|
//#region src/components/tags-input/TagsInputChip.vue
|
|
21378
21750
|
var TagsInputChip_default = /* @__PURE__ */ defineComponent({
|
|
@@ -21399,7 +21771,7 @@ var TagsInputChip_default = /* @__PURE__ */ defineComponent({
|
|
|
21399
21771
|
onRemove: _cache[0] || (_cache[0] = ($event) => emit("remove"))
|
|
21400
21772
|
}), {
|
|
21401
21773
|
default: withCtx(() => [createVNode(unref(TagsInputItemText), { "as-child": "" }, {
|
|
21402
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_1$
|
|
21774
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_1$78, toDisplayString(props.tag), 1)]),
|
|
21403
21775
|
_: 1
|
|
21404
21776
|
})]),
|
|
21405
21777
|
_: 1
|
|
@@ -21413,7 +21785,7 @@ var TagsInputChip_default = /* @__PURE__ */ defineComponent({
|
|
|
21413
21785
|
});
|
|
21414
21786
|
//#endregion
|
|
21415
21787
|
//#region src/components/tags-input/TagsInput.vue?vue&type=script&setup=true&lang.ts
|
|
21416
|
-
var _hoisted_1$
|
|
21788
|
+
var _hoisted_1$77 = ["data-invalid", "data-disabled"];
|
|
21417
21789
|
//#endregion
|
|
21418
21790
|
//#region src/components/tags-input/TagsInput.vue
|
|
21419
21791
|
var TagsInput_default = /* @__PURE__ */ defineComponent({
|
|
@@ -21564,7 +21936,7 @@ var TagsInput_default = /* @__PURE__ */ defineComponent({
|
|
|
21564
21936
|
_: 1
|
|
21565
21937
|
}, 8, ["label"])], 2)) : createCommentVNode("", true)]),
|
|
21566
21938
|
_: 1
|
|
21567
|
-
})], 10, _hoisted_1$
|
|
21939
|
+
})], 10, _hoisted_1$77);
|
|
21568
21940
|
};
|
|
21569
21941
|
}
|
|
21570
21942
|
});
|
|
@@ -21619,12 +21991,12 @@ var multiComboboxHost = tv({
|
|
|
21619
21991
|
var multiComboboxEnd = tv({ base: "absolute inset-y-0 end-0 flex items-stretch" });
|
|
21620
21992
|
//#endregion
|
|
21621
21993
|
//#region src/components/multi-combobox/MultiCombobox.vue?vue&type=script&setup=true&lang.ts
|
|
21622
|
-
var _hoisted_1$
|
|
21994
|
+
var _hoisted_1$76 = [
|
|
21623
21995
|
"data-invalid",
|
|
21624
21996
|
"data-disabled",
|
|
21625
21997
|
"aria-busy"
|
|
21626
21998
|
];
|
|
21627
|
-
var _hoisted_2$
|
|
21999
|
+
var _hoisted_2$45 = { class: "min-w-0 truncate" };
|
|
21628
22000
|
//#endregion
|
|
21629
22001
|
//#region src/components/multi-combobox/MultiCombobox.vue
|
|
21630
22002
|
var MultiCombobox_default = /* @__PURE__ */ defineComponent({
|
|
@@ -21720,7 +22092,7 @@ var MultiCombobox_default = /* @__PURE__ */ defineComponent({
|
|
|
21720
22092
|
class: normalizeClass(unref(tagsInputChip)()),
|
|
21721
22093
|
onRemove: ($event) => unref(remove)(option.value)
|
|
21722
22094
|
}, {
|
|
21723
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_2$
|
|
22095
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_2$45, toDisplayString(option.label), 1)]),
|
|
21724
22096
|
_: 2
|
|
21725
22097
|
}, 1032, [
|
|
21726
22098
|
"size",
|
|
@@ -21787,7 +22159,7 @@ var MultiCombobox_default = /* @__PURE__ */ defineComponent({
|
|
|
21787
22159
|
"aria-label",
|
|
21788
22160
|
"disabled",
|
|
21789
22161
|
"class"
|
|
21790
|
-
])], 2)], 10, _hoisted_1$
|
|
22162
|
+
])], 2)], 10, _hoisted_1$76)]),
|
|
21791
22163
|
_: 1
|
|
21792
22164
|
}), createVNode(ComboboxList_default, {
|
|
21793
22165
|
options: props.options,
|
|
@@ -22519,7 +22891,7 @@ var dateFieldSegment = tv({
|
|
|
22519
22891
|
});
|
|
22520
22892
|
//#endregion
|
|
22521
22893
|
//#region src/components/date-field/DateField.vue?vue&type=script&setup=true&lang.ts
|
|
22522
|
-
var _hoisted_1$
|
|
22894
|
+
var _hoisted_1$75 = ["data-invalid", "data-disabled"];
|
|
22523
22895
|
//#endregion
|
|
22524
22896
|
//#region src/components/date-field/DateField.vue
|
|
22525
22897
|
var DateField_default = /* @__PURE__ */ defineComponent({
|
|
@@ -22676,7 +23048,7 @@ var DateField_default = /* @__PURE__ */ defineComponent({
|
|
|
22676
23048
|
key: 1,
|
|
22677
23049
|
class: normalizeClass(unref(inputAdornment)())
|
|
22678
23050
|
}, [renderSlot(_ctx.$slots, "trailing")], 2)) : createCommentVNode("", true)
|
|
22679
|
-
], 10, _hoisted_1$
|
|
23051
|
+
], 10, _hoisted_1$75);
|
|
22680
23052
|
};
|
|
22681
23053
|
}
|
|
22682
23054
|
});
|
|
@@ -22707,7 +23079,7 @@ var InputGroupScope_default = /* @__PURE__ */ defineComponent({
|
|
|
22707
23079
|
var datePickerContent = tv({ base: "hn-anim-pop z-(--hn-z-overlay) p-2 shadow-md outline-none" });
|
|
22708
23080
|
//#endregion
|
|
22709
23081
|
//#region src/components/date-picker/DatePicker.vue?vue&type=script&setup=true&lang.ts
|
|
22710
|
-
var _hoisted_1$
|
|
23082
|
+
var _hoisted_1$74 = ["data-invalid", "data-disabled"];
|
|
22711
23083
|
//#endregion
|
|
22712
23084
|
//#region src/components/date-picker/DatePicker.vue
|
|
22713
23085
|
var DatePicker_default = /* @__PURE__ */ defineComponent({
|
|
@@ -22824,7 +23196,7 @@ var DatePicker_default = /* @__PURE__ */ defineComponent({
|
|
|
22824
23196
|
_: 1
|
|
22825
23197
|
}, 8, ["label", "disabled"])]),
|
|
22826
23198
|
_: 1
|
|
22827
|
-
})], 10, _hoisted_1$
|
|
23199
|
+
})], 10, _hoisted_1$74)]),
|
|
22828
23200
|
_: 3
|
|
22829
23201
|
}), createVNode(unref(PopoverPortal), null, {
|
|
22830
23202
|
default: withCtx(() => [createVNode(unref(PopoverContent), {
|
|
@@ -22889,7 +23261,7 @@ function isRangeInvalid({ start, end }, bounds) {
|
|
|
22889
23261
|
}
|
|
22890
23262
|
//#endregion
|
|
22891
23263
|
//#region src/components/date-range-field/DateRangeField.vue?vue&type=script&setup=true&lang.ts
|
|
22892
|
-
var _hoisted_1$
|
|
23264
|
+
var _hoisted_1$73 = ["data-invalid", "data-disabled"];
|
|
22893
23265
|
//#endregion
|
|
22894
23266
|
//#region src/components/date-range-field/DateRangeField.vue
|
|
22895
23267
|
var DateRangeField_default = /* @__PURE__ */ defineComponent({
|
|
@@ -23058,7 +23430,7 @@ var DateRangeField_default = /* @__PURE__ */ defineComponent({
|
|
|
23058
23430
|
key: 1,
|
|
23059
23431
|
class: normalizeClass(unref(inputAdornment)())
|
|
23060
23432
|
}, [renderSlot(_ctx.$slots, "trailing")], 2)) : createCommentVNode("", true)
|
|
23061
|
-
], 10, _hoisted_1$
|
|
23433
|
+
], 10, _hoisted_1$73);
|
|
23062
23434
|
};
|
|
23063
23435
|
}
|
|
23064
23436
|
});
|
|
@@ -23306,7 +23678,7 @@ var RangeCalendar_default = /* @__PURE__ */ defineComponent({
|
|
|
23306
23678
|
});
|
|
23307
23679
|
//#endregion
|
|
23308
23680
|
//#region src/components/date-range-picker/DateRangePicker.vue?vue&type=script&setup=true&lang.ts
|
|
23309
|
-
var _hoisted_1$
|
|
23681
|
+
var _hoisted_1$72 = ["data-invalid", "data-disabled"];
|
|
23310
23682
|
//#endregion
|
|
23311
23683
|
//#region src/components/date-range-picker/DateRangePicker.vue
|
|
23312
23684
|
var DateRangePicker_default = /* @__PURE__ */ defineComponent({
|
|
@@ -23424,7 +23796,7 @@ var DateRangePicker_default = /* @__PURE__ */ defineComponent({
|
|
|
23424
23796
|
_: 1
|
|
23425
23797
|
}, 8, ["label", "disabled"])]),
|
|
23426
23798
|
_: 1
|
|
23427
|
-
})], 10, _hoisted_1$
|
|
23799
|
+
})], 10, _hoisted_1$72)]),
|
|
23428
23800
|
_: 3
|
|
23429
23801
|
}), createVNode(unref(PopoverPortal), null, {
|
|
23430
23802
|
default: withCtx(() => [createVNode(unref(PopoverContent), {
|
|
@@ -23478,7 +23850,7 @@ var DateRangePicker_default = /* @__PURE__ */ defineComponent({
|
|
|
23478
23850
|
});
|
|
23479
23851
|
//#endregion
|
|
23480
23852
|
//#region src/components/time-field/TimeField.vue?vue&type=script&setup=true&lang.ts
|
|
23481
|
-
var _hoisted_1$
|
|
23853
|
+
var _hoisted_1$71 = ["data-invalid", "data-disabled"];
|
|
23482
23854
|
//#endregion
|
|
23483
23855
|
//#region src/components/time-field/TimeField.vue
|
|
23484
23856
|
var TimeField_default = /* @__PURE__ */ defineComponent({
|
|
@@ -23641,7 +24013,7 @@ var TimeField_default = /* @__PURE__ */ defineComponent({
|
|
|
23641
24013
|
key: 1,
|
|
23642
24014
|
class: normalizeClass(unref(inputAdornment)())
|
|
23643
24015
|
}, [renderSlot(_ctx.$slots, "trailing")], 2)) : createCommentVNode("", true)
|
|
23644
|
-
], 10, _hoisted_1$
|
|
24016
|
+
], 10, _hoisted_1$71);
|
|
23645
24017
|
};
|
|
23646
24018
|
}
|
|
23647
24019
|
});
|
|
@@ -23650,7 +24022,7 @@ var TimeField_default = /* @__PURE__ */ defineComponent({
|
|
|
23650
24022
|
var dateTimePickerFooter = tv({ base: "mt-2 flex items-center justify-between gap-2" });
|
|
23651
24023
|
//#endregion
|
|
23652
24024
|
//#region src/components/date-time-picker/DateTimePicker.vue?vue&type=script&setup=true&lang.ts
|
|
23653
|
-
var _hoisted_1$
|
|
24025
|
+
var _hoisted_1$70 = ["data-invalid", "data-disabled"];
|
|
23654
24026
|
//#endregion
|
|
23655
24027
|
//#region src/components/date-time-picker/DateTimePicker.vue
|
|
23656
24028
|
var DateTimePicker_default = /* @__PURE__ */ defineComponent({
|
|
@@ -23783,7 +24155,7 @@ var DateTimePicker_default = /* @__PURE__ */ defineComponent({
|
|
|
23783
24155
|
_: 1
|
|
23784
24156
|
}, 8, ["label", "disabled"])]),
|
|
23785
24157
|
_: 1
|
|
23786
|
-
})], 10, _hoisted_1$
|
|
24158
|
+
})], 10, _hoisted_1$70)]),
|
|
23787
24159
|
_: 3
|
|
23788
24160
|
}), createVNode(unref(PopoverPortal), null, {
|
|
23789
24161
|
default: withCtx(() => [createVNode(unref(PopoverContent), {
|
|
@@ -24129,8 +24501,8 @@ function useRatingScale(model, max, stars) {
|
|
|
24129
24501
|
}
|
|
24130
24502
|
//#endregion
|
|
24131
24503
|
//#region src/components/rating/Rating.vue?vue&type=script&setup=true&lang.ts
|
|
24132
|
-
var _hoisted_1$
|
|
24133
|
-
var _hoisted_2$
|
|
24504
|
+
var _hoisted_1$69 = ["aria-label"];
|
|
24505
|
+
var _hoisted_2$44 = [
|
|
24134
24506
|
"name",
|
|
24135
24507
|
"value",
|
|
24136
24508
|
"disabled",
|
|
@@ -24181,7 +24553,7 @@ var Rating_default = /* @__PURE__ */ defineComponent({
|
|
|
24181
24553
|
class: normalizeClass(unref(ratingFill)()),
|
|
24182
24554
|
style: normalizeStyle({ width: unref(starFill)(unref(value), index) })
|
|
24183
24555
|
}, [createVNode(unref(Star), { class: normalizeClass(unref(ratingStar)({ active: true })) }, null, 8, ["class"])], 6)], 2);
|
|
24184
|
-
}), 128))], 16, _hoisted_1$
|
|
24556
|
+
}), 128))], 16, _hoisted_1$69)) : (openBlock(), createBlock(unref(RatingRoot), mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
24185
24557
|
"data-hn-rating": "",
|
|
24186
24558
|
"data-disabled": unref(disabled) ? "" : void 0,
|
|
24187
24559
|
"data-invalid": unref(invalid) ? "" : void 0,
|
|
@@ -24230,7 +24602,7 @@ var Rating_default = /* @__PURE__ */ defineComponent({
|
|
|
24230
24602
|
value: model.value,
|
|
24231
24603
|
disabled: unref(disabled),
|
|
24232
24604
|
form: _ctx.$attrs.form
|
|
24233
|
-
}, null, 8, _hoisted_2$
|
|
24605
|
+
}, null, 8, _hoisted_2$44)) : createCommentVNode("", true)]),
|
|
24234
24606
|
_: 1
|
|
24235
24607
|
}, 16, [
|
|
24236
24608
|
"data-disabled",
|
|
@@ -24405,13 +24777,13 @@ function formatSize(tag, bytes) {
|
|
|
24405
24777
|
}
|
|
24406
24778
|
//#endregion
|
|
24407
24779
|
//#region src/components/file-upload/FileUpload.vue?vue&type=script&setup=true&lang.ts
|
|
24408
|
-
var _hoisted_1$
|
|
24780
|
+
var _hoisted_1$68 = [
|
|
24409
24781
|
"name",
|
|
24410
24782
|
"accept",
|
|
24411
24783
|
"multiple",
|
|
24412
24784
|
"disabled"
|
|
24413
24785
|
];
|
|
24414
|
-
var _hoisted_2$
|
|
24786
|
+
var _hoisted_2$43 = [
|
|
24415
24787
|
"id",
|
|
24416
24788
|
"aria-describedby",
|
|
24417
24789
|
"aria-invalid",
|
|
@@ -24500,7 +24872,7 @@ var FileUpload_default = /* @__PURE__ */ defineComponent({
|
|
|
24500
24872
|
multiple: props.multiple,
|
|
24501
24873
|
disabled: unref(disabled),
|
|
24502
24874
|
onChange: _cache[0] || (_cache[0] = (...args) => unref(onChange) && unref(onChange)(...args))
|
|
24503
|
-
}, null, 40, _hoisted_1$
|
|
24875
|
+
}, null, 40, _hoisted_1$68),
|
|
24504
24876
|
props.variant === "area" ? (openBlock(), createElementBlock("button", mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
24505
24877
|
type: "button",
|
|
24506
24878
|
"data-hn-file-upload-area": "",
|
|
@@ -24524,7 +24896,7 @@ var FileUpload_default = /* @__PURE__ */ defineComponent({
|
|
|
24524
24896
|
}, {
|
|
24525
24897
|
default: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(unref(Upload), { "aria-hidden": "true" })])]),
|
|
24526
24898
|
_: 3
|
|
24527
|
-
}, 8, ["swapped"]), renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(unref(t).upload.dropHint), 1)])], 16, _hoisted_2$
|
|
24899
|
+
}, 8, ["swapped"]), renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(unref(t).upload.dropHint), 1)])], 16, _hoisted_2$43)) : (openBlock(), createBlock(Button_default, mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
24528
24900
|
id: unref(fieldId),
|
|
24529
24901
|
"aria-describedby": unref(describedBy),
|
|
24530
24902
|
"aria-invalid": unref(invalid) || void 0,
|
|
@@ -24919,8 +25291,8 @@ var AlertDialog_default = /* @__PURE__ */ defineComponent({
|
|
|
24919
25291
|
});
|
|
24920
25292
|
//#endregion
|
|
24921
25293
|
//#region src/components/popconfirm/Popconfirm.vue?vue&type=script&setup=true&lang.ts
|
|
24922
|
-
var _hoisted_1$
|
|
24923
|
-
var _hoisted_2$
|
|
25294
|
+
var _hoisted_1$67 = { class: "flex flex-col gap-0.5" };
|
|
25295
|
+
var _hoisted_2$42 = { class: "flex justify-end gap-2" };
|
|
24924
25296
|
//#endregion
|
|
24925
25297
|
//#region src/components/popconfirm/Popconfirm.vue
|
|
24926
25298
|
var Popconfirm_default = /* @__PURE__ */ defineComponent({
|
|
@@ -25006,7 +25378,7 @@ var Popconfirm_default = /* @__PURE__ */ defineComponent({
|
|
|
25006
25378
|
class: normalizeClass(unref(cn)("hn-anim-pop z-(--hn-z-overlay) flex w-max max-w-xs min-w-56 flex-col gap-2.5 p-3 shadow-md outline-none", props.class))
|
|
25007
25379
|
}, {
|
|
25008
25380
|
default: withCtx(() => [
|
|
25009
|
-
createElementVNode("div", _hoisted_1$
|
|
25381
|
+
createElementVNode("div", _hoisted_1$67, [createVNode(Text_default, {
|
|
25010
25382
|
id: unref(titleId),
|
|
25011
25383
|
weight: "medium"
|
|
25012
25384
|
}, {
|
|
@@ -25022,7 +25394,7 @@ var Popconfirm_default = /* @__PURE__ */ defineComponent({
|
|
|
25022
25394
|
_: 1
|
|
25023
25395
|
}, 8, ["id"])) : createCommentVNode("", true)]),
|
|
25024
25396
|
renderSlot(_ctx.$slots, "content"),
|
|
25025
|
-
createElementVNode("div", _hoisted_2$
|
|
25397
|
+
createElementVNode("div", _hoisted_2$42, [createVNode(Button_default, {
|
|
25026
25398
|
size: "sm",
|
|
25027
25399
|
variant: "soft",
|
|
25028
25400
|
tone: "neutral",
|
|
@@ -25375,7 +25747,7 @@ var dropdownItem = tv({
|
|
|
25375
25747
|
});
|
|
25376
25748
|
//#endregion
|
|
25377
25749
|
//#region src/components/context-menu/ContextMenuItem.vue?vue&type=script&setup=true&lang.ts
|
|
25378
|
-
var _hoisted_1$
|
|
25750
|
+
var _hoisted_1$66 = { class: "min-w-0 flex-1" };
|
|
25379
25751
|
//#endregion
|
|
25380
25752
|
//#region src/components/context-menu/ContextMenuItem.vue
|
|
25381
25753
|
var ContextMenuItem_default = /* @__PURE__ */ defineComponent({
|
|
@@ -25401,7 +25773,7 @@ var ContextMenuItem_default = /* @__PURE__ */ defineComponent({
|
|
|
25401
25773
|
}), {
|
|
25402
25774
|
default: withCtx(() => [
|
|
25403
25775
|
renderSlot(_ctx.$slots, "icon"),
|
|
25404
|
-
createElementVNode("span", _hoisted_1$
|
|
25776
|
+
createElementVNode("span", _hoisted_1$66, [renderSlot(_ctx.$slots, "default")]),
|
|
25405
25777
|
renderSlot(_ctx.$slots, "trailing")
|
|
25406
25778
|
]),
|
|
25407
25779
|
_: 3
|
|
@@ -25415,8 +25787,8 @@ var ContextMenuItem_default = /* @__PURE__ */ defineComponent({
|
|
|
25415
25787
|
});
|
|
25416
25788
|
//#endregion
|
|
25417
25789
|
//#region src/components/context-menu/ContextMenuCheckboxItem.vue?vue&type=script&setup=true&lang.ts
|
|
25418
|
-
var _hoisted_1$
|
|
25419
|
-
var _hoisted_2$
|
|
25790
|
+
var _hoisted_1$65 = { class: "min-w-0 flex-1" };
|
|
25791
|
+
var _hoisted_2$41 = { class: "flex size-4 shrink-0 items-center justify-center" };
|
|
25420
25792
|
//#endregion
|
|
25421
25793
|
//#region src/components/context-menu/ContextMenuCheckboxItem.vue
|
|
25422
25794
|
var ContextMenuCheckboxItem_default = /* @__PURE__ */ defineComponent({
|
|
@@ -25448,9 +25820,9 @@ var ContextMenuCheckboxItem_default = /* @__PURE__ */ defineComponent({
|
|
|
25448
25820
|
onSelect: _cache[1] || (_cache[1] = (event) => event.preventDefault())
|
|
25449
25821
|
}), {
|
|
25450
25822
|
default: withCtx(() => [
|
|
25451
|
-
createElementVNode("span", _hoisted_1$
|
|
25823
|
+
createElementVNode("span", _hoisted_1$65, [renderSlot(_ctx.$slots, "default")]),
|
|
25452
25824
|
renderSlot(_ctx.$slots, "trailing"),
|
|
25453
|
-
createElementVNode("span", _hoisted_2$
|
|
25825
|
+
createElementVNode("span", _hoisted_2$41, [createVNode(unref(ContextMenuItemIndicator), null, {
|
|
25454
25826
|
default: withCtx(() => [createVNode(unref(Check))]),
|
|
25455
25827
|
_: 1
|
|
25456
25828
|
})])
|
|
@@ -25483,7 +25855,7 @@ var ContextMenuGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
25483
25855
|
});
|
|
25484
25856
|
//#endregion
|
|
25485
25857
|
//#region src/components/context-menu/ContextMenuSub.vue?vue&type=script&setup=true&lang.ts
|
|
25486
|
-
var _hoisted_1$
|
|
25858
|
+
var _hoisted_1$64 = { class: "min-w-0 flex-1" };
|
|
25487
25859
|
//#endregion
|
|
25488
25860
|
//#region src/components/context-menu/ContextMenuSub.vue
|
|
25489
25861
|
var ContextMenuSub_default = /* @__PURE__ */ defineComponent({
|
|
@@ -25514,7 +25886,7 @@ var ContextMenuSub_default = /* @__PURE__ */ defineComponent({
|
|
|
25514
25886
|
}, {
|
|
25515
25887
|
default: withCtx(() => [
|
|
25516
25888
|
renderSlot(_ctx.$slots, "icon"),
|
|
25517
|
-
createElementVNode("span", _hoisted_1$
|
|
25889
|
+
createElementVNode("span", _hoisted_1$64, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(props.label), 1)])]),
|
|
25518
25890
|
createVNode(unref(ChevronRight), { class: "text-muted" })
|
|
25519
25891
|
]),
|
|
25520
25892
|
_: 3
|
|
@@ -25597,8 +25969,8 @@ var ContextMenuRadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
25597
25969
|
});
|
|
25598
25970
|
//#endregion
|
|
25599
25971
|
//#region src/components/context-menu/ContextMenuRadioItem.vue?vue&type=script&setup=true&lang.ts
|
|
25600
|
-
var _hoisted_1$
|
|
25601
|
-
var _hoisted_2$
|
|
25972
|
+
var _hoisted_1$63 = { class: "min-w-0 flex-1" };
|
|
25973
|
+
var _hoisted_2$40 = { class: "flex size-4 shrink-0 items-center justify-center" };
|
|
25602
25974
|
//#endregion
|
|
25603
25975
|
//#region src/components/context-menu/ContextMenuRadioItem.vue
|
|
25604
25976
|
var ContextMenuRadioItem_default = /* @__PURE__ */ defineComponent({
|
|
@@ -25620,7 +25992,7 @@ var ContextMenuRadioItem_default = /* @__PURE__ */ defineComponent({
|
|
|
25620
25992
|
"text-value": props.textValue,
|
|
25621
25993
|
class: unref(cn)(unref(dropdownItem)(), props.class)
|
|
25622
25994
|
}), {
|
|
25623
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_1$
|
|
25995
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_1$63, [renderSlot(_ctx.$slots, "default")]), createElementVNode("span", _hoisted_2$40, [createVNode(unref(ContextMenuItemIndicator), null, {
|
|
25624
25996
|
default: withCtx(() => [createVNode(unref(Check), { class: "size-4" })]),
|
|
25625
25997
|
_: 1
|
|
25626
25998
|
})])]),
|
|
@@ -25644,6 +26016,30 @@ function useScrollViewport() {
|
|
|
25644
26016
|
};
|
|
25645
26017
|
}
|
|
25646
26018
|
//#endregion
|
|
26019
|
+
//#region src/components/form/scope.ts
|
|
26020
|
+
var FORM_SCOPE_KEY = Symbol("hn-form-scope");
|
|
26021
|
+
function provideFormScope() {
|
|
26022
|
+
const active = shallowRef(/* @__PURE__ */ new Set());
|
|
26023
|
+
provide(FORM_SCOPE_KEY, { set(id, submitting) {
|
|
26024
|
+
if (active.value.has(id) === submitting) return;
|
|
26025
|
+
const next = new Set(active.value);
|
|
26026
|
+
if (submitting) next.add(id);
|
|
26027
|
+
else next.delete(id);
|
|
26028
|
+
active.value = next;
|
|
26029
|
+
} });
|
|
26030
|
+
return computed(() => active.value.size > 0);
|
|
26031
|
+
}
|
|
26032
|
+
function reportFormScope(submitting) {
|
|
26033
|
+
const scope = inject(FORM_SCOPE_KEY, null);
|
|
26034
|
+
if (!scope) return;
|
|
26035
|
+
const id = Symbol("form");
|
|
26036
|
+
watch(submitting, (value) => scope.set(id, value), {
|
|
26037
|
+
immediate: true,
|
|
26038
|
+
flush: "sync"
|
|
26039
|
+
});
|
|
26040
|
+
onScopeDispose(() => scope.set(id, false));
|
|
26041
|
+
}
|
|
26042
|
+
//#endregion
|
|
25647
26043
|
//#region src/components/sheet/composables/useDragToDismiss.ts
|
|
25648
26044
|
var DISTANCE_RATIO = .3;
|
|
25649
26045
|
var FLICK_VELOCITY = .6;
|
|
@@ -25741,8 +26137,8 @@ var sheetHandle = tv({
|
|
|
25741
26137
|
});
|
|
25742
26138
|
//#endregion
|
|
25743
26139
|
//#region src/components/sheet/Sheet.vue?vue&type=script&setup=true&lang.ts
|
|
25744
|
-
var _hoisted_1$
|
|
25745
|
-
var _hoisted_2$
|
|
26140
|
+
var _hoisted_1$62 = ["data-dragging"];
|
|
26141
|
+
var _hoisted_2$39 = ["data-disabled"];
|
|
25746
26142
|
var _hoisted_3$22 = {
|
|
25747
26143
|
key: 1,
|
|
25748
26144
|
class: "flex items-start justify-between gap-4 px-(--hn-panel-p)"
|
|
@@ -25791,13 +26187,15 @@ var Sheet_default = /* @__PURE__ */ defineComponent({
|
|
|
25791
26187
|
emits: ["update:open"],
|
|
25792
26188
|
setup(__props, { expose: __expose }) {
|
|
25793
26189
|
const props = __props;
|
|
26190
|
+
const submitting = provideFormScope();
|
|
26191
|
+
const locked = computed(() => props.locked || submitting.value);
|
|
25794
26192
|
const slots = useSlots();
|
|
25795
26193
|
const { scrollArea, viewport } = useScrollViewport();
|
|
25796
26194
|
__expose({ viewport });
|
|
25797
26195
|
const open = useModel(__props, "open");
|
|
25798
26196
|
const { content: panel, present } = useOverlayPortal(open);
|
|
25799
26197
|
const { dragging, offset, onPointerDown } = useDragToDismiss(() => panel.value?.$el ?? null, {
|
|
25800
|
-
enabled: () => !
|
|
26198
|
+
enabled: () => !locked.value,
|
|
25801
26199
|
open,
|
|
25802
26200
|
dismiss: () => open.value = false
|
|
25803
26201
|
});
|
|
@@ -25806,7 +26204,7 @@ var Sheet_default = /* @__PURE__ */ defineComponent({
|
|
|
25806
26204
|
"--hn-sheet-from-y": `${offset.value}px`
|
|
25807
26205
|
} : void 0);
|
|
25808
26206
|
function guard(event) {
|
|
25809
|
-
if (
|
|
26207
|
+
if (locked.value) event.preventDefault();
|
|
25810
26208
|
}
|
|
25811
26209
|
function close() {
|
|
25812
26210
|
open.value = false;
|
|
@@ -25867,9 +26265,9 @@ var Sheet_default = /* @__PURE__ */ defineComponent({
|
|
|
25867
26265
|
}, [props.handle ? (openBlock(), createElementBlock("div", {
|
|
25868
26266
|
key: 0,
|
|
25869
26267
|
"aria-hidden": "true",
|
|
25870
|
-
"data-disabled":
|
|
26268
|
+
"data-disabled": locked.value ? "" : void 0,
|
|
25871
26269
|
class: normalizeClass(unref(sheetHandle)({ header: props.header && !slots.body }))
|
|
25872
|
-
}, null, 10, _hoisted_2$
|
|
26270
|
+
}, null, 10, _hoisted_2$39)) : createCommentVNode("", true), props.header && !slots.body ? (openBlock(), createElementBlock("div", _hoisted_3$22, [createElementVNode("div", _hoisted_4$19, [createElementVNode("div", _hoisted_5$14, [slots.icon ? (openBlock(), createElementBlock("span", _hoisted_6$9, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("", true), createVNode(unref(DialogTitle), { "as-child": "" }, {
|
|
25873
26271
|
default: withCtx(() => [createVNode(Heading_default, {
|
|
25874
26272
|
level: 2,
|
|
25875
26273
|
size: "lg",
|
|
@@ -25893,20 +26291,29 @@ var Sheet_default = /* @__PURE__ */ defineComponent({
|
|
|
25893
26291
|
"as-child": ""
|
|
25894
26292
|
}, {
|
|
25895
26293
|
default: withCtx(() => [createVNode(CloseButton_default, {
|
|
25896
|
-
disabled:
|
|
26294
|
+
disabled: locked.value,
|
|
25897
26295
|
class: "-mt-1.5 -me-1.5 shrink-0"
|
|
25898
26296
|
}, null, 8, ["disabled"])]),
|
|
25899
26297
|
_: 1
|
|
25900
|
-
})) : createCommentVNode("", true)])) : createCommentVNode("", true)], 42, _hoisted_1$
|
|
25901
|
-
slots.body ? renderSlot(_ctx.$slots, "body", {
|
|
26298
|
+
})) : createCommentVNode("", true)])) : createCommentVNode("", true)], 42, _hoisted_1$62)) : createCommentVNode("", true),
|
|
26299
|
+
slots.body ? renderSlot(_ctx.$slots, "body", {
|
|
26300
|
+
close,
|
|
26301
|
+
submitting: unref(submitting)
|
|
26302
|
+
}, void 0, void 0, 2) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [_ctx.$slots.content ? (openBlock(), createBlock(ScrollArea_default, {
|
|
25902
26303
|
key: 0,
|
|
25903
26304
|
ref_key: "scrollArea",
|
|
25904
26305
|
ref: scrollArea,
|
|
25905
26306
|
class: "min-h-0 grow"
|
|
25906
26307
|
}, {
|
|
25907
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_7$6, [renderSlot(_ctx.$slots, "content", {
|
|
26308
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_7$6, [renderSlot(_ctx.$slots, "content", {
|
|
26309
|
+
close,
|
|
26310
|
+
submitting: unref(submitting)
|
|
26311
|
+
})])]),
|
|
25908
26312
|
_: 3
|
|
25909
|
-
}, 512)) : createCommentVNode("", true), _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_8$4, [renderSlot(_ctx.$slots, "footer", {
|
|
26313
|
+
}, 512)) : createCommentVNode("", true), _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_8$4, [renderSlot(_ctx.$slots, "footer", {
|
|
26314
|
+
close,
|
|
26315
|
+
submitting: unref(submitting)
|
|
26316
|
+
})])) : createCommentVNode("", true)], 64))
|
|
25910
26317
|
]),
|
|
25911
26318
|
_: 3
|
|
25912
26319
|
}, 16, [
|
|
@@ -25939,7 +26346,7 @@ var panelBody = tv({
|
|
|
25939
26346
|
});
|
|
25940
26347
|
//#endregion
|
|
25941
26348
|
//#region src/components/panel/Panel.vue?vue&type=script&setup=true&lang.ts
|
|
25942
|
-
var _hoisted_1$
|
|
26349
|
+
var _hoisted_1$61 = { class: "flex min-w-0 flex-col gap-1" };
|
|
25943
26350
|
//#endregion
|
|
25944
26351
|
//#region src/components/panel/Panel.vue
|
|
25945
26352
|
var Panel_default = /* @__PURE__ */ defineComponent({
|
|
@@ -25965,7 +26372,7 @@ var Panel_default = /* @__PURE__ */ defineComponent({
|
|
|
25965
26372
|
padded: false,
|
|
25966
26373
|
class: normalizeClass(unref(cn)("flex flex-col", props.class))
|
|
25967
26374
|
}, {
|
|
25968
|
-
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(unref(panelHeader)({ bodiless: !unref(slots).default })) }, [createElementVNode("div", _hoisted_1$
|
|
26375
|
+
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(unref(panelHeader)({ bodiless: !unref(slots).default })) }, [createElementVNode("div", _hoisted_1$61, [createElementVNode("div", { class: normalizeClass(unref(panelTitle)()) }, [
|
|
25969
26376
|
unref(slots).icon ? (openBlock(), createElementBlock("span", {
|
|
25970
26377
|
key: 0,
|
|
25971
26378
|
class: normalizeClass(unref(panelIcon)()),
|
|
@@ -26195,7 +26602,7 @@ var progressBar = tv({
|
|
|
26195
26602
|
});
|
|
26196
26603
|
//#endregion
|
|
26197
26604
|
//#region src/components/progress/Progress.vue?vue&type=script&setup=true&lang.ts
|
|
26198
|
-
var _hoisted_1$
|
|
26605
|
+
var _hoisted_1$60 = { key: 0 };
|
|
26199
26606
|
//#endregion
|
|
26200
26607
|
//#region src/components/progress/Progress.vue
|
|
26201
26608
|
var Progress_default = /* @__PURE__ */ defineComponent({
|
|
@@ -26231,7 +26638,7 @@ var Progress_default = /* @__PURE__ */ defineComponent({
|
|
|
26231
26638
|
}, [props.label || props.showValue && unref(text) ? (openBlock(), createElementBlock("div", {
|
|
26232
26639
|
key: 0,
|
|
26233
26640
|
class: normalizeClass(unref(progressHeader)())
|
|
26234
|
-
}, [props.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
26641
|
+
}, [props.label ? (openBlock(), createElementBlock("span", _hoisted_1$60, toDisplayString(props.label), 1)) : createCommentVNode("", true), props.showValue && unref(text) ? (openBlock(), createElementBlock("span", {
|
|
26235
26642
|
key: 1,
|
|
26236
26643
|
class: normalizeClass(unref(progressValue)())
|
|
26237
26644
|
}, toDisplayString(unref(text)), 3)) : createCommentVNode("", true)], 2)) : createCommentVNode("", true), createVNode(unref(ProgressRoot_default), mergeProps(_ctx.$attrs, {
|
|
@@ -26283,7 +26690,7 @@ var ringProgressCenter = tv({ base: "text-fg absolute inset-0 flex items-center
|
|
|
26283
26690
|
var ringProgressLabel = tv({ base: "text-muted text-sm" });
|
|
26284
26691
|
//#endregion
|
|
26285
26692
|
//#region src/components/ring-progress/RingProgress.vue?vue&type=script&setup=true&lang.ts
|
|
26286
|
-
var _hoisted_1$
|
|
26693
|
+
var _hoisted_1$59 = ["stroke-dashoffset", "stroke-linecap"];
|
|
26287
26694
|
//#endregion
|
|
26288
26695
|
//#region src/components/ring-progress/RingProgress.vue
|
|
26289
26696
|
var RingProgress_default = /* @__PURE__ */ defineComponent({
|
|
@@ -26347,7 +26754,7 @@ var RingProgress_default = /* @__PURE__ */ defineComponent({
|
|
|
26347
26754
|
"stroke-dashoffset": offset.value,
|
|
26348
26755
|
"stroke-linecap": offset.value < 100 ? "round" : void 0,
|
|
26349
26756
|
class: normalizeClass(unref(ringProgressArc)({ tone: props.tone }))
|
|
26350
|
-
}, null, 10, _hoisted_1$
|
|
26757
|
+
}, null, 10, _hoisted_1$59)], 2)), unref(slots).default || props.showValue && unref(text) ? (openBlock(), createElementBlock("div", {
|
|
26351
26758
|
key: 0,
|
|
26352
26759
|
class: normalizeClass(unref(ringProgressCenter)())
|
|
26353
26760
|
}, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(unref(text)), 1)])], 2)) : createCommentVNode("", true)]),
|
|
@@ -26399,8 +26806,8 @@ function toneAt(index) {
|
|
|
26399
26806
|
}
|
|
26400
26807
|
//#endregion
|
|
26401
26808
|
//#region src/components/meter-group/MeterGroup.vue?vue&type=script&setup=true&lang.ts
|
|
26402
|
-
var _hoisted_1$
|
|
26403
|
-
var _hoisted_2$
|
|
26809
|
+
var _hoisted_1$58 = ["aria-label"];
|
|
26810
|
+
var _hoisted_2$38 = [
|
|
26404
26811
|
"aria-label",
|
|
26405
26812
|
"aria-valuenow",
|
|
26406
26813
|
"aria-valuemax",
|
|
@@ -26471,8 +26878,8 @@ var MeterGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
26471
26878
|
"aria-valuetext": props.format ? entry.text : void 0,
|
|
26472
26879
|
class: normalizeClass(unref(meterSegment)({ tone: entry.tone })),
|
|
26473
26880
|
style: normalizeStyle({ width: entry.width })
|
|
26474
|
-
}, null, 14, _hoisted_2$
|
|
26475
|
-
}), 128))], 16, _hoisted_1$
|
|
26881
|
+
}, null, 14, _hoisted_2$38);
|
|
26882
|
+
}), 128))], 16, _hoisted_1$58),
|
|
26476
26883
|
props.legend ? (openBlock(), createElementBlock("div", {
|
|
26477
26884
|
key: 1,
|
|
26478
26885
|
class: normalizeClass(unref(meterLegend)())
|
|
@@ -26535,7 +26942,7 @@ var emptyDescription = tv({
|
|
|
26535
26942
|
var emptyActions = tv({ base: "flex flex-wrap items-center justify-center gap-2" });
|
|
26536
26943
|
//#endregion
|
|
26537
26944
|
//#region src/components/empty/Empty.vue?vue&type=script&setup=true&lang.ts
|
|
26538
|
-
var _hoisted_1$
|
|
26945
|
+
var _hoisted_1$57 = {
|
|
26539
26946
|
key: 0,
|
|
26540
26947
|
"aria-hidden": "true",
|
|
26541
26948
|
class: "flex shrink-0 justify-center"
|
|
@@ -26563,7 +26970,7 @@ var Empty_default = /* @__PURE__ */ defineComponent({
|
|
|
26563
26970
|
"data-hn-empty": "",
|
|
26564
26971
|
class: normalizeClass(unref(cn)(unref(empty)({ size: props.size }), props.class))
|
|
26565
26972
|
}, [
|
|
26566
|
-
unref(slots).icon ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
26973
|
+
unref(slots).icon ? (openBlock(), createElementBlock("span", _hoisted_1$57, [renderSlot(_ctx.$slots, "icon")])) : props.icon ? (openBlock(), createElementBlock("span", {
|
|
26567
26974
|
key: 1,
|
|
26568
26975
|
"aria-hidden": "true",
|
|
26569
26976
|
class: normalizeClass(unref(emptyIcon)({ size: props.size }))
|
|
@@ -26661,7 +27068,7 @@ var Result_default = /* @__PURE__ */ defineComponent({
|
|
|
26661
27068
|
});
|
|
26662
27069
|
//#endregion
|
|
26663
27070
|
//#region src/components/number-format/NumberFormat.vue?vue&type=script&setup=true&lang.ts
|
|
26664
|
-
var _hoisted_1$
|
|
27071
|
+
var _hoisted_1$56 = ["title"];
|
|
26665
27072
|
//#endregion
|
|
26666
27073
|
//#region src/components/number-format/NumberFormat.vue
|
|
26667
27074
|
var NumberFormat_default = /* @__PURE__ */ defineComponent({
|
|
@@ -26697,7 +27104,7 @@ var NumberFormat_default = /* @__PURE__ */ defineComponent({
|
|
|
26697
27104
|
return openBlock(), createElementBlock("span", {
|
|
26698
27105
|
title: full.value,
|
|
26699
27106
|
class: normalizeClass(unref(cn)(props.class))
|
|
26700
|
-
}, toDisplayString(text.value), 11, _hoisted_1$
|
|
27107
|
+
}, toDisplayString(text.value), 11, _hoisted_1$56);
|
|
26701
27108
|
};
|
|
26702
27109
|
}
|
|
26703
27110
|
});
|
|
@@ -26728,8 +27135,8 @@ var statisticDelta = tv({
|
|
|
26728
27135
|
var statisticIcon = tv({ base: "bg-subtle text-muted flex size-10 shrink-0 items-center justify-center rounded-md [&_svg]:size-5" });
|
|
26729
27136
|
//#endregion
|
|
26730
27137
|
//#region src/components/statistic/Statistic.vue?vue&type=script&setup=true&lang.ts
|
|
26731
|
-
var _hoisted_1$
|
|
26732
|
-
var _hoisted_2$
|
|
27138
|
+
var _hoisted_1$55 = { key: 2 };
|
|
27139
|
+
var _hoisted_2$37 = {
|
|
26733
27140
|
key: 2,
|
|
26734
27141
|
class: "text-muted"
|
|
26735
27142
|
};
|
|
@@ -26800,7 +27207,7 @@ var Statistic_default = /* @__PURE__ */ defineComponent({
|
|
|
26800
27207
|
"format",
|
|
26801
27208
|
"currency",
|
|
26802
27209
|
"precision"
|
|
26803
|
-
])) : (openBlock(), createElementBlock("span", _hoisted_1$
|
|
27210
|
+
])) : (openBlock(), createElementBlock("span", _hoisted_1$55, toDisplayString(props.value ?? "—"), 1)),
|
|
26804
27211
|
props.suffix ? (openBlock(), createElementBlock("span", {
|
|
26805
27212
|
key: 3,
|
|
26806
27213
|
class: normalizeClass(unref(statisticAffix)())
|
|
@@ -26821,7 +27228,7 @@ var Statistic_default = /* @__PURE__ */ defineComponent({
|
|
|
26821
27228
|
"aria-hidden": "true"
|
|
26822
27229
|
})) : createCommentVNode("", true),
|
|
26823
27230
|
createElementVNode("span", null, toDisplayString(deltaText.value), 1),
|
|
26824
|
-
props.deltaLabel ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
27231
|
+
props.deltaLabel ? (openBlock(), createElementBlock("span", _hoisted_2$37, toDisplayString(props.deltaLabel), 1)) : createCommentVNode("", true)
|
|
26825
27232
|
], 64))], 2)) : createCommentVNode("", true),
|
|
26826
27233
|
renderSlot(_ctx.$slots, "default")
|
|
26827
27234
|
], 2), unref(slots).icon ? (openBlock(), createElementBlock("span", {
|
|
@@ -26899,12 +27306,12 @@ function stepBetween(previous, next, count) {
|
|
|
26899
27306
|
}
|
|
26900
27307
|
//#endregion
|
|
26901
27308
|
//#region src/components/banner/Banner.vue?vue&type=script&setup=true&lang.ts
|
|
26902
|
-
var _hoisted_1$
|
|
27309
|
+
var _hoisted_1$54 = {
|
|
26903
27310
|
key: 0,
|
|
26904
27311
|
"data-hn-banner": "",
|
|
26905
27312
|
class: "hn-collapse w-full"
|
|
26906
27313
|
};
|
|
26907
|
-
var _hoisted_2$
|
|
27314
|
+
var _hoisted_2$36 = { class: "hn-collapse-body" };
|
|
26908
27315
|
var _hoisted_3$21 = ["data-tone"];
|
|
26909
27316
|
var _hoisted_4$18 = ["aria-live"];
|
|
26910
27317
|
//#endregion
|
|
@@ -26970,7 +27377,7 @@ var Banner_default = /* @__PURE__ */ defineComponent({
|
|
|
26970
27377
|
"leave-from-class": "hn-collapse-open",
|
|
26971
27378
|
"leave-to-class": "hn-collapse-closed"
|
|
26972
27379
|
}, toHandlers(unref(hooks))), {
|
|
26973
|
-
default: withCtx(() => [open.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
27380
|
+
default: withCtx(() => [open.value ? (openBlock(), createElementBlock("div", _hoisted_1$54, [createElementVNode("div", _hoisted_2$36, [createElementVNode("div", {
|
|
26974
27381
|
"data-tone": tone.value,
|
|
26975
27382
|
class: normalizeClass(unref(cn)(unref(banner)({ tone: tone.value }), props.class)),
|
|
26976
27383
|
onPointerenter: _cache[2] || (_cache[2] = ($event) => unref(autoplay).hovered.value = true),
|
|
@@ -27150,7 +27557,7 @@ var MenubarMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
27150
27557
|
});
|
|
27151
27558
|
//#endregion
|
|
27152
27559
|
//#region src/components/menubar/MenubarItem.vue?vue&type=script&setup=true&lang.ts
|
|
27153
|
-
var _hoisted_1$
|
|
27560
|
+
var _hoisted_1$53 = { class: "min-w-0 flex-1" };
|
|
27154
27561
|
//#endregion
|
|
27155
27562
|
//#region src/components/menubar/MenubarItem.vue
|
|
27156
27563
|
var MenubarItem_default = /* @__PURE__ */ defineComponent({
|
|
@@ -27176,7 +27583,7 @@ var MenubarItem_default = /* @__PURE__ */ defineComponent({
|
|
|
27176
27583
|
}), {
|
|
27177
27584
|
default: withCtx(() => [
|
|
27178
27585
|
renderSlot(_ctx.$slots, "icon"),
|
|
27179
|
-
createElementVNode("span", _hoisted_1$
|
|
27586
|
+
createElementVNode("span", _hoisted_1$53, [renderSlot(_ctx.$slots, "default")]),
|
|
27180
27587
|
renderSlot(_ctx.$slots, "trailing")
|
|
27181
27588
|
]),
|
|
27182
27589
|
_: 3
|
|
@@ -27190,8 +27597,8 @@ var MenubarItem_default = /* @__PURE__ */ defineComponent({
|
|
|
27190
27597
|
});
|
|
27191
27598
|
//#endregion
|
|
27192
27599
|
//#region src/components/menubar/MenubarCheckboxItem.vue?vue&type=script&setup=true&lang.ts
|
|
27193
|
-
var _hoisted_1$
|
|
27194
|
-
var _hoisted_2$
|
|
27600
|
+
var _hoisted_1$52 = { class: "min-w-0 flex-1" };
|
|
27601
|
+
var _hoisted_2$35 = { class: "flex size-4 shrink-0 items-center justify-center" };
|
|
27195
27602
|
//#endregion
|
|
27196
27603
|
//#region src/components/menubar/MenubarCheckboxItem.vue
|
|
27197
27604
|
var MenubarCheckboxItem_default = /* @__PURE__ */ defineComponent({
|
|
@@ -27223,9 +27630,9 @@ var MenubarCheckboxItem_default = /* @__PURE__ */ defineComponent({
|
|
|
27223
27630
|
onSelect: _cache[1] || (_cache[1] = (event) => event.preventDefault())
|
|
27224
27631
|
}), {
|
|
27225
27632
|
default: withCtx(() => [
|
|
27226
|
-
createElementVNode("span", _hoisted_1$
|
|
27633
|
+
createElementVNode("span", _hoisted_1$52, [renderSlot(_ctx.$slots, "default")]),
|
|
27227
27634
|
renderSlot(_ctx.$slots, "trailing"),
|
|
27228
|
-
createElementVNode("span", _hoisted_2$
|
|
27635
|
+
createElementVNode("span", _hoisted_2$35, [createVNode(unref(MenubarItemIndicator), null, {
|
|
27229
27636
|
default: withCtx(() => [createVNode(unref(Check))]),
|
|
27230
27637
|
_: 1
|
|
27231
27638
|
})])
|
|
@@ -27258,7 +27665,7 @@ var MenubarGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
27258
27665
|
});
|
|
27259
27666
|
//#endregion
|
|
27260
27667
|
//#region src/components/menubar/MenubarSub.vue?vue&type=script&setup=true&lang.ts
|
|
27261
|
-
var _hoisted_1$
|
|
27668
|
+
var _hoisted_1$51 = { class: "min-w-0 flex-1" };
|
|
27262
27669
|
//#endregion
|
|
27263
27670
|
//#region src/components/menubar/MenubarSub.vue
|
|
27264
27671
|
var MenubarSub_default = /* @__PURE__ */ defineComponent({
|
|
@@ -27289,7 +27696,7 @@ var MenubarSub_default = /* @__PURE__ */ defineComponent({
|
|
|
27289
27696
|
}, {
|
|
27290
27697
|
default: withCtx(() => [
|
|
27291
27698
|
renderSlot(_ctx.$slots, "icon"),
|
|
27292
|
-
createElementVNode("span", _hoisted_1$
|
|
27699
|
+
createElementVNode("span", _hoisted_1$51, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(props.label), 1)])]),
|
|
27293
27700
|
createVNode(unref(ChevronRight), { class: "text-muted" })
|
|
27294
27701
|
]),
|
|
27295
27702
|
_: 3
|
|
@@ -27372,8 +27779,8 @@ var MenubarRadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
27372
27779
|
});
|
|
27373
27780
|
//#endregion
|
|
27374
27781
|
//#region src/components/menubar/MenubarRadioItem.vue?vue&type=script&setup=true&lang.ts
|
|
27375
|
-
var _hoisted_1$
|
|
27376
|
-
var _hoisted_2$
|
|
27782
|
+
var _hoisted_1$50 = { class: "min-w-0 flex-1" };
|
|
27783
|
+
var _hoisted_2$34 = { class: "flex size-4 shrink-0 items-center justify-center" };
|
|
27377
27784
|
//#endregion
|
|
27378
27785
|
//#region src/components/menubar/MenubarRadioItem.vue
|
|
27379
27786
|
var MenubarRadioItem_default = /* @__PURE__ */ defineComponent({
|
|
@@ -27395,7 +27802,7 @@ var MenubarRadioItem_default = /* @__PURE__ */ defineComponent({
|
|
|
27395
27802
|
"text-value": props.textValue,
|
|
27396
27803
|
class: unref(cn)(unref(dropdownItem)(), props.class)
|
|
27397
27804
|
}), {
|
|
27398
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_1$
|
|
27805
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_1$50, [renderSlot(_ctx.$slots, "default")]), createElementVNode("span", _hoisted_2$34, [createVNode(unref(MenubarItemIndicator), null, {
|
|
27399
27806
|
default: withCtx(() => [createVNode(unref(Check), { class: "size-4" })]),
|
|
27400
27807
|
_: 1
|
|
27401
27808
|
})])]),
|
|
@@ -27494,15 +27901,11 @@ function createForm(options) {
|
|
|
27494
27901
|
async function validate() {
|
|
27495
27902
|
const current = ++validation;
|
|
27496
27903
|
const values = snapshot(options.values());
|
|
27497
|
-
const
|
|
27498
|
-
const request = {
|
|
27499
|
-
values,
|
|
27500
|
-
rules
|
|
27501
|
-
};
|
|
27904
|
+
const request = { values };
|
|
27502
27905
|
pending = request;
|
|
27503
27906
|
try {
|
|
27504
|
-
const result = await runRules(rules, values);
|
|
27505
|
-
if (current !== validation ||
|
|
27907
|
+
const result = await runRules(options.rules(), values);
|
|
27908
|
+
if (current !== validation || !same(values, options.values())) return false;
|
|
27506
27909
|
found = result;
|
|
27507
27910
|
notify();
|
|
27508
27911
|
return Object.keys(result).length === 0;
|
|
@@ -27511,7 +27914,7 @@ function createForm(options) {
|
|
|
27511
27914
|
}
|
|
27512
27915
|
}
|
|
27513
27916
|
function revalidate() {
|
|
27514
|
-
if (pending &&
|
|
27917
|
+
if (pending && same(pending.values, options.values())) return;
|
|
27515
27918
|
validate();
|
|
27516
27919
|
}
|
|
27517
27920
|
function touch(name) {
|
|
@@ -27644,7 +28047,7 @@ function focusFirstInvalid(root) {
|
|
|
27644
28047
|
}
|
|
27645
28048
|
//#endregion
|
|
27646
28049
|
//#region src/components/form/Form.vue?vue&type=script&setup=true&lang.ts
|
|
27647
|
-
var _hoisted_1$
|
|
28050
|
+
var _hoisted_1$49 = ["aria-busy"];
|
|
27648
28051
|
//#endregion
|
|
27649
28052
|
//#region src/components/form/Form.vue
|
|
27650
28053
|
var Form_default = /* @__PURE__ */ defineComponent({
|
|
@@ -27679,11 +28082,17 @@ var Form_default = /* @__PURE__ */ defineComponent({
|
|
|
27679
28082
|
function setErrors(errors) {
|
|
27680
28083
|
form.setErrors(errors);
|
|
27681
28084
|
}
|
|
28085
|
+
reportFormScope(form.submitting);
|
|
27682
28086
|
__expose({
|
|
27683
28087
|
submit,
|
|
27684
28088
|
validate: form.validate,
|
|
27685
28089
|
reset: form.reset,
|
|
27686
|
-
setErrors
|
|
28090
|
+
setErrors,
|
|
28091
|
+
errors: form.errors,
|
|
28092
|
+
error: form.formError,
|
|
28093
|
+
invalid: form.invalid,
|
|
28094
|
+
submitting: form.submitting,
|
|
28095
|
+
submitted: form.submitted
|
|
27687
28096
|
});
|
|
27688
28097
|
return (_ctx, _cache) => {
|
|
27689
28098
|
return openBlock(), createElementBlock("form", {
|
|
@@ -27700,7 +28109,7 @@ var Form_default = /* @__PURE__ */ defineComponent({
|
|
|
27700
28109
|
invalid: unref(form).invalid.value,
|
|
27701
28110
|
submitting: unref(form).submitting.value,
|
|
27702
28111
|
submitted: unref(form).submitted.value
|
|
27703
|
-
})], 42, _hoisted_1$
|
|
28112
|
+
})], 42, _hoisted_1$49);
|
|
27704
28113
|
};
|
|
27705
28114
|
}
|
|
27706
28115
|
});
|
|
@@ -27761,12 +28170,12 @@ var formFieldDescription = tv({ base: "text-muted text-sm" });
|
|
|
27761
28170
|
var formFieldMessage = tv({ base: "text-danger-text text-sm" });
|
|
27762
28171
|
//#endregion
|
|
27763
28172
|
//#region src/components/form-field/FormField.vue?vue&type=script&setup=true&lang.ts
|
|
27764
|
-
var _hoisted_1$
|
|
28173
|
+
var _hoisted_1$48 = [
|
|
27765
28174
|
"data-invalid",
|
|
27766
28175
|
"data-disabled",
|
|
27767
28176
|
"data-orientation"
|
|
27768
28177
|
];
|
|
27769
|
-
var _hoisted_2$
|
|
28178
|
+
var _hoisted_2$33 = ["id", "for"];
|
|
27770
28179
|
var _hoisted_3$20 = ["id"];
|
|
27771
28180
|
var _hoisted_4$17 = ["id"];
|
|
27772
28181
|
var _hoisted_5$13 = {
|
|
@@ -27870,7 +28279,7 @@ var FormField_default = /* @__PURE__ */ defineComponent({
|
|
|
27870
28279
|
default: withCtx(() => [createTextVNode(toDisplayString(unref(t).form.required), 1)]),
|
|
27871
28280
|
_: 1
|
|
27872
28281
|
})) : createCommentVNode("", true)
|
|
27873
|
-
], 10, _hoisted_2$
|
|
28282
|
+
], 10, _hoisted_2$33)) : createCommentVNode("", true), descriptionWithLabel.value ? (openBlock(), createElementBlock("p", {
|
|
27874
28283
|
key: 1,
|
|
27875
28284
|
id: unref(descriptionId),
|
|
27876
28285
|
class: normalizeClass(unref(formFieldDescription)())
|
|
@@ -27902,7 +28311,7 @@ var FormField_default = /* @__PURE__ */ defineComponent({
|
|
|
27902
28311
|
}, toDisplayString(message.value), 11, _hoisted_7$5)])])) : createCommentVNode("", true)]),
|
|
27903
28312
|
_: 1
|
|
27904
28313
|
}, 16)
|
|
27905
|
-
], 2)], 2)], 46, _hoisted_1$
|
|
28314
|
+
], 2)], 2)], 46, _hoisted_1$48);
|
|
27906
28315
|
};
|
|
27907
28316
|
}
|
|
27908
28317
|
});
|
|
@@ -27926,8 +28335,8 @@ var formLayoutGrid = tv({
|
|
|
27926
28335
|
});
|
|
27927
28336
|
//#endregion
|
|
27928
28337
|
//#region src/components/form-layout/FormLayout.vue?vue&type=script&setup=true&lang.ts
|
|
27929
|
-
var _hoisted_1$
|
|
27930
|
-
var _hoisted_2$
|
|
28338
|
+
var _hoisted_1$47 = ["disabled", "aria-describedby"];
|
|
28339
|
+
var _hoisted_2$32 = ["id"];
|
|
27931
28340
|
//#endregion
|
|
27932
28341
|
//#region src/components/form-layout/FormLayout.vue
|
|
27933
28342
|
var FormLayout_default = /* @__PURE__ */ defineComponent({
|
|
@@ -27972,12 +28381,12 @@ var FormLayout_default = /* @__PURE__ */ defineComponent({
|
|
|
27972
28381
|
key: 1,
|
|
27973
28382
|
id: unref(descriptionId),
|
|
27974
28383
|
class: normalizeClass(unref(formLayoutDescription)())
|
|
27975
|
-
}, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(props.description), 1)])], 10, _hoisted_2$
|
|
28384
|
+
}, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(props.description), 1)])], 10, _hoisted_2$32)) : createCommentVNode("", true),
|
|
27976
28385
|
createElementVNode("div", { class: normalizeClass(unref(formLayoutGrid)({
|
|
27977
28386
|
columns: props.columns,
|
|
27978
28387
|
headed: headed.value || described.value
|
|
27979
28388
|
})) }, [renderSlot(_ctx.$slots, "default")], 2)
|
|
27980
|
-
], 10, _hoisted_1$
|
|
28389
|
+
], 10, _hoisted_1$47);
|
|
27981
28390
|
};
|
|
27982
28391
|
}
|
|
27983
28392
|
});
|
|
@@ -28744,7 +29153,7 @@ var Code_default = /* @__PURE__ */ defineComponent({
|
|
|
28744
29153
|
});
|
|
28745
29154
|
//#endregion
|
|
28746
29155
|
//#region src/components/blockquote/Blockquote.vue?vue&type=script&setup=true&lang.ts
|
|
28747
|
-
var _hoisted_1$
|
|
29156
|
+
var _hoisted_1$46 = {
|
|
28748
29157
|
key: 0,
|
|
28749
29158
|
class: "text-faint mt-2 text-sm"
|
|
28750
29159
|
};
|
|
@@ -28760,7 +29169,7 @@ var Blockquote_default = /* @__PURE__ */ defineComponent({
|
|
|
28760
29169
|
setup(__props) {
|
|
28761
29170
|
const props = __props;
|
|
28762
29171
|
return (_ctx, _cache) => {
|
|
28763
|
-
return openBlock(), createElementBlock("blockquote", { class: normalizeClass(unref(cn)("hn-blockquote", props.class)) }, [renderSlot(_ctx.$slots, "default"), props.cite ? (openBlock(), createElementBlock("footer", _hoisted_1$
|
|
29172
|
+
return openBlock(), createElementBlock("blockquote", { class: normalizeClass(unref(cn)("hn-blockquote", props.class)) }, [renderSlot(_ctx.$slots, "default"), props.cite ? (openBlock(), createElementBlock("footer", _hoisted_1$46, "—— " + toDisplayString(props.cite), 1)) : createCommentVNode("", true)], 2);
|
|
28764
29173
|
};
|
|
28765
29174
|
}
|
|
28766
29175
|
});
|
|
@@ -28885,8 +29294,8 @@ var codeBlockActions = tv({ base: "absolute top-2 end-2 flex items-center gap-2"
|
|
|
28885
29294
|
var codeBlockLabel = tv({ base: "text-faint font-mono text-xs select-none" });
|
|
28886
29295
|
//#endregion
|
|
28887
29296
|
//#region src/components/code-block/CodeBlock.vue?vue&type=script&setup=true&lang.ts
|
|
28888
|
-
var _hoisted_1$
|
|
28889
|
-
var _hoisted_2$
|
|
29297
|
+
var _hoisted_1$45 = ["data-lang"];
|
|
29298
|
+
var _hoisted_2$31 = ["innerHTML"];
|
|
28890
29299
|
var _hoisted_3$19 = { key: 1 };
|
|
28891
29300
|
var _hoisted_4$16 = { key: 2 };
|
|
28892
29301
|
//#endregion
|
|
@@ -28923,7 +29332,7 @@ var CodeBlock_default = /* @__PURE__ */ defineComponent({
|
|
|
28923
29332
|
default: withCtx(() => [createElementVNode("pre", { class: normalizeClass(unref(codeBlockContent)()) }, [props.html ? (openBlock(), createElementBlock("code", {
|
|
28924
29333
|
key: 0,
|
|
28925
29334
|
innerHTML: props.html
|
|
28926
|
-
}, null, 8, _hoisted_2$
|
|
29335
|
+
}, null, 8, _hoisted_2$31)) : unref(tokens) ? (openBlock(), createElementBlock("code", _hoisted_3$19, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(tokens), (line, i) => {
|
|
28927
29336
|
return openBlock(), createElementBlock(Fragment, { key: i }, [createTextVNode(toDisplayString(i ? "\n" : ""), 1), (openBlock(true), createElementBlock(Fragment, null, renderList(line, (tk, j) => {
|
|
28928
29337
|
return openBlock(), createElementBlock("span", {
|
|
28929
29338
|
key: j,
|
|
@@ -28939,7 +29348,7 @@ var CodeBlock_default = /* @__PURE__ */ defineComponent({
|
|
|
28939
29348
|
key: 1,
|
|
28940
29349
|
text: props.code,
|
|
28941
29350
|
label: unref(t).codeblock.copy
|
|
28942
|
-
}, null, 8, ["text", "label"])) : createCommentVNode("", true)], 2)], 10, _hoisted_1$
|
|
29351
|
+
}, null, 8, ["text", "label"])) : createCommentVNode("", true)], 2)], 10, _hoisted_1$45);
|
|
28943
29352
|
};
|
|
28944
29353
|
}
|
|
28945
29354
|
});
|
|
@@ -28976,15 +29385,24 @@ var ListItem_default = /* @__PURE__ */ defineComponent({
|
|
|
28976
29385
|
}
|
|
28977
29386
|
});
|
|
28978
29387
|
//#endregion
|
|
29388
|
+
//#region src/components/description-list/DescriptionList.vue?vue&type=script&setup=true&lang.ts
|
|
29389
|
+
var _hoisted_1$44 = ["data-orientation"];
|
|
29390
|
+
//#endregion
|
|
28979
29391
|
//#region src/components/description-list/DescriptionList.vue
|
|
28980
29392
|
var DescriptionList_default = /* @__PURE__ */ defineComponent({
|
|
28981
29393
|
name: "HnDescriptionList",
|
|
28982
29394
|
__name: "DescriptionList",
|
|
28983
|
-
props: {
|
|
29395
|
+
props: {
|
|
29396
|
+
orientation: {},
|
|
29397
|
+
class: {}
|
|
29398
|
+
},
|
|
28984
29399
|
setup(__props) {
|
|
28985
29400
|
const props = __props;
|
|
28986
29401
|
return (_ctx, _cache) => {
|
|
28987
|
-
return openBlock(), createElementBlock("dl", {
|
|
29402
|
+
return openBlock(), createElementBlock("dl", {
|
|
29403
|
+
"data-orientation": props.orientation === "horizontal" ? "horizontal" : void 0,
|
|
29404
|
+
class: normalizeClass(unref(cn)("hn-dl", props.class))
|
|
29405
|
+
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$44);
|
|
28988
29406
|
};
|
|
28989
29407
|
}
|
|
28990
29408
|
});
|
|
@@ -29057,8 +29475,8 @@ function useNow(active, intervalMs = 3e4) {
|
|
|
29057
29475
|
}
|
|
29058
29476
|
//#endregion
|
|
29059
29477
|
//#region src/components/time/Time.vue?vue&type=script&setup=true&lang.ts
|
|
29060
|
-
var _hoisted_1$
|
|
29061
|
-
var _hoisted_2$
|
|
29478
|
+
var _hoisted_1$43 = ["datetime"];
|
|
29479
|
+
var _hoisted_2$30 = ["datetime"];
|
|
29062
29480
|
//#endregion
|
|
29063
29481
|
//#region src/components/time/Time.vue
|
|
29064
29482
|
var Time_default = /* @__PURE__ */ defineComponent({
|
|
@@ -29112,14 +29530,14 @@ var Time_default = /* @__PURE__ */ defineComponent({
|
|
|
29112
29530
|
datetime: date.value.toISOString(),
|
|
29113
29531
|
"data-allow-mismatch": "text",
|
|
29114
29532
|
class: unref(cn)(props.class)
|
|
29115
|
-
}, _ctx.$attrs), toDisplayString(text.value), 17, _hoisted_1$
|
|
29533
|
+
}, _ctx.$attrs), toDisplayString(text.value), 17, _hoisted_1$43)]),
|
|
29116
29534
|
_: 1
|
|
29117
29535
|
}, 8, ["content"])) : date.value ? (openBlock(), createElementBlock("time", mergeProps({
|
|
29118
29536
|
key: 1,
|
|
29119
29537
|
datetime: date.value.toISOString(),
|
|
29120
29538
|
"data-allow-mismatch": "text",
|
|
29121
29539
|
class: unref(cn)(props.class)
|
|
29122
|
-
}, _ctx.$attrs), toDisplayString(text.value), 17, _hoisted_2$
|
|
29540
|
+
}, _ctx.$attrs), toDisplayString(text.value), 17, _hoisted_2$30)) : (openBlock(), createElementBlock("span", mergeProps({
|
|
29123
29541
|
key: 2,
|
|
29124
29542
|
class: unref(cn)(props.class)
|
|
29125
29543
|
}, _ctx.$attrs), toDisplayString(text.value), 17));
|
|
@@ -29589,7 +30007,7 @@ var AspectRatio_default = /* @__PURE__ */ defineComponent({
|
|
|
29589
30007
|
});
|
|
29590
30008
|
//#endregion
|
|
29591
30009
|
//#region src/components/divider/Divider.vue?vue&type=script&setup=true&lang.ts
|
|
29592
|
-
var _hoisted_1$
|
|
30010
|
+
var _hoisted_1$42 = { class: "text-faint shrink-0 text-sm" };
|
|
29593
30011
|
//#endregion
|
|
29594
30012
|
//#region src/components/divider/Divider.vue
|
|
29595
30013
|
var Divider_default = /* @__PURE__ */ defineComponent({
|
|
@@ -29615,7 +30033,7 @@ var Divider_default = /* @__PURE__ */ defineComponent({
|
|
|
29615
30033
|
decorative: "",
|
|
29616
30034
|
class: "bg-line h-px flex-1"
|
|
29617
30035
|
}),
|
|
29618
|
-
createElementVNode("span", _hoisted_1$
|
|
30036
|
+
createElementVNode("span", _hoisted_1$42, [renderSlot(_ctx.$slots, "default")]),
|
|
29619
30037
|
createVNode(unref(Separator_default), {
|
|
29620
30038
|
decorative: "",
|
|
29621
30039
|
class: "bg-line h-px flex-1"
|
|
@@ -32046,7 +32464,7 @@ var AccordionItem_default = /* @__PURE__ */ defineComponent({
|
|
|
32046
32464
|
});
|
|
32047
32465
|
//#endregion
|
|
32048
32466
|
//#region src/components/accordion/AccordionTrigger.vue?vue&type=script&setup=true&lang.ts
|
|
32049
|
-
var _hoisted_1$
|
|
32467
|
+
var _hoisted_1$41 = { class: "min-w-0 flex-1" };
|
|
32050
32468
|
//#endregion
|
|
32051
32469
|
//#region src/components/accordion/AccordionTrigger.vue
|
|
32052
32470
|
var AccordionTrigger_default = /* @__PURE__ */ defineComponent({
|
|
@@ -32073,7 +32491,7 @@ var AccordionTrigger_default = /* @__PURE__ */ defineComponent({
|
|
|
32073
32491
|
default: withCtx(() => [createVNode(unref(AccordionTrigger), { class: normalizeClass(unref(cn)(unref(accordionTrigger)(), props.class)) }, {
|
|
32074
32492
|
default: withCtx(() => [
|
|
32075
32493
|
createVNode(Ripple_default),
|
|
32076
|
-
createElementVNode("span", _hoisted_1$
|
|
32494
|
+
createElementVNode("span", _hoisted_1$41, [renderSlot(_ctx.$slots, "default")]),
|
|
32077
32495
|
props.icon ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [!slots.icon ? (openBlock(), createBlock(DisclosureIcon_default, { key: 0 })) : (openBlock(), createBlock(DisclosureIcon_default, { key: 1 }, {
|
|
32078
32496
|
default: withCtx(() => [renderSlot(_ctx.$slots, "icon")]),
|
|
32079
32497
|
_: 3
|
|
@@ -32088,7 +32506,7 @@ var AccordionTrigger_default = /* @__PURE__ */ defineComponent({
|
|
|
32088
32506
|
});
|
|
32089
32507
|
//#endregion
|
|
32090
32508
|
//#region src/components/accordion/AccordionContent.vue?vue&type=script&setup=true&lang.ts
|
|
32091
|
-
var _hoisted_1$
|
|
32509
|
+
var _hoisted_1$40 = { class: "pb-4" };
|
|
32092
32510
|
//#endregion
|
|
32093
32511
|
//#region src/components/accordion/AccordionContent.vue
|
|
32094
32512
|
var AccordionContent_default = /* @__PURE__ */ defineComponent({
|
|
@@ -32105,7 +32523,7 @@ var AccordionContent_default = /* @__PURE__ */ defineComponent({
|
|
|
32105
32523
|
class: normalizeClass(unref(cn)(unref(accordionContent)(), props.class)),
|
|
32106
32524
|
style: normalizeStyle(unref(rekaAccordionStyle))
|
|
32107
32525
|
}, {
|
|
32108
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
32526
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$40, [renderSlot(_ctx.$slots, "default")])]),
|
|
32109
32527
|
_: 3
|
|
32110
32528
|
}, 8, ["class", "style"]);
|
|
32111
32529
|
};
|
|
@@ -32184,7 +32602,7 @@ var NavLinkChild_default = defineComponent({
|
|
|
32184
32602
|
});
|
|
32185
32603
|
//#endregion
|
|
32186
32604
|
//#region src/components/nav-link/NavLink.vue?vue&type=script&setup=true&lang.ts
|
|
32187
|
-
var _hoisted_1$
|
|
32605
|
+
var _hoisted_1$39 = [
|
|
32188
32606
|
"aria-hidden",
|
|
32189
32607
|
"inert",
|
|
32190
32608
|
"data-collapsed"
|
|
@@ -32265,7 +32683,7 @@ var NavLink_default = /* @__PURE__ */ defineComponent({
|
|
|
32265
32683
|
"data-collapsed": rail.value ? "" : void 0,
|
|
32266
32684
|
"data-hn-label": "",
|
|
32267
32685
|
class: normalizeClass(unref(navLinkLabel)())
|
|
32268
|
-
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
32686
|
+
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$39)]),
|
|
32269
32687
|
_: 3
|
|
32270
32688
|
}, 16, [
|
|
32271
32689
|
"as",
|
|
@@ -32338,8 +32756,8 @@ var SidebarLabel_default = /* @__PURE__ */ defineComponent({
|
|
|
32338
32756
|
});
|
|
32339
32757
|
//#endregion
|
|
32340
32758
|
//#region src/components/sidebar/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
32341
|
-
var _hoisted_1$
|
|
32342
|
-
var _hoisted_2$
|
|
32759
|
+
var _hoisted_1$38 = ["data-state", "inert"];
|
|
32760
|
+
var _hoisted_2$29 = { class: "min-w-0 flex-1" };
|
|
32343
32761
|
var _hoisted_3$18 = ["data-state", "inert"];
|
|
32344
32762
|
var _hoisted_4$15 = { class: "hn-collapse-body" };
|
|
32345
32763
|
var _hoisted_5$12 = ["aria-label"];
|
|
@@ -32373,7 +32791,7 @@ var Sidebar_default = /* @__PURE__ */ defineComponent({
|
|
|
32373
32791
|
_ctx.$slots.header ? (openBlock(), createElementBlock("div", {
|
|
32374
32792
|
key: 0,
|
|
32375
32793
|
class: normalizeClass(unref(cn)(unref(sidebarRegion)({ inDrawer: inDrawer.value }), "flex items-center gap-2"))
|
|
32376
|
-
}, [createElementVNode("div", _hoisted_2$
|
|
32794
|
+
}, [createElementVNode("div", _hoisted_2$29, [renderSlot(_ctx.$slots, "header", { state: state.value })]), inDrawer.value && props.closable ? (openBlock(), createBlock(CloseButton_default, {
|
|
32377
32795
|
key: 0,
|
|
32378
32796
|
class: "shrink-0",
|
|
32379
32797
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(sidebar)?.toggle())
|
|
@@ -32421,14 +32839,14 @@ var Sidebar_default = /* @__PURE__ */ defineComponent({
|
|
|
32421
32839
|
footer: true
|
|
32422
32840
|
}))
|
|
32423
32841
|
}, [renderSlot(_ctx.$slots, "footer", { state: state.value })], 2)) : createCommentVNode("", true)
|
|
32424
|
-
], 42, _hoisted_1$
|
|
32842
|
+
], 42, _hoisted_1$38);
|
|
32425
32843
|
};
|
|
32426
32844
|
}
|
|
32427
32845
|
});
|
|
32428
32846
|
//#endregion
|
|
32429
32847
|
//#region src/components/sidebar/SidebarGroup.vue?vue&type=script&setup=true&lang.ts
|
|
32430
|
-
var _hoisted_1$
|
|
32431
|
-
var _hoisted_2$
|
|
32848
|
+
var _hoisted_1$37 = { class: "relative h-(--hn-control-h-sm)" };
|
|
32849
|
+
var _hoisted_2$28 = [
|
|
32432
32850
|
"data-collapsed",
|
|
32433
32851
|
"aria-hidden",
|
|
32434
32852
|
"inert"
|
|
@@ -32459,7 +32877,7 @@ var SidebarGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
32459
32877
|
class: normalizeClass(unref(cn)(props.class)),
|
|
32460
32878
|
"onUpdate:open": _cache[0] || (_cache[0] = (v) => rail.value ? void 0 : open.value = v)
|
|
32461
32879
|
}, {
|
|
32462
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
32880
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$37, [createElementVNode("div", {
|
|
32463
32881
|
class: "hn-sidebar-label",
|
|
32464
32882
|
"data-collapsed": rail.value ? "" : void 0,
|
|
32465
32883
|
"aria-hidden": rail.value ? "true" : void 0,
|
|
@@ -32478,7 +32896,7 @@ var SidebarGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
32478
32896
|
_: 1
|
|
32479
32897
|
}, 8, ["tabindex"])]),
|
|
32480
32898
|
_: 1
|
|
32481
|
-
})], 8, _hoisted_2$
|
|
32899
|
+
})], 8, _hoisted_2$28), createElementVNode("div", {
|
|
32482
32900
|
"aria-hidden": "true",
|
|
32483
32901
|
class: "hn-sidebar-label border-line pointer-events-none absolute inset-x-2 top-1/2 border-t",
|
|
32484
32902
|
"data-collapsed": rail.value ? void 0 : ""
|
|
@@ -32537,11 +32955,11 @@ var drawerCard = tv({
|
|
|
32537
32955
|
});
|
|
32538
32956
|
//#endregion
|
|
32539
32957
|
//#region src/components/drawer/Drawer.vue?vue&type=script&setup=true&lang.ts
|
|
32540
|
-
var _hoisted_1$
|
|
32958
|
+
var _hoisted_1$36 = {
|
|
32541
32959
|
key: 0,
|
|
32542
32960
|
class: "flex shrink-0 items-start justify-between gap-4 px-(--hn-panel-p)"
|
|
32543
32961
|
};
|
|
32544
|
-
var _hoisted_2$
|
|
32962
|
+
var _hoisted_2$27 = { class: "flex min-w-0 flex-col gap-1.5" };
|
|
32545
32963
|
var _hoisted_3$16 = { class: "flex min-w-0 items-center gap-2" };
|
|
32546
32964
|
var _hoisted_4$13 = {
|
|
32547
32965
|
key: 0,
|
|
@@ -32584,8 +33002,10 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
|
|
|
32584
33002
|
setup(__props, { expose: __expose }) {
|
|
32585
33003
|
const props = __props;
|
|
32586
33004
|
const slots = useSlots();
|
|
33005
|
+
const submitting = provideFormScope();
|
|
33006
|
+
const locked = computed(() => props.locked || submitting.value);
|
|
32587
33007
|
function guard(e) {
|
|
32588
|
-
if (
|
|
33008
|
+
if (locked.value) e.preventDefault();
|
|
32589
33009
|
}
|
|
32590
33010
|
const { scrollArea, viewport } = useScrollViewport();
|
|
32591
33011
|
__expose({ viewport });
|
|
@@ -32638,8 +33058,11 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
|
|
|
32638
33058
|
}, {
|
|
32639
33059
|
default: withCtx(() => [createTextVNode(toDisplayString(props.description), 1)]),
|
|
32640
33060
|
_: 1
|
|
32641
|
-
})) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), slots.body ? renderSlot(_ctx.$slots, "body", {
|
|
32642
|
-
|
|
33061
|
+
})) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), slots.body ? renderSlot(_ctx.$slots, "body", {
|
|
33062
|
+
close,
|
|
33063
|
+
submitting: unref(submitting)
|
|
33064
|
+
}, void 0, void 0, 1) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
33065
|
+
props.header ? (openBlock(), createElementBlock("div", _hoisted_1$36, [createElementVNode("div", _hoisted_2$27, [createElementVNode("div", _hoisted_3$16, [slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$13, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("", true), createVNode(unref(DialogTitle), { "as-child": "" }, {
|
|
32643
33066
|
default: withCtx(() => [createVNode(Heading_default, {
|
|
32644
33067
|
level: 2,
|
|
32645
33068
|
size: "lg",
|
|
@@ -32663,7 +33086,7 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
|
|
|
32663
33086
|
"as-child": ""
|
|
32664
33087
|
}, {
|
|
32665
33088
|
default: withCtx(() => [createVNode(CloseButton_default, {
|
|
32666
|
-
disabled:
|
|
33089
|
+
disabled: locked.value,
|
|
32667
33090
|
class: "-mt-1.5 -me-1.5 shrink-0"
|
|
32668
33091
|
}, null, 8, ["disabled"])]),
|
|
32669
33092
|
_: 1
|
|
@@ -32674,10 +33097,16 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
|
|
|
32674
33097
|
ref: scrollArea,
|
|
32675
33098
|
class: "min-h-0 grow"
|
|
32676
33099
|
}, {
|
|
32677
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_5$11, [renderSlot(_ctx.$slots, "content", {
|
|
33100
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_5$11, [renderSlot(_ctx.$slots, "content", {
|
|
33101
|
+
close,
|
|
33102
|
+
submitting: unref(submitting)
|
|
33103
|
+
})])]),
|
|
32678
33104
|
_: 3
|
|
32679
33105
|
}, 512)) : createCommentVNode("", true),
|
|
32680
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6$7, [renderSlot(_ctx.$slots, "footer", {
|
|
33106
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6$7, [renderSlot(_ctx.$slots, "footer", {
|
|
33107
|
+
close,
|
|
33108
|
+
submitting: unref(submitting)
|
|
33109
|
+
})])) : createCommentVNode("", true)
|
|
32681
33110
|
], 64))]),
|
|
32682
33111
|
_: 3
|
|
32683
33112
|
}, 16, ["data-hn-side", "class"])]),
|
|
@@ -32709,6 +33138,247 @@ var DrawerScope_default = defineComponent({
|
|
|
32709
33138
|
}
|
|
32710
33139
|
});
|
|
32711
33140
|
//#endregion
|
|
33141
|
+
//#region ../shared/src/lib/scroll-restore.ts
|
|
33142
|
+
var SCROLL_STATE_FIELD = "hnScroll";
|
|
33143
|
+
var RESTORE_DEADLINE_MS = 3e3;
|
|
33144
|
+
var SAVE_THROTTLE_MS = 500;
|
|
33145
|
+
var SCROLL_RESTORE_ATTR = "data-scroll-restore";
|
|
33146
|
+
var SCROLL_ATOP_ATTR = "data-scroll-atop";
|
|
33147
|
+
var SCROLL_AT_ATTR = "data-scroll-at";
|
|
33148
|
+
var SCROLL_ATOP_HIDE_PX = 8;
|
|
33149
|
+
function atopOff(top, off) {
|
|
33150
|
+
if (top > 8) return true;
|
|
33151
|
+
if (top <= 0) return false;
|
|
33152
|
+
return off;
|
|
33153
|
+
}
|
|
33154
|
+
function firstPaintRestoreScript() {
|
|
33155
|
+
return `(function(){try{if(document.readyState!=="loading")return;
|
|
33156
|
+
var r=(history.state&&history.state.${SCROLL_STATE_FIELD})||{};
|
|
33157
|
+
var coarse=!!(window.matchMedia&&matchMedia("(pointer: coarse)").matches);
|
|
33158
|
+
var cs=
|
|
33159
|
+
document.querySelectorAll('[${SCROLL_ATOP_ATTR}]');
|
|
33160
|
+
var mark=function(c,t){if(!coarse){c.style.marginTop=-Math.round(Math.max(0,t))+"px";return;}
|
|
33161
|
+
if(t>8)c.setAttribute("data-off","true");else if(t<=0)c.setAttribute("data-off","false");};
|
|
33162
|
+
for(var i=0;i<cs.length;i++){mark(cs[i],Math.max(0,r[cs[i].getAttribute("${SCROLL_ATOP_ATTR}")]||0));}
|
|
33163
|
+
for(var k in r){var t=Math.max(0,r[k]);var e=
|
|
33164
|
+
document.querySelector('[${SCROLL_RESTORE_ATTR}="'+k+'"]');if(e){e.scrollTop=t;e.setAttribute("${SCROLL_AT_ATTR}",String(e.scrollTop));}}
|
|
33165
|
+
for(var i=0;i<cs.length;i++){(function(c){
|
|
33166
|
+
var e=
|
|
33167
|
+
document.querySelector('[${SCROLL_RESTORE_ATTR}="'+c.getAttribute("${SCROLL_ATOP_ATTR}")+'"]');
|
|
33168
|
+
if(!e)return;
|
|
33169
|
+
var sync=function(){if(e.scrollHeight<=e.clientHeight){e.removeEventListener("scroll",sync);return;}mark(c,e.scrollTop);};
|
|
33170
|
+
e.addEventListener("scroll",sync,{passive:true});
|
|
33171
|
+
})(cs[i]);}
|
|
33172
|
+
}catch{}})()`.replace(/\n/g, "");
|
|
33173
|
+
}
|
|
33174
|
+
function readScrollRecord(state) {
|
|
33175
|
+
if (!state || typeof state !== "object") return {};
|
|
33176
|
+
const record = state[SCROLL_STATE_FIELD];
|
|
33177
|
+
if (!record || typeof record !== "object") return {};
|
|
33178
|
+
return record;
|
|
33179
|
+
}
|
|
33180
|
+
function writeScrollRecord(state, key, top) {
|
|
33181
|
+
const base = state && typeof state === "object" ? state : {};
|
|
33182
|
+
return {
|
|
33183
|
+
...base,
|
|
33184
|
+
[SCROLL_STATE_FIELD]: {
|
|
33185
|
+
...readScrollRecord(base),
|
|
33186
|
+
[key]: top
|
|
33187
|
+
}
|
|
33188
|
+
};
|
|
33189
|
+
}
|
|
33190
|
+
function readEntryId(state) {
|
|
33191
|
+
if (!state || typeof state !== "object") return void 0;
|
|
33192
|
+
return state.position;
|
|
33193
|
+
}
|
|
33194
|
+
function createScrollRestorer(key, ports) {
|
|
33195
|
+
let pending = null;
|
|
33196
|
+
let clearDeadline = null;
|
|
33197
|
+
let clearThrottle = null;
|
|
33198
|
+
let entry;
|
|
33199
|
+
function stopWaiting() {
|
|
33200
|
+
pending = null;
|
|
33201
|
+
clearDeadline?.();
|
|
33202
|
+
clearDeadline = null;
|
|
33203
|
+
}
|
|
33204
|
+
function apply(top) {
|
|
33205
|
+
const el = ports.getViewport();
|
|
33206
|
+
if (!el) return false;
|
|
33207
|
+
el.scrollTop = top;
|
|
33208
|
+
return el.scrollHeight - el.clientHeight + 1 >= top;
|
|
33209
|
+
}
|
|
33210
|
+
function save() {
|
|
33211
|
+
if (pending !== null) return;
|
|
33212
|
+
if (readEntryId(ports.readState()) !== entry) return;
|
|
33213
|
+
const el = ports.getViewport();
|
|
33214
|
+
if (!el) return;
|
|
33215
|
+
ports.writeState(writeScrollRecord(ports.readState(), key, el.scrollTop));
|
|
33216
|
+
}
|
|
33217
|
+
return {
|
|
33218
|
+
restore(initial) {
|
|
33219
|
+
stopWaiting();
|
|
33220
|
+
entry = readEntryId(ports.readState());
|
|
33221
|
+
const saved = readScrollRecord(ports.readState())[key];
|
|
33222
|
+
const firstPaintTop = ports.takeFirstPaintTop();
|
|
33223
|
+
if (initial) {
|
|
33224
|
+
if (saved === void 0) return;
|
|
33225
|
+
const el = ports.getViewport();
|
|
33226
|
+
if (firstPaintTop !== void 0 && el && el.scrollTop !== firstPaintTop) return;
|
|
33227
|
+
}
|
|
33228
|
+
const top = saved ?? 0;
|
|
33229
|
+
if (apply(top)) return;
|
|
33230
|
+
pending = top;
|
|
33231
|
+
clearDeadline = ports.setTimer(stopWaiting, RESTORE_DEADLINE_MS);
|
|
33232
|
+
},
|
|
33233
|
+
settle() {
|
|
33234
|
+
if (pending === null) return;
|
|
33235
|
+
if (apply(pending)) stopWaiting();
|
|
33236
|
+
},
|
|
33237
|
+
abandon: stopWaiting,
|
|
33238
|
+
isPending: () => pending !== null,
|
|
33239
|
+
save,
|
|
33240
|
+
saveSoon() {
|
|
33241
|
+
if (clearThrottle) return;
|
|
33242
|
+
clearThrottle = ports.setTimer(() => {
|
|
33243
|
+
clearThrottle = null;
|
|
33244
|
+
save();
|
|
33245
|
+
}, 500);
|
|
33246
|
+
},
|
|
33247
|
+
dispose() {
|
|
33248
|
+
stopWaiting();
|
|
33249
|
+
clearThrottle?.();
|
|
33250
|
+
clearThrottle = null;
|
|
33251
|
+
}
|
|
33252
|
+
};
|
|
33253
|
+
}
|
|
33254
|
+
var SCROLL_FIRST_PAINT_FIELD = "__hnScrollAt";
|
|
33255
|
+
function scrollRestoreScript() {
|
|
33256
|
+
const collect = `(function(){var s=window.${SCROLL_FIRST_PAINT_FIELD}=window.${SCROLL_FIRST_PAINT_FIELD}||{};var e=document.querySelectorAll('[${SCROLL_AT_ATTR}]');for(var i=0;i<e.length;i++){s[e[i].getAttribute('${SCROLL_RESTORE_ATTR}')]=Number(e[i].getAttribute('${SCROLL_AT_ATTR}'));e[i].removeAttribute('${SCROLL_AT_ATTR}')}})()`;
|
|
33257
|
+
return `${firstPaintRestoreScript()};${collect}`;
|
|
33258
|
+
}
|
|
33259
|
+
var sessions = /* @__PURE__ */ new Map();
|
|
33260
|
+
function keepScrollPosition(key) {
|
|
33261
|
+
for (const [session, name] of sessions) if (key === void 0 || name === key) session.keep();
|
|
33262
|
+
}
|
|
33263
|
+
var ABANDON_EVENTS = [
|
|
33264
|
+
"wheel",
|
|
33265
|
+
"touchstart",
|
|
33266
|
+
"keydown"
|
|
33267
|
+
];
|
|
33268
|
+
var NAVIGATION_FALLBACK_MS = 500;
|
|
33269
|
+
function takeFirstPaint(key, target) {
|
|
33270
|
+
const store = window[SCROLL_FIRST_PAINT_FIELD];
|
|
33271
|
+
if (store && key in store) {
|
|
33272
|
+
const top = store[key];
|
|
33273
|
+
delete store[key];
|
|
33274
|
+
return top;
|
|
33275
|
+
}
|
|
33276
|
+
const at = target.getAttribute(SCROLL_AT_ATTR);
|
|
33277
|
+
target.removeAttribute(SCROLL_AT_ATTR);
|
|
33278
|
+
return at === null ? void 0 : Number(at);
|
|
33279
|
+
}
|
|
33280
|
+
function hashTarget$1() {
|
|
33281
|
+
if (!location.hash) return null;
|
|
33282
|
+
try {
|
|
33283
|
+
return document.getElementById(decodeURIComponent(location.hash.slice(1)));
|
|
33284
|
+
} catch {
|
|
33285
|
+
return null;
|
|
33286
|
+
}
|
|
33287
|
+
}
|
|
33288
|
+
function createScrollRestoreSession({ key, viewport, target, initial = true, onUpdated, onScroll }) {
|
|
33289
|
+
const page = () => location.pathname + location.search;
|
|
33290
|
+
const here = () => ({
|
|
33291
|
+
href: location.href,
|
|
33292
|
+
page: page()
|
|
33293
|
+
});
|
|
33294
|
+
const setTimer = (fn, ms) => {
|
|
33295
|
+
const id = setTimeout(fn, ms);
|
|
33296
|
+
return () => clearTimeout(id);
|
|
33297
|
+
};
|
|
33298
|
+
let settled = here();
|
|
33299
|
+
let navigating = false;
|
|
33300
|
+
let clearFallback = null;
|
|
33301
|
+
let disposed = false;
|
|
33302
|
+
let held;
|
|
33303
|
+
const restorer = createScrollRestorer(key, {
|
|
33304
|
+
getViewport: () => viewport,
|
|
33305
|
+
takeFirstPaintTop: () => takeFirstPaint(key, target),
|
|
33306
|
+
readState: () => history.state,
|
|
33307
|
+
writeState: (state) => {
|
|
33308
|
+
if (!navigating && page() === settled.page) history.replaceState(state, "");
|
|
33309
|
+
},
|
|
33310
|
+
setTimer
|
|
33311
|
+
});
|
|
33312
|
+
function land(first = false) {
|
|
33313
|
+
navigating = false;
|
|
33314
|
+
clearFallback?.();
|
|
33315
|
+
clearFallback = null;
|
|
33316
|
+
settled = here();
|
|
33317
|
+
const keep = held;
|
|
33318
|
+
held = void 0;
|
|
33319
|
+
if (!first && keep !== void 0 && readScrollRecord(history.state)[key] === void 0) history.replaceState(writeScrollRecord(history.state, key, keep), "");
|
|
33320
|
+
const saved = readScrollRecord(history.state)[key];
|
|
33321
|
+
restorer.restore(first);
|
|
33322
|
+
if (!first && saved === void 0) hashTarget$1()?.scrollIntoView();
|
|
33323
|
+
}
|
|
33324
|
+
function detect(traversal = false) {
|
|
33325
|
+
if (disposed || location.href === settled.href) return;
|
|
33326
|
+
if (page() === settled.page) {
|
|
33327
|
+
settled = here();
|
|
33328
|
+
if (traversal && readScrollRecord(history.state)[key] !== void 0) restorer.restore();
|
|
33329
|
+
return;
|
|
33330
|
+
}
|
|
33331
|
+
if (navigating) return;
|
|
33332
|
+
navigating = true;
|
|
33333
|
+
restorer.abandon();
|
|
33334
|
+
clearFallback = setTimer(() => land(), NAVIGATION_FALLBACK_MS);
|
|
33335
|
+
}
|
|
33336
|
+
const check = () => queueMicrotask(() => detect());
|
|
33337
|
+
const traverse = () => queueMicrotask(() => detect(true));
|
|
33338
|
+
const entryChange = (event) => {
|
|
33339
|
+
const traversal = event.navigationType === "traverse";
|
|
33340
|
+
queueMicrotask(() => detect(traversal));
|
|
33341
|
+
};
|
|
33342
|
+
const abandon = () => restorer.abandon();
|
|
33343
|
+
const save = () => restorer.save();
|
|
33344
|
+
const navigation = window.navigation;
|
|
33345
|
+
const off = [onUpdated(() => {
|
|
33346
|
+
detect();
|
|
33347
|
+
if (navigating) land();
|
|
33348
|
+
else restorer.settle();
|
|
33349
|
+
}), onScroll(() => {
|
|
33350
|
+
detect();
|
|
33351
|
+
restorer.saveSoon();
|
|
33352
|
+
})];
|
|
33353
|
+
for (const name of ABANDON_EVENTS) viewport.addEventListener(name, abandon, { passive: true });
|
|
33354
|
+
navigation?.addEventListener("currententrychange", entryChange);
|
|
33355
|
+
window.addEventListener("popstate", traverse);
|
|
33356
|
+
window.addEventListener("hashchange", check);
|
|
33357
|
+
window.addEventListener("pagehide", save);
|
|
33358
|
+
document.addEventListener("click", save, true);
|
|
33359
|
+
land(initial);
|
|
33360
|
+
const session = {
|
|
33361
|
+
keep() {
|
|
33362
|
+
held = viewport.scrollTop;
|
|
33363
|
+
},
|
|
33364
|
+
dispose() {
|
|
33365
|
+
disposed = true;
|
|
33366
|
+
sessions.delete(session);
|
|
33367
|
+
off.forEach((stop) => stop());
|
|
33368
|
+
for (const name of ABANDON_EVENTS) viewport.removeEventListener(name, abandon);
|
|
33369
|
+
navigation?.removeEventListener("currententrychange", entryChange);
|
|
33370
|
+
window.removeEventListener("popstate", traverse);
|
|
33371
|
+
window.removeEventListener("hashchange", check);
|
|
33372
|
+
window.removeEventListener("pagehide", save);
|
|
33373
|
+
document.removeEventListener("click", save, true);
|
|
33374
|
+
clearFallback?.();
|
|
33375
|
+
restorer.dispose();
|
|
33376
|
+
}
|
|
33377
|
+
};
|
|
33378
|
+
sessions.set(session, key);
|
|
33379
|
+
return session;
|
|
33380
|
+
}
|
|
33381
|
+
//#endregion
|
|
32712
33382
|
//#region src/components/app-shell/composables/useDesktopQuery.ts
|
|
32713
33383
|
function useDesktopQuery(query = "(min-width: 64rem)") {
|
|
32714
33384
|
const isDesktop = ref(true);
|
|
@@ -32789,11 +33459,11 @@ function useSidebarScrollUpdates(state, settled) {
|
|
|
32789
33459
|
}
|
|
32790
33460
|
//#endregion
|
|
32791
33461
|
//#region src/components/app-shell/AppShell.vue?vue&type=script&setup=true&lang.ts
|
|
32792
|
-
var _hoisted_1$
|
|
33462
|
+
var _hoisted_1$35 = {
|
|
32793
33463
|
key: 0,
|
|
32794
33464
|
class: "shrink-0"
|
|
32795
33465
|
};
|
|
32796
|
-
var _hoisted_2$
|
|
33466
|
+
var _hoisted_2$26 = { class: "flex min-h-0 flex-1" };
|
|
32797
33467
|
var _hoisted_3$15 = {
|
|
32798
33468
|
key: 0,
|
|
32799
33469
|
class: "hidden h-full shrink-0 lg:block"
|
|
@@ -32801,9 +33471,9 @@ var _hoisted_3$15 = {
|
|
|
32801
33471
|
var _hoisted_4$12 = { class: "flex min-h-0 min-w-0 flex-1 flex-col" };
|
|
32802
33472
|
var _hoisted_5$10 = {
|
|
32803
33473
|
key: 0,
|
|
32804
|
-
class: "border-line bg-canvas shrink-0 border-b"
|
|
33474
|
+
class: "border-line bg-canvas h-(--hn-app-shell-header-h) shrink-0 border-b"
|
|
32805
33475
|
};
|
|
32806
|
-
var _hoisted_6$6 = { class: "flex h-
|
|
33476
|
+
var _hoisted_6$6 = { class: "flex h-full items-center gap-3 px-4 sm:px-6" };
|
|
32807
33477
|
var _hoisted_7$4 = { class: "min-h-0 min-w-0 flex-1" };
|
|
32808
33478
|
//#endregion
|
|
32809
33479
|
//#region src/components/app-shell/AppShell.vue
|
|
@@ -32855,15 +33525,38 @@ var AppShell_default = /* @__PURE__ */ defineComponent({
|
|
|
32855
33525
|
openMobile: () => mobileOpen.value = true,
|
|
32856
33526
|
onTransitionRun
|
|
32857
33527
|
});
|
|
33528
|
+
const RestoreScript = () => h("script", { innerHTML: scrollRestoreScript() });
|
|
33529
|
+
const scripted = shallowRef(!!inject(ssrContextKey, null) || !!getCurrentInstance()?.vnode.el);
|
|
33530
|
+
onMounted(() => {
|
|
33531
|
+
scripted.value = false;
|
|
33532
|
+
});
|
|
33533
|
+
let restoredKey;
|
|
33534
|
+
watch(() => [props.restoreKey, main.value?.instance], ([key, instance], _previous, onCleanup) => {
|
|
33535
|
+
if (!key || !instance) return;
|
|
33536
|
+
const { viewport, target } = instance.elements();
|
|
33537
|
+
const session = createScrollRestoreSession({
|
|
33538
|
+
key,
|
|
33539
|
+
viewport,
|
|
33540
|
+
target,
|
|
33541
|
+
initial: restoredKey === void 0 || restoredKey === key,
|
|
33542
|
+
onUpdated: (listener) => instance.on("updated", listener),
|
|
33543
|
+
onScroll: (listener) => instance.on("scroll", listener)
|
|
33544
|
+
});
|
|
33545
|
+
restoredKey = key;
|
|
33546
|
+
onCleanup(() => session.dispose());
|
|
33547
|
+
}, {
|
|
33548
|
+
immediate: true,
|
|
33549
|
+
flush: "post"
|
|
33550
|
+
});
|
|
32858
33551
|
const router = getCurrentInstance()?.appContext.config.globalProperties.$router;
|
|
32859
33552
|
watch(() => router?.currentRoute?.value?.fullPath, () => {
|
|
32860
33553
|
if (props.autoClose) mobileOpen.value = false;
|
|
32861
33554
|
});
|
|
32862
33555
|
return (_ctx, _cache) => {
|
|
32863
33556
|
return openBlock(), createBlock(TooltipProvider_default, null, {
|
|
32864
|
-
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(unref(cn)("bg-canvas text-fg flex h-screen flex-col overflow-hidden", props.class)) }, [
|
|
32865
|
-
_ctx.$slots.banner ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
32866
|
-
createElementVNode("div", _hoisted_2$
|
|
33557
|
+
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(unref(cn)("bg-canvas text-fg flex h-screen flex-col overflow-hidden [--hn-app-shell-header-h:calc(3.5rem+1px)]", props.class)) }, [
|
|
33558
|
+
_ctx.$slots.banner ? (openBlock(), createElementBlock("div", _hoisted_1$35, [renderSlot(_ctx.$slots, "banner")])) : createCommentVNode("", true),
|
|
33559
|
+
createElementVNode("div", _hoisted_2$26, [_ctx.$slots.sidebar ? (openBlock(), createElementBlock("div", _hoisted_3$15, [renderSlot(_ctx.$slots, "sidebar")])) : createCommentVNode("", true), createElementVNode("div", _hoisted_4$12, [_ctx.$slots.header ? (openBlock(), createElementBlock("header", _hoisted_5$10, [createElementVNode("div", _hoisted_6$6, [renderSlot(_ctx.$slots, "header")])])) : createCommentVNode("", true), createElementVNode("main", _hoisted_7$4, [createVNode(ScrollArea_default, {
|
|
32867
33560
|
ref_key: "main",
|
|
32868
33561
|
ref: main,
|
|
32869
33562
|
"data-scroll-restore": props.restoreKey,
|
|
@@ -32871,7 +33564,7 @@ var AppShell_default = /* @__PURE__ */ defineComponent({
|
|
|
32871
33564
|
}, {
|
|
32872
33565
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
32873
33566
|
_: 3
|
|
32874
|
-
}, 8, ["data-scroll-restore"])])])]),
|
|
33567
|
+
}, 8, ["data-scroll-restore"]), props.restoreKey && scripted.value ? (openBlock(), createBlock(RestoreScript, { key: 0 })) : createCommentVNode("", true)])])]),
|
|
32875
33568
|
_ctx.$slots.sidebar ? (openBlock(), createBlock(Drawer_default, {
|
|
32876
33569
|
key: 1,
|
|
32877
33570
|
open: mobileOpen.value,
|
|
@@ -32895,8 +33588,8 @@ var AppShell_default = /* @__PURE__ */ defineComponent({
|
|
|
32895
33588
|
});
|
|
32896
33589
|
//#endregion
|
|
32897
33590
|
//#region src/components/page/Page.vue?vue&type=script&setup=true&lang.ts
|
|
32898
|
-
var _hoisted_1$
|
|
32899
|
-
var _hoisted_2$
|
|
33591
|
+
var _hoisted_1$34 = { class: "flex gap-10" };
|
|
33592
|
+
var _hoisted_2$25 = { class: "flex min-w-0 flex-1 flex-col gap-8" };
|
|
32900
33593
|
//#endregion
|
|
32901
33594
|
//#region src/components/page/Page.vue
|
|
32902
33595
|
var Page_default = /* @__PURE__ */ defineComponent({
|
|
@@ -32913,7 +33606,7 @@ var Page_default = /* @__PURE__ */ defineComponent({
|
|
|
32913
33606
|
size: props.size,
|
|
32914
33607
|
class: normalizeClass(unref(cn)("py-8", props.class))
|
|
32915
33608
|
}, {
|
|
32916
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
33609
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$34, [createElementVNode("div", _hoisted_2$25, [renderSlot(_ctx.$slots, "default")]), renderSlot(_ctx.$slots, "aside")])]),
|
|
32917
33610
|
_: 3
|
|
32918
33611
|
}, 8, ["size", "class"]);
|
|
32919
33612
|
};
|
|
@@ -32921,8 +33614,8 @@ var Page_default = /* @__PURE__ */ defineComponent({
|
|
|
32921
33614
|
});
|
|
32922
33615
|
//#endregion
|
|
32923
33616
|
//#region src/components/page/PageHeader.vue?vue&type=script&setup=true&lang.ts
|
|
32924
|
-
var _hoisted_1$
|
|
32925
|
-
var _hoisted_2$
|
|
33617
|
+
var _hoisted_1$33 = { class: "flex flex-col items-start gap-3 md:flex-row" };
|
|
33618
|
+
var _hoisted_2$24 = { class: "flex min-w-0 flex-1 flex-col gap-2" };
|
|
32926
33619
|
var _hoisted_3$14 = {
|
|
32927
33620
|
key: 0,
|
|
32928
33621
|
class: "flex w-full flex-wrap items-center gap-2 md:w-auto md:shrink-0"
|
|
@@ -32941,7 +33634,7 @@ var PageHeader_default = /* @__PURE__ */ defineComponent({
|
|
|
32941
33634
|
setup(__props) {
|
|
32942
33635
|
const props = __props;
|
|
32943
33636
|
return (_ctx, _cache) => {
|
|
32944
|
-
return openBlock(), createElementBlock("header", { class: normalizeClass(unref(cn)("flex flex-col gap-2", props.class)) }, [createElementVNode("div", _hoisted_1$
|
|
33637
|
+
return openBlock(), createElementBlock("header", { class: normalizeClass(unref(cn)("flex flex-col gap-2", props.class)) }, [createElementVNode("div", _hoisted_1$33, [createElementVNode("div", _hoisted_2$24, [
|
|
32945
33638
|
props.eyebrow ? (openBlock(), createBlock(Text_default, {
|
|
32946
33639
|
key: 0,
|
|
32947
33640
|
as: "span",
|
|
@@ -32985,8 +33678,8 @@ var PageBody_default = /* @__PURE__ */ defineComponent({
|
|
|
32985
33678
|
});
|
|
32986
33679
|
//#endregion
|
|
32987
33680
|
//#region src/components/page/PageAside.vue?vue&type=script&setup=true&lang.ts
|
|
32988
|
-
var _hoisted_1$
|
|
32989
|
-
var _hoisted_2$
|
|
33681
|
+
var _hoisted_1$32 = ["aria-labelledby"];
|
|
33682
|
+
var _hoisted_2$23 = { class: "sticky top-8 flex flex-col gap-3" };
|
|
32990
33683
|
//#endregion
|
|
32991
33684
|
//#region src/components/page/PageAside.vue
|
|
32992
33685
|
var PageAside_default = /* @__PURE__ */ defineComponent({
|
|
@@ -33003,7 +33696,7 @@ var PageAside_default = /* @__PURE__ */ defineComponent({
|
|
|
33003
33696
|
return openBlock(), createElementBlock("aside", {
|
|
33004
33697
|
"aria-labelledby": props.label ? unref(titleId) : void 0,
|
|
33005
33698
|
class: normalizeClass(unref(cn)("hidden w-56 shrink-0 xl:block", props.class))
|
|
33006
|
-
}, [createElementVNode("div", _hoisted_2$
|
|
33699
|
+
}, [createElementVNode("div", _hoisted_2$23, [props.label ? (openBlock(), createBlock(Text_default, {
|
|
33007
33700
|
key: 0,
|
|
33008
33701
|
id: unref(titleId),
|
|
33009
33702
|
as: "h2",
|
|
@@ -33013,13 +33706,13 @@ var PageAside_default = /* @__PURE__ */ defineComponent({
|
|
|
33013
33706
|
}, {
|
|
33014
33707
|
default: withCtx(() => [createTextVNode(toDisplayString(props.label), 1)]),
|
|
33015
33708
|
_: 1
|
|
33016
|
-
}, 8, ["id"])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")])], 10, _hoisted_1$
|
|
33709
|
+
}, 8, ["id"])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")])], 10, _hoisted_1$32);
|
|
33017
33710
|
};
|
|
33018
33711
|
}
|
|
33019
33712
|
});
|
|
33020
33713
|
//#endregion
|
|
33021
33714
|
//#region src/components/section/Section.vue?vue&type=script&setup=true&lang.ts
|
|
33022
|
-
var _hoisted_1$
|
|
33715
|
+
var _hoisted_1$31 = ["id", "aria-labelledby"];
|
|
33023
33716
|
//#endregion
|
|
33024
33717
|
//#region src/components/section/Section.vue
|
|
33025
33718
|
var Section_default = /* @__PURE__ */ defineComponent({
|
|
@@ -33047,7 +33740,7 @@ var Section_default = /* @__PURE__ */ defineComponent({
|
|
|
33047
33740
|
}, {
|
|
33048
33741
|
default: withCtx(() => [createTextVNode(toDisplayString(props.title), 1)]),
|
|
33049
33742
|
_: 1
|
|
33050
|
-
}, 8, ["id"])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
33743
|
+
}, 8, ["id"])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$31);
|
|
33051
33744
|
};
|
|
33052
33745
|
}
|
|
33053
33746
|
});
|
|
@@ -33159,9 +33852,14 @@ function findViewport(nav, target) {
|
|
|
33159
33852
|
if (/^(auto|scroll|overlay)$/.test(view.getComputedStyle(node).overflowY)) return node;
|
|
33160
33853
|
}
|
|
33161
33854
|
}
|
|
33855
|
+
var FLIGHT_MS = 1500;
|
|
33162
33856
|
function createAnchorFollow() {
|
|
33163
33857
|
let lastCurrent;
|
|
33164
33858
|
let lastEnd;
|
|
33859
|
+
let flight;
|
|
33860
|
+
function land(event) {
|
|
33861
|
+
if (flight?.port === event.currentTarget) flight = void 0;
|
|
33862
|
+
}
|
|
33165
33863
|
function follow({ nav, current: id, lastCovered, enabled }) {
|
|
33166
33864
|
if (!enabled || !nav || !id) return;
|
|
33167
33865
|
const target = nav.ownerDocument.getElementById(id);
|
|
@@ -33175,13 +33873,22 @@ function createAnchorFollow() {
|
|
|
33175
33873
|
lastEnd = endId;
|
|
33176
33874
|
if (!port || port.clientHeight <= 0 || port.scrollHeight <= port.clientHeight) return result;
|
|
33177
33875
|
const box = port.getBoundingClientRect();
|
|
33178
|
-
let row = link.getBoundingClientRect();
|
|
33179
33876
|
const scale = port.offsetHeight ? box.height / port.offsetHeight : 1;
|
|
33180
33877
|
if (scale <= 0) return result;
|
|
33878
|
+
const now = performance.now();
|
|
33879
|
+
if (flight && (flight.port !== port || now > flight.until)) flight = void 0;
|
|
33880
|
+
const base = flight ? flight.top : port.scrollTop;
|
|
33881
|
+
const ahead = (base - port.scrollTop) * scale;
|
|
33882
|
+
const rect = link.getBoundingClientRect();
|
|
33883
|
+
let row = {
|
|
33884
|
+
top: rect.top - ahead,
|
|
33885
|
+
bottom: rect.bottom - ahead,
|
|
33886
|
+
height: rect.height
|
|
33887
|
+
};
|
|
33181
33888
|
if (endId !== id) {
|
|
33182
33889
|
const end = nav.querySelector(`a[href="#${CSS.escape(endId)}"]`);
|
|
33183
33890
|
if (end?.getClientRects().length) {
|
|
33184
|
-
const bottom = end.getBoundingClientRect().bottom;
|
|
33891
|
+
const bottom = end.getBoundingClientRect().bottom - ahead;
|
|
33185
33892
|
const height = bottom - row.top;
|
|
33186
33893
|
if (height >= row.height && height <= port.clientHeight * scale) row = {
|
|
33187
33894
|
top: row.top,
|
|
@@ -33200,11 +33907,18 @@ function createAnchorFollow() {
|
|
|
33200
33907
|
const before = padding(style.scrollPaddingTop);
|
|
33201
33908
|
const after = padding(style.scrollPaddingBottom);
|
|
33202
33909
|
const delta = row.height > bottom - top || row.top < top ? (row.top - top) / scale - before : (row.bottom - bottom) / scale + after;
|
|
33203
|
-
const next = Math.max(0, Math.min(port.scrollHeight - port.clientHeight,
|
|
33204
|
-
if (Math.abs(next -
|
|
33910
|
+
const next = Math.max(0, Math.min(port.scrollHeight - port.clientHeight, base + delta));
|
|
33911
|
+
if (Math.abs(next - base) < 1) return result;
|
|
33912
|
+
const smooth = changed && !prefersReducedMotion();
|
|
33913
|
+
flight = smooth ? {
|
|
33914
|
+
port,
|
|
33915
|
+
top: next,
|
|
33916
|
+
until: now + FLIGHT_MS
|
|
33917
|
+
} : void 0;
|
|
33918
|
+
if (smooth) port.addEventListener("scrollend", land, { once: true });
|
|
33205
33919
|
port.scrollTo({
|
|
33206
33920
|
top: next,
|
|
33207
|
-
behavior:
|
|
33921
|
+
behavior: smooth ? "smooth" : "instant"
|
|
33208
33922
|
});
|
|
33209
33923
|
return result;
|
|
33210
33924
|
}
|
|
@@ -33252,8 +33966,8 @@ function useAnchorFollow(root, current, lastCovered, enabled) {
|
|
|
33252
33966
|
}
|
|
33253
33967
|
//#endregion
|
|
33254
33968
|
//#region src/components/anchor/Anchor.vue?vue&type=script&setup=true&lang.ts
|
|
33255
|
-
var _hoisted_1$
|
|
33256
|
-
var _hoisted_2$
|
|
33969
|
+
var _hoisted_1$30 = ["aria-label"];
|
|
33970
|
+
var _hoisted_2$22 = { class: "border-line relative grid grid-cols-1 border-s" };
|
|
33257
33971
|
var _hoisted_3$13 = [
|
|
33258
33972
|
"href",
|
|
33259
33973
|
"aria-current",
|
|
@@ -33295,7 +34009,7 @@ var Anchor_default = /* @__PURE__ */ defineComponent({
|
|
|
33295
34009
|
ref: root,
|
|
33296
34010
|
"aria-label": props.label ?? unref(t).anchor.navLabel,
|
|
33297
34011
|
class: normalizeClass(unref(cn)(props.class))
|
|
33298
|
-
}, [createElementVNode("ul", _hoisted_2$
|
|
34012
|
+
}, [createElementVNode("ul", _hoisted_2$22, [createVNode(Transition, {
|
|
33299
34013
|
"enter-active-class": "hn-transition-base",
|
|
33300
34014
|
"enter-from-class": "opacity-0",
|
|
33301
34015
|
"leave-active-class": "hn-transition",
|
|
@@ -33324,14 +34038,14 @@ var Anchor_default = /* @__PURE__ */ defineComponent({
|
|
|
33324
34038
|
item: entry.item,
|
|
33325
34039
|
active: unref(current) === entry.id
|
|
33326
34040
|
})])) : createCommentVNode("", true)], 10, _hoisted_3$13)], 4);
|
|
33327
|
-
}), 128))])], 10, _hoisted_1$
|
|
34041
|
+
}), 128))])], 10, _hoisted_1$30);
|
|
33328
34042
|
};
|
|
33329
34043
|
}
|
|
33330
34044
|
});
|
|
33331
34045
|
//#endregion
|
|
33332
34046
|
//#region src/components/breadcrumb/Breadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
33333
|
-
var _hoisted_1$
|
|
33334
|
-
var _hoisted_2$
|
|
34047
|
+
var _hoisted_1$29 = ["aria-label"];
|
|
34048
|
+
var _hoisted_2$21 = { class: "flex flex-wrap items-center gap-1.5 text-sm" };
|
|
33335
34049
|
//#endregion
|
|
33336
34050
|
//#region src/components/breadcrumb/Breadcrumb.vue
|
|
33337
34051
|
var Breadcrumb_default = /* @__PURE__ */ defineComponent({
|
|
@@ -33348,13 +34062,13 @@ var Breadcrumb_default = /* @__PURE__ */ defineComponent({
|
|
|
33348
34062
|
return openBlock(), createElementBlock("nav", {
|
|
33349
34063
|
"aria-label": props.label ?? unref(t).breadcrumb.navLabel,
|
|
33350
34064
|
class: normalizeClass(unref(cn)(props.class))
|
|
33351
|
-
}, [createElementVNode("ol", _hoisted_2$
|
|
34065
|
+
}, [createElementVNode("ol", _hoisted_2$21, [renderSlot(_ctx.$slots, "default")])], 10, _hoisted_1$29);
|
|
33352
34066
|
};
|
|
33353
34067
|
}
|
|
33354
34068
|
});
|
|
33355
34069
|
//#endregion
|
|
33356
34070
|
//#region src/components/breadcrumb/BreadcrumbItem.vue?vue&type=script&setup=true&lang.ts
|
|
33357
|
-
var _hoisted_1$
|
|
34071
|
+
var _hoisted_1$28 = { class: "flex items-center" };
|
|
33358
34072
|
//#endregion
|
|
33359
34073
|
//#region src/components/breadcrumb/BreadcrumbItem.vue
|
|
33360
34074
|
var BreadcrumbItem_default = /* @__PURE__ */ defineComponent({
|
|
@@ -33373,7 +34087,7 @@ var BreadcrumbItem_default = /* @__PURE__ */ defineComponent({
|
|
|
33373
34087
|
setup(__props) {
|
|
33374
34088
|
const props = __props;
|
|
33375
34089
|
return (_ctx, _cache) => {
|
|
33376
|
-
return openBlock(), createElementBlock("li", _hoisted_1$
|
|
34090
|
+
return openBlock(), createElementBlock("li", _hoisted_1$28, [props.current ? (openBlock(), createElementBlock("span", mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
33377
34091
|
"aria-current": "page",
|
|
33378
34092
|
class: unref(cn)("text-fg font-medium", props.class)
|
|
33379
34093
|
}), [renderSlot(_ctx.$slots, "default")], 16)) : (openBlock(), createBlock(unref(Primitive), mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
@@ -33409,7 +34123,7 @@ var BreadcrumbSeparator_default = /* @__PURE__ */ defineComponent({
|
|
|
33409
34123
|
});
|
|
33410
34124
|
//#endregion
|
|
33411
34125
|
//#region src/components/dropdown-menu/DropdownMenuItem.vue?vue&type=script&setup=true&lang.ts
|
|
33412
|
-
var _hoisted_1$
|
|
34126
|
+
var _hoisted_1$27 = { class: "min-w-0 flex-1" };
|
|
33413
34127
|
//#endregion
|
|
33414
34128
|
//#region src/components/dropdown-menu/DropdownMenuItem.vue
|
|
33415
34129
|
var DropdownMenuItem_default = /* @__PURE__ */ defineComponent({
|
|
@@ -33435,7 +34149,7 @@ var DropdownMenuItem_default = /* @__PURE__ */ defineComponent({
|
|
|
33435
34149
|
}), {
|
|
33436
34150
|
default: withCtx(() => [
|
|
33437
34151
|
renderSlot(_ctx.$slots, "icon"),
|
|
33438
|
-
createElementVNode("span", _hoisted_1$
|
|
34152
|
+
createElementVNode("span", _hoisted_1$27, [renderSlot(_ctx.$slots, "default")]),
|
|
33439
34153
|
renderSlot(_ctx.$slots, "trailing")
|
|
33440
34154
|
]),
|
|
33441
34155
|
_: 3
|
|
@@ -33449,8 +34163,8 @@ var DropdownMenuItem_default = /* @__PURE__ */ defineComponent({
|
|
|
33449
34163
|
});
|
|
33450
34164
|
//#endregion
|
|
33451
34165
|
//#region src/components/dropdown-menu/DropdownMenuCheckboxItem.vue?vue&type=script&setup=true&lang.ts
|
|
33452
|
-
var _hoisted_1$
|
|
33453
|
-
var _hoisted_2$
|
|
34166
|
+
var _hoisted_1$26 = { class: "min-w-0 flex-1" };
|
|
34167
|
+
var _hoisted_2$20 = { class: "flex size-4 shrink-0 items-center justify-center" };
|
|
33454
34168
|
//#endregion
|
|
33455
34169
|
//#region src/components/dropdown-menu/DropdownMenuCheckboxItem.vue
|
|
33456
34170
|
var DropdownMenuCheckboxItem_default = /* @__PURE__ */ defineComponent({
|
|
@@ -33482,9 +34196,9 @@ var DropdownMenuCheckboxItem_default = /* @__PURE__ */ defineComponent({
|
|
|
33482
34196
|
onSelect: _cache[1] || (_cache[1] = (event) => event.preventDefault())
|
|
33483
34197
|
}), {
|
|
33484
34198
|
default: withCtx(() => [
|
|
33485
|
-
createElementVNode("span", _hoisted_1$
|
|
34199
|
+
createElementVNode("span", _hoisted_1$26, [renderSlot(_ctx.$slots, "default")]),
|
|
33486
34200
|
renderSlot(_ctx.$slots, "trailing"),
|
|
33487
|
-
createElementVNode("span", _hoisted_2$
|
|
34201
|
+
createElementVNode("span", _hoisted_2$20, [createVNode(unref(DropdownMenuItemIndicator), null, {
|
|
33488
34202
|
default: withCtx(() => [createVNode(unref(Check))]),
|
|
33489
34203
|
_: 1
|
|
33490
34204
|
})])
|
|
@@ -33517,7 +34231,7 @@ var DropdownMenuGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
33517
34231
|
});
|
|
33518
34232
|
//#endregion
|
|
33519
34233
|
//#region src/components/dropdown-menu/DropdownMenuSub.vue?vue&type=script&setup=true&lang.ts
|
|
33520
|
-
var _hoisted_1$
|
|
34234
|
+
var _hoisted_1$25 = { class: "min-w-0 flex-1" };
|
|
33521
34235
|
//#endregion
|
|
33522
34236
|
//#region src/components/dropdown-menu/DropdownMenuSub.vue
|
|
33523
34237
|
var DropdownMenuSub_default = /* @__PURE__ */ defineComponent({
|
|
@@ -33548,7 +34262,7 @@ var DropdownMenuSub_default = /* @__PURE__ */ defineComponent({
|
|
|
33548
34262
|
}, {
|
|
33549
34263
|
default: withCtx(() => [
|
|
33550
34264
|
renderSlot(_ctx.$slots, "icon"),
|
|
33551
|
-
createElementVNode("span", _hoisted_1$
|
|
34265
|
+
createElementVNode("span", _hoisted_1$25, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(props.label), 1)])]),
|
|
33552
34266
|
createVNode(unref(ChevronRight), { class: "text-muted" })
|
|
33553
34267
|
]),
|
|
33554
34268
|
_: 3
|
|
@@ -33631,8 +34345,8 @@ var DropdownMenuRadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
33631
34345
|
});
|
|
33632
34346
|
//#endregion
|
|
33633
34347
|
//#region src/components/dropdown-menu/DropdownMenuRadioItem.vue?vue&type=script&setup=true&lang.ts
|
|
33634
|
-
var _hoisted_1$
|
|
33635
|
-
var _hoisted_2$
|
|
34348
|
+
var _hoisted_1$24 = { class: "min-w-0 flex-1" };
|
|
34349
|
+
var _hoisted_2$19 = { class: "flex size-4 shrink-0 items-center justify-center" };
|
|
33636
34350
|
//#endregion
|
|
33637
34351
|
//#region src/components/dropdown-menu/DropdownMenuRadioItem.vue
|
|
33638
34352
|
var DropdownMenuRadioItem_default = /* @__PURE__ */ defineComponent({
|
|
@@ -33654,7 +34368,7 @@ var DropdownMenuRadioItem_default = /* @__PURE__ */ defineComponent({
|
|
|
33654
34368
|
"text-value": props.textValue,
|
|
33655
34369
|
class: unref(cn)(unref(dropdownItem)(), props.class)
|
|
33656
34370
|
}), {
|
|
33657
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_1$
|
|
34371
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_1$24, [renderSlot(_ctx.$slots, "default")]), createElementVNode("span", _hoisted_2$19, [createVNode(unref(DropdownMenuItemIndicator), null, {
|
|
33658
34372
|
default: withCtx(() => [createVNode(unref(Check), { class: "size-4" })]),
|
|
33659
34373
|
_: 1
|
|
33660
34374
|
})])]),
|
|
@@ -33670,11 +34384,11 @@ var DropdownMenuRadioItem_default = /* @__PURE__ */ defineComponent({
|
|
|
33670
34384
|
});
|
|
33671
34385
|
//#endregion
|
|
33672
34386
|
//#region src/components/dialog/Dialog.vue?vue&type=script&setup=true&lang.ts
|
|
33673
|
-
var _hoisted_1$
|
|
34387
|
+
var _hoisted_1$23 = {
|
|
33674
34388
|
key: 0,
|
|
33675
34389
|
class: "flex shrink-0 items-start justify-between gap-4 px-(--hn-panel-p)"
|
|
33676
34390
|
};
|
|
33677
|
-
var _hoisted_2$
|
|
34391
|
+
var _hoisted_2$18 = { class: "flex min-w-0 flex-col gap-1.5" };
|
|
33678
34392
|
var _hoisted_3$12 = { class: "flex min-w-0 items-center gap-2" };
|
|
33679
34393
|
var _hoisted_4$10 = {
|
|
33680
34394
|
key: 0,
|
|
@@ -33717,8 +34431,10 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
33717
34431
|
setup(__props, { expose: __expose }) {
|
|
33718
34432
|
const props = __props;
|
|
33719
34433
|
const slots = useSlots();
|
|
34434
|
+
const submitting = provideFormScope();
|
|
34435
|
+
const locked = computed(() => props.locked || submitting.value);
|
|
33720
34436
|
function guard(e) {
|
|
33721
|
-
if (
|
|
34437
|
+
if (locked.value) e.preventDefault();
|
|
33722
34438
|
}
|
|
33723
34439
|
const { scrollArea, viewport } = useScrollViewport();
|
|
33724
34440
|
__expose({ viewport });
|
|
@@ -33771,8 +34487,11 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
33771
34487
|
}, {
|
|
33772
34488
|
default: withCtx(() => [createTextVNode(toDisplayString(props.description), 1)]),
|
|
33773
34489
|
_: 1
|
|
33774
|
-
})) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), slots.body ? renderSlot(_ctx.$slots, "body", {
|
|
33775
|
-
|
|
34490
|
+
})) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), slots.body ? renderSlot(_ctx.$slots, "body", {
|
|
34491
|
+
close,
|
|
34492
|
+
submitting: unref(submitting)
|
|
34493
|
+
}, void 0, void 0, 1) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
34494
|
+
props.header ? (openBlock(), createElementBlock("div", _hoisted_1$23, [createElementVNode("div", _hoisted_2$18, [createElementVNode("div", _hoisted_3$12, [slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$10, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("", true), createVNode(unref(DialogTitle), { "as-child": "" }, {
|
|
33776
34495
|
default: withCtx(() => [createVNode(Heading_default, {
|
|
33777
34496
|
level: 2,
|
|
33778
34497
|
size: "lg",
|
|
@@ -33796,7 +34515,7 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
33796
34515
|
"as-child": ""
|
|
33797
34516
|
}, {
|
|
33798
34517
|
default: withCtx(() => [createVNode(CloseButton_default, {
|
|
33799
|
-
disabled:
|
|
34518
|
+
disabled: locked.value,
|
|
33800
34519
|
class: "-mt-1.5 -me-1.5 shrink-0"
|
|
33801
34520
|
}, null, 8, ["disabled"])]),
|
|
33802
34521
|
_: 1
|
|
@@ -33807,10 +34526,16 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
33807
34526
|
ref: scrollArea,
|
|
33808
34527
|
class: "min-h-0"
|
|
33809
34528
|
}, {
|
|
33810
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_5$8, [renderSlot(_ctx.$slots, "content", {
|
|
34529
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_5$8, [renderSlot(_ctx.$slots, "content", {
|
|
34530
|
+
close,
|
|
34531
|
+
submitting: unref(submitting)
|
|
34532
|
+
})])]),
|
|
33811
34533
|
_: 3
|
|
33812
34534
|
}, 512)) : createCommentVNode("", true),
|
|
33813
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6$5, [renderSlot(_ctx.$slots, "footer", {
|
|
34535
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6$5, [renderSlot(_ctx.$slots, "footer", {
|
|
34536
|
+
close,
|
|
34537
|
+
submitting: unref(submitting)
|
|
34538
|
+
})])) : createCommentVNode("", true)
|
|
33814
34539
|
], 64))]),
|
|
33815
34540
|
_: 3
|
|
33816
34541
|
}, 16, ["class"])]),
|
|
@@ -34153,8 +34878,8 @@ function useToastExpand() {
|
|
|
34153
34878
|
}
|
|
34154
34879
|
//#endregion
|
|
34155
34880
|
//#region src/components/toast/Toaster.vue?vue&type=script&setup=true&lang.ts
|
|
34156
|
-
var _hoisted_1$
|
|
34157
|
-
var _hoisted_2$
|
|
34881
|
+
var _hoisted_1$22 = { class: "hn-toast-card bg-surface border-line relative rounded-lg border p-4 shadow-md" };
|
|
34882
|
+
var _hoisted_2$17 = {
|
|
34158
34883
|
key: 0,
|
|
34159
34884
|
class: "relative mt-0.5 size-5 shrink-0"
|
|
34160
34885
|
};
|
|
@@ -34222,7 +34947,7 @@ var Toaster_default = /* @__PURE__ */ defineComponent({
|
|
|
34222
34947
|
tabindex: unref(slotOf)(item).index === 0 ? 0 : -1,
|
|
34223
34948
|
"onUpdate:open": (v) => !v && unref(dismiss)(item.id)
|
|
34224
34949
|
}, {
|
|
34225
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
34950
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$22, [item.component ? (openBlock(), createElementBlock("div", {
|
|
34226
34951
|
key: 0,
|
|
34227
34952
|
ref_for: true,
|
|
34228
34953
|
ref: (refValue) => unref(setItemRef)(item.id, refValue),
|
|
@@ -34232,7 +34957,7 @@ var Toaster_default = /* @__PURE__ */ defineComponent({
|
|
|
34232
34957
|
ref_for: true,
|
|
34233
34958
|
ref: (refValue) => unref(setItemRef)(item.id, refValue),
|
|
34234
34959
|
class: "hn-toast-body flex w-full items-start gap-3"
|
|
34235
|
-
}, [item.tone !== "neutral" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
34960
|
+
}, [item.tone !== "neutral" ? (openBlock(), createElementBlock("div", _hoisted_2$17, [createVNode(Transition, {
|
|
34236
34961
|
"enter-active-class": "hn-transition-base",
|
|
34237
34962
|
"enter-from-class": "scale-90 opacity-0",
|
|
34238
34963
|
"leave-active-class": "hn-transition",
|
|
@@ -34714,13 +35439,13 @@ function useReveal(host, hidden, revealOn) {
|
|
|
34714
35439
|
}
|
|
34715
35440
|
//#endregion
|
|
34716
35441
|
//#region src/components/spoiler/Spoiler.vue?vue&type=script&setup=true&lang.ts
|
|
34717
|
-
var _hoisted_1$
|
|
35442
|
+
var _hoisted_1$21 = [
|
|
34718
35443
|
"data-hidden",
|
|
34719
35444
|
"role",
|
|
34720
35445
|
"aria-label",
|
|
34721
35446
|
"aria-expanded"
|
|
34722
35447
|
];
|
|
34723
|
-
var _hoisted_2$
|
|
35448
|
+
var _hoisted_2$16 = { class: "hn-spoiler-inner" };
|
|
34724
35449
|
//#endregion
|
|
34725
35450
|
//#region src/components/spoiler/Spoiler.vue
|
|
34726
35451
|
var Spoiler_default = /* @__PURE__ */ defineComponent({
|
|
@@ -34756,7 +35481,172 @@ var Spoiler_default = /* @__PURE__ */ defineComponent({
|
|
|
34756
35481
|
tabindex: "0",
|
|
34757
35482
|
"aria-label": label.value,
|
|
34758
35483
|
"aria-expanded": !hidden.value
|
|
34759
|
-
}, toHandlers(unref(handlers), true)), [createElementVNode("span", _hoisted_2$
|
|
35484
|
+
}, toHandlers(unref(handlers), true)), [createElementVNode("span", _hoisted_2$16, [renderSlot(_ctx.$slots, "default")])], 16, _hoisted_1$21);
|
|
35485
|
+
};
|
|
35486
|
+
}
|
|
35487
|
+
});
|
|
35488
|
+
function lineClampCount(lines) {
|
|
35489
|
+
if (lines === void 0 || !Number.isFinite(lines)) return 3;
|
|
35490
|
+
return Math.max(1, Math.floor(lines));
|
|
35491
|
+
}
|
|
35492
|
+
function measureHeights(content) {
|
|
35493
|
+
content.setAttribute("data-measuring", "");
|
|
35494
|
+
const collapsed = content.clientHeight;
|
|
35495
|
+
const full = content.scrollHeight;
|
|
35496
|
+
content.removeAttribute("data-measuring");
|
|
35497
|
+
return {
|
|
35498
|
+
collapsed,
|
|
35499
|
+
full
|
|
35500
|
+
};
|
|
35501
|
+
}
|
|
35502
|
+
function measureLineClamp(content) {
|
|
35503
|
+
if (content.hasAttribute("data-animating")) return null;
|
|
35504
|
+
const { collapsed, full } = measureHeights(content);
|
|
35505
|
+
return full - collapsed > 1;
|
|
35506
|
+
}
|
|
35507
|
+
function toMs(value) {
|
|
35508
|
+
const amount = Number.parseFloat(value);
|
|
35509
|
+
if (Number.isNaN(amount)) return 0;
|
|
35510
|
+
return value.trim().endsWith("ms") ? amount : amount * 1e3;
|
|
35511
|
+
}
|
|
35512
|
+
var FADE = "--hn-line-clamp-fade";
|
|
35513
|
+
function animateLineClamp(content, expanded, done) {
|
|
35514
|
+
const running = content.style.maxHeight !== "";
|
|
35515
|
+
const current = running ? content.getBoundingClientRect().height : void 0;
|
|
35516
|
+
const fade = running ? getComputedStyle(content).getPropertyValue(FADE) : "";
|
|
35517
|
+
content.style.transition = "none";
|
|
35518
|
+
const { collapsed, full } = measureHeights(content);
|
|
35519
|
+
const from = current ?? (expanded ? collapsed : full);
|
|
35520
|
+
const to = expanded ? full : collapsed;
|
|
35521
|
+
content.toggleAttribute("data-expanded", !expanded);
|
|
35522
|
+
if (fade) content.style.setProperty(FADE, fade);
|
|
35523
|
+
content.style.maxHeight = `${from}px`;
|
|
35524
|
+
content.setAttribute("data-animating", "");
|
|
35525
|
+
content.offsetHeight;
|
|
35526
|
+
content.style.transition = "";
|
|
35527
|
+
content.style.removeProperty(FADE);
|
|
35528
|
+
content.toggleAttribute("data-expanded", expanded);
|
|
35529
|
+
content.style.maxHeight = `${to}px`;
|
|
35530
|
+
let timer;
|
|
35531
|
+
const stop = () => {
|
|
35532
|
+
content.removeEventListener("transitionend", onEnd);
|
|
35533
|
+
clearTimeout(timer);
|
|
35534
|
+
};
|
|
35535
|
+
const finish = () => {
|
|
35536
|
+
stop();
|
|
35537
|
+
content.style.maxHeight = "";
|
|
35538
|
+
content.removeAttribute("data-animating");
|
|
35539
|
+
done();
|
|
35540
|
+
};
|
|
35541
|
+
function onEnd(event) {
|
|
35542
|
+
if (event.target === content && event.propertyName === "max-height") finish();
|
|
35543
|
+
}
|
|
35544
|
+
if (Math.abs(from - to) < 1) {
|
|
35545
|
+
finish();
|
|
35546
|
+
return stop;
|
|
35547
|
+
}
|
|
35548
|
+
const duration = Math.max(...getComputedStyle(content).transitionDuration.split(",").map(toMs));
|
|
35549
|
+
content.addEventListener("transitionend", onEnd);
|
|
35550
|
+
timer = setTimeout(finish, duration + 80);
|
|
35551
|
+
return stop;
|
|
35552
|
+
}
|
|
35553
|
+
function revealLineClamp(root) {
|
|
35554
|
+
root?.scrollIntoView?.({ block: "nearest" });
|
|
35555
|
+
}
|
|
35556
|
+
//#endregion
|
|
35557
|
+
//#region ../shared/src/variants/line-clamp.ts
|
|
35558
|
+
var lineClampRoot = tv({ base: "hn-line-clamp-root" });
|
|
35559
|
+
var lineClampContent = tv({ base: "hn-line-clamp" });
|
|
35560
|
+
var lineClampToggle = tv({ base: "hn-line-clamp-toggle" });
|
|
35561
|
+
//#endregion
|
|
35562
|
+
//#region src/components/line-clamp/LineClamp.vue?vue&type=script&setup=true&lang.ts
|
|
35563
|
+
var _hoisted_1$20 = ["data-expanded", "data-truncated"];
|
|
35564
|
+
var _hoisted_2$15 = ["id", "data-expanded"];
|
|
35565
|
+
//#endregion
|
|
35566
|
+
//#region src/components/line-clamp/LineClamp.vue
|
|
35567
|
+
var LineClamp_default = /* @__PURE__ */ defineComponent({
|
|
35568
|
+
name: "HnLineClamp",
|
|
35569
|
+
__name: "LineClamp",
|
|
35570
|
+
props: /*@__PURE__*/ mergeModels({
|
|
35571
|
+
lines: {},
|
|
35572
|
+
expandLabel: {},
|
|
35573
|
+
collapseLabel: {},
|
|
35574
|
+
class: {}
|
|
35575
|
+
}, {
|
|
35576
|
+
"expanded": {
|
|
35577
|
+
type: Boolean,
|
|
35578
|
+
default: false
|
|
35579
|
+
},
|
|
35580
|
+
"expandedModifiers": {}
|
|
35581
|
+
}),
|
|
35582
|
+
emits: ["update:expanded"],
|
|
35583
|
+
setup(__props) {
|
|
35584
|
+
const props = __props;
|
|
35585
|
+
const expanded = useModel(__props, "expanded");
|
|
35586
|
+
const t = useUiLocale();
|
|
35587
|
+
const id = useId();
|
|
35588
|
+
const root = shallowRef(null);
|
|
35589
|
+
const content = shallowRef(null);
|
|
35590
|
+
const truncated = shallowRef(null);
|
|
35591
|
+
const truncation = computed(() => truncated.value === null ? void 0 : `${truncated.value}`);
|
|
35592
|
+
const count = computed(() => lineClampCount(props.lines));
|
|
35593
|
+
let shown = expanded.value;
|
|
35594
|
+
let reveal = false;
|
|
35595
|
+
let stop;
|
|
35596
|
+
function measure() {
|
|
35597
|
+
if (!content.value) return;
|
|
35598
|
+
const next = measureLineClamp(content.value);
|
|
35599
|
+
if (next !== null) truncated.value = next;
|
|
35600
|
+
}
|
|
35601
|
+
function sync() {
|
|
35602
|
+
const element = content.value;
|
|
35603
|
+
if (element && shown !== expanded.value) {
|
|
35604
|
+
shown = expanded.value;
|
|
35605
|
+
const scroll = reveal && !shown;
|
|
35606
|
+
reveal = false;
|
|
35607
|
+
stop?.();
|
|
35608
|
+
stop = animateLineClamp(element, shown, () => {
|
|
35609
|
+
measure();
|
|
35610
|
+
if (scroll) revealLineClamp(root.value);
|
|
35611
|
+
});
|
|
35612
|
+
}
|
|
35613
|
+
measure();
|
|
35614
|
+
}
|
|
35615
|
+
onMounted(() => {
|
|
35616
|
+
measure();
|
|
35617
|
+
document.fonts?.ready.then(measure);
|
|
35618
|
+
});
|
|
35619
|
+
onUpdated(sync);
|
|
35620
|
+
useResizeObserver(content, measure);
|
|
35621
|
+
onBeforeUnmount(() => stop?.());
|
|
35622
|
+
function toggle() {
|
|
35623
|
+
reveal = expanded.value;
|
|
35624
|
+
expanded.value = !expanded.value;
|
|
35625
|
+
}
|
|
35626
|
+
return (_ctx, _cache) => {
|
|
35627
|
+
return openBlock(), createElementBlock("div", {
|
|
35628
|
+
ref_key: "root",
|
|
35629
|
+
ref: root,
|
|
35630
|
+
"data-expanded": expanded.value ? "" : void 0,
|
|
35631
|
+
"data-truncated": truncation.value,
|
|
35632
|
+
class: normalizeClass(unref(cn)(unref(lineClampRoot)(), props.class))
|
|
35633
|
+
}, [createElementVNode("div", {
|
|
35634
|
+
id: unref(id),
|
|
35635
|
+
ref_key: "content",
|
|
35636
|
+
ref: content,
|
|
35637
|
+
"data-expanded": expanded.value ? "" : void 0,
|
|
35638
|
+
style: normalizeStyle({ "--hn-line-clamp": count.value }),
|
|
35639
|
+
class: normalizeClass(unref(lineClampContent)())
|
|
35640
|
+
}, [renderSlot(_ctx.$slots, "default")], 14, _hoisted_2$15), createElementVNode("span", { class: normalizeClass(unref(lineClampToggle)()) }, [createVNode(Button_default, {
|
|
35641
|
+
variant: "link",
|
|
35642
|
+
size: "sm",
|
|
35643
|
+
"aria-expanded": expanded.value,
|
|
35644
|
+
"aria-controls": unref(id),
|
|
35645
|
+
onClick: toggle
|
|
35646
|
+
}, {
|
|
35647
|
+
default: withCtx(() => [createTextVNode(toDisplayString(expanded.value ? props.collapseLabel ?? unref(t).lineClamp.collapse : props.expandLabel ?? unref(t).lineClamp.expand), 1)]),
|
|
35648
|
+
_: 1
|
|
35649
|
+
}, 8, ["aria-expanded", "aria-controls"])], 2)], 10, _hoisted_1$20);
|
|
34760
35650
|
};
|
|
34761
35651
|
}
|
|
34762
35652
|
});
|
|
@@ -34820,120 +35710,6 @@ var ImageGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
34820
35710
|
}
|
|
34821
35711
|
});
|
|
34822
35712
|
//#endregion
|
|
34823
|
-
//#region ../shared/src/lib/scroll-restore.ts
|
|
34824
|
-
var SCROLL_STATE_FIELD = "hnScroll";
|
|
34825
|
-
var RESTORE_DEADLINE_MS = 3e3;
|
|
34826
|
-
var SAVE_THROTTLE_MS = 500;
|
|
34827
|
-
var SCROLL_RESTORE_ATTR = "data-scroll-restore";
|
|
34828
|
-
var SCROLL_ATOP_ATTR = "data-scroll-atop";
|
|
34829
|
-
var SCROLL_AT_ATTR = "data-scroll-at";
|
|
34830
|
-
var SCROLL_ATOP_HIDE_PX = 8;
|
|
34831
|
-
function atopOff(top, off) {
|
|
34832
|
-
if (top > 8) return true;
|
|
34833
|
-
if (top <= 0) return false;
|
|
34834
|
-
return off;
|
|
34835
|
-
}
|
|
34836
|
-
function firstPaintRestoreScript() {
|
|
34837
|
-
return `(function(){try{if(document.readyState!=="loading")return;
|
|
34838
|
-
var r=(history.state&&history.state.${SCROLL_STATE_FIELD})||{};
|
|
34839
|
-
var coarse=!!(window.matchMedia&&matchMedia("(pointer: coarse)").matches);
|
|
34840
|
-
var cs=
|
|
34841
|
-
document.querySelectorAll('[${SCROLL_ATOP_ATTR}]');
|
|
34842
|
-
var mark=function(c,t){if(!coarse){c.style.marginTop=-Math.round(Math.max(0,t))+"px";return;}
|
|
34843
|
-
if(t>8)c.setAttribute("data-off","true");else if(t<=0)c.setAttribute("data-off","false");};
|
|
34844
|
-
for(var i=0;i<cs.length;i++){mark(cs[i],Math.max(0,r[cs[i].getAttribute("${SCROLL_ATOP_ATTR}")]||0));}
|
|
34845
|
-
for(var k in r){var t=Math.max(0,r[k]);var e=
|
|
34846
|
-
document.querySelector('[${SCROLL_RESTORE_ATTR}="'+k+'"]');if(e){e.scrollTop=t;e.setAttribute("${SCROLL_AT_ATTR}",String(e.scrollTop));}}
|
|
34847
|
-
for(var i=0;i<cs.length;i++){(function(c){
|
|
34848
|
-
var e=
|
|
34849
|
-
document.querySelector('[${SCROLL_RESTORE_ATTR}="'+c.getAttribute("${SCROLL_ATOP_ATTR}")+'"]');
|
|
34850
|
-
if(!e)return;
|
|
34851
|
-
var sync=function(){if(e.scrollHeight<=e.clientHeight){e.removeEventListener("scroll",sync);return;}mark(c,e.scrollTop);};
|
|
34852
|
-
e.addEventListener("scroll",sync,{passive:true});
|
|
34853
|
-
})(cs[i]);}
|
|
34854
|
-
}catch{}})()`.replace(/\n/g, "");
|
|
34855
|
-
}
|
|
34856
|
-
function readScrollRecord(state) {
|
|
34857
|
-
if (!state || typeof state !== "object") return {};
|
|
34858
|
-
const record = state[SCROLL_STATE_FIELD];
|
|
34859
|
-
if (!record || typeof record !== "object") return {};
|
|
34860
|
-
return record;
|
|
34861
|
-
}
|
|
34862
|
-
function writeScrollRecord(state, key, top) {
|
|
34863
|
-
const base = state && typeof state === "object" ? state : {};
|
|
34864
|
-
return {
|
|
34865
|
-
...base,
|
|
34866
|
-
[SCROLL_STATE_FIELD]: {
|
|
34867
|
-
...readScrollRecord(base),
|
|
34868
|
-
[key]: top
|
|
34869
|
-
}
|
|
34870
|
-
};
|
|
34871
|
-
}
|
|
34872
|
-
function readEntryId(state) {
|
|
34873
|
-
if (!state || typeof state !== "object") return void 0;
|
|
34874
|
-
return state.position;
|
|
34875
|
-
}
|
|
34876
|
-
function createScrollRestorer(key, ports) {
|
|
34877
|
-
let pending = null;
|
|
34878
|
-
let clearDeadline = null;
|
|
34879
|
-
let clearThrottle = null;
|
|
34880
|
-
let entry;
|
|
34881
|
-
function stopWaiting() {
|
|
34882
|
-
pending = null;
|
|
34883
|
-
clearDeadline?.();
|
|
34884
|
-
clearDeadline = null;
|
|
34885
|
-
}
|
|
34886
|
-
function apply(top) {
|
|
34887
|
-
const el = ports.getViewport();
|
|
34888
|
-
if (!el) return false;
|
|
34889
|
-
el.scrollTop = top;
|
|
34890
|
-
return el.scrollHeight - el.clientHeight + 1 >= top;
|
|
34891
|
-
}
|
|
34892
|
-
function save() {
|
|
34893
|
-
if (pending !== null) return;
|
|
34894
|
-
if (readEntryId(ports.readState()) !== entry) return;
|
|
34895
|
-
const el = ports.getViewport();
|
|
34896
|
-
if (!el) return;
|
|
34897
|
-
ports.writeState(writeScrollRecord(ports.readState(), key, el.scrollTop));
|
|
34898
|
-
}
|
|
34899
|
-
return {
|
|
34900
|
-
restore(initial) {
|
|
34901
|
-
stopWaiting();
|
|
34902
|
-
entry = readEntryId(ports.readState());
|
|
34903
|
-
const saved = readScrollRecord(ports.readState())[key];
|
|
34904
|
-
const firstPaintTop = ports.takeFirstPaintTop();
|
|
34905
|
-
if (initial) {
|
|
34906
|
-
if (saved === void 0) return;
|
|
34907
|
-
const el = ports.getViewport();
|
|
34908
|
-
if (firstPaintTop !== void 0 && el && el.scrollTop !== firstPaintTop) return;
|
|
34909
|
-
}
|
|
34910
|
-
const top = saved ?? 0;
|
|
34911
|
-
if (apply(top)) return;
|
|
34912
|
-
pending = top;
|
|
34913
|
-
clearDeadline = ports.setTimer(stopWaiting, RESTORE_DEADLINE_MS);
|
|
34914
|
-
},
|
|
34915
|
-
settle() {
|
|
34916
|
-
if (pending === null) return;
|
|
34917
|
-
if (apply(pending)) stopWaiting();
|
|
34918
|
-
},
|
|
34919
|
-
abandon: stopWaiting,
|
|
34920
|
-
isPending: () => pending !== null,
|
|
34921
|
-
save,
|
|
34922
|
-
saveSoon() {
|
|
34923
|
-
if (clearThrottle) return;
|
|
34924
|
-
clearThrottle = ports.setTimer(() => {
|
|
34925
|
-
clearThrottle = null;
|
|
34926
|
-
save();
|
|
34927
|
-
}, 500);
|
|
34928
|
-
},
|
|
34929
|
-
dispose() {
|
|
34930
|
-
stopWaiting();
|
|
34931
|
-
clearThrottle?.();
|
|
34932
|
-
clearThrottle = null;
|
|
34933
|
-
}
|
|
34934
|
-
};
|
|
34935
|
-
}
|
|
34936
|
-
//#endregion
|
|
34937
35713
|
//#region src/components/data-table/Slot.ts
|
|
34938
35714
|
function DataTableSlot(props, { slots }) {
|
|
34939
35715
|
return createVNode(Fragment, null, props.render ? props.render(props.context) : slots.default?.());
|
|
@@ -42062,6 +42838,6 @@ var Masonry_default = /* @__PURE__ */ defineComponent({
|
|
|
42062
42838
|
}
|
|
42063
42839
|
});
|
|
42064
42840
|
//#endregion
|
|
42065
|
-
export { Accordion_default as Accordion, AccordionContent_default as AccordionContent, AccordionItem_default as AccordionItem, AccordionTrigger_default as AccordionTrigger, Affix_default as Affix, Alert_default as Alert, AlertDialog_default as AlertDialog, Anchor_default as Anchor, AppShell_default as AppShell, AspectRatio_default as AspectRatio, Autocomplete_default as Autocomplete, Avatar_default as Avatar, AvatarGroup_default as AvatarGroup, Badge_default as Badge, Banner_default as Banner, Blockquote_default as Blockquote, Breadcrumb_default as Breadcrumb, BreadcrumbItem_default as BreadcrumbItem, BreadcrumbSeparator_default as BreadcrumbSeparator, Button_default as Button, ButtonGroup_default as ButtonGroup, Calendar_default as Calendar, Callout_default as Callout, Card_default as Card, Carousel_default as Carousel, Center_default as Center, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Chip_default as Chip, CloseButton_default as CloseButton, Code_default as Code, CodeBlock_default as CodeBlock, Collapsible_default as Collapsible, CollapsibleContent_default as CollapsibleContent, CollapsibleTrigger_default as CollapsibleTrigger, Combobox_default as Combobox, CommandPalette_default as CommandPalette, Container_default as Container, ContextMenu_default as ContextMenu, ContextMenuCheckboxItem_default as ContextMenuCheckboxItem, ContextMenuGroup_default as ContextMenuGroup, ContextMenuItem_default as ContextMenuItem, ContextMenuLabel_default as ContextMenuLabel, ContextMenuRadioGroup_default as ContextMenuRadioGroup, ContextMenuRadioItem_default as ContextMenuRadioItem, ContextMenuSeparator_default as ContextMenuSeparator, ContextMenuSub_default as ContextMenuSub, CopyButton_default as CopyButton, DURATION, DataList_default as DataList, DataTable_default as DataTable, DateField_default as DateField, DatePicker_default as DatePicker, DateRangeField_default as DateRangeField, DateRangePicker_default as DateRangePicker, DateTimePicker_default as DateTimePicker, DescriptionDetails_default as DescriptionDetails, DescriptionList_default as DescriptionList, DescriptionTerm_default as DescriptionTerm, Dialog_default as Dialog, DisclosureIcon_default as DisclosureIcon, Divider_default as Divider, Drawer_default as Drawer, DropdownMenu_default as DropdownMenu, DropdownMenuCheckboxItem_default as DropdownMenuCheckboxItem, DropdownMenuGroup_default as DropdownMenuGroup, DropdownMenuItem_default as DropdownMenuItem, DropdownMenuLabel_default as DropdownMenuLabel, DropdownMenuRadioGroup_default as DropdownMenuRadioGroup, DropdownMenuRadioItem_default as DropdownMenuRadioItem, DropdownMenuSeparator_default as DropdownMenuSeparator, DropdownMenuSub_default as DropdownMenuSub, EASE, Editable_default as Editable, Empty_default as Empty, FileUpload_default as FileUpload, Flex_default as Flex, FloatButton_default as FloatButton, Form_default as Form, FormField_default as FormField, FormLayout_default as FormLayout, Grid_default as Grid, Heading_default as Heading, Highlight_default as Highlight, HoverCard_default as HoverCard, IconButton_default as IconButton, Image_default as Image, ImageGroup_default as ImageGroup, Indicator_default as Indicator, Inline_default as Inline, Input_default as Input, InputGroup_default as InputGroup, InputGroupAddon_default as InputGroupAddon, Kbd_default as Kbd, Lightbox_default as Lightbox, Link_default as Link, List_default as List, ListItem_default as ListItem, Listbox_default as Listbox, LoadingOverlay_default as LoadingOverlay, Mark_default as Mark, Masonry_default as Masonry, Menubar_default as Menubar, MenubarCheckboxItem_default as MenubarCheckboxItem, MenubarGroup_default as MenubarGroup, MenubarItem_default as MenubarItem, MenubarLabel_default as MenubarLabel, MenubarMenu_default as MenubarMenu, MenubarRadioGroup_default as MenubarRadioGroup, MenubarRadioItem_default as MenubarRadioItem, MenubarSeparator_default as MenubarSeparator, MenubarSub_default as MenubarSub, MeterGroup_default as MeterGroup, MonthGrid_default as MonthGrid, MultiCombobox_default as MultiCombobox, MultiSelect_default as MultiSelect, NavLink_default as NavLink, NavigationMenu_default as NavigationMenu, NavigationMenuContent_default as NavigationMenuContent, NavigationMenuItem_default as NavigationMenuItem, NavigationMenuLink_default as NavigationMenuLink, NavigationMenuTrigger_default as NavigationMenuTrigger, NumberFormat_default as NumberFormat, NumberInput_default as NumberInput, Page_default as Page, PageAside_default as PageAside, PageBody_default as PageBody, PageHeader_default as PageHeader, Pagination_default as Pagination, PaginationContent_default as PaginationContent, PaginationInfo_default as PaginationInfo, PaginationJump_default as PaginationJump, PaginationSize_default as PaginationSize, Panel_default as Panel, PasswordInput_default as PasswordInput, PinInput_default as PinInput, Popconfirm_default as Popconfirm, Popover_default as Popover, PrevNext_default as PrevNext, PrevNextLink_default as PrevNextLink, Progress_default as Progress, Prose_default as Prose, QRCode_default as QRCode, REQUIRED_SINGLETONS, RESTORE_DEADLINE_MS, RadioGroup_default as RadioGroup, RangeCalendar_default as RangeCalendar, RangeSlider_default as RangeSlider, Rating_default as Rating, Result_default as Result, RingProgress_default as RingProgress, Ripple_default as Ripple, SAVE_THROTTLE_MS, SCROLL_ATOP_ATTR, SCROLL_ATOP_HIDE_PX, SCROLL_AT_ATTR, SCROLL_RESTORE_ATTR, SCROLL_STATE_FIELD, STAGGER, ScrollArea_default as ScrollArea, ScrollTop_default as ScrollTop, SearchInput_default as SearchInput, Section_default as Section, SegmentedControl_default as SegmentedControl, Select_default as Select, Sheet_default as Sheet, Sidebar_default as Sidebar, SidebarGroup_default as SidebarGroup, SidebarLabel_default as SidebarLabel, SidebarTrigger_default as SidebarTrigger, SimpleGrid_default as SimpleGrid, Skeleton_default as Skeleton, Slider_default as Slider, Space_default as Space, Spinner_default as Spinner, SplitButton_default as SplitButton, Splitter_default as Splitter, SplitterHandle_default as SplitterHandle, SplitterPanel_default as SplitterPanel, Spoiler_default as Spoiler, Stack_default as Stack, Statistic_default as Statistic, Stepper_default as Stepper, Switch_default as Switch, TRANSITION, TRAVEL, Table_default as Table, TableBody_default as TableBody, TableCell_default as TableCell, TableHead_default as TableHead, TableHeader_default as TableHeader, TableRow_default as TableRow, Tabs_default as Tabs, TabsContent_default as TabsContent, TabsList_default as TabsList, TabsTrigger_default as TabsTrigger, Tag_default as Tag, TagsInput_default as TagsInput, Text_default as Text, Textarea_default as Textarea, Time_default as Time, TimeField_default as TimeField, Timeline_default as Timeline, Toaster_default as Toaster, Toggle_default as Toggle, Toolbar_default as Toolbar, ToolbarButton_default as ToolbarButton, ToolbarLink_default as ToolbarLink, ToolbarSeparator_default as ToolbarSeparator, ToolbarToggleGroup_default as ToolbarToggleGroup, ToolbarToggleItem_default as ToolbarToggleItem, Tooltip_default as Tooltip, TooltipProvider_default as TooltipProvider, Tree_default as Tree, TreeSelect_default as TreeSelect, VirtualList_default as VirtualList, VisuallyHidden_default as VisuallyHidden, atopOff, cn, createScrollRestorer, cssEase, enUS, firstPaintRestoreScript, provideImageResolver, provideUiLocale, readScrollRecord, toast, tokenize, tokensToHtml, tv, useAvatarGroup, useImageResolver, useUiLocale, vTooltip, writeScrollRecord, zhCN };
|
|
42841
|
+
export { Accordion_default as Accordion, AccordionContent_default as AccordionContent, AccordionItem_default as AccordionItem, AccordionTrigger_default as AccordionTrigger, Affix_default as Affix, Alert_default as Alert, AlertDialog_default as AlertDialog, Anchor_default as Anchor, AppShell_default as AppShell, AspectRatio_default as AspectRatio, Autocomplete_default as Autocomplete, Avatar_default as Avatar, AvatarGroup_default as AvatarGroup, Badge_default as Badge, Banner_default as Banner, Blockquote_default as Blockquote, Breadcrumb_default as Breadcrumb, BreadcrumbItem_default as BreadcrumbItem, BreadcrumbSeparator_default as BreadcrumbSeparator, Button_default as Button, ButtonGroup_default as ButtonGroup, Calendar_default as Calendar, Callout_default as Callout, Card_default as Card, Carousel_default as Carousel, Center_default as Center, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Chip_default as Chip, CloseButton_default as CloseButton, Code_default as Code, CodeBlock_default as CodeBlock, Collapsible_default as Collapsible, CollapsibleContent_default as CollapsibleContent, CollapsibleTrigger_default as CollapsibleTrigger, Combobox_default as Combobox, CommandPalette_default as CommandPalette, CommandPaletteInput_default as CommandPaletteInput, Container_default as Container, ContextMenu_default as ContextMenu, ContextMenuCheckboxItem_default as ContextMenuCheckboxItem, ContextMenuGroup_default as ContextMenuGroup, ContextMenuItem_default as ContextMenuItem, ContextMenuLabel_default as ContextMenuLabel, ContextMenuRadioGroup_default as ContextMenuRadioGroup, ContextMenuRadioItem_default as ContextMenuRadioItem, ContextMenuSeparator_default as ContextMenuSeparator, ContextMenuSub_default as ContextMenuSub, CopyButton_default as CopyButton, DURATION, DataList_default as DataList, DataTable_default as DataTable, DateField_default as DateField, DatePicker_default as DatePicker, DateRangeField_default as DateRangeField, DateRangePicker_default as DateRangePicker, DateTimePicker_default as DateTimePicker, DescriptionDetails_default as DescriptionDetails, DescriptionList_default as DescriptionList, DescriptionTerm_default as DescriptionTerm, Dialog_default as Dialog, DisclosureIcon_default as DisclosureIcon, Divider_default as Divider, Drawer_default as Drawer, DropdownMenu_default as DropdownMenu, DropdownMenuCheckboxItem_default as DropdownMenuCheckboxItem, DropdownMenuGroup_default as DropdownMenuGroup, DropdownMenuItem_default as DropdownMenuItem, DropdownMenuLabel_default as DropdownMenuLabel, DropdownMenuRadioGroup_default as DropdownMenuRadioGroup, DropdownMenuRadioItem_default as DropdownMenuRadioItem, DropdownMenuSeparator_default as DropdownMenuSeparator, DropdownMenuSub_default as DropdownMenuSub, EASE, Editable_default as Editable, Empty_default as Empty, FileUpload_default as FileUpload, Flex_default as Flex, FloatButton_default as FloatButton, Form_default as Form, FormField_default as FormField, FormLayout_default as FormLayout, Grid_default as Grid, Heading_default as Heading, Highlight_default as Highlight, HoverCard_default as HoverCard, IconButton_default as IconButton, Image_default as Image, ImageGroup_default as ImageGroup, Indicator_default as Indicator, Inline_default as Inline, Input_default as Input, InputGroup_default as InputGroup, InputGroupAddon_default as InputGroupAddon, Kbd_default as Kbd, Lightbox_default as Lightbox, LineClamp_default as LineClamp, Link_default as Link, List_default as List, ListItem_default as ListItem, Listbox_default as Listbox, LoadingOverlay_default as LoadingOverlay, Mark_default as Mark, Masonry_default as Masonry, Menubar_default as Menubar, MenubarCheckboxItem_default as MenubarCheckboxItem, MenubarGroup_default as MenubarGroup, MenubarItem_default as MenubarItem, MenubarLabel_default as MenubarLabel, MenubarMenu_default as MenubarMenu, MenubarRadioGroup_default as MenubarRadioGroup, MenubarRadioItem_default as MenubarRadioItem, MenubarSeparator_default as MenubarSeparator, MenubarSub_default as MenubarSub, MeterGroup_default as MeterGroup, MonthGrid_default as MonthGrid, MultiCombobox_default as MultiCombobox, MultiSelect_default as MultiSelect, NavLink_default as NavLink, NavigationMenu_default as NavigationMenu, NavigationMenuContent_default as NavigationMenuContent, NavigationMenuItem_default as NavigationMenuItem, NavigationMenuLink_default as NavigationMenuLink, NavigationMenuTrigger_default as NavigationMenuTrigger, NumberFormat_default as NumberFormat, NumberInput_default as NumberInput, Page_default as Page, PageAside_default as PageAside, PageBody_default as PageBody, PageHeader_default as PageHeader, Pagination_default as Pagination, PaginationContent_default as PaginationContent, PaginationInfo_default as PaginationInfo, PaginationJump_default as PaginationJump, PaginationSize_default as PaginationSize, Panel_default as Panel, PasswordInput_default as PasswordInput, PinInput_default as PinInput, Popconfirm_default as Popconfirm, Popover_default as Popover, PrevNext_default as PrevNext, PrevNextLink_default as PrevNextLink, Progress_default as Progress, Prose_default as Prose, QRCode_default as QRCode, REQUIRED_SINGLETONS, RESTORE_DEADLINE_MS, RadioGroup_default as RadioGroup, RangeCalendar_default as RangeCalendar, RangeSlider_default as RangeSlider, Rating_default as Rating, Result_default as Result, RingProgress_default as RingProgress, Ripple_default as Ripple, SAVE_THROTTLE_MS, SCROLL_ATOP_ATTR, SCROLL_ATOP_HIDE_PX, SCROLL_AT_ATTR, SCROLL_RESTORE_ATTR, SCROLL_STATE_FIELD, STAGGER, ScrollArea_default as ScrollArea, ScrollTop_default as ScrollTop, SearchInput_default as SearchInput, Section_default as Section, SegmentedControl_default as SegmentedControl, Select_default as Select, Sheet_default as Sheet, Sidebar_default as Sidebar, SidebarGroup_default as SidebarGroup, SidebarLabel_default as SidebarLabel, SidebarTrigger_default as SidebarTrigger, SimpleGrid_default as SimpleGrid, Skeleton_default as Skeleton, Slider_default as Slider, Space_default as Space, Spinner_default as Spinner, SplitButton_default as SplitButton, Splitter_default as Splitter, SplitterHandle_default as SplitterHandle, SplitterPanel_default as SplitterPanel, Spoiler_default as Spoiler, Stack_default as Stack, Statistic_default as Statistic, Stepper_default as Stepper, Switch_default as Switch, TRANSITION, TRAVEL, Table_default as Table, TableBody_default as TableBody, TableCell_default as TableCell, TableHead_default as TableHead, TableHeader_default as TableHeader, TableRow_default as TableRow, Tabs_default as Tabs, TabsContent_default as TabsContent, TabsList_default as TabsList, TabsTrigger_default as TabsTrigger, Tag_default as Tag, TagsInput_default as TagsInput, Text_default as Text, Textarea_default as Textarea, Time_default as Time, TimeField_default as TimeField, Timeline_default as Timeline, Toaster_default as Toaster, Toggle_default as Toggle, Toolbar_default as Toolbar, ToolbarButton_default as ToolbarButton, ToolbarLink_default as ToolbarLink, ToolbarSeparator_default as ToolbarSeparator, ToolbarToggleGroup_default as ToolbarToggleGroup, ToolbarToggleItem_default as ToolbarToggleItem, Tooltip_default as Tooltip, TooltipProvider_default as TooltipProvider, Tree_default as Tree, TreeSelect_default as TreeSelect, VirtualList_default as VirtualList, VisuallyHidden_default as VisuallyHidden, atopOff, cn, createScrollRestoreSession, createScrollRestorer, cssEase, enUS, firstPaintRestoreScript, jaJP, keepScrollPosition, provideImageResolver, provideUiLocale, readScrollRecord, scrollRestoreScript, toast, tokenize, tokensToHtml, tv, useAvatarGroup, useImageResolver, useUiLocale, vTooltip, writeScrollRecord, zhCN };
|
|
42066
42842
|
|
|
42067
42843
|
//# sourceMappingURL=index.js.map
|