@astryx-vue/core 0.2.5 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-B6UeBCE7.js → AlertDialog-RAVA_cT1.js} +13 -7
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-CeBmB0Q9.js → AppShell-0wTvOo3H.js} +3 -3
- package/dist/Avatar/index.d.ts +2 -2
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-BB4Z4LF1.js → Avatar-pPZ4dI_s.js} +161 -16
- package/dist/AvatarGroup/index.d.ts +2 -2
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup-B--NQSB3.js +98 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-CJe9Im5a.js → Banner-GbGxrqQO.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-o7xw-TOi.js → BottomSheet-JYMB_Ofl.js} +12 -9
- package/dist/{BottomSheet-BV6vfgGu.js → BottomSheet-pt7m4CvC.js} +3 -1
- package/dist/Breadcrumbs/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-D6G7f5WL.js → Breadcrumbs-DIm4figq.js} +22 -11
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DrqeomlE.js → Button-B6Hj_O_s.js} +3 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-DmTeM7PO.js → Calendar-B7vIowKq.js} +2 -2
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/{Card-HAjZQg2s.js → Card-B-I24X9S.js} +2 -0
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CIKrcA2r.js → Carousel-CA8zpD9v.js} +48 -31
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +2 -2
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-BFox3u9D.js → Chat-Bmna9EOA.js} +98 -61
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-25Q8ItH-.js → CheckboxInput-BS9J6edf.js} +2 -2
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BlPf7vPe.js → CheckboxList-CX1i_jVP.js} +8 -7
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-BG-vg9ia.js → Citation-Djgwa0ko.js} +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-Bhds4RRe.js → ClickableCard-DUsC-j03.js} +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-B2pnEOJY.js → CodeBlock-D0BFubut.js} +5 -1
- package/dist/Collapsible/index.d.ts +2 -2
- package/dist/Collapsible/index.js +2 -2
- package/dist/{Collapsible-3YerR-FO.js → Collapsible-Cov3Pyq5.js} +67 -22
- package/dist/CommandPalette/index.d.ts +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-DKgHzmJk.js → CommandPalette-YHsUNg3V.js} +60 -20
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Dv44FFhN.js → ComplexSelector-DWLdKPGI.js} +41 -9
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-BeJO5HYx.js → ContextMenu-Bq9b3Ti5.js} +15 -8
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-DT518j5E.js +841 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Cp6AZfew.js → DateRangeInput-Bqi5tlIA.js} +188 -140
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-B6MPPp76.js → DateTimeInput-A7m2O3bg.js} +43 -12
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +2 -2
- package/dist/{Dialog-CvRplBo-.js → Dialog-BiOSKQso.js} +9 -5
- package/dist/{Dialog-rfUt3y8P.js → Dialog-FGHfDu5M.js} +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-6E9jFdFe.js → DropdownMenu-CoOQVlRp.js} +9 -10
- package/dist/{DropdownMenu--lnUeJEG.js → DropdownMenu-DEb2dSSP.js} +44 -33
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-0RWymQUS.js → EmptyState-C_GH7IV5.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +2 -2
- package/dist/{Field-8zRxzDHE.js → Field-D5gUEGw4.js} +1 -1
- package/dist/FieldInfoTip-Ds-sW_jY.js +98 -0
- package/dist/FieldLabel-BNeXRuGH.js +95 -0
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/FileInput-BpdiO1V8.js +285 -0
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-B9C3LZlS.js → Heading-BnwWEWkp.js} +7 -2
- package/dist/HoverCard/index.d.ts +2 -2
- package/dist/HoverCard/index.js +2 -2
- package/dist/HoverCard-ycY50pRN.js +492 -0
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-BNQuz9W_.js → IconButton-DDNgNl7B.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-BzR6JRZb.js → InputGroup-CA03Smrs.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +2 -0
- package/dist/InternationalizationProvider/index.js +2 -0
- package/dist/InternationalizationProvider-DJay_w3B.js +170 -0
- package/dist/{Item-DrYJL1TG.js → Item-KhFKX9St.js} +15 -6
- package/dist/LayerProvider/index.d.ts +2 -0
- package/dist/LayerProvider/index.js +3 -0
- package/dist/LayerProvider-D9NsQFzL.js +73 -0
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-Bed3kP0M.js → Layout-C6RHllr-.js} +2 -2
- package/dist/{LayoutPanel-C34uOq3e.js → LayoutPanel-DXOsaeQb.js} +4 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Br3o0SyQ.js → Lightbox-DTF9EdTG.js} +2 -2
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +1 -1
- package/dist/{Link-DCZ6922-.js → Link-BqHCtiyt.js} +26 -7
- package/dist/LinkProvider/index.d.ts +2 -0
- package/dist/LinkProvider/index.js +3 -0
- package/dist/LinkProvider-Qsps9_mL.js +17 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-CcRHWuEm.js → ListItem-8RWT8XAG.js} +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-Bz0R3kNj.js → Markdown-CvtN7HnF.js} +4 -4
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-CFaocx6j.js → MetadataList-B-OelQlt.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Dh3uLivq.js → MobileNavToggle-DxGz0xKA.js} +11 -5
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-B95nRSe8.js → MoreMenu-Dlb7MLlW.js} +33 -20
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DuF5TECE.js → MultiSelector-BtAUfQ3t.js} +122 -54
- package/dist/{NavDisclosure-C6sPZ89n.js → NavDisclosure-C_fugrQ3.js} +1 -2
- package/dist/{NavHeadingSurface-Cb3x9iDx.js → NavHeadingSurface-B3yJspSN.js} +18 -11
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +2 -2
- package/dist/{NavItem-FFOisITc.js → NavItem-BBIGSvDj.js} +7 -3
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-ClIgMaxE.js → NavMenu-ThXguZAz.js} +7 -3
- package/dist/{NavMenuItem-E7S8gBh-.js → NavMenuItem-BvJNsDFC.js} +8 -4
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-AZ9x3oja.js +473 -0
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DBUuchi9.js → Outline-755h-lMP.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-aDd_oem0.js → OverflowList-NmrSMbxb.js} +10 -6
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-CNe9F6Fl.js → Pagination-DqwNQFRp.js} +29 -14
- package/dist/Popover/index.d.ts +3 -3
- package/dist/Popover/index.js +2 -2
- package/dist/Popover-DJf8POzL.js +308 -0
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-C6U8Sq1Y.js → PowerSearch-DvjiPqMZ.js} +44 -31
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DF6WZNCI.js → ProgressBar-CVLzdoBK.js} +9 -3
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CBqUPq_L.js → RadioGroup-Bfu6JSNV.js} +60 -24
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CPOJn9Th.js → RadioList-xY1cwLdZ.js} +4 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-DYy0e3v9.js → ResizeHandle-q4nD_586.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-DQDYjnxO.js → ScrollableArea-D4dCJv9I.js} +14 -3
- package/dist/Scrollbars/index.d.ts +2 -0
- package/dist/Scrollbars/index.js +3 -0
- package/dist/Scrollbars-D_93hJYK.js +75 -0
- package/dist/Section/index.d.ts +2 -1
- package/dist/Section/index.js +1 -1
- package/dist/{Section-C48Wqfc7.js → Section-v2QuWBBJ.js} +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Bj5s_tIN.js → SelectableCard-Cku4dRzc.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-5N-hq2nF.js → Selector-DJ2BhUTV.js} +90 -31
- package/dist/SideNav/index.d.ts +2 -2
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-CT9lfspi.js → SideNav-BF8mYDxl.js} +76 -44
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-D8h_RKcF.js → Slider-DWobsPgm.js} +2 -2
- package/dist/Stack/index.d.ts +2 -2
- package/dist/Stack/index.js +2 -2
- package/dist/{Stack-iv52y_Jv.js → Stack-CTsTFfar.js} +18 -3
- package/dist/{Stack-gGcYdOAh.js → Stack-kQlYbbL4.js} +22 -7
- package/dist/StatusDot/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/StatusDot-BPUhMOff.js +45 -0
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-BqhVCgC-.js → Stepper-CE8dHysu.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-SesQzPGZ.js → Switch-DaVPRxvN.js} +2 -2
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-BlzkrObv.js → TabList-DIkK9sgK.js} +100 -23
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +2 -2
- package/dist/{Table-CsdH8fCB.js → Table-fecqnm7P.js} +870 -241
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +1 -1
- package/dist/{Text-DIzZw6FA.js → Text-CV3LmscH.js} +7 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-CPwSytdO.js → TextArea-Ab5Sw60T.js} +24 -14
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-BasnjVvy.js → TextInput-zFT1_qgI.js} +21 -24
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BnQwX1cQ.js → Thumbnail-C3NnJUFG.js} +5 -5
- package/dist/TimeField-CoHDGmsP.js +435 -0
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-C9gptCOK.js → TimeInput-D2k3Ux3p.js} +14 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-kxzQx3tp.js → Timer-avMQk5DN.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-D7bd_nF3.js → Timestamp-xpQKCk0d.js} +7 -7
- package/dist/Toast/index.d.ts +3 -2
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-C2ML-bmi.js → Toast-BuqIZV5z.js} +136 -38
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-BB_I8EdM.js → ToggleButton-B-C-Q7XP.js} +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-D2GsI_Ei.js → Token-DsntTYhQ.js} +33 -17
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/Tokenizer-B5C_qY7t.js +585 -0
- package/dist/Toolbar/index.d.ts +2 -1
- package/dist/Tooltip/index.d.ts +2 -2
- package/dist/Tooltip/index.js +2 -2
- package/dist/Tooltip-C4Vaqd3G.js +320 -0
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-arWFLTBM.js → TopNav-Ciq0l1w7.js} +122 -84
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-C9xvMpJZ.js → TreeList-BUz-KZJd.js} +90 -40
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/Typeahead-JP9RT87x.js +656 -0
- package/dist/{TypeaheadMenu-BEObzonz.js → TypeaheadMenu-DBW6rHeO.js} +133 -44
- package/dist/composables/index.d.ts +3 -3
- package/dist/composables/index.js +12 -7
- package/dist/{composables-CWw6t-RJ.js → composables-CbKx9C1Y.js} +424 -4
- package/dist/context-C_peZbXf.js +16 -0
- package/dist/context-M-er0-Rk.js +99 -0
- package/dist/{context-CPh7kE-a.js → context-iABt_ueM.js} +30 -4
- package/dist/{index-CLmKfnqf.d.ts → index-0QGtSf3r.d.ts} +2 -0
- package/dist/{index-z3uLM1O6.d.ts → index-B1WJxt-n.d.ts} +1 -1
- package/dist/{index-BPwD6aBv.d.ts → index-B3Fomy15.d.ts} +2 -2
- package/dist/{index-CPwzSbQQ.d.ts → index-B42oE_F-.d.ts} +17 -1
- package/dist/{index-EFqQF2Bx.d.ts → index-B4OOtNP8.d.ts} +2 -2
- package/dist/index-B7yhzGUT.d.ts +171 -0
- package/dist/{index-DFbvnBlf.d.ts → index-B9e52paP.d.ts} +15 -2
- package/dist/{index-CEB7Ywvw.d.ts → index-BKnyTWPM.d.ts} +1 -1
- package/dist/{index-CsVS37na.d.ts → index-BNbAJV9C.d.ts} +1 -1
- package/dist/index-BTK7aStw.d.ts +88 -0
- package/dist/{index-BBtJt5_A.d.ts → index-BULhhnGf.d.ts} +1 -1
- package/dist/{index-D7-WTV6I.d.ts → index-BVKivP59.d.ts} +2 -2
- package/dist/{index-BpH4wvsg.d.ts → index-BgT6mH3U.d.ts} +2 -2
- package/dist/{index-Be1czg3M.d.ts → index-BhpAUzUr.d.ts} +47 -7
- package/dist/{index-BcJBLWJ0.d.ts → index-BkjSF265.d.ts} +67 -4
- package/dist/{index-DxR1FChm.d.ts → index-Bu8NA2SD.d.ts} +49 -6
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-C-QpeUlQ.d.ts → index-C2nbK2AA.d.ts} +52 -7
- package/dist/{index-iBLzInje.d.ts → index-C5e-7Obr.d.ts} +1 -1
- package/dist/index-CEv_AvOg.d.ts +17 -0
- package/dist/{index-Dgg0bHVM.d.ts → index-CICeEoZV.d.ts} +2 -1
- package/dist/{index-CB9Srua5.d.ts → index-CL1T2j4y.d.ts} +7 -4
- package/dist/{index-DjMwF8ET.d.ts → index-COgrQZIL.d.ts} +7 -1
- package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
- package/dist/{index-ChWlKHjc.d.ts → index-Cde5JvtX.d.ts} +15 -3
- package/dist/index-CitZGSn0.d.ts +39 -0
- package/dist/index-CkKPMIeX.d.ts +55 -0
- package/dist/{index-FEy8qFSD.d.ts → index-ClNU2Th8.d.ts} +30 -3
- package/dist/{index-kaKBOZSU.d.ts → index-Cq31D3fJ.d.ts} +99 -7
- package/dist/{index-xfkEuGLY.d.ts → index-CqE4Bf3Q.d.ts} +8 -2
- package/dist/{index-DtePJ_w_.d.ts → index-Crp3NFLW.d.ts} +2 -2
- package/dist/{index-BlOIC_AM.d.ts → index-CsNi1I8j.d.ts} +6 -0
- package/dist/index-Cyb9Du5Z.d.ts +76 -0
- package/dist/{index-4TRnFGxv.d.ts → index-D41_xqjs.d.ts} +50 -10
- package/dist/{index-eshFLli0.d.ts → index-D97pQbua.d.ts} +7 -0
- package/dist/{index-c67ca7eJ.d.ts → index-DEQ5cnUV.d.ts} +1 -1
- package/dist/{index-BmAxqw1G.d.ts → index-DG52Bg0W.d.ts} +15 -1
- package/dist/{index-Da7Jm8Ht.d.ts → index-DIXAzTKL.d.ts} +1 -1
- package/dist/{index-BmmdzwT9.d.ts → index-DNA2l1RN.d.ts} +35 -11
- package/dist/{index-B9rqmYxh.d.ts → index-DUaLJO7l.d.ts} +978 -313
- package/dist/index-DVmgNb78.d.ts +143 -0
- package/dist/{index-CDdRQQF3.d.ts → index-DWh2WC8W.d.ts} +18 -6
- package/dist/index-DXpSFlPG.d.ts +78 -0
- package/dist/{index-C_2Z65Rp.d.ts → index-DeQwYJbg.d.ts} +39 -2
- package/dist/{index-JL4auphT.d.ts → index-GI9xIV9l.d.ts} +2 -2
- package/dist/{index-Ctu32CLv.d.ts → index-IBAInumL.d.ts} +93 -56
- package/dist/{index-vizlhXVs.d.ts → index-T2FOcOuI.d.ts} +492 -16
- package/dist/{index-CA6RbRWx.d.ts → index-TXcNH86P.d.ts} +2 -2
- package/dist/{index-BIPc1v82.d.ts → index-TntQsADQ.d.ts} +1 -1
- package/dist/index-fAZaRruV.d.ts +125 -0
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-D5N9ikrS.d.ts → index-hCpxKePE.d.ts} +1 -1
- package/dist/{index-CpiWVbRZ.d.ts → index-i0tNFWfz.d.ts} +3 -1
- package/dist/{index-YmSe1ujk.d.ts → index-lgvUFSCO.d.ts} +1 -1
- package/dist/{index-bvr3WHvs.d.ts → index-xrzJC4wm.d.ts} +1 -1
- package/dist/{index-BK9T1TPZ.d.ts → index-yT1yiiww.d.ts} +28 -9
- package/dist/index.d.ts +80 -76
- package/dist/index.js +127 -113
- package/dist/link-C4_WogdF.js +18 -0
- package/dist/{index-C3GaPqvJ.d.ts → loadCatalog-BGHKG_9N.d.ts} +16 -37
- package/dist/{locale-sLw5Caia.js → loadCatalog-CXKqEB9s.js} +25 -65
- package/dist/locale/index.d.ts +3 -2
- package/dist/locale/index.js +4 -3
- package/dist/locale-DgkZEMTn.js +105 -0
- package/dist/{searchResultMessage-CCnq-_ce.js → searchResultMessage-hXXNOFJP.js} +2 -2
- package/dist/{size-xcIqExkS.js → size-Cpn_wzXi.js} +1 -1
- package/dist/{types-3eXh_5os.d.ts → types-0Q_SJv_F.d.ts} +3 -1
- package/dist/types-BRfVvZTH.d.ts +108 -0
- package/dist/{types-D7QNSqoN.d.ts → types-BTk0WZ0b.d.ts} +8 -0
- package/dist/{types-D_J66aPN.d.ts → types-BnNTzEnd.d.ts} +5 -1
- package/dist/{types-D9nP_X-c.d.ts → types-Ckih2YJi.d.ts} +9 -2
- package/dist/{types-Db3Owy8Q.d.ts → types-OGMYGejX.d.ts} +5 -0
- package/dist/{index-nKlTsNfV.d.ts → types-uFMH9NaM.d.ts} +14 -17
- package/dist/{useAnchoredListbox-BN9LQnon.js → useAnchoredListbox-DwztMNjP.js} +9 -4
- package/dist/useDevWarning-DznOpOHT.js +36 -0
- package/dist/useInputContainer-CpgDe2-4.js +51 -0
- package/dist/useInputStatusIcon-DBOwxV4x.js +41 -0
- package/dist/useInteractiveRole-Cn0Nd5GX.js +25 -0
- package/dist/{useMenuDrillIn-BgjJcY3K.js → useMenuDrillIn-DzKGkTho.js} +1 -1
- package/dist/{useMenuPress-DUmEy4TB.js → useMenuPress-D-FRNrBW.js} +162 -14
- package/dist/useMergedRefs-CfHHlCsn.js +109 -0
- package/dist/useNumberField-4-dIGVed.js +128 -0
- package/dist/{usePositionedLayer-C1NBOsVT.js → usePositionedLayer-Cru9_00b.js} +70 -7
- package/dist/useResizable-DDwPpPe6.d.ts +409 -0
- package/dist/useRestoreFocus-Djw9RUIf.js +153 -0
- package/dist/useScrollbars-C2NJ6Qwq.js +43 -0
- package/dist/{useTimeValue-DWk6oTAZ.js → useTimeValue-6ufHM15W.js} +1 -1
- package/dist/utils-D33VQDnk.js +58 -0
- package/locales/SOURCE.json +1 -1
- package/locales/en.json +445 -1
- package/package.json +19 -2
- package/styles/avatar-group.css +19 -1
- package/styles/avatar.css +34 -13
- package/styles/chat.css +17 -1
- package/styles/dialog-header.css +5 -1
- package/styles/field.css +11 -0
- package/styles/heading.css +9 -0
- package/styles/indicator-focus-ring.css +18 -0
- package/styles/number-input.css +33 -0
- package/styles/pressable.css +44 -0
- package/styles/progress-bar.css +18 -0
- package/styles/scrollbars.css +28 -0
- package/styles/side-nav.css +20 -6
- package/styles/stack.css +4 -2
- package/styles/status-dot.css +18 -0
- package/styles/tab-list.css +38 -2
- package/styles/table.css +66 -6
- package/styles/text.css +9 -0
- package/styles/time-input.css +41 -0
- package/styles/top-nav.css +46 -19
- package/styles/typeahead.css +31 -0
- package/styles.css +2 -0
- package/dist/AvatarGroup-QyzSrpYA.js +0 -60
- package/dist/DateInput-D4XFAEMp.js +0 -743
- package/dist/FieldLabel-DmmJyX7w.js +0 -184
- package/dist/FileInput-DuNwdbAo.js +0 -238
- package/dist/HoverCard-EhbWaGOW.js +0 -443
- package/dist/NumberInput-B4IL3s_8.js +0 -210
- package/dist/Popover-D7zqpFwU.js +0 -215
- package/dist/StatusDot-CaoIapp4.js +0 -27
- package/dist/TimeField-Biiuv0hB.js +0 -214
- package/dist/Tokenizer-rwzamZg4.js +0 -473
- package/dist/Tooltip-C2fh9anJ.js +0 -271
- package/dist/Typeahead-_V11btpv.js +0 -499
- package/dist/index-Blm197N_.d.ts +0 -82
- package/dist/index-Bt7ewoz2.d.ts +0 -119
- package/dist/index-C1HIqW_H.d.ts +0 -38
- package/dist/index-CngORuiq.d.ts +0 -387
- package/dist/index-D4I_obqR.d.ts +0 -58
- package/dist/link-CdcUSxAj.js +0 -12
- package/dist/size-BuTzpgnR.d.ts +0 -14
- package/dist/types-Cp4liug-.d.ts +0 -170
- package/dist/useDismiss-Cj8x_51F.js +0 -62
- package/dist/useNumberField-DL-Radsp.js +0 -49
- package/dist/useResizable-CUoNPmUw.d.ts +0 -72
- package/dist/useRestoreFocus-BvMdXVX9.js +0 -96
- package/dist/utils-C9r3UD_y.js +0 -16
|
@@ -1,743 +0,0 @@
|
|
|
1
|
-
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
2
|
-
import { n as resolveDateSurface, t as resolveDatePresentation } from "./useDatePresentation-C07PnOCw.js";
|
|
3
|
-
import { a as useAstryxLocale, o as useAstryxMessages } from "./context-CPh7kE-a.js";
|
|
4
|
-
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
5
|
-
import { t as _sfc_main$2 } from "./FieldIcon--NTgW5IU.js";
|
|
6
|
-
import { t as _sfc_main$3 } from "./BottomSheet-BV6vfgGu.js";
|
|
7
|
-
import { t as _sfc_main$4 } from "./Icon-bteSId7T.js";
|
|
8
|
-
import { n as isCalendarDateDisabled, r as toCalendarDate, t as _sfc_main$5 } from "./Calendar-DmTeM7PO.js";
|
|
9
|
-
import { t as _sfc_main$6 } from "./Spinner-9cYUCnDy.js";
|
|
10
|
-
import { t as _sfc_main$7 } from "./Field-8zRxzDHE.js";
|
|
11
|
-
import { t as _sfc_main$8 } from "./Popover-D7zqpFwU.js";
|
|
12
|
-
import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
|
|
13
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeProps, onBeforeUnmount, onMounted, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useTemplateRef, watch, withCtx } from "vue";
|
|
14
|
-
import "../styles/date-input.css";
|
|
15
|
-
//#region src/DateInput/NativeDateField.vue
|
|
16
|
-
const _hoisted_1$1 = ["data-status"];
|
|
17
|
-
const _hoisted_2$1 = [
|
|
18
|
-
"data-disabled",
|
|
19
|
-
"data-size",
|
|
20
|
-
"data-status"
|
|
21
|
-
];
|
|
22
|
-
const _hoisted_3$1 = ["disabled", "aria-label"];
|
|
23
|
-
const _hoisted_4$1 = { class: "astryx-date-input-native" };
|
|
24
|
-
const _hoisted_5$1 = [
|
|
25
|
-
"id",
|
|
26
|
-
"min",
|
|
27
|
-
"max",
|
|
28
|
-
"disabled",
|
|
29
|
-
"name",
|
|
30
|
-
"aria-label",
|
|
31
|
-
"aria-labelledby",
|
|
32
|
-
"aria-describedby",
|
|
33
|
-
"aria-invalid",
|
|
34
|
-
"aria-required",
|
|
35
|
-
"aria-busy",
|
|
36
|
-
"title"
|
|
37
|
-
];
|
|
38
|
-
const _hoisted_6$1 = ["data-placeholder"];
|
|
39
|
-
const _hoisted_7$1 = ["aria-label"];
|
|
40
|
-
const _hoisted_8$1 = {
|
|
41
|
-
class: "astryx-date-input-alert",
|
|
42
|
-
role: "alert"
|
|
43
|
-
};
|
|
44
|
-
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
45
|
-
__name: "NativeDateField",
|
|
46
|
-
props: {
|
|
47
|
-
id: {},
|
|
48
|
-
modelValue: { default: null },
|
|
49
|
-
label: {},
|
|
50
|
-
description: {},
|
|
51
|
-
placeholder: {},
|
|
52
|
-
min: {},
|
|
53
|
-
max: {},
|
|
54
|
-
isDateDisabled: {},
|
|
55
|
-
dateConstraints: {},
|
|
56
|
-
name: {},
|
|
57
|
-
isLabelHidden: { type: Boolean },
|
|
58
|
-
isOptional: { type: Boolean },
|
|
59
|
-
isRequired: { type: Boolean },
|
|
60
|
-
labelTooltip: {},
|
|
61
|
-
disabled: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: false
|
|
64
|
-
},
|
|
65
|
-
disabledReason: {},
|
|
66
|
-
isLoading: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: false
|
|
69
|
-
},
|
|
70
|
-
changeAction: {},
|
|
71
|
-
clearable: {
|
|
72
|
-
type: Boolean,
|
|
73
|
-
default: false
|
|
74
|
-
},
|
|
75
|
-
clearLabel: {},
|
|
76
|
-
size: { default: "md" },
|
|
77
|
-
status: {},
|
|
78
|
-
statusVariant: { default: "attached" },
|
|
79
|
-
format: {
|
|
80
|
-
type: [String, Function],
|
|
81
|
-
default: "date_long"
|
|
82
|
-
},
|
|
83
|
-
describedBy: {},
|
|
84
|
-
width: {},
|
|
85
|
-
inputId: {}
|
|
86
|
-
},
|
|
87
|
-
emits: ["update:modelValue", "change"],
|
|
88
|
-
setup(__props, { emit: __emit }) {
|
|
89
|
-
const props = __props;
|
|
90
|
-
const emit = __emit;
|
|
91
|
-
const messages = useAstryxMessages();
|
|
92
|
-
const locale = useAstryxLocale();
|
|
93
|
-
const inputRef = useTemplateRef("input");
|
|
94
|
-
const focused = ref(false);
|
|
95
|
-
const rejected = ref(false);
|
|
96
|
-
const pending = usePendingChange(() => props.changeAction);
|
|
97
|
-
const busy = computed(() => props.isLoading || pending.busy.value);
|
|
98
|
-
const locked = computed(() => props.disabled || busy.value);
|
|
99
|
-
function toIso(date) {
|
|
100
|
-
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
101
|
-
const day = String(date.getDate()).padStart(2, "0");
|
|
102
|
-
return `${date.getFullYear()}-${month}-${day}`;
|
|
103
|
-
}
|
|
104
|
-
function allowed(date) {
|
|
105
|
-
return !isCalendarDateDisabled(toCalendarDate(date), {
|
|
106
|
-
min: props.min,
|
|
107
|
-
max: props.max,
|
|
108
|
-
isDateDisabled: props.isDateDisabled,
|
|
109
|
-
dateConstraints: props.dateConstraints
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
const nativeValue = computed(() => props.modelValue ? toIso(props.modelValue) : "");
|
|
113
|
-
const overlay = computed(() => {
|
|
114
|
-
if (!props.modelValue) return props.placeholder ?? messages.value.dateInput.placeholder;
|
|
115
|
-
const iso = toIso(props.modelValue);
|
|
116
|
-
if (typeof props.format === "function") return props.format(iso);
|
|
117
|
-
if (props.format === "system_date") return iso;
|
|
118
|
-
return formatInstant(props.modelValue, props.format ?? "date_long", locale.value);
|
|
119
|
-
});
|
|
120
|
-
const statusType = computed(() => {
|
|
121
|
-
const status = props.status;
|
|
122
|
-
if (status == null || status === "default") return void 0;
|
|
123
|
-
return typeof status === "string" ? status : status.type;
|
|
124
|
-
});
|
|
125
|
-
const statusValue = computed(() => {
|
|
126
|
-
const status = props.status;
|
|
127
|
-
if (status == null || status === "default") return void 0;
|
|
128
|
-
if (typeof status === "string") return { type: status };
|
|
129
|
-
return status;
|
|
130
|
-
});
|
|
131
|
-
const minIso = computed(() => props.min ? toIso(props.min) : void 0);
|
|
132
|
-
const maxIso = computed(() => props.max ? toIso(props.max) : void 0);
|
|
133
|
-
function write(value) {
|
|
134
|
-
const input = inputRef.value;
|
|
135
|
-
if (input && input.value !== value) input.value = value;
|
|
136
|
-
}
|
|
137
|
-
function commit(value) {
|
|
138
|
-
if (locked.value) return;
|
|
139
|
-
emit("update:modelValue", value);
|
|
140
|
-
emit("change", value);
|
|
141
|
-
pending.run(value);
|
|
142
|
-
}
|
|
143
|
-
function read(raw) {
|
|
144
|
-
if (locked.value) return;
|
|
145
|
-
if (!raw) {
|
|
146
|
-
rejected.value = false;
|
|
147
|
-
if (props.modelValue) commit(null);
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(raw);
|
|
151
|
-
if (!match) return;
|
|
152
|
-
const date = new Date(Number(match[1]), Number(match[2]) - 1, Number(match[3]));
|
|
153
|
-
if (!allowed(date)) {
|
|
154
|
-
rejected.value = true;
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
rejected.value = false;
|
|
158
|
-
if (!props.modelValue || toIso(props.modelValue) !== raw) commit(date);
|
|
159
|
-
}
|
|
160
|
-
function onNative() {
|
|
161
|
-
read(inputRef.value?.value ?? "");
|
|
162
|
-
}
|
|
163
|
-
function onFocus() {
|
|
164
|
-
focused.value = true;
|
|
165
|
-
}
|
|
166
|
-
function onBlur() {
|
|
167
|
-
focused.value = false;
|
|
168
|
-
rejected.value = false;
|
|
169
|
-
read(inputRef.value?.value ?? "");
|
|
170
|
-
write(nativeValue.value);
|
|
171
|
-
}
|
|
172
|
-
function openPicker() {
|
|
173
|
-
if (locked.value) return;
|
|
174
|
-
const input = inputRef.value;
|
|
175
|
-
if (!input) return;
|
|
176
|
-
input.focus();
|
|
177
|
-
if (typeof input.showPicker === "function") try {
|
|
178
|
-
input.showPicker();
|
|
179
|
-
} catch {}
|
|
180
|
-
}
|
|
181
|
-
function onClear(event) {
|
|
182
|
-
event.stopPropagation();
|
|
183
|
-
commit(null);
|
|
184
|
-
write("");
|
|
185
|
-
}
|
|
186
|
-
onMounted(() => {
|
|
187
|
-
write(nativeValue.value);
|
|
188
|
-
const input = inputRef.value;
|
|
189
|
-
input?.addEventListener("input", onNative);
|
|
190
|
-
input?.addEventListener("change", onNative);
|
|
191
|
-
});
|
|
192
|
-
onBeforeUnmount(() => {
|
|
193
|
-
const input = inputRef.value;
|
|
194
|
-
input?.removeEventListener("input", onNative);
|
|
195
|
-
input?.removeEventListener("change", onNative);
|
|
196
|
-
});
|
|
197
|
-
watch(nativeValue, (value) => {
|
|
198
|
-
if (!focused.value) write(value);
|
|
199
|
-
});
|
|
200
|
-
return (_ctx, _cache) => {
|
|
201
|
-
return openBlock(), createBlock(_sfc_main$7, {
|
|
202
|
-
label: __props.label || unref(messages).dateInput.dialogLabel,
|
|
203
|
-
"input-id": __props.inputId,
|
|
204
|
-
description: __props.description,
|
|
205
|
-
width: __props.width,
|
|
206
|
-
"is-label-hidden": __props.isLabelHidden || !__props.label,
|
|
207
|
-
"is-disabled": locked.value,
|
|
208
|
-
"is-optional": __props.isOptional,
|
|
209
|
-
"is-required": __props.isRequired,
|
|
210
|
-
"label-tooltip": __props.labelTooltip,
|
|
211
|
-
status: statusValue.value,
|
|
212
|
-
"status-variant": __props.statusVariant
|
|
213
|
-
}, {
|
|
214
|
-
default: withCtx((field) => [createElementVNode("div", {
|
|
215
|
-
class: normalizeClass(["astryx-date-input", [statusType.value ? `status-${statusType.value}` : void 0, `size-${__props.size}`]]),
|
|
216
|
-
"data-status": statusType.value,
|
|
217
|
-
"data-presentation": "native"
|
|
218
|
-
}, [createElementVNode("div", {
|
|
219
|
-
class: "astryx-date-input-wrapper",
|
|
220
|
-
"data-disabled": locked.value ? "true" : void 0,
|
|
221
|
-
"data-size": __props.size,
|
|
222
|
-
"data-status": statusType.value
|
|
223
|
-
}, [
|
|
224
|
-
createElementVNode("button", {
|
|
225
|
-
type: "button",
|
|
226
|
-
class: "astryx-date-input-toggle",
|
|
227
|
-
disabled: locked.value,
|
|
228
|
-
"aria-label": unref(messages).dateInput.openCalendar,
|
|
229
|
-
tabindex: "-1",
|
|
230
|
-
onClick: openPicker
|
|
231
|
-
}, [createVNode(_sfc_main$4, {
|
|
232
|
-
icon: "calendar",
|
|
233
|
-
size: "sm"
|
|
234
|
-
})], 8, _hoisted_3$1),
|
|
235
|
-
createElementVNode("span", _hoisted_4$1, [createElementVNode("input", {
|
|
236
|
-
id: __props.inputId,
|
|
237
|
-
ref: "input",
|
|
238
|
-
class: "astryx-date-input-field",
|
|
239
|
-
type: "date",
|
|
240
|
-
min: minIso.value,
|
|
241
|
-
max: maxIso.value,
|
|
242
|
-
disabled: locked.value,
|
|
243
|
-
name: __props.name,
|
|
244
|
-
"aria-label": __props.label ? void 0 : unref(messages).dateInput.dialogLabel,
|
|
245
|
-
"aria-labelledby": __props.label ? field.labelId : void 0,
|
|
246
|
-
"aria-describedby": [__props.describedBy, field.describedBy].filter(Boolean).join(" ") || void 0,
|
|
247
|
-
"aria-invalid": statusType.value === "error" || rejected.value ? "true" : void 0,
|
|
248
|
-
"aria-required": __props.isRequired || void 0,
|
|
249
|
-
"aria-busy": busy.value || void 0,
|
|
250
|
-
title: __props.disabledReason,
|
|
251
|
-
autocomplete: "off",
|
|
252
|
-
onFocus,
|
|
253
|
-
onBlur
|
|
254
|
-
}, null, 40, _hoisted_5$1), createElementVNode("span", {
|
|
255
|
-
class: "astryx-date-input-overlay",
|
|
256
|
-
"data-placeholder": __props.modelValue ? void 0 : "true",
|
|
257
|
-
"aria-hidden": "true"
|
|
258
|
-
}, toDisplayString(overlay.value), 9, _hoisted_6$1)]),
|
|
259
|
-
__props.clearable && __props.modelValue && !locked.value ? (openBlock(), createElementBlock("button", {
|
|
260
|
-
key: 0,
|
|
261
|
-
type: "button",
|
|
262
|
-
class: "astryx-date-input-clear",
|
|
263
|
-
"aria-label": __props.clearLabel || unref(messages).dateInput.clear(__props.label),
|
|
264
|
-
tabindex: "-1",
|
|
265
|
-
onClick: onClear
|
|
266
|
-
}, [createVNode(_sfc_main$4, {
|
|
267
|
-
icon: "close",
|
|
268
|
-
size: "sm"
|
|
269
|
-
})], 8, _hoisted_7$1)) : createCommentVNode("v-if", true),
|
|
270
|
-
busy.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
271
|
-
key: 1,
|
|
272
|
-
size: "sm",
|
|
273
|
-
"aria-label": unref(messages).dateInput.loading
|
|
274
|
-
}, null, 8, ["aria-label"])) : statusType.value && __props.statusVariant !== "tooltip" ? (openBlock(), createBlock(_sfc_main$2, {
|
|
275
|
-
key: 2,
|
|
276
|
-
type: statusType.value
|
|
277
|
-
}, null, 8, ["type"])) : createCommentVNode("v-if", true)
|
|
278
|
-
], 8, _hoisted_2$1), createElementVNode("div", _hoisted_8$1, toDisplayString(rejected.value ? unref(messages).dateInput.invalidDate : ""), 1)], 10, _hoisted_1$1)]),
|
|
279
|
-
_: 1
|
|
280
|
-
}, 8, [
|
|
281
|
-
"label",
|
|
282
|
-
"input-id",
|
|
283
|
-
"description",
|
|
284
|
-
"width",
|
|
285
|
-
"is-label-hidden",
|
|
286
|
-
"is-disabled",
|
|
287
|
-
"is-optional",
|
|
288
|
-
"is-required",
|
|
289
|
-
"label-tooltip",
|
|
290
|
-
"status",
|
|
291
|
-
"status-variant"
|
|
292
|
-
]);
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
});
|
|
296
|
-
//#endregion
|
|
297
|
-
//#region src/DateInput/DateInput.vue
|
|
298
|
-
const _hoisted_1 = ["data-status", "data-presentation"];
|
|
299
|
-
const _hoisted_2 = [
|
|
300
|
-
"data-disabled",
|
|
301
|
-
"data-size",
|
|
302
|
-
"data-status"
|
|
303
|
-
];
|
|
304
|
-
const _hoisted_3 = {
|
|
305
|
-
key: 0,
|
|
306
|
-
class: "astryx-date-input-prefix"
|
|
307
|
-
};
|
|
308
|
-
const _hoisted_4 = ["disabled", "aria-label"];
|
|
309
|
-
const _hoisted_5 = [
|
|
310
|
-
"id",
|
|
311
|
-
"value",
|
|
312
|
-
"placeholder",
|
|
313
|
-
"disabled",
|
|
314
|
-
"readonly",
|
|
315
|
-
"inputmode",
|
|
316
|
-
"aria-label",
|
|
317
|
-
"aria-labelledby",
|
|
318
|
-
"aria-describedby",
|
|
319
|
-
"aria-invalid",
|
|
320
|
-
"aria-required",
|
|
321
|
-
"aria-busy",
|
|
322
|
-
"aria-controls",
|
|
323
|
-
"aria-expanded",
|
|
324
|
-
"title"
|
|
325
|
-
];
|
|
326
|
-
const _hoisted_6 = ["aria-label"];
|
|
327
|
-
const _hoisted_7 = {
|
|
328
|
-
key: 2,
|
|
329
|
-
class: "astryx-date-input-suffix"
|
|
330
|
-
};
|
|
331
|
-
const _hoisted_8 = ["id"];
|
|
332
|
-
const _hoisted_9 = ["id"];
|
|
333
|
-
const _hoisted_10 = ["name", "value"];
|
|
334
|
-
const TOUCH_POINTER_QUERY = "(pointer: coarse)";
|
|
335
|
-
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
336
|
-
name: "AstryxDateInput",
|
|
337
|
-
__name: "DateInput",
|
|
338
|
-
props: {
|
|
339
|
-
id: {},
|
|
340
|
-
describedBy: {},
|
|
341
|
-
modelValue: { default: null },
|
|
342
|
-
placeholder: {},
|
|
343
|
-
min: {},
|
|
344
|
-
max: {},
|
|
345
|
-
isDateDisabled: {},
|
|
346
|
-
dateConstraints: {},
|
|
347
|
-
name: {},
|
|
348
|
-
label: {},
|
|
349
|
-
description: {},
|
|
350
|
-
isLabelHidden: { type: Boolean },
|
|
351
|
-
isOptional: { type: Boolean },
|
|
352
|
-
isRequired: { type: Boolean },
|
|
353
|
-
labelTooltip: {},
|
|
354
|
-
disabled: {
|
|
355
|
-
type: Boolean,
|
|
356
|
-
default: false
|
|
357
|
-
},
|
|
358
|
-
disabledReason: {},
|
|
359
|
-
isLoading: {
|
|
360
|
-
type: Boolean,
|
|
361
|
-
default: false
|
|
362
|
-
},
|
|
363
|
-
changeAction: {},
|
|
364
|
-
clearable: {
|
|
365
|
-
type: Boolean,
|
|
366
|
-
default: false
|
|
367
|
-
},
|
|
368
|
-
clearLabel: {},
|
|
369
|
-
size: { default: "md" },
|
|
370
|
-
status: {},
|
|
371
|
-
statusVariant: { default: "attached" },
|
|
372
|
-
format: {
|
|
373
|
-
type: [String, Function],
|
|
374
|
-
default: "date_long"
|
|
375
|
-
},
|
|
376
|
-
presentation: {},
|
|
377
|
-
nativePicker: {},
|
|
378
|
-
numberOfMonths: { default: 1 },
|
|
379
|
-
weekStartsOn: {},
|
|
380
|
-
width: {}
|
|
381
|
-
},
|
|
382
|
-
emits: ["update:modelValue", "change"],
|
|
383
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
384
|
-
const props = __props;
|
|
385
|
-
const emit = __emit;
|
|
386
|
-
const PassThrough = defineComponent({
|
|
387
|
-
name: "DateInputPassThrough",
|
|
388
|
-
setup(_, { slots }) {
|
|
389
|
-
return () => slots.default?.({});
|
|
390
|
-
}
|
|
391
|
-
});
|
|
392
|
-
const generatedId = `astryx-date-input-${useId()}`;
|
|
393
|
-
const inputId = computed(() => props.id ?? generatedId);
|
|
394
|
-
const popupId = computed(() => `${inputId.value}-popup`);
|
|
395
|
-
const messages = useAstryxMessages();
|
|
396
|
-
const locale = useAstryxLocale();
|
|
397
|
-
const isCoarsePointer = useMediaQuery(TOUCH_POINTER_QUERY);
|
|
398
|
-
const resolvedPlaceholder = computed(() => props.placeholder ?? messages.value.dateInput.placeholder);
|
|
399
|
-
const resolvedClearLabel = computed(() => props.clearLabel ?? messages.value.dateInput.clear(props.label));
|
|
400
|
-
const dialogLabel = computed(() => props.label || messages.value.dateInput.dialogLabel);
|
|
401
|
-
const inputRef = useTemplateRef("inputRef");
|
|
402
|
-
const isOpen = ref(false);
|
|
403
|
-
const inputValue = ref("");
|
|
404
|
-
const pending = usePendingChange(() => props.changeAction);
|
|
405
|
-
const busy = computed(() => props.isLoading || pending.busy.value);
|
|
406
|
-
const locked = computed(() => props.disabled || busy.value);
|
|
407
|
-
const policy = computed(() => resolveDatePresentation(props.presentation, props.nativePicker));
|
|
408
|
-
const surface = computed(() => resolveDateSurface(policy.value, isCoarsePointer.value));
|
|
409
|
-
const useSheet = computed(() => surface.value === "sheet");
|
|
410
|
-
const popupWidth = computed(() => props.numberOfMonths === 2 ? "min(36rem, calc(100vw - 16px))" : 280);
|
|
411
|
-
function allowed(date) {
|
|
412
|
-
return !isCalendarDateDisabled(toCalendarDate(date), {
|
|
413
|
-
min: props.min,
|
|
414
|
-
max: props.max,
|
|
415
|
-
isDateDisabled: props.isDateDisabled,
|
|
416
|
-
dateConstraints: props.dateConstraints
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
function commit(value) {
|
|
420
|
-
if (locked.value) return;
|
|
421
|
-
emit("update:modelValue", value);
|
|
422
|
-
emit("change", value);
|
|
423
|
-
pending.run(value);
|
|
424
|
-
}
|
|
425
|
-
const modelValueRef = computed({
|
|
426
|
-
get: () => props.modelValue,
|
|
427
|
-
set: (value) => commit(value)
|
|
428
|
-
});
|
|
429
|
-
function toIso(date) {
|
|
430
|
-
return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")}`;
|
|
431
|
-
}
|
|
432
|
-
function formatCommitted(date) {
|
|
433
|
-
if (!date) return "";
|
|
434
|
-
const iso = toIso(date);
|
|
435
|
-
const format = props.format;
|
|
436
|
-
if (typeof format === "function") return format(iso);
|
|
437
|
-
if (format === "system_date") return iso;
|
|
438
|
-
return formatInstant(date, format, locale.value);
|
|
439
|
-
}
|
|
440
|
-
function parseDate(str) {
|
|
441
|
-
if (!str.trim()) return null;
|
|
442
|
-
const match = str.match(/^(\d{4})-(\d{1,2})-(\d{1,2})$/);
|
|
443
|
-
if (match) {
|
|
444
|
-
const [, year, month, day] = match;
|
|
445
|
-
const date = new Date(Number(year), Number(month) - 1, Number(day));
|
|
446
|
-
if (!Number.isNaN(date.getTime()) && date.getFullYear() === Number(year) && date.getMonth() === Number(month) - 1 && date.getDate() === Number(day)) return date;
|
|
447
|
-
}
|
|
448
|
-
return null;
|
|
449
|
-
}
|
|
450
|
-
function syncDisplayValue() {
|
|
451
|
-
inputValue.value = formatCommitted(props.modelValue);
|
|
452
|
-
}
|
|
453
|
-
watch(() => [
|
|
454
|
-
props.modelValue,
|
|
455
|
-
props.format,
|
|
456
|
-
locale.value
|
|
457
|
-
], syncDisplayValue, { immediate: true });
|
|
458
|
-
function resolvedStatus(status) {
|
|
459
|
-
if (status == null || status === "default") return void 0;
|
|
460
|
-
if (typeof status === "string") return { type: status };
|
|
461
|
-
return status;
|
|
462
|
-
}
|
|
463
|
-
const statusValue = computed(() => resolvedStatus(props.status));
|
|
464
|
-
const statusType = computed(() => statusValue.value?.type);
|
|
465
|
-
const showsField = computed(() => {
|
|
466
|
-
if (props.isLabelHidden && !props.description && !statusValue.value?.message) return false;
|
|
467
|
-
return Boolean(props.label || props.description || statusValue.value?.message);
|
|
468
|
-
});
|
|
469
|
-
const shell = computed(() => showsField.value ? _sfc_main$7 : PassThrough);
|
|
470
|
-
const fieldBindings = computed(() => showsField.value ? {
|
|
471
|
-
label: props.label ?? "",
|
|
472
|
-
inputId: inputId.value,
|
|
473
|
-
description: props.description,
|
|
474
|
-
isLabelHidden: props.isLabelHidden || !props.label,
|
|
475
|
-
isDisabled: locked.value,
|
|
476
|
-
isOptional: props.isOptional,
|
|
477
|
-
isRequired: props.isRequired,
|
|
478
|
-
labelTooltip: props.labelTooltip,
|
|
479
|
-
width: props.width,
|
|
480
|
-
status: statusValue.value,
|
|
481
|
-
statusVariant: props.statusVariant
|
|
482
|
-
} : {});
|
|
483
|
-
const toggleLabel = computed(() => isOpen.value ? messages.value.dateInput.closeCalendar : messages.value.dateInput.openCalendar);
|
|
484
|
-
function describedBy(fieldIds) {
|
|
485
|
-
return [props.describedBy, fieldIds].filter(Boolean).join(" ") || void 0;
|
|
486
|
-
}
|
|
487
|
-
function onInput(event) {
|
|
488
|
-
if (useSheet.value) return;
|
|
489
|
-
const target = event.target;
|
|
490
|
-
const value = target.value.trim();
|
|
491
|
-
inputValue.value = target.value;
|
|
492
|
-
const parsed = parseDate(value);
|
|
493
|
-
if (parsed && allowed(parsed)) modelValueRef.value = parsed;
|
|
494
|
-
}
|
|
495
|
-
function onBlur() {
|
|
496
|
-
if (!parseDate(inputValue.value.trim())) syncDisplayValue();
|
|
497
|
-
}
|
|
498
|
-
function onOpenChange(open) {
|
|
499
|
-
if (!useSheet.value) isOpen.value = open;
|
|
500
|
-
}
|
|
501
|
-
function openCalendar() {
|
|
502
|
-
if (!locked.value) isOpen.value = true;
|
|
503
|
-
}
|
|
504
|
-
function onToggleClick() {
|
|
505
|
-
if (useSheet.value) openCalendar();
|
|
506
|
-
}
|
|
507
|
-
function onInputKeyDown(event) {
|
|
508
|
-
if (locked.value || isOpen.value) return;
|
|
509
|
-
if (event.key === "ArrowDown" || event.altKey && event.key === "ArrowDown") {
|
|
510
|
-
event.preventDefault();
|
|
511
|
-
openCalendar();
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
function onCalendarChange(date) {
|
|
515
|
-
modelValueRef.value = date;
|
|
516
|
-
isOpen.value = false;
|
|
517
|
-
inputRef.value?.blur();
|
|
518
|
-
}
|
|
519
|
-
function onClear(event) {
|
|
520
|
-
event.stopPropagation();
|
|
521
|
-
modelValueRef.value = null;
|
|
522
|
-
inputValue.value = "";
|
|
523
|
-
isOpen.value = false;
|
|
524
|
-
}
|
|
525
|
-
__expose({
|
|
526
|
-
inputValue,
|
|
527
|
-
isOpen,
|
|
528
|
-
onCalendarChange,
|
|
529
|
-
onClear,
|
|
530
|
-
parseDate
|
|
531
|
-
});
|
|
532
|
-
syncDisplayValue();
|
|
533
|
-
return (_ctx, _cache) => {
|
|
534
|
-
return surface.value === "native" ? (openBlock(), createBlock(_sfc_main$1, {
|
|
535
|
-
key: 0,
|
|
536
|
-
"input-id": inputId.value,
|
|
537
|
-
"model-value": __props.modelValue,
|
|
538
|
-
label: __props.label,
|
|
539
|
-
description: __props.description,
|
|
540
|
-
placeholder: resolvedPlaceholder.value,
|
|
541
|
-
min: __props.min,
|
|
542
|
-
max: __props.max,
|
|
543
|
-
"is-date-disabled": __props.isDateDisabled,
|
|
544
|
-
"date-constraints": __props.dateConstraints,
|
|
545
|
-
name: __props.name,
|
|
546
|
-
"is-label-hidden": __props.isLabelHidden,
|
|
547
|
-
"is-optional": __props.isOptional,
|
|
548
|
-
"is-required": __props.isRequired,
|
|
549
|
-
"label-tooltip": __props.labelTooltip,
|
|
550
|
-
disabled: __props.disabled,
|
|
551
|
-
"disabled-reason": __props.disabledReason,
|
|
552
|
-
"is-loading": busy.value,
|
|
553
|
-
clearable: __props.clearable,
|
|
554
|
-
"clear-label": resolvedClearLabel.value,
|
|
555
|
-
size: __props.size,
|
|
556
|
-
status: __props.status,
|
|
557
|
-
"status-variant": __props.statusVariant,
|
|
558
|
-
format: __props.format,
|
|
559
|
-
"described-by": props.describedBy,
|
|
560
|
-
width: __props.width,
|
|
561
|
-
"onUpdate:modelValue": commit
|
|
562
|
-
}, null, 8, [
|
|
563
|
-
"input-id",
|
|
564
|
-
"model-value",
|
|
565
|
-
"label",
|
|
566
|
-
"description",
|
|
567
|
-
"placeholder",
|
|
568
|
-
"min",
|
|
569
|
-
"max",
|
|
570
|
-
"is-date-disabled",
|
|
571
|
-
"date-constraints",
|
|
572
|
-
"name",
|
|
573
|
-
"is-label-hidden",
|
|
574
|
-
"is-optional",
|
|
575
|
-
"is-required",
|
|
576
|
-
"label-tooltip",
|
|
577
|
-
"disabled",
|
|
578
|
-
"disabled-reason",
|
|
579
|
-
"is-loading",
|
|
580
|
-
"clearable",
|
|
581
|
-
"clear-label",
|
|
582
|
-
"size",
|
|
583
|
-
"status",
|
|
584
|
-
"status-variant",
|
|
585
|
-
"format",
|
|
586
|
-
"described-by",
|
|
587
|
-
"width"
|
|
588
|
-
])) : (openBlock(), createBlock(resolveDynamicComponent(shell.value), normalizeProps(mergeProps({ key: 1 }, fieldBindings.value)), {
|
|
589
|
-
default: withCtx((field) => [createElementVNode("div", {
|
|
590
|
-
class: normalizeClass(["astryx-date-input", [statusType.value ? `status-${statusType.value}` : void 0, `size-${props.size}`]]),
|
|
591
|
-
"data-status": statusType.value,
|
|
592
|
-
"data-presentation": useSheet.value ? "bottom-sheet" : "popover"
|
|
593
|
-
}, [
|
|
594
|
-
createVNode(_sfc_main$8, {
|
|
595
|
-
"is-open": useSheet.value ? false : isOpen.value,
|
|
596
|
-
"is-enabled": !useSheet.value && !locked.value,
|
|
597
|
-
placement: "below",
|
|
598
|
-
alignment: "start",
|
|
599
|
-
padding: 0,
|
|
600
|
-
width: popupWidth.value,
|
|
601
|
-
"has-close-button": false,
|
|
602
|
-
"is-modal": false,
|
|
603
|
-
"has-auto-focus": true,
|
|
604
|
-
role: "dialog",
|
|
605
|
-
label: dialogLabel.value,
|
|
606
|
-
onOpenChange
|
|
607
|
-
}, {
|
|
608
|
-
content: withCtx(() => [!useSheet.value ? (openBlock(), createElementBlock("div", {
|
|
609
|
-
key: 0,
|
|
610
|
-
id: popupId.value
|
|
611
|
-
}, [createVNode(_sfc_main$5, {
|
|
612
|
-
"model-value": props.modelValue,
|
|
613
|
-
min: props.min,
|
|
614
|
-
max: props.max,
|
|
615
|
-
"is-date-disabled": props.isDateDisabled,
|
|
616
|
-
"date-constraints": props.dateConstraints,
|
|
617
|
-
"number-of-months": props.numberOfMonths,
|
|
618
|
-
"week-starts-on": props.weekStartsOn,
|
|
619
|
-
"onUpdate:modelValue": onCalendarChange
|
|
620
|
-
}, null, 8, [
|
|
621
|
-
"model-value",
|
|
622
|
-
"min",
|
|
623
|
-
"max",
|
|
624
|
-
"is-date-disabled",
|
|
625
|
-
"date-constraints",
|
|
626
|
-
"number-of-months",
|
|
627
|
-
"week-starts-on"
|
|
628
|
-
])], 8, _hoisted_8)) : createCommentVNode("v-if", true)]),
|
|
629
|
-
default: withCtx(() => [createElementVNode("div", {
|
|
630
|
-
class: "astryx-date-input-wrapper",
|
|
631
|
-
"data-disabled": locked.value ? "true" : void 0,
|
|
632
|
-
"data-size": props.size,
|
|
633
|
-
"data-status": statusType.value
|
|
634
|
-
}, [
|
|
635
|
-
_ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_3, [renderSlot(_ctx.$slots, "prefix")])) : createCommentVNode("v-if", true),
|
|
636
|
-
createElementVNode("button", {
|
|
637
|
-
type: "button",
|
|
638
|
-
class: "astryx-date-input-toggle",
|
|
639
|
-
disabled: locked.value,
|
|
640
|
-
"aria-label": toggleLabel.value,
|
|
641
|
-
onClick: onToggleClick
|
|
642
|
-
}, [createVNode(_sfc_main$4, {
|
|
643
|
-
icon: "calendar",
|
|
644
|
-
size: "sm"
|
|
645
|
-
})], 8, _hoisted_4),
|
|
646
|
-
createElementVNode("input", {
|
|
647
|
-
id: inputId.value,
|
|
648
|
-
ref_key: "inputRef",
|
|
649
|
-
ref: inputRef,
|
|
650
|
-
type: "text",
|
|
651
|
-
class: "astryx-date-input-field",
|
|
652
|
-
role: "combobox",
|
|
653
|
-
value: inputValue.value,
|
|
654
|
-
placeholder: resolvedPlaceholder.value,
|
|
655
|
-
disabled: locked.value,
|
|
656
|
-
readonly: useSheet.value,
|
|
657
|
-
inputmode: useSheet.value ? "none" : void 0,
|
|
658
|
-
"aria-label": showsField.value ? void 0 : props.label,
|
|
659
|
-
"aria-labelledby": showsField.value ? field?.labelId : void 0,
|
|
660
|
-
"aria-describedby": describedBy(field?.describedBy),
|
|
661
|
-
"aria-invalid": statusType.value === "error" ? "true" : void 0,
|
|
662
|
-
"aria-required": __props.isRequired || void 0,
|
|
663
|
-
"aria-busy": busy.value || void 0,
|
|
664
|
-
"aria-controls": popupId.value,
|
|
665
|
-
"aria-expanded": isOpen.value,
|
|
666
|
-
"aria-haspopup": "dialog",
|
|
667
|
-
title: props.disabledReason,
|
|
668
|
-
autocomplete: "off",
|
|
669
|
-
onInput,
|
|
670
|
-
onBlur,
|
|
671
|
-
onClick: openCalendar,
|
|
672
|
-
onKeydown: onInputKeyDown
|
|
673
|
-
}, null, 40, _hoisted_5),
|
|
674
|
-
props.clearable && props.modelValue && !locked.value ? (openBlock(), createElementBlock("button", {
|
|
675
|
-
key: 1,
|
|
676
|
-
type: "button",
|
|
677
|
-
class: "astryx-date-input-clear",
|
|
678
|
-
"aria-label": resolvedClearLabel.value,
|
|
679
|
-
tabindex: "-1",
|
|
680
|
-
onClick: onClear
|
|
681
|
-
}, [createVNode(_sfc_main$4, {
|
|
682
|
-
icon: "close",
|
|
683
|
-
size: "sm"
|
|
684
|
-
})], 8, _hoisted_6)) : _ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_7, [renderSlot(_ctx.$slots, "suffix")])) : createCommentVNode("v-if", true),
|
|
685
|
-
busy.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
686
|
-
key: 3,
|
|
687
|
-
class: "astryx-date-input-spinner",
|
|
688
|
-
size: "sm",
|
|
689
|
-
"aria-label": unref(messages).dateInput.loading
|
|
690
|
-
}, null, 8, ["aria-label"])) : statusType.value && props.statusVariant !== "tooltip" ? (openBlock(), createBlock(_sfc_main$2, {
|
|
691
|
-
key: 4,
|
|
692
|
-
type: statusType.value
|
|
693
|
-
}, null, 8, ["type"])) : createCommentVNode("v-if", true)
|
|
694
|
-
], 8, _hoisted_2)]),
|
|
695
|
-
_: 2
|
|
696
|
-
}, 1032, [
|
|
697
|
-
"is-open",
|
|
698
|
-
"is-enabled",
|
|
699
|
-
"width",
|
|
700
|
-
"label"
|
|
701
|
-
]),
|
|
702
|
-
useSheet.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
703
|
-
key: 0,
|
|
704
|
-
"is-open": isOpen.value,
|
|
705
|
-
"onUpdate:isOpen": _cache[0] || (_cache[0] = ($event) => isOpen.value = $event),
|
|
706
|
-
label: dialogLabel.value,
|
|
707
|
-
height: "hug",
|
|
708
|
-
padding: 0
|
|
709
|
-
}, {
|
|
710
|
-
default: withCtx(() => [createElementVNode("div", { id: popupId.value }, [createVNode(_sfc_main$5, {
|
|
711
|
-
"model-value": props.modelValue,
|
|
712
|
-
min: props.min,
|
|
713
|
-
max: props.max,
|
|
714
|
-
"is-date-disabled": props.isDateDisabled,
|
|
715
|
-
"date-constraints": props.dateConstraints,
|
|
716
|
-
"number-of-months": props.numberOfMonths,
|
|
717
|
-
"week-starts-on": props.weekStartsOn,
|
|
718
|
-
"onUpdate:modelValue": onCalendarChange
|
|
719
|
-
}, null, 8, [
|
|
720
|
-
"model-value",
|
|
721
|
-
"min",
|
|
722
|
-
"max",
|
|
723
|
-
"is-date-disabled",
|
|
724
|
-
"date-constraints",
|
|
725
|
-
"number-of-months",
|
|
726
|
-
"week-starts-on"
|
|
727
|
-
])], 8, _hoisted_9)]),
|
|
728
|
-
_: 1
|
|
729
|
-
}, 8, ["is-open", "label"])) : createCommentVNode("v-if", true),
|
|
730
|
-
props.name ? (openBlock(), createElementBlock("input", {
|
|
731
|
-
key: 1,
|
|
732
|
-
type: "hidden",
|
|
733
|
-
name: props.name,
|
|
734
|
-
value: props.modelValue ? toIso(props.modelValue) : ""
|
|
735
|
-
}, null, 8, _hoisted_10)) : createCommentVNode("v-if", true)
|
|
736
|
-
], 10, _hoisted_1)]),
|
|
737
|
-
_: 3
|
|
738
|
-
}, 16));
|
|
739
|
-
};
|
|
740
|
-
}
|
|
741
|
-
});
|
|
742
|
-
//#endregion
|
|
743
|
-
export { _sfc_main as t };
|