@astryx-vue/core 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +4 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-ovx4cBjM.js → AlertDialog-B6UeBCE7.js} +2 -2
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-Cb41gIAj.js → AppShell-CeBmB0Q9.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-jmHInHwj.js → Avatar-BB4Z4LF1.js} +10 -4
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +2 -2
- package/dist/BottomSheet/index.js +3 -2
- package/dist/{BottomSheet-Dg95HB1s.js → BottomSheet-BV6vfgGu.js} +82 -22
- package/dist/BottomSheet-o7xw-TOi.js +153 -0
- package/dist/Breadcrumbs/index.d.ts +3 -2
- package/dist/Breadcrumbs/index.js +3 -2
- package/dist/{Breadcrumbs-CTQ7fjDn.js → Breadcrumbs-D6G7f5WL.js} +13 -8
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +1 -1
- package/dist/Calendar-DmTeM7PO.js +656 -0
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-X0cuQkvg.js → Carousel-CIKrcA2r.js} +2 -2
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-M0tiGrNT.js → Chat-BFox3u9D.js} +3 -3
- package/dist/CheckboxIndicator/index.js +1 -1
- package/dist/CheckboxIndicator-D37cm2Rh.js +68 -0
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CMsEE1_4.js → CheckboxInput-25Q8ItH-.js} +10 -9
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BbCPiend.js → CheckboxList-BlPf7vPe.js} +78 -25
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C1veUk5p.js → Citation-BG-vg9ia.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +3 -3
- package/dist/Code/index.js +4 -4
- package/dist/{Code-yb_KOFtJ.js → Code-XnPuGxey.js} +3 -2
- package/dist/{CodeBlock-DesTJAkm.js → CodeBlock-B2pnEOJY.js} +146 -16
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BestK35V.js → Collapsible-3YerR-FO.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BArt97V8.js → CommandPalette-DKgHzmJk.js} +10 -10
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CAoig1RK.js → ComplexSelector-Dv44FFhN.js} +3 -3
- package/dist/ContextMenu/index.d.ts +3 -2
- package/dist/ContextMenu/index.js +3 -2
- package/dist/{ContextMenu-9Im6i43E.js → ContextMenu-BeJO5HYx.js} +206 -423
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-D4XFAEMp.js +743 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DwDy3eRo.js → DateRangeInput-Cp6AZfew.js} +54 -19
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BYiaC9bn.js → DateTimeInput-B6MPPp76.js} +54 -15
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +3 -3
- package/dist/DropdownMenu/index.js +4 -3
- package/dist/{DropdownMenu-Dh-WAHKb.js → DropdownMenu--lnUeJEG.js} +309 -64
- package/dist/DropdownMenu-6E9jFdFe.js +325 -0
- package/dist/DropdownMenuRadioItem.vue-CXEURBcq.d.ts +564 -0
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CUJdTYKV.js → EmptyState-0RWymQUS.js} +2 -2
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-DLO6V12n.js → FileInput-DuNwdbAo.js} +2 -2
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/Heading-B9C3LZlS.js +94 -0
- package/dist/Icon/index.d.ts +4 -3
- package/dist/Icon/index.js +2 -2
- package/dist/{Icon-CJKjdJy-.js → Icon-bteSId7T.js} +113 -18
- package/dist/Indicator/index.d.ts +3 -0
- package/dist/Indicator/index.js +2 -0
- package/dist/InputGroup/index.d.ts +2 -2
- package/dist/InputGroup/index.js +3 -2
- package/dist/InputGroup-BzR6JRZb.js +129 -0
- package/dist/Item-DrYJL1TG.js +590 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-CdFCS_EA.js → Lightbox-Br3o0SyQ.js} +2 -2
- package/dist/Link/index.d.ts +3 -2
- package/dist/Link/index.js +1 -1
- package/dist/Link-DCZ6922-.js +196 -0
- package/dist/List/index.d.ts +3 -3
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-pGxvn6QJ.js → ListItem-CcRHWuEm.js} +8 -2
- package/dist/Markdown/index.d.ts +2 -2
- package/dist/Markdown/index.js +2 -2
- package/dist/{Markdown-BqKloI3w.js → Markdown-Bz0R3kNj.js} +280 -33
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-CvZkmisf.js → MetadataList-CFaocx6j.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Bwi0qXXM.js → MobileNavToggle-Dh3uLivq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BwJaJrkB.js → MoreMenu-B95nRSe8.js} +3 -3
- package/dist/MultiSelector/index.d.ts +2 -2
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-C-ETfFy_.js → MultiSelector-DuF5TECE.js} +304 -122
- package/dist/{NavDisclosure-DHrSNRDR.js → NavDisclosure-C6sPZ89n.js} +5 -2
- package/dist/NavHeadingSurface-Cb3x9iDx.js +287 -0
- package/dist/NavMenu/index.d.ts +2 -2
- package/dist/NavMenu/index.js +4 -3
- package/dist/NavMenu-ClIgMaxE.js +176 -0
- package/dist/{NavMenuItem-B-k7olt5.js → NavMenuItem-E7S8gBh-.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DjetVB8O.js → NumberInput-B4IL3s_8.js} +1 -1
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-Bz9c-u5y.js → Outline-DBUuchi9.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-ED-KN9Y5.js → OverflowList-aDd_oem0.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Cb66HMEf.js → Pagination-CNe9F6Fl.js} +181 -45
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-Crhk9PNP.js → Popover-D7zqpFwU.js} +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CjU8y4mi.js → PowerSearch-C6U8Sq1Y.js} +16 -16
- package/dist/ProgressBar/index.d.ts +2 -2
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DO9Chic6.js → ProgressBar-DF6WZNCI.js} +45 -6
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BqjdSCfJ.js → RadioGroup-CBqUPq_L.js} +16 -8
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DI8ujXcT.js → RadioList-CPOJn9Th.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-D-TBCg0Y.js → ResizeHandle-DYy0e3v9.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +2 -2
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-5N-hq2nF.js +618 -0
- package/dist/SideNav/index.d.ts +2 -2
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DonEfiAx.js → SideNav-CT9lfspi.js} +226 -230
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-D2ZIcUNx.js → Stepper-BqhVCgC-.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-D3F-stq-.js → TabList-BlzkrObv.js} +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CrP2Uffq.js → Table-CsdH8fCB.js} +7 -7
- package/dist/Text/index.d.ts +3 -3
- package/dist/Text/index.js +1 -1
- package/dist/Text-DIzZw6FA.js +86 -0
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +3 -2
- package/dist/Theme/index.js +2 -2
- package/dist/Theme-CtaUWo4g.js +1246 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BC5JGPGZ.js → Thumbnail-BnQwX1cQ.js} +3 -3
- package/dist/{TimeField-DpHFrNv0.js → TimeField-Biiuv0hB.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-DJLV0_4z.js → TimeInput-C9gptCOK.js} +1 -1
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-B7GV6hqd.js → Timer-kxzQx3tp.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-GKNjjt5g.js → Timestamp-D7bd_nF3.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Chu_eCVs.js → Token-D2GsI_Ei.js} +2 -2
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DRDpvQ_l.js → Tokenizer-rwzamZg4.js} +4 -4
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/{Tooltip-mp0NMh_Y.js → Tooltip-C2fh9anJ.js} +23 -8
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CEyWddtA.js → TopNav-arWFLTBM.js} +113 -43
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-COS8US8e.js → TreeList-C9xvMpJZ.js} +2 -2
- package/dist/Typeahead/index.d.ts +2 -2
- package/dist/Typeahead/index.js +3 -2
- package/dist/Typeahead-_V11btpv.js +499 -0
- package/dist/{TypeaheadMenu-CGvo0Tud.js → TypeaheadMenu-BEObzonz.js} +46 -10
- package/dist/{context-O2Vb8cJl.js → colorMode-CBgdgDSn.js} +1 -7
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +12 -7
- package/dist/composables-CWw6t-RJ.js +520 -0
- package/dist/{context-CiKncNSH.js → context-CPh7kE-a.js} +140 -18
- package/dist/context-Cws_tXTr.js +7 -0
- package/dist/context-D5-MwxnN.js +4 -0
- package/dist/{index-CJlBAXwj.d.ts → index-12QYAbiz.d.ts} +41 -4
- package/dist/{index-Cs5pcwY3.d.ts → index-6yB8BtEu.d.ts} +3 -3
- package/dist/{index-C7mxUcDR.d.ts → index-B4OOtNP8.d.ts} +2 -2
- package/dist/index-BBtJt5_A.d.ts +26 -0
- package/dist/{index-CRizexSC.d.ts → index-BH9PzQ1F.d.ts} +13 -73
- package/dist/index-BPwD6aBv.d.ts +83 -0
- package/dist/{index-DOUEn7V0.d.ts → index-BcZI402h.d.ts} +64 -5
- package/dist/{index-C8wDPDcP.d.ts → index-Bi49IrAJ.d.ts} +50 -8
- package/dist/{index-DimuSES0.d.ts → index-BlOIC_AM.d.ts} +3 -1
- package/dist/{index-C5p2NeCr.d.ts → index-Blm197N_.d.ts} +11 -2
- package/dist/{index-Bu3oXIIS.d.ts → index-BmmdzwT9.d.ts} +6 -0
- package/dist/{index-kVhSuA9t.d.ts → index-BxhJqiZ7.d.ts} +6 -6
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-qiZtHnGK.d.ts → index-C3GaPqvJ.d.ts} +123 -8
- package/dist/{index-D4I_obqR.d.ts → index-CFIXnk5D.d.ts} +1 -1
- package/dist/{index-cGagYM1g.d.ts → index-CI9kyg74.d.ts} +11 -1
- package/dist/{index-D-ZuubCK.d.ts → index-CUCcYKxl.d.ts} +1 -1
- package/dist/{index-DWH_HzXi.d.ts → index-ChWlKHjc.d.ts} +1 -1
- package/dist/{index-DGXviOlp.d.ts → index-D-ezcKaY.d.ts} +30 -4
- package/dist/{index-Cm_TiLXU.d.ts → index-Dgg0bHVM.d.ts} +7 -3
- package/dist/index-DxR1FChm.d.ts +158 -0
- package/dist/{index-DNRBbwp_.d.ts → index-EtZgovdH.d.ts} +842 -107
- package/dist/{index-BHqRH7QW.d.ts → index-FEy8qFSD.d.ts} +2 -2
- package/dist/index-XuAAcYiP.d.ts +77 -0
- package/dist/{index-D0TlUOtG.d.ts → index-YmSe1ujk.d.ts} +76 -3
- package/dist/{index-BMrggCw-.d.ts → index-bvr3WHvs.d.ts} +1 -1
- package/dist/{index-CDDMDHJM.d.ts → index-c67ca7eJ.d.ts} +1 -1
- package/dist/{index-c_TaW8mM.d.ts → index-cL3q7O4R.d.ts} +31 -2
- package/dist/{index-CGZ2xi3r.d.ts → index-eshFLli0.d.ts} +40 -3
- package/dist/{index-DsyKhauk.d.ts → index-hCpxKePE.d.ts} +48 -2
- package/dist/{index-u5ozu0G7.d.ts → index-vP0EtrJJ.d.ts} +13 -3
- package/dist/{index-B1TG2GPS.d.ts → index-vizlhXVs.d.ts} +246 -45
- package/dist/{index-DfgHJE7H.d.ts → index-z3uLM1O6.d.ts} +153 -24
- package/dist/index.d.ts +82 -80
- package/dist/index.js +127 -116
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -3
- package/dist/locale-sLw5Caia.js +917 -0
- package/dist/searchResultMessage-CCnq-_ce.js +94 -0
- package/dist/semantic-CKH9XVqa.d.ts +54 -0
- package/dist/syntaxTheme-CwVEcVDk.d.ts +57 -0
- package/dist/{syntaxTheme-ClpWALZX.js → syntaxTheme-R7xnu5x5.js} +24 -3
- package/dist/{types-pnljWjEE.d.ts → types-CwyibrRB.d.ts} +12 -11
- package/dist/{types-Bt-lSgYX.d.ts → types-D9nP_X-c.d.ts} +14 -1
- package/dist/{types-CAZY4Xua.d.ts → types-DGYHIu4I.d.ts} +30 -1
- package/dist/types-D_J66aPN.d.ts +85 -0
- package/dist/types-gKsEkk2g.d.ts +320 -0
- package/dist/{useAnchoredListbox-7W90Ny-9.js → useAnchoredListbox-BN9LQnon.js} +1 -1
- package/dist/useDatePresentation-C07PnOCw.js +21 -0
- package/dist/{useMonthGrid-CmJsZTcB.js → useDateRange-CIXoE_8k.js} +1 -42
- package/dist/useDisclosureHandle-Df3HhAfC.js +24 -0
- package/dist/{useDismiss-CAiHU6QD.js → useDismiss-Cj8x_51F.js} +8 -4
- package/dist/useFieldControlState-voICDrys.js +18 -0
- package/dist/useHandleRef-6cdKugm8.js +17 -0
- package/dist/useIndicator-i1NORM7W.js +147 -0
- package/dist/useMenuDrillIn-BgjJcY3K.js +520 -0
- package/dist/useMenuPress-DUmEy4TB.js +425 -0
- package/dist/useMonthGrid-fGHSSrFc.js +43 -0
- package/dist/usePendingChange-ib-h8FZK.js +25 -0
- package/dist/{composables-CVfjp9h4.js → useResizable-B3ahKLoZ.js} +74 -152
- package/dist/useSubmenuMode-CZN9qrUo.js +37 -0
- package/dist/useTruncation-B5qXQzAP.js +53 -0
- package/locales/SOURCE.json +37 -0
- package/locales/af-ZA.json +1482 -0
- package/locales/ar-SA.json +1482 -0
- package/locales/ca-ES.json +1482 -0
- package/locales/cs-CZ.json +1482 -0
- package/locales/da-DK.json +1482 -0
- package/locales/de-DE.json +1482 -0
- package/locales/el-GR.json +1482 -0
- package/locales/en.json +1646 -0
- package/locales/es-ES.json +1482 -0
- package/locales/fi-FI.json +1482 -0
- package/locales/fr-FR.json +1482 -0
- package/locales/he-IL.json +1482 -0
- package/locales/hu-HU.json +1482 -0
- package/locales/it-IT.json +1482 -0
- package/locales/ja-JP.json +1482 -0
- package/locales/ko-KR.json +1482 -0
- package/locales/nl-NL.json +1482 -0
- package/locales/no-NO.json +1482 -0
- package/locales/pl-PL.json +1482 -0
- package/locales/pt-BR.json +1482 -0
- package/locales/pt-PT.json +1482 -0
- package/locales/ro-RO.json +1482 -0
- package/locales/ru-RU.json +1482 -0
- package/locales/sr-SP.json +1482 -0
- package/locales/sv-SE.json +1482 -0
- package/locales/tr-TR.json +1482 -0
- package/locales/uk-UA.json +1482 -0
- package/locales/vi-VN.json +1482 -0
- package/locales/zh-CN.json +1482 -0
- package/locales/zh-TW.json +1482 -0
- package/package.json +7 -1
- package/styles/bottom-sheet.css +27 -0
- package/styles/calendar.css +38 -3
- package/styles/check-indicator.css +17 -0
- package/styles/checkbox-indicator.css +29 -10
- package/styles/checkbox-input.css +0 -11
- package/styles/code.css +62 -0
- package/styles/container-reveal.css +104 -0
- package/styles/date-input.css +48 -0
- package/styles/dropdown-menu.css +163 -0
- package/styles/field.css +48 -0
- package/styles/heading.css +47 -0
- package/styles/icon.css +51 -3
- package/styles/input-group.css +32 -3
- package/styles/keyboard-hint.css +28 -0
- package/styles/link.css +34 -0
- package/styles/list.css +88 -1
- package/styles/markdown.css +12 -0
- package/styles/multi-selector.css +26 -0
- package/styles/pagination.css +30 -0
- package/styles/progress-bar.css +49 -0
- package/styles/radio-indicator.css +90 -0
- package/styles/radio.css +9 -42
- package/styles/selector.css +112 -14
- package/styles/side-nav.css +36 -1
- package/styles/text.css +18 -0
- package/styles/top-nav.css +145 -6
- package/styles/typeahead.css +24 -0
- package/styles.css +4 -0
- package/dist/Calendar-BFaI5AMv.js +0 -352
- package/dist/CheckboxIndicator-DdJmksHt.js +0 -52
- package/dist/DateInput-BLocxqC3.js +0 -376
- package/dist/DropdownMenu-Ddfr-aEC.js +0 -164
- package/dist/Heading-Dugosn6j.js +0 -43
- package/dist/InputGroup-ChrFVxzV.js +0 -42
- package/dist/Item-C1z6gXn8.js +0 -289
- package/dist/Link-DqdQZ37C.js +0 -141
- package/dist/Selector-DE2IEFML.js +0 -468
- package/dist/Text-BHVghsWo.js +0 -53
- package/dist/Theme-BuUiiJNr.js +0 -429
- package/dist/Typeahead-P7cCqtaQ.js +0 -375
- package/dist/index-Bgv4ZmBl.d.ts +0 -72
- package/dist/index-DN7MXPHM.d.ts +0 -398
- package/dist/index-Dg3ZmwEg.d.ts +0 -75
- package/dist/index-IbUN4M8V.d.ts +0 -40
- package/dist/index-jdjcb3Js.d.ts +0 -80
- package/dist/locale-Cpk_nrLA.js +0 -18
- package/dist/syntaxTheme-Bcs1YMF7.d.ts +0 -38
- package/dist/types-DDAAT1Xd.d.ts +0 -285
- package/dist/useGridRovingFocus-DQQAOYH5.js +0 -99
- package/dist/useHotkeys-dABSK1o9.js +0 -80
- package/dist/useLongPress-Cyxwa73s.js +0 -60
- package/dist/{index-BUXNRekN.d.ts → index-IdK2g5B4.d.ts} +2 -2
package/dist/Chat/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-
|
|
1
|
+
import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-BFox3u9D.js";
|
|
2
2
|
export { _sfc_main as ChatComposer, _sfc_main$1 as ChatComposerDrawer, _sfc_main$2 as ChatComposerInput, _sfc_main$3 as ChatComposerTokenElement, _sfc_main$4 as ChatDictationButton, _sfc_main$5 as ChatLayout, _sfc_main$6 as ChatLayoutScrollButton, _sfc_main$7 as ChatMessage, _sfc_main$8 as ChatMessageBubble, _sfc_main$9 as ChatMessageList, _sfc_main$10 as ChatMessageMetadata, _sfc_main$11 as ChatReasoning, _sfc_main$12 as ChatSendButton, _sfc_main$13 as ChatSystemMessage, _sfc_main$14 as ChatTokenizedText, _sfc_main$15 as ChatToolCalls, _sfc_main$16 as ChatTypingIndicator, _sfc_main$17 as ChatUnreadDivider, PASTE_TOKEN_THRESHOLD, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
|
|
@@ -2,11 +2,11 @@ import { t as _sfc_main$24 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
|
2
2
|
import { t as _sfc_main$25 } from "./Button-DrqeomlE.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 { t as useDismiss } from "./useDismiss-
|
|
6
|
-
import { a as
|
|
5
|
+
import { t as useDismiss } from "./useDismiss-Cj8x_51F.js";
|
|
6
|
+
import { a as useAstryxLocale, o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
7
7
|
import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
|
|
8
8
|
import { t as _sfc_main$26 } from "./Badge-CjDQPF5g.js";
|
|
9
|
-
import { t as _sfc_main$27 } from "./Icon-
|
|
9
|
+
import { t as _sfc_main$27 } from "./Icon-bteSId7T.js";
|
|
10
10
|
import { t as _sfc_main$28 } from "./Divider-BtwnL18I.js";
|
|
11
11
|
import { t as _sfc_main$29 } from "./HoverCard-EhbWaGOW.js";
|
|
12
12
|
import { t as _sfc_main$30 } from "./Spinner-9cYUCnDy.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../CheckboxIndicator-
|
|
1
|
+
import { t as _sfc_main } from "../CheckboxIndicator-D37cm2Rh.js";
|
|
2
2
|
export { _sfc_main as CheckboxIndicator };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock, renderSlot, useAttrs, useTemplateRef } from "vue";
|
|
2
|
+
import "../styles/checkbox-indicator.css";
|
|
3
|
+
//#region src/Indicator/decorative.ts
|
|
4
|
+
const BLOCKED = /* @__PURE__ */ new Set([
|
|
5
|
+
"role",
|
|
6
|
+
"tabindex",
|
|
7
|
+
"contenteditable"
|
|
8
|
+
]);
|
|
9
|
+
/**
|
|
10
|
+
* Attributes that may reach a decorative graphic.
|
|
11
|
+
*
|
|
12
|
+
* The graphic announces nothing of its own. Role, tab stop, and aria
|
|
13
|
+
* attributes stay on the control that owns the name, even if a caller
|
|
14
|
+
* forwards them.
|
|
15
|
+
*/
|
|
16
|
+
function decorativeAttrs(attrs) {
|
|
17
|
+
return Object.fromEntries(Object.entries(attrs).filter(([key]) => {
|
|
18
|
+
const normalized = key.toLowerCase();
|
|
19
|
+
return !normalized.startsWith("aria") && !BLOCKED.has(normalized);
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/CheckboxIndicator/CheckboxIndicator.vue
|
|
24
|
+
const _hoisted_1 = [
|
|
25
|
+
"data-state",
|
|
26
|
+
"data-size",
|
|
27
|
+
"data-disabled"
|
|
28
|
+
];
|
|
29
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
30
|
+
name: "AstryxCheckboxIndicator",
|
|
31
|
+
inheritAttrs: false,
|
|
32
|
+
__name: "CheckboxIndicator",
|
|
33
|
+
props: {
|
|
34
|
+
state: {},
|
|
35
|
+
size: { default: "md" },
|
|
36
|
+
isDisabled: { type: Boolean }
|
|
37
|
+
},
|
|
38
|
+
setup(__props, { expose: __expose }) {
|
|
39
|
+
const props = __props;
|
|
40
|
+
const attrs = useAttrs();
|
|
41
|
+
const element = useTemplateRef("indicator");
|
|
42
|
+
const passed = computed(() => decorativeAttrs(attrs));
|
|
43
|
+
__expose({ element });
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return openBlock(), createElementBlock("span", mergeProps(passed.value, {
|
|
46
|
+
ref: "indicator",
|
|
47
|
+
class: "astryx-checkbox-indicator",
|
|
48
|
+
"aria-hidden": "true",
|
|
49
|
+
"data-state": __props.state,
|
|
50
|
+
"data-size": props.size,
|
|
51
|
+
"data-disabled": __props.isDisabled || void 0
|
|
52
|
+
}), [createCommentVNode("\n An empty slot, including a spinner hidden by v-if, falls through to the\n marks. A real element in the slot replaces them.\n "), renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = createElementVNode("svg", {
|
|
53
|
+
class: "astryx-checkbox-indicator-check",
|
|
54
|
+
viewBox: "0 0 10 10",
|
|
55
|
+
focusable: "false"
|
|
56
|
+
}, [createElementVNode("path", {
|
|
57
|
+
d: "M8.5 2.5L4 7.5L1.5 5",
|
|
58
|
+
stroke: "currentColor",
|
|
59
|
+
"stroke-width": "1.5",
|
|
60
|
+
fill: "none",
|
|
61
|
+
"stroke-linecap": "round",
|
|
62
|
+
"stroke-linejoin": "round"
|
|
63
|
+
})], -1)), _cache[1] || (_cache[1] = createElementVNode("span", { class: "astryx-checkbox-indicator-dash" }, null, -1))])], 16, _hoisted_1);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
export { decorativeAttrs as n, _sfc_main as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ai as CheckboxInputChangeAction, ci as CheckboxInputProps, ii as _default, li as CheckboxInputSlots, oi as CheckboxInputChangeEvent, si as CheckboxInputEmits, ui as CheckboxValue } from "../index-EtZgovdH.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-25Q8ItH-.js";
|
|
2
2
|
export { _sfc_main as CheckboxInput };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
2
|
import { n as useButtonTooltip } from "./Button-DrqeomlE.js";
|
|
3
3
|
import { t as _sfc_main$2 } from "./ButtonTooltip-nWWrth8j.js";
|
|
4
|
-
import { t as _sfc_main$3 } from "./CheckboxIndicator-DdJmksHt.js";
|
|
5
4
|
import { i as useAriaRequired } from "./context-Cfjh8te1.js";
|
|
6
|
-
import { t as _sfc_main$
|
|
7
|
-
import { t as _sfc_main$
|
|
8
|
-
import {
|
|
5
|
+
import { t as _sfc_main$3 } from "./FieldLabel-DmmJyX7w.js";
|
|
6
|
+
import { t as _sfc_main$4 } from "./FieldStatus-MjY19ERl.js";
|
|
7
|
+
import { t as useIndicator } from "./useIndicator-i1NORM7W.js";
|
|
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";
|
|
9
9
|
import "../styles/button.css";
|
|
10
10
|
import "../styles/checkbox-input.css";
|
|
11
11
|
//#region src/CheckboxInput/useCheckboxAction.ts
|
|
@@ -145,6 +145,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
145
145
|
const busy = computed(() => !!props.isLoading || action.isPending.value);
|
|
146
146
|
const blocked = computed(() => props.isDisabled || props.isReadOnly || busy.value);
|
|
147
147
|
const state = computed(() => action.value.value === "indeterminate" ? "indeterminate" : action.value.value ? "checked" : "unchecked");
|
|
148
|
+
const CheckboxMark = useIndicator("checkbox");
|
|
148
149
|
const widthStyle = computed(() => ({ width: typeof props.width === "number" ? `${props.width}px` : props.width }));
|
|
149
150
|
const element = computed(() => input.value ?? null);
|
|
150
151
|
function focus(options) {
|
|
@@ -229,7 +230,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
229
230
|
"data-blocked": blocked.value || void 0
|
|
230
231
|
}, [
|
|
231
232
|
createElementVNode("div", {
|
|
232
|
-
class: "astryx-checkbox-row",
|
|
233
|
+
class: normalizeClass(["astryx-checkbox-row", { "astryx-indicator-scope": !blocked.value }]),
|
|
233
234
|
onPointerenter: _cache[2] || (_cache[2] = (...args) => unref(tooltip).onPointerEnter && unref(tooltip).onPointerEnter(...args)),
|
|
234
235
|
onPointerleave: _cache[3] || (_cache[3] = (...args) => unref(tooltip).onPointerLeave && unref(tooltip).onPointerLeave(...args))
|
|
235
236
|
}, [createElementVNode("span", _hoisted_2, [createElementVNode("input", mergeProps(inputAttrs(), {
|
|
@@ -256,7 +257,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
256
257
|
onKeydown: keydown,
|
|
257
258
|
onFocus: _cache[0] || (_cache[0] = (...args) => unref(tooltip).onFocus && unref(tooltip).onFocus(...args)),
|
|
258
259
|
onBlur: _cache[1] || (_cache[1] = (...args) => unref(tooltip).onBlur && unref(tooltip).onBlur(...args))
|
|
259
|
-
}), null, 16, _hoisted_3),
|
|
260
|
+
}), null, 16, _hoisted_3), (openBlock(), createBlock(resolveDynamicComponent(unref(CheckboxMark)), {
|
|
260
261
|
state: state.value,
|
|
261
262
|
size: __props.size,
|
|
262
263
|
"is-disabled": __props.isDisabled
|
|
@@ -267,7 +268,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
267
268
|
"state",
|
|
268
269
|
"size",
|
|
269
270
|
"is-disabled"
|
|
270
|
-
])]), createVNode(_sfc_main$
|
|
271
|
+
]))]), createVNode(_sfc_main$3, {
|
|
271
272
|
label: __props.label,
|
|
272
273
|
"input-id": inputId.value,
|
|
273
274
|
"label-id": labelId.value,
|
|
@@ -299,8 +300,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
299
300
|
"label-tooltip",
|
|
300
301
|
"optional-label",
|
|
301
302
|
"required-label"
|
|
302
|
-
])],
|
|
303
|
-
createVNode(_sfc_main$
|
|
303
|
+
])], 34),
|
|
304
|
+
createVNode(_sfc_main$4, {
|
|
304
305
|
id: statusId.value,
|
|
305
306
|
type: __props.status?.type ?? "success",
|
|
306
307
|
message: __props.status?.message ?? "",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $r as _default, Qr as _default$1, ei as CheckboxListEmits, ni as CheckboxListItemProps, ri as CheckboxListProps, ti as CheckboxListItemEmits } from "../index-EtZgovdH.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-BlPf7vPe.js";
|
|
2
2
|
export { _sfc_main as CheckboxList, _sfc_main$1 as CheckboxListItem };
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as _sfc_main$2 } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "./Tooltip-C2fh9anJ.js";
|
|
3
|
+
import { r as useItemDescriptionId } from "./Item-DrYJL1TG.js";
|
|
4
|
+
import { t as _sfc_main$3 } from "./CheckboxInput-25Q8ItH-.js";
|
|
5
|
+
import { t as _sfc_main$4 } from "./Field-8zRxzDHE.js";
|
|
6
|
+
import { n as _sfc_main$5, t as _sfc_main$6 } from "./ListItem-CcRHWuEm.js";
|
|
7
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, inject, mergeModels, openBlock, provide, ref, renderSlot, toDisplayString, unref, useId, useModel, useTemplateRef, withCtx } from "vue";
|
|
6
8
|
import "../styles/checkbox-list.css";
|
|
9
|
+
import "../styles/visually-hidden-utility.css";
|
|
7
10
|
//#region src/CheckboxList/context.ts
|
|
8
11
|
const checkboxListKey = Symbol("astryx-checkbox-list");
|
|
9
12
|
//#endregion
|
|
10
13
|
//#region src/CheckboxList/CheckboxList.vue
|
|
14
|
+
const _hoisted_1$1 = ["id"];
|
|
11
15
|
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
12
16
|
name: "AstryxCheckboxList",
|
|
13
17
|
__name: "CheckboxList",
|
|
@@ -21,6 +25,9 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
21
25
|
default: false
|
|
22
26
|
},
|
|
23
27
|
isDisabled: { type: Boolean },
|
|
28
|
+
disabledReason: {},
|
|
29
|
+
isReadOnly: { type: Boolean },
|
|
30
|
+
changeAction: {},
|
|
24
31
|
isRequired: { type: Boolean },
|
|
25
32
|
isOptional: { type: Boolean },
|
|
26
33
|
isLabelHidden: { type: Boolean },
|
|
@@ -38,20 +45,38 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
38
45
|
const model = useModel(__props, "modelValue");
|
|
39
46
|
const generatedId = `astryx-checkbox-list-${useId()}`;
|
|
40
47
|
const inputId = computed(() => props.id ?? generatedId);
|
|
48
|
+
const pending = ref([]);
|
|
49
|
+
const optimistic = ref(null);
|
|
50
|
+
const shown = computed(() => optimistic.value ?? model.value);
|
|
51
|
+
const groupDisabled = computed(() => props.isDisabled ?? false);
|
|
52
|
+
const disabledReason = computed(() => props.disabledReason?.trim() || void 0);
|
|
53
|
+
const showsReason = computed(() => groupDisabled.value && disabledReason.value != null);
|
|
41
54
|
function toggle(value, checked) {
|
|
42
|
-
|
|
55
|
+
if (props.isReadOnly || pending.value.includes(value)) return;
|
|
56
|
+
const current = shown.value ?? [];
|
|
43
57
|
const next = checked ? current.includes(value) ? current : [...current, value] : current.filter((item) => item !== value);
|
|
44
58
|
model.value = next;
|
|
45
59
|
emit("change", next);
|
|
60
|
+
const action = props.changeAction;
|
|
61
|
+
if (action == null) return;
|
|
62
|
+
optimistic.value = next;
|
|
63
|
+
pending.value = [...pending.value, value];
|
|
64
|
+
Promise.resolve(action(next)).finally(() => {
|
|
65
|
+
pending.value = pending.value.filter((item) => item !== value);
|
|
66
|
+
if (pending.value.length === 0) optimistic.value = null;
|
|
67
|
+
});
|
|
46
68
|
}
|
|
47
69
|
provide(checkboxListKey, {
|
|
48
|
-
values:
|
|
70
|
+
values: shown,
|
|
49
71
|
toggle,
|
|
50
|
-
isDisabled:
|
|
72
|
+
isDisabled: groupDisabled,
|
|
73
|
+
disabledReason,
|
|
74
|
+
isReadOnly: computed(() => (props.isReadOnly ?? false) && !groupDisabled.value),
|
|
75
|
+
loadingValues: computed(() => pending.value),
|
|
51
76
|
size: computed(() => props.density === "compact" ? "sm" : "md")
|
|
52
77
|
});
|
|
53
78
|
return (_ctx, _cache) => {
|
|
54
|
-
return openBlock(), createBlock(_sfc_main$
|
|
79
|
+
return openBlock(), createBlock(_sfc_main$4, {
|
|
55
80
|
class: "astryx-checkbox-list",
|
|
56
81
|
label: __props.label,
|
|
57
82
|
"input-id": inputId.value,
|
|
@@ -65,20 +90,32 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
65
90
|
status: __props.status,
|
|
66
91
|
"status-variant": __props.statusVariant
|
|
67
92
|
}, {
|
|
68
|
-
default: withCtx((field) => [createVNode(_sfc_main$
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
93
|
+
default: withCtx((field) => [createVNode(_sfc_main$2, {
|
|
94
|
+
content: disabledReason.value,
|
|
95
|
+
"is-enabled": showsReason.value,
|
|
96
|
+
"focus-trigger": "always",
|
|
97
|
+
placement: "above"
|
|
73
98
|
}, {
|
|
74
|
-
default: withCtx(() => [
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
99
|
+
default: withCtx(() => [createVNode(_sfc_main$5, {
|
|
100
|
+
density: __props.density,
|
|
101
|
+
"has-dividers": __props.hasDividers,
|
|
102
|
+
"aria-labelledby": field.labelId,
|
|
103
|
+
"aria-describedby": [field.describedBy, showsReason.value ? `${inputId.value}-reason` : void 0].filter(Boolean).join(" ") || void 0
|
|
104
|
+
}, {
|
|
105
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
106
|
+
_: 3
|
|
107
|
+
}, 8, [
|
|
108
|
+
"density",
|
|
109
|
+
"has-dividers",
|
|
110
|
+
"aria-labelledby",
|
|
111
|
+
"aria-describedby"
|
|
112
|
+
])]),
|
|
113
|
+
_: 2
|
|
114
|
+
}, 1032, ["content", "is-enabled"]), showsReason.value ? (openBlock(), createElementBlock("span", {
|
|
115
|
+
key: 0,
|
|
116
|
+
id: `${inputId.value}-reason`,
|
|
117
|
+
class: "astryx-visually-hidden"
|
|
118
|
+
}, toDisplayString(disabledReason.value), 9, _hoisted_1$1)) : createCommentVNode("v-if", true)]),
|
|
82
119
|
_: 3
|
|
83
120
|
}, 8, [
|
|
84
121
|
"label",
|
|
@@ -106,6 +143,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
106
143
|
value: {},
|
|
107
144
|
description: {},
|
|
108
145
|
isDisabled: { type: Boolean },
|
|
146
|
+
isLoading: { type: Boolean },
|
|
109
147
|
isChecked: { type: [Boolean, String] }
|
|
110
148
|
},
|
|
111
149
|
emits: ["check"],
|
|
@@ -113,6 +151,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
113
151
|
const props = __props;
|
|
114
152
|
const emit = __emit;
|
|
115
153
|
const context = inject(checkboxListKey, void 0);
|
|
154
|
+
const messages = useAstryxMessages();
|
|
116
155
|
const descriptionId = useItemDescriptionId();
|
|
117
156
|
const checkbox = useTemplateRef("checkbox");
|
|
118
157
|
const interactiveRef = computed(() => checkbox.value?.element ?? null);
|
|
@@ -122,23 +161,28 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
122
161
|
return props.isChecked ?? false;
|
|
123
162
|
});
|
|
124
163
|
const disabled = computed(() => props.isDisabled || context?.isDisabled.value);
|
|
125
|
-
const
|
|
164
|
+
const readOnly = computed(() => context?.isReadOnly.value ?? false);
|
|
165
|
+
const loading = computed(() => props.isLoading || props.value != null && (context?.loadingValues.value.includes(props.value) ?? false));
|
|
166
|
+
const reason = computed(() => context?.isDisabled.value ? context.disabledReason.value : void 0);
|
|
167
|
+
const selected = computed(() => checked.value === true && !disabled.value && !readOnly.value);
|
|
126
168
|
if (collection.value && props.value == null) throw new Error("CheckboxListItem 在集合模式下必须提供 value。");
|
|
127
169
|
function onChecked(value) {
|
|
170
|
+
if (disabled.value || readOnly.value || loading.value) return;
|
|
128
171
|
const next = value === true;
|
|
129
172
|
if (collection.value && props.value != null) context?.toggle(props.value, next);
|
|
130
173
|
else emit("check", next);
|
|
131
174
|
}
|
|
132
175
|
return (_ctx, _cache) => {
|
|
133
|
-
return openBlock(), createBlock(_sfc_main$
|
|
176
|
+
return openBlock(), createBlock(_sfc_main$6, {
|
|
134
177
|
label: __props.label,
|
|
135
178
|
description: __props.description,
|
|
136
179
|
"is-selected": selected.value,
|
|
137
180
|
"is-disabled": disabled.value,
|
|
181
|
+
"aria-busy": loading.value || void 0,
|
|
138
182
|
"interactive-ref": interactiveRef.value
|
|
139
183
|
}, createSlots({
|
|
140
184
|
label: withCtx(() => [createElementVNode("span", _hoisted_1, toDisplayString(__props.label), 1)]),
|
|
141
|
-
startContent: withCtx(() => [createVNode(_sfc_main$
|
|
185
|
+
startContent: withCtx(() => [createVNode(_sfc_main$3, {
|
|
142
186
|
ref_key: "checkbox",
|
|
143
187
|
ref: checkbox,
|
|
144
188
|
"model-value": checked.value,
|
|
@@ -146,6 +190,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
146
190
|
"is-label-hidden": "",
|
|
147
191
|
size: unref(context)?.size.value ?? "md",
|
|
148
192
|
"is-disabled": disabled.value,
|
|
193
|
+
"is-read-only": readOnly.value,
|
|
194
|
+
"is-loading": loading.value,
|
|
195
|
+
"loading-label": unref(messages).checkboxList.loading,
|
|
196
|
+
"disabled-message": reason.value,
|
|
149
197
|
"aria-describedby": unref(descriptionId) ?? void 0,
|
|
150
198
|
"onUpdate:modelValue": onChecked
|
|
151
199
|
}, null, 8, [
|
|
@@ -153,6 +201,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
153
201
|
"label",
|
|
154
202
|
"size",
|
|
155
203
|
"is-disabled",
|
|
204
|
+
"is-read-only",
|
|
205
|
+
"is-loading",
|
|
206
|
+
"loading-label",
|
|
207
|
+
"disabled-message",
|
|
156
208
|
"aria-describedby"
|
|
157
209
|
])]),
|
|
158
210
|
_: 2
|
|
@@ -165,6 +217,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
165
217
|
"description",
|
|
166
218
|
"is-selected",
|
|
167
219
|
"is-disabled",
|
|
220
|
+
"aria-busy",
|
|
168
221
|
"interactive-ref"
|
|
169
222
|
]);
|
|
170
223
|
};
|
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-BG-vg9ia.js";
|
|
2
2
|
export { _sfc_main as Citation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
1
|
+
import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
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";
|
|
5
5
|
//#region src/Citation/Citation.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Jr as _default, Xr as ClickableCardProps, Yr as ClickableCardEmits, Zr as ClickableCardSlots } from "../index-EtZgovdH.js";
|
|
2
2
|
export { _default as ClickableCard, _default as default, type ClickableCardEmits, type ClickableCardProps, type ClickableCardSlots };
|
package/dist/Code/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { A as
|
|
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-hCpxKePE.js";
|
|
3
3
|
import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-CU-kfqeJ.js";
|
|
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, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, _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, dracula, flatTokensToLines, githubDark, githubLight, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, solarizedLight, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
|
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 _sfc_main, i as tokenize, n as SYNC_TOKENIZE_THRESHOLD, o as
|
|
3
|
-
import { n as
|
|
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-
|
|
5
|
-
export { _sfc_main as Code, _sfc_main$1 as CodeBlock, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, _sfc_main$2 as SyntaxTheme, allSyntaxPresets, applyHighlightRanges, catppuccinLatte, catppuccinMocha, darkSyntaxPresets, defineSyntaxTheme, dracula, flatTokensToLines, githubDark, githubLight, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, solarizedLight, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
|
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-B2pnEOJY.js";
|
|
3
|
+
import { i as githubDark, n as SYNTAX_TOKEN_KEYS, r as defineSyntaxTheme, t as DIFF_SYNTAX_TOKEN_KEYS } from "../syntaxTheme-R7xnu5x5.js";
|
|
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
|
+
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 useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
2
|
+
import { n as themeContextKey } from "./context-Cws_tXTr.js";
|
|
3
|
+
import { a as syntaxThemeStyle, i as githubDark, n as SYNTAX_TOKEN_KEYS, r as defineSyntaxTheme } from "./syntaxTheme-R7xnu5x5.js";
|
|
4
|
+
import { n as resolveLightDark, r as syntaxThemeKey, t as readColorMode } from "./colorMode-CBgdgDSn.js";
|
|
4
5
|
import { computed, createElementBlock, defineComponent, inject, normalizeClass, normalizeStyle, openBlock, provide, renderSlot } from "vue";
|
|
5
6
|
//#region src/Code/syntaxPresets.ts
|
|
6
7
|
/** One Dark Pro (Binaryify), MIT. */
|