@astryx-vue/core 0.25.0 → 0.26.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/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-Cub9_aPC.js → AlertDialog-Sku86l_R.js} +191 -5
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-D62A7lqZ.js → AppShell-CJWvaqgZ.js} +5 -5
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-BKoSK75s.js → Avatar-C5KaulzE.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Badge/index.d.ts +1 -2
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-DGhRZLw4.js → BottomSheet-BtuF3uH6.js} +6 -3
- package/dist/{BottomSheet-CpLYy3vb.js → BottomSheet-DKrJyrhw.js} +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-D-nHDHV8.js → Breadcrumbs-Cvzwy6sZ.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-U1qq8gkF.js → Chat-BIHEfSec.js} +202 -40
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-qm6lkjAw.js → CheckboxInput-wmX3Ekj-.js} +5 -5
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DuCKhJHJ.js → CheckboxList-JWXHHU-u.js} +4 -4
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BmUloCSR.js → Collapsible-BDCJRfFN.js} +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-Cy7trpD3.js → CommandPalette-CJyQd7P-.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DMBiVQWp.js → ComplexSelector-DIb8LjYJ.js} +4 -4
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-63ay7EE-.js → ContextMenu-HLvsROcS.js} +4 -4
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-B3Q91FDT.js → DateInput-D5YBijbb.js} +14 -33
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-B6Z66OsH.js → DateRangeInput-BlcHsqgx.js} +5 -5
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-B_7cn7ze.js → DateTimeInput-Bx3LWb9Y.js} +6 -6
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-CBPD5b-S.js → Dialog-CNLEL4Mf.js} +1 -1
- package/dist/{Dialog-C4FZ7p7Q.js → Dialog-CxeXQTqH.js} +1 -1
- package/dist/{DialogHeader-CQ3pnLYi.js → DialogHeader-CjXS_wba.js} +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-BOwQLKm9.js → Drawer-B_4HN6v5.js} +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-9CR9TiKG.js → DropdownMenu-CvdeExRQ.js} +3 -3
- package/dist/{DropdownMenu-DwIfoTnV.js → DropdownMenu-D_fBzKvf.js} +38 -9
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BG5g2jwJ.js → EmptyState-DUaFClsX.js} +4 -50
- package/dist/Field/index.d.ts +3 -3
- package/dist/Field/index.js +2 -2
- package/dist/{Field-eAowUUMX.js → Field-Btyrw1hd.js} +2 -2
- package/dist/{FieldLabel-CgYk-ORu.js → FieldLabel-B4l3sS4O.js} +3 -3
- 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-B7zeePbM.js → FileInput-BUwV9fQa.js} +135 -85
- package/dist/FormLayout/index.js +1 -1
- package/dist/{FormLayout-CGJVeNsL.js → FormLayout-0_X9o-L4.js} +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-B1dNZQtu.js → Heading-BuZaxfIK.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-LJi9llxi.js → InfoTip-BDo2xI8h.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-B8PGJZKH.js → InputGroup-1Ukiu-dg.js} +6 -6
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-DaZS5Dch.js → InternationalizationProvider-B2Gv5yAm.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-B75ygGzG.js → Link-ruNSnGtC.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-Cqrcj-ct.js → Markdown-C-KT_riK.js} +2 -2
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DLpEONfs.js → MobileNavToggle-BGNYwwfI.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-aR88r9xp.js → MoreMenu-DnwzVBEE.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-UTaDe-YT.js → MultiSelector-Cl_HzKvn.js} +6 -6
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenu-DS6y8ZAY.js → NavMenu-pCZjhMHe.js} +1 -1
- package/dist/{NavMenuItem-BqIi3o3D.js → NavMenuItem-BIqpJmH6.js} +1 -1
- package/dist/NumberInput/index.d.ts +2 -2
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-ClkOGF5j.js → NumberInput-Dz0H_XPw.js} +384 -97
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-UnVXBDIW.js → OverflowList-MCN1PhBB.js} +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-CTCLE02h.js → Pagination-Cq9BIzPe.js} +59 -48
- package/dist/Popover/index.d.ts +3 -3
- package/dist/Popover/index.js +1 -1
- package/dist/Popover-BJAyg1Qh.js +1247 -0
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-BBOum0TP.js → PowerSearch-wXnusKnz.js} +14 -14
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-Bgg6zsKR.js → ProgressBar-C6x0E-BF.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-DPy5JQhm.js → RadioGroup-LUDji_LA.js} +5 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-UN7IxQg8.js → RadioList-CmeUUgn-.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-CCtsUveZ.js → Selector-BL_JH51H.js} +6 -6
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-COl5ApOz.js → SideNav-DtAQA-o-.js} +5 -5
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-CYie9hWm.js → Slider-DEMdW9An.js} +3 -3
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-CHfgSYmv.js → StatusDot-_rucEf3d.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-D24CvhDS.js → Switch-BxRYZTQV.js} +5 -5
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-DToCh5JW.js → TabList-D8KzfcGB.js} +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-D3mzxBr0.js → Table-DYDBgr3y.js} +14 -14
- package/dist/Text/index.js +1 -1
- package/dist/{Text-5p-eZodt.js → Text-CHauN5So.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-Bp6D-riO.js → TextArea-BJl6YH4p.js} +53 -19
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-BYslwBDZ.js → TextInput-CGOVY0Zk.js} +77 -33
- package/dist/Theme/index.d.ts +2 -2
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-B_a8tOS7.js → Thumbnail-C3MvJ67s.js} +1 -1
- package/dist/{TimeField-MDSJny9m.js → TimeField-C2of7Ok5.js} +12 -31
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-B19amuxi.js → TimeInput-B_YY-IHW.js} +3 -3
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-BD3tfzrF.js → Timer-OULaFQFf.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-CqWoZUKM.js → Timestamp-B6J0nfYH.js} +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-C-eorFsF.js → Tokenizer-CSmIMDc4.js} +2 -2
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-88zhGfzF.js → Tooltip-gT9_hIEv.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-DMFIsFwy.js → TopNav-BsrhSbkn.js} +2 -2
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-nU2gSmQm.js → TreeList-BEPHdVYu.js} +2 -2
- package/dist/Typeahead/index.d.ts +2 -2
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-DUQfmy_r.js → Typeahead-CdLc7S2v.js} +3 -3
- package/dist/{types-fRasDCe4.d.ts → adaptationTypes-Cn_pfrsw.d.ts} +155 -155
- package/dist/animator-BooLoGyI.js +3164 -0
- package/dist/announceRenderedText-CslZ0cev.js +50 -0
- package/dist/{assertOptions-DVRsfCk1.js → assertOptions-CFn7Gdcr.js} +1 -1
- package/dist/{batch-DR5SgbnX.js → batch-CM-vJhQg.js} +2 -278
- package/dist/{handle-ma1yF_B_.js → bezier-Cts7gENO.js} +1 -21
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +3 -3
- package/dist/{composables-Do86VAmM.js → composables-D9DVeNnL.js} +4 -3162
- package/dist/{context-DsNhYm5O.js → context-CrVCeUUK.js} +1 -1
- package/dist/context-DH8E-qjm.js +173 -0
- package/dist/{edge-qfeek_VV.js → edge-BYXwSggM.js} +1 -1
- package/dist/{edgeRide-iWUNdlxe.js → edgeRide-B5mlN2Q4.js} +3 -3
- package/dist/escape-DzSxSmez.js +10 -0
- package/dist/{field-CehUqCe0.js → field-BaUBjqf5.js} +4 -2
- package/dist/{fieldParts-CbWvZLhH.js → fieldParts-CuE5V12i.js} +1 -1
- package/dist/handle-BazRxHwq.js +22 -0
- package/dist/holdEntranceInput-DMCOeRqu.js +37 -0
- package/dist/{index-CuW4AQ7M.d.ts → index--kbwaSXW.d.ts} +1 -1
- package/dist/{index-CsYDrQ9R.d.ts → index-668zPVsH.d.ts} +1 -1
- package/dist/{index-_FjbcSgD.d.ts → index-7Q-wnbe7.d.ts} +1 -1
- package/dist/{index-CO9GW-ik.d.ts → index-B-3EGjfQ.d.ts} +1 -1
- package/dist/{index-Dcxqzk_d.d.ts → index-B3uBbehw.d.ts} +4 -4
- package/dist/{index-CnVjgLP5.d.ts → index-BCW6qCcS.d.ts} +1 -1
- package/dist/{index-QnlWyUxN.d.ts → index-BFGtLIp8.d.ts} +2 -2
- package/dist/{index-DDAcxZAP.d.ts → index-BZUVNr2c.d.ts} +1 -1
- package/dist/{index-BhdxP-OG.d.ts → index-BcRvRqWU.d.ts} +2 -2
- package/dist/{index-CEjvYAUZ.d.ts → index-BenG-F5d.d.ts} +1 -1
- package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
- package/dist/{index-DofC9Rll.d.ts → index-BtqvPjAf.d.ts} +1 -1
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/{index-BtgkNd0Q.d.ts → index-C2HVLdNb.d.ts} +2 -2
- package/dist/{index-mK1ICsVg.d.ts → index-C3JmGujU.d.ts} +1 -1
- package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
- package/dist/{index-CbA8rR_b.d.ts → index-CBOv5j3c.d.ts} +1 -1
- package/dist/{index-BfoazhEu.d.ts → index-CTXG-KKT.d.ts} +1 -1
- package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-lmd9LZKB.d.ts → index-ClJINYPl.d.ts} +5 -2
- package/dist/index-CuFLztiI.d.ts +49 -0
- package/dist/{index-BxWCX2pJ.d.ts → index-DFLPv9io.d.ts} +3 -3
- package/dist/index-DHUCHxn2.d.ts +69 -0
- package/dist/{index-B52PMrO7.d.ts → index-DHsYyqMP.d.ts} +3 -3
- package/dist/{index-GmoeIuhl.d.ts → index-DMZ5SKJJ.d.ts} +35 -3
- package/dist/{index-DYabo8TI.d.ts → index-DPhQZXYw.d.ts} +1 -1
- package/dist/{index-BjmMJ_4E.d.ts → index-DSEEgvak.d.ts} +1149 -211
- package/dist/{index-DxR6cZBf.d.ts → index-DZCpswvp.d.ts} +1 -1
- package/dist/{index-etx25Eq-.d.ts → index-NOxH5oYj.d.ts} +1 -1
- package/dist/{index-CH-xSiJz.d.ts → index-XY0rleGM.d.ts} +2 -2
- package/dist/{index-0RIgvtdm.d.ts → index-ZXrvTM3A.d.ts} +2 -2
- package/dist/{index-DGXCnzOL.d.ts → index-aHC2C89h.d.ts} +1 -1
- package/dist/{index-0pBqcQXV.d.ts → index-tpkJfk6X.d.ts} +6 -1
- package/dist/index.d.ts +44 -45
- package/dist/index.js +74 -74
- package/dist/{holdEntranceInput-DjEzfGRU.js → inputHold-BmChuR9x.js} +87 -85
- package/dist/inputHoldState-pblUT4oh.js +39 -0
- package/dist/{landing-qVsYAZ-v.js → landing-B9Uvex6x.js} +3 -2
- package/dist/lazyBottomSheet-CL_PrTxb.js +16 -0
- package/dist/{loadCatalog-C8mRnC0E.d.ts → loadCatalog-2Hu-xisJ.d.ts} +2 -0
- package/dist/{loadCatalog-BeQt6Uq-.js → loadCatalog-umh_C97k.js} +2 -1
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -3
- package/dist/{locale-B4FpGKpc.js → locale-BDPlcO62.js} +1 -1
- package/dist/{useHeldPresentation-fQsuYFhz.js → presentationHold-7IkbR4d8.js} +14 -22
- package/dist/progress-FQfSgLZC.js +38 -0
- package/dist/renderedText-BwJdmps3.js +32 -0
- package/dist/textEntryTraits-cb0LZSNl.js +11 -0
- package/dist/themeTiming-CWEvdh31.js +287 -0
- package/dist/{context-WY1ippwe.js → transientCopy-VAsg2a46.js} +1 -172
- package/dist/{types-OGMYGejX.d.ts → types-BA1veIoa.d.ts} +25 -2
- package/dist/{types-bAQk3F8G.d.ts → types-Cvh2VwQZ.d.ts} +4 -2
- package/dist/{types-C1ydeFiu.d.ts → types-DL-hRibg.d.ts} +1 -1
- package/dist/{useChatStreamScroll-BIMKffDA.js → useChatStreamScroll-Cv51kRT0.js} +91 -30
- package/dist/useEntryErrorReport-Wee3N8IA.js +51 -0
- package/dist/useHeldPresentation-7MH-RlSF.js +24 -0
- package/dist/{useInputStatusIcon-B6m_t8cK.d.ts → useInputStatusIcon-CFkOmDS4.d.ts} +1 -1
- package/dist/{useMenuDrillIn-CDn2na4X.js → useMenuDrillIn-CP0P49ej.js} +1 -1
- package/dist/{useMenuPress-CxUqSUZ9.js → useMenuPress-Di_3jhOx.js} +3 -1
- package/dist/{useTooltip-CJHbG8Pv.js → useTooltip-BpBMQ815.js} +2 -32
- package/dist/{useTruncationTooltip-BTcr1LCR.js → useTruncationTooltip-t5G978XB.js} +2 -2
- package/package.json +1 -1
- package/styles/alert-dialog.css +5 -0
- package/styles/chat.css +45 -17
- package/styles/dropdown-menu.css +47 -38
- package/styles/file-input.css +8 -1
- package/styles/input-group.css +0 -15
- package/styles/number-input.css +49 -4
- package/styles/pagination.css +0 -22
- package/styles/popover.css +13 -0
- package/styles/text-area.css +16 -1
- package/styles/text-input.css +26 -5
- package/dist/Popover-CZvRSqqD.js +0 -374
- package/dist/index-B63NOJRc.d.ts +0 -957
- package/dist/index-B9WzWqzk.d.ts +0 -18
- package/dist/types-DIYwbkpe.d.ts +0 -33
- package/dist/{index-CHx33xGa.d.ts → index-BqhgeAT4.d.ts} +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { t as hasSlotContent } from "./slotContent-CNWOrGOr.js";
|
|
2
|
+
import { a as isInLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
|
|
1
3
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
4
|
import { t as _sfc_main$24 } from "./Icon-Dk0jccgU.js";
|
|
3
5
|
import { t as _sfc_main$25 } from "./Button-D8AGK5oT.js";
|
|
@@ -7,16 +9,21 @@ import { a as trackInteractionModality, r as isKeyboardModality } from "./intera
|
|
|
7
9
|
import { t as _sfc_main$26 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
8
10
|
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
9
11
|
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
10
|
-
import { r as useChatNewMessages, t as useChatStreamScroll } from "./useChatStreamScroll-
|
|
12
|
+
import { r as useChatNewMessages, t as useChatStreamScroll } from "./useChatStreamScroll-Cv51kRT0.js";
|
|
11
13
|
import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
14
|
+
import { n as observeResize } from "./sharedResizeObserver-BekhnB3E.js";
|
|
12
15
|
import { r as TOUCH_POINTER_TYPES } from "./useTouchTriggerInternal-Bdm_M4aa.js";
|
|
13
16
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
14
17
|
import { t as _sfc_main$27 } from "./Badge-BbPS_49c.js";
|
|
15
18
|
import { t as _sfc_main$28 } from "./Divider-mOZ6vIQw.js";
|
|
19
|
+
import { t as useAnnounceRenderedText } from "./announceRenderedText-CslZ0cev.js";
|
|
16
20
|
import { t as chatMessages } from "./chat-BUFYB3bA.js";
|
|
21
|
+
import { r as withholdCallerHandlers } from "./disabledInteraction-Bqoyhoss.js";
|
|
17
22
|
import { t as _sfc_main$29 } from "./HoverCard-CZhfsvP4.js";
|
|
23
|
+
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
24
|
+
import { t as spinnerMessages } from "./spinner-DVia-eDf.js";
|
|
18
25
|
import { t as _sfc_main$30 } from "./Spinner-DEVPDsD0.js";
|
|
19
|
-
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";
|
|
26
|
+
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, useAttrs, useId, useModel, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
|
|
20
27
|
import "../styles/layer.css";
|
|
21
28
|
import "../styles/popover.css";
|
|
22
29
|
import "../styles/chat.css";
|
|
@@ -205,8 +212,7 @@ function flattenSearchItems(items) {
|
|
|
205
212
|
const _hoisted_1$18 = ["id", "aria-label"];
|
|
206
213
|
const _hoisted_2$13 = {
|
|
207
214
|
key: 0,
|
|
208
|
-
class: "astryx-chat-trigger__status"
|
|
209
|
-
role: "status"
|
|
215
|
+
class: "astryx-chat-trigger__status"
|
|
210
216
|
};
|
|
211
217
|
const _hoisted_3$11 = {
|
|
212
218
|
key: 1,
|
|
@@ -256,6 +262,7 @@ const _sfc_main$21 = /*@__PURE__*/ defineComponent({
|
|
|
256
262
|
props: {
|
|
257
263
|
open: { type: Boolean },
|
|
258
264
|
anchor: {},
|
|
265
|
+
editor: {},
|
|
259
266
|
listboxId: {},
|
|
260
267
|
label: {},
|
|
261
268
|
items: {},
|
|
@@ -280,6 +287,7 @@ const _sfc_main$21 = /*@__PURE__*/ defineComponent({
|
|
|
280
287
|
watch(() => props.anchor, (value) => {
|
|
281
288
|
anchorWritable.value = value;
|
|
282
289
|
}, { immediate: true });
|
|
290
|
+
const editorTrigger = computed(() => props.editor ?? anchorWritable.value);
|
|
283
291
|
const { position } = usePositionedLayer({
|
|
284
292
|
anchor: anchorWritable,
|
|
285
293
|
layer: surfaceRef,
|
|
@@ -290,7 +298,7 @@ const _sfc_main$21 = /*@__PURE__*/ defineComponent({
|
|
|
290
298
|
});
|
|
291
299
|
useDismiss({
|
|
292
300
|
container: surfaceRef,
|
|
293
|
-
trigger:
|
|
301
|
+
trigger: editorTrigger,
|
|
294
302
|
isEnabled: open,
|
|
295
303
|
dismissOnEscape: "ignore",
|
|
296
304
|
onDismiss: () => emit("dismiss")
|
|
@@ -430,6 +438,19 @@ function wasPropPassed(name) {
|
|
|
430
438
|
const kebab = name.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
|
|
431
439
|
return Object.hasOwn(props, kebab);
|
|
432
440
|
}
|
|
441
|
+
/**
|
|
442
|
+
* Like {@link wasPropPassed}, but read again on every call, so a prop the parent
|
|
443
|
+
* only starts passing after setup still counts. Call `propPassedChecker` during
|
|
444
|
+
* setup and the returned function anywhere afterwards.
|
|
445
|
+
*/
|
|
446
|
+
function propPassedChecker(name) {
|
|
447
|
+
const instance = getCurrentInstance();
|
|
448
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
|
|
449
|
+
return () => {
|
|
450
|
+
const props = instance?.vnode.props;
|
|
451
|
+
return props != null && (Object.hasOwn(props, name) || Object.hasOwn(props, kebab));
|
|
452
|
+
};
|
|
453
|
+
}
|
|
433
454
|
//#endregion
|
|
434
455
|
//#region src/Chat/selection.ts
|
|
435
456
|
/**
|
|
@@ -452,12 +473,83 @@ function restoreSelectionRange(range) {
|
|
|
452
473
|
selection.removeAllRanges();
|
|
453
474
|
selection.addRange(range);
|
|
454
475
|
}
|
|
476
|
+
/**
|
|
477
|
+
* 折叠的范围落在元素边界上时,走进它前面的文本节点。
|
|
478
|
+
* Chromium 把输入法组字锚在开始组字的 DOM 边界上:从元素边界起笔,
|
|
479
|
+
* 第一个拼音字母会被当成普通字母直接上屏,不进组字。
|
|
480
|
+
* 前面是可编辑元素时,落到它最后一个文本节点的末尾;否则范围保持原位。
|
|
481
|
+
*/
|
|
482
|
+
function landInsideTrailingTextNode(editable, range) {
|
|
483
|
+
if (range.startContainer !== editable) return;
|
|
484
|
+
const offset = range.startOffset;
|
|
485
|
+
const before = offset > 0 ? editable.childNodes[offset - 1] : null;
|
|
486
|
+
if (before == null) return;
|
|
487
|
+
if (before.nodeType === Node.TEXT_NODE) {
|
|
488
|
+
range.setStart(before, before.nodeValue?.length ?? 0);
|
|
489
|
+
range.collapse(true);
|
|
490
|
+
return;
|
|
491
|
+
}
|
|
492
|
+
if (before instanceof HTMLElement && before.isContentEditable) for (let current = before; current.lastChild;) {
|
|
493
|
+
current = current.lastChild;
|
|
494
|
+
if (current.nodeType === Node.TEXT_NODE) {
|
|
495
|
+
range.setStart(current, current.nodeValue?.length ?? 0);
|
|
496
|
+
range.collapse(true);
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
/** 把光标折叠到 `node` 之后(`node` 为 null 时在开头),并落进它前面的文本里。 */
|
|
502
|
+
function placeCaretAfterNode(editable, node) {
|
|
503
|
+
const selection = window.getSelection();
|
|
504
|
+
if (!selection) return;
|
|
505
|
+
const range = document.createRange();
|
|
506
|
+
if (node) range.setStartAfter(node);
|
|
507
|
+
else range.setStart(editable, 0);
|
|
508
|
+
range.collapse(true);
|
|
509
|
+
landInsideTrailingTextNode(editable, range);
|
|
510
|
+
selection.removeAllRanges();
|
|
511
|
+
selection.addRange(range);
|
|
512
|
+
}
|
|
513
|
+
/** 到 `node` 为止的内容是否以换行收尾:最后一个非空节点是 `<br>`,或以 `\n` 结尾的文本。 */
|
|
514
|
+
function endsLine(node) {
|
|
515
|
+
let current = node;
|
|
516
|
+
while (current != null && current.nodeType === Node.TEXT_NODE && current.textContent === "") current = current.previousSibling;
|
|
517
|
+
if (current == null) return false;
|
|
518
|
+
if (current.nodeName === "BR") return true;
|
|
519
|
+
return current.nodeType === Node.TEXT_NODE && (current.textContent ?? "").endsWith("\n");
|
|
520
|
+
}
|
|
521
|
+
/** `node` 或它后面的兄弟里有没有内容;空文本节点不算。 */
|
|
522
|
+
function hasContentFrom(node) {
|
|
523
|
+
for (let current = node; current != null; current = current.nextSibling) if (current.nodeType !== Node.TEXT_NODE || current.textContent !== "") return true;
|
|
524
|
+
return false;
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* 令牌被删掉之后把光标放回原处。`before` 和 `after` 是令牌及其尾随空格两侧的节点。
|
|
528
|
+
* 删除让最后一行变空时,这一行留一个 `<br>` 占位(浏览器自己的删除也会留),
|
|
529
|
+
* 光标落在它前面的空文本节点里,接着输入或组字都停在这一行;否则落到 `before` 之后。
|
|
530
|
+
*/
|
|
531
|
+
function placeCaretAfterRemovedToken(editable, before, after) {
|
|
532
|
+
if (!hasContentFrom(after) && endsLine(before)) {
|
|
533
|
+
const selection = window.getSelection();
|
|
534
|
+
if (!selection) return;
|
|
535
|
+
const text = document.createTextNode("");
|
|
536
|
+
editable.append(text, document.createElement("br"));
|
|
537
|
+
const range = document.createRange();
|
|
538
|
+
range.setStart(text, 0);
|
|
539
|
+
range.collapse(true);
|
|
540
|
+
selection.removeAllRanges();
|
|
541
|
+
selection.addRange(range);
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
544
|
+
placeCaretAfterNode(editable, before);
|
|
545
|
+
}
|
|
455
546
|
function placeCaretAtEnd(editable) {
|
|
456
547
|
const selection = window.getSelection();
|
|
457
548
|
if (!selection) return false;
|
|
458
549
|
const range = document.createRange();
|
|
459
550
|
range.selectNodeContents(editable);
|
|
460
551
|
range.collapse(false);
|
|
552
|
+
landInsideTrailingTextNode(editable, range);
|
|
461
553
|
selection.removeAllRanges();
|
|
462
554
|
selection.addRange(range);
|
|
463
555
|
return true;
|
|
@@ -481,6 +573,7 @@ function ensureCaretInside(editable) {
|
|
|
481
573
|
const range = document.createRange();
|
|
482
574
|
range.selectNodeContents(editable);
|
|
483
575
|
range.collapse(false);
|
|
576
|
+
landInsideTrailingTextNode(editable, range);
|
|
484
577
|
selection.removeAllRanges();
|
|
485
578
|
selection.addRange(range);
|
|
486
579
|
return selection;
|
|
@@ -583,7 +676,7 @@ function useChatComposerTokens(options) {
|
|
|
583
676
|
const space = document.createTextNode(TRAILING_SPACE);
|
|
584
677
|
span.after(space);
|
|
585
678
|
const next = document.createRange();
|
|
586
|
-
next.
|
|
679
|
+
next.setStart(space, space.length);
|
|
587
680
|
next.collapse(true);
|
|
588
681
|
selection.removeAllRanges();
|
|
589
682
|
selection.addRange(next);
|
|
@@ -605,9 +698,12 @@ function useChatComposerTokens(options) {
|
|
|
605
698
|
if (startOffset === 0) return false;
|
|
606
699
|
if (startContainer.textContent === TRAILING_SPACE && startOffset <= 1) {
|
|
607
700
|
event.preventDefault();
|
|
701
|
+
const before = previous.previousSibling;
|
|
702
|
+
const after = startContainer.nextSibling;
|
|
608
703
|
const parent = startContainer.parentNode;
|
|
609
704
|
parent?.removeChild(startContainer);
|
|
610
705
|
parent?.removeChild(previous);
|
|
706
|
+
if (parent instanceof HTMLElement) placeCaretAfterRemovedToken(parent, before, after);
|
|
611
707
|
options.onEmitChange();
|
|
612
708
|
return true;
|
|
613
709
|
}
|
|
@@ -624,7 +720,7 @@ function useChatComposerTokens(options) {
|
|
|
624
720
|
const text = event.clipboardData?.getData("text/plain") ?? "";
|
|
625
721
|
const space = token.nextSibling;
|
|
626
722
|
const next = document.createRange();
|
|
627
|
-
if (space && space.nodeType === Node.TEXT_NODE) next.
|
|
723
|
+
if (space && space.nodeType === Node.TEXT_NODE) next.setStart(space, space.nodeValue?.length ?? 0);
|
|
628
724
|
else next.setStartAfter(token);
|
|
629
725
|
next.collapse(true);
|
|
630
726
|
selection.removeAllRanges();
|
|
@@ -646,7 +742,7 @@ function useChatComposerTokens(options) {
|
|
|
646
742
|
const selection = window.getSelection();
|
|
647
743
|
if (selection) {
|
|
648
744
|
const range = document.createRange();
|
|
649
|
-
range.
|
|
745
|
+
range.setStart(textNode, textNode.length);
|
|
650
746
|
range.collapse(true);
|
|
651
747
|
selection.removeAllRanges();
|
|
652
748
|
selection.addRange(range);
|
|
@@ -827,6 +923,8 @@ function useTriggerMenu(options) {
|
|
|
827
923
|
let requestId = 0;
|
|
828
924
|
let dismissed = null;
|
|
829
925
|
const asyncSources = /* @__PURE__ */ new WeakSet();
|
|
926
|
+
const loadingText = computed(() => state.activeTrigger?.loadingText ?? options.defaultLoadingText.value);
|
|
927
|
+
const settleBusy = useBusyAnnouncement(() => state.isLoading && !state.isHidden && state.activeTrigger !== null, loadingText, options.editable);
|
|
830
928
|
function removeAnchor() {
|
|
831
929
|
if (anchor.value?.getAttribute("data-astryx-trigger-anchor") != null) anchor.value.remove();
|
|
832
930
|
anchor.value = null;
|
|
@@ -877,6 +975,7 @@ function useTriggerMenu(options) {
|
|
|
877
975
|
}
|
|
878
976
|
function applyItems(items, captured, trigger) {
|
|
879
977
|
if (!queryStillCurrent(captured, trigger)) return;
|
|
978
|
+
settleBusy();
|
|
880
979
|
state.items = items;
|
|
881
980
|
state.highlightedIndex = items.length > 0 ? 0 : -1;
|
|
882
981
|
state.isLoading = false;
|
|
@@ -1063,6 +1162,7 @@ const _hoisted_2$12 = {
|
|
|
1063
1162
|
const _hoisted_3$10 = [
|
|
1064
1163
|
"aria-label",
|
|
1065
1164
|
"contenteditable",
|
|
1165
|
+
"enterkeyhint",
|
|
1066
1166
|
"aria-disabled",
|
|
1067
1167
|
"role",
|
|
1068
1168
|
"aria-multiline",
|
|
@@ -1089,7 +1189,8 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1089
1189
|
label: {},
|
|
1090
1190
|
isDisabled: { type: Boolean },
|
|
1091
1191
|
pasteAsToken: { type: [Object, Boolean] },
|
|
1092
|
-
pasteAction: {}
|
|
1192
|
+
pasteAction: {},
|
|
1193
|
+
enterKeyHint: { default: "send" }
|
|
1093
1194
|
},
|
|
1094
1195
|
emits: [
|
|
1095
1196
|
"change",
|
|
@@ -1102,6 +1203,7 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1102
1203
|
const props = __props;
|
|
1103
1204
|
const emit = __emit;
|
|
1104
1205
|
const messages = useComponentMessages({ chat: chatMessages });
|
|
1206
|
+
const attrs = useAttrs();
|
|
1105
1207
|
const composer = useChatComposerContext();
|
|
1106
1208
|
const editableRef = useTemplateRef("editable");
|
|
1107
1209
|
const self = ref(null);
|
|
@@ -1109,11 +1211,17 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1109
1211
|
const pendingEcho = ref(void 0);
|
|
1110
1212
|
const emitVersion = ref(0);
|
|
1111
1213
|
const submitListened = hasEmitListener("submit");
|
|
1112
|
-
const
|
|
1113
|
-
const disabled = computed(() =>
|
|
1214
|
+
const isDisabledPassed = propPassedChecker("isDisabled");
|
|
1215
|
+
const disabled = computed(() => {
|
|
1216
|
+
const own = props.isDisabled;
|
|
1217
|
+
return isDisabledPassed() ? Boolean(own) : composer?.isDisabled.value ?? false;
|
|
1218
|
+
});
|
|
1114
1219
|
const placeholder = computed(() => props.placeholder ?? composer?.placeholder.value ?? messages.value.chat.placeholder);
|
|
1115
1220
|
const label = computed(() => props.label ?? messages.value.chat.inputLabel);
|
|
1116
1221
|
const sourceValue = computed(() => props.modelValue !== void 0 ? props.modelValue : composer?.value.value);
|
|
1222
|
+
function rootAttrs() {
|
|
1223
|
+
return withholdCallerHandlers(attrs, disabled.value);
|
|
1224
|
+
}
|
|
1117
1225
|
const maxHeight = computed(() => `${props.maxRows * LINE_HEIGHT}px`);
|
|
1118
1226
|
const triggers = computed(() => props.triggers);
|
|
1119
1227
|
const debounce = computed(() => props.debounceMs);
|
|
@@ -1126,6 +1234,7 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1126
1234
|
onEmitChange: () => publish(readValue())
|
|
1127
1235
|
});
|
|
1128
1236
|
function publish(next) {
|
|
1237
|
+
if (disabled.value) return;
|
|
1129
1238
|
pendingEcho.value = next;
|
|
1130
1239
|
const editable = editableRef.value;
|
|
1131
1240
|
const chips = editable ? composerHasChip(editable) : false;
|
|
@@ -1176,6 +1285,7 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1176
1285
|
triggers,
|
|
1177
1286
|
editable: editableRef,
|
|
1178
1287
|
debounceMs: debounce,
|
|
1288
|
+
defaultLoadingText: computed(() => messages.value.chat.searching),
|
|
1179
1289
|
onInsertToken: (token) => {
|
|
1180
1290
|
tokens.insertToken(token);
|
|
1181
1291
|
},
|
|
@@ -1187,24 +1297,28 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1187
1297
|
});
|
|
1188
1298
|
function insertText(text) {
|
|
1189
1299
|
const editable = editableRef.value;
|
|
1190
|
-
if (!editable) return;
|
|
1300
|
+
if (!editable || disabled.value) return;
|
|
1191
1301
|
insertTextAtCursor(editable, text);
|
|
1192
1302
|
publish(readValue());
|
|
1193
1303
|
menu.handleInput();
|
|
1194
1304
|
}
|
|
1195
1305
|
const handle = {
|
|
1196
1306
|
insertToken: (token) => {
|
|
1307
|
+
if (disabled.value) return void 0;
|
|
1197
1308
|
const id = tokens.insertToken(token);
|
|
1198
1309
|
if (id) publish(readValue());
|
|
1199
1310
|
return id;
|
|
1200
1311
|
},
|
|
1201
|
-
expandToken: (id) =>
|
|
1312
|
+
expandToken: (id) => {
|
|
1313
|
+
if (!disabled.value) tokens.expandToken(id);
|
|
1314
|
+
},
|
|
1202
1315
|
insertText,
|
|
1203
1316
|
focus: focusEditable,
|
|
1204
1317
|
getValue: readValue
|
|
1205
1318
|
};
|
|
1206
1319
|
self.value = handle;
|
|
1207
|
-
const menuOpen = computed(() => menu.isMenuVisible.value);
|
|
1320
|
+
const menuOpen = computed(() => menu.isMenuVisible.value && !disabled.value);
|
|
1321
|
+
const isCombobox = computed(() => menu.hasTriggers.value);
|
|
1208
1322
|
const activeDescendant = computed(() => {
|
|
1209
1323
|
if (!menuOpen.value || menu.state.highlightedIndex < 0) return void 0;
|
|
1210
1324
|
return `${menu.listboxId}-option-${menu.state.highlightedIndex}`;
|
|
@@ -1222,10 +1336,18 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1222
1336
|
else composer.onSubmit(text);
|
|
1223
1337
|
}
|
|
1224
1338
|
function onInput() {
|
|
1339
|
+
if (disabled.value) return;
|
|
1225
1340
|
publish(readValue());
|
|
1226
1341
|
menu.handleInput();
|
|
1227
1342
|
}
|
|
1343
|
+
function onEditorClick() {
|
|
1344
|
+
if (!disabled.value && menu.state.isActive) menu.handleInput();
|
|
1345
|
+
}
|
|
1228
1346
|
function onKeyDown(event) {
|
|
1347
|
+
if (disabled.value) {
|
|
1348
|
+
if (event.key === "Enter" || event.key === " ") event.preventDefault();
|
|
1349
|
+
return;
|
|
1350
|
+
}
|
|
1229
1351
|
if (menu.handleKeyDown(event)) return;
|
|
1230
1352
|
emit("keydown", event);
|
|
1231
1353
|
if (event.defaultPrevented) return;
|
|
@@ -1251,6 +1373,10 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1251
1373
|
function onPaste(event) {
|
|
1252
1374
|
const editable = editableRef.value;
|
|
1253
1375
|
if (!editable) return;
|
|
1376
|
+
if (disabled.value) {
|
|
1377
|
+
event.preventDefault();
|
|
1378
|
+
return;
|
|
1379
|
+
}
|
|
1254
1380
|
const files = Array.from(event.clipboardData?.files ?? []);
|
|
1255
1381
|
if (files.length > 0) {
|
|
1256
1382
|
event.preventDefault();
|
|
@@ -1265,8 +1391,9 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1265
1391
|
if (emitVersion.value === version) publish(readValue());
|
|
1266
1392
|
return;
|
|
1267
1393
|
}
|
|
1394
|
+
const tokenVersion = emitVersion.value;
|
|
1268
1395
|
if (pasteAsToken.value?.onPaste(text)) {
|
|
1269
|
-
publish(readValue());
|
|
1396
|
+
if (emitVersion.value === tokenVersion) publish(readValue());
|
|
1270
1397
|
return;
|
|
1271
1398
|
}
|
|
1272
1399
|
insertTextAtCursor(editable, text);
|
|
@@ -1276,10 +1403,14 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1276
1403
|
if (Array.from(event.dataTransfer?.types ?? []).includes("Files")) event.preventDefault();
|
|
1277
1404
|
}
|
|
1278
1405
|
function onDrop(event) {
|
|
1406
|
+
if (disabled.value) {
|
|
1407
|
+
event.preventDefault();
|
|
1408
|
+
return;
|
|
1409
|
+
}
|
|
1279
1410
|
const files = Array.from(event.dataTransfer?.files ?? []);
|
|
1280
1411
|
if (files.length === 0) return;
|
|
1281
1412
|
event.preventDefault();
|
|
1282
|
-
|
|
1413
|
+
emit("files", files);
|
|
1283
1414
|
}
|
|
1284
1415
|
const visiblePortals = computed(() => tokens.portals.value.filter((portal) => portal.span.isConnected));
|
|
1285
1416
|
function showPastedPreview(token) {
|
|
@@ -1302,6 +1433,9 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1302
1433
|
menu.handleInput();
|
|
1303
1434
|
} else pendingEcho.value = void 0;
|
|
1304
1435
|
});
|
|
1436
|
+
watch(disabled, (isDisabled) => {
|
|
1437
|
+
if (isDisabled && menu.state.isActive) menu.reset();
|
|
1438
|
+
});
|
|
1305
1439
|
onMounted(() => {
|
|
1306
1440
|
if (composer) composer.inputControl.value = { focus: focusAtEnd };
|
|
1307
1441
|
const next = sourceValue.value;
|
|
@@ -1316,7 +1450,7 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1316
1450
|
});
|
|
1317
1451
|
__expose(handle);
|
|
1318
1452
|
return (_ctx, _cache) => {
|
|
1319
|
-
return openBlock(), createElementBlock("div", mergeProps(
|
|
1453
|
+
return openBlock(), createElementBlock("div", mergeProps(rootAttrs(), {
|
|
1320
1454
|
class: "astryx-chat-composer-input",
|
|
1321
1455
|
"data-disabled": disabled.value ? "" : void 0
|
|
1322
1456
|
}), [
|
|
@@ -1328,15 +1462,18 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1328
1462
|
class: "astryx-chat-composer-input__editable",
|
|
1329
1463
|
style: normalizeStyle({ maxHeight: maxHeight.value }),
|
|
1330
1464
|
"aria-label": label.value,
|
|
1465
|
+
tabindex: "0",
|
|
1331
1466
|
contenteditable: disabled.value ? "false" : "true",
|
|
1467
|
+
enterkeyhint: __props.enterKeyHint,
|
|
1332
1468
|
"aria-disabled": disabled.value ? "true" : void 0,
|
|
1333
|
-
role:
|
|
1334
|
-
"aria-multiline":
|
|
1335
|
-
"aria-expanded":
|
|
1336
|
-
"aria-controls":
|
|
1337
|
-
"aria-activedescendant":
|
|
1338
|
-
"aria-haspopup":
|
|
1469
|
+
role: isCombobox.value ? "combobox" : "textbox",
|
|
1470
|
+
"aria-multiline": isCombobox.value ? void 0 : "true",
|
|
1471
|
+
"aria-expanded": isCombobox.value ? menuOpen.value : void 0,
|
|
1472
|
+
"aria-controls": isCombobox.value && menuOpen.value ? unref(menu).listboxId : void 0,
|
|
1473
|
+
"aria-activedescendant": isCombobox.value && menuOpen.value ? activeDescendant.value : void 0,
|
|
1474
|
+
"aria-haspopup": isCombobox.value ? "listbox" : void 0,
|
|
1339
1475
|
onInput,
|
|
1476
|
+
onClick: onEditorClick,
|
|
1340
1477
|
onKeydown: onKeyDown,
|
|
1341
1478
|
onPaste,
|
|
1342
1479
|
onDragover: onDragOver,
|
|
@@ -1345,6 +1482,7 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1345
1482
|
createVNode(_sfc_main$21, {
|
|
1346
1483
|
open: menuOpen.value,
|
|
1347
1484
|
anchor: unref(menu).anchor.value,
|
|
1485
|
+
editor: editableRef.value,
|
|
1348
1486
|
"listbox-id": unref(menu).listboxId,
|
|
1349
1487
|
label: menuLabel.value,
|
|
1350
1488
|
items: unref(menu).state.items,
|
|
@@ -1360,6 +1498,7 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
|
1360
1498
|
}, null, 8, [
|
|
1361
1499
|
"open",
|
|
1362
1500
|
"anchor",
|
|
1501
|
+
"editor",
|
|
1363
1502
|
"listbox-id",
|
|
1364
1503
|
"label",
|
|
1365
1504
|
"items",
|
|
@@ -1469,7 +1608,7 @@ const _hoisted_8$3 = { class: "astryx-chat-composer__footer" };
|
|
|
1469
1608
|
const _hoisted_9$3 = { class: "astryx-chat-composer__footer-start" };
|
|
1470
1609
|
const _hoisted_10$3 = ["data-interruptible"];
|
|
1471
1610
|
const _hoisted_11$2 = ["data-type"];
|
|
1472
|
-
const editorSelector = "textarea, [contenteditable=\"true\"], [role=\"textbox\"], input:not([type]), input[type=\"text\"], input[type=\"search\"], input[type=\"email\"], input[type=\"url\"], input[type=\"tel\"], input[type=\"password\"]";
|
|
1611
|
+
const editorSelector = "textarea, [contenteditable=\"true\"], [role=\"textbox\"], [role=\"combobox\"][contenteditable], input:not([type]), input[type=\"text\"], input[type=\"search\"], input[type=\"email\"], input[type=\"url\"], input[type=\"tel\"], input[type=\"password\"]";
|
|
1473
1612
|
const _sfc_main$18 = /*@__PURE__*/ defineComponent({
|
|
1474
1613
|
name: "AstryxChatComposer",
|
|
1475
1614
|
inheritAttrs: false,
|
|
@@ -1508,16 +1647,12 @@ const _sfc_main$18 = /*@__PURE__*/ defineComponent({
|
|
|
1508
1647
|
const placeholder = computed(() => props.placeholder ?? messages.value.chat.placeholder);
|
|
1509
1648
|
const canSend = computed(() => value.value.trim().length > 0 && !disabled.value);
|
|
1510
1649
|
const hasHeader = computed(() => slots.headerActions != null || slots.headerContext != null);
|
|
1511
|
-
const
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1650
|
+
const statusRef = useTemplateRef("status");
|
|
1651
|
+
useAnnounceRenderedText(statusRef, () => Boolean(props.status?.message), {
|
|
1652
|
+
skipFirstRender: true,
|
|
1653
|
+
key: () => props.status?.type ?? "",
|
|
1654
|
+
politeness: () => props.status?.type === "error" ? "assertive" : "polite"
|
|
1515
1655
|
});
|
|
1516
|
-
watch(statusAnnouncement, () => {
|
|
1517
|
-
const status = props.status;
|
|
1518
|
-
if (!status?.message) return;
|
|
1519
|
-
announce(status.message, status.type === "error" ? "assertive" : "polite");
|
|
1520
|
-
}, { immediate: true });
|
|
1521
1656
|
function setValue(next) {
|
|
1522
1657
|
if (!controlled) localValue.value = next;
|
|
1523
1658
|
emit("update:modelValue", next);
|
|
@@ -1536,6 +1671,7 @@ const _sfc_main$18 = /*@__PURE__*/ defineComponent({
|
|
|
1536
1671
|
const target = event.target;
|
|
1537
1672
|
if (!(target instanceof Element)) return;
|
|
1538
1673
|
if (target.closest("button, a, [role=\"button\"], [contenteditable=\"true\"], [data-astryx-token]")) return;
|
|
1674
|
+
if (body.value != null && isInLayerSurface(target, body.value)) return;
|
|
1539
1675
|
if (inputControl.value) {
|
|
1540
1676
|
inputControl.value.focus();
|
|
1541
1677
|
return;
|
|
@@ -1576,6 +1712,7 @@ const _sfc_main$18 = /*@__PURE__*/ defineComponent({
|
|
|
1576
1712
|
}), [
|
|
1577
1713
|
__props.status && __props.statusPosition === "top" ? (openBlock(), createElementBlock("div", {
|
|
1578
1714
|
key: 0,
|
|
1715
|
+
ref: "status",
|
|
1579
1716
|
class: "astryx-chat-composer__status",
|
|
1580
1717
|
"data-place": "top",
|
|
1581
1718
|
"data-type": __props.status.type
|
|
@@ -1608,6 +1745,7 @@ const _sfc_main$18 = /*@__PURE__*/ defineComponent({
|
|
|
1608
1745
|
], 40, _hoisted_3$9),
|
|
1609
1746
|
__props.status && __props.statusPosition === "bottom" ? (openBlock(), createElementBlock("div", {
|
|
1610
1747
|
key: 1,
|
|
1748
|
+
ref: "status",
|
|
1611
1749
|
class: "astryx-chat-composer__status",
|
|
1612
1750
|
"data-place": "bottom",
|
|
1613
1751
|
"data-type": __props.status.type
|
|
@@ -1892,11 +2030,26 @@ const _sfc_main$13 = /*@__PURE__*/ defineComponent({
|
|
|
1892
2030
|
},
|
|
1893
2031
|
setup(__props, { expose: __expose }) {
|
|
1894
2032
|
const props = __props;
|
|
2033
|
+
const slots = useSlots();
|
|
1895
2034
|
const messages = useComponentMessages({ chat: chatMessages });
|
|
1896
2035
|
const announce = useAnnounce();
|
|
1897
2036
|
const root = useTemplateRef("root");
|
|
1898
2037
|
const scrollTarget = computed(() => props.scrollRef ?? root.value);
|
|
1899
2038
|
const isSelfScrolling = computed(() => props.scrollRef == null);
|
|
2039
|
+
const dock = useTemplateRef("dock");
|
|
2040
|
+
const dockHeight = ref(0);
|
|
2041
|
+
watch([dock, isSelfScrolling], ([el, isSelf], _, onCleanup) => {
|
|
2042
|
+
dockHeight.value = 0;
|
|
2043
|
+
if (el == null || isSelf) return;
|
|
2044
|
+
onCleanup(observeResize(el, (entry) => {
|
|
2045
|
+
const height = entry.borderBoxSize?.[0]?.blockSize ?? el.getBoundingClientRect().height;
|
|
2046
|
+
dockHeight.value = Math.round(height);
|
|
2047
|
+
}));
|
|
2048
|
+
}, {
|
|
2049
|
+
immediate: true,
|
|
2050
|
+
flush: "post"
|
|
2051
|
+
});
|
|
2052
|
+
const messagesStyle = computed(() => dockHeight.value > 0 ? { paddingBlockEnd: `calc(var(--astryx-spacing-6, 24px) + ${dockHeight.value}px)` } : void 0);
|
|
1900
2053
|
useScrollbars(root, { enabled: isSelfScrolling });
|
|
1901
2054
|
const scroll = useChatStreamScroll({ scrollRef: scrollTarget });
|
|
1902
2055
|
const newMessages = useChatNewMessages({
|
|
@@ -1930,8 +2083,11 @@ const _sfc_main$13 = /*@__PURE__*/ defineComponent({
|
|
|
1930
2083
|
"data-scroll": isSelfScrolling.value ? "self" : "external"
|
|
1931
2084
|
}), [createElementVNode("div", {
|
|
1932
2085
|
class: "astryx-chat-layout__messages",
|
|
1933
|
-
"data-density": __props.density
|
|
1934
|
-
|
|
2086
|
+
"data-density": __props.density,
|
|
2087
|
+
style: normalizeStyle(messagesStyle.value)
|
|
2088
|
+
}, [!unref(hasSlotContent)(unref(slots).default) && _ctx.$slots.empty ? (openBlock(), createElementBlock("div", _hoisted_3$7, [renderSlot(_ctx.$slots, "empty")])) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)], 12, _hoisted_2$9), createElementVNode("div", {
|
|
2089
|
+
ref_key: "dock",
|
|
2090
|
+
ref: dock,
|
|
1935
2091
|
class: "astryx-chat-layout__dock",
|
|
1936
2092
|
"data-density": __props.density
|
|
1937
2093
|
}, [
|
|
@@ -2147,12 +2303,17 @@ const _sfc_main$10 = /*@__PURE__*/ defineComponent({
|
|
|
2147
2303
|
},
|
|
2148
2304
|
setup(__props) {
|
|
2149
2305
|
const props = __props;
|
|
2150
|
-
const messages = useComponentMessages({
|
|
2306
|
+
const messages = useComponentMessages({
|
|
2307
|
+
chat: chatMessages,
|
|
2308
|
+
spinner: spinnerMessages
|
|
2309
|
+
});
|
|
2310
|
+
const slots = useSlots();
|
|
2151
2311
|
const layout = useChatLayoutContext();
|
|
2152
2312
|
const inner = useTemplateRef("inner");
|
|
2153
2313
|
const sentinel = useTemplateRef("sentinel");
|
|
2154
2314
|
const isLoadingTop = ref(false);
|
|
2155
2315
|
const accessibleName = computed(() => props.label ?? messages.value.chat.log);
|
|
2316
|
+
useBusyAnnouncement(isLoadingTop, () => messages.value.spinner.loading, inner);
|
|
2156
2317
|
provide(chatListContextKey, { density: computed(() => props.density) });
|
|
2157
2318
|
watch(inner, (el, _, onCleanup) => {
|
|
2158
2319
|
if (!layout) return;
|
|
@@ -2206,10 +2367,10 @@ const _sfc_main$10 = /*@__PURE__*/ defineComponent({
|
|
|
2206
2367
|
}, null, 512)) : createCommentVNode("v-if", true),
|
|
2207
2368
|
isLoadingTop.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [createVNode(_sfc_main$30, {
|
|
2208
2369
|
size: "md",
|
|
2209
|
-
"aria-
|
|
2210
|
-
}
|
|
2370
|
+
"aria-hidden": "true"
|
|
2371
|
+
})])) : createCommentVNode("v-if", true),
|
|
2211
2372
|
__props.align === "bottom" ? (openBlock(), createElementBlock("div", _hoisted_4$4)) : createCommentVNode("v-if", true),
|
|
2212
|
-
|
|
2373
|
+
unref(hasSlotContent)(unref(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)
|
|
2213
2374
|
], 8, _hoisted_2$6)], 16, _hoisted_1$9);
|
|
2214
2375
|
};
|
|
2215
2376
|
}
|
|
@@ -2458,6 +2619,7 @@ const _sfc_main$6 = /*@__PURE__*/ defineComponent({
|
|
|
2458
2619
|
__name: "ChatSystemMessage",
|
|
2459
2620
|
props: { variant: { default: "default" } },
|
|
2460
2621
|
setup(__props) {
|
|
2622
|
+
const slots = useSlots();
|
|
2461
2623
|
return (_ctx, _cache) => {
|
|
2462
2624
|
return __props.variant === "divider" ? (openBlock(), createElementBlock("div", mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
2463
2625
|
class: "astryx-chat-system-message",
|
|
@@ -2468,7 +2630,7 @@ const _sfc_main$6 = /*@__PURE__*/ defineComponent({
|
|
|
2468
2630
|
})], 16)) : (openBlock(), createElementBlock("div", mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
2469
2631
|
class: "astryx-chat-system-message",
|
|
2470
2632
|
"data-variant": "default"
|
|
2471
|
-
}), [createElementVNode("span", _hoisted_1$6, [
|
|
2633
|
+
}), [createElementVNode("span", _hoisted_1$6, [unref(hasSlotContent)(unref(slots).icon) ? (openBlock(), createElementBlock("span", _hoisted_2$3, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default")])], 16));
|
|
2472
2634
|
};
|
|
2473
2635
|
}
|
|
2474
2636
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ga as CheckboxInputChangeAction, Ja as CheckboxInputProps, Ka as CheckboxInputChangeEvent, Wa as _default, Xa as CheckboxValue, Ya as CheckboxInputSlots, qa as CheckboxInputEmits } from "../index-DSEEgvak.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-wmX3Ekj-.js";
|
|
2
2
|
export { _sfc_main as CheckboxInput };
|
|
@@ -4,11 +4,11 @@ import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide
|
|
|
4
4
|
import { t as _sfc_main$1 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
5
5
|
import { t as _sfc_main$2 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
6
6
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
7
|
+
import { r as withholdCallerHandlers } from "./disabledInteraction-Bqoyhoss.js";
|
|
8
|
+
import { t as ariaRequired } from "./context-CrVCeUUK.js";
|
|
9
|
+
import { t as _sfc_main$3 } from "./FieldLabel-B4l3sS4O.js";
|
|
9
10
|
import { t as _sfc_main$4 } from "./FieldStatus-DmCWPT6U.js";
|
|
10
11
|
import { t as useIndicator } from "./useIndicator-PFDBNOvX.js";
|
|
11
|
-
import { r as withholdCallerHandlers } from "./disabledInteraction-Bqoyhoss.js";
|
|
12
12
|
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";
|
|
13
13
|
import "../styles/button.css";
|
|
14
14
|
import "../styles/checkbox-input.css";
|
|
@@ -134,7 +134,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
134
134
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
135
135
|
const props = __props;
|
|
136
136
|
const emit = __emit;
|
|
137
|
-
const ariaRequired =
|
|
137
|
+
const ariaRequired$1 = computed(() => ariaRequired(props.isRequired, props.isOptional, void 0));
|
|
138
138
|
const model = useModel(__props, "modelValue");
|
|
139
139
|
const attrs = useAttrs();
|
|
140
140
|
const input = useTemplateRef("input");
|
|
@@ -295,7 +295,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
295
295
|
"aria-disabled": __props.isDisabled || void 0,
|
|
296
296
|
"aria-readonly": __props.isReadOnly || void 0,
|
|
297
297
|
"aria-busy": busy.value || void 0,
|
|
298
|
-
"aria-required":
|
|
298
|
+
"aria-required": ariaRequired$1.value,
|
|
299
299
|
"aria-invalid": __props.status?.type === "error" ? true : __props.isRequired ? false : inputAttrs()["aria-invalid"],
|
|
300
300
|
onClick: click,
|
|
301
301
|
onChange: change,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ba as CheckboxListEmits, Ha as CheckboxListItemProps, Ra as _default$1, Ua as CheckboxListProps, Va as CheckboxListItemEmits, za as _default } from "../index-DSEEgvak.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-JWXHHU-u.js";
|
|
2
2
|
export { _sfc_main as CheckboxList, _sfc_main$1 as CheckboxListItem };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
2
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
3
|
-
import { t as _sfc_main$3 } from "./Tooltip-
|
|
3
|
+
import { t as _sfc_main$3 } from "./Tooltip-gT9_hIEv.js";
|
|
4
4
|
import { t as observeContent } from "./sharedMutationObserver-Dvh3N1N2.js";
|
|
5
5
|
import { r as useItemDescriptionId } from "./Item-DUI1Qnnd.js";
|
|
6
|
-
import { n as checkboxRowPressKey, t as _sfc_main$4 } from "./CheckboxInput-
|
|
7
|
-
import { t as _sfc_main$5 } from "./Field-
|
|
8
|
-
import { t as useFieldPartStyling } from "./fieldParts-
|
|
6
|
+
import { n as checkboxRowPressKey, t as _sfc_main$4 } from "./CheckboxInput-wmX3Ekj-.js";
|
|
7
|
+
import { t as _sfc_main$5 } from "./Field-Btyrw1hd.js";
|
|
8
|
+
import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
|
|
9
9
|
import { n as _sfc_main$6, t as _sfc_main$7 } from "./ListItem-C8SqSrU6.js";
|
|
10
10
|
import { t as checkboxListMessages } from "./checkbox-list-uI6q4y3V.js";
|
|
11
11
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, provide, ref, renderSlot, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, watchEffect, withCtx } from "vue";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fa as ClickableCardEmits, Ia as ClickableCardProps, La as ClickableCardSlots, Pa as _default } from "../index-DSEEgvak.js";
|
|
2
2
|
export { _default as ClickableCard, _default as default, type ClickableCardEmits, type ClickableCardProps, type ClickableCardSlots };
|