@astryx-vue/core 0.7.25 → 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.js +1 -1
- package/dist/{AlertDialog--9IcMdY3.js → AlertDialog-DZpJzvOC.js} +30 -15
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell--izaf9Fx.js → AppShell-D7ik41g-.js} +3 -3
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-CqPpL59Q.js → Avatar-D_C9RBJb.js} +6 -5
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-lmO-a3Eq.js → AvatarGroup-CFvNDgU-.js} +3 -3
- package/dist/Badge/index.js +1 -1
- package/dist/{Badge-DByZSDmu.js → Badge-BbPS_49c.js} +7 -3
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-BpiQjQvG.js → Banner-C1B7DsHS.js} +3 -3
- 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.js +2 -2
- package/dist/{Breadcrumbs-CH-rcc_-.js → Breadcrumbs-BgiZY7un.js} +8 -7
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-7W3G5gok.js → Button-DsjdehLZ.js} +179 -17
- 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-DjhwshS8.js → Calendar-Bzgi-XyF.js} +12 -3
- 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-RN3BV6qj.js → Carousel--VycM-Sa.js} +3 -3
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-D5cXLYlh.js → Chat-C1DlnlCQ.js} +30 -28
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-GFjf15n3.js → CheckboxInput-uk8nuCEf.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CJzRo5vd.js → CheckboxList-Dr4kQ-BC.js} +6 -6
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C_XMPOpv.js → Citation-BAFsn6N1.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-qeVRS9dw.js → ClickableCard-CvxSKkXh.js} +3 -2
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-9NMYGL48.js → CodeBlock-PSnUWX57.js} +5 -3
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-CifnTLlc.js → Collapsible-C_tl5-L0.js} +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BbGFrwAI.js → CommandPalette-lewtyQrO.js} +7 -7
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DMnzBMY1.js → ComplexSelector-BUnqjeW5.js} +14 -6
- package/dist/{ComponentIcon-hPmWTSXE.js → ComponentIcon-BRXBBKeG.js} +1 -1
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-BD3pObnQ.js → ContextMenu-IDkvorRp.js} +10 -9
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-CYFPGd__.js → DateInput-DTxxFz9-.js} +10 -10
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-BOdKqQUw.js → DateRangeInput-D4Us58KW.js} +8 -8
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-Bs4T8KWb.js → DateTimeInput-CliLnI7P.js} +9 -9
- 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-Dii5B7vE.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-CtuxdSAd.js → Drawer-DoQ9hjKz.js} +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-CXyECszu.js → DropdownMenu-B2iga1fe.js} +18 -13
- package/dist/{DropdownMenu-BmAeVIu5.js → DropdownMenu-BF2Z5T4h.js} +9 -9
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-DaVNSbYi.js → EmptyState-v1cvHKav.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-CdrGdY7U.js → Field-if5a58LO.js} +2 -2
- package/dist/{FieldIcon-BB08VXf7.js → FieldIcon-DMtfe1Ne.js} +1 -1
- package/dist/{FieldInfoTip-CPhFmGaY.js → FieldInfoTip-BJAaKJjM.js} +2 -2
- package/dist/{FieldLabel-lJ1exgvq.js → FieldLabel-C-IaUcP4.js} +3 -3
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-CR-cK1rW.js → FieldStatus-DSUCli4W.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-C85funO_.js → FileInput-0zBWfO8h.js} +8 -8
- 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.js +1 -1
- package/dist/{Icon-DAcZMgiJ.js → Icon-BCHo7W0x.js} +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-Cn4re9lo.js → IconButton-Crtfruc0.js} +1 -1
- 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-CQmrs5nz.js → InfoTip-DNQy7wqB.js} +3 -3
- package/dist/{InputClearButton-gGlttFrg.js → InputClearButton-DhvxPkK6.js} +3 -3
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-DQpDwkjF.js → InputGroup-B1kG0rBN.js} +22 -5
- 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-Dbf2g0Ee.js → Item-Cfv4ALls.js} +5 -2
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-Dn1LTcNY.js → Kbd-DyxKNYtE.js} +41 -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-Duz-OrsN.js → Lightbox-B8uMFPOS.js} +96 -17
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-C0NPH_Zy.js → Link-Kc2RQFHc.js} +4 -4
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-C8F4r-3e.js → ListItem-2evjQQ7n.js} +1 -1
- package/dist/Markdown/index.js +2 -2
- package/dist/{Markdown-B0K6WhMg.js → Markdown-NVkHi_tk.js} +6 -6
- 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-CPp7nRqq.js → MoreMenu-CpGEXWCd.js} +10 -10
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-EuMT3jk8.js → MultiSelector-Baca6xNx.js} +12 -12
- package/dist/{NavDisclosure-BbRWuyhq.js → NavDisclosure-DG4jls5z.js} +1 -1
- package/dist/{NavHeadingSurface-DemUziLF.js → NavHeadingSurface-j2gzMVKt.js} +3 -3
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-B_c92jqW.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-Crc0y9_s.js → NavMenuItem-DIMQohIa.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-nhsOtHSM.js → NumberInput-BBFGZ4Fg.js} +17 -8
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-CXQKfopf.js → Outline-BgDOI3ar.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-BGHiFBEV.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-DtItBecM.js → Pagination-Do_MIlo4.js} +16 -4
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-DE_a8vx0.js → Popover-Bd93LlDd.js} +7 -7
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-BPqinhNg.js → PowerSearch-DyqItMHo.js} +110 -41
- 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-DgD_qw8h.js → RadioGroup-Dzp4qSgm.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-BTfVjABV.js → RadioList-CAIgB1j_.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-5JnYYMyi.js → ResizeHandle-GAmiHb0-.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-BOFsp4zL.js → SegmentedControl-Bs74LlvS.js} +3 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-DkAtLqr0.js → SelectableCard-BFCwgtWf.js} +3 -2
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-Bb0Tw0IX.js → Selector-B9lINQRM.js} +11 -10
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-woP0TsbV.js → SideNav-DzZ12DIq.js} +8 -8
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DPNiq0HG.js → Slider-Cuk2ul9w.js} +3 -3
- 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.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-Ca1DQGyG.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-yKKscO-i.js → Switch-bnxiN6Qe.js} +4 -4
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-cg8Mrbs_.js → TabList-8dlO0Ws6.js} +12 -7
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-rUgNSJgQ.js → Table-j_DCDbcI.js} +93 -44
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +3 -2
- package/dist/{Text-BShV9dky.js → Text-WB-fpFne.js} +32 -29
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-D8703Iin.js → TextArea-Bzz_KcKT.js} +10 -10
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-C3TcHG4h.js → TextInput-givkH9HQ.js} +9 -9
- package/dist/Theme/index.js +1 -1
- package/dist/{Theme-DkFv7FGK.js → Theme-BQe--DY6.js} +19 -6
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-7hvPR8TA.js → Thumbnail-CZOWP5HN.js} +6 -6
- package/dist/{TimeField-D2vnhUvT.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-D31lgw-s.js → TimeInput-D9kvMQso.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-D0A9hh4O.js → Timer-BD2gSoQ3.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-BCYaQaDQ.js → Timestamp-CEdNhKc5.js} +5 -5
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BpumSIBN.js → Toast-CnZrcU-G.js} +4 -4
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DYGsPjtx.js → ToggleButton-BMn4yJXe.js} +27 -8
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DV53YBsy.js → Token-DWCDMawn.js} +96 -28
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DlptPLpP.js → Tokenizer-R0eC1BOk.js} +92 -9
- 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-ZTKVEADp.js → TopNav-DHunql9h.js} +7 -7
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CLWHRRDM.js → TreeList-Dg5gtkOu.js} +6 -4
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-Dd8pq0fI.js → Typeahead-BkmCC6DX.js} +47 -24
- package/dist/{TypeaheadMenu-Bu9HO-wZ.js → TypeaheadMenu-CFeJCv-6.js} +1 -1
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +12 -9
- package/dist/{composables-DamLUqw3.js → composables-DqJzanJ5.js} +5 -24
- 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/{index-CO9GW-ik.d.ts → index-B-3EGjfQ.d.ts} +1 -1
- package/dist/{index-C1zwvxPH.d.ts → index-B3yTdknp.d.ts} +1 -1
- package/dist/{index-Cy1rEWC-.d.ts → index-B449gOMC.d.ts} +2 -2
- package/dist/{index-GksCg4a4.d.ts → index-B7brdDVR.d.ts} +4 -4
- package/dist/{index-DEQ5cnUV.d.ts → index-BTljzczH.d.ts} +4 -1
- package/dist/{index-CEHqYyz5.d.ts → index-BfSZhAVv.d.ts} +1 -1
- package/dist/{index-CFm1rPma.d.ts → index-BjbPK91B.d.ts} +1 -1
- package/dist/{index-UFlyBbRd.d.ts → index-BngdKVro.d.ts} +1 -1
- package/dist/{index-EvhMa33P.d.ts → index-BnqDF_AX.d.ts} +7 -2
- package/dist/{index-D4BeRDzX.d.ts → index-BqEPgwku.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-BnEhvmdR.d.ts → index-CM2L3SUw.d.ts} +2 -0
- package/dist/{index-COgrQZIL.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-DX4HQToB.d.ts → index-D6pP-H_N.d.ts} +1 -1
- package/dist/{index-DAs54mND.d.ts → index-DCU6dy7n.d.ts} +12 -2
- package/dist/{index-CCYGMtZy.d.ts → index-DFDadgys.d.ts} +39 -39
- package/dist/{index-BzZC2Y7c.d.ts → index-DTfA4uE3.d.ts} +1 -1
- package/dist/{index-O9y23OPJ.d.ts → index-DneQgJfI.d.ts} +1 -1
- package/dist/{index-Ds4OafGN.d.ts → index-mJ_aqK5M.d.ts} +3 -3
- package/dist/{index-HLkEFNeu.d.ts → index-wkeCkhTi.d.ts} +11 -1
- package/dist/index.d.ts +27 -27
- package/dist/index.js +128 -124
- 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/{usePressFeedback-Dt76SpLj.js → pressFeedback-Bwwpex9q.js} +11 -49
- package/dist/{searchResultMessage-U_4q8zX3.js → searchResultMessage-CFmIy2Da.js} +2 -2
- 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/textDirection-D4ObTwbB.js +32 -0
- package/dist/tooltipTriggerRules-Bg4tG8w2.js +53 -0
- 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/{usePositionedLayer-psKf3ano.js → useDismiss-0-Z-9D0A.js} +52 -52
- package/dist/{useFileSelection-BPtaegqK.js → useFileSelection-B44UpbvF.js} +14 -4
- package/dist/{useIndicator-DGWEjVpB.js → useIndicator--9mGGlT2.js} +2 -2
- package/dist/{useInputContainer-BP3u3hGz.js → useInputContainer-BpLtCA-U.js} +1 -1
- package/dist/{useInputStatusIcon-CTF4yF3e.js → useInputStatusIcon-DCnx00BM.js} +2 -2
- package/dist/{useLayer-Byjda3dD.js → useLayer-CED-g4Q2.js} +1 -1
- package/dist/{useMenuDrillIn-DJ4U_hF7.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-DsFqXaGf.js → utils-BTkg5Ie9.js} +2 -1
- package/locales/en.json +8 -0
- package/package.json +1 -1
- package/styles/alert-dialog.css +19 -0
- package/styles/badge.css +7 -2
- package/styles/banner.css +6 -0
- package/styles/button-group.css +17 -0
- package/styles/button.css +13 -4
- package/styles/calendar.css +34 -0
- package/styles/chat.css +2 -0
- package/styles/checkbox-indicator.css +9 -9
- package/styles/checkbox-input.css +4 -1
- package/styles/context-menu.css +4 -0
- package/styles/dialog-header.css +2 -0
- package/styles/dropdown-menu.css +2 -0
- package/styles/field.css +2 -0
- package/styles/heading.css +4 -0
- package/styles/hover-card.css +2 -0
- package/styles/input-group.css +1 -0
- package/styles/layer.css +2 -0
- package/styles/lightbox.css +78 -0
- package/styles/link.css +5 -0
- package/styles/list.css +10 -1
- package/styles/metadata-list.css +1 -1
- package/styles/more-menu.css +6 -0
- package/styles/radio-indicator.css +21 -4
- package/styles/slider.css +2 -0
- package/styles/switch.css +2 -1
- package/styles/table.css +1 -1
- package/styles/text.css +8 -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/Heading-D0zL1j5T.js +0 -99
- package/dist/context-B6UElI5X.js +0 -5
- package/dist/index-LySSG_PR.d.ts +0 -27
- package/dist/useTruncation-C02rA1-c.js +0 -102
- package/dist/{index-BJ9Wim6J.d.ts → index-BqhgeAT4.d.ts} +1 -1
- package/dist/{useRestoreFocus-XEKs5-gp.js → useRestoreFocus-CEG0n2AK.js} +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as usePressFeedback } from "./usePressFeedback-
|
|
2
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
1
|
+
import { t as usePressFeedback } from "./usePressFeedback-Bcjsw9vv.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
|
|
3
3
|
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
4
|
-
import { t as _sfc_main$2 } from "./IconButton-
|
|
5
|
-
import { s as useAstryxMessages } from "./context-
|
|
6
|
-
import { t as _sfc_main$3 } from "./Tooltip-
|
|
7
|
-
import { t as _sfc_main$4 } from "./Spinner-
|
|
4
|
+
import { t as _sfc_main$2 } from "./IconButton-Crtfruc0.js";
|
|
5
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
6
|
+
import { t as _sfc_main$3 } from "./Tooltip-CGHpFMnc.js";
|
|
7
|
+
import { t as _sfc_main$4 } from "./Spinner-ke63bQPv.js";
|
|
8
8
|
import { t as _sfc_main$5 } from "./Skeleton-CrgWxJgr.js";
|
|
9
9
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, normalizeClass, normalizeStyle, openBlock, ref, unref, watch, withCtx } from "vue";
|
|
10
10
|
import "../styles/thumbnail.css";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { n as _sfc_main$2 } from "./BottomSheet-
|
|
2
|
-
import { t as _sfc_main$3 } from "./Icon-
|
|
1
|
+
import { n as _sfc_main$2 } from "./BottomSheet-CgOzQHaA.js";
|
|
2
|
+
import { t as _sfc_main$3 } from "./Icon-BCHo7W0x.js";
|
|
3
|
+
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-0-Z-9D0A.js";
|
|
4
|
+
import { a as isImeKeyEvent } from "./layerDepth-CNDh-IHb.js";
|
|
3
5
|
import { t as _sfc_main$4 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
4
6
|
import { t as _sfc_main$5 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
5
7
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
6
8
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as _sfc_main$7 } from "./IconButton-Cn4re9lo.js";
|
|
11
|
-
import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
9
|
+
import { t as _sfc_main$6 } from "./FieldIcon-DMtfe1Ne.js";
|
|
10
|
+
import { t as _sfc_main$7 } from "./IconButton-Crtfruc0.js";
|
|
11
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
12
12
|
import { a as parseISOTime, i as parseDisplayTime, n as formatISOTime, o as resolveTimeSurface, r as isTimeInRange, s as shiftTime, t as formatDisplayTime } from "./useTimeValue-BJd0xBhG.js";
|
|
13
13
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
14
|
-
import { t as _sfc_main$8 } from "./Spinner-
|
|
14
|
+
import { t as _sfc_main$8 } from "./Spinner-ke63bQPv.js";
|
|
15
15
|
import { i as useAriaRequired } from "./context-Cfml4jaK.js";
|
|
16
16
|
import { t as _sfc_main$9 } from "./PickerWheel-CSwUYfes.js";
|
|
17
17
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, openBlock, renderList, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { at as TimeInputSize, it as TimeInputProps, nt as _default, rt as TimeInputEmits } from "../index-
|
|
1
|
+
import { at as TimeInputSize, it as TimeInputProps, nt as _default, rt as TimeInputEmits } from "../index-DFDadgys.js";
|
|
2
2
|
export { _default as TimeInput, type TimeInputEmits, type TimeInputProps, type TimeInputSize };
|
package/dist/TimeInput/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../TimeInput-
|
|
1
|
+
import { t as _sfc_main } from "../TimeInput-D9kvMQso.js";
|
|
2
2
|
export { _sfc_main as TimeInput };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
|
|
2
2
|
import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
3
3
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
4
|
-
import { t as _sfc_main$1 } from "./Field-
|
|
4
|
+
import { t as _sfc_main$1 } from "./Field-if5a58LO.js";
|
|
5
5
|
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
6
|
-
import { t as _sfc_main$2 } from "./TimeField-
|
|
6
|
+
import { t as _sfc_main$2 } from "./TimeField-ByoS5s_I.js";
|
|
7
7
|
import { computed, createBlock, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, unref, useAttrs, useId, useModel, withCtx } from "vue";
|
|
8
8
|
//#region src/TimeInput/TimeInput.vue
|
|
9
9
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
package/dist/Timer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getPresentation, t as _sfc_main } from "../Timer-
|
|
1
|
+
import { n as getPresentation, t as _sfc_main } from "../Timer-BD2gSoQ3.js";
|
|
2
2
|
export { _sfc_main as Timer, getPresentation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Text-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Text-WB-fpFne.js";
|
|
2
2
|
import { computed, createBlock, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, useTemplateRef, watch, withCtx } from "vue";
|
|
3
3
|
import "../styles/timer.css";
|
|
4
4
|
//#region src/Timer/format.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-
|
|
1
|
+
import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-DFDadgys.js";
|
|
2
2
|
export { type FormatInstantOptions, type InstantFormat, _default as Timestamp, type TimestampColor, type TimestampFormat, type TimestampProps, type TimestampTooltipEntry, type TimestampTooltipFormat, type TimestampTooltipLine, formatInstant, formatRelativeTime, formatTooltipLines };
|
package/dist/Timestamp/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as formatInstant } from "../formatInstant-BDWUIxS7.js";
|
|
2
|
-
import { n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main } from "../Timestamp-
|
|
2
|
+
import { n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main } from "../Timestamp-CEdNhKc5.js";
|
|
3
3
|
export { _sfc_main as Timestamp, formatInstant, formatRelativeTime, formatTooltipLines };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as _sfc_main$2 } from "./IconButton-
|
|
2
|
-
import { o as useAstryxLocale, s as useAstryxMessages } from "./context-
|
|
3
|
-
import { t as _sfc_main$3 } from "./Text-
|
|
4
|
-
import { t as _sfc_main$4 } from "./HoverCard-
|
|
5
|
-
import { t as _sfc_main$5 } from "./ComponentIcon-
|
|
1
|
+
import { t as _sfc_main$2 } from "./IconButton-Crtfruc0.js";
|
|
2
|
+
import { o as useAstryxLocale, s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
3
|
+
import { t as _sfc_main$3 } from "./Text-WB-fpFne.js";
|
|
4
|
+
import { t as _sfc_main$4 } from "./HoverCard-CLcbBLBN.js";
|
|
5
|
+
import { t as _sfc_main$5 } from "./ComponentIcon-BRXBBKeG.js";
|
|
6
6
|
import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, watch, withCtx } from "vue";
|
|
8
8
|
import "../styles/timestamp.css";
|
package/dist/Toast/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main$1, r as _sfc_main, t as useToast } from "../Toast-
|
|
1
|
+
import { n as _sfc_main$1, r as _sfc_main, t as useToast } from "../Toast-CnZrcU-G.js";
|
|
2
2
|
export { _sfc_main as Toast, _sfc_main$1 as ToastViewport, useToast };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as hasInteractiveAncestor } from "./pressFeedback-Bwwpex9q.js";
|
|
2
2
|
import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
|
|
3
|
-
import { t as _sfc_main$2 } from "./Icon-
|
|
4
|
-
import { t as _sfc_main$3 } from "./IconButton-Cn4re9lo.js";
|
|
5
|
-
import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "./Icon-BCHo7W0x.js";
|
|
6
4
|
import { r as useLayerConfig } from "./context-M-er0-Rk.js";
|
|
5
|
+
import { t as _sfc_main$3 } from "./IconButton-Crtfruc0.js";
|
|
6
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
7
7
|
import { i as whenModalSettled, r as useActiveModalOutlet } from "./modalOutlet-CUOcrhIu.js";
|
|
8
8
|
import { n as useTheme, t as _sfc_main$4 } from "./MediaTheme-Bt7WBTkq.js";
|
|
9
9
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, markRaw, normalizeClass, normalizeProps, normalizeStyle, onMounted, onScopeDispose, onUnmounted, openBlock, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, watch, withCtx } from "vue";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-
|
|
1
|
+
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-DFDadgys.js";
|
|
2
2
|
export { _default as ToggleButton, _default as default, type ToggleButtonChangeAction, type ToggleButtonElevation, type ToggleButtonEmits, _default$1 as ToggleButtonGroup, type ToggleButtonGroupBaseProps, type ToggleButtonGroupEmits, type ToggleButtonGroupMultipleProps, type ToggleButtonGroupOrientation, type ToggleButtonGroupProps, type ToggleButtonGroupSingleProps, type ToggleButtonGroupSlots, type ToggleButtonGroupType, type ToggleButtonGroupValue, type ToggleButtonPressedChangeHandler, type ToggleButtonProps, type ToggleButtonSize, type ToggleButtonSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main$1, r as _sfc_main, t as ToggleButton_default } from "../ToggleButton-
|
|
1
|
+
import { n as _sfc_main$1, r as _sfc_main, t as ToggleButton_default } from "../ToggleButton-BMn4yJXe.js";
|
|
2
2
|
export { _sfc_main as ToggleButton, _sfc_main$1 as ToggleButtonGroup, ToggleButton_default as default };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { i as pressGroupItemProps } from "./context-CZP3jfy-.js";
|
|
2
|
+
import { t as useActionGroupTracking } from "./useActionGroupTracking-BncJjk1A.js";
|
|
1
3
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
-
import { t as _sfc_main$2 } from "./Button-
|
|
3
|
-
import {
|
|
4
|
+
import { t as _sfc_main$2 } from "./Button-DsjdehLZ.js";
|
|
5
|
+
import { t as useCoarsePointer } from "./useCoarsePointer-GItEMrjX.js";
|
|
6
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, mergeModels, mergeProps, openBlock, provide, renderSlot, shallowRef, toDisplayString, unref, useModel, useTemplateRef, withCtx } from "vue";
|
|
4
7
|
import "../styles/toggle-button.css";
|
|
5
8
|
//#region src/ToggleButton/context.ts
|
|
6
9
|
const toggleButtonGroupContextKey = defineLayerScopedKey("astryx-toggle-button-group", null);
|
|
@@ -62,6 +65,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
62
65
|
const isPressed = computed(() => groupPressed.value ?? optimisticPressed.value ?? isPressedModel.value);
|
|
63
66
|
const isDisabled = computed(() => (group?.isDisabled.value ?? false) || props.isDisabled);
|
|
64
67
|
const size = computed(() => props.size ?? group?.size.value ?? "md");
|
|
68
|
+
/** 跟踪滑动的组里,带 value 的切换按钮由组来画高亮、松手时切换。 */
|
|
69
|
+
const groupItemProps = computed(() => group?.tracksPress?.value === true && props.value != null ? pressGroupItemProps() : void 0);
|
|
65
70
|
const element = computed(() => button.value?.element ?? null);
|
|
66
71
|
function focus(options) {
|
|
67
72
|
element.value?.focus(options);
|
|
@@ -109,12 +114,13 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
109
114
|
focus
|
|
110
115
|
});
|
|
111
116
|
return (_ctx, _cache) => {
|
|
112
|
-
return openBlock(), createBlock(_sfc_main$2, {
|
|
117
|
+
return openBlock(), createBlock(_sfc_main$2, mergeProps({
|
|
113
118
|
ref_key: "button",
|
|
114
119
|
ref: button,
|
|
115
120
|
class: "astryx-toggle-button",
|
|
116
121
|
"aria-pressed": isPressed.value ? "true" : "false",
|
|
117
122
|
"data-pressed": isPressed.value ? "true" : "false",
|
|
123
|
+
"data-grouped": unref(group) != null ? "grouped" : void 0,
|
|
118
124
|
elevation: __props.elevation,
|
|
119
125
|
"is-disabled": isDisabled.value,
|
|
120
126
|
"is-icon-only": __props.isIconOnly,
|
|
@@ -124,18 +130,18 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
124
130
|
size: size.value,
|
|
125
131
|
tooltip: __props.tooltip,
|
|
126
132
|
variant: "ghost",
|
|
127
|
-
"click-action": clickAction.value
|
|
128
|
-
|
|
129
|
-
}, createSlots({
|
|
133
|
+
"click-action": clickAction.value
|
|
134
|
+
}, groupItemProps.value, { onClick: handleClick }), createSlots({
|
|
130
135
|
default: withCtx(() => [!__props.isIconOnly ? (openBlock(), createElementBlock("span", _hoisted_1$1, [createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])]), createElementVNode("span", _hoisted_3, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])])])) : createCommentVNode("v-if", true)]),
|
|
131
136
|
_: 2
|
|
132
137
|
}, [_ctx.$slots.icon || _ctx.$slots.pressedIcon ? {
|
|
133
138
|
name: "icon",
|
|
134
139
|
fn: withCtx(() => [isPressed.value && _ctx.$slots.pressedIcon ? renderSlot(_ctx.$slots, "pressedIcon", {}, void 0, void 0, 0) : renderSlot(_ctx.$slots, "icon", {}, void 0, void 0, 1)]),
|
|
135
140
|
key: "0"
|
|
136
|
-
} : void 0]),
|
|
141
|
+
} : void 0]), 1040, [
|
|
137
142
|
"aria-pressed",
|
|
138
143
|
"data-pressed",
|
|
144
|
+
"data-grouped",
|
|
139
145
|
"elevation",
|
|
140
146
|
"is-disabled",
|
|
141
147
|
"is-icon-only",
|
|
@@ -153,6 +159,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
153
159
|
const _hoisted_1 = [
|
|
154
160
|
"aria-label",
|
|
155
161
|
"data-orientation",
|
|
162
|
+
"data-press-tracking",
|
|
156
163
|
"data-size"
|
|
157
164
|
];
|
|
158
165
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -197,17 +204,29 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
197
204
|
value.value = next;
|
|
198
205
|
emit("change", next);
|
|
199
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* 触屏为主的设备上,手指和笔可以按住一个切换按钮滑到别的上面,只切换松手时手指下的那个;
|
|
209
|
+
* 在组外松手什么都不切换。鼠标还是原生按钮的行为。
|
|
210
|
+
*/
|
|
211
|
+
const root = useTemplateRef("root");
|
|
212
|
+
const isCoarse = useCoarsePointer();
|
|
213
|
+
const tracksPress = computed(() => isCoarse.value && !props.isDisabled);
|
|
214
|
+
useActionGroupTracking(root, { isEnabled: tracksPress });
|
|
200
215
|
provide(toggleButtonGroupContextKey, {
|
|
201
216
|
isDisabled,
|
|
202
217
|
selectedValues,
|
|
203
218
|
size,
|
|
204
|
-
toggle
|
|
219
|
+
toggle,
|
|
220
|
+
tracksPress
|
|
205
221
|
});
|
|
206
222
|
return (_ctx, _cache) => {
|
|
207
223
|
return openBlock(), createElementBlock("div", {
|
|
224
|
+
ref_key: "root",
|
|
225
|
+
ref: root,
|
|
208
226
|
class: "astryx-toggle-button-group",
|
|
209
227
|
"aria-label": __props.label,
|
|
210
228
|
"data-orientation": __props.orientation,
|
|
229
|
+
"data-press-tracking": tracksPress.value || void 0,
|
|
211
230
|
"data-size": size.value,
|
|
212
231
|
role: "group"
|
|
213
232
|
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1);
|
package/dist/Token/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-
|
|
1
|
+
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-BqhgeAT4.js";
|
|
2
2
|
export { TOKEN_COLORS, _default as Token, type TokenColor, type TokenEmits, type TokenProps, type TokenSize, type TokenSlots };
|
package/dist/Token/index.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { t as usePressFeedback } from "./usePressFeedback-
|
|
1
|
+
import { t as usePressFeedback } from "./usePressFeedback-Bcjsw9vv.js";
|
|
2
2
|
import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
|
|
3
3
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
4
4
|
import { t as useInteractiveRole } from "./useInteractiveRole-Cn0Nd5GX.js";
|
|
5
|
-
import { s as useAstryxMessages } from "./context-
|
|
5
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
6
6
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
7
|
+
import { t as textDirection } from "./textDirection-D4ObTwbB.js";
|
|
7
8
|
import { n as disabledInteractionProps } from "./disabledInteraction-CPzL8kVP.js";
|
|
8
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, unref, useAttrs, withCtx } from "vue";
|
|
9
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, unref, useAttrs, withCtx } from "vue";
|
|
9
10
|
import "../styles/visually-hidden-utility.css";
|
|
10
11
|
import "../styles/token.css";
|
|
12
|
+
//#region src/Token/namingContext.ts
|
|
13
|
+
const tokenNamingKey = Symbol("astryx-token-naming");
|
|
14
|
+
//#endregion
|
|
11
15
|
//#region src/Token/Token.vue
|
|
12
16
|
const _hoisted_1 = {
|
|
13
17
|
key: 0,
|
|
14
18
|
class: "astryx-token-icon",
|
|
15
19
|
"aria-hidden": "true"
|
|
16
20
|
};
|
|
17
|
-
const _hoisted_2 = ["
|
|
18
|
-
const _hoisted_3 = ["aria-
|
|
21
|
+
const _hoisted_2 = ["dir"];
|
|
22
|
+
const _hoisted_3 = ["aria-disabled"];
|
|
23
|
+
const _hoisted_4 = ["dir"];
|
|
24
|
+
const _hoisted_5 = ["dir"];
|
|
25
|
+
const _hoisted_6 = ["aria-label", "aria-disabled"];
|
|
19
26
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
20
27
|
name: "AstryxToken",
|
|
21
28
|
inheritAttrs: false,
|
|
@@ -60,8 +67,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
60
67
|
if (safeHref.value == null || linkComponent.value == null) return "a";
|
|
61
68
|
return toRaw(linkComponent.value);
|
|
62
69
|
});
|
|
63
|
-
const
|
|
64
|
-
const
|
|
70
|
+
const naming = inject(tokenNamingKey, null);
|
|
71
|
+
const removeLabel = computed(() => messages.value.token.remove(naming?.value.removeName ?? props.label));
|
|
72
|
+
const clickable = computed(() => attrs.onClick != null);
|
|
65
73
|
const linked = computed(() => safeHref.value != null);
|
|
66
74
|
const interactive = computed(() => clickable.value || linked.value || props.removable);
|
|
67
75
|
const rootIsLink = computed(() => linked.value && !props.removable);
|
|
@@ -74,18 +82,60 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
74
82
|
const actionIsButton = computed(() => actionRole.role.value === "button");
|
|
75
83
|
/** 禁用时不再用原生 disabled,改用可聚焦的 aria-disabled 加共用事件守卫。 */
|
|
76
84
|
const disabledInteraction = computed(() => props.disabled ? disabledInteractionProps() : void 0);
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
85
|
+
/** 没有右到左字母的标签按左到右排,`@alice`、`C++` 在右到左页面上不会被重排。 */
|
|
86
|
+
const labelDir = computed(() => textDirection(props.label));
|
|
87
|
+
/**
|
|
88
|
+
* 命名、弹层和按下状态这几个属性要落在承担动作的元素上:
|
|
89
|
+
* 可点击 token 落在里面的按钮上,其余结构落在根上。
|
|
90
|
+
*/
|
|
91
|
+
const ACTION_ARIA = /* @__PURE__ */ new Set([
|
|
92
|
+
"aria-labelledby",
|
|
93
|
+
"aria-describedby",
|
|
94
|
+
"aria-haspopup",
|
|
95
|
+
"aria-expanded",
|
|
96
|
+
"aria-pressed"
|
|
97
|
+
]);
|
|
98
|
+
function ariaName(key) {
|
|
99
|
+
return /^aria[A-Z]/.test(key) ? key.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`) : key;
|
|
100
|
+
}
|
|
101
|
+
const actionAria = computed(() => {
|
|
102
|
+
if (!actionIsButton.value) return {};
|
|
103
|
+
const own = Object.fromEntries(Object.entries(attrs).filter(([key]) => ACTION_ARIA.has(ariaName(key))));
|
|
104
|
+
const actionName = naming?.value.actionName;
|
|
105
|
+
return own["aria-labelledby"] == null && own.ariaLabelledby == null && actionName ? {
|
|
106
|
+
"aria-label": actionName,
|
|
107
|
+
...own
|
|
108
|
+
} : own;
|
|
109
|
+
});
|
|
110
|
+
function callListener(listener, event) {
|
|
111
|
+
if (typeof listener === "function") listener(event);
|
|
112
|
+
else if (Array.isArray(listener)) listener.forEach((item) => callListener(item, event));
|
|
113
|
+
}
|
|
114
|
+
/** 有地址的 token 也调用调用方的 click:链接本身就是它的动作。 */
|
|
115
|
+
function runLinkClick(event) {
|
|
116
|
+
callListener(attrs.onClick, event);
|
|
117
|
+
}
|
|
118
|
+
const rootAttrs = computed(() => {
|
|
119
|
+
const own = {};
|
|
120
|
+
for (const [key, value] of Object.entries(attrs)) {
|
|
121
|
+
if (key === "onClick" || actionIsButton.value && ACTION_ARIA.has(ariaName(key))) continue;
|
|
122
|
+
if (key === "onKeydown" && rootIsLink.value && props.disabled) continue;
|
|
123
|
+
own[key] = value;
|
|
124
|
+
}
|
|
125
|
+
if (interactive.value && !props.disabled) Object.assign(own, press.pressableProps);
|
|
126
|
+
if (rootIsLink.value) {
|
|
127
|
+
if (props.disabled) Object.assign(own, disabledInteractionProps((event) => callListener(attrs.onKeydown, event)));
|
|
128
|
+
else own.onClick = runLinkClick;
|
|
129
|
+
}
|
|
130
|
+
return own;
|
|
131
|
+
});
|
|
81
132
|
function runClick(event) {
|
|
82
133
|
if (props.disabled) {
|
|
83
134
|
event.preventDefault();
|
|
84
135
|
event.stopPropagation();
|
|
85
136
|
return;
|
|
86
137
|
}
|
|
87
|
-
|
|
88
|
-
if (typeof listener === "function") listener(event);
|
|
138
|
+
callListener(attrs.onClick, event);
|
|
89
139
|
}
|
|
90
140
|
function onRemoveClick(event) {
|
|
91
141
|
event.stopPropagation();
|
|
@@ -103,50 +153,66 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
103
153
|
emit("remove", event);
|
|
104
154
|
}
|
|
105
155
|
return (_ctx, _cache) => {
|
|
106
|
-
return openBlock(), createBlock(resolveDynamicComponent(rootIsLink.value ? linkRoot.value : "span"), mergeProps(rootAttrs.value, {
|
|
156
|
+
return openBlock(), createBlock(resolveDynamicComponent(rootIsLink.value ? props.disabled ? "a" : linkRoot.value : "span"), mergeProps(rootAttrs.value, {
|
|
107
157
|
class: ["astryx-token", [`size-${props.size}`, {
|
|
108
158
|
"is-interactive": interactive.value,
|
|
109
159
|
"is-disabled": props.disabled
|
|
110
160
|
}]],
|
|
111
161
|
"data-color": props.color,
|
|
162
|
+
"data-disabled": props.disabled || void 0,
|
|
112
163
|
href: rootIsLink.value && !props.disabled ? safeHref.value : void 0,
|
|
113
164
|
to: rootIsLink.value && !props.disabled && linkRoot.value !== "a" ? safeHref.value : void 0,
|
|
114
|
-
|
|
165
|
+
role: rootIsLink.value && props.disabled ? "link" : void 0,
|
|
166
|
+
"aria-disabled": rootIsLink.value && props.disabled ? "true" : void 0,
|
|
115
167
|
"aria-label": unref(hideLabel) ? props.label : void 0,
|
|
116
168
|
"aria-description": props.description,
|
|
117
|
-
tabindex: rootIsLink.value && props.disabled ?
|
|
169
|
+
tabindex: rootIsLink.value && props.disabled ? 0 : void 0,
|
|
118
170
|
onKeydown
|
|
119
171
|
}), {
|
|
120
172
|
default: withCtx(() => [
|
|
121
173
|
_ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("v-if", true),
|
|
122
|
-
actionIsLink.value ? (openBlock(), createBlock(resolveDynamicComponent(
|
|
174
|
+
actionIsLink.value ? (openBlock(), createBlock(resolveDynamicComponent(props.disabled ? "a" : linkRoot.value), mergeProps({
|
|
123
175
|
key: 1,
|
|
124
|
-
class: "astryx-token-action"
|
|
125
|
-
}, unref(press).pressActionProps, {
|
|
176
|
+
class: "astryx-token-action",
|
|
126
177
|
href: props.disabled ? void 0 : safeHref.value,
|
|
127
178
|
to: props.disabled || linkRoot.value === "a" ? void 0 : safeHref.value,
|
|
179
|
+
role: props.disabled ? "link" : void 0,
|
|
128
180
|
"aria-disabled": props.disabled || void 0,
|
|
129
|
-
tabindex: props.disabled ?
|
|
181
|
+
tabindex: props.disabled ? 0 : void 0
|
|
182
|
+
}, {
|
|
183
|
+
...unref(press).pressActionProps,
|
|
184
|
+
...props.disabled ? disabledInteraction.value : { onClick: runLinkClick }
|
|
130
185
|
}), {
|
|
131
|
-
default: withCtx(() => [createElementVNode("span", {
|
|
186
|
+
default: withCtx(() => [createElementVNode("span", {
|
|
187
|
+
class: normalizeClass(["astryx-token-label", { "is-hidden": unref(hideLabel) }]),
|
|
188
|
+
dir: labelDir.value
|
|
189
|
+
}, toDisplayString(props.label), 11, _hoisted_2)]),
|
|
132
190
|
_: 1
|
|
133
191
|
}, 16, [
|
|
134
192
|
"href",
|
|
135
193
|
"to",
|
|
194
|
+
"role",
|
|
136
195
|
"aria-disabled",
|
|
137
196
|
"tabindex"
|
|
138
197
|
])) : actionIsButton.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
139
198
|
key: 2,
|
|
140
199
|
type: "button",
|
|
141
|
-
class: "astryx-token-action"
|
|
142
|
-
"aria-disabled": props.disabled || void 0
|
|
200
|
+
class: "astryx-token-action"
|
|
143
201
|
}, {
|
|
202
|
+
...actionAria.value,
|
|
144
203
|
...disabledInteraction.value,
|
|
145
204
|
...unref(press).pressActionProps
|
|
146
|
-
}, {
|
|
205
|
+
}, {
|
|
206
|
+
"aria-disabled": props.disabled || void 0,
|
|
207
|
+
onClick: runClick
|
|
208
|
+
}), [createElementVNode("span", {
|
|
209
|
+
class: normalizeClass(["astryx-token-label", { "is-hidden": unref(hideLabel) }]),
|
|
210
|
+
dir: labelDir.value
|
|
211
|
+
}, toDisplayString(props.label), 11, _hoisted_4)], 16, _hoisted_3)) : (openBlock(), createElementBlock("span", {
|
|
147
212
|
key: 3,
|
|
148
|
-
class: normalizeClass(["astryx-token-label", { "is-hidden": unref(hideLabel) }])
|
|
149
|
-
|
|
213
|
+
class: normalizeClass(["astryx-token-label", { "is-hidden": unref(hideLabel) }]),
|
|
214
|
+
dir: labelDir.value
|
|
215
|
+
}, toDisplayString(props.label), 11, _hoisted_5)),
|
|
150
216
|
renderSlot(_ctx.$slots, "end", {}, () => [renderSlot(_ctx.$slots, "endContent")]),
|
|
151
217
|
props.removable ? (openBlock(), createElementBlock("button", mergeProps({
|
|
152
218
|
key: 4,
|
|
@@ -165,14 +231,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
165
231
|
stroke: "currentColor",
|
|
166
232
|
"stroke-width": "1.5",
|
|
167
233
|
"stroke-linecap": "round"
|
|
168
|
-
})], -1)])], 16,
|
|
234
|
+
})], -1)])], 16, _hoisted_6)) : createCommentVNode("v-if", true)
|
|
169
235
|
]),
|
|
170
236
|
_: 3
|
|
171
237
|
}, 16, [
|
|
172
238
|
"class",
|
|
173
239
|
"data-color",
|
|
240
|
+
"data-disabled",
|
|
174
241
|
"href",
|
|
175
242
|
"to",
|
|
243
|
+
"role",
|
|
176
244
|
"aria-disabled",
|
|
177
245
|
"aria-label",
|
|
178
246
|
"aria-description",
|
|
@@ -182,4 +250,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
182
250
|
}
|
|
183
251
|
});
|
|
184
252
|
//#endregion
|
|
185
|
-
export { _sfc_main as t };
|
|
253
|
+
export { tokenNamingKey as n, _sfc_main as t };
|
package/dist/Tokenizer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Tokenizer-
|
|
1
|
+
import { t as _sfc_main } from "../Tokenizer-R0eC1BOk.js";
|
|
2
2
|
export { _sfc_main as Tokenizer };
|
|
@@ -1,22 +1,100 @@
|
|
|
1
1
|
import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
2
|
+
import { a as isImeKeyEvent } from "./layerDepth-CNDh-IHb.js";
|
|
3
|
+
import { r as trackInteractionModality, t as getInteractionModality } from "./interactionModality-ACpTMhak.js";
|
|
2
4
|
import { t as _sfc_main$1 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
3
5
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
4
6
|
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
5
|
-
import {
|
|
6
|
-
import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
7
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
7
8
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
8
9
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
9
10
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
10
|
-
import { t as _sfc_main$2 } from "./Field-
|
|
11
|
+
import { t as _sfc_main$2 } from "./Field-if5a58LO.js";
|
|
11
12
|
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
12
|
-
import { t as _sfc_main$3 } from "./Token-
|
|
13
|
-
import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-
|
|
14
|
-
import { i as useTypeaheadMenu, r as useLatchedOptionGrid, t as _sfc_main$4 } from "./TypeaheadMenu-
|
|
15
|
-
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useAttrs, useId, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
|
|
13
|
+
import { t as _sfc_main$3 } from "./Token-DWCDMawn.js";
|
|
14
|
+
import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-9Gn8asBR.js";
|
|
15
|
+
import { i as useTypeaheadMenu, r as useLatchedOptionGrid, t as _sfc_main$4 } from "./TypeaheadMenu-CFeJCv-6.js";
|
|
16
|
+
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useAttrs, useId, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
|
|
16
17
|
import "../styles/layer.css";
|
|
17
18
|
import "../styles/visually-hidden-utility.css";
|
|
18
19
|
import "../styles/typeahead.css";
|
|
19
20
|
import "../styles/tokenizer.css";
|
|
21
|
+
//#region src/composables/internal/useTokenRemoveTap.ts
|
|
22
|
+
/**
|
|
23
|
+
* 手指点 Token 自带的删除按钮时,别把触屏键盘弹起来。
|
|
24
|
+
*
|
|
25
|
+
* 触屏浏览器在一次点按里聚焦输入框就会弹出键盘。标签输入框删掉一个标签后
|
|
26
|
+
* 默认把焦点交回输入框,于是手指每删一个标签都要再收一次键盘。这里记下
|
|
27
|
+
* 字段里最近一次按下:手指按在删除按钮上、而输入框当时没有焦点(键盘是收着的)
|
|
28
|
+
* 时,删除后焦点留在原处,被按的删除按钮也不接焦点。鼠标、笔、按键删除,
|
|
29
|
+
* 以及键盘已经弹起时的点按,都照旧把焦点交回输入框。
|
|
30
|
+
*/
|
|
31
|
+
/** Token 自带的删除按钮。自定义插槽画的删除控件不算。 */
|
|
32
|
+
const TOKEN_REMOVE_SELECTOR = ".astryx-token-remove";
|
|
33
|
+
function removeControlOf(target) {
|
|
34
|
+
return target instanceof Element ? target.closest(TOKEN_REMOVE_SELECTOR) : null;
|
|
35
|
+
}
|
|
36
|
+
function useTokenRemoveTap(options) {
|
|
37
|
+
trackInteractionModality();
|
|
38
|
+
let press = null;
|
|
39
|
+
let endTimer;
|
|
40
|
+
/** 键盘是收着的:最近一次是手指按下,当时输入框没有焦点,之后也没按过键。 */
|
|
41
|
+
function wasKeyboardDown() {
|
|
42
|
+
return press != null && press.isFinger && !press.inputHadFocus && getInteractionModality() === "pointer";
|
|
43
|
+
}
|
|
44
|
+
function onPointerDown(event) {
|
|
45
|
+
clearTimeout(endTimer);
|
|
46
|
+
const input = options.input.value;
|
|
47
|
+
press = {
|
|
48
|
+
inputHadFocus: input != null && input.ownerDocument.activeElement === input,
|
|
49
|
+
isFinger: event.pointerType === "touch",
|
|
50
|
+
pressedRemove: removeControlOf(event.target)
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/** 手指点按后浏览器补发的 mousedown 会让按钮抢到焦点,键盘收着时取消它。 */
|
|
54
|
+
function onMouseDown(event) {
|
|
55
|
+
if (removeControlOf(event.target) != null && wasKeyboardDown()) event.preventDefault();
|
|
56
|
+
}
|
|
57
|
+
/** 这次按下的记录随点按结束:click 所在的任务跑完,或者浏览器把按下接管成滚动。 */
|
|
58
|
+
function onClick() {
|
|
59
|
+
clearTimeout(endTimer);
|
|
60
|
+
endTimer = setTimeout(() => {
|
|
61
|
+
press = null;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
function onPointerCancel() {
|
|
65
|
+
press = null;
|
|
66
|
+
}
|
|
67
|
+
const listeners = [
|
|
68
|
+
["pointerdown", onPointerDown],
|
|
69
|
+
["mousedown", onMouseDown],
|
|
70
|
+
["click", onClick],
|
|
71
|
+
["pointercancel", onPointerCancel]
|
|
72
|
+
];
|
|
73
|
+
let boundTo = null;
|
|
74
|
+
function bindTo(element) {
|
|
75
|
+
if (element === boundTo) return;
|
|
76
|
+
for (const [type, listener] of listeners) {
|
|
77
|
+
boundTo?.removeEventListener(type, listener, true);
|
|
78
|
+
element?.addEventListener(type, listener, true);
|
|
79
|
+
}
|
|
80
|
+
boundTo = element;
|
|
81
|
+
}
|
|
82
|
+
onMounted(() => bindTo(options.root.value));
|
|
83
|
+
watch(options.root, (element) => bindTo(element), { flush: "post" });
|
|
84
|
+
onBeforeUnmount(() => {
|
|
85
|
+
clearTimeout(endTimer);
|
|
86
|
+
bindTo(null);
|
|
87
|
+
});
|
|
88
|
+
function shouldFocusInputAfterRemove() {
|
|
89
|
+
const pressed = wasKeyboardDown() ? press?.pressedRemove ?? null : null;
|
|
90
|
+
if (pressed == null) return true;
|
|
91
|
+
const active = pressed.ownerDocument.activeElement;
|
|
92
|
+
const token = pressed.closest(options.tokenSelector) ?? pressed;
|
|
93
|
+
return active != null && token.contains(active);
|
|
94
|
+
}
|
|
95
|
+
return { shouldFocusInputAfterRemove };
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
20
98
|
//#region src/Tokenizer/inputAttrs.ts
|
|
21
99
|
/**
|
|
22
100
|
* 这些属性由组件自己算,不能让外面透传的值盖掉。
|
|
@@ -298,6 +376,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
298
376
|
onMounted(() => {
|
|
299
377
|
if (props.hasAutoFocus) inputRef.value?.focus();
|
|
300
378
|
});
|
|
379
|
+
const removeTap = useTokenRemoveTap({
|
|
380
|
+
root: anchorRef,
|
|
381
|
+
input: inputRef,
|
|
382
|
+
tokenSelector: ".astryx-tokenizer-token"
|
|
383
|
+
});
|
|
301
384
|
const tokenCount = computed(() => values.value.length);
|
|
302
385
|
const overflow = useOverflow(tokenCount, { gap: 4 });
|
|
303
386
|
const visibleCount = computed(() => collapsed.value ? overflow.visibleCount.value : tokenCount.value);
|
|
@@ -336,7 +419,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
336
419
|
item
|
|
337
420
|
});
|
|
338
421
|
announce(messages.value.tokenizer.removed(item.label));
|
|
339
|
-
nextTick(() => inputRef.value?.focus());
|
|
422
|
+
if (removeTap.shouldFocusInputAfterRemove()) nextTick(() => inputRef.value?.focus());
|
|
340
423
|
}
|
|
341
424
|
function clearAll(event) {
|
|
342
425
|
event?.stopPropagation();
|
|
@@ -674,4 +757,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
674
757
|
}
|
|
675
758
|
});
|
|
676
759
|
//#endregion
|
|
677
|
-
export { _sfc_main as t };
|
|
760
|
+
export { useTokenRemoveTap as n, _sfc_main as t };
|
package/dist/Toolbar/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { T as _default } from "../index-
|
|
1
|
+
import { T as _default } from "../index-DFDadgys.js";
|
|
2
2
|
import { $ as ToolbarSize, Q as ToolbarProps, Z as ToolbarOrientation } from "../useResizable-fEGAFziz.js";
|
|
3
3
|
export { _default as Toolbar, type ToolbarOrientation, type ToolbarProps, type ToolbarSize };
|
package/dist/Toolbar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Toolbar-
|
|
1
|
+
import { t as _sfc_main } from "../Toolbar-BH_E0F0G.js";
|
|
2
2
|
export { _sfc_main as Toolbar };
|
|
@@ -60,7 +60,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
60
60
|
class: normalizeClass(["astryx-toolbar", [
|
|
61
61
|
`astryx-toolbar--${__props.size}`,
|
|
62
62
|
`astryx-toolbar--${__props.orientation}`,
|
|
63
|
-
{
|
|
63
|
+
{
|
|
64
|
+
"astryx-toolbar--centered": _ctx.$slots.center,
|
|
65
|
+
"astryx-toolbar--two-lane": _ctx.$slots.start && _ctx.$slots.end && !_ctx.$slots.center && __props.orientation !== "vertical"
|
|
66
|
+
}
|
|
64
67
|
]]),
|
|
65
68
|
role: "toolbar",
|
|
66
69
|
"aria-label": __props.label,
|