@astryx-vue/core 0.43.4 → 0.43.6
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-CcQuJKn6.js → AlertDialog-DMnMkws1.js} +4 -4
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-BZrs85ca.js → AppShell-D7Q66weN.js} +11 -4
- 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-DBiGObs1.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-B_c2Qm7B.js → BottomSheet-Cp6j099l.js} +1 -1
- package/dist/{BottomSheet-CN2GXFrM.js → BottomSheet-YMCZQnE7.js} +1 -1
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-Drv_deCP.js → Breadcrumbs-BnG7qEcJ.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-cAa9AeKm.js → Button-DQ6RfigZ.js} +1 -1
- 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/Card/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-Cs7X1lep.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-D0eyxcQ5.js → Chat-CF_SX671.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-Bxkwj-UA.js → CheckboxInput-BkCF8GIt.js} +2 -2
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-dQ1xloAV.js → CheckboxListItem-DirFLYZN.js} +3 -3
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-Q9v7cY07.js → ClickableCard-VoDgBMvb.js} +24 -4
- package/dist/Code/index.js +2 -2
- package/dist/{Code-Buhb8IAF.js → Code-D7gYFNXC.js} +1 -1
- package/dist/{CodeBlock-BGaLnVrQ.js → CodeBlock-BA8Y_MF2.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BdX1TRrW.js → ComplexSelector-WXfnvLcn.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-CzeZmLy8.js → ContextMenu-C941I0rG.js} +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-Ck4gAiFL.js → DateInput-CAV1SmkA.js} +3 -3
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-ChrXW-_5.js → DateRangeInput-C4cWtxCS.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-D5X_NyMg.js → DateTimeInput-D3xOuNs6.js} +5 -5
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +1 -1
- package/dist/{DialogHeader-XUjy9Mxx.js → DialogHeader-BYaCZLsF.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-DsAG3ZLp.js} +1 -1
- package/dist/DropdownMenu/index.js +1 -1
- package/dist/{DropdownMenu-a54pw41L.js → DropdownMenu-CRd17odo.js} +2 -2
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-OncHh-9P.js → EmptyState-BU4RhwEo.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-DIjIgiMo.js → Field-BVb_ZtR4.js} +1 -1
- package/dist/{FieldInfoTip-D93Kcdo-.js → FieldInfoTip-BfOrntpA.js} +1 -1
- package/dist/{FieldLabel-B-jJ2ETs.js → FieldLabel-BGCnyRrA.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-n0pEzUQR.js → FileInput-BiAXRgPS.js} +3 -3
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-BfoFn1o5.js → Heading-BBcdemCU.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CxVxw2hc.js → IconButton-CxTDkKrB.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BgcWXI1k.js → InfoTip-C1alu-zO.js} +1 -1
- package/dist/{InputClearButton-Bn29CBnZ.js → InputClearButton-C9TYgl0O.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-B3kkylCQ.js → InputGroup-DF43Dd5j.js} +1 -1
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-OQ1qfgFZ.js → Layout-CwBC_vhy.js} +1 -1
- package/dist/{LayoutPanel-C7meqbdC.js → LayoutPanel-CNQxpDF3.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-CVrDI3Df.js → Lightbox-CpsxXfXR.js} +3 -3
- package/dist/Link/index.d.ts +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-CH1HEQ5H.js → Markdown-ef1Pusj2.js} +2 -2
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-BjBPWy34.js → MobileNavToggle-6te1baa6.js} +6 -4
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BV0ilgia.js → MoreMenu-C9eTY46e.js} +3 -3
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BWOqNKUw.js → MultiSelector-BXOl_3RE.js} +4 -4
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DDSIBcXu.js → NumberInput-CFmYhZFF.js} +4 -4
- package/dist/OverflowList/index.d.ts +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-D5NEGm3v.js → Pagination-CCekd2TY.js} +23 -10
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CD9zRZCN.js → Popover-4pKMLazF.js} +2 -2
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CgyDqwVA.js → PowerSearch-BdSHxJh3.js} +21 -21
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BpOtsMJw.js → RadioGroup-DqSko1KI.js} +2 -2
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-D_vekWsm.js → RadioListItem-D35fc-jY.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/Section/index.d.ts +2 -2
- package/dist/Section/index.js +1 -1
- package/dist/{Section-Km_FjJ-i.js → Section-B_zTnJut.js} +6 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-C4cyOw3z.js → SegmentedControl-C5I9xTij.js} +2 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-DNQqIEyw.js → SelectableCard-CiGBc6LT.js} +3 -2
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DIQgqqjp.js → Selector-dcBkjGSi.js} +4 -4
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DJTPCwwg.js → SideNav-WezCXr6n.js} +2 -2
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-D_IQQkrP.js → Slider-BhVOgFx8.js} +2 -2
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stack/index.js +1 -1
- package/dist/{Stack-Bj3MyHVh.js → Stack-Cr68kCrs.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-BphfPxFb.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-fQSnifLV.js} +9 -2
- package/dist/Table/index.d.ts +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/{Table-C2oRVE_7.js → Table-BSIKPIu3.js} +11 -11
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +2 -2
- package/dist/{Text-DcTbvkLq.js → Text-Czw1L8Zc.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-CsfwwuIa.js → TextArea-CpxsbEzg.js} +5 -5
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-CstQuPUe.js → TextInput-BTJx9Fs8.js} +5 -5
- package/dist/Theme/index.js +1 -1
- package/dist/{Theme-B_kAJHy2.js → Theme-fCN_zUNt.js} +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-C7Hi97ND.js → Thumbnail-BUkieAGN.js} +1 -1
- package/dist/{TimeField-Bno6mkOA.js → TimeField-8_uSSXNS.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-CJFEeyET.js → TimeInput-Cw37RqHp.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-vj0M-kQs.js → Timer-DUWtr4HW.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-ANLjz4lW.js → Timestamp-BG1Qr6TA.js} +2 -2
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-CUKO9z_S.js → Toast-B_CVMyrG.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-C5SkGHLw.js} +3 -3
- 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-eOB86IoD.js → Tokenizer-DinjuxoR.js} +8 -8
- package/dist/Toolbar/index.d.ts +2 -2
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-BHkPxDxA.js → Toolbar-J0Q0-NZB.js} +7 -4
- 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-D79FiL4s.js → TopNav-BGbiAK0H.js} +28 -16
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-DgBTcIoM.js → Typeahead-QSjVKAEh.js} +2 -2
- package/dist/{assertOptions-Cl5NciZF.js → assertOptions--NMPt4op.js} +1 -1
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +3 -3
- package/dist/{composables-DqIVxGbe.js → composables-BN74Vfvk.js} +2 -2
- package/dist/{index-J83fLEyo.d.ts → index-B7-c8UTz.d.ts} +3 -3
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-CC9ETLL4.d.ts → index-BMoR8Uoh.d.ts} +3 -3
- package/dist/{index-CBOv5j3c.d.ts → index-BQ3cm7mP.d.ts} +2 -2
- package/dist/{index-BZ_lQz43.d.ts → index-BbHuan0g.d.ts} +1 -1
- package/dist/{index-maTGrWjF.d.ts → index-BenG-F5d.d.ts} +1 -1
- package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-iGHM85Y1.d.ts → index-Bu3B-rU1.d.ts} +4 -4
- package/dist/{index-zMNvYijA.d.ts → index-C0mW_Tba.d.ts} +1 -1
- package/dist/{index-BjqoHLMq.d.ts → index-C1e8LNx2.d.ts} +1 -1
- package/dist/{index-D1IOCfUe.d.ts → index-C3hmT5ze.d.ts} +10 -10
- 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-Ds4dOCSy.d.ts → index-CCa_dvoF.d.ts} +3 -3
- package/dist/{index-BaFphczL.d.ts → index-CZnmYqeo.d.ts} +1 -1
- package/dist/{index-D3UaSnbN.d.ts → index-Cb-rvc1W.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-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
- package/dist/{index-Csn58myZ.d.ts → index-D-cuURNK.d.ts} +1 -1
- package/dist/{index-BI1QLuYB.d.ts → index-D-zl_Rle.d.ts} +4 -4
- package/dist/{index-CEv_AvOg.d.ts → index-D2nMIyHd.d.ts} +1 -1
- package/dist/{index-CTjkJP4x.d.ts → index-D46MxxOl.d.ts} +4 -1
- package/dist/{index-DpiL3YlX.d.ts → index-D6pCg_uS.d.ts} +10 -10
- package/dist/{index-C8hyLvk2.d.ts → index-DZUoC8aR.d.ts} +1 -1
- package/dist/{index-DD3c1ZhS.d.ts → index-DuuH0y8h.d.ts} +2 -2
- package/dist/{index-D1aUS4mJ.d.ts → index-N3ACQISJ.d.ts} +90 -84
- package/dist/{index-vCRf5fyK.d.ts → index-ZKBj_1nu.d.ts} +1 -1
- package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
- package/dist/{index-K9yFjQxo.d.ts → index-dgfLDqBm.d.ts} +2 -2
- package/dist/{index-DyKu6YTp.d.ts → index-s2PK7op9.d.ts} +3 -3
- package/dist/{index-Ak1b0V24.d.ts → index-tdOyqA_U.d.ts} +1 -1
- package/dist/index.d.ts +35 -35
- package/dist/index.js +76 -76
- package/dist/internal/touch.js +2 -2
- package/dist/{lazyBottomSheet-Cgu6B2R1.js → lazyBottomSheet-BHzk8JsS.js} +1 -1
- package/dist/{sharedResizeObserver-BekhnB3E.js → sharedResizeObserver-BnRTJaNh.js} +54 -1
- package/dist/{types-uFMH9NaM.d.ts → types-ByudyXHy.d.ts} +1 -1
- package/dist/{useActionGroupTracking-BxTKiVux.js → useActionGroupTracking-CXIqZDh3.js} +1 -1
- package/dist/{useInputStatusIcon-C1zyUxXl.js → useInputStatusIcon-CaU9lBe4.js} +1 -1
- package/dist/{useMobileKeyboard-xkLI3Sc0.js → useMobileKeyboard-DxddrPiU.js} +1 -1
- package/dist/{useResizable-ZYDRiLfL.js → useResizable-C7McXqlY.js} +28 -2
- package/dist/{useResizable-CJFVvx_2.d.ts → useResizable-if_cP4fs.d.ts} +1 -1
- package/dist/{useScrollRegionProps-D5fMvdfn.js → useScrollRegionProps-YzH-PyAg.js} +21 -7
- package/dist/{useTouchHitArea-gP3O_wIA.js → useTouchHitArea-Cs4K31MA.js} +38 -3
- package/dist/{useTruncation-D_T-ezdp.js → useTruncation-Cn8Ohj_1.js} +1 -1
- package/dist/{useTruncationTooltip-B0_h3sf9.js → useTruncationTooltip-D8trOJ_a.js} +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/styles/app-shell.css +5 -1
- package/styles/clickable-card.css +16 -5
- package/styles/collapsible.css +5 -0
- package/styles/layer.css +5 -1
- package/styles/mobile-nav.css +5 -0
- package/styles/nav-item.css +2 -1
- package/styles/nav-menu.css +9 -0
- package/styles/pagination.css +14 -0
- package/styles/resize-handle.css +11 -0
- package/styles/section.css +15 -0
- package/styles/side-nav.css +8 -0
- package/styles/tab-menu.css +5 -0
- package/styles/top-nav.css +11 -0
- package/dist/{index-7tsRPFfY.d.ts → index-DrIxH3YE.d.ts} +2 -2
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import { a as isMeasurable, i as getLogicalAxisMapping, u as measureScrollAxis } from "./scrollGeometry-ajfQQRJt.js";
|
|
2
|
-
import {
|
|
2
|
+
import { i as splitFirstResizeDelivery, r as observeResizeAfterLayout } from "./sharedResizeObserver-BnRTJaNh.js";
|
|
3
3
|
import { computed, onScopeDispose, shallowRef, toValue, watch } from "vue";
|
|
4
4
|
//#region src/composables/internal/mainOverflow.ts
|
|
5
5
|
/**
|
|
6
6
|
* 内容直接放在滚动容器里、没有内层盒子的区域(AppShell 的主区域,可滚动的 LayoutContent、
|
|
7
7
|
* LayoutPanel、StackItem)是不是溢出。内容变长时容器自己的大小不变,所以盯的是它的直接子元素。
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* 浏览器第一次排好版后量一次,之后只在答案变化时调 `onChange`。多个信号合并成每帧一次测量。
|
|
10
10
|
* 藏起来、没连在文档上、尺寸为 0 的区域答「不知道」:保留上一次的答案,等下一次有效的信号。
|
|
11
11
|
* 返回停止观察的函数。
|
|
12
|
+
*
|
|
13
|
+
* 区域在挂载时绑上,那时读布局会逼浏览器提前排一遍版。所以第一次测量等尺寸观察器的第一次通知,
|
|
14
|
+
* 那时浏览器刚排好区域或它的子元素,立即量不会多排一遍;同一轮通知里区域和子元素一起到,也只量一次。
|
|
15
|
+
* 没有 ResizeObserver 的环境里绑上就量。
|
|
12
16
|
*/
|
|
13
17
|
function observeMainOverflow(main, onChange) {
|
|
14
18
|
let isActive = true;
|
|
15
19
|
let frame = null;
|
|
16
20
|
let overflows = null;
|
|
21
|
+
let isLaidOut = false;
|
|
17
22
|
function measure() {
|
|
18
23
|
frame = null;
|
|
19
24
|
if (!isActive) return;
|
|
@@ -27,13 +32,17 @@ function observeMainOverflow(main, onChange) {
|
|
|
27
32
|
}
|
|
28
33
|
}
|
|
29
34
|
function scheduleMeasure() {
|
|
30
|
-
if (!isActive || frame != null) return;
|
|
35
|
+
if (!isActive || !isLaidOut || frame != null) return;
|
|
31
36
|
if (typeof requestAnimationFrame !== "function") {
|
|
32
37
|
measure();
|
|
33
38
|
return;
|
|
34
39
|
}
|
|
35
40
|
frame = requestAnimationFrame(measure);
|
|
36
41
|
}
|
|
42
|
+
const onResize = splitFirstResizeDelivery(() => {
|
|
43
|
+
isLaidOut = true;
|
|
44
|
+
measure();
|
|
45
|
+
}, scheduleMeasure);
|
|
37
46
|
const childObservers = /* @__PURE__ */ new Map();
|
|
38
47
|
function syncChildObservers() {
|
|
39
48
|
const children = new Set(Array.from(main.children));
|
|
@@ -41,11 +50,16 @@ function observeMainOverflow(main, onChange) {
|
|
|
41
50
|
stop();
|
|
42
51
|
childObservers.delete(child);
|
|
43
52
|
}
|
|
44
|
-
for (const child of children) if (!childObservers.has(child))
|
|
53
|
+
for (const child of children) if (!childObservers.has(child)) {
|
|
54
|
+
const stop = observeResizeAfterLayout(child, (entry) => {
|
|
55
|
+
if (entry != null) onResize();
|
|
56
|
+
});
|
|
57
|
+
childObservers.set(child, stop ?? (() => {}));
|
|
58
|
+
}
|
|
45
59
|
}
|
|
46
|
-
measure();
|
|
47
60
|
syncChildObservers();
|
|
48
|
-
const stopObservingMain =
|
|
61
|
+
const stopObservingMain = observeResizeAfterLayout(main, onResize);
|
|
62
|
+
if (stopObservingMain == null) onResize();
|
|
49
63
|
const mutations = typeof MutationObserver === "undefined" ? null : new MutationObserver(() => {
|
|
50
64
|
syncChildObservers();
|
|
51
65
|
scheduleMeasure();
|
|
@@ -71,7 +85,7 @@ function observeMainOverflow(main, onChange) {
|
|
|
71
85
|
isActive = false;
|
|
72
86
|
if (frame != null && typeof cancelAnimationFrame === "function") cancelAnimationFrame(frame);
|
|
73
87
|
frame = null;
|
|
74
|
-
stopObservingMain();
|
|
88
|
+
stopObservingMain?.();
|
|
75
89
|
mutations?.disconnect();
|
|
76
90
|
for (const stop of childObservers.values()) stop();
|
|
77
91
|
childObservers.clear();
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { n as observeResize, t as isResizeObserved } from "./sharedResizeObserver-
|
|
1
|
+
import { n as observeResize, t as isResizeObserved } from "./sharedResizeObserver-BnRTJaNh.js";
|
|
2
2
|
import { t as observeContent } from "./sharedMutationObserver-Dvh3N1N2.js";
|
|
3
3
|
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
4
4
|
//#region src/Text/useTruncation.ts
|
|
@@ -2,7 +2,7 @@ import { t as matchesFocusVisible } from "./tooltipTriggerRules-BjnT3wIz.js";
|
|
|
2
2
|
import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
|
|
3
3
|
import { r as tooltipPresentInterestKey } from "./useTooltip-DSB9njlb.js";
|
|
4
4
|
import { t as _sfc_main$1 } from "./Tooltip-BYXFoOwa.js";
|
|
5
|
-
import { n as useTruncation, t as truncatePlacement } from "./useTruncation-
|
|
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
|
|
8
8
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
package/dist/utils/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as isSafeUrl, r as sanitizeUrl, t as isSafeDestination } from "../safeUrl-CsvfcZ9m.js";
|
|
2
2
|
import { n as firstCharacter, r as truncateCharacters, t as characterCount } from "../characters-DmSa8HSB.js";
|
|
3
3
|
import { i as scrollsPage, n as scrollEventTarget, r as scrollportTop, t as setScrollAnchoringOff } from "../scrollAnchoring-CNplZXRt.js";
|
|
4
|
-
import {
|
|
4
|
+
import { a as unobserveResize, n as observeResize } from "../sharedResizeObserver-BnRTJaNh.js";
|
|
5
5
|
import { a as formatDisplayTime12h, i as createISOTimeString, n as clampTime, o as formatDisplayTime24h, r as compareTime, t as adjustTime, u as parseTimeInput } from "../timeParser-nVL5sIwT.js";
|
|
6
6
|
import { A as plainDateSetFirstOfMonth, C as plainDateIsAfter, D as plainDateMax, E as plainDateIsInRange, F as plainDateToday, I as plainDateWeekFieldName, M as plainDateToDate, N as plainDateToISO, O as plainDateMin, P as plainDateToInstant, S as plainDateGetWeekNumber, T as plainDateIsEqual, _ as plainDateDiffDays, a as DATE_FORMAT_SHORT_WITH_WEEKDAY, b as plainDateFromISO, c as DATE_FORMAT_WITH_WEEKDAY, d as getDaysInMonth, f as getTimeZoneParts, g as plainDateDayOfWeek, h as plainDateCreate, i as DATE_FORMAT_SHORT, j as plainDateSetStartOfWeek, k as plainDateSetEndOfWeekExclusive, l as SHARED_DATE_FORMAT_OPTIONS, m as plainDateAddMonths, n as DATE_FORMAT_MONTH_ONLY, o as DATE_FORMAT_SHORT_WITH_YEAR, p as plainDateAddDays, r as DATE_FORMAT_MONTH_YEAR, s as DATE_FORMAT_WEEKDAY_ONLY, t as DATE_FORMAT_LONG, u as formatSharedDate, v as plainDateFormat, w as plainDateIsBefore, x as plainDateFromInstant, y as plainDateFromDate } from "../plainDate-CaTDErKr.js";
|
|
7
7
|
import { a as pickerPresentationFromNativePicker, c as resolvePickerPresentation, i as effectivePickerPresentation, l as isLocaleDayFirst, o as presentationFromNativePicker, r as effectiveInputPresentation, s as resolveInputPresentation, t as DEFAULT_INPUT_PRESENTATION, u as parseDateInput } from "../inputPresentation-DES0JwkL.js";
|
package/package.json
CHANGED
package/styles/app-shell.css
CHANGED
|
@@ -20,7 +20,11 @@
|
|
|
20
20
|
--layout-padding-inner-y: initial;
|
|
21
21
|
--layout-content-width: initial;
|
|
22
22
|
--layout-alignment-width: initial;
|
|
23
|
-
|
|
23
|
+
/* 外层 Section 显式给的内边距靠继承传给里面没给 padding 的 Section,也停在这里。 */
|
|
24
|
+
--_section-inline-start: initial;
|
|
25
|
+
--_section-inline-end: initial;
|
|
26
|
+
--_section-block-start: initial;
|
|
27
|
+
--_section-block-end: initial;
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
.astryx-app-shell[data-variant='wash'],
|
|
@@ -45,19 +45,20 @@
|
|
|
45
45
|
transition-property: none;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
/* 只为卡片自己的链接、按钮或复选框画焦点环;子内容里的控件自己画,卡片不再套一圈。 */
|
|
49
|
+
.astryx-clickable-card:has(> [data-astryx-focus-owner]:focus-visible) {
|
|
49
50
|
outline: var(--astryx-focus-outline-width, 2px) solid var(--astryx-focus-outline-color, var(--astryx-color-text-primary, #171717));
|
|
50
51
|
outline-offset: var(--astryx-focus-outline-offset, 2px);
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
.astryx-clickable-card[data-disabled
|
|
54
|
+
.astryx-clickable-card[data-disabled] {
|
|
54
55
|
cursor: default;
|
|
55
56
|
opacity: 0.5;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
|
-
.astryx-clickable-card[data-disabled
|
|
59
|
-
.astryx-clickable-card[data-disabled
|
|
60
|
-
.astryx-clickable-card[data-disabled
|
|
59
|
+
.astryx-clickable-card[data-disabled]::after,
|
|
60
|
+
.astryx-clickable-card[data-disabled]:hover::after,
|
|
61
|
+
.astryx-clickable-card[data-disabled]:active::after {
|
|
61
62
|
background-color: transparent;
|
|
62
63
|
}
|
|
63
64
|
|
|
@@ -112,6 +113,16 @@
|
|
|
112
113
|
--astryx-selectable-card-accent: var(--astryx-color-yellow, #ca8a04);
|
|
113
114
|
}
|
|
114
115
|
|
|
116
|
+
/*
|
|
117
|
+
* 强制颜色模式去掉选中环的阴影、重画边框,选中需要自己的环:画在不占地方的 ::after 上,切换选中时什么都不挪动。
|
|
118
|
+
* 主题给卡片设的边框色到不了这一层;内容会滚动的定高卡片上,这一层跟着内容滚。
|
|
119
|
+
*/
|
|
120
|
+
@media (forced-colors: active) {
|
|
121
|
+
.astryx-selectable-card[data-selected='true']::after {
|
|
122
|
+
border: 2px solid Highlight;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
115
126
|
/* 减少动态效果时,悬停、按下、选中的颜色和边框都立即切换,不做过渡。 */
|
|
116
127
|
@media (prefers-reduced-motion: reduce) {
|
|
117
128
|
.astryx-clickable-card::after,
|
package/styles/collapsible.css
CHANGED
package/styles/layer.css
CHANGED
|
@@ -65,7 +65,11 @@
|
|
|
65
65
|
--layout-padding-own-outer-y: initial;
|
|
66
66
|
--layout-padding-inner-x: initial;
|
|
67
67
|
--layout-padding-inner-y: initial;
|
|
68
|
-
|
|
68
|
+
/* 外层 Section 显式给的内边距靠继承传给里面没给 padding 的 Section,也停在这里。 */
|
|
69
|
+
--_section-inline-start: initial;
|
|
70
|
+
--_section-inline-end: initial;
|
|
71
|
+
--_section-block-start: initial;
|
|
72
|
+
--_section-block-end: initial;
|
|
69
73
|
/* 步骤条的连接线空隙只属于外面那条轨道。浮层里的步骤条回到自己的 0。 */
|
|
70
74
|
--astryx-step-connector-gap: initial;
|
|
71
75
|
/* 外面容器传给 Text 的 anywhere 换行也停在这里,浮层里的 Text 回到自己的 break-word。 */
|
package/styles/mobile-nav.css
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/resize-handle.css
CHANGED
|
@@ -198,4 +198,15 @@
|
|
|
198
198
|
opacity: 1;
|
|
199
199
|
background-color: var(--astryx-color-border-emphasized, #d4d4d4);
|
|
200
200
|
}
|
|
201
|
+
|
|
202
|
+
/* 减少动效(系统设置或主题对所有人减少)时握把的显隐、变色和位移立刻落定。 */
|
|
203
|
+
@media (prefers-reduced-motion: reduce) {
|
|
204
|
+
.astryx-resize-handle-pill {
|
|
205
|
+
transition-duration: 0s;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
:where([data-astryx-reduced-motion]) .astryx-resize-handle-pill {
|
|
210
|
+
transition-duration: 0s;
|
|
211
|
+
}
|
|
201
212
|
}
|
package/styles/section.css
CHANGED
|
@@ -60,4 +60,19 @@
|
|
|
60
60
|
.astryx-section__inner[data-divider-end] {
|
|
61
61
|
border-inline-end: 1px solid var(--astryx-color-border, #ebebeb);
|
|
62
62
|
}
|
|
63
|
+
|
|
64
|
+
/*
|
|
65
|
+
* 有 minHeight 时,height: 100% 解析成内容高度,所以外层变成纵向弹性容器,上色的内层长到外层达到的高度。
|
|
66
|
+
* 只在这时这样做:作为弹性项目,内层会包住子元素的外边距和浮动。
|
|
67
|
+
*/
|
|
68
|
+
.astryx-section--fills-min-height {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.astryx-section--fills-min-height > .astryx-section__inner {
|
|
74
|
+
flex-grow: 1;
|
|
75
|
+
/* 外层被设了 height 而内容更高时,内容照常溢出上色的内层,不把它撑高。 */
|
|
76
|
+
min-height: 0;
|
|
77
|
+
}
|
|
63
78
|
}
|
package/styles/side-nav.css
CHANGED
|
@@ -520,4 +520,12 @@
|
|
|
520
520
|
transition-delay: 0s;
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
+
|
|
524
|
+
/* 主题对所有人减少动效时同样直接落位。 */
|
|
525
|
+
:where([data-astryx-reduced-motion]) .astryx-side-nav-item__children,
|
|
526
|
+
:where([data-astryx-reduced-motion]) .astryx-side-nav-item__chevron,
|
|
527
|
+
:where([data-astryx-reduced-motion]) .astryx-side-nav-collapse__chevron {
|
|
528
|
+
transition-duration: 0.01ms;
|
|
529
|
+
transition-delay: 0s;
|
|
530
|
+
}
|
|
523
531
|
}
|
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,
|
|
@@ -43,9 +43,9 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
|
|
|
43
43
|
onRemove?: ((event: Event) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
size: TokenSize;
|
|
46
|
-
labelHidden: boolean;
|
|
47
|
-
disabled: boolean;
|
|
48
46
|
color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
labelHidden: boolean;
|
|
49
49
|
removable: boolean;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
51
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|