@astryx-vue/core 0.2.5 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-B6UeBCE7.js → AlertDialog-RAVA_cT1.js} +13 -7
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-CeBmB0Q9.js → AppShell-0wTvOo3H.js} +3 -3
- package/dist/Avatar/index.d.ts +2 -2
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-BB4Z4LF1.js → Avatar-pPZ4dI_s.js} +161 -16
- package/dist/AvatarGroup/index.d.ts +2 -2
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup-B--NQSB3.js +98 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-CJe9Im5a.js → Banner-GbGxrqQO.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-o7xw-TOi.js → BottomSheet-JYMB_Ofl.js} +12 -9
- package/dist/{BottomSheet-BV6vfgGu.js → BottomSheet-pt7m4CvC.js} +3 -1
- package/dist/Breadcrumbs/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-D6G7f5WL.js → Breadcrumbs-DIm4figq.js} +22 -11
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DrqeomlE.js → Button-B6Hj_O_s.js} +3 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-DmTeM7PO.js → Calendar-B7vIowKq.js} +2 -2
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/{Card-HAjZQg2s.js → Card-B-I24X9S.js} +2 -0
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CIKrcA2r.js → Carousel-CA8zpD9v.js} +48 -31
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +2 -2
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-BFox3u9D.js → Chat-Bmna9EOA.js} +98 -61
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-25Q8ItH-.js → CheckboxInput-BS9J6edf.js} +2 -2
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BlPf7vPe.js → CheckboxList-CX1i_jVP.js} +8 -7
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-BG-vg9ia.js → Citation-Djgwa0ko.js} +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-Bhds4RRe.js → ClickableCard-DUsC-j03.js} +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-B2pnEOJY.js → CodeBlock-D0BFubut.js} +5 -1
- package/dist/Collapsible/index.d.ts +2 -2
- package/dist/Collapsible/index.js +2 -2
- package/dist/{Collapsible-3YerR-FO.js → Collapsible-Cov3Pyq5.js} +67 -22
- package/dist/CommandPalette/index.d.ts +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-DKgHzmJk.js → CommandPalette-YHsUNg3V.js} +60 -20
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Dv44FFhN.js → ComplexSelector-DWLdKPGI.js} +41 -9
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-BeJO5HYx.js → ContextMenu-Bq9b3Ti5.js} +15 -8
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-DT518j5E.js +841 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Cp6AZfew.js → DateRangeInput-Bqi5tlIA.js} +188 -140
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-B6MPPp76.js → DateTimeInput-A7m2O3bg.js} +43 -12
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +2 -2
- package/dist/{Dialog-CvRplBo-.js → Dialog-BiOSKQso.js} +9 -5
- package/dist/{Dialog-rfUt3y8P.js → Dialog-FGHfDu5M.js} +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-6E9jFdFe.js → DropdownMenu-CoOQVlRp.js} +9 -10
- package/dist/{DropdownMenu--lnUeJEG.js → DropdownMenu-DEb2dSSP.js} +44 -33
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-0RWymQUS.js → EmptyState-C_GH7IV5.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +2 -2
- package/dist/{Field-8zRxzDHE.js → Field-D5gUEGw4.js} +1 -1
- package/dist/FieldInfoTip-Ds-sW_jY.js +98 -0
- package/dist/FieldLabel-BNeXRuGH.js +95 -0
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/FileInput-BpdiO1V8.js +285 -0
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-B9C3LZlS.js → Heading-BnwWEWkp.js} +7 -2
- package/dist/HoverCard/index.d.ts +2 -2
- package/dist/HoverCard/index.js +2 -2
- package/dist/HoverCard-ycY50pRN.js +492 -0
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-BNQuz9W_.js → IconButton-DDNgNl7B.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-BzR6JRZb.js → InputGroup-CA03Smrs.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +2 -0
- package/dist/InternationalizationProvider/index.js +2 -0
- package/dist/InternationalizationProvider-DJay_w3B.js +170 -0
- package/dist/{Item-DrYJL1TG.js → Item-KhFKX9St.js} +15 -6
- package/dist/LayerProvider/index.d.ts +2 -0
- package/dist/LayerProvider/index.js +3 -0
- package/dist/LayerProvider-D9NsQFzL.js +73 -0
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-Bed3kP0M.js → Layout-C6RHllr-.js} +2 -2
- package/dist/{LayoutPanel-C34uOq3e.js → LayoutPanel-DXOsaeQb.js} +4 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Br3o0SyQ.js → Lightbox-DTF9EdTG.js} +2 -2
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +1 -1
- package/dist/{Link-DCZ6922-.js → Link-BqHCtiyt.js} +26 -7
- package/dist/LinkProvider/index.d.ts +2 -0
- package/dist/LinkProvider/index.js +3 -0
- package/dist/LinkProvider-Qsps9_mL.js +17 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-CcRHWuEm.js → ListItem-8RWT8XAG.js} +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-Bz0R3kNj.js → Markdown-CvtN7HnF.js} +4 -4
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-CFaocx6j.js → MetadataList-B-OelQlt.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Dh3uLivq.js → MobileNavToggle-DxGz0xKA.js} +11 -5
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-B95nRSe8.js → MoreMenu-Dlb7MLlW.js} +33 -20
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DuF5TECE.js → MultiSelector-BtAUfQ3t.js} +122 -54
- package/dist/{NavDisclosure-C6sPZ89n.js → NavDisclosure-C_fugrQ3.js} +1 -2
- package/dist/{NavHeadingSurface-Cb3x9iDx.js → NavHeadingSurface-B3yJspSN.js} +18 -11
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +2 -2
- package/dist/{NavItem-FFOisITc.js → NavItem-BBIGSvDj.js} +7 -3
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-ClIgMaxE.js → NavMenu-ThXguZAz.js} +7 -3
- package/dist/{NavMenuItem-E7S8gBh-.js → NavMenuItem-BvJNsDFC.js} +8 -4
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-AZ9x3oja.js +473 -0
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DBUuchi9.js → Outline-755h-lMP.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-aDd_oem0.js → OverflowList-NmrSMbxb.js} +10 -6
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-CNe9F6Fl.js → Pagination-DqwNQFRp.js} +29 -14
- package/dist/Popover/index.d.ts +3 -3
- package/dist/Popover/index.js +2 -2
- package/dist/Popover-DJf8POzL.js +308 -0
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-C6U8Sq1Y.js → PowerSearch-DvjiPqMZ.js} +44 -31
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DF6WZNCI.js → ProgressBar-CVLzdoBK.js} +9 -3
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CBqUPq_L.js → RadioGroup-Bfu6JSNV.js} +60 -24
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CPOJn9Th.js → RadioList-xY1cwLdZ.js} +4 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-DYy0e3v9.js → ResizeHandle-q4nD_586.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-DQDYjnxO.js → ScrollableArea-D4dCJv9I.js} +14 -3
- package/dist/Scrollbars/index.d.ts +2 -0
- package/dist/Scrollbars/index.js +3 -0
- package/dist/Scrollbars-D_93hJYK.js +75 -0
- package/dist/Section/index.d.ts +2 -1
- package/dist/Section/index.js +1 -1
- package/dist/{Section-C48Wqfc7.js → Section-v2QuWBBJ.js} +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Bj5s_tIN.js → SelectableCard-Cku4dRzc.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-5N-hq2nF.js → Selector-DJ2BhUTV.js} +90 -31
- package/dist/SideNav/index.d.ts +2 -2
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-CT9lfspi.js → SideNav-BF8mYDxl.js} +76 -44
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-D8h_RKcF.js → Slider-DWobsPgm.js} +2 -2
- package/dist/Stack/index.d.ts +2 -2
- package/dist/Stack/index.js +2 -2
- package/dist/{Stack-iv52y_Jv.js → Stack-CTsTFfar.js} +18 -3
- package/dist/{Stack-gGcYdOAh.js → Stack-kQlYbbL4.js} +22 -7
- package/dist/StatusDot/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/StatusDot-BPUhMOff.js +45 -0
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-BqhVCgC-.js → Stepper-CE8dHysu.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-SesQzPGZ.js → Switch-DaVPRxvN.js} +2 -2
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-BlzkrObv.js → TabList-DIkK9sgK.js} +100 -23
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +2 -2
- package/dist/{Table-CsdH8fCB.js → Table-fecqnm7P.js} +870 -241
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +1 -1
- package/dist/{Text-DIzZw6FA.js → Text-CV3LmscH.js} +7 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-CPwSytdO.js → TextArea-Ab5Sw60T.js} +24 -14
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-BasnjVvy.js → TextInput-zFT1_qgI.js} +21 -24
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BnQwX1cQ.js → Thumbnail-C3NnJUFG.js} +5 -5
- package/dist/TimeField-CoHDGmsP.js +435 -0
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-C9gptCOK.js → TimeInput-D2k3Ux3p.js} +14 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-kxzQx3tp.js → Timer-avMQk5DN.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-D7bd_nF3.js → Timestamp-xpQKCk0d.js} +7 -7
- package/dist/Toast/index.d.ts +3 -2
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-C2ML-bmi.js → Toast-BuqIZV5z.js} +136 -38
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-BB_I8EdM.js → ToggleButton-B-C-Q7XP.js} +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-D2GsI_Ei.js → Token-DsntTYhQ.js} +33 -17
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/Tokenizer-B5C_qY7t.js +585 -0
- package/dist/Toolbar/index.d.ts +2 -1
- package/dist/Tooltip/index.d.ts +2 -2
- package/dist/Tooltip/index.js +2 -2
- package/dist/Tooltip-C4Vaqd3G.js +320 -0
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-arWFLTBM.js → TopNav-Ciq0l1w7.js} +122 -84
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-C9xvMpJZ.js → TreeList-BUz-KZJd.js} +90 -40
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/Typeahead-JP9RT87x.js +656 -0
- package/dist/{TypeaheadMenu-BEObzonz.js → TypeaheadMenu-DBW6rHeO.js} +133 -44
- package/dist/composables/index.d.ts +3 -3
- package/dist/composables/index.js +12 -7
- package/dist/{composables-CWw6t-RJ.js → composables-CbKx9C1Y.js} +424 -4
- package/dist/context-C_peZbXf.js +16 -0
- package/dist/context-M-er0-Rk.js +99 -0
- package/dist/{context-CPh7kE-a.js → context-iABt_ueM.js} +30 -4
- package/dist/{index-CLmKfnqf.d.ts → index-0QGtSf3r.d.ts} +2 -0
- package/dist/{index-z3uLM1O6.d.ts → index-B1WJxt-n.d.ts} +1 -1
- package/dist/{index-BPwD6aBv.d.ts → index-B3Fomy15.d.ts} +2 -2
- package/dist/{index-CPwzSbQQ.d.ts → index-B42oE_F-.d.ts} +17 -1
- package/dist/{index-EFqQF2Bx.d.ts → index-B4OOtNP8.d.ts} +2 -2
- package/dist/index-B7yhzGUT.d.ts +171 -0
- package/dist/{index-DFbvnBlf.d.ts → index-B9e52paP.d.ts} +15 -2
- package/dist/{index-CEB7Ywvw.d.ts → index-BKnyTWPM.d.ts} +1 -1
- package/dist/{index-CsVS37na.d.ts → index-BNbAJV9C.d.ts} +1 -1
- package/dist/index-BTK7aStw.d.ts +88 -0
- package/dist/{index-BBtJt5_A.d.ts → index-BULhhnGf.d.ts} +1 -1
- package/dist/{index-D7-WTV6I.d.ts → index-BVKivP59.d.ts} +2 -2
- package/dist/{index-BpH4wvsg.d.ts → index-BgT6mH3U.d.ts} +2 -2
- package/dist/{index-Be1czg3M.d.ts → index-BhpAUzUr.d.ts} +47 -7
- package/dist/{index-BcJBLWJ0.d.ts → index-BkjSF265.d.ts} +67 -4
- package/dist/{index-DxR1FChm.d.ts → index-Bu8NA2SD.d.ts} +49 -6
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-C-QpeUlQ.d.ts → index-C2nbK2AA.d.ts} +52 -7
- package/dist/{index-iBLzInje.d.ts → index-C5e-7Obr.d.ts} +1 -1
- package/dist/index-CEv_AvOg.d.ts +17 -0
- package/dist/{index-Dgg0bHVM.d.ts → index-CICeEoZV.d.ts} +2 -1
- package/dist/{index-CB9Srua5.d.ts → index-CL1T2j4y.d.ts} +7 -4
- package/dist/{index-DjMwF8ET.d.ts → index-COgrQZIL.d.ts} +7 -1
- package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
- package/dist/{index-ChWlKHjc.d.ts → index-Cde5JvtX.d.ts} +15 -3
- package/dist/index-CitZGSn0.d.ts +39 -0
- package/dist/index-CkKPMIeX.d.ts +55 -0
- package/dist/{index-FEy8qFSD.d.ts → index-ClNU2Th8.d.ts} +30 -3
- package/dist/{index-kaKBOZSU.d.ts → index-Cq31D3fJ.d.ts} +99 -7
- package/dist/{index-xfkEuGLY.d.ts → index-CqE4Bf3Q.d.ts} +8 -2
- package/dist/{index-DtePJ_w_.d.ts → index-Crp3NFLW.d.ts} +2 -2
- package/dist/{index-BlOIC_AM.d.ts → index-CsNi1I8j.d.ts} +6 -0
- package/dist/index-Cyb9Du5Z.d.ts +76 -0
- package/dist/{index-4TRnFGxv.d.ts → index-D41_xqjs.d.ts} +50 -10
- package/dist/{index-eshFLli0.d.ts → index-D97pQbua.d.ts} +7 -0
- package/dist/{index-c67ca7eJ.d.ts → index-DEQ5cnUV.d.ts} +1 -1
- package/dist/{index-BmAxqw1G.d.ts → index-DG52Bg0W.d.ts} +15 -1
- package/dist/{index-Da7Jm8Ht.d.ts → index-DIXAzTKL.d.ts} +1 -1
- package/dist/{index-BmmdzwT9.d.ts → index-DNA2l1RN.d.ts} +35 -11
- package/dist/{index-B9rqmYxh.d.ts → index-DUaLJO7l.d.ts} +978 -313
- package/dist/index-DVmgNb78.d.ts +143 -0
- package/dist/{index-CDdRQQF3.d.ts → index-DWh2WC8W.d.ts} +18 -6
- package/dist/index-DXpSFlPG.d.ts +78 -0
- package/dist/{index-C_2Z65Rp.d.ts → index-DeQwYJbg.d.ts} +39 -2
- package/dist/{index-JL4auphT.d.ts → index-GI9xIV9l.d.ts} +2 -2
- package/dist/{index-Ctu32CLv.d.ts → index-IBAInumL.d.ts} +93 -56
- package/dist/{index-vizlhXVs.d.ts → index-T2FOcOuI.d.ts} +492 -16
- package/dist/{index-CA6RbRWx.d.ts → index-TXcNH86P.d.ts} +2 -2
- package/dist/{index-BIPc1v82.d.ts → index-TntQsADQ.d.ts} +1 -1
- package/dist/index-fAZaRruV.d.ts +125 -0
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-D5N9ikrS.d.ts → index-hCpxKePE.d.ts} +1 -1
- package/dist/{index-CpiWVbRZ.d.ts → index-i0tNFWfz.d.ts} +3 -1
- package/dist/{index-YmSe1ujk.d.ts → index-lgvUFSCO.d.ts} +1 -1
- package/dist/{index-bvr3WHvs.d.ts → index-xrzJC4wm.d.ts} +1 -1
- package/dist/{index-BK9T1TPZ.d.ts → index-yT1yiiww.d.ts} +28 -9
- package/dist/index.d.ts +80 -76
- package/dist/index.js +127 -113
- package/dist/link-C4_WogdF.js +18 -0
- package/dist/{index-C3GaPqvJ.d.ts → loadCatalog-BGHKG_9N.d.ts} +16 -37
- package/dist/{locale-sLw5Caia.js → loadCatalog-CXKqEB9s.js} +25 -65
- package/dist/locale/index.d.ts +3 -2
- package/dist/locale/index.js +4 -3
- package/dist/locale-DgkZEMTn.js +105 -0
- package/dist/{searchResultMessage-CCnq-_ce.js → searchResultMessage-hXXNOFJP.js} +2 -2
- package/dist/{size-xcIqExkS.js → size-Cpn_wzXi.js} +1 -1
- package/dist/{types-3eXh_5os.d.ts → types-0Q_SJv_F.d.ts} +3 -1
- package/dist/types-BRfVvZTH.d.ts +108 -0
- package/dist/{types-D7QNSqoN.d.ts → types-BTk0WZ0b.d.ts} +8 -0
- package/dist/{types-D_J66aPN.d.ts → types-BnNTzEnd.d.ts} +5 -1
- package/dist/{types-D9nP_X-c.d.ts → types-Ckih2YJi.d.ts} +9 -2
- package/dist/{types-Db3Owy8Q.d.ts → types-OGMYGejX.d.ts} +5 -0
- package/dist/{index-nKlTsNfV.d.ts → types-uFMH9NaM.d.ts} +14 -17
- package/dist/{useAnchoredListbox-BN9LQnon.js → useAnchoredListbox-DwztMNjP.js} +9 -4
- package/dist/useDevWarning-DznOpOHT.js +36 -0
- package/dist/useInputContainer-CpgDe2-4.js +51 -0
- package/dist/useInputStatusIcon-DBOwxV4x.js +41 -0
- package/dist/useInteractiveRole-Cn0Nd5GX.js +25 -0
- package/dist/{useMenuDrillIn-BgjJcY3K.js → useMenuDrillIn-DzKGkTho.js} +1 -1
- package/dist/{useMenuPress-DUmEy4TB.js → useMenuPress-D-FRNrBW.js} +162 -14
- package/dist/useMergedRefs-CfHHlCsn.js +109 -0
- package/dist/useNumberField-4-dIGVed.js +128 -0
- package/dist/{usePositionedLayer-C1NBOsVT.js → usePositionedLayer-Cru9_00b.js} +70 -7
- package/dist/useResizable-DDwPpPe6.d.ts +409 -0
- package/dist/useRestoreFocus-Djw9RUIf.js +153 -0
- package/dist/useScrollbars-C2NJ6Qwq.js +43 -0
- package/dist/{useTimeValue-DWk6oTAZ.js → useTimeValue-6ufHM15W.js} +1 -1
- package/dist/utils-D33VQDnk.js +58 -0
- package/locales/SOURCE.json +1 -1
- package/locales/en.json +445 -1
- package/package.json +19 -2
- package/styles/avatar-group.css +19 -1
- package/styles/avatar.css +34 -13
- package/styles/chat.css +17 -1
- package/styles/dialog-header.css +5 -1
- package/styles/field.css +11 -0
- package/styles/heading.css +9 -0
- package/styles/indicator-focus-ring.css +18 -0
- package/styles/number-input.css +33 -0
- package/styles/pressable.css +44 -0
- package/styles/progress-bar.css +18 -0
- package/styles/scrollbars.css +28 -0
- package/styles/side-nav.css +20 -6
- package/styles/stack.css +4 -2
- package/styles/status-dot.css +18 -0
- package/styles/tab-list.css +38 -2
- package/styles/table.css +66 -6
- package/styles/text.css +9 -0
- package/styles/time-input.css +41 -0
- package/styles/top-nav.css +46 -19
- package/styles/typeahead.css +31 -0
- package/styles.css +2 -0
- package/dist/AvatarGroup-QyzSrpYA.js +0 -60
- package/dist/DateInput-D4XFAEMp.js +0 -743
- package/dist/FieldLabel-DmmJyX7w.js +0 -184
- package/dist/FileInput-DuNwdbAo.js +0 -238
- package/dist/HoverCard-EhbWaGOW.js +0 -443
- package/dist/NumberInput-B4IL3s_8.js +0 -210
- package/dist/Popover-D7zqpFwU.js +0 -215
- package/dist/StatusDot-CaoIapp4.js +0 -27
- package/dist/TimeField-Biiuv0hB.js +0 -214
- package/dist/Tokenizer-rwzamZg4.js +0 -473
- package/dist/Tooltip-C2fh9anJ.js +0 -271
- package/dist/Typeahead-_V11btpv.js +0 -499
- package/dist/index-Blm197N_.d.ts +0 -82
- package/dist/index-Bt7ewoz2.d.ts +0 -119
- package/dist/index-C1HIqW_H.d.ts +0 -38
- package/dist/index-CngORuiq.d.ts +0 -387
- package/dist/index-D4I_obqR.d.ts +0 -58
- package/dist/link-CdcUSxAj.js +0 -12
- package/dist/size-BuTzpgnR.d.ts +0 -14
- package/dist/types-Cp4liug-.d.ts +0 -170
- package/dist/useDismiss-Cj8x_51F.js +0 -62
- package/dist/useNumberField-DL-Radsp.js +0 -49
- package/dist/useResizable-CUoNPmUw.d.ts +0 -72
- package/dist/useRestoreFocus-BvMdXVX9.js +0 -96
- package/dist/utils-C9r3UD_y.js +0 -16
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as _sfc_main$24 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
|
-
import { t as _sfc_main$25 } from "./Button-
|
|
2
|
+
import { t as _sfc_main$25 } from "./Button-B6Hj_O_s.js";
|
|
3
3
|
import { t as useAnnounce } from "./announce-Cnio10Wk.js";
|
|
4
4
|
import { r as useChatNewMessages, t as useChatStreamScroll } from "./useChatStreamScroll-oDfybEos.js";
|
|
5
|
-
import {
|
|
6
|
-
import { a as useAstryxLocale, o as useAstryxMessages } from "./context-
|
|
7
|
-
import { t as
|
|
5
|
+
import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-Cru9_00b.js";
|
|
6
|
+
import { a as useAstryxLocale, o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
7
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
8
8
|
import { t as _sfc_main$26 } from "./Badge-CjDQPF5g.js";
|
|
9
9
|
import { t as _sfc_main$27 } from "./Icon-bteSId7T.js";
|
|
10
10
|
import { t as _sfc_main$28 } from "./Divider-BtwnL18I.js";
|
|
11
|
-
import { t as _sfc_main$29 } from "./HoverCard-
|
|
11
|
+
import { t as _sfc_main$29 } from "./HoverCard-ycY50pRN.js";
|
|
12
12
|
import { t as _sfc_main$30 } from "./Spinner-9cYUCnDy.js";
|
|
13
|
-
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useId, useModel, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
|
|
13
|
+
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toValue, unref, useId, useModel, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
|
|
14
14
|
import "../styles/popover.css";
|
|
15
15
|
import "../styles/chat.css";
|
|
16
16
|
//#region src/Chat/useChatPasteAsToken.ts
|
|
@@ -171,7 +171,7 @@ const _hoisted_3$11 = {
|
|
|
171
171
|
class: "astryx-chat-trigger__status"
|
|
172
172
|
};
|
|
173
173
|
const _hoisted_4$10 = ["aria-label"];
|
|
174
|
-
const _hoisted_5$
|
|
174
|
+
const _hoisted_5$9 = {
|
|
175
175
|
class: "astryx-chat-trigger__heading",
|
|
176
176
|
"aria-hidden": "true"
|
|
177
177
|
};
|
|
@@ -185,9 +185,14 @@ const _hoisted_6$7 = [
|
|
|
185
185
|
];
|
|
186
186
|
const _hoisted_7$6 = {
|
|
187
187
|
key: 1,
|
|
188
|
-
class: "astryx-chat-
|
|
188
|
+
class: "astryx-chat-trigger__copy"
|
|
189
189
|
};
|
|
190
|
-
const _hoisted_8$4 =
|
|
190
|
+
const _hoisted_8$4 = { class: "astryx-chat-trigger__label" };
|
|
191
|
+
const _hoisted_9$4 = {
|
|
192
|
+
key: 0,
|
|
193
|
+
class: "astryx-chat-trigger__description"
|
|
194
|
+
};
|
|
195
|
+
const _hoisted_10$4 = [
|
|
191
196
|
"id",
|
|
192
197
|
"aria-selected",
|
|
193
198
|
"data-highlighted",
|
|
@@ -195,9 +200,14 @@ const _hoisted_8$4 = [
|
|
|
195
200
|
"onMouseenter",
|
|
196
201
|
"onFocus"
|
|
197
202
|
];
|
|
198
|
-
const
|
|
203
|
+
const _hoisted_11$3 = {
|
|
199
204
|
key: 1,
|
|
200
|
-
class: "astryx-chat-
|
|
205
|
+
class: "astryx-chat-trigger__copy"
|
|
206
|
+
};
|
|
207
|
+
const _hoisted_12$1 = { class: "astryx-chat-trigger__label" };
|
|
208
|
+
const _hoisted_13$1 = {
|
|
209
|
+
key: 0,
|
|
210
|
+
class: "astryx-chat-trigger__description"
|
|
201
211
|
};
|
|
202
212
|
const _sfc_main$21 = /*@__PURE__*/ defineComponent({
|
|
203
213
|
__name: "ChatTriggerMenu",
|
|
@@ -278,6 +288,8 @@ const _sfc_main$21 = /*@__PURE__*/ defineComponent({
|
|
|
278
288
|
if (!props.open || !props.keyboardMove || index < 0) return;
|
|
279
289
|
document.getElementById(optionId(index))?.scrollIntoView({ block: "nearest" });
|
|
280
290
|
});
|
|
291
|
+
const listEl = useTemplateRef("list");
|
|
292
|
+
useScrollbars(listEl);
|
|
281
293
|
function onSelect(item, event) {
|
|
282
294
|
event.preventDefault();
|
|
283
295
|
emit("select", item);
|
|
@@ -291,6 +303,7 @@ const _sfc_main$21 = /*@__PURE__*/ defineComponent({
|
|
|
291
303
|
style: normalizeStyle(style.value)
|
|
292
304
|
}, [createElementVNode("div", {
|
|
293
305
|
id: __props.listboxId,
|
|
306
|
+
ref: "list",
|
|
294
307
|
class: "astryx-chat-trigger__list",
|
|
295
308
|
role: "listbox",
|
|
296
309
|
"aria-label": __props.label
|
|
@@ -299,7 +312,7 @@ const _sfc_main$21 = /*@__PURE__*/ defineComponent({
|
|
|
299
312
|
key: 0,
|
|
300
313
|
role: "group",
|
|
301
314
|
"aria-label": group.heading
|
|
302
|
-
}, [createElementVNode("div", _hoisted_5$
|
|
315
|
+
}, [createElementVNode("div", _hoisted_5$9, toDisplayString(group.heading), 1), (openBlock(true), createElementBlock(Fragment, null, renderList(group.items, (item, index) => {
|
|
303
316
|
return openBlock(), createElementBlock("div", {
|
|
304
317
|
id: optionId(flatIndex(group, index)),
|
|
305
318
|
key: item.id,
|
|
@@ -314,7 +327,7 @@ const _sfc_main$21 = /*@__PURE__*/ defineComponent({
|
|
|
314
327
|
}, [itemView.value ? (openBlock(), createBlock(resolveDynamicComponent(itemView.value), {
|
|
315
328
|
key: 0,
|
|
316
329
|
item
|
|
317
|
-
}, null, 8, ["item"])) : (openBlock(), createElementBlock("span", _hoisted_7$6, toDisplayString(item.label), 1))], 40, _hoisted_6$7);
|
|
330
|
+
}, null, 8, ["item"])) : (openBlock(), createElementBlock("span", _hoisted_7$6, [createElementVNode("span", _hoisted_8$4, toDisplayString(item.label), 1), item.description ? (openBlock(), createElementBlock("span", _hoisted_9$4, toDisplayString(item.description), 1)) : createCommentVNode("v-if", true)]))], 40, _hoisted_6$7);
|
|
318
331
|
}), 128))], 8, _hoisted_4$10)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(group.items, (item, index) => {
|
|
319
332
|
return openBlock(), createElementBlock("div", {
|
|
320
333
|
id: optionId(flatIndex(group, index)),
|
|
@@ -330,7 +343,7 @@ const _sfc_main$21 = /*@__PURE__*/ defineComponent({
|
|
|
330
343
|
}, [itemView.value ? (openBlock(), createBlock(resolveDynamicComponent(itemView.value), {
|
|
331
344
|
key: 0,
|
|
332
345
|
item
|
|
333
|
-
}, null, 8, ["item"])) : (openBlock(), createElementBlock("span",
|
|
346
|
+
}, null, 8, ["item"])) : (openBlock(), createElementBlock("span", _hoisted_11$3, [createElementVNode("span", _hoisted_12$1, toDisplayString(item.label), 1), item.description ? (openBlock(), createElementBlock("span", _hoisted_13$1, toDisplayString(item.description), 1)) : createCommentVNode("v-if", true)]))], 40, _hoisted_10$4);
|
|
334
347
|
}), 128))], 64);
|
|
335
348
|
}), 128))], 8, _hoisted_1$18)], 4), [[vShow, open.value]])]);
|
|
336
349
|
};
|
|
@@ -459,7 +472,7 @@ function insertTextAtCursor(editable, text) {
|
|
|
459
472
|
range.deleteContents();
|
|
460
473
|
const textNode = document.createTextNode(text);
|
|
461
474
|
range.insertNode(textNode);
|
|
462
|
-
range.
|
|
475
|
+
range.setStart(textNode, textNode.textContent?.length ?? 0);
|
|
463
476
|
range.collapse(true);
|
|
464
477
|
selection.removeAllRanges();
|
|
465
478
|
selection.addRange(range);
|
|
@@ -1017,13 +1030,11 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1017
1030
|
tokens.cleanupPortals();
|
|
1018
1031
|
}
|
|
1019
1032
|
const defaultPaste = useChatPasteAsToken({ input: self });
|
|
1020
|
-
const
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
publish(readValue());
|
|
1026
|
-
}
|
|
1033
|
+
const pastePassed = wasPropPassed("pasteAsToken");
|
|
1034
|
+
const pasteAsToken = computed(() => {
|
|
1035
|
+
if (!pastePassed) return defaultPaste;
|
|
1036
|
+
return props.pasteAsToken === false ? null : props.pasteAsToken ?? defaultPaste;
|
|
1037
|
+
});
|
|
1027
1038
|
function focusEditable() {
|
|
1028
1039
|
const editable = editableRef.value;
|
|
1029
1040
|
if (!editable) return;
|
|
@@ -1041,18 +1052,6 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1041
1052
|
editable.focus();
|
|
1042
1053
|
placeCaretAtEnd(editable);
|
|
1043
1054
|
}
|
|
1044
|
-
const handle = {
|
|
1045
|
-
insertToken: (token) => {
|
|
1046
|
-
const id = tokens.insertToken(token);
|
|
1047
|
-
if (id) publish(readValue());
|
|
1048
|
-
return id;
|
|
1049
|
-
},
|
|
1050
|
-
expandToken: (id) => tokens.expandToken(id),
|
|
1051
|
-
insertText,
|
|
1052
|
-
focus: focusEditable,
|
|
1053
|
-
getValue: readValue
|
|
1054
|
-
};
|
|
1055
|
-
self.value = handle;
|
|
1056
1055
|
const history = useComposerHistory({
|
|
1057
1056
|
enabled: historyEnabled,
|
|
1058
1057
|
editable: editableRef,
|
|
@@ -1071,6 +1070,25 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1071
1070
|
},
|
|
1072
1071
|
onEmitChange: () => publish(readValue())
|
|
1073
1072
|
});
|
|
1073
|
+
function insertText(text) {
|
|
1074
|
+
const editable = editableRef.value;
|
|
1075
|
+
if (!editable) return;
|
|
1076
|
+
insertTextAtCursor(editable, text);
|
|
1077
|
+
publish(readValue());
|
|
1078
|
+
menu.handleInput();
|
|
1079
|
+
}
|
|
1080
|
+
const handle = {
|
|
1081
|
+
insertToken: (token) => {
|
|
1082
|
+
const id = tokens.insertToken(token);
|
|
1083
|
+
if (id) publish(readValue());
|
|
1084
|
+
return id;
|
|
1085
|
+
},
|
|
1086
|
+
expandToken: (id) => tokens.expandToken(id),
|
|
1087
|
+
insertText,
|
|
1088
|
+
focus: focusEditable,
|
|
1089
|
+
getValue: readValue
|
|
1090
|
+
};
|
|
1091
|
+
self.value = handle;
|
|
1074
1092
|
const activeDescendant = computed(() => {
|
|
1075
1093
|
if (!menu.state.isActive || menu.state.highlightedIndex < 0) return void 0;
|
|
1076
1094
|
return `${menu.listboxId}-option-${menu.state.highlightedIndex}`;
|
|
@@ -1346,7 +1364,7 @@ const _hoisted_4$9 = {
|
|
|
1346
1364
|
key: 0,
|
|
1347
1365
|
class: "astryx-chat-composer__header"
|
|
1348
1366
|
};
|
|
1349
|
-
const _hoisted_5$
|
|
1367
|
+
const _hoisted_5$8 = { class: "astryx-chat-composer__header-start" };
|
|
1350
1368
|
const _hoisted_6$6 = { class: "astryx-chat-composer__header-end" };
|
|
1351
1369
|
const _hoisted_7$5 = { class: "astryx-chat-composer__input" };
|
|
1352
1370
|
const _hoisted_8$3 = { class: "astryx-chat-composer__footer" };
|
|
@@ -1474,7 +1492,7 @@ const _sfc_main$18 = /*@__PURE__*/ defineComponent({
|
|
|
1474
1492
|
onFocusin: onFocusIn,
|
|
1475
1493
|
onFocusout: onFocusOut
|
|
1476
1494
|
}, [
|
|
1477
|
-
hasHeader.value ? (openBlock(), createElementBlock("div", _hoisted_4$9, [createElementVNode("div", _hoisted_5$
|
|
1495
|
+
hasHeader.value ? (openBlock(), createElementBlock("div", _hoisted_4$9, [createElementVNode("div", _hoisted_5$8, [renderSlot(_ctx.$slots, "headerActions")]), createElementVNode("div", _hoisted_6$6, [renderSlot(_ctx.$slots, "headerContext")])])) : createCommentVNode("v-if", true),
|
|
1478
1496
|
createElementVNode("div", _hoisted_7$5, [renderSlot(_ctx.$slots, "input", {}, () => [createVNode(_sfc_main$20)])]),
|
|
1479
1497
|
createElementVNode("div", _hoisted_8$3, [createElementVNode("div", _hoisted_9$3, [renderSlot(_ctx.$slots, "footerActions")]), createElementVNode("div", {
|
|
1480
1498
|
class: "astryx-chat-composer__footer-end",
|
|
@@ -1506,7 +1524,7 @@ const _hoisted_2$10 = [
|
|
|
1506
1524
|
];
|
|
1507
1525
|
const _hoisted_3$8 = ["data-hidden"];
|
|
1508
1526
|
const _hoisted_4$8 = { class: "astryx-chat-drawer__label" };
|
|
1509
|
-
const _hoisted_5$
|
|
1527
|
+
const _hoisted_5$7 = ["data-hidden"];
|
|
1510
1528
|
const _hoisted_6$5 = [
|
|
1511
1529
|
"id",
|
|
1512
1530
|
"data-collapsed",
|
|
@@ -1579,7 +1597,7 @@ const _sfc_main$17 = /*@__PURE__*/ defineComponent({
|
|
|
1579
1597
|
}, null, 8, ["label"]), createElementVNode("span", _hoisted_4$8, toDisplayString(label.value), 1)])], 8, _hoisted_3$8), createElementVNode("div", {
|
|
1580
1598
|
class: "astryx-chat-drawer__handle",
|
|
1581
1599
|
"data-hidden": collapsed.value ? "" : void 0
|
|
1582
|
-
}, null, 8, _hoisted_5$
|
|
1600
|
+
}, null, 8, _hoisted_5$7)], 40, _hoisted_2$10)) : createCommentVNode("v-if", true), createElementVNode("div", {
|
|
1583
1601
|
id: unref(contentId),
|
|
1584
1602
|
class: "astryx-chat-drawer__grid",
|
|
1585
1603
|
"data-collapsed": canCollapse.value && collapsed.value ? "" : void 0,
|
|
@@ -1630,7 +1648,8 @@ const _sfc_main$15 = /*@__PURE__*/ defineComponent({
|
|
|
1630
1648
|
setup(__props) {
|
|
1631
1649
|
const props = __props;
|
|
1632
1650
|
const messages = useAstryxMessages();
|
|
1633
|
-
const
|
|
1651
|
+
const supported = computed(() => toValue(props.dictation.isSupported));
|
|
1652
|
+
const listening = computed(() => toValue(props.dictation.isListening));
|
|
1634
1653
|
const label = computed(() => props.label ?? (listening.value ? messages.value.chat.stopDictation : messages.value.chat.startDictation));
|
|
1635
1654
|
const sizes = {
|
|
1636
1655
|
sm: {
|
|
@@ -1645,18 +1664,18 @@ const _sfc_main$15 = /*@__PURE__*/ defineComponent({
|
|
|
1645
1664
|
}
|
|
1646
1665
|
};
|
|
1647
1666
|
const metrics = computed(() => sizes[props.size]);
|
|
1648
|
-
const bars = computed(() => props.dictation.bands.slice(0, BAR_COUNT).map((level, index) => ({
|
|
1667
|
+
const bars = computed(() => toValue(props.dictation.bands).slice(0, BAR_COUNT).map((level, index) => ({
|
|
1649
1668
|
key: `band-${index}`,
|
|
1650
1669
|
scale: BAR_MIN + Math.min(Math.sqrt(level / .2), 1) * .92
|
|
1651
1670
|
})));
|
|
1652
1671
|
const clipping = computed(() => {
|
|
1653
|
-
const volume = props.dictation.volume;
|
|
1672
|
+
const volume = toValue(props.dictation.volume);
|
|
1654
1673
|
if (volume < .2) return 0;
|
|
1655
1674
|
return Math.min((volume - .2) / .1, 1) * 100;
|
|
1656
1675
|
});
|
|
1657
1676
|
const barColor = computed(() => clipping.value > 0 ? `color-mix(in srgb, var(--astryx-color-accent), var(--astryx-color-error) ${clipping.value}%)` : "var(--astryx-color-accent)");
|
|
1658
1677
|
return (_ctx, _cache) => {
|
|
1659
|
-
return
|
|
1678
|
+
return supported.value || !__props.isHiddenWhenUnsupported ? (openBlock(), createElementBlock("span", mergeProps({ key: 0 }, _ctx.$attrs, { class: "astryx-chat-dictation" }), [listening.value ? (openBlock(), createElementBlock("span", {
|
|
1660
1679
|
key: 0,
|
|
1661
1680
|
class: "astryx-chat-dictation__bars",
|
|
1662
1681
|
"aria-hidden": "true",
|
|
@@ -1679,7 +1698,7 @@ const _sfc_main$15 = /*@__PURE__*/ defineComponent({
|
|
|
1679
1698
|
variant: "ghost",
|
|
1680
1699
|
size: __props.size,
|
|
1681
1700
|
"is-icon-only": "",
|
|
1682
|
-
"is-disabled": !
|
|
1701
|
+
"is-disabled": !supported.value,
|
|
1683
1702
|
onClick: _cache[0] || (_cache[0] = ($event) => __props.dictation.toggle())
|
|
1684
1703
|
}, createSlots({ _: 2 }, [!listening.value ? {
|
|
1685
1704
|
name: "icon",
|
|
@@ -1746,7 +1765,7 @@ const _hoisted_3$7 = {
|
|
|
1746
1765
|
class: "astryx-chat-layout__empty"
|
|
1747
1766
|
};
|
|
1748
1767
|
const _hoisted_4$7 = ["data-density"];
|
|
1749
|
-
const _hoisted_5$
|
|
1768
|
+
const _hoisted_5$6 = ["data-density"];
|
|
1750
1769
|
const _hoisted_6$4 = ["data-density"];
|
|
1751
1770
|
const _hoisted_7$3 = ["data-density"];
|
|
1752
1771
|
const _sfc_main$13 = /*@__PURE__*/ defineComponent({
|
|
@@ -1768,6 +1787,7 @@ const _sfc_main$13 = /*@__PURE__*/ defineComponent({
|
|
|
1768
1787
|
const root = useTemplateRef("root");
|
|
1769
1788
|
const scrollTarget = computed(() => props.scrollRef ?? root.value);
|
|
1770
1789
|
const isSelfScrolling = computed(() => props.scrollRef == null);
|
|
1790
|
+
useScrollbars(root, { enabled: isSelfScrolling });
|
|
1771
1791
|
const scroll = useChatStreamScroll({ scrollRef: scrollTarget });
|
|
1772
1792
|
const newMessages = useChatNewMessages({
|
|
1773
1793
|
isLocked: scroll.isLocked,
|
|
@@ -1818,7 +1838,7 @@ const _sfc_main$13 = /*@__PURE__*/ defineComponent({
|
|
|
1818
1838
|
createElementVNode("div", {
|
|
1819
1839
|
class: "astryx-chat-layout__blur",
|
|
1820
1840
|
"data-density": __props.density
|
|
1821
|
-
}, null, 8, _hoisted_5$
|
|
1841
|
+
}, null, 8, _hoisted_5$6),
|
|
1822
1842
|
createElementVNode("div", {
|
|
1823
1843
|
class: "astryx-chat-layout__composer",
|
|
1824
1844
|
"data-density": __props.density
|
|
@@ -1844,7 +1864,7 @@ const _hoisted_2$8 = {
|
|
|
1844
1864
|
};
|
|
1845
1865
|
const _hoisted_3$6 = ["data-sender"];
|
|
1846
1866
|
const _hoisted_4$6 = ["data-sender", "data-density"];
|
|
1847
|
-
const _hoisted_5$
|
|
1867
|
+
const _hoisted_5$5 = {
|
|
1848
1868
|
key: 1,
|
|
1849
1869
|
class: "astryx-chat-message__metadata"
|
|
1850
1870
|
};
|
|
@@ -1903,7 +1923,7 @@ const _sfc_main$12 = /*@__PURE__*/ defineComponent({
|
|
|
1903
1923
|
"data-sender": __props.sender,
|
|
1904
1924
|
"data-density": density.value
|
|
1905
1925
|
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_4$6),
|
|
1906
|
-
!isSystem.value && _ctx.$slots.metadata ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1926
|
+
!isSystem.value && _ctx.$slots.metadata ? (openBlock(), createElementBlock("div", _hoisted_5$5, [renderSlot(_ctx.$slots, "metadata")])) : createCommentVNode("v-if", true)
|
|
1907
1927
|
], 8, _hoisted_3$6)], 16, _hoisted_1$11);
|
|
1908
1928
|
};
|
|
1909
1929
|
}
|
|
@@ -1992,7 +2012,12 @@ const _hoisted_3$4 = {
|
|
|
1992
2012
|
class: "astryx-chat-message-list__loading"
|
|
1993
2013
|
};
|
|
1994
2014
|
const _hoisted_4$4 = {
|
|
1995
|
-
key:
|
|
2015
|
+
key: 2,
|
|
2016
|
+
class: "astryx-chat-message-list__spacer",
|
|
2017
|
+
"aria-hidden": "true"
|
|
2018
|
+
};
|
|
2019
|
+
const _hoisted_5$4 = {
|
|
2020
|
+
key: 4,
|
|
1996
2021
|
class: "astryx-chat-message-list__empty"
|
|
1997
2022
|
};
|
|
1998
2023
|
const _sfc_main$10 = /*@__PURE__*/ defineComponent({
|
|
@@ -2007,7 +2032,8 @@ const _sfc_main$10 = /*@__PURE__*/ defineComponent({
|
|
|
2007
2032
|
type: Boolean,
|
|
2008
2033
|
default: false
|
|
2009
2034
|
},
|
|
2010
|
-
label: {}
|
|
2035
|
+
label: {},
|
|
2036
|
+
align: { default: "bottom" }
|
|
2011
2037
|
},
|
|
2012
2038
|
setup(__props) {
|
|
2013
2039
|
const props = __props;
|
|
@@ -2072,11 +2098,8 @@ const _sfc_main$10 = /*@__PURE__*/ defineComponent({
|
|
|
2072
2098
|
size: "md",
|
|
2073
2099
|
"aria-label": unref(messages).chat.toolRunning
|
|
2074
2100
|
}, null, 8, ["aria-label"])])) : createCommentVNode("v-if", true),
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
"aria-hidden": "true"
|
|
2078
|
-
}, null, -1)),
|
|
2079
|
-
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 2) : _ctx.$slots.empty ? (openBlock(), createElementBlock("div", _hoisted_4$4, [renderSlot(_ctx.$slots, "empty")])) : createCommentVNode("v-if", true)
|
|
2101
|
+
__props.align === "bottom" ? (openBlock(), createElementBlock("div", _hoisted_4$4)) : createCommentVNode("v-if", true),
|
|
2102
|
+
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 3) : _ctx.$slots.emptyState || _ctx.$slots.empty ? (openBlock(), createElementBlock("div", _hoisted_5$4, [_ctx.$slots.emptyState ? renderSlot(_ctx.$slots, "emptyState", {}, void 0, void 0, 0) : renderSlot(_ctx.$slots, "empty", {}, void 0, void 0, 1)])) : createCommentVNode("v-if", true)
|
|
2080
2103
|
], 8, _hoisted_2$6)], 16, _hoisted_1$9);
|
|
2081
2104
|
};
|
|
2082
2105
|
}
|
|
@@ -2357,11 +2380,22 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
|
2357
2380
|
},
|
|
2358
2381
|
setup(__props) {
|
|
2359
2382
|
const props = __props;
|
|
2383
|
+
const slots = useSlots();
|
|
2360
2384
|
function escapeRegExp(value) {
|
|
2361
2385
|
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2362
2386
|
}
|
|
2363
|
-
|
|
2364
|
-
|
|
2387
|
+
/** Text of the default slot. Only plain strings contribute; other content is ignored. */
|
|
2388
|
+
function slotText() {
|
|
2389
|
+
const nodes = slots.default?.();
|
|
2390
|
+
if (!nodes) return "";
|
|
2391
|
+
return nodes.map((node) => typeof node.children === "string" ? node.children : "").join("");
|
|
2392
|
+
}
|
|
2393
|
+
/**
|
|
2394
|
+
* Splits the message into plain runs and token runs. Built during render so a
|
|
2395
|
+
* new slot value from the parent re-splits on the same tick.
|
|
2396
|
+
*/
|
|
2397
|
+
function buildParts() {
|
|
2398
|
+
const text = props.text ?? slotText();
|
|
2365
2399
|
const tokens = (props.tokens ?? []).filter((token) => token.value.length > 0);
|
|
2366
2400
|
if (text.length === 0 || tokens.length === 0) return [{
|
|
2367
2401
|
key: "all",
|
|
@@ -2394,9 +2428,9 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
|
2394
2428
|
text: text.slice(last)
|
|
2395
2429
|
});
|
|
2396
2430
|
return rendered;
|
|
2397
|
-
}
|
|
2431
|
+
}
|
|
2398
2432
|
return (_ctx, _cache) => {
|
|
2399
|
-
return openBlock(), createElementBlock("span", mergeProps(_ctx.$attrs, { class: "astryx-chat-tokenized" }), [(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
2433
|
+
return openBlock(), createElementBlock("span", mergeProps(_ctx.$attrs, { class: "astryx-chat-tokenized" }), [(openBlock(true), createElementBlock(Fragment, null, renderList(buildParts(), (part) => {
|
|
2400
2434
|
return openBlock(), createElementBlock(Fragment, { key: part.key }, [part.token ? (openBlock(), createElementBlock("span", _hoisted_1$5, [createVNode(_sfc_main$22, { token: part.token }, null, 8, ["token"])])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(part.text), 1)], 64))], 64);
|
|
2401
2435
|
}), 128))], 16);
|
|
2402
2436
|
};
|
|
@@ -2636,8 +2670,11 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
2636
2670
|
function rowKey(call, index) {
|
|
2637
2671
|
return call.key ?? `${call.name}\u001F${call.target ?? ""}\u001F${call.node ?? ""}\u001F${index}`;
|
|
2638
2672
|
}
|
|
2673
|
+
function detailOf(call) {
|
|
2674
|
+
return call.resultDetail ?? call.detail;
|
|
2675
|
+
}
|
|
2639
2676
|
function expandable(call) {
|
|
2640
|
-
return
|
|
2677
|
+
return detailOf(call) != null || Boolean(slots.detail);
|
|
2641
2678
|
}
|
|
2642
2679
|
__expose({ element: root });
|
|
2643
2680
|
return (_ctx, _cache) => {
|
|
@@ -2651,7 +2688,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
2651
2688
|
expandable: expandable(single.value)
|
|
2652
2689
|
}, createSlots({ _: 2 }, [expandable(single.value) ? {
|
|
2653
2690
|
name: "detail",
|
|
2654
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "detail", { call: single.value }, () => [createTextVNode(toDisplayString(single.value
|
|
2691
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "detail", { call: single.value }, () => [createTextVNode(toDisplayString(detailOf(single.value)), 1)])]),
|
|
2655
2692
|
key: "0"
|
|
2656
2693
|
} : void 0]), 1032, ["call", "expandable"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("button", {
|
|
2657
2694
|
type: "button",
|
|
@@ -2695,7 +2732,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
2695
2732
|
expandable: expandable(call)
|
|
2696
2733
|
}, createSlots({ _: 2 }, [expandable(call) ? {
|
|
2697
2734
|
name: "detail",
|
|
2698
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "detail", { call }, () => [createTextVNode(toDisplayString(call
|
|
2735
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "detail", { call }, () => [createTextVNode(toDisplayString(detailOf(call)), 1)])]),
|
|
2699
2736
|
key: "0"
|
|
2700
2737
|
} : void 0]), 1032, ["call", "expandable"]);
|
|
2701
2738
|
}), 128))])])], 8, _hoisted_8)], 64))], 16)) : createCommentVNode("v-if", true);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Aa as CheckboxInputProps, Da as CheckboxInputChangeAction, Ea as _default, Ma as CheckboxValue, Oa as CheckboxInputChangeEvent, ja as CheckboxInputSlots, ka as CheckboxInputEmits } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as CheckboxInput, type CheckboxInputChangeAction, type CheckboxInputChangeEvent, type CheckboxInputEmits, type CheckboxInputProps, type CheckboxInputSlots, type CheckboxValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../CheckboxInput-
|
|
1
|
+
import { t as _sfc_main } from "../CheckboxInput-BS9J6edf.js";
|
|
2
2
|
export { _sfc_main as CheckboxInput };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
|
-
import { n as useButtonTooltip } from "./Button-
|
|
2
|
+
import { n as useButtonTooltip } from "./Button-B6Hj_O_s.js";
|
|
3
3
|
import { t as _sfc_main$2 } from "./ButtonTooltip-nWWrth8j.js";
|
|
4
4
|
import { i as useAriaRequired } from "./context-Cfjh8te1.js";
|
|
5
|
-
import { t as _sfc_main$3 } from "./FieldLabel-
|
|
5
|
+
import { t as _sfc_main$3 } from "./FieldLabel-BNeXRuGH.js";
|
|
6
6
|
import { t as _sfc_main$4 } from "./FieldStatus-MjY19ERl.js";
|
|
7
7
|
import { t as useIndicator } from "./useIndicator-i1NORM7W.js";
|
|
8
8
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onUpdated, openBlock, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ca as CheckboxListItemEmits, Sa as CheckboxListEmits, Ta as CheckboxListProps, ba as _default$1, wa as CheckboxListItemProps, xa as _default } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as CheckboxList, type CheckboxListEmits, _default$1 as CheckboxListItem, type CheckboxListItemEmits, type CheckboxListItemProps, type CheckboxListProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../CheckboxList-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../CheckboxList-CX1i_jVP.js";
|
|
2
2
|
export { _sfc_main as CheckboxList, _sfc_main$1 as CheckboxListItem };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { o as useAstryxMessages } from "./context-
|
|
2
|
-
import { t as _sfc_main$2 } from "./Tooltip-
|
|
3
|
-
import { r as useItemDescriptionId } from "./Item-
|
|
4
|
-
import { t as _sfc_main$3 } from "./CheckboxInput-
|
|
5
|
-
import { t as _sfc_main$4 } from "./Field-
|
|
6
|
-
import { n as _sfc_main$5, t as _sfc_main$6 } from "./ListItem-
|
|
1
|
+
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "./Tooltip-C4Vaqd3G.js";
|
|
3
|
+
import { r as useItemDescriptionId } from "./Item-KhFKX9St.js";
|
|
4
|
+
import { t as _sfc_main$3 } from "./CheckboxInput-BS9J6edf.js";
|
|
5
|
+
import { t as _sfc_main$4 } from "./Field-D5gUEGw4.js";
|
|
6
|
+
import { n as _sfc_main$5, t as _sfc_main$6 } from "./ListItem-8RWT8XAG.js";
|
|
7
7
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, inject, mergeModels, openBlock, provide, ref, renderSlot, toDisplayString, unref, useId, useModel, useTemplateRef, withCtx } from "vue";
|
|
8
8
|
import "../styles/checkbox-list.css";
|
|
9
9
|
import "../styles/visually-hidden-utility.css";
|
|
@@ -25,6 +25,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
25
25
|
default: false
|
|
26
26
|
},
|
|
27
27
|
isDisabled: { type: Boolean },
|
|
28
|
+
disabledMessage: {},
|
|
28
29
|
disabledReason: {},
|
|
29
30
|
isReadOnly: { type: Boolean },
|
|
30
31
|
changeAction: {},
|
|
@@ -49,7 +50,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
49
50
|
const optimistic = ref(null);
|
|
50
51
|
const shown = computed(() => optimistic.value ?? model.value);
|
|
51
52
|
const groupDisabled = computed(() => props.isDisabled ?? false);
|
|
52
|
-
const disabledReason = computed(() => props.disabledReason?.trim() || void 0);
|
|
53
|
+
const disabledReason = computed(() => (props.disabledMessage ?? props.disabledReason)?.trim() || void 0);
|
|
53
54
|
const showsReason = computed(() => groupDisabled.value && disabledReason.value != null);
|
|
54
55
|
function toggle(value, checked) {
|
|
55
56
|
if (props.isReadOnly || pending.value.includes(value)) return;
|
package/dist/Citation/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Citation-
|
|
1
|
+
import { t as _sfc_main } from "../Citation-Djgwa0ko.js";
|
|
2
2
|
export { _sfc_main as Citation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as useAstryxMessages } from "./context-
|
|
1
|
+
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
2
2
|
import { t as _sfc_main$1 } from "./Icon-bteSId7T.js";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, openBlock, toDisplayString, useTemplateRef } from "vue";
|
|
4
4
|
import "../styles/citation.css";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _a as ClickableCardEmits, ga as _default, va as ClickableCardProps, ya as ClickableCardSlots } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as ClickableCard, _default as default, type ClickableCardEmits, type ClickableCardProps, type ClickableCardSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as ClickableCard_default } from "../ClickableCard-
|
|
1
|
+
import { n as _sfc_main, t as ClickableCard_default } from "../ClickableCard-DUsC-j03.js";
|
|
2
2
|
export { _sfc_main as ClickableCard, ClickableCard_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
2
|
import { n as useClickableContainer } from "./useClickableContainer-DyNpnSEa.js";
|
|
3
|
-
import { t as _sfc_main$2 } from "./Card-
|
|
3
|
+
import { t as _sfc_main$2 } from "./Card-B-I24X9S.js";
|
|
4
4
|
import { computed, createBlock, defineComponent, openBlock, renderSlot, useTemplateRef, withCtx } from "vue";
|
|
5
5
|
import "../styles/clickable-card.css";
|
|
6
6
|
//#region src/ClickableCard/ClickableCard.vue
|
package/dist/Code/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as SyntaxThemeInput, c as SyntaxTokenValue, i as SyntaxThemeDefinition, l as defineSyntaxTheme, n as SYNTAX_TOKEN_KEYS, o as SyntaxThemeTokens, r as SyntaxDiffTokenKey, s as SyntaxTokenKey, t as DIFF_SYNTAX_TOKEN_KEYS, u as githubDark } from "../syntaxTheme-CwVEcVDk.js";
|
|
2
|
-
import { A as _default, B as CodeSlots, C as applyHighlightRanges, D as parseFenceLanguage, E as diffLineKind, F as CodeBlockTokenizer, H as TokenLine, I as CodeColor, L as CodeHighlightMode, M as CodeBlockEmits, N as CodeBlockProps, O as splitDiffLines, P as CodeBlockSize, R as CodeProps, S as HIGHLIGHTED_TOKEN_TYPES, T as DiffLines, V as SyntaxToken, _ as oneDarkPro, a as tokenize, b as tokyoNight, c as allSyntaxPresets, d as darkSyntaxPresets, f as dracula, g as nord, h as monokai, i as flatTokensToLines, j as CodeBlockContainer, k as _default$1, l as catppuccinLatte, m as lightSyntaxPresets, n as useSyntaxTheme, o as tokenizeAsync, p as githubLight, r as SYNC_TOKENIZE_THRESHOLD, s as _default$2, t as UseSyntaxThemeReturn, u as catppuccinMocha, v as oneLight, w as DiffLineKind, x as tokyoNightLight, y as solarizedLight, z as CodeSize } from "../index-
|
|
2
|
+
import { A as _default, B as CodeSlots, C as applyHighlightRanges, D as parseFenceLanguage, E as diffLineKind, F as CodeBlockTokenizer, H as TokenLine, I as CodeColor, L as CodeHighlightMode, M as CodeBlockEmits, N as CodeBlockProps, O as splitDiffLines, P as CodeBlockSize, R as CodeProps, S as HIGHLIGHTED_TOKEN_TYPES, T as DiffLines, V as SyntaxToken, _ as oneDarkPro, a as tokenize, b as tokyoNight, c as allSyntaxPresets, d as darkSyntaxPresets, f as dracula, g as nord, h as monokai, i as flatTokensToLines, j as CodeBlockContainer, k as _default$1, l as catppuccinLatte, m as lightSyntaxPresets, n as useSyntaxTheme, o as tokenizeAsync, p as githubLight, r as SYNC_TOKENIZE_THRESHOLD, s as _default$2, t as UseSyntaxThemeReturn, u as catppuccinMocha, v as oneLight, w as DiffLineKind, x as tokyoNightLight, y as solarizedLight, z as CodeSize } from "../index-hCpxKePE.js";
|
|
3
3
|
import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-CU-kfqeJ.js";
|
|
4
4
|
export { _default as Code, _default$1 as CodeBlock, type CodeBlockContainer, type CodeBlockEmits, type CodeBlockProps, type CodeBlockSize, type CodeBlockTokenizer, type CodeColor, type CodeHighlightMode, type CodeProps, type CodeSize, type CodeSlots, type UseClipboardOptions as CopyToClipboardOptions, type UseClipboardReturn as CopyToClipboardReturn, DIFF_SYNTAX_TOKEN_KEYS, type DiffLineKind, type DiffLines, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, type SyntaxDiffTokenKey, _default$2 as SyntaxTheme, type SyntaxThemeDefinition, type SyntaxThemeInput, type SyntaxThemeTokens, type SyntaxToken, type SyntaxTokenKey, type SyntaxTokenValue, type TokenLine, type UseSyntaxThemeReturn, allSyntaxPresets, applyHighlightRanges, catppuccinLatte, catppuccinMocha, darkSyntaxPresets, defineSyntaxTheme, diffLineKind, dracula, flatTokensToLines, githubDark, githubLight, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, parseFenceLanguage, solarizedLight, splitDiffLines, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
package/dist/Code/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useClipboard } from "../useClipboard-BDfbEsWd.js";
|
|
2
|
-
import { a as tokenizeAsync, c as splitDiffLines, d as _sfc_main, i as tokenize, l as HIGHLIGHTED_TOKEN_TYPES, n as SYNC_TOKENIZE_THRESHOLD, o as diffLineKind, r as flatTokensToLines, s as parseFenceLanguage, t as _sfc_main$1, u as applyHighlightRanges } from "../CodeBlock-
|
|
2
|
+
import { a as tokenizeAsync, c as splitDiffLines, d as _sfc_main, i as tokenize, l as HIGHLIGHTED_TOKEN_TYPES, n as SYNC_TOKENIZE_THRESHOLD, o as diffLineKind, r as flatTokensToLines, s as parseFenceLanguage, t as _sfc_main$1, u as applyHighlightRanges } from "../CodeBlock-D0BFubut.js";
|
|
3
3
|
import { i as githubDark, n as SYNTAX_TOKEN_KEYS, r as defineSyntaxTheme, t as DIFF_SYNTAX_TOKEN_KEYS } from "../syntaxTheme-R7xnu5x5.js";
|
|
4
4
|
import { a as catppuccinMocha, c as githubLight, d as nord, f as oneDarkPro, g as tokyoNightLight, h as tokyoNight, i as catppuccinLatte, l as lightSyntaxPresets, m as solarizedLight, n as _sfc_main$2, o as darkSyntaxPresets, p as oneLight, r as allSyntaxPresets, s as dracula, t as useSyntaxTheme, u as monokai } from "../Code-XnPuGxey.js";
|
|
5
5
|
export { _sfc_main as Code, _sfc_main$1 as CodeBlock, DIFF_SYNTAX_TOKEN_KEYS, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, _sfc_main$2 as SyntaxTheme, allSyntaxPresets, applyHighlightRanges, catppuccinLatte, catppuccinMocha, darkSyntaxPresets, defineSyntaxTheme, diffLineKind, dracula, flatTokensToLines, githubDark, githubLight, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, parseFenceLanguage, solarizedLight, splitDiffLines, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as _sfc_main$3 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
2
|
import { t as useClipboard } from "./useClipboard-BDfbEsWd.js";
|
|
3
|
-
import { t as _sfc_main$4 } from "./IconButton-
|
|
3
|
+
import { t as _sfc_main$4 } from "./IconButton-DDNgNl7B.js";
|
|
4
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
4
5
|
import { t as _sfc_main$5 } from "./Icon-bteSId7T.js";
|
|
5
6
|
import { a as syntaxThemeStyle } from "./syntaxTheme-R7xnu5x5.js";
|
|
6
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useAttrs, useId, useTemplateRef, watch, withCtx, withModifiers } from "vue";
|
|
@@ -161,6 +162,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
161
162
|
setup(__props) {
|
|
162
163
|
const props = __props;
|
|
163
164
|
const code = useTemplateRef("code");
|
|
165
|
+
const scrollEl = useTemplateRef("scroll");
|
|
166
|
+
useScrollbars(scrollEl);
|
|
164
167
|
const chunks = computed(() => {
|
|
165
168
|
const lines = props.lines;
|
|
166
169
|
if (lines.length < CHUNK_THRESHOLD) return [{
|
|
@@ -252,6 +255,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
252
255
|
onBeforeUnmount(() => removeRanges?.());
|
|
253
256
|
return (_ctx, _cache) => {
|
|
254
257
|
return openBlock(), createElementBlock("div", {
|
|
258
|
+
ref: "scroll",
|
|
255
259
|
class: "astryx-code-block__scroll",
|
|
256
260
|
role: "group",
|
|
257
261
|
tabindex: "0",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { _default as Collapsible, type CollapsibleChevronPosition, type CollapsibleEmits, _default$1 as CollapsibleGroup, type CollapsibleGroupDensity, type CollapsibleGroupEmits, type CollapsibleGroupProps, type CollapsibleGroupSlots, type CollapsibleGroupType, type CollapsibleGroupValue, type CollapsibleProps, type CollapsibleSlots };
|
|
1
|
+
import { a as _default$1, c as CollapsibleGroupSlots, d as CollapsibleGroupValue, f as _default, g as CollapsibleSlots, h as CollapsibleProps, i as useCollapsible, l as CollapsibleGroupDensity, m as CollapsibleEmits, n as UseCollapsibleOptions, o as CollapsibleGroupEmits, p as CollapsibleChevronPosition, r as UseCollapsibleReturn, s as CollapsibleGroupProps, t as CollapsibleConfig, u as CollapsibleGroupType } from "../index-BkjSF265.js";
|
|
2
|
+
export { _default as Collapsible, type CollapsibleChevronPosition, type CollapsibleConfig, type CollapsibleEmits, _default$1 as CollapsibleGroup, type CollapsibleGroupDensity, type CollapsibleGroupEmits, type CollapsibleGroupProps, type CollapsibleGroupSlots, type CollapsibleGroupType, type CollapsibleGroupValue, type CollapsibleProps, type CollapsibleSlots, type UseCollapsibleOptions, type UseCollapsibleReturn, useCollapsible };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../Collapsible-
|
|
2
|
-
export { _sfc_main as Collapsible, _sfc_main$1 as CollapsibleGroup };
|
|
1
|
+
import { n as _sfc_main, r as useCollapsible, t as _sfc_main$1 } from "../Collapsible-Cov3Pyq5.js";
|
|
2
|
+
export { _sfc_main as Collapsible, _sfc_main$1 as CollapsibleGroup, useCollapsible };
|