@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,435 @@
|
|
|
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 { c as useCoarsePointer, i as parseDisplayTime, n as formatISOTime, o as resolveTimeSurface, r as isTimeInRange, s as shiftTime, t as formatDisplayTime } from "./useTimeValue-6ufHM15W.js";
|
|
5
|
+
import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-Cru9_00b.js";
|
|
6
|
+
import { t as _sfc_main$3 } from "./FieldIcon--NTgW5IU.js";
|
|
7
|
+
import { t as _sfc_main$4 } from "./IconButton-DDNgNl7B.js";
|
|
8
|
+
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
9
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
10
|
+
import { t as _sfc_main$5 } from "./Icon-bteSId7T.js";
|
|
11
|
+
import { t as _sfc_main$6 } from "./Spinner-9cYUCnDy.js";
|
|
12
|
+
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, nextTick, normalizeClass, normalizeStyle, openBlock, ref, renderList, shallowRef, toDisplayString, unref, useId, useModel, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
13
|
+
import "../styles/bordered-control.css";
|
|
14
|
+
import "../styles/time-input.css";
|
|
15
|
+
//#region src/TimeInput/TimeField.vue
|
|
16
|
+
const _hoisted_1 = [
|
|
17
|
+
"data-size",
|
|
18
|
+
"data-status",
|
|
19
|
+
"data-disabled",
|
|
20
|
+
"data-loading",
|
|
21
|
+
"data-options-open"
|
|
22
|
+
];
|
|
23
|
+
const _hoisted_2 = [
|
|
24
|
+
"id",
|
|
25
|
+
"value",
|
|
26
|
+
"min",
|
|
27
|
+
"max",
|
|
28
|
+
"step",
|
|
29
|
+
"disabled",
|
|
30
|
+
"readonly",
|
|
31
|
+
"aria-disabled",
|
|
32
|
+
"aria-busy",
|
|
33
|
+
"aria-label",
|
|
34
|
+
"aria-labelledby",
|
|
35
|
+
"aria-describedby",
|
|
36
|
+
"aria-required",
|
|
37
|
+
"aria-invalid"
|
|
38
|
+
];
|
|
39
|
+
const _hoisted_3 = [
|
|
40
|
+
"id",
|
|
41
|
+
"value",
|
|
42
|
+
"placeholder",
|
|
43
|
+
"disabled",
|
|
44
|
+
"readonly",
|
|
45
|
+
"aria-disabled",
|
|
46
|
+
"aria-busy",
|
|
47
|
+
"role",
|
|
48
|
+
"aria-label",
|
|
49
|
+
"aria-labelledby",
|
|
50
|
+
"aria-describedby",
|
|
51
|
+
"aria-required",
|
|
52
|
+
"aria-invalid",
|
|
53
|
+
"aria-expanded",
|
|
54
|
+
"aria-controls",
|
|
55
|
+
"aria-autocomplete",
|
|
56
|
+
"aria-activedescendant"
|
|
57
|
+
];
|
|
58
|
+
const _hoisted_4 = ["aria-label"];
|
|
59
|
+
const _hoisted_5 = [
|
|
60
|
+
"id",
|
|
61
|
+
"aria-selected",
|
|
62
|
+
"data-option-index",
|
|
63
|
+
"onClick"
|
|
64
|
+
];
|
|
65
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
66
|
+
name: "AstryxTimeField",
|
|
67
|
+
inheritAttrs: false,
|
|
68
|
+
__name: "TimeField",
|
|
69
|
+
props: /*@__PURE__*/ mergeModels({
|
|
70
|
+
label: {},
|
|
71
|
+
inputId: {},
|
|
72
|
+
describedBy: {},
|
|
73
|
+
labelledBy: {},
|
|
74
|
+
placeholder: {},
|
|
75
|
+
hourFormat: { default: "12h" },
|
|
76
|
+
hasSeconds: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: false
|
|
79
|
+
},
|
|
80
|
+
increment: { default: 1 },
|
|
81
|
+
min: {},
|
|
82
|
+
max: {},
|
|
83
|
+
presentation: {},
|
|
84
|
+
nativePicker: {},
|
|
85
|
+
hasClear: {
|
|
86
|
+
type: Boolean,
|
|
87
|
+
default: false
|
|
88
|
+
},
|
|
89
|
+
clearLabel: {},
|
|
90
|
+
size: { default: "md" },
|
|
91
|
+
isDisabled: { type: Boolean },
|
|
92
|
+
isReadOnly: { type: Boolean },
|
|
93
|
+
isRequired: { type: Boolean },
|
|
94
|
+
isLoading: { type: Boolean },
|
|
95
|
+
loadingLabel: {},
|
|
96
|
+
optionInterval: {},
|
|
97
|
+
optionsLabel: {},
|
|
98
|
+
disabledMessage: {},
|
|
99
|
+
status: {}
|
|
100
|
+
}, {
|
|
101
|
+
"modelValue": { default: null },
|
|
102
|
+
"modelModifiers": {}
|
|
103
|
+
}),
|
|
104
|
+
emits: ["update:modelValue"],
|
|
105
|
+
setup(__props) {
|
|
106
|
+
const props = __props;
|
|
107
|
+
const model = useModel(__props, "modelValue");
|
|
108
|
+
const messages = useAstryxMessages();
|
|
109
|
+
const coarse = useCoarsePointer();
|
|
110
|
+
const focused = shallowRef(false);
|
|
111
|
+
const draft = shallowRef("");
|
|
112
|
+
const container = useTemplateRef("container");
|
|
113
|
+
const optionsRef = useTemplateRef("options");
|
|
114
|
+
useScrollbars(optionsRef);
|
|
115
|
+
const generatedId = `astryx-time-field-${useId()}`;
|
|
116
|
+
const listboxId = `${props.inputId ?? generatedId}-options`;
|
|
117
|
+
const disabledMessageId = `${props.inputId ?? generatedId}-disabled`;
|
|
118
|
+
const busy = computed(() => props.isLoading === true);
|
|
119
|
+
const locked = computed(() => props.isDisabled || props.isReadOnly || busy.value);
|
|
120
|
+
const disabledMessage = computed(() => props.disabledMessage?.trim() || void 0);
|
|
121
|
+
const showsDisabledMessage = computed(() => (props.isDisabled || busy.value) && disabledMessage.value != null);
|
|
122
|
+
const disabledTooltip = useButtonTooltip(showsDisabledMessage);
|
|
123
|
+
const surface = computed(() => resolveTimeSurface({
|
|
124
|
+
presentation: props.presentation,
|
|
125
|
+
nativePicker: props.nativePicker,
|
|
126
|
+
coarse: coarse.value,
|
|
127
|
+
hasSeconds: props.hasSeconds,
|
|
128
|
+
increment: props.increment,
|
|
129
|
+
needsTypedField: props.optionInterval != null
|
|
130
|
+
}));
|
|
131
|
+
const clearLabel = computed(() => props.clearLabel ?? messages.value.timeInput.clear(props.label));
|
|
132
|
+
const formatHint = computed(() => props.hourFormat === "24h" || props.hasSeconds ? messages.value.timeInput.formatHint24 : messages.value.timeInput.formatHint12);
|
|
133
|
+
watch(() => model.value, (value) => {
|
|
134
|
+
if (!focused.value) draft.value = value ? formatDisplayTime(value, props.hourFormat, props.hasSeconds) : "";
|
|
135
|
+
}, { immediate: true });
|
|
136
|
+
const shownPlaceholder = computed(() => {
|
|
137
|
+
if (focused.value && !draft.value) return formatHint.value;
|
|
138
|
+
return props.placeholder ?? messages.value.timeInput.placeholder;
|
|
139
|
+
});
|
|
140
|
+
function commit(value) {
|
|
141
|
+
model.value = value;
|
|
142
|
+
draft.value = value ? formatDisplayTime(value, props.hourFormat, props.hasSeconds) : "";
|
|
143
|
+
}
|
|
144
|
+
function commitText(text) {
|
|
145
|
+
if (!text.trim()) {
|
|
146
|
+
commit(null);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
const parsed = parseDisplayTime(text, props.hasSeconds);
|
|
150
|
+
if (parsed == null || !isTimeInRange(parsed, props.min, props.max)) {
|
|
151
|
+
draft.value = model.value ? formatDisplayTime(model.value, props.hourFormat, props.hasSeconds) : "";
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
commit(parsed);
|
|
155
|
+
}
|
|
156
|
+
function onInput(event) {
|
|
157
|
+
draft.value = event.target.value;
|
|
158
|
+
}
|
|
159
|
+
function onNativeInput(event) {
|
|
160
|
+
const value = event.target.value;
|
|
161
|
+
if (!value) {
|
|
162
|
+
commit(null);
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
const parsed = parseDisplayTime(value, props.hasSeconds);
|
|
166
|
+
if (parsed == null || !isTimeInRange(parsed, props.min, props.max)) return;
|
|
167
|
+
commit(parsed);
|
|
168
|
+
}
|
|
169
|
+
const timeOptions = computed(() => {
|
|
170
|
+
const interval = props.optionInterval;
|
|
171
|
+
if (interval == null || interval <= 0) return [];
|
|
172
|
+
const options = [];
|
|
173
|
+
for (let minutes = 0; minutes < 1440; minutes += interval) {
|
|
174
|
+
const value = formatISOTime({
|
|
175
|
+
hours: Math.floor(minutes / 60),
|
|
176
|
+
minutes: minutes % 60,
|
|
177
|
+
seconds: 0
|
|
178
|
+
}, props.hasSeconds);
|
|
179
|
+
if (isTimeInRange(value, props.min, props.max)) options.push(value);
|
|
180
|
+
}
|
|
181
|
+
return options;
|
|
182
|
+
});
|
|
183
|
+
const showsOptions = computed(() => timeOptions.value.length > 0);
|
|
184
|
+
const resolvedOptionsLabel = computed(() => props.optionsLabel ?? `${props.label ?? messages.value.timeInput.placeholder} options`);
|
|
185
|
+
const isOptionsOpen = shallowRef(false);
|
|
186
|
+
const activeOption = shallowRef(-1);
|
|
187
|
+
const optionsPosition = usePositionedLayer({
|
|
188
|
+
anchor: container,
|
|
189
|
+
layer: optionsRef,
|
|
190
|
+
isOpen: isOptionsOpen,
|
|
191
|
+
placement: computed(() => "below"),
|
|
192
|
+
alignment: computed(() => "start"),
|
|
193
|
+
gap: 4
|
|
194
|
+
});
|
|
195
|
+
const optionsStyle = computed(() => ({
|
|
196
|
+
top: `${optionsPosition.position.value.top}px`,
|
|
197
|
+
left: `${optionsPosition.position.value.left}px`
|
|
198
|
+
}));
|
|
199
|
+
useDismiss({
|
|
200
|
+
container: optionsRef,
|
|
201
|
+
trigger: container,
|
|
202
|
+
isEnabled: isOptionsOpen,
|
|
203
|
+
enableEscape: ref(false),
|
|
204
|
+
onDismiss: () => closeOptions()
|
|
205
|
+
});
|
|
206
|
+
function onKeydown(event) {
|
|
207
|
+
if (event.key === "Escape" && isOptionsOpen.value) {
|
|
208
|
+
event.preventDefault();
|
|
209
|
+
closeOptions();
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
if (locked.value) return;
|
|
213
|
+
if (showsOptions.value && (event.key === "ArrowUp" || event.key === "ArrowDown")) {
|
|
214
|
+
event.preventDefault();
|
|
215
|
+
if (!isOptionsOpen.value) openOptions();
|
|
216
|
+
else moveActive(event.key === "ArrowDown" ? 1 : -1);
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
if (event.key === "Enter" && isOptionsOpen.value) {
|
|
220
|
+
event.preventDefault();
|
|
221
|
+
if (activeOption.value >= 0) selectOption(activeOption.value);
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
if (event.key !== "ArrowUp" && event.key !== "ArrowDown") return;
|
|
225
|
+
event.preventDefault();
|
|
226
|
+
const delta = event.key === "ArrowUp" ? props.increment : -props.increment;
|
|
227
|
+
const next = shiftTime(model.value || "00:00", delta, props.hasSeconds);
|
|
228
|
+
if (isTimeInRange(next, props.min, props.max)) commit(next);
|
|
229
|
+
}
|
|
230
|
+
function onBlur() {
|
|
231
|
+
focused.value = false;
|
|
232
|
+
disabledTooltip.onBlur();
|
|
233
|
+
if (surface.value === "text") commitText(draft.value);
|
|
234
|
+
}
|
|
235
|
+
function onInputFocus(event) {
|
|
236
|
+
focused.value = true;
|
|
237
|
+
disabledTooltip.onFocus(event);
|
|
238
|
+
}
|
|
239
|
+
function resolvedDescribedBy() {
|
|
240
|
+
return [props.describedBy, showsDisabledMessage.value ? disabledMessageId : void 0].filter(Boolean).join(" ") || void 0;
|
|
241
|
+
}
|
|
242
|
+
function clear() {
|
|
243
|
+
if (locked.value) return;
|
|
244
|
+
commit(null);
|
|
245
|
+
}
|
|
246
|
+
function optionIndexFor(value) {
|
|
247
|
+
if (value == null) return -1;
|
|
248
|
+
return timeOptions.value.indexOf(value);
|
|
249
|
+
}
|
|
250
|
+
function openOptions() {
|
|
251
|
+
if (locked.value || !showsOptions.value || isOptionsOpen.value) return;
|
|
252
|
+
activeOption.value = optionIndexFor(model.value);
|
|
253
|
+
isOptionsOpen.value = true;
|
|
254
|
+
nextTick(() => scrollActiveOption());
|
|
255
|
+
}
|
|
256
|
+
function closeOptions() {
|
|
257
|
+
isOptionsOpen.value = false;
|
|
258
|
+
activeOption.value = -1;
|
|
259
|
+
}
|
|
260
|
+
function scrollActiveOption() {
|
|
261
|
+
const layer = optionsRef.value;
|
|
262
|
+
const index = activeOption.value;
|
|
263
|
+
if (!layer || index < 0) return;
|
|
264
|
+
const option = layer.querySelector(`[data-option-index="${index}"]`);
|
|
265
|
+
if (!option) return;
|
|
266
|
+
const layerRect = layer.getBoundingClientRect();
|
|
267
|
+
const optionRect = option.getBoundingClientRect();
|
|
268
|
+
if (optionRect.top < layerRect.top) layer.scrollTop -= layerRect.top - optionRect.top;
|
|
269
|
+
else if (optionRect.bottom > layerRect.bottom) layer.scrollTop += optionRect.bottom - layerRect.bottom;
|
|
270
|
+
}
|
|
271
|
+
function moveActive(step) {
|
|
272
|
+
const total = timeOptions.value.length;
|
|
273
|
+
if (total === 0) return;
|
|
274
|
+
const current = activeOption.value < 0 ? step > 0 ? -1 : total : activeOption.value;
|
|
275
|
+
activeOption.value = (current + step + total) % total;
|
|
276
|
+
nextTick(() => scrollActiveOption());
|
|
277
|
+
}
|
|
278
|
+
function selectOption(index) {
|
|
279
|
+
const value = timeOptions.value[index];
|
|
280
|
+
if (value == null || locked.value) return;
|
|
281
|
+
commit(value);
|
|
282
|
+
closeOptions();
|
|
283
|
+
focusInput();
|
|
284
|
+
}
|
|
285
|
+
function focusInput() {
|
|
286
|
+
container.value?.querySelector("input")?.focus({ preventScroll: true });
|
|
287
|
+
}
|
|
288
|
+
function onControlClick(event) {
|
|
289
|
+
if (locked.value) return;
|
|
290
|
+
const target = event.target;
|
|
291
|
+
if (target instanceof Element && target.closest("button")) return;
|
|
292
|
+
openOptions();
|
|
293
|
+
}
|
|
294
|
+
function onInputClick() {
|
|
295
|
+
openOptions();
|
|
296
|
+
}
|
|
297
|
+
return (_ctx, _cache) => {
|
|
298
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
299
|
+
createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events, vue-a11y/no-static-element-interactions -- 点控件空白处把焦点交给输入框,键盘交互由输入框自己处理。 "),
|
|
300
|
+
createElementVNode("div", {
|
|
301
|
+
ref_key: "container",
|
|
302
|
+
ref: container,
|
|
303
|
+
class: "astryx-time-input astryx-bordered-control",
|
|
304
|
+
"data-size": __props.size,
|
|
305
|
+
"data-status": __props.status?.type,
|
|
306
|
+
"data-disabled": __props.isDisabled || void 0,
|
|
307
|
+
"data-loading": busy.value || void 0,
|
|
308
|
+
"data-options-open": isOptionsOpen.value || void 0,
|
|
309
|
+
onPointerenter: _cache[0] || (_cache[0] = (...args) => unref(disabledTooltip).onPointerEnter && unref(disabledTooltip).onPointerEnter(...args)),
|
|
310
|
+
onPointerleave: _cache[1] || (_cache[1] = (...args) => unref(disabledTooltip).onPointerLeave && unref(disabledTooltip).onPointerLeave(...args)),
|
|
311
|
+
onClick: onControlClick
|
|
312
|
+
}, [
|
|
313
|
+
createVNode(_sfc_main$5, {
|
|
314
|
+
class: "astryx-time-input-icon",
|
|
315
|
+
icon: "clock",
|
|
316
|
+
size: "sm"
|
|
317
|
+
}),
|
|
318
|
+
surface.value === "native" ? (openBlock(), createElementBlock("input", {
|
|
319
|
+
key: 0,
|
|
320
|
+
id: __props.inputId,
|
|
321
|
+
class: "astryx-time-input-control",
|
|
322
|
+
type: "time",
|
|
323
|
+
value: model.value ?? "",
|
|
324
|
+
min: __props.min,
|
|
325
|
+
max: __props.max,
|
|
326
|
+
step: __props.hasSeconds ? 1 : __props.increment * 60,
|
|
327
|
+
disabled: __props.isDisabled && !showsDisabledMessage.value,
|
|
328
|
+
readonly: __props.isReadOnly || busy.value || showsDisabledMessage.value,
|
|
329
|
+
"aria-disabled": showsDisabledMessage.value || void 0,
|
|
330
|
+
"aria-busy": busy.value || void 0,
|
|
331
|
+
"aria-label": __props.labelledBy ? void 0 : __props.label,
|
|
332
|
+
"aria-labelledby": __props.labelledBy,
|
|
333
|
+
"aria-describedby": resolvedDescribedBy(),
|
|
334
|
+
"aria-required": __props.isRequired || void 0,
|
|
335
|
+
"aria-invalid": __props.status?.type === "error" || void 0,
|
|
336
|
+
onInput: onNativeInput
|
|
337
|
+
}, null, 40, _hoisted_2)) : (openBlock(), createElementBlock("input", {
|
|
338
|
+
key: 1,
|
|
339
|
+
id: __props.inputId,
|
|
340
|
+
class: "astryx-time-input-control",
|
|
341
|
+
type: "text",
|
|
342
|
+
inputmode: "text",
|
|
343
|
+
autocomplete: "off",
|
|
344
|
+
value: draft.value,
|
|
345
|
+
placeholder: shownPlaceholder.value,
|
|
346
|
+
disabled: __props.isDisabled && !showsDisabledMessage.value,
|
|
347
|
+
readonly: __props.isReadOnly || busy.value || showsDisabledMessage.value,
|
|
348
|
+
"aria-disabled": showsDisabledMessage.value || void 0,
|
|
349
|
+
"aria-busy": busy.value || void 0,
|
|
350
|
+
role: showsOptions.value ? "combobox" : void 0,
|
|
351
|
+
"aria-label": __props.labelledBy ? void 0 : __props.label,
|
|
352
|
+
"aria-labelledby": __props.labelledBy,
|
|
353
|
+
"aria-describedby": resolvedDescribedBy(),
|
|
354
|
+
"aria-required": __props.isRequired || void 0,
|
|
355
|
+
"aria-invalid": __props.status?.type === "error" || void 0,
|
|
356
|
+
"aria-expanded": showsOptions.value ? isOptionsOpen.value : void 0,
|
|
357
|
+
"aria-controls": showsOptions.value ? listboxId : void 0,
|
|
358
|
+
"aria-autocomplete": showsOptions.value ? "list" : void 0,
|
|
359
|
+
"aria-activedescendant": isOptionsOpen.value && activeOption.value >= 0 ? `${listboxId}-option-${activeOption.value}` : void 0,
|
|
360
|
+
onInput,
|
|
361
|
+
onFocus: onInputFocus,
|
|
362
|
+
onBlur,
|
|
363
|
+
onKeydown,
|
|
364
|
+
onClick: onInputClick
|
|
365
|
+
}, null, 40, _hoisted_3)),
|
|
366
|
+
__props.hasClear && model.value && !locked.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
367
|
+
key: 2,
|
|
368
|
+
class: "astryx-input-clear-button",
|
|
369
|
+
variant: "ghost",
|
|
370
|
+
size: "sm",
|
|
371
|
+
label: clearLabel.value,
|
|
372
|
+
onClick: clear
|
|
373
|
+
}, {
|
|
374
|
+
default: withCtx(() => [createVNode(_sfc_main$3, { type: "clear" })]),
|
|
375
|
+
_: 1
|
|
376
|
+
}, 8, ["label"])) : createCommentVNode("v-if", true),
|
|
377
|
+
busy.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
378
|
+
key: 3,
|
|
379
|
+
size: "sm",
|
|
380
|
+
"aria-label": __props.loadingLabel ?? unref(messages).timeInput.loading
|
|
381
|
+
}, null, 8, ["aria-label"])) : __props.status ? (openBlock(), createBlock(_sfc_main$3, {
|
|
382
|
+
key: 4,
|
|
383
|
+
type: __props.status.type
|
|
384
|
+
}, null, 8, ["type"])) : createCommentVNode("v-if", true)
|
|
385
|
+
], 40, _hoisted_1),
|
|
386
|
+
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
387
|
+
key: 0,
|
|
388
|
+
id: disabledMessageId
|
|
389
|
+
}, {
|
|
390
|
+
default: withCtx(() => [createTextVNode(toDisplayString(disabledMessage.value), 1)]),
|
|
391
|
+
_: 1
|
|
392
|
+
})) : createCommentVNode("v-if", true),
|
|
393
|
+
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
394
|
+
key: 1,
|
|
395
|
+
id: `${disabledMessageId}-tooltip`,
|
|
396
|
+
anchor: container.value,
|
|
397
|
+
open: unref(disabledTooltip).isOpen.value,
|
|
398
|
+
text: disabledMessage.value ?? "",
|
|
399
|
+
onPointerEnter: unref(disabledTooltip).onTooltipPointerEnter,
|
|
400
|
+
onPointerLeave: unref(disabledTooltip).onTooltipPointerLeave
|
|
401
|
+
}, null, 8, [
|
|
402
|
+
"id",
|
|
403
|
+
"anchor",
|
|
404
|
+
"open",
|
|
405
|
+
"text",
|
|
406
|
+
"onPointerEnter",
|
|
407
|
+
"onPointerLeave"
|
|
408
|
+
])) : createCommentVNode("v-if", true),
|
|
409
|
+
(openBlock(), createBlock(Teleport, { to: "body" }, [withDirectives(createElementVNode("div", {
|
|
410
|
+
id: listboxId,
|
|
411
|
+
ref: "options",
|
|
412
|
+
class: "astryx-time-input-options",
|
|
413
|
+
role: "listbox",
|
|
414
|
+
"aria-label": resolvedOptionsLabel.value,
|
|
415
|
+
style: normalizeStyle(optionsStyle.value),
|
|
416
|
+
tabindex: "-1"
|
|
417
|
+
}, [createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events -- 选项不进 Tab 序,键盘由输入框代管。 "), (openBlock(true), createElementBlock(Fragment, null, renderList(timeOptions.value, (option, index) => {
|
|
418
|
+
return openBlock(), createElementBlock("div", {
|
|
419
|
+
id: `${listboxId}-option-${index}`,
|
|
420
|
+
key: option,
|
|
421
|
+
class: normalizeClass(["astryx-time-input-option", { "is-active": index === activeOption.value }]),
|
|
422
|
+
role: "option",
|
|
423
|
+
"aria-selected": option === model.value ? "true" : "false",
|
|
424
|
+
"data-option-index": index,
|
|
425
|
+
tabindex: "-1",
|
|
426
|
+
onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {}, ["prevent"])),
|
|
427
|
+
onClick: ($event) => selectOption(index)
|
|
428
|
+
}, toDisplayString(unref(formatDisplayTime)(option, __props.hourFormat, __props.hasSeconds)), 43, _hoisted_5);
|
|
429
|
+
}), 128))], 12, _hoisted_4), [[vShow, isOptionsOpen.value]])]))
|
|
430
|
+
], 64);
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
//#endregion
|
|
435
|
+
export { _sfc_main as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { at as
|
|
1
|
+
import { at as TimeInputSize, it as TimeInputProps, nt as _default, rt as TimeInputEmits } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as TimeInput, type TimeInputEmits, type TimeInputProps, type TimeInputSize };
|
package/dist/TimeInput/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../TimeInput-
|
|
1
|
+
import { t as _sfc_main } from "../TimeInput-D2k3Ux3p.js";
|
|
2
2
|
export { _sfc_main as TimeInput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Field-
|
|
2
|
-
import { t as _sfc_main$2 } from "./TimeField-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Field-D5gUEGw4.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "./TimeField-CoHDGmsP.js";
|
|
3
3
|
import { computed, createBlock, createVNode, defineComponent, mergeModels, openBlock, useId, useModel, withCtx } from "vue";
|
|
4
4
|
//#region src/TimeInput/TimeInput.vue
|
|
5
5
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -31,6 +31,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
31
31
|
isRequired: { type: Boolean },
|
|
32
32
|
isOptional: { type: Boolean },
|
|
33
33
|
isLabelHidden: { type: Boolean },
|
|
34
|
+
labelTooltip: {},
|
|
35
|
+
isLoading: { type: Boolean },
|
|
36
|
+
loadingLabel: {},
|
|
37
|
+
disabledMessage: {},
|
|
34
38
|
status: {},
|
|
35
39
|
statusVariant: { default: "attached" },
|
|
36
40
|
width: {}
|
|
@@ -54,6 +58,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
54
58
|
"is-disabled": __props.isDisabled,
|
|
55
59
|
"is-optional": __props.isOptional,
|
|
56
60
|
"is-required": __props.isRequired,
|
|
61
|
+
"label-tooltip": __props.labelTooltip,
|
|
57
62
|
status: __props.status,
|
|
58
63
|
"status-variant": __props.statusVariant
|
|
59
64
|
}, {
|
|
@@ -78,6 +83,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
78
83
|
"is-disabled": __props.isDisabled,
|
|
79
84
|
"is-read-only": __props.isReadOnly,
|
|
80
85
|
"is-required": __props.isRequired && !__props.isOptional,
|
|
86
|
+
"is-loading": __props.isLoading,
|
|
87
|
+
"loading-label": __props.loadingLabel,
|
|
88
|
+
"disabled-message": __props.disabledMessage,
|
|
81
89
|
status: __props.status
|
|
82
90
|
}, null, 8, [
|
|
83
91
|
"modelValue",
|
|
@@ -99,6 +107,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
99
107
|
"is-disabled",
|
|
100
108
|
"is-read-only",
|
|
101
109
|
"is-required",
|
|
110
|
+
"is-loading",
|
|
111
|
+
"loading-label",
|
|
112
|
+
"disabled-message",
|
|
102
113
|
"status"
|
|
103
114
|
])]),
|
|
104
115
|
_: 1
|
|
@@ -111,6 +122,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
111
122
|
"is-disabled",
|
|
112
123
|
"is-optional",
|
|
113
124
|
"is-required",
|
|
125
|
+
"label-tooltip",
|
|
114
126
|
"status",
|
|
115
127
|
"status-variant"
|
|
116
128
|
]);
|
package/dist/Timer/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TimerFormat, i as TimerType, n as TimerColor, o as TimerPresentation, r as TimerProps, s as getPresentation, t as _default } from "../index-
|
|
1
|
+
import { a as TimerFormat, i as TimerType, n as TimerColor, o as TimerPresentation, r as TimerProps, s as getPresentation, t as _default } from "../index-xrzJC4wm.js";
|
|
2
2
|
export { _default as Timer, type TimerColor, type TimerFormat, type TimerPresentation, type TimerProps, type TimerType, getPresentation };
|
package/dist/Timer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getPresentation, t as _sfc_main } from "../Timer-
|
|
1
|
+
import { n as getPresentation, t as _sfc_main } from "../Timer-avMQk5DN.js";
|
|
2
2
|
export { _sfc_main as Timer, getPresentation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Text-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Text-CV3LmscH.js";
|
|
2
2
|
import { computed, createBlock, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, useTemplateRef, watch, withCtx } from "vue";
|
|
3
3
|
import "../styles/timer.css";
|
|
4
4
|
//#region src/Timer/format.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { type FormatInstantOptions, type InstantFormat, _default as Timestamp, type TimestampColor, type TimestampFormat, type TimestampProps, type TimestampTooltipEntry, type TimestampTooltipFormat, type TimestampTooltipLine, formatInstant, formatRelativeTime, formatTooltipLines };
|
package/dist/Timestamp/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as formatInstant } from "../formatInstant-BDWUIxS7.js";
|
|
2
|
-
import { n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main } from "../Timestamp-
|
|
2
|
+
import { n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main } from "../Timestamp-xpQKCk0d.js";
|
|
3
3
|
export { _sfc_main as Timestamp, formatInstant, formatRelativeTime, formatTooltipLines };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as _sfc_main$3 } from "./
|
|
1
|
+
import { t as _sfc_main$2 } from "./IconButton-DDNgNl7B.js";
|
|
2
|
+
import { a as useAstryxLocale, o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
3
|
+
import { t as _sfc_main$3 } from "./Text-CV3LmscH.js";
|
|
4
4
|
import { t as _sfc_main$4 } from "./Icon-bteSId7T.js";
|
|
5
|
-
import { t as _sfc_main$5 } from "./HoverCard-
|
|
5
|
+
import { t as _sfc_main$5 } from "./HoverCard-ycY50pRN.js";
|
|
6
6
|
import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, renderList, renderSlot, toDisplayString, unref, watch, withCtx } from "vue";
|
|
8
8
|
import "../styles/timestamp.css";
|
|
@@ -119,7 +119,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
119
119
|
}, [
|
|
120
120
|
hasLabel.value ? (openBlock(), createElementBlock("dt", _hoisted_2$1, toDisplayString(line.label ?? ""), 1)) : createCommentVNode("v-if", true),
|
|
121
121
|
createElementVNode("dd", _hoisted_3, toDisplayString(line.value), 1),
|
|
122
|
-
hasAction.value ? (openBlock(), createElementBlock("div", _hoisted_4, [line.isCopyable ? (openBlock(), createBlock(_sfc_main$
|
|
122
|
+
hasAction.value ? (openBlock(), createElementBlock("div", _hoisted_4, [line.isCopyable ? (openBlock(), createBlock(_sfc_main$2, {
|
|
123
123
|
key: 0,
|
|
124
124
|
variant: "ghost",
|
|
125
125
|
size: "sm",
|
|
@@ -286,7 +286,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
286
286
|
lines: lines.value,
|
|
287
287
|
label: unref(messages).timestamp.detailsLabel
|
|
288
288
|
}, {
|
|
289
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
289
|
+
default: withCtx(() => [createVNode(_sfc_main$3, {
|
|
290
290
|
class: normalizeClass(["astryx-timestamp", _ctx.$attrs.class]),
|
|
291
291
|
style: normalizeStyle(_ctx.$attrs.style),
|
|
292
292
|
type: __props.type,
|
|
@@ -314,7 +314,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
314
314
|
"data-format"
|
|
315
315
|
])]),
|
|
316
316
|
_: 1
|
|
317
|
-
}, 8, ["lines", "label"])) : valid.value ? (openBlock(), createBlock(_sfc_main$
|
|
317
|
+
}, 8, ["lines", "label"])) : valid.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
318
318
|
key: 1,
|
|
319
319
|
class: normalizeClass(["astryx-timestamp", _ctx.$attrs.class]),
|
|
320
320
|
style: normalizeStyle(_ctx.$attrs.style),
|
package/dist/Toast/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
|
|
1
|
+
import { a as ToastOptions, c as ToastType, i as ToastItem, n as ToastContentScope, o as ToastPlacement, r as ToastDismissReason, s as ToastSlots, t as ToastCollisionBehavior } from "../types-BRfVvZTH.js";
|
|
2
|
+
import { n as _default$1, r as _default, t as useToast } from "../index-CkKPMIeX.js";
|
|
3
|
+
export { _default as Toast, type ToastCollisionBehavior, type ToastContentScope, type ToastDismissReason, type ToastItem, type ToastOptions, type ToastPlacement, type ToastSlots, type ToastType, _default$1 as ToastViewport, useToast };
|
package/dist/Toast/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main$1, r as _sfc_main, t as useToast } from "../Toast-
|
|
1
|
+
import { n as _sfc_main$1, r as _sfc_main, t as useToast } from "../Toast-BuqIZV5z.js";
|
|
2
2
|
export { _sfc_main as Toast, _sfc_main$1 as ToastViewport, useToast };
|