@astryx-vue/core 0.7.24 → 0.7.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.d.ts +1 -1
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-DsPFYRxB.js → AlertDialog-DZpJzvOC.js} +30 -15
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell--izaf9Fx.js → AppShell-D7ik41g-.js} +3 -3
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-cNntRBEo.js → Avatar-D_C9RBJb.js} +27 -21
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CiJia58o.js → AvatarGroup-CFvNDgU-.js} +17 -7
- package/dist/Badge/index.js +1 -1
- package/dist/Badge-BbPS_49c.js +41 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-C8f377q3.js → Banner-C1B7DsHS.js} +3 -3
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-BKeyoL9N.js → BottomSheet-BECeWtEy.js} +2 -2
- package/dist/{BottomSheet-CMukh1iI.js → BottomSheet-CgOzQHaA.js} +4 -2
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CXJNJ93V.js → Breadcrumbs-BgiZY7un.js} +9 -8
- package/dist/Button/index.d.ts +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/{Button-Dgm5wCch.js → Button-DsjdehLZ.js} +181 -18
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-UgiGP61q.js → ButtonGroup-CSW7a9vq.js} +14 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-d_uOkvFE.js → Calendar-Bzgi-XyF.js} +12 -3
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/{Card-H4571ZKi.js → Card-BbKFHWuD.js} +2 -0
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BWTArLIP.js → Carousel--VycM-Sa.js} +64 -19
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DKZWVA3Q.js → Chat-C1DlnlCQ.js} +30 -28
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-B4pDfjvr.js → CheckboxInput-uk8nuCEf.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DtxfdHRI.js → CheckboxList-Dr4kQ-BC.js} +7 -7
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-CCu6QWG7.js → Citation-BAFsn6N1.js} +4 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-jEBZbzHE.js → ClickableCard-CvxSKkXh.js} +16 -6
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-PDhTfE2w.js → Code-6GS0nAkR.js} +1 -1
- package/dist/{CodeBlock-BrE72i6C.js → CodeBlock-PSnUWX57.js} +21 -10
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BsPZ8CoN.js → Collapsible-C_tl5-L0.js} +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-0Kg-dJg3.js → CommandPalette-lewtyQrO.js} +7 -7
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BrGVG8c7.js → ComplexSelector-BUnqjeW5.js} +16 -8
- package/dist/ComponentIcon-BRXBBKeG.js +37 -0
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CgSIWUYh.js → ContextMenu-IDkvorRp.js} +10 -9
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-vV0tc4a4.js → DateInput-DTxxFz9-.js} +15 -13
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DcM1Zntr.js → DateRangeInput-D4Us58KW.js} +9 -9
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DbbVU3bk.js → DateTimeInput-CliLnI7P.js} +10 -10
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-vPGLWE3o.js → Dialog-B_s-w66_.js} +1 -1
- package/dist/{Dialog-D4V2ZnuS.js → Dialog-BtPktuiy.js} +3 -1
- package/dist/{DialogHeader-D1sgjPC7.js → DialogHeader-Hk419KW1.js} +4 -4
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-CaZF_-lH.js → Drawer-DoQ9hjKz.js} +2 -2
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-B3R5WLsl.js → DropdownMenu-B2iga1fe.js} +18 -13
- package/dist/{DropdownMenu-BjE_cTDM.js → DropdownMenu-BF2Z5T4h.js} +9 -9
- package/dist/{DropdownMenuRadioItem.vue-z0XU7pZS.d.ts → DropdownMenuRadioItem.vue-D455cIQQ.d.ts} +1 -1
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BQrzgh2f.js → EmptyState-v1cvHKav.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-DLg-trP2.js → Field-if5a58LO.js} +2 -2
- package/dist/{FieldIcon-CxTnEb4Y.js → FieldIcon-DMtfe1Ne.js} +1 -1
- package/dist/{FieldInfoTip-D5IOQrVA.js → FieldInfoTip-BJAaKJjM.js} +2 -2
- package/dist/{FieldLabel-D5_Pap_W.js → FieldLabel-C-IaUcP4.js} +3 -3
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-D6Vo_dU5.js → FieldStatus-DSUCli4W.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CKYpJtuU.js → FileInput-0zBWfO8h.js} +9 -9
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Grid/index.js +1 -1
- package/dist/{Grid-D1onTzyC.js → Grid-C0mp7fha.js} +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/Heading-C10qO8wg.js +114 -0
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-B9uadAzT.js → HoverCard-CLcbBLBN.js} +4 -3
- package/dist/Icon/index.d.ts +4 -4
- package/dist/Icon/index.js +4 -2
- package/dist/Icon/plugin.js +1 -1
- package/dist/Icon-B2aULLnn.js +15 -0
- package/dist/{Icon-CU3412Fe.js → Icon-BCHo7W0x.js} +48 -86
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-B6AQLlx9.js → IconButton-Crtfruc0.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/Indicator/index.js +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BlOySTNC.js → InfoTip-DNQy7wqB.js} +3 -3
- package/dist/{InputClearButton-BbFXoxWi.js → InputClearButton-DhvxPkK6.js} +3 -3
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +2 -2
- package/dist/{InputGroup-BleRgc6W.js → InputGroup-B1kG0rBN.js} +42 -18
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-CWJDt7Qb.js → InternationalizationProvider-CUEIHCf4.js} +3 -3
- package/dist/{Item-X9wgYWoD.js → Item-Cfv4ALls.js} +29 -6
- package/dist/Kbd/index.d.ts +1 -1
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-CV3LO2Ge.js → Kbd-DyxKNYtE.js} +58 -30
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-mHcy28k7.js → Layout-OHKb6r7D.js} +8 -5
- package/dist/{LayoutPanel-DpbBk6rj.js → LayoutPanel-D-rpTtC-.js} +6 -3
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DLZzT9un.js → Lightbox-B8uMFPOS.js} +96 -17
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Qhzs2lcO.js → Link-Kc2RQFHc.js} +59 -70
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-CertehfW.js → ListItem-2evjQQ7n.js} +2 -2
- package/dist/Markdown/index.js +2 -2
- package/dist/{Markdown-DGTG02tI.js → Markdown-NVkHi_tk.js} +6 -6
- package/dist/{MediaTheme-CnSOALNj.js → MediaTheme-Bt7WBTkq.js} +1 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-wOngshS5.js → MetadataList-4GnMi6s9.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-C8KAzhRl.js → MobileNavToggle-TMDrnXfG.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-B_NLxMJW.js → MoreMenu-CpGEXWCd.js} +10 -10
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-B0TQuJ5d.js → MultiSelector-Baca6xNx.js} +17 -16
- package/dist/{NavDisclosure-BbRWuyhq.js → NavDisclosure-DG4jls5z.js} +1 -1
- package/dist/{NavHeadingSurface-B2HkXx6S.js → NavHeadingSurface-j2gzMVKt.js} +3 -3
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-DfHMmSsw.js → NavItem-BZLN0U5a.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-mZVfqNxt.js → NavMenu-t7WN2bcq.js} +1 -1
- package/dist/{NavMenuItem-DkfXIdxs.js → NavMenuItem-DIMQohIa.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DEv4_fDj.js → NumberInput-BBFGZ4Fg.js} +27 -17
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-Bbu16_MT.js → Outline-BgDOI3ar.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-CjIOYKLM.js → OverflowList-D4fC5s_q.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Bcq0T9qo.js → Pagination-Do_MIlo4.js} +16 -4
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-9Xt2lYdo.js → Popover-Bd93LlDd.js} +7 -7
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DXz85xcx.js → PowerSearch-DyqItMHo.js} +111 -42
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-Dt5AS0GY.js → ProgressBar-gsm2A_cR.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-B2lYTCeV.js → RadioGroup-Dzp4qSgm.js} +5 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CieZtXzY.js → RadioList-CAIgB1j_.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-uBJj4W1M.js → ResizeHandle-GAmiHb0-.js} +2 -2
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-BmDn1avo.js → SegmentedControl-Bs74LlvS.js} +3 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-2a2gsxys.js → SelectableCard-BFCwgtWf.js} +12 -7
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-CgrXQtte.js → Selector-B9lINQRM.js} +15 -13
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DW4jXGp5.js → SideNav-DzZ12DIq.js} +8 -8
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-CEhy-D-R.js → Slider-Cuk2ul9w.js} +4 -4
- package/dist/Spinner/index.js +1 -1
- package/dist/{Spinner-CTWLR75x.js → Spinner-ke63bQPv.js} +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-Bu_nCu0I.js → StatusDot-DF5wK42f.js} +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DVXisudw.js → Stepper-C68f_iJG.js} +3 -3
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DXShvaDA.js → Switch-bnxiN6Qe.js} +4 -4
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Bo4pjQhj.js → TabList-8dlO0Ws6.js} +13 -8
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-Bd8BQ8X_.js → Table-j_DCDbcI.js} +107 -49
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +3 -2
- package/dist/{Text-Wk-iDAzh.js → Text-WB-fpFne.js} +38 -29
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-8bifudmD.js → TextArea-Bzz_KcKT.js} +11 -11
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Bb25yDd0.js → TextInput-givkH9HQ.js} +22 -20
- package/dist/Theme/index.d.ts +2 -2
- package/dist/Theme/index.js +2 -2
- package/dist/{Theme-D7_fQWgb.js → Theme-BQe--DY6.js} +42 -9
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-CYVlnYws.js → Thumbnail-CZOWP5HN.js} +42 -14
- package/dist/{TimeField-dDDrUtI4.js → TimeField-ByoS5s_I.js} +8 -8
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-BvGVUfWy.js → TimeInput-D9kvMQso.js} +7 -5
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DL_MPa_h.js → Timer-BD2gSoQ3.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-CJSVY4tS.js → Timestamp-CEdNhKc5.js} +17 -13
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-cXs5Cbr4.js → Toast-CnZrcU-G.js} +5 -5
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DFiJDsOV.js → ToggleButton-BMn4yJXe.js} +27 -8
- package/dist/Token/index.js +1 -1
- package/dist/{Token-BJDLztV6.js → Token-DWCDMawn.js} +101 -28
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-yz0873oG.js → Tokenizer-R0eC1BOk.js} +93 -10
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-D5UI1JLe.js → Toolbar-BH_E0F0G.js} +4 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-BfKegFfq.js → Tooltip-CGHpFMnc.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CWksqYD8.js → TopNav-DHunql9h.js} +7 -7
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-tcEjVfb0.js → TreeList-Dg5gtkOu.js} +24 -17
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-ClidGB0O.js → Typeahead-BkmCC6DX.js} +52 -27
- package/dist/{TypeaheadMenu-Bu9HO-wZ.js → TypeaheadMenu-CFeJCv-6.js} +1 -1
- package/dist/componentIcons-CFr2L6o3.js +106 -0
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +13 -11
- package/dist/{composables-BWDrzi3J.js → composables-DqJzanJ5.js} +5 -24
- package/dist/context-Bg7eSJ47.js +17 -0
- package/dist/{context-BLSiTojH.js → context-CV6TrhJY.js} +57 -3
- package/dist/context-CZP3jfy-.js +125 -0
- package/dist/{context-Bv6lAoqu.js → context-CjX2RSDn.js} +14 -2
- package/dist/devBuild-G249YcdZ.js +17 -0
- package/dist/{fieldParts--SyRZVQG.js → fieldParts-CDOlBdy6.js} +2 -2
- package/dist/{index-CM8KfpBL.d.ts → index--uIQXVJ7.d.ts} +2 -2
- package/dist/{index-CL8JvxHW.d.ts → index-B3yTdknp.d.ts} +1 -1
- package/dist/{index-rszZajcw.d.ts → index-B449gOMC.d.ts} +2 -2
- package/dist/{index-B3PTchxx.d.ts → index-B7brdDVR.d.ts} +5 -5
- package/dist/{index-BO9TY87G.d.ts → index-BOCb89V9.d.ts} +3 -3
- package/dist/{index-Gnewu6-J.d.ts → index-BPyRH3WL.d.ts} +1 -1
- package/dist/{index-DEQ5cnUV.d.ts → index-BTljzczH.d.ts} +4 -1
- package/dist/{index-f3d9cVtj.d.ts → index-BU78NOP-.d.ts} +1 -1
- package/dist/{index-BfQ85cS8.d.ts → index-BZuEYd9y.d.ts} +1 -1
- package/dist/{index-D_K1wfRa.d.ts → index-BfSZhAVv.d.ts} +2 -2
- package/dist/{index-CFm1rPma.d.ts → index-BjbPK91B.d.ts} +1 -1
- package/dist/{index-C3f1zsJR.d.ts → index-BngdKVro.d.ts} +1 -1
- package/dist/{index-RW8kvEwf.d.ts → index-BnqDF_AX.d.ts} +11 -6
- package/dist/{index-Be7N3B5F.d.ts → index-BqEPgwku.d.ts} +2 -2
- package/dist/{index-DxxudRgB.d.ts → index-C16d2Fc4.d.ts} +1 -1
- package/dist/{index-D97pQbua.d.ts → index-C89cIh4E.d.ts} +3 -5
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-IvAfdGCC.d.ts → index-CAoenU4T.d.ts} +1 -1
- package/dist/{index-BaxM-pFP.d.ts → index-CM2L3SUw.d.ts} +6 -4
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-Bo-ofFyg.d.ts → index-CbNLiaWw.d.ts} +2 -2
- package/dist/{index-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-BMCjAlq6.d.ts → index-CfPGC9aW.d.ts} +1 -1
- package/dist/index-CtYlR9Cu.d.ts +46 -0
- package/dist/{index--tm6L1ot.d.ts → index-Cun6cXGP.d.ts} +1 -1
- package/dist/{index-C9gAlDt_.d.ts → index-CvquEEGw.d.ts} +8 -2
- package/dist/{index-QWh122EV.d.ts → index-D57GW53K.d.ts} +1 -1
- package/dist/{index-DX4HQToB.d.ts → index-D6pP-H_N.d.ts} +1 -1
- package/dist/{index-dcT6zeY_.d.ts → index-DCU6dy7n.d.ts} +25 -5
- package/dist/{index-DqaYENaT.d.ts → index-DFDadgys.d.ts} +68 -68
- package/dist/{index-DEm3kRBO.d.ts → index-DN1RqxjP.d.ts} +1 -1
- package/dist/{index-BzZC2Y7c.d.ts → index-DTfA4uE3.d.ts} +1 -1
- package/dist/{index-BZchpRgm.d.ts → index-DZKv1WNB.d.ts} +2 -2
- package/dist/{index-BUZDSd-n.d.ts → index-Dc52pmSr.d.ts} +4 -2
- package/dist/{index-uqEqPcmR.d.ts → index-DhMCql2U.d.ts} +1 -1
- package/dist/{index-O9y23OPJ.d.ts → index-DneQgJfI.d.ts} +1 -1
- package/dist/{index-Dj1_1t3j.d.ts → index-IFFGXlhq.d.ts} +1 -1
- package/dist/{index-DaXzQxos.d.ts → index-MEix_m1o.d.ts} +2 -2
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-D21zdEgS.d.ts → index-Uh-ddE5F.d.ts} +1 -1
- package/dist/{index-BtrAhmSP.d.ts → index-fuztfDLA.d.ts} +10 -6
- package/dist/{index-BRXgpLcd.d.ts → index-mJ_aqK5M.d.ts} +3 -3
- package/dist/{index-3t5RAfNP.d.ts → index-mkbGYz8f.d.ts} +2 -2
- package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
- package/dist/{index-Dacg7XTH.d.ts → index-wkeCkhTi.d.ts} +16 -6
- package/dist/index.d.ts +53 -53
- package/dist/index.js +134 -130
- package/dist/layerSurfacePress-C3PjPpJP.js +29 -0
- package/dist/{loadCatalog-85MyL2bm.js → loadCatalog-Bulk4H7U.js} +2 -2
- package/dist/{loadCatalog-DSRSkHnY.d.ts → loadCatalog-D_uf2uX1.d.ts} +36 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -4
- package/dist/{locale-C7RSY-JG.js → locale-BA52q_fh.js} +1 -1
- package/dist/pressFeedback-Bwwpex9q.js +578 -0
- package/dist/{registry-C7OZb0PJ.js → registry-fNY3jasS.js} +23 -4
- package/dist/{searchResultMessage-T4H3r8Vz.js → searchResultMessage-CFmIy2Da.js} +2 -2
- package/dist/semantic-CXHSMwPK.d.ts +118 -0
- package/dist/{sharedResizeObserver-9EFWnSWH.js → sharedResizeObserver-BekhnB3E.js} +5 -1
- package/dist/slotContent-CNWOrGOr.js +14 -0
- package/dist/{slug-DAK6hdbr.js → slug-D6ln5PTq.js} +3 -1
- package/dist/strayClick-CY-_ImKv.js +60 -0
- package/dist/textClampContext-o3-nLErq.js +15 -0
- package/dist/textDirection-D4ObTwbB.js +32 -0
- package/dist/themeIcons-CqGF0fwW.js +128 -0
- package/dist/tooltipTriggerRules-Bg4tG8w2.js +53 -0
- package/dist/{types-CsqwQkf1.d.ts → types-Bq4Yl6CS.d.ts} +68 -7
- package/dist/{types-Bb7OGivY.d.ts → types-BwVJBE-G.d.ts} +1 -1
- package/dist/{types-C5GQ2KCK.d.ts → types-Dcai2Icw.d.ts} +55 -1
- package/dist/{types-DnrU3HYQ.d.ts → types-hB0M54I7.d.ts} +1 -1
- package/dist/unicodeRegExp-B7yQnpFC.js +14 -0
- package/dist/{upstreamMap-CZUPxbc9.js → upstreamMap-DrkVNtXW.js} +2 -0
- package/dist/useActionGroupTracking-BncJjk1A.js +131 -0
- package/dist/{useAnchoredListbox-6t5zSSz1.js → useAnchoredListbox-9Gn8asBR.js} +3 -2
- package/dist/useCoarsePointer-GItEMrjX.js +21 -0
- package/dist/{useDevWarning-DznOpOHT.js → useDevWarning-B2fsk2B-.js} +1 -4
- package/dist/{usePositionedLayer-psKf3ano.js → useDismiss-0-Z-9D0A.js} +52 -52
- package/dist/{useFileSelection-BPtaegqK.js → useFileSelection-B44UpbvF.js} +14 -4
- package/dist/{useIndicator-BvF_KY9S.js → useIndicator--9mGGlT2.js} +2 -2
- package/dist/{useInputContainer-CLcYrby4.js → useInputContainer-BpLtCA-U.js} +1 -1
- package/dist/{useInputStatusIcon-BSVFtRQG.js → useInputStatusIcon-DCnx00BM.js} +2 -2
- package/dist/{useLayer-Byjda3dD.js → useLayer-CED-g4Q2.js} +1 -1
- package/dist/{useMenuDrillIn-C36Z89W3.js → useMenuDrillIn-C5eJCuO1.js} +2 -2
- package/dist/{useMenuPress-8foxY8z4.js → useMenuPress-BLPwY_m1.js} +2 -59
- package/dist/usePressFeedback-Bcjsw9vv.js +49 -0
- package/dist/{useTooltip-BKsCTWdb.js → useTooltip-D8Tq7-yd.js} +36 -22
- package/dist/{useTranslator-BDUOzbP_.js → useTranslator-Q85hi4qz.js} +2 -2
- package/dist/useTruncation-C4pdlaXa.js +135 -0
- package/dist/useTruncationTooltip-BNk2xslw.js +106 -0
- package/dist/utils/index.js +1 -1
- package/dist/{utils-ClVseK2w.js → utils-BTkg5Ie9.js} +7 -2
- package/locales/en.json +8 -0
- package/package.json +1 -1
- package/styles/alert-dialog.css +19 -0
- package/styles/avatar.css +18 -3
- package/styles/badge.css +20 -2
- package/styles/banner.css +6 -0
- package/styles/button-group.css +38 -2
- package/styles/button.css +76 -4
- package/styles/calendar.css +34 -0
- package/styles/carousel.css +19 -11
- package/styles/chat.css +2 -0
- package/styles/checkbox-indicator.css +9 -9
- package/styles/checkbox-input.css +4 -1
- package/styles/citation.css +2 -1
- package/styles/clickable-card.css +19 -5
- package/styles/code.css +6 -0
- package/styles/context-menu.css +11 -0
- package/styles/dialog-header.css +2 -0
- package/styles/dialog.css +7 -0
- package/styles/dropdown-menu.css +11 -0
- package/styles/field.css +2 -0
- package/styles/heading.css +4 -0
- package/styles/hover-card.css +2 -0
- package/styles/icon.css +18 -12
- package/styles/input-group.css +1 -0
- package/styles/kbd.css +2 -0
- package/styles/layer.css +2 -0
- package/styles/lightbox.css +78 -0
- package/styles/link.css +25 -1
- package/styles/list.css +10 -1
- package/styles/metadata-list.css +1 -1
- package/styles/more-menu.css +6 -0
- package/styles/popover.css +7 -0
- package/styles/pressable.css +7 -0
- package/styles/radio-indicator.css +21 -4
- package/styles/slider.css +2 -0
- package/styles/switch.css +2 -1
- package/styles/table.css +25 -1
- package/styles/text.css +8 -0
- package/styles/thumbnail.css +25 -0
- package/styles/toast.css +2 -0
- package/styles/toggle-button.css +17 -0
- package/styles/token.css +14 -9
- package/styles/toolbar.css +19 -0
- package/dist/Badge-CjDQPF5g.js +0 -30
- package/dist/Heading-D0zL1j5T.js +0 -99
- package/dist/context-B6UElI5X.js +0 -5
- package/dist/context-Cws_tXTr.js +0 -7
- package/dist/context-IvbU9c3T.js +0 -8
- package/dist/index-LySSG_PR.d.ts +0 -27
- package/dist/semantic-BF_AjLvk.d.ts +0 -57
- package/dist/useClickableContainer-CdGp_Cev.js +0 -112
- package/dist/usePressFeedback-Dhnfc3ee.js +0 -336
- package/dist/useTruncation-C02rA1-c.js +0 -102
- package/dist/{useRestoreFocus-XEKs5-gp.js → useRestoreFocus-CEG0n2AK.js} +1 -1
|
@@ -1,16 +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 {
|
|
5
|
+
import { a as provideIconSize, t as _sfc_main$3 } from "./Icon-BCHo7W0x.js";
|
|
6
|
+
import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
|
|
4
7
|
import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
|
|
5
8
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
6
9
|
import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
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";
|
|
10
17
|
import { t as invokeNativeEventHandler } from "./eventHandlers-DUXzBWZy.js";
|
|
11
18
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
12
|
-
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";
|
|
13
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
|
|
14
138
|
//#region src/Button/ButtonSpinner.vue
|
|
15
139
|
const _hoisted_1$1 = ["aria-label"];
|
|
16
140
|
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
@@ -77,6 +201,7 @@ const _hoisted_3 = {
|
|
|
77
201
|
};
|
|
78
202
|
const _hoisted_4 = {
|
|
79
203
|
key: 1,
|
|
204
|
+
ref: "labelText",
|
|
80
205
|
class: "astryx-button__label"
|
|
81
206
|
};
|
|
82
207
|
const _hoisted_5 = {
|
|
@@ -134,11 +259,19 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
134
259
|
const renderedRoot = useTemplateRef("root");
|
|
135
260
|
const tooltipId = `astryx-button-tooltip-${useId()}`;
|
|
136
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);
|
|
137
270
|
const effectiveSize = useSize(() => props.size ?? group?.size.value);
|
|
138
271
|
/** 小、中按钮里的图标是 16px,大按钮是 20px。插槽里没写尺寸的图标跟着走。 */
|
|
139
272
|
provideIconSize(computed(() => effectiveSize.value === "lg" ? "md" : "sm"));
|
|
140
273
|
const isGroupDisabled = computed(() => group?.isDisabled.value ?? false);
|
|
141
|
-
const isLocallyDisabled =
|
|
274
|
+
const isLocallyDisabled = useInputGroupDisabled(() => props.isDisabled || isGroupDisabled.value);
|
|
142
275
|
const action = useButtonAction({
|
|
143
276
|
clickAction: () => props.clickAction,
|
|
144
277
|
emitClick: (event) => emit("click", event),
|
|
@@ -186,6 +319,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
186
319
|
return root.$el instanceof HTMLElement ? root.$el : null;
|
|
187
320
|
});
|
|
188
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
|
+
});
|
|
189
329
|
const rootClass = computed(() => ["astryx-button", attrs.class]);
|
|
190
330
|
const rootStyle = computed(() => {
|
|
191
331
|
const buttonStyle = {};
|
|
@@ -223,17 +363,29 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
223
363
|
"onKeydown",
|
|
224
364
|
"style"
|
|
225
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
|
+
}
|
|
226
374
|
function getForwardedAttrs() {
|
|
227
375
|
return {
|
|
228
376
|
...Object.fromEntries(Object.entries(attrs).filter(([key]) => !controlledAttrs.has(key))),
|
|
229
|
-
...press.pressableProps
|
|
377
|
+
...press.pressableProps,
|
|
378
|
+
...groupItemProps.value
|
|
230
379
|
};
|
|
231
380
|
}
|
|
232
381
|
function handleRootClick(event) {
|
|
233
382
|
return action.handleClick(event);
|
|
234
383
|
}
|
|
235
384
|
function handleRootKeydown(event) {
|
|
236
|
-
if (event.key === "Escape")
|
|
385
|
+
if (event.key === "Escape") {
|
|
386
|
+
buttonTooltip.hideImmediately();
|
|
387
|
+
cutLabel.hide();
|
|
388
|
+
}
|
|
237
389
|
if (isButtonDisabled.value && (event.key === "Enter" || event.key === " ")) {
|
|
238
390
|
event.preventDefault();
|
|
239
391
|
return;
|
|
@@ -243,9 +395,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
243
395
|
__expose({ element });
|
|
244
396
|
return (_ctx, _cache) => {
|
|
245
397
|
return openBlock(), createBlock(resolveDynamicComponent(rootComponent.value), mergeProps({ ref: "root" }, getForwardedAttrs(), {
|
|
246
|
-
"aria-busy": isLoadingState.value ||
|
|
398
|
+
"aria-busy": isLoadingState.value || callerAria("aria-busy"),
|
|
247
399
|
"aria-describedby": ariaDescribedBy.value,
|
|
248
|
-
"aria-disabled": isButtonDisabled.value ||
|
|
400
|
+
"aria-disabled": isButtonDisabled.value || callerAria("aria-disabled"),
|
|
249
401
|
"aria-label": ariaLabel.value,
|
|
250
402
|
class: rootClass.value,
|
|
251
403
|
"data-astryx-edge-comp": __props.variant === "ghost" ? "" : void 0,
|
|
@@ -267,6 +419,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
267
419
|
onBlur: unref(buttonTooltip).onBlur,
|
|
268
420
|
onClick: handleRootClick,
|
|
269
421
|
onFocus: unref(buttonTooltip).onFocus,
|
|
422
|
+
onFocusin: unref(cutLabel).onFocusin,
|
|
423
|
+
onFocusout: unref(cutLabel).onFocusout,
|
|
424
|
+
onPointerdownCapture: unref(cutLabel).onPointerdown,
|
|
270
425
|
onKeydown: handleRootKeydown,
|
|
271
426
|
onPointerdown: unref(buttonTooltip).onPointerDown,
|
|
272
427
|
onPointerenter: unref(buttonTooltip).onPointerEnter,
|
|
@@ -278,21 +433,21 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
278
433
|
class: "astryx-button__content",
|
|
279
434
|
"aria-hidden": isLoadingState.value || void 0
|
|
280
435
|
}, [
|
|
281
|
-
_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, {
|
|
282
437
|
key: 0,
|
|
283
438
|
icon: __props.icon
|
|
284
439
|
}, null, 8, ["icon"])) : __props.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon), { key: 1 })) : createCommentVNode("v-if", true)])])) : createCommentVNode("v-if", true),
|
|
285
|
-
!__props.isIconOnly ? (openBlock(), createElementBlock("span", _hoisted_4, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])])) : createCommentVNode("v-if", true),
|
|
286
|
-
!__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)
|
|
287
442
|
], 8, _hoisted_2),
|
|
288
|
-
createVNode(_sfc_main$
|
|
443
|
+
createVNode(_sfc_main$5, {
|
|
289
444
|
role: "status",
|
|
290
445
|
"aria-live": "polite"
|
|
291
446
|
}, {
|
|
292
447
|
default: withCtx(() => [createTextVNode(toDisplayString(isLoadingState.value && isLiveRegionReady.value ? __props.loadingLabel : ""), 1)]),
|
|
293
448
|
_: 1
|
|
294
449
|
}),
|
|
295
|
-
hasTooltip.value ? (openBlock(), createBlock(_sfc_main$
|
|
450
|
+
hasTooltip.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
296
451
|
key: 1,
|
|
297
452
|
id: tooltipId,
|
|
298
453
|
anchor: element.value,
|
|
@@ -306,7 +461,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
306
461
|
"text",
|
|
307
462
|
"onPointerEnter",
|
|
308
463
|
"onPointerLeave"
|
|
309
|
-
])) : 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)
|
|
310
470
|
]),
|
|
311
471
|
_: 3
|
|
312
472
|
}, 16, [
|
|
@@ -333,6 +493,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
333
493
|
"value",
|
|
334
494
|
"onBlur",
|
|
335
495
|
"onFocus",
|
|
496
|
+
"onFocusin",
|
|
497
|
+
"onFocusout",
|
|
498
|
+
"onPointerdownCapture",
|
|
336
499
|
"onPointerdown",
|
|
337
500
|
"onPointerenter",
|
|
338
501
|
"onPointerleave"
|
|
@@ -341,4 +504,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
341
504
|
}
|
|
342
505
|
});
|
|
343
506
|
//#endregion
|
|
344
|
-
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.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, s as CardVariantMap, t as _default } from "../index-
|
|
1
|
+
import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, s as CardVariantMap, t as _default } from "../index-CTjkJP4x.js";
|
|
2
2
|
export { _default as Card, type CardElevation, type CardProps, type CardSizeValue, type CardSlots, type CardVariant, type CardVariantMap };
|
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
|
|
@@ -84,6 +84,41 @@ function readOverflow(element) {
|
|
|
84
84
|
overflowEnd: element.scrollLeft < max - 1
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* 除了滚动,还有这些会改变一行是否溢出:滚动区自己的尺寸、每张卡片的尺寸、
|
|
89
|
+
* 卡片的增删、滚动区的 class 或 style(换了间距或内边距)。返回停止观察的函数。
|
|
90
|
+
*/
|
|
91
|
+
function observeContent(element, onChange) {
|
|
92
|
+
const resize = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(onChange);
|
|
93
|
+
const observed = /* @__PURE__ */ new Set();
|
|
94
|
+
function followChildren() {
|
|
95
|
+
const children = new Set(element.children);
|
|
96
|
+
for (const child of observed) if (!children.has(child)) {
|
|
97
|
+
resize?.unobserve(child);
|
|
98
|
+
observed.delete(child);
|
|
99
|
+
}
|
|
100
|
+
for (const child of children) if (!observed.has(child)) {
|
|
101
|
+
resize?.observe(child);
|
|
102
|
+
observed.add(child);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
resize?.observe(element);
|
|
106
|
+
followChildren();
|
|
107
|
+
const mutations = typeof MutationObserver === "undefined" ? null : new MutationObserver(() => {
|
|
108
|
+
followChildren();
|
|
109
|
+
onChange();
|
|
110
|
+
});
|
|
111
|
+
mutations?.observe(element, {
|
|
112
|
+
childList: true,
|
|
113
|
+
attributes: true,
|
|
114
|
+
attributeFilter: ["class", "style"]
|
|
115
|
+
});
|
|
116
|
+
return () => {
|
|
117
|
+
mutations?.disconnect();
|
|
118
|
+
resize?.disconnect();
|
|
119
|
+
observed.clear();
|
|
120
|
+
};
|
|
121
|
+
}
|
|
87
122
|
function useCarouselScroller(scroller) {
|
|
88
123
|
const overflow = ref({
|
|
89
124
|
hasOverflow: false,
|
|
@@ -91,7 +126,7 @@ function useCarouselScroller(scroller) {
|
|
|
91
126
|
overflowEnd: false
|
|
92
127
|
});
|
|
93
128
|
let frame = 0;
|
|
94
|
-
let
|
|
129
|
+
let stopObservingContent = null;
|
|
95
130
|
function measure() {
|
|
96
131
|
const element = scroller.value;
|
|
97
132
|
overflow.value = element == null ? {
|
|
@@ -150,15 +185,22 @@ function useCarouselScroller(scroller) {
|
|
|
150
185
|
});
|
|
151
186
|
}
|
|
152
187
|
function onWheel(event) {
|
|
153
|
-
if (!event.shiftKey || event.deltaY === 0 || event.deltaX !== 0) return;
|
|
154
|
-
const element = scroller.value;
|
|
155
|
-
if (element == null || element.scrollWidth <= element.clientWidth) return;
|
|
188
|
+
if (event.defaultPrevented || !event.shiftKey || event.deltaY === 0 || event.deltaX !== 0) return;
|
|
156
189
|
event.preventDefault();
|
|
157
|
-
|
|
190
|
+
scroller.value?.scrollBy({
|
|
158
191
|
left: event.deltaY,
|
|
159
192
|
behavior: "auto"
|
|
160
193
|
});
|
|
161
194
|
}
|
|
195
|
+
let wheelTarget = null;
|
|
196
|
+
function syncWheelListener() {
|
|
197
|
+
const next = overflow.value.hasOverflow ? scroller.value : null;
|
|
198
|
+
if (next === wheelTarget) return;
|
|
199
|
+
wheelTarget?.removeEventListener("wheel", onWheel);
|
|
200
|
+
next?.addEventListener("wheel", onWheel, { passive: false });
|
|
201
|
+
wheelTarget = next;
|
|
202
|
+
}
|
|
203
|
+
watch(() => overflow.value.hasOverflow, syncWheelListener);
|
|
162
204
|
function onKeyDown(event, hasLoop) {
|
|
163
205
|
if (event.key !== "ArrowLeft" && event.key !== "ArrowRight") return;
|
|
164
206
|
const element = scroller.value;
|
|
@@ -171,17 +213,15 @@ function useCarouselScroller(scroller) {
|
|
|
171
213
|
const element = scroller.value;
|
|
172
214
|
if (element == null) return;
|
|
173
215
|
measure();
|
|
216
|
+
syncWheelListener();
|
|
174
217
|
element.addEventListener("scroll", schedule, { passive: true });
|
|
175
|
-
element
|
|
176
|
-
observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(schedule);
|
|
177
|
-
observer?.observe(element);
|
|
178
|
-
for (const child of element.children) observer?.observe(child);
|
|
218
|
+
stopObservingContent = observeContent(element, schedule);
|
|
179
219
|
});
|
|
180
220
|
onBeforeUnmount(() => {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
221
|
+
scroller.value?.removeEventListener("scroll", schedule);
|
|
222
|
+
wheelTarget?.removeEventListener("wheel", onWheel);
|
|
223
|
+
wheelTarget = null;
|
|
224
|
+
stopObservingContent?.();
|
|
185
225
|
if (frame !== 0 && typeof cancelAnimationFrame === "function") cancelAnimationFrame(frame);
|
|
186
226
|
});
|
|
187
227
|
return {
|
|
@@ -196,11 +236,13 @@ function useCarouselScroller(scroller) {
|
|
|
196
236
|
//#region src/Carousel/Carousel.vue
|
|
197
237
|
const _hoisted_1 = ["aria-label"];
|
|
198
238
|
const _hoisted_2 = [
|
|
239
|
+
"aria-label",
|
|
199
240
|
"data-gap",
|
|
200
241
|
"data-padding",
|
|
201
242
|
"data-snap",
|
|
202
243
|
"data-edge-fade",
|
|
203
|
-
"data-fade"
|
|
244
|
+
"data-fade",
|
|
245
|
+
"tabindex"
|
|
204
246
|
];
|
|
205
247
|
const _hoisted_3 = {
|
|
206
248
|
key: 0,
|
|
@@ -317,17 +359,20 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
317
359
|
"aria-label": regionLabel.value,
|
|
318
360
|
"data-component": "carousel"
|
|
319
361
|
}, [
|
|
320
|
-
createCommentVNode("
|
|
362
|
+
createCommentVNode(" 滚动区是和轮播同名的分组,只在内容溢出时进 Tab 序列,左右方向键只滚动这一行。放得下时仍能被程序聚焦,用来接住边缘按钮交出的焦点。 "),
|
|
363
|
+
createCommentVNode(" eslint-disable-next-line vue-a11y/no-static-element-interactions -- 分组本身接收方向键滚动,tabindex 随溢出切换。 "),
|
|
321
364
|
createElementVNode("div", {
|
|
322
365
|
ref_key: "scroller",
|
|
323
366
|
ref: scroller,
|
|
324
367
|
class: "astryx-carousel__scroller astryx-carousel-scroller",
|
|
368
|
+
role: "group",
|
|
369
|
+
"aria-label": regionLabel.value,
|
|
325
370
|
"data-gap": __props.gap,
|
|
326
371
|
"data-padding": __props.padding,
|
|
327
372
|
"data-snap": __props.hasSnap || void 0,
|
|
328
373
|
"data-edge-fade": __props.hasEdgeFade || void 0,
|
|
329
374
|
"data-fade": fade.value,
|
|
330
|
-
tabindex:
|
|
375
|
+
tabindex: unref(overflow).hasOverflow ? 0 : -1,
|
|
331
376
|
style: normalizeStyle(scrollerStyle.value),
|
|
332
377
|
onKeydown: _cache[0] || (_cache[0] = ($event) => unref(onKeyDown)($event, __props.hasLoop))
|
|
333
378
|
}, [createVNode(unref(CarouselItems), {
|
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 };
|