@astryx-vue/core 0.36.1 → 0.37.0
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/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-C4oB89RV.js → AlertDialog-DwITRN1M.js} +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-CU12SF6s.js → AppShell-ClZ2Y8cu.js} +2 -2
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-DCLOhzZP.js → BottomSheet-CDxV1Rkx.js} +3 -3
- package/dist/BottomSheet-Cr6FacYP.js +1853 -0
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-BfjWIfgO.js → Breadcrumbs-DaxgM0-F.js} +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-f9HzZe5y.js → Chat-BRtDKajd.js} +230 -12
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-Dxp-BWv-.js → Collapsible-DfVihLCR.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-PyPfsPLY.js → CommandPalette-CWaKVNGZ.js} +2 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-B07QdP_p.js → ComplexSelector-D2QRdM57.js} +1 -1
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-B6NH9NBS.js → ContextMenu-D-G53u7B.js} +4 -4
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-TrPijW9a.js → DateInput-BHSp4fZS.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-bKPzsoHA.js → DateRangeInput-DP1QWK_6.js} +1 -1
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-5jZPqFu2.js → DateTimeInput-Bgx9lgWb.js} +3 -3
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-CDAicnpK.js → Dialog-DCKT1dWC.js} +2 -1
- package/dist/{Dialog-dm_qZ9NI.js → Dialog-DRQrtKHT.js} +5 -82
- package/dist/{DialogHeader-CQfcOIfF.js → DialogHeader-C3Mc580J.js} +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/Drawer-CnFTUjln.js +422 -0
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-C-SLsVSO.js → DropdownMenu-DU_Rw88D.js} +4 -4
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-CpFgVnlQ.js → Layout-BDS2ZN6C.js} +1 -1
- package/dist/{LayoutPanel-Dhm0Hubb.js → LayoutPanel-D56PBM4I.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-BSzyDGkK.js → Lightbox-CnTXrgq6.js} +2 -2
- package/dist/Link/index.d.ts +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-C1_IinAo.js → MobileNavToggle-CjlgmcSf.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-DbYO8V7N.js → MoreMenu-CGTbwTyw.js} +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CthCkW-w.js → MultiSelector-DUQMNBoZ.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenu-g8ZVhLMG.js → NavMenu-BflnhBtX.js} +1 -1
- package/dist/{NavMenuItem-DJg9jfHm.js → NavMenuItem-CrFrczWe.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-BM52uE72.js → NumberInput-vWUcgJU8.js} +2 -0
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-nW6GCEsY.js → OverflowList-D9Ua6e3-.js} +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DFZivDZZ.js → Pagination-DBikmHyn.js} +3 -3
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-IvZGq1LC.js → Popover-CTCWhA_K.js} +3 -3
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CQdyB8_N.js → PowerSearch-CTNFHNnr.js} +10 -10
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-icOfE3ja.js → Selector-BvxQXUYr.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-ZZ5zCQz0.js → SideNav-D8jQrwtL.js} +1 -1
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-C-HBxmkc.js → TabList-DjRutwar.js} +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-aMqVf_iH.js → Table-3GiSElIS.js} +8 -8
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-YJtL9Fi6.js → TextArea-BtBC4IoD.js} +2 -0
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-CuPxOApN.js → TextInput-cotkU2bC.js} +2 -0
- package/dist/{TimeField-DNxPI2cM.js → TimeField-BYuUKUNq.js} +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-PJdyNX0T.js → TimeInput-Bqo_oHMl.js} +1 -1
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-W6aKxXlF.js → Toast-BSay0eZw.js} +14 -6
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-CdyoUaoZ.js → Tokenizer-D-wBxbBE.js} +3 -3
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CxAm5bN5.js → TopNav-D7jH9iwk.js} +2 -2
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/{accessibleName-CN1vKvS_.js → accessibleName-CHrrgpAy.js} +1 -1
- package/dist/composables/index.js +4 -4
- package/dist/{focusLeaving-DMkbxFkF.js → focusLeaving-BbZ69DYV.js} +1 -1
- package/dist/{focusReturn-DfZS7TCp.js → focusReturn-BeSRm0xD.js} +34 -3
- package/dist/{index-ZXrvTM3A.d.ts → index-0RIgvtdm.d.ts} +2 -2
- package/dist/{index-tdOyqA_U.d.ts → index-Ak1b0V24.d.ts} +1 -1
- package/dist/{index-DYabo8TI.d.ts → index-B44fLswd.d.ts} +2 -2
- package/dist/{index-B27k2e77.d.ts → index-B7Rd2RuL.d.ts} +44 -32
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-x7g2WHHx.d.ts → index-BhpRhww0.d.ts} +3 -3
- package/dist/{index-rr6Rns7h.d.ts → index-CGRtGORf.d.ts} +1 -1
- package/dist/{index-C4S65SAW.d.ts → index-CKnr0JlT.d.ts} +1 -1
- package/dist/{index-CdvmnNMH.d.ts → index-COgrQZIL.d.ts} +1 -1
- package/dist/{index-CBOv5j3c.d.ts → index-CbA8rR_b.d.ts} +1 -1
- package/dist/{index-JE1HrzdJ.d.ts → index-DVX2jlTQ.d.ts} +2 -2
- package/dist/{index-DofC9Rll.d.ts → index-Dk50Zh3F.d.ts} +2 -2
- package/dist/{index-BfFpUr1B.d.ts → index-ZKBj_1nu.d.ts} +1 -1
- package/dist/{index-BufuCsTx.d.ts → index-hwP1oWCA.d.ts} +2 -2
- package/dist/{index-C3JmGujU.d.ts → index-mK1ICsVg.d.ts} +1 -1
- package/dist/index.d.ts +17 -17
- package/dist/index.js +46 -46
- package/dist/{layerFocusReturn-CEvrMbxH.js → layerFocusReturn-uixUCSc8.js} +1 -1
- package/dist/{lazyBottomSheet-DlrpPOl8.js → lazyBottomSheet-C6Rw8yoX.js} +1 -1
- package/dist/{modalOutlet-Drr9a16b.js → modalOutlet-BwR9AAlm.js} +16 -1
- package/dist/position-DwHfneha.js +79 -0
- package/dist/rideKeyboard-BCzVooOd.js +1635 -0
- package/dist/sheetTransition-BEm1GCv1.js +76 -0
- package/dist/{useChatStreamScroll-DWhnCSP1.js → useChatStreamScroll-3mJvbNtI.js} +30 -4
- package/dist/{useFocusTrap-DcjriBe1.js → useFocusTrap-Bj9GskLh.js} +1 -1
- package/dist/{useMenuPress-zOinmIFS.js → useMenuPress-kjmot8Bn.js} +1 -1
- package/dist/useMobileKeyboard-BDPV51xl.js +806 -0
- package/dist/{useRestoreFocus-DS7uQWok.js → useRestoreFocus-m3rsqE4d.js} +1 -1
- package/package.json +1 -1
- package/styles/chat.css +6 -0
- package/styles/drawer.css +136 -44
- package/dist/BottomSheet-Chr9yCIL.js +0 -4353
- package/dist/Drawer-DKSqpR2p.js +0 -137
|
@@ -1,91 +1,14 @@
|
|
|
1
1
|
import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
|
|
2
2
|
import { n as provideLayerMountTarget } from "./mount-7R_s-bHB.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as useFocusTrap } from "./useFocusTrap-DcjriBe1.js";
|
|
3
|
+
import { t as useFocusTrap } from "./useFocusTrap-Bj9GskLh.js";
|
|
5
4
|
import { t as useScrollLock } from "./scrollLock-CoVg9lLU.js";
|
|
6
5
|
import { t as holdEntranceInput } from "./holdEntranceInput-CROBPhuO.js";
|
|
7
|
-
import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-
|
|
8
|
-
import { t as createModalOutletHandle } from "./modalOutlet-
|
|
6
|
+
import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-uixUCSc8.js";
|
|
7
|
+
import { t as createModalOutletHandle } from "./modalOutlet-BwR9AAlm.js";
|
|
8
|
+
import { a as useBackdropPress, i as DIALOG_CONTEXT_KEY, n as resolveDialogPositionOffsets, r as findInitialFocusTarget, t as formatDialogSize } from "./position-DwHfneha.js";
|
|
9
9
|
import { o as provideLayoutContainer } from "./context-D-Hwh-Jf.js";
|
|
10
10
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, unref, useAttrs, useId, useTemplateRef, watch } from "vue";
|
|
11
11
|
import "../styles/dialog.css";
|
|
12
|
-
//#region src/layer/useBackdropPress.ts
|
|
13
|
-
/**
|
|
14
|
-
* 模态框「点遮罩关闭」的共用判断。Dialog(含 Drawer、CommandPalette)都走这里。
|
|
15
|
-
*
|
|
16
|
-
* 原生 `<dialog>` 的遮罩没有自己的元素,点在遮罩上的 click 目标就是 dialog 本身。
|
|
17
|
-
* 只看 click 不够,两种情况要排除:
|
|
18
|
-
*
|
|
19
|
-
* - 按下在框里、松手在遮罩上(拖选文字、拖滑块拖出了边)。浏览器把这次 click
|
|
20
|
-
* 发给两者共同的祖先,也就是 dialog,看起来像点了遮罩。只有按下和松手都在
|
|
21
|
-
* 遮罩上才算。
|
|
22
|
-
* - 这一下按压已经把框里打开的弹出框当作「点外面」关掉了。这一下是弹出框的,
|
|
23
|
-
* 模态框留着;再点一次遮罩才关它,和连按两次 Escape 一样。
|
|
24
|
-
*/
|
|
25
|
-
function useBackdropPress(getHost, onDismiss) {
|
|
26
|
-
let downOnBackdrop = false;
|
|
27
|
-
let downGesture = null;
|
|
28
|
-
function onPointerDown(event) {
|
|
29
|
-
downOnBackdrop = event.target === getHost();
|
|
30
|
-
downGesture = currentGesture();
|
|
31
|
-
}
|
|
32
|
-
function onClick(event) {
|
|
33
|
-
const startedOnBackdrop = downOnBackdrop;
|
|
34
|
-
const gesture = downGesture;
|
|
35
|
-
downOnBackdrop = false;
|
|
36
|
-
downGesture = null;
|
|
37
|
-
if (event.target !== getHost() || !startedOnBackdrop) return;
|
|
38
|
-
if (gesture != null && didOutsideDismissInGesture(gesture)) return;
|
|
39
|
-
onDismiss();
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
onPointerDown,
|
|
43
|
-
onClick
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/Dialog/context.ts
|
|
48
|
-
const DIALOG_CONTEXT_KEY = Symbol("astryx-dialog");
|
|
49
|
-
//#endregion
|
|
50
|
-
//#region src/Dialog/initialFocus.ts
|
|
51
|
-
/**
|
|
52
|
-
* 对话框打开时第一个拿到焦点的元素。
|
|
53
|
-
*
|
|
54
|
-
* 先看明确要求初始焦点的元素(`data-autofocus`),再看标题的默认要求
|
|
55
|
-
* (`data-dialog-default-focus`)。一个要求属于离它最近的那个对话框:嵌套的子对话框
|
|
56
|
-
* 里的要求是子对话框的,哪怕它关着也可能还排着版,焦点落进去就没人看得见了。
|
|
57
|
-
* 藏在 `hidden`、`inert` 里或者被禁用的要求不算数,顺延给下一个。
|
|
58
|
-
*/
|
|
59
|
-
function findInitialFocusTarget(dialog) {
|
|
60
|
-
return [...dialog.querySelectorAll("[data-autofocus]"), ...dialog.querySelectorAll("[data-dialog-default-focus]")].find((request) => isEligible(request, dialog)) ?? null;
|
|
61
|
-
}
|
|
62
|
-
function isEligible(request, dialog) {
|
|
63
|
-
if (request.closest("dialog") !== dialog) return false;
|
|
64
|
-
if (request.matches(":disabled")) return false;
|
|
65
|
-
const hidden = request.closest("[hidden], [inert]");
|
|
66
|
-
return hidden == null || !dialog.contains(hidden);
|
|
67
|
-
}
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/Dialog/position.ts
|
|
70
|
-
function formatPosition(value) {
|
|
71
|
-
return typeof value === "number" ? `${value}px` : value;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* 把 {@link DialogPosition} 映射为 CSS 偏移。未设置的偏移回退为 `auto`。
|
|
75
|
-
*/
|
|
76
|
-
function resolveDialogPositionOffsets(position) {
|
|
77
|
-
const { top, bottom, start, end } = position;
|
|
78
|
-
return {
|
|
79
|
-
top: top !== void 0 ? formatPosition(top) : "auto",
|
|
80
|
-
bottom: bottom !== void 0 ? formatPosition(bottom) : "auto",
|
|
81
|
-
insetInlineStart: start !== void 0 ? formatPosition(start) : "auto",
|
|
82
|
-
insetInlineEnd: end !== void 0 ? formatPosition(end) : "auto"
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
function formatDialogSize(value) {
|
|
86
|
-
return typeof value === "number" ? `${value}px` : value;
|
|
87
|
-
}
|
|
88
|
-
//#endregion
|
|
89
12
|
//#region src/Dialog/Dialog.vue
|
|
90
13
|
const _hoisted_1 = [
|
|
91
14
|
"data-variant",
|
|
@@ -322,4 +245,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
322
245
|
}
|
|
323
246
|
});
|
|
324
247
|
//#endregion
|
|
325
|
-
export {
|
|
248
|
+
export { _sfc_main as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./IconButton-4BXILpv-.js";
|
|
2
2
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
3
|
-
import {
|
|
3
|
+
import { i as DIALOG_CONTEXT_KEY } from "./position-DwHfneha.js";
|
|
4
4
|
import { s as useLayoutArea } from "./context-D-Hwh-Jf.js";
|
|
5
5
|
import { t as dialogMessages } from "./dialog-CNjGcdd1.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, getCurrentInstance, inject, mergeProps, normalizeClass, onBeforeUnmount, onMounted, openBlock, renderSlot, toDisplayString, useAttrs, useId, useSlots, withCtx } from "vue";
|
package/dist/Drawer/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ba as _default$1, Ga as DrawerHeaderSlots, Ha as DrawerEmits, Ja as DrawerSlots, Ka as DrawerPlacement, Ua as DrawerHeaderEmits, Va as _default, Wa as DrawerHeaderProps, qa as DrawerProps } from "../index-
|
|
1
|
+
import { Ba as _default$1, Ga as DrawerHeaderSlots, Ha as DrawerEmits, Ja as DrawerSlots, Ka as DrawerPlacement, Ua as DrawerHeaderEmits, Va as _default, Wa as DrawerHeaderProps, qa as DrawerProps } from "../index-B7Rd2RuL.js";
|
|
2
2
|
export { _default as Drawer, type DrawerEmits, _default$1 as DrawerHeader, type DrawerHeaderEmits, type DrawerHeaderProps, type DrawerHeaderSlots, type DrawerPlacement, type DrawerProps, type DrawerSlots };
|
package/dist/Drawer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../Drawer-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../Drawer-CnFTUjln.js";
|
|
2
2
|
export { _sfc_main as Drawer, _sfc_main$1 as DrawerHeader };
|
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
+
import { n as provideLayerMountTarget } from "./mount-7R_s-bHB.js";
|
|
3
|
+
import { n as useLayerDepth, o as pushLayer, t as provideLayerDepth } from "./layerDepth-DRfWATFr.js";
|
|
4
|
+
import { t as useFocusTrap } from "./useFocusTrap-Bj9GskLh.js";
|
|
5
|
+
import { t as useScrollLock } from "./scrollLock-CoVg9lLU.js";
|
|
6
|
+
import { t as holdEntranceInput } from "./holdEntranceInput-CROBPhuO.js";
|
|
7
|
+
import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-uixUCSc8.js";
|
|
8
|
+
import { n as notifyTopLayerEntry, t as createModalOutletHandle } from "./modalOutlet-BwR9AAlm.js";
|
|
9
|
+
import { a as useBackdropPress, i as DIALOG_CONTEXT_KEY, r as findInitialFocusTarget, t as formatDialogSize } from "./position-DwHfneha.js";
|
|
10
|
+
import { o as provideLayoutContainer } from "./context-D-Hwh-Jf.js";
|
|
11
|
+
import { t as waitForTransition } from "./sheetTransition-BEm1GCv1.js";
|
|
12
|
+
import { t as _sfc_main$2 } from "./DialogHeader-C3Mc580J.js";
|
|
13
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, defineComponent, getCurrentInstance, mergeProps, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, ref, renderSlot, unref, useAttrs, useId, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
14
|
+
import "../styles/drawer.css";
|
|
15
|
+
//#region src/Drawer/drawerHost.ts
|
|
16
|
+
/**
|
|
17
|
+
* 抽屉的原生宿主:模态时是 `showModal()` 打开的对话框,非模态时是 `popover="manual"`
|
|
18
|
+
* 的顶层元素。两种都在浏览器顶层里,画在页面最上面,不用管 z-index。
|
|
19
|
+
*
|
|
20
|
+
* 不支持 Popover API 的引擎退回 `show()`:不在顶层,但页面照样能用。
|
|
21
|
+
*/
|
|
22
|
+
function isPopoverOpen(dialog) {
|
|
23
|
+
try {
|
|
24
|
+
return dialog.matches(":popover-open");
|
|
25
|
+
} catch {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/** 宿主此刻是否开着。 */
|
|
30
|
+
function isDrawerHostOpen(dialog, isModal) {
|
|
31
|
+
return isModal ? dialog.open : isPopoverOpen(dialog) || dialog.open;
|
|
32
|
+
}
|
|
33
|
+
/** 进入宿主。非模态抽屉进入顶层后通知全局常驻的层(toast 视口)重新排到它上面。 */
|
|
34
|
+
function showDrawerHost(dialog, isModal) {
|
|
35
|
+
if (isModal) {
|
|
36
|
+
dialog.showModal();
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (typeof dialog.showPopover === "function") {
|
|
40
|
+
dialog.showPopover();
|
|
41
|
+
notifyTopLayerEntry();
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
dialog.show();
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* 离开宿主。返回调用方是否还欠一个 `close` 事件:popover 关闭时不发 `close`,
|
|
48
|
+
* 但监听抽屉 `close` 事件的调用方要和模态时一样收到它。
|
|
49
|
+
*/
|
|
50
|
+
function hideDrawerHost(dialog, isModal) {
|
|
51
|
+
if (!isModal && typeof dialog.hidePopover === "function") {
|
|
52
|
+
if (isPopoverOpen(dialog)) dialog.hidePopover();
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
if (dialog.open) dialog.close();
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
/** 补发 popover 宿主欠下的 `close` 事件。 */
|
|
59
|
+
function dispatchDrawerClose(dialog) {
|
|
60
|
+
const EventConstructor = dialog.ownerDocument.defaultView?.Event ?? Event;
|
|
61
|
+
dialog.dispatchEvent(new EventConstructor("close"));
|
|
62
|
+
}
|
|
63
|
+
/** 抽屉是否被后开的模态层盖住:那时页面上的 Escape 归那个模态层,不归它。 */
|
|
64
|
+
function isBehindModal(dialog) {
|
|
65
|
+
try {
|
|
66
|
+
const modal = dialog.ownerDocument.querySelector(":modal");
|
|
67
|
+
return modal != null && modal !== dialog && !dialog.contains(modal);
|
|
68
|
+
} catch {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/Drawer/useDrawerLayerDismiss.ts
|
|
74
|
+
/**
|
|
75
|
+
* 把非模态抽屉登记进全页关闭栈,Escape 才关得掉它(popover 宿主自己不认 Escape)。
|
|
76
|
+
*
|
|
77
|
+
* 模态抽屉不登记:它和对话框一样走原生 `cancel`,在它上面再开的对话框照样先收到 Escape。
|
|
78
|
+
* 点在外面不关:非模态抽屉旁边的页面本来就要能用。
|
|
79
|
+
* 退场还在屏幕上时继续占着栈,Escape 不会漏到下面那一层。
|
|
80
|
+
*/
|
|
81
|
+
function useDrawerLayerDismiss(options) {
|
|
82
|
+
const depth = useLayerDepth();
|
|
83
|
+
const token = {};
|
|
84
|
+
let stop = null;
|
|
85
|
+
function sync() {
|
|
86
|
+
stop?.();
|
|
87
|
+
stop = null;
|
|
88
|
+
if (!options.isActive.value) return;
|
|
89
|
+
stop = pushLayer({
|
|
90
|
+
token,
|
|
91
|
+
depth,
|
|
92
|
+
getContainer: options.getContainer,
|
|
93
|
+
isPresent: () => {
|
|
94
|
+
const dialog = options.getContainer();
|
|
95
|
+
return dialog != null && !isBehindModal(dialog);
|
|
96
|
+
},
|
|
97
|
+
dismissOnPointerOutside: false,
|
|
98
|
+
dismissOnEscape: options.escape.value,
|
|
99
|
+
onDismiss: options.onDismiss
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
watch([options.isActive, options.escape], sync, { immediate: true });
|
|
103
|
+
onScopeDispose(() => {
|
|
104
|
+
stop?.();
|
|
105
|
+
stop = null;
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/Drawer/useDrawerPresence.ts
|
|
110
|
+
/**
|
|
111
|
+
* 抽屉的出现与消失。
|
|
112
|
+
*
|
|
113
|
+
* 打开:记下打开者,进入宿主(模态对话框或 popover),把焦点放进去,手指在进场播完前点不到东西。
|
|
114
|
+
* 关闭:等面板的 `transform` 退场过渡播完,再离开宿主、同一轮里停止绘制,然后把被困住的焦点还给打开者。
|
|
115
|
+
* 先离开宿主再还焦点:模态对话框开着时页面其余部分不可交互,早还会落空。
|
|
116
|
+
* 打开着就被卸载时同样离开宿主,等它离开文档后再还焦点。
|
|
117
|
+
*/
|
|
118
|
+
function useDrawerPresence(options) {
|
|
119
|
+
const isRendered = ref(options.isOpen());
|
|
120
|
+
const isHostOpen = ref(false);
|
|
121
|
+
let shownModal = false;
|
|
122
|
+
let focusRecord = null;
|
|
123
|
+
let releaseEntrance = null;
|
|
124
|
+
let cancelExit = null;
|
|
125
|
+
const modalOutlet = createModalOutletHandle();
|
|
126
|
+
function releaseEntranceHold() {
|
|
127
|
+
releaseEntrance?.();
|
|
128
|
+
releaseEntrance = null;
|
|
129
|
+
}
|
|
130
|
+
function stopExit() {
|
|
131
|
+
cancelExit?.();
|
|
132
|
+
cancelExit = null;
|
|
133
|
+
}
|
|
134
|
+
function openDrawer() {
|
|
135
|
+
const dialog = options.dialog.value;
|
|
136
|
+
if (dialog == null) return;
|
|
137
|
+
stopExit();
|
|
138
|
+
isRendered.value = true;
|
|
139
|
+
if (!isHostOpen.value || !isDrawerHostOpen(dialog, shownModal)) {
|
|
140
|
+
const opener = (dialog.ownerDocument.hasFocus() ? dialog.ownerDocument : document).activeElement;
|
|
141
|
+
focusRecord?.stop();
|
|
142
|
+
focusRecord = trackLayerFocus({
|
|
143
|
+
getLayer: () => options.dialog.value,
|
|
144
|
+
opener: opener instanceof HTMLElement ? opener : null
|
|
145
|
+
});
|
|
146
|
+
shownModal = options.isModal();
|
|
147
|
+
showDrawerHost(dialog, shownModal);
|
|
148
|
+
isHostOpen.value = true;
|
|
149
|
+
if (shownModal) modalOutlet.attach(dialog);
|
|
150
|
+
}
|
|
151
|
+
options.initialFocus()?.focus({ preventScroll: true });
|
|
152
|
+
releaseEntranceHold();
|
|
153
|
+
releaseEntrance = holdEntranceInput(dialog, { isModal: shownModal });
|
|
154
|
+
}
|
|
155
|
+
function finishExit(dialog) {
|
|
156
|
+
const record = focusRecord;
|
|
157
|
+
focusRecord = null;
|
|
158
|
+
const wasStranded = record != null && isLayerFocusStranded(record, dialog);
|
|
159
|
+
const owesClose = hideDrawerHost(dialog, shownModal);
|
|
160
|
+
isHostOpen.value = false;
|
|
161
|
+
isRendered.value = false;
|
|
162
|
+
if (record != null) {
|
|
163
|
+
if (wasStranded) restoreLayerFocus(record, {
|
|
164
|
+
layer: dialog,
|
|
165
|
+
name: "Drawer"
|
|
166
|
+
});
|
|
167
|
+
record.stop();
|
|
168
|
+
}
|
|
169
|
+
if (owesClose) dispatchDrawerClose(dialog);
|
|
170
|
+
}
|
|
171
|
+
function closeDrawer() {
|
|
172
|
+
releaseEntranceHold();
|
|
173
|
+
modalOutlet.detach();
|
|
174
|
+
const dialog = options.dialog.value;
|
|
175
|
+
if (dialog == null || !isHostOpen.value) {
|
|
176
|
+
isRendered.value = false;
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
stopExit();
|
|
180
|
+
cancelExit = waitForTransition(dialog, "transform", () => {
|
|
181
|
+
cancelExit = null;
|
|
182
|
+
finishExit(dialog);
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
watch(options.isOpen, (open) => {
|
|
186
|
+
if (open) isRendered.value = true;
|
|
187
|
+
}, { flush: "sync" });
|
|
188
|
+
watch(options.isOpen, (open) => {
|
|
189
|
+
if (open) openDrawer();
|
|
190
|
+
else closeDrawer();
|
|
191
|
+
}, { flush: "post" });
|
|
192
|
+
onMounted(() => {
|
|
193
|
+
if (options.isOpen()) openDrawer();
|
|
194
|
+
});
|
|
195
|
+
onBeforeUnmount(() => {
|
|
196
|
+
releaseEntranceHold();
|
|
197
|
+
stopExit();
|
|
198
|
+
modalOutlet.detach();
|
|
199
|
+
const dialog = options.dialog.value;
|
|
200
|
+
const record = focusRecord;
|
|
201
|
+
focusRecord = null;
|
|
202
|
+
const wasStranded = record != null && isLayerFocusStranded(record, dialog);
|
|
203
|
+
if (dialog != null && isHostOpen.value && hideDrawerHost(dialog, shownModal)) dispatchDrawerClose(dialog);
|
|
204
|
+
isHostOpen.value = false;
|
|
205
|
+
if (record == null) return;
|
|
206
|
+
queueMicrotask(() => {
|
|
207
|
+
if (wasStranded) restoreLayerFocus(record, {
|
|
208
|
+
layer: null,
|
|
209
|
+
name: "Drawer"
|
|
210
|
+
});
|
|
211
|
+
record.stop();
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
return {
|
|
215
|
+
isRendered,
|
|
216
|
+
isHostOpen
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region src/Drawer/Drawer.vue
|
|
221
|
+
const _hoisted_1 = [
|
|
222
|
+
"data-side",
|
|
223
|
+
"data-open",
|
|
224
|
+
"data-rendered",
|
|
225
|
+
"popover",
|
|
226
|
+
"role",
|
|
227
|
+
"aria-modal",
|
|
228
|
+
"aria-label"
|
|
229
|
+
];
|
|
230
|
+
const _hoisted_2 = { class: "astryx-drawer-body" };
|
|
231
|
+
const _hoisted_3 = {
|
|
232
|
+
key: 0,
|
|
233
|
+
class: "astryx-drawer-footer"
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* 贴边的侧边面板,浮在页面上面,不挤动下面的布局。
|
|
237
|
+
*
|
|
238
|
+
* 带遮罩(默认)时用 `showModal()` 打开:顶层、焦点陷阱、滚动锁、点遮罩关闭。
|
|
239
|
+
* 不带遮罩时用 `popover="manual"` 进入顶层:旁边的页面照常能点、能滚,焦点不关在里面。
|
|
240
|
+
* 进场从贴着的那一边滑入,退场从同一边滑出,播完才离开顶层。
|
|
241
|
+
*/
|
|
242
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
243
|
+
name: "AstryxDrawer",
|
|
244
|
+
inheritAttrs: false,
|
|
245
|
+
__name: "Drawer",
|
|
246
|
+
props: {
|
|
247
|
+
isOpen: { type: Boolean },
|
|
248
|
+
label: {},
|
|
249
|
+
placement: { default: "end" },
|
|
250
|
+
width: { default: 400 },
|
|
251
|
+
padding: { default: void 0 },
|
|
252
|
+
purpose: { default: "info" },
|
|
253
|
+
hasScrim: {
|
|
254
|
+
type: Boolean,
|
|
255
|
+
default: true
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
emits: ["openChange"],
|
|
259
|
+
setup(__props, { emit: __emit }) {
|
|
260
|
+
const props = __props;
|
|
261
|
+
const emit = __emit;
|
|
262
|
+
const attrs = useAttrs();
|
|
263
|
+
resetLayerScopedContext();
|
|
264
|
+
provideLayoutContainer("dialog");
|
|
265
|
+
provide(DIALOG_CONTEXT_KEY, {
|
|
266
|
+
titleId: `astryx-drawer-title-${useId()}`,
|
|
267
|
+
isInline: computed(() => false),
|
|
268
|
+
registerTitle: () => {}
|
|
269
|
+
});
|
|
270
|
+
provideLayerDepth();
|
|
271
|
+
const layerHostRef = ref(null);
|
|
272
|
+
provideLayerMountTarget(layerHostRef);
|
|
273
|
+
const dialogRef = useTemplateRef("dialogRef");
|
|
274
|
+
const contentRef = useTemplateRef("contentRef");
|
|
275
|
+
function initialFocusTarget() {
|
|
276
|
+
const dialog = dialogRef.value;
|
|
277
|
+
if (dialog == null) return null;
|
|
278
|
+
return findInitialFocusTarget(dialog) ?? contentRef.value;
|
|
279
|
+
}
|
|
280
|
+
const { isRendered, isHostOpen } = useDrawerPresence({
|
|
281
|
+
dialog: dialogRef,
|
|
282
|
+
isOpen: () => props.isOpen,
|
|
283
|
+
isModal: () => props.hasScrim,
|
|
284
|
+
initialFocus: initialFocusTarget
|
|
285
|
+
});
|
|
286
|
+
useFocusTrap({
|
|
287
|
+
container: dialogRef,
|
|
288
|
+
isEnabled: computed(() => props.isOpen && props.hasScrim && isHostOpen.value),
|
|
289
|
+
initialFocus: initialFocusTarget
|
|
290
|
+
});
|
|
291
|
+
useScrollLock(computed(() => props.isOpen && props.hasScrim && isHostOpen.value));
|
|
292
|
+
const exitSide = ref(props.placement);
|
|
293
|
+
watch(() => [props.isOpen, props.placement], ([open, placement]) => {
|
|
294
|
+
if (open) exitSide.value = placement;
|
|
295
|
+
});
|
|
296
|
+
const anchoredSide = computed(() => props.isOpen ? props.placement : exitSide.value);
|
|
297
|
+
function requestClose() {
|
|
298
|
+
emit("openChange", false);
|
|
299
|
+
}
|
|
300
|
+
useDrawerLayerDismiss({
|
|
301
|
+
isActive: computed(() => !props.hasScrim && isRendered.value),
|
|
302
|
+
escape: computed(() => props.isOpen && props.purpose !== "required" ? "close" : "block"),
|
|
303
|
+
getContainer: () => dialogRef.value,
|
|
304
|
+
onDismiss: requestClose
|
|
305
|
+
});
|
|
306
|
+
function onCancel(event) {
|
|
307
|
+
if (event.target !== dialogRef.value) return;
|
|
308
|
+
event.preventDefault();
|
|
309
|
+
if (props.isOpen && props.purpose !== "required") requestClose();
|
|
310
|
+
}
|
|
311
|
+
const backdropPress = useBackdropPress(() => dialogRef.value, () => {
|
|
312
|
+
if (props.hasScrim && props.isOpen && props.purpose === "info") requestClose();
|
|
313
|
+
});
|
|
314
|
+
const rootAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([name]) => name !== "class" && name !== "style")));
|
|
315
|
+
const rootStyle = computed(() => ({ "--_drawer-width": formatDialogSize(props.width) }));
|
|
316
|
+
const contentStyle = computed(() => {
|
|
317
|
+
if (props.padding == null) return void 0;
|
|
318
|
+
return { "--_drawer-padding": `var(--astryx-spacing-${String(props.padding).replace(".", "-")})` };
|
|
319
|
+
});
|
|
320
|
+
return (_ctx, _cache) => {
|
|
321
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events, vue-a11y/no-static-element-interactions -- 遮罩点击只作用于原生 dialog 元素本身;Escape 由原生 cancel 和关闭栈处理。 "), createElementVNode("dialog", mergeProps({
|
|
322
|
+
ref_key: "dialogRef",
|
|
323
|
+
ref: dialogRef
|
|
324
|
+
}, rootAttrs.value, {
|
|
325
|
+
class: ["astryx-drawer astryx-layer", [
|
|
326
|
+
`astryx-drawer--${anchoredSide.value}`,
|
|
327
|
+
{ "astryx-drawer--scrim": __props.hasScrim },
|
|
328
|
+
unref(attrs).class
|
|
329
|
+
]],
|
|
330
|
+
style: [rootStyle.value, unref(attrs).style],
|
|
331
|
+
"data-side": anchoredSide.value,
|
|
332
|
+
"data-open": __props.isOpen ? "" : void 0,
|
|
333
|
+
"data-rendered": unref(isRendered) ? "" : void 0,
|
|
334
|
+
popover: __props.hasScrim ? void 0 : "manual",
|
|
335
|
+
role: unref(attrs).role ?? (__props.purpose === "required" && __props.hasScrim ? "alertdialog" : void 0),
|
|
336
|
+
"aria-modal": __props.hasScrim && unref(isHostOpen) ? "true" : void 0,
|
|
337
|
+
"aria-label": __props.label,
|
|
338
|
+
onPointerdown: _cache[0] || (_cache[0] = (...args) => unref(backdropPress).onPointerDown && unref(backdropPress).onPointerDown(...args)),
|
|
339
|
+
onClick: _cache[1] || (_cache[1] = (...args) => unref(backdropPress).onClick && unref(backdropPress).onClick(...args)),
|
|
340
|
+
onCancel
|
|
341
|
+
}), [createElementVNode("div", {
|
|
342
|
+
ref_key: "contentRef",
|
|
343
|
+
ref: contentRef,
|
|
344
|
+
class: "astryx-drawer__content",
|
|
345
|
+
tabindex: "-1",
|
|
346
|
+
style: normalizeStyle(contentStyle.value)
|
|
347
|
+
}, [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default")]), _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_3, [renderSlot(_ctx.$slots, "footer")])) : createCommentVNode("v-if", true)], 4), createElementVNode("div", {
|
|
348
|
+
ref_key: "layerHostRef",
|
|
349
|
+
ref: layerHostRef,
|
|
350
|
+
class: "astryx-drawer__layer-host"
|
|
351
|
+
}, null, 512)], 16, _hoisted_1)], 2112);
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
//#endregion
|
|
356
|
+
//#region src/Drawer/DrawerHeader.vue
|
|
357
|
+
/**
|
|
358
|
+
* 抽屉的标题行。布局、标题语义和关闭按钮的补偿边都复用 `DialogHeader`,
|
|
359
|
+
* 这里只把关闭按钮的默认值和事件名换成抽屉的说法。
|
|
360
|
+
*/
|
|
361
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
362
|
+
name: "AstryxDrawerHeader",
|
|
363
|
+
__name: "DrawerHeader",
|
|
364
|
+
props: {
|
|
365
|
+
title: {},
|
|
366
|
+
subtitle: { default: void 0 },
|
|
367
|
+
hasCloseButton: {
|
|
368
|
+
type: Boolean,
|
|
369
|
+
default: void 0
|
|
370
|
+
},
|
|
371
|
+
closeButtonLabel: { default: void 0 }
|
|
372
|
+
},
|
|
373
|
+
emits: ["openChange"],
|
|
374
|
+
setup(__props, { emit: __emit }) {
|
|
375
|
+
const props = __props;
|
|
376
|
+
const emit = __emit;
|
|
377
|
+
const instance = getCurrentInstance();
|
|
378
|
+
const slots = useSlots();
|
|
379
|
+
/**
|
|
380
|
+
* 关闭按钮只在有人接关闭请求时出现:没人处理的按钮点了什么也不会发生。
|
|
381
|
+
* 显式传 `hasCloseButton` 时以传入值为准。监听函数在渲染时才看得到,所以放在 computed 里读。
|
|
382
|
+
*/
|
|
383
|
+
const showClose = computed(() => props.hasCloseButton ?? instance?.vnode?.props?.onOpenChange != null);
|
|
384
|
+
return (_ctx, _cache) => {
|
|
385
|
+
return openBlock(), createBlock(_sfc_main$2, {
|
|
386
|
+
"close-button-label": __props.closeButtonLabel,
|
|
387
|
+
"has-close-button": showClose.value,
|
|
388
|
+
subtitle: __props.subtitle,
|
|
389
|
+
title: __props.title,
|
|
390
|
+
onOpenChange: _cache[0] || (_cache[0] = ($event) => emit("openChange", false))
|
|
391
|
+
}, createSlots({ _: 2 }, [
|
|
392
|
+
unref(slots).title ? {
|
|
393
|
+
name: "title",
|
|
394
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "title")]),
|
|
395
|
+
key: "0"
|
|
396
|
+
} : void 0,
|
|
397
|
+
unref(slots).subtitle ? {
|
|
398
|
+
name: "subtitle",
|
|
399
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "subtitle")]),
|
|
400
|
+
key: "1"
|
|
401
|
+
} : void 0,
|
|
402
|
+
unref(slots).startContent ? {
|
|
403
|
+
name: "startContent",
|
|
404
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "startContent")]),
|
|
405
|
+
key: "2"
|
|
406
|
+
} : void 0,
|
|
407
|
+
unref(slots).endContent ? {
|
|
408
|
+
name: "endContent",
|
|
409
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "endContent")]),
|
|
410
|
+
key: "3"
|
|
411
|
+
} : void 0
|
|
412
|
+
]), 1032, [
|
|
413
|
+
"close-button-label",
|
|
414
|
+
"has-close-button",
|
|
415
|
+
"subtitle",
|
|
416
|
+
"title"
|
|
417
|
+
]);
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
//#endregion
|
|
422
|
+
export { _sfc_main$1 as n, _sfc_main as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as _sfc_main$6, l as useDropdownMenuContext, o as _sfc_main$5, s as _sfc_main$1, u as useDropdownMenuRadioGroup } from "../accessibleName-
|
|
2
|
-
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../DropdownMenu-
|
|
1
|
+
import { a as _sfc_main$6, l as useDropdownMenuContext, o as _sfc_main$5, s as _sfc_main$1, u as useDropdownMenuRadioGroup } from "../accessibleName-CHrrgpAy.js";
|
|
2
|
+
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../DropdownMenu-DU_Rw88D.js";
|
|
3
3
|
export { _sfc_main as DropdownMenu, _sfc_main$1 as DropdownMenuCheckboxItem, _sfc_main$2 as DropdownMenuDivider, _sfc_main$3 as DropdownMenuGroup, _sfc_main$4 as DropdownMenuItem, _sfc_main$5 as DropdownMenuRadioGroup, _sfc_main$6 as DropdownMenuRadioItem, _sfc_main$7 as DropdownMenuSubMenu, useDropdownMenuContext, useDropdownMenuRadioGroup };
|
|
@@ -6,19 +6,19 @@ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-CegXF2Zo.
|
|
|
6
6
|
import { t as _sfc_main$10 } from "./LayerContentBoundary-D67fobWl.js";
|
|
7
7
|
import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
|
|
8
8
|
import { r as getFocusables } from "./focus-x7mxEqjR.js";
|
|
9
|
-
import { t as focusForLastInput } from "./focusReturn-
|
|
9
|
+
import { t as focusForLastInput } from "./focusReturn-BeSRm0xD.js";
|
|
10
10
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
11
|
-
import { n as useMenuPress, s as isMenuPressActivation } from "./useMenuPress-
|
|
11
|
+
import { n as useMenuPress, s as isMenuPressActivation } from "./useMenuPress-kjmot8Bn.js";
|
|
12
12
|
import { t as useOverflow } from "./useOverflow-GU0pxGaU.js";
|
|
13
13
|
import { t as useTypeahead } from "./useTypeahead-HlZ9cICe.js";
|
|
14
14
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
15
15
|
import { n as isModifiedClick, r as keepDisabledRowUnfocused, t as activateMenuItem } from "./menuActivation-BQqnzKAX.js";
|
|
16
16
|
import { t as _sfc_main$11 } from "./Item-CKYsTbM4.js";
|
|
17
|
-
import { a as _sfc_main$12, c as dropdownMenuContextKey, i as useDropdownMenuMessages, l as useDropdownMenuContext, n as useMenuDrillIn, o as _sfc_main$14, r as useSubmenuMode, s as _sfc_main$13, t as readAccessibleName } from "./accessibleName-
|
|
17
|
+
import { a as _sfc_main$12, c as dropdownMenuContextKey, i as useDropdownMenuMessages, l as useDropdownMenuContext, n as useMenuDrillIn, o as _sfc_main$14, r as useSubmenuMode, s as _sfc_main$13, t as readAccessibleName } from "./accessibleName-CHrrgpAy.js";
|
|
18
18
|
import { n as clampInlineSize, r as isIntrinsicInlineSize, t as LAYER_MAX_INLINE_SIZE } from "./inlineSize-BNe8wggI.js";
|
|
19
19
|
import { t as useHeldPresentation } from "./useHeldPresentation-CaIKTwUh.js";
|
|
20
20
|
import { t as useMenuEntranceHold } from "./useMenuEntranceHold-DMHMzaRW.js";
|
|
21
|
-
import { t as LazyBottomSheet } from "./lazyBottomSheet-
|
|
21
|
+
import { t as LazyBottomSheet } from "./lazyBottomSheet-C6Rw8yoX.js";
|
|
22
22
|
import { t as _sfc_main$15 } from "./Divider-mOZ6vIQw.js";
|
|
23
23
|
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
24
24
|
import { t as useMenuHover } from "./useMenuHover-DoBatZeD.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as HoverCardAlignment, c as HoverCardHoverIndication, d as HoverCardSlots, f as HoverCardTouchTrigger, i as _default, l as HoverCardPlacement, n as UseHoverCardReturn, o as HoverCardEmits, r as useHoverCard, s as HoverCardFocusTrigger, t as UseHoverCardOptions, u as HoverCardProps } from "../index-
|
|
1
|
+
import { a as HoverCardAlignment, c as HoverCardHoverIndication, d as HoverCardSlots, f as HoverCardTouchTrigger, i as _default, l as HoverCardPlacement, n as UseHoverCardReturn, o as HoverCardEmits, r as useHoverCard, s as HoverCardFocusTrigger, t as UseHoverCardOptions, u as HoverCardProps } from "../index-Dk50Zh3F.js";
|
|
2
2
|
export { _default as HoverCard, type HoverCardAlignment, type HoverCardEmits, type HoverCardFocusTrigger, type HoverCardHoverIndication, type HoverCardPlacement, type HoverCardProps, type HoverCardSlots, type HoverCardTouchTrigger, type UseHoverCardOptions, type UseHoverCardReturn, useHoverCard };
|
package/dist/InfoTip/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { La as _default, Ra as InfoTipProps, za as InfoTipSize } from "../index-
|
|
1
|
+
import { La as _default, Ra as InfoTipProps, za as InfoTipSize } from "../index-B7Rd2RuL.js";
|
|
2
2
|
export { _default as InfoTip, _default as default, type InfoTipProps, type InfoTipSize };
|
package/dist/Layout/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as _sfc_main, n as _sfc_main$3, r as _sfc_main$1, t as _sfc_main$4 } from "../LayoutPanel-
|
|
2
|
-
import { t as _sfc_main$2 } from "../Layout-
|
|
1
|
+
import { a as _sfc_main, n as _sfc_main$3, r as _sfc_main$1, t as _sfc_main$4 } from "../LayoutPanel-D56PBM4I.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "../Layout-BDS2ZN6C.js";
|
|
3
3
|
export { _sfc_main as Layout, _sfc_main$1 as LayoutContent, _sfc_main$2 as LayoutFooter, _sfc_main$3 as LayoutHeader, _sfc_main$4 as LayoutPanel };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as useLayoutContainer, l as useLayoutDividers } from "./context-D-Hwh-Jf.js";
|
|
2
2
|
import { t as formatSize } from "./size-BfginNaZ.js";
|
|
3
|
-
import { i as regionPaddingStyle } from "./LayoutPanel-
|
|
3
|
+
import { i as regionPaddingStyle } from "./LayoutPanel-D56PBM4I.js";
|
|
4
4
|
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, openBlock, renderSlot, unref, useAttrs, useTemplateRef } from "vue";
|
|
5
5
|
import "../styles/layout.css";
|
|
6
6
|
//#region src/Layout/LayoutFooter.vue
|
|
@@ -6,7 +6,7 @@ import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
|
6
6
|
import { a as spacingVariable, o as supportsInternalContentWidth, t as formatSize } from "./size-BfginNaZ.js";
|
|
7
7
|
import { t as useScrollRegionProps } from "./useScrollRegionProps-DwkPUb-O.js";
|
|
8
8
|
import { t as layoutMessages } from "./layout-DhX4-SyE.js";
|
|
9
|
-
import { n as noteFocusWithin, r as useFocusLeavingChange, t as moveFocusLeftBehind } from "./focusLeaving-
|
|
9
|
+
import { n as noteFocusWithin, r as useFocusLeavingChange, t as moveFocusLeftBehind } from "./focusLeaving-BbZ69DYV.js";
|
|
10
10
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, renderSlot, unref, useAttrs, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
11
11
|
import "../styles/layout.css";
|
|
12
12
|
//#region src/Layout/LayoutRegion.vue
|
package/dist/Lightbox/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as useLightbox } from "../Lightbox-
|
|
1
|
+
import { n as _sfc_main, t as useLightbox } from "../Lightbox-CnTXrgq6.js";
|
|
2
2
|
export { _sfc_main as Lightbox, useLightbox };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
|
|
2
2
|
import { t as _sfc_main$2 } from "./Icon-Dk0jccgU.js";
|
|
3
|
-
import { t as useFocusTrap } from "./useFocusTrap-
|
|
3
|
+
import { t as useFocusTrap } from "./useFocusTrap-Bj9GskLh.js";
|
|
4
4
|
import { t as _sfc_main$3 } from "./IconButton-4BXILpv-.js";
|
|
5
5
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
6
6
|
import { t as useScrollLock } from "./scrollLock-CoVg9lLU.js";
|
|
7
|
-
import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-
|
|
7
|
+
import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-uixUCSc8.js";
|
|
8
8
|
import { n as useTruncation } from "./useTruncation-D_T-ezdp.js";
|
|
9
9
|
import { t as lightboxMessages } from "./lightbox-BbwxSHdB.js";
|
|
10
10
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, toDisplayString, toRef, unref, useId, useTemplateRef, watch, withCtx } from "vue";
|
package/dist/Link/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { _ as LinkWeight, f as LinkColor, g as LinkType, h as LinkSize, m as LinkRoot, p as LinkProps } from "../index-Dc52pmSr.js";
|
|
2
|
-
import { Ia as _default } from "../index-
|
|
2
|
+
import { Ia as _default } from "../index-B7Rd2RuL.js";
|
|
3
3
|
export { _default as Link, type LinkColor, type LinkProps, type LinkRoot, type LinkSize, type LinkType, type LinkWeight };
|
package/dist/List/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { _ as ListItemProps, a as ItemLayout, b as ListProps, c as ItemSwipeAction, d as ItemSwipeSide, f as ItemTarget, g as ListEdgeCompensation, h as ListEdge, i as ItemLabel, l as ItemSwipeActions, m as ListDensity, n as ItemDensity, o as ItemProps, p as ItemText, r as ItemElement, s as ItemSlots, t as ItemAlign, u as ItemSwipeBehavior, v as ListItemSlots, x as ListSlots, y as ListMarkerStyle } from "../types-BHHT6Bho.js";
|
|
2
|
-
import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-
|
|
2
|
+
import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-CGRtGORf.js";
|
|
3
3
|
export { _default as Item, type ItemAlign, type ItemDensity, type ItemElement, type ItemLabel, type ItemLayout, type ItemProps, type ItemSlots, type ItemSwipeAction, type ItemSwipeActions, type ItemSwipeBehavior, type ItemSwipeSide, type ItemTarget, type ItemText, _default$1 as List, type ListDensity, type ListEdge, type ListEdgeCompensation, _default$2 as ListItem, type ListItemProps, type ListItemSlots, type ListMarkerStyle, type ListProps, type ListSlots, useItemDescriptionId, useListContext };
|
package/dist/Markdown/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Aa as MarkdownTransformContext, Ca as MarkdownListProps, Da as MarkdownInlinePlugin, Ea as MarkdownSource, Fa as isMarkdownExtensionNode, Ma as applyMarkdownPlugins, Na as defineMarkdownPlugin, Oa as MarkdownPlugin, Pa as firstStrongDirection, Sa as MarkdownLinkProps, Ta as MarkdownSlots, _a as MarkdownDisplay, ba as MarkdownImageProps, ca as ParseMarkdownOptions, da as MarkdownAlign, fa as MarkdownAutolink, ga as MarkdownDensity, ha as MarkdownComponents, ja as applyInlinePlugins, ka as MarkdownPluginRenderContext, la as parseMarkdown, ma as MarkdownCodeProps, oa as slugify, pa as MarkdownCitationStyle, sa as uniqueSlug, ua as _default, va as MarkdownHeadingLevel, wa as MarkdownProps, xa as MarkdownInlineCodeProps, ya as MarkdownHeadingProps } from "../index-
|
|
1
|
+
import { Aa as MarkdownTransformContext, Ca as MarkdownListProps, Da as MarkdownInlinePlugin, Ea as MarkdownSource, Fa as isMarkdownExtensionNode, Ma as applyMarkdownPlugins, Na as defineMarkdownPlugin, Oa as MarkdownPlugin, Pa as firstStrongDirection, Sa as MarkdownLinkProps, Ta as MarkdownSlots, _a as MarkdownDisplay, ba as MarkdownImageProps, ca as ParseMarkdownOptions, da as MarkdownAlign, fa as MarkdownAutolink, ga as MarkdownDensity, ha as MarkdownComponents, ja as applyInlinePlugins, ka as MarkdownPluginRenderContext, la as parseMarkdown, ma as MarkdownCodeProps, oa as slugify, pa as MarkdownCitationStyle, sa as uniqueSlug, ua as _default, va as MarkdownHeadingLevel, wa as MarkdownProps, xa as MarkdownInlineCodeProps, ya as MarkdownHeadingProps } from "../index-B7Rd2RuL.js";
|
|
2
2
|
import { K as MarkdownAstRoot, Q as visitMarkdownNodes, U as MarkdownAstPhrasingContent } from "../protocol-DwUmpC5G.js";
|
|
3
3
|
import { a as ParseOptions, c as parseInlineAst, d as parseMarkdownIncremental, f as BlockNode, m as InlineNode, o as createIncrementalState, s as parseInline, u as parseMarkdownAst, y as SourceRange } from "../publicParser-B6XMcsB2.js";
|
|
4
4
|
import { t as decodeMarkdownCharacterReferences } from "../index-BkUkm6Al.js";
|