@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,17 +1,140 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as hasSlotContent } from "./slotContent-CNWOrGOr.js";
|
|
2
|
+
import { i as pressGroupItemProps, t as buttonGroupContextKey } from "./context-CZP3jfy-.js";
|
|
3
|
+
import { t as usePressFeedback } from "./usePressFeedback-Bcjsw9vv.js";
|
|
2
4
|
import { n as readLayerScoped } from "./scopedProvide-C-Df7c15.js";
|
|
3
|
-
import { a as provideIconSize, t as _sfc_main$
|
|
5
|
+
import { a as provideIconSize, t as _sfc_main$3 } from "./Icon-BCHo7W0x.js";
|
|
4
6
|
import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
|
|
5
7
|
import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
|
|
6
8
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
7
9
|
import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
10
|
+
import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
|
|
11
|
+
import { t as useLayer } from "./useLayer-CED-g4Q2.js";
|
|
12
|
+
import { t as _sfc_main$4 } from "./LayerContentBoundary-CvsKxwwm.js";
|
|
13
|
+
import { n as isKeyboardModality } from "./interactionModality-ACpTMhak.js";
|
|
14
|
+
import { r as matchesFocusVisible } from "./tooltipTriggerRules-Bg4tG8w2.js";
|
|
15
|
+
import { t as _sfc_main$5 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
16
|
+
import { t as _sfc_main$6 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
11
17
|
import { t as invokeNativeEventHandler } from "./eventHandlers-DUXzBWZy.js";
|
|
12
18
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
13
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, onBeforeUnmount, onMounted, openBlock, ref, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, unref, useAttrs, useId, useSlots, useTemplateRef, withCtx } from "vue";
|
|
19
|
+
import { Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, toRef, unref, useAttrs, useId, useSlots, useTemplateRef, withCtx } from "vue";
|
|
20
|
+
import "../styles/tooltip.css";
|
|
14
21
|
import "../styles/button.css";
|
|
22
|
+
//#region src/Text/cutText.ts
|
|
23
|
+
/**
|
|
24
|
+
* 量一个组件自己的文字(按钮标签、表头标题)有没有被截短,以及看得见的那段文字是什么。
|
|
25
|
+
* 隐藏的、只给读屏用的、以及输入框里的值都不算这段文字。
|
|
26
|
+
*/
|
|
27
|
+
const FIELD_SELECTOR = "input, textarea, select, [contenteditable]:not([contenteditable=\"false\"]), [role=\"combobox\"], [role=\"listbox\"], [role=\"searchbox\"], [role=\"spinbutton\"], [role=\"slider\"], [role=\"textbox\"]";
|
|
28
|
+
/** 盒子是否裁掉了自己的内容。 */
|
|
29
|
+
function overflows(element) {
|
|
30
|
+
const box = element.clientWidth || (element instanceof HTMLElement ? element.offsetWidth : 0);
|
|
31
|
+
return box > 0 && element.scrollWidth > box;
|
|
32
|
+
}
|
|
33
|
+
/** 只给读屏看的隐藏写法(VisuallyHidden)。 */
|
|
34
|
+
function isVisuallyHidden(element) {
|
|
35
|
+
const style = element.ownerDocument.defaultView?.getComputedStyle(element);
|
|
36
|
+
return style != null && style.position === "absolute" && (style.clip !== "" && style.clip !== "auto" || style.clipPath !== "" && style.clipPath !== "none");
|
|
37
|
+
}
|
|
38
|
+
/** 不算进文字的元素:隐藏的、隐藏副本(ToggleButton 预留粗体宽度用的)、只给读屏的,或输入控件。 */
|
|
39
|
+
function isLeftOut(element) {
|
|
40
|
+
return element.closest(`[hidden], [aria-hidden="true"], ${FIELD_SELECTOR}`) != null || isVisuallyHidden(element);
|
|
41
|
+
}
|
|
42
|
+
/** 文字是否被截短:它自己的盒子,或里面一个看得见的盒子,裁掉了内容。 */
|
|
43
|
+
function isTextCut(element) {
|
|
44
|
+
return overflows(element) || [...element.querySelectorAll("*")].some((child) => !isLeftOut(child) && overflows(child));
|
|
45
|
+
}
|
|
46
|
+
/** 明眼读者看到的文字:去掉隐藏的、只给读屏的和输入框里的文字,空白合并成一个空格。 */
|
|
47
|
+
function visibleText(root) {
|
|
48
|
+
let text = "";
|
|
49
|
+
const walk = (node) => {
|
|
50
|
+
if (node.nodeType === Node.TEXT_NODE) text += node.textContent ?? "";
|
|
51
|
+
else if (node instanceof Element && !isLeftOut(node)) node.childNodes.forEach(walk);
|
|
52
|
+
};
|
|
53
|
+
walk(root);
|
|
54
|
+
return text.replace(/\s+/g, " ").trim();
|
|
55
|
+
}
|
|
56
|
+
/** 调用方自己的 Tooltip 已经在描述这个元素:截断提示让给它,同一处只出现一个提示。 */
|
|
57
|
+
function hasCallerTooltip(element) {
|
|
58
|
+
return (element.getAttribute("aria-describedby")?.split(/\s+/) ?? []).some((id) => id !== "" && element.ownerDocument.getElementById(id)?.getAttribute("role") === "tooltip");
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/Text/CutTextTooltip.vue
|
|
62
|
+
const _hoisted_1$2 = ["id", "data-placement"];
|
|
63
|
+
const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
64
|
+
name: "AstryxCutTextTooltip",
|
|
65
|
+
__name: "CutTextTooltip",
|
|
66
|
+
props: {
|
|
67
|
+
anchor: {},
|
|
68
|
+
text: {}
|
|
69
|
+
},
|
|
70
|
+
setup(__props) {
|
|
71
|
+
/**
|
|
72
|
+
* 显示被截短的完整文字(按钮标签、表头标题)。挂着就是打开的,由使用方决定何时卸载。
|
|
73
|
+
* 内容就是锚点自己的名称,所以不给锚点加 aria-describedby,读屏不会把名称再读一遍。
|
|
74
|
+
*/
|
|
75
|
+
const props = __props;
|
|
76
|
+
const anchor = toRef(props, "anchor");
|
|
77
|
+
const layer = useLayer({
|
|
78
|
+
mode: "context",
|
|
79
|
+
anchor,
|
|
80
|
+
placement: "above",
|
|
81
|
+
gap: 4,
|
|
82
|
+
isDefaultOpen: true
|
|
83
|
+
});
|
|
84
|
+
const target = useResolvedLayerTeleport(computed(() => props.anchor));
|
|
85
|
+
function setContentRef(value) {
|
|
86
|
+
layer.contentRef.value = value;
|
|
87
|
+
}
|
|
88
|
+
return (_ctx, _cache) => {
|
|
89
|
+
return openBlock(), createBlock(Teleport, { to: unref(target) }, [createElementVNode("div", {
|
|
90
|
+
id: unref(layer).id,
|
|
91
|
+
ref: setContentRef,
|
|
92
|
+
class: "astryx-tooltip",
|
|
93
|
+
role: "tooltip",
|
|
94
|
+
"data-placement": unref(layer).resolvedPlacement.value,
|
|
95
|
+
style: normalizeStyle(unref(layer).contentStyle.value)
|
|
96
|
+
}, [createVNode(_sfc_main$4, null, {
|
|
97
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.text), 1)]),
|
|
98
|
+
_: 1
|
|
99
|
+
})], 12, _hoisted_1$2)], 8, ["to"]);
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/Text/useCutTextOnKeyboardFocus.ts
|
|
105
|
+
/**
|
|
106
|
+
* 组件自己的文字(按钮标签、表头标题)被截短时,键盘焦点到达就在提示里显示完整文字。
|
|
107
|
+
* 只在聚焦那一刻测量,平时什么都不量;悬停、指针点进的输入框和手指轻点都不显示。
|
|
108
|
+
* 提示的内容就是元素自己的名称,所以它不挂 aria-describedby,读屏只读一遍名称。
|
|
109
|
+
*/
|
|
110
|
+
function useCutTextOnKeyboardFocus(options) {
|
|
111
|
+
const cutText = shallowRef(null);
|
|
112
|
+
function hide() {
|
|
113
|
+
cutText.value = null;
|
|
114
|
+
}
|
|
115
|
+
function onFocusin(event) {
|
|
116
|
+
const anchor = options.anchor();
|
|
117
|
+
const measured = options.measure?.() ?? anchor;
|
|
118
|
+
const target = event.target;
|
|
119
|
+
if (!options.isEnabled() || anchor == null || measured == null || !(target instanceof Element) || !anchor.contains(target) || !matchesFocusVisible(target) || !isKeyboardModality()) return;
|
|
120
|
+
const text = visibleText(measured);
|
|
121
|
+
const isCut = text !== "" && !(options.isSuppressed?.(anchor) ?? false) && isTextCut(measured);
|
|
122
|
+
cutText.value = isCut ? text : null;
|
|
123
|
+
}
|
|
124
|
+
function onFocusout(event) {
|
|
125
|
+
const next = event.relatedTarget;
|
|
126
|
+
if (next instanceof Node && options.anchor()?.contains(next)) return;
|
|
127
|
+
hide();
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
cutText,
|
|
131
|
+
hide,
|
|
132
|
+
onFocusin,
|
|
133
|
+
onFocusout,
|
|
134
|
+
onPointerdown: hide
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
//#endregion
|
|
15
138
|
//#region src/Button/ButtonSpinner.vue
|
|
16
139
|
const _hoisted_1$1 = ["aria-label"];
|
|
17
140
|
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
@@ -78,6 +201,7 @@ const _hoisted_3 = {
|
|
|
78
201
|
};
|
|
79
202
|
const _hoisted_4 = {
|
|
80
203
|
key: 1,
|
|
204
|
+
ref: "labelText",
|
|
81
205
|
class: "astryx-button__label"
|
|
82
206
|
};
|
|
83
207
|
const _hoisted_5 = {
|
|
@@ -135,6 +259,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
135
259
|
const renderedRoot = useTemplateRef("root");
|
|
136
260
|
const tooltipId = `astryx-button-tooltip-${useId()}`;
|
|
137
261
|
const press = usePressFeedback({ hasOverlay: false });
|
|
262
|
+
/** 菜单、列表框这类触发器保留自己的按压和打开方式,组不跟踪它。 */
|
|
263
|
+
const MENU_POPUPS = /* @__PURE__ */ new Set([
|
|
264
|
+
"true",
|
|
265
|
+
"menu",
|
|
266
|
+
"listbox"
|
|
267
|
+
]);
|
|
268
|
+
/** 跟踪滑动的按钮组里,这个按钮的手指、笔按压由组来画、松手由组来执行。 */
|
|
269
|
+
const groupItemProps = computed(() => group?.tracksPress?.value === true && !MENU_POPUPS.has(String(attrs["aria-haspopup"])) ? pressGroupItemProps() : void 0);
|
|
138
270
|
const effectiveSize = useSize(() => props.size ?? group?.size.value);
|
|
139
271
|
/** 小、中按钮里的图标是 16px,大按钮是 20px。插槽里没写尺寸的图标跟着走。 */
|
|
140
272
|
provideIconSize(computed(() => effectiveSize.value === "lg" ? "md" : "sm"));
|
|
@@ -187,6 +319,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
187
319
|
return root.$el instanceof HTMLElement ? root.$el : null;
|
|
188
320
|
});
|
|
189
321
|
const buttonTooltip = useButtonTooltip(hasTooltip);
|
|
322
|
+
const labelElement = useTemplateRef("labelText");
|
|
323
|
+
const cutLabel = useCutTextOnKeyboardFocus({
|
|
324
|
+
anchor: () => element.value,
|
|
325
|
+
measure: () => labelElement.value,
|
|
326
|
+
isEnabled: () => !props.isIconOnly && !hasTooltip.value,
|
|
327
|
+
isSuppressed: hasCallerTooltip
|
|
328
|
+
});
|
|
190
329
|
const rootClass = computed(() => ["astryx-button", attrs.class]);
|
|
191
330
|
const rootStyle = computed(() => {
|
|
192
331
|
const buttonStyle = {};
|
|
@@ -224,17 +363,29 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
224
363
|
"onKeydown",
|
|
225
364
|
"style"
|
|
226
365
|
]);
|
|
366
|
+
/**
|
|
367
|
+
* 调用方自己传的忙碌、禁用状态保留下来。把触发器属性交给 Button 的组件
|
|
368
|
+
* (比如 ComplexSelector 的自定义触发器)靠它让读屏听到选择器的状态。
|
|
369
|
+
*/
|
|
370
|
+
function callerAria(name) {
|
|
371
|
+
const value = attrs[name];
|
|
372
|
+
return value === false || value == null || value === "" ? void 0 : value;
|
|
373
|
+
}
|
|
227
374
|
function getForwardedAttrs() {
|
|
228
375
|
return {
|
|
229
376
|
...Object.fromEntries(Object.entries(attrs).filter(([key]) => !controlledAttrs.has(key))),
|
|
230
|
-
...press.pressableProps
|
|
377
|
+
...press.pressableProps,
|
|
378
|
+
...groupItemProps.value
|
|
231
379
|
};
|
|
232
380
|
}
|
|
233
381
|
function handleRootClick(event) {
|
|
234
382
|
return action.handleClick(event);
|
|
235
383
|
}
|
|
236
384
|
function handleRootKeydown(event) {
|
|
237
|
-
if (event.key === "Escape")
|
|
385
|
+
if (event.key === "Escape") {
|
|
386
|
+
buttonTooltip.hideImmediately();
|
|
387
|
+
cutLabel.hide();
|
|
388
|
+
}
|
|
238
389
|
if (isButtonDisabled.value && (event.key === "Enter" || event.key === " ")) {
|
|
239
390
|
event.preventDefault();
|
|
240
391
|
return;
|
|
@@ -244,9 +395,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
244
395
|
__expose({ element });
|
|
245
396
|
return (_ctx, _cache) => {
|
|
246
397
|
return openBlock(), createBlock(resolveDynamicComponent(rootComponent.value), mergeProps({ ref: "root" }, getForwardedAttrs(), {
|
|
247
|
-
"aria-busy": isLoadingState.value ||
|
|
398
|
+
"aria-busy": isLoadingState.value || callerAria("aria-busy"),
|
|
248
399
|
"aria-describedby": ariaDescribedBy.value,
|
|
249
|
-
"aria-disabled": isButtonDisabled.value ||
|
|
400
|
+
"aria-disabled": isButtonDisabled.value || callerAria("aria-disabled"),
|
|
250
401
|
"aria-label": ariaLabel.value,
|
|
251
402
|
class: rootClass.value,
|
|
252
403
|
"data-astryx-edge-comp": __props.variant === "ghost" ? "" : void 0,
|
|
@@ -268,6 +419,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
268
419
|
onBlur: unref(buttonTooltip).onBlur,
|
|
269
420
|
onClick: handleRootClick,
|
|
270
421
|
onFocus: unref(buttonTooltip).onFocus,
|
|
422
|
+
onFocusin: unref(cutLabel).onFocusin,
|
|
423
|
+
onFocusout: unref(cutLabel).onFocusout,
|
|
424
|
+
onPointerdownCapture: unref(cutLabel).onPointerdown,
|
|
271
425
|
onKeydown: handleRootKeydown,
|
|
272
426
|
onPointerdown: unref(buttonTooltip).onPointerDown,
|
|
273
427
|
onPointerenter: unref(buttonTooltip).onPointerEnter,
|
|
@@ -279,21 +433,21 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
279
433
|
class: "astryx-button__content",
|
|
280
434
|
"aria-hidden": isLoadingState.value || void 0
|
|
281
435
|
}, [
|
|
282
|
-
_ctx.$slots.icon || __props.icon ? (openBlock(), createElementBlock("span", _hoisted_3, [renderSlot(_ctx.$slots, "icon", {}, () => [typeof __props.icon === "string" ? (openBlock(), createBlock(_sfc_main$
|
|
436
|
+
unref(hasSlotContent)(_ctx.$slots.icon) || __props.icon ? (openBlock(), createElementBlock("span", _hoisted_3, [renderSlot(_ctx.$slots, "icon", {}, () => [typeof __props.icon === "string" ? (openBlock(), createBlock(_sfc_main$3, {
|
|
283
437
|
key: 0,
|
|
284
438
|
icon: __props.icon
|
|
285
439
|
}, null, 8, ["icon"])) : __props.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon), { key: 1 })) : createCommentVNode("v-if", true)])])) : createCommentVNode("v-if", true),
|
|
286
|
-
!__props.isIconOnly ? (openBlock(), createElementBlock("span", _hoisted_4, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])])) : createCommentVNode("v-if", true),
|
|
287
|
-
!__props.isIconOnly && _ctx.$slots.end ? (openBlock(), createElementBlock("span", _hoisted_5, [renderSlot(_ctx.$slots, "end")])) : createCommentVNode("v-if", true)
|
|
440
|
+
!__props.isIconOnly ? (openBlock(), createElementBlock("span", _hoisted_4, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])], 512)) : createCommentVNode("v-if", true),
|
|
441
|
+
!__props.isIconOnly && unref(hasSlotContent)(_ctx.$slots.end) ? (openBlock(), createElementBlock("span", _hoisted_5, [renderSlot(_ctx.$slots, "end")])) : createCommentVNode("v-if", true)
|
|
288
442
|
], 8, _hoisted_2),
|
|
289
|
-
createVNode(_sfc_main$
|
|
443
|
+
createVNode(_sfc_main$5, {
|
|
290
444
|
role: "status",
|
|
291
445
|
"aria-live": "polite"
|
|
292
446
|
}, {
|
|
293
447
|
default: withCtx(() => [createTextVNode(toDisplayString(isLoadingState.value && isLiveRegionReady.value ? __props.loadingLabel : ""), 1)]),
|
|
294
448
|
_: 1
|
|
295
449
|
}),
|
|
296
|
-
hasTooltip.value ? (openBlock(), createBlock(_sfc_main$
|
|
450
|
+
hasTooltip.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
297
451
|
key: 1,
|
|
298
452
|
id: tooltipId,
|
|
299
453
|
anchor: element.value,
|
|
@@ -307,7 +461,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
307
461
|
"text",
|
|
308
462
|
"onPointerEnter",
|
|
309
463
|
"onPointerLeave"
|
|
310
|
-
])) : createCommentVNode("v-if", true)
|
|
464
|
+
])) : createCommentVNode("v-if", true),
|
|
465
|
+
unref(cutLabel).cutText.value != null ? (openBlock(), createBlock(_sfc_main$2, {
|
|
466
|
+
key: 2,
|
|
467
|
+
anchor: element.value,
|
|
468
|
+
text: unref(cutLabel).cutText.value
|
|
469
|
+
}, null, 8, ["anchor", "text"])) : createCommentVNode("v-if", true)
|
|
311
470
|
]),
|
|
312
471
|
_: 3
|
|
313
472
|
}, 16, [
|
|
@@ -334,6 +493,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
334
493
|
"value",
|
|
335
494
|
"onBlur",
|
|
336
495
|
"onFocus",
|
|
496
|
+
"onFocusin",
|
|
497
|
+
"onFocusout",
|
|
498
|
+
"onPointerdownCapture",
|
|
337
499
|
"onPointerdown",
|
|
338
500
|
"onPointerenter",
|
|
339
501
|
"onPointerleave"
|
|
@@ -342,4 +504,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
342
504
|
}
|
|
343
505
|
});
|
|
344
506
|
//#endregion
|
|
345
|
-
export { _sfc_main$1 as n, _sfc_main as t };
|
|
507
|
+
export { _sfc_main$2 as i, _sfc_main$1 as n, useCutTextOnKeyboardFocus as r, _sfc_main as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ao as ButtonGroupOrientation, io as ButtonGroupSlots, no as _default, ro as ButtonGroupProps } from "../index-
|
|
1
|
+
import { ao as ButtonGroupOrientation, io as ButtonGroupSlots, no as _default, ro as ButtonGroupProps } from "../index-DFDadgys.js";
|
|
2
2
|
export { _default as ButtonGroup, _default as default, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonGroupSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as ButtonGroup_default } from "../ButtonGroup-
|
|
1
|
+
import { n as _sfc_main, t as ButtonGroup_default } from "../ButtonGroup-CSW7a9vq.js";
|
|
2
2
|
export { _sfc_main as ButtonGroup, ButtonGroup_default as default };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { t as buttonGroupContextKey } from "./context-CZP3jfy-.js";
|
|
2
|
+
import { t as useActionGroupTracking } from "./useActionGroupTracking-BncJjk1A.js";
|
|
1
3
|
import { i as useSize, r as provideSize } from "./SizeContext-BbaF-SEx.js";
|
|
2
|
-
import { t as buttonGroupContextKey } from "./context-B6UElI5X.js";
|
|
3
4
|
import { t as invokeNativeEventHandler } from "./eventHandlers-DUXzBWZy.js";
|
|
5
|
+
import { t as useCoarsePointer } from "./useCoarsePointer-GItEMrjX.js";
|
|
4
6
|
import { t as useListFocus } from "./useListFocus-CbHkLT-X.js";
|
|
5
7
|
import { computed, createElementBlock, defineComponent, mergeProps, openBlock, provide, renderSlot, unref, useAttrs } from "vue";
|
|
6
8
|
import "../styles/button-group.css";
|
|
@@ -10,6 +12,7 @@ const _hoisted_1 = [
|
|
|
10
12
|
"aria-label",
|
|
11
13
|
"data-elevation",
|
|
12
14
|
"data-orientation",
|
|
15
|
+
"data-press-tracking",
|
|
13
16
|
"data-size"
|
|
14
17
|
];
|
|
15
18
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -40,10 +43,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
40
43
|
const isDisabled = computed(() => props.isDisabled);
|
|
41
44
|
const size = useSize(() => props.size, "md");
|
|
42
45
|
provideSize(size);
|
|
46
|
+
/**
|
|
47
|
+
* 触屏为主的设备上,手指和笔可以按住一个按钮滑到别的按钮上,松手时执行手指下的那个;
|
|
48
|
+
* 在组外松手什么都不执行。鼠标还是原生按钮的行为。
|
|
49
|
+
*/
|
|
50
|
+
const isCoarse = useCoarsePointer();
|
|
51
|
+
const tracksPress = computed(() => isCoarse.value && !props.isDisabled);
|
|
52
|
+
useActionGroupTracking(element, { isEnabled: tracksPress });
|
|
43
53
|
provide(buttonGroupContextKey, {
|
|
44
54
|
isDisabled,
|
|
45
55
|
orientation,
|
|
46
|
-
size
|
|
56
|
+
size,
|
|
57
|
+
tracksPress
|
|
47
58
|
});
|
|
48
59
|
const rootClass = computed(() => ["astryx-button-group", attrs.class]);
|
|
49
60
|
const rootStyle = computed(() => attrs.style);
|
|
@@ -74,6 +85,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
74
85
|
class: rootClass.value,
|
|
75
86
|
"data-elevation": __props.elevation,
|
|
76
87
|
"data-orientation": orientation.value,
|
|
88
|
+
"data-press-tracking": tracksPress.value || void 0,
|
|
77
89
|
"data-size": unref(size),
|
|
78
90
|
role: "group",
|
|
79
91
|
style: rootStyle.value,
|
package/dist/Calendar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $a as CalendarProps, Qa as CalendarHandleRef, Xa as CalendarEmits, Ya as _default, Za as CalendarHandle, eo as CalendarRangeValue, to as CalendarSlots } from "../index-
|
|
1
|
+
import { $a as CalendarProps, Qa as CalendarHandleRef, Xa as CalendarEmits, Ya as _default, Za as CalendarHandle, eo as CalendarRangeValue, to as CalendarSlots } from "../index-DFDadgys.js";
|
|
2
2
|
export { _default as Calendar, type CalendarEmits, type CalendarHandle, type CalendarHandleRef, type CalendarProps, type CalendarRangeValue, type CalendarSlots };
|
package/dist/Calendar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Calendar-
|
|
1
|
+
import { t as _sfc_main } from "../Calendar-Bzgi-XyF.js";
|
|
2
2
|
export { _sfc_main as Calendar };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
|
|
2
2
|
import { t as _sfc_main$2 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
3
3
|
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
4
4
|
import { c as resolveWeekStart } from "./useDateRange-CIXoE_8k.js";
|
|
5
5
|
import { t as useHandleRef } from "./useHandleRef-6cdKugm8.js";
|
|
6
|
-
import { o as useAstryxLocale, s as useAstryxMessages } from "./context-
|
|
7
|
-
import { a as weekdayNames, i as standaloneShortWeekdayNames, r as formatCalendarMonth } from "./locale-
|
|
6
|
+
import { o as useAstryxLocale, s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
7
|
+
import { a as weekdayNames, i as standaloneShortWeekdayNames, r as formatCalendarMonth } from "./locale-BA52q_fh.js";
|
|
8
8
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, openBlock, renderList, renderSlot, shallowRef, toDisplayString, unref, useTemplateRef, watch, withCtx } from "vue";
|
|
9
9
|
import { CalendarDate } from "@internationalized/date";
|
|
10
10
|
import "../styles/calendar.css";
|
|
@@ -244,6 +244,8 @@ const _hoisted_11 = {
|
|
|
244
244
|
const _hoisted_12 = ["aria-selected"];
|
|
245
245
|
const _hoisted_13 = [
|
|
246
246
|
"data-date",
|
|
247
|
+
"data-start",
|
|
248
|
+
"data-end",
|
|
247
249
|
"tabindex",
|
|
248
250
|
"aria-disabled",
|
|
249
251
|
"aria-current",
|
|
@@ -462,6 +464,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
462
464
|
disabled,
|
|
463
465
|
selected,
|
|
464
466
|
inRange: continues && !isStart && !isEnd,
|
|
467
|
+
preview: preview.value != null,
|
|
468
|
+
bandStart: continues && !isStart && !isEnd && (!previousContinues || !!start && sameCalendarDay(previous.date, start)),
|
|
469
|
+
bandEnd: continues && !isStart && !isEnd && (!nextContinues || !!end && sameCalendarDay(next.date, end)),
|
|
465
470
|
rangeStart: isStart,
|
|
466
471
|
rangeEnd: isEnd,
|
|
467
472
|
today: !outside && sameCalendarDay(day.date, todayDate),
|
|
@@ -619,6 +624,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
619
624
|
key: 0,
|
|
620
625
|
type: "button",
|
|
621
626
|
class: normalizeClass(["astryx-calendar-cell", {
|
|
627
|
+
"astryx-calendar-range": day.inRange && !day.preview,
|
|
628
|
+
"astryx-calendar-range-preview": day.inRange && day.preview,
|
|
622
629
|
"is-selected": day.selected,
|
|
623
630
|
"is-range-start": day.rangeStart,
|
|
624
631
|
"is-range-end": day.rangeEnd,
|
|
@@ -630,6 +637,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
630
637
|
"is-other-month": day.outside
|
|
631
638
|
}]),
|
|
632
639
|
"data-date": day.iso,
|
|
640
|
+
"data-start": day.bandStart ? "start" : void 0,
|
|
641
|
+
"data-end": day.bandEnd ? "end" : void 0,
|
|
633
642
|
tabindex: day.tab ? 0 : -1,
|
|
634
643
|
"aria-disabled": day.disabled || void 0,
|
|
635
644
|
"aria-current": day.today ? "date" : void 0,
|
package/dist/Card/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Card-
|
|
1
|
+
import { t as _sfc_main } from "../Card-BbKFHWuD.js";
|
|
2
2
|
export { _sfc_main as Card };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { i as provideLayoutContainer } from "./context-CjX2RSDn.js";
|
|
1
2
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
2
3
|
import { computed, createElementBlock, defineComponent, normalizeStyle, openBlock, renderSlot, useTemplateRef } from "vue";
|
|
3
4
|
import "../styles/card.css";
|
|
@@ -22,6 +23,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
22
23
|
},
|
|
23
24
|
setup(__props, { expose: __expose }) {
|
|
24
25
|
const props = __props;
|
|
26
|
+
provideLayoutContainer("card");
|
|
25
27
|
const element = useTemplateRef("element");
|
|
26
28
|
const hasFixedHeight = computed(() => props.height != null && props.height !== "auto");
|
|
27
29
|
useScrollbars(element, { enabled: hasFixedHeight });
|
package/dist/Carousel/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Carousel-
|
|
1
|
+
import { t as _sfc_main } from "../Carousel--VycM-Sa.js";
|
|
2
2
|
export { _sfc_main as Carousel };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
2
|
-
import { t as _sfc_main$2 } from "./IconButton-
|
|
3
|
-
import { s as useAstryxMessages } from "./context-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "./IconButton-Crtfruc0.js";
|
|
3
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
4
4
|
import { Comment, Fragment, Text, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, h, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onUpdated, openBlock, ref, unref, watch, withCtx } from "vue";
|
|
5
5
|
import "../styles/carousel.css";
|
|
6
6
|
//#region src/Carousel/slides.ts
|
package/dist/Chat/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ChatComposerTokenBadge, A as _default$8, At as ChatReasoningProps, B as ChatComposerDrawerEmits, Bt as ChatTypingIndicatorProps, C as _default$15, Ct as ChatMessageMetadataProps, D as _default$11, Dt as ChatMessageSlots, E as _default$12, Et as ChatMessageSender, F as _default$3, Ft as ChatToolCallItem, G as ChatComposerInputControl, H as ChatComposerDrawerSlots, I as _default$2, It as ChatToolCallStatus, J as ChatComposerInputProps, K as ChatComposerInputEmits, L as _default$1, Lt as ChatToolCallsEmits, M as _default$6, Mt as ChatSystemMessageProps, N as _default$5, Nt as ChatSystemMessageSlots, O as _default$10, Ot as ChatMessageStatus, P as _default$4, Pt as ChatSystemMessageVariant, Q as ChatComposerToken, R as _default, Rt as ChatToolCallsProps, S as _default$16, St as ChatMessageListSlots, T as _default$13, Tt as ChatMessageProps, U as ChatComposerElevation, V as ChatComposerDrawerProps, Vt as ChatUnreadDividerProps, W as ChatComposerEmits, X as ChatComposerSlots, Y as ChatComposerProps, Z as ChatComposerStatus, _ as useChatComposerContext, _t as ChatMessageBubbleProps, a as useChatPasteAsToken, at as ChatSendButtonEmits, b as useChatMessageContext, bt as ChatMessageListAlign, c as SpeechRecognitionError, ct as ChatTokenizedTextProps, d as useSpeechRecognition, dt as ChatLayoutProps, et as ChatComposerTokenCustom, f as TokenPortal, ft as ChatLayoutScrollButtonEmits, g as ChatComposerContextValue, gt as ChatMessageBubbleGroup, h as useChatComposerTokens, ht as ChatLayoutSlots, i as pastedTextLabel, it as ChatDictationButtonProps, j as _default$7, jt as ChatReasoningSlots, k as _default$9, kt as ChatReasoningEmits, l as UseSpeechRecognitionOptions, lt as ChatTokenizedTextSlots, m as UseChatComposerTokensReturn, mt as ChatLayoutScrollSlotProps, n as UseChatPasteAsTokenOptions, nt as ChatComposerTrigger, o as UseChatDictationOptions, ot as ChatSendButtonProps, p as UseChatComposerTokensOptions, pt as ChatLayoutScrollButtonProps, q as ChatComposerInputHandle, r as UseChatPasteAsTokenReturn, rt as ChatComposerTriggerItem, s as useChatDictation, st as ChatSendButtonSlots, t as PASTE_TOKEN_THRESHOLD, tt as ChatComposerTokenElementProps, u as UseSpeechRecognitionReturn, ut as ChatDensity, v as useChatLayoutContext, vt as ChatMessageBubbleSlots, w as _default$14, wt as ChatMessageMetadataSlots, x as _default$17, xt as ChatMessageListProps, y as useChatListContext, yt as ChatMessageBubbleVariant, z as ChatComposerDensity, zt as ChatToolCallsSlots } from "../index-
|
|
1
|
+
import { $ as ChatComposerTokenBadge, A as _default$8, At as ChatReasoningProps, B as ChatComposerDrawerEmits, Bt as ChatTypingIndicatorProps, C as _default$15, Ct as ChatMessageMetadataProps, D as _default$11, Dt as ChatMessageSlots, E as _default$12, Et as ChatMessageSender, F as _default$3, Ft as ChatToolCallItem, G as ChatComposerInputControl, H as ChatComposerDrawerSlots, I as _default$2, It as ChatToolCallStatus, J as ChatComposerInputProps, K as ChatComposerInputEmits, L as _default$1, Lt as ChatToolCallsEmits, M as _default$6, Mt as ChatSystemMessageProps, N as _default$5, Nt as ChatSystemMessageSlots, O as _default$10, Ot as ChatMessageStatus, P as _default$4, Pt as ChatSystemMessageVariant, Q as ChatComposerToken, R as _default, Rt as ChatToolCallsProps, S as _default$16, St as ChatMessageListSlots, T as _default$13, Tt as ChatMessageProps, U as ChatComposerElevation, V as ChatComposerDrawerProps, Vt as ChatUnreadDividerProps, W as ChatComposerEmits, X as ChatComposerSlots, Y as ChatComposerProps, Z as ChatComposerStatus, _ as useChatComposerContext, _t as ChatMessageBubbleProps, a as useChatPasteAsToken, at as ChatSendButtonEmits, b as useChatMessageContext, bt as ChatMessageListAlign, c as SpeechRecognitionError, ct as ChatTokenizedTextProps, d as useSpeechRecognition, dt as ChatLayoutProps, et as ChatComposerTokenCustom, f as TokenPortal, ft as ChatLayoutScrollButtonEmits, g as ChatComposerContextValue, gt as ChatMessageBubbleGroup, h as useChatComposerTokens, ht as ChatLayoutSlots, i as pastedTextLabel, it as ChatDictationButtonProps, j as _default$7, jt as ChatReasoningSlots, k as _default$9, kt as ChatReasoningEmits, l as UseSpeechRecognitionOptions, lt as ChatTokenizedTextSlots, m as UseChatComposerTokensReturn, mt as ChatLayoutScrollSlotProps, n as UseChatPasteAsTokenOptions, nt as ChatComposerTrigger, o as UseChatDictationOptions, ot as ChatSendButtonProps, p as UseChatComposerTokensOptions, pt as ChatLayoutScrollButtonProps, q as ChatComposerInputHandle, r as UseChatPasteAsTokenReturn, rt as ChatComposerTriggerItem, s as useChatDictation, st as ChatSendButtonSlots, t as PASTE_TOKEN_THRESHOLD, tt as ChatComposerTokenElementProps, u as UseSpeechRecognitionReturn, ut as ChatDensity, v as useChatLayoutContext, vt as ChatMessageBubbleSlots, w as _default$14, wt as ChatMessageMetadataSlots, x as _default$17, xt as ChatMessageListProps, y as useChatListContext, yt as ChatMessageBubbleVariant, z as ChatComposerDensity, zt as ChatToolCallsSlots } from "../index-BnqDF_AX.js";
|
|
2
2
|
export { _default as ChatComposer, type ChatComposerContextValue, type ChatComposerDensity, _default$1 as ChatComposerDrawer, type ChatComposerDrawerEmits, type ChatComposerDrawerProps, type ChatComposerDrawerSlots, type ChatComposerElevation, type ChatComposerEmits, _default$2 as ChatComposerInput, type ChatComposerInputControl, type ChatComposerInputEmits, type ChatComposerInputHandle, type ChatComposerInputProps, type ChatComposerProps, type ChatComposerSlots, type ChatComposerStatus, type ChatComposerToken, type ChatComposerTokenBadge, type ChatComposerTokenCustom, _default$3 as ChatComposerTokenElement, type ChatComposerTokenElementProps, type ChatComposerTrigger, type ChatComposerTriggerItem, type ChatDensity, _default$4 as ChatDictationButton, type ChatDictationButtonProps, _default$5 as ChatLayout, type ChatLayoutProps, _default$6 as ChatLayoutScrollButton, type ChatLayoutScrollButtonEmits, type ChatLayoutScrollButtonProps, type ChatLayoutScrollSlotProps, type ChatLayoutSlots, _default$7 as ChatMessage, _default$8 as ChatMessageBubble, type ChatMessageBubbleGroup, type ChatMessageBubbleProps, type ChatMessageBubbleSlots, type ChatMessageBubbleVariant, _default$9 as ChatMessageList, type ChatMessageListAlign, type ChatMessageListProps, type ChatMessageListSlots, _default$10 as ChatMessageMetadata, type ChatMessageMetadataProps, type ChatMessageMetadataSlots, type ChatMessageProps, type ChatMessageSender, type ChatMessageSlots, type ChatMessageStatus, _default$11 as ChatReasoning, type ChatReasoningEmits, type ChatReasoningProps, type ChatReasoningSlots, _default$12 as ChatSendButton, type ChatSendButtonEmits, type ChatSendButtonProps, type ChatSendButtonSlots, _default$13 as ChatSystemMessage, type ChatSystemMessageProps, type ChatSystemMessageSlots, type ChatSystemMessageVariant, _default$14 as ChatTokenizedText, type ChatTokenizedTextProps, type ChatTokenizedTextSlots, type ChatToolCallItem, type ChatToolCallStatus, _default$15 as ChatToolCalls, type ChatToolCallsEmits, type ChatToolCallsProps, type ChatToolCallsSlots, _default$16 as ChatTypingIndicator, type ChatTypingIndicatorProps, _default$17 as ChatUnreadDivider, type ChatUnreadDividerProps, PASTE_TOKEN_THRESHOLD, type SpeechRecognitionError, type TokenPortal, type UseChatComposerTokensOptions, type UseChatComposerTokensReturn, type UseChatDictationOptions, type UseChatPasteAsTokenOptions, type UseChatPasteAsTokenReturn, type UseSpeechRecognitionOptions, type UseSpeechRecognitionReturn, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
|
package/dist/Chat/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-
|
|
1
|
+
import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-C1DlnlCQ.js";
|
|
2
2
|
export { _sfc_main as ChatComposer, _sfc_main$1 as ChatComposerDrawer, _sfc_main$2 as ChatComposerInput, _sfc_main$3 as ChatComposerTokenElement, _sfc_main$4 as ChatDictationButton, _sfc_main$5 as ChatLayout, _sfc_main$6 as ChatLayoutScrollButton, _sfc_main$7 as ChatMessage, _sfc_main$8 as ChatMessageBubble, _sfc_main$9 as ChatMessageList, _sfc_main$10 as ChatMessageMetadata, _sfc_main$11 as ChatReasoning, _sfc_main$12 as ChatSendButton, _sfc_main$13 as ChatSystemMessage, _sfc_main$14 as ChatTokenizedText, _sfc_main$15 as ChatToolCalls, _sfc_main$16 as ChatTypingIndicator, _sfc_main$17 as ChatUnreadDivider, PASTE_TOKEN_THRESHOLD, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
-
import { t as _sfc_main$24 } from "./Icon-
|
|
3
|
-
import { t as _sfc_main$25 } from "./
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
6
|
-
import { r as useChatNewMessages, t as useChatStreamScroll } from "./useChatStreamScroll-oDfybEos.js";
|
|
2
|
+
import { t as _sfc_main$24 } from "./Icon-BCHo7W0x.js";
|
|
3
|
+
import { t as _sfc_main$25 } from "./Button-DsjdehLZ.js";
|
|
4
|
+
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-0-Z-9D0A.js";
|
|
7
5
|
import { a as isImeKeyEvent } from "./layerDepth-CNDh-IHb.js";
|
|
8
|
-
import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-psKf3ano.js";
|
|
9
6
|
import { n as isKeyboardModality, r as trackInteractionModality } from "./interactionModality-ACpTMhak.js";
|
|
10
|
-
import {
|
|
7
|
+
import { t as _sfc_main$26 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
8
|
+
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
9
|
+
import { r as useChatNewMessages, t as useChatStreamScroll } from "./useChatStreamScroll-oDfybEos.js";
|
|
10
|
+
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
11
|
+
import { d as chatMessages, o as useAstryxLocale, s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
11
12
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
12
|
-
import { t as _sfc_main$27 } from "./Badge-
|
|
13
|
+
import { t as _sfc_main$27 } from "./Badge-BbPS_49c.js";
|
|
13
14
|
import { t as _sfc_main$28 } from "./Divider-mOZ6vIQw.js";
|
|
14
|
-
import { t as _sfc_main$29 } from "./HoverCard-
|
|
15
|
-
import { t as _sfc_main$30 } from "./Spinner-
|
|
15
|
+
import { t as _sfc_main$29 } from "./HoverCard-CLcbBLBN.js";
|
|
16
|
+
import { t as _sfc_main$30 } from "./Spinner-ke63bQPv.js";
|
|
16
17
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toValue, unref, useId, useModel, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
|
|
17
18
|
import "../styles/layer.css";
|
|
18
19
|
import "../styles/popover.css";
|
|
19
20
|
import "../styles/chat.css";
|
|
20
21
|
//#region src/Chat/useChatPasteAsToken.ts
|
|
21
22
|
const PASTE_TOKEN_THRESHOLD = 200;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
function defaultToToken(text) {
|
|
28
|
-
return {
|
|
29
|
-
value: text,
|
|
30
|
-
label: pastedTextLabel(text),
|
|
31
|
-
variant: "neutral"
|
|
32
|
-
};
|
|
23
|
+
/**
|
|
24
|
+
* 粘贴文本小块上的计数。`format` 决定怎么写,组件传当前语言的文案;不传时用英文。
|
|
25
|
+
*/
|
|
26
|
+
function pastedTextLabel(text, format = chatMessages.en.pastedTextLabel) {
|
|
27
|
+
return format(text.split("\n").length, text.length);
|
|
33
28
|
}
|
|
34
29
|
function useChatPasteAsToken(options) {
|
|
35
30
|
const threshold = options.threshold ?? 200;
|
|
36
|
-
const
|
|
31
|
+
const messages = useAstryxMessages();
|
|
32
|
+
const toToken = options.toToken ?? ((text) => ({
|
|
33
|
+
value: text,
|
|
34
|
+
label: pastedTextLabel(text, messages.value.chat.pastedTextLabel),
|
|
35
|
+
variant: "neutral"
|
|
36
|
+
}));
|
|
37
37
|
function onPaste(text) {
|
|
38
38
|
if (text.length <= threshold) return false;
|
|
39
39
|
options.input.value?.insertToken(toToken(text));
|
|
@@ -55,14 +55,14 @@ const _sfc_main$23 = /*@__PURE__*/ defineComponent({
|
|
|
55
55
|
const props = __props;
|
|
56
56
|
const emit = __emit;
|
|
57
57
|
const messages = useAstryxMessages();
|
|
58
|
-
const label = computed(() => pastedTextLabel(props.text));
|
|
58
|
+
const label = computed(() => pastedTextLabel(props.text, messages.value.chat.pastedTextLabel));
|
|
59
59
|
return (_ctx, _cache) => {
|
|
60
60
|
return openBlock(), createBlock(_sfc_main$29, {
|
|
61
61
|
placement: "above",
|
|
62
62
|
alignment: "start",
|
|
63
63
|
"has-hover-indication": false
|
|
64
64
|
}, {
|
|
65
|
-
content: withCtx(() => [createElementVNode("div", _hoisted_1$19, [createElementVNode("div", _hoisted_2$14, toDisplayString(__props.text), 1), createElementVNode("div", _hoisted_3$12, [createElementVNode("span", _hoisted_4$11, toDisplayString(label.value), 1), createVNode(_sfc_main$
|
|
65
|
+
content: withCtx(() => [createElementVNode("div", _hoisted_1$19, [createElementVNode("div", _hoisted_2$14, toDisplayString(__props.text), 1), createElementVNode("div", _hoisted_3$12, [createElementVNode("span", _hoisted_4$11, toDisplayString(label.value), 1), createVNode(_sfc_main$25, {
|
|
66
66
|
label: unref(messages).chat.expandPastedText,
|
|
67
67
|
variant: "ghost",
|
|
68
68
|
size: "sm",
|
|
@@ -1395,7 +1395,7 @@ const _sfc_main$19 = /*@__PURE__*/ defineComponent({
|
|
|
1395
1395
|
emit("click", event);
|
|
1396
1396
|
}
|
|
1397
1397
|
return (_ctx, _cache) => {
|
|
1398
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1398
|
+
return openBlock(), createBlock(_sfc_main$25, mergeProps(_ctx.$attrs, {
|
|
1399
1399
|
class: "astryx-chat-send",
|
|
1400
1400
|
label: label.value,
|
|
1401
1401
|
variant: stopShown.value ? "secondary" : "primary",
|
|
@@ -1719,6 +1719,7 @@ const _sfc_main$15 = /*@__PURE__*/ defineComponent({
|
|
|
1719
1719
|
},
|
|
1720
1720
|
setup(__props) {
|
|
1721
1721
|
const props = __props;
|
|
1722
|
+
if (isDevBuild() && props.dictation == null) throw devPropError("ChatDictationButton", "dictation", "is required: the value of useChatDictation() or useSpeechRecognition(), for example :dictation=\"dictation\".");
|
|
1722
1723
|
const messages = useAstryxMessages();
|
|
1723
1724
|
const supported = computed(() => toValue(props.dictation.isSupported));
|
|
1724
1725
|
const listening = computed(() => toValue(props.dictation.isListening));
|
|
@@ -1765,7 +1766,7 @@ const _sfc_main$15 = /*@__PURE__*/ defineComponent({
|
|
|
1765
1766
|
transform: `scaleY(${bar.scale})`
|
|
1766
1767
|
})
|
|
1767
1768
|
}, null, 4);
|
|
1768
|
-
}), 128))], 4)) : createCommentVNode("v-if", true), createVNode(_sfc_main$
|
|
1769
|
+
}), 128))], 4)) : createCommentVNode("v-if", true), createVNode(_sfc_main$25, {
|
|
1769
1770
|
label: label.value,
|
|
1770
1771
|
variant: "ghost",
|
|
1771
1772
|
size: __props.size,
|
|
@@ -1814,7 +1815,7 @@ const _sfc_main$14 = /*@__PURE__*/ defineComponent({
|
|
|
1814
1815
|
"data-visible": __props.isVisible || void 0,
|
|
1815
1816
|
"data-labeled": __props.label ? "" : void 0,
|
|
1816
1817
|
inert: !__props.isVisible
|
|
1817
|
-
}, [createVNode(_sfc_main$
|
|
1818
|
+
}, [createVNode(_sfc_main$25, {
|
|
1818
1819
|
class: "astryx-chat-scroll-button__control",
|
|
1819
1820
|
label: accessibleLabel.value,
|
|
1820
1821
|
variant: "ghost",
|
|
@@ -2546,7 +2547,7 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
|
2546
2547
|
key: 2,
|
|
2547
2548
|
name: "circle-x",
|
|
2548
2549
|
size: "xsm"
|
|
2549
|
-
})), __props.status !== "pending" && __props.status !== "running" ? (openBlock(), createBlock(_sfc_main$
|
|
2550
|
+
})), __props.status !== "pending" && __props.status !== "running" ? (openBlock(), createBlock(_sfc_main$26, { key: 3 }, {
|
|
2550
2551
|
default: withCtx(() => [createTextVNode(toDisplayString(label.value), 1)]),
|
|
2551
2552
|
_: 1
|
|
2552
2553
|
})) : createCommentVNode("v-if", true)], 8, _hoisted_1$4);
|
|
@@ -2724,6 +2725,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
2724
2725
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2725
2726
|
const props = __props;
|
|
2726
2727
|
const emit = __emit;
|
|
2728
|
+
if (isDevBuild() && !Array.isArray(props.calls)) throw devPropError("ChatToolCalls", "calls", "must be an array of tool calls, for example :calls=\"[{ name: 'search', status: 'complete' }]\".");
|
|
2727
2729
|
const slots = useSlots();
|
|
2728
2730
|
const messages = useAstryxMessages();
|
|
2729
2731
|
const model = useModel(__props, "isExpanded");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ga as CheckboxInputEmits, Ha as _default, Ja as CheckboxValue, Ka as CheckboxInputProps, Ua as CheckboxInputChangeAction, Wa as CheckboxInputChangeEvent, qa as CheckboxInputSlots } from "../index-
|
|
1
|
+
import { Ga as CheckboxInputEmits, Ha as _default, Ja as CheckboxValue, Ka as CheckboxInputProps, Ua as CheckboxInputChangeAction, Wa as CheckboxInputChangeEvent, qa as CheckboxInputSlots } from "../index-DFDadgys.js";
|
|
2
2
|
export { _default as CheckboxInput, type CheckboxInputChangeAction, type CheckboxInputChangeEvent, type CheckboxInputEmits, type CheckboxInputProps, type CheckboxInputSlots, type CheckboxValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../CheckboxInput-
|
|
1
|
+
import { t as _sfc_main } from "../CheckboxInput-uk8nuCEf.js";
|
|
2
2
|
export { _sfc_main as CheckboxInput };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as usePressFeedback } from "./usePressFeedback-
|
|
1
|
+
import { t as usePressFeedback } from "./usePressFeedback-Bcjsw9vv.js";
|
|
2
2
|
import { t as _sfc_main$1 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
3
3
|
import { t as _sfc_main$2 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
4
4
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
5
5
|
import { i as useAriaRequired } from "./context-Cfml4jaK.js";
|
|
6
|
-
import { t as _sfc_main$3 } from "./FieldLabel-
|
|
7
|
-
import { t as _sfc_main$4 } from "./FieldStatus-
|
|
8
|
-
import { t as useIndicator } from "./useIndicator
|
|
6
|
+
import { t as _sfc_main$3 } from "./FieldLabel-C-IaUcP4.js";
|
|
7
|
+
import { t as _sfc_main$4 } from "./FieldStatus-DSUCli4W.js";
|
|
8
|
+
import { t as useIndicator } from "./useIndicator--9mGGlT2.js";
|
|
9
9
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onUpdated, openBlock, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
10
10
|
import "../styles/button.css";
|
|
11
11
|
import "../styles/checkbox-input.css";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ba as CheckboxListItemProps, Ia as _default$1, La as _default, Ra as CheckboxListEmits, Va as CheckboxListProps, za as CheckboxListItemEmits } from "../index-
|
|
1
|
+
import { Ba as CheckboxListItemProps, Ia as _default$1, La as _default, Ra as CheckboxListEmits, Va as CheckboxListProps, za as CheckboxListItemEmits } from "../index-DFDadgys.js";
|
|
2
2
|
export { _default as CheckboxList, type CheckboxListEmits, _default$1 as CheckboxListItem, type CheckboxListItemEmits, type CheckboxListItemProps, type CheckboxListProps };
|