@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,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as useAstryxMessages } from "./context-
|
|
3
|
-
import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
|
|
1
|
+
import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-Cru9_00b.js";
|
|
2
|
+
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
4
3
|
import { t as _sfc_main$1 } from "./Icon-bteSId7T.js";
|
|
5
|
-
import { t as _sfc_main$2 } from "./Item-
|
|
6
|
-
import { a as dropdownMenuContextKey, o as useDropdownMenuContext } from "./useMenuDrillIn-
|
|
7
|
-
import { n as useMenuFocus, o as MENU_ITEM_ROLES, r as _sfc_main$3, s as activateMenuItem } from "./DropdownMenu
|
|
4
|
+
import { t as _sfc_main$2 } from "./Item-KhFKX9St.js";
|
|
5
|
+
import { a as dropdownMenuContextKey, o as useDropdownMenuContext } from "./useMenuDrillIn-DzKGkTho.js";
|
|
6
|
+
import { n as useMenuFocus, o as MENU_ITEM_ROLES, r as _sfc_main$3, s as activateMenuItem } from "./DropdownMenu-DEb2dSSP.js";
|
|
8
7
|
import { t as _sfc_main$4 } from "./Spinner-9cYUCnDy.js";
|
|
9
8
|
import { t as useSubmenuMode } from "./useSubmenuMode-CZN9qrUo.js";
|
|
10
|
-
import { Fragment, Teleport, computed, createBlock, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, nextTick, normalizeStyle, onBeforeUnmount, openBlock, provide, ref, renderSlot, unref, useId, useSlots, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
9
|
+
import { Fragment, Teleport, computed, createBlock, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, nextTick, normalizeStyle, onBeforeUnmount, openBlock, provide, ref, renderSlot, unref, useId, useSlots, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
11
10
|
import "../styles/dropdown-menu.css";
|
|
12
11
|
//#region src/DropdownMenu/DropdownMenuSubMenu.vue
|
|
13
12
|
const _hoisted_1 = {
|
|
@@ -222,7 +221,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
222
221
|
});
|
|
223
222
|
onBeforeUnmount(cancelClose);
|
|
224
223
|
return (_ctx, _cache) => {
|
|
225
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(_sfc_main$2, {
|
|
224
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(_sfc_main$2, mergeProps(_ctx.$attrs, {
|
|
226
225
|
ref_key: "rowComponent",
|
|
227
226
|
ref: rowComponent,
|
|
228
227
|
class: "astryx-dropdown-menu-item",
|
|
@@ -244,7 +243,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
244
243
|
],
|
|
245
244
|
onPointerenter: openFlyout,
|
|
246
245
|
onPointerleave: scheduleClose
|
|
247
|
-
}, createSlots({
|
|
246
|
+
}), createSlots({
|
|
248
247
|
endContent: withCtx(() => [__props.hasSpinner ? (openBlock(), createElementBlock("span", _hoisted_1, [createVNode(_sfc_main$4, { size: "sm" })])) : (openBlock(), createBlock(_sfc_main$1, {
|
|
249
248
|
key: 1,
|
|
250
249
|
color: "secondary",
|
|
@@ -272,7 +271,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
272
271
|
fn: withCtx(() => [renderSlot(_ctx.$slots, "description")]),
|
|
273
272
|
key: "2"
|
|
274
273
|
} : void 0
|
|
275
|
-
]),
|
|
274
|
+
]), 1040, [
|
|
276
275
|
"aria-expanded",
|
|
277
276
|
"data-menu-size",
|
|
278
277
|
"density",
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
2
|
+
import { t as _sfc_main$5 } from "./Button-B6Hj_O_s.js";
|
|
2
3
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
3
|
-
import {
|
|
4
|
+
import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-Cru9_00b.js";
|
|
4
5
|
import { n as getFocusables } from "./focus-CpficIgf.js";
|
|
5
6
|
import { t as useTypeahead } from "./useTypeahead-PAK8lMYz.js";
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as _sfc_main$6 } from "./BottomSheet-
|
|
7
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
8
|
+
import { t as _sfc_main$6 } from "./BottomSheet-pt7m4CvC.js";
|
|
8
9
|
import { t as _sfc_main$7 } from "./Icon-bteSId7T.js";
|
|
9
|
-
import { t as _sfc_main$8 } from "./Item-
|
|
10
|
-
import { a as dropdownMenuContextKey, i as _sfc_main$10, n as _sfc_main$9, o as useDropdownMenuContext, r as _sfc_main$11, t as useMenuDrillIn } from "./useMenuDrillIn-
|
|
10
|
+
import { t as _sfc_main$8 } from "./Item-KhFKX9St.js";
|
|
11
|
+
import { a as dropdownMenuContextKey, i as _sfc_main$10, n as _sfc_main$9, o as useDropdownMenuContext, r as _sfc_main$11, t as useMenuDrillIn } from "./useMenuDrillIn-DzKGkTho.js";
|
|
11
12
|
import { t as _sfc_main$12 } from "./Divider-BtwnL18I.js";
|
|
12
|
-
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, mergeModels, mergeProps, nextTick, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useSlots, vShow, watch, withCtx, withDirectives } from "vue";
|
|
13
|
+
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, mergeModels, mergeProps, nextTick, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, unref, useAttrs, useId, useModel, useSlots, vShow, watch, withCtx, withDirectives } from "vue";
|
|
13
14
|
import "../styles/dropdown-menu.css";
|
|
14
15
|
//#region src/DropdownMenu/menuItemRoles.ts
|
|
15
16
|
/**
|
|
@@ -98,31 +99,20 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
98
99
|
});
|
|
99
100
|
//#endregion
|
|
100
101
|
//#region src/DropdownMenu/DropdownMenuItem.vue
|
|
101
|
-
const _hoisted_1$1 =
|
|
102
|
-
"aria-disabled",
|
|
103
|
-
"data-density",
|
|
104
|
-
"data-disabled",
|
|
105
|
-
"data-menu-size",
|
|
106
|
-
"data-variant",
|
|
107
|
-
"href",
|
|
108
|
-
"rel",
|
|
109
|
-
"tabindex",
|
|
110
|
-
"target"
|
|
111
|
-
];
|
|
112
|
-
const _hoisted_2$1 = {
|
|
102
|
+
const _hoisted_1$1 = {
|
|
113
103
|
key: 0,
|
|
114
104
|
class: "astryx-item__start"
|
|
115
105
|
};
|
|
116
|
-
const
|
|
117
|
-
const
|
|
106
|
+
const _hoisted_2$1 = { class: "astryx-item__content" };
|
|
107
|
+
const _hoisted_3$1 = {
|
|
118
108
|
key: 0,
|
|
119
109
|
class: "astryx-item__label"
|
|
120
110
|
};
|
|
121
|
-
const
|
|
111
|
+
const _hoisted_4$1 = {
|
|
122
112
|
key: 1,
|
|
123
113
|
class: "astryx-item__description"
|
|
124
114
|
};
|
|
125
|
-
const
|
|
115
|
+
const _hoisted_5$1 = {
|
|
126
116
|
key: 1,
|
|
127
117
|
class: "astryx-item__end"
|
|
128
118
|
};
|
|
@@ -155,6 +145,9 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
155
145
|
const attrs = useAttrs();
|
|
156
146
|
const slots = useSlots();
|
|
157
147
|
const menu = useDropdownMenuContext();
|
|
148
|
+
const linkComponent = useLinkComponent();
|
|
149
|
+
/** 链接行用的根组件,没有 provider 时还是 `<a>`。 */
|
|
150
|
+
const linkRoot = computed(() => linkComponent.value == null ? "a" : toRaw(linkComponent.value));
|
|
158
151
|
const menuSize = computed(() => menu?.menuSize.value ?? "md");
|
|
159
152
|
const density = computed(() => menuSize.value === "sm" ? "compact" : "balanced");
|
|
160
153
|
const isDestructive = computed(() => props.variant === "destructive");
|
|
@@ -198,7 +191,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
198
191
|
if (row instanceof HTMLElement && row !== row.ownerDocument.activeElement) row.focus({ preventScroll: true });
|
|
199
192
|
}
|
|
200
193
|
return (_ctx, _cache) => {
|
|
201
|
-
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode("\n A row that navigates is the link itself. `Item` gives its root an inner\n anchor instead when a `role` is set, which would put two controls in one\n row, so the link row renders the same markup with the anchor as its root.\n "), isLink.value ? (openBlock(),
|
|
194
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode("\n A row that navigates is the link itself. `Item` gives its root an inner\n anchor instead when a `role` is set, which would put two controls in one\n row, so the link row renders the same markup with the anchor as its root.\n "), isLink.value ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), mergeProps({ key: 0 }, forwardedAttrs.value, {
|
|
202
195
|
class: ["astryx-item astryx-dropdown-menu-item", unref(attrs).class],
|
|
203
196
|
role: "menuitem",
|
|
204
197
|
"aria-disabled": __props.isDisabled || void 0,
|
|
@@ -209,6 +202,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
209
202
|
"data-menu-size": menuSize.value,
|
|
210
203
|
"data-variant": __props.variant,
|
|
211
204
|
href: linkHref.value,
|
|
205
|
+
to: linkRoot.value !== "a" && !__props.isDisabled ? linkHref.value : void 0,
|
|
212
206
|
rel: resolvedRel.value,
|
|
213
207
|
style: unref(attrs).style,
|
|
214
208
|
tabindex: __props.isDisabled ? void 0 : -1,
|
|
@@ -216,15 +210,31 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
216
210
|
onAuxclick: handleAuxClick,
|
|
217
211
|
onClick: handleClick,
|
|
218
212
|
onPointermove: handlePointerMove
|
|
219
|
-
}),
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
213
|
+
}), {
|
|
214
|
+
default: withCtx(() => [
|
|
215
|
+
hasStart.value ? (openBlock(), createElementBlock("span", _hoisted_1$1, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$7, {
|
|
216
|
+
color: iconColor.value,
|
|
217
|
+
icon: __props.icon,
|
|
218
|
+
size: "sm"
|
|
219
|
+
}, null, 8, ["color", "icon"])])])) : createCommentVNode("v-if", true),
|
|
220
|
+
createElementVNode("span", _hoisted_2$1, [hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$1, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])])) : createCommentVNode("v-if", true), hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_4$1, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)]),
|
|
221
|
+
hasEnd.value ? (openBlock(), createElementBlock("span", _hoisted_5$1, [renderSlot(_ctx.$slots, "endContent")])) : createCommentVNode("v-if", true)
|
|
222
|
+
]),
|
|
223
|
+
_: 3
|
|
224
|
+
}, 16, [
|
|
225
|
+
"aria-disabled",
|
|
226
|
+
"class",
|
|
227
|
+
"data-density",
|
|
228
|
+
"data-disabled",
|
|
229
|
+
"data-menu-size",
|
|
230
|
+
"data-variant",
|
|
231
|
+
"href",
|
|
232
|
+
"to",
|
|
233
|
+
"rel",
|
|
234
|
+
"style",
|
|
235
|
+
"tabindex",
|
|
236
|
+
"target"
|
|
237
|
+
])) : (openBlock(), createBlock(_sfc_main$8, mergeProps({ key: 1 }, unref(attrs), {
|
|
228
238
|
class: "astryx-dropdown-menu-item",
|
|
229
239
|
role: "menuitem",
|
|
230
240
|
"data-menu-size": menuSize.value,
|
|
@@ -629,6 +639,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
629
639
|
const triggerId = `astryx-dropdown-menu-trigger-${uid}`;
|
|
630
640
|
const anchorRef = ref(null);
|
|
631
641
|
const surfaceRef = ref(null);
|
|
642
|
+
useScrollbars(surfaceRef);
|
|
632
643
|
const popoverRef = ref(null);
|
|
633
644
|
const headerRef = ref(null);
|
|
634
645
|
const footerRef = ref(null);
|
package/dist/EmptyState/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../EmptyState-
|
|
1
|
+
import { t as _sfc_main } from "../EmptyState-C_GH7IV5.js";
|
|
2
2
|
export { _sfc_main as EmptyState };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Heading-
|
|
2
|
-
import { t as _sfc_main$2 } from "./Text-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Heading-BnwWEWkp.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "./Text-CV3LmscH.js";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, renderSlot, toDisplayString, useTemplateRef, withCtx } from "vue";
|
|
4
4
|
import "../styles/empty-state.css";
|
|
5
5
|
//#region src/EmptyState/EmptyState.vue
|
package/dist/Field/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as FieldSlots, c as FieldStatusType, i as FieldSlotProps, l as FieldStatusVariant, n as FieldLabelSlots, o as FieldStatusInput, r as FieldProps, s as FieldStatusProps, t as FieldLabelProps } from "../types-
|
|
2
|
-
import { n as _default, t as _default$1 } from "../index-
|
|
1
|
+
import { a as FieldSlots, c as FieldStatusType, i as FieldSlotProps, l as FieldStatusVariant, n as FieldLabelSlots, o as FieldStatusInput, r as FieldProps, s as FieldStatusProps, t as FieldLabelProps } from "../types-0Q_SJv_F.js";
|
|
2
|
+
import { n as _default, t as _default$1 } from "../index-C5e-7Obr.js";
|
|
3
3
|
export { _default as Field, _default$1 as FieldLabel, type FieldLabelProps, type FieldLabelSlots, type FieldProps, type FieldSlotProps, type FieldSlots, type FieldStatusInput, type FieldStatusProps, type FieldStatusType, type FieldStatusVariant };
|
package/dist/Field/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "../FieldLabel-
|
|
2
|
-
import { t as _sfc_main } from "../Field-
|
|
1
|
+
import { t as _sfc_main$1 } from "../FieldLabel-BNeXRuGH.js";
|
|
2
|
+
import { t as _sfc_main } from "../Field-D5gUEGw4.js";
|
|
3
3
|
export { _sfc_main as Field, _sfc_main$1 as FieldLabel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as useFormLayout } from "./context-Cfjh8te1.js";
|
|
2
|
-
import { t as _sfc_main$1 } from "./FieldLabel-
|
|
2
|
+
import { t as _sfc_main$1 } from "./FieldLabel-BNeXRuGH.js";
|
|
3
3
|
import { t as _sfc_main$2 } from "./FieldStatus-MjY19ERl.js";
|
|
4
4
|
import { computed, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, normalizeProps, normalizeStyle, openBlock, renderSlot, useTemplateRef, withCtx } from "vue";
|
|
5
5
|
import "../styles/field.css";
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { n as useButtonTooltip } from "./Button-B6Hj_O_s.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "./ButtonTooltip-nWWrth8j.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "./FieldIcon--NTgW5IU.js";
|
|
4
|
+
import { t as _sfc_main$3 } from "./IconButton-DDNgNl7B.js";
|
|
5
|
+
import { Fragment, computed, createElementBlock, createVNode, defineComponent, onScopeDispose, openBlock, shallowRef, unref, useId, useTemplateRef, watch, withCtx } from "vue";
|
|
6
|
+
//#region src/Field/FieldInfoTip.vue
|
|
7
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
8
|
+
__name: "FieldInfoTip",
|
|
9
|
+
props: {
|
|
10
|
+
text: {},
|
|
11
|
+
type: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const button = useTemplateRef("button");
|
|
16
|
+
const anchor = computed(() => button.value?.element ?? null);
|
|
17
|
+
const id = `astryx-field-tooltip-${useId()}`;
|
|
18
|
+
const tooltip = useButtonTooltip(computed(() => !!props.text));
|
|
19
|
+
const pinned = shallowRef(false);
|
|
20
|
+
function close() {
|
|
21
|
+
pinned.value = false;
|
|
22
|
+
tooltip.hideImmediately();
|
|
23
|
+
}
|
|
24
|
+
function toggle() {
|
|
25
|
+
pinned.value = !pinned.value;
|
|
26
|
+
if (pinned.value) tooltip.onTooltipPointerEnter();
|
|
27
|
+
else close();
|
|
28
|
+
}
|
|
29
|
+
function leave() {
|
|
30
|
+
if (!pinned.value) tooltip.onPointerLeave();
|
|
31
|
+
}
|
|
32
|
+
function dismiss(event) {
|
|
33
|
+
if (event instanceof KeyboardEvent) {
|
|
34
|
+
if (event.key === "Escape") close();
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const target = event.target;
|
|
38
|
+
if (target instanceof Node && !anchor.value?.contains(target) && !document.getElementById(id)?.contains(target)) close();
|
|
39
|
+
}
|
|
40
|
+
watch(tooltip.isOpen, (open) => {
|
|
41
|
+
if (typeof document === "undefined") return;
|
|
42
|
+
if (open) {
|
|
43
|
+
document.addEventListener("pointerdown", dismiss);
|
|
44
|
+
document.addEventListener("keydown", dismiss);
|
|
45
|
+
} else {
|
|
46
|
+
document.removeEventListener("pointerdown", dismiss);
|
|
47
|
+
document.removeEventListener("keydown", dismiss);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
onScopeDispose(() => {
|
|
51
|
+
if (typeof document !== "undefined") {
|
|
52
|
+
document.removeEventListener("pointerdown", dismiss);
|
|
53
|
+
document.removeEventListener("keydown", dismiss);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
return (_ctx, _cache) => {
|
|
57
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(_sfc_main$3, {
|
|
58
|
+
ref_key: "button",
|
|
59
|
+
ref: button,
|
|
60
|
+
class: "astryx-field-info-tip",
|
|
61
|
+
variant: "ghost",
|
|
62
|
+
size: "sm",
|
|
63
|
+
label: __props.text,
|
|
64
|
+
"aria-describedby": id,
|
|
65
|
+
"data-status": __props.type,
|
|
66
|
+
"aria-expanded": unref(tooltip).isOpen.value,
|
|
67
|
+
onClick: toggle,
|
|
68
|
+
onFocus: unref(tooltip).onTooltipPointerEnter,
|
|
69
|
+
onBlur: close,
|
|
70
|
+
onPointerenter: unref(tooltip).onPointerEnter,
|
|
71
|
+
onPointerleave: leave
|
|
72
|
+
}, {
|
|
73
|
+
default: withCtx(() => [createVNode(_sfc_main$2, { type: __props.type ?? "info" }, null, 8, ["type"])]),
|
|
74
|
+
_: 1
|
|
75
|
+
}, 8, [
|
|
76
|
+
"label",
|
|
77
|
+
"data-status",
|
|
78
|
+
"aria-expanded",
|
|
79
|
+
"onFocus",
|
|
80
|
+
"onPointerenter"
|
|
81
|
+
]), createVNode(_sfc_main$1, {
|
|
82
|
+
id,
|
|
83
|
+
anchor: anchor.value,
|
|
84
|
+
open: unref(tooltip).isOpen.value,
|
|
85
|
+
text: __props.text,
|
|
86
|
+
onPointerEnter: unref(tooltip).onTooltipPointerEnter,
|
|
87
|
+
onPointerLeave: leave
|
|
88
|
+
}, null, 8, [
|
|
89
|
+
"anchor",
|
|
90
|
+
"open",
|
|
91
|
+
"text",
|
|
92
|
+
"onPointerEnter"
|
|
93
|
+
])], 64);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
//#endregion
|
|
98
|
+
export { _sfc_main as t };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { t as _sfc_main$1 } from "./FieldInfoTip-Ds-sW_jY.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "./Icon-bteSId7T.js";
|
|
3
|
+
import { a as useFormLayout, n as showsOptionalIndicator, r as showsRequiredIndicator } from "./context-Cfjh8te1.js";
|
|
4
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, useTemplateRef, withCtx } from "vue";
|
|
5
|
+
import "../styles/field.css";
|
|
6
|
+
//#region src/Field/FieldLabel.vue
|
|
7
|
+
const _hoisted_1 = ["data-hidden", "data-disabled"];
|
|
8
|
+
const _hoisted_2 = { class: "astryx-field-label-row" };
|
|
9
|
+
const _hoisted_3 = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "astryx-field-label-icon",
|
|
12
|
+
"aria-hidden": "true"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_4 = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "astryx-field-optionality"
|
|
17
|
+
};
|
|
18
|
+
const _hoisted_5 = ["id"];
|
|
19
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
20
|
+
name: "AstryxFieldLabel",
|
|
21
|
+
__name: "FieldLabel",
|
|
22
|
+
props: {
|
|
23
|
+
label: {},
|
|
24
|
+
inputId: {},
|
|
25
|
+
labelId: {},
|
|
26
|
+
isGroupLabel: { type: Boolean },
|
|
27
|
+
isLabelHidden: { type: Boolean },
|
|
28
|
+
isDisabled: { type: Boolean },
|
|
29
|
+
isOptional: { type: Boolean },
|
|
30
|
+
isRequired: { type: Boolean },
|
|
31
|
+
description: {},
|
|
32
|
+
descriptionId: {},
|
|
33
|
+
labelIcon: {},
|
|
34
|
+
labelTooltip: {},
|
|
35
|
+
optionalLabel: { default: "Optional" },
|
|
36
|
+
requiredLabel: { default: "Required" }
|
|
37
|
+
},
|
|
38
|
+
setup(__props, { expose: __expose }) {
|
|
39
|
+
const props = __props;
|
|
40
|
+
const element = useTemplateRef("label");
|
|
41
|
+
__expose({ element });
|
|
42
|
+
const labelId = computed(() => props.labelId ?? `${props.inputId}-label`);
|
|
43
|
+
const descriptionId = computed(() => props.descriptionId ?? `${props.inputId}-description`);
|
|
44
|
+
/** 字符串当语义图标名交给 Icon,其余当组件渲染。 */
|
|
45
|
+
const iconName = computed(() => typeof props.labelIcon === "string" ? props.labelIcon : void 0);
|
|
46
|
+
const icon = computed(() => props.labelIcon && typeof props.labelIcon !== "string" ? toRaw(props.labelIcon) : void 0);
|
|
47
|
+
const formLayout = useFormLayout();
|
|
48
|
+
const optionality = computed(() => formLayout.value?.defaultOptionality);
|
|
49
|
+
const showOptional = computed(() => showsOptionalIndicator(props.isOptional, props.isRequired, optionality.value));
|
|
50
|
+
const showRequired = computed(() => showsRequiredIndicator(props.isRequired, props.isOptional, optionality.value));
|
|
51
|
+
function focusFromDescription(event) {
|
|
52
|
+
if (props.isGroupLabel || props.isDisabled) return;
|
|
53
|
+
const target = event.target;
|
|
54
|
+
if (target instanceof Element && target.closest("a,button,input,select,textarea,[role=\"button\"]")) return;
|
|
55
|
+
if (element.value?.ownerDocument.getSelection()?.toString()) return;
|
|
56
|
+
const control = element.value?.ownerDocument.getElementById(props.inputId);
|
|
57
|
+
if (control instanceof HTMLInputElement && ["checkbox", "radio"].includes(control.type)) control.click();
|
|
58
|
+
else control?.focus({ preventScroll: true });
|
|
59
|
+
}
|
|
60
|
+
return (_ctx, _cache) => {
|
|
61
|
+
return openBlock(), createElementBlock("div", {
|
|
62
|
+
class: "astryx-field-label-group",
|
|
63
|
+
"data-hidden": __props.isLabelHidden || void 0,
|
|
64
|
+
"data-disabled": __props.isDisabled || void 0
|
|
65
|
+
}, [createElementVNode("div", _hoisted_2, [(openBlock(), createBlock(resolveDynamicComponent(__props.isGroupLabel ? "span" : "label"), {
|
|
66
|
+
id: labelId.value,
|
|
67
|
+
ref: "label",
|
|
68
|
+
class: "astryx-field-label",
|
|
69
|
+
for: __props.isGroupLabel ? void 0 : __props.inputId
|
|
70
|
+
}, {
|
|
71
|
+
default: withCtx(() => [
|
|
72
|
+
_ctx.$slots.labelIcon || icon.value || iconName.value ? (openBlock(), createElementBlock("span", _hoisted_3, [renderSlot(_ctx.$slots, "labelIcon", {}, () => [iconName.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
73
|
+
key: 0,
|
|
74
|
+
icon: iconName.value,
|
|
75
|
+
size: "sm"
|
|
76
|
+
}, null, 8, ["icon"])) : icon.value ? (openBlock(), createBlock(resolveDynamicComponent(icon.value), { key: 1 })) : createCommentVNode("v-if", true)])])) : createCommentVNode("v-if", true),
|
|
77
|
+
createTextVNode(" " + toDisplayString(__props.label) + " ", 1),
|
|
78
|
+
showOptional.value || showRequired.value ? (openBlock(), createElementBlock("span", _hoisted_4, [_cache[0] || (_cache[0] = createElementVNode("span", { "aria-hidden": "true" }, " ∙ ", -1)), createTextVNode(toDisplayString(showOptional.value ? __props.optionalLabel : __props.requiredLabel), 1)])) : createCommentVNode("v-if", true)
|
|
79
|
+
]),
|
|
80
|
+
_: 3
|
|
81
|
+
}, 8, ["id", "for"])), __props.labelTooltip ? (openBlock(), createBlock(_sfc_main$1, {
|
|
82
|
+
key: 0,
|
|
83
|
+
text: __props.labelTooltip
|
|
84
|
+
}, null, 8, ["text"])) : createCommentVNode("v-if", true)]), __props.description ? (openBlock(), createElementBlock("span", {
|
|
85
|
+
key: 0,
|
|
86
|
+
id: descriptionId.value,
|
|
87
|
+
class: "astryx-field-description",
|
|
88
|
+
role: "presentation",
|
|
89
|
+
onClick: focusFromDescription
|
|
90
|
+
}, toDisplayString(__props.description), 9, _hoisted_5)) : createCommentVNode("v-if", true)], 8, _hoisted_1);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
//#endregion
|
|
95
|
+
export { _sfc_main as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "../index-
|
|
1
|
+
import { t as _default } from "../index-DIXAzTKL.js";
|
|
2
2
|
export { _default as FieldStatus };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { di as FileInputEmits, fi as FileInputMode, gi as FileInputValue, hi as FileInputStatus, mi as FileInputSize, pi as FileInputProps, ui as _default } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as FileInput, type FileInputEmits, type FileInputMode, type FileInputProps, type FileInputSize, type FileInputStatus, type FileInputValue };
|
package/dist/FileInput/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../FileInput-
|
|
1
|
+
import { t as _sfc_main } from "../FileInput-BpdiO1V8.js";
|
|
2
2
|
export { _sfc_main as FileInput };
|