@astryx-vue/core 0.7.24 → 0.7.26
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.d.ts +1 -1
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-DsPFYRxB.js → AlertDialog-DZpJzvOC.js} +30 -15
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell--izaf9Fx.js → AppShell-D7ik41g-.js} +3 -3
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-cNntRBEo.js → Avatar-D_C9RBJb.js} +27 -21
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CiJia58o.js → AvatarGroup-CFvNDgU-.js} +17 -7
- package/dist/Badge/index.js +1 -1
- package/dist/Badge-BbPS_49c.js +41 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-C8f377q3.js → Banner-C1B7DsHS.js} +3 -3
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-BKeyoL9N.js → BottomSheet-BECeWtEy.js} +2 -2
- package/dist/{BottomSheet-CMukh1iI.js → BottomSheet-CgOzQHaA.js} +4 -2
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CXJNJ93V.js → Breadcrumbs-BgiZY7un.js} +9 -8
- package/dist/Button/index.d.ts +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/{Button-Dgm5wCch.js → Button-DsjdehLZ.js} +181 -18
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-UgiGP61q.js → ButtonGroup-CSW7a9vq.js} +14 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-d_uOkvFE.js → Calendar-Bzgi-XyF.js} +12 -3
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/{Card-H4571ZKi.js → Card-BbKFHWuD.js} +2 -0
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BWTArLIP.js → Carousel--VycM-Sa.js} +64 -19
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DKZWVA3Q.js → Chat-C1DlnlCQ.js} +30 -28
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-B4pDfjvr.js → CheckboxInput-uk8nuCEf.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DtxfdHRI.js → CheckboxList-Dr4kQ-BC.js} +7 -7
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-CCu6QWG7.js → Citation-BAFsn6N1.js} +4 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-jEBZbzHE.js → ClickableCard-CvxSKkXh.js} +16 -6
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-PDhTfE2w.js → Code-6GS0nAkR.js} +1 -1
- package/dist/{CodeBlock-BrE72i6C.js → CodeBlock-PSnUWX57.js} +21 -10
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BsPZ8CoN.js → Collapsible-C_tl5-L0.js} +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-0Kg-dJg3.js → CommandPalette-lewtyQrO.js} +7 -7
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BrGVG8c7.js → ComplexSelector-BUnqjeW5.js} +16 -8
- package/dist/ComponentIcon-BRXBBKeG.js +37 -0
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CgSIWUYh.js → ContextMenu-IDkvorRp.js} +10 -9
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-vV0tc4a4.js → DateInput-DTxxFz9-.js} +15 -13
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DcM1Zntr.js → DateRangeInput-D4Us58KW.js} +9 -9
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DbbVU3bk.js → DateTimeInput-CliLnI7P.js} +10 -10
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-vPGLWE3o.js → Dialog-B_s-w66_.js} +1 -1
- package/dist/{Dialog-D4V2ZnuS.js → Dialog-BtPktuiy.js} +3 -1
- package/dist/{DialogHeader-D1sgjPC7.js → DialogHeader-Hk419KW1.js} +4 -4
- 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-CaZF_-lH.js → Drawer-DoQ9hjKz.js} +2 -2
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-B3R5WLsl.js → DropdownMenu-B2iga1fe.js} +18 -13
- package/dist/{DropdownMenu-BjE_cTDM.js → DropdownMenu-BF2Z5T4h.js} +9 -9
- package/dist/{DropdownMenuRadioItem.vue-z0XU7pZS.d.ts → DropdownMenuRadioItem.vue-D455cIQQ.d.ts} +1 -1
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BQrzgh2f.js → EmptyState-v1cvHKav.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-DLg-trP2.js → Field-if5a58LO.js} +2 -2
- package/dist/{FieldIcon-CxTnEb4Y.js → FieldIcon-DMtfe1Ne.js} +1 -1
- package/dist/{FieldInfoTip-D5IOQrVA.js → FieldInfoTip-BJAaKJjM.js} +2 -2
- package/dist/{FieldLabel-D5_Pap_W.js → FieldLabel-C-IaUcP4.js} +3 -3
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-D6Vo_dU5.js → FieldStatus-DSUCli4W.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CKYpJtuU.js → FileInput-0zBWfO8h.js} +9 -9
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Grid/index.js +1 -1
- package/dist/{Grid-D1onTzyC.js → Grid-C0mp7fha.js} +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/Heading-C10qO8wg.js +114 -0
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-B9uadAzT.js → HoverCard-CLcbBLBN.js} +4 -3
- package/dist/Icon/index.d.ts +4 -4
- package/dist/Icon/index.js +4 -2
- package/dist/Icon/plugin.js +1 -1
- package/dist/Icon-B2aULLnn.js +15 -0
- package/dist/{Icon-CU3412Fe.js → Icon-BCHo7W0x.js} +48 -86
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-B6AQLlx9.js → IconButton-Crtfruc0.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/Indicator/index.js +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BlOySTNC.js → InfoTip-DNQy7wqB.js} +3 -3
- package/dist/{InputClearButton-BbFXoxWi.js → InputClearButton-DhvxPkK6.js} +3 -3
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +2 -2
- package/dist/{InputGroup-BleRgc6W.js → InputGroup-B1kG0rBN.js} +42 -18
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-CWJDt7Qb.js → InternationalizationProvider-CUEIHCf4.js} +3 -3
- package/dist/{Item-X9wgYWoD.js → Item-Cfv4ALls.js} +29 -6
- package/dist/Kbd/index.d.ts +1 -1
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-CV3LO2Ge.js → Kbd-DyxKNYtE.js} +58 -30
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-mHcy28k7.js → Layout-OHKb6r7D.js} +8 -5
- package/dist/{LayoutPanel-DpbBk6rj.js → LayoutPanel-D-rpTtC-.js} +6 -3
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DLZzT9un.js → Lightbox-B8uMFPOS.js} +96 -17
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Qhzs2lcO.js → Link-Kc2RQFHc.js} +59 -70
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-CertehfW.js → ListItem-2evjQQ7n.js} +2 -2
- package/dist/Markdown/index.js +2 -2
- package/dist/{Markdown-DGTG02tI.js → Markdown-NVkHi_tk.js} +6 -6
- package/dist/{MediaTheme-CnSOALNj.js → MediaTheme-Bt7WBTkq.js} +1 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-wOngshS5.js → MetadataList-4GnMi6s9.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-C8KAzhRl.js → MobileNavToggle-TMDrnXfG.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-B_NLxMJW.js → MoreMenu-CpGEXWCd.js} +10 -10
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-B0TQuJ5d.js → MultiSelector-Baca6xNx.js} +17 -16
- package/dist/{NavDisclosure-BbRWuyhq.js → NavDisclosure-DG4jls5z.js} +1 -1
- package/dist/{NavHeadingSurface-B2HkXx6S.js → NavHeadingSurface-j2gzMVKt.js} +3 -3
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-DfHMmSsw.js → NavItem-BZLN0U5a.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-mZVfqNxt.js → NavMenu-t7WN2bcq.js} +1 -1
- package/dist/{NavMenuItem-DkfXIdxs.js → NavMenuItem-DIMQohIa.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DEv4_fDj.js → NumberInput-BBFGZ4Fg.js} +27 -17
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-Bbu16_MT.js → Outline-BgDOI3ar.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-CjIOYKLM.js → OverflowList-D4fC5s_q.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Bcq0T9qo.js → Pagination-Do_MIlo4.js} +16 -4
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-9Xt2lYdo.js → Popover-Bd93LlDd.js} +7 -7
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DXz85xcx.js → PowerSearch-DyqItMHo.js} +111 -42
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-Dt5AS0GY.js → ProgressBar-gsm2A_cR.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-B2lYTCeV.js → RadioGroup-Dzp4qSgm.js} +5 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CieZtXzY.js → RadioList-CAIgB1j_.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-uBJj4W1M.js → ResizeHandle-GAmiHb0-.js} +2 -2
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-BmDn1avo.js → SegmentedControl-Bs74LlvS.js} +3 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-2a2gsxys.js → SelectableCard-BFCwgtWf.js} +12 -7
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-CgrXQtte.js → Selector-B9lINQRM.js} +15 -13
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DW4jXGp5.js → SideNav-DzZ12DIq.js} +8 -8
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-CEhy-D-R.js → Slider-Cuk2ul9w.js} +4 -4
- package/dist/Spinner/index.js +1 -1
- package/dist/{Spinner-CTWLR75x.js → Spinner-ke63bQPv.js} +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-Bu_nCu0I.js → StatusDot-DF5wK42f.js} +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DVXisudw.js → Stepper-C68f_iJG.js} +3 -3
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DXShvaDA.js → Switch-bnxiN6Qe.js} +4 -4
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Bo4pjQhj.js → TabList-8dlO0Ws6.js} +13 -8
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-Bd8BQ8X_.js → Table-j_DCDbcI.js} +107 -49
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +3 -2
- package/dist/{Text-Wk-iDAzh.js → Text-WB-fpFne.js} +38 -29
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-8bifudmD.js → TextArea-Bzz_KcKT.js} +11 -11
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Bb25yDd0.js → TextInput-givkH9HQ.js} +22 -20
- package/dist/Theme/index.d.ts +2 -2
- package/dist/Theme/index.js +2 -2
- package/dist/{Theme-D7_fQWgb.js → Theme-BQe--DY6.js} +42 -9
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-CYVlnYws.js → Thumbnail-CZOWP5HN.js} +42 -14
- package/dist/{TimeField-dDDrUtI4.js → TimeField-ByoS5s_I.js} +8 -8
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-BvGVUfWy.js → TimeInput-D9kvMQso.js} +7 -5
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DL_MPa_h.js → Timer-BD2gSoQ3.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-CJSVY4tS.js → Timestamp-CEdNhKc5.js} +17 -13
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-cXs5Cbr4.js → Toast-CnZrcU-G.js} +5 -5
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DFiJDsOV.js → ToggleButton-BMn4yJXe.js} +27 -8
- package/dist/Token/index.js +1 -1
- package/dist/{Token-BJDLztV6.js → Token-DWCDMawn.js} +101 -28
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-yz0873oG.js → Tokenizer-R0eC1BOk.js} +93 -10
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-D5UI1JLe.js → Toolbar-BH_E0F0G.js} +4 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-BfKegFfq.js → Tooltip-CGHpFMnc.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CWksqYD8.js → TopNav-DHunql9h.js} +7 -7
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-tcEjVfb0.js → TreeList-Dg5gtkOu.js} +24 -17
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-ClidGB0O.js → Typeahead-BkmCC6DX.js} +52 -27
- package/dist/{TypeaheadMenu-Bu9HO-wZ.js → TypeaheadMenu-CFeJCv-6.js} +1 -1
- package/dist/componentIcons-CFr2L6o3.js +106 -0
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +13 -11
- package/dist/{composables-BWDrzi3J.js → composables-DqJzanJ5.js} +5 -24
- package/dist/context-Bg7eSJ47.js +17 -0
- package/dist/{context-BLSiTojH.js → context-CV6TrhJY.js} +57 -3
- package/dist/context-CZP3jfy-.js +125 -0
- package/dist/{context-Bv6lAoqu.js → context-CjX2RSDn.js} +14 -2
- package/dist/devBuild-G249YcdZ.js +17 -0
- package/dist/{fieldParts--SyRZVQG.js → fieldParts-CDOlBdy6.js} +2 -2
- package/dist/{index-CM8KfpBL.d.ts → index--uIQXVJ7.d.ts} +2 -2
- package/dist/{index-CL8JvxHW.d.ts → index-B3yTdknp.d.ts} +1 -1
- package/dist/{index-rszZajcw.d.ts → index-B449gOMC.d.ts} +2 -2
- package/dist/{index-B3PTchxx.d.ts → index-B7brdDVR.d.ts} +5 -5
- package/dist/{index-BO9TY87G.d.ts → index-BOCb89V9.d.ts} +3 -3
- package/dist/{index-Gnewu6-J.d.ts → index-BPyRH3WL.d.ts} +1 -1
- package/dist/{index-DEQ5cnUV.d.ts → index-BTljzczH.d.ts} +4 -1
- package/dist/{index-f3d9cVtj.d.ts → index-BU78NOP-.d.ts} +1 -1
- package/dist/{index-BfQ85cS8.d.ts → index-BZuEYd9y.d.ts} +1 -1
- package/dist/{index-D_K1wfRa.d.ts → index-BfSZhAVv.d.ts} +2 -2
- package/dist/{index-CFm1rPma.d.ts → index-BjbPK91B.d.ts} +1 -1
- package/dist/{index-C3f1zsJR.d.ts → index-BngdKVro.d.ts} +1 -1
- package/dist/{index-RW8kvEwf.d.ts → index-BnqDF_AX.d.ts} +11 -6
- package/dist/{index-Be7N3B5F.d.ts → index-BqEPgwku.d.ts} +2 -2
- package/dist/{index-DxxudRgB.d.ts → index-C16d2Fc4.d.ts} +1 -1
- package/dist/{index-D97pQbua.d.ts → index-C89cIh4E.d.ts} +3 -5
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-IvAfdGCC.d.ts → index-CAoenU4T.d.ts} +1 -1
- package/dist/{index-BaxM-pFP.d.ts → index-CM2L3SUw.d.ts} +6 -4
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-Bo-ofFyg.d.ts → index-CbNLiaWw.d.ts} +2 -2
- package/dist/{index-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-BMCjAlq6.d.ts → index-CfPGC9aW.d.ts} +1 -1
- package/dist/index-CtYlR9Cu.d.ts +46 -0
- package/dist/{index--tm6L1ot.d.ts → index-Cun6cXGP.d.ts} +1 -1
- package/dist/{index-C9gAlDt_.d.ts → index-CvquEEGw.d.ts} +8 -2
- package/dist/{index-QWh122EV.d.ts → index-D57GW53K.d.ts} +1 -1
- package/dist/{index-DX4HQToB.d.ts → index-D6pP-H_N.d.ts} +1 -1
- package/dist/{index-dcT6zeY_.d.ts → index-DCU6dy7n.d.ts} +25 -5
- package/dist/{index-DqaYENaT.d.ts → index-DFDadgys.d.ts} +68 -68
- package/dist/{index-DEm3kRBO.d.ts → index-DN1RqxjP.d.ts} +1 -1
- package/dist/{index-BzZC2Y7c.d.ts → index-DTfA4uE3.d.ts} +1 -1
- package/dist/{index-BZchpRgm.d.ts → index-DZKv1WNB.d.ts} +2 -2
- package/dist/{index-BUZDSd-n.d.ts → index-Dc52pmSr.d.ts} +4 -2
- package/dist/{index-uqEqPcmR.d.ts → index-DhMCql2U.d.ts} +1 -1
- package/dist/{index-O9y23OPJ.d.ts → index-DneQgJfI.d.ts} +1 -1
- package/dist/{index-Dj1_1t3j.d.ts → index-IFFGXlhq.d.ts} +1 -1
- package/dist/{index-DaXzQxos.d.ts → index-MEix_m1o.d.ts} +2 -2
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-D21zdEgS.d.ts → index-Uh-ddE5F.d.ts} +1 -1
- package/dist/{index-BtrAhmSP.d.ts → index-fuztfDLA.d.ts} +10 -6
- package/dist/{index-BRXgpLcd.d.ts → index-mJ_aqK5M.d.ts} +3 -3
- package/dist/{index-3t5RAfNP.d.ts → index-mkbGYz8f.d.ts} +2 -2
- package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
- package/dist/{index-Dacg7XTH.d.ts → index-wkeCkhTi.d.ts} +16 -6
- package/dist/index.d.ts +53 -53
- package/dist/index.js +134 -130
- package/dist/layerSurfacePress-C3PjPpJP.js +29 -0
- package/dist/{loadCatalog-85MyL2bm.js → loadCatalog-Bulk4H7U.js} +2 -2
- package/dist/{loadCatalog-DSRSkHnY.d.ts → loadCatalog-D_uf2uX1.d.ts} +36 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -4
- package/dist/{locale-C7RSY-JG.js → locale-BA52q_fh.js} +1 -1
- package/dist/pressFeedback-Bwwpex9q.js +578 -0
- package/dist/{registry-C7OZb0PJ.js → registry-fNY3jasS.js} +23 -4
- package/dist/{searchResultMessage-T4H3r8Vz.js → searchResultMessage-CFmIy2Da.js} +2 -2
- package/dist/semantic-CXHSMwPK.d.ts +118 -0
- package/dist/{sharedResizeObserver-9EFWnSWH.js → sharedResizeObserver-BekhnB3E.js} +5 -1
- package/dist/slotContent-CNWOrGOr.js +14 -0
- package/dist/{slug-DAK6hdbr.js → slug-D6ln5PTq.js} +3 -1
- package/dist/strayClick-CY-_ImKv.js +60 -0
- package/dist/textClampContext-o3-nLErq.js +15 -0
- package/dist/textDirection-D4ObTwbB.js +32 -0
- package/dist/themeIcons-CqGF0fwW.js +128 -0
- package/dist/tooltipTriggerRules-Bg4tG8w2.js +53 -0
- package/dist/{types-CsqwQkf1.d.ts → types-Bq4Yl6CS.d.ts} +68 -7
- package/dist/{types-Bb7OGivY.d.ts → types-BwVJBE-G.d.ts} +1 -1
- package/dist/{types-C5GQ2KCK.d.ts → types-Dcai2Icw.d.ts} +55 -1
- package/dist/{types-DnrU3HYQ.d.ts → types-hB0M54I7.d.ts} +1 -1
- package/dist/unicodeRegExp-B7yQnpFC.js +14 -0
- package/dist/{upstreamMap-CZUPxbc9.js → upstreamMap-DrkVNtXW.js} +2 -0
- package/dist/useActionGroupTracking-BncJjk1A.js +131 -0
- package/dist/{useAnchoredListbox-6t5zSSz1.js → useAnchoredListbox-9Gn8asBR.js} +3 -2
- package/dist/useCoarsePointer-GItEMrjX.js +21 -0
- package/dist/{useDevWarning-DznOpOHT.js → useDevWarning-B2fsk2B-.js} +1 -4
- package/dist/{usePositionedLayer-psKf3ano.js → useDismiss-0-Z-9D0A.js} +52 -52
- package/dist/{useFileSelection-BPtaegqK.js → useFileSelection-B44UpbvF.js} +14 -4
- package/dist/{useIndicator-BvF_KY9S.js → useIndicator--9mGGlT2.js} +2 -2
- package/dist/{useInputContainer-CLcYrby4.js → useInputContainer-BpLtCA-U.js} +1 -1
- package/dist/{useInputStatusIcon-BSVFtRQG.js → useInputStatusIcon-DCnx00BM.js} +2 -2
- package/dist/{useLayer-Byjda3dD.js → useLayer-CED-g4Q2.js} +1 -1
- package/dist/{useMenuDrillIn-C36Z89W3.js → useMenuDrillIn-C5eJCuO1.js} +2 -2
- package/dist/{useMenuPress-8foxY8z4.js → useMenuPress-BLPwY_m1.js} +2 -59
- package/dist/usePressFeedback-Bcjsw9vv.js +49 -0
- package/dist/{useTooltip-BKsCTWdb.js → useTooltip-D8Tq7-yd.js} +36 -22
- package/dist/{useTranslator-BDUOzbP_.js → useTranslator-Q85hi4qz.js} +2 -2
- package/dist/useTruncation-C4pdlaXa.js +135 -0
- package/dist/useTruncationTooltip-BNk2xslw.js +106 -0
- package/dist/utils/index.js +1 -1
- package/dist/{utils-ClVseK2w.js → utils-BTkg5Ie9.js} +7 -2
- package/locales/en.json +8 -0
- package/package.json +1 -1
- package/styles/alert-dialog.css +19 -0
- package/styles/avatar.css +18 -3
- package/styles/badge.css +20 -2
- package/styles/banner.css +6 -0
- package/styles/button-group.css +38 -2
- package/styles/button.css +76 -4
- package/styles/calendar.css +34 -0
- package/styles/carousel.css +19 -11
- package/styles/chat.css +2 -0
- package/styles/checkbox-indicator.css +9 -9
- package/styles/checkbox-input.css +4 -1
- package/styles/citation.css +2 -1
- package/styles/clickable-card.css +19 -5
- package/styles/code.css +6 -0
- package/styles/context-menu.css +11 -0
- package/styles/dialog-header.css +2 -0
- package/styles/dialog.css +7 -0
- package/styles/dropdown-menu.css +11 -0
- package/styles/field.css +2 -0
- package/styles/heading.css +4 -0
- package/styles/hover-card.css +2 -0
- package/styles/icon.css +18 -12
- package/styles/input-group.css +1 -0
- package/styles/kbd.css +2 -0
- package/styles/layer.css +2 -0
- package/styles/lightbox.css +78 -0
- package/styles/link.css +25 -1
- package/styles/list.css +10 -1
- package/styles/metadata-list.css +1 -1
- package/styles/more-menu.css +6 -0
- package/styles/popover.css +7 -0
- package/styles/pressable.css +7 -0
- package/styles/radio-indicator.css +21 -4
- package/styles/slider.css +2 -0
- package/styles/switch.css +2 -1
- package/styles/table.css +25 -1
- package/styles/text.css +8 -0
- package/styles/thumbnail.css +25 -0
- package/styles/toast.css +2 -0
- package/styles/toggle-button.css +17 -0
- package/styles/token.css +14 -9
- package/styles/toolbar.css +19 -0
- package/dist/Badge-CjDQPF5g.js +0 -30
- package/dist/Heading-D0zL1j5T.js +0 -99
- package/dist/context-B6UElI5X.js +0 -5
- package/dist/context-Cws_tXTr.js +0 -7
- package/dist/context-IvbU9c3T.js +0 -8
- package/dist/index-LySSG_PR.d.ts +0 -27
- package/dist/semantic-BF_AjLvk.d.ts +0 -57
- package/dist/useClickableContainer-CdGp_Cev.js +0 -112
- package/dist/usePressFeedback-Dhnfc3ee.js +0 -336
- package/dist/useTruncation-C02rA1-c.js +0 -102
- package/dist/{useRestoreFocus-XEKs5-gp.js → useRestoreFocus-CEG0n2AK.js} +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/utils/unicodeRegExp.ts
|
|
2
|
+
/**
|
|
3
|
+
* 构造带 Unicode 属性转义(`\p{…}`)的正则。
|
|
4
|
+
*
|
|
5
|
+
* 这类正则不写成字面量:没有设 browserslist 或目标浏览器不支持属性转义时,Babel 的
|
|
6
|
+
* transform-unicode-property-regex 会改写 `\p{…}` 字面量,而 Next.js 自带的那份缺少所需的
|
|
7
|
+
* Unicode 数据,源码构建会报 "Unknown property"。在运行时构造就没有字面量可改写。
|
|
8
|
+
* `unicodePropertyEscapes.test.ts` 检查源码里没有这样的字面量。
|
|
9
|
+
*/
|
|
10
|
+
function unicodeRegExp(pattern, flags = "u") {
|
|
11
|
+
return new RegExp(pattern, flags);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { unicodeRegExp as t };
|
|
@@ -861,6 +861,8 @@ const overlaysUpstreamMap = {
|
|
|
861
861
|
"@astryx.lightbox.zoom": [{ path: "lightbox.zoom" }],
|
|
862
862
|
"@astryx.lightbox.zoomedIn": [{ path: "lightbox.zoomedIn" }],
|
|
863
863
|
"@astryx.lightbox.zoomedOut": [{ path: "lightbox.zoomedOut" }],
|
|
864
|
+
"@astryx.lightbox.captionMore": [{ path: "lightbox.captionMore" }],
|
|
865
|
+
"@astryx.lightbox.captionLess": [{ path: "lightbox.captionLess" }],
|
|
864
866
|
"@astryx.lightbox.imagePosition": [{
|
|
865
867
|
path: "lightbox.imagePosition",
|
|
866
868
|
args: ["index", "total"]
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { c as PRESS_GROUP_ITEM_ATTRIBUTE, i as isInsideScrollView, l as isTrackedByGroup, m as msSinceInput } from "./pressFeedback-Bwwpex9q.js";
|
|
2
|
+
import { n as GROUP_PRESS_POINTERS, r as createActionGroupTracker } from "./context-CZP3jfy-.js";
|
|
3
|
+
import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
|
|
4
|
+
//#region src/composables/internal/useActionGroupTracking.ts
|
|
5
|
+
const DISABLED = ":disabled, [aria-disabled=\"true\"]";
|
|
6
|
+
/** iOS 的 WebKit 点按钮不给它焦点;其他浏览器给。滑动后焦点跟着「点那个按钮会怎样」走。 */
|
|
7
|
+
function tapFocuses(view) {
|
|
8
|
+
const nav = view?.navigator;
|
|
9
|
+
if (nav == null) return true;
|
|
10
|
+
return !(/iPad|iPhone|iPod/.test(nav.userAgent) || nav.platform === "MacIntel" && nav.maxTouchPoints > 1);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 内部用:让手指或笔在 `rootRef` 里那些带组标记的动作之间滑动,松手时执行手指下的那个。
|
|
14
|
+
*
|
|
15
|
+
* - 按下时手指下的动作立刻高亮(滚动视图里等 150ms,挪远了就交给滚动)。
|
|
16
|
+
* - 高亮跟着手指走;在动作之间或组外没有高亮,松手什么都不执行。
|
|
17
|
+
* - 松手执行的是手指下的那个动作,走它自己的 click;浏览器补发的那个 click 被吞掉。
|
|
18
|
+
* - 第二根手指、pointercancel、窗口失焦,都直接结束,什么都不执行。
|
|
19
|
+
* - 鼠标不跟踪,保持原生按钮的行为。
|
|
20
|
+
*/
|
|
21
|
+
function useActionGroupTracking(rootRef, options) {
|
|
22
|
+
const tracker = createActionGroupTracker();
|
|
23
|
+
let pointerId = null;
|
|
24
|
+
let pointerType = "touch";
|
|
25
|
+
let focusedBefore = null;
|
|
26
|
+
let beganOn = null;
|
|
27
|
+
/** 滚动视图里还没认定是按压时,等待中的定时器和落点。 */
|
|
28
|
+
let pending = null;
|
|
29
|
+
function stopListening() {
|
|
30
|
+
window.removeEventListener("pointermove", onMove, true);
|
|
31
|
+
window.removeEventListener("pointerup", onUp, true);
|
|
32
|
+
window.removeEventListener("pointercancel", onCancel, true);
|
|
33
|
+
window.removeEventListener("pointerdown", onOtherDown, true);
|
|
34
|
+
window.removeEventListener("blur", onCancel);
|
|
35
|
+
}
|
|
36
|
+
function clearPending() {
|
|
37
|
+
if (pending != null) clearTimeout(pending.timer);
|
|
38
|
+
pending = null;
|
|
39
|
+
}
|
|
40
|
+
function finish() {
|
|
41
|
+
clearPending();
|
|
42
|
+
stopListening();
|
|
43
|
+
pointerId = null;
|
|
44
|
+
beganOn = null;
|
|
45
|
+
focusedBefore = null;
|
|
46
|
+
}
|
|
47
|
+
function begin(root, x, y, target) {
|
|
48
|
+
beganOn = tracker.begin(root, pointerType, x, y, target);
|
|
49
|
+
}
|
|
50
|
+
function onMove(event) {
|
|
51
|
+
if (event.pointerId !== pointerId) return;
|
|
52
|
+
if (pending != null) {
|
|
53
|
+
if (Math.hypot(event.clientX - pending.x, event.clientY - pending.y) > 10) finish();
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
tracker.move(event.clientX, event.clientY);
|
|
57
|
+
}
|
|
58
|
+
function onUp(event) {
|
|
59
|
+
if (event.pointerId !== pointerId) return;
|
|
60
|
+
const root = rootRef.value;
|
|
61
|
+
if (pending != null && root != null) {
|
|
62
|
+
const { x, y, target } = pending;
|
|
63
|
+
clearPending();
|
|
64
|
+
begin(root, x, y, target);
|
|
65
|
+
}
|
|
66
|
+
const lifted = tracker.highlighted;
|
|
67
|
+
const doc = root?.ownerDocument;
|
|
68
|
+
if ((pointerType === "touch" ? tapFocuses(doc?.defaultView ?? null) : beganOn != null && focusedBefore === beganOn) && lifted != null && lifted.isConnected && !lifted.matches(DISABLED) && doc?.activeElement !== lifted) lifted.focus({ preventScroll: true });
|
|
69
|
+
tracker.end();
|
|
70
|
+
finish();
|
|
71
|
+
}
|
|
72
|
+
function onCancel() {
|
|
73
|
+
tracker.cancel();
|
|
74
|
+
finish();
|
|
75
|
+
}
|
|
76
|
+
/** 又来一根手指:捏合或双指滚动不是按压,结束这一次,什么都不执行。 */
|
|
77
|
+
function onOtherDown(event) {
|
|
78
|
+
if (event.pointerId !== pointerId) onCancel();
|
|
79
|
+
}
|
|
80
|
+
function onPointerDown(event) {
|
|
81
|
+
const root = rootRef.value;
|
|
82
|
+
if (root == null || !toValue(options.isEnabled) || pointerId != null) return;
|
|
83
|
+
if (!GROUP_PRESS_POINTERS.includes(event.pointerType) || !event.isPrimary || event.button > 0) return;
|
|
84
|
+
const target = event.target;
|
|
85
|
+
if (!(target instanceof Element)) return;
|
|
86
|
+
const member = target.closest(`[${PRESS_GROUP_ITEM_ATTRIBUTE}]`);
|
|
87
|
+
if (member == null || !root.contains(member) || member.matches(DISABLED) || !isTrackedByGroup(member, event.pointerType)) return;
|
|
88
|
+
pointerId = event.pointerId;
|
|
89
|
+
pointerType = event.pointerType;
|
|
90
|
+
focusedBefore = root.ownerDocument.activeElement;
|
|
91
|
+
window.addEventListener("pointermove", onMove, true);
|
|
92
|
+
window.addEventListener("pointerup", onUp, true);
|
|
93
|
+
window.addEventListener("pointercancel", onCancel, true);
|
|
94
|
+
window.addEventListener("pointerdown", onOtherDown, true);
|
|
95
|
+
window.addEventListener("blur", onCancel);
|
|
96
|
+
const { clientX: x, clientY: y } = event;
|
|
97
|
+
if (!isInsideScrollView(member)) {
|
|
98
|
+
begin(root, x, y, target);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const wait = Math.max(0, 150 - msSinceInput(event.timeStamp, event));
|
|
102
|
+
pending = {
|
|
103
|
+
x,
|
|
104
|
+
y,
|
|
105
|
+
target,
|
|
106
|
+
timer: setTimeout(() => {
|
|
107
|
+
pending = null;
|
|
108
|
+
if (rootRef.value != null) begin(rootRef.value, x, y, target);
|
|
109
|
+
}, wait)
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
watch(() => toValue(options.isEnabled) ? rootRef.value : null, (root, _previous, onCleanup) => {
|
|
113
|
+
if (root == null) return;
|
|
114
|
+
root.addEventListener("pointerdown", onPointerDown);
|
|
115
|
+
onCleanup(() => {
|
|
116
|
+
root.removeEventListener("pointerdown", onPointerDown);
|
|
117
|
+
tracker.cancel();
|
|
118
|
+
tracker.dispose();
|
|
119
|
+
finish();
|
|
120
|
+
});
|
|
121
|
+
}, {
|
|
122
|
+
immediate: true,
|
|
123
|
+
flush: "post"
|
|
124
|
+
});
|
|
125
|
+
if (getCurrentScope() != null) onScopeDispose(() => {
|
|
126
|
+
tracker.dispose();
|
|
127
|
+
finish();
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
//#endregion
|
|
131
|
+
export { useActionGroupTracking as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-0-Z-9D0A.js";
|
|
2
|
+
import { n as clampInlineSize } from "./inlineSize-BNe8wggI.js";
|
|
2
3
|
import { computed, onMounted, ref, toValue, watch } from "vue";
|
|
3
4
|
//#region src/Typeahead/useAnchoredListbox.ts
|
|
4
5
|
/** 想要的宽度再宽也要给视口留边。没给就不插手宽度。 */
|
|
@@ -40,7 +41,7 @@ function useAnchoredListbox(options) {
|
|
|
40
41
|
style: computed(() => ({
|
|
41
42
|
top: `${position.value.top}px`,
|
|
42
43
|
left: `${position.value.left}px`,
|
|
43
|
-
minWidth: anchorWidth.value > 0 ? `${anchorWidth.value}px` : void 0,
|
|
44
|
+
minWidth: anchorWidth.value > 0 ? clampInlineSize(`${anchorWidth.value}px`) : void 0,
|
|
44
45
|
width: requestedMenuWidth(toValue(options.menuWidth))
|
|
45
46
|
}))
|
|
46
47
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { computed, onMounted, onScopeDispose, shallowRef } from "vue";
|
|
2
|
+
//#region src/composables/useCoarsePointer.ts
|
|
3
|
+
/** 粗指针(触摸)为 true。服务端和细指针设备为 false。 */
|
|
4
|
+
function useCoarsePointer() {
|
|
5
|
+
const coarse = shallowRef(false);
|
|
6
|
+
let query;
|
|
7
|
+
function update() {
|
|
8
|
+
coarse.value = query?.matches ?? false;
|
|
9
|
+
}
|
|
10
|
+
onMounted(() => {
|
|
11
|
+
query = window.matchMedia("(pointer: coarse)");
|
|
12
|
+
update();
|
|
13
|
+
query.addEventListener("change", update);
|
|
14
|
+
});
|
|
15
|
+
onScopeDispose(() => {
|
|
16
|
+
query?.removeEventListener("change", update);
|
|
17
|
+
});
|
|
18
|
+
return computed(() => coarse.value);
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { useCoarsePointer as t };
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
+
import { n as isDevBuild } from "./devBuild-G249YcdZ.js";
|
|
1
2
|
import { toValue, watch } from "vue";
|
|
2
3
|
//#region src/composables/useDevWarning.ts
|
|
3
|
-
/** 生产构建里 `import.meta.env.DEV` 是 false,这两个函数整段会被摇掉。 */
|
|
4
|
-
function isDevBuild() {
|
|
5
|
-
return import.meta.env?.DEV === true;
|
|
6
|
-
}
|
|
7
4
|
/**
|
|
8
5
|
* 对应原版 Astryx 的 `devWarn`。
|
|
9
6
|
*
|
|
@@ -1,57 +1,7 @@
|
|
|
1
1
|
import { n as useLayerTeleportTarget } from "./useLayerMountTarget-BmZyeKWE.js";
|
|
2
|
-
import { i as pushLayer, n as useLayerDepth } from "./layerDepth-CNDh-IHb.js";
|
|
3
2
|
import { i as useLayerGutter, s as resolveLayerGutter } from "./context-M-er0-Rk.js";
|
|
3
|
+
import { i as pushLayer, n as useLayerDepth } from "./layerDepth-CNDh-IHb.js";
|
|
4
4
|
import { nextTick, onScopeDispose, ref, toValue, watch } from "vue";
|
|
5
|
-
//#region src/composables/useDismiss.ts
|
|
6
|
-
/**
|
|
7
|
-
* 统一处理浮层组件的关闭逻辑:点击外部和按 Escape 键。
|
|
8
|
-
* 用于 Popover、Tooltip、DropdownMenu、ContextMenu 等。
|
|
9
|
-
*
|
|
10
|
-
* 真正的判定在 `layer/dismissStack.ts` 里:全页面共用一个关闭栈,
|
|
11
|
-
* 一次点外面只关最上面那一层,Escape 也只打最上面那一层。这里只负责在
|
|
12
|
-
* `isEnabled` 变真时把这一层登记进去,变假或作用域销毁时摘出来。
|
|
13
|
-
*
|
|
14
|
-
* 因为所有浮层都走这个入口,用它的组件自动获得了「只关最上面一层」的行为,
|
|
15
|
-
* 组件自己不用改。
|
|
16
|
-
*/
|
|
17
|
-
function useDismiss(options) {
|
|
18
|
-
const { container, trigger, isEnabled, onDismiss } = options;
|
|
19
|
-
const token = {};
|
|
20
|
-
const depth = useLayerDepth();
|
|
21
|
-
let unregister = null;
|
|
22
|
-
function register() {
|
|
23
|
-
unregister = pushLayer({
|
|
24
|
-
token,
|
|
25
|
-
depth,
|
|
26
|
-
getContainer: () => container.value,
|
|
27
|
-
getTrigger: () => trigger?.value ?? null,
|
|
28
|
-
dismissOnPointerOutside: toValue(options.dismissOnPointerOutside) ?? true,
|
|
29
|
-
dismissOnEscape: escapeMode(),
|
|
30
|
-
onEscape: options.onEscape,
|
|
31
|
-
onDismiss
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function escapeMode() {
|
|
35
|
-
return toValue(options.dismissOnEscape) ?? "close";
|
|
36
|
-
}
|
|
37
|
-
function teardown() {
|
|
38
|
-
unregister?.();
|
|
39
|
-
unregister = null;
|
|
40
|
-
}
|
|
41
|
-
function sync(enabled) {
|
|
42
|
-
if (enabled) {
|
|
43
|
-
teardown();
|
|
44
|
-
register();
|
|
45
|
-
} else teardown();
|
|
46
|
-
}
|
|
47
|
-
watch([
|
|
48
|
-
isEnabled,
|
|
49
|
-
() => escapeMode(),
|
|
50
|
-
() => toValue(options.dismissOnPointerOutside) ?? true
|
|
51
|
-
], ([enabled]) => sync(enabled), { immediate: true });
|
|
52
|
-
onScopeDispose(teardown);
|
|
53
|
-
}
|
|
54
|
-
//#endregion
|
|
55
5
|
//#region src/layer/position.ts
|
|
56
6
|
function alignOnAxis(start, size, own, alignment) {
|
|
57
7
|
if (alignment === "start") return start;
|
|
@@ -183,4 +133,54 @@ function usePositionedLayer(options) {
|
|
|
183
133
|
};
|
|
184
134
|
}
|
|
185
135
|
//#endregion
|
|
186
|
-
|
|
136
|
+
//#region src/composables/useDismiss.ts
|
|
137
|
+
/**
|
|
138
|
+
* 统一处理浮层组件的关闭逻辑:点击外部和按 Escape 键。
|
|
139
|
+
* 用于 Popover、Tooltip、DropdownMenu、ContextMenu 等。
|
|
140
|
+
*
|
|
141
|
+
* 真正的判定在 `layer/dismissStack.ts` 里:全页面共用一个关闭栈,
|
|
142
|
+
* 一次点外面只关最上面那一层,Escape 也只打最上面那一层。这里只负责在
|
|
143
|
+
* `isEnabled` 变真时把这一层登记进去,变假或作用域销毁时摘出来。
|
|
144
|
+
*
|
|
145
|
+
* 因为所有浮层都走这个入口,用它的组件自动获得了「只关最上面一层」的行为,
|
|
146
|
+
* 组件自己不用改。
|
|
147
|
+
*/
|
|
148
|
+
function useDismiss(options) {
|
|
149
|
+
const { container, trigger, isEnabled, onDismiss } = options;
|
|
150
|
+
const token = {};
|
|
151
|
+
const depth = useLayerDepth();
|
|
152
|
+
let unregister = null;
|
|
153
|
+
function register() {
|
|
154
|
+
unregister = pushLayer({
|
|
155
|
+
token,
|
|
156
|
+
depth,
|
|
157
|
+
getContainer: () => container.value,
|
|
158
|
+
getTrigger: () => trigger?.value ?? null,
|
|
159
|
+
dismissOnPointerOutside: toValue(options.dismissOnPointerOutside) ?? true,
|
|
160
|
+
dismissOnEscape: escapeMode(),
|
|
161
|
+
onEscape: options.onEscape,
|
|
162
|
+
onDismiss
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
function escapeMode() {
|
|
166
|
+
return toValue(options.dismissOnEscape) ?? "close";
|
|
167
|
+
}
|
|
168
|
+
function teardown() {
|
|
169
|
+
unregister?.();
|
|
170
|
+
unregister = null;
|
|
171
|
+
}
|
|
172
|
+
function sync(enabled) {
|
|
173
|
+
if (enabled) {
|
|
174
|
+
teardown();
|
|
175
|
+
register();
|
|
176
|
+
} else teardown();
|
|
177
|
+
}
|
|
178
|
+
watch([
|
|
179
|
+
isEnabled,
|
|
180
|
+
() => escapeMode(),
|
|
181
|
+
() => toValue(options.dismissOnPointerOutside) ?? true
|
|
182
|
+
], ([enabled]) => sync(enabled), { immediate: true });
|
|
183
|
+
onScopeDispose(teardown);
|
|
184
|
+
}
|
|
185
|
+
//#endregion
|
|
186
|
+
export { usePositionedLayer as n, useDismiss as t };
|
|
@@ -11,11 +11,21 @@ function matchesAccept(file, accept) {
|
|
|
11
11
|
return type === token;
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const ENGLISH_UNITS = {
|
|
15
|
+
fileSizeBytes: (size) => `${size} B`,
|
|
16
|
+
fileSizeKilobytes: (size) => `${size} KB`,
|
|
17
|
+
fileSizeMegabytes: (size) => `${size} MB`
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* 把字节数写成给人看的大小。`units` 决定单位怎么写,FileInput 传当前语言的文案;
|
|
21
|
+
* 不传时用英文的 B、KB、MB。
|
|
22
|
+
*/
|
|
23
|
+
function formatFileSize(bytes, units = ENGLISH_UNITS) {
|
|
24
|
+
if (bytes < 1024) return units.fileSizeBytes(bytes);
|
|
25
|
+
if (bytes < 1048576) return units.fileSizeKilobytes(Math.max(1, Math.round(bytes / 1024)));
|
|
17
26
|
const megabytes = bytes / 1048576;
|
|
18
|
-
|
|
27
|
+
const rounded = megabytes >= 10 ? Math.round(megabytes) : Math.round(megabytes * 10) / 10;
|
|
28
|
+
return units.fileSizeMegabytes(rounded);
|
|
19
29
|
}
|
|
20
30
|
function selectFiles(list, options) {
|
|
21
31
|
const incoming = list == null ? [] : [...list];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as _sfc_main$2 } from "./Icon-CU3412Fe.js";
|
|
2
|
-
import { n as themeContextKey } from "./context-Cws_tXTr.js";
|
|
3
1
|
import { t as isRenderable } from "./isRenderable-BnKHIqfd.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "./Icon-BCHo7W0x.js";
|
|
3
|
+
import { s as themeContextKey } from "./themeIcons-CqGF0fwW.js";
|
|
4
4
|
import { n as decorativeAttrs, t as _sfc_main$3 } from "./CheckboxIndicator-fH4d-JE1.js";
|
|
5
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, inject, mergeProps, openBlock, renderSlot, unref, useAttrs, useSlots, useTemplateRef } from "vue";
|
|
6
6
|
import "../styles/check-indicator.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { p as useClickableContainer } from "./pressFeedback-Bwwpex9q.js";
|
|
2
2
|
import { toValue } from "vue";
|
|
3
3
|
//#region src/composables/useInputContainer.ts
|
|
4
4
|
/** 点了以后接焦点的输入框类型:这些类型自己不会因为点击容器而聚焦。 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as _sfc_main } from "./FieldIcon-
|
|
2
|
-
import { t as _sfc_main$1 } from "./FieldInfoTip-
|
|
1
|
+
import { t as _sfc_main } from "./FieldIcon-DMtfe1Ne.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "./FieldInfoTip-BJAaKJjM.js";
|
|
3
3
|
import { computed, toValue } from "vue";
|
|
4
4
|
//#region src/composables/useInputStatusIcon.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-0-Z-9D0A.js";
|
|
2
2
|
import { computed, shallowRef, toValue, useId } from "vue";
|
|
3
3
|
//#region src/composables/useLayer.ts
|
|
4
4
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
-
import { t as _sfc_main$4 } from "./Icon-
|
|
3
|
-
import { t as _sfc_main$5 } from "./Item-
|
|
2
|
+
import { t as _sfc_main$4 } from "./Icon-BCHo7W0x.js";
|
|
3
|
+
import { t as _sfc_main$5 } from "./Item-Cfv4ALls.js";
|
|
4
4
|
import { t as _sfc_main$6 } from "./CheckboxIndicator-fH4d-JE1.js";
|
|
5
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useAttrs, useModel, useSlots, watch, withCtx } from "vue";
|
|
6
6
|
import "../styles/dropdown-menu.css";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { i as runAsMenuPressActivation, t as armStrayClick } from "./strayClick-CY-_ImKv.js";
|
|
1
2
|
import { getCurrentScope, onScopeDispose, toValue } from "vue";
|
|
2
3
|
//#region src/composables/useLongPress.ts
|
|
3
4
|
const DEFAULT_DELAY_MS = 500;
|
|
@@ -183,64 +184,6 @@ function overflowingMenu(menu) {
|
|
|
183
184
|
if (menu == null) return null;
|
|
184
185
|
return menu.scrollHeight > menu.clientHeight + 1 ? menu : null;
|
|
185
186
|
}
|
|
186
|
-
let isModelActivation = false;
|
|
187
|
-
/**
|
|
188
|
-
* 按压模型派发的那次行激活是不是正在进行。只在那次派发的同步过程中为真,
|
|
189
|
-
* 所以把激活转交给里面链接的行,能分清这是模型的 click 还是浏览器多出来的那个。
|
|
190
|
-
*/
|
|
191
|
-
function isMenuPressActivation() {
|
|
192
|
-
return isModelActivation;
|
|
193
|
-
}
|
|
194
|
-
/** 在「模型激活」标记下执行一段同步代码。 */
|
|
195
|
-
function runAsMenuPressActivation(run) {
|
|
196
|
-
isModelActivation = true;
|
|
197
|
-
try {
|
|
198
|
-
run();
|
|
199
|
-
} finally {
|
|
200
|
-
isModelActivation = false;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
let swallower = null;
|
|
204
|
-
function disarm() {
|
|
205
|
-
if (swallower == null) return;
|
|
206
|
-
swallower.isArmed = false;
|
|
207
|
-
if (swallower.timer != null) {
|
|
208
|
-
clearTimeout(swallower.timer);
|
|
209
|
-
swallower.timer = null;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
function onWindowClickCapture(event) {
|
|
213
|
-
if (swallower == null || !swallower.isArmed) return;
|
|
214
|
-
if (event.detail === 0 || isModelActivation) return;
|
|
215
|
-
event.preventDefault();
|
|
216
|
-
event.stopImmediatePropagation();
|
|
217
|
-
disarm();
|
|
218
|
-
}
|
|
219
|
-
/** 布下吞 click 的口子。同一个文档只装一次监听。 */
|
|
220
|
-
function armStrayClick(doc) {
|
|
221
|
-
const view = doc.defaultView;
|
|
222
|
-
if (view == null) return;
|
|
223
|
-
if (swallower == null || swallower.doc !== doc) {
|
|
224
|
-
if (swallower != null) {
|
|
225
|
-
swallower.doc.defaultView?.removeEventListener("click", onWindowClickCapture, true);
|
|
226
|
-
swallower.doc.removeEventListener("pointerdown", disarm, true);
|
|
227
|
-
}
|
|
228
|
-
view.addEventListener("click", onWindowClickCapture, true);
|
|
229
|
-
doc.addEventListener("pointerdown", disarm, true);
|
|
230
|
-
swallower = {
|
|
231
|
-
doc,
|
|
232
|
-
isArmed: false,
|
|
233
|
-
timer: null
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
disarm();
|
|
237
|
-
swallower.isArmed = true;
|
|
238
|
-
swallower.timer = setTimeout(disarm, 400);
|
|
239
|
-
}
|
|
240
|
-
/** 撤掉已经布下的口子。卸载和测试里用。 */
|
|
241
|
-
function resetMenuPress() {
|
|
242
|
-
disarm();
|
|
243
|
-
}
|
|
244
187
|
//#endregion
|
|
245
188
|
//#region src/composables/internal/menuPressDom.ts
|
|
246
189
|
/** 带这个标记的菜单根用的是按压模型。嵌套的飞出层靠它分清一次按压归哪一层。 */
|
|
@@ -761,4 +704,4 @@ function useMenuPress(options) {
|
|
|
761
704
|
};
|
|
762
705
|
}
|
|
763
706
|
//#endregion
|
|
764
|
-
export {
|
|
707
|
+
export { useLongPress as a, MENU_PRESS_MARKER as i, MENU_PRESS_SETTLE_MS as n, menuPressStep as r, useMenuPress as t };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { a as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_ACTION_ATTRIBUTE, s as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-Bwwpex9q.js";
|
|
2
|
+
import { getCurrentInstance, getCurrentScope, onMounted, onScopeDispose } from "vue";
|
|
3
|
+
import "../styles/pressable.css";
|
|
4
|
+
//#region src/composables/usePressFeedback.ts
|
|
5
|
+
const MARKER_ONLY = Object.freeze({ [PRESSABLE_ATTRIBUTE]: "" });
|
|
6
|
+
const WITH_OVERLAY = Object.freeze({
|
|
7
|
+
[PRESSABLE_ATTRIBUTE]: "",
|
|
8
|
+
class: "astryx-pressable"
|
|
9
|
+
});
|
|
10
|
+
const CONTAINER_MARKER_ONLY = Object.freeze({
|
|
11
|
+
...MARKER_ONLY,
|
|
12
|
+
[PRESS_CONTAINER_ATTRIBUTE]: ""
|
|
13
|
+
});
|
|
14
|
+
const CONTAINER_WITH_OVERLAY = Object.freeze({
|
|
15
|
+
...WITH_OVERLAY,
|
|
16
|
+
[PRESS_CONTAINER_ATTRIBUTE]: ""
|
|
17
|
+
});
|
|
18
|
+
const ACTION_MARKER = Object.freeze({ [PRESS_ACTION_ATTRIBUTE]: "" });
|
|
19
|
+
/**
|
|
20
|
+
* 对应原版 Astryx 的 `hooks/usePressFeedback`。
|
|
21
|
+
*
|
|
22
|
+
* 把一个元素标成触屏按压模型的可按表面,并确保文档级控制器已经装上。
|
|
23
|
+
*
|
|
24
|
+
* 手指下,CSS 的 `:active` 落手就亮,滚动开始了还可能亮着。按压模型反过来:
|
|
25
|
+
* 滚动视图外,手指落下那一帧就亮;滚动视图里先等 150 毫秒确认是按压。
|
|
26
|
+
* 手指挪动超过 10 像素或者页面滚动,立刻作废,这次手势里不再亮回来;
|
|
27
|
+
* 太快的轻点在抬手时补亮;抬手后按主题的退出时长淡出。鼠标不受影响,`:active` 照旧。
|
|
28
|
+
*
|
|
29
|
+
* 一个文档只有一个控制器:第一个挂载的可按组件装上,最后一个卸载时拆掉。
|
|
30
|
+
* 调用它不会给元素加监听或状态,一次按压只改一个属性。服务端不装。
|
|
31
|
+
*/
|
|
32
|
+
function usePressFeedback(options = {}) {
|
|
33
|
+
let release = null;
|
|
34
|
+
const install = () => {
|
|
35
|
+
release ??= installPressFeedback();
|
|
36
|
+
};
|
|
37
|
+
if (getCurrentInstance() != null) onMounted(install);
|
|
38
|
+
else install();
|
|
39
|
+
if (getCurrentScope() != null) onScopeDispose(() => {
|
|
40
|
+
release?.();
|
|
41
|
+
release = null;
|
|
42
|
+
});
|
|
43
|
+
return {
|
|
44
|
+
pressableProps: options.isContainer === true ? options.hasOverlay === false ? CONTAINER_MARKER_ONLY : CONTAINER_WITH_OVERLAY : options.hasOverlay === false ? MARKER_ONLY : WITH_OVERLAY,
|
|
45
|
+
pressActionProps: ACTION_MARKER
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { usePressFeedback as t };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { r as registerLayerSurface } from "./layerSurfacePress-C3PjPpJP.js";
|
|
1
2
|
import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
|
|
3
|
+
import { t as useLayer } from "./useLayer-CED-g4Q2.js";
|
|
4
|
+
import { t as _sfc_main$1 } from "./LayerContentBoundary-CvsKxwwm.js";
|
|
5
|
+
import { n as isTextEntryTap, r as matchesFocusVisible, t as isActionTrigger } from "./tooltipTriggerRules-Bg4tG8w2.js";
|
|
2
6
|
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
3
7
|
import { i as isFocusable } from "./focus-l8jVTcqd.js";
|
|
4
|
-
import { t as useLayer } from "./useLayer-Byjda3dD.js";
|
|
5
|
-
import { t as _sfc_main$1 } from "./LayerContentBoundary-CvsKxwwm.js";
|
|
6
8
|
import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-kYJ_NqL4.js";
|
|
7
|
-
import { Teleport, computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, onMounted, onScopeDispose, openBlock, ref, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
|
|
9
|
+
import { Teleport, computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, onMounted, onScopeDispose, openBlock, ref, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
|
|
8
10
|
import "../styles/tooltip.css";
|
|
9
11
|
//#region src/Tooltip/TooltipSurface.vue
|
|
10
12
|
const _hoisted_1 = ["data-placement"];
|
|
@@ -26,6 +28,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
26
28
|
const { contentRef } = props.tooltip;
|
|
27
29
|
function setContentRef(value) {
|
|
28
30
|
contentRef.value = value;
|
|
31
|
+
registerLayerSurface(value);
|
|
29
32
|
}
|
|
30
33
|
return (_ctx, _cache) => {
|
|
31
34
|
return openBlock(), createBlock(Teleport, { to: unref(target) }, [createCommentVNode(" eslint-disable-next-line vue-a11y/mouse-events-have-key-events, vue-a11y/no-static-element-interactions -- 气泡上的鼠标事件仅用于指针移入气泡时保持显示;键盘焦点由触发元素的 focusin / focusout 处理。 "), withDirectives(createElementVNode("div", mergeProps({
|
|
@@ -104,24 +107,26 @@ function renderedText(element) {
|
|
|
104
107
|
return parts.join("").replace(/\s+/g, " ").trim();
|
|
105
108
|
}
|
|
106
109
|
//#endregion
|
|
110
|
+
//#region src/Tooltip/tooltipPresentInterest.ts
|
|
111
|
+
/** 仅库内部使用,不从 Tooltip 入口导出。 */
|
|
112
|
+
const tooltipPresentInterestKey = Symbol("astryx-tooltip-present-interest");
|
|
113
|
+
/** 提示的触发器刚接上:按提示自己的规则回应让它挂载的那次交互,只回应一次。 */
|
|
114
|
+
function answerPresentInterest(state, trigger, answers) {
|
|
115
|
+
if (state == null || state.isRead) return;
|
|
116
|
+
state.isRead = true;
|
|
117
|
+
const { interest, tapEvent } = state;
|
|
118
|
+
state.tapEvent = null;
|
|
119
|
+
if (interest === "hover") answers.hover();
|
|
120
|
+
else if (interest === "tap") answers.tap(tapEvent);
|
|
121
|
+
else if (interest === "focus") {
|
|
122
|
+
const focused = trigger.ownerDocument.activeElement;
|
|
123
|
+
if (focused instanceof HTMLElement && trigger.contains(focused)) answers.focus(focused);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
107
127
|
//#region src/Tooltip/useTooltip.ts
|
|
108
128
|
const GAP = 4;
|
|
109
|
-
/** 指针离开触发器到进入气泡之间的宽限时间。 */
|
|
110
129
|
const HOVER_BRIDGE_DELAY = 100;
|
|
111
|
-
const ACTION_TAGS = [
|
|
112
|
-
"A",
|
|
113
|
-
"BUTTON",
|
|
114
|
-
"INPUT",
|
|
115
|
-
"SELECT",
|
|
116
|
-
"TEXTAREA"
|
|
117
|
-
];
|
|
118
|
-
function matchesFocusVisible(element) {
|
|
119
|
-
try {
|
|
120
|
-
return element.matches(":focus-visible");
|
|
121
|
-
} catch {
|
|
122
|
-
return false;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
130
|
/**
|
|
126
131
|
* 对应原版 Astryx 的 `hooks/useTooltip`:悬停和焦点触发的文字提示。
|
|
127
132
|
* 负责延迟显示、焦点处理、`aria-describedby` 关联和定位,`Tooltip` 组件内部也用它。
|
|
@@ -136,6 +141,7 @@ function useTooltip(options = {}) {
|
|
|
136
141
|
const isTouchPointer = ref(false);
|
|
137
142
|
let bound = null;
|
|
138
143
|
const announce = useAnnounce();
|
|
144
|
+
const presentInterest = inject(tooltipPresentInterestKey, null);
|
|
139
145
|
const layer = useLayer({
|
|
140
146
|
mode: "context",
|
|
141
147
|
anchor: triggerRef,
|
|
@@ -213,10 +219,10 @@ function useTooltip(options = {}) {
|
|
|
213
219
|
if (next instanceof Node && layer.contentRef.value?.contains(next)) return;
|
|
214
220
|
scheduleHide();
|
|
215
221
|
}
|
|
216
|
-
function onTouchTap() {
|
|
222
|
+
function onTouchTap(tapEvent) {
|
|
217
223
|
if (!isEnabled() || isControlled.value || touchTriggerMode() === "none") return;
|
|
218
224
|
const trigger = triggerRef.value;
|
|
219
|
-
if (touchTriggerMode() === "auto" && trigger
|
|
225
|
+
if (trigger != null && (touchTriggerMode() === "auto" && isActionTrigger(trigger) || isTextEntryTap(trigger, tapEvent))) return;
|
|
220
226
|
if (isOpen.value) hideNow();
|
|
221
227
|
else showNow();
|
|
222
228
|
}
|
|
@@ -243,7 +249,7 @@ function useTooltip(options = {}) {
|
|
|
243
249
|
return;
|
|
244
250
|
}
|
|
245
251
|
if (event.pointerType === "touch") {
|
|
246
|
-
onTouchTap();
|
|
252
|
+
onTouchTap(event);
|
|
247
253
|
return;
|
|
248
254
|
}
|
|
249
255
|
if (isControlled.value) return;
|
|
@@ -345,6 +351,14 @@ function useTooltip(options = {}) {
|
|
|
345
351
|
}
|
|
346
352
|
describedByBefore = element.getAttribute("aria-describedby");
|
|
347
353
|
element.setAttribute("aria-describedby", [describedByBefore, layer.id].filter(Boolean).join(" "));
|
|
354
|
+
answerPresentInterest(presentInterest, element, {
|
|
355
|
+
hover: scheduleShow,
|
|
356
|
+
tap: (tapEvent) => {
|
|
357
|
+
isTouchPointer.value = true;
|
|
358
|
+
onTouchTap(tapEvent);
|
|
359
|
+
},
|
|
360
|
+
focus: (focused) => shouldListenFocus(element) && matchesFocusVisible(focused) && showNow()
|
|
361
|
+
});
|
|
348
362
|
}
|
|
349
363
|
function unbind() {
|
|
350
364
|
if (bound == null) return;
|
|
@@ -412,4 +426,4 @@ function useTooltip(options = {}) {
|
|
|
412
426
|
};
|
|
413
427
|
}
|
|
414
428
|
//#endregion
|
|
415
|
-
export {
|
|
429
|
+
export { tooltipPresentInterestKey as n, _sfc_main as r, useTooltip as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as useAstryxMessages } from "./context-
|
|
2
|
-
import { t as upstreamMessageMap } from "./upstreamMap-
|
|
1
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
2
|
+
import { t as upstreamMessageMap } from "./upstreamMap-DrkVNtXW.js";
|
|
3
3
|
//#region src/locale/useTranslator.ts
|
|
4
4
|
/**
|
|
5
5
|
* 对应原版 Astryx 的 `hooks/useTranslator`。
|