@astryx-vue/core 0.27.0 → 0.28.1
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-CGGkPG4T.js → AlertDialog-B195FgtL.js} +2 -2
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-DGJgCvS6.js → AppShell-CxUmt6hX.js} +4 -4
- 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-gctYQ3sV.js → BottomSheet-D3893Ymj.js} +33 -9
- package/dist/{BottomSheet-Dn8gpT4m.js → BottomSheet-DVe5Nw9Z.js} +111 -25
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-Bt6Pp3gV.js → Breadcrumbs-CQa-Jjnn.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Card/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/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CWHlG8Jq.js → CheckboxList-DGM-cgX5.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BSRdsb6w.js → Collapsible-B2vrr_YP.js} +2 -2
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DI3J30Ho.js → ComplexSelector-CZiUA6Gm.js} +1 -1
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CVf4OqJP.js → ContextMenu-8I420g7H.js} +2 -2
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DK-FI37x.js → DateInput-KZF_A_31.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-ClriBc4F.js → DateRangeInput-4GCWgLFN.js} +1 -1
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BdXkBBYi.js → DateTimeInput-BGcdOmRp.js} +3 -3
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-NIGjTT7o.js → DropdownMenu-B-dBiomz.js} +3 -3
- package/dist/{DropdownMenu-CmbnIRug.js → DropdownMenu-CSqkl-Xl.js} +3 -3
- package/dist/{DropdownMenuRadioItem.vue-DINRx71W.d.ts → DropdownMenuRadioItem.vue-C8rePTyz.d.ts} +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/{Item-DUI1Qnnd.js → Item-C8UAQwFQ.js} +193 -111
- package/dist/Link/index.d.ts +1 -1
- package/dist/List/index.d.ts +2 -2
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-C8SqSrU6.js → ListItem-BlrEngDO.js} +11 -3
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Dx7rmb-V.js → MobileNavToggle-D5yGMHU4.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-vavlbJ-p.js → MoreMenu-GPcHAauX.js} +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BUXFzIla.js → MultiSelector-BSA613nO.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DvQbXc_H.js → Outline-DI9MZnuQ.js} +106 -50
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-CRrou1P-.js → Pagination-DWfvdCpK.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-sERt08TR.js → Popover-CB5UYJZc.js} +3 -3
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CUY0iULe.js → PowerSearch-BW0jBC1d.js} +7 -7
- 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-Bj4q6aT5.js → Selector-4sexgsUO.js} +2 -2
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-CHSwzwTt.js → SideNav-B_0Fv-ZU.js} +4 -4
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-B7MHrvdy.js → Table-CRLL1RGr.js} +8 -8
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/{TimeField-hB88chlQ.js → TimeField-B83zAjAA.js} +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-JrTs9r66.js → TimeInput-BoIZG-dF.js} +1 -1
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-iJb-WZ55.js → Tokenizer-DrkIayoF.js} +1 -1
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-Ce79A3zT.js → TopNav-Rcz2zriX.js} +2 -2
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-BEPHdVYu.js → TreeList-Dh0uAj2B.js} +48 -7
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/{animator-BooLoGyI.js → animator-BGq5a6vT.js} +4 -300
- package/dist/{batch-CM-vJhQg.js → batch-BhaAWUIt.js} +3 -2
- package/dist/{bezier-Cts7gENO.js → bezier-Df-yGuNZ.js} +1 -90
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.js +3 -2
- package/dist/{composables-BtqijTIO.js → composables-BTRbNgmR.js} +4 -41
- package/dist/{context-DH8E-qjm.js → context-jtpQfR6F.js} +1 -1
- package/dist/{edge-BYXwSggM.js → edge-CJIswPTX.js} +1 -1
- package/dist/{edgeRide-B5mlN2Q4.js → edgeRide-Drk4V-MC.js} +2 -2
- package/dist/{index-BD-Pxni9.d.ts → index--kbwaSXW.d.ts} +2 -2
- package/dist/{index-BO8V3n98.d.ts → index-0COIBuxA.d.ts} +61 -61
- package/dist/{index-DogWVRJi.d.ts → index-0RIgvtdm.d.ts} +1 -1
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-BR3MOBYd.d.ts → index-BgT6mH3U.d.ts} +2 -2
- package/dist/{index-tpkJfk6X.d.ts → index-Bh-GqMzd.d.ts} +7 -0
- package/dist/{index-Bu4R0WZA.d.ts → index-BqQlY3fL.d.ts} +2 -2
- package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-CRtGmCHi.d.ts → index-CEtFUoIm.d.ts} +1 -1
- package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-BO9TY87G.d.ts → index-CUuUoX3h.d.ts} +6 -4
- package/dist/{index-FeZXsFO-.d.ts → index-CbA8rR_b.d.ts} +2 -2
- package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
- package/dist/{index-C4EuWBql.d.ts → index-ClJINYPl.d.ts} +3 -3
- package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
- package/dist/{index-T5bzxQ30.d.ts → index-DCyYldjP.d.ts} +1 -1
- package/dist/{index-DDVCVpnG.d.ts → index-DE-QPNz0.d.ts} +1 -1
- package/dist/{index-CVNtRsJb.d.ts → index-DW_ASIiu.d.ts} +2 -2
- package/dist/{index-SI2AkpMU.d.ts → index-GyRgg1-v.d.ts} +5 -5
- package/dist/{index-B-oy8Ko6.d.ts → index-MBiq-7Np.d.ts} +6 -6
- package/dist/{index-CfPgindd.d.ts → index-ZKBj_1nu.d.ts} +2 -2
- package/dist/{index-Ea2V_FSK.d.ts → index-aHC2C89h.d.ts} +4 -4
- package/dist/{index-Cm36VS1A.d.ts → index-mK1ICsVg.d.ts} +2 -2
- package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
- package/dist/index.d.ts +29 -29
- package/dist/index.js +38 -37
- package/dist/{landing-B9Uvex6x.js → landing-CBaXCGEg.js} +2 -2
- package/dist/{lazyBottomSheet-CxEu25bK.js → lazyBottomSheet-BK8yIqcZ.js} +1 -1
- package/dist/resolveMotion-CurhYTVC.js +307 -0
- package/dist/{themeTiming-CWEvdh31.js → themeTiming-BFDOPRjK.js} +1 -1
- package/dist/timing-CSHWQbTJ.js +90 -0
- package/dist/{types-Gw2OjSK9.d.ts → types-ClOMFbqC.d.ts} +2 -2
- package/dist/useAnimatedLayout-DC2l3WrE.js +40 -0
- package/dist/{useMenuDrillIn-CP0P49ej.js → useMenuDrillIn-BQx6lQMz.js} +1 -1
- package/dist/{useRestoreFocus-AeZABFZN.js → useRestoreFocus-DS7uQWok.js} +1 -1
- package/package.json +1 -1
- package/styles/bottom-sheet.css +26 -5
- package/styles/date-input.css +2 -3
- package/styles/list.css +102 -5
- package/styles/metadata-list.css +6 -1
- package/styles/outline.css +2 -1
- package/dist/{Chat-RE_6Ez79.js → Chat-Bg1IuDMt.js} +1 -1
- package/dist/{ClickableCard-CwGxO0GU.js → ClickableCard-ChmOwgYq.js} +1 -1
- package/dist/{NavItem-c1ScHEJY.js → NavItem-kj9FbbFS.js} +1 -1
- package/dist/{index-BqhgeAT4.d.ts → index-D8lv2BiD.d.ts} +1 -1
|
@@ -3,9 +3,11 @@ import { t as usePressFeedback } from "./usePressFeedback-BhNcuxQv.js";
|
|
|
3
3
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
4
4
|
import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
|
|
5
5
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
6
|
+
import { t as isCoarsePointer } from "./coarsePointer-BfMx3H23.js";
|
|
6
7
|
import { t as useInteractiveRole } from "./useInteractiveRole-Cn0Nd5GX.js";
|
|
7
8
|
import { t as useFocusAcrossSwap } from "./focusAcrossSwap-Casww_IY.js";
|
|
8
|
-
import {
|
|
9
|
+
import { n as disabledInteractionProps, t as consumeWhileDisabled } from "./disabledInteraction-Bqoyhoss.js";
|
|
10
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, h, inject, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, toValue, unref, useAttrs, useId, useSlots, useTemplateRef, watch, watchEffect, withCtx, withModifiers } from "vue";
|
|
9
11
|
import "../styles/list.css";
|
|
10
12
|
//#region src/List/context.ts
|
|
11
13
|
const listContextKey = defineLayerScopedKey("astryx-list-context", void 0);
|
|
@@ -22,6 +24,80 @@ const itemDescriptionContextKey = Symbol("astryx-item-description");
|
|
|
22
24
|
function useItemDescriptionId() {
|
|
23
25
|
return inject(itemDescriptionContextKey, computed(() => null));
|
|
24
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* `ListItem` 直接渲染的那一行读到它。链接行的内边距和热区点按转给里面的链接,
|
|
29
|
+
* 行里的内容(插槽里的嵌套行)读到的是 `null`。
|
|
30
|
+
*/
|
|
31
|
+
const itemListRowKey = defineLayerScopedKey("astryx-item-list-row", null);
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/List/ItemSwipePanel.vue
|
|
34
|
+
const _hoisted_1$1 = ["data-side", "inert"];
|
|
35
|
+
const _hoisted_2$1 = [
|
|
36
|
+
"data-variant",
|
|
37
|
+
"aria-disabled",
|
|
38
|
+
"onClick",
|
|
39
|
+
"onKeydown"
|
|
40
|
+
];
|
|
41
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
42
|
+
name: "AstryxItemSwipePanel",
|
|
43
|
+
__name: "ItemSwipePanel",
|
|
44
|
+
props: {
|
|
45
|
+
side: {},
|
|
46
|
+
actions: {},
|
|
47
|
+
phase: {}
|
|
48
|
+
},
|
|
49
|
+
emits: ["activate"],
|
|
50
|
+
setup(__props, { emit: __emit }) {
|
|
51
|
+
const emit = __emit;
|
|
52
|
+
return (_ctx, _cache) => {
|
|
53
|
+
return openBlock(), createElementBlock("div", {
|
|
54
|
+
class: "astryx-item__swipe-panel",
|
|
55
|
+
"data-side": __props.side,
|
|
56
|
+
inert: __props.phase === "resting" ? void 0 : true
|
|
57
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.actions, (action) => {
|
|
58
|
+
return openBlock(), createElementBlock("button", {
|
|
59
|
+
key: action.id ?? action.label,
|
|
60
|
+
type: "button",
|
|
61
|
+
class: "astryx-item__swipe-action",
|
|
62
|
+
"data-variant": action.variant ?? "neutral",
|
|
63
|
+
"aria-disabled": action.isDisabled || void 0,
|
|
64
|
+
onClick: withModifiers(($event) => emit("activate", action), ["stop"]),
|
|
65
|
+
onKeydown: ($event) => unref(consumeWhileDisabled)($event, action.isDisabled === true)
|
|
66
|
+
}, [action.icon ? (openBlock(), createBlock(resolveDynamicComponent(action.icon), {
|
|
67
|
+
key: 0,
|
|
68
|
+
"aria-hidden": "true"
|
|
69
|
+
})) : createCommentVNode("v-if", true), createElementVNode("span", null, toDisplayString(action.label), 1)], 40, _hoisted_2$1);
|
|
70
|
+
}), 128))], 8, _hoisted_1$1);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/List/useDelegatedControl.ts
|
|
76
|
+
/**
|
|
77
|
+
* 转发点击的行写在被转发控件上的属性。控件就是行自己的动作,按它照样是按这一行,
|
|
78
|
+
* 所以带上按压标记;行选中时写 `aria-current`(控件自己有标记就不动)。
|
|
79
|
+
* 清理时只撤掉行自己写的值。
|
|
80
|
+
*/
|
|
81
|
+
function useDelegatedControl(options) {
|
|
82
|
+
watchEffect((onCleanup) => {
|
|
83
|
+
const control = options.control();
|
|
84
|
+
if (control == null) return;
|
|
85
|
+
for (const [name, value] of Object.entries(options.pressAttributes)) control.setAttribute(name, value);
|
|
86
|
+
onCleanup(() => {
|
|
87
|
+
for (const name of Object.keys(options.pressAttributes)) control.removeAttribute(name);
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
watchEffect((onCleanup) => {
|
|
91
|
+
const control = options.control();
|
|
92
|
+
const value = options.current();
|
|
93
|
+
if (control == null || value === void 0 || control.hasAttribute("aria-current")) return;
|
|
94
|
+
const written = String(value);
|
|
95
|
+
control.setAttribute("aria-current", written);
|
|
96
|
+
onCleanup(() => {
|
|
97
|
+
if (control.getAttribute("aria-current") === written) control.removeAttribute("aria-current");
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
}
|
|
25
101
|
//#endregion
|
|
26
102
|
//#region src/List/useItemSwipe.ts
|
|
27
103
|
const AXIS_LOCK_PX = 10;
|
|
@@ -76,11 +152,16 @@ function useItemSwipe(options) {
|
|
|
76
152
|
pointerId = null;
|
|
77
153
|
claimed = null;
|
|
78
154
|
if (typeof document !== "undefined") {
|
|
155
|
+
document.removeEventListener("pointerdown", onPinchWatch, true);
|
|
79
156
|
document.removeEventListener("pointermove", onPointerMove);
|
|
80
157
|
document.removeEventListener("pointerup", onPointerUp);
|
|
81
158
|
document.removeEventListener("pointercancel", onPointerCancel);
|
|
82
159
|
}
|
|
83
160
|
}
|
|
161
|
+
/** 方向还没定时,页面上任何位置落下第二根手指都是双指缩放:行放手,什么都不取消。 */
|
|
162
|
+
function onPinchWatch(event) {
|
|
163
|
+
if (event.pointerType === "touch" && event.pointerId !== pointerId && claimed == null) stopTracking();
|
|
164
|
+
}
|
|
84
165
|
function onPointerMove(event) {
|
|
85
166
|
if (event.pointerId !== pointerId) return;
|
|
86
167
|
const dx = event.clientX - originX;
|
|
@@ -92,6 +173,7 @@ function useItemSwipe(options) {
|
|
|
92
173
|
return;
|
|
93
174
|
}
|
|
94
175
|
claimed = true;
|
|
176
|
+
document.removeEventListener("pointerdown", onPinchWatch, true);
|
|
95
177
|
phase.value = "dragging";
|
|
96
178
|
write(0, "0s");
|
|
97
179
|
}
|
|
@@ -170,7 +252,7 @@ function useItemSwipe(options) {
|
|
|
170
252
|
else document.removeEventListener("pointerdown", onDocumentPointerDown, true);
|
|
171
253
|
});
|
|
172
254
|
function onPointerDown(event) {
|
|
173
|
-
if (!options.enabled.value || event.pointerType !== "touch" || phase.value === "held") return;
|
|
255
|
+
if (!options.enabled.value || event.pointerType !== "touch" || pointerId != null || phase.value === "held") return;
|
|
174
256
|
const target = event.target;
|
|
175
257
|
if (target instanceof Element && target.closest("button, a, input, textarea, select")) return;
|
|
176
258
|
pointerId = event.pointerId;
|
|
@@ -181,6 +263,7 @@ function useItemSwipe(options) {
|
|
|
181
263
|
velocity = 0;
|
|
182
264
|
claimed = null;
|
|
183
265
|
direction = getComputedStyle(options.root.value ?? document.documentElement).direction === "rtl" ? -1 : 1;
|
|
266
|
+
document.addEventListener("pointerdown", onPinchWatch, true);
|
|
184
267
|
document.addEventListener("pointermove", onPointerMove);
|
|
185
268
|
document.addEventListener("pointerup", onPointerUp);
|
|
186
269
|
document.addEventListener("pointercancel", onPointerCancel);
|
|
@@ -221,35 +304,11 @@ function useItemSwipe(options) {
|
|
|
221
304
|
}
|
|
222
305
|
//#endregion
|
|
223
306
|
//#region src/List/Item.vue
|
|
224
|
-
const _hoisted_1 =
|
|
225
|
-
const _hoisted_2 = [
|
|
226
|
-
"data-variant",
|
|
227
|
-
"disabled",
|
|
228
|
-
"onClick"
|
|
229
|
-
];
|
|
230
|
-
const _hoisted_3 = ["inert"];
|
|
231
|
-
const _hoisted_4 = [
|
|
232
|
-
"data-variant",
|
|
233
|
-
"disabled",
|
|
234
|
-
"onClick"
|
|
235
|
-
];
|
|
236
|
-
const _hoisted_5 = {
|
|
237
|
-
key: 1,
|
|
238
|
-
class: "astryx-item__surface"
|
|
239
|
-
};
|
|
240
|
-
const _hoisted_6 = {
|
|
241
|
-
key: 0,
|
|
242
|
-
class: "astryx-item__start"
|
|
243
|
-
};
|
|
244
|
-
const _hoisted_7 = {
|
|
245
|
-
key: 1,
|
|
246
|
-
class: "astryx-item__end"
|
|
247
|
-
};
|
|
248
|
-
const _hoisted_8 = {
|
|
307
|
+
const _hoisted_1 = {
|
|
249
308
|
key: 0,
|
|
250
309
|
class: "astryx-item__start"
|
|
251
310
|
};
|
|
252
|
-
const
|
|
311
|
+
const _hoisted_2 = {
|
|
253
312
|
key: 1,
|
|
254
313
|
class: "astryx-item__end"
|
|
255
314
|
};
|
|
@@ -344,6 +403,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
344
403
|
const descriptionIdBase = `astryx-item-description-${useId()}`;
|
|
345
404
|
const hasDescription = computed(() => slots.description != null || isRenderable(props.description));
|
|
346
405
|
const hasLabel = computed(() => slots.label != null || isRenderable(props.label));
|
|
406
|
+
const listRow = readLayerScoped(itemListRowKey);
|
|
407
|
+
const isListRow = listRow != null;
|
|
408
|
+
provide(itemListRowKey, null);
|
|
347
409
|
provide(itemDescriptionContextKey, computed(() => hasDescription.value ? descriptionIdBase : null));
|
|
348
410
|
const role = computed(() => attrs.role);
|
|
349
411
|
const hasParentRole = computed(() => role.value != null);
|
|
@@ -357,6 +419,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
357
419
|
});
|
|
358
420
|
const isInteractive = computed(() => props.onClick != null || safeHref.value != null || isDelegate.value);
|
|
359
421
|
/** 链接内容用的根组件:`as` 写了组件就用它,否则用 LinkProvider 给的默认值。 */
|
|
422
|
+
/**
|
|
423
|
+
* 读屏器在拿到焦点的元素上念「当前」标记。可点的行里那是行自己的按钮、链接,
|
|
424
|
+
* 或它转发点击的控件;根元素自己拿焦点的行(带父级角色)把标记留在根上。
|
|
425
|
+
*/
|
|
426
|
+
const currentOnFocusTarget = computed(() => !hasParentRole.value && (isDelegate.value || safeHref.value != null || props.onClick != null));
|
|
427
|
+
/** 控件上不写 `false`。 */
|
|
428
|
+
const controlCurrent = computed(() => {
|
|
429
|
+
const value = ariaCurrent.value;
|
|
430
|
+
return value === false || value === "false" ? void 0 : value;
|
|
431
|
+
});
|
|
360
432
|
const customLink = computed(() => typeof props.as === "string" ? linkComponent.value : props.as);
|
|
361
433
|
const isLinkContent = computed(() => safeHref.value != null && customLink.value != null);
|
|
362
434
|
const { pressActionProps } = usePressFeedback({
|
|
@@ -407,13 +479,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
407
479
|
function handleContentClick(event) {
|
|
408
480
|
props.onClick?.(event);
|
|
409
481
|
}
|
|
410
|
-
const
|
|
482
|
+
const baseContentAttrs = computed(() => {
|
|
411
483
|
const href = safeHref.value;
|
|
412
484
|
if (href != null && !hasParentRole.value && !isDelegate.value) {
|
|
413
485
|
if (props.isDisabled) return {
|
|
414
486
|
"role": "link",
|
|
415
487
|
"aria-disabled": true,
|
|
416
|
-
"tabindex":
|
|
488
|
+
"tabindex": 0,
|
|
417
489
|
...pressActionProps
|
|
418
490
|
};
|
|
419
491
|
return {
|
|
@@ -424,14 +496,28 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
424
496
|
...pressActionProps
|
|
425
497
|
};
|
|
426
498
|
}
|
|
427
|
-
if (contentTag.value === "button")
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
499
|
+
if (contentTag.value === "button") {
|
|
500
|
+
if (props.isDisabled) return {
|
|
501
|
+
"type": "button",
|
|
502
|
+
"aria-disabled": true,
|
|
503
|
+
...disabledInteractionProps(),
|
|
504
|
+
...pressActionProps
|
|
505
|
+
};
|
|
506
|
+
return {
|
|
507
|
+
type: "button",
|
|
508
|
+
onClick: handleContentClick,
|
|
509
|
+
...pressActionProps
|
|
510
|
+
};
|
|
511
|
+
}
|
|
433
512
|
return {};
|
|
434
513
|
});
|
|
514
|
+
const contentAttrs = computed(() => {
|
|
515
|
+
const current = currentOnFocusTarget.value && !isDelegate.value ? { "aria-current": controlCurrent.value } : {};
|
|
516
|
+
return {
|
|
517
|
+
...baseContentAttrs.value,
|
|
518
|
+
...current
|
|
519
|
+
};
|
|
520
|
+
});
|
|
435
521
|
function hasTextSelection(node) {
|
|
436
522
|
const selection = node.ownerDocument.getSelection?.();
|
|
437
523
|
return selection != null && !selection.isCollapsed && selection.anchorNode != null && node.contains(selection.anchorNode);
|
|
@@ -444,9 +530,30 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
444
530
|
}
|
|
445
531
|
return false;
|
|
446
532
|
}
|
|
533
|
+
/** 点按落在行的内边距或粗指针的热区上时,转给行里的链接(带着修饰键,Cmd/Ctrl 点击照样新开标签页)。 */
|
|
534
|
+
function followRowLink(event) {
|
|
535
|
+
const row = event.currentTarget;
|
|
536
|
+
const anchor = row.querySelector("a.astryx-item__content, .astryx-item__content[role=\"link\"]");
|
|
537
|
+
if (anchor == null || event.target !== row || event.detail === 0) return;
|
|
538
|
+
const box = row.getBoundingClientRect();
|
|
539
|
+
if (!(event.clientX < box.left || event.clientX > box.right || event.clientY < box.top || event.clientY > box.bottom) && !isCoarsePointer(row.ownerDocument.defaultView)) return;
|
|
540
|
+
anchor.dispatchEvent(new MouseEvent("click", {
|
|
541
|
+
altKey: event.altKey,
|
|
542
|
+
bubbles: true,
|
|
543
|
+
button: event.button,
|
|
544
|
+
cancelable: true,
|
|
545
|
+
ctrlKey: event.ctrlKey,
|
|
546
|
+
metaKey: event.metaKey,
|
|
547
|
+
shiftKey: event.shiftKey
|
|
548
|
+
}));
|
|
549
|
+
}
|
|
447
550
|
function handleContainerClick(event) {
|
|
448
551
|
if (props.isDisabled) return;
|
|
449
552
|
const target = event.target;
|
|
553
|
+
if (isListRow && props.onClick == null && safeHref.value != null) {
|
|
554
|
+
followRowLink(event);
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
450
557
|
if (target instanceof HTMLElement && target.closest(NATIVE_CONTROL_SELECTOR) != null) return;
|
|
451
558
|
if (target instanceof Element && isInLayerSurface(target, event.currentTarget)) return;
|
|
452
559
|
props.onClick?.(event);
|
|
@@ -471,13 +578,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
471
578
|
}));
|
|
472
579
|
event.stopPropagation();
|
|
473
580
|
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
onCleanup(() => {
|
|
479
|
-
for (const name of Object.keys(pressActionProps)) control.removeAttribute(name);
|
|
480
|
-
});
|
|
581
|
+
useDelegatedControl({
|
|
582
|
+
control: () => isDelegate.value ? toValue(props.interactiveRef) : null,
|
|
583
|
+
current: () => currentOnFocusTarget.value ? controlCurrent.value : void 0,
|
|
584
|
+
pressAttributes: pressActionProps
|
|
481
585
|
});
|
|
482
586
|
const SWIPE_BLOCKED_ROLES = /* @__PURE__ */ new Set([
|
|
483
587
|
"option",
|
|
@@ -506,6 +610,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
506
610
|
leading: leadingActions,
|
|
507
611
|
trailing: trailingActions
|
|
508
612
|
});
|
|
613
|
+
/** 横滑的行把内容放进一块会跟手平移的表面里。 */
|
|
614
|
+
const Surface = (_, { slots: inner }) => swipeEnabled.value ? h("div", { class: "astryx-item__surface" }, inner.default?.()) : inner.default?.();
|
|
615
|
+
/** 有序列表的行把标记之外的内容收进同一格,列表据此让所有行共用一列标记。 */
|
|
616
|
+
const MarkerCell = (_, { slots: inner }) => listRow?.isNumbered.value === true && slots.marker != null ? h("span", { class: "astryx-item__marker-content" }, inner.default?.()) : inner.default?.();
|
|
509
617
|
const rootClick = computed(() => {
|
|
510
618
|
if (isDelegate.value) return handleDelegatedClick;
|
|
511
619
|
if (hasParentRole.value) return props.onClick;
|
|
@@ -535,7 +643,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
535
643
|
ref_key: "root",
|
|
536
644
|
ref: root
|
|
537
645
|
}, forwardedAttrs.value, {
|
|
538
|
-
"aria-current": ariaCurrent.value,
|
|
646
|
+
"aria-current": currentOnFocusTarget.value ? void 0 : ariaCurrent.value,
|
|
539
647
|
"aria-disabled": __props.isDisabled || void 0,
|
|
540
648
|
"aria-selected": allowsAriaSelected.value && __props.isSelected ? true : void 0,
|
|
541
649
|
class: rootClass.value,
|
|
@@ -556,75 +664,49 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
556
664
|
onKeydown: unref(swipe).onKeyDown,
|
|
557
665
|
onClick: rootClick.value
|
|
558
666
|
}), {
|
|
559
|
-
default: withCtx(() => [swipeEnabled.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [leadingActions.value.length ? (openBlock(),
|
|
667
|
+
default: withCtx(() => [swipeEnabled.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [leadingActions.value.length ? (openBlock(), createBlock(_sfc_main$1, {
|
|
560
668
|
key: 0,
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
disabled: action.isDisabled,
|
|
571
|
-
onClick: withModifiers(($event) => unref(swipe).activate(action), ["stop"])
|
|
572
|
-
}, [action.icon ? (openBlock(), createBlock(resolveDynamicComponent(action.icon), {
|
|
573
|
-
key: 0,
|
|
574
|
-
"aria-hidden": "true"
|
|
575
|
-
})) : createCommentVNode("v-if", true), createElementVNode("span", null, toDisplayString(action.label), 1)], 8, _hoisted_2);
|
|
576
|
-
}), 128))], 8, _hoisted_1)) : createCommentVNode("v-if", true), trailingActions.value.length ? (openBlock(), createElementBlock("div", {
|
|
669
|
+
side: "leading",
|
|
670
|
+
actions: leadingActions.value,
|
|
671
|
+
phase: unref(swipe).phase.value,
|
|
672
|
+
onActivate: unref(swipe).activate
|
|
673
|
+
}, null, 8, [
|
|
674
|
+
"actions",
|
|
675
|
+
"phase",
|
|
676
|
+
"onActivate"
|
|
677
|
+
])) : createCommentVNode("v-if", true), trailingActions.value.length ? (openBlock(), createBlock(_sfc_main$1, {
|
|
577
678
|
key: 1,
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
style: normalizeStyle(descriptionStyle.value)
|
|
606
|
-
}, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])], 6)) : createCommentVNode("v-if", true)]),
|
|
607
|
-
_: 3
|
|
608
|
-
}, 16, ["class"])),
|
|
609
|
-
_ctx.$slots.endContent ? (openBlock(), createElementBlock("span", _hoisted_7, [renderSlot(_ctx.$slots, "endContent")])) : createCommentVNode("v-if", true)
|
|
610
|
-
])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
611
|
-
renderSlot(_ctx.$slots, "marker"),
|
|
612
|
-
_ctx.$slots.startContent ? (openBlock(), createElementBlock("span", _hoisted_8, [renderSlot(_ctx.$slots, "startContent")])) : createCommentVNode("v-if", true),
|
|
613
|
-
(openBlock(), createBlock(resolveDynamicComponent(contentTag.value), mergeProps(contentAttrs.value, { class: ["astryx-item__content", { "astryx-item__content--inline": isInline.value }] }), {
|
|
614
|
-
default: withCtx(() => [hasLabel.value ? (openBlock(), createElementBlock("span", {
|
|
615
|
-
key: 0,
|
|
616
|
-
class: normalizeClass(["astryx-item__label", labelClasses.value]),
|
|
617
|
-
style: normalizeStyle(labelStyle.value)
|
|
618
|
-
}, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])], 6)) : createCommentVNode("v-if", true), hasDescription.value ? (openBlock(), createElementBlock("span", {
|
|
619
|
-
key: 1,
|
|
620
|
-
id: descriptionIdBase,
|
|
621
|
-
class: normalizeClass(["astryx-item__description", descriptionClasses.value]),
|
|
622
|
-
style: normalizeStyle(descriptionStyle.value)
|
|
623
|
-
}, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])], 6)) : createCommentVNode("v-if", true)]),
|
|
679
|
+
side: "trailing",
|
|
680
|
+
actions: trailingActions.value,
|
|
681
|
+
phase: unref(swipe).phase.value,
|
|
682
|
+
onActivate: unref(swipe).activate
|
|
683
|
+
}, null, 8, [
|
|
684
|
+
"actions",
|
|
685
|
+
"phase",
|
|
686
|
+
"onActivate"
|
|
687
|
+
])) : createCommentVNode("v-if", true)], 64)) : createCommentVNode("v-if", true), createVNode(Surface, null, {
|
|
688
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "marker"), createVNode(MarkerCell, null, {
|
|
689
|
+
default: withCtx(() => [
|
|
690
|
+
_ctx.$slots.startContent ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "startContent")])) : createCommentVNode("v-if", true),
|
|
691
|
+
(openBlock(), createBlock(resolveDynamicComponent(contentTag.value), mergeProps(contentAttrs.value, { class: ["astryx-item__content", { "astryx-item__content--inline": isInline.value }] }), {
|
|
692
|
+
default: withCtx(() => [hasLabel.value ? (openBlock(), createElementBlock("span", {
|
|
693
|
+
key: 0,
|
|
694
|
+
class: normalizeClass(["astryx-item__label", labelClasses.value]),
|
|
695
|
+
style: normalizeStyle(labelStyle.value)
|
|
696
|
+
}, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])], 6)) : createCommentVNode("v-if", true), hasDescription.value ? (openBlock(), createElementBlock("span", {
|
|
697
|
+
key: 1,
|
|
698
|
+
id: descriptionIdBase,
|
|
699
|
+
class: normalizeClass(["astryx-item__description", descriptionClasses.value]),
|
|
700
|
+
style: normalizeStyle(descriptionStyle.value)
|
|
701
|
+
}, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])], 6)) : createCommentVNode("v-if", true)]),
|
|
702
|
+
_: 3
|
|
703
|
+
}, 16, ["class"])),
|
|
704
|
+
_ctx.$slots.endContent ? (openBlock(), createElementBlock("span", _hoisted_2, [renderSlot(_ctx.$slots, "endContent")])) : createCommentVNode("v-if", true)
|
|
705
|
+
]),
|
|
624
706
|
_: 3
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
|
|
707
|
+
})]),
|
|
708
|
+
_: 3
|
|
709
|
+
})]),
|
|
628
710
|
_: 3
|
|
629
711
|
}, 16, [
|
|
630
712
|
"aria-current",
|
|
@@ -652,4 +734,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
652
734
|
}
|
|
653
735
|
});
|
|
654
736
|
//#endregion
|
|
655
|
-
export { useListContext as i,
|
|
737
|
+
export { useListContext as a, useItemDescriptionId as i, itemListRowKey as n, listContextKey as r, _sfc_main as t };
|
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 { ra as _default } from "../index-
|
|
2
|
+
import { ra as _default } from "../index-0COIBuxA.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
|
-
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-
|
|
2
|
-
import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-
|
|
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-ClOMFbqC.js";
|
|
2
|
+
import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-DW_ASIiu.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/List/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as _sfc_main$1, t as _sfc_main$2 } from "../ListItem-
|
|
1
|
+
import { a as useListContext, i as useItemDescriptionId, t as _sfc_main } from "../Item-C8UAQwFQ.js";
|
|
2
|
+
import { n as _sfc_main$1, t as _sfc_main$2 } from "../ListItem-BlrEngDO.js";
|
|
3
3
|
export { _sfc_main as Item, _sfc_main$1 as List, _sfc_main$2 as ListItem, useItemDescriptionId, useListContext };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { n as useTouchHitArea } from "./useTouchHitArea-CNZyA18Y.js";
|
|
1
2
|
import { n as useDevWarning } from "./useDevWarning-B2fsk2B-.js";
|
|
2
|
-
import {
|
|
3
|
-
import { computed, createBlock, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, mergeProps, openBlock, provide, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, withCtx } from "vue";
|
|
3
|
+
import { a as useListContext, n as itemListRowKey, r as listContextKey, t as _sfc_main$2 } from "./Item-C8UAQwFQ.js";
|
|
4
|
+
import { computed, createBlock, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, mergeProps, normalizeClass, openBlock, provide, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, withCtx } from "vue";
|
|
4
5
|
import "../styles/list.css";
|
|
5
6
|
//#region src/List/List.vue
|
|
6
7
|
const _hoisted_1$1 = {
|
|
@@ -116,16 +117,22 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
116
117
|
setup(__props) {
|
|
117
118
|
const props = __props;
|
|
118
119
|
const list = useListContext();
|
|
120
|
+
const item = useTemplateRef("item");
|
|
121
|
+
const isTouchTarget = computed(() => (props.onClick != null || props.href != null || props.interactiveRef != null) && props.isDisabled !== true);
|
|
122
|
+
useTouchHitArea(() => item.value?.element, isTouchTarget);
|
|
119
123
|
const density = computed(() => props.density ?? list?.density.value ?? "balanced");
|
|
120
124
|
const marker = computed(() => {
|
|
121
125
|
const listStyle = list?.listStyle.value ?? "none";
|
|
122
126
|
return listStyle === "none" ? null : listStyle;
|
|
123
127
|
});
|
|
128
|
+
provide(itemListRowKey, { isNumbered: computed(() => marker.value === "decimal") });
|
|
124
129
|
const isBullet = computed(() => marker.value === "disc" || marker.value === "circle");
|
|
125
130
|
return (_ctx, _cache) => {
|
|
126
131
|
return openBlock(), createBlock(_sfc_main$2, {
|
|
132
|
+
ref_key: "item",
|
|
133
|
+
ref: item,
|
|
127
134
|
as: "li",
|
|
128
|
-
class: "astryx-list-item",
|
|
135
|
+
class: normalizeClass(["astryx-list-item", { "astryx-touch-hit-area-band": isTouchTarget.value }]),
|
|
129
136
|
align: __props.align,
|
|
130
137
|
description: __props.description,
|
|
131
138
|
density: density.value,
|
|
@@ -173,6 +180,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
173
180
|
key: "4"
|
|
174
181
|
} : void 0
|
|
175
182
|
]), 1032, [
|
|
183
|
+
"class",
|
|
176
184
|
"align",
|
|
177
185
|
"description",
|
|
178
186
|
"density",
|
package/dist/MobileNav/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../MobileNavToggle-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../MobileNavToggle-D5yGMHU4.js";
|
|
2
2
|
import { n as mobileNavKey } from "../context-D8MAZio1.js";
|
|
3
3
|
export { _sfc_main as MobileNav, _sfc_main$1 as MobileNavToggle, mobileNavKey };
|
|
@@ -2,7 +2,7 @@ import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
|
|
|
2
2
|
import { i as isTopLayer, n as useLayerDepth, o as pushLayer, t as provideLayerDepth } from "./layerDepth-D3Rh8T5C.js";
|
|
3
3
|
import { t as useFocusTrap } from "./useFocusTrap-BD9POtMp.js";
|
|
4
4
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
5
|
-
import { t as useRestoreFocus } from "./useRestoreFocus-
|
|
5
|
+
import { t as useRestoreFocus } from "./useRestoreFocus-DS7uQWok.js";
|
|
6
6
|
import { t as useScrollLock } from "./scrollLock-CoVg9lLU.js";
|
|
7
7
|
import { t as holdEntranceInput } from "./holdEntranceInput-DMCOeRqu.js";
|
|
8
8
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
package/dist/MoreMenu/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $i as MoreMenuProps, Gi as MoreMenuDivider, Ji as MoreMenuInitialFocus, Ki as MoreMenuEmits, Qi as MoreMenuPresentation, Wi as _default, Xi as MoreMenuItemVariant, Yi as MoreMenuItem, Zi as MoreMenuOption, ea as MoreMenuResolvedPresentation, na as MoreMenuSlots, qi as MoreMenuIcon, ta as MoreMenuSection } from "../index-
|
|
1
|
+
import { $i as MoreMenuProps, Gi as MoreMenuDivider, Ji as MoreMenuInitialFocus, Ki as MoreMenuEmits, Qi as MoreMenuPresentation, Wi as _default, Xi as MoreMenuItemVariant, Yi as MoreMenuItem, Zi as MoreMenuOption, ea as MoreMenuResolvedPresentation, na as MoreMenuSlots, qi as MoreMenuIcon, ta as MoreMenuSection } from "../index-0COIBuxA.js";
|
|
2
2
|
export { _default as MoreMenu, type MoreMenuDivider, type MoreMenuEmits, type MoreMenuIcon, type MoreMenuInitialFocus, type MoreMenuItem, type MoreMenuItemVariant, type MoreMenuOption, type MoreMenuPresentation, type MoreMenuProps, type MoreMenuResolvedPresentation, type MoreMenuSection, type MoreMenuSlots };
|
package/dist/MoreMenu/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../MoreMenu-
|
|
1
|
+
import { t as _sfc_main } from "../MoreMenu-GPcHAauX.js";
|
|
2
2
|
export { _sfc_main as MoreMenu };
|
|
@@ -14,7 +14,7 @@ import { t as useHeldPresentation } from "./useHeldPresentation-7MH-RlSF.js";
|
|
|
14
14
|
import { t as useMenuEntranceHold } from "./useMenuEntranceHold-buV5S9yk.js";
|
|
15
15
|
import { t as _sfc_main$9 } from "./Divider-mOZ6vIQw.js";
|
|
16
16
|
import { n as isModifiedClick, t as activateMenuItem } from "./menuActivation-BqiaK6ot.js";
|
|
17
|
-
import { n as _sfc_main$11, t as _sfc_main$10 } from "./ListItem-
|
|
17
|
+
import { n as _sfc_main$11, t as _sfc_main$10 } from "./ListItem-BlrEngDO.js";
|
|
18
18
|
import { t as moreMenuMessages } from "./more-menu-B_dod4C-.js";
|
|
19
19
|
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, h, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
20
20
|
import "../styles/layer.css";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as MultiSelectorSlots, a as MultiSelectorCreateChange, b as MultiSelectorTriggerDisplay, c as MultiSelectorHandle, d as MultiSelectorOptionData, f as MultiSelectorPresentation, g as MultiSelectorSize, h as MultiSelectorSelectedItem, i as MultiSelectorCheckboxPosition, l as MultiSelectorHandleRef, m as MultiSelectorSection, n as flattenOptions, o as MultiSelectorDivider, p as MultiSelectorProps, r as _default, s as MultiSelectorEmits, t as SELECT_ALL_VALUE, u as MultiSelectorOption, v as MultiSelectorStatus, x as MultiSelectorVariant, y as MultiSelectorStatusVariant } from "../index-
|
|
1
|
+
import { _ as MultiSelectorSlots, a as MultiSelectorCreateChange, b as MultiSelectorTriggerDisplay, c as MultiSelectorHandle, d as MultiSelectorOptionData, f as MultiSelectorPresentation, g as MultiSelectorSize, h as MultiSelectorSelectedItem, i as MultiSelectorCheckboxPosition, l as MultiSelectorHandleRef, m as MultiSelectorSection, n as flattenOptions, o as MultiSelectorDivider, p as MultiSelectorProps, r as _default, s as MultiSelectorEmits, t as SELECT_ALL_VALUE, u as MultiSelectorOption, v as MultiSelectorStatus, x as MultiSelectorVariant, y as MultiSelectorStatusVariant } from "../index-MBiq-7Np.js";
|
|
2
2
|
export { _default as MultiSelector, type MultiSelectorCheckboxPosition, type MultiSelectorCreateChange, type MultiSelectorDivider, type MultiSelectorEmits, type MultiSelectorHandle, type MultiSelectorHandleRef, type MultiSelectorOption, type MultiSelectorOptionData, type MultiSelectorPresentation, type MultiSelectorProps, type MultiSelectorSection, type MultiSelectorSelectedItem, type MultiSelectorSize, type MultiSelectorSlots, type MultiSelectorStatus, type MultiSelectorStatusVariant, type MultiSelectorTriggerDisplay, type MultiSelectorVariant, SELECT_ALL_VALUE, flattenOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main } from "../MultiSelector-
|
|
1
|
+
import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main } from "../MultiSelector-BSA613nO.js";
|
|
2
2
|
export { _sfc_main as MultiSelector, SELECT_ALL_VALUE, flattenOptions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as _sfc_main$2 } from "./BottomSheet-
|
|
1
|
+
import { n as _sfc_main$2 } from "./BottomSheet-DVe5Nw9Z.js";
|
|
2
2
|
import { t as _sfc_main$3 } from "./Icon-Dk0jccgU.js";
|
|
3
3
|
import { n as useInputGroupContext, r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
|
|
4
4
|
import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
package/dist/NavItem/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as NavItemSize, i as NavItemProps, n as NavIconSlots, o as NavItemSlots, r as NavItemEmits, s as NavLinkComponent, t as NavIconProps } from "../types-C2ZuV4jf.js";
|
|
2
|
-
import { n as _default, r as resolveNavRoot, t as _default$1 } from "../index-
|
|
2
|
+
import { n as _default, r as resolveNavRoot, t as _default$1 } from "../index-ZKBj_1nu.js";
|
|
3
3
|
export { _default as NavIcon, type NavIconProps, type NavIconSlots, _default$1 as NavItem, type NavItemEmits, type NavItemProps, type NavItemSize, type NavItemSlots, type NavLinkComponent, resolveNavRoot };
|
package/dist/NavItem/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { r as resolveNavRoot } from "../link-DuuA2eCL.js";
|
|
2
2
|
import { t as _sfc_main } from "../NavItem-thEKXyJA.js";
|
|
3
|
-
import { t as _sfc_main$1 } from "../NavItem-
|
|
3
|
+
import { t as _sfc_main$1 } from "../NavItem-kj9FbbFS.js";
|
|
4
4
|
export { _sfc_main as NavIcon, _sfc_main$1 as NavItem, resolveNavRoot };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Bi as NumberInputEmits, Hi as NumberInputStatus, Ui as NumberInputEntryError, Vi as NumberInputProps, zi as _default } from "../index-
|
|
1
|
+
import { Bi as NumberInputEmits, Hi as NumberInputStatus, Ui as NumberInputEntryError, Vi as NumberInputProps, zi as _default } from "../index-0COIBuxA.js";
|
|
2
2
|
export { _default as NumberInput, type NumberInputEmits, type NumberInputEntryError, type NumberInputProps, type NumberInputStatus };
|
package/dist/Outline/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as _sfc_main, n as useOutlineFromDOM, r as parseOutlineFromMarkdown, t as useOutlineFromMarkdown } from "../Outline-
|
|
1
|
+
import { i as _sfc_main, n as useOutlineFromDOM, r as parseOutlineFromMarkdown, t as useOutlineFromMarkdown } from "../Outline-DI9MZnuQ.js";
|
|
2
2
|
export { _sfc_main as Outline, parseOutlineFromMarkdown, useOutlineFromDOM, useOutlineFromMarkdown };
|