@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,9 +1,10 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
1
|
+
import { t as isInLayerSurface } from "./layerSurfacePress-C3PjPpJP.js";
|
|
2
|
+
import { t as usePressFeedback } from "./usePressFeedback-Bcjsw9vv.js";
|
|
3
|
+
import { i as isIconGlyph, t as _sfc_main$2 } from "./Icon-BCHo7W0x.js";
|
|
3
4
|
import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
|
|
4
5
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
5
|
-
import { s as useAstryxMessages } from "./context-
|
|
6
|
-
import { t as _sfc_main$3 } from "./Badge-
|
|
6
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
7
|
+
import { t as _sfc_main$3 } from "./Badge-BbPS_49c.js";
|
|
7
8
|
import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
|
|
8
9
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, onMounted, openBlock, reactive, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, toRaw, unref, useAttrs, useId, useSlots, vShow, withCtx, withDirectives } from "vue";
|
|
9
10
|
import "../styles/tree-list.css";
|
|
@@ -125,6 +126,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
125
126
|
if (props.item.isDisabled) return;
|
|
126
127
|
const target = event.target;
|
|
127
128
|
if (target instanceof Element && target.closest("button, a, input, select, textarea")) return;
|
|
129
|
+
if (target instanceof Element && isInLayerSurface(target, event.currentTarget)) return;
|
|
128
130
|
if (props.item.onClick) props.item.onClick(event);
|
|
129
131
|
else if (hasChildren.value) emit("toggle", props.item.id);
|
|
130
132
|
else if (safeHref.value) event.currentTarget.querySelector(".astryx-tree-list__action")?.click();
|
|
@@ -142,7 +144,9 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
142
144
|
if (props.item.isDisabled) event.preventDefault();
|
|
143
145
|
consumeWhileDisabled(event, props.item.isDisabled === true);
|
|
144
146
|
}
|
|
145
|
-
const press = usePressFeedback();
|
|
147
|
+
const press = usePressFeedback({ isContainer: true });
|
|
148
|
+
/** 整行点下去是展开收起(没有自己的点击):这时箭头按钮做的是同一件事,按它也算按这一行。 */
|
|
149
|
+
const chevronPress = computed(() => props.item.onClick == null ? press.pressActionProps : {});
|
|
146
150
|
const rowPress = computed(() => {
|
|
147
151
|
return (props.item.onClick != null || safeHref.value != null || hasChildren.value) && props.item.isDisabled !== true ? press.pressableProps : {};
|
|
148
152
|
});
|
|
@@ -189,7 +193,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
189
193
|
"data-interactive": __props.item.onClick != null || safeHref.value != null || hasChildren.value || void 0,
|
|
190
194
|
style: { "--_tree-indent": indent.value }
|
|
191
195
|
}, rowPress.value, { onClick: onRowClick }), [createElementVNode("div", _hoisted_5, [
|
|
192
|
-
hasChildren.value ? (openBlock(), createElementBlock("button", {
|
|
196
|
+
hasChildren.value ? (openBlock(), createElementBlock("button", mergeProps({
|
|
193
197
|
key: 0,
|
|
194
198
|
type: "button",
|
|
195
199
|
class: "astryx-tree-list__chevron",
|
|
@@ -198,14 +202,15 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
198
202
|
"aria-expanded": isExpanded.value,
|
|
199
203
|
"aria-label": unref(messages).treeList.toggleChildren,
|
|
200
204
|
"aria-disabled": __props.item.isDisabled || void 0,
|
|
201
|
-
tabindex: "-1"
|
|
205
|
+
tabindex: "-1"
|
|
206
|
+
}, chevronPress.value, {
|
|
202
207
|
onClick: onToggle,
|
|
203
208
|
onKeydown: _cache[0] || (_cache[0] = ($event) => unref(consumeWhileDisabled)($event, __props.item.isDisabled === true))
|
|
204
|
-
}, [createVNode(_sfc_main$2, {
|
|
209
|
+
}), [createVNode(_sfc_main$2, {
|
|
205
210
|
icon: "chevronRight",
|
|
206
211
|
size: "sm",
|
|
207
212
|
color: "inherit"
|
|
208
|
-
})],
|
|
213
|
+
})], 16, _hoisted_6)) : createCommentVNode("v-if", true),
|
|
209
214
|
__props.item.startContent ? (openBlock(), createElementBlock("span", _hoisted_7, [(openBlock(), createBlock(resolveDynamicComponent(__props.item.startContent)))])) : __props.item.icon ? (openBlock(), createElementBlock("span", _hoisted_8, [unref(isIconGlyph)(__props.item.icon) ? (openBlock(), createBlock(_sfc_main$2, {
|
|
210
215
|
key: 0,
|
|
211
216
|
icon: __props.item.icon,
|
|
@@ -214,9 +219,10 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
214
219
|
class: normalizeClass(__props.item.icon),
|
|
215
220
|
"aria-hidden": "true"
|
|
216
221
|
}, null, 2)]))])) : createCommentVNode("v-if", true),
|
|
217
|
-
safeHref.value ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), {
|
|
222
|
+
safeHref.value ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), mergeProps({
|
|
218
223
|
key: 3,
|
|
219
|
-
class: "astryx-tree-list__action"
|
|
224
|
+
class: "astryx-tree-list__action"
|
|
225
|
+
}, unref(press).pressActionProps, {
|
|
220
226
|
href: safeHref.value,
|
|
221
227
|
to: linkRoot.value === "a" ? void 0 : safeHref.value,
|
|
222
228
|
target: __props.item.target,
|
|
@@ -227,7 +233,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
227
233
|
tabindex: "-1",
|
|
228
234
|
onClick: onLinkClick,
|
|
229
235
|
onKeydown: _cache[1] || (_cache[1] = ($event) => unref(consumeWhileDisabled)($event, __props.item.isDisabled === true))
|
|
230
|
-
}, {
|
|
236
|
+
}), {
|
|
231
237
|
default: withCtx(() => [createElementVNode("span", {
|
|
232
238
|
id: unref(labelId),
|
|
233
239
|
class: "astryx-tree-list__label"
|
|
@@ -237,7 +243,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
237
243
|
class: "astryx-tree-list__description"
|
|
238
244
|
}, toDisplayString(__props.item.description), 9, _hoisted_11)) : createCommentVNode("v-if", true)]),
|
|
239
245
|
_: 1
|
|
240
|
-
},
|
|
246
|
+
}, 16, [
|
|
241
247
|
"href",
|
|
242
248
|
"to",
|
|
243
249
|
"target",
|
|
@@ -245,24 +251,25 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
245
251
|
"aria-labelledby",
|
|
246
252
|
"aria-describedby",
|
|
247
253
|
"aria-disabled"
|
|
248
|
-
])) : __props.item.onClick ? (openBlock(), createElementBlock("button", {
|
|
254
|
+
])) : __props.item.onClick ? (openBlock(), createElementBlock("button", mergeProps({
|
|
249
255
|
key: 4,
|
|
250
256
|
type: "button",
|
|
251
|
-
class: "astryx-tree-list__action"
|
|
257
|
+
class: "astryx-tree-list__action"
|
|
258
|
+
}, unref(press).pressActionProps, {
|
|
252
259
|
"aria-labelledby": unref(labelId),
|
|
253
260
|
"aria-describedby": __props.item.description ? unref(descriptionId) : void 0,
|
|
254
261
|
"aria-disabled": __props.item.isDisabled || void 0,
|
|
255
262
|
tabindex: "-1",
|
|
256
263
|
onClick: onActionClick,
|
|
257
264
|
onKeydown: _cache[2] || (_cache[2] = ($event) => unref(consumeWhileDisabled)($event, __props.item.isDisabled === true))
|
|
258
|
-
}, [createElementVNode("span", {
|
|
265
|
+
}), [createElementVNode("span", {
|
|
259
266
|
id: unref(labelId),
|
|
260
267
|
class: "astryx-tree-list__label"
|
|
261
268
|
}, toDisplayString(__props.item.label), 9, _hoisted_13), __props.item.description ? (openBlock(), createElementBlock("span", {
|
|
262
269
|
key: 0,
|
|
263
270
|
id: unref(descriptionId),
|
|
264
271
|
class: "astryx-tree-list__description"
|
|
265
|
-
}, toDisplayString(__props.item.description), 9, _hoisted_14)) : createCommentVNode("v-if", true)],
|
|
272
|
+
}, toDisplayString(__props.item.description), 9, _hoisted_14)) : createCommentVNode("v-if", true)], 16, _hoisted_12)) : (openBlock(), createElementBlock("span", _hoisted_15, [createElementVNode("span", {
|
|
266
273
|
id: unref(labelId),
|
|
267
274
|
class: "astryx-tree-list__label"
|
|
268
275
|
}, toDisplayString(__props.item.label), 9, _hoisted_16), __props.item.description ? (openBlock(), createElementBlock("span", {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TypeaheadEmits, c as TypeaheadSize, i as BaseTypeaheadProps, l as TypeaheadSlots, n as _default$1, o as TypeaheadItemProps, r as _default, s as TypeaheadProps, t as _default$2, u as TypeaheadStatus } from "../index-
|
|
1
|
+
import { a as TypeaheadEmits, c as TypeaheadSize, i as BaseTypeaheadProps, l as TypeaheadSlots, n as _default$1, o as TypeaheadItemProps, r as _default, s as TypeaheadProps, t as _default$2, u as TypeaheadStatus } from "../index-CM2L3SUw.js";
|
|
2
2
|
export { _default as BaseTypeahead, type BaseTypeaheadProps, _default$1 as Typeahead, type TypeaheadEmits, _default$2 as TypeaheadItem, type TypeaheadItemProps, type TypeaheadProps, type TypeaheadSize, type TypeaheadSlots, type TypeaheadStatus };
|
package/dist/Typeahead/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as _sfc_main$2 } from "../TypeaheadMenu-
|
|
2
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../Typeahead-
|
|
1
|
+
import { n as _sfc_main$2 } from "../TypeaheadMenu-CFeJCv-6.js";
|
|
2
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../Typeahead-BkmCC6DX.js";
|
|
3
3
|
export { _sfc_main as BaseTypeahead, _sfc_main$1 as Typeahead, _sfc_main$2 as TypeaheadItem };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
|
|
2
|
+
import { a as isImeKeyEvent } from "./layerDepth-CNDh-IHb.js";
|
|
1
3
|
import { t as _sfc_main$2 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
2
4
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
5
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
5
6
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
6
7
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
7
|
-
import { t as _sfc_main$3 } from "./Spinner-
|
|
8
|
-
import { t as _sfc_main$4 } from "./Field-
|
|
9
|
-
import { t as useFieldPartStyling } from "./fieldParts
|
|
10
|
-
import { t as _sfc_main$5 } from "./Token-
|
|
11
|
-
import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-
|
|
12
|
-
import { i as useTypeaheadMenu, r as useLatchedOptionGrid, t as _sfc_main$6 } from "./TypeaheadMenu-
|
|
8
|
+
import { t as _sfc_main$3 } from "./Spinner-ke63bQPv.js";
|
|
9
|
+
import { t as _sfc_main$4 } from "./Field-if5a58LO.js";
|
|
10
|
+
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
11
|
+
import { t as _sfc_main$5 } from "./Token-DWCDMawn.js";
|
|
12
|
+
import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-9Gn8asBR.js";
|
|
13
|
+
import { i as useTypeaheadMenu, r as useLatchedOptionGrid, t as _sfc_main$6 } from "./TypeaheadMenu-CFeJCv-6.js";
|
|
13
14
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, inject, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
|
|
14
15
|
import "../styles/layer.css";
|
|
15
16
|
import "../styles/visually-hidden-utility.css";
|
|
@@ -27,7 +28,8 @@ const _hoisted_1 = {
|
|
|
27
28
|
class: "astryx-typeahead-icon",
|
|
28
29
|
"aria-hidden": "true"
|
|
29
30
|
};
|
|
30
|
-
const _hoisted_2 = [
|
|
31
|
+
const _hoisted_2 = ["id"];
|
|
32
|
+
const _hoisted_3 = [
|
|
31
33
|
"id",
|
|
32
34
|
"tabindex",
|
|
33
35
|
"data-autofocus",
|
|
@@ -45,10 +47,10 @@ const _hoisted_2 = [
|
|
|
45
47
|
"aria-describedby",
|
|
46
48
|
"aria-required"
|
|
47
49
|
];
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
50
|
+
const _hoisted_4 = ["aria-label"];
|
|
51
|
+
const _hoisted_5 = ["id"];
|
|
52
|
+
const _hoisted_6 = ["name", "value"];
|
|
53
|
+
const _hoisted_7 = [
|
|
52
54
|
"id",
|
|
53
55
|
"role",
|
|
54
56
|
"aria-label",
|
|
@@ -64,6 +66,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
64
66
|
label: {},
|
|
65
67
|
inputId: {},
|
|
66
68
|
describedBy: {},
|
|
69
|
+
labelId: {},
|
|
67
70
|
ariaDescribedBy: {},
|
|
68
71
|
ariaLabelledBy: {},
|
|
69
72
|
anchorRef: {},
|
|
@@ -156,6 +159,16 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
156
159
|
const externalDescribedBy = computed(() => props.ariaDescribedBy ?? attrString("aria-describedby"));
|
|
157
160
|
const labelledBy = computed(() => props.ariaLabelledBy ?? attrString("aria-labelledby"));
|
|
158
161
|
const ariaLabel = computed(() => props.label ?? attrString("aria-label"));
|
|
162
|
+
const tokenValueId = computed(() => `${inputId.value}-value`);
|
|
163
|
+
/**
|
|
164
|
+
* 有值时,值 Token 的按钮就是这个字段的 Tab 停点。它和输入框一样用字段标签
|
|
165
|
+
* (再加上调用方的 aria-labelledby)命名,后面跟着值;说明也和输入框一样。
|
|
166
|
+
*/
|
|
167
|
+
const tokenLabelledBy = computed(() => [
|
|
168
|
+
props.labelId,
|
|
169
|
+
labelledBy.value,
|
|
170
|
+
tokenValueId.value
|
|
171
|
+
].filter(Boolean).join(" "));
|
|
159
172
|
const describedBy = computed(() => {
|
|
160
173
|
return [
|
|
161
174
|
props.describedBy,
|
|
@@ -350,17 +363,26 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
350
363
|
onPointerleave: _cache[1] || (_cache[1] = (...args) => unref(disabledTooltip).onPointerLeave && unref(disabledTooltip).onPointerLeave(...args))
|
|
351
364
|
}, [
|
|
352
365
|
_ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("v-if", true),
|
|
353
|
-
showToken.value && selected.value ? (openBlock(),
|
|
366
|
+
showToken.value && selected.value ? (openBlock(), createElementBlock("span", {
|
|
354
367
|
key: 1,
|
|
368
|
+
id: tokenValueId.value,
|
|
369
|
+
hidden: ""
|
|
370
|
+
}, toDisplayString(selected.value.label), 9, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
371
|
+
showToken.value && selected.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
372
|
+
key: 2,
|
|
355
373
|
class: "astryx-typeahead-value",
|
|
356
374
|
label: selected.value.label,
|
|
357
375
|
size: props.size,
|
|
358
376
|
disabled: props.disabled,
|
|
377
|
+
"aria-labelledby": tokenLabelledBy.value,
|
|
378
|
+
"aria-describedby": describedBy.value,
|
|
359
379
|
onClick: startEdit
|
|
360
380
|
}, null, 8, [
|
|
361
381
|
"label",
|
|
362
382
|
"size",
|
|
363
|
-
"disabled"
|
|
383
|
+
"disabled",
|
|
384
|
+
"aria-labelledby",
|
|
385
|
+
"aria-describedby"
|
|
364
386
|
])) : createCommentVNode("v-if", true),
|
|
365
387
|
createElementVNode("input", mergeProps(inputAttrs(), {
|
|
366
388
|
id: inputId.value,
|
|
@@ -391,15 +413,15 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
391
413
|
onFocus,
|
|
392
414
|
onBlur,
|
|
393
415
|
onKeydown
|
|
394
|
-
}), null, 16,
|
|
416
|
+
}), null, 16, _hoisted_3),
|
|
395
417
|
unref(menu).status.value === "loading" ? (openBlock(), createBlock(_sfc_main$3, {
|
|
396
|
-
key:
|
|
418
|
+
key: 3,
|
|
397
419
|
class: "astryx-typeahead-spinner",
|
|
398
420
|
size: "sm",
|
|
399
421
|
"aria-label": unref(messages).typeahead.loading
|
|
400
422
|
}, null, 8, ["aria-label"])) : createCommentVNode("v-if", true),
|
|
401
423
|
props.clearable && selected.value && !props.disabled ? (openBlock(), createElementBlock("button", {
|
|
402
|
-
key:
|
|
424
|
+
key: 4,
|
|
403
425
|
type: "button",
|
|
404
426
|
class: "astryx-typeahead-clear",
|
|
405
427
|
"aria-label": clearLabel.value,
|
|
@@ -415,18 +437,18 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
415
437
|
stroke: "currentColor",
|
|
416
438
|
"stroke-width": "1.5",
|
|
417
439
|
"stroke-linecap": "round"
|
|
418
|
-
})], -1)])], 8,
|
|
440
|
+
})], -1)])], 8, _hoisted_4)) : createCommentVNode("v-if", true),
|
|
419
441
|
focusableDisabled.value ? (openBlock(), createElementBlock("span", {
|
|
420
|
-
key:
|
|
442
|
+
key: 5,
|
|
421
443
|
id: disabledId.value,
|
|
422
444
|
class: "astryx-visually-hidden"
|
|
423
|
-
}, toDisplayString(props.disabledReason), 9,
|
|
445
|
+
}, toDisplayString(props.disabledReason), 9, _hoisted_5)) : createCommentVNode("v-if", true),
|
|
424
446
|
props.name ? (openBlock(), createElementBlock("input", {
|
|
425
|
-
key:
|
|
447
|
+
key: 6,
|
|
426
448
|
type: "hidden",
|
|
427
449
|
name: props.name,
|
|
428
450
|
value: selected.value?.id ?? ""
|
|
429
|
-
}, null, 8,
|
|
451
|
+
}, null, 8, _hoisted_6)) : createCommentVNode("v-if", true)
|
|
430
452
|
], 38)], 2),
|
|
431
453
|
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
432
454
|
key: 0,
|
|
@@ -448,7 +470,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
448
470
|
id: listboxId.value,
|
|
449
471
|
ref_key: "listboxRef",
|
|
450
472
|
ref: listboxRef,
|
|
451
|
-
class: "astryx-typeahead-listbox astryx-layer",
|
|
473
|
+
class: "astryx-typeahead-listbox astryx-typeahead-popup astryx-layer",
|
|
452
474
|
role: unref(optionGrid).gridMode.value ? "grid" : "listbox",
|
|
453
475
|
"aria-label": unref(messages).typeahead.results,
|
|
454
476
|
"data-placement": unref(anchored).position.value.placement,
|
|
@@ -496,7 +518,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
496
518
|
"empty-text",
|
|
497
519
|
"loading-text",
|
|
498
520
|
"error-text"
|
|
499
|
-
])], 12,
|
|
521
|
+
])], 12, _hoisted_7), [[vShow, unref(menu).combobox.isOpen.value]])]))
|
|
500
522
|
], 64);
|
|
501
523
|
};
|
|
502
524
|
}
|
|
@@ -629,6 +651,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
629
651
|
return message?.trim() ? message : void 0;
|
|
630
652
|
});
|
|
631
653
|
/** 两个名字都是真才画清除按钮,任一个关掉就关掉。 */
|
|
654
|
+
const isDisabled = useInputGroupDisabled(() => props.disabled);
|
|
632
655
|
const showsClear = computed(() => props.hasClear && props.clearable);
|
|
633
656
|
/** 两个名字任一为真就在聚焦时先展开。 */
|
|
634
657
|
const showsEntriesOnFocus = computed(() => props.hasEntriesOnFocus || props.showOnFocus);
|
|
@@ -655,7 +678,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
655
678
|
description: props.description,
|
|
656
679
|
"label-tooltip": props.labelTooltip,
|
|
657
680
|
"is-label-hidden": unref(hideLabel),
|
|
658
|
-
"is-disabled":
|
|
681
|
+
"is-disabled": unref(isDisabled),
|
|
659
682
|
"is-required": props.required,
|
|
660
683
|
"is-optional": props.optional,
|
|
661
684
|
status: fieldStatus.value,
|
|
@@ -671,8 +694,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
671
694
|
"search-source": props.searchSource,
|
|
672
695
|
"input-id": field.inputId,
|
|
673
696
|
"described-by": field.describedBy,
|
|
697
|
+
"label-id": field.labelId,
|
|
674
698
|
placeholder: props.placeholder,
|
|
675
|
-
disabled:
|
|
699
|
+
disabled: unref(isDisabled),
|
|
676
700
|
"disabled-reason": disabledMessage.value,
|
|
677
701
|
status: props.status,
|
|
678
702
|
size: props.size,
|
|
@@ -717,6 +741,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
717
741
|
"search-source",
|
|
718
742
|
"input-id",
|
|
719
743
|
"described-by",
|
|
744
|
+
"label-id",
|
|
720
745
|
"placeholder",
|
|
721
746
|
"disabled",
|
|
722
747
|
"disabled-reason",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as characterCount } from "./characters-wTnzjkkR.js";
|
|
2
2
|
import { n as useAsyncSource } from "./useAsyncSource-Gk0VtE7_.js";
|
|
3
3
|
import { t as useCombobox } from "./useCombobox-CTo5C-gc.js";
|
|
4
|
-
import { t as _sfc_main$2 } from "./Spinner-
|
|
4
|
+
import { t as _sfc_main$2 } from "./Spinner-ke63bQPv.js";
|
|
5
5
|
import { n as OptionAction, r as isOptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-CkJcuvaU.js";
|
|
6
6
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, watch, withModifiers } from "vue";
|
|
7
7
|
import "../styles/typeahead.css";
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { i as defaultSemanticIcons } from "./themeIcons-CqGF0fwW.js";
|
|
2
|
+
import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
|
|
3
|
+
//#region src/Icon/componentIcons.ts
|
|
4
|
+
const ICON_SIZES = /* @__PURE__ */ new Set([
|
|
5
|
+
"xsm",
|
|
6
|
+
"sm",
|
|
7
|
+
"md",
|
|
8
|
+
"lg"
|
|
9
|
+
]);
|
|
10
|
+
function isIconName(value) {
|
|
11
|
+
return typeof value === "string" && Object.hasOwn(defaultSemanticIcons, value);
|
|
12
|
+
}
|
|
13
|
+
function isDevBuild() {
|
|
14
|
+
return import.meta.env?.DEV === true;
|
|
15
|
+
}
|
|
16
|
+
const warned = /* @__PURE__ */ new Set();
|
|
17
|
+
/**
|
|
18
|
+
* One development warning per slot and problem. Formatting a value that
|
|
19
|
+
* cannot be serialized never throws, and production builds skip it.
|
|
20
|
+
*/
|
|
21
|
+
function warnMalformed(slot, prefix, value, suffix = "") {
|
|
22
|
+
if (!isDevBuild()) return;
|
|
23
|
+
let formatted;
|
|
24
|
+
try {
|
|
25
|
+
formatted = JSON.stringify(value) ?? String(value);
|
|
26
|
+
} catch {
|
|
27
|
+
formatted = "[unserializable value]";
|
|
28
|
+
}
|
|
29
|
+
const problem = `${prefix} ${formatted}${suffix}`;
|
|
30
|
+
const key = `${slot}:${problem}`;
|
|
31
|
+
if (warned.has(key)) return;
|
|
32
|
+
warned.add(key);
|
|
33
|
+
devWarn("Icon", `componentIcons["${slot}"] ${problem}. The component keeps its own value for that field.`);
|
|
34
|
+
}
|
|
35
|
+
function applyRequest(slot, fallback, request, theme) {
|
|
36
|
+
if (request === void 0) return fallback;
|
|
37
|
+
if (request === null) return {
|
|
38
|
+
...fallback,
|
|
39
|
+
icon: null
|
|
40
|
+
};
|
|
41
|
+
if (typeof request !== "object" || Array.isArray(request)) {
|
|
42
|
+
warnMalformed(slot, "returned", request, ", which is not a request");
|
|
43
|
+
return fallback;
|
|
44
|
+
}
|
|
45
|
+
const { icon, variant, size } = request;
|
|
46
|
+
let resolved = fallback;
|
|
47
|
+
if (icon === null || isIconName(icon)) resolved = {
|
|
48
|
+
...resolved,
|
|
49
|
+
icon
|
|
50
|
+
};
|
|
51
|
+
else if (icon !== void 0) warnMalformed(slot, "requests the unknown icon", icon);
|
|
52
|
+
if (typeof variant === "string" && theme?.iconVariants?.includes(variant)) resolved = {
|
|
53
|
+
...resolved,
|
|
54
|
+
variant
|
|
55
|
+
};
|
|
56
|
+
else if (variant !== void 0) warnMalformed(slot, "requests the variant", variant, ", which the theme does not list");
|
|
57
|
+
if (ICON_SIZES.has(size)) resolved = {
|
|
58
|
+
...resolved,
|
|
59
|
+
size
|
|
60
|
+
};
|
|
61
|
+
else if (size !== void 0) warnMalformed(slot, "requests the unsupported size", size);
|
|
62
|
+
return resolved;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Resolve a component's icon slot: the theme's `componentIcons[slot]`
|
|
66
|
+
* applied to the component's own fallback, field by field.
|
|
67
|
+
*
|
|
68
|
+
* A shared icon name replaces the fallback icon, `null` hides it, and a
|
|
69
|
+
* request applies field by field. A slot function receives the state; its
|
|
70
|
+
* `null` hides the icon and its `undefined` changes nothing. A malformed
|
|
71
|
+
* field is ignored with one development warning and the valid fields beside
|
|
72
|
+
* it still apply.
|
|
73
|
+
*/
|
|
74
|
+
function resolveComponentIcon(slot, state, fallback, theme) {
|
|
75
|
+
const value = (theme?.componentIconValues ?? theme?.componentIcons)?.[slot];
|
|
76
|
+
if (value === void 0) return fallback;
|
|
77
|
+
if (typeof value === "function") {
|
|
78
|
+
const result = value(state);
|
|
79
|
+
if (typeof result === "string") {
|
|
80
|
+
warnMalformed(slot, "returned", result, ", which is not a request");
|
|
81
|
+
return fallback;
|
|
82
|
+
}
|
|
83
|
+
return applyRequest(slot, fallback, result, theme);
|
|
84
|
+
}
|
|
85
|
+
if (typeof value === "string") return applyRequest(slot, fallback, { icon: value }, theme);
|
|
86
|
+
return applyRequest(slot, fallback, value, theme);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* A theme's slot values: the base's, then its own, by slot. An own entry
|
|
90
|
+
* replaces the inherited one whole; an `undefined` entry keeps it.
|
|
91
|
+
*/
|
|
92
|
+
function mergeComponentIcons(inherited, own) {
|
|
93
|
+
if (own == null) return inherited;
|
|
94
|
+
const merged = { ...inherited };
|
|
95
|
+
for (const [slot, value] of Object.entries(own)) if (value !== void 0) merged[slot] = value;
|
|
96
|
+
return merged;
|
|
97
|
+
}
|
|
98
|
+
/** The static view of slot values, without slot functions. */
|
|
99
|
+
function staticComponentIcons(values) {
|
|
100
|
+
if (values == null) return void 0;
|
|
101
|
+
const view = {};
|
|
102
|
+
for (const [slot, value] of Object.entries(values)) if (typeof value !== "function" && value !== void 0) view[slot] = value;
|
|
103
|
+
return view;
|
|
104
|
+
}
|
|
105
|
+
//#endregion
|
|
106
|
+
export { resolveComponentIcon as n, staticComponentIcons as r, mergeComponentIcons as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as MergedRefHandle, $n as
|
|
1
|
+
import { $ as MergedRefHandle, $n as ContentRevealOptions, $t as Hotkey, A as useResolvedLabelHidden, An as devWarn, Ar as WeekStartsOn, At as UseKeyboardHint, B as computeOverflow, Bn as TimePresentation, Bt as useInputStatusIcon, C as ScrollableAreaState, Cn as UseEntryAnimationReturn, Cr as appShellMobileKey, Ct as useLayerTeleportTarget, D as RestoreFocus, Dn as DisclosureHandle, Dr as useAnnounce, Dt as UseLayerReturn, E as useScrollableArea, En as useDismiss, Er as AnnouncePoliteness, Et as UseLayerOptions, F as usePendingChange, Fn as resolveDateSurface, Fr as isRangeWithinSpan, Ft as UseInteractiveRoleReturn, G as computeSteppedValue, Gn as parseDisplayTime, Gt as UseIndicatorFocusRingOptions, H as NumberField, Hn as formatDisplayTime, Ht as UseInputContainerOptions, I as ComputeOverflowInput, In as HourFormat, Ir as isSameRange, It as useInteractiveRole, J as buildMonthGrid, Jn as shiftTime, Jt as ImageSampleRegion, K as useNumberField, Kn as parseISOTime, Kt as UseIndicatorFocusRingReturn, L as ComputeOverflowResult, Ln as ISOTimeString, Lr as orderRange, Lt as InputStatusVariant, M as UsePressFeedbackReturn, Mn as DatePresentation, Mr as compareISODate, Mt as useKeyboardHint, N as usePressFeedback, Nn as DateSurface, Nr as formatDateRange, Nt as InteractiveRole, O as UseRestoreFocusOptions, On as DisclosureHandleRef, Or as ISODateRange, Ot as useLayer, P as PendingChange, Pn as resolveDatePresentation, Pr as isDayOutsideSpan, Pt as UseInteractiveRoleOptions, Q as MergedRef, Qn as ContainerRevealOptions, Qt as useImageMode, R as UseOverflowOptions, Rn as NativePicker, Rr as resolveWeekStart, Rt as UseInputStatusIconOptions, S as ScrollStickyContainment, Sn as UseEntryAnimationOptions, Sr as AppShellMobile, St as useLayerMountTarget, T as UseScrollableAreaResult, Tn as UseDismissOptions, Tr as AnnounceFn, Tt as LayerMode, U as NumberStepDirection, Un as formatISOTime, Ut as useInputContainer, V as useOverflow, Vn as TimeSurface, Vt as InputContainerHandlers, W as UseNumberFieldOptions, Wn as isTimeInRange, Wt as IndicatorFocusRingHandlers, X as toISODate, Xn as UseControllableStateOptions, Xt as imageModeFromPixels, Y as parseISODate, Yn as ControllableState, Yt as UseImageModeOptions, Z as todayISODate, Zn as useControllableState, Zt as perceptualLightness, _ as ScrollAxis, _n as selectFiles, _r as useChatStreamScroll, _t as useLongPress, a as UseTouchTriggerOptions, an as useGridRovingFocus, ar as UseComboboxOptions, at as resetMenuPress, b as ScrollOverscroll, bn as useFieldControlState, br as UseChatNewMessagesReturn, bt as UseListFocusOptions, c as useTouchTrigger, cn as useGridFocus, cr as ClickableContainerHandlers, ct as MenuPressEffect, d as snapToGraphemeBoundary, dn as useFocusTrap, dr as hasInteractiveAncestor, dt as MenuPressPointerType, en as useHotkeys, er as UseContainerReveal, et as useMergedRefs, f as useStreamingText, fn as FileRejection, fr as hasTextSelection, ft as MenuPressStep, g as useScrollLock, gn as formatFileSize, gr as UseChatStreamScrollReturn, gt as LongPressOptions, h as useScrollOverflow, hn as FileSizeUnits, hr as UseChatStreamScrollOptions, ht as LongPressHandlers, i as LayerTouchTrigger, in as UseGridRovingFocusOptions, ir as ComboboxOption, it as isMenuPressActivation, j as UsePressFeedbackOptions, jn as useDevWarning, jr as applyRangeClick, jt as UseKeyboardHintOptions, k as useRestoreFocus, kn as useDisclosureHandle, kr as RangeClickResult, kt as KeyboardHintOrientation, l as StreamingTextSpeed, ln as FocusTrap, lr as INTERACTIVE_SELECTORS, lt as MenuPressEvent, m as UseScrollOverflowResult, mn as FileSelectionResult, mr as ChatScrollToBottomOptions, mt as useMediaQuery, n as UseTypeaheadReturn, nn as useHandleRef, nr as useContainerReveal, nt as MenuPressOptions, o as UseTouchTriggerReturn, on as UseGridFocusOptions, or as useCombobox, ot as MENU_PRESS_MARKER, p as ScrollOverflowState, pn as FileSelectionOptions, pr as useClickableContainer, pt as menuPressStep, q as addMonths, qn as resolveTimeSurface, qt as useIndicatorFocusRing, r as useTypeahead, rn as GridRovingFocus, rr as Combobox, rt as useMenuPress, s as isActionTrigger, sn as UseGridFocusReturn, sr as useCoarsePointer, st as MENU_PRESS_SETTLE_MS, t as UseTypeaheadOptions, tn as HandleRef, tr as UseContainerRevealOptions, tt as MenuPress, u as UseStreamingTextOptions, un as UseFocusTrapOptions, ur as UseClickableContainerOptions, ut as MenuPressGesture, v as ScrollAxisState, vn as FieldControlState, vr as CHAT_MESSAGE_CLASS, vt as ListFocus, w as UseScrollableAreaOptions, wn as useEntryAnimation, wr as useAppShellMobile, wt as useResolvedLayerTeleport, x as ScrollRole, xn as EntryAnimationPreset, xr as useChatNewMessages, xt as useListFocus, y as ScrollKeyboardAccess, yn as FieldControlStateInput, yr as UseChatNewMessagesOptions, yt as ListFocusOrientation, z as UseOverflowReturn, zn as ParsedTime, zr as spanDays, zt as UseInputStatusIconReturn } from "../index-DCU6dy7n.js";
|
|
2
2
|
import { a as SearchableItem, c as useAsyncSource, i as SearchSource, n as AsyncSourceStatus, o as UseAsyncSourceOptions, r as CreateStaticSourceOptions, s as createStaticSource, t as AsyncSource } from "../useAsyncSource-aGzrvRkI.js";
|
|
3
3
|
import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-CU-kfqeJ.js";
|
|
4
4
|
import { t as characterCount } from "../characters-rcDbGt71.js";
|
|
5
5
|
import { a as ResizableRegionConfig, c as UseResizableMultiConfig, d as percent, f as useResizable, i as ResizableRegion, l as UseResizableOptions, n as ResizablePercentSize, o as ResizableSize, r as ResizableProps, s as ResizableState, t as ResizableDirection, u as UseResizableSingleOptions } from "../useResizable-fEGAFziz.js";
|
|
6
|
-
export { type AnnounceFn, type AnnouncePoliteness, type AppShellMobile, type AsyncSource, type AsyncSourceStatus, CHAT_MESSAGE_CLASS, type ChatScrollToBottomOptions, type ClickableContainerHandlers, type Combobox, type ComboboxOption, type ComputeOverflowInput, type ComputeOverflowResult, type ContainerRevealOptions, type ContentRevealOptions, type ControllableState, type CreateStaticSourceOptions, type DatePresentation, type DateSurface, type DisclosureHandle, type DisclosureHandleRef, type EntryAnimationPreset, type FieldControlState, type FieldControlStateInput, type FileRejection, type FileSelectionOptions, type FileSelectionResult, type FocusTrap, type GridRovingFocus, type HandleRef, type Hotkey, type HourFormat, INTERACTIVE_SELECTORS, type ISODateRange, type ISOTimeString, type ImageSampleRegion, type IndicatorFocusRingHandlers, type InputContainerHandlers, type InputStatusVariant, type InteractiveRole, type KeyboardHintOrientation, type LayerMode, type LayerTouchTrigger, type ListFocus, type ListFocusOrientation, type LongPressHandlers, type LongPressOptions, MENU_PRESS_MARKER, MENU_PRESS_SETTLE_MS, type MenuPress, type MenuPressEffect, type MenuPressEvent, type MenuPressGesture, type MenuPressOptions, type MenuPressPointerType, type MenuPressStep, type MergedRef, type MergedRefHandle, type NativePicker, type NumberField, type NumberStepDirection, type ParsedTime, type PendingChange, type RangeClickResult, type ResizableDirection, type ResizablePercentSize, type ResizableProps, type ResizableRegion, type ResizableRegionConfig, type ResizableSize, type ResizableState, type RestoreFocus, type ScrollAxis, type ScrollAxisState, type ScrollKeyboardAccess, type ScrollOverflowState, type ScrollOverscroll, type ScrollRole, type ScrollStickyContainment, type ScrollableAreaState, type SearchSource, type SearchableItem, type StreamingTextSpeed, type TimePresentation, type TimeSurface, type UseAsyncSourceOptions, type UseChatNewMessagesOptions, type UseChatNewMessagesReturn, type UseChatStreamScrollOptions, type UseChatStreamScrollReturn, type UseClickableContainerOptions, type UseClipboardOptions, type UseClipboardReturn, type UseComboboxOptions, type UseContainerReveal, type UseContainerRevealOptions, type UseControllableStateOptions, type UseDismissOptions, type UseEntryAnimationOptions, type UseEntryAnimationReturn, type UseFocusTrapOptions, type UseGridFocusOptions, type UseGridFocusReturn, type UseGridRovingFocusOptions, type UseImageModeOptions, type UseIndicatorFocusRingOptions, type UseIndicatorFocusRingReturn, type UseInputContainerOptions, type UseInputStatusIconOptions, type UseInputStatusIconReturn, type UseInteractiveRoleOptions, type UseInteractiveRoleReturn, type UseKeyboardHint, type UseKeyboardHintOptions, type UseLayerOptions, type UseLayerReturn, type UseListFocusOptions, type UseNumberFieldOptions, type UseOverflowOptions, type UseOverflowReturn, type UsePressFeedbackOptions, type UsePressFeedbackReturn, type UseResizableMultiConfig, type UseResizableOptions, type UseResizableSingleOptions, type UseRestoreFocusOptions, type UseScrollOverflowResult, type UseScrollableAreaOptions, type UseScrollableAreaResult, type UseStreamingTextOptions, type UseTouchTriggerOptions, type UseTouchTriggerReturn, type UseTypeaheadOptions, type UseTypeaheadReturn, type WeekStartsOn, addMonths, appShellMobileKey, applyRangeClick, buildMonthGrid, compareISODate, computeOverflow, computeSteppedValue, characterCount as countCharacters, createStaticSource, devWarn, formatDateRange, formatDisplayTime, formatFileSize, formatISOTime, hasInteractiveAncestor, hasTextSelection, imageModeFromPixels, isActionTrigger, isDayOutsideSpan, isMenuPressActivation, isRangeWithinSpan, isSameRange, isTimeInRange, menuPressStep, orderRange, parseDisplayTime, parseISODate, parseISOTime, percent, perceptualLightness, resetMenuPress, resolveDatePresentation, resolveDateSurface, resolveTimeSurface, resolveWeekStart, selectFiles, shiftTime, snapToGraphemeBoundary, spanDays, toISODate, todayISODate, useAnnounce, useAppShellMobile, useAsyncSource, useChatNewMessages, useChatStreamScroll, useClickableContainer, useClipboard, useCoarsePointer, useCombobox, useContainerReveal, useControllableState, useDevWarning, useDisclosureHandle, useDismiss, useEntryAnimation, useFieldControlState, useFocusTrap, useGridFocus, useGridRovingFocus, useHandleRef, useHotkeys, useImageMode, useIndicatorFocusRing, useInputContainer, useInputStatusIcon, useInteractiveRole, useKeyboardHint, useLayer, useLayerMountTarget, useLayerTeleportTarget, useListFocus, useLongPress, useMediaQuery, useMenuPress, useMergedRefs, useNumberField, useOverflow, usePendingChange, usePressFeedback, useResizable, useResolvedLabelHidden, useResolvedLayerTeleport, useRestoreFocus, useScrollLock, useScrollOverflow, useScrollableArea, useStreamingText, useTouchTrigger, useTypeahead };
|
|
6
|
+
export { type AnnounceFn, type AnnouncePoliteness, type AppShellMobile, type AsyncSource, type AsyncSourceStatus, CHAT_MESSAGE_CLASS, type ChatScrollToBottomOptions, type ClickableContainerHandlers, type Combobox, type ComboboxOption, type ComputeOverflowInput, type ComputeOverflowResult, type ContainerRevealOptions, type ContentRevealOptions, type ControllableState, type CreateStaticSourceOptions, type DatePresentation, type DateSurface, type DisclosureHandle, type DisclosureHandleRef, type EntryAnimationPreset, type FieldControlState, type FieldControlStateInput, type FileRejection, type FileSelectionOptions, type FileSelectionResult, type FileSizeUnits, type FocusTrap, type GridRovingFocus, type HandleRef, type Hotkey, type HourFormat, INTERACTIVE_SELECTORS, type ISODateRange, type ISOTimeString, type ImageSampleRegion, type IndicatorFocusRingHandlers, type InputContainerHandlers, type InputStatusVariant, type InteractiveRole, type KeyboardHintOrientation, type LayerMode, type LayerTouchTrigger, type ListFocus, type ListFocusOrientation, type LongPressHandlers, type LongPressOptions, MENU_PRESS_MARKER, MENU_PRESS_SETTLE_MS, type MenuPress, type MenuPressEffect, type MenuPressEvent, type MenuPressGesture, type MenuPressOptions, type MenuPressPointerType, type MenuPressStep, type MergedRef, type MergedRefHandle, type NativePicker, type NumberField, type NumberStepDirection, type ParsedTime, type PendingChange, type RangeClickResult, type ResizableDirection, type ResizablePercentSize, type ResizableProps, type ResizableRegion, type ResizableRegionConfig, type ResizableSize, type ResizableState, type RestoreFocus, type ScrollAxis, type ScrollAxisState, type ScrollKeyboardAccess, type ScrollOverflowState, type ScrollOverscroll, type ScrollRole, type ScrollStickyContainment, type ScrollableAreaState, type SearchSource, type SearchableItem, type StreamingTextSpeed, type TimePresentation, type TimeSurface, type UseAsyncSourceOptions, type UseChatNewMessagesOptions, type UseChatNewMessagesReturn, type UseChatStreamScrollOptions, type UseChatStreamScrollReturn, type UseClickableContainerOptions, type UseClipboardOptions, type UseClipboardReturn, type UseComboboxOptions, type UseContainerReveal, type UseContainerRevealOptions, type UseControllableStateOptions, type UseDismissOptions, type UseEntryAnimationOptions, type UseEntryAnimationReturn, type UseFocusTrapOptions, type UseGridFocusOptions, type UseGridFocusReturn, type UseGridRovingFocusOptions, type UseImageModeOptions, type UseIndicatorFocusRingOptions, type UseIndicatorFocusRingReturn, type UseInputContainerOptions, type UseInputStatusIconOptions, type UseInputStatusIconReturn, type UseInteractiveRoleOptions, type UseInteractiveRoleReturn, type UseKeyboardHint, type UseKeyboardHintOptions, type UseLayerOptions, type UseLayerReturn, type UseListFocusOptions, type UseNumberFieldOptions, type UseOverflowOptions, type UseOverflowReturn, type UsePressFeedbackOptions, type UsePressFeedbackReturn, type UseResizableMultiConfig, type UseResizableOptions, type UseResizableSingleOptions, type UseRestoreFocusOptions, type UseScrollOverflowResult, type UseScrollableAreaOptions, type UseScrollableAreaResult, type UseStreamingTextOptions, type UseTouchTriggerOptions, type UseTouchTriggerReturn, type UseTypeaheadOptions, type UseTypeaheadReturn, type WeekStartsOn, addMonths, appShellMobileKey, applyRangeClick, buildMonthGrid, compareISODate, computeOverflow, computeSteppedValue, characterCount as countCharacters, createStaticSource, devWarn, formatDateRange, formatDisplayTime, formatFileSize, formatISOTime, hasInteractiveAncestor, hasTextSelection, imageModeFromPixels, isActionTrigger, isDayOutsideSpan, isMenuPressActivation, isRangeWithinSpan, isSameRange, isTimeInRange, menuPressStep, orderRange, parseDisplayTime, parseISODate, parseISOTime, percent, perceptualLightness, resetMenuPress, resolveDatePresentation, resolveDateSurface, resolveTimeSurface, resolveWeekStart, selectFiles, shiftTime, snapToGraphemeBoundary, spanDays, toISODate, todayISODate, useAnnounce, useAppShellMobile, useAsyncSource, useChatNewMessages, useChatStreamScroll, useClickableContainer, useClipboard, useCoarsePointer, useCombobox, useContainerReveal, useControllableState, useDevWarning, useDisclosureHandle, useDismiss, useEntryAnimation, useFieldControlState, useFocusTrap, useGridFocus, useGridRovingFocus, useHandleRef, useHotkeys, useImageMode, useIndicatorFocusRing, useInputContainer, useInputStatusIcon, useInteractiveRole, useKeyboardHint, useLayer, useLayerMountTarget, useLayerTeleportTarget, useListFocus, useLongPress, useMediaQuery, useMenuPress, useMergedRefs, useNumberField, useOverflow, usePendingChange, usePressFeedback, useResizable, useResolvedLabelHidden, useResolvedLayerTeleport, useRestoreFocus, useScrollLock, useScrollOverflow, useScrollableArea, useStreamingText, useTouchTrigger, useTypeahead };
|
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as hasInteractiveAncestor, f as hasTextSelection, p as useClickableContainer, u as INTERACTIVE_SELECTORS } from "../pressFeedback-Bwwpex9q.js";
|
|
2
|
+
import { n as isMenuPressActivation, r as resetMenuPress } from "../strayClick-CY-_ImKv.js";
|
|
3
|
+
import { t as usePressFeedback } from "../usePressFeedback-Bcjsw9vv.js";
|
|
2
4
|
import { n as useLayerTeleportTarget, r as useResolvedLayerTeleport, t as useLayerMountTarget } from "../useLayerMountTarget-BmZyeKWE.js";
|
|
5
|
+
import { t as useDismiss } from "../useDismiss-0-Z-9D0A.js";
|
|
6
|
+
import { t as useLayer } from "../useLayer-CED-g4Q2.js";
|
|
7
|
+
import { t as useCoarsePointer } from "../useCoarsePointer-GItEMrjX.js";
|
|
3
8
|
import { t as useMediaQuery } from "../useMediaQuery-GMmgp28-.js";
|
|
4
9
|
import { t as characterCount } from "../characters-wTnzjkkR.js";
|
|
5
10
|
import { t as useAnnounce } from "../announce-B210eJVf.js";
|
|
6
11
|
import { n as useAppShellMobile, t as appShellMobileKey } from "../useAppShellMobile-DTsyuAJ4.js";
|
|
7
12
|
import { n as useAsyncSource, t as createStaticSource } from "../useAsyncSource-Gk0VtE7_.js";
|
|
8
13
|
import { n as CHAT_MESSAGE_CLASS, r as useChatNewMessages, t as useChatStreamScroll } from "../useChatStreamScroll-oDfybEos.js";
|
|
9
|
-
import { i as useClickableContainer, n as hasInteractiveAncestor, r as hasTextSelection, t as INTERACTIVE_SELECTORS } from "../useClickableContainer-CdGp_Cev.js";
|
|
10
14
|
import { t as useClipboard } from "../useClipboard-Dk8cS810.js";
|
|
11
|
-
import { a as useKeyboardHint, c as perceptualLightness, d as useGridFocus, f as useEntryAnimation, h as useCoarsePointer, i as useStreamingText, l as useImageMode, m as useContainerReveal, n as useTouchTrigger, o as useIndicatorFocusRing, p as useControllableState, r as snapToGraphemeBoundary, s as imageModeFromPixels, t as isActionTrigger, u as useGridRovingFocus } from "../composables-BWDrzi3J.js";
|
|
12
15
|
import { t as useCombobox } from "../useCombobox-CTo5C-gc.js";
|
|
16
|
+
import { a as useKeyboardHint, c as perceptualLightness, d as useGridFocus, f as useEntryAnimation, i as useStreamingText, l as useImageMode, m as useContainerReveal, n as useTouchTrigger, o as useIndicatorFocusRing, p as useControllableState, r as snapToGraphemeBoundary, s as imageModeFromPixels, t as isActionTrigger, u as useGridRovingFocus } from "../composables-DqJzanJ5.js";
|
|
13
17
|
import { n as resolveDateSurface, t as resolveDatePresentation } from "../useDatePresentation-C07PnOCw.js";
|
|
14
18
|
import { a as isRangeWithinSpan, c as resolveWeekStart, i as isDayOutsideSpan, l as spanDays, n as compareISODate, o as isSameRange, r as formatDateRange, s as orderRange, t as applyRangeClick } from "../useDateRange-CIXoE_8k.js";
|
|
15
|
-
import { n as useDevWarning, t as devWarn } from "../useDevWarning-
|
|
19
|
+
import { n as useDevWarning, t as devWarn } from "../useDevWarning-B2fsk2B-.js";
|
|
16
20
|
import { t as useDisclosureHandle } from "../useDisclosureHandle-Df3HhAfC.js";
|
|
17
|
-
import { n as useDismiss } from "../usePositionedLayer-psKf3ano.js";
|
|
18
21
|
import { t as useFieldControlState } from "../useFieldControlState-voICDrys.js";
|
|
19
|
-
import { n as selectFiles, t as formatFileSize } from "../useFileSelection-
|
|
20
|
-
import { n as useFocusTrap, t as useRestoreFocus } from "../useRestoreFocus-
|
|
22
|
+
import { n as selectFiles, t as formatFileSize } from "../useFileSelection-B44UpbvF.js";
|
|
23
|
+
import { n as useFocusTrap, t as useRestoreFocus } from "../useRestoreFocus-CEG0n2AK.js";
|
|
21
24
|
import { t as useHandleRef } from "../useHandleRef-6cdKugm8.js";
|
|
22
25
|
import { n as useResizable, r as useHotkeys, t as percent } from "../useResizable-I3BCiLSL.js";
|
|
23
|
-
import { t as useInputContainer } from "../useInputContainer-
|
|
24
|
-
import { t as useInputStatusIcon } from "../useInputStatusIcon-
|
|
26
|
+
import { t as useInputContainer } from "../useInputContainer-BpLtCA-U.js";
|
|
27
|
+
import { t as useInputStatusIcon } from "../useInputStatusIcon-DCnx00BM.js";
|
|
25
28
|
import { t as useInteractiveRole } from "../useInteractiveRole-Cn0Nd5GX.js";
|
|
26
|
-
import { t as useLayer } from "../useLayer-Byjda3dD.js";
|
|
27
29
|
import { t as useListFocus } from "../useListFocus-CbHkLT-X.js";
|
|
28
|
-
import { a as
|
|
30
|
+
import { a as useLongPress, i as MENU_PRESS_MARKER, n as MENU_PRESS_SETTLE_MS, r as menuPressStep, t as useMenuPress } from "../useMenuPress-BLPwY_m1.js";
|
|
29
31
|
import { t as useMergedRefs } from "../useMergedRefs-DTGo1cEU.js";
|
|
30
32
|
import { a as todayISODate, i as toISODate, n as buildMonthGrid, r as parseISODate, t as addMonths } from "../useMonthGrid-fGHSSrFc.js";
|
|
31
33
|
import { n as useNumberField, t as computeSteppedValue } from "../useNumberField-Dk1BE3-K.js";
|
|
@@ -1,29 +1,10 @@
|
|
|
1
|
-
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
2
1
|
import { r as trackInteractionModality, t as getInteractionModality } from "./interactionModality-ACpTMhak.js";
|
|
3
|
-
import { t as
|
|
4
|
-
import { s as useAstryxMessages } from "./context-
|
|
5
|
-
import {
|
|
2
|
+
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
3
|
+
import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
|
|
4
|
+
import { t as _sfc_main$1 } from "./Kbd-DyxKNYtE.js";
|
|
5
|
+
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, defineComponent, h, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, ref, renderList, toDisplayString, toValue, unref, vShow, watch, withDirectives } from "vue";
|
|
6
6
|
import "../styles/indicator-focus-ring.css";
|
|
7
7
|
import "../styles/keyboard-hint.css";
|
|
8
|
-
//#region src/composables/useCoarsePointer.ts
|
|
9
|
-
/** 粗指针(触摸)为 true。服务端和细指针设备为 false。 */
|
|
10
|
-
function useCoarsePointer() {
|
|
11
|
-
const coarse = shallowRef(false);
|
|
12
|
-
let query;
|
|
13
|
-
function update() {
|
|
14
|
-
coarse.value = query?.matches ?? false;
|
|
15
|
-
}
|
|
16
|
-
onMounted(() => {
|
|
17
|
-
query = window.matchMedia("(pointer: coarse)");
|
|
18
|
-
update();
|
|
19
|
-
query.addEventListener("change", update);
|
|
20
|
-
});
|
|
21
|
-
onScopeDispose(() => {
|
|
22
|
-
query?.removeEventListener("change", update);
|
|
23
|
-
});
|
|
24
|
-
return computed(() => coarse.value);
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
8
|
//#region src/composables/useContainerReveal.ts
|
|
28
9
|
function useContainerReveal(options = {}) {
|
|
29
10
|
function containerProps(reveal = {}) {
|
|
@@ -907,4 +888,4 @@ function useTouchTrigger(options) {
|
|
|
907
888
|
};
|
|
908
889
|
}
|
|
909
890
|
//#endregion
|
|
910
|
-
export { useKeyboardHint as a, perceptualLightness as c, useGridFocus as d, useEntryAnimation as f,
|
|
891
|
+
export { useKeyboardHint as a, perceptualLightness as c, useGridFocus as d, useEntryAnimation as f, useStreamingText as i, useImageMode as l, useContainerReveal as m, useTouchTrigger as n, useIndicatorFocusRing as o, useControllableState as p, snapToGraphemeBoundary as r, imageModeFromPixels as s, isActionTrigger as t, useGridRovingFocus as u };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
//#region src/InputGroup/context.ts
|
|
4
|
+
const INPUT_GROUP_KEY = defineLayerScopedKey("InputGroup", null);
|
|
5
|
+
function useInputGroupContext() {
|
|
6
|
+
return readLayerScoped(INPUT_GROUP_KEY);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 组内控件实际的禁用状态:自己禁用,或者所在的 InputGroup(含外层嵌套的组)禁用。
|
|
10
|
+
* 组重新启用时,自己设了禁用的控件仍保持禁用。
|
|
11
|
+
*/
|
|
12
|
+
function useInputGroupDisabled(ownDisabled) {
|
|
13
|
+
const group = useInputGroupContext();
|
|
14
|
+
return computed(() => Boolean(ownDisabled()) || (group?.disabled.value ?? false));
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { useInputGroupContext as n, useInputGroupDisabled as r, INPUT_GROUP_KEY as t };
|