@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
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
|
+
import { n as useButtonTooltip } from "./Button-B6Hj_O_s.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "./ButtonTooltip-nWWrth8j.js";
|
|
4
|
+
import { t as _sfc_main$3 } from "./FieldIcon--NTgW5IU.js";
|
|
5
|
+
import { t as _sfc_main$4 } from "./FieldInfoTip-Ds-sW_jY.js";
|
|
6
|
+
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
7
|
+
import { t as useNumberField } from "./useNumberField-4-dIGVed.js";
|
|
8
|
+
import { i as useAriaRequired } from "./context-Cfjh8te1.js";
|
|
9
|
+
import { t as _sfc_main$5 } from "./Field-D5gUEGw4.js";
|
|
10
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, unref, useAttrs, useId, useTemplateRef, withCtx, withModifiers } from "vue";
|
|
11
|
+
import "../styles/number-input.css";
|
|
12
|
+
//#region src/NumberInput/NumberInput.vue
|
|
13
|
+
const _hoisted_1 = [
|
|
14
|
+
"data-status",
|
|
15
|
+
"data-disabled",
|
|
16
|
+
"data-readonly"
|
|
17
|
+
];
|
|
18
|
+
const _hoisted_2 = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "astryx-number-input-icon",
|
|
21
|
+
"aria-hidden": "true"
|
|
22
|
+
};
|
|
23
|
+
const _hoisted_3 = [
|
|
24
|
+
"id",
|
|
25
|
+
"inputmode",
|
|
26
|
+
"value",
|
|
27
|
+
"name",
|
|
28
|
+
"placeholder",
|
|
29
|
+
"autocomplete",
|
|
30
|
+
"disabled",
|
|
31
|
+
"readonly",
|
|
32
|
+
"aria-disabled",
|
|
33
|
+
"aria-valuemin",
|
|
34
|
+
"aria-valuemax",
|
|
35
|
+
"aria-valuenow",
|
|
36
|
+
"aria-valuetext",
|
|
37
|
+
"aria-required",
|
|
38
|
+
"aria-invalid",
|
|
39
|
+
"aria-labelledby",
|
|
40
|
+
"aria-describedby",
|
|
41
|
+
"data-autofocus",
|
|
42
|
+
"aria-label"
|
|
43
|
+
];
|
|
44
|
+
const _hoisted_4 = ["aria-label"];
|
|
45
|
+
const _hoisted_5 = {
|
|
46
|
+
key: 5,
|
|
47
|
+
class: "astryx-number-input-buttons"
|
|
48
|
+
};
|
|
49
|
+
const _hoisted_6 = ["disabled", "aria-label"];
|
|
50
|
+
const _hoisted_7 = ["disabled", "aria-label"];
|
|
51
|
+
const _hoisted_8 = ["name", "value"];
|
|
52
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
53
|
+
name: "AstryxNumberInput",
|
|
54
|
+
inheritAttrs: false,
|
|
55
|
+
__name: "NumberInput",
|
|
56
|
+
props: {
|
|
57
|
+
modelValue: { default: null },
|
|
58
|
+
id: {},
|
|
59
|
+
placeholder: { default: "" },
|
|
60
|
+
min: {},
|
|
61
|
+
max: {},
|
|
62
|
+
step: { default: 1 },
|
|
63
|
+
isDisabled: { type: Boolean },
|
|
64
|
+
disabled: { type: Boolean },
|
|
65
|
+
disabledMessage: {},
|
|
66
|
+
disabledReason: {},
|
|
67
|
+
isReadOnly: { type: Boolean },
|
|
68
|
+
size: { default: "md" },
|
|
69
|
+
label: {},
|
|
70
|
+
description: {},
|
|
71
|
+
isLabelHidden: { type: Boolean },
|
|
72
|
+
isOptional: { type: Boolean },
|
|
73
|
+
isRequired: { type: Boolean },
|
|
74
|
+
labelTooltip: {},
|
|
75
|
+
labelIcon: {},
|
|
76
|
+
startIcon: {},
|
|
77
|
+
units: {},
|
|
78
|
+
hasClear: { type: Boolean },
|
|
79
|
+
clearable: { type: Boolean },
|
|
80
|
+
hasNumberSteppers: { type: Boolean },
|
|
81
|
+
hasAutoFocus: { type: Boolean },
|
|
82
|
+
isIntegerOnly: { type: Boolean },
|
|
83
|
+
isWheelEnabled: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: true
|
|
86
|
+
},
|
|
87
|
+
formatValue: {},
|
|
88
|
+
autoComplete: {},
|
|
89
|
+
width: {},
|
|
90
|
+
htmlName: {},
|
|
91
|
+
name: {},
|
|
92
|
+
status: {},
|
|
93
|
+
statusVariant: { default: "attached" }
|
|
94
|
+
},
|
|
95
|
+
emits: [
|
|
96
|
+
"update:modelValue",
|
|
97
|
+
"change",
|
|
98
|
+
"focus",
|
|
99
|
+
"blur",
|
|
100
|
+
"enter",
|
|
101
|
+
"keydown"
|
|
102
|
+
],
|
|
103
|
+
setup(__props, { emit: __emit }) {
|
|
104
|
+
const props = __props;
|
|
105
|
+
const emit = __emit;
|
|
106
|
+
const PassThrough = defineComponent({
|
|
107
|
+
name: "NumberInputPassThrough",
|
|
108
|
+
setup(_, { slots }) {
|
|
109
|
+
return () => slots.default?.({});
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
const attrs = useAttrs();
|
|
113
|
+
const inputElement = useTemplateRef("input");
|
|
114
|
+
const container = useTemplateRef("container");
|
|
115
|
+
const generatedId = `astryx-number-input-${useId()}`;
|
|
116
|
+
const unitsId = `${generatedId}-units`;
|
|
117
|
+
const disabledDescriptionId = `${generatedId}-disabled`;
|
|
118
|
+
const disabledTooltipId = `${generatedId}-tooltip`;
|
|
119
|
+
const inputId = computed(() => props.id ?? generatedId);
|
|
120
|
+
const messages = useAstryxMessages();
|
|
121
|
+
const incrementLabel = computed(() => messages.value.numberInput.increment(props.label));
|
|
122
|
+
const decrementLabel = computed(() => messages.value.numberInput.decrement(props.label));
|
|
123
|
+
const ariaRequired = useAriaRequired(props);
|
|
124
|
+
const isDisabled = computed(() => Boolean(props.isDisabled || props.disabled));
|
|
125
|
+
const isReadOnly = computed(() => Boolean(props.isReadOnly));
|
|
126
|
+
const isIntegerOnly = computed(() => Boolean(props.isIntegerOnly));
|
|
127
|
+
const hasClear = computed(() => Boolean(props.hasClear || props.clearable));
|
|
128
|
+
const resolvedName = computed(() => props.htmlName ?? props.name);
|
|
129
|
+
const disabledMessage = computed(() => props.disabledMessage ?? props.disabledReason);
|
|
130
|
+
const showsDisabledMessage = computed(() => isDisabled.value && !!disabledMessage.value?.trim());
|
|
131
|
+
const disabledTooltip = useButtonTooltip(showsDisabledMessage);
|
|
132
|
+
const icon = computed(() => props.startIcon ? toRaw(props.startIcon) : void 0);
|
|
133
|
+
const labelIcon = computed(() => props.labelIcon ? toRaw(props.labelIcon) : void 0);
|
|
134
|
+
/** 正在编辑的原始文本;null 表示没有未提交的输入,按聚焦状态决定显示什么 */
|
|
135
|
+
const draft = shallowRef(null);
|
|
136
|
+
const isFocused = shallowRef(false);
|
|
137
|
+
const formattedText = computed(() => {
|
|
138
|
+
if (props.modelValue == null) return "";
|
|
139
|
+
return props.formatValue?.(props.modelValue) ?? String(props.modelValue);
|
|
140
|
+
});
|
|
141
|
+
const displayValue = computed(() => {
|
|
142
|
+
if (draft.value !== null) return draft.value;
|
|
143
|
+
if (props.modelValue == null) return "";
|
|
144
|
+
return isFocused.value ? String(props.modelValue) : formattedText.value;
|
|
145
|
+
});
|
|
146
|
+
const NUMBER_PATTERN = /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i;
|
|
147
|
+
/** 读一段文字里的数字。读不出数字返回 null。 */
|
|
148
|
+
function parseInputText(text) {
|
|
149
|
+
const trimmed = text.trim();
|
|
150
|
+
if (trimmed === "" || !NUMBER_PATTERN.test(trimmed)) return null;
|
|
151
|
+
const parsed = Number(trimmed);
|
|
152
|
+
return Number.isFinite(parsed) ? parsed : null;
|
|
153
|
+
}
|
|
154
|
+
/** 草稿文本是否有问题:解析不出数字,或者跑出范围 */
|
|
155
|
+
const isDraftValid = computed(() => {
|
|
156
|
+
if (draft.value === null || draft.value.trim() === "") return true;
|
|
157
|
+
const parsed = parseInputText(draft.value);
|
|
158
|
+
if (parsed == null) return false;
|
|
159
|
+
if (props.min != null && parsed < props.min) return false;
|
|
160
|
+
if (props.max != null && parsed > props.max) return false;
|
|
161
|
+
return !isIntegerOnly.value || Number.isInteger(parsed);
|
|
162
|
+
});
|
|
163
|
+
const modelValueRef = computed({
|
|
164
|
+
get: () => props.modelValue ?? null,
|
|
165
|
+
set: (value) => {
|
|
166
|
+
emit("update:modelValue", value);
|
|
167
|
+
emit("change", value);
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
const numberField = useNumberField({
|
|
171
|
+
value: modelValueRef,
|
|
172
|
+
min: () => props.min,
|
|
173
|
+
max: () => props.max,
|
|
174
|
+
step: () => props.step,
|
|
175
|
+
disabled: isDisabled,
|
|
176
|
+
readOnly: isReadOnly,
|
|
177
|
+
integerOnly: isIntegerOnly,
|
|
178
|
+
onChange: (value) => {
|
|
179
|
+
modelValueRef.value = value;
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
function resolvedStatus(status) {
|
|
183
|
+
if (status == null || status === "default") return void 0;
|
|
184
|
+
if (typeof status === "string") return { type: status };
|
|
185
|
+
return status;
|
|
186
|
+
}
|
|
187
|
+
const statusValue = computed(() => resolvedStatus(props.status));
|
|
188
|
+
const statusType = computed(() => statusValue.value?.type);
|
|
189
|
+
const showsField = computed(() => {
|
|
190
|
+
if (props.isLabelHidden && !props.description && !statusValue.value?.message) return false;
|
|
191
|
+
return Boolean(props.label || props.description || statusValue.value?.message);
|
|
192
|
+
});
|
|
193
|
+
const shell = computed(() => showsField.value ? _sfc_main$5 : PassThrough);
|
|
194
|
+
const fieldBindings = computed(() => showsField.value ? {
|
|
195
|
+
label: props.label ?? "",
|
|
196
|
+
inputId: inputId.value,
|
|
197
|
+
description: props.description,
|
|
198
|
+
isLabelHidden: props.isLabelHidden || !props.label,
|
|
199
|
+
isDisabled: isDisabled.value,
|
|
200
|
+
isOptional: props.isOptional,
|
|
201
|
+
isRequired: props.isRequired,
|
|
202
|
+
labelIcon: labelIcon.value,
|
|
203
|
+
labelTooltip: props.labelTooltip,
|
|
204
|
+
status: statusValue.value,
|
|
205
|
+
statusVariant: props.statusVariant,
|
|
206
|
+
width: props.width
|
|
207
|
+
} : {});
|
|
208
|
+
const controlledAttrs = /* @__PURE__ */ new Set([
|
|
209
|
+
"class",
|
|
210
|
+
"style",
|
|
211
|
+
"id",
|
|
212
|
+
"value",
|
|
213
|
+
"type",
|
|
214
|
+
"disabled",
|
|
215
|
+
"readonly",
|
|
216
|
+
"autofocus",
|
|
217
|
+
"role",
|
|
218
|
+
"inputmode",
|
|
219
|
+
"aria-labelledby",
|
|
220
|
+
"aria-describedby",
|
|
221
|
+
"aria-required",
|
|
222
|
+
"aria-invalid",
|
|
223
|
+
"aria-disabled",
|
|
224
|
+
"aria-valuenow",
|
|
225
|
+
"aria-valuemin",
|
|
226
|
+
"aria-valuemax",
|
|
227
|
+
"aria-valuetext",
|
|
228
|
+
"name"
|
|
229
|
+
]);
|
|
230
|
+
function inputAttrs() {
|
|
231
|
+
return Object.fromEntries(Object.entries(attrs).filter(([key]) => !controlledAttrs.has(key)));
|
|
232
|
+
}
|
|
233
|
+
function describedBy(fieldIds) {
|
|
234
|
+
return [
|
|
235
|
+
attrs["aria-describedby"],
|
|
236
|
+
fieldIds,
|
|
237
|
+
props.units ? unitsId : void 0,
|
|
238
|
+
showsDisabledMessage.value ? disabledDescriptionId : void 0
|
|
239
|
+
].filter(Boolean).join(" ") || void 0;
|
|
240
|
+
}
|
|
241
|
+
function labelledBy(fieldLabelId) {
|
|
242
|
+
return [fieldLabelId, attrs["aria-labelledby"]].filter(Boolean).join(" ") || void 0;
|
|
243
|
+
}
|
|
244
|
+
function stepBy(direction) {
|
|
245
|
+
if (isDisabled.value || isReadOnly.value) return;
|
|
246
|
+
if (numberField.step(direction)) draft.value = null;
|
|
247
|
+
}
|
|
248
|
+
function focusInput() {
|
|
249
|
+
inputElement.value?.focus({ preventScroll: true });
|
|
250
|
+
}
|
|
251
|
+
function onInput(event) {
|
|
252
|
+
const target = event.target;
|
|
253
|
+
if (isDisabled.value || isReadOnly.value) {
|
|
254
|
+
target.value = displayValue.value;
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
const text = target.value;
|
|
258
|
+
draft.value = text;
|
|
259
|
+
if (text.trim() === "") {
|
|
260
|
+
numberField.setValue(null);
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
const parsed = parseInputText(text);
|
|
264
|
+
if (parsed == null) return;
|
|
265
|
+
numberField.setValue(parsed);
|
|
266
|
+
}
|
|
267
|
+
function onFocus(event) {
|
|
268
|
+
draft.value = null;
|
|
269
|
+
isFocused.value = true;
|
|
270
|
+
disabledTooltip.onTooltipPointerEnter();
|
|
271
|
+
emit("focus", event);
|
|
272
|
+
}
|
|
273
|
+
function onBlur(event) {
|
|
274
|
+
draft.value = null;
|
|
275
|
+
isFocused.value = false;
|
|
276
|
+
disabledTooltip.onBlur();
|
|
277
|
+
emit("blur", event);
|
|
278
|
+
}
|
|
279
|
+
function onKeyDown(event) {
|
|
280
|
+
if (event.isComposing || event.keyCode === 229) return;
|
|
281
|
+
if (!(event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) && (event.key === "ArrowUp" || event.key === "ArrowDown")) {
|
|
282
|
+
emit("keydown", event);
|
|
283
|
+
if (event.defaultPrevented) return;
|
|
284
|
+
event.preventDefault();
|
|
285
|
+
stepBy(event.key === "ArrowUp" ? 1 : -1);
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
if (event.key === "Enter") {
|
|
289
|
+
draft.value = null;
|
|
290
|
+
emit("enter", event);
|
|
291
|
+
}
|
|
292
|
+
emit("keydown", event);
|
|
293
|
+
}
|
|
294
|
+
function onWheel(event) {
|
|
295
|
+
if (!props.isWheelEnabled || isDisabled.value || isReadOnly.value) return;
|
|
296
|
+
if (document.activeElement !== inputElement.value) return;
|
|
297
|
+
if (event.deltaY === 0 || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return;
|
|
298
|
+
event.preventDefault();
|
|
299
|
+
event.stopPropagation();
|
|
300
|
+
stepBy(event.deltaY < 0 ? 1 : -1);
|
|
301
|
+
}
|
|
302
|
+
async function clearValue() {
|
|
303
|
+
if (isDisabled.value || isReadOnly.value) return;
|
|
304
|
+
draft.value = null;
|
|
305
|
+
numberField.setValue(null);
|
|
306
|
+
await nextTick();
|
|
307
|
+
focusInput();
|
|
308
|
+
}
|
|
309
|
+
function focusFromContainer(event) {
|
|
310
|
+
if (isDisabled.value) return;
|
|
311
|
+
const target = event.target;
|
|
312
|
+
if (target instanceof Element && target.closest("input,button,a,select,textarea,[role=\"button\"]")) return;
|
|
313
|
+
if (inputElement.value?.ownerDocument.getSelection()?.toString()) return;
|
|
314
|
+
focusInput();
|
|
315
|
+
}
|
|
316
|
+
function stepFromButton(direction) {
|
|
317
|
+
focusInput();
|
|
318
|
+
stepBy(direction);
|
|
319
|
+
}
|
|
320
|
+
onMounted(() => {
|
|
321
|
+
if (props.hasAutoFocus) focusInput();
|
|
322
|
+
});
|
|
323
|
+
return (_ctx, _cache) => {
|
|
324
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
325
|
+
(openBlock(), createBlock(resolveDynamicComponent(shell.value), normalizeProps(guardReactiveProps(fieldBindings.value)), createSlots({
|
|
326
|
+
default: withCtx((field) => [createElementVNode("div", {
|
|
327
|
+
ref_key: "container",
|
|
328
|
+
ref: container,
|
|
329
|
+
class: normalizeClass(["astryx-number-input", [`size-${props.size}`, unref(attrs).class]]),
|
|
330
|
+
style: normalizeStyle(unref(attrs).style),
|
|
331
|
+
"data-status": statusType.value,
|
|
332
|
+
"data-disabled": isDisabled.value || void 0,
|
|
333
|
+
"data-readonly": isReadOnly.value || void 0,
|
|
334
|
+
onPointerup: focusFromContainer,
|
|
335
|
+
onPointerenter: _cache[4] || (_cache[4] = (...args) => unref(disabledTooltip).onPointerEnter && unref(disabledTooltip).onPointerEnter(...args)),
|
|
336
|
+
onPointerleave: _cache[5] || (_cache[5] = (...args) => unref(disabledTooltip).onPointerLeave && unref(disabledTooltip).onPointerLeave(...args))
|
|
337
|
+
}, [
|
|
338
|
+
_ctx.$slots.icon || icon.value ? (openBlock(), createElementBlock("span", _hoisted_2, [renderSlot(_ctx.$slots, "icon", {}, () => [icon.value ? (openBlock(), createBlock(resolveDynamicComponent(icon.value), { key: 0 })) : createCommentVNode("v-if", true)])])) : createCommentVNode("v-if", true),
|
|
339
|
+
createElementVNode("input", mergeProps({
|
|
340
|
+
id: inputId.value,
|
|
341
|
+
ref: "input"
|
|
342
|
+
}, inputAttrs(), {
|
|
343
|
+
type: "text",
|
|
344
|
+
class: "astryx-number-input-field",
|
|
345
|
+
inputmode: isIntegerOnly.value ? "numeric" : "decimal",
|
|
346
|
+
role: "spinbutton",
|
|
347
|
+
value: displayValue.value,
|
|
348
|
+
name: resolvedName.value && !isDisabled.value && !props.formatValue ? resolvedName.value : void 0,
|
|
349
|
+
placeholder: props.placeholder,
|
|
350
|
+
autocomplete: props.autoComplete ?? inputAttrs().autocomplete,
|
|
351
|
+
disabled: isDisabled.value && !showsDisabledMessage.value,
|
|
352
|
+
readonly: isReadOnly.value || showsDisabledMessage.value,
|
|
353
|
+
"aria-disabled": showsDisabledMessage.value || void 0,
|
|
354
|
+
"aria-valuemin": props.min ?? void 0,
|
|
355
|
+
"aria-valuemax": props.max ?? void 0,
|
|
356
|
+
"aria-valuenow": props.modelValue ?? void 0,
|
|
357
|
+
"aria-valuetext": props.modelValue == null || !props.formatValue ? void 0 : formattedText.value,
|
|
358
|
+
"aria-required": unref(ariaRequired),
|
|
359
|
+
"aria-invalid": statusType.value === "error" || !isDraftValid.value ? "true" : void 0,
|
|
360
|
+
"aria-labelledby": labelledBy(field?.labelId),
|
|
361
|
+
"aria-describedby": describedBy(field?.describedBy),
|
|
362
|
+
"data-autofocus": props.hasAutoFocus || void 0,
|
|
363
|
+
"aria-label": showsField.value ? void 0 : props.label,
|
|
364
|
+
onInput,
|
|
365
|
+
onKeydown: onKeyDown,
|
|
366
|
+
onFocus,
|
|
367
|
+
onBlur,
|
|
368
|
+
onWheel
|
|
369
|
+
}), null, 16, _hoisted_3),
|
|
370
|
+
props.units ? (openBlock(), createElementBlock("span", {
|
|
371
|
+
key: 1,
|
|
372
|
+
id: unitsId,
|
|
373
|
+
class: "astryx-number-input-units"
|
|
374
|
+
}, toDisplayString(props.units), 1)) : createCommentVNode("v-if", true),
|
|
375
|
+
hasClear.value && props.modelValue != null && !isDisabled.value && !isReadOnly.value ? (openBlock(), createElementBlock("button", {
|
|
376
|
+
key: 2,
|
|
377
|
+
type: "button",
|
|
378
|
+
class: "astryx-number-input-clear",
|
|
379
|
+
"aria-label": props.label ? `Clear ${props.label}` : "Clear",
|
|
380
|
+
onClick: clearValue
|
|
381
|
+
}, [createVNode(_sfc_main$3, { type: "clear" })], 8, _hoisted_4)) : createCommentVNode("v-if", true),
|
|
382
|
+
statusValue.value?.message && props.statusVariant === "tooltip" ? (openBlock(), createBlock(_sfc_main$4, {
|
|
383
|
+
key: 3,
|
|
384
|
+
text: statusValue.value.message,
|
|
385
|
+
type: statusValue.value.type
|
|
386
|
+
}, null, 8, ["text", "type"])) : statusValue.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
387
|
+
key: 4,
|
|
388
|
+
type: statusValue.value.type
|
|
389
|
+
}, null, 8, ["type"])) : createCommentVNode("v-if", true),
|
|
390
|
+
props.hasNumberSteppers ? (openBlock(), createElementBlock("div", _hoisted_5, [createElementVNode("button", {
|
|
391
|
+
type: "button",
|
|
392
|
+
class: "astryx-number-input-button increment",
|
|
393
|
+
disabled: isDisabled.value || isReadOnly.value || !unref(numberField).canIncrement.value,
|
|
394
|
+
"aria-label": incrementLabel.value,
|
|
395
|
+
tabindex: "-1",
|
|
396
|
+
onPointerdown: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"])),
|
|
397
|
+
onClick: _cache[1] || (_cache[1] = ($event) => stepFromButton(1))
|
|
398
|
+
}, [..._cache[6] || (_cache[6] = [createElementVNode("svg", {
|
|
399
|
+
class: "astryx-number-input-chevron",
|
|
400
|
+
viewBox: "0 0 12 8",
|
|
401
|
+
width: "12",
|
|
402
|
+
height: "8",
|
|
403
|
+
"aria-hidden": "true",
|
|
404
|
+
fill: "none"
|
|
405
|
+
}, [createElementVNode("path", {
|
|
406
|
+
d: "M1.5 1.75 6 6.25 10.5 1.75",
|
|
407
|
+
stroke: "currentColor",
|
|
408
|
+
"stroke-width": "1.5",
|
|
409
|
+
"stroke-linecap": "round",
|
|
410
|
+
"stroke-linejoin": "round"
|
|
411
|
+
})], -1)])], 40, _hoisted_6), createElementVNode("button", {
|
|
412
|
+
type: "button",
|
|
413
|
+
class: "astryx-number-input-button decrement",
|
|
414
|
+
disabled: isDisabled.value || isReadOnly.value || !unref(numberField).canDecrement.value,
|
|
415
|
+
"aria-label": decrementLabel.value,
|
|
416
|
+
tabindex: "-1",
|
|
417
|
+
onPointerdown: _cache[2] || (_cache[2] = withModifiers(() => {}, ["prevent"])),
|
|
418
|
+
onClick: _cache[3] || (_cache[3] = ($event) => stepFromButton(-1))
|
|
419
|
+
}, [..._cache[7] || (_cache[7] = [createElementVNode("svg", {
|
|
420
|
+
class: "astryx-number-input-chevron",
|
|
421
|
+
viewBox: "0 0 12 8",
|
|
422
|
+
width: "12",
|
|
423
|
+
height: "8",
|
|
424
|
+
"aria-hidden": "true",
|
|
425
|
+
fill: "none"
|
|
426
|
+
}, [createElementVNode("path", {
|
|
427
|
+
d: "M1.5 1.75 6 6.25 10.5 1.75",
|
|
428
|
+
stroke: "currentColor",
|
|
429
|
+
"stroke-width": "1.5",
|
|
430
|
+
"stroke-linecap": "round",
|
|
431
|
+
"stroke-linejoin": "round"
|
|
432
|
+
})], -1)])], 40, _hoisted_7)])) : createCommentVNode("v-if", true),
|
|
433
|
+
resolvedName.value && !isDisabled.value && props.formatValue ? (openBlock(), createElementBlock("input", {
|
|
434
|
+
key: 6,
|
|
435
|
+
type: "hidden",
|
|
436
|
+
name: resolvedName.value,
|
|
437
|
+
value: props.modelValue ?? ""
|
|
438
|
+
}, null, 8, _hoisted_8)) : createCommentVNode("v-if", true)
|
|
439
|
+
], 46, _hoisted_1)]),
|
|
440
|
+
_: 2
|
|
441
|
+
}, [_ctx.$slots.labelIcon ? {
|
|
442
|
+
name: "labelIcon",
|
|
443
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "labelIcon")]),
|
|
444
|
+
key: "0"
|
|
445
|
+
} : void 0]), 1040)),
|
|
446
|
+
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
447
|
+
key: 0,
|
|
448
|
+
id: disabledDescriptionId
|
|
449
|
+
}, {
|
|
450
|
+
default: withCtx(() => [createTextVNode(toDisplayString(disabledMessage.value), 1)]),
|
|
451
|
+
_: 1
|
|
452
|
+
})) : createCommentVNode("v-if", true),
|
|
453
|
+
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
454
|
+
key: 1,
|
|
455
|
+
id: disabledTooltipId,
|
|
456
|
+
anchor: container.value,
|
|
457
|
+
open: unref(disabledTooltip).isOpen.value,
|
|
458
|
+
text: disabledMessage.value ?? "",
|
|
459
|
+
onPointerEnter: unref(disabledTooltip).onTooltipPointerEnter,
|
|
460
|
+
onPointerLeave: unref(disabledTooltip).onTooltipPointerLeave
|
|
461
|
+
}, null, 8, [
|
|
462
|
+
"anchor",
|
|
463
|
+
"open",
|
|
464
|
+
"text",
|
|
465
|
+
"onPointerEnter",
|
|
466
|
+
"onPointerLeave"
|
|
467
|
+
])) : createCommentVNode("v-if", true)
|
|
468
|
+
], 64);
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
//#endregion
|
|
473
|
+
export { _sfc_main as t };
|
package/dist/Outline/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Outline-
|
|
1
|
+
import { t as _sfc_main } from "../Outline-755h-lMP.js";
|
|
2
2
|
export { _sfc_main as Outline };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as useAstryxMessages } from "./context-
|
|
1
|
+
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
2
2
|
import { t as useListFocus } from "./useListFocus-D0iOJl39.js";
|
|
3
3
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, toDisplayString, toRef, unref, watch } from "vue";
|
|
4
4
|
import "../styles/outline.css";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gr as OverflowListItem, Kr as OverflowListProps, Ur as _default, Wr as OverflowListEmits } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as OverflowList, type OverflowListEmits, type OverflowListItem, type OverflowListProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../OverflowList-
|
|
1
|
+
import { t as _sfc_main } from "../OverflowList-NmrSMbxb.js";
|
|
2
2
|
export { _sfc_main as OverflowList };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
2
|
+
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
2
3
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
3
|
-
import { n as resolveNavRoot } from "./link-
|
|
4
|
-
import { t as _sfc_main$2 } from "./NavDisclosure-
|
|
5
|
-
import { n as _sfc_main$3, t as _sfc_main$4 } from "./NavMenuItem-
|
|
4
|
+
import { n as resolveNavRoot } from "./link-C4_WogdF.js";
|
|
5
|
+
import { t as _sfc_main$2 } from "./NavDisclosure-C_fugrQ3.js";
|
|
6
|
+
import { n as _sfc_main$3, t as _sfc_main$4 } from "./NavMenuItem-BvJNsDFC.js";
|
|
6
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
|
|
7
8
|
import "../styles/overflow-list.css";
|
|
8
9
|
//#region src/OverflowList/OverflowMore.vue
|
|
@@ -96,6 +97,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
96
97
|
const props = __props;
|
|
97
98
|
const emit = __emit;
|
|
98
99
|
const messages = useAstryxMessages();
|
|
100
|
+
const linkComponent = useLinkComponent();
|
|
101
|
+
/** 自己的 `as` 优先,其次是 LinkProvider 给的默认链接组件。 */
|
|
102
|
+
const customLink = computed(() => props.as ?? linkComponent.value);
|
|
99
103
|
const gapPx = {
|
|
100
104
|
0: 0,
|
|
101
105
|
.5: 2,
|
|
@@ -172,10 +176,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
172
176
|
}, [renderSlot(_ctx.$slots, "item", {
|
|
173
177
|
item,
|
|
174
178
|
index
|
|
175
|
-
}, () => [(openBlock(), createBlock(resolveDynamicComponent(unref(resolveNavRoot)(item.href, Boolean(item.isDisabled),
|
|
179
|
+
}, () => [(openBlock(), createBlock(resolveDynamicComponent(unref(resolveNavRoot)(item.href, Boolean(item.isDisabled), customLink.value)), {
|
|
176
180
|
class: "astryx-overflow-list__chip",
|
|
177
181
|
href: item.href && !item.isDisabled ? item.href : void 0,
|
|
178
|
-
to: item.href &&
|
|
182
|
+
to: item.href && customLink.value != null && !item.isDisabled ? item.href : void 0,
|
|
179
183
|
type: item.href && !item.isDisabled ? void 0 : "button",
|
|
180
184
|
disabled: item.isDisabled || void 0,
|
|
181
185
|
onClick: ($event) => onSelect(item, $event)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PaginationSlots, i as PaginationSize, n as PaginationEmits, o as PaginationVariant, r as PaginationProps, t as _default } from "../index-
|
|
1
|
+
import { a as PaginationSlots, i as PaginationSize, n as PaginationEmits, o as PaginationVariant, r as PaginationProps, t as _default } from "../index-B9e52paP.js";
|
|
2
2
|
export { _default as Pagination, type PaginationEmits, type PaginationProps, type PaginationSize, type PaginationSlots, type PaginationVariant };
|
package/dist/Pagination/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Pagination-
|
|
1
|
+
import { t as _sfc_main } from "../Pagination-DqwNQFRp.js";
|
|
2
2
|
export { _sfc_main as Pagination };
|