@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
|
@@ -0,0 +1,656 @@
|
|
|
1
|
+
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
|
+
import { t as useAnnounce } from "./announce-Cnio10Wk.js";
|
|
3
|
+
import { c as resolveWeekStart } from "./useDateRange-CIXoE_8k.js";
|
|
4
|
+
import { t as useHandleRef } from "./useHandleRef-6cdKugm8.js";
|
|
5
|
+
import { a as useAstryxLocale, o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
6
|
+
import { a as weekdayNames, i as standaloneShortWeekdayNames, r as formatCalendarMonth } from "./locale-sLw5Caia.js";
|
|
7
|
+
import { t as _sfc_main$2 } from "./Icon-bteSId7T.js";
|
|
8
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, openBlock, renderList, renderSlot, shallowRef, toDisplayString, unref, useTemplateRef, watch, withCtx } from "vue";
|
|
9
|
+
import { CalendarDate } from "@internationalized/date";
|
|
10
|
+
import "../styles/calendar.css";
|
|
11
|
+
//#region src/Calendar/calendarDate.ts
|
|
12
|
+
function toCalendarDate(date) {
|
|
13
|
+
return new CalendarDate(date.getFullYear(), date.getMonth() + 1, date.getDate());
|
|
14
|
+
}
|
|
15
|
+
function fromCalendarDate(date) {
|
|
16
|
+
return new Date(date.year, date.month - 1, date.day);
|
|
17
|
+
}
|
|
18
|
+
function calendarISO(date) {
|
|
19
|
+
const month = String(date.month).padStart(2, "0");
|
|
20
|
+
const day = String(date.day).padStart(2, "0");
|
|
21
|
+
return `${date.year}-${month}-${day}`;
|
|
22
|
+
}
|
|
23
|
+
function dateISO(date) {
|
|
24
|
+
return calendarISO(toCalendarDate(date));
|
|
25
|
+
}
|
|
26
|
+
function sameCalendarDay(a, b) {
|
|
27
|
+
return a.compare(b) === 0;
|
|
28
|
+
}
|
|
29
|
+
function calendarDiffDays(a, b) {
|
|
30
|
+
const start = Date.UTC(a.year, a.month - 1, a.day);
|
|
31
|
+
const end = Date.UTC(b.year, b.month - 1, b.day);
|
|
32
|
+
return Math.round((end - start) / 864e5);
|
|
33
|
+
}
|
|
34
|
+
function monthIndex(date) {
|
|
35
|
+
return date.year * 12 + date.month;
|
|
36
|
+
}
|
|
37
|
+
function shiftMonth(date, amount) {
|
|
38
|
+
return new CalendarDate(date.year, date.month, 1).add({ months: amount });
|
|
39
|
+
}
|
|
40
|
+
function weekdayIndex(date) {
|
|
41
|
+
return date.toDate("UTC").getUTCDay();
|
|
42
|
+
}
|
|
43
|
+
function weekStartIndex(value) {
|
|
44
|
+
return resolveWeekStart(value);
|
|
45
|
+
}
|
|
46
|
+
/** ISO week number. The Thursday of the week decides the year. */
|
|
47
|
+
function isoWeekNumber(date) {
|
|
48
|
+
const utc = new Date(Date.UTC(date.year, date.month - 1, date.day));
|
|
49
|
+
const day = utc.getUTCDay() || 7;
|
|
50
|
+
utc.setUTCDate(utc.getUTCDate() + 4 - day);
|
|
51
|
+
const yearStart = Date.UTC(utc.getUTCFullYear(), 0, 1);
|
|
52
|
+
return Math.ceil(((utc.getTime() - yearStart) / 864e5 + 1) / 7);
|
|
53
|
+
}
|
|
54
|
+
function weekFieldName(locale) {
|
|
55
|
+
try {
|
|
56
|
+
const name = new Intl.DisplayNames(locale, { type: "dateTimeField" }).of("weekOfYear");
|
|
57
|
+
if (name) return name;
|
|
58
|
+
} catch {}
|
|
59
|
+
return locale.startsWith("zh") ? "周" : "week";
|
|
60
|
+
}
|
|
61
|
+
function formatWeekdayDate(date, locale) {
|
|
62
|
+
return new Intl.DateTimeFormat(locale, {
|
|
63
|
+
weekday: "long",
|
|
64
|
+
year: "numeric",
|
|
65
|
+
month: "long",
|
|
66
|
+
day: "numeric"
|
|
67
|
+
}).format(fromCalendarDate(date));
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The month the calendar opens on. An explicit focus date wins, then the
|
|
71
|
+
* selection. Otherwise today is clamped into the min/max window so the first
|
|
72
|
+
* paint is not an all-disabled month.
|
|
73
|
+
*/
|
|
74
|
+
function initialCalendarFocus(options) {
|
|
75
|
+
if (options.focusDate) return toCalendarDate(options.focusDate);
|
|
76
|
+
if (options.selected) return toCalendarDate(options.selected);
|
|
77
|
+
if (options.rangeStart) return toCalendarDate(options.rangeStart);
|
|
78
|
+
const today = options.today ? toCalendarDate(options.today) : toCalendarDate(/* @__PURE__ */ new Date());
|
|
79
|
+
const min = options.min ? toCalendarDate(options.min) : null;
|
|
80
|
+
const max = options.max ? toCalendarDate(options.max) : null;
|
|
81
|
+
if (min && today.compare(min) < 0) return min;
|
|
82
|
+
if (max && today.compare(max) > 0) {
|
|
83
|
+
const shifted = shiftMonth(max, -Math.max(0, options.numberOfMonths - 1));
|
|
84
|
+
if (min && shifted.compare(new CalendarDate(min.year, min.month, 1)) < 0) return min;
|
|
85
|
+
return shifted;
|
|
86
|
+
}
|
|
87
|
+
return today;
|
|
88
|
+
}
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/Calendar/useCalendarConstraints.ts
|
|
91
|
+
/**
|
|
92
|
+
* Bounds, custom constraints, and an in-progress range span.
|
|
93
|
+
* Span counts both endpoints, so a max of 7 reaches six days either side of the anchor.
|
|
94
|
+
* The anchor itself stays enabled so the start can be moved or cancelled.
|
|
95
|
+
*/
|
|
96
|
+
function isCalendarDateDisabled(date, input) {
|
|
97
|
+
const min = input.min ? toCalendarDate(input.min) : null;
|
|
98
|
+
const max = input.max ? toCalendarDate(input.max) : null;
|
|
99
|
+
if (min && date.compare(min) < 0) return true;
|
|
100
|
+
if (max && date.compare(max) > 0) return true;
|
|
101
|
+
const anchor = input.rangeAnchor;
|
|
102
|
+
if (anchor) {
|
|
103
|
+
const distance = Math.abs(calendarDiffDays(anchor, date));
|
|
104
|
+
if (input.maxRangeSpan != null && distance > input.maxRangeSpan - 1) return true;
|
|
105
|
+
if (input.minRangeSpan != null && distance > 0 && distance < input.minRangeSpan - 1) return true;
|
|
106
|
+
}
|
|
107
|
+
const jsDate = fromCalendarDate(date);
|
|
108
|
+
if (input.isDateDisabled?.(jsDate)) return true;
|
|
109
|
+
if (input.dateConstraints?.some((constraint) => !constraint(jsDate))) return true;
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
function isOutsideCalendarBounds(date, min, max) {
|
|
113
|
+
const earliest = min ? toCalendarDate(min) : null;
|
|
114
|
+
const latest = max ? toCalendarDate(max) : null;
|
|
115
|
+
if (earliest && date.compare(earliest) < 0) return true;
|
|
116
|
+
if (latest && date.compare(latest) > 0) return true;
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region src/Calendar/useCalendarGrid.ts
|
|
121
|
+
function buildCalendarWeeks(year, month, weekStartsOn = 0, variableRows = false) {
|
|
122
|
+
const first = new CalendarDate(year, month, 1);
|
|
123
|
+
const offset = (weekdayIndex(first) - weekStartsOn + 7) % 7;
|
|
124
|
+
const daysInMonth = first.add({ months: 1 }).subtract({ days: 1 }).day;
|
|
125
|
+
const rows = variableRows ? Math.ceil((daysInMonth + offset) / 7) : 6;
|
|
126
|
+
let cursor = first.subtract({ days: offset });
|
|
127
|
+
const weeks = [];
|
|
128
|
+
for (let row = 0; row < rows; row += 1) {
|
|
129
|
+
const days = [];
|
|
130
|
+
for (let column = 0; column < 7; column += 1) {
|
|
131
|
+
days.push({
|
|
132
|
+
date: cursor,
|
|
133
|
+
iso: calendarISO(cursor),
|
|
134
|
+
outside: cursor.month !== month || cursor.year !== year,
|
|
135
|
+
day: cursor.day
|
|
136
|
+
});
|
|
137
|
+
cursor = cursor.add({ days: 1 });
|
|
138
|
+
}
|
|
139
|
+
const anchor = days.find((day) => !day.outside)?.date ?? days[0].date;
|
|
140
|
+
weeks.push({
|
|
141
|
+
number: isoWeekNumber(anchor),
|
|
142
|
+
days
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
return weeks;
|
|
146
|
+
}
|
|
147
|
+
function firstEnabledDay(year, month, isDisabled) {
|
|
148
|
+
const total = new CalendarDate(year, month, 1).add({ months: 1 }).subtract({ days: 1 }).day;
|
|
149
|
+
for (let day = 1; day <= total; day += 1) {
|
|
150
|
+
const date = new CalendarDate(year, month, day);
|
|
151
|
+
if (!isDisabled(date)) return date;
|
|
152
|
+
}
|
|
153
|
+
return null;
|
|
154
|
+
}
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/Calendar/useCalendarKeyboard.ts
|
|
157
|
+
function startOfWeek(date, weekStartsOn) {
|
|
158
|
+
const delta = (weekdayIndex(date) - weekStartsOn + 7) % 7;
|
|
159
|
+
return date.subtract({ days: delta });
|
|
160
|
+
}
|
|
161
|
+
function viewFor(target, input) {
|
|
162
|
+
const targetMonth = monthIndex(target);
|
|
163
|
+
const first = input.viewYear * 12 + input.viewMonth;
|
|
164
|
+
const last = first + input.numberOfMonths - 1;
|
|
165
|
+
if (targetMonth >= first && targetMonth <= last) return void 0;
|
|
166
|
+
if (targetMonth < first) return new CalendarDate(target.year, target.month, 1);
|
|
167
|
+
return shiftMonth({
|
|
168
|
+
year: target.year,
|
|
169
|
+
month: target.month
|
|
170
|
+
}, -(input.numberOfMonths - 1));
|
|
171
|
+
}
|
|
172
|
+
function walk(focused, step, input) {
|
|
173
|
+
let candidate = focused.add({ days: step });
|
|
174
|
+
while (Math.abs(calendarDiffDays(focused, candidate)) <= 366) {
|
|
175
|
+
if (input.isOutOfBounds(candidate)) return null;
|
|
176
|
+
if (!input.isDisabled(candidate)) return candidate;
|
|
177
|
+
candidate = candidate.add({ days: step });
|
|
178
|
+
}
|
|
179
|
+
return null;
|
|
180
|
+
}
|
|
181
|
+
function page(focused, delta, input) {
|
|
182
|
+
const candidate = focused.add({ months: delta });
|
|
183
|
+
if (input.isOutOfBounds(candidate)) return null;
|
|
184
|
+
if (!input.isDisabled(candidate)) return candidate;
|
|
185
|
+
return firstEnabledDay(candidate.year, candidate.month, (date) => input.isDisabled(date) || input.isOutOfBounds(date));
|
|
186
|
+
}
|
|
187
|
+
function weekEdge(focused, edge, input) {
|
|
188
|
+
const start = startOfWeek(focused, input.weekStartsOn);
|
|
189
|
+
const days = Array.from({ length: 7 }, (_, index) => start.add({ days: index })).filter((date) => date.year === focused.year && date.month === focused.month).filter((date) => !input.isDisabled(date) && !input.isOutOfBounds(date));
|
|
190
|
+
if (days.length === 0) return null;
|
|
191
|
+
return edge === "home" ? days[0] : days[days.length - 1];
|
|
192
|
+
}
|
|
193
|
+
/** Where an arrow, Home, End, or Page key should land. Null means the focus stays put. */
|
|
194
|
+
function resolveCalendarKey(input) {
|
|
195
|
+
const { key, focused } = input;
|
|
196
|
+
let target = null;
|
|
197
|
+
if (key === "Home" || key === "End") target = weekEdge(focused, key === "Home" ? "home" : "end", input);
|
|
198
|
+
else if (key === "PageUp" || key === "PageDown") target = page(focused, key === "PageDown" ? 1 : -1, input);
|
|
199
|
+
else if (key === "ArrowLeft" || key === "ArrowRight" || key === "ArrowUp" || key === "ArrowDown") {
|
|
200
|
+
const horizontal = key === "ArrowLeft" || key === "ArrowRight";
|
|
201
|
+
let direction = key === "ArrowRight" || key === "ArrowDown" ? 1 : -1;
|
|
202
|
+
if (input.rtl && horizontal) direction = -direction;
|
|
203
|
+
target = walk(focused, horizontal ? direction : direction * 7, input);
|
|
204
|
+
} else return null;
|
|
205
|
+
if (!target || target.compare(focused) === 0) return null;
|
|
206
|
+
return {
|
|
207
|
+
date: target,
|
|
208
|
+
view: viewFor(target, input)
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region src/Calendar/Calendar.vue
|
|
213
|
+
const _hoisted_1 = [
|
|
214
|
+
"data-months",
|
|
215
|
+
"data-mode",
|
|
216
|
+
"data-week-numbers",
|
|
217
|
+
"aria-label"
|
|
218
|
+
];
|
|
219
|
+
const _hoisted_2 = { class: "astryx-calendar-header" };
|
|
220
|
+
const _hoisted_3 = ["disabled", "aria-label"];
|
|
221
|
+
const _hoisted_4 = { class: "astryx-calendar-month-year" };
|
|
222
|
+
const _hoisted_5 = ["disabled", "aria-label"];
|
|
223
|
+
const _hoisted_6 = { class: "astryx-calendar-months" };
|
|
224
|
+
const _hoisted_7 = [
|
|
225
|
+
"aria-label",
|
|
226
|
+
"aria-multiselectable",
|
|
227
|
+
"data-week-numbers"
|
|
228
|
+
];
|
|
229
|
+
const _hoisted_8 = {
|
|
230
|
+
class: "astryx-calendar-weekdays",
|
|
231
|
+
role: "row"
|
|
232
|
+
};
|
|
233
|
+
const _hoisted_9 = {
|
|
234
|
+
key: 0,
|
|
235
|
+
class: "astryx-calendar-weekday",
|
|
236
|
+
role: "columnheader"
|
|
237
|
+
};
|
|
238
|
+
const _hoisted_10 = ["aria-label"];
|
|
239
|
+
const _hoisted_11 = {
|
|
240
|
+
key: 0,
|
|
241
|
+
class: "astryx-calendar-week-number",
|
|
242
|
+
role: "rowheader"
|
|
243
|
+
};
|
|
244
|
+
const _hoisted_12 = ["aria-selected"];
|
|
245
|
+
const _hoisted_13 = [
|
|
246
|
+
"data-date",
|
|
247
|
+
"tabindex",
|
|
248
|
+
"aria-disabled",
|
|
249
|
+
"aria-current",
|
|
250
|
+
"aria-label",
|
|
251
|
+
"onClick",
|
|
252
|
+
"onMouseenter",
|
|
253
|
+
"onFocus"
|
|
254
|
+
];
|
|
255
|
+
const _hoisted_14 = { class: "astryx-calendar-day" };
|
|
256
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
257
|
+
name: "AstryxCalendar",
|
|
258
|
+
__name: "Calendar",
|
|
259
|
+
props: {
|
|
260
|
+
modelValue: { default: null },
|
|
261
|
+
mode: { default: "single" },
|
|
262
|
+
range: { default: null },
|
|
263
|
+
numberOfMonths: { default: 1 },
|
|
264
|
+
focusDate: {},
|
|
265
|
+
min: {},
|
|
266
|
+
max: {},
|
|
267
|
+
isDateDisabled: {},
|
|
268
|
+
dateConstraints: {},
|
|
269
|
+
minRangeSpan: { default: 1 },
|
|
270
|
+
maxRangeSpan: {},
|
|
271
|
+
hasOutsideDays: {
|
|
272
|
+
type: Boolean,
|
|
273
|
+
default: true
|
|
274
|
+
},
|
|
275
|
+
hasWeekNumbers: {
|
|
276
|
+
type: Boolean,
|
|
277
|
+
default: false
|
|
278
|
+
},
|
|
279
|
+
hasVariableRowCount: {
|
|
280
|
+
type: Boolean,
|
|
281
|
+
default: false
|
|
282
|
+
},
|
|
283
|
+
weekStartsOn: { default: 0 },
|
|
284
|
+
handleRef: {},
|
|
285
|
+
label: {},
|
|
286
|
+
disabled: {
|
|
287
|
+
type: Boolean,
|
|
288
|
+
default: false
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
emits: [
|
|
292
|
+
"update:modelValue",
|
|
293
|
+
"update:range",
|
|
294
|
+
"update:focusDate",
|
|
295
|
+
"change"
|
|
296
|
+
],
|
|
297
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
298
|
+
const props = __props;
|
|
299
|
+
const emit = __emit;
|
|
300
|
+
const locale = useAstryxLocale();
|
|
301
|
+
const messages = useAstryxMessages();
|
|
302
|
+
const announce = useAnnounce();
|
|
303
|
+
const rootRef = useTemplateRef("root");
|
|
304
|
+
const monthCount = computed(() => props.numberOfMonths === 2 ? 2 : 1);
|
|
305
|
+
const weekStart = computed(() => weekStartIndex(props.weekStartsOn));
|
|
306
|
+
const todayDate = toCalendarDate(/* @__PURE__ */ new Date());
|
|
307
|
+
const pending = shallowRef(null);
|
|
308
|
+
const hover = shallowRef(null);
|
|
309
|
+
const opened = initialCalendarFocus({
|
|
310
|
+
focusDate: props.focusDate,
|
|
311
|
+
selected: props.mode === "single" ? props.modelValue : null,
|
|
312
|
+
rangeStart: props.range?.start ?? null,
|
|
313
|
+
min: props.min,
|
|
314
|
+
max: props.max,
|
|
315
|
+
numberOfMonths: monthCount.value,
|
|
316
|
+
today: fromCalendarDate(todayDate)
|
|
317
|
+
});
|
|
318
|
+
const view = shallowRef(shiftMonth(opened, 0));
|
|
319
|
+
const focused = shallowRef(opened);
|
|
320
|
+
const rtl = computed(() => {
|
|
321
|
+
if (typeof document !== "undefined" && document.documentElement.dir === "rtl") return true;
|
|
322
|
+
return /^(?:ar|he|fa|ur)\b/i.test(locale.value);
|
|
323
|
+
});
|
|
324
|
+
const resolvedLabel = computed(() => props.label ?? messages.value.calendar.label);
|
|
325
|
+
const weekName = computed(() => weekFieldName(locale.value));
|
|
326
|
+
const headers = computed(() => {
|
|
327
|
+
const short = standaloneShortWeekdayNames(locale.value);
|
|
328
|
+
const long = weekdayNames(locale.value, "long");
|
|
329
|
+
const start = weekStart.value;
|
|
330
|
+
return Array.from({ length: 7 }, (_, index) => ({
|
|
331
|
+
short: short[(index + start) % 7],
|
|
332
|
+
long: long[(index + start) % 7]
|
|
333
|
+
}));
|
|
334
|
+
});
|
|
335
|
+
function constraints() {
|
|
336
|
+
return {
|
|
337
|
+
min: props.min,
|
|
338
|
+
max: props.max,
|
|
339
|
+
isDateDisabled: props.isDateDisabled,
|
|
340
|
+
dateConstraints: props.dateConstraints,
|
|
341
|
+
minRangeSpan: props.mode === "range" ? props.minRangeSpan : void 0,
|
|
342
|
+
maxRangeSpan: props.mode === "range" ? props.maxRangeSpan : void 0,
|
|
343
|
+
rangeAnchor: props.mode === "range" ? pending.value : null
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
function blocked(date) {
|
|
347
|
+
return isCalendarDateDisabled(date, constraints());
|
|
348
|
+
}
|
|
349
|
+
function visible(date) {
|
|
350
|
+
const start = view.value.year * 12 + view.value.month;
|
|
351
|
+
const index = date.year * 12 + date.month;
|
|
352
|
+
return index >= start && index < start + monthCount.value;
|
|
353
|
+
}
|
|
354
|
+
function seed(month) {
|
|
355
|
+
const candidates = [];
|
|
356
|
+
if (props.mode === "single" && props.modelValue) candidates.push(toCalendarDate(props.modelValue));
|
|
357
|
+
candidates.push(todayDate);
|
|
358
|
+
for (const date of candidates) if (date.year === month.year && date.month === month.month && !blocked(date)) return date;
|
|
359
|
+
for (const week of buildCalendarWeeks(month.year, month.month, weekStart.value, false)) for (const day of week.days) if (!day.outside && !blocked(day.date)) return day.date;
|
|
360
|
+
return shiftMonth(month, 0);
|
|
361
|
+
}
|
|
362
|
+
focused.value = seed(view.value);
|
|
363
|
+
const months = computed(() => Array.from({ length: monthCount.value }, (_, index) => {
|
|
364
|
+
const cursor = shiftMonth(view.value, index);
|
|
365
|
+
return {
|
|
366
|
+
year: cursor.year,
|
|
367
|
+
month: cursor.month,
|
|
368
|
+
label: formatCalendarMonth(cursor.year, cursor.month, locale.value),
|
|
369
|
+
weeks: buildCalendarWeeks(cursor.year, cursor.month, weekStart.value, props.hasVariableRowCount)
|
|
370
|
+
};
|
|
371
|
+
}));
|
|
372
|
+
const headerLabel = computed(() => months.value.map((month) => month.label).join(" – "));
|
|
373
|
+
const canPrevious = computed(() => {
|
|
374
|
+
if (!props.min) return true;
|
|
375
|
+
const min = toCalendarDate(props.min);
|
|
376
|
+
return min.year < view.value.year || min.year === view.value.year && min.month < view.value.month;
|
|
377
|
+
});
|
|
378
|
+
const canNext = computed(() => {
|
|
379
|
+
if (!props.max) return true;
|
|
380
|
+
const max = toCalendarDate(props.max);
|
|
381
|
+
const last = shiftMonth(view.value, monthCount.value - 1);
|
|
382
|
+
return max.year > last.year || max.year === last.year && max.month > last.month;
|
|
383
|
+
});
|
|
384
|
+
const selectedSingle = computed(() => props.mode === "single" && props.modelValue ? toCalendarDate(props.modelValue) : null);
|
|
385
|
+
const committedStart = computed(() => props.mode === "range" && props.range?.start ? toCalendarDate(props.range.start) : null);
|
|
386
|
+
const committedEnd = computed(() => props.mode === "range" && props.range?.end ? toCalendarDate(props.range.end) : null);
|
|
387
|
+
const preview = computed(() => {
|
|
388
|
+
if (!pending.value || !hover.value || sameCalendarDay(pending.value, hover.value)) return null;
|
|
389
|
+
if (blocked(hover.value)) return null;
|
|
390
|
+
return pending.value.compare(hover.value) <= 0 ? {
|
|
391
|
+
start: pending.value,
|
|
392
|
+
end: hover.value
|
|
393
|
+
} : {
|
|
394
|
+
start: hover.value,
|
|
395
|
+
end: pending.value
|
|
396
|
+
};
|
|
397
|
+
});
|
|
398
|
+
const visualStart = computed(() => preview.value?.start ?? pending.value ?? committedStart.value);
|
|
399
|
+
const visualEnd = computed(() => preview.value?.end ?? (pending.value ? null : committedEnd.value));
|
|
400
|
+
function setView(next, keep) {
|
|
401
|
+
view.value = shiftMonth(next, 0);
|
|
402
|
+
emit("update:focusDate", fromCalendarDate(view.value));
|
|
403
|
+
if (keep) focused.value = keep;
|
|
404
|
+
else if (!visible(focused.value)) focused.value = seed(view.value);
|
|
405
|
+
}
|
|
406
|
+
function focusStop() {
|
|
407
|
+
nextTick(() => {
|
|
408
|
+
rootRef.value?.querySelector(".astryx-calendar-cell[tabindex=\"0\"]")?.focus();
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
function shift(amount) {
|
|
412
|
+
if (props.disabled) return;
|
|
413
|
+
if (amount < 0 && !canPrevious.value) return;
|
|
414
|
+
if (amount > 0 && !canNext.value) return;
|
|
415
|
+
setView(shiftMonth(view.value, amount));
|
|
416
|
+
focusStop();
|
|
417
|
+
}
|
|
418
|
+
function navigateTo(date) {
|
|
419
|
+
const target = toCalendarDate(date);
|
|
420
|
+
setView(target, blocked(target) ? seed(target) : target);
|
|
421
|
+
focusStop();
|
|
422
|
+
}
|
|
423
|
+
const handle = { navigateTo };
|
|
424
|
+
useHandleRef(() => props.handleRef, handle);
|
|
425
|
+
__expose(handle);
|
|
426
|
+
watch(() => props.focusDate ? dateISO(props.focusDate) : "", (iso) => {
|
|
427
|
+
if (!iso || !props.focusDate) return;
|
|
428
|
+
const next = toCalendarDate(props.focusDate);
|
|
429
|
+
if (next.year === view.value.year && next.month === view.value.month) return;
|
|
430
|
+
view.value = shiftMonth(next, 0);
|
|
431
|
+
if (!visible(focused.value)) focused.value = seed(view.value);
|
|
432
|
+
});
|
|
433
|
+
watch(headerLabel, (label) => announce(label));
|
|
434
|
+
function inSpan(date, start, end) {
|
|
435
|
+
return !!start && !!end && date.compare(start) >= 0 && date.compare(end) <= 0;
|
|
436
|
+
}
|
|
437
|
+
function paint(week) {
|
|
438
|
+
const start = visualStart.value;
|
|
439
|
+
const end = visualEnd.value;
|
|
440
|
+
return week.days.map((day, index) => {
|
|
441
|
+
const outside = day.outside;
|
|
442
|
+
const disabled = outside || blocked(day.date);
|
|
443
|
+
const continues = !outside && !blocked(day.date) && inSpan(day.date, start, end);
|
|
444
|
+
const previous = index > 0 ? week.days[index - 1] : null;
|
|
445
|
+
const next = index < 6 ? week.days[index + 1] : null;
|
|
446
|
+
const previousContinues = !!previous && !previous.outside && !blocked(previous.date) && inSpan(previous.date, start, end);
|
|
447
|
+
const nextContinues = !!next && !next.outside && !blocked(next.date) && inSpan(next.date, start, end);
|
|
448
|
+
const isStart = !!start && !outside && sameCalendarDay(day.date, start);
|
|
449
|
+
const isEnd = !!end && !outside && sameCalendarDay(day.date, end);
|
|
450
|
+
const selected = !outside && (props.mode === "single" && !!selectedSingle.value && sameCalendarDay(day.date, selectedSingle.value) || isStart || isEnd);
|
|
451
|
+
const named = formatWeekdayDate(day.date, locale.value);
|
|
452
|
+
let label = named;
|
|
453
|
+
if (props.mode === "range" && isStart && isEnd) label = messages.value.calendar.rangeBoth(named);
|
|
454
|
+
else if (props.mode === "range" && isStart) label = messages.value.calendar.rangeStartName(named);
|
|
455
|
+
else if (props.mode === "range" && isEnd) label = messages.value.calendar.rangeEndName(named);
|
|
456
|
+
return {
|
|
457
|
+
iso: day.iso,
|
|
458
|
+
date: day.date,
|
|
459
|
+
text: day.day,
|
|
460
|
+
outside,
|
|
461
|
+
shown: props.hasOutsideDays || !outside,
|
|
462
|
+
disabled,
|
|
463
|
+
selected,
|
|
464
|
+
inRange: continues && !isStart && !isEnd,
|
|
465
|
+
rangeStart: isStart,
|
|
466
|
+
rangeEnd: isEnd,
|
|
467
|
+
today: !outside && sameCalendarDay(day.date, todayDate),
|
|
468
|
+
tab: !outside && !props.disabled && sameCalendarDay(day.date, focused.value),
|
|
469
|
+
roundStart: continues && (isStart || index === 0 || !previousContinues),
|
|
470
|
+
roundEnd: continues && (isEnd || index === 6 || !nextContinues),
|
|
471
|
+
label
|
|
472
|
+
};
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
function pick(date) {
|
|
476
|
+
if (props.disabled || blocked(date)) return;
|
|
477
|
+
focused.value = date;
|
|
478
|
+
if (props.mode !== "range") {
|
|
479
|
+
const value = fromCalendarDate(date);
|
|
480
|
+
emit("update:modelValue", value);
|
|
481
|
+
emit("change", value);
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
484
|
+
if (!pending.value) {
|
|
485
|
+
pending.value = date;
|
|
486
|
+
const value = fromCalendarDate(date);
|
|
487
|
+
emit("update:range", {
|
|
488
|
+
start: value,
|
|
489
|
+
end: null
|
|
490
|
+
});
|
|
491
|
+
emit("change", value);
|
|
492
|
+
announce(messages.value.calendar.rangeStart(formatWeekdayDate(date, locale.value)));
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
495
|
+
if (sameCalendarDay(date, pending.value) && props.minRangeSpan > 1) {
|
|
496
|
+
pending.value = null;
|
|
497
|
+
hover.value = null;
|
|
498
|
+
emit("update:range", {
|
|
499
|
+
start: null,
|
|
500
|
+
end: null
|
|
501
|
+
});
|
|
502
|
+
emit("change", null);
|
|
503
|
+
announce(messages.value.calendar.rangeCleared(formatWeekdayDate(date, locale.value)));
|
|
504
|
+
return;
|
|
505
|
+
}
|
|
506
|
+
const start = pending.value.compare(date) <= 0 ? pending.value : date;
|
|
507
|
+
const end = pending.value.compare(date) <= 0 ? date : pending.value;
|
|
508
|
+
pending.value = null;
|
|
509
|
+
hover.value = null;
|
|
510
|
+
const value = {
|
|
511
|
+
start: fromCalendarDate(start),
|
|
512
|
+
end: fromCalendarDate(end)
|
|
513
|
+
};
|
|
514
|
+
emit("update:range", value);
|
|
515
|
+
emit("change", value.end);
|
|
516
|
+
announce(messages.value.calendar.rangeComplete(formatWeekdayDate(start, locale.value), formatWeekdayDate(end, locale.value)));
|
|
517
|
+
}
|
|
518
|
+
function onKeyDown(event) {
|
|
519
|
+
if (props.disabled) return;
|
|
520
|
+
if (event.key === "Escape" && pending.value) {
|
|
521
|
+
event.preventDefault();
|
|
522
|
+
event.stopPropagation();
|
|
523
|
+
const date = pending.value;
|
|
524
|
+
pending.value = null;
|
|
525
|
+
hover.value = null;
|
|
526
|
+
emit("update:range", {
|
|
527
|
+
start: null,
|
|
528
|
+
end: null
|
|
529
|
+
});
|
|
530
|
+
announce(messages.value.calendar.rangeCleared(formatWeekdayDate(date, locale.value)));
|
|
531
|
+
return;
|
|
532
|
+
}
|
|
533
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
534
|
+
event.preventDefault();
|
|
535
|
+
if (!blocked(focused.value)) pick(focused.value);
|
|
536
|
+
return;
|
|
537
|
+
}
|
|
538
|
+
const move = resolveCalendarKey({
|
|
539
|
+
key: event.key,
|
|
540
|
+
rtl: rtl.value,
|
|
541
|
+
focused: focused.value,
|
|
542
|
+
weekStartsOn: weekStart.value,
|
|
543
|
+
numberOfMonths: monthCount.value,
|
|
544
|
+
viewYear: view.value.year,
|
|
545
|
+
viewMonth: view.value.month,
|
|
546
|
+
isOutOfBounds: (date) => isOutsideCalendarBounds(date, props.min, props.max),
|
|
547
|
+
isDisabled: (date) => isCalendarDateDisabled(date, constraints())
|
|
548
|
+
});
|
|
549
|
+
if (!move) return;
|
|
550
|
+
event.preventDefault();
|
|
551
|
+
if (move.view) setView(move.view, move.date);
|
|
552
|
+
else focused.value = move.date;
|
|
553
|
+
focusStop();
|
|
554
|
+
}
|
|
555
|
+
return (_ctx, _cache) => {
|
|
556
|
+
return openBlock(), createElementBlock("div", {
|
|
557
|
+
ref: "root",
|
|
558
|
+
class: normalizeClass(["astryx-calendar", { "is-disabled": __props.disabled }]),
|
|
559
|
+
"data-months": monthCount.value,
|
|
560
|
+
"data-mode": __props.mode,
|
|
561
|
+
"data-week-numbers": __props.hasWeekNumbers || void 0,
|
|
562
|
+
"aria-label": resolvedLabel.value
|
|
563
|
+
}, [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "header", {}, () => [
|
|
564
|
+
createElementVNode("button", {
|
|
565
|
+
type: "button",
|
|
566
|
+
class: "astryx-calendar-nav-button",
|
|
567
|
+
disabled: __props.disabled || !canPrevious.value,
|
|
568
|
+
"aria-label": unref(messages).calendar.previousMonth,
|
|
569
|
+
onClick: _cache[0] || (_cache[0] = ($event) => shift(-1))
|
|
570
|
+
}, [createVNode(_sfc_main$2, {
|
|
571
|
+
icon: "chevronLeft",
|
|
572
|
+
size: "sm"
|
|
573
|
+
})], 8, _hoisted_3),
|
|
574
|
+
createElementVNode("span", _hoisted_4, toDisplayString(headerLabel.value), 1),
|
|
575
|
+
createElementVNode("button", {
|
|
576
|
+
type: "button",
|
|
577
|
+
class: "astryx-calendar-nav-button",
|
|
578
|
+
disabled: __props.disabled || !canNext.value,
|
|
579
|
+
"aria-label": unref(messages).calendar.nextMonth,
|
|
580
|
+
onClick: _cache[1] || (_cache[1] = ($event) => shift(1))
|
|
581
|
+
}, [createVNode(_sfc_main$2, {
|
|
582
|
+
icon: "chevronRight",
|
|
583
|
+
size: "sm"
|
|
584
|
+
})], 8, _hoisted_5)
|
|
585
|
+
])]), createElementVNode("div", _hoisted_6, [(openBlock(true), createElementBlock(Fragment, null, renderList(months.value, (month) => {
|
|
586
|
+
return openBlock(), createElementBlock("section", {
|
|
587
|
+
key: `${month.year}-${month.month}`,
|
|
588
|
+
class: "astryx-calendar-month"
|
|
589
|
+
}, [createElementVNode("div", {
|
|
590
|
+
class: "astryx-calendar-grid",
|
|
591
|
+
role: "grid",
|
|
592
|
+
"aria-label": month.label,
|
|
593
|
+
"aria-multiselectable": __props.mode === "range" ? "true" : void 0,
|
|
594
|
+
"data-week-numbers": __props.hasWeekNumbers || void 0,
|
|
595
|
+
tabindex: "-1",
|
|
596
|
+
onKeydown: onKeyDown
|
|
597
|
+
}, [createElementVNode("div", _hoisted_8, [__props.hasWeekNumbers ? (openBlock(), createElementBlock("div", _hoisted_9, [createVNode(_sfc_main$1, null, {
|
|
598
|
+
default: withCtx(() => [createTextVNode(toDisplayString(weekName.value), 1)]),
|
|
599
|
+
_: 1
|
|
600
|
+
})])) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(headers.value, (day) => {
|
|
601
|
+
return openBlock(), createElementBlock("div", {
|
|
602
|
+
key: day.long,
|
|
603
|
+
class: "astryx-calendar-weekday",
|
|
604
|
+
role: "columnheader",
|
|
605
|
+
"aria-label": day.long
|
|
606
|
+
}, toDisplayString(day.short), 9, _hoisted_10);
|
|
607
|
+
}), 128))]), (openBlock(true), createElementBlock(Fragment, null, renderList(month.weeks, (week, rowIndex) => {
|
|
608
|
+
return openBlock(), createElementBlock("div", {
|
|
609
|
+
key: `${month.year}-${month.month}-${rowIndex}`,
|
|
610
|
+
class: "astryx-calendar-row",
|
|
611
|
+
role: "row"
|
|
612
|
+
}, [__props.hasWeekNumbers ? (openBlock(), createElementBlock("div", _hoisted_11, toDisplayString(week.number), 1)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(paint(week), (day) => {
|
|
613
|
+
return openBlock(), createElementBlock("div", {
|
|
614
|
+
key: day.iso,
|
|
615
|
+
class: "astryx-calendar-gridcell",
|
|
616
|
+
role: "gridcell",
|
|
617
|
+
"aria-selected": day.selected || day.inRange
|
|
618
|
+
}, [day.shown ? (openBlock(), createElementBlock("button", {
|
|
619
|
+
key: 0,
|
|
620
|
+
type: "button",
|
|
621
|
+
class: normalizeClass(["astryx-calendar-cell", {
|
|
622
|
+
"is-selected": day.selected,
|
|
623
|
+
"is-range-start": day.rangeStart,
|
|
624
|
+
"is-range-end": day.rangeEnd,
|
|
625
|
+
"is-in-range": day.inRange,
|
|
626
|
+
"is-round-start": day.roundStart,
|
|
627
|
+
"is-round-end": day.roundEnd,
|
|
628
|
+
"is-disabled": day.disabled,
|
|
629
|
+
"is-today": day.today,
|
|
630
|
+
"is-other-month": day.outside
|
|
631
|
+
}]),
|
|
632
|
+
"data-date": day.iso,
|
|
633
|
+
tabindex: day.tab ? 0 : -1,
|
|
634
|
+
"aria-disabled": day.disabled || void 0,
|
|
635
|
+
"aria-current": day.today ? "date" : void 0,
|
|
636
|
+
"aria-label": day.label,
|
|
637
|
+
onClick: ($event) => day.outside ? void 0 : pick(day.date),
|
|
638
|
+
onMouseenter: ($event) => hover.value = day.outside || day.disabled ? null : day.date,
|
|
639
|
+
onMouseleave: _cache[2] || (_cache[2] = ($event) => hover.value = null),
|
|
640
|
+
onBlur: _cache[3] || (_cache[3] = ($event) => hover.value = null),
|
|
641
|
+
onFocus: ($event) => focused.value = day.outside ? focused.value : day.date
|
|
642
|
+
}, [renderSlot(_ctx.$slots, "day", {
|
|
643
|
+
date: day.date,
|
|
644
|
+
isSelected: day.selected,
|
|
645
|
+
isDisabled: day.disabled,
|
|
646
|
+
isToday: day.today,
|
|
647
|
+
isInMonth: !day.outside
|
|
648
|
+
}, () => [createElementVNode("span", _hoisted_14, toDisplayString(day.text), 1)])], 42, _hoisted_13)) : createCommentVNode("v-if", true)], 8, _hoisted_12);
|
|
649
|
+
}), 128))]);
|
|
650
|
+
}), 128))], 40, _hoisted_7)]);
|
|
651
|
+
}), 128))])], 10, _hoisted_1);
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
//#endregion
|
|
656
|
+
export { isCalendarDateDisabled as n, toCalendarDate as r, _sfc_main as t };
|
package/dist/Carousel/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Carousel-
|
|
1
|
+
import { t as _sfc_main } from "../Carousel-CIKrcA2r.js";
|
|
2
2
|
export { _sfc_main as Carousel };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
2
2
|
import { t as _sfc_main$1 } from "./IconButton-BNQuz9W_.js";
|
|
3
|
-
import { t as _sfc_main$2 } from "./Icon-
|
|
3
|
+
import { t as _sfc_main$2 } from "./Icon-bteSId7T.js";
|
|
4
4
|
import { Comment, Fragment, Text, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, unref, useSlots, watch, withCtx } from "vue";
|
|
5
5
|
import "../styles/carousel.css";
|
|
6
6
|
//#region src/Carousel/slides.ts
|
package/dist/Chat/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ChatComposerTokenBadge, A as _default$8, At as ChatSystemMessageSlots, B as ChatComposerDrawerEmits, C as _default$15, Ct as ChatReasoningEmits, D as _default$11, Dt as ChatSendButtonProps, E as _default$12, Et as ChatSendButtonEmits, F as _default$3, Ft as ChatToolCallsEmits, G as ChatComposerInputControl, H as ChatComposerDrawerSlots, I as _default$2, It as ChatToolCallsProps, J as ChatComposerInputProps, K as ChatComposerInputEmits, L as _default$1, Lt as ChatToolCallsSlots, M as _default$6, Mt as ChatTokenizedTextProps, N as _default$5, Nt as ChatToolCallItem, O as _default$10, Ot as ChatSendButtonSlots, P as _default$4, Pt as ChatToolCallStatus, Q as ChatComposerToken, R as _default, Rt as ChatTypingIndicatorProps, S as _default$16, St as ChatMessageStatus, T as _default$13, Tt as ChatReasoningSlots, U as ChatComposerElevation, V as ChatComposerDrawerProps, W as ChatComposerEmits, X as ChatComposerSlots, Y as ChatComposerProps, Z as ChatComposerStatus, _ as useChatComposerContext, _t as ChatMessageMetadataProps, a as useChatPasteAsToken, at as ChatDictationButtonProps, b as useChatMessageContext, bt as ChatMessageSender, c as SpeechRecognitionError, ct as ChatLayoutScrollButtonProps, d as useSpeechRecognition, dt as ChatMessageBubbleGroup, et as ChatComposerTokenCustom, f as TokenPortal, ft as ChatMessageBubbleProps, g as ChatComposerContextValue, gt as ChatMessageListSlots, h as useChatComposerTokens, ht as ChatMessageListProps, i as pastedTextLabel, it as ChatDensity, j as _default$7, jt as ChatSystemMessageVariant, k as _default$9, kt as ChatSystemMessageProps, l as UseSpeechRecognitionOptions, lt as ChatLayoutScrollSlotProps, m as UseChatComposerTokensReturn, mt as ChatMessageBubbleVariant, n as UseChatPasteAsTokenOptions, nt as ChatComposerTrigger, o as UseChatDictationOptions, ot as ChatLayoutProps, p as UseChatComposerTokensOptions, pt as ChatMessageBubbleSlots, q as ChatComposerInputHandle, r as UseChatPasteAsTokenReturn, rt as ChatComposerTriggerItem, s as useChatDictation, st as ChatLayoutScrollButtonEmits, t as PASTE_TOKEN_THRESHOLD, tt as ChatComposerTokenElementProps, u as UseSpeechRecognitionReturn, ut as ChatLayoutSlots, v as useChatLayoutContext, vt as ChatMessageMetadataSlots, w as _default$14, wt as ChatReasoningProps, x as _default$17, xt as ChatMessageSlots, y as useChatListContext, yt as ChatMessageProps, z as ChatComposerDensity, zt as ChatUnreadDividerProps } from "../index-
|
|
1
|
+
import { $ as ChatComposerTokenBadge, A as _default$8, At as ChatSystemMessageSlots, B as ChatComposerDrawerEmits, C as _default$15, Ct as ChatReasoningEmits, D as _default$11, Dt as ChatSendButtonProps, E as _default$12, Et as ChatSendButtonEmits, F as _default$3, Ft as ChatToolCallsEmits, G as ChatComposerInputControl, H as ChatComposerDrawerSlots, I as _default$2, It as ChatToolCallsProps, J as ChatComposerInputProps, K as ChatComposerInputEmits, L as _default$1, Lt as ChatToolCallsSlots, M as _default$6, Mt as ChatTokenizedTextProps, N as _default$5, Nt as ChatToolCallItem, O as _default$10, Ot as ChatSendButtonSlots, P as _default$4, Pt as ChatToolCallStatus, Q as ChatComposerToken, R as _default, Rt as ChatTypingIndicatorProps, S as _default$16, St as ChatMessageStatus, T as _default$13, Tt as ChatReasoningSlots, U as ChatComposerElevation, V as ChatComposerDrawerProps, W as ChatComposerEmits, X as ChatComposerSlots, Y as ChatComposerProps, Z as ChatComposerStatus, _ as useChatComposerContext, _t as ChatMessageMetadataProps, a as useChatPasteAsToken, at as ChatDictationButtonProps, b as useChatMessageContext, bt as ChatMessageSender, c as SpeechRecognitionError, ct as ChatLayoutScrollButtonProps, d as useSpeechRecognition, dt as ChatMessageBubbleGroup, et as ChatComposerTokenCustom, f as TokenPortal, ft as ChatMessageBubbleProps, g as ChatComposerContextValue, gt as ChatMessageListSlots, h as useChatComposerTokens, ht as ChatMessageListProps, i as pastedTextLabel, it as ChatDensity, j as _default$7, jt as ChatSystemMessageVariant, k as _default$9, kt as ChatSystemMessageProps, l as UseSpeechRecognitionOptions, lt as ChatLayoutScrollSlotProps, m as UseChatComposerTokensReturn, mt as ChatMessageBubbleVariant, n as UseChatPasteAsTokenOptions, nt as ChatComposerTrigger, o as UseChatDictationOptions, ot as ChatLayoutProps, p as UseChatComposerTokensOptions, pt as ChatMessageBubbleSlots, q as ChatComposerInputHandle, r as UseChatPasteAsTokenReturn, rt as ChatComposerTriggerItem, s as useChatDictation, st as ChatLayoutScrollButtonEmits, t as PASTE_TOKEN_THRESHOLD, tt as ChatComposerTokenElementProps, u as UseSpeechRecognitionReturn, ut as ChatLayoutSlots, v as useChatLayoutContext, vt as ChatMessageMetadataSlots, w as _default$14, wt as ChatReasoningProps, x as _default$17, xt as ChatMessageSlots, y as useChatListContext, yt as ChatMessageProps, z as ChatComposerDensity, zt as ChatUnreadDividerProps } from "../index-BxhJqiZ7.js";
|
|
2
2
|
export { _default as ChatComposer, type ChatComposerContextValue, type ChatComposerDensity, _default$1 as ChatComposerDrawer, type ChatComposerDrawerEmits, type ChatComposerDrawerProps, type ChatComposerDrawerSlots, type ChatComposerElevation, type ChatComposerEmits, _default$2 as ChatComposerInput, type ChatComposerInputControl, type ChatComposerInputEmits, type ChatComposerInputHandle, type ChatComposerInputProps, type ChatComposerProps, type ChatComposerSlots, type ChatComposerStatus, type ChatComposerToken, type ChatComposerTokenBadge, type ChatComposerTokenCustom, _default$3 as ChatComposerTokenElement, type ChatComposerTokenElementProps, type ChatComposerTrigger, type ChatComposerTriggerItem, type ChatDensity, _default$4 as ChatDictationButton, type ChatDictationButtonProps, _default$5 as ChatLayout, type ChatLayoutProps, _default$6 as ChatLayoutScrollButton, type ChatLayoutScrollButtonEmits, type ChatLayoutScrollButtonProps, type ChatLayoutScrollSlotProps, type ChatLayoutSlots, _default$7 as ChatMessage, _default$8 as ChatMessageBubble, type ChatMessageBubbleGroup, type ChatMessageBubbleProps, type ChatMessageBubbleSlots, type ChatMessageBubbleVariant, _default$9 as ChatMessageList, type ChatMessageListProps, type ChatMessageListSlots, _default$10 as ChatMessageMetadata, type ChatMessageMetadataProps, type ChatMessageMetadataSlots, type ChatMessageProps, type ChatMessageSender, type ChatMessageSlots, type ChatMessageStatus, _default$11 as ChatReasoning, type ChatReasoningEmits, type ChatReasoningProps, type ChatReasoningSlots, _default$12 as ChatSendButton, type ChatSendButtonEmits, type ChatSendButtonProps, type ChatSendButtonSlots, _default$13 as ChatSystemMessage, type ChatSystemMessageProps, type ChatSystemMessageSlots, type ChatSystemMessageVariant, _default$14 as ChatTokenizedText, type ChatTokenizedTextProps, type ChatToolCallItem, type ChatToolCallStatus, _default$15 as ChatToolCalls, type ChatToolCallsEmits, type ChatToolCallsProps, type ChatToolCallsSlots, _default$16 as ChatTypingIndicator, type ChatTypingIndicatorProps, _default$17 as ChatUnreadDivider, type ChatUnreadDividerProps, PASTE_TOKEN_THRESHOLD, type SpeechRecognitionError, type TokenPortal, type UseChatComposerTokensOptions, type UseChatComposerTokensReturn, type UseChatDictationOptions, type UseChatPasteAsTokenOptions, type UseChatPasteAsTokenReturn, type UseSpeechRecognitionOptions, type UseSpeechRecognitionReturn, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
|