@astryx-vue/core 0.2.5 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-B6UeBCE7.js → AlertDialog-RAVA_cT1.js} +13 -7
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-CeBmB0Q9.js → AppShell-0wTvOo3H.js} +3 -3
- package/dist/Avatar/index.d.ts +2 -2
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-BB4Z4LF1.js → Avatar-pPZ4dI_s.js} +161 -16
- package/dist/AvatarGroup/index.d.ts +2 -2
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup-B--NQSB3.js +98 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-CJe9Im5a.js → Banner-GbGxrqQO.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-o7xw-TOi.js → BottomSheet-JYMB_Ofl.js} +12 -9
- package/dist/{BottomSheet-BV6vfgGu.js → BottomSheet-pt7m4CvC.js} +3 -1
- package/dist/Breadcrumbs/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-D6G7f5WL.js → Breadcrumbs-DIm4figq.js} +22 -11
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DrqeomlE.js → Button-B6Hj_O_s.js} +3 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-DmTeM7PO.js → Calendar-B7vIowKq.js} +2 -2
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/{Card-HAjZQg2s.js → Card-B-I24X9S.js} +2 -0
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CIKrcA2r.js → Carousel-CA8zpD9v.js} +48 -31
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +2 -2
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-BFox3u9D.js → Chat-Bmna9EOA.js} +98 -61
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-25Q8ItH-.js → CheckboxInput-BS9J6edf.js} +2 -2
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BlPf7vPe.js → CheckboxList-CX1i_jVP.js} +8 -7
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-BG-vg9ia.js → Citation-Djgwa0ko.js} +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-Bhds4RRe.js → ClickableCard-DUsC-j03.js} +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-B2pnEOJY.js → CodeBlock-D0BFubut.js} +5 -1
- package/dist/Collapsible/index.d.ts +2 -2
- package/dist/Collapsible/index.js +2 -2
- package/dist/{Collapsible-3YerR-FO.js → Collapsible-Cov3Pyq5.js} +67 -22
- package/dist/CommandPalette/index.d.ts +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-DKgHzmJk.js → CommandPalette-YHsUNg3V.js} +60 -20
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Dv44FFhN.js → ComplexSelector-DWLdKPGI.js} +41 -9
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-BeJO5HYx.js → ContextMenu-Bq9b3Ti5.js} +15 -8
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-DT518j5E.js +841 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Cp6AZfew.js → DateRangeInput-Bqi5tlIA.js} +188 -140
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-B6MPPp76.js → DateTimeInput-A7m2O3bg.js} +43 -12
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +2 -2
- package/dist/{Dialog-CvRplBo-.js → Dialog-BiOSKQso.js} +9 -5
- package/dist/{Dialog-rfUt3y8P.js → Dialog-FGHfDu5M.js} +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-6E9jFdFe.js → DropdownMenu-CoOQVlRp.js} +9 -10
- package/dist/{DropdownMenu--lnUeJEG.js → DropdownMenu-DEb2dSSP.js} +44 -33
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-0RWymQUS.js → EmptyState-C_GH7IV5.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +2 -2
- package/dist/{Field-8zRxzDHE.js → Field-D5gUEGw4.js} +1 -1
- package/dist/FieldInfoTip-Ds-sW_jY.js +98 -0
- package/dist/FieldLabel-BNeXRuGH.js +95 -0
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/FileInput-BpdiO1V8.js +285 -0
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-B9C3LZlS.js → Heading-BnwWEWkp.js} +7 -2
- package/dist/HoverCard/index.d.ts +2 -2
- package/dist/HoverCard/index.js +2 -2
- package/dist/HoverCard-ycY50pRN.js +492 -0
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-BNQuz9W_.js → IconButton-DDNgNl7B.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-BzR6JRZb.js → InputGroup-CA03Smrs.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +2 -0
- package/dist/InternationalizationProvider/index.js +2 -0
- package/dist/InternationalizationProvider-DJay_w3B.js +170 -0
- package/dist/{Item-DrYJL1TG.js → Item-KhFKX9St.js} +15 -6
- package/dist/LayerProvider/index.d.ts +2 -0
- package/dist/LayerProvider/index.js +3 -0
- package/dist/LayerProvider-D9NsQFzL.js +73 -0
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-Bed3kP0M.js → Layout-C6RHllr-.js} +2 -2
- package/dist/{LayoutPanel-C34uOq3e.js → LayoutPanel-DXOsaeQb.js} +4 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Br3o0SyQ.js → Lightbox-DTF9EdTG.js} +2 -2
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +1 -1
- package/dist/{Link-DCZ6922-.js → Link-BqHCtiyt.js} +26 -7
- package/dist/LinkProvider/index.d.ts +2 -0
- package/dist/LinkProvider/index.js +3 -0
- package/dist/LinkProvider-Qsps9_mL.js +17 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-CcRHWuEm.js → ListItem-8RWT8XAG.js} +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-Bz0R3kNj.js → Markdown-CvtN7HnF.js} +4 -4
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-CFaocx6j.js → MetadataList-B-OelQlt.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Dh3uLivq.js → MobileNavToggle-DxGz0xKA.js} +11 -5
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-B95nRSe8.js → MoreMenu-Dlb7MLlW.js} +33 -20
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DuF5TECE.js → MultiSelector-BtAUfQ3t.js} +122 -54
- package/dist/{NavDisclosure-C6sPZ89n.js → NavDisclosure-C_fugrQ3.js} +1 -2
- package/dist/{NavHeadingSurface-Cb3x9iDx.js → NavHeadingSurface-B3yJspSN.js} +18 -11
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +2 -2
- package/dist/{NavItem-FFOisITc.js → NavItem-BBIGSvDj.js} +7 -3
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-ClIgMaxE.js → NavMenu-ThXguZAz.js} +7 -3
- package/dist/{NavMenuItem-E7S8gBh-.js → NavMenuItem-BvJNsDFC.js} +8 -4
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-AZ9x3oja.js +473 -0
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DBUuchi9.js → Outline-755h-lMP.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-aDd_oem0.js → OverflowList-NmrSMbxb.js} +10 -6
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-CNe9F6Fl.js → Pagination-DqwNQFRp.js} +29 -14
- package/dist/Popover/index.d.ts +3 -3
- package/dist/Popover/index.js +2 -2
- package/dist/Popover-DJf8POzL.js +308 -0
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-C6U8Sq1Y.js → PowerSearch-DvjiPqMZ.js} +44 -31
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DF6WZNCI.js → ProgressBar-CVLzdoBK.js} +9 -3
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CBqUPq_L.js → RadioGroup-Bfu6JSNV.js} +60 -24
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CPOJn9Th.js → RadioList-xY1cwLdZ.js} +4 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-DYy0e3v9.js → ResizeHandle-q4nD_586.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-DQDYjnxO.js → ScrollableArea-D4dCJv9I.js} +14 -3
- package/dist/Scrollbars/index.d.ts +2 -0
- package/dist/Scrollbars/index.js +3 -0
- package/dist/Scrollbars-D_93hJYK.js +75 -0
- package/dist/Section/index.d.ts +2 -1
- package/dist/Section/index.js +1 -1
- package/dist/{Section-C48Wqfc7.js → Section-v2QuWBBJ.js} +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Bj5s_tIN.js → SelectableCard-Cku4dRzc.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-5N-hq2nF.js → Selector-DJ2BhUTV.js} +90 -31
- package/dist/SideNav/index.d.ts +2 -2
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-CT9lfspi.js → SideNav-BF8mYDxl.js} +76 -44
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-D8h_RKcF.js → Slider-DWobsPgm.js} +2 -2
- package/dist/Stack/index.d.ts +2 -2
- package/dist/Stack/index.js +2 -2
- package/dist/{Stack-iv52y_Jv.js → Stack-CTsTFfar.js} +18 -3
- package/dist/{Stack-gGcYdOAh.js → Stack-kQlYbbL4.js} +22 -7
- package/dist/StatusDot/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/StatusDot-BPUhMOff.js +45 -0
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-BqhVCgC-.js → Stepper-CE8dHysu.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-SesQzPGZ.js → Switch-DaVPRxvN.js} +2 -2
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-BlzkrObv.js → TabList-DIkK9sgK.js} +100 -23
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +2 -2
- package/dist/{Table-CsdH8fCB.js → Table-fecqnm7P.js} +870 -241
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +1 -1
- package/dist/{Text-DIzZw6FA.js → Text-CV3LmscH.js} +7 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-CPwSytdO.js → TextArea-Ab5Sw60T.js} +24 -14
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-BasnjVvy.js → TextInput-zFT1_qgI.js} +21 -24
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BnQwX1cQ.js → Thumbnail-C3NnJUFG.js} +5 -5
- package/dist/TimeField-CoHDGmsP.js +435 -0
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-C9gptCOK.js → TimeInput-D2k3Ux3p.js} +14 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-kxzQx3tp.js → Timer-avMQk5DN.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-D7bd_nF3.js → Timestamp-xpQKCk0d.js} +7 -7
- package/dist/Toast/index.d.ts +3 -2
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-C2ML-bmi.js → Toast-BuqIZV5z.js} +136 -38
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-BB_I8EdM.js → ToggleButton-B-C-Q7XP.js} +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-D2GsI_Ei.js → Token-DsntTYhQ.js} +33 -17
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/Tokenizer-B5C_qY7t.js +585 -0
- package/dist/Toolbar/index.d.ts +2 -1
- package/dist/Tooltip/index.d.ts +2 -2
- package/dist/Tooltip/index.js +2 -2
- package/dist/Tooltip-C4Vaqd3G.js +320 -0
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-arWFLTBM.js → TopNav-Ciq0l1w7.js} +122 -84
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-C9xvMpJZ.js → TreeList-BUz-KZJd.js} +90 -40
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/Typeahead-JP9RT87x.js +656 -0
- package/dist/{TypeaheadMenu-BEObzonz.js → TypeaheadMenu-DBW6rHeO.js} +133 -44
- package/dist/composables/index.d.ts +3 -3
- package/dist/composables/index.js +12 -7
- package/dist/{composables-CWw6t-RJ.js → composables-CbKx9C1Y.js} +424 -4
- package/dist/context-C_peZbXf.js +16 -0
- package/dist/context-M-er0-Rk.js +99 -0
- package/dist/{context-CPh7kE-a.js → context-iABt_ueM.js} +30 -4
- package/dist/{index-CLmKfnqf.d.ts → index-0QGtSf3r.d.ts} +2 -0
- package/dist/{index-z3uLM1O6.d.ts → index-B1WJxt-n.d.ts} +1 -1
- package/dist/{index-BPwD6aBv.d.ts → index-B3Fomy15.d.ts} +2 -2
- package/dist/{index-CPwzSbQQ.d.ts → index-B42oE_F-.d.ts} +17 -1
- package/dist/{index-EFqQF2Bx.d.ts → index-B4OOtNP8.d.ts} +2 -2
- package/dist/index-B7yhzGUT.d.ts +171 -0
- package/dist/{index-DFbvnBlf.d.ts → index-B9e52paP.d.ts} +15 -2
- package/dist/{index-CEB7Ywvw.d.ts → index-BKnyTWPM.d.ts} +1 -1
- package/dist/{index-CsVS37na.d.ts → index-BNbAJV9C.d.ts} +1 -1
- package/dist/index-BTK7aStw.d.ts +88 -0
- package/dist/{index-BBtJt5_A.d.ts → index-BULhhnGf.d.ts} +1 -1
- package/dist/{index-D7-WTV6I.d.ts → index-BVKivP59.d.ts} +2 -2
- package/dist/{index-BpH4wvsg.d.ts → index-BgT6mH3U.d.ts} +2 -2
- package/dist/{index-Be1czg3M.d.ts → index-BhpAUzUr.d.ts} +47 -7
- package/dist/{index-BcJBLWJ0.d.ts → index-BkjSF265.d.ts} +67 -4
- package/dist/{index-DxR1FChm.d.ts → index-Bu8NA2SD.d.ts} +49 -6
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-C-QpeUlQ.d.ts → index-C2nbK2AA.d.ts} +52 -7
- package/dist/{index-iBLzInje.d.ts → index-C5e-7Obr.d.ts} +1 -1
- package/dist/index-CEv_AvOg.d.ts +17 -0
- package/dist/{index-Dgg0bHVM.d.ts → index-CICeEoZV.d.ts} +2 -1
- package/dist/{index-CB9Srua5.d.ts → index-CL1T2j4y.d.ts} +7 -4
- package/dist/{index-DjMwF8ET.d.ts → index-COgrQZIL.d.ts} +7 -1
- package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
- package/dist/{index-ChWlKHjc.d.ts → index-Cde5JvtX.d.ts} +15 -3
- package/dist/index-CitZGSn0.d.ts +39 -0
- package/dist/index-CkKPMIeX.d.ts +55 -0
- package/dist/{index-FEy8qFSD.d.ts → index-ClNU2Th8.d.ts} +30 -3
- package/dist/{index-kaKBOZSU.d.ts → index-Cq31D3fJ.d.ts} +99 -7
- package/dist/{index-xfkEuGLY.d.ts → index-CqE4Bf3Q.d.ts} +8 -2
- package/dist/{index-DtePJ_w_.d.ts → index-Crp3NFLW.d.ts} +2 -2
- package/dist/{index-BlOIC_AM.d.ts → index-CsNi1I8j.d.ts} +6 -0
- package/dist/index-Cyb9Du5Z.d.ts +76 -0
- package/dist/{index-4TRnFGxv.d.ts → index-D41_xqjs.d.ts} +50 -10
- package/dist/{index-eshFLli0.d.ts → index-D97pQbua.d.ts} +7 -0
- package/dist/{index-c67ca7eJ.d.ts → index-DEQ5cnUV.d.ts} +1 -1
- package/dist/{index-BmAxqw1G.d.ts → index-DG52Bg0W.d.ts} +15 -1
- package/dist/{index-Da7Jm8Ht.d.ts → index-DIXAzTKL.d.ts} +1 -1
- package/dist/{index-BmmdzwT9.d.ts → index-DNA2l1RN.d.ts} +35 -11
- package/dist/{index-B9rqmYxh.d.ts → index-DUaLJO7l.d.ts} +978 -313
- package/dist/index-DVmgNb78.d.ts +143 -0
- package/dist/{index-CDdRQQF3.d.ts → index-DWh2WC8W.d.ts} +18 -6
- package/dist/index-DXpSFlPG.d.ts +78 -0
- package/dist/{index-C_2Z65Rp.d.ts → index-DeQwYJbg.d.ts} +39 -2
- package/dist/{index-JL4auphT.d.ts → index-GI9xIV9l.d.ts} +2 -2
- package/dist/{index-Ctu32CLv.d.ts → index-IBAInumL.d.ts} +93 -56
- package/dist/{index-vizlhXVs.d.ts → index-T2FOcOuI.d.ts} +492 -16
- package/dist/{index-CA6RbRWx.d.ts → index-TXcNH86P.d.ts} +2 -2
- package/dist/{index-BIPc1v82.d.ts → index-TntQsADQ.d.ts} +1 -1
- package/dist/index-fAZaRruV.d.ts +125 -0
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-D5N9ikrS.d.ts → index-hCpxKePE.d.ts} +1 -1
- package/dist/{index-CpiWVbRZ.d.ts → index-i0tNFWfz.d.ts} +3 -1
- package/dist/{index-YmSe1ujk.d.ts → index-lgvUFSCO.d.ts} +1 -1
- package/dist/{index-bvr3WHvs.d.ts → index-xrzJC4wm.d.ts} +1 -1
- package/dist/{index-BK9T1TPZ.d.ts → index-yT1yiiww.d.ts} +28 -9
- package/dist/index.d.ts +80 -76
- package/dist/index.js +127 -113
- package/dist/link-C4_WogdF.js +18 -0
- package/dist/{index-C3GaPqvJ.d.ts → loadCatalog-BGHKG_9N.d.ts} +16 -37
- package/dist/{locale-sLw5Caia.js → loadCatalog-CXKqEB9s.js} +25 -65
- package/dist/locale/index.d.ts +3 -2
- package/dist/locale/index.js +4 -3
- package/dist/locale-DgkZEMTn.js +105 -0
- package/dist/{searchResultMessage-CCnq-_ce.js → searchResultMessage-hXXNOFJP.js} +2 -2
- package/dist/{size-xcIqExkS.js → size-Cpn_wzXi.js} +1 -1
- package/dist/{types-3eXh_5os.d.ts → types-0Q_SJv_F.d.ts} +3 -1
- package/dist/types-BRfVvZTH.d.ts +108 -0
- package/dist/{types-D7QNSqoN.d.ts → types-BTk0WZ0b.d.ts} +8 -0
- package/dist/{types-D_J66aPN.d.ts → types-BnNTzEnd.d.ts} +5 -1
- package/dist/{types-D9nP_X-c.d.ts → types-Ckih2YJi.d.ts} +9 -2
- package/dist/{types-Db3Owy8Q.d.ts → types-OGMYGejX.d.ts} +5 -0
- package/dist/{index-nKlTsNfV.d.ts → types-uFMH9NaM.d.ts} +14 -17
- package/dist/{useAnchoredListbox-BN9LQnon.js → useAnchoredListbox-DwztMNjP.js} +9 -4
- package/dist/useDevWarning-DznOpOHT.js +36 -0
- package/dist/useInputContainer-CpgDe2-4.js +51 -0
- package/dist/useInputStatusIcon-DBOwxV4x.js +41 -0
- package/dist/useInteractiveRole-Cn0Nd5GX.js +25 -0
- package/dist/{useMenuDrillIn-BgjJcY3K.js → useMenuDrillIn-DzKGkTho.js} +1 -1
- package/dist/{useMenuPress-DUmEy4TB.js → useMenuPress-D-FRNrBW.js} +162 -14
- package/dist/useMergedRefs-CfHHlCsn.js +109 -0
- package/dist/useNumberField-4-dIGVed.js +128 -0
- package/dist/{usePositionedLayer-C1NBOsVT.js → usePositionedLayer-Cru9_00b.js} +70 -7
- package/dist/useResizable-DDwPpPe6.d.ts +409 -0
- package/dist/useRestoreFocus-Djw9RUIf.js +153 -0
- package/dist/useScrollbars-C2NJ6Qwq.js +43 -0
- package/dist/{useTimeValue-DWk6oTAZ.js → useTimeValue-6ufHM15W.js} +1 -1
- package/dist/utils-D33VQDnk.js +58 -0
- package/locales/SOURCE.json +1 -1
- package/locales/en.json +445 -1
- package/package.json +19 -2
- package/styles/avatar-group.css +19 -1
- package/styles/avatar.css +34 -13
- package/styles/chat.css +17 -1
- package/styles/dialog-header.css +5 -1
- package/styles/field.css +11 -0
- package/styles/heading.css +9 -0
- package/styles/indicator-focus-ring.css +18 -0
- package/styles/number-input.css +33 -0
- package/styles/pressable.css +44 -0
- package/styles/progress-bar.css +18 -0
- package/styles/scrollbars.css +28 -0
- package/styles/side-nav.css +20 -6
- package/styles/stack.css +4 -2
- package/styles/status-dot.css +18 -0
- package/styles/tab-list.css +38 -2
- package/styles/table.css +66 -6
- package/styles/text.css +9 -0
- package/styles/time-input.css +41 -0
- package/styles/top-nav.css +46 -19
- package/styles/typeahead.css +31 -0
- package/styles.css +2 -0
- package/dist/AvatarGroup-QyzSrpYA.js +0 -60
- package/dist/DateInput-D4XFAEMp.js +0 -743
- package/dist/FieldLabel-DmmJyX7w.js +0 -184
- package/dist/FileInput-DuNwdbAo.js +0 -238
- package/dist/HoverCard-EhbWaGOW.js +0 -443
- package/dist/NumberInput-B4IL3s_8.js +0 -210
- package/dist/Popover-D7zqpFwU.js +0 -215
- package/dist/StatusDot-CaoIapp4.js +0 -27
- package/dist/TimeField-Biiuv0hB.js +0 -214
- package/dist/Tokenizer-rwzamZg4.js +0 -473
- package/dist/Tooltip-C2fh9anJ.js +0 -271
- package/dist/Typeahead-_V11btpv.js +0 -499
- package/dist/index-Blm197N_.d.ts +0 -82
- package/dist/index-Bt7ewoz2.d.ts +0 -119
- package/dist/index-C1HIqW_H.d.ts +0 -38
- package/dist/index-CngORuiq.d.ts +0 -387
- package/dist/index-D4I_obqR.d.ts +0 -58
- package/dist/link-CdcUSxAj.js +0 -12
- package/dist/size-BuTzpgnR.d.ts +0 -14
- package/dist/types-Cp4liug-.d.ts +0 -170
- package/dist/useDismiss-Cj8x_51F.js +0 -62
- package/dist/useNumberField-DL-Radsp.js +0 -49
- package/dist/useResizable-CUoNPmUw.d.ts +0 -72
- package/dist/useRestoreFocus-BvMdXVX9.js +0 -96
- package/dist/utils-C9r3UD_y.js +0 -16
|
@@ -1,47 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { computed, toValue } from "vue";
|
|
3
|
-
//#region src/locale/format.ts
|
|
4
|
-
const weekdayStart = new Date(2023, 0, 1);
|
|
5
|
-
/** CLDR stand-alone short names. Intl `short` is Sun/Mon, which is not the calendar header. */
|
|
6
|
-
const standaloneShortWeekdays = {
|
|
7
|
-
"en": [
|
|
8
|
-
"Su",
|
|
9
|
-
"Mo",
|
|
10
|
-
"Tu",
|
|
11
|
-
"We",
|
|
12
|
-
"Th",
|
|
13
|
-
"Fr",
|
|
14
|
-
"Sa"
|
|
15
|
-
],
|
|
16
|
-
"zh-CN": [
|
|
17
|
-
"周日",
|
|
18
|
-
"周一",
|
|
19
|
-
"周二",
|
|
20
|
-
"周三",
|
|
21
|
-
"周四",
|
|
22
|
-
"周五",
|
|
23
|
-
"周六"
|
|
24
|
-
]
|
|
25
|
-
};
|
|
26
|
-
function standaloneShortWeekdayNames(locale) {
|
|
27
|
-
if (locale === "en" || locale === "zh-CN") return standaloneShortWeekdays[locale];
|
|
28
|
-
return weekdayNames(locale, "short");
|
|
29
|
-
}
|
|
30
|
-
function formatCalendarMonth(year, month, locale) {
|
|
31
|
-
return new Intl.DateTimeFormat(locale, {
|
|
32
|
-
month: "long",
|
|
33
|
-
year: "numeric"
|
|
34
|
-
}).format(new Date(year, month - 1, 1));
|
|
35
|
-
}
|
|
36
|
-
function weekdayNames(locale, style) {
|
|
37
|
-
const formatter = new Intl.DateTimeFormat(locale, { weekday: style });
|
|
38
|
-
return Array.from({ length: 7 }, (_, index) => {
|
|
39
|
-
const date = new Date(weekdayStart);
|
|
40
|
-
date.setDate(weekdayStart.getDate() + index);
|
|
41
|
-
return formatter.format(date);
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
//#endregion
|
|
1
|
+
import { s as astryxMessages } from "./context-iABt_ueM.js";
|
|
45
2
|
//#region src/locale/icu.ts
|
|
46
3
|
const pluralRules = /* @__PURE__ */ new Map();
|
|
47
4
|
const ordinalRules = /* @__PURE__ */ new Map();
|
|
@@ -457,6 +414,7 @@ const upstreamMessageMap = {
|
|
|
457
414
|
],
|
|
458
415
|
"@astryx.commandPalette.emptyBootstrap": [{ path: "commandPalette.emptyBootstrap" }],
|
|
459
416
|
"@astryx.commandPalette.input.placeholder": [{ path: "commandPalette.placeholder" }],
|
|
417
|
+
"@astryx.commandPalette.input.label": [{ path: "commandPalette.inputLabel" }],
|
|
460
418
|
"@astryx.commandPalette.list.label": [{ path: "commandPalette.listLabel" }],
|
|
461
419
|
"@astryx.commandPalette.loading": [{ path: "commandPalette.loading" }],
|
|
462
420
|
"@astryx.commandPalette.noResultsFor": [{
|
|
@@ -523,6 +481,15 @@ const upstreamMessageMap = {
|
|
|
523
481
|
path: "fileInput.errorCount",
|
|
524
482
|
args: ["maxFiles"]
|
|
525
483
|
}],
|
|
484
|
+
"@astryx.selector.clearLabel": [{
|
|
485
|
+
path: "selector.clearField",
|
|
486
|
+
args: ["label"]
|
|
487
|
+
}],
|
|
488
|
+
"@astryx.multiSelector.clearAll": [{
|
|
489
|
+
path: "multiSelector.clearAll",
|
|
490
|
+
args: ["label"]
|
|
491
|
+
}],
|
|
492
|
+
"@astryx.tabList.label": [{ path: "tabList.label" }],
|
|
526
493
|
"@astryx.inputClearButton.tooltip": [
|
|
527
494
|
{ path: "fileInput.clear" },
|
|
528
495
|
{ path: "selector.clear" },
|
|
@@ -604,12 +571,13 @@ const upstreamMessageMap = {
|
|
|
604
571
|
"@astryx.mobileNav.toggle.open": [{ path: "nav.openNavigation" }],
|
|
605
572
|
"@astryx.mobileNav.closeNavigation": [{ path: "nav.close" }],
|
|
606
573
|
"@astryx.avatarGroup.overflow": [{
|
|
607
|
-
path: "nav.
|
|
608
|
-
args: ["count"]
|
|
609
|
-
}, {
|
|
610
|
-
path: "powerSearch.more",
|
|
574
|
+
path: "nav.avatarOverflow",
|
|
611
575
|
args: ["count"]
|
|
612
576
|
}],
|
|
577
|
+
"@astryx.avatar.nameWithStatus": [{
|
|
578
|
+
path: "nav.avatarNameWithStatus",
|
|
579
|
+
args: ["name", "status"]
|
|
580
|
+
}],
|
|
613
581
|
"@astryx.sideNavItem.expand": [{
|
|
614
582
|
path: "nav.expandItem",
|
|
615
583
|
args: ["label"]
|
|
@@ -698,6 +666,14 @@ const upstreamMessageMap = {
|
|
|
698
666
|
"@astryx.table.selection.bulkActionsLabel": [{ path: "table.bulkActionsLabel" }],
|
|
699
667
|
"@astryx.table.selection.clearAll": [{ path: "table.clearAll" }],
|
|
700
668
|
"@astryx.table.pagination.label": [{ path: "table.paginationLabel" }],
|
|
669
|
+
"@astryx.table.pagination.labelAbove": [{
|
|
670
|
+
path: "table.paginationLabelAbove",
|
|
671
|
+
args: ["label"]
|
|
672
|
+
}],
|
|
673
|
+
"@astryx.table.pagination.labelBelow": [{
|
|
674
|
+
path: "table.paginationLabelBelow",
|
|
675
|
+
args: ["label"]
|
|
676
|
+
}],
|
|
701
677
|
"@astryx.tableGroupedRows.expandGroup": [{
|
|
702
678
|
path: "table.expandGroup",
|
|
703
679
|
args: ["groupKey"]
|
|
@@ -898,20 +874,4 @@ function collectLeaves(tree, prefix = "") {
|
|
|
898
874
|
return paths;
|
|
899
875
|
}
|
|
900
876
|
//#endregion
|
|
901
|
-
|
|
902
|
-
/**
|
|
903
|
-
* 按当前语言比较字符串,对应原版的 `useCollator`。
|
|
904
|
-
* 没提供语言时用 `en`。`options` 用 ref 或 computed 包起来,变了才会重建比较器。
|
|
905
|
-
*
|
|
906
|
-
* @example
|
|
907
|
-
* ```ts
|
|
908
|
-
* const collator = useCollator({ numeric: true })
|
|
909
|
-
* items.sort((a, b) => collator.value.compare(a.name, b.name))
|
|
910
|
-
* ```
|
|
911
|
-
*/
|
|
912
|
-
function useCollator(options) {
|
|
913
|
-
const locale = useAstryxLocale();
|
|
914
|
-
return computed(() => new Intl.Collator(locale.value, toValue(options)));
|
|
915
|
-
}
|
|
916
|
-
//#endregion
|
|
917
|
-
export { weekdayNames as a, standaloneShortWeekdayNames as i, loadAstryxCatalog as n, formatCalendarMonth as r, useCollator as t };
|
|
877
|
+
export { icuPlaceholderNames as i, upstreamMessageMap as n, formatIcu as r, loadAstryxCatalog as t };
|
package/dist/locale/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { a as UseLocaleReturn, c as formatCalendarMonth, d as astryxMessagesKey, f as normalizeLocale, g as AstryxLocale, h as useAstryxMessages, i as useTranslator, l as weekdayNames, m as useAstryxLocale, n as TranslatorValues, o as useLocale, p as provideAstryxLocale, r as UseTranslatorReturn, s as useCollator, t as Translator, u as astryxLocaleKey } from "../index-DXpSFlPG.js";
|
|
2
|
+
import { a as UnmappedUpstreamReason, i as UnmappedUpstreamEntry, n as AstryxUpstreamMessage, o as loadAstryxCatalog, r as LoadedAstryxLocale, s as AstryxMessages, t as AstryxUpstreamCatalog } from "../loadCatalog-BGHKG_9N.js";
|
|
3
|
+
export { type AstryxLocale, type AstryxMessages, type AstryxUpstreamCatalog, type AstryxUpstreamMessage, type LoadedAstryxLocale, type Translator, type TranslatorValues, type UnmappedUpstreamEntry, type UnmappedUpstreamReason, type UseLocaleReturn, type UseTranslatorReturn, astryxLocaleKey, astryxMessagesKey, formatCalendarMonth, loadAstryxCatalog, normalizeLocale, provideAstryxLocale, useAstryxLocale, useAstryxMessages, useCollator, useLocale, useTranslator, weekdayNames };
|
package/dist/locale/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { a as useAstryxLocale, i as provideAstryxLocale, n as astryxMessagesKey, o as useAstryxMessages, r as normalizeLocale, t as astryxLocaleKey } from "../context-
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { a as useAstryxLocale, i as provideAstryxLocale, n as astryxMessagesKey, o as useAstryxMessages, r as normalizeLocale, t as astryxLocaleKey } from "../context-iABt_ueM.js";
|
|
2
|
+
import { i as formatCalendarMonth, n as useLocale, o as weekdayNames, r as useCollator, t as useTranslator } from "../locale-DgkZEMTn.js";
|
|
3
|
+
import { t as loadAstryxCatalog } from "../loadCatalog-CXKqEB9s.js";
|
|
4
|
+
export { astryxLocaleKey, astryxMessagesKey, formatCalendarMonth, loadAstryxCatalog, normalizeLocale, provideAstryxLocale, useAstryxLocale, useAstryxMessages, useCollator, useLocale, useTranslator, weekdayNames };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { a as useAstryxLocale, o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
2
|
+
import { n as upstreamMessageMap } from "./loadCatalog-CXKqEB9s.js";
|
|
3
|
+
import { computed, toValue } from "vue";
|
|
4
|
+
//#region src/locale/format.ts
|
|
5
|
+
const weekdayStart = new Date(2023, 0, 1);
|
|
6
|
+
/** CLDR stand-alone short names. Intl `short` is Sun/Mon, which is not the calendar header. */
|
|
7
|
+
const standaloneShortWeekdays = {
|
|
8
|
+
"en": [
|
|
9
|
+
"Su",
|
|
10
|
+
"Mo",
|
|
11
|
+
"Tu",
|
|
12
|
+
"We",
|
|
13
|
+
"Th",
|
|
14
|
+
"Fr",
|
|
15
|
+
"Sa"
|
|
16
|
+
],
|
|
17
|
+
"zh-CN": [
|
|
18
|
+
"周日",
|
|
19
|
+
"周一",
|
|
20
|
+
"周二",
|
|
21
|
+
"周三",
|
|
22
|
+
"周四",
|
|
23
|
+
"周五",
|
|
24
|
+
"周六"
|
|
25
|
+
]
|
|
26
|
+
};
|
|
27
|
+
function standaloneShortWeekdayNames(locale) {
|
|
28
|
+
if (locale === "en" || locale === "zh-CN") return standaloneShortWeekdays[locale];
|
|
29
|
+
return weekdayNames(locale, "short");
|
|
30
|
+
}
|
|
31
|
+
function formatCalendarMonth(year, month, locale) {
|
|
32
|
+
return new Intl.DateTimeFormat(locale, {
|
|
33
|
+
month: "long",
|
|
34
|
+
year: "numeric"
|
|
35
|
+
}).format(new Date(year, month - 1, 1));
|
|
36
|
+
}
|
|
37
|
+
function weekdayNames(locale, style) {
|
|
38
|
+
const formatter = new Intl.DateTimeFormat(locale, { weekday: style });
|
|
39
|
+
return Array.from({ length: 7 }, (_, index) => {
|
|
40
|
+
const date = new Date(weekdayStart);
|
|
41
|
+
date.setDate(weekdayStart.getDate() + index);
|
|
42
|
+
return formatter.format(date);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/locale/useCollator.ts
|
|
47
|
+
/**
|
|
48
|
+
* 按当前语言比较字符串,对应原版的 `useCollator`。
|
|
49
|
+
* 没提供语言时用 `en`。`options` 用 ref 或 computed 包起来,变了才会重建比较器。
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const collator = useCollator({ numeric: true })
|
|
54
|
+
* items.sort((a, b) => collator.value.compare(a.name, b.name))
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
function useCollator(options) {
|
|
58
|
+
const locale = useAstryxLocale();
|
|
59
|
+
return computed(() => new Intl.Collator(locale.value, toValue(options)));
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/locale/useLocale.ts
|
|
63
|
+
/**
|
|
64
|
+
* 对应原版 Astryx 的 `hooks/useLocale`。
|
|
65
|
+
*
|
|
66
|
+
* 读当前生效的语言标签。把它交给需要显式语言的纯函数或别的包,
|
|
67
|
+
* 不要从 `navigator.language` 或者写死的字面量里另取一份,那样会跟 provider 对不上。
|
|
68
|
+
*/
|
|
69
|
+
function useLocale() {
|
|
70
|
+
return { locale: useAstryxLocale() };
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/locale/useTranslator.ts
|
|
74
|
+
/**
|
|
75
|
+
* 对应原版 Astryx 的 `hooks/useTranslator`。
|
|
76
|
+
*
|
|
77
|
+
* 返回一个翻译函数,把原版的消息键(例如 `@astryx.pagination.next`)换成
|
|
78
|
+
* 当前语言下的成品文案。语言、`messages` 目录和 `overrides` 都取自最近的
|
|
79
|
+
* `InternationalizationProvider`;没有 provider 时用包内自带的英文文案。
|
|
80
|
+
*
|
|
81
|
+
* 占位符的值按参数顺序填进去,复数和千分位按当前语言的规则算。
|
|
82
|
+
* 认不出来的键原样返回。
|
|
83
|
+
*/
|
|
84
|
+
function useTranslator() {
|
|
85
|
+
const messages = useAstryxMessages();
|
|
86
|
+
return { t: (key, values) => translate(messages.value, key, values) };
|
|
87
|
+
}
|
|
88
|
+
function translate(messages, key, values) {
|
|
89
|
+
const target = upstreamMessageMap[key]?.[0];
|
|
90
|
+
if (target == null) return key;
|
|
91
|
+
const message = readMessageValue(messages, target.path);
|
|
92
|
+
if (typeof message === "string") return message;
|
|
93
|
+
if (typeof message === "function") return message(...(target.args ?? []).map((name) => values?.[name]));
|
|
94
|
+
return key;
|
|
95
|
+
}
|
|
96
|
+
function readMessageValue(messages, path) {
|
|
97
|
+
let cursor = messages;
|
|
98
|
+
for (const part of path.split(".")) {
|
|
99
|
+
if (cursor == null || typeof cursor !== "object") return void 0;
|
|
100
|
+
cursor = cursor[part];
|
|
101
|
+
}
|
|
102
|
+
return cursor;
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
export { standaloneShortWeekdayNames as a, formatCalendarMonth as i, useLocale as n, weekdayNames as o, useCollator as r, useTranslator as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as useButtonTooltip } from "./Button-
|
|
1
|
+
import { n as useButtonTooltip } from "./Button-B6Hj_O_s.js";
|
|
2
2
|
import { t as _sfc_main$1 } from "./ButtonTooltip-nWWrth8j.js";
|
|
3
|
-
import { o as useAstryxMessages } from "./context-
|
|
3
|
+
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
4
4
|
import { t as _sfc_main$2 } from "./Icon-bteSId7T.js";
|
|
5
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, openBlock, unref, useId, useTemplateRef, withModifiers } from "vue";
|
|
6
6
|
//#region src/Field/StatusGlyph.vue
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { r as IconName } from "./types-CwyibrRB.js";
|
|
1
2
|
import { Component, VNode } from "vue";
|
|
2
3
|
//#region src/Field/types.d.ts
|
|
3
4
|
type FieldStatusType = 'error' | 'warning' | 'success';
|
|
@@ -18,7 +19,8 @@ interface FieldLabelProps {
|
|
|
18
19
|
isRequired?: boolean;
|
|
19
20
|
description?: string;
|
|
20
21
|
descriptionId?: string;
|
|
21
|
-
|
|
22
|
+
/** 语义图标名(如 `'search'`),或一个图标组件。 */
|
|
23
|
+
labelIcon?: IconName | Component;
|
|
22
24
|
labelTooltip?: string;
|
|
23
25
|
optionalLabel?: string;
|
|
24
26
|
requiredLabel?: string;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Component, VNode } from "vue";
|
|
2
|
+
//#region src/Toast/types.d.ts
|
|
3
|
+
type ToastType = 'info' | 'success' | 'warning' | 'error';
|
|
4
|
+
/** 提示消失的原因:`auto` 是计时器关的,`manual` 是人或代码关的。 */
|
|
5
|
+
type ToastDismissReason = 'auto' | 'manual';
|
|
6
|
+
/**
|
|
7
|
+
* What happens when a new toast reuses a `uniqueID` that is already on screen.
|
|
8
|
+
*
|
|
9
|
+
* `overwrite` replaces that toast in place. `ignore` drops the new toast.
|
|
10
|
+
*/
|
|
11
|
+
type ToastCollisionBehavior = 'ignore' | 'overwrite';
|
|
12
|
+
interface ToastOptions {
|
|
13
|
+
/**
|
|
14
|
+
* Visual type of the toast.
|
|
15
|
+
* @default 'info'
|
|
16
|
+
*/
|
|
17
|
+
type?: ToastType;
|
|
18
|
+
/**
|
|
19
|
+
* Message body text.
|
|
20
|
+
*/
|
|
21
|
+
body: string;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the toast dismisses itself. Defaults to true, except for
|
|
24
|
+
* `error`, which stays until it is dismissed.
|
|
25
|
+
*/
|
|
26
|
+
isAutoHide?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Auto-dismiss duration in milliseconds.
|
|
29
|
+
* @default 5000
|
|
30
|
+
*/
|
|
31
|
+
autoHideDuration?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Older name of `isAutoHide`. Both work; `isAutoHide` wins.
|
|
34
|
+
*/
|
|
35
|
+
autoClose?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Older name of `autoHideDuration`. Both work; `autoHideDuration` wins.
|
|
38
|
+
*/
|
|
39
|
+
duration?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Identity shared by toasts that should collapse into one. A later toast with
|
|
42
|
+
* the same id overwrites the visible one, unless `collisionBehavior` is
|
|
43
|
+
* `ignore`.
|
|
44
|
+
*/
|
|
45
|
+
uniqueID?: string;
|
|
46
|
+
/**
|
|
47
|
+
* How a `uniqueID` clash is resolved.
|
|
48
|
+
* @default 'overwrite'
|
|
49
|
+
*/
|
|
50
|
+
collisionBehavior?: ToastCollisionBehavior;
|
|
51
|
+
/**
|
|
52
|
+
* Trailing action rendered after the message, such as an undo button.
|
|
53
|
+
* Pass a component; for a one-off render, pass a function component.
|
|
54
|
+
*/
|
|
55
|
+
endContent?: Component;
|
|
56
|
+
/**
|
|
57
|
+
* Runs when this toast is dismissed from inside the card: the timer or the
|
|
58
|
+
* close button.
|
|
59
|
+
*/
|
|
60
|
+
onDismiss?: (reason: ToastDismissReason) => void;
|
|
61
|
+
/**
|
|
62
|
+
* Runs when this toast is removed, however it was dismissed, including the
|
|
63
|
+
* programmatic dismiss returned by `useToast()`.
|
|
64
|
+
*/
|
|
65
|
+
onHide?: (reason: ToastDismissReason) => void;
|
|
66
|
+
}
|
|
67
|
+
interface ToastItem {
|
|
68
|
+
id: string;
|
|
69
|
+
type: ToastType;
|
|
70
|
+
body: string;
|
|
71
|
+
isAutoHide: boolean;
|
|
72
|
+
autoHideDuration: number;
|
|
73
|
+
uniqueID?: string;
|
|
74
|
+
endContent?: Component;
|
|
75
|
+
onDismiss?: (reason: ToastDismissReason) => void;
|
|
76
|
+
onHide?: (reason: ToastDismissReason) => void;
|
|
77
|
+
/**
|
|
78
|
+
* True once the toast has been asked to close. The toast stays mounted so it
|
|
79
|
+
* can play its exit transition, then leaves the store.
|
|
80
|
+
*/
|
|
81
|
+
isExiting: boolean;
|
|
82
|
+
}
|
|
83
|
+
/** 传给 `content` 插槽的值。 */
|
|
84
|
+
interface ToastContentScope {
|
|
85
|
+
/** 提示正文,和 `body` 属性一致。 */
|
|
86
|
+
body: string;
|
|
87
|
+
/** 末尾内容,和 `endContent` 属性一致。 */
|
|
88
|
+
endContent?: Component;
|
|
89
|
+
/** 提示类型。 */
|
|
90
|
+
type: ToastType;
|
|
91
|
+
/** 这条提示会不会自动消失。 */
|
|
92
|
+
isAutoHide: boolean;
|
|
93
|
+
/** 自动消失的时长,单位毫秒。 */
|
|
94
|
+
autoHideDuration: number;
|
|
95
|
+
/** 关掉这条提示。 */
|
|
96
|
+
dismiss: () => void;
|
|
97
|
+
}
|
|
98
|
+
type ToastPlacement = 'top-start' | 'top-center' | 'top-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
|
|
99
|
+
interface ToastSlots {
|
|
100
|
+
/** 替换正文文字。 */
|
|
101
|
+
default?: () => VNode[];
|
|
102
|
+
/** 末尾内容,替代 `endContent` 属性。 */
|
|
103
|
+
end?: () => VNode[];
|
|
104
|
+
/** 替换整块卡片内容,带 `ToastContentScope` 参数;这时不再渲染自带的关闭按钮。 */
|
|
105
|
+
content?: (scope: ToastContentScope) => VNode[];
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
108
|
+
export { ToastOptions as a, ToastType as c, ToastItem as i, ToastContentScope as n, ToastPlacement as o, ToastDismissReason as r, ToastSlots as s, ToastCollisionBehavior as t };
|
|
@@ -35,8 +35,16 @@ interface StackProps {
|
|
|
35
35
|
padding?: SpacingStep;
|
|
36
36
|
/** Block-axis padding; overrides padding on this axis. */
|
|
37
37
|
paddingBlock?: SpacingStep;
|
|
38
|
+
/** Block-end (bottom) padding; overrides `paddingBlock` and `padding` on that edge only. */
|
|
39
|
+
paddingBlockEnd?: SpacingStep;
|
|
40
|
+
/** Block-start (top) padding; overrides `paddingBlock` and `padding` on that edge only. */
|
|
41
|
+
paddingBlockStart?: SpacingStep;
|
|
38
42
|
/** Inline-axis padding; overrides padding on this axis. */
|
|
39
43
|
paddingInline?: SpacingStep;
|
|
44
|
+
/** Inline-end (right in LTR) padding; overrides `paddingInline` and `padding` on that edge only. */
|
|
45
|
+
paddingInlineEnd?: SpacingStep;
|
|
46
|
+
/** Inline-start (left in LTR) padding; overrides `paddingInline` and `padding` on that edge only. */
|
|
47
|
+
paddingInlineStart?: SpacingStep;
|
|
40
48
|
/** Vertical alignment, resolved according to direction. */
|
|
41
49
|
vAlign?: StackAlignment;
|
|
42
50
|
/** Width of the stack. Numbers are interpreted as pixels. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as TextWeight, o as TextSize } from "./types-
|
|
1
|
+
import { l as TextWeight, o as TextSize } from "./types-Ckih2YJi.js";
|
|
2
2
|
import { Component } from "vue";
|
|
3
3
|
//#region src/Link/types.d.ts
|
|
4
4
|
type LinkColor = 'primary' | 'secondary' | 'accent' | 'inherit';
|
|
@@ -57,6 +57,10 @@ interface LinkProps {
|
|
|
57
57
|
* Causes the browser to download the linked URL.
|
|
58
58
|
*/
|
|
59
59
|
download?: string | boolean;
|
|
60
|
+
/**
|
|
61
|
+
* 链接的 referrer 策略,原样转成 `referrerpolicy` 属性。
|
|
62
|
+
*/
|
|
63
|
+
referrerPolicy?: string;
|
|
60
64
|
/**
|
|
61
65
|
* Tooltip text shown on hover and keyboard focus.
|
|
62
66
|
*/
|
|
@@ -6,7 +6,7 @@ type TextWeight = 'regular' | 'normal' | 'medium' | 'semibold' | 'bold';
|
|
|
6
6
|
type TextWrap = 'wrap' | 'nowrap' | 'balance' | 'pretty';
|
|
7
7
|
type TextWordBreak = 'normal' | 'break-word' | 'break-all';
|
|
8
8
|
type TextDisplay = 'block' | 'inline';
|
|
9
|
-
type TextAs = 'span' | 'p' | 'div' | 'label';
|
|
9
|
+
type TextAs = 'span' | 'p' | 'div' | 'label' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
10
10
|
type TextJustify = 'start' | 'center' | 'end';
|
|
11
11
|
type TextTruncateTooltip = boolean | 'above' | 'below' | 'start' | 'end';
|
|
12
12
|
interface TextProps {
|
|
@@ -36,6 +36,12 @@ interface TextProps {
|
|
|
36
36
|
* How long unbroken strings break inside a constrained width.
|
|
37
37
|
*/
|
|
38
38
|
wordBreak?: TextWordBreak;
|
|
39
|
+
/**
|
|
40
|
+
* 用 `text-box-trim` 裁掉文字上下多余的留白,让首行字形贴住盒子边缘。
|
|
41
|
+
* 打开后强制块级布局。
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
hasCapsize?: boolean;
|
|
39
45
|
/**
|
|
40
46
|
* Draws a line through the text.
|
|
41
47
|
* @default false
|
|
@@ -52,7 +58,8 @@ interface TextProps {
|
|
|
52
58
|
*/
|
|
53
59
|
display?: TextDisplay;
|
|
54
60
|
/**
|
|
55
|
-
* HTML element to render.
|
|
61
|
+
* HTML element to render. Heading tags render a real `h1`–`h6`, but keep
|
|
62
|
+
* `Text` typography; use `Heading` when you also want heading sizing.
|
|
56
63
|
* @default 'span'
|
|
57
64
|
*/
|
|
58
65
|
as?: TextAs;
|
|
@@ -34,6 +34,11 @@ interface PopoverProps {
|
|
|
34
34
|
hasLightDismiss?: boolean;
|
|
35
35
|
/** 按下 Escape 时是否关闭。 */
|
|
36
36
|
hasEscapeDismiss?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* 外部元素当锚点。传了它就不再包一层触发容器,默认插槽可以不写;
|
|
39
|
+
* 点击、`aria-haspopup` 等会直接挂到这个元素里的按钮上。
|
|
40
|
+
*/
|
|
41
|
+
anchor?: HTMLElement | null;
|
|
37
42
|
}
|
|
38
43
|
//#endregion
|
|
39
44
|
export { PopoverRole as a, PopoverProps as i, PopoverPadding as n, PopoverPlacement as r, PopoverAlignment as t };
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { n as SpacingStep } from "./types-BTk0WZ0b.js";
|
|
2
2
|
import { VNodeChild } from "vue";
|
|
3
|
+
//#region src/Layout/size.d.ts
|
|
4
|
+
type SizeValue = number | string;
|
|
5
|
+
interface PaddingInput {
|
|
6
|
+
padding?: SpacingStep;
|
|
7
|
+
paddingInline?: SpacingStep;
|
|
8
|
+
paddingInlineStart?: SpacingStep;
|
|
9
|
+
paddingInlineEnd?: SpacingStep;
|
|
10
|
+
paddingBlock?: SpacingStep;
|
|
11
|
+
paddingBlockStart?: SpacingStep;
|
|
12
|
+
paddingBlockEnd?: SpacingStep;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
3
15
|
//#region src/Section/types.d.ts
|
|
4
16
|
type SectionVariant = 'section' | 'transparent' | 'muted';
|
|
5
17
|
type SectionDivider = 'top' | 'bottom' | 'start' | 'end';
|
|
@@ -24,19 +36,4 @@ interface SectionSlots {
|
|
|
24
36
|
default?: () => VNodeChild;
|
|
25
37
|
}
|
|
26
38
|
//#endregion
|
|
27
|
-
|
|
28
|
-
type __VLS_Slots = SectionSlots;
|
|
29
|
-
declare const __VLS_base: import("vue").DefineComponent<SectionProps, {
|
|
30
|
-
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
31
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SectionProps> & Readonly<{}>, {
|
|
32
|
-
variant: SectionVariant;
|
|
33
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
|
-
declare const _default: typeof __VLS_export;
|
|
36
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
-
new (): {
|
|
38
|
-
$slots: S;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
//#endregion
|
|
42
|
-
export { SectionVariant as a, SectionSlots as i, SectionDivider as n, SectionProps as r, _default as t };
|
|
39
|
+
export { PaddingInput as a, SectionVariant as i, SectionProps as n, SizeValue as o, SectionSlots as r, SectionDivider as t };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { computed, onMounted, ref, watch } from "vue";
|
|
1
|
+
import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-Cru9_00b.js";
|
|
2
|
+
import { computed, onMounted, ref, toValue, watch } from "vue";
|
|
4
3
|
//#region src/Typeahead/useAnchoredListbox.ts
|
|
4
|
+
/** 想要的宽度再宽也要给视口留边。没给就不插手宽度。 */
|
|
5
|
+
function requestedMenuWidth(menuWidth) {
|
|
6
|
+
if (menuWidth == null) return void 0;
|
|
7
|
+
return `min(${menuWidth}px, calc(100vw - 16px))`;
|
|
8
|
+
}
|
|
5
9
|
/**
|
|
6
10
|
* 把列表钉在锚点下方,点外面关闭。Escape 交给组件自己处理,这样编辑中的选择可以还原。
|
|
7
11
|
*/
|
|
@@ -36,7 +40,8 @@ function useAnchoredListbox(options) {
|
|
|
36
40
|
style: computed(() => ({
|
|
37
41
|
top: `${position.value.top}px`,
|
|
38
42
|
left: `${position.value.left}px`,
|
|
39
|
-
minWidth: anchorWidth.value > 0 ? `${anchorWidth.value}px` : void 0
|
|
43
|
+
minWidth: anchorWidth.value > 0 ? `${anchorWidth.value}px` : void 0,
|
|
44
|
+
width: requestedMenuWidth(toValue(options.menuWidth))
|
|
40
45
|
}))
|
|
41
46
|
};
|
|
42
47
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { toValue, watch } from "vue";
|
|
2
|
+
//#region src/composables/useDevWarning.ts
|
|
3
|
+
/** 生产构建里 `import.meta.env.DEV` 是 false,这两个函数整段会被摇掉。 */
|
|
4
|
+
function isDevBuild() {
|
|
5
|
+
return import.meta.env?.DEV === true;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* 对应原版 Astryx 的 `devWarn`。
|
|
9
|
+
*
|
|
10
|
+
* 没有组件实例时用的开发期警告,只在开发构建里输出。
|
|
11
|
+
* 输出形如 `Component: message`,前缀写组件或组合式函数的名字。
|
|
12
|
+
*/
|
|
13
|
+
function devWarn(component, message) {
|
|
14
|
+
if (!isDevBuild()) return;
|
|
15
|
+
console.warn(`${component}: ${message}`);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 对应原版 Astryx 的 `hooks/useDevWarning`。
|
|
19
|
+
*
|
|
20
|
+
* 条件成立时打一条开发期警告,同一次挂载只打一次。
|
|
21
|
+
* 直接写在渲染体里的警告每次渲染都会重来,用状态挡又白白多一次渲染,
|
|
22
|
+
* 所以这里靠 watch 在条件第一次成立时打一次。
|
|
23
|
+
*
|
|
24
|
+
* 生产构建里什么也不做,不会输出,也不留 watcher。
|
|
25
|
+
*/
|
|
26
|
+
function useDevWarning(component, message, condition = true) {
|
|
27
|
+
if (!isDevBuild()) return;
|
|
28
|
+
let isWarned = false;
|
|
29
|
+
watch(() => toValue(condition), (holds) => {
|
|
30
|
+
if (!holds || isWarned) return;
|
|
31
|
+
isWarned = true;
|
|
32
|
+
devWarn(component, message);
|
|
33
|
+
}, { immediate: true });
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { useDevWarning as n, devWarn as t };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { n as useClickableContainer } from "./useClickableContainer-DyNpnSEa.js";
|
|
2
|
+
import { toValue } from "vue";
|
|
3
|
+
//#region src/composables/useInputContainer.ts
|
|
4
|
+
/** 点了以后接焦点的输入框类型:这些类型自己不会因为点击容器而聚焦。 */
|
|
5
|
+
const TEXT_LIKE_INPUT_TYPES = /* @__PURE__ */ new Set([
|
|
6
|
+
"text",
|
|
7
|
+
"search",
|
|
8
|
+
"email",
|
|
9
|
+
"url",
|
|
10
|
+
"tel",
|
|
11
|
+
"password",
|
|
12
|
+
"number",
|
|
13
|
+
"date",
|
|
14
|
+
"datetime-local",
|
|
15
|
+
"month",
|
|
16
|
+
"week",
|
|
17
|
+
"time"
|
|
18
|
+
]);
|
|
19
|
+
/** 文本类控件拿 `.focus()`,复选框、单选框、文件这类拿 `.click()`。 */
|
|
20
|
+
function isTextLike(element) {
|
|
21
|
+
if (element instanceof HTMLTextAreaElement) return true;
|
|
22
|
+
if (element instanceof HTMLInputElement) return TEXT_LIKE_INPUT_TYPES.has(element.type);
|
|
23
|
+
return element.isContentEditable;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 对应原版 Astryx 的 `hooks/useInputContainer`。
|
|
27
|
+
*
|
|
28
|
+
* 让输入框外面那一圈也能点:点在图标、内边距、状态图标这些没交互的地方时,
|
|
29
|
+
* 交给里面的输入框接焦点。底座是 `useClickableContainer`,所以清空按钮、
|
|
30
|
+
* 日历开关、链接这些嵌套的控件点上去还是它们自己的事,不会把焦点抢走。
|
|
31
|
+
*
|
|
32
|
+
* 文本类的输入框收 `.focus()`,复选框、单选框、文件这种收 `.click()`。
|
|
33
|
+
* TextInput、TextArea 这类把输入框包起来、外面还有一圈装饰的组件用它。
|
|
34
|
+
*/
|
|
35
|
+
function useInputContainer(options) {
|
|
36
|
+
function focusInput() {
|
|
37
|
+
const input = options.inputRef.value;
|
|
38
|
+
if (input == null) return;
|
|
39
|
+
if (isTextLike(input)) input.focus({ preventScroll: true });
|
|
40
|
+
else input.click();
|
|
41
|
+
}
|
|
42
|
+
return useClickableContainer({
|
|
43
|
+
containerRef: options.containerRef,
|
|
44
|
+
get disabled() {
|
|
45
|
+
return toValue(options.disabled ?? false);
|
|
46
|
+
},
|
|
47
|
+
onClick: () => focusInput()
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
export { useInputContainer as t };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { t as _sfc_main } from "./FieldIcon--NTgW5IU.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "./FieldInfoTip-Ds-sW_jY.js";
|
|
3
|
+
import { computed, toValue } from "vue";
|
|
4
|
+
//#region src/composables/useInputStatusIcon.ts
|
|
5
|
+
/**
|
|
6
|
+
* 对应原版 Astryx 的 `hooks/useInputStatusIcon`。
|
|
7
|
+
*
|
|
8
|
+
* 决定输入框上那颗状态图标画什么,让同一状态下所有输入框长得一样:
|
|
9
|
+
* `attached` 画一个不说话的图标,文案留给下面的状态栏;`detached` 什么都不画,
|
|
10
|
+
* 因为状态栏自己带了图标;`tooltip` 画一个真按钮,键盘、鼠标、触摸、读屏都能
|
|
11
|
+
* 摸到它的说明。在 `InputGroup` 里也不画,组自己会画。
|
|
12
|
+
*
|
|
13
|
+
* 上游还会返回一个 `describedBy`,用来接进输入框的 `aria-describedby`。
|
|
14
|
+
* 我们这边 `Field` 已经把状态文案渲染成视觉隐藏文本并接进 `aria-describedby` 了,
|
|
15
|
+
* tooltip 按钮自己也带着 `aria-describedby`,所以不需要再返回一个 id。
|
|
16
|
+
*/
|
|
17
|
+
function useInputStatusIcon(options = {}) {
|
|
18
|
+
const hasStatus = computed(() => toValue(options.status) != null);
|
|
19
|
+
return {
|
|
20
|
+
statusIcon: computed(() => {
|
|
21
|
+
if (!hasStatus.value) return null;
|
|
22
|
+
if (toValue(options.isInGroup ?? false)) return null;
|
|
23
|
+
const variant = toValue(options.statusVariant ?? "attached");
|
|
24
|
+
if (variant === "detached") return null;
|
|
25
|
+
const status = toValue(options.status);
|
|
26
|
+
if (variant === "tooltip" && status?.message) return _sfc_main$1;
|
|
27
|
+
return _sfc_main;
|
|
28
|
+
}),
|
|
29
|
+
statusIconProps: computed(() => {
|
|
30
|
+
const status = toValue(options.status);
|
|
31
|
+
if (status == null) return {};
|
|
32
|
+
if (toValue(options.statusVariant ?? "attached") === "tooltip" && status.message) return {
|
|
33
|
+
text: status.message,
|
|
34
|
+
type: status.type
|
|
35
|
+
};
|
|
36
|
+
return { type: status.type };
|
|
37
|
+
})
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { useInputStatusIcon as t };
|