@astryx-vue/core 0.2.2 → 0.2.4
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 +4 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-ovx4cBjM.js → AlertDialog-B6UeBCE7.js} +2 -2
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-Cb41gIAj.js → AppShell-CeBmB0Q9.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-jmHInHwj.js → Avatar-BB4Z4LF1.js} +10 -4
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +2 -2
- package/dist/BottomSheet/index.js +3 -2
- package/dist/{BottomSheet-Dg95HB1s.js → BottomSheet-BV6vfgGu.js} +82 -22
- package/dist/BottomSheet-o7xw-TOi.js +153 -0
- package/dist/Breadcrumbs/index.d.ts +3 -2
- package/dist/Breadcrumbs/index.js +3 -2
- package/dist/{Breadcrumbs-CTQ7fjDn.js → Breadcrumbs-D6G7f5WL.js} +13 -8
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +1 -1
- package/dist/Calendar-DmTeM7PO.js +656 -0
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-X0cuQkvg.js → Carousel-CIKrcA2r.js} +2 -2
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-M0tiGrNT.js → Chat-BFox3u9D.js} +3 -3
- package/dist/CheckboxIndicator/index.js +1 -1
- package/dist/CheckboxIndicator-D37cm2Rh.js +68 -0
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CMsEE1_4.js → CheckboxInput-25Q8ItH-.js} +10 -9
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BbCPiend.js → CheckboxList-BlPf7vPe.js} +78 -25
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C1veUk5p.js → Citation-BG-vg9ia.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +3 -3
- package/dist/Code/index.js +4 -4
- package/dist/{Code-yb_KOFtJ.js → Code-XnPuGxey.js} +3 -2
- package/dist/{CodeBlock-DesTJAkm.js → CodeBlock-B2pnEOJY.js} +146 -16
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BestK35V.js → Collapsible-3YerR-FO.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BArt97V8.js → CommandPalette-DKgHzmJk.js} +10 -10
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CAoig1RK.js → ComplexSelector-Dv44FFhN.js} +3 -3
- package/dist/ContextMenu/index.d.ts +3 -2
- package/dist/ContextMenu/index.js +3 -2
- package/dist/{ContextMenu-9Im6i43E.js → ContextMenu-BeJO5HYx.js} +206 -423
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-D4XFAEMp.js +743 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DwDy3eRo.js → DateRangeInput-Cp6AZfew.js} +54 -19
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BYiaC9bn.js → DateTimeInput-B6MPPp76.js} +54 -15
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +3 -3
- package/dist/DropdownMenu/index.js +4 -3
- package/dist/{DropdownMenu-Dh-WAHKb.js → DropdownMenu--lnUeJEG.js} +309 -64
- package/dist/DropdownMenu-6E9jFdFe.js +325 -0
- package/dist/DropdownMenuRadioItem.vue-CXEURBcq.d.ts +564 -0
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CUJdTYKV.js → EmptyState-0RWymQUS.js} +2 -2
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-DLO6V12n.js → FileInput-DuNwdbAo.js} +2 -2
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/Heading-B9C3LZlS.js +94 -0
- package/dist/Icon/index.d.ts +4 -3
- package/dist/Icon/index.js +2 -2
- package/dist/{Icon-CJKjdJy-.js → Icon-bteSId7T.js} +113 -18
- package/dist/Indicator/index.d.ts +3 -0
- package/dist/Indicator/index.js +2 -0
- package/dist/InputGroup/index.d.ts +2 -2
- package/dist/InputGroup/index.js +3 -2
- package/dist/InputGroup-BzR6JRZb.js +129 -0
- package/dist/Item-DrYJL1TG.js +590 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-CdFCS_EA.js → Lightbox-Br3o0SyQ.js} +2 -2
- package/dist/Link/index.d.ts +3 -2
- package/dist/Link/index.js +1 -1
- package/dist/Link-DCZ6922-.js +196 -0
- package/dist/List/index.d.ts +3 -3
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-pGxvn6QJ.js → ListItem-CcRHWuEm.js} +8 -2
- package/dist/Markdown/index.d.ts +2 -2
- package/dist/Markdown/index.js +2 -2
- package/dist/{Markdown-BqKloI3w.js → Markdown-Bz0R3kNj.js} +280 -33
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-CvZkmisf.js → MetadataList-CFaocx6j.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Bwi0qXXM.js → MobileNavToggle-Dh3uLivq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BwJaJrkB.js → MoreMenu-B95nRSe8.js} +3 -3
- package/dist/MultiSelector/index.d.ts +2 -2
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-C-ETfFy_.js → MultiSelector-DuF5TECE.js} +304 -122
- package/dist/{NavDisclosure-DHrSNRDR.js → NavDisclosure-C6sPZ89n.js} +5 -2
- package/dist/NavHeadingSurface-Cb3x9iDx.js +287 -0
- package/dist/NavMenu/index.d.ts +2 -2
- package/dist/NavMenu/index.js +4 -3
- package/dist/NavMenu-ClIgMaxE.js +176 -0
- package/dist/{NavMenuItem-B-k7olt5.js → NavMenuItem-E7S8gBh-.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DjetVB8O.js → NumberInput-B4IL3s_8.js} +1 -1
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-Bz9c-u5y.js → Outline-DBUuchi9.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-ED-KN9Y5.js → OverflowList-aDd_oem0.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Cb66HMEf.js → Pagination-CNe9F6Fl.js} +181 -45
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-Crhk9PNP.js → Popover-D7zqpFwU.js} +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CjU8y4mi.js → PowerSearch-C6U8Sq1Y.js} +16 -16
- package/dist/ProgressBar/index.d.ts +2 -2
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DO9Chic6.js → ProgressBar-DF6WZNCI.js} +45 -6
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BqjdSCfJ.js → RadioGroup-CBqUPq_L.js} +16 -8
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DI8ujXcT.js → RadioList-CPOJn9Th.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-D-TBCg0Y.js → ResizeHandle-DYy0e3v9.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +2 -2
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-5N-hq2nF.js +618 -0
- package/dist/SideNav/index.d.ts +2 -2
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DonEfiAx.js → SideNav-CT9lfspi.js} +226 -230
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-D2ZIcUNx.js → Stepper-BqhVCgC-.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-D3F-stq-.js → TabList-BlzkrObv.js} +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CrP2Uffq.js → Table-CsdH8fCB.js} +7 -7
- package/dist/Text/index.d.ts +3 -3
- package/dist/Text/index.js +1 -1
- package/dist/Text-DIzZw6FA.js +86 -0
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +3 -2
- package/dist/Theme/index.js +2 -2
- package/dist/Theme-CtaUWo4g.js +1246 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BC5JGPGZ.js → Thumbnail-BnQwX1cQ.js} +3 -3
- package/dist/{TimeField-DpHFrNv0.js → TimeField-Biiuv0hB.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-DJLV0_4z.js → TimeInput-C9gptCOK.js} +1 -1
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-B7GV6hqd.js → Timer-kxzQx3tp.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-GKNjjt5g.js → Timestamp-D7bd_nF3.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Chu_eCVs.js → Token-D2GsI_Ei.js} +2 -2
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DRDpvQ_l.js → Tokenizer-rwzamZg4.js} +4 -4
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/{Tooltip-mp0NMh_Y.js → Tooltip-C2fh9anJ.js} +23 -8
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CEyWddtA.js → TopNav-arWFLTBM.js} +113 -43
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-COS8US8e.js → TreeList-C9xvMpJZ.js} +2 -2
- package/dist/Typeahead/index.d.ts +2 -2
- package/dist/Typeahead/index.js +3 -2
- package/dist/Typeahead-_V11btpv.js +499 -0
- package/dist/{TypeaheadMenu-CGvo0Tud.js → TypeaheadMenu-BEObzonz.js} +46 -10
- package/dist/{context-O2Vb8cJl.js → colorMode-CBgdgDSn.js} +1 -7
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +12 -7
- package/dist/composables-CWw6t-RJ.js +520 -0
- package/dist/{context-CiKncNSH.js → context-CPh7kE-a.js} +140 -18
- package/dist/context-Cws_tXTr.js +7 -0
- package/dist/context-D5-MwxnN.js +4 -0
- package/dist/{index-CJlBAXwj.d.ts → index-12QYAbiz.d.ts} +41 -4
- package/dist/{index-Cs5pcwY3.d.ts → index-6yB8BtEu.d.ts} +3 -3
- package/dist/{index-C7mxUcDR.d.ts → index-B4OOtNP8.d.ts} +2 -2
- package/dist/index-BBtJt5_A.d.ts +26 -0
- package/dist/{index-CRizexSC.d.ts → index-BH9PzQ1F.d.ts} +13 -73
- package/dist/index-BPwD6aBv.d.ts +83 -0
- package/dist/{index-DOUEn7V0.d.ts → index-BcZI402h.d.ts} +64 -5
- package/dist/{index-C8wDPDcP.d.ts → index-Bi49IrAJ.d.ts} +50 -8
- package/dist/{index-DimuSES0.d.ts → index-BlOIC_AM.d.ts} +3 -1
- package/dist/{index-C5p2NeCr.d.ts → index-Blm197N_.d.ts} +11 -2
- package/dist/{index-Bu3oXIIS.d.ts → index-BmmdzwT9.d.ts} +6 -0
- package/dist/{index-kVhSuA9t.d.ts → index-BxhJqiZ7.d.ts} +6 -6
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-qiZtHnGK.d.ts → index-C3GaPqvJ.d.ts} +123 -8
- package/dist/{index-D4I_obqR.d.ts → index-CFIXnk5D.d.ts} +1 -1
- package/dist/{index-cGagYM1g.d.ts → index-CI9kyg74.d.ts} +11 -1
- package/dist/{index-D-ZuubCK.d.ts → index-CUCcYKxl.d.ts} +1 -1
- package/dist/{index-DWH_HzXi.d.ts → index-ChWlKHjc.d.ts} +1 -1
- package/dist/{index-DGXviOlp.d.ts → index-D-ezcKaY.d.ts} +30 -4
- package/dist/{index-Cm_TiLXU.d.ts → index-Dgg0bHVM.d.ts} +7 -3
- package/dist/index-DxR1FChm.d.ts +158 -0
- package/dist/{index-DNRBbwp_.d.ts → index-EtZgovdH.d.ts} +842 -107
- package/dist/{index-BHqRH7QW.d.ts → index-FEy8qFSD.d.ts} +2 -2
- package/dist/index-XuAAcYiP.d.ts +77 -0
- package/dist/{index-D0TlUOtG.d.ts → index-YmSe1ujk.d.ts} +76 -3
- package/dist/{index-BMrggCw-.d.ts → index-bvr3WHvs.d.ts} +1 -1
- package/dist/{index-CDDMDHJM.d.ts → index-c67ca7eJ.d.ts} +1 -1
- package/dist/{index-c_TaW8mM.d.ts → index-cL3q7O4R.d.ts} +31 -2
- package/dist/{index-CGZ2xi3r.d.ts → index-eshFLli0.d.ts} +40 -3
- package/dist/{index-DsyKhauk.d.ts → index-hCpxKePE.d.ts} +48 -2
- package/dist/{index-u5ozu0G7.d.ts → index-vP0EtrJJ.d.ts} +13 -3
- package/dist/{index-B1TG2GPS.d.ts → index-vizlhXVs.d.ts} +246 -45
- package/dist/{index-DfgHJE7H.d.ts → index-z3uLM1O6.d.ts} +153 -24
- package/dist/index.d.ts +82 -80
- package/dist/index.js +127 -116
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -3
- package/dist/locale-sLw5Caia.js +917 -0
- package/dist/searchResultMessage-CCnq-_ce.js +94 -0
- package/dist/semantic-CKH9XVqa.d.ts +54 -0
- package/dist/syntaxTheme-CwVEcVDk.d.ts +57 -0
- package/dist/{syntaxTheme-ClpWALZX.js → syntaxTheme-R7xnu5x5.js} +24 -3
- package/dist/{types-pnljWjEE.d.ts → types-CwyibrRB.d.ts} +12 -11
- package/dist/{types-Bt-lSgYX.d.ts → types-D9nP_X-c.d.ts} +14 -1
- package/dist/{types-CAZY4Xua.d.ts → types-DGYHIu4I.d.ts} +30 -1
- package/dist/types-D_J66aPN.d.ts +85 -0
- package/dist/types-gKsEkk2g.d.ts +320 -0
- package/dist/{useAnchoredListbox-7W90Ny-9.js → useAnchoredListbox-BN9LQnon.js} +1 -1
- package/dist/useDatePresentation-C07PnOCw.js +21 -0
- package/dist/{useMonthGrid-CmJsZTcB.js → useDateRange-CIXoE_8k.js} +1 -42
- package/dist/useDisclosureHandle-Df3HhAfC.js +24 -0
- package/dist/{useDismiss-CAiHU6QD.js → useDismiss-Cj8x_51F.js} +8 -4
- package/dist/useFieldControlState-voICDrys.js +18 -0
- package/dist/useHandleRef-6cdKugm8.js +17 -0
- package/dist/useIndicator-i1NORM7W.js +147 -0
- package/dist/useMenuDrillIn-BgjJcY3K.js +520 -0
- package/dist/useMenuPress-DUmEy4TB.js +425 -0
- package/dist/useMonthGrid-fGHSSrFc.js +43 -0
- package/dist/usePendingChange-ib-h8FZK.js +25 -0
- package/dist/{composables-CVfjp9h4.js → useResizable-B3ahKLoZ.js} +74 -152
- package/dist/useSubmenuMode-CZN9qrUo.js +37 -0
- package/dist/useTruncation-B5qXQzAP.js +53 -0
- package/locales/SOURCE.json +37 -0
- package/locales/af-ZA.json +1482 -0
- package/locales/ar-SA.json +1482 -0
- package/locales/ca-ES.json +1482 -0
- package/locales/cs-CZ.json +1482 -0
- package/locales/da-DK.json +1482 -0
- package/locales/de-DE.json +1482 -0
- package/locales/el-GR.json +1482 -0
- package/locales/en.json +1646 -0
- package/locales/es-ES.json +1482 -0
- package/locales/fi-FI.json +1482 -0
- package/locales/fr-FR.json +1482 -0
- package/locales/he-IL.json +1482 -0
- package/locales/hu-HU.json +1482 -0
- package/locales/it-IT.json +1482 -0
- package/locales/ja-JP.json +1482 -0
- package/locales/ko-KR.json +1482 -0
- package/locales/nl-NL.json +1482 -0
- package/locales/no-NO.json +1482 -0
- package/locales/pl-PL.json +1482 -0
- package/locales/pt-BR.json +1482 -0
- package/locales/pt-PT.json +1482 -0
- package/locales/ro-RO.json +1482 -0
- package/locales/ru-RU.json +1482 -0
- package/locales/sr-SP.json +1482 -0
- package/locales/sv-SE.json +1482 -0
- package/locales/tr-TR.json +1482 -0
- package/locales/uk-UA.json +1482 -0
- package/locales/vi-VN.json +1482 -0
- package/locales/zh-CN.json +1482 -0
- package/locales/zh-TW.json +1482 -0
- package/package.json +7 -1
- package/styles/bottom-sheet.css +27 -0
- package/styles/calendar.css +38 -3
- package/styles/check-indicator.css +17 -0
- package/styles/checkbox-indicator.css +29 -10
- package/styles/checkbox-input.css +0 -11
- package/styles/code.css +62 -0
- package/styles/container-reveal.css +104 -0
- package/styles/date-input.css +48 -0
- package/styles/dropdown-menu.css +163 -0
- package/styles/field.css +48 -0
- package/styles/heading.css +47 -0
- package/styles/icon.css +51 -3
- package/styles/input-group.css +32 -3
- package/styles/keyboard-hint.css +28 -0
- package/styles/link.css +34 -0
- package/styles/list.css +88 -1
- package/styles/markdown.css +12 -0
- package/styles/multi-selector.css +26 -0
- package/styles/pagination.css +30 -0
- package/styles/progress-bar.css +49 -0
- package/styles/radio-indicator.css +90 -0
- package/styles/radio.css +9 -42
- package/styles/selector.css +112 -14
- package/styles/side-nav.css +36 -1
- package/styles/text.css +18 -0
- package/styles/top-nav.css +145 -6
- package/styles/typeahead.css +24 -0
- package/styles.css +4 -0
- package/dist/Calendar-BFaI5AMv.js +0 -352
- package/dist/CheckboxIndicator-DdJmksHt.js +0 -52
- package/dist/DateInput-BLocxqC3.js +0 -376
- package/dist/DropdownMenu-Ddfr-aEC.js +0 -164
- package/dist/Heading-Dugosn6j.js +0 -43
- package/dist/InputGroup-ChrFVxzV.js +0 -42
- package/dist/Item-C1z6gXn8.js +0 -289
- package/dist/Link-DqdQZ37C.js +0 -141
- package/dist/Selector-DE2IEFML.js +0 -468
- package/dist/Text-BHVghsWo.js +0 -53
- package/dist/Theme-BuUiiJNr.js +0 -429
- package/dist/Typeahead-P7cCqtaQ.js +0 -375
- package/dist/index-Bgv4ZmBl.d.ts +0 -72
- package/dist/index-DN7MXPHM.d.ts +0 -398
- package/dist/index-Dg3ZmwEg.d.ts +0 -75
- package/dist/index-IbUN4M8V.d.ts +0 -40
- package/dist/index-jdjcb3Js.d.ts +0 -80
- package/dist/locale-Cpk_nrLA.js +0 -18
- package/dist/syntaxTheme-Bcs1YMF7.d.ts +0 -38
- package/dist/types-DDAAT1Xd.d.ts +0 -285
- package/dist/useGridRovingFocus-DQQAOYH5.js +0 -99
- package/dist/useHotkeys-dABSK1o9.js +0 -80
- package/dist/useLongPress-Cyxwa73s.js +0 -60
- package/dist/{index-BUXNRekN.d.ts → index-IdK2g5B4.d.ts} +2 -2
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
import "./useAsyncSource-xpQovjV_.js";
|
|
2
2
|
import "./useClipboard-CU-kfqeJ.js";
|
|
3
3
|
import "./useResizable-CUoNPmUw.js";
|
|
4
|
-
import { CSSProperties, ComputedRef, InjectionKey, MaybeRefOrGetter, Ref } from "vue";
|
|
4
|
+
import { CSSProperties, Component, ComputedRef, InjectionKey, MaybeRefOrGetter, Ref } from "vue";
|
|
5
5
|
import { CalendarDate } from "@internationalized/date";
|
|
6
|
+
//#region src/composables/useDateRange.d.ts
|
|
7
|
+
interface ISODateRange {
|
|
8
|
+
start: string;
|
|
9
|
+
end: string;
|
|
10
|
+
}
|
|
11
|
+
type WeekStartsOn = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat';
|
|
12
|
+
declare function resolveWeekStart(value: WeekStartsOn | number | undefined): number;
|
|
13
|
+
declare function compareISODate(a: string, b: string): number;
|
|
14
|
+
declare function spanDays(start: string, end: string): number;
|
|
15
|
+
declare function orderRange(a: string, b: string): ISODateRange;
|
|
16
|
+
declare function isSameRange(a: ISODateRange | null, b: ISODateRange | null): boolean;
|
|
17
|
+
declare function isRangeWithinSpan(range: ISODateRange, minRangeSpan?: number, maxRangeSpan?: number): boolean;
|
|
18
|
+
interface RangeClickResult {
|
|
19
|
+
pending: string | null;
|
|
20
|
+
commit: ISODateRange | null;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 第一次点击记下起点。第二次点击在跨度合法时提交区间。
|
|
24
|
+
* 再次点击起点时,最短跨度允许单日就提交单日,否则取消这次选择。
|
|
25
|
+
*/
|
|
26
|
+
declare function applyRangeClick(pending: string | null, day: string, minRangeSpan?: number, maxRangeSpan?: number): RangeClickResult;
|
|
27
|
+
declare function isDayOutsideSpan(pending: string | null, day: string, minRangeSpan?: number, maxRangeSpan?: number): boolean;
|
|
28
|
+
declare function formatDateRange(range: ISODateRange | null, locale: string): string;
|
|
29
|
+
//#endregion
|
|
6
30
|
//#region src/composables/internal/announce.d.ts
|
|
7
31
|
/**
|
|
8
32
|
* 对应原版 Astryx 的 `hooks/useAnnounce`。
|
|
@@ -221,6 +245,47 @@ interface Combobox<T = string | number> {
|
|
|
221
245
|
*/
|
|
222
246
|
declare function useCombobox<T = string | number>(options: UseComboboxOptions<T>): Combobox<T>;
|
|
223
247
|
//#endregion
|
|
248
|
+
//#region src/composables/useContainerReveal.d.ts
|
|
249
|
+
interface UseContainerRevealOptions {
|
|
250
|
+
/**
|
|
251
|
+
* 为 false 时什么样式都不加,里面的内容一直可见。
|
|
252
|
+
* 每次调用都会重新读,所以可以随组件自己的开关变。
|
|
253
|
+
*/
|
|
254
|
+
isEnabled?: MaybeRefOrGetter<boolean>;
|
|
255
|
+
}
|
|
256
|
+
interface ContainerRevealOptions {
|
|
257
|
+
/**
|
|
258
|
+
* 指针必须停这么多毫秒,悬停揭示才开始。键盘和粗指针不等待。
|
|
259
|
+
*/
|
|
260
|
+
hoverDelay?: number;
|
|
261
|
+
/**
|
|
262
|
+
* 把容器钉在揭示或收起。`inactive` 仍让键盘焦点和粗指针看见内容。
|
|
263
|
+
*/
|
|
264
|
+
forceState?: 'active' | 'inactive';
|
|
265
|
+
}
|
|
266
|
+
interface ContentRevealOptions {
|
|
267
|
+
/** 反过来:平时可见,悬停时藏起。只影响指针,键盘和触摸仍看得到。 */
|
|
268
|
+
isRevealInverted?: boolean;
|
|
269
|
+
/** 藏起时仍占位,避免布局跳动。 */
|
|
270
|
+
isLayoutPreserved?: boolean;
|
|
271
|
+
/** 这一块自己的可见性,不跟容器走。`hidden` 在焦点进来时仍会露出。 */
|
|
272
|
+
forceVisibility?: 'shown' | 'hidden';
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* 悬停或键盘焦点时才露出行内操作。状态写在容器的自定义属性上,
|
|
276
|
+
* 嵌套容器会盖住外层,所以两层不会串。内容用透明度和定位藏起,不从无障碍树里拿掉。
|
|
277
|
+
*/
|
|
278
|
+
interface UseContainerReveal {
|
|
279
|
+
containerProps: (reveal?: ContainerRevealOptions) => {
|
|
280
|
+
class?: string | Record<string, boolean>;
|
|
281
|
+
style?: CSSProperties;
|
|
282
|
+
};
|
|
283
|
+
contentProps: (reveal?: ContentRevealOptions) => {
|
|
284
|
+
class?: string | Record<string, boolean>;
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
declare function useContainerReveal(options?: UseContainerRevealOptions): UseContainerReveal;
|
|
288
|
+
//#endregion
|
|
224
289
|
//#region src/composables/useControllableState.d.ts
|
|
225
290
|
interface UseControllableStateOptions<T> {
|
|
226
291
|
/**
|
|
@@ -252,29 +317,59 @@ interface ControllableState<T> {
|
|
|
252
317
|
*/
|
|
253
318
|
declare function useControllableState<T>(options: UseControllableStateOptions<T>): ControllableState<T>;
|
|
254
319
|
//#endregion
|
|
255
|
-
//#region src/composables/
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
320
|
+
//#region src/composables/useTimeValue.d.ts
|
|
321
|
+
type HourFormat = '12h' | '24h';
|
|
322
|
+
type ISOTimeString = string;
|
|
323
|
+
interface ParsedTime {
|
|
324
|
+
hours: number;
|
|
325
|
+
minutes: number;
|
|
326
|
+
seconds: number;
|
|
259
327
|
}
|
|
260
|
-
|
|
261
|
-
declare function
|
|
262
|
-
declare function
|
|
263
|
-
declare function
|
|
264
|
-
declare function
|
|
265
|
-
declare function
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
328
|
+
declare function parseISOTime(value: string): ParsedTime | null;
|
|
329
|
+
declare function formatISOTime(time: ParsedTime, hasSeconds: boolean): ISOTimeString;
|
|
330
|
+
declare function formatDisplayTime(value: string, hourFormat: HourFormat, hasSeconds: boolean): string;
|
|
331
|
+
declare function parseDisplayTime(text: string, hasSeconds: boolean): ISOTimeString | null;
|
|
332
|
+
declare function shiftTime(value: string, minuteDelta: number, hasSeconds: boolean): ISOTimeString;
|
|
333
|
+
declare function isTimeInRange(value: string, min?: string, max?: string): boolean;
|
|
334
|
+
type TimePresentation = 'text-input' | 'popover' | 'bottom-sheet' | 'native' | 'adaptive-bottom-sheet' | 'adaptive-native';
|
|
335
|
+
type NativePicker = 'touch' | 'always' | 'never';
|
|
336
|
+
declare function resolveTimeSurface(options: {
|
|
337
|
+
presentation?: TimePresentation;
|
|
338
|
+
nativePicker?: NativePicker;
|
|
339
|
+
coarse: boolean;
|
|
340
|
+
hasSeconds: boolean;
|
|
341
|
+
increment: number;
|
|
342
|
+
}): 'text' | 'native';
|
|
343
|
+
//#endregion
|
|
344
|
+
//#region src/composables/useDatePresentation.d.ts
|
|
345
|
+
/** Which surface collects a date. The text-only option belongs to the time field. */
|
|
346
|
+
type DatePresentation = 'popover' | 'bottom-sheet' | 'native' | 'adaptive-bottom-sheet' | 'adaptive-native';
|
|
347
|
+
type DateSurface = 'popover' | 'sheet' | 'native';
|
|
348
|
+
/**
|
|
349
|
+
* `presentation` wins over the older native picker name.
|
|
350
|
+
* With neither set, a mouse gets the calendar popover and a coarse pointer gets the system date control.
|
|
351
|
+
*/
|
|
352
|
+
declare function resolveDatePresentation(presentation: DatePresentation | undefined, nativePicker: NativePicker | undefined): DatePresentation;
|
|
353
|
+
declare function resolveDateSurface(presentation: DatePresentation, coarse: boolean): DateSurface;
|
|
354
|
+
//#endregion
|
|
355
|
+
//#region src/composables/useDisclosureHandle.d.ts
|
|
356
|
+
interface DisclosureHandle {
|
|
357
|
+
open: () => void;
|
|
358
|
+
close: () => void;
|
|
359
|
+
toggle: () => void;
|
|
360
|
+
isOpen: () => boolean;
|
|
270
361
|
}
|
|
271
362
|
/**
|
|
272
|
-
*
|
|
273
|
-
*
|
|
363
|
+
* 模板里的 ref 会被自动解包,所以直接绑到模板上会拿到 null。
|
|
364
|
+
* 请把读取函数交给 useDisclosureHandle,函数里再返回这个句柄。
|
|
274
365
|
*/
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
366
|
+
type DisclosureHandleRef = Ref<DisclosureHandle | null> | ((handle: DisclosureHandle | null) => void);
|
|
367
|
+
/**
|
|
368
|
+
* 把打开、关闭、切换和当前是否打开写到调用方持有的句柄上。
|
|
369
|
+
* 必须传入读取函数。句柄本身常常就是一个 ref,直接交给 Vue 的解包会拿到里面的 null。
|
|
370
|
+
* 句柄换掉时先把旧的清空,组件卸载时也清空。
|
|
371
|
+
*/
|
|
372
|
+
declare function useDisclosureHandle(read: () => DisclosureHandleRef | undefined, handle: DisclosureHandle): void;
|
|
278
373
|
//#endregion
|
|
279
374
|
//#region src/composables/useDismiss.d.ts
|
|
280
375
|
interface UseDismissOptions {
|
|
@@ -288,6 +383,11 @@ interface UseDismissOptions {
|
|
|
288
383
|
enableEscape?: Ref<boolean>;
|
|
289
384
|
/** 关闭回调 */
|
|
290
385
|
onDismiss: () => void;
|
|
386
|
+
/**
|
|
387
|
+
* Escape 单独处理。不传时和点击外部走同一个回调。
|
|
388
|
+
* 菜单钻进子层时,Escape 先退一层,点击外部仍整层关闭。
|
|
389
|
+
*/
|
|
390
|
+
onEscape?: () => void;
|
|
291
391
|
}
|
|
292
392
|
/**
|
|
293
393
|
* 统一处理浮层组件的关闭逻辑:点击外部和按 Escape 键。
|
|
@@ -300,6 +400,27 @@ interface UseDismissOptions {
|
|
|
300
400
|
*/
|
|
301
401
|
declare function useDismiss(options: UseDismissOptions): void;
|
|
302
402
|
//#endregion
|
|
403
|
+
//#region src/composables/useFieldControlState.d.ts
|
|
404
|
+
interface FieldControlStateInput {
|
|
405
|
+
disabled?: MaybeRefOrGetter<boolean | undefined>;
|
|
406
|
+
readOnly?: MaybeRefOrGetter<boolean | undefined>;
|
|
407
|
+
loading?: MaybeRefOrGetter<boolean | undefined>;
|
|
408
|
+
}
|
|
409
|
+
interface FieldControlState {
|
|
410
|
+
/** 禁用优先于只读。禁用时控件变暗,并且不能聚焦到可操作的状态。 */
|
|
411
|
+
isDisabled: ComputedRef<boolean>;
|
|
412
|
+
/** 只读保留当前值、焦点和表单提交,但不打开选择面,也不变暗。 */
|
|
413
|
+
isReadOnly: ComputedRef<boolean>;
|
|
414
|
+
isLoading: ComputedRef<boolean>;
|
|
415
|
+
/** 可以打开选择面或切换选项。 */
|
|
416
|
+
canActivate: ComputedRef<boolean>;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* 选择器和复选列表共用的三种互斥状态。
|
|
420
|
+
* 同时标成禁用和只读时,按禁用处理。
|
|
421
|
+
*/
|
|
422
|
+
declare function useFieldControlState(input: FieldControlStateInput): FieldControlState;
|
|
423
|
+
//#endregion
|
|
303
424
|
//#region src/composables/useFileSelection.d.ts
|
|
304
425
|
interface FileRejection {
|
|
305
426
|
code: 'type' | 'size' | 'count';
|
|
@@ -374,6 +495,11 @@ interface GridRovingFocus {
|
|
|
374
495
|
*/
|
|
375
496
|
declare function useGridRovingFocus(options: UseGridRovingFocusOptions): GridRovingFocus;
|
|
376
497
|
//#endregion
|
|
498
|
+
//#region src/composables/useHandleRef.d.ts
|
|
499
|
+
type HandleRef<T> = Ref<T | null> | ((handle: T | null) => void);
|
|
500
|
+
/** Keeps an imperative handle on a ref or a callback, and clears it when the owner goes away. */
|
|
501
|
+
declare function useHandleRef<T extends object>(read: () => HandleRef<T> | undefined, handle: T): void;
|
|
502
|
+
//#endregion
|
|
377
503
|
//#region src/composables/useHotkeys.d.ts
|
|
378
504
|
/**
|
|
379
505
|
* 一条全局快捷键。
|
|
@@ -407,6 +533,63 @@ interface Hotkey {
|
|
|
407
533
|
*/
|
|
408
534
|
declare function useHotkeys(hotkeys: MaybeRefOrGetter<readonly Hotkey[]>): void;
|
|
409
535
|
//#endregion
|
|
536
|
+
//#region src/composables/useImageMode.d.ts
|
|
537
|
+
interface ImageSampleRegion {
|
|
538
|
+
/** 左边缘,0 是左,1 是右。 */
|
|
539
|
+
x: number;
|
|
540
|
+
/** 上边缘,0 是上,1 是下。 */
|
|
541
|
+
y: number;
|
|
542
|
+
/** 宽度占整张图的比例。 */
|
|
543
|
+
width: number;
|
|
544
|
+
/** 高度占整张图的比例。 */
|
|
545
|
+
height: number;
|
|
546
|
+
}
|
|
547
|
+
interface UseImageModeOptions {
|
|
548
|
+
/** 只采样这一块。不传时用整张图。坐标都是 0 到 1。 */
|
|
549
|
+
region?: ImageSampleRegion;
|
|
550
|
+
/** 低于这个亮度算暗,高于算亮。 */
|
|
551
|
+
threshold?: number;
|
|
552
|
+
/** 还在加载,或者读图失败时返回的值。 */
|
|
553
|
+
fallback?: 'dark' | 'light' | null;
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* APCA 感知亮度。先把 sRGB 按 2.4 线性化,再用接近 BT.709 的系数合成,
|
|
557
|
+
* 最后做 0.56 次方,让 0.5 接近视觉上的中灰。饱和色比简单的伽马亮度更准。
|
|
558
|
+
*/
|
|
559
|
+
declare function perceptualLightness(r: number, g: number, b: number): number;
|
|
560
|
+
/** 一组采样像素的平均亮度,再和阈值比出深浅。 */
|
|
561
|
+
declare function imageModeFromPixels(pixels: Uint8ClampedArray, threshold?: number): 'dark' | 'light';
|
|
562
|
+
/**
|
|
563
|
+
* 按图片亮度判断该用深色还是浅色前景。采样走 OffscreenCanvas,不往页面上画。
|
|
564
|
+
* 跨域或网络失败时返回 `fallback`。
|
|
565
|
+
*/
|
|
566
|
+
declare function useImageMode(src: MaybeRefOrGetter<string | null | undefined>, options?: MaybeRefOrGetter<UseImageModeOptions>): Ref<'dark' | 'light' | null>;
|
|
567
|
+
//#endregion
|
|
568
|
+
//#region src/composables/useKeyboardHint.d.ts
|
|
569
|
+
type KeyboardHintOrientation = 'horizontal' | 'vertical' | 'both';
|
|
570
|
+
interface UseKeyboardHintOptions {
|
|
571
|
+
/** 提示里画哪些方向键。 */
|
|
572
|
+
orientation?: KeyboardHintOrientation;
|
|
573
|
+
/** 出现之后多久自己消失,单位毫秒。 */
|
|
574
|
+
dismissAfterMs?: number;
|
|
575
|
+
/** 为 false 时这个实例不再提示。 */
|
|
576
|
+
isEnabled?: boolean;
|
|
577
|
+
}
|
|
578
|
+
interface UseKeyboardHint {
|
|
579
|
+
visible: Ref<boolean>;
|
|
580
|
+
anchor: Ref<HTMLElement | null>;
|
|
581
|
+
orientation: ComputedRef<KeyboardHintOrientation>;
|
|
582
|
+
onFocus: (event: FocusEvent) => void;
|
|
583
|
+
onBlur: (event: FocusEvent) => void;
|
|
584
|
+
onKeyDown: (event: KeyboardEvent) => void;
|
|
585
|
+
Hint: Component;
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* 一组方向键控件第一次被键盘点进来时,在当前项旁边短暂提示「用方向键移动」。
|
|
589
|
+
* 按过方向键、超时或焦点离开之后不再出现。
|
|
590
|
+
*/
|
|
591
|
+
declare function useKeyboardHint(options?: UseKeyboardHintOptions): UseKeyboardHint;
|
|
592
|
+
//#endregion
|
|
410
593
|
//#region src/composables/useListFocus.d.ts
|
|
411
594
|
/**
|
|
412
595
|
* 一维列表的方向。
|
|
@@ -529,6 +712,37 @@ declare function useLongPress(options: LongPressOptions): LongPressHandlers;
|
|
|
529
712
|
*/
|
|
530
713
|
declare function useMediaQuery(query: string): Ref<boolean>;
|
|
531
714
|
//#endregion
|
|
715
|
+
//#region src/ContextMenu/useMenuPress.d.ts
|
|
716
|
+
/** Forget an armed swallower. Called when a surface unmounts and in tests. */
|
|
717
|
+
declare function resetMenuPress(): void;
|
|
718
|
+
interface MenuPressOptions {
|
|
719
|
+
/** The element carrying `role="menu"` for this level. */
|
|
720
|
+
menuRef: Ref<HTMLElement | null>;
|
|
721
|
+
/** Whether the surface carries the press model right now. */
|
|
722
|
+
isEnabled: () => boolean;
|
|
723
|
+
/** A mouse press that began inside the menu was released outside it. */
|
|
724
|
+
onDismiss: () => void;
|
|
725
|
+
}
|
|
726
|
+
interface MenuPress {
|
|
727
|
+
/** Attach to the menu root's `pointerdown`. */
|
|
728
|
+
onPointerDown: (event: PointerEvent) => void;
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* The press model of a painted menu surface.
|
|
732
|
+
*
|
|
733
|
+
* A finger's pointer events stay with the element it landed on, so the gesture
|
|
734
|
+
* is tracked at the document level by `pointerId`:
|
|
735
|
+
*
|
|
736
|
+
* - The highlight follows the finger.
|
|
737
|
+
* - The row under the RELEASE acts, the way its own click would, carrying the
|
|
738
|
+
* release's modifiers; the browser's own click for that gesture is swallowed
|
|
739
|
+
* so the row never acts twice.
|
|
740
|
+
* - A finger released outside leaves the menu open; a mouse released outside
|
|
741
|
+
* dismisses it.
|
|
742
|
+
* - `pointercancel` and a second pointer end the gesture with nothing acting.
|
|
743
|
+
*/
|
|
744
|
+
declare function useMenuPress(options: MenuPressOptions): MenuPress;
|
|
745
|
+
//#endregion
|
|
532
746
|
//#region src/composables/useMonthGrid.d.ts
|
|
533
747
|
declare function toISODate(date: CalendarDate): string;
|
|
534
748
|
declare function parseISODate(value: string): CalendarDate;
|
|
@@ -662,6 +876,17 @@ declare function computeOverflow(input: ComputeOverflowInput): ComputeOverflowRe
|
|
|
662
876
|
declare function useOverflow(element: Ref<HTMLElement | null>, isActive: Ref<boolean>): Ref<boolean>;
|
|
663
877
|
declare function useOverflow(itemCount: MaybeRefOrGetter<number>, options?: UseOverflowOptions): UseOverflowReturn;
|
|
664
878
|
//#endregion
|
|
879
|
+
//#region src/composables/usePendingChange.d.ts
|
|
880
|
+
interface PendingChange<T> {
|
|
881
|
+
busy: Readonly<Ref<boolean>>;
|
|
882
|
+
run: (value: T) => Promise<void>;
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Runs a change action after the value is already committed.
|
|
886
|
+
* Overlapping calls stay busy until the last one settles.
|
|
887
|
+
*/
|
|
888
|
+
declare function usePendingChange<T>(action: () => ((value: T) => void | Promise<void>) | undefined): PendingChange<T>;
|
|
889
|
+
//#endregion
|
|
665
890
|
//#region src/composables/useRestoreFocus.d.ts
|
|
666
891
|
interface UseRestoreFocusOptions {
|
|
667
892
|
/** 是否启用焦点恢复 */
|
|
@@ -756,30 +981,6 @@ declare function snapToGraphemeBoundary(text: string, offset: number): number;
|
|
|
756
981
|
*/
|
|
757
982
|
declare function useStreamingText(targetText: MaybeRefOrGetter<string>, isStreaming?: MaybeRefOrGetter<boolean>, options?: MaybeRefOrGetter<UseStreamingTextOptions>): ComputedRef<string>;
|
|
758
983
|
//#endregion
|
|
759
|
-
//#region src/composables/useTimeValue.d.ts
|
|
760
|
-
type HourFormat = '12h' | '24h';
|
|
761
|
-
type ISOTimeString = string;
|
|
762
|
-
interface ParsedTime {
|
|
763
|
-
hours: number;
|
|
764
|
-
minutes: number;
|
|
765
|
-
seconds: number;
|
|
766
|
-
}
|
|
767
|
-
declare function parseISOTime(value: string): ParsedTime | null;
|
|
768
|
-
declare function formatISOTime(time: ParsedTime, hasSeconds: boolean): ISOTimeString;
|
|
769
|
-
declare function formatDisplayTime(value: string, hourFormat: HourFormat, hasSeconds: boolean): string;
|
|
770
|
-
declare function parseDisplayTime(text: string, hasSeconds: boolean): ISOTimeString | null;
|
|
771
|
-
declare function shiftTime(value: string, minuteDelta: number, hasSeconds: boolean): ISOTimeString;
|
|
772
|
-
declare function isTimeInRange(value: string, min?: string, max?: string): boolean;
|
|
773
|
-
type TimePresentation = 'text-input' | 'popover' | 'bottom-sheet' | 'native' | 'adaptive-bottom-sheet' | 'adaptive-native';
|
|
774
|
-
type NativePicker = 'touch' | 'always' | 'never';
|
|
775
|
-
declare function resolveTimeSurface(options: {
|
|
776
|
-
presentation?: TimePresentation;
|
|
777
|
-
nativePicker?: NativePicker;
|
|
778
|
-
coarse: boolean;
|
|
779
|
-
hasSeconds: boolean;
|
|
780
|
-
increment: number;
|
|
781
|
-
}): 'text' | 'native';
|
|
782
|
-
//#endregion
|
|
783
984
|
//#region src/composables/useTypeahead.d.ts
|
|
784
985
|
interface UseTypeaheadOptions {
|
|
785
986
|
/** 当前 DOM 顺序上的标签。某一项可以是 null,表示这个下标不能匹配。 */
|
|
@@ -812,4 +1013,4 @@ interface UseTypeaheadReturn {
|
|
|
812
1013
|
*/
|
|
813
1014
|
declare function useTypeahead(options: UseTypeaheadOptions): UseTypeaheadReturn;
|
|
814
1015
|
//#endregion
|
|
815
|
-
export {
|
|
1016
|
+
export { UseKeyboardHint as $, useContainerReveal as $t, computeOverflow as A, isRangeWithinSpan as An, DatePresentation as At, MenuPress as B, formatISOTime as Bt, useRestoreFocus as C, ISODateRange as Cn, FieldControlStateInput as Ct, ComputeOverflowResult as D, compareISODate as Dn, DisclosureHandle as Dt, ComputeOverflowInput as E, applyRangeClick as En, useDismiss as Et, addMonths as F, ISOTimeString as Ft, LongPressHandlers as G, shiftTime as Gt, resetMenuPress as H, parseDisplayTime as Ht, buildMonthGrid as I, NativePicker as It, ListFocus as J, useControllableState as Jt, LongPressOptions as K, ControllableState as Kt, parseISODate as L, ParsedTime as Lt, NumberField as M, orderRange as Mn, resolveDatePresentation as Mt, UseNumberFieldOptions as N, resolveWeekStart as Nn, resolveDateSurface as Nt, UseOverflowOptions as O, formatDateRange as On, DisclosureHandleRef as Ot, useNumberField as P, spanDays as Pn, HourFormat as Pt, KeyboardHintOrientation as Q, UseContainerRevealOptions as Qt, toISODate as R, TimePresentation as Rt, UseRestoreFocusOptions as S, useAnnounce as Sn, FieldControlState as St, usePendingChange as T, WeekStartsOn as Tn, UseDismissOptions as Tt, useMenuPress as U, parseISOTime as Ut, MenuPressOptions as V, isTimeInRange as Vt, useMediaQuery as W, resolveTimeSurface as Wt, UseListFocusOptions as X, ContentRevealOptions as Xt, ListFocusOrientation as Y, ContainerRevealOptions as Yt, useListFocus as Z, UseContainerReveal as Zt, ScrollableAreaState as _, AppShellMobile as _n, FileRejection as _t, UseStreamingTextOptions as a, ClickableContainerHandlers as an, perceptualLightness as at, useScrollableArea as b, AnnounceFn as bn, formatFileSize as bt, ScrollOverflowState as c, useClickableContainer as cn, useHotkeys as ct, useScrollLock as d, UseChatStreamScrollReturn as dn, GridRovingFocus as dt, Combobox as en, UseKeyboardHintOptions as et, ScrollAxis as f, useChatStreamScroll as fn, UseGridRovingFocusOptions as ft, ScrollStickyContainment as g, useChatNewMessages as gn, useFocusTrap as gt, ScrollRole as h, UseChatNewMessagesReturn as hn, UseFocusTrapOptions as ht, StreamingTextSpeed as i, useCoarsePointer as in, imageModeFromPixels as it, useOverflow as j, isSameRange as jn, DateSurface as jt, UseOverflowReturn as k, isDayOutsideSpan as kn, useDisclosureHandle as kt, UseScrollOverflowResult as l, ChatScrollToBottomOptions as ln, HandleRef as lt, ScrollOverscroll as m, UseChatNewMessagesOptions as mn, FocusTrap as mt, UseTypeaheadReturn as n, UseComboboxOptions as nn, ImageSampleRegion as nt, snapToGraphemeBoundary as o, INTERACTIVE_SELECTORS as on, useImageMode as ot, ScrollAxisState as p, CHAT_MESSAGE_CLASS as pn, useGridRovingFocus as pt, useLongPress as q, UseControllableStateOptions as qt, useTypeahead as r, useCombobox as rn, UseImageModeOptions as rt, useStreamingText as s, UseClickableContainerOptions as sn, Hotkey as st, UseTypeaheadOptions as t, ComboboxOption as tn, useKeyboardHint as tt, useScrollOverflow as u, UseChatStreamScrollOptions as un, useHandleRef as ut, UseScrollableAreaOptions as v, appShellMobileKey as vn, FileSelectionOptions as vt, PendingChange as w, RangeClickResult as wn, useFieldControlState as wt, RestoreFocus as x, AnnouncePoliteness as xn, selectFiles as xt, UseScrollableAreaResult as y, useAppShellMobile as yn, FileSelectionResult as yt, todayISODate as z, formatDisplayTime as zt };
|
|
@@ -1,9 +1,94 @@
|
|
|
1
1
|
import { Component, PropType, VNode, VNodeChild } from "vue";
|
|
2
|
+
//#region src/Markdown/ast.d.ts
|
|
3
|
+
interface MdPoint {
|
|
4
|
+
offset?: number | null;
|
|
5
|
+
line?: number;
|
|
6
|
+
column?: number;
|
|
7
|
+
}
|
|
8
|
+
interface MdPosition {
|
|
9
|
+
start?: MdPoint;
|
|
10
|
+
end?: MdPoint;
|
|
11
|
+
}
|
|
12
|
+
interface MdNode {
|
|
13
|
+
type: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
children?: MdNode[];
|
|
16
|
+
depth?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
17
|
+
ordered?: boolean;
|
|
18
|
+
start?: number | null;
|
|
19
|
+
spread?: boolean | null;
|
|
20
|
+
checked?: boolean | null;
|
|
21
|
+
lang?: string | null;
|
|
22
|
+
url?: string;
|
|
23
|
+
alt?: string | null;
|
|
24
|
+
title?: string | null;
|
|
25
|
+
align?: Array<'left' | 'right' | 'center' | null> | null;
|
|
26
|
+
identifier?: string;
|
|
27
|
+
label?: string | null;
|
|
28
|
+
/** Parser offsets. Used to tell a bare autolink from an explicit link. */
|
|
29
|
+
position?: MdPosition;
|
|
30
|
+
/**
|
|
31
|
+
* Set on `type: 'extension'` nodes a plugin inserts.
|
|
32
|
+
* `plugin` matches `MarkdownPlugin.name` or `MarkdownInlinePlugin.name`.
|
|
33
|
+
*/
|
|
34
|
+
plugin?: string;
|
|
35
|
+
/** Name of an extension node within its plugin. */
|
|
36
|
+
name?: string;
|
|
37
|
+
/** `block` extension nodes are rendered as their own block. */
|
|
38
|
+
display?: 'inline' | 'block';
|
|
39
|
+
/** Extra fields a plugin wants the renderer to read. Keep values plain. */
|
|
40
|
+
data?: Readonly<Record<string, string | number | boolean | null>>;
|
|
41
|
+
}
|
|
42
|
+
declare function isMarkdownExtensionNode(node: MdNode, plugin?: string, name?: string): node is MdNode & {
|
|
43
|
+
type: 'extension';
|
|
44
|
+
plugin: string;
|
|
45
|
+
name: string;
|
|
46
|
+
};
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/Markdown/plugins.d.ts
|
|
49
|
+
interface MarkdownTransformContext {
|
|
50
|
+
/** Record a problem. The document still renders. */
|
|
51
|
+
report: (message: string) => void;
|
|
52
|
+
}
|
|
53
|
+
interface MarkdownPluginRenderContext {
|
|
54
|
+
/** Render this node's children with the normal Markdown renderers. */
|
|
55
|
+
renderChildren: () => VNodeChild[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* A document plugin. `transform` receives the parsed root and returns the next
|
|
59
|
+
* root. Return the same root when nothing changed so a streaming render can
|
|
60
|
+
* reuse settled blocks. `render` draws `extension` nodes whose `plugin` equals
|
|
61
|
+
* `name`.
|
|
62
|
+
*/
|
|
63
|
+
interface MarkdownPlugin {
|
|
64
|
+
name: string;
|
|
65
|
+
transform?: (root: MdNode, context: MarkdownTransformContext) => MdNode;
|
|
66
|
+
render?: (node: MdNode, context: MarkdownPluginRenderContext) => VNodeChild | null;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* A text-node plugin. `pattern` needs the `g` flag. Matches inside inline
|
|
70
|
+
* code and fenced code never run, because those nodes are not text.
|
|
71
|
+
* `replace` returns the node for the match, or `null` to skip it.
|
|
72
|
+
* `render` draws an extension node whose `plugin` equals `name`.
|
|
73
|
+
*/
|
|
74
|
+
interface MarkdownInlinePlugin {
|
|
75
|
+
name?: string;
|
|
76
|
+
pattern: RegExp;
|
|
77
|
+
getEndIndex?: (text: string, match: RegExpMatchArray) => number | false;
|
|
78
|
+
replace: (match: RegExpMatchArray) => MdNode | null;
|
|
79
|
+
render?: (node: MdNode, context: MarkdownPluginRenderContext) => VNodeChild | null;
|
|
80
|
+
}
|
|
81
|
+
declare function defineMarkdownPlugin<Plugin extends MarkdownPlugin>(plugin: Plugin): Plugin;
|
|
82
|
+
declare function applyMarkdownPlugins(root: MdNode, plugins?: readonly MarkdownPlugin[]): MdNode;
|
|
83
|
+
declare function applyInlinePlugins(root: MdNode, plugins?: readonly MarkdownInlinePlugin[]): MdNode;
|
|
84
|
+
//#endregion
|
|
2
85
|
//#region src/Markdown/types.d.ts
|
|
3
86
|
type MarkdownDisplay = 'block' | 'inline';
|
|
4
87
|
type MarkdownDensity = 'default' | 'compact';
|
|
5
88
|
type MarkdownAlign = 'start' | 'center';
|
|
6
89
|
type MarkdownHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
90
|
+
type MarkdownAutolink = 'gfm';
|
|
91
|
+
type MarkdownCitationStyle = 'label' | 'number';
|
|
7
92
|
interface MarkdownHeadingProps {
|
|
8
93
|
level: MarkdownHeadingLevel;
|
|
9
94
|
id: string;
|
|
@@ -98,9 +183,29 @@ interface MarkdownProps {
|
|
|
98
183
|
* Called when a link is activated. Return `false` to cancel navigation.
|
|
99
184
|
*/
|
|
100
185
|
onLinkClick?: (href: string, event: MouseEvent) => void | false;
|
|
186
|
+
/**
|
|
187
|
+
* Document plugins. Each one may replace the parsed tree and draw the
|
|
188
|
+
* extension nodes it owns. An empty list leaves the document unchanged.
|
|
189
|
+
*/
|
|
190
|
+
plugins?: readonly MarkdownPlugin[];
|
|
191
|
+
/**
|
|
192
|
+
* Patterns matched against text nodes, in order. The first match at a
|
|
193
|
+
* position wins. Inline code and fenced code are left alone.
|
|
194
|
+
*/
|
|
195
|
+
inlinePlugins?: readonly MarkdownInlinePlugin[];
|
|
196
|
+
/**
|
|
197
|
+
* `'gfm'` links bare `https://` URLs, `www.` hosts, and emails.
|
|
198
|
+
* Omit it and those stay text. `<https://…>` and `<email>` stay links.
|
|
199
|
+
*/
|
|
200
|
+
autolink?: MarkdownAutolink;
|
|
201
|
+
/**
|
|
202
|
+
* `label` is a chip with the source title. `number` is a compact badge.
|
|
203
|
+
* @default 'label'
|
|
204
|
+
*/
|
|
205
|
+
citationStyle?: MarkdownCitationStyle;
|
|
101
206
|
/**
|
|
102
207
|
* Citation sources keyed by id. `[id]` and `【id】` that match a key render
|
|
103
|
-
* as a
|
|
208
|
+
* as a citation chip instead of literal text.
|
|
104
209
|
*/
|
|
105
210
|
sources?: Record<string, MarkdownSource>;
|
|
106
211
|
}
|
|
@@ -147,6 +252,22 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
147
252
|
type: PropType<MarkdownProps["onLinkClick"]>;
|
|
148
253
|
default: undefined;
|
|
149
254
|
};
|
|
255
|
+
plugins: {
|
|
256
|
+
type: PropType<MarkdownProps["plugins"]>;
|
|
257
|
+
default: undefined;
|
|
258
|
+
};
|
|
259
|
+
inlinePlugins: {
|
|
260
|
+
type: PropType<MarkdownProps["inlinePlugins"]>;
|
|
261
|
+
default: undefined;
|
|
262
|
+
};
|
|
263
|
+
autolink: {
|
|
264
|
+
type: PropType<MarkdownProps["autolink"]>;
|
|
265
|
+
default: undefined;
|
|
266
|
+
};
|
|
267
|
+
citationStyle: {
|
|
268
|
+
type: PropType<MarkdownProps["citationStyle"]>;
|
|
269
|
+
default: string;
|
|
270
|
+
};
|
|
150
271
|
sources: {
|
|
151
272
|
type: PropType<MarkdownProps["sources"]>;
|
|
152
273
|
default: undefined;
|
|
@@ -190,44 +311,52 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
190
311
|
type: PropType<MarkdownProps["onLinkClick"]>;
|
|
191
312
|
default: undefined;
|
|
192
313
|
};
|
|
314
|
+
plugins: {
|
|
315
|
+
type: PropType<MarkdownProps["plugins"]>;
|
|
316
|
+
default: undefined;
|
|
317
|
+
};
|
|
318
|
+
inlinePlugins: {
|
|
319
|
+
type: PropType<MarkdownProps["inlinePlugins"]>;
|
|
320
|
+
default: undefined;
|
|
321
|
+
};
|
|
322
|
+
autolink: {
|
|
323
|
+
type: PropType<MarkdownProps["autolink"]>;
|
|
324
|
+
default: undefined;
|
|
325
|
+
};
|
|
326
|
+
citationStyle: {
|
|
327
|
+
type: PropType<MarkdownProps["citationStyle"]>;
|
|
328
|
+
default: string;
|
|
329
|
+
};
|
|
193
330
|
sources: {
|
|
194
331
|
type: PropType<MarkdownProps["sources"]>;
|
|
195
332
|
default: undefined;
|
|
196
333
|
};
|
|
197
334
|
}>> & Readonly<{}>, {
|
|
198
335
|
density: MarkdownDensity | undefined;
|
|
199
|
-
display: MarkdownDisplay | undefined;
|
|
200
336
|
content: string;
|
|
201
|
-
|
|
337
|
+
display: MarkdownDisplay | undefined;
|
|
202
338
|
contentWidth: string | number | undefined;
|
|
339
|
+
contentAlign: MarkdownAlign | undefined;
|
|
203
340
|
components: MarkdownComponents | undefined;
|
|
204
341
|
headingLevelStart: MarkdownHeadingLevel | undefined;
|
|
205
342
|
onLinkClick: ((href: string, event: MouseEvent) => void | false) | undefined;
|
|
343
|
+
plugins: readonly MarkdownPlugin[] | undefined;
|
|
344
|
+
inlinePlugins: readonly MarkdownInlinePlugin[] | undefined;
|
|
345
|
+
autolink: "gfm" | undefined;
|
|
346
|
+
citationStyle: MarkdownCitationStyle | undefined;
|
|
206
347
|
sources: Record<string, MarkdownSource> | undefined;
|
|
207
348
|
isStreaming: boolean;
|
|
208
349
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
209
350
|
//#endregion
|
|
210
|
-
//#region src/Markdown/ast.d.ts
|
|
211
|
-
interface MdNode {
|
|
212
|
-
type: string;
|
|
213
|
-
value?: string;
|
|
214
|
-
children?: MdNode[];
|
|
215
|
-
depth?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
216
|
-
ordered?: boolean;
|
|
217
|
-
start?: number | null;
|
|
218
|
-
spread?: boolean | null;
|
|
219
|
-
checked?: boolean | null;
|
|
220
|
-
lang?: string | null;
|
|
221
|
-
url?: string;
|
|
222
|
-
alt?: string | null;
|
|
223
|
-
title?: string | null;
|
|
224
|
-
align?: Array<'left' | 'right' | 'center' | null> | null;
|
|
225
|
-
identifier?: string;
|
|
226
|
-
label?: string | null;
|
|
227
|
-
}
|
|
228
|
-
//#endregion
|
|
229
351
|
//#region src/Markdown/parse.d.ts
|
|
230
|
-
|
|
352
|
+
interface ParseMarkdownOptions {
|
|
353
|
+
/**
|
|
354
|
+
* `'gfm'` keeps GitHub-style bare URLs, `www.` hosts, and emails as links.
|
|
355
|
+
* Omit it and those stay text. Angle-bracket autolinks stay either way.
|
|
356
|
+
*/
|
|
357
|
+
autolink?: 'gfm';
|
|
358
|
+
}
|
|
359
|
+
declare function parseMarkdown(source: string, options?: ParseMarkdownOptions): MdNode;
|
|
231
360
|
//#endregion
|
|
232
361
|
//#region src/Markdown/slug.d.ts
|
|
233
362
|
/** URL slug for a heading. Letters and numbers from any language are kept. */
|
|
@@ -238,4 +367,4 @@ declare function slugify(value: string): string;
|
|
|
238
367
|
*/
|
|
239
368
|
declare function uniqueSlug(baseSlug: string, counts: Map<string, number>): string;
|
|
240
369
|
//#endregion
|
|
241
|
-
export {
|
|
370
|
+
export { MarkdownPlugin as C, applyMarkdownPlugins as D, applyInlinePlugins as E, defineMarkdownPlugin as O, MarkdownInlinePlugin as S, MarkdownTransformContext as T, MarkdownLinkProps as _, _default as a, MarkdownSlots as b, MarkdownCitationStyle as c, MarkdownDensity as d, MarkdownDisplay as f, MarkdownInlineCodeProps as g, MarkdownImageProps as h, parseMarkdown as i, isMarkdownExtensionNode as k, MarkdownCodeProps as l, MarkdownHeadingProps as m, uniqueSlug as n, MarkdownAlign as o, MarkdownHeadingLevel as p, ParseMarkdownOptions as r, MarkdownAutolink as s, slugify as t, MarkdownComponents as u, MarkdownListProps as v, MarkdownPluginRenderContext as w, MarkdownSource as x, MarkdownProps as y };
|