@astryx-vue/core 0.43.5 → 0.44.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-CbYI2lSn.js → AlertDialog-RCTKkU3N.js} +4 -4
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-DthdM-zn.js → Avatar-NYFG3hmj.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-DBj4G2ln.js → Banner-B4M75WYo.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-Divj8J_1.js → Breadcrumbs-C77XPTbH.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-cAa9AeKm.js → Button-CWzILTBG.js} +2 -2
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-CVEW53-t.js → ButtonGroup-CQKamSTm.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-Bz2GuVdq.js → Carousel-DhYAjVyA.js} +1 -1
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Cr_MEm-a.js → Chat-Bo3jDoY2.js} +3 -3
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-Bxkwj-UA.js → CheckboxInput-D7uMSWmO.js} +2 -2
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-dQ1xloAV.js → CheckboxListItem-BZSjclkl.js} +4 -4
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-Buhb8IAF.js → Code-CCVKqsZX.js} +1 -1
- package/dist/{CodeBlock-BGaLnVrQ.js → CodeBlock-1VBxZC5q.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-QoKg-f6B.js → ComplexSelector-BnxKjvOf.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-C941I0rG.js → ContextMenu-COoWQvDI.js} +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-D-QtIGlw.js → DateInput-vpZpaOqD.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-IpznCdkO.js → DateRangeInput-Bfa1Btc6.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DMptZyjX.js → DateTimeInput-DD8euLAL.js} +4 -4
- package/dist/Dialog/index.js +1 -1
- package/dist/{DialogHeader-XUjy9Mxx.js → DialogHeader-DkpI73Rn.js} +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-BkF0RsKw.js → Drawer-BJN7f9iU.js} +1 -1
- package/dist/DropdownMenu/index.js +1 -1
- package/dist/{DropdownMenu-S8usz-Yk.js → DropdownMenu-DyRSPXZW.js} +2 -2
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BU4RhwEo.js → EmptyState-Dd1opiK7.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-DIjIgiMo.js → Field-BiLdRQCq.js} +1 -1
- package/dist/{FieldInfoTip-D93Kcdo-.js → FieldInfoTip-DcHfO3cg.js} +1 -1
- package/dist/{FieldLabel-B-jJ2ETs.js → FieldLabel-VQOjytac.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-n0pEzUQR.js → FileInput-cbbH72PV.js} +3 -3
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-BBcdemCU.js → Heading-DHuEWiNg.js} +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-B8q3MpjF.js → HoverCard-DWr12brr.js} +2 -2
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CxVxw2hc.js → IconButton-Bd0TmKGO.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BgcWXI1k.js → InfoTip-CYz0ZVbO.js} +2 -2
- package/dist/{InputClearButton-Bn29CBnZ.js → InputClearButton-oqum48Bd.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-B3kkylCQ.js → InputGroup-CftqWOKd.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Ims5yQjw.js → Lightbox-zLp_V3-j.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-DlzfqBMW.js → Link-By3uOCxb.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{List-C6Zj2WCv.js → List-DJ24b8z9.js} +1 -1
- package/dist/{ListItem-CXsgM4xN.js → ListItem-C-ojoRaq.js} +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DtFXmWK6.js → Markdown-CGT2VGto.js} +3 -3
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BxC8oVyA.js → MoreMenu-B5yaI1km.js} +4 -4
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-4N6ZQdr1.js → MultiSelector-BggYBW9X.js} +3 -3
- package/dist/{NavDisclosure-B1Rk9uWm.js → NavDisclosure-BZntpJLd.js} +46 -4
- package/dist/{NavHeadingSurface-B8vSLYn8.js → NavHeadingSurface-F2xoWvlv.js} +36 -25
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-C78sH1q0.js → NavMenu-B14_ovBG.js} +1 -1
- package/dist/{NavMenuItem-CCWYKpRJ.js → NavMenuItem-DMXY_6AO.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-CO3_Suv2.js → NumberInput-CQmyAC9u.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-CLEZqhaM.js → OverflowList-wrh7FgSu.js} +2 -2
- 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-_FAAwTkY.js → Pagination-BYSzfJNC.js} +23 -10
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-Bm13yzVR.js → Popover-CzfrvUf-.js} +3 -3
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-BxH88nbf.js → PowerSearch-2hGn7uOl.js} +24 -24
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-BoZQV2l5.js → ProgressBar-EB4C8g83.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BpOtsMJw.js → RadioGroup-kFw6aAKj.js} +3 -3
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-D_vekWsm.js → RadioListItem-CssFcD1Y.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-9xB-4P3G.js → SegmentedControl-C5I9xTij.js} +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-C6ESJ-zk.js → Selector-Bq-ko1bT.js} +2 -2
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BwRn6ryA.js → SideNav-gW6EWQkB.js} +71 -49
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-Bg_qnNFt.js → Slider-BWGuROfN.js} +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-fYRbb3nd.js → StatusDot-k_LR-nCI.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-kRxVa5oQ.js → Switch-CSxnI68c.js} +2 -2
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-B2dfG_rt.js → TabList-Bnd4Y_fr.js} +10 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-ADs9W5i_.js → Table-B_cF2VxQ.js} +10 -10
- package/dist/Text/index.js +1 -1
- package/dist/{Text-Czw1L8Zc.js → Text-S8qRNR8c.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-CXeK9k3F.js → TextArea-Bp9oOJRv.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-BDa8jBbY.js → TextInput-r6SGYAJV.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-C7Hi97ND.js → Thumbnail-CYvBjbkJ.js} +2 -2
- package/dist/{TimeField-DIcpNQIQ.js → TimeField-DPTZEtMO.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-DI2yFG9f.js → TimeInput-BXZGp51E.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DUWtr4HW.js → Timer-8qoKxyOj.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-dTZ7YIWw.js → Timestamp-C1y_Uo2J.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-CUKO9z_S.js → Toast-DejhCPRQ.js} +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-C7D_xmkT.js → ToggleButton-CORp2QWg.js} +3 -3
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-CLByEOf-.js → Tokenizer-C85VTMGP.js} +9 -9
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-BYXFoOwa.js → Tooltip-Du2qh5Oz.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-C-Rxvn3-.js → TopNav-CGwj38SG.js} +30 -18
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-DgBTcIoM.js → Typeahead-5rX0iyrv.js} +4 -4
- package/dist/composables/index.js +4 -4
- package/dist/{composables-Dr2d0LpH.js → composables-BN74Vfvk.js} +1 -1
- package/dist/{index-CQtvsQ1J.d.ts → index-8fseMirV.d.ts} +5 -5
- package/dist/{index-DgNCHxvu.d.ts → index-B7-c8UTz.d.ts} +3 -3
- package/dist/{index-0RIgvtdm.d.ts → index-B_XTzQhm.d.ts} +5 -5
- package/dist/{index-BZ_lQz43.d.ts → index-BbHuan0g.d.ts} +1 -1
- package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/{index-BjqoHLMq.d.ts → index-C1e8LNx2.d.ts} +1 -1
- package/dist/{index-CkkybuPJ.d.ts → index-C6smY0js.d.ts} +1 -1
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-BPnP3Abd.d.ts → index-C9iidKbL.d.ts} +2 -2
- package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-mK1ICsVg.d.ts → index-Cm36VS1A.d.ts} +2 -2
- package/dist/{index-CD1-Hqm0.d.ts → index-CmqD5Ya9.d.ts} +2 -2
- package/dist/{index-DOlcm-Ra.d.ts → index-CtR2_TiL.d.ts} +11 -0
- package/dist/{index-Dno9YNVJ.d.ts → index-DCH2D3wa.d.ts} +6 -6
- package/dist/{index-CI-FbXLB.d.ts → index-DGVOnHpo.d.ts} +3 -3
- package/dist/{index-CCa_dvoF.d.ts → index-Ds4dOCSy.d.ts} +3 -3
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-BZ9ki2Po.d.ts → index-YiWq-3TF.d.ts} +67 -56
- package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
- package/dist/{index-Ak1b0V24.d.ts → index-a6o69uPN.d.ts} +1 -1
- package/dist/index.d.ts +21 -21
- package/dist/index.js +75 -75
- package/dist/internal/touch.js +1 -1
- package/dist/{stillPointerGate-D15jGSjP.js → stillPointerGate-BMwmHp6q.js} +1 -1
- package/dist/{tooltipFocusRules-BBshpLxm.js → tooltipFocusRules-Bj78PQCe.js} +1 -1
- package/dist/{tooltipTriggerRules-BjnT3wIz.js → tooltipTriggerRules-DR2MfrQ3.js} +1 -1
- package/dist/{useActionGroupTracking-BxTKiVux.js → useActionGroupTracking-CXIqZDh3.js} +1 -1
- package/dist/{useDismiss-ChlwPVfw.js → useDismiss-BqTTrMi-.js} +6 -6
- package/dist/{useInputStatusIcon-C1zyUxXl.js → useInputStatusIcon-DXGI-PHr.js} +1 -1
- package/dist/{useTooltip-DSB9njlb.js → useTooltip-BiNOqNAV.js} +2 -2
- package/dist/{useTouchHitArea-gP3O_wIA.js → useTouchHitArea-Cs4K31MA.js} +38 -3
- package/dist/{useTruncationTooltip-D8trOJ_a.js → useTruncationTooltip-DHNvQpxv.js} +3 -3
- package/dist/{useTypeaheadMenuConfig-Cm5adRdf.js → useTypeaheadMenuConfig-Cry4Kgfr.js} +1 -1
- package/package.json +1 -1
- package/styles/nav-item.css +2 -1
- package/styles/nav-menu.css +9 -0
- package/styles/pagination.css +14 -0
- package/styles/side-nav.css +10 -0
- package/styles/tab-menu.css +5 -0
- package/styles/top-nav.css +11 -0
|
@@ -176,15 +176,15 @@ function isAnchorInViewport(anchor, viewport) {
|
|
|
176
176
|
return anchor.right > 0 && anchor.bottom > 0 && anchor.left < viewport.width && anchor.top < viewport.height;
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
179
|
-
* 让浮层盖在锚点原位上:浮层左上角比锚点左上角各外扩 `OVERLAP_OUTSET
|
|
179
|
+
* 让浮层盖在锚点原位上:浮层左上角比锚点左上角各外扩 `outset`(默认 `OVERLAP_OUTSET`),
|
|
180
180
|
* 宽度至少比锚点宽两倍外扩距离。浮层里第一行内容离浮层边缘也是这个距离时,
|
|
181
181
|
* 正好落在锚点内容原来的位置上。最终位置保持在视口内。
|
|
182
182
|
*/
|
|
183
|
-
function computeOverlapPosition(anchor, layer, viewport, gutter = resolveLayerGutter()) {
|
|
184
|
-
const minWidth = anchor.width +
|
|
183
|
+
function computeOverlapPosition(anchor, layer, viewport, gutter = resolveLayerGutter(), outset = 8) {
|
|
184
|
+
const minWidth = anchor.width + outset * 2;
|
|
185
185
|
const width = Math.max(layer.width, minWidth);
|
|
186
|
-
const top = anchor.top -
|
|
187
|
-
const left = anchor.left -
|
|
186
|
+
const top = anchor.top - outset;
|
|
187
|
+
const left = anchor.left - outset;
|
|
188
188
|
if (!isAnchorInViewport(anchor, viewport)) return {
|
|
189
189
|
top,
|
|
190
190
|
left,
|
|
@@ -244,7 +244,7 @@ function usePositionedLayer(options) {
|
|
|
244
244
|
height: options.keepAnchorClear === true ? Math.max(layerEl.offsetHeight, layerEl.scrollHeight) : layerEl.offsetHeight
|
|
245
245
|
};
|
|
246
246
|
if (options.overlap?.value === true) {
|
|
247
|
-
position.value = computeOverlapPosition(anchorRect, box, viewport, gutter.value);
|
|
247
|
+
position.value = computeOverlapPosition(anchorRect, box, viewport, gutter.value, options.overlapInset?.());
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
250
|
const placed = computeLayerPosition(anchorRect, box, viewport, placement.value, alignment.value, gap, gutter.value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as _sfc_main } from "./FieldIcon-C6A69-um.js";
|
|
2
|
-
import { t as _sfc_main$1 } from "./FieldInfoTip-
|
|
2
|
+
import { t as _sfc_main$1 } from "./FieldInfoTip-DcHfO3cg.js";
|
|
3
3
|
import { computed, toValue } from "vue";
|
|
4
4
|
//#region src/composables/useInputStatusIcon.ts
|
|
5
5
|
/**
|
|
@@ -2,13 +2,13 @@ import { a as holdMouseMoves, o as isMouseMove } from "./inputStream-CFvjNDgT.js
|
|
|
2
2
|
import { o as registerLayerSurface } from "./interactiveAncestor-CEsQ_YQW.js";
|
|
3
3
|
import { r as visibleText } from "./cutText-Cg1a7iug.js";
|
|
4
4
|
import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-zwZQglr2.js";
|
|
5
|
-
import { n as useLayer } from "./tooltipTriggerRules-
|
|
5
|
+
import { n as useLayer } from "./tooltipTriggerRules-DR2MfrQ3.js";
|
|
6
6
|
import { t as _sfc_main$1 } from "./LayerContentBoundary-CMjCvF35.js";
|
|
7
7
|
import { a as trackInteractionModality } from "./interactionModality-4Km2ibsq.js";
|
|
8
8
|
import { t as renderedText } from "./renderedText-BwJdmps3.js";
|
|
9
9
|
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
10
10
|
import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-CCk8lhbz.js";
|
|
11
|
-
import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-
|
|
11
|
+
import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-Bj78PQCe.js";
|
|
12
12
|
import { Teleport, computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, inject, mergeProps, onMounted, onScopeDispose, openBlock, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
|
|
13
13
|
import "../styles/tooltip.css";
|
|
14
14
|
//#region src/Tooltip/TooltipSurface.vue
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as pressFadeMs, f as isTrackedByGroup, t as PRESSED_ATTRIBUTE, y as PRESS_GROUP_ITEM_ATTRIBUTE } from "./pressSlot-WuaTVSU4.js";
|
|
2
2
|
import { t as armClickGuard } from "./clickGuard-DOe-7mpi.js";
|
|
3
|
-
import { toValue, watch } from "vue";
|
|
3
|
+
import { onScopeDispose, toValue, watch } from "vue";
|
|
4
4
|
import "../styles/touch-hit-area.css";
|
|
5
5
|
/** 不长:热区就是目标本身。 */
|
|
6
6
|
const NO_HIT_INSETS = {
|
|
@@ -883,7 +883,8 @@ function watchHitArea(element, onInsets, { growth, checkAtPress = true } = {}) {
|
|
|
883
883
|
* @file useTouchHitArea.ts
|
|
884
884
|
* @input 一个元素、它此刻是否接受点按,以及(可选)它怎么长
|
|
885
885
|
* @output `useTouchHitArea`:粗指针下把元素的热区写成 `--astryx-hit-inset-*`,
|
|
886
|
-
* 给 touch-hit-area.css 的热区伪元素读;`
|
|
886
|
+
* 给 touch-hit-area.css 的热区伪元素读;`useTouchHitAreas`:同样看着一组元素;
|
|
887
|
+
* `GROUP_HIT_AREA`:组的长法
|
|
887
888
|
* @position 内部组合式函数。Button 的热区画在内容包裹层的 `::after` 上,
|
|
888
889
|
* ButtonGroup 和 ToggleButtonGroup 的热区画在组根的 `::before` 上(压在成员下面)。
|
|
889
890
|
*/
|
|
@@ -916,5 +917,39 @@ function useTouchHitArea(element, enabled, options) {
|
|
|
916
917
|
flush: "post"
|
|
917
918
|
});
|
|
918
919
|
}
|
|
920
|
+
/**
|
|
921
|
+
* 同时看着一组元素(例如 Pagination 的每个圆点)。每个元素各自往 44px 长,碰到邻居时收在一半间距处。
|
|
922
|
+
* 元素离开这一组、`enabled` 变假或卸载时,停下它并清掉写过的值。
|
|
923
|
+
*/
|
|
924
|
+
function useTouchHitAreas(elements, enabled, options) {
|
|
925
|
+
const watched = /* @__PURE__ */ new Map();
|
|
926
|
+
function sync() {
|
|
927
|
+
const next = new Set(toValue(enabled) ? toValue(elements) ?? [] : []);
|
|
928
|
+
for (const [element, stop] of watched) if (!next.has(element)) {
|
|
929
|
+
stop();
|
|
930
|
+
watched.delete(element);
|
|
931
|
+
}
|
|
932
|
+
for (const element of next) {
|
|
933
|
+
if (watched.has(element)) continue;
|
|
934
|
+
let hasWritten = false;
|
|
935
|
+
const stop = watchHitArea(element, (insets) => {
|
|
936
|
+
hasWritten = true;
|
|
937
|
+
writeHitInsets(element, insets);
|
|
938
|
+
}, options);
|
|
939
|
+
watched.set(element, () => {
|
|
940
|
+
stop();
|
|
941
|
+
if (hasWritten) clearHitInsets(element);
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
watch(() => [toValue(enabled), ...toValue(elements) ?? []], sync, {
|
|
946
|
+
immediate: true,
|
|
947
|
+
flush: "post"
|
|
948
|
+
});
|
|
949
|
+
onScopeDispose(() => {
|
|
950
|
+
for (const stop of watched.values()) stop();
|
|
951
|
+
watched.clear();
|
|
952
|
+
});
|
|
953
|
+
}
|
|
919
954
|
//#endregion
|
|
920
|
-
export { resolveGroupTouch as i, useTouchHitArea as n,
|
|
955
|
+
export { resolveGroupTouch as a, createActionGroupTracker as i, useTouchHitArea as n, useTouchHitAreas as r, GROUP_HIT_AREA as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as matchesFocusVisible } from "./tooltipTriggerRules-
|
|
1
|
+
import { t as matchesFocusVisible } from "./tooltipTriggerRules-DR2MfrQ3.js";
|
|
2
2
|
import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
|
|
3
|
-
import { r as tooltipPresentInterestKey } from "./useTooltip-
|
|
4
|
-
import { t as _sfc_main$1 } from "./Tooltip-
|
|
3
|
+
import { r as tooltipPresentInterestKey } from "./useTooltip-BiNOqNAV.js";
|
|
4
|
+
import { t as _sfc_main$1 } from "./Tooltip-Du2qh5Oz.js";
|
|
5
5
|
import { n as useTruncation, t as truncatePlacement } from "./useTruncation-Cn8Ohj_1.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, defineComponent, openBlock, provide, shallowRef } from "vue";
|
|
7
7
|
//#region src/Text/TruncationTooltip.vue
|
|
@@ -5,7 +5,7 @@ import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
|
5
5
|
import { n as useAsyncSource } from "./useAsyncSource-7GTcK8ep.js";
|
|
6
6
|
import { t as useCombobox } from "./useCombobox-BbDP75hw.js";
|
|
7
7
|
import { t as _sfc_main$3 } from "./Spinner-CQXQ0RqS.js";
|
|
8
|
-
import { t as createStillPointerGate } from "./stillPointerGate-
|
|
8
|
+
import { t as createStillPointerGate } from "./stillPointerGate-BMwmHp6q.js";
|
|
9
9
|
import { i as isOptionAction, n as searchResultMessage, r as OptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-C7ibYM_A.js";
|
|
10
10
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
11
11
|
import "../styles/layer.css";
|
package/package.json
CHANGED
package/styles/nav-item.css
CHANGED
|
@@ -128,7 +128,8 @@
|
|
|
128
128
|
flex: none;
|
|
129
129
|
align-items: center;
|
|
130
130
|
justify-content: center;
|
|
131
|
-
|
|
131
|
+
/* 和单选框的圆点一样,在任何主题下都是圆的,不跟圆角令牌走。 */
|
|
132
|
+
border-radius: 50%;
|
|
132
133
|
background: var(--astryx-color-accent);
|
|
133
134
|
color: var(--astryx-color-on-accent);
|
|
134
135
|
}
|
package/styles/nav-menu.css
CHANGED
|
@@ -75,6 +75,15 @@
|
|
|
75
75
|
outline: none;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
/*
|
|
79
|
+
* 标题菜单里,悬停底色和菜单的对比不到 3:1:键盘聚焦的项另画共用的焦点环,
|
|
80
|
+
* 往里收一个环宽,画在行内。指针聚焦只有底色。
|
|
81
|
+
*/
|
|
82
|
+
.astryx-nav-heading-menu-item:focus-visible {
|
|
83
|
+
outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, currentcolor);
|
|
84
|
+
outline-offset: calc(-1 * var(--astryx-focus-outline-width, 2px));
|
|
85
|
+
}
|
|
86
|
+
|
|
78
87
|
@media not all and (pointer: coarse) {
|
|
79
88
|
.astryx-nav-menu-item:active:not(:disabled, .astryx-nav-menu-item--disabled) {
|
|
80
89
|
background: var(--astryx-color-overlay-pressed);
|
package/styles/pagination.css
CHANGED
|
@@ -69,7 +69,9 @@
|
|
|
69
69
|
gap: var(--astryx-spacing-2, 8px);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
/* 定位元素:粗指针下的热区伪元素以圆点为包含块。 */
|
|
72
73
|
.astryx-pagination-dot {
|
|
74
|
+
position: relative;
|
|
73
75
|
width: 8px;
|
|
74
76
|
height: 8px;
|
|
75
77
|
padding: 0;
|
|
@@ -77,6 +79,18 @@
|
|
|
77
79
|
border-radius: var(--astryx-radius-full, 999px);
|
|
78
80
|
background: var(--astryx-color-border, #d4d4d4);
|
|
79
81
|
cursor: pointer;
|
|
82
|
+
transition: background-color var(--astryx-duration-fast, 130ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* 减少动效时换页的圆点不渐变:系统设置,或主题对所有人减少动效。 */
|
|
86
|
+
@media (prefers-reduced-motion: reduce) {
|
|
87
|
+
.astryx-pagination-dot {
|
|
88
|
+
transition-duration: 0s;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:where([data-astryx-reduced-motion]) .astryx-pagination-dot {
|
|
93
|
+
transition-duration: 0s;
|
|
80
94
|
}
|
|
81
95
|
|
|
82
96
|
.astryx-pagination-dot.is-active {
|
package/styles/side-nav.css
CHANGED
|
@@ -492,8 +492,10 @@
|
|
|
492
492
|
transition-delay: 0s, 0s;
|
|
493
493
|
}
|
|
494
494
|
|
|
495
|
+
/* min-width: 0 让下级的轨道保持列表宽度:长标签截短,不把展开的分组撑出侧栏。 */
|
|
495
496
|
.astryx-side-nav-item__children-inner {
|
|
496
497
|
min-height: 0;
|
|
498
|
+
min-width: 0;
|
|
497
499
|
}
|
|
498
500
|
|
|
499
501
|
.astryx-side-nav-item__popover {
|
|
@@ -520,4 +522,12 @@
|
|
|
520
522
|
transition-delay: 0s;
|
|
521
523
|
}
|
|
522
524
|
}
|
|
525
|
+
|
|
526
|
+
/* 主题对所有人减少动效时同样直接落位。 */
|
|
527
|
+
:where([data-astryx-reduced-motion]) .astryx-side-nav-item__children,
|
|
528
|
+
:where([data-astryx-reduced-motion]) .astryx-side-nav-item__chevron,
|
|
529
|
+
:where([data-astryx-reduced-motion]) .astryx-side-nav-collapse__chevron {
|
|
530
|
+
transition-duration: 0.01ms;
|
|
531
|
+
transition-delay: 0s;
|
|
532
|
+
}
|
|
523
533
|
}
|
package/styles/tab-menu.css
CHANGED
package/styles/top-nav.css
CHANGED
|
@@ -300,6 +300,17 @@
|
|
|
300
300
|
transition: transform var(--astryx-duration-fast-max) var(--astryx-ease-standard);
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
+
/* 减少动效时箭头直接转到位:系统设置,或主题对所有人减少动效。 */
|
|
304
|
+
@media (prefers-reduced-motion: reduce) {
|
|
305
|
+
.astryx-top-nav-menu__chevron {
|
|
306
|
+
transition-duration: 0s;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
:where([data-astryx-reduced-motion]) .astryx-top-nav-menu__chevron {
|
|
311
|
+
transition-duration: 0s;
|
|
312
|
+
}
|
|
313
|
+
|
|
303
314
|
.astryx-top-nav-menu__chevron--open { transform: rotate(180deg); }
|
|
304
315
|
|
|
305
316
|
.astryx-top-nav-menu--drawer,
|