@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
|
@@ -4,12 +4,24 @@ const calendarMessages = {
|
|
|
4
4
|
"en": {
|
|
5
5
|
label: "Calendar",
|
|
6
6
|
previousMonth: "Previous month",
|
|
7
|
-
nextMonth: "Next month"
|
|
7
|
+
nextMonth: "Next month",
|
|
8
|
+
rangeStart: (date) => `Range start, ${date}`,
|
|
9
|
+
rangeCleared: (date) => `Range cleared, ${date}`,
|
|
10
|
+
rangeComplete: (start, end) => `${start} to ${end}`,
|
|
11
|
+
rangeStartName: (date) => `${date}, range start`,
|
|
12
|
+
rangeEndName: (date) => `${date}, range end`,
|
|
13
|
+
rangeBoth: (date) => `${date}, range start and range end`
|
|
8
14
|
},
|
|
9
15
|
"zh-CN": {
|
|
10
16
|
label: "日历",
|
|
11
17
|
previousMonth: "上一月",
|
|
12
|
-
nextMonth: "下一月"
|
|
18
|
+
nextMonth: "下一月",
|
|
19
|
+
rangeStart: (date) => `已选择开始日期,${date}`,
|
|
20
|
+
rangeCleared: (date) => `已取消选择,${date}`,
|
|
21
|
+
rangeComplete: (start, end) => `${start}到${end}`,
|
|
22
|
+
rangeStartName: (date) => `${date},范围开始`,
|
|
23
|
+
rangeEndName: (date) => `${date},范围结束`,
|
|
24
|
+
rangeBoth: (date) => `${date},范围开始和结束`
|
|
13
25
|
}
|
|
14
26
|
};
|
|
15
27
|
//#endregion
|
|
@@ -111,6 +123,12 @@ const chatMessages = {
|
|
|
111
123
|
}
|
|
112
124
|
};
|
|
113
125
|
//#endregion
|
|
126
|
+
//#region src/locale/messages/checkbox-list.ts
|
|
127
|
+
const checkboxListMessages = {
|
|
128
|
+
"en": { loading: "Loading" },
|
|
129
|
+
"zh-CN": { loading: "正在加载" }
|
|
130
|
+
};
|
|
131
|
+
//#endregion
|
|
114
132
|
//#region src/locale/messages/citation.ts
|
|
115
133
|
const citationMessages = {
|
|
116
134
|
"en": { label: (number, title) => `Citation ${number}: ${title}` },
|
|
@@ -159,14 +177,18 @@ const dateInputMessages = {
|
|
|
159
177
|
dialogLabel: "Choose date",
|
|
160
178
|
openCalendar: "Open calendar",
|
|
161
179
|
closeCalendar: "Close calendar",
|
|
162
|
-
clear: (label) => clearLabel(label, "Clear", "Clear ")
|
|
180
|
+
clear: (label) => clearLabel(label, "Clear", "Clear "),
|
|
181
|
+
invalidDate: "That date is not available",
|
|
182
|
+
loading: "Loading"
|
|
163
183
|
},
|
|
164
184
|
"zh-CN": {
|
|
165
185
|
placeholder: "选择日期",
|
|
166
186
|
dialogLabel: "选择日期",
|
|
167
187
|
openCalendar: "打开日历",
|
|
168
188
|
closeCalendar: "关闭日历",
|
|
169
|
-
clear: (label) => clearLabel(label, "清除", "清除")
|
|
189
|
+
clear: (label) => clearLabel(label, "清除", "清除"),
|
|
190
|
+
invalidDate: "这个日期不可用",
|
|
191
|
+
loading: "正在加载"
|
|
170
192
|
}
|
|
171
193
|
};
|
|
172
194
|
//#endregion
|
|
@@ -198,6 +220,18 @@ const dateTimeInputMessages = {
|
|
|
198
220
|
}
|
|
199
221
|
};
|
|
200
222
|
//#endregion
|
|
223
|
+
//#region src/locale/messages/dropdown-menu.ts
|
|
224
|
+
const dropdownMenuMessages = {
|
|
225
|
+
"en": {
|
|
226
|
+
back: "Back",
|
|
227
|
+
backTo: (parent) => `Back to ${parent}`
|
|
228
|
+
},
|
|
229
|
+
"zh-CN": {
|
|
230
|
+
back: "返回",
|
|
231
|
+
backTo: (parent) => `返回到${parent}`
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
//#endregion
|
|
201
235
|
//#region src/locale/messages/file-input.ts
|
|
202
236
|
const fileInputMessages = {
|
|
203
237
|
"en": {
|
|
@@ -224,6 +258,26 @@ const fileInputMessages = {
|
|
|
224
258
|
}
|
|
225
259
|
};
|
|
226
260
|
//#endregion
|
|
261
|
+
//#region src/locale/messages/input.ts
|
|
262
|
+
const inputMessages = {
|
|
263
|
+
"en": {
|
|
264
|
+
statusError: "Error details",
|
|
265
|
+
statusWarning: "Warning details",
|
|
266
|
+
statusSuccess: "Success details"
|
|
267
|
+
},
|
|
268
|
+
"zh-CN": {
|
|
269
|
+
statusError: "错误详情",
|
|
270
|
+
statusWarning: "警告详情",
|
|
271
|
+
statusSuccess: "成功详情"
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
//#endregion
|
|
275
|
+
//#region src/locale/messages/keyboard-hint.ts
|
|
276
|
+
const keyboardHintMessages = {
|
|
277
|
+
"en": { navigate: "to navigate" },
|
|
278
|
+
"zh-CN": { navigate: "移动" }
|
|
279
|
+
};
|
|
280
|
+
//#endregion
|
|
227
281
|
//#region src/locale/messages/layout.ts
|
|
228
282
|
const layoutMessages = {
|
|
229
283
|
"en": {
|
|
@@ -301,18 +355,30 @@ const multiSelectorMessages = {
|
|
|
301
355
|
search: "Search…",
|
|
302
356
|
clear: "Clear",
|
|
303
357
|
empty: "No matches",
|
|
358
|
+
emptySearch: "No results found",
|
|
304
359
|
selectAll: "Select all",
|
|
305
360
|
selected: (count) => `${count} selected`,
|
|
306
|
-
more: (count) => `+${count}
|
|
361
|
+
more: (count) => `+${count}`,
|
|
362
|
+
resultCount: (count) => count === 1 ? "1 result" : `${count} results`,
|
|
363
|
+
create: (query) => `Create "${query}"`,
|
|
364
|
+
created: (label) => `${label} created`,
|
|
365
|
+
readOnly: "Read-only",
|
|
366
|
+
loading: "Loading"
|
|
307
367
|
},
|
|
308
368
|
"zh-CN": {
|
|
309
369
|
placeholder: "请选择",
|
|
310
370
|
search: "搜索…",
|
|
311
371
|
clear: "清除",
|
|
312
372
|
empty: "无匹配项",
|
|
373
|
+
emptySearch: "未找到结果",
|
|
313
374
|
selectAll: "全选",
|
|
314
375
|
selected: (count) => `已选 ${count} 项`,
|
|
315
|
-
more: (count) => `+${count}
|
|
376
|
+
more: (count) => `+${count}`,
|
|
377
|
+
resultCount: (count) => `${count} 个结果`,
|
|
378
|
+
create: (query) => `创建“${query}”`,
|
|
379
|
+
created: (label) => `已创建 ${label}`,
|
|
380
|
+
readOnly: "只读",
|
|
381
|
+
loading: "正在加载"
|
|
316
382
|
}
|
|
317
383
|
};
|
|
318
384
|
//#endregion
|
|
@@ -331,7 +397,9 @@ const navMessages = {
|
|
|
331
397
|
moreItems: (count) => `${count} more`,
|
|
332
398
|
expandItem: (label) => `Expand ${label}`,
|
|
333
399
|
collapseItem: (label) => `Collapse ${label}`,
|
|
334
|
-
submenu: (label) => `${label} submenu
|
|
400
|
+
submenu: (label) => `${label} submenu`,
|
|
401
|
+
resizeSidebar: "Resize sidebar",
|
|
402
|
+
opensInNewTab: "(opens in new tab)"
|
|
335
403
|
},
|
|
336
404
|
"zh-CN": {
|
|
337
405
|
sideNav: "侧边导航",
|
|
@@ -346,7 +414,9 @@ const navMessages = {
|
|
|
346
414
|
moreItems: (count) => `还有 ${count} 项`,
|
|
347
415
|
expandItem: (label) => `展开${label}`,
|
|
348
416
|
collapseItem: (label) => `收起${label}`,
|
|
349
|
-
submenu: (label) => `${label}
|
|
417
|
+
submenu: (label) => `${label}子菜单`,
|
|
418
|
+
resizeSidebar: "调整侧栏宽度",
|
|
419
|
+
opensInNewTab: "(在新标签页打开)"
|
|
350
420
|
}
|
|
351
421
|
};
|
|
352
422
|
//#endregion
|
|
@@ -380,7 +450,14 @@ const paginationMessages = {
|
|
|
380
450
|
pageSize: (count) => `${count} / page`,
|
|
381
451
|
total: (total, from, to) => `${from}–${to} of ${total}`,
|
|
382
452
|
compact: (page, totalPages) => `${page} / ${totalPages}`,
|
|
383
|
-
pageOf: (page, totalPages) => `Page ${page} of ${totalPages}
|
|
453
|
+
pageOf: (page, totalPages) => `Page ${page} of ${totalPages}`,
|
|
454
|
+
first: "First page",
|
|
455
|
+
last: "Last page",
|
|
456
|
+
previousBy: (step) => `Back ${step} pages`,
|
|
457
|
+
nextBy: (step) => `Forward ${step} pages`,
|
|
458
|
+
pageLabel: "Page",
|
|
459
|
+
goToPage: "Go to page",
|
|
460
|
+
ofTotal: (totalPages) => `/ ${totalPages}`
|
|
384
461
|
},
|
|
385
462
|
"zh-CN": {
|
|
386
463
|
nav: "分页导航",
|
|
@@ -392,7 +469,14 @@ const paginationMessages = {
|
|
|
392
469
|
pageSize: (count) => `${count} 条/页`,
|
|
393
470
|
total: (total, from, to) => `共 ${total} 条,显示 ${from}-${to}`,
|
|
394
471
|
compact: (page, totalPages) => `${page} / ${totalPages}`,
|
|
395
|
-
pageOf: (page, totalPages) => `第 ${page} 页,共 ${totalPages}
|
|
472
|
+
pageOf: (page, totalPages) => `第 ${page} 页,共 ${totalPages} 页`,
|
|
473
|
+
first: "第一页",
|
|
474
|
+
last: "最后一页",
|
|
475
|
+
previousBy: (step) => `后退 ${step} 页`,
|
|
476
|
+
nextBy: (step) => `前进 ${step} 页`,
|
|
477
|
+
pageLabel: "页",
|
|
478
|
+
goToPage: "跳转到页",
|
|
479
|
+
ofTotal: (totalPages) => `/ ${totalPages}`
|
|
396
480
|
}
|
|
397
481
|
};
|
|
398
482
|
const powerSearchMessages = {
|
|
@@ -532,13 +616,21 @@ const selectorMessages = {
|
|
|
532
616
|
placeholder: "Select…",
|
|
533
617
|
search: "Search…",
|
|
534
618
|
clear: "Clear",
|
|
535
|
-
empty: "No matches"
|
|
619
|
+
empty: "No matches",
|
|
620
|
+
emptySearch: "No results found",
|
|
621
|
+
resultCount: (count) => count === 1 ? "1 result" : `${count} results`,
|
|
622
|
+
readOnly: "Read-only",
|
|
623
|
+
loading: "Loading"
|
|
536
624
|
},
|
|
537
625
|
"zh-CN": {
|
|
538
626
|
placeholder: "请选择",
|
|
539
627
|
search: "搜索…",
|
|
540
628
|
clear: "清除",
|
|
541
|
-
empty: "无匹配项"
|
|
629
|
+
empty: "无匹配项",
|
|
630
|
+
emptySearch: "未找到结果",
|
|
631
|
+
resultCount: (count) => `${count} 个结果`,
|
|
632
|
+
readOnly: "只读",
|
|
633
|
+
loading: "正在加载"
|
|
542
634
|
}
|
|
543
635
|
};
|
|
544
636
|
//#endregion
|
|
@@ -746,12 +838,16 @@ const astryxMessages = {
|
|
|
746
838
|
calendar: calendarMessages.en,
|
|
747
839
|
carousel: carouselMessages.en,
|
|
748
840
|
chat: chatMessages.en,
|
|
841
|
+
checkboxList: checkboxListMessages.en,
|
|
749
842
|
citation: citationMessages.en,
|
|
750
843
|
commandPalette: commandPaletteMessages.en,
|
|
751
844
|
dateInput: dateInputMessages.en,
|
|
752
845
|
dateRangeInput: dateRangeInputMessages.en,
|
|
753
846
|
dateTimeInput: dateTimeInputMessages.en,
|
|
847
|
+
dropdownMenu: dropdownMenuMessages.en,
|
|
754
848
|
fileInput: fileInputMessages.en,
|
|
849
|
+
input: inputMessages.en,
|
|
850
|
+
keyboardHint: keyboardHintMessages.en,
|
|
755
851
|
layout: layoutMessages.en,
|
|
756
852
|
lightbox: lightboxMessages.en,
|
|
757
853
|
markdown: markdownMessages.en,
|
|
@@ -777,12 +873,16 @@ const astryxMessages = {
|
|
|
777
873
|
calendar: calendarMessages["zh-CN"],
|
|
778
874
|
carousel: carouselMessages["zh-CN"],
|
|
779
875
|
chat: chatMessages["zh-CN"],
|
|
876
|
+
checkboxList: checkboxListMessages["zh-CN"],
|
|
780
877
|
citation: citationMessages["zh-CN"],
|
|
781
878
|
commandPalette: commandPaletteMessages["zh-CN"],
|
|
782
879
|
dateInput: dateInputMessages["zh-CN"],
|
|
783
880
|
dateRangeInput: dateRangeInputMessages["zh-CN"],
|
|
784
881
|
dateTimeInput: dateTimeInputMessages["zh-CN"],
|
|
882
|
+
dropdownMenu: dropdownMenuMessages["zh-CN"],
|
|
785
883
|
fileInput: fileInputMessages["zh-CN"],
|
|
884
|
+
input: inputMessages["zh-CN"],
|
|
885
|
+
keyboardHint: keyboardHintMessages["zh-CN"],
|
|
786
886
|
layout: layoutMessages["zh-CN"],
|
|
787
887
|
lightbox: lightboxMessages["zh-CN"],
|
|
788
888
|
markdown: markdownMessages["zh-CN"],
|
|
@@ -808,13 +908,31 @@ const astryxMessages = {
|
|
|
808
908
|
//#endregion
|
|
809
909
|
//#region src/locale/context.ts
|
|
810
910
|
const astryxLocaleKey = Symbol("astryx-locale");
|
|
911
|
+
const astryxMessagesKey = Symbol("astryx-messages");
|
|
912
|
+
/**
|
|
913
|
+
* 把语言标签收成组件能用的写法。
|
|
914
|
+
* `en` 和 `en-*` 收成 `en`。`zh`、`zh-CN`、`zh-Hans` 收成 `zh-CN`。
|
|
915
|
+
* `zh-TW` 以及其他标签保留规范写法,用来接 `loadAstryxCatalog` 的结果。
|
|
916
|
+
* 空值和解析不了的标签回到 `en`。
|
|
917
|
+
*/
|
|
811
918
|
function normalizeLocale(locale) {
|
|
812
|
-
const
|
|
813
|
-
if (
|
|
814
|
-
|
|
919
|
+
const trimmed = locale?.trim() ?? "";
|
|
920
|
+
if (trimmed === "") return "en";
|
|
921
|
+
let parsed;
|
|
922
|
+
try {
|
|
923
|
+
parsed = new Intl.Locale(trimmed);
|
|
924
|
+
} catch {
|
|
925
|
+
return "en";
|
|
926
|
+
}
|
|
927
|
+
const base = parsed.baseName;
|
|
928
|
+
const lower = base.toLowerCase();
|
|
929
|
+
if (lower === "en" || lower.startsWith("en-")) return "en";
|
|
930
|
+
if (lower === "zh" || lower === "zh-cn" || lower === "zh-hans" || lower.startsWith("zh-hans-")) return "zh-CN";
|
|
931
|
+
return base;
|
|
815
932
|
}
|
|
816
|
-
function provideAstryxLocale(locale) {
|
|
933
|
+
function provideAstryxLocale(locale, messages) {
|
|
817
934
|
provide(astryxLocaleKey, computed(() => normalizeLocale(toValue(locale))));
|
|
935
|
+
if (messages !== void 0) provide(astryxMessagesKey, computed(() => toValue(messages)));
|
|
818
936
|
}
|
|
819
937
|
function useAstryxLocale() {
|
|
820
938
|
const injected = inject(astryxLocaleKey, void 0);
|
|
@@ -822,7 +940,11 @@ function useAstryxLocale() {
|
|
|
822
940
|
}
|
|
823
941
|
function useAstryxMessages() {
|
|
824
942
|
const locale = useAstryxLocale();
|
|
825
|
-
|
|
943
|
+
const provided = inject(astryxMessagesKey, void 0);
|
|
944
|
+
return computed(() => {
|
|
945
|
+
if (provided != null) return toValue(provided);
|
|
946
|
+
return locale.value === "zh-CN" ? astryxMessages["zh-CN"] : astryxMessages.en;
|
|
947
|
+
});
|
|
826
948
|
}
|
|
827
949
|
//#endregion
|
|
828
|
-
export {
|
|
950
|
+
export { useAstryxLocale as a, provideAstryxLocale as i, astryxMessagesKey as n, useAstryxMessages as o, normalizeLocale as r, astryxMessages as s, astryxLocaleKey as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/Theme/context.ts
|
|
2
|
+
const themeContextKey = Symbol("astryx-theme");
|
|
3
|
+
/** Present when this component is already inside a Theme. */
|
|
4
|
+
const themeNestingKey = Symbol("astryx-theme-nesting");
|
|
5
|
+
const mediaThemeKey = Symbol("astryx-media-theme");
|
|
6
|
+
//#endregion
|
|
7
|
+
export { themeContextKey as n, themeNestingKey as r, mediaThemeKey as t };
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import { n as LayerPlacement, t as LayerAlignment } from "./position-DFW5ymAF.js";
|
|
2
|
-
import {
|
|
3
|
-
import { ComputedRef, InjectionKey } from "vue";
|
|
2
|
+
import { A as DropdownMenuSize, F as DropdownMenuSubMenuSlots, N as DropdownMenuSubMenuPresentation, P as DropdownMenuSubMenuProps, _ as DropdownMenuItemSlots, b as DropdownMenuPresentation, f as DropdownMenuGroupProps, g as DropdownMenuItemProps, i as DropdownMenuButtonProps, j as DropdownMenuSlots, p as DropdownMenuGroupSlots, v as DropdownMenuItemVariant, x as DropdownMenuProps } from "./DropdownMenuRadioItem.vue-CXEURBcq.js";
|
|
3
|
+
import { ComputedRef, InjectionKey, Ref } from "vue";
|
|
4
|
+
//#region src/DropdownMenu/useMenuDrillIn.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* The view stack a menu root keeps so a submenu can replace the rows in place.
|
|
7
|
+
*
|
|
8
|
+
* Sampled once, when the menu opens, so the panel never changes shape under
|
|
9
|
+
* the pointer. Closing forgets the stack and the next open starts at the root.
|
|
10
|
+
*/
|
|
11
|
+
interface MenuDrillIn {
|
|
12
|
+
isCompactTouch: boolean;
|
|
13
|
+
viewStack: readonly string[];
|
|
14
|
+
host: HTMLElement | null;
|
|
15
|
+
push: (viewId: string) => void;
|
|
16
|
+
pop: () => void;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
4
19
|
//#region src/DropdownMenu/context.d.ts
|
|
5
20
|
/**
|
|
6
21
|
* What a `DropdownMenu` tells the rows inside it.
|
|
@@ -16,9 +31,25 @@ interface DropdownMenuContextValue {
|
|
|
16
31
|
isOpen: ComputedRef<boolean>;
|
|
17
32
|
/** Size of the menu, derived from the trigger button's size. */
|
|
18
33
|
menuSize: ComputedRef<DropdownMenuSize>;
|
|
34
|
+
/** Name a drilled view's Back row returns to. */
|
|
35
|
+
menuLabel: ComputedRef<string | undefined>;
|
|
36
|
+
/** Whether a header or footer sits beside the menu. */
|
|
37
|
+
hasRegions: ComputedRef<boolean>;
|
|
38
|
+
/** View stack for submenus that replace the rows in place. */
|
|
39
|
+
drillIn: ComputedRef<MenuDrillIn>;
|
|
40
|
+
/** Move focus to the header or the footer. */
|
|
41
|
+
focusRegion: (direction: 'previous' | 'next') => boolean;
|
|
19
42
|
}
|
|
20
43
|
/** The surrounding menu, or `undefined` when a row stands alone. */
|
|
21
44
|
declare function useDropdownMenuContext(): DropdownMenuContextValue | undefined;
|
|
45
|
+
/** Single-select state owned by `DropdownMenuRadioGroup`. */
|
|
46
|
+
interface DropdownMenuRadioGroupContext {
|
|
47
|
+
value: ComputedRef<string | undefined>;
|
|
48
|
+
hasCloseOnSelect: ComputedRef<boolean>;
|
|
49
|
+
select: (value: string) => void;
|
|
50
|
+
}
|
|
51
|
+
/** The radio group around this row, or `undefined` when there is none. */
|
|
52
|
+
declare function useDropdownMenuRadioGroup(): DropdownMenuRadioGroupContext | undefined;
|
|
22
53
|
//#endregion
|
|
23
54
|
//#region src/DropdownMenu/DropdownMenu.vue.d.ts
|
|
24
55
|
type __VLS_Props = DropdownMenuProps;
|
|
@@ -86,8 +117,14 @@ type __VLS_WithSlots$1<T, S> = T & {
|
|
|
86
117
|
//#endregion
|
|
87
118
|
//#region src/DropdownMenu/DropdownMenuSubMenu.vue.d.ts
|
|
88
119
|
type __VLS_Slots = DropdownMenuSubMenuSlots;
|
|
89
|
-
declare const __VLS_base: import("vue").DefineComponent<DropdownMenuSubMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
120
|
+
declare const __VLS_base: import("vue").DefineComponent<DropdownMenuSubMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
121
|
+
openChange: (isOpen: boolean) => any;
|
|
122
|
+
}, string, import("vue").PublicProps, Readonly<DropdownMenuSubMenuProps> & Readonly<{
|
|
123
|
+
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
124
|
+
}>, {
|
|
90
125
|
isDisabled: boolean;
|
|
126
|
+
presentation: DropdownMenuSubMenuPresentation;
|
|
127
|
+
hasSpinner: boolean;
|
|
91
128
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
92
129
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
93
130
|
declare const _default: typeof __VLS_export;
|
|
@@ -97,4 +134,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
97
134
|
};
|
|
98
135
|
};
|
|
99
136
|
//#endregion
|
|
100
|
-
export { _default$4 as a, _default$3 as i, _default$1 as n, DropdownMenuContextValue as o, _default$2 as r,
|
|
137
|
+
export { _default$4 as a, useDropdownMenuContext as c, _default$3 as i, useDropdownMenuRadioGroup as l, _default$1 as n, DropdownMenuContextValue as o, _default$2 as r, DropdownMenuRadioGroupContext as s, _default as t, MenuDrillIn as u };
|
|
@@ -363,21 +363,21 @@ declare const __VLS_base: import("vue").DefineComponent<PowerSearchProps, {
|
|
|
363
363
|
focusTypeahead: () => void | undefined;
|
|
364
364
|
blurTypeahead: () => void | undefined;
|
|
365
365
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
366
|
+
change: (filters: PowerSearchFilter[], changeType: PowerSearchChangeType, index: number) => any;
|
|
366
367
|
blur: (event: FocusEvent) => any;
|
|
367
368
|
focus: (event: FocusEvent) => any;
|
|
368
|
-
change: (filters: PowerSearchFilter[], changeType: PowerSearchChangeType, index: number) => any;
|
|
369
369
|
"update:filters": (filters: PowerSearchFilter[]) => any;
|
|
370
370
|
}, string, import("vue").PublicProps, Readonly<PowerSearchProps> & Readonly<{
|
|
371
|
+
onChange?: ((filters: PowerSearchFilter[], changeType: PowerSearchChangeType, index: number) => any) | undefined;
|
|
371
372
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
372
373
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
373
|
-
onChange?: ((filters: PowerSearchFilter[], changeType: PowerSearchChangeType, index: number) => any) | undefined;
|
|
374
374
|
"onUpdate:filters"?: ((filters: PowerSearchFilter[]) => any) | undefined;
|
|
375
375
|
}>, {
|
|
376
376
|
size: PowerSearchSize;
|
|
377
377
|
status: PowerSearchStatus;
|
|
378
378
|
statusVariant: PowerSearchStatusVariant;
|
|
379
|
-
disabled: boolean;
|
|
380
379
|
labelHidden: boolean;
|
|
380
|
+
disabled: boolean;
|
|
381
381
|
clearable: boolean;
|
|
382
382
|
overflow: PowerSearchOverflow;
|
|
383
383
|
readOnly: boolean;
|
|
@@ -8,11 +8,11 @@ declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {
|
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
9
9
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
|
-
|
|
11
|
+
type: "button" | "reset" | "submit";
|
|
12
12
|
isDisabled: boolean;
|
|
13
|
+
elevation: ButtonElevation;
|
|
13
14
|
isLoading: boolean;
|
|
14
15
|
isIconOnly: boolean;
|
|
15
|
-
type: "button" | "reset" | "submit";
|
|
16
16
|
isInterruptible: boolean;
|
|
17
17
|
loadingLabel: string;
|
|
18
18
|
variant: ButtonVariant;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { n as LinkProps, t as LinkColor } from "./types-D_J66aPN.js";
|
|
2
|
+
//#region src/Link/Link.vue.d.ts
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
default: () => unknown;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
click: (event: MouseEvent) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{
|
|
9
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
isDisabled: boolean;
|
|
12
|
+
color: LinkColor;
|
|
13
|
+
maxLines: number;
|
|
14
|
+
isExternalLink: boolean;
|
|
15
|
+
hasUnderline: boolean;
|
|
16
|
+
isStandalone: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { _default as t };
|
|
@@ -1,89 +1,29 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { c as ThemeProps, i as MediaThemeProps, n as DefineThemeInput, o as ThemeDefinition, s as ThemeMode } from "./types-gKsEkk2g.js";
|
|
2
2
|
import { ComputedRef } from "vue";
|
|
3
|
-
//#region src/Theme/
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* A token value.
|
|
8
|
-
*
|
|
9
|
-
* A string is used as written. A two-item tuple is the light stop, then the
|
|
10
|
-
* dark stop, and becomes `light-dark()`.
|
|
11
|
-
*/
|
|
12
|
-
type ThemeTokenValue = string | readonly [string, string];
|
|
13
|
-
/** CSS custom properties for a theme. Keys may omit the `--astryx-` prefix. */
|
|
14
|
-
type ThemeTokens = Record<string, ThemeTokenValue>;
|
|
15
|
-
/** Token overrides for one inverted surface. */
|
|
16
|
-
interface ThemeSurfaceInput {
|
|
17
|
-
tokens?: ThemeTokens;
|
|
18
|
-
}
|
|
19
|
-
interface DefineThemeInput {
|
|
20
|
-
/** Theme name. Used as `data-astryx-theme`. */
|
|
21
|
-
name: string;
|
|
22
|
-
/** Semantic token overrides for this theme. */
|
|
23
|
-
tokens?: ThemeTokens;
|
|
24
|
-
/** Another theme to start from. This theme's own values win. */
|
|
25
|
-
extends?: ThemeDefinition;
|
|
26
|
-
/** Syntax colors for code in this subtree, unless a SyntaxTheme is closer. */
|
|
27
|
-
syntax?: SyntaxThemeDefinition;
|
|
28
|
-
/** Extra tokens for content on a dark surface. */
|
|
29
|
-
onDark?: ThemeSurfaceInput;
|
|
30
|
-
/** Extra tokens for content on a light surface. */
|
|
31
|
-
onLight?: ThemeSurfaceInput;
|
|
32
|
-
}
|
|
33
|
-
interface ThemeDefinition {
|
|
34
|
-
name: string;
|
|
35
|
-
/** Token values already written as CSS. */
|
|
36
|
-
tokens: Readonly<Record<string, string>>;
|
|
37
|
-
/** Extra tokens applied by MediaTheme when the surface is dark. */
|
|
38
|
-
onDark: Readonly<Record<string, string>>;
|
|
39
|
-
/** Extra tokens applied by MediaTheme when the surface is light. */
|
|
40
|
-
onLight: Readonly<Record<string, string>>;
|
|
41
|
-
syntax?: SyntaxThemeDefinition;
|
|
42
|
-
readonly __astryxTheme: true;
|
|
43
|
-
}
|
|
44
|
-
interface ThemeProps {
|
|
45
|
-
/** Theme from `defineTheme()`. */
|
|
46
|
-
theme: ThemeDefinition;
|
|
47
|
-
/**
|
|
48
|
-
* Color mode for this subtree.
|
|
49
|
-
* @default 'system'
|
|
50
|
-
*/
|
|
51
|
-
mode?: ThemeMode;
|
|
52
|
-
}
|
|
53
|
-
/** Surface luminance, `auto` to measure it, or `off` to leave the page theme. */
|
|
54
|
-
type MediaThemeMode = 'dark' | 'light' | 'auto' | 'off';
|
|
55
|
-
interface MediaThemeProps {
|
|
56
|
-
/**
|
|
57
|
-
* Which surface the children sit on.
|
|
58
|
-
* `auto` measures the parent. `off` keeps the surrounding theme.
|
|
59
|
-
*/
|
|
60
|
-
mode: MediaThemeMode;
|
|
61
|
-
/**
|
|
62
|
-
* Side used by `auto` before the surface can be measured, and when it cannot.
|
|
63
|
-
* @default 'dark'
|
|
64
|
-
*/
|
|
65
|
-
fallback?: 'dark' | 'light';
|
|
66
|
-
}
|
|
3
|
+
//#region src/Theme/tokenName.d.ts
|
|
4
|
+
/** Accept `--color-accent`, `--astryx-color-accent`, or `color-accent`. */
|
|
5
|
+
declare function normalizeTokenName(name: string): string;
|
|
67
6
|
//#endregion
|
|
68
7
|
//#region src/Theme/defineTheme.d.ts
|
|
69
8
|
declare function isDefinedTheme(value: unknown): value is ThemeDefinition;
|
|
70
|
-
/** Accept `--color-accent`, `--astryx-color-accent`, or `color-accent`. */
|
|
71
|
-
declare function normalizeTokenName(name: string): string;
|
|
72
9
|
/**
|
|
73
10
|
* Create a theme object that `Theme` can apply to a subtree.
|
|
74
11
|
*
|
|
75
12
|
* Token names are the upstream names (`--color-accent`) or this package's
|
|
76
13
|
* prefixed names (`--astryx-color-accent`). A `[light, dark]` tuple becomes
|
|
77
|
-
* `light-dark()`.
|
|
14
|
+
* `light-dark()`. `color`, `typography`, `radius`, and `motion` generate
|
|
15
|
+
* tokens; an explicit `tokens` entry wins for that name.
|
|
16
|
+
*
|
|
17
|
+
* `var(--color-accent)` inside a value is rewritten to the prefixed name.
|
|
78
18
|
*/
|
|
79
19
|
declare function defineTheme(input: DefineThemeInput): ThemeDefinition;
|
|
80
20
|
/** Neutral, with no token overrides. Colors come from `@astryx-vue/themes/neutral.css`. */
|
|
81
21
|
declare const neutralTheme: ThemeDefinition;
|
|
82
22
|
//#endregion
|
|
83
23
|
//#region src/Theme/MediaTheme.vue.d.ts
|
|
84
|
-
declare var __VLS_1
|
|
24
|
+
declare var __VLS_1: {};
|
|
85
25
|
type __VLS_Slots$1 = {} & {
|
|
86
|
-
default?: (props: typeof __VLS_1
|
|
26
|
+
default?: (props: typeof __VLS_1) => any;
|
|
87
27
|
};
|
|
88
28
|
declare const __VLS_base$1: import("vue").DefineComponent<MediaThemeProps, {
|
|
89
29
|
element: Readonly<import("vue").ShallowRef<HTMLElement | null>>;
|
|
@@ -99,9 +39,9 @@ type __VLS_WithSlots$1<T, S> = T & {
|
|
|
99
39
|
};
|
|
100
40
|
//#endregion
|
|
101
41
|
//#region src/Theme/Theme.vue.d.ts
|
|
102
|
-
declare var
|
|
42
|
+
declare var __VLS_6: {};
|
|
103
43
|
type __VLS_Slots = {} & {
|
|
104
|
-
default?: (props: typeof
|
|
44
|
+
default?: (props: typeof __VLS_6) => any;
|
|
105
45
|
};
|
|
106
46
|
declare const __VLS_base: import("vue").DefineComponent<ThemeProps, {
|
|
107
47
|
element: Readonly<import("vue").ShallowRef<HTMLElement | null>>;
|
|
@@ -144,4 +84,4 @@ interface UseThemeReturn {
|
|
|
144
84
|
*/
|
|
145
85
|
declare function useTheme(): UseThemeReturn;
|
|
146
86
|
//#endregion
|
|
147
|
-
export {
|
|
87
|
+
export { _default as a, isDefinedTheme as c, useMediaTheme as i, neutralTheme as l, useTheme as n, _default$1 as o, UseMediaThemeReturn as r, defineTheme as s, UseThemeReturn as t, normalizeTokenName as u };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { o as FieldStatusInput } from "./types-3eXh_5os.js";
|
|
2
|
+
import { ComputedRef, InjectionKey } from "vue";
|
|
3
|
+
//#region src/InputGroup/context.d.ts
|
|
4
|
+
interface InputGroupContext {
|
|
5
|
+
size: ComputedRef<'sm' | 'md' | 'lg'>;
|
|
6
|
+
disabled: ComputedRef<boolean>;
|
|
7
|
+
/** 组标签的 id。没有标签时为空。 */
|
|
8
|
+
labelId: ComputedRef<string | undefined>;
|
|
9
|
+
/** 组的说明和状态文案 id,组内控件可以接进 aria-describedby。 */
|
|
10
|
+
describedBy: ComputedRef<string | undefined>;
|
|
11
|
+
}
|
|
12
|
+
declare const INPUT_GROUP_KEY: InjectionKey<InputGroupContext>;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/InputGroup/types.d.ts
|
|
15
|
+
type InputGroupSize = 'sm' | 'md' | 'lg';
|
|
16
|
+
interface InputGroupProps {
|
|
17
|
+
/**
|
|
18
|
+
* 整组的无障碍名称。写上之后,组会带上标签、说明、可选或必填,以及状态。
|
|
19
|
+
* 组内输入框自己的标签继续说明这一格填什么,通常隐藏起来。
|
|
20
|
+
*/
|
|
21
|
+
label?: string;
|
|
22
|
+
/** 视觉上隐藏标签,读屏仍能读到。 */
|
|
23
|
+
isLabelHidden?: boolean;
|
|
24
|
+
/** 标签和控件之间的说明。 */
|
|
25
|
+
description?: string;
|
|
26
|
+
/** 是否禁用整组,并传给组内控件。 */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/** 在标签旁标成可选。 */
|
|
29
|
+
isOptional?: boolean;
|
|
30
|
+
/** 在标签旁标成必填。 */
|
|
31
|
+
isRequired?: boolean;
|
|
32
|
+
/** 尺寸,传给组内控件。 */
|
|
33
|
+
size?: InputGroupSize;
|
|
34
|
+
/** 整组边框和控件下方的状态。 */
|
|
35
|
+
status?: FieldStatusInput;
|
|
36
|
+
/** 标签末尾的提示。 */
|
|
37
|
+
labelTooltip?: string;
|
|
38
|
+
}
|
|
39
|
+
interface InputGroupSlots {
|
|
40
|
+
/** 前缀内容(图标或文本) */
|
|
41
|
+
before?: () => any;
|
|
42
|
+
/** 主输入框 */
|
|
43
|
+
default?: () => any;
|
|
44
|
+
/** 后缀内容(图标或按钮) */
|
|
45
|
+
after?: () => any;
|
|
46
|
+
}
|
|
47
|
+
interface InputGroupTextProps {
|
|
48
|
+
/** 供测试定位。 */
|
|
49
|
+
id?: string;
|
|
50
|
+
}
|
|
51
|
+
interface InputGroupTextSlots {
|
|
52
|
+
default?: () => any;
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/InputGroup/InputGroup.vue.d.ts
|
|
56
|
+
type __VLS_Slots$1 = InputGroupSlots;
|
|
57
|
+
declare const __VLS_base$1: import("vue").DefineComponent<InputGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupProps> & Readonly<{}>, {
|
|
58
|
+
size: InputGroupSize;
|
|
59
|
+
isOptional: boolean;
|
|
60
|
+
isLabelHidden: boolean;
|
|
61
|
+
isRequired: boolean;
|
|
62
|
+
disabled: boolean;
|
|
63
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
64
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
65
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
66
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/InputGroup/InputGroupText.vue.d.ts
|
|
73
|
+
type __VLS_Slots = InputGroupTextSlots;
|
|
74
|
+
declare const __VLS_base: import("vue").DefineComponent<InputGroupTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
75
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
76
|
+
declare const _default: typeof __VLS_export;
|
|
77
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
78
|
+
new (): {
|
|
79
|
+
$slots: S;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
//#endregion
|
|
83
|
+
export { InputGroupSlots as a, INPUT_GROUP_KEY as c, InputGroupSize as i, InputGroupContext as l, _default$1 as n, InputGroupTextProps as o, InputGroupProps as r, InputGroupTextSlots as s, _default as t };
|