@astryx-vue/core 0.2.5 → 0.3.0
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/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-B6UeBCE7.js → AlertDialog-RAVA_cT1.js} +13 -7
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-CeBmB0Q9.js → AppShell-0wTvOo3H.js} +3 -3
- package/dist/Avatar/index.d.ts +2 -2
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-BB4Z4LF1.js → Avatar-pPZ4dI_s.js} +161 -16
- package/dist/AvatarGroup/index.d.ts +2 -2
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup-B--NQSB3.js +98 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-CJe9Im5a.js → Banner-GbGxrqQO.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-o7xw-TOi.js → BottomSheet-JYMB_Ofl.js} +12 -9
- package/dist/{BottomSheet-BV6vfgGu.js → BottomSheet-pt7m4CvC.js} +3 -1
- package/dist/Breadcrumbs/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-D6G7f5WL.js → Breadcrumbs-DIm4figq.js} +22 -11
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DrqeomlE.js → Button-B6Hj_O_s.js} +3 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-DmTeM7PO.js → Calendar-B7vIowKq.js} +2 -2
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/{Card-HAjZQg2s.js → Card-B-I24X9S.js} +2 -0
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CIKrcA2r.js → Carousel-CA8zpD9v.js} +48 -31
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +2 -2
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-BFox3u9D.js → Chat-Bmna9EOA.js} +98 -61
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-25Q8ItH-.js → CheckboxInput-BS9J6edf.js} +2 -2
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BlPf7vPe.js → CheckboxList-CX1i_jVP.js} +8 -7
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-BG-vg9ia.js → Citation-Djgwa0ko.js} +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-Bhds4RRe.js → ClickableCard-DUsC-j03.js} +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-B2pnEOJY.js → CodeBlock-D0BFubut.js} +5 -1
- package/dist/Collapsible/index.d.ts +2 -2
- package/dist/Collapsible/index.js +2 -2
- package/dist/{Collapsible-3YerR-FO.js → Collapsible-Cov3Pyq5.js} +67 -22
- package/dist/CommandPalette/index.d.ts +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-DKgHzmJk.js → CommandPalette-YHsUNg3V.js} +60 -20
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Dv44FFhN.js → ComplexSelector-DWLdKPGI.js} +41 -9
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-BeJO5HYx.js → ContextMenu-Bq9b3Ti5.js} +15 -8
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-DT518j5E.js +841 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Cp6AZfew.js → DateRangeInput-Bqi5tlIA.js} +188 -140
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-B6MPPp76.js → DateTimeInput-A7m2O3bg.js} +43 -12
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +2 -2
- package/dist/{Dialog-CvRplBo-.js → Dialog-BiOSKQso.js} +9 -5
- package/dist/{Dialog-rfUt3y8P.js → Dialog-FGHfDu5M.js} +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-6E9jFdFe.js → DropdownMenu-CoOQVlRp.js} +9 -10
- package/dist/{DropdownMenu--lnUeJEG.js → DropdownMenu-DEb2dSSP.js} +44 -33
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-0RWymQUS.js → EmptyState-C_GH7IV5.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +2 -2
- package/dist/{Field-8zRxzDHE.js → Field-D5gUEGw4.js} +1 -1
- package/dist/FieldInfoTip-Ds-sW_jY.js +98 -0
- package/dist/FieldLabel-BNeXRuGH.js +95 -0
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/FileInput-BpdiO1V8.js +285 -0
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-B9C3LZlS.js → Heading-BnwWEWkp.js} +7 -2
- package/dist/HoverCard/index.d.ts +2 -2
- package/dist/HoverCard/index.js +2 -2
- package/dist/HoverCard-ycY50pRN.js +492 -0
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-BNQuz9W_.js → IconButton-DDNgNl7B.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-BzR6JRZb.js → InputGroup-CA03Smrs.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +2 -0
- package/dist/InternationalizationProvider/index.js +2 -0
- package/dist/InternationalizationProvider-DJay_w3B.js +170 -0
- package/dist/{Item-DrYJL1TG.js → Item-KhFKX9St.js} +15 -6
- package/dist/LayerProvider/index.d.ts +2 -0
- package/dist/LayerProvider/index.js +3 -0
- package/dist/LayerProvider-D9NsQFzL.js +73 -0
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-Bed3kP0M.js → Layout-C6RHllr-.js} +2 -2
- package/dist/{LayoutPanel-C34uOq3e.js → LayoutPanel-DXOsaeQb.js} +4 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Br3o0SyQ.js → Lightbox-DTF9EdTG.js} +2 -2
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +1 -1
- package/dist/{Link-DCZ6922-.js → Link-BqHCtiyt.js} +26 -7
- package/dist/LinkProvider/index.d.ts +2 -0
- package/dist/LinkProvider/index.js +3 -0
- package/dist/LinkProvider-Qsps9_mL.js +17 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-CcRHWuEm.js → ListItem-8RWT8XAG.js} +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-Bz0R3kNj.js → Markdown-CvtN7HnF.js} +4 -4
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-CFaocx6j.js → MetadataList-B-OelQlt.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Dh3uLivq.js → MobileNavToggle-DxGz0xKA.js} +11 -5
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-B95nRSe8.js → MoreMenu-Dlb7MLlW.js} +33 -20
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DuF5TECE.js → MultiSelector-BtAUfQ3t.js} +122 -54
- package/dist/{NavDisclosure-C6sPZ89n.js → NavDisclosure-C_fugrQ3.js} +1 -2
- package/dist/{NavHeadingSurface-Cb3x9iDx.js → NavHeadingSurface-B3yJspSN.js} +18 -11
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +2 -2
- package/dist/{NavItem-FFOisITc.js → NavItem-BBIGSvDj.js} +7 -3
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-ClIgMaxE.js → NavMenu-ThXguZAz.js} +7 -3
- package/dist/{NavMenuItem-E7S8gBh-.js → NavMenuItem-BvJNsDFC.js} +8 -4
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-AZ9x3oja.js +473 -0
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DBUuchi9.js → Outline-755h-lMP.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-aDd_oem0.js → OverflowList-NmrSMbxb.js} +10 -6
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-CNe9F6Fl.js → Pagination-DqwNQFRp.js} +29 -14
- package/dist/Popover/index.d.ts +3 -3
- package/dist/Popover/index.js +2 -2
- package/dist/Popover-DJf8POzL.js +308 -0
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-C6U8Sq1Y.js → PowerSearch-DvjiPqMZ.js} +44 -31
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DF6WZNCI.js → ProgressBar-CVLzdoBK.js} +9 -3
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CBqUPq_L.js → RadioGroup-Bfu6JSNV.js} +60 -24
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CPOJn9Th.js → RadioList-xY1cwLdZ.js} +4 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-DYy0e3v9.js → ResizeHandle-q4nD_586.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-DQDYjnxO.js → ScrollableArea-D4dCJv9I.js} +14 -3
- package/dist/Scrollbars/index.d.ts +2 -0
- package/dist/Scrollbars/index.js +3 -0
- package/dist/Scrollbars-D_93hJYK.js +75 -0
- package/dist/Section/index.d.ts +2 -1
- package/dist/Section/index.js +1 -1
- package/dist/{Section-C48Wqfc7.js → Section-v2QuWBBJ.js} +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Bj5s_tIN.js → SelectableCard-Cku4dRzc.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-5N-hq2nF.js → Selector-DJ2BhUTV.js} +90 -31
- package/dist/SideNav/index.d.ts +2 -2
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-CT9lfspi.js → SideNav-BF8mYDxl.js} +76 -44
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-D8h_RKcF.js → Slider-DWobsPgm.js} +2 -2
- package/dist/Stack/index.d.ts +2 -2
- package/dist/Stack/index.js +2 -2
- package/dist/{Stack-iv52y_Jv.js → Stack-CTsTFfar.js} +18 -3
- package/dist/{Stack-gGcYdOAh.js → Stack-kQlYbbL4.js} +22 -7
- package/dist/StatusDot/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/StatusDot-BPUhMOff.js +45 -0
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-BqhVCgC-.js → Stepper-CE8dHysu.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-SesQzPGZ.js → Switch-DaVPRxvN.js} +2 -2
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-BlzkrObv.js → TabList-DIkK9sgK.js} +100 -23
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +2 -2
- package/dist/{Table-CsdH8fCB.js → Table-fecqnm7P.js} +870 -241
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +1 -1
- package/dist/{Text-DIzZw6FA.js → Text-CV3LmscH.js} +7 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-CPwSytdO.js → TextArea-Ab5Sw60T.js} +24 -14
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-BasnjVvy.js → TextInput-zFT1_qgI.js} +21 -24
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BnQwX1cQ.js → Thumbnail-C3NnJUFG.js} +5 -5
- package/dist/TimeField-CoHDGmsP.js +435 -0
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-C9gptCOK.js → TimeInput-D2k3Ux3p.js} +14 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-kxzQx3tp.js → Timer-avMQk5DN.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-D7bd_nF3.js → Timestamp-xpQKCk0d.js} +7 -7
- package/dist/Toast/index.d.ts +3 -2
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-C2ML-bmi.js → Toast-BuqIZV5z.js} +136 -38
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-BB_I8EdM.js → ToggleButton-B-C-Q7XP.js} +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-D2GsI_Ei.js → Token-DsntTYhQ.js} +33 -17
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/Tokenizer-B5C_qY7t.js +585 -0
- package/dist/Toolbar/index.d.ts +2 -1
- package/dist/Tooltip/index.d.ts +2 -2
- package/dist/Tooltip/index.js +2 -2
- package/dist/Tooltip-C4Vaqd3G.js +320 -0
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-arWFLTBM.js → TopNav-Ciq0l1w7.js} +122 -84
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-C9xvMpJZ.js → TreeList-BUz-KZJd.js} +90 -40
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/Typeahead-JP9RT87x.js +656 -0
- package/dist/{TypeaheadMenu-BEObzonz.js → TypeaheadMenu-DBW6rHeO.js} +133 -44
- package/dist/composables/index.d.ts +3 -3
- package/dist/composables/index.js +12 -7
- package/dist/{composables-CWw6t-RJ.js → composables-CbKx9C1Y.js} +424 -4
- package/dist/context-C_peZbXf.js +16 -0
- package/dist/context-M-er0-Rk.js +99 -0
- package/dist/{context-CPh7kE-a.js → context-iABt_ueM.js} +30 -4
- package/dist/{index-CLmKfnqf.d.ts → index-0QGtSf3r.d.ts} +2 -0
- package/dist/{index-z3uLM1O6.d.ts → index-B1WJxt-n.d.ts} +1 -1
- package/dist/{index-BPwD6aBv.d.ts → index-B3Fomy15.d.ts} +2 -2
- package/dist/{index-CPwzSbQQ.d.ts → index-B42oE_F-.d.ts} +17 -1
- package/dist/{index-EFqQF2Bx.d.ts → index-B4OOtNP8.d.ts} +2 -2
- package/dist/index-B7yhzGUT.d.ts +171 -0
- package/dist/{index-DFbvnBlf.d.ts → index-B9e52paP.d.ts} +15 -2
- package/dist/{index-CEB7Ywvw.d.ts → index-BKnyTWPM.d.ts} +1 -1
- package/dist/{index-CsVS37na.d.ts → index-BNbAJV9C.d.ts} +1 -1
- package/dist/index-BTK7aStw.d.ts +88 -0
- package/dist/{index-BBtJt5_A.d.ts → index-BULhhnGf.d.ts} +1 -1
- package/dist/{index-D7-WTV6I.d.ts → index-BVKivP59.d.ts} +2 -2
- package/dist/{index-BpH4wvsg.d.ts → index-BgT6mH3U.d.ts} +2 -2
- package/dist/{index-Be1czg3M.d.ts → index-BhpAUzUr.d.ts} +47 -7
- package/dist/{index-BcJBLWJ0.d.ts → index-BkjSF265.d.ts} +67 -4
- package/dist/{index-DxR1FChm.d.ts → index-Bu8NA2SD.d.ts} +49 -6
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-C-QpeUlQ.d.ts → index-C2nbK2AA.d.ts} +52 -7
- package/dist/{index-iBLzInje.d.ts → index-C5e-7Obr.d.ts} +1 -1
- package/dist/index-CEv_AvOg.d.ts +17 -0
- package/dist/{index-Dgg0bHVM.d.ts → index-CICeEoZV.d.ts} +2 -1
- package/dist/{index-CB9Srua5.d.ts → index-CL1T2j4y.d.ts} +7 -4
- package/dist/{index-DjMwF8ET.d.ts → index-COgrQZIL.d.ts} +7 -1
- package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
- package/dist/{index-ChWlKHjc.d.ts → index-Cde5JvtX.d.ts} +15 -3
- package/dist/index-CitZGSn0.d.ts +39 -0
- package/dist/index-CkKPMIeX.d.ts +55 -0
- package/dist/{index-FEy8qFSD.d.ts → index-ClNU2Th8.d.ts} +30 -3
- package/dist/{index-kaKBOZSU.d.ts → index-Cq31D3fJ.d.ts} +99 -7
- package/dist/{index-xfkEuGLY.d.ts → index-CqE4Bf3Q.d.ts} +8 -2
- package/dist/{index-DtePJ_w_.d.ts → index-Crp3NFLW.d.ts} +2 -2
- package/dist/{index-BlOIC_AM.d.ts → index-CsNi1I8j.d.ts} +6 -0
- package/dist/index-Cyb9Du5Z.d.ts +76 -0
- package/dist/{index-4TRnFGxv.d.ts → index-D41_xqjs.d.ts} +50 -10
- package/dist/{index-eshFLli0.d.ts → index-D97pQbua.d.ts} +7 -0
- package/dist/{index-c67ca7eJ.d.ts → index-DEQ5cnUV.d.ts} +1 -1
- package/dist/{index-BmAxqw1G.d.ts → index-DG52Bg0W.d.ts} +15 -1
- package/dist/{index-Da7Jm8Ht.d.ts → index-DIXAzTKL.d.ts} +1 -1
- package/dist/{index-BmmdzwT9.d.ts → index-DNA2l1RN.d.ts} +35 -11
- package/dist/{index-B9rqmYxh.d.ts → index-DUaLJO7l.d.ts} +978 -313
- package/dist/index-DVmgNb78.d.ts +143 -0
- package/dist/{index-CDdRQQF3.d.ts → index-DWh2WC8W.d.ts} +18 -6
- package/dist/index-DXpSFlPG.d.ts +78 -0
- package/dist/{index-C_2Z65Rp.d.ts → index-DeQwYJbg.d.ts} +39 -2
- package/dist/{index-JL4auphT.d.ts → index-GI9xIV9l.d.ts} +2 -2
- package/dist/{index-Ctu32CLv.d.ts → index-IBAInumL.d.ts} +93 -56
- package/dist/{index-vizlhXVs.d.ts → index-T2FOcOuI.d.ts} +492 -16
- package/dist/{index-CA6RbRWx.d.ts → index-TXcNH86P.d.ts} +2 -2
- package/dist/{index-BIPc1v82.d.ts → index-TntQsADQ.d.ts} +1 -1
- package/dist/index-fAZaRruV.d.ts +125 -0
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-D5N9ikrS.d.ts → index-hCpxKePE.d.ts} +1 -1
- package/dist/{index-CpiWVbRZ.d.ts → index-i0tNFWfz.d.ts} +3 -1
- package/dist/{index-YmSe1ujk.d.ts → index-lgvUFSCO.d.ts} +1 -1
- package/dist/{index-bvr3WHvs.d.ts → index-xrzJC4wm.d.ts} +1 -1
- package/dist/{index-BK9T1TPZ.d.ts → index-yT1yiiww.d.ts} +28 -9
- package/dist/index.d.ts +80 -76
- package/dist/index.js +127 -113
- package/dist/link-C4_WogdF.js +18 -0
- package/dist/{index-C3GaPqvJ.d.ts → loadCatalog-BGHKG_9N.d.ts} +16 -37
- package/dist/{locale-sLw5Caia.js → loadCatalog-CXKqEB9s.js} +25 -65
- package/dist/locale/index.d.ts +3 -2
- package/dist/locale/index.js +4 -3
- package/dist/locale-DgkZEMTn.js +105 -0
- package/dist/{searchResultMessage-CCnq-_ce.js → searchResultMessage-hXXNOFJP.js} +2 -2
- package/dist/{size-xcIqExkS.js → size-Cpn_wzXi.js} +1 -1
- package/dist/{types-3eXh_5os.d.ts → types-0Q_SJv_F.d.ts} +3 -1
- package/dist/types-BRfVvZTH.d.ts +108 -0
- package/dist/{types-D7QNSqoN.d.ts → types-BTk0WZ0b.d.ts} +8 -0
- package/dist/{types-D_J66aPN.d.ts → types-BnNTzEnd.d.ts} +5 -1
- package/dist/{types-D9nP_X-c.d.ts → types-Ckih2YJi.d.ts} +9 -2
- package/dist/{types-Db3Owy8Q.d.ts → types-OGMYGejX.d.ts} +5 -0
- package/dist/{index-nKlTsNfV.d.ts → types-uFMH9NaM.d.ts} +14 -17
- package/dist/{useAnchoredListbox-BN9LQnon.js → useAnchoredListbox-DwztMNjP.js} +9 -4
- package/dist/useDevWarning-DznOpOHT.js +36 -0
- package/dist/useInputContainer-CpgDe2-4.js +51 -0
- package/dist/useInputStatusIcon-DBOwxV4x.js +41 -0
- package/dist/useInteractiveRole-Cn0Nd5GX.js +25 -0
- package/dist/{useMenuDrillIn-BgjJcY3K.js → useMenuDrillIn-DzKGkTho.js} +1 -1
- package/dist/{useMenuPress-DUmEy4TB.js → useMenuPress-D-FRNrBW.js} +162 -14
- package/dist/useMergedRefs-CfHHlCsn.js +109 -0
- package/dist/useNumberField-4-dIGVed.js +128 -0
- package/dist/{usePositionedLayer-C1NBOsVT.js → usePositionedLayer-Cru9_00b.js} +70 -7
- package/dist/useResizable-DDwPpPe6.d.ts +409 -0
- package/dist/useRestoreFocus-Djw9RUIf.js +153 -0
- package/dist/useScrollbars-C2NJ6Qwq.js +43 -0
- package/dist/{useTimeValue-DWk6oTAZ.js → useTimeValue-6ufHM15W.js} +1 -1
- package/dist/utils-D33VQDnk.js +58 -0
- package/locales/SOURCE.json +1 -1
- package/locales/en.json +445 -1
- package/package.json +19 -2
- package/styles/avatar-group.css +19 -1
- package/styles/avatar.css +34 -13
- package/styles/chat.css +17 -1
- package/styles/dialog-header.css +5 -1
- package/styles/field.css +11 -0
- package/styles/heading.css +9 -0
- package/styles/indicator-focus-ring.css +18 -0
- package/styles/number-input.css +33 -0
- package/styles/pressable.css +44 -0
- package/styles/progress-bar.css +18 -0
- package/styles/scrollbars.css +28 -0
- package/styles/side-nav.css +20 -6
- package/styles/stack.css +4 -2
- package/styles/status-dot.css +18 -0
- package/styles/tab-list.css +38 -2
- package/styles/table.css +66 -6
- package/styles/text.css +9 -0
- package/styles/time-input.css +41 -0
- package/styles/top-nav.css +46 -19
- package/styles/typeahead.css +31 -0
- package/styles.css +2 -0
- package/dist/AvatarGroup-QyzSrpYA.js +0 -60
- package/dist/DateInput-D4XFAEMp.js +0 -743
- package/dist/FieldLabel-DmmJyX7w.js +0 -184
- package/dist/FileInput-DuNwdbAo.js +0 -238
- package/dist/HoverCard-EhbWaGOW.js +0 -443
- package/dist/NumberInput-B4IL3s_8.js +0 -210
- package/dist/Popover-D7zqpFwU.js +0 -215
- package/dist/StatusDot-CaoIapp4.js +0 -27
- package/dist/TimeField-Biiuv0hB.js +0 -214
- package/dist/Tokenizer-rwzamZg4.js +0 -473
- package/dist/Tooltip-C2fh9anJ.js +0 -271
- package/dist/Typeahead-_V11btpv.js +0 -499
- package/dist/index-Blm197N_.d.ts +0 -82
- package/dist/index-Bt7ewoz2.d.ts +0 -119
- package/dist/index-C1HIqW_H.d.ts +0 -38
- package/dist/index-CngORuiq.d.ts +0 -387
- package/dist/index-D4I_obqR.d.ts +0 -58
- package/dist/link-CdcUSxAj.js +0 -12
- package/dist/size-BuTzpgnR.d.ts +0 -14
- package/dist/types-Cp4liug-.d.ts +0 -170
- package/dist/useDismiss-Cj8x_51F.js +0 -62
- package/dist/useNumberField-DL-Radsp.js +0 -49
- package/dist/useResizable-CUoNPmUw.d.ts +0 -72
- package/dist/useRestoreFocus-BvMdXVX9.js +0 -96
- package/dist/utils-C9r3UD_y.js +0 -16
|
@@ -29,6 +29,8 @@ interface CommandPaletteProps<T extends SearchableItem = SearchableItem> {
|
|
|
29
29
|
}
|
|
30
30
|
interface CommandPaletteEmits {
|
|
31
31
|
openChange: [isOpen: boolean];
|
|
32
|
+
/** Selected value in picker mode. `onValueChange` in the original API. */
|
|
33
|
+
valueChange: [value: string];
|
|
32
34
|
}
|
|
33
35
|
interface CommandPaletteItemSlotProps<T extends SearchableItem = SearchableItem> {
|
|
34
36
|
item: T;
|
|
@@ -44,6 +46,16 @@ interface CommandPaletteInputProps {
|
|
|
44
46
|
label?: string;
|
|
45
47
|
/** @default true */
|
|
46
48
|
hasAutoFocus?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Search value. Bind with `v-model:value`.
|
|
51
|
+
* Read from the surrounding CommandPalette when omitted.
|
|
52
|
+
*/
|
|
53
|
+
value?: string;
|
|
54
|
+
}
|
|
55
|
+
interface CommandPaletteInputEmits {
|
|
56
|
+
/** Next search value. Fired by `onValueChange` in the original API. */
|
|
57
|
+
'valueChange': [value: string];
|
|
58
|
+
'update:value': [value: string];
|
|
47
59
|
}
|
|
48
60
|
interface CommandPaletteListProps {
|
|
49
61
|
label?: string;
|
|
@@ -54,6 +66,22 @@ interface CommandPaletteGroupProps {
|
|
|
54
66
|
interface CommandPaletteItemProps {
|
|
55
67
|
value: string;
|
|
56
68
|
isDisabled?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Whether this item is the active keyboard result.
|
|
71
|
+
* Derived from the surrounding CommandPalette when omitted.
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
isHighlighted?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Whether this item represents the selected value in picker mode.
|
|
77
|
+
* Derived from the surrounding CommandPalette when omitted.
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
isSelected?: boolean;
|
|
81
|
+
}
|
|
82
|
+
interface CommandPaletteItemEmits {
|
|
83
|
+
/** Fired after the item is activated by pointer. */
|
|
84
|
+
select: [value: string];
|
|
57
85
|
}
|
|
58
86
|
//#endregion
|
|
59
87
|
//#region src/CommandPalette/CommandPalette.vue.d.ts
|
|
@@ -63,13 +91,14 @@ declare const __VLS_export$6: <T extends SearchableItem>(__VLS_props: NonNullabl
|
|
|
63
91
|
}) & {
|
|
64
92
|
"onUpdate:value"?: ((value: string | undefined) => any) | undefined;
|
|
65
93
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
94
|
+
onValueChange?: ((value: string) => any) | undefined;
|
|
66
95
|
}> & (typeof globalThis extends {
|
|
67
96
|
__VLS_PROPS_FALLBACK: infer P;
|
|
68
97
|
} ? P : {});
|
|
69
98
|
expose: (exposed: {}) => void;
|
|
70
99
|
attrs: any;
|
|
71
100
|
slots: CommandPaletteSlots<T>;
|
|
72
|
-
emit: ((evt: "openChange", isOpen: boolean) => void) & ((event: "update:value", value: string | undefined) => void);
|
|
101
|
+
emit: (((evt: "openChange", isOpen: boolean) => void) & ((evt: "valueChange", value: string) => void)) & ((event: "update:value", value: string | undefined) => void);
|
|
73
102
|
}>) => import("vue").VNode & {
|
|
74
103
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
75
104
|
};
|
|
@@ -119,11 +148,18 @@ type __VLS_WithSlots$3<T, S> = T & {
|
|
|
119
148
|
};
|
|
120
149
|
//#endregion
|
|
121
150
|
//#region src/CommandPalette/CommandPaletteInput.vue.d.ts
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
151
|
+
type __VLS_Slots$2 = {
|
|
152
|
+
end?: () => unknown;
|
|
153
|
+
/** Same slot under the original prop name. */
|
|
154
|
+
endContent?: () => unknown;
|
|
125
155
|
};
|
|
126
|
-
declare const __VLS_base$2: import("vue").DefineComponent<CommandPaletteInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
156
|
+
declare const __VLS_base$2: import("vue").DefineComponent<CommandPaletteInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
157
|
+
"update:value": (value: string) => any;
|
|
158
|
+
valueChange: (value: string) => any;
|
|
159
|
+
}, string, import("vue").PublicProps, Readonly<CommandPaletteInputProps> & Readonly<{
|
|
160
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
161
|
+
onValueChange?: ((value: string) => any) | undefined;
|
|
162
|
+
}>, {
|
|
127
163
|
hasAutoFocus: boolean;
|
|
128
164
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
129
165
|
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
@@ -139,7 +175,11 @@ declare var __VLS_1$1: {};
|
|
|
139
175
|
type __VLS_Slots$1 = {} & {
|
|
140
176
|
default?: (props: typeof __VLS_1$1) => any;
|
|
141
177
|
};
|
|
142
|
-
declare const __VLS_base$1: import("vue").DefineComponent<CommandPaletteItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
178
|
+
declare const __VLS_base$1: import("vue").DefineComponent<CommandPaletteItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
179
|
+
select: (value: string) => any;
|
|
180
|
+
}, string, import("vue").PublicProps, Readonly<CommandPaletteItemProps> & Readonly<{
|
|
181
|
+
onSelect?: ((value: string) => any) | undefined;
|
|
182
|
+
}>, {
|
|
143
183
|
isDisabled: boolean;
|
|
144
184
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
145
185
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
@@ -164,4 +204,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
164
204
|
};
|
|
165
205
|
};
|
|
166
206
|
//#endregion
|
|
167
|
-
export { _default$4 as a, CommandPaletteEmits as c,
|
|
207
|
+
export { CommandPaletteSlots as _, _default$4 as a, CommandPaletteEmits as c, CommandPaletteInputProps as d, CommandPaletteItemEmits as f, CommandPaletteProps as g, CommandPaletteListProps as h, _default$3 as i, CommandPaletteGroupProps as l, CommandPaletteItemSlotProps as m, _default$1 as n, _default$5 as o, CommandPaletteItemProps as p, _default$2 as r, _default$6 as s, _default as t, CommandPaletteInputEmits as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComputedRef, InjectionKey, VNode } from "vue";
|
|
1
|
+
import { ComputedRef, InjectionKey, MaybeRefOrGetter, Ref, VNode } from "vue";
|
|
2
2
|
//#region src/Collapsible/types.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Logical side of the trigger label that carries the disclosure chevron.
|
|
@@ -95,6 +95,10 @@ type __VLS_WithSlots$1<T, S> = T & {
|
|
|
95
95
|
type CollapsibleGroupDensity = 'compact' | 'balanced' | 'spacious';
|
|
96
96
|
type CollapsibleGroupType = 'single' | 'multiple';
|
|
97
97
|
type CollapsibleGroupValue = string | string[];
|
|
98
|
+
interface CollapsibleGroupContextValue {
|
|
99
|
+
isOpen: (value: string) => boolean;
|
|
100
|
+
toggle: (value: string) => void;
|
|
101
|
+
}
|
|
98
102
|
//#endregion
|
|
99
103
|
//#region src/Collapsible/groupTypes.d.ts
|
|
100
104
|
interface CollapsibleGroupProps {
|
|
@@ -150,11 +154,11 @@ type __VLS_ModelProps = {
|
|
|
150
154
|
};
|
|
151
155
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
152
156
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
153
|
-
change: (value: CollapsibleGroupValue) => any;
|
|
154
157
|
"update:value": (value: CollapsibleGroupValue | undefined) => any;
|
|
158
|
+
change: (value: CollapsibleGroupValue) => any;
|
|
155
159
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
156
|
-
onChange?: ((value: CollapsibleGroupValue) => any) | undefined;
|
|
157
160
|
"onUpdate:value"?: ((value: CollapsibleGroupValue | undefined) => any) | undefined;
|
|
161
|
+
onChange?: ((value: CollapsibleGroupValue) => any) | undefined;
|
|
158
162
|
}>, {
|
|
159
163
|
type: CollapsibleGroupType;
|
|
160
164
|
hasDividers: boolean;
|
|
@@ -168,4 +172,63 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
168
172
|
};
|
|
169
173
|
};
|
|
170
174
|
//#endregion
|
|
171
|
-
|
|
175
|
+
//#region src/Collapsible/useCollapsible.d.ts
|
|
176
|
+
/**
|
|
177
|
+
* 受控模式与默认值。传了这个对象,展开状态就不再是「自己管自己」,
|
|
178
|
+
* 而是先读 `isOpen`,读不到才用 `defaultIsOpen`。
|
|
179
|
+
*/
|
|
180
|
+
interface CollapsibleConfig {
|
|
181
|
+
/**
|
|
182
|
+
* 受控的展开状态,通常传 `v-model:isOpen` 的 model ref。
|
|
183
|
+
* 留空表示不受控,状态由 hook 自己保存。
|
|
184
|
+
*/
|
|
185
|
+
isOpen?: Ref<boolean | undefined>;
|
|
186
|
+
/**
|
|
187
|
+
* 不受控时初始是否展开。
|
|
188
|
+
* @default true
|
|
189
|
+
*/
|
|
190
|
+
defaultIsOpen?: MaybeRefOrGetter<boolean>;
|
|
191
|
+
/**
|
|
192
|
+
* 状态要变化时调用,参数是目标状态。
|
|
193
|
+
* 受控时它是「请求」,不受控时它是「通知」。
|
|
194
|
+
*/
|
|
195
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
196
|
+
}
|
|
197
|
+
interface UseCollapsibleOptions {
|
|
198
|
+
/**
|
|
199
|
+
* 是否启用折叠能力。
|
|
200
|
+
* - `true`:自己管状态,初始展开。
|
|
201
|
+
* - `false`:关闭折叠,`isOpen` 恒为 false,`toggle` 不做任何事。
|
|
202
|
+
* - 传配置对象:做受控,或自定义默认值。
|
|
203
|
+
* @default true
|
|
204
|
+
*/
|
|
205
|
+
isCollapsible?: MaybeRefOrGetter<boolean | CollapsibleConfig | undefined>;
|
|
206
|
+
/**
|
|
207
|
+
* 在 `CollapsibleGroup` 里的唯一标识。有明确值且位于组内时,展开状态由组统一管理。
|
|
208
|
+
*/
|
|
209
|
+
value?: MaybeRefOrGetter<string | undefined>;
|
|
210
|
+
/**
|
|
211
|
+
* 组上下文。一般不用传,默认从最近的 `CollapsibleGroup` 注入。
|
|
212
|
+
*/
|
|
213
|
+
group?: CollapsibleGroupContextValue | null;
|
|
214
|
+
}
|
|
215
|
+
interface UseCollapsibleReturn {
|
|
216
|
+
/** 折叠能力是否生效。`isCollapsible` 为 false 时是 false。 */
|
|
217
|
+
isEnabled: ComputedRef<boolean>;
|
|
218
|
+
/** 内容当前是否展开。 */
|
|
219
|
+
isOpen: ComputedRef<boolean>;
|
|
220
|
+
/** 切换展开状态:组内交给组,否则写受控 ref 或内部状态。 */
|
|
221
|
+
toggle: () => void;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* 对应原版 Astryx 的 `hooks/useCollapsible`:折叠面板的状态机。
|
|
225
|
+
* 支持三种模式——组管理(在 `CollapsibleGroup` 里带 `value`)、受控(`isOpen`)、不受控。
|
|
226
|
+
* `Collapsible` 组件内部也用它,所以自定义折叠 UI 和组件本身的行为一致。
|
|
227
|
+
*
|
|
228
|
+
* ```ts
|
|
229
|
+
* const { isOpen, toggle } = useCollapsible({ isCollapsible: true })
|
|
230
|
+
* ```
|
|
231
|
+
*/
|
|
232
|
+
declare function useCollapsible(options?: UseCollapsibleOptions): UseCollapsibleReturn;
|
|
233
|
+
//#endregion
|
|
234
|
+
export { _default as a, CollapsibleGroupSlots as c, CollapsibleGroupValue as d, _default$1 as f, CollapsibleSlots as g, CollapsibleProps as h, useCollapsible as i, CollapsibleGroupDensity as l, CollapsibleEmits as m, UseCollapsibleOptions as n, CollapsibleGroupEmits as o, CollapsibleChevronPosition as p, UseCollapsibleReturn as r, CollapsibleGroupProps as s, CollapsibleConfig as t, CollapsibleGroupType as u };
|
|
@@ -15,10 +15,18 @@ interface BaseTypeaheadProps<T extends SearchableItem = SearchableItem> {
|
|
|
15
15
|
inputId?: string;
|
|
16
16
|
/** 外面已经算好的说明和状态 id。 */
|
|
17
17
|
describedBy?: string;
|
|
18
|
+
/** `aria-describedby` 的专用别名。给了就盖过原生属性。 */
|
|
19
|
+
ariaDescribedBy?: string;
|
|
20
|
+
/** `aria-labelledby` 的专用别名。给了就盖过原生属性。 */
|
|
21
|
+
ariaLabelledBy?: string;
|
|
22
|
+
/** 下拉挂靠的元素。不传就用输入框所在的外框。 */
|
|
23
|
+
anchorRef?: HTMLElement | null;
|
|
18
24
|
placeholder?: string;
|
|
19
25
|
disabled?: boolean;
|
|
20
26
|
/** 禁用原因。有值时控件仍可聚焦,方便读到原因。 */
|
|
21
27
|
disabledReason?: string;
|
|
28
|
+
/** 强制让禁用的控件还能聚焦,读屏能读到外部说明。 */
|
|
29
|
+
isFocusableDisabled?: boolean;
|
|
22
30
|
/** 输入框边框的校验色。说明文字由外面的字段负责。 */
|
|
23
31
|
status?: TypeaheadStatus;
|
|
24
32
|
size?: TypeaheadSize;
|
|
@@ -28,12 +36,24 @@ interface BaseTypeaheadProps<T extends SearchableItem = SearchableItem> {
|
|
|
28
36
|
debounceMs?: number;
|
|
29
37
|
/** 下拉最多显示多少条。 */
|
|
30
38
|
maxMenuItems?: number;
|
|
39
|
+
/** 下拉想要的宽度,单位像素。太宽时会被视口截住。 */
|
|
40
|
+
menuWidth?: number;
|
|
41
|
+
/** 少于这么多字符就不搜,下拉也不打开。按可见字符数。 */
|
|
42
|
+
minQueryLength?: number;
|
|
31
43
|
/** 聚焦时还没输入就展示结果。 */
|
|
32
44
|
showOnFocus?: boolean;
|
|
33
|
-
|
|
45
|
+
/** `showOnFocus` 的原版名。 */
|
|
46
|
+
hasEntriesOnFocus?: boolean;
|
|
47
|
+
/** 挂载后自动聚焦输入框。 */
|
|
48
|
+
hasAutoFocus?: boolean;
|
|
49
|
+
emptyText?: string | null;
|
|
50
|
+
/** 一条结果都没有时显示的内容。`null` 当作没给。 */
|
|
51
|
+
emptySearchText?: string | null;
|
|
34
52
|
required?: boolean;
|
|
35
53
|
/** 表单字段名。选中后提交条目的 id。 */
|
|
36
54
|
name?: string;
|
|
55
|
+
/** 输入框在 Tab 序里的位置。 */
|
|
56
|
+
inputTabIndex?: number;
|
|
37
57
|
}
|
|
38
58
|
interface TypeaheadProps<T extends SearchableItem = SearchableItem> {
|
|
39
59
|
/** 当前选中的条目。空表示还没选。 */
|
|
@@ -46,22 +66,36 @@ interface TypeaheadProps<T extends SearchableItem = SearchableItem> {
|
|
|
46
66
|
labelHidden?: boolean;
|
|
47
67
|
/** 标签下方的说明。 */
|
|
48
68
|
description?: string;
|
|
69
|
+
/** 标签旁边信息图标里的提示文字。 */
|
|
70
|
+
labelTooltip?: string;
|
|
49
71
|
placeholder?: string;
|
|
50
72
|
disabled?: boolean;
|
|
51
73
|
/** 禁用原因。有值时控件仍可聚焦,方便读到原因。 */
|
|
52
74
|
disabledReason?: string;
|
|
75
|
+
/** `disabledReason` 的原版名。 */
|
|
76
|
+
disabledMessage?: string;
|
|
53
77
|
status?: TypeaheadStatus;
|
|
54
78
|
statusMessage?: string;
|
|
55
79
|
size?: TypeaheadSize;
|
|
56
80
|
/** 显示清除按钮。 */
|
|
57
81
|
clearable?: boolean;
|
|
82
|
+
/** `clearable` 的原版名。 */
|
|
83
|
+
hasClear?: boolean;
|
|
58
84
|
/** 输入停顿后再搜索,单位毫秒。本地数据可设为 0。 */
|
|
59
85
|
debounceMs?: number;
|
|
60
86
|
/** 下拉最多显示多少条。 */
|
|
61
87
|
maxMenuItems?: number;
|
|
88
|
+
/** 少于这么多字符就不搜,下拉也不打开。按可见字符数。 */
|
|
89
|
+
minQueryLength?: number;
|
|
62
90
|
/** 聚焦时还没输入就展示结果。 */
|
|
63
91
|
showOnFocus?: boolean;
|
|
64
|
-
|
|
92
|
+
/** `showOnFocus` 的原版名。 */
|
|
93
|
+
hasEntriesOnFocus?: boolean;
|
|
94
|
+
/** 挂载后自动聚焦输入框。 */
|
|
95
|
+
hasAutoFocus?: boolean;
|
|
96
|
+
emptyText?: string | null;
|
|
97
|
+
/** 一条结果都没有时显示的内容。`null` 当作没给。 */
|
|
98
|
+
emptySearchText?: string | null;
|
|
65
99
|
required?: boolean;
|
|
66
100
|
optional?: boolean;
|
|
67
101
|
/** 表单字段名。选中后提交条目的 id。 */
|
|
@@ -72,6 +106,8 @@ interface TypeaheadEmits<T extends SearchableItem = SearchableItem> {
|
|
|
72
106
|
'update:modelValue': [value: T | null];
|
|
73
107
|
'change': [value: T | null];
|
|
74
108
|
'search': [query: string];
|
|
109
|
+
/** `search` 的原版名。 */
|
|
110
|
+
'changeQuery': [query: string];
|
|
75
111
|
'openChange': [isOpen: boolean];
|
|
76
112
|
}
|
|
77
113
|
interface TypeaheadItemProps {
|
|
@@ -79,6 +115,11 @@ interface TypeaheadItemProps {
|
|
|
79
115
|
item: SearchableItem;
|
|
80
116
|
/** 盖过条目自己的说明。 */
|
|
81
117
|
description?: string;
|
|
118
|
+
/**
|
|
119
|
+
* 分组标题。默认行不画标题,分组由下拉按 `item.auxiliaryData.group` 自己排,
|
|
120
|
+
* 这个属性只为和外部同名属性对得上而接受。
|
|
121
|
+
*/
|
|
122
|
+
group?: string;
|
|
82
123
|
/** 这一行看起来不可选。 */
|
|
83
124
|
isDisabled?: boolean;
|
|
84
125
|
}
|
|
@@ -100,8 +141,9 @@ declare const __VLS_export$2: <T extends SearchableItem>(__VLS_props: NonNullabl
|
|
|
100
141
|
props: import("vue").PublicProps & __VLS_PrettifyLocal$1<BaseTypeaheadProps<T> & {
|
|
101
142
|
onChange?: ((value: T | null) => any) | undefined;
|
|
102
143
|
onSearch?: ((query: string) => any) | undefined;
|
|
103
|
-
"onUpdate:modelValue"?: ((value: T | null) => any) | undefined;
|
|
104
144
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
145
|
+
"onUpdate:modelValue"?: ((value: T | null) => any) | undefined;
|
|
146
|
+
onChangeQuery?: ((query: string) => any) | undefined;
|
|
105
147
|
}> & (typeof globalThis extends {
|
|
106
148
|
__VLS_PROPS_FALLBACK: infer P;
|
|
107
149
|
} ? P : {});
|
|
@@ -111,7 +153,7 @@ declare const __VLS_export$2: <T extends SearchableItem>(__VLS_props: NonNullabl
|
|
|
111
153
|
}>) => void;
|
|
112
154
|
attrs: any;
|
|
113
155
|
slots: TypeaheadSlots<T>;
|
|
114
|
-
emit: ((evt: "change", value: T | null) => void) & ((evt: "search", query: string) => void) & ((evt: "update:modelValue", value: T | null) => void) & ((evt: "
|
|
156
|
+
emit: ((evt: "change", value: T | null) => void) & ((evt: "search", query: string) => void) & ((evt: "openChange", isOpen: boolean) => void) & ((evt: "update:modelValue", value: T | null) => void) & ((evt: "changeQuery", query: string) => void);
|
|
115
157
|
}>) => import("vue").VNode & {
|
|
116
158
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
117
159
|
};
|
|
@@ -123,8 +165,9 @@ declare const __VLS_export$1: <T extends SearchableItem>(__VLS_props: NonNullabl
|
|
|
123
165
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<TypeaheadProps<T> & {
|
|
124
166
|
onChange?: ((value: T | null) => any) | undefined;
|
|
125
167
|
onSearch?: ((query: string) => any) | undefined;
|
|
126
|
-
"onUpdate:modelValue"?: ((value: T | null) => any) | undefined;
|
|
127
168
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
169
|
+
"onUpdate:modelValue"?: ((value: T | null) => any) | undefined;
|
|
170
|
+
onChangeQuery?: ((query: string) => any) | undefined;
|
|
128
171
|
}> & (typeof globalThis extends {
|
|
129
172
|
__VLS_PROPS_FALLBACK: infer P;
|
|
130
173
|
} ? P : {});
|
|
@@ -134,7 +177,7 @@ declare const __VLS_export$1: <T extends SearchableItem>(__VLS_props: NonNullabl
|
|
|
134
177
|
}>) => void;
|
|
135
178
|
attrs: any;
|
|
136
179
|
slots: TypeaheadSlots<T>;
|
|
137
|
-
emit: ((evt: "change", value: T | null) => void) & ((evt: "search", query: string) => void) & ((evt: "update:modelValue", value: T | null) => void) & ((evt: "
|
|
180
|
+
emit: ((evt: "change", value: T | null) => void) & ((evt: "search", query: string) => void) & ((evt: "openChange", isOpen: boolean) => void) & ((evt: "update:modelValue", value: T | null) => void) & ((evt: "changeQuery", query: string) => void);
|
|
138
181
|
}>) => import("vue").VNode & {
|
|
139
182
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
140
183
|
};
|
|
@@ -18,8 +18,8 @@ type __VLS_Slots = {} & {
|
|
|
18
18
|
label?: (props: typeof __VLS_1) => any;
|
|
19
19
|
};
|
|
20
20
|
declare const __VLS_base: import("vue").DefineComponent<DividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
|
21
|
-
variant: DividerVariant;
|
|
22
21
|
orientation: DividerOrientation;
|
|
22
|
+
variant: DividerVariant;
|
|
23
23
|
isFullBleed: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { s as NavLinkComponent } from "./types-BG23kC3S.js";
|
|
1
2
|
import { ComputedRef, Ref } from "vue";
|
|
2
3
|
//#region src/TabList/types.d.ts
|
|
3
4
|
type TabListSize = 'sm' | 'md' | 'lg';
|
|
@@ -36,6 +37,20 @@ interface TabListProps {
|
|
|
36
37
|
* when this is omitted.
|
|
37
38
|
*/
|
|
38
39
|
edgeCompensation?: TabListEdgeCompensation;
|
|
40
|
+
/**
|
|
41
|
+
* ARIA role for the strip.
|
|
42
|
+
*
|
|
43
|
+
* `tablist` asks for the WAI-ARIA tabs pattern: `role="tab"` and
|
|
44
|
+
* `aria-selected` on every tab, and each tab points at the panel it
|
|
45
|
+
* controls through its `panelId`. Only tabs belong in a tablist strip, and
|
|
46
|
+
* a tab's `href` is ignored there.
|
|
47
|
+
*
|
|
48
|
+
* Left unset, the strip is a navigation landmark that marks the current tab
|
|
49
|
+
* with `aria-current`, and tabs with an `href` render as links.
|
|
50
|
+
*
|
|
51
|
+
* Any other value is passed through to the element unchanged.
|
|
52
|
+
*/
|
|
53
|
+
role?: string;
|
|
39
54
|
}
|
|
40
55
|
interface TabMenuOption {
|
|
41
56
|
value: string;
|
|
@@ -57,8 +72,14 @@ interface TabProps {
|
|
|
57
72
|
* Unique value for this tab.
|
|
58
73
|
*/
|
|
59
74
|
value: string;
|
|
75
|
+
/**
|
|
76
|
+
* Visible text of the tab. Used as `aria-label` when `isLabelHidden` is set.
|
|
77
|
+
* The default slot wins when both are given.
|
|
78
|
+
*/
|
|
79
|
+
label?: string;
|
|
60
80
|
/**
|
|
61
81
|
* ID of the controlled panel for aria-controls.
|
|
82
|
+
* Only used inside a `role="tablist"` strip.
|
|
62
83
|
*/
|
|
63
84
|
panelId?: string;
|
|
64
85
|
/**
|
|
@@ -66,6 +87,32 @@ interface TabProps {
|
|
|
66
87
|
* @default false
|
|
67
88
|
*/
|
|
68
89
|
disabled?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* URL to navigate to. Outside the tabs pattern the tab renders as a link.
|
|
92
|
+
* Ignored inside a `role="tablist"` strip.
|
|
93
|
+
*/
|
|
94
|
+
href?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Link root component, such as a router link. Only applies when `href` is
|
|
97
|
+
* given and the strip is not a tablist.
|
|
98
|
+
*/
|
|
99
|
+
as?: NavLinkComponent;
|
|
100
|
+
/**
|
|
101
|
+
* Visually hides the label. Only the icon and the end content show, and
|
|
102
|
+
* `label` becomes the accessible name.
|
|
103
|
+
* @default false
|
|
104
|
+
*/
|
|
105
|
+
isLabelHidden?: boolean;
|
|
106
|
+
}
|
|
107
|
+
interface TabSlots {
|
|
108
|
+
/** Visible text. Falls back to the `label` prop. */
|
|
109
|
+
default?: () => unknown;
|
|
110
|
+
/** Icon shown while the tab is not selected. */
|
|
111
|
+
icon?: () => unknown;
|
|
112
|
+
/** Icon shown while the tab is selected. Falls back to `icon`. */
|
|
113
|
+
selectedIcon?: () => unknown;
|
|
114
|
+
/** Content after the label, such as a badge count or a status dot. */
|
|
115
|
+
endContent?: () => unknown;
|
|
69
116
|
}
|
|
70
117
|
interface TabListTab {
|
|
71
118
|
value: string;
|
|
@@ -80,11 +127,9 @@ interface TabListTab {
|
|
|
80
127
|
}
|
|
81
128
|
//#endregion
|
|
82
129
|
//#region src/TabList/Tab.vue.d.ts
|
|
83
|
-
|
|
84
|
-
type __VLS_Slots$1 = {} & {
|
|
85
|
-
default?: (props: typeof __VLS_1) => any;
|
|
86
|
-
};
|
|
130
|
+
type __VLS_Slots$1 = TabSlots;
|
|
87
131
|
declare const __VLS_base$1: import("vue").DefineComponent<TabProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TabProps> & Readonly<{}>, {
|
|
132
|
+
isLabelHidden: boolean;
|
|
88
133
|
disabled: boolean;
|
|
89
134
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
90
135
|
declare const __VLS_export$2: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
@@ -100,11 +145,11 @@ type __VLS_Slots = {
|
|
|
100
145
|
default: () => unknown;
|
|
101
146
|
};
|
|
102
147
|
declare const __VLS_base: import("vue").DefineComponent<TabListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
103
|
-
change: (value: string) => any;
|
|
104
148
|
"update:value": (value: string) => any;
|
|
149
|
+
change: (value: string) => any;
|
|
105
150
|
}, string, import("vue").PublicProps, Readonly<TabListProps> & Readonly<{
|
|
106
|
-
onChange?: ((value: string) => any) | undefined;
|
|
107
151
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
152
|
+
onChange?: ((value: string) => any) | undefined;
|
|
108
153
|
}>, {
|
|
109
154
|
size: TabListSize;
|
|
110
155
|
isFullBleed: boolean;
|
|
@@ -123,4 +168,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
123
168
|
declare const __VLS_export: import("vue").DefineComponent<TabMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TabMenuProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
124
169
|
declare const _default: typeof __VLS_export;
|
|
125
170
|
//#endregion
|
|
126
|
-
export { TabListProps as a, TabMenuOption as c, TabListLayout as i, TabMenuProps as l, _default$1 as n, TabListSize as o, _default$2 as r, TabListTab as s, _default as t, TabProps as u };
|
|
171
|
+
export { TabListProps as a, TabMenuOption as c, TabSlots as d, TabListLayout as i, TabMenuProps as l, _default$1 as n, TabListSize as o, _default$2 as r, TabListTab as s, _default as t, TabProps as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as FieldSlots, l as FieldStatusVariant, n as FieldLabelSlots, r as FieldProps, t as FieldLabelProps } from "./types-
|
|
1
|
+
import { a as FieldSlots, l as FieldStatusVariant, n as FieldLabelSlots, r as FieldProps, t as FieldLabelProps } from "./types-0Q_SJv_F.js";
|
|
2
2
|
//#region src/Field/Field.vue.d.ts
|
|
3
3
|
type __VLS_Slots$1 = FieldSlots;
|
|
4
4
|
declare const __VLS_base$1: import("vue").DefineComponent<FieldProps, {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { i as SectionVariant, n as SectionProps, r as SectionSlots } from "./types-uFMH9NaM.js";
|
|
2
|
+
//#region src/Section/Section.vue.d.ts
|
|
3
|
+
type __VLS_Slots = SectionSlots;
|
|
4
|
+
declare const __VLS_base: import("vue").DefineComponent<SectionProps, {
|
|
5
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SectionProps> & Readonly<{}>, {
|
|
7
|
+
variant: SectionVariant;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { _default as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TextProps, c as TextType, i as TextJustify, n as TextColor, r as TextDisplay, s as TextTruncateTooltip, t as TextAs } from "./types-
|
|
1
|
+
import { a as TextProps, c as TextType, i as TextJustify, n as TextColor, r as TextDisplay, s as TextTruncateTooltip, t as TextAs } from "./types-Ckih2YJi.js";
|
|
2
2
|
//#region src/Text/Text.vue.d.ts
|
|
3
3
|
declare var __VLS_13: {}, __VLS_21: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
@@ -10,6 +10,7 @@ declare const __VLS_base: import("vue").DefineComponent<TextProps, {}, {}, {}, {
|
|
|
10
10
|
type: TextType;
|
|
11
11
|
as: TextAs;
|
|
12
12
|
color: TextColor;
|
|
13
|
+
hasCapsize: boolean;
|
|
13
14
|
display: TextDisplay;
|
|
14
15
|
justify: TextJustify;
|
|
15
16
|
maxLines: number;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { a as NavItemSize, i as NavItemProps, n as NavIconSlots, o as NavItemSlots, s as NavLinkComponent, t as NavIconProps } from "./types-BG23kC3S.js";
|
|
2
2
|
import { Component } from "vue";
|
|
3
3
|
//#region src/NavItem/link.d.ts
|
|
4
|
-
/**
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* 有可用地址时用链接组件,否则用按钮。禁用的地址也不走链接。
|
|
6
|
+
* `fallback` 是外层的默认链接组件,例如 `LinkProvider` 给的那个;`as` 写了就以 `as` 为准。
|
|
7
|
+
*/
|
|
8
|
+
declare function resolveNavRoot(href: string | undefined, isDisabled: boolean, as?: NavLinkComponent, fallback?: NavLinkComponent): string | Component;
|
|
6
9
|
//#endregion
|
|
7
10
|
//#region src/NavItem/NavIcon.vue.d.ts
|
|
8
11
|
type __VLS_Slots$1 = NavIconSlots;
|
|
@@ -24,10 +27,10 @@ declare const __VLS_base: import("vue").DefineComponent<NavItemProps, {}, {}, {}
|
|
|
24
27
|
}, string, import("vue").PublicProps, Readonly<NavItemProps> & Readonly<{
|
|
25
28
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
26
29
|
}>, {
|
|
27
|
-
isSelected: boolean;
|
|
28
|
-
isDisabled: boolean;
|
|
29
30
|
size: NavItemSize;
|
|
31
|
+
isDisabled: boolean;
|
|
30
32
|
isIconOnly: boolean;
|
|
33
|
+
isSelected: boolean;
|
|
31
34
|
block: boolean;
|
|
32
35
|
plain: boolean;
|
|
33
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -20,6 +20,11 @@ interface ProgressBarProps {
|
|
|
20
20
|
isLabelHidden?: boolean;
|
|
21
21
|
description?: string;
|
|
22
22
|
isIndeterminate?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* 变灰的禁用外观:填充和文字都降为次要色。用于已取消或不再进行的任务。
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
isDisabled?: boolean;
|
|
23
28
|
/** 在标签旁显示当前进度。`hasValueLabel` 是同一开关。 */
|
|
24
29
|
showValue?: boolean;
|
|
25
30
|
/** 与 `showValue` 相同,对齐原版属性名。 */
|
|
@@ -38,9 +43,10 @@ interface ProgressBarProps {
|
|
|
38
43
|
//#endregion
|
|
39
44
|
//#region src/ProgressBar/ProgressBar.vue.d.ts
|
|
40
45
|
declare const __VLS_export: import("vue").DefineComponent<ProgressBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProgressBarProps> & Readonly<{}>, {
|
|
41
|
-
variant: ProgressBarVariant;
|
|
42
46
|
size: ProgressBarSize;
|
|
47
|
+
isDisabled: boolean;
|
|
43
48
|
value: number;
|
|
49
|
+
variant: ProgressBarVariant;
|
|
44
50
|
isLabelHidden: boolean;
|
|
45
51
|
min: number;
|
|
46
52
|
max: number;
|
|
@@ -85,8 +85,8 @@ interface StepSlots {
|
|
|
85
85
|
type __VLS_Slots$1 = StepSlots;
|
|
86
86
|
declare const __VLS_base$1: import("vue").DefineComponent<StepProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepProps> & Readonly<{}>, {
|
|
87
87
|
isDisabled: boolean;
|
|
88
|
-
indicator: StepIndicator;
|
|
89
88
|
isOptional: boolean;
|
|
89
|
+
indicator: StepIndicator;
|
|
90
90
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
91
91
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
92
92
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as ButtonSize } from "./types-WlmsNL1I.js";
|
|
2
|
-
import { l as FieldStatusVariant, o as FieldStatusInput } from "./types-3eXh_5os.js";
|
|
3
2
|
import { t as ExtendedIconName } from "./types-CwyibrRB.js";
|
|
4
|
-
import {
|
|
3
|
+
import { l as FieldStatusVariant, o as FieldStatusInput } from "./types-0Q_SJv_F.js";
|
|
4
|
+
import { r as PopoverPlacement, t as PopoverAlignment } from "./types-OGMYGejX.js";
|
|
5
5
|
import { Component, Ref, VNode } from "vue";
|
|
6
6
|
//#region src/ComplexSelector/types.d.ts
|
|
7
7
|
interface ComplexSelectorState {
|
|
@@ -108,6 +108,15 @@ interface ComplexSelectorProps<Value = unknown> {
|
|
|
108
108
|
}
|
|
109
109
|
interface ComplexSelectorEmits<Value> {
|
|
110
110
|
change: [value: Value];
|
|
111
|
+
/**
|
|
112
|
+
* 触发器上的点击。打开之前先执行,event.preventDefault() 可以让弹层不打开。
|
|
113
|
+
* 用 trigger 插槽或 renderTrigger 自己画触发器时,它在开关之后执行,取消不了。
|
|
114
|
+
*/
|
|
115
|
+
click: [event: MouseEvent];
|
|
116
|
+
/** 触发器上的按键。内置处理(包括 ArrowDown 打开)之后执行,每个键都会收到。 */
|
|
117
|
+
keydown: [event: KeyboardEvent];
|
|
118
|
+
/** 弹层每次开或关都会触发:触发器、键盘、点外面、Escape、close() 或命令式 handle。 */
|
|
119
|
+
openChange: [isOpen: boolean];
|
|
111
120
|
}
|
|
112
121
|
interface ComplexSelectorSlots<Value> {
|
|
113
122
|
default?: (props: ComplexSelectorSlotProps<Value>) => VNode[];
|
|
@@ -124,6 +133,9 @@ declare const __VLS_export: <Value>(__VLS_props: NonNullable<Awaited<typeof __VL
|
|
|
124
133
|
modelValue: Value;
|
|
125
134
|
}) & {
|
|
126
135
|
onChange?: ((value: Value) => any) | undefined;
|
|
136
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
137
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
138
|
+
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
127
139
|
"onUpdate:modelValue"?: ((value: Value) => any) | undefined;
|
|
128
140
|
}> & (typeof globalThis extends {
|
|
129
141
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -131,7 +143,7 @@ declare const __VLS_export: <Value>(__VLS_props: NonNullable<Awaited<typeof __VL
|
|
|
131
143
|
expose: (exposed: import("vue").ShallowUnwrapRef<ComplexSelectorHandle>) => void;
|
|
132
144
|
attrs: any;
|
|
133
145
|
slots: ComplexSelectorSlots<Value>;
|
|
134
|
-
emit: ((evt: "change", value: Value) => void) & ((event: "update:modelValue", value: Value) => void);
|
|
146
|
+
emit: (((evt: "change", value: Value) => void) & ((evt: "click", event: MouseEvent) => void) & ((evt: "keydown", event: KeyboardEvent) => void) & ((evt: "openChange", isOpen: boolean) => void)) & ((event: "update:modelValue", value: Value) => void);
|
|
135
147
|
}>) => import("vue").VNode & {
|
|
136
148
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
137
149
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Component, ComputedRef, InjectionKey } from "vue";
|
|
2
|
+
//#region src/LinkProvider/context.d.ts
|
|
3
|
+
/** 最近的 `LinkProvider` 给的链接组件。 */
|
|
4
|
+
declare const linkComponentKey: InjectionKey<Component>;
|
|
5
|
+
/**
|
|
6
|
+
* 子树默认使用的链接组件。没有 provider 时是 `undefined`,
|
|
7
|
+
* 各处退回自己原来的 `<a>`。
|
|
8
|
+
*
|
|
9
|
+
* 组件自己的 `as` 属性优先,所以用的时候写 `props.as ?? linkComponent.value`。
|
|
10
|
+
*/
|
|
11
|
+
declare function useLinkComponent(): ComputedRef<Component | undefined>;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/LinkProvider/types.d.ts
|
|
14
|
+
/** 子树里所有链接默认使用的组件,例如 `RouterLink` 或 `NuxtLink`。 */
|
|
15
|
+
type LinkComponentType = Component;
|
|
16
|
+
interface LinkProviderProps {
|
|
17
|
+
/**
|
|
18
|
+
* 子树里所有链接元素默认渲染成这个组件,例如 `RouterLink`。
|
|
19
|
+
* 组件会收到 `href` 和 `to`。单个组件自己的 `as` 属性仍然优先。
|
|
20
|
+
*/
|
|
21
|
+
component: LinkComponentType;
|
|
22
|
+
}
|
|
23
|
+
interface LinkProviderSlots {
|
|
24
|
+
/** 使用这个链接组件的子树。 */
|
|
25
|
+
default?: () => unknown;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/LinkProvider/LinkProvider.vue.d.ts
|
|
29
|
+
type __VLS_Slots = LinkProviderSlots;
|
|
30
|
+
declare const __VLS_base: import("vue").DefineComponent<LinkProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { linkComponentKey as a, LinkProviderSlots as i, LinkComponentType as n, useLinkComponent as o, LinkProviderProps as r, _default as t };
|