@astryx-vue/core 0.12.1 → 0.13.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-igjA8kZr.js → AlertDialog-CsdgJDLK.js} +6 -6
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-DUHcLJWD.js → AppShell-CE5Up5SI.js} +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-KmdgVaAb.js → Avatar-D5CFSkAG.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-KBzD0jeF.js → AvatarGroup-CKHxYNVh.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-Bf_nMW3-.js → Banner-B4IEG4Fx.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-B57XUJV3.js → BottomSheet-D67lQ3Lo.js} +12 -6
- package/dist/{BottomSheet-BMqjymuf.js → BottomSheet-UctSPL-g.js} +3 -3
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-aTPAdLdg.js → Breadcrumbs-By21sIml.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-sUkQ0Ufo.js → Button-CfbR2oPc.js} +6 -6
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-CWra-KDj.js → ButtonGroup-BFl-0uOp.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-DmXceU9h.js → Carousel-mL_KdBMw.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-CeibAkxn.js → Chat-C10BQlIl.js} +40 -7
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-PvzPV1N1.js → CheckboxInput-BGqRMoEA.js} +2 -2
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DKtNzb0t.js → CheckboxList-DbMhC06M.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-CvxSKkXh.js → ClickableCard-5k35MGot.js} +2 -2
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CTPuBH_r.js → CodeBlock-DAlWY51H.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-C_tl5-L0.js → Collapsible-C09C59LH.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-DIoT_vZh.js → CommandPalette-DYk_FyFB.js} +3 -3
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-B_5mzJjR.js → ComplexSelector-NDpRucQB.js} +165 -49
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DYnyk5rs.js → ContextMenu-JDU4HDKm.js} +6 -6
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DgPIsWPu.js → DateInput-DVEb1-fM.js} +4 -4
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-oOfhUt1Q.js → DateRangeInput-OuAz80nR.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DZfghF2h.js → DateTimeInput-J5CFTSSa.js} +5 -5
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-Dkwt3mVt.js → Dialog-C0WuGDqP.js} +48 -22
- package/dist/{Dialog-qIL4DUot.js → Dialog-Cm8CXGpI.js} +1 -1
- package/dist/{DialogHeader-w4TCzYEj.js → DialogHeader-BD2Ezw4F.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-DBHSNUAa.js → Drawer-CFpcRHt7.js} +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-DHvAlqSj.js → DropdownMenu-2QRvY0aP.js} +10 -10
- package/dist/{DropdownMenu-Cncx4FbU.js → DropdownMenu-5Mn01A-5.js} +5 -5
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-uWyPaIR1.js → EmptyState-CqUTEnGg.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-CqDOsI3P.js → Field-Cw8J8ld7.js} +1 -1
- package/dist/{FieldInfoTip-CUh2koNc.js → FieldInfoTip-D7UNDNje.js} +1 -1
- package/dist/{FieldLabel-BMHNRAG3.js → FieldLabel-CJbiefUx.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-C6dK2pvX.js → FileInput-CgfiwVfs.js} +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-C0axugQa.js → Heading-BO9n2vLl.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-C6Gxekg0.js → HoverCard-47J_i9AH.js} +28 -64
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-Bv2eIsJy.js → IconButton-DiDHiGbo.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BKsbmGA6.js → InfoTip-ClRC1Hh9.js} +2 -2
- package/dist/{InputClearButton-CSS2Tjat.js → InputClearButton-DL4RM5z1.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-DTGh1ylC.js → InputGroup-JMOrdsmu.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-CyDjQn5Z.js → InternationalizationProvider-BYU2MRtX.js} +1 -1
- package/dist/{Item-Cfv4ALls.js → Item-CoNXshDg.js} +2 -2
- package/dist/{LayerContentBoundary-DwTkbifx.js → LayerContentBoundary-CeebKoPB.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-BZ-zBvly.js → Lightbox-kKjxYZ05.js} +3 -3
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Ddu0KjPZ.js → Link-CkbAlJ3-.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-2evjQQ7n.js → ListItem-D-pqxQpq.js} +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-D7bQGV9u.js → Markdown-DXRFVNJd.js} +3 -3
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Dfshmrdy.js → MobileNavToggle-DUtvvHc7.js} +3 -3
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-Bie4B7Jr.js → MoreMenu-CEJ9E2eD.js} +6 -6
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BdedjB6u.js → MultiSelector-DgWCWpnM.js} +111 -56
- package/dist/{NavDisclosure-1otbO71l.js → NavDisclosure-Bf5OFtwv.js} +1 -1
- package/dist/{NavHeadingSurface-BkMR3V5m.js → NavHeadingSurface-D5MpO-gO.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-BZLN0U5a.js → NavItem-hmUfwhiK.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-dyGZS1yM.js → NavMenu-BcmUfk7z.js} +2 -2
- package/dist/{NavMenuItem-CirgE73a.js → NavMenuItem-C9xk9KZk.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-0KbcEF3_.js → NumberInput-DNcE_HLD.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-BXu7HCHp.js → Outline--OQ2pCFL.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-BdcaX1bz.js → OverflowList-CeQT7MBd.js} +2 -2
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-uttop2ls.js → Pagination-DJGQe6wH.js} +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-BOQo9UPf.js → Popover-C68nCirC.js} +8 -7
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DDuYfvNh.js → PowerSearch-C6lkutch.js} +18 -18
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-BS3VSoE9.js → ProgressBar-MaDhabCm.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-DKaSstyl.js → RadioGroup-CLQLK_V7.js} +3 -3
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DtKm9spP.js → RadioList-DfHTyqIQ.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-BgIytCxo.js → ScrollableArea-C2GBp55Z.js} +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-Bs74LlvS.js → SegmentedControl-COVOdCq2.js} +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-BFCwgtWf.js → SelectableCard-CTRsWXfA.js} +2 -2
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-OpczmkqS.js → Selector-CPCoJ7Sb.js} +13 -47
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-L6CWk5fV.js → SideNav-CV8MKVL-.js} +6 -6
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DZS8mGZA.js → Slider-CHJ1CESd.js} +3 -3
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-DaQGq8YN.js → StatusDot-CGaRrl39.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DAQRW4n8.js → Stepper-CYZrGpQ9.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-BN_NnBuc.js → Switch-Bx9ezhrN.js} +2 -2
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Bmj4tGT-.js → TabList-o4t9vWvl.js} +2 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-_pSoEiGP.js → Table-CO2cYE8r.js} +13 -13
- package/dist/Text/index.js +1 -1
- package/dist/{Text-IijvZmW-.js → Text-C6SB2hHJ.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BDR179q1.js → TextArea-DVaDS_1K.js} +5 -5
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-kUzxl99M.js → TextInput-Dylfzj33.js} +5 -5
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-Disi5yDb.js → Thumbnail-BTQAYnWi.js} +3 -3
- package/dist/{TimeField-C0la1AtP.js → TimeField-B3JGgLuf.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-C_jTijHh.js → TimeInput-Dmy6PxaD.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DifGERP8.js → Timer-CN5BmaFS.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-BjXZGAvO.js → Timestamp-B7UcCEo2.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-DBo0WRAd.js → Toast-DCipbbCW.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-B5HNykOh.js → ToggleButton-C78lrcdr.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-CtG_XE6z.js → Token-uhs8Q9Rr.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-BNazaZsP.js → Tokenizer-D7B1ff3O.js} +111 -52
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-4APVAlN9.js → Tooltip-kQPfj3SE.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-XSZWAR-7.js → TopNav-AGY785QI.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CRMLcaRx.js → TreeList-Dc3A72iY.js} +2 -2
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BgQVQw-0.js → Typeahead-QWYeVsel.js} +49 -14
- package/dist/composables/index.d.ts +2 -1
- package/dist/composables/index.js +15 -15
- package/dist/{composables-WUkSRUCj.js → composables-CyKB3F8u.js} +53 -5
- package/dist/{focus-l8jVTcqd.js → focus-x7mxEqjR.js} +1 -1
- package/dist/{index-a1jCiQP7.d.ts → index-9YGUb_Ht.d.ts} +4 -4
- package/dist/{index-Q1oG9yIT.d.ts → index-B-3EGjfQ.d.ts} +2 -2
- package/dist/{index-TXcNH86P.d.ts → index-B1eCxBCY.d.ts} +1 -1
- package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
- package/dist/{index-wY6dKz6c.d.ts → index-BEZ4ezJk.d.ts} +2 -2
- package/dist/{index-DFLPv9io.d.ts → index-BOCb89V9.d.ts} +2 -2
- package/dist/{index-CGDmjlec.d.ts → index-BWaO4-T-.d.ts} +56 -56
- package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
- package/dist/{index-CuW4AQ7M.d.ts → index-BhxqUt3y.d.ts} +2 -2
- package/dist/{index-wTwhcFQx.d.ts → index-Bl_K_cRv.d.ts} +1 -1
- package/dist/{index-Bmqz1lVz.d.ts → index-BpprL2SN.d.ts} +1 -1
- package/dist/{index-CM2L3SUw.d.ts → index-BzViSe8D.d.ts} +19 -4
- package/dist/{index-C1zwvxPH.d.ts → index-CL8JvxHW.d.ts} +2 -2
- package/dist/{index-CKtrcglY.d.ts → index-CREW8ZiL.d.ts} +6 -6
- package/dist/{index-D-YoRrfP.d.ts → index-CVs4A2QU.d.ts} +47 -58
- package/dist/{index-9tZJgo0R.d.ts → index-CfoExOY_.d.ts} +2 -2
- package/dist/{index-Cb-HJUhK.d.ts → index-Cun6cXGP.d.ts} +1 -1
- package/dist/{index-DydQ5Ngj.d.ts → index-D7YRtteD.d.ts} +1 -1
- package/dist/{index-BmYnVNI-.d.ts → index-DE1genab.d.ts} +14 -2
- package/dist/{index-B44fLswd.d.ts → index-DPhQZXYw.d.ts} +1 -1
- package/dist/{index-lmd9LZKB.d.ts → index-DS9SzqqJ.d.ts} +2 -2
- package/dist/{index-mkbGYz8f.d.ts → index-Dc9_kBrU.d.ts} +9 -2
- package/dist/{index-_5purQow.d.ts → index-Dep8pgnU.d.ts} +8 -6
- package/dist/{index-DhcjuwQq.d.ts → index-Dlq0cFK-.d.ts} +2 -2
- package/dist/{index-CBOv5j3c.d.ts → index-FeZXsFO-.d.ts} +3 -3
- package/dist/{index-COgrQZIL.d.ts → index-YKCx03zD.d.ts} +2 -2
- package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
- package/dist/{index-Cy1rEWC-.d.ts → index-bgjrSSaT.d.ts} +2 -2
- package/dist/{index-B3FE7s7V.d.ts → index-s0Ezq3U-.d.ts} +4 -4
- package/dist/{index-CLHJybQY.d.ts → index-ul1hNxih.d.ts} +1 -1
- package/dist/index.d.ts +32 -31
- package/dist/index.js +109 -109
- package/dist/interactionModality-BPvyShJT.js +125 -0
- package/dist/layerDepth-BU_55vPr.js +294 -0
- package/dist/{layerFocusReturn-DMJaFgcY.js → layerFocusReturn-DWGkSHXj.js} +2 -2
- package/dist/{loadCatalog-XbgoqaRp.js → loadCatalog-BtQRPyzj.js} +6 -2
- package/dist/{loadCatalog-CQEYXGuI.d.ts → loadCatalog-Kp7aQZpL.d.ts} +3 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -4
- package/dist/{locale-BwnZeppK.js → locale-DET_YkFW.js} +1 -1
- package/dist/{modalOutlet-CUOcrhIu.js → modalOutlet-Drr9a16b.js} +25 -1
- package/dist/{pressFeedback-Bwwpex9q.js → pressFeedback-Co3ugCsm.js} +3 -190
- package/dist/pressGesture-B3z3W3Za.js +78 -0
- package/dist/{scrollKeyboardDelegation-D7cumnOl.js → scrollKeyboardDelegation-BSpUCTlO.js} +1 -1
- package/dist/selectorEscape-LkWoVYQN.js +52 -0
- package/dist/{useAnchoredListbox-CuRfVgKl.js → stillPointerGate-BZ7KMJOB.js} +20 -2
- package/dist/{tokenizer-DSka5PJD.js → tokenizer-ChiAuPN-.js} +5 -1
- package/dist/tooltipTriggerRules-9zkDe8_b.js +10 -0
- package/dist/{searchResultMessage-BEqDlHdV.js → triggerVariant-BDVvyLtv.js} +18 -18
- package/dist/{useActionGroupTracking-BJMRaXil.js → useActionGroupTracking-CDclbV3Y.js} +2 -2
- package/dist/useClickableContainer-Dtjg-nkm.js +141 -0
- package/dist/{useCombobox-CTo5C-gc.js → useCombobox-D374_pT8.js} +32 -8
- package/dist/{useDismiss-BWd-sQ18.js → useDismiss-74dLMi5S.js} +58 -5
- package/dist/{useFocusTrap-FJt5QhEd.js → useFocusTrap-CyooA0OC.js} +32 -17
- package/dist/{useHoverLayerDismiss-uhfzmZyf.js → useHoverLayerDismiss-B1W5qIBx.js} +1 -1
- package/dist/{useInputContainer-BpLtCA-U.js → useInputContainer-CLhsKYZ6.js} +1 -1
- package/dist/useInputStatusIcon-B6m_t8cK.d.ts +45 -0
- package/dist/{useInputStatusIcon-C3Q-q_wI.js → useInputStatusIcon-ZqCxDNTj.js} +1 -1
- package/dist/{useLayer-BGv_wRSG.js → useLayer-BnjrJ85F.js} +13 -5
- package/dist/{useMenuDrillIn-uQtOSny6.js → useMenuDrillIn-BW9dNBje.js} +1 -1
- package/dist/{useMenuPress-BLPwY_m1.js → useMenuPress-BWq7kwWm.js} +1 -29
- package/dist/{useOptionActionGrid-CkJcuvaU.js → useOptionActionGrid-C7ibYM_A.js} +15 -1
- package/dist/{usePressFeedback-Bcjsw9vv.js → usePressFeedback-Cxu4-mCe.js} +1 -1
- package/dist/{useResizable-DTDhsLip.js → useResizable-De4Xp3TD.js} +1 -1
- package/dist/{useRestoreFocus-D2-pGoOk.js → useRestoreFocus-CSrI8x7v.js} +2 -2
- package/dist/{useScrollableArea-BE8b3qm7.js → useScrollableArea-Bwn75HDg.js} +1 -1
- package/dist/{useTooltip-md1tr6ef.js → useTooltip-uc-VLZ8I.js} +25 -27
- package/dist/{useTouchHitArea-1WtV3u6F.js → useTouchHitArea-B3jx01C3.js} +1 -1
- package/dist/useTouchTriggerInternal-b-txblws.js +257 -0
- package/dist/{useTruncationTooltip-BGsFITq5.js → useTruncationTooltip-BVMCoNno.js} +4 -4
- package/dist/{useTypeahead-BrUwR-kv.js → useTypeahead-BWj3xhbR.js} +1 -1
- package/dist/{TypeaheadMenu-BOzaCvSb.js → useTypeaheadAnnouncement-DVkdWTWy.js} +75 -33
- package/package.json +1 -1
- package/styles/complex-selector.css +24 -1
- package/styles/multi-selector.css +10 -0
- package/styles/selector.css +10 -0
- package/styles/tokenizer.css +64 -0
- package/styles/typeahead.css +28 -0
- package/dist/interactionModality-ACpTMhak.js +0 -44
- package/dist/layerDepth-BF74Cctw.js +0 -205
- package/dist/layerSurfacePress-C3PjPpJP.js +0 -29
- package/dist/tooltipTriggerRules-BY3LAtUl.js +0 -53
- package/dist/triggerVariant-BsL8jMHs.js +0 -16
- package/dist/useTouchTrigger-GGd85Obb.js +0 -146
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { t as INTERACTIVE_SELECTORS } from "./useClickableContainer-Dtjg-nkm.js";
|
|
2
|
+
import { s as currentGesture } from "./layerDepth-BU_55vPr.js";
|
|
3
|
+
import { a as isDisabledControl, i as trackInteractionModality, o as isTextEntryControl, r as isTextEntrySincePointer } from "./interactionModality-BPvyShJT.js";
|
|
4
|
+
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
5
|
+
//#region src/composables/internal/tapRecognizer.ts
|
|
6
|
+
/** 「按下去」算作点击的指针类型。笔只在落笔时算:悬停的笔和鼠标一样是悬停。 */
|
|
7
|
+
const TOUCH_POINTER_TYPES = /* @__PURE__ */ new Set(["touch", "pen"]);
|
|
8
|
+
/**
|
|
9
|
+
* 轻点识别:一次手指按压只有在浏览器认定它是轻点(派发 click)时才算数。
|
|
10
|
+
*
|
|
11
|
+
* 手指落下时还不知道它会是轻点、滚动还是长按,只有浏览器在手指挪动或抬起后知道。
|
|
12
|
+
* 它的 click 就是结论(iOS 上来自 UIKit 自己的轻点识别),所以按下只做记录,
|
|
13
|
+
* 等到同一次按压的 click 再开关浮层。从触发器上开始的一次滚动就不会打开提示。
|
|
14
|
+
*
|
|
15
|
+
* click 必须属于这次按压:键盘按键或新的按下都会推进手势编号,
|
|
16
|
+
* 之后键盘激活触发器(按钮上按回车)合成的 click 不会被当成这次的轻点。
|
|
17
|
+
*/
|
|
18
|
+
function createTapRecognizer() {
|
|
19
|
+
let forgetPending = null;
|
|
20
|
+
function forget() {
|
|
21
|
+
forgetPending?.();
|
|
22
|
+
}
|
|
23
|
+
function press(trigger, onTap) {
|
|
24
|
+
forget();
|
|
25
|
+
if (trigger == null) return;
|
|
26
|
+
const target = trigger;
|
|
27
|
+
const gesture = currentGesture();
|
|
28
|
+
function handleTap(tapEvent) {
|
|
29
|
+
stop();
|
|
30
|
+
if (currentGesture() === gesture) onTap(tapEvent);
|
|
31
|
+
}
|
|
32
|
+
function stop() {
|
|
33
|
+
target.removeEventListener("click", handleTap, true);
|
|
34
|
+
target.removeEventListener("pointercancel", stop);
|
|
35
|
+
if (forgetPending === stop) forgetPending = null;
|
|
36
|
+
}
|
|
37
|
+
target.addEventListener("click", handleTap, true);
|
|
38
|
+
target.addEventListener("pointercancel", stop);
|
|
39
|
+
forgetPending = stop;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
press,
|
|
43
|
+
forget
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/composables/internal/touchTriggerRules.ts
|
|
48
|
+
/**
|
|
49
|
+
* @file touchTriggerRules.ts
|
|
50
|
+
* @output isActionTrigger、tapLandsOnDisabledControl:一次轻点该交给触发器自己,还是打开浮层
|
|
51
|
+
* @position useTouchTrigger 和 Tooltip 共用的触屏判断规则
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* 表示「激活它会做事」的 ARIA role。显式 role 优先于标签名:
|
|
55
|
+
* `<button role="presentation">` 只是布景,`<span role="button">` 才是真控件。
|
|
56
|
+
*/
|
|
57
|
+
const ACTION_ROLES = /* @__PURE__ */ new Set([
|
|
58
|
+
"button",
|
|
59
|
+
"checkbox",
|
|
60
|
+
"combobox",
|
|
61
|
+
"link",
|
|
62
|
+
"menuitem",
|
|
63
|
+
"menuitemcheckbox",
|
|
64
|
+
"menuitemradio",
|
|
65
|
+
"option",
|
|
66
|
+
"radio",
|
|
67
|
+
"searchbox",
|
|
68
|
+
"slider",
|
|
69
|
+
"spinbutton",
|
|
70
|
+
"switch",
|
|
71
|
+
"tab",
|
|
72
|
+
"textbox"
|
|
73
|
+
]);
|
|
74
|
+
/**
|
|
75
|
+
* 激活这个元素是不是「做了别的事」,而不是「显示浮层」。
|
|
76
|
+
*
|
|
77
|
+
* 比「可聚焦」窄是有意的:纯文字 Tooltip 的触发器带 `tabindex=0`,
|
|
78
|
+
* 键盘用户要能聚焦它读提示,但它本身没有动作。
|
|
79
|
+
*
|
|
80
|
+
* 禁用的控件(`aria-disabled`)不做事:轻点它可以打开解释「为什么禁用」的浮层。
|
|
81
|
+
* 标签靠操作它的控件做事,所以禁用控件的标签也不算动作。
|
|
82
|
+
*
|
|
83
|
+
* 返回 true 只决定「浮层不开」,那一下点击本身不会被吞掉:这里不调
|
|
84
|
+
* `preventDefault`,也不调 `stopPropagation`。
|
|
85
|
+
*/
|
|
86
|
+
function isActionTrigger(element) {
|
|
87
|
+
if (isDisabledControl(element)) return false;
|
|
88
|
+
const role = element.getAttribute("role");
|
|
89
|
+
if (role != null && role !== "") return ACTION_ROLES.has(role);
|
|
90
|
+
switch (element.tagName) {
|
|
91
|
+
case "LABEL": {
|
|
92
|
+
const control = element.control;
|
|
93
|
+
return control == null || !isDisabledControl(control);
|
|
94
|
+
}
|
|
95
|
+
case "BUTTON":
|
|
96
|
+
case "INPUT":
|
|
97
|
+
case "SELECT":
|
|
98
|
+
case "SUMMARY":
|
|
99
|
+
case "TEXTAREA": return true;
|
|
100
|
+
case "A":
|
|
101
|
+
case "AREA": return element.hasAttribute("href");
|
|
102
|
+
default: return isEditable(element);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
/** 这个元素自己接下轻点,像禁用控件那样:禁用的控件,或禁用控件的标签。 */
|
|
106
|
+
function isDisabledTarget(element) {
|
|
107
|
+
if (isDisabledControl(element)) return true;
|
|
108
|
+
if (element.tagName === "LABEL") {
|
|
109
|
+
const control = element.control;
|
|
110
|
+
return control != null && isDisabledControl(control);
|
|
111
|
+
}
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
function isTapTarget(element) {
|
|
115
|
+
return element.matches(INTERACTIVE_SELECTORS) || element.tagName === "LABEL" || isDisabledControl(element);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* 轻点是不是落在一个禁用控件上:从被点的元素往外走,最近的可交互元素是禁用控件
|
|
119
|
+
* (或禁用控件的标签)。这一下归它:浮层打开讲出禁用原因,什么都不会被激活。
|
|
120
|
+
* 其它轻点交给触发器自己决定(`isActionTrigger`)。
|
|
121
|
+
*/
|
|
122
|
+
function tapLandsOnDisabledControl(tapped) {
|
|
123
|
+
const body = tapped.ownerDocument.body;
|
|
124
|
+
for (let node = tapped; node != null && node !== body; node = node.parentElement) if (isTapTarget(node)) return isDisabledTarget(node);
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
function isEditable(element) {
|
|
128
|
+
if (element.isContentEditable === true) return true;
|
|
129
|
+
const attribute = element.getAttribute("contenteditable");
|
|
130
|
+
return attribute != null && attribute !== "false";
|
|
131
|
+
}
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/composables/internal/useTouchTriggerInternal.ts
|
|
134
|
+
/** `useTouchTrigger` 加上组件内部用的 `answerTap`。 */
|
|
135
|
+
function useTouchTriggerInternal(options, internal = {}) {
|
|
136
|
+
trackInteractionModality();
|
|
137
|
+
watch(options.triggerRef, (trigger) => {
|
|
138
|
+
if (trigger != null) trackInteractionModality(trigger.ownerDocument);
|
|
139
|
+
}, {
|
|
140
|
+
immediate: true,
|
|
141
|
+
flush: "sync"
|
|
142
|
+
});
|
|
143
|
+
const isTouchPointer = ref(false);
|
|
144
|
+
let isOpenNow = toValue(options.isOpen);
|
|
145
|
+
/**
|
|
146
|
+
* 这一层是不是被「点一下」打开的。只有点开的浮层才欠用户一次「点外面关闭」:
|
|
147
|
+
* 悬停打开的自己会随指针离开关掉,受控打开的不是我们该关的。
|
|
148
|
+
*/
|
|
149
|
+
let isTapOpen = false;
|
|
150
|
+
let outsideListener = null;
|
|
151
|
+
/** 点外面关闭监听所在的 document:页面的,和触发器在 iframe 里时它自己的。 */
|
|
152
|
+
let outsideDocs = [];
|
|
153
|
+
const tapRecognizer = createTapRecognizer();
|
|
154
|
+
watch(() => toValue(options.isOpen), (open) => {
|
|
155
|
+
if (isOpenNow && !open) disarmOutsideDismiss();
|
|
156
|
+
isOpenNow = open;
|
|
157
|
+
}, { flush: "sync" });
|
|
158
|
+
function disarmOutsideDismiss() {
|
|
159
|
+
isTapOpen = false;
|
|
160
|
+
if (outsideListener == null) return;
|
|
161
|
+
for (const doc of outsideDocs) {
|
|
162
|
+
doc.removeEventListener("pointerup", outsideListener, true);
|
|
163
|
+
doc.removeEventListener("pointercancel", outsideListener, true);
|
|
164
|
+
}
|
|
165
|
+
outsideListener = null;
|
|
166
|
+
outsideDocs = [];
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* 装「点外面关闭」。用捕获阶段,触发器自己 stopPropagation 也拦不住,
|
|
170
|
+
* 免得留一个关不掉的浮层。它由打开那次轻点的 click 装上,那次轻点的 pointerup
|
|
171
|
+
* 已经过去了,所以看不到打开它的那一下。外面的轻点在抬起(`pointerup`)时算;
|
|
172
|
+
* 外面开始的滚动或缩放在浏览器接走它(`pointercancel`)时就算。
|
|
173
|
+
*/
|
|
174
|
+
function armOutsideDismiss() {
|
|
175
|
+
isTapOpen = true;
|
|
176
|
+
if (outsideListener != null || typeof document === "undefined") return;
|
|
177
|
+
const own = options.triggerRef.value?.ownerDocument ?? document;
|
|
178
|
+
const docs = own === document ? [document] : [document, own];
|
|
179
|
+
outsideListener = (event) => {
|
|
180
|
+
const target = event.target;
|
|
181
|
+
if (target != null) {
|
|
182
|
+
if (event.type === "pointerup" && options.triggerRef.value?.contains(target) === true) return;
|
|
183
|
+
const layerId = toValue(options.layerId);
|
|
184
|
+
if (docs.some((doc) => doc.getElementById(layerId)?.contains(target) === true)) return;
|
|
185
|
+
}
|
|
186
|
+
if (internal.isOutsidePressIgnored?.() === true) return;
|
|
187
|
+
disarmOutsideDismiss();
|
|
188
|
+
options.hide();
|
|
189
|
+
};
|
|
190
|
+
outsideDocs = docs;
|
|
191
|
+
for (const doc of docs) {
|
|
192
|
+
doc.addEventListener("pointerup", outsideListener, true);
|
|
193
|
+
doc.addEventListener("pointercancel", outsideListener, true);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
onScopeDispose(() => {
|
|
197
|
+
tapRecognizer.forget();
|
|
198
|
+
disarmOutsideDismiss();
|
|
199
|
+
});
|
|
200
|
+
function isEnabledNow() {
|
|
201
|
+
return toValue(options.isEnabled) ?? true;
|
|
202
|
+
}
|
|
203
|
+
function isControlledNow() {
|
|
204
|
+
return toValue(options.isControlled) === true;
|
|
205
|
+
}
|
|
206
|
+
function isTouchInteraction() {
|
|
207
|
+
return isTouchPointer.value && isTextEntrySincePointer(options.triggerRef.value?.ownerDocument);
|
|
208
|
+
}
|
|
209
|
+
function handlePointerEnter(event) {
|
|
210
|
+
isTouchPointer.value = event.pointerType === "touch";
|
|
211
|
+
}
|
|
212
|
+
/** 轻点落在触发器里一个可输入的控件上(触发器本身不是它,它也没禁用)。 */
|
|
213
|
+
function isTextEntryTap(tapped, trigger) {
|
|
214
|
+
if (!internal.isTextEntryTapIgnored || tapped == null || trigger == null) return false;
|
|
215
|
+
for (let node = tapped; node != null && node !== trigger; node = node.parentElement) if (isTextEntryControl(node)) return trigger.contains(node) && !tapLandsOnDisabledControl(tapped);
|
|
216
|
+
return false;
|
|
217
|
+
}
|
|
218
|
+
function answerTap(tapEvent) {
|
|
219
|
+
const trigger = options.triggerRef.value;
|
|
220
|
+
const tapped = tapEvent?.target instanceof Element ? tapEvent.target : null;
|
|
221
|
+
if (isTextEntryTap(tapped, trigger)) return;
|
|
222
|
+
const touchTrigger = toValue(options.touchTrigger);
|
|
223
|
+
if ((touchTrigger !== "auto" ? touchTrigger : tapped != null && tapLandsOnDisabledControl(tapped) ? "tap" : trigger != null && isActionTrigger(trigger) ? "none" : "tap") === "none" || !isEnabledNow()) {
|
|
224
|
+
disarmOutsideDismiss();
|
|
225
|
+
options.hide();
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
if (isOpenNow || isTapOpen) {
|
|
229
|
+
disarmOutsideDismiss();
|
|
230
|
+
options.hide();
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
armOutsideDismiss();
|
|
234
|
+
options.show();
|
|
235
|
+
}
|
|
236
|
+
function handlePointerDown(event) {
|
|
237
|
+
const isTouch = TOUCH_POINTER_TYPES.has(event.pointerType);
|
|
238
|
+
isTouchPointer.value = isTouch;
|
|
239
|
+
if (!isTouch || isControlledNow()) {
|
|
240
|
+
tapRecognizer.forget();
|
|
241
|
+
return false;
|
|
242
|
+
}
|
|
243
|
+
const trigger = event.currentTarget instanceof Element ? event.currentTarget : options.triggerRef.value;
|
|
244
|
+
tapRecognizer.press(trigger, answerTap);
|
|
245
|
+
return true;
|
|
246
|
+
}
|
|
247
|
+
return {
|
|
248
|
+
isTouchPointer,
|
|
249
|
+
isTouchInteraction,
|
|
250
|
+
handlePointerEnter,
|
|
251
|
+
handlePointerDown,
|
|
252
|
+
clearTapOpen: disarmOutsideDismiss,
|
|
253
|
+
answerTap
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
//#endregion
|
|
257
|
+
export { isActionTrigger as n, TOUCH_POINTER_TYPES as r, useTouchTriggerInternal as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as tooltipPresentInterestKey } from "./useTooltip-
|
|
4
|
-
import { t as _sfc_main$1 } from "./Tooltip-
|
|
1
|
+
import { i as trackInteractionModality, t as getInteractionModality } from "./interactionModality-BPvyShJT.js";
|
|
2
|
+
import { t as matchesFocusVisible } from "./tooltipTriggerRules-9zkDe8_b.js";
|
|
3
|
+
import { n as tooltipPresentInterestKey } from "./useTooltip-uc-VLZ8I.js";
|
|
4
|
+
import { t as _sfc_main$1 } from "./Tooltip-kQPfj3SE.js";
|
|
5
5
|
import { n as useTruncation, t as truncatePlacement } from "./useTruncation-C4pdlaXa.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, defineComponent, openBlock, provide, shallowRef } from "vue";
|
|
7
7
|
//#region src/Text/TruncationTooltip.vue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as isImeKeyEvent } from "./layerDepth-BU_55vPr.js";
|
|
2
2
|
import { n as isShortcutChord, r as nextTypeaheadBuffer, t as findTypeaheadMatch } from "./typeaheadMatch-Cl-oxKFt.js";
|
|
3
3
|
import { onScopeDispose, ref } from "vue";
|
|
4
4
|
//#region src/composables/useTypeahead.ts
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { t as characterCount } from "./characters-wTnzjkkR.js";
|
|
2
|
+
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
2
3
|
import { n as useAsyncSource } from "./useAsyncSource-Gk0VtE7_.js";
|
|
3
|
-
import { t as useCombobox } from "./useCombobox-
|
|
4
|
+
import { t as useCombobox } from "./useCombobox-D374_pT8.js";
|
|
5
|
+
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
4
6
|
import { t as _sfc_main$2 } from "./Spinner-DEVPDsD0.js";
|
|
5
|
-
import {
|
|
7
|
+
import { t as createStillPointerGate } from "./stillPointerGate-BZ7KMJOB.js";
|
|
8
|
+
import { i as isOptionAction, n as searchResultMessage, r as OptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-C7ibYM_A.js";
|
|
6
9
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, watch, withModifiers } from "vue";
|
|
7
10
|
import "../styles/typeahead.css";
|
|
8
11
|
//#region src/Typeahead/queryLength.ts
|
|
@@ -46,6 +49,11 @@ function useTypeaheadMenu(options) {
|
|
|
46
49
|
if (source === previous || asyncSource.status.value !== "loading") return;
|
|
47
50
|
asyncSource.status.value = "idle";
|
|
48
51
|
}, { flush: "sync" });
|
|
52
|
+
const matchCount = computed(() => {
|
|
53
|
+
if (belowMinQueryLength.value) return 0;
|
|
54
|
+
const excluded = new Set(toValue(options.excludeIds) ?? []);
|
|
55
|
+
return asyncSource.items.value.filter((item) => !excluded.has(item.id)).length;
|
|
56
|
+
});
|
|
49
57
|
const entries = computed(() => {
|
|
50
58
|
const excluded = new Set(toValue(options.excludeIds) ?? []);
|
|
51
59
|
const blocked = new Set((toValue(options.blockedLabels) ?? []).map((label) => label.toLowerCase()));
|
|
@@ -203,6 +211,7 @@ function useTypeaheadMenu(options) {
|
|
|
203
211
|
error: asyncSource.error,
|
|
204
212
|
activeId,
|
|
205
213
|
belowMinQueryLength,
|
|
214
|
+
matchCount,
|
|
206
215
|
setQuery,
|
|
207
216
|
open,
|
|
208
217
|
close,
|
|
@@ -268,6 +277,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
268
277
|
},
|
|
269
278
|
setup(__props) {
|
|
270
279
|
const props = __props;
|
|
280
|
+
if (isDevBuild() && props.item == null) throw devPropError("TypeaheadItem", "item", "is required: the item to show, for example :item=\"{ id: 'nyc', label: 'New York' }\".");
|
|
271
281
|
return (_ctx, _cache) => {
|
|
272
282
|
return openBlock(), createElementBlock("span", {
|
|
273
283
|
class: "astryx-typeahead-item",
|
|
@@ -279,32 +289,28 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
279
289
|
//#endregion
|
|
280
290
|
//#region src/Typeahead/TypeaheadMenu.vue
|
|
281
291
|
const _hoisted_1 = {
|
|
282
|
-
class: "astryx-typeahead-menu",
|
|
283
|
-
role: "presentation"
|
|
284
|
-
};
|
|
285
|
-
const _hoisted_2 = {
|
|
286
292
|
key: 0,
|
|
287
293
|
class: "astryx-typeahead-state",
|
|
288
294
|
role: "status"
|
|
289
295
|
};
|
|
290
|
-
const
|
|
296
|
+
const _hoisted_2 = {
|
|
291
297
|
key: 1,
|
|
292
298
|
class: "astryx-typeahead-state",
|
|
293
299
|
role: "alert"
|
|
294
300
|
};
|
|
295
|
-
const
|
|
296
|
-
const
|
|
301
|
+
const _hoisted_3 = ["role", "aria-selected"];
|
|
302
|
+
const _hoisted_4 = {
|
|
297
303
|
key: 3,
|
|
298
304
|
class: "astryx-typeahead-options",
|
|
299
305
|
role: "presentation"
|
|
300
306
|
};
|
|
301
|
-
const
|
|
302
|
-
const
|
|
307
|
+
const _hoisted_5 = ["role", "aria-label"];
|
|
308
|
+
const _hoisted_6 = {
|
|
303
309
|
key: 0,
|
|
304
310
|
class: "astryx-typeahead-group-heading",
|
|
305
311
|
"aria-hidden": "true"
|
|
306
312
|
};
|
|
307
|
-
const
|
|
313
|
+
const _hoisted_7 = [
|
|
308
314
|
"id",
|
|
309
315
|
"role",
|
|
310
316
|
"aria-selected",
|
|
@@ -313,9 +319,9 @@ const _hoisted_8 = [
|
|
|
313
319
|
"onMouseenter",
|
|
314
320
|
"onClick"
|
|
315
321
|
];
|
|
316
|
-
const
|
|
317
|
-
const
|
|
318
|
-
const
|
|
322
|
+
const _hoisted_8 = ["id", "onClick"];
|
|
323
|
+
const _hoisted_9 = { class: "astryx-typeahead-option-copy" };
|
|
324
|
+
const _hoisted_10 = {
|
|
319
325
|
key: 0,
|
|
320
326
|
class: "astryx-typeahead-check",
|
|
321
327
|
width: "16",
|
|
@@ -324,12 +330,12 @@ const _hoisted_11 = {
|
|
|
324
330
|
fill: "none",
|
|
325
331
|
"aria-hidden": "true"
|
|
326
332
|
};
|
|
327
|
-
const
|
|
328
|
-
const
|
|
333
|
+
const _hoisted_11 = ["id"];
|
|
334
|
+
const _hoisted_12 = {
|
|
329
335
|
key: 2,
|
|
330
336
|
class: "astryx-typeahead-option-copy"
|
|
331
337
|
};
|
|
332
|
-
const
|
|
338
|
+
const _hoisted_13 = {
|
|
333
339
|
key: 3,
|
|
334
340
|
class: "astryx-typeahead-check",
|
|
335
341
|
width: "16",
|
|
@@ -385,27 +391,36 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
385
391
|
function actionId(index) {
|
|
386
392
|
return `${props.listboxId}-action-${index}`;
|
|
387
393
|
}
|
|
394
|
+
const pointerGate = createStillPointerGate();
|
|
395
|
+
/** 只有鼠标真的移动了才让行拿走高亮;键盘滚动让行从静止的鼠标下冒出来不算。 */
|
|
396
|
+
function onRowEnter(event, index) {
|
|
397
|
+
if (pointerGate.moved(event)) emit("highlight", index);
|
|
398
|
+
}
|
|
388
399
|
function onOptionClick(id, disabled) {
|
|
389
400
|
if (!disabled) emit("select", id);
|
|
390
401
|
}
|
|
391
402
|
return (_ctx, _cache) => {
|
|
392
|
-
return openBlock(), createElementBlock("div",
|
|
403
|
+
return openBlock(), createElementBlock("div", {
|
|
404
|
+
class: "astryx-typeahead-menu",
|
|
405
|
+
role: "presentation",
|
|
406
|
+
onMousemove: _cache[3] || (_cache[3] = (...args) => unref(pointerGate).track && unref(pointerGate).track(...args))
|
|
407
|
+
}, [props.status === "loading" && props.entries.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_sfc_main$2, {
|
|
393
408
|
size: "sm",
|
|
394
409
|
label: props.loadingText
|
|
395
|
-
}, null, 8, ["label"])])) : props.status === "error" ? (openBlock(), createElementBlock("div",
|
|
410
|
+
}, null, 8, ["label"])])) : props.status === "error" ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(props.errorText), 1)) : props.entries.length === 0 ? (openBlock(), createElementBlock("div", {
|
|
396
411
|
key: 2,
|
|
397
412
|
class: "astryx-typeahead-state",
|
|
398
413
|
role: props.grid ? "presentation" : "option",
|
|
399
414
|
"aria-selected": props.grid ? void 0 : "false",
|
|
400
415
|
"aria-disabled": "true"
|
|
401
|
-
}, [renderSlot(_ctx.$slots, "empty", {}, () => [createTextVNode(toDisplayString(props.emptyText), 1)])], 8,
|
|
416
|
+
}, [renderSlot(_ctx.$slots, "empty", {}, () => [createTextVNode(toDisplayString(props.emptyText), 1)])], 8, _hoisted_3)) : (openBlock(), createElementBlock("div", _hoisted_4, [(openBlock(true), createElementBlock(Fragment, null, renderList(groups.value, (group, groupIndex) => {
|
|
402
417
|
return openBlock(), createElementBlock("div", {
|
|
403
418
|
key: group.heading ?? `__ungrouped-${groupIndex}`,
|
|
404
419
|
class: "astryx-typeahead-group",
|
|
405
420
|
role: props.grid ? group.heading ? "rowgroup" : "presentation" : group.heading ? "group" : "presentation",
|
|
406
421
|
"aria-label": group.heading
|
|
407
422
|
}, [
|
|
408
|
-
group.heading ? (openBlock(), createElementBlock("div",
|
|
423
|
+
group.heading ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(group.heading), 1)) : createCommentVNode("v-if", true),
|
|
409
424
|
createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events, vue-a11y/mouse-events-have-key-events, vue-a11y/no-static-element-interactions -- 选项不进 Tab 序,方向键和 Enter 由组合框输入处理。 "),
|
|
410
425
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group.rows, (row) => {
|
|
411
426
|
return openBlock(), createElementBlock("div", {
|
|
@@ -422,7 +437,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
422
437
|
"data-option-id": row.entry.id,
|
|
423
438
|
tabindex: "-1",
|
|
424
439
|
onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {}, ["prevent"])),
|
|
425
|
-
onMouseenter: ($event) =>
|
|
440
|
+
onMouseenter: ($event) => onRowEnter($event, row.index),
|
|
426
441
|
onClick: ($event) => props.grid ? void 0 : onOptionClick(row.entry.id, row.entry.disabled)
|
|
427
442
|
}, [
|
|
428
443
|
createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events -- 选项格不进 Tab 序,方向键和 Enter 由组合框输入处理。 "),
|
|
@@ -433,7 +448,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
433
448
|
role: "gridcell",
|
|
434
449
|
tabindex: "-1",
|
|
435
450
|
onClick: ($event) => onOptionClick(row.entry.id, row.entry.disabled)
|
|
436
|
-
}, [createElementVNode("span",
|
|
451
|
+
}, [createElementVNode("span", _hoisted_9, [renderSlot(_ctx.$slots, "item", {
|
|
437
452
|
entry: row.entry,
|
|
438
453
|
isActive: row.index === props.activeIndex,
|
|
439
454
|
isSelected: Boolean(row.entry.selected)
|
|
@@ -445,13 +460,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
445
460
|
disabled: row.entry.disabled
|
|
446
461
|
},
|
|
447
462
|
"is-disabled": row.entry.disabled
|
|
448
|
-
}, null, 8, ["item", "is-disabled"])])]), row.entry.selected ? (openBlock(), createElementBlock("svg",
|
|
463
|
+
}, null, 8, ["item", "is-disabled"])])]), row.entry.selected ? (openBlock(), createElementBlock("svg", _hoisted_10, [..._cache[4] || (_cache[4] = [createElementVNode("path", {
|
|
449
464
|
d: "M3.5 8.5L6.5 11.5L12.5 4.5",
|
|
450
465
|
stroke: "currentColor",
|
|
451
466
|
"stroke-width": "1.5",
|
|
452
467
|
"stroke-linecap": "round",
|
|
453
468
|
"stroke-linejoin": "round"
|
|
454
|
-
}, null, -1)])])) : createCommentVNode("v-if", true)], 8,
|
|
469
|
+
}, null, -1)])])) : createCommentVNode("v-if", true)], 8, _hoisted_8)) : createCommentVNode("v-if", true),
|
|
455
470
|
props.grid ? (openBlock(), createElementBlock("div", {
|
|
456
471
|
key: 1,
|
|
457
472
|
id: unref(isOptionAction)(row.entry.action) ? void 0 : actionId(row.index),
|
|
@@ -463,8 +478,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
463
478
|
key: 0,
|
|
464
479
|
node: row.entry.action,
|
|
465
480
|
"dom-id": actionId(row.index)
|
|
466
|
-
}, null, 8, ["node", "dom-id"])) : createCommentVNode("v-if", true)], 42,
|
|
467
|
-
!props.grid ? (openBlock(), createElementBlock("span",
|
|
481
|
+
}, null, 8, ["node", "dom-id"])) : createCommentVNode("v-if", true)], 42, _hoisted_11)) : createCommentVNode("v-if", true),
|
|
482
|
+
!props.grid ? (openBlock(), createElementBlock("span", _hoisted_12, [renderSlot(_ctx.$slots, "item", {
|
|
468
483
|
entry: row.entry,
|
|
469
484
|
isActive: row.index === props.activeIndex,
|
|
470
485
|
isSelected: Boolean(row.entry.selected)
|
|
@@ -477,19 +492,46 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
477
492
|
},
|
|
478
493
|
"is-disabled": row.entry.disabled
|
|
479
494
|
}, null, 8, ["item", "is-disabled"])])])) : createCommentVNode("v-if", true),
|
|
480
|
-
!props.grid && row.entry.selected ? (openBlock(), createElementBlock("svg",
|
|
495
|
+
!props.grid && row.entry.selected ? (openBlock(), createElementBlock("svg", _hoisted_13, [..._cache[5] || (_cache[5] = [createElementVNode("path", {
|
|
481
496
|
d: "M3.5 8.5L6.5 11.5L12.5 4.5",
|
|
482
497
|
stroke: "currentColor",
|
|
483
498
|
"stroke-width": "1.5",
|
|
484
499
|
"stroke-linecap": "round",
|
|
485
500
|
"stroke-linejoin": "round"
|
|
486
501
|
}, null, -1)])])) : createCommentVNode("v-if", true)
|
|
487
|
-
], 42,
|
|
502
|
+
], 42, _hoisted_7);
|
|
488
503
|
}), 128))
|
|
489
|
-
], 8,
|
|
490
|
-
}), 128))]))]);
|
|
504
|
+
], 8, _hoisted_5);
|
|
505
|
+
}), 128))]))], 32);
|
|
491
506
|
};
|
|
492
507
|
}
|
|
493
508
|
});
|
|
494
509
|
//#endregion
|
|
495
|
-
|
|
510
|
+
//#region src/Typeahead/useTypeaheadAnnouncement.ts
|
|
511
|
+
/**
|
|
512
|
+
* 输入了文字、搜索落定之后,念一句结果数(点名每一条匹配,包括超出 `maxMenuItems`
|
|
513
|
+
* 没画出来的),或者没有结果的提示。加载中不念,因为还不知道有没有结果。
|
|
514
|
+
*/
|
|
515
|
+
function useTypeaheadAnnouncement(options) {
|
|
516
|
+
const announce = useAnnounce();
|
|
517
|
+
const { menu } = options;
|
|
518
|
+
const message = computed(() => {
|
|
519
|
+
const createRows = menu.entries.value.filter((entry) => entry.create).length;
|
|
520
|
+
return searchResultMessage({
|
|
521
|
+
isOpen: menu.combobox.isOpen.value,
|
|
522
|
+
isLoading: menu.status.value === "loading",
|
|
523
|
+
query: menu.query.value,
|
|
524
|
+
matchCount: menu.matchCount.value,
|
|
525
|
+
hasCreateRow: createRows > 0,
|
|
526
|
+
emptyText: toValue(options.emptyText),
|
|
527
|
+
emptySearchText: toValue(options.emptySearchText),
|
|
528
|
+
resultCount: options.resultCount
|
|
529
|
+
});
|
|
530
|
+
});
|
|
531
|
+
watch(message, (next) => {
|
|
532
|
+
if (next) announce(next);
|
|
533
|
+
});
|
|
534
|
+
return message;
|
|
535
|
+
}
|
|
536
|
+
//#endregion
|
|
537
|
+
export { useTypeaheadMenu as a, useLatchedOptionGrid as i, _sfc_main as n, _sfc_main$1 as r, useTypeaheadAnnouncement as t };
|
package/package.json
CHANGED
|
@@ -119,9 +119,32 @@
|
|
|
119
119
|
transform: rotate(180deg);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
.astryx-complex-selector-field .astryx-popover-trigger {
|
|
123
|
+
position: relative;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* 状态图标顶替箭头的位置,文字再长也不挤它。 */
|
|
127
|
+
.astryx-complex-selector .astryx-field-status-glyph,
|
|
128
|
+
.astryx-complex-selector-status-slot {
|
|
129
|
+
flex-shrink: 0;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.astryx-complex-selector-status-slot {
|
|
133
|
+
width: 16px;
|
|
134
|
+
height: 16px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* 提示按钮不能嵌在触发器按钮里,叠在触发器末尾留出的那块空位上。 */
|
|
138
|
+
.astryx-complex-selector-status-tip {
|
|
139
|
+
position: absolute;
|
|
140
|
+
inset-block-start: 50%;
|
|
141
|
+
inset-inline-end: var(--astryx-spacing-3, 12px);
|
|
142
|
+
transform: translateY(-50%);
|
|
143
|
+
}
|
|
144
|
+
|
|
122
145
|
.astryx-complex-selector-content {
|
|
123
146
|
box-sizing: border-box;
|
|
124
|
-
max-height: min(480px, calc(100vh - 32px));
|
|
147
|
+
max-height: var(--_complex-selector-max-block, min(480px, calc(100vh - 32px)));
|
|
125
148
|
overflow: auto;
|
|
126
149
|
padding: var(--astryx-spacing-3, 12px);
|
|
127
150
|
}
|
|
@@ -416,3 +416,13 @@
|
|
|
416
416
|
outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, var(--astryx-color-accent));
|
|
417
417
|
outline-offset: 1px;
|
|
418
418
|
}
|
|
419
|
+
|
|
420
|
+
/* 强制颜色下焦点只剩边框能表达:聚焦(含可聚焦的禁用字段)的边框取系统 Highlight 色。 */
|
|
421
|
+
@layer astryx.components {
|
|
422
|
+
@media (forced-colors: active) {
|
|
423
|
+
.astryx-multi-selector-control:focus-within,
|
|
424
|
+
.astryx-multi-selector-control.is-open {
|
|
425
|
+
border-color: Highlight;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
package/styles/selector.css
CHANGED
|
@@ -528,3 +528,13 @@
|
|
|
528
528
|
.astryx-selector-search-clear:focus-visible {
|
|
529
529
|
outline: none;
|
|
530
530
|
}
|
|
531
|
+
|
|
532
|
+
/* 强制颜色下焦点只剩边框能表达:聚焦(含可聚焦的禁用字段)的边框取系统 Highlight 色。 */
|
|
533
|
+
@layer astryx.components {
|
|
534
|
+
@media (forced-colors: active) {
|
|
535
|
+
.astryx-selector-field:focus-within,
|
|
536
|
+
.astryx-selector-field.is-open {
|
|
537
|
+
border-color: Highlight;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|