@astryx-vue/core 0.3.0 → 0.4.1
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/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-RAVA_cT1.js → AlertDialog-C2inDZWG.js} +5 -5
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-0wTvOo3H.js → AppShell-awAKicsc.js} +3 -3
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-pPZ4dI_s.js → Avatar-DXBjJ88C.js} +47 -34
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-B--NQSB3.js → AvatarGroup-kpAeKLNq.js} +57 -13
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-GbGxrqQO.js → Banner-BdvuyzAe.js} +71 -35
- package/dist/Blockquote/index.js +1 -1
- package/dist/Blockquote-DRoKdcxZ.js +27 -0
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-pt7m4CvC.js → BottomSheet-B4sc3F1S.js} +286 -140
- package/dist/{BottomSheet-JYMB_Ofl.js → BottomSheet-m54uCMJN.js} +20 -4
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/Breadcrumbs-D4ZzHEB0.js +223 -0
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-B6Hj_O_s.js → Button-ONOoHdkg.js} +25 -15
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/ButtonGroup-DnkSZ9a5.js +87 -0
- package/dist/{ButtonTooltip-nWWrth8j.js → ButtonTooltip-CNKOQHYR.js} +7 -4
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-B7vIowKq.js → Calendar-CjK-JUDM.js} +5 -5
- package/dist/Card/index.d.ts +2 -2
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CA8zpD9v.js → Carousel-D262qigj.js} +8 -8
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bmna9EOA.js → Chat-DD_mlIP3.js} +165 -101
- package/dist/CheckboxIndicator/index.js +1 -1
- package/dist/{CheckboxIndicator-D37cm2Rh.js → CheckboxIndicator-fH4d-JE1.js} +9 -3
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-BS9J6edf.js → CheckboxInput-D8vTmAMZ.js} +20 -12
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CX1i_jVP.js → CheckboxList-DCvHewHB.js} +155 -38
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-Djgwa0ko.js → Citation-C69BgxW3.js} +8 -3
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-DUsC-j03.js → ClickableCard-ChAfiw9T.js} +9 -6
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +3 -3
- package/dist/{Code-XnPuGxey.js → Code-Bg7GBdxy.js} +2 -1
- package/dist/{CodeBlock-D0BFubut.js → CodeBlock-DsbwTBiT.js} +8 -8
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-Cov3Pyq5.js → Collapsible-Bdj0WYpb.js} +13 -11
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-YHsUNg3V.js → CommandPalette-CZ7CZglZ.js} +147 -67
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DWLdKPGI.js → ComplexSelector-CIz6DDmY.js} +114 -28
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-Bq9b3Ti5.js → ContextMenu-CxoiRh_h.js} +297 -179
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DT518j5E.js → DateInput-C67HCOU-.js} +563 -72
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Bqi5tlIA.js → DateRangeInput-Dsf5Tyf-.js} +91 -26
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/DateTimeInput-tfM1y5nZ.js +562 -0
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +2 -2
- package/dist/{Dialog-BiOSKQso.js → Dialog-DT1GzCrB.js} +28 -11
- package/dist/{Dialog-FGHfDu5M.js → Dialog-fhyxB00e.js} +32 -5
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Divider/index.js +1 -1
- package/dist/{Divider-BtwnL18I.js → Divider-mOZ6vIQw.js} +5 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-CoOQVlRp.js → DropdownMenu-C6wBC18g.js} +84 -56
- package/dist/{DropdownMenu-DEb2dSSP.js → DropdownMenu-G-pWSiBk.js} +479 -264
- package/dist/{DropdownMenuRadioItem.vue-CXEURBcq.d.ts → DropdownMenuRadioItem.vue-Qd-8Rg4Q.d.ts} +236 -230
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-C_GH7IV5.js → EmptyState-CmOQf2SH.js} +2 -2
- package/dist/Field/index.d.ts +4 -3
- package/dist/Field/index.js +4 -3
- package/dist/{Field-D5gUEGw4.js → Field-JIxT3xCh.js} +5 -4
- package/dist/FieldIcon-BFSHZEs_.js +40 -0
- package/dist/{FieldInfoTip-Ds-sW_jY.js → FieldInfoTip-BbgLt4ug.js} +4 -4
- package/dist/{FieldLabel-BNeXRuGH.js → FieldLabel-CHqp1y3z.js} +13 -8
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-MjY19ERl.js → FieldStatus-DaAB3TIt.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BpdiO1V8.js → FileInput-Bi1uty-F.js} +108 -31
- package/dist/FormLayout/index.d.ts +1 -1
- package/dist/FormLayout/index.js +1 -1
- package/dist/{FormLayout-D47FjiOq.js → FormLayout-B9dUB6Ps.js} +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-BnwWEWkp.js → Heading-BzBunfN7.js} +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-ycY50pRN.js → HoverCard-BpJhT0sn.js} +35 -22
- package/dist/Icon/index.d.ts +4 -4
- package/dist/Icon/index.js +1 -1
- package/dist/{Icon-bteSId7T.js → Icon-KDnUyY7f.js} +12 -20
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DDNgNl7B.js → IconButton-DI-XBbtV.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/Indicator/index.js +2 -1
- package/dist/InputClearButton-CfSIqc-V.js +40 -0
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +2 -2
- package/dist/{InputGroup-CA03Smrs.js → InputGroup-D3F-QnET.js} +2 -2
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-DJay_w3B.js → InternationalizationProvider-CVV5QDgp.js} +5 -9
- package/dist/{Item-KhFKX9St.js → Item-DWMIjN8n.js} +34 -9
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-BB-Dw6zE.js → Kbd-CV3LO2Ge.js} +18 -2
- package/dist/LayerContentBoundary-CvsKxwwm.js +27 -0
- package/dist/LayerProvider/index.js +1 -1
- package/dist/{LayerProvider-D9NsQFzL.js → LayerProvider-B6zpMBWC.js} +15 -3
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-C6RHllr-.js → Layout-JJRCG7Mf.js} +1 -1
- package/dist/{LayoutPanel-DXOsaeQb.js → LayoutPanel-zM5vjrKS.js} +12 -8
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DTF9EdTG.js → Lightbox-CjXhbDPc.js} +14 -12
- package/dist/Link/index.js +1 -1
- package/dist/{Link-BqHCtiyt.js → Link-ClNkTN1Q.js} +29 -12
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-8RWT8XAG.js → ListItem-BQXMu1Tb.js} +1 -1
- package/dist/Markdown/index.d.ts +5 -2
- package/dist/Markdown/index.js +4 -2
- package/dist/Markdown/parser/index.d.ts +4 -0
- package/dist/Markdown/parser/index.js +2 -0
- package/dist/Markdown/plugin-protocol/index.d.ts +35 -0
- package/dist/Markdown/plugin-protocol/index.js +107 -0
- package/dist/Markdown/plugin-renderer/index.d.ts +31 -0
- package/dist/Markdown/plugin-renderer/index.js +42 -0
- package/dist/{Markdown-CvtN7HnF.js → Markdown-EIBrwQrb.js} +195 -524
- package/dist/MediaTheme-DlLqYhDy.js +433 -0
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-B-OelQlt.js → MetadataList-DLlSLX1n.js} +15 -7
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DxGz0xKA.js → MobileNavToggle-DgJYyzT6.js} +52 -17
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-Dlb7MLlW.js → MoreMenu-C8BEt6-O.js} +74 -61
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/MultiSelector-C7NCAtwW.js +1456 -0
- package/dist/{NavDisclosure-C_fugrQ3.js → NavDisclosure-Bq9DTZLO.js} +29 -7
- package/dist/{NavHeadingSurface-B3yJspSN.js → NavHeadingSurface-DQXisuaX.js} +29 -26
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +2 -2
- package/dist/{NavItem-BBIGSvDj.js → NavItem-BPb3yfgz.js} +17 -4
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-ThXguZAz.js → NavMenu-BYIDzjix.js} +42 -15
- package/dist/{NavMenuItem-BvJNsDFC.js → NavMenuItem-D3FO90GR.js} +14 -12
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-3u3NZWnv.js +727 -0
- package/dist/Outline/index.d.ts +2 -2
- package/dist/Outline/index.js +2 -2
- package/dist/{Outline-755h-lMP.js → Outline-8szj9eXu.js} +91 -6
- package/dist/OverflowList/index.d.ts +2 -2
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-NmrSMbxb.js → OverflowList-BizpEwH8.js} +23 -6
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DqwNQFRp.js → Pagination-Cihr1CjD.js} +2 -2
- package/dist/PickerWheel-CSwUYfes.js +69 -0
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-DJf8POzL.js → Popover-78dFjTb9.js} +20 -15
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DvjiPqMZ.js → PowerSearch-BHx91ypY.js} +778 -590
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-CVLzdoBK.js → ProgressBar-VP4JS7vm.js} +10 -7
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-Bfu6JSNV.js → RadioGroup-DeSIRrgt.js} +94 -26
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-xY1cwLdZ.js → RadioList-Co2lmetC.js} +57 -8
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-q4nD_586.js → ResizeHandle-DjLZ2pcq.js} +103 -50
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-D4dCJv9I.js → ScrollableArea-0u6RWtGG.js} +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-ChHmFrrC.js → SegmentedControl-D1wWGBZo.js} +11 -5
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Cku4dRzc.js → SelectableCard-BEqnhPaX.js} +16 -11
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-swa3RNQI.js +1049 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BF8mYDxl.js → SideNav-BH6XKsW2.js} +56 -42
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DWobsPgm.js → Slider-DG2YXll8.js} +172 -46
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner-BY8iQz--.js +200 -0
- package/dist/Stack/index.js +2 -2
- package/dist/{Stack-CTsTFfar.js → Stack-Bb_h60t3.js} +1 -1
- package/dist/{Stack-kQlYbbL4.js → Stack-Bp-XN9J4.js} +12 -7
- package/dist/StatusDot/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-BPUhMOff.js → StatusDot-BS_ohXhd.js} +8 -4
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CE8dHysu.js → Stepper-FtkTq5qR.js} +127 -113
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DaVPRxvN.js → Switch-0JKvJluV.js} +38 -22
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-DIkK9sgK.js → TabList-cpjvnbhx.js} +205 -63
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +1 -1
- package/dist/{Table-fecqnm7P.js → Table-fWs_ZQBF.js} +735 -461
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-CV3LmscH.js → Text-CmTOgYXf.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-Ab5Sw60T.js → TextArea-CwSfEjT1.js} +110 -50
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-zFT1_qgI.js → TextInput-CavITage.js} +71 -38
- package/dist/Theme/index.d.ts +3 -3
- package/dist/Theme/index.js +3 -2
- package/dist/Theme-BbDT8B_C.js +2125 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-C3NnJUFG.js → Thumbnail-DpJnaNbg.js} +17 -14
- package/dist/{TimeField-CoHDGmsP.js → TimeField-DefNjDIT.js} +297 -40
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-D2k3Ux3p.js → TimeInput-j5vzN8MG.js} +78 -9
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-avMQk5DN.js → Timer-CH7GsEVu.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-xpQKCk0d.js → Timestamp-dtT4yADD.js} +9 -9
- package/dist/Toast/index.d.ts +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/Toast-igtJYSw0.js +685 -0
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-B-C-Q7XP.js → ToggleButton-cLjh9W-x.js} +5 -4
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DsntTYhQ.js → Token-DhsAtAH6.js} +32 -17
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-B5C_qY7t.js → Tokenizer-BGdj78UK.js} +107 -23
- package/dist/Toolbar/index.d.ts +2 -2
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-BrgvvTCk.js → Toolbar-C0pMWL4S.js} +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/{Tooltip-C4Vaqd3G.js → Tooltip-sAM8i1eO.js} +23 -19
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-Ciq0l1w7.js → TopNav-Dw0m387B.js} +23 -22
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-BUz-KZJd.js → TreeList-Bunn7u3T.js} +129 -46
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-JP9RT87x.js → Typeahead-DRyf2HEh.js} +123 -26
- package/dist/{TypeaheadMenu-DBW6rHeO.js → TypeaheadMenu-BY5__sPC.js} +141 -51
- package/dist/{announce-Cnio10Wk.js → announce-B210eJVf.js} +17 -2
- package/dist/characters-rcDbGt71.d.ts +29 -0
- package/dist/characters-wTnzjkkR.js +58 -0
- package/dist/{colorMode-CBgdgDSn.js → colorMode-BxqfDP4P.js} +1 -4
- package/dist/composables/index.d.ts +5 -4
- package/dist/composables/index.js +23 -18
- package/dist/{composables-CbKx9C1Y.js → composables-CnsDaMuU.js} +167 -197
- package/dist/context-B6UElI5X.js +5 -0
- package/dist/context-CM-cjGg_.js +1425 -0
- package/dist/{context-Cfjh8te1.js → context-Cfml4jaK.js} +5 -3
- package/dist/context-IvbU9c3T.js +8 -0
- package/dist/context-pjBxaMSh.js +28 -0
- package/dist/fieldParts--SyRZVQG.js +44 -0
- package/dist/fieldParts-LXpQMKE8.d.ts +27 -0
- package/dist/{focus-CpficIgf.js → focus-l8jVTcqd.js} +1 -1
- package/dist/hoverIntent-DMHGb85c.js +115 -0
- package/dist/{index-ClNU2Th8.d.ts → index-3t5RAfNP.d.ts} +6 -2
- package/dist/{index-B9e52paP.d.ts → index-5LVG3QyV.d.ts} +1 -1
- package/dist/{index-CsNi1I8j.d.ts → index-B08-Uxhv.d.ts} +4 -2
- package/dist/{index-TXcNH86P.d.ts → index-B1eCxBCY.d.ts} +1 -1
- package/dist/{index-Cn-sSds-.d.ts → index-B1t1oQWH.d.ts} +24 -1
- package/dist/{index-BkjSF265.d.ts → index-BEZ4ezJk.d.ts} +3 -3
- package/dist/{index-yT1yiiww.d.ts → index-BI6jikpA.d.ts} +23 -11
- package/dist/{index-DeQwYJbg.d.ts → index-BNaRK-s5.d.ts} +10 -1
- package/dist/{index-D97pQbua.d.ts → index-BV2D2x_u.d.ts} +1 -1
- package/dist/{index-Crp3NFLW.d.ts → index-BZKgbyN9.d.ts} +1 -1
- package/dist/{index-Bu8NA2SD.d.ts → index-BaxM-pFP.d.ts} +12 -3
- package/dist/{index-BVKivP59.d.ts → index-Bgk1Rj2A.d.ts} +32 -3
- package/dist/index-BkUkm6Al.d.ts +11 -0
- package/dist/index-Bo-ofFyg.d.ts +166 -0
- package/dist/{index-B1WJxt-n.d.ts → index-C-tFz2Yx.d.ts} +17 -7
- package/dist/{index-DWh2WC8W.d.ts → index-C4Cjz6OK.d.ts} +2 -2
- package/dist/{index-CqE4Bf3Q.d.ts → index-C732aNMY.d.ts} +18 -4
- package/dist/{index-B7yhzGUT.d.ts → index-C7sam-SB.d.ts} +2 -2
- package/dist/{index-BrJzFA5X.d.ts → index-C90l2rH1.d.ts} +1 -1
- package/dist/{index-vP0EtrJJ.d.ts → index-C9gAlDt_.d.ts} +6 -3
- package/dist/index-CKUfpmFL.d.ts +375 -0
- package/dist/{index-CL1T2j4y.d.ts → index-CL8JvxHW.d.ts} +3 -3
- package/dist/{index-IBAInumL.d.ts → index-CMme-xmL.d.ts} +19 -6
- package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
- package/dist/{index-12QYAbiz.d.ts → index-CRrSHbok.d.ts} +3 -2
- package/dist/{index-B42oE_F-.d.ts → index-CT5OEUxd.d.ts} +17 -4
- package/dist/{index-DG52Bg0W.d.ts → index-CTf3SK0b.d.ts} +6 -0
- package/dist/{index-Cde5JvtX.d.ts → index-CUVmtB5-.d.ts} +13 -6
- package/dist/{index-DXpSFlPG.d.ts → index-CWaSYtk9.d.ts} +4 -4
- package/dist/{index-CVn0GBdB.d.ts → index-Ca8VIE4l.d.ts} +1 -1
- package/dist/{index-Cyb9Du5Z.d.ts → index-CfR2Z0uG.d.ts} +1 -1
- package/dist/{index-Byar3h1e.d.ts → index-D05JGsT3.d.ts} +6 -3
- package/dist/{index-hCpxKePE.d.ts → index-D5N9ikrS.d.ts} +1 -1
- package/dist/{index-CkKPMIeX.d.ts → index-D7XRtUTY.d.ts} +9 -0
- package/dist/{index-i0tNFWfz.d.ts → index-D8lv2BiD.d.ts} +3 -1
- package/dist/{index-TntQsADQ.d.ts → index-DEm3kRBO.d.ts} +4 -3
- package/dist/{index-0QGtSf3r.d.ts → index-DFLPv9io.d.ts} +4 -3
- package/dist/{index-C2nbK2AA.d.ts → index-DLAG3m9W.d.ts} +13 -3
- package/dist/{index-D41_xqjs.d.ts → index-DTuhnqHb.d.ts} +16 -9
- package/dist/{index-B3Fomy15.d.ts → index-DbiZvj1P.d.ts} +4 -4
- package/dist/{index-C5e-7Obr.d.ts → index-Dj1_1t3j.d.ts} +19 -6
- package/dist/{index-DIXAzTKL.d.ts → index-DxxudRgB.d.ts} +1 -1
- package/dist/{index-BhpAUzUr.d.ts → index-Dy746dfn.d.ts} +1 -1
- package/dist/{index-GI9xIV9l.d.ts → index-JL4auphT.d.ts} +2 -2
- package/dist/{index-DVmgNb78.d.ts → index-TA1zVibb.d.ts} +4 -4
- package/dist/{index-DUaLJO7l.d.ts → index-UA93Im7H.d.ts} +155 -109
- package/dist/{index-COgrQZIL.d.ts → index-YKCx03zD.d.ts} +2 -2
- package/dist/{index-XuAAcYiP.d.ts → index-f3d9cVtj.d.ts} +1 -1
- package/dist/{index-T2FOcOuI.d.ts → index-jOwU3YoR.d.ts} +400 -90
- package/dist/{index-CICeEoZV.d.ts → index-pNtfr-RW.d.ts} +1 -1
- package/dist/{index-B4OOtNP8.d.ts → index-pYh4gqgl.d.ts} +1 -1
- package/dist/index.d.ts +81 -75
- package/dist/index.js +150 -136
- package/dist/inlineSize-BNe8wggI.js +66 -0
- package/dist/inputPresentation-BOyHkCDr.js +62 -0
- package/dist/interactionModality-ACpTMhak.js +44 -0
- package/dist/isApplePlatform-B1ju6F5B.js +27 -0
- package/dist/isRenderable-BnKHIqfd.js +21 -0
- package/dist/layerDepth-CNDh-IHb.js +181 -0
- package/dist/link-DuuA2eCL.js +30 -0
- package/dist/loadCatalog-CsZFr9dg.js +424 -0
- package/dist/loadCatalog-opk5hs94.d.ts +803 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -3
- package/dist/locale-D1Z3K290.js +343 -0
- package/dist/modalOutlet-CUOcrhIu.js +56 -0
- package/dist/optionAction-Cg7xQLUA.d.ts +6 -0
- package/dist/{power-search-DrDfcoL1.d.ts → power-search-gHLIYXs5.d.ts} +2 -0
- package/dist/protocol-DHxY0NI8.js +113 -0
- package/dist/protocol-DwUmpC5G.d.ts +240 -0
- package/dist/publicParser-B6XMcsB2.d.ts +141 -0
- package/dist/publicParser-DWUMCx7j.js +1437 -0
- package/dist/resizableChannel-3vivrEcT.js +20 -0
- package/dist/safeUrl-CsvfcZ9m.js +54 -0
- package/dist/scopedProvide-C-Df7c15.js +30 -0
- package/dist/scrollKeyboardDelegation-D7cumnOl.js +238 -0
- package/dist/scrollLock-C3aT4-0z.js +102 -0
- package/dist/{searchResultMessage-hXXNOFJP.js → searchResultMessage-DtyScdZs.js} +5 -14
- package/dist/{semantic-CKH9XVqa.d.ts → semantic-BF_AjLvk.d.ts} +6 -3
- package/dist/slug-DAK6hdbr.js +17 -0
- package/dist/syntaxContext-DmIfNNtb.js +4 -0
- package/dist/triggerVariant-BsL8jMHs.js +16 -0
- package/dist/{types-0Q_SJv_F.d.ts → types-Bb7OGivY.d.ts} +6 -1
- package/dist/{types-CwyibrRB.d.ts → types-C5GQ2KCK.d.ts} +23 -3
- package/dist/{types-gKsEkk2g.d.ts → types-CsqwQkf1.d.ts} +143 -10
- package/dist/upstreamMap-ocuIRfI2.js +893 -0
- package/dist/{useAnchoredListbox-DwztMNjP.js → useAnchoredListbox-DGxxKHZb.js} +2 -2
- package/dist/{useAsyncSource-xpQovjV_.d.ts → useAsyncSource-aGzrvRkI.d.ts} +3 -0
- package/dist/{useClickableContainer-DyNpnSEa.js → useClickableContainer-CdGp_Cev.js} +1 -1
- package/dist/{useClipboard-BDfbEsWd.js → useClipboard-Dk8cS810.js} +1 -1
- package/dist/useHoverLayerDismiss-kYJ_NqL4.js +27 -0
- package/dist/{useIndicator-i1NORM7W.js → useIndicator-D9Y0dJsm.js} +5 -23
- package/dist/{useInputContainer-CpgDe2-4.js → useInputContainer-CLcYrby4.js} +1 -1
- package/dist/{useInputStatusIcon-DBOwxV4x.js → useInputStatusIcon-CWkCeMyX.js} +2 -2
- package/dist/useLayerMountTarget-BmZyeKWE.js +156 -0
- package/dist/{useListFocus-D0iOJl39.js → useListFocus-ChxLg0b4.js} +3 -2
- package/dist/{useMenuDrillIn-DzKGkTho.js → useMenuDrillIn-DhUnPvKs.js} +6 -5
- package/dist/useMenuHover-Djreu23i.js +170 -0
- package/dist/useMenuPress-8foxY8z4.js +764 -0
- package/dist/{useMergedRefs-CfHHlCsn.js → useMergedRefs-Cb6_w93m.js} +24 -4
- package/dist/{useNumberField-4-dIGVed.js → useNumberField-Dk1BE3-K.js} +3 -3
- package/dist/useOptionActionGrid-CkJcuvaU.js +97 -0
- package/dist/{usePositionedLayer-Cru9_00b.js → usePositionedLayer-B7cvG-_v.js} +43 -49
- package/dist/usePressFeedback-BJCpjEpv.js +319 -0
- package/dist/{useResizable-DDwPpPe6.d.ts → useResizable-1MHPNaRD.d.ts} +19 -1
- package/dist/{useResizable-B3ahKLoZ.js → useResizable-I3BCiLSL.js} +72 -40
- package/dist/useResolvedLabelHidden-B2rlWiaI.js +30 -0
- package/dist/{useRestoreFocus-Djw9RUIf.js → useRestoreFocus-XEKs5-gp.js} +49 -7
- package/dist/useScrollOverflow-DuMoGXmm.js +67 -0
- package/dist/useScrollableArea-BE8b3qm7.js +222 -0
- package/dist/{useTimeValue-6ufHM15W.js → useTimeValue-BJd0xBhG.js} +4 -22
- package/dist/useTranslator-PEXMxDpv.js +35 -0
- package/dist/{useTypeahead-PAK8lMYz.js → useTypeahead-BvtflkRk.js} +4 -5
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +5 -0
- package/dist/{utils-D33VQDnk.js → utils-ClVseK2w.js} +29 -2
- package/dist/utils-z3Q6BGIJ.js +819 -0
- package/locales/SOURCE.json +1 -1
- package/package.json +18 -2
- package/reset.css +364 -1
- package/styles/avatar-group.css +9 -1
- package/styles/badge.css +8 -5
- package/styles/banner.css +125 -26
- package/styles/blockquote.css +1 -0
- package/styles/bordered-control.css +1 -1
- package/styles/bottom-sheet.css +74 -6
- package/styles/breadcrumbs.css +16 -2
- package/styles/button-group.css +3 -1
- package/styles/button.css +53 -11
- package/styles/card.css +1 -1
- package/styles/chat.css +16 -6
- package/styles/checkbox-input.css +10 -0
- package/styles/clickable-card.css +10 -3
- package/styles/collapsible.css +12 -5
- package/styles/command-palette.css +29 -14
- package/styles/complex-selector.css +24 -5
- package/styles/context-menu.css +3 -3
- package/styles/date-input.css +111 -1
- package/styles/dialog-header.css +4 -1
- package/styles/dialog.css +7 -0
- package/styles/dropdown-menu.css +12 -3
- package/styles/field.css +5 -0
- package/styles/form-layout.css +1 -0
- package/styles/heading.css +18 -8
- package/styles/icon.css +9 -9
- package/styles/kbd.css +1 -1
- package/styles/layer.css +72 -0
- package/styles/list.css +9 -2
- package/styles/metadata-list.css +1 -0
- package/styles/mobile-nav.css +4 -1
- package/styles/multi-selector.css +48 -1
- package/styles/nav-item.css +9 -2
- package/styles/nav-menu.css +12 -2
- package/styles/number-input.css +9 -1
- package/styles/overflow-list.css +1 -1
- package/styles/popover.css +2 -1
- package/styles/power-search.css +5 -3
- package/styles/pressable.css +63 -22
- package/styles/progress-bar.css +15 -3
- package/styles/radio.css +16 -0
- package/styles/resize-handle.css +42 -0
- package/styles/segmented-control.css +12 -4
- package/styles/selector.css +53 -1
- package/styles/side-nav.css +19 -0
- package/styles/slider.css +4 -3
- package/styles/spinner.css +48 -42
- package/styles/stepper.css +58 -4
- package/styles/switch.css +26 -0
- package/styles/tab-list.css +132 -3
- package/styles/table.css +88 -11
- package/styles/text-area.css +7 -1
- package/styles/text-input.css +1 -1
- package/styles/text.css +6 -6
- package/styles/thumbnail.css +11 -3
- package/styles/time-input.css +8 -0
- package/styles/toast.css +37 -3
- package/styles/token.css +2 -2
- package/styles/tokenizer.css +1 -1
- package/styles/toolbar.css +4 -1
- package/styles/tree-list.css +1 -1
- package/styles/typeahead.css +34 -1
- package/styles.css +1 -0
- package/dist/Blockquote-DFqBv_oJ.js +0 -18
- package/dist/Breadcrumbs-DIm4figq.js +0 -141
- package/dist/ButtonGroup-ySQWanDP.js +0 -125
- package/dist/DateTimeInput-A7m2O3bg.js +0 -268
- package/dist/FieldIcon--NTgW5IU.js +0 -44
- package/dist/MultiSelector-BtAUfQ3t.js +0 -990
- package/dist/NumberInput-AZ9x3oja.js +0 -473
- package/dist/Selector-DJ2BhUTV.js +0 -677
- package/dist/Spinner-9cYUCnDy.js +0 -84
- package/dist/Theme-CtaUWo4g.js +0 -1246
- package/dist/Toast-BuqIZV5z.js +0 -322
- package/dist/context-4PuqD1Ic.js +0 -4
- package/dist/context-D5-MwxnN.js +0 -4
- package/dist/context-iABt_ueM.js +0 -976
- package/dist/index-BH9PzQ1F.d.ts +0 -87
- package/dist/link-C4_WogdF.js +0 -18
- package/dist/loadCatalog-BGHKG_9N.d.ts +0 -457
- package/dist/loadCatalog-CXKqEB9s.js +0 -877
- package/dist/locale-DgkZEMTn.js +0 -105
- package/dist/platform-B_9W_aHW.js +0 -33
- package/dist/scrollLock-BzIvIimL.js +0 -42
- package/dist/useMenuPress-D-FRNrBW.js +0 -573
- package/dist/useScrollableArea-DDk_CluT.js +0 -172
- /package/dist/{index-lgvUFSCO.d.ts → index-CryFtTT6.d.ts} +0 -0
|
@@ -1,30 +1,38 @@
|
|
|
1
|
-
import { t as _sfc_main$
|
|
2
|
-
import { n as useButtonTooltip } from "./Button-
|
|
3
|
-
import { t as _sfc_main$
|
|
1
|
+
import { t as _sfc_main$4 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
|
+
import { n as useButtonTooltip } from "./Button-ONOoHdkg.js";
|
|
3
|
+
import { t as _sfc_main$5 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
4
4
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
5
5
|
import { n as resolveDateSurface, t as resolveDatePresentation } from "./useDatePresentation-C07PnOCw.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { a as isImeKeyEvent } from "./layerDepth-CNDh-IHb.js";
|
|
7
|
+
import { t as _sfc_main$6 } from "./Icon-KDnUyY7f.js";
|
|
8
|
+
import { t as _sfc_main$7 } from "./FieldIcon-BFSHZEs_.js";
|
|
9
|
+
import { o as useAstryxLocale, s as useAstryxMessages } from "./context-CM-cjGg_.js";
|
|
10
|
+
import { a as weekdayNames, i as standaloneShortWeekdayNames, r as formatCalendarMonth } from "./locale-D1Z3K290.js";
|
|
8
11
|
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as _sfc_main$
|
|
11
|
-
import {
|
|
12
|
-
import { t as _sfc_main$
|
|
13
|
-
import {
|
|
14
|
-
import { t as _sfc_main$
|
|
12
|
+
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
13
|
+
import { t as _sfc_main$8 } from "./BottomSheet-B4sc3F1S.js";
|
|
14
|
+
import { a as isOutsideCalendarBounds, c as toCalendarDate, i as isCalendarDateDisabled, l as weekStartIndex, n as resolveCalendarKey, o as formatWeekdayDate, r as buildCalendarWeeks, s as sameCalendarDay, t as _sfc_main$9 } from "./Calendar-CjK-JUDM.js";
|
|
15
|
+
import { t as _sfc_main$10 } from "./Spinner-BY8iQz--.js";
|
|
16
|
+
import { i as useAriaRequired } from "./context-Cfml4jaK.js";
|
|
17
|
+
import { t as _sfc_main$11 } from "./Field-JIxT3xCh.js";
|
|
18
|
+
import { t as useFieldPartStyling } from "./fieldParts--SyRZVQG.js";
|
|
19
|
+
import { t as _sfc_main$12 } from "./Popover-78dFjTb9.js";
|
|
15
20
|
import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
|
|
16
|
-
import {
|
|
21
|
+
import { t as _sfc_main$13 } from "./PickerWheel-CSwUYfes.js";
|
|
22
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useTemplateRef, watch, withCtx } from "vue";
|
|
23
|
+
import { CalendarDate } from "@internationalized/date";
|
|
24
|
+
import "../styles/calendar.css";
|
|
17
25
|
import "../styles/date-input.css";
|
|
18
26
|
//#region src/DateInput/NativeDateField.vue
|
|
19
|
-
const _hoisted_1$
|
|
20
|
-
const _hoisted_2$
|
|
27
|
+
const _hoisted_1$3 = ["data-status"];
|
|
28
|
+
const _hoisted_2$3 = [
|
|
21
29
|
"data-disabled",
|
|
22
30
|
"data-size",
|
|
23
31
|
"data-status"
|
|
24
32
|
];
|
|
25
|
-
const _hoisted_3$
|
|
26
|
-
const _hoisted_4$
|
|
27
|
-
const _hoisted_5$
|
|
33
|
+
const _hoisted_3$3 = ["disabled", "aria-label"];
|
|
34
|
+
const _hoisted_4$3 = { class: "astryx-date-input-native" };
|
|
35
|
+
const _hoisted_5$3 = [
|
|
28
36
|
"id",
|
|
29
37
|
"min",
|
|
30
38
|
"max",
|
|
@@ -38,13 +46,14 @@ const _hoisted_5$1 = [
|
|
|
38
46
|
"aria-required",
|
|
39
47
|
"aria-busy"
|
|
40
48
|
];
|
|
41
|
-
const _hoisted_6$
|
|
42
|
-
const _hoisted_7$
|
|
43
|
-
const _hoisted_8$
|
|
49
|
+
const _hoisted_6$2 = ["data-placeholder"];
|
|
50
|
+
const _hoisted_7$2 = ["aria-label"];
|
|
51
|
+
const _hoisted_8$2 = {
|
|
44
52
|
class: "astryx-date-input-alert",
|
|
45
53
|
role: "alert"
|
|
46
54
|
};
|
|
47
|
-
const _sfc_main$
|
|
55
|
+
const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
56
|
+
inheritAttrs: false,
|
|
48
57
|
__name: "NativeDateField",
|
|
49
58
|
props: {
|
|
50
59
|
id: {},
|
|
@@ -87,12 +96,42 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
87
96
|
},
|
|
88
97
|
describedBy: {},
|
|
89
98
|
width: {},
|
|
90
|
-
inputId: {}
|
|
99
|
+
inputId: {},
|
|
100
|
+
containerClass: { type: [
|
|
101
|
+
Boolean,
|
|
102
|
+
null,
|
|
103
|
+
String,
|
|
104
|
+
Object,
|
|
105
|
+
Array
|
|
106
|
+
] },
|
|
107
|
+
containerStyle: { type: [
|
|
108
|
+
Boolean,
|
|
109
|
+
null,
|
|
110
|
+
String,
|
|
111
|
+
Object,
|
|
112
|
+
Array
|
|
113
|
+
] },
|
|
114
|
+
controlClass: { type: [
|
|
115
|
+
Boolean,
|
|
116
|
+
null,
|
|
117
|
+
String,
|
|
118
|
+
Object,
|
|
119
|
+
Array
|
|
120
|
+
] },
|
|
121
|
+
controlStyle: { type: [
|
|
122
|
+
Boolean,
|
|
123
|
+
null,
|
|
124
|
+
String,
|
|
125
|
+
Object,
|
|
126
|
+
Array
|
|
127
|
+
] }
|
|
91
128
|
},
|
|
92
129
|
emits: ["update:modelValue", "change"],
|
|
93
130
|
setup(__props, { emit: __emit }) {
|
|
94
131
|
const props = __props;
|
|
95
132
|
const emit = __emit;
|
|
133
|
+
const attrs = useAttrs();
|
|
134
|
+
const ariaRequired = useAriaRequired(props);
|
|
96
135
|
const messages = useAstryxMessages();
|
|
97
136
|
const locale = useAstryxLocale();
|
|
98
137
|
const inputRef = useTemplateRef("input");
|
|
@@ -218,7 +257,9 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
218
257
|
});
|
|
219
258
|
return (_ctx, _cache) => {
|
|
220
259
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
221
|
-
createVNode(_sfc_main$
|
|
260
|
+
createVNode(_sfc_main$11, {
|
|
261
|
+
class: normalizeClass(__props.containerClass),
|
|
262
|
+
style: normalizeStyle(__props.containerStyle),
|
|
222
263
|
label: __props.label || unref(messages).dateInput.dialogLabel,
|
|
223
264
|
"input-id": __props.inputId,
|
|
224
265
|
description: __props.description,
|
|
@@ -234,7 +275,12 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
234
275
|
default: withCtx((field) => [createElementVNode("div", {
|
|
235
276
|
ref_key: "containerRef",
|
|
236
277
|
ref: containerRef,
|
|
237
|
-
class: normalizeClass(["astryx-date-input", [
|
|
278
|
+
class: normalizeClass(["astryx-date-input", [
|
|
279
|
+
statusType.value ? `status-${statusType.value}` : void 0,
|
|
280
|
+
`size-${__props.size}`,
|
|
281
|
+
__props.controlClass
|
|
282
|
+
]]),
|
|
283
|
+
style: normalizeStyle(__props.controlStyle),
|
|
238
284
|
"data-status": statusType.value,
|
|
239
285
|
"data-presentation": "native",
|
|
240
286
|
onPointerenter: _cache[0] || (_cache[0] = (...args) => unref(disabledTooltip).onPointerEnter && unref(disabledTooltip).onPointerEnter(...args)),
|
|
@@ -255,8 +301,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
255
301
|
}, [createVNode(_sfc_main$6, {
|
|
256
302
|
icon: "calendar",
|
|
257
303
|
size: "sm"
|
|
258
|
-
})], 8, _hoisted_3$
|
|
259
|
-
createElementVNode("span", _hoisted_4$
|
|
304
|
+
})], 8, _hoisted_3$3),
|
|
305
|
+
createElementVNode("span", _hoisted_4$3, [createElementVNode("input", mergeProps(unref(attrs), {
|
|
260
306
|
id: __props.inputId,
|
|
261
307
|
ref: "input",
|
|
262
308
|
class: "astryx-date-input-field",
|
|
@@ -270,16 +316,16 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
270
316
|
"aria-describedby": [__props.describedBy, field.describedBy].filter(Boolean).join(" ") || void 0,
|
|
271
317
|
"aria-disabled": showsDisabledMessage.value || void 0,
|
|
272
318
|
"aria-invalid": statusType.value === "error" || rejected.value ? "true" : void 0,
|
|
273
|
-
"aria-required":
|
|
319
|
+
"aria-required": unref(ariaRequired),
|
|
274
320
|
"aria-busy": busy.value || void 0,
|
|
275
321
|
autocomplete: "off",
|
|
276
322
|
onFocus: onInputFocus,
|
|
277
323
|
onBlur: onInputBlur
|
|
278
|
-
}, null,
|
|
324
|
+
}), null, 16, _hoisted_5$3), createElementVNode("span", {
|
|
279
325
|
class: "astryx-date-input-overlay",
|
|
280
326
|
"data-placeholder": __props.modelValue ? void 0 : "true",
|
|
281
327
|
"aria-hidden": "true"
|
|
282
|
-
}, toDisplayString(overlay.value), 9, _hoisted_6$
|
|
328
|
+
}, toDisplayString(overlay.value), 9, _hoisted_6$2)]),
|
|
283
329
|
showsClear.value ? (openBlock(), createElementBlock("button", {
|
|
284
330
|
key: 0,
|
|
285
331
|
type: "button",
|
|
@@ -290,18 +336,20 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
290
336
|
}, [createVNode(_sfc_main$6, {
|
|
291
337
|
icon: "close",
|
|
292
338
|
size: "sm"
|
|
293
|
-
})], 8, _hoisted_7$
|
|
294
|
-
busy.value ? (openBlock(), createBlock(_sfc_main$
|
|
339
|
+
})], 8, _hoisted_7$2)) : createCommentVNode("v-if", true),
|
|
340
|
+
busy.value ? (openBlock(), createBlock(_sfc_main$10, {
|
|
295
341
|
key: 1,
|
|
296
342
|
size: "sm",
|
|
297
343
|
"aria-label": unref(messages).dateInput.loading
|
|
298
|
-
}, null, 8, ["aria-label"])) : statusType.value && __props.statusVariant !== "tooltip" ? (openBlock(), createBlock(_sfc_main$
|
|
344
|
+
}, null, 8, ["aria-label"])) : statusType.value && __props.statusVariant !== "tooltip" ? (openBlock(), createBlock(_sfc_main$7, {
|
|
299
345
|
key: 2,
|
|
300
346
|
type: statusType.value
|
|
301
347
|
}, null, 8, ["type"])) : createCommentVNode("v-if", true)
|
|
302
|
-
], 8, _hoisted_2$
|
|
348
|
+
], 8, _hoisted_2$3), createElementVNode("div", _hoisted_8$2, toDisplayString(rejected.value ? unref(messages).dateInput.invalidDate : ""), 1)], 46, _hoisted_1$3)]),
|
|
303
349
|
_: 1
|
|
304
350
|
}, 8, [
|
|
351
|
+
"class",
|
|
352
|
+
"style",
|
|
305
353
|
"label",
|
|
306
354
|
"input-id",
|
|
307
355
|
"description",
|
|
@@ -314,14 +362,14 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
314
362
|
"status",
|
|
315
363
|
"status-variant"
|
|
316
364
|
]),
|
|
317
|
-
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$
|
|
365
|
+
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
318
366
|
key: 0,
|
|
319
367
|
id: disabledMessageId
|
|
320
368
|
}, {
|
|
321
369
|
default: withCtx(() => [createTextVNode(toDisplayString(disabledMessage.value), 1)]),
|
|
322
370
|
_: 1
|
|
323
371
|
})) : createCommentVNode("v-if", true),
|
|
324
|
-
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$
|
|
372
|
+
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
325
373
|
key: 1,
|
|
326
374
|
id: `${disabledMessageId}-tooltip`,
|
|
327
375
|
anchor: containerRef.value,
|
|
@@ -342,6 +390,367 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
342
390
|
}
|
|
343
391
|
});
|
|
344
392
|
//#endregion
|
|
393
|
+
//#region src/DateInput/monthRange.ts
|
|
394
|
+
/** 一个月在时间轴上的序号,1 月是 1。 */
|
|
395
|
+
function monthIndex(year, month) {
|
|
396
|
+
return year * 12 + (month - 1);
|
|
397
|
+
}
|
|
398
|
+
function fromMonthIndex(index) {
|
|
399
|
+
const year = Math.floor(index / 12);
|
|
400
|
+
return {
|
|
401
|
+
year,
|
|
402
|
+
month: index - year * 12 + 1
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
function clampMonthIndex(index, min, max) {
|
|
406
|
+
return Math.min(Math.max(index, min), max);
|
|
407
|
+
}
|
|
408
|
+
/** 底部面板能翻到的月份。最小和最大日期会把窗口收进去。 */
|
|
409
|
+
function reachableMonthRange(min, max, today = /* @__PURE__ */ new Date()) {
|
|
410
|
+
const now = monthIndex(today.getFullYear(), today.getMonth() + 1);
|
|
411
|
+
let low = now - 600;
|
|
412
|
+
let high = now + 600;
|
|
413
|
+
if (min) low = Math.max(low, monthIndex(min.getFullYear(), min.getMonth() + 1));
|
|
414
|
+
if (max) high = Math.min(high, monthIndex(max.getFullYear(), max.getMonth() + 1));
|
|
415
|
+
if (low > high) low = high;
|
|
416
|
+
return {
|
|
417
|
+
min: low,
|
|
418
|
+
max: high
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
//#endregion
|
|
422
|
+
//#region src/DateInput/TouchMonthGrid.vue
|
|
423
|
+
const _hoisted_1$2 = ["aria-label"];
|
|
424
|
+
const _hoisted_2$2 = {
|
|
425
|
+
class: "astryx-calendar-weekdays",
|
|
426
|
+
role: "row"
|
|
427
|
+
};
|
|
428
|
+
const _hoisted_3$2 = ["aria-label"];
|
|
429
|
+
const _hoisted_4$2 = [
|
|
430
|
+
"data-date",
|
|
431
|
+
"tabindex",
|
|
432
|
+
"aria-disabled",
|
|
433
|
+
"aria-current",
|
|
434
|
+
"aria-label",
|
|
435
|
+
"onClick"
|
|
436
|
+
];
|
|
437
|
+
const _hoisted_5$2 = { class: "astryx-calendar-day" };
|
|
438
|
+
const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
439
|
+
__name: "TouchMonthGrid",
|
|
440
|
+
props: {
|
|
441
|
+
year: {},
|
|
442
|
+
month: {},
|
|
443
|
+
selected: {},
|
|
444
|
+
min: {},
|
|
445
|
+
max: {},
|
|
446
|
+
isDateDisabled: { type: Function },
|
|
447
|
+
dateConstraints: {},
|
|
448
|
+
weekStartsOn: {}
|
|
449
|
+
},
|
|
450
|
+
emits: ["pick", "update:view"],
|
|
451
|
+
setup(__props, { emit: __emit }) {
|
|
452
|
+
const props = __props;
|
|
453
|
+
const emit = __emit;
|
|
454
|
+
const locale = useAstryxLocale();
|
|
455
|
+
const weekStart = computed(() => weekStartIndex(props.weekStartsOn));
|
|
456
|
+
const selectedDate = computed(() => props.selected ? toCalendarDate(props.selected) : null);
|
|
457
|
+
const today = toCalendarDate(/* @__PURE__ */ new Date());
|
|
458
|
+
const focused = shallowRef(new CalendarDate(props.year, props.month, 1));
|
|
459
|
+
const headers = computed(() => {
|
|
460
|
+
const shorts = standaloneShortWeekdayNames(locale.value);
|
|
461
|
+
const longs = weekdayNames(locale.value, "long");
|
|
462
|
+
return Array.from({ length: 7 }, (_, index) => {
|
|
463
|
+
const day = (index + weekStart.value) % 7;
|
|
464
|
+
return {
|
|
465
|
+
short: shorts[day] ?? "",
|
|
466
|
+
long: longs[day] ?? ""
|
|
467
|
+
};
|
|
468
|
+
});
|
|
469
|
+
});
|
|
470
|
+
const weeks = computed(() => buildCalendarWeeks(props.year, props.month, weekStart.value, false));
|
|
471
|
+
const label = computed(() => formatCalendarMonth(props.year, props.month, locale.value));
|
|
472
|
+
function blocked(date) {
|
|
473
|
+
return isCalendarDateDisabled(date, {
|
|
474
|
+
min: props.min,
|
|
475
|
+
max: props.max,
|
|
476
|
+
isDateDisabled: props.isDateDisabled,
|
|
477
|
+
dateConstraints: props.dateConstraints
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
watch(() => [props.year, props.month], ([year, month]) => {
|
|
481
|
+
if (focused.value.year === year && focused.value.month === month) return;
|
|
482
|
+
const last = new CalendarDate(year, month, 1).add({ months: 1 }).subtract({ days: 1 }).day;
|
|
483
|
+
focused.value = new CalendarDate(year, month, Math.min(focused.value.day, last));
|
|
484
|
+
}, { immediate: true });
|
|
485
|
+
function pick(date, outside) {
|
|
486
|
+
if (outside || blocked(date)) return;
|
|
487
|
+
focused.value = date;
|
|
488
|
+
emit("pick", new Date(date.year, date.month - 1, date.day));
|
|
489
|
+
}
|
|
490
|
+
function onKeydown(event) {
|
|
491
|
+
const move = resolveCalendarKey({
|
|
492
|
+
key: event.key,
|
|
493
|
+
rtl: typeof document !== "undefined" && document.documentElement.dir === "rtl",
|
|
494
|
+
focused: focused.value,
|
|
495
|
+
weekStartsOn: weekStart.value,
|
|
496
|
+
numberOfMonths: 1,
|
|
497
|
+
viewYear: props.year,
|
|
498
|
+
viewMonth: props.month,
|
|
499
|
+
isOutOfBounds: (date) => isOutsideCalendarBounds(date, props.min, props.max),
|
|
500
|
+
isDisabled: (date) => blocked(date)
|
|
501
|
+
});
|
|
502
|
+
if (!move) return;
|
|
503
|
+
event.preventDefault();
|
|
504
|
+
focused.value = move.date;
|
|
505
|
+
if (move.date.year !== props.year || move.date.month !== props.month) emit("update:view", move.date.year, move.date.month);
|
|
506
|
+
}
|
|
507
|
+
return (_ctx, _cache) => {
|
|
508
|
+
return openBlock(), createElementBlock("div", {
|
|
509
|
+
class: "astryx-calendar-grid astryx-date-touch-grid",
|
|
510
|
+
role: "grid",
|
|
511
|
+
"aria-label": label.value,
|
|
512
|
+
tabindex: "-1",
|
|
513
|
+
onKeydown
|
|
514
|
+
}, [createElementVNode("div", _hoisted_2$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(headers.value, (day) => {
|
|
515
|
+
return openBlock(), createElementBlock("div", {
|
|
516
|
+
key: day.long,
|
|
517
|
+
class: "astryx-calendar-weekday",
|
|
518
|
+
role: "columnheader",
|
|
519
|
+
"aria-label": day.long
|
|
520
|
+
}, toDisplayString(day.short), 9, _hoisted_3$2);
|
|
521
|
+
}), 128))]), (openBlock(true), createElementBlock(Fragment, null, renderList(weeks.value, (week, rowIndex) => {
|
|
522
|
+
return openBlock(), createElementBlock("div", {
|
|
523
|
+
key: rowIndex,
|
|
524
|
+
class: "astryx-calendar-row",
|
|
525
|
+
role: "row"
|
|
526
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(week.days, (day) => {
|
|
527
|
+
return openBlock(), createElementBlock("div", {
|
|
528
|
+
key: day.iso,
|
|
529
|
+
class: "astryx-calendar-gridcell",
|
|
530
|
+
role: "gridcell"
|
|
531
|
+
}, [createElementVNode("button", {
|
|
532
|
+
type: "button",
|
|
533
|
+
class: normalizeClass(["astryx-calendar-cell", {
|
|
534
|
+
"is-selected": !!selectedDate.value && !day.outside && unref(sameCalendarDay)(day.date, selectedDate.value),
|
|
535
|
+
"is-today": !day.outside && unref(sameCalendarDay)(day.date, unref(today)),
|
|
536
|
+
"is-disabled": day.outside || blocked(day.date),
|
|
537
|
+
"is-other-month": day.outside
|
|
538
|
+
}]),
|
|
539
|
+
"data-date": day.iso,
|
|
540
|
+
tabindex: !day.outside && unref(sameCalendarDay)(day.date, focused.value) ? 0 : -1,
|
|
541
|
+
"aria-disabled": day.outside || blocked(day.date) || void 0,
|
|
542
|
+
"aria-current": !day.outside && unref(sameCalendarDay)(day.date, unref(today)) ? "date" : void 0,
|
|
543
|
+
"aria-label": unref(formatWeekdayDate)(day.date, unref(locale)),
|
|
544
|
+
onClick: ($event) => pick(day.date, day.outside)
|
|
545
|
+
}, [createElementVNode("span", _hoisted_5$2, toDisplayString(day.day), 1)], 10, _hoisted_4$2)]);
|
|
546
|
+
}), 128))]);
|
|
547
|
+
}), 128))], 40, _hoisted_1$2);
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
});
|
|
551
|
+
//#endregion
|
|
552
|
+
//#region src/DateInput/TouchDateSheet.vue
|
|
553
|
+
const _hoisted_1$1 = { class: "astryx-date-touch" };
|
|
554
|
+
const _hoisted_2$1 = { class: "astryx-date-touch-header" };
|
|
555
|
+
const _hoisted_3$1 = ["aria-expanded", "aria-label"];
|
|
556
|
+
const _hoisted_4$1 = {
|
|
557
|
+
key: 0,
|
|
558
|
+
class: "astryx-date-touch-nav"
|
|
559
|
+
};
|
|
560
|
+
const _hoisted_5$1 = ["aria-label"];
|
|
561
|
+
const _hoisted_6$1 = ["aria-label"];
|
|
562
|
+
const _hoisted_7$1 = {
|
|
563
|
+
key: 0,
|
|
564
|
+
class: "astryx-date-touch-wheels"
|
|
565
|
+
};
|
|
566
|
+
const _hoisted_8$1 = ["disabled"];
|
|
567
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
568
|
+
__name: "TouchDateSheet",
|
|
569
|
+
props: {
|
|
570
|
+
selected: { default: null },
|
|
571
|
+
min: {},
|
|
572
|
+
max: {},
|
|
573
|
+
isDateDisabled: {},
|
|
574
|
+
dateConstraints: {},
|
|
575
|
+
weekStartsOn: {},
|
|
576
|
+
saveLabel: {},
|
|
577
|
+
saveDisabled: {
|
|
578
|
+
type: Boolean,
|
|
579
|
+
default: false
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
emits: [
|
|
583
|
+
"pick",
|
|
584
|
+
"save",
|
|
585
|
+
"reset"
|
|
586
|
+
],
|
|
587
|
+
setup(__props, { emit: __emit }) {
|
|
588
|
+
const props = __props;
|
|
589
|
+
const emit = __emit;
|
|
590
|
+
const messages = useAstryxMessages();
|
|
591
|
+
const locale = useAstryxLocale();
|
|
592
|
+
const wheelsOpen = ref(false);
|
|
593
|
+
const dragX = ref(null);
|
|
594
|
+
const range = computed(() => reachableMonthRange(props.min, props.max));
|
|
595
|
+
const initial = props.selected ?? /* @__PURE__ */ new Date();
|
|
596
|
+
const view = ref(clampMonthIndex(monthIndex(initial.getFullYear(), initial.getMonth() + 1), range.value.min, range.value.max));
|
|
597
|
+
const cursor = computed(() => fromMonthIndex(view.value));
|
|
598
|
+
const monthLabel = computed(() => formatCalendarMonth(cursor.value.year, cursor.value.month, locale.value));
|
|
599
|
+
const resolvedSaveLabel = computed(() => props.saveLabel ?? messages.value.dateInput.savePicking);
|
|
600
|
+
const rtl = computed(() => typeof document !== "undefined" && document.documentElement.dir === "rtl");
|
|
601
|
+
const canPrev = computed(() => view.value > range.value.min);
|
|
602
|
+
const canNext = computed(() => view.value < range.value.max);
|
|
603
|
+
const prevIcon = computed(() => rtl.value ? "chevronRight" : "chevronLeft");
|
|
604
|
+
const nextIcon = computed(() => rtl.value ? "chevronLeft" : "chevronRight");
|
|
605
|
+
const monthOptions = computed(() => {
|
|
606
|
+
const formatter = new Intl.DateTimeFormat(locale.value, { month: "long" });
|
|
607
|
+
return Array.from({ length: 12 }, (_, index) => {
|
|
608
|
+
const month = index + 1;
|
|
609
|
+
const target = monthIndex(cursor.value.year, month);
|
|
610
|
+
return {
|
|
611
|
+
value: String(month),
|
|
612
|
+
label: formatter.format(new Date(cursor.value.year, index, 1)),
|
|
613
|
+
disabled: target < range.value.min || target > range.value.max
|
|
614
|
+
};
|
|
615
|
+
});
|
|
616
|
+
});
|
|
617
|
+
const yearOptions = computed(() => {
|
|
618
|
+
const start = fromMonthIndex(range.value.min).year;
|
|
619
|
+
const end = fromMonthIndex(range.value.max).year;
|
|
620
|
+
const options = [];
|
|
621
|
+
for (let year = start; year <= end; year += 1) {
|
|
622
|
+
const january = monthIndex(year, 1);
|
|
623
|
+
const december = monthIndex(year, 12);
|
|
624
|
+
options.push({
|
|
625
|
+
value: String(year),
|
|
626
|
+
label: String(year),
|
|
627
|
+
disabled: december < range.value.min || january > range.value.max
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
return options;
|
|
631
|
+
});
|
|
632
|
+
function move(amount) {
|
|
633
|
+
view.value = clampMonthIndex(view.value + amount, range.value.min, range.value.max);
|
|
634
|
+
}
|
|
635
|
+
function setMonth(value) {
|
|
636
|
+
const target = monthIndex(cursor.value.year, Number(value));
|
|
637
|
+
if (target < range.value.min || target > range.value.max) return;
|
|
638
|
+
view.value = target;
|
|
639
|
+
}
|
|
640
|
+
function setYear(value) {
|
|
641
|
+
const year = Number(value);
|
|
642
|
+
const target = clampMonthIndex(monthIndex(year, cursor.value.month), range.value.min, range.value.max);
|
|
643
|
+
if (fromMonthIndex(target).year !== year) return;
|
|
644
|
+
view.value = target;
|
|
645
|
+
}
|
|
646
|
+
function onReset() {
|
|
647
|
+
const today = /* @__PURE__ */ new Date();
|
|
648
|
+
view.value = clampMonthIndex(monthIndex(today.getFullYear(), today.getMonth() + 1), range.value.min, range.value.max);
|
|
649
|
+
wheelsOpen.value = false;
|
|
650
|
+
emit("reset");
|
|
651
|
+
}
|
|
652
|
+
function onPointerDown(event) {
|
|
653
|
+
dragX.value = event.clientX;
|
|
654
|
+
}
|
|
655
|
+
function onPointerUp(event) {
|
|
656
|
+
if (dragX.value == null) return;
|
|
657
|
+
const delta = event.clientX - dragX.value;
|
|
658
|
+
dragX.value = null;
|
|
659
|
+
if (Math.abs(delta) < 48) return;
|
|
660
|
+
move((rtl.value ? delta > 0 : delta < 0) ? 1 : -1);
|
|
661
|
+
}
|
|
662
|
+
function onView(year, month) {
|
|
663
|
+
view.value = clampMonthIndex(monthIndex(year, month), range.value.min, range.value.max);
|
|
664
|
+
}
|
|
665
|
+
return (_ctx, _cache) => {
|
|
666
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
667
|
+
createElementVNode("div", _hoisted_2$1, [createElementVNode("button", {
|
|
668
|
+
type: "button",
|
|
669
|
+
class: "astryx-date-touch-title",
|
|
670
|
+
"aria-expanded": wheelsOpen.value,
|
|
671
|
+
"aria-label": wheelsOpen.value ? monthLabel.value : unref(messages).dateInput.chooseMonthYear(monthLabel.value),
|
|
672
|
+
onClick: _cache[0] || (_cache[0] = ($event) => wheelsOpen.value = !wheelsOpen.value)
|
|
673
|
+
}, toDisplayString(monthLabel.value), 9, _hoisted_3$1), !wheelsOpen.value ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
674
|
+
canPrev.value ? (openBlock(), createElementBlock("button", {
|
|
675
|
+
key: 0,
|
|
676
|
+
type: "button",
|
|
677
|
+
class: "astryx-date-touch-arrow",
|
|
678
|
+
"aria-label": unref(messages).calendar.previousMonth,
|
|
679
|
+
onClick: _cache[1] || (_cache[1] = ($event) => move(-1))
|
|
680
|
+
}, [createVNode(_sfc_main$6, {
|
|
681
|
+
icon: prevIcon.value,
|
|
682
|
+
size: "sm"
|
|
683
|
+
}, null, 8, ["icon"])], 8, _hoisted_5$1)) : createCommentVNode("v-if", true),
|
|
684
|
+
canNext.value ? (openBlock(), createElementBlock("button", {
|
|
685
|
+
key: 1,
|
|
686
|
+
type: "button",
|
|
687
|
+
class: "astryx-date-touch-arrow",
|
|
688
|
+
"aria-label": unref(messages).calendar.nextMonth,
|
|
689
|
+
onClick: _cache[2] || (_cache[2] = ($event) => move(1))
|
|
690
|
+
}, [createVNode(_sfc_main$6, {
|
|
691
|
+
icon: nextIcon.value,
|
|
692
|
+
size: "sm"
|
|
693
|
+
}, null, 8, ["icon"])], 8, _hoisted_6$1)) : createCommentVNode("v-if", true),
|
|
694
|
+
createElementVNode("button", {
|
|
695
|
+
type: "button",
|
|
696
|
+
class: "astryx-date-touch-reset",
|
|
697
|
+
onClick: onReset
|
|
698
|
+
}, toDisplayString(unref(messages).dateInput.resetPicking), 1)
|
|
699
|
+
])) : createCommentVNode("v-if", true)]),
|
|
700
|
+
wheelsOpen.value ? (openBlock(), createElementBlock("div", _hoisted_7$1, [createVNode(_sfc_main$13, {
|
|
701
|
+
label: unref(messages).dateInput.monthWheel,
|
|
702
|
+
options: monthOptions.value,
|
|
703
|
+
"model-value": String(cursor.value.month),
|
|
704
|
+
"onUpdate:modelValue": setMonth
|
|
705
|
+
}, null, 8, [
|
|
706
|
+
"label",
|
|
707
|
+
"options",
|
|
708
|
+
"model-value"
|
|
709
|
+
]), createVNode(_sfc_main$13, {
|
|
710
|
+
label: unref(messages).dateInput.yearWheel,
|
|
711
|
+
options: yearOptions.value,
|
|
712
|
+
"model-value": String(cursor.value.year),
|
|
713
|
+
"onUpdate:modelValue": setYear
|
|
714
|
+
}, null, 8, [
|
|
715
|
+
"label",
|
|
716
|
+
"options",
|
|
717
|
+
"model-value"
|
|
718
|
+
])])) : (openBlock(), createElementBlock("div", {
|
|
719
|
+
key: 1,
|
|
720
|
+
onPointerdown: onPointerDown,
|
|
721
|
+
onPointerup: onPointerUp
|
|
722
|
+
}, [createVNode(_sfc_main$2, {
|
|
723
|
+
year: cursor.value.year,
|
|
724
|
+
month: cursor.value.month,
|
|
725
|
+
selected: __props.selected,
|
|
726
|
+
min: __props.min,
|
|
727
|
+
max: __props.max,
|
|
728
|
+
"is-date-disabled": __props.isDateDisabled,
|
|
729
|
+
"date-constraints": __props.dateConstraints,
|
|
730
|
+
"week-starts-on": __props.weekStartsOn,
|
|
731
|
+
onPick: _cache[3] || (_cache[3] = ($event) => emit("pick", $event)),
|
|
732
|
+
"onUpdate:view": onView
|
|
733
|
+
}, null, 8, [
|
|
734
|
+
"year",
|
|
735
|
+
"month",
|
|
736
|
+
"selected",
|
|
737
|
+
"min",
|
|
738
|
+
"max",
|
|
739
|
+
"is-date-disabled",
|
|
740
|
+
"date-constraints",
|
|
741
|
+
"week-starts-on"
|
|
742
|
+
])], 32)),
|
|
743
|
+
createElementVNode("button", {
|
|
744
|
+
type: "button",
|
|
745
|
+
class: "astryx-date-touch-save",
|
|
746
|
+
disabled: !wheelsOpen.value && __props.saveDisabled,
|
|
747
|
+
onClick: _cache[4] || (_cache[4] = ($event) => wheelsOpen.value ? wheelsOpen.value = false : emit("save"))
|
|
748
|
+
}, toDisplayString(wheelsOpen.value ? unref(messages).dateInput.doneChoosingMonth : resolvedSaveLabel.value), 9, _hoisted_8$1)
|
|
749
|
+
]);
|
|
750
|
+
};
|
|
751
|
+
}
|
|
752
|
+
});
|
|
753
|
+
//#endregion
|
|
345
754
|
//#region src/DateInput/DateInput.vue
|
|
346
755
|
const _hoisted_1 = ["data-status", "data-presentation"];
|
|
347
756
|
const _hoisted_2 = [
|
|
@@ -382,6 +791,7 @@ const _hoisted_10 = ["name", "value"];
|
|
|
382
791
|
const TOUCH_POINTER_QUERY = "(pointer: coarse)";
|
|
383
792
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
384
793
|
name: "AstryxDateInput",
|
|
794
|
+
inheritAttrs: false,
|
|
385
795
|
__name: "DateInput",
|
|
386
796
|
props: {
|
|
387
797
|
id: {},
|
|
@@ -396,6 +806,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
396
806
|
label: {},
|
|
397
807
|
description: {},
|
|
398
808
|
isLabelHidden: { type: Boolean },
|
|
809
|
+
labelHidden: { type: Boolean },
|
|
399
810
|
isOptional: { type: Boolean },
|
|
400
811
|
isRequired: { type: Boolean },
|
|
401
812
|
labelTooltip: {},
|
|
@@ -427,12 +838,68 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
427
838
|
nativePicker: {},
|
|
428
839
|
numberOfMonths: { default: 1 },
|
|
429
840
|
weekStartsOn: {},
|
|
430
|
-
width: {}
|
|
841
|
+
width: {},
|
|
842
|
+
containerClass: { type: [
|
|
843
|
+
Boolean,
|
|
844
|
+
null,
|
|
845
|
+
String,
|
|
846
|
+
Object,
|
|
847
|
+
Array
|
|
848
|
+
] },
|
|
849
|
+
containerStyle: { type: [
|
|
850
|
+
Boolean,
|
|
851
|
+
null,
|
|
852
|
+
String,
|
|
853
|
+
Object,
|
|
854
|
+
Array
|
|
855
|
+
] },
|
|
856
|
+
controlClass: { type: [
|
|
857
|
+
Boolean,
|
|
858
|
+
null,
|
|
859
|
+
String,
|
|
860
|
+
Object,
|
|
861
|
+
Array
|
|
862
|
+
] },
|
|
863
|
+
controlStyle: { type: [
|
|
864
|
+
Boolean,
|
|
865
|
+
null,
|
|
866
|
+
String,
|
|
867
|
+
Object,
|
|
868
|
+
Array
|
|
869
|
+
] }
|
|
431
870
|
},
|
|
432
871
|
emits: ["update:modelValue", "change"],
|
|
433
872
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
434
873
|
const props = __props;
|
|
435
874
|
const emit = __emit;
|
|
875
|
+
const attrs = useAttrs();
|
|
876
|
+
const parts = useFieldPartStyling({
|
|
877
|
+
component: "DateInput",
|
|
878
|
+
props,
|
|
879
|
+
attrs,
|
|
880
|
+
reservedAttrs: [
|
|
881
|
+
"id",
|
|
882
|
+
"value",
|
|
883
|
+
"type",
|
|
884
|
+
"disabled",
|
|
885
|
+
"readonly",
|
|
886
|
+
"name",
|
|
887
|
+
"min",
|
|
888
|
+
"max",
|
|
889
|
+
"placeholder",
|
|
890
|
+
"aria-labelledby",
|
|
891
|
+
"aria-describedby",
|
|
892
|
+
"aria-required",
|
|
893
|
+
"aria-busy",
|
|
894
|
+
"aria-disabled",
|
|
895
|
+
"aria-invalid",
|
|
896
|
+
"aria-expanded",
|
|
897
|
+
"aria-controls",
|
|
898
|
+
"aria-haspopup"
|
|
899
|
+
]
|
|
900
|
+
});
|
|
901
|
+
const hideLabel = useResolvedLabelHidden(() => props.isLabelHidden, () => props.labelHidden);
|
|
902
|
+
const ariaRequired = useAriaRequired(props);
|
|
436
903
|
const PassThrough = defineComponent({
|
|
437
904
|
name: "DateInputPassThrough",
|
|
438
905
|
setup(_, { slots }) {
|
|
@@ -518,16 +985,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
518
985
|
}
|
|
519
986
|
const statusValue = computed(() => resolvedStatus(props.status));
|
|
520
987
|
const statusType = computed(() => statusValue.value?.type);
|
|
521
|
-
const showsField = computed(() =>
|
|
522
|
-
|
|
523
|
-
return Boolean(props.label || props.description || statusValue.value?.message);
|
|
524
|
-
});
|
|
525
|
-
const shell = computed(() => showsField.value ? _sfc_main$9 : PassThrough);
|
|
988
|
+
const showsField = computed(() => Boolean(props.label || props.description || statusValue.value?.message));
|
|
989
|
+
const shell = computed(() => showsField.value ? _sfc_main$11 : PassThrough);
|
|
526
990
|
const fieldBindings = computed(() => showsField.value ? {
|
|
527
991
|
label: props.label ?? "",
|
|
528
992
|
inputId: inputId.value,
|
|
529
993
|
description: props.description,
|
|
530
|
-
isLabelHidden:
|
|
994
|
+
isLabelHidden: hideLabel.value || !props.label,
|
|
531
995
|
isDisabled: locked.value,
|
|
532
996
|
isOptional: props.isOptional,
|
|
533
997
|
isRequired: props.isRequired,
|
|
@@ -539,13 +1003,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
539
1003
|
const toggleLabel = computed(() => isOpen.value ? messages.value.dateInput.closeCalendar : messages.value.dateInput.openCalendar);
|
|
540
1004
|
function describedBy(fieldIds) {
|
|
541
1005
|
return [
|
|
1006
|
+
attrs["aria-describedby"],
|
|
542
1007
|
props.describedBy,
|
|
543
1008
|
fieldIds,
|
|
544
1009
|
showsDisabledMessage.value ? disabledMessageId : void 0
|
|
545
1010
|
].filter(Boolean).join(" ") || void 0;
|
|
546
1011
|
}
|
|
1012
|
+
function inputAttrs() {
|
|
1013
|
+
return parts.forwardedAttrs();
|
|
1014
|
+
}
|
|
547
1015
|
function onInput(event) {
|
|
548
|
-
if (useSheet.value) return;
|
|
1016
|
+
if (useSheet.value || event instanceof InputEvent && event.isComposing) return;
|
|
549
1017
|
const target = event.target;
|
|
550
1018
|
const value = target.value.trim();
|
|
551
1019
|
inputValue.value = target.value;
|
|
@@ -566,7 +1034,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
566
1034
|
if (useSheet.value) openCalendar();
|
|
567
1035
|
}
|
|
568
1036
|
function onInputKeyDown(event) {
|
|
569
|
-
if (locked.value || isOpen.value) return;
|
|
1037
|
+
if (isImeKeyEvent(event) || locked.value || isOpen.value) return;
|
|
570
1038
|
if (event.key === "ArrowDown" || event.altKey && event.key === "ArrowDown") {
|
|
571
1039
|
event.preventDefault();
|
|
572
1040
|
openCalendar();
|
|
@@ -574,8 +1042,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
574
1042
|
}
|
|
575
1043
|
function onCalendarChange(date) {
|
|
576
1044
|
modelValueRef.value = date;
|
|
1045
|
+
if (!useSheet.value) {
|
|
1046
|
+
isOpen.value = false;
|
|
1047
|
+
inputRef.value?.blur();
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
function onSheetSave() {
|
|
577
1051
|
isOpen.value = false;
|
|
578
|
-
|
|
1052
|
+
}
|
|
1053
|
+
function onSheetReset() {
|
|
1054
|
+
modelValueRef.value = null;
|
|
579
1055
|
}
|
|
580
1056
|
function onClear(event) {
|
|
581
1057
|
event.stopPropagation();
|
|
@@ -597,7 +1073,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
597
1073
|
syncDisplayValue();
|
|
598
1074
|
return (_ctx, _cache) => {
|
|
599
1075
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
600
|
-
surface.value === "native" ? (openBlock(), createBlock(_sfc_main$
|
|
1076
|
+
surface.value === "native" ? (openBlock(), createBlock(_sfc_main$3, mergeProps({
|
|
601
1077
|
key: 0,
|
|
602
1078
|
"input-id": inputId.value,
|
|
603
1079
|
"model-value": __props.modelValue,
|
|
@@ -609,7 +1085,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
609
1085
|
"is-date-disabled": __props.isDateDisabled,
|
|
610
1086
|
"date-constraints": __props.dateConstraints,
|
|
611
1087
|
name: __props.name,
|
|
612
|
-
"is-label-hidden":
|
|
1088
|
+
"is-label-hidden": unref(hideLabel),
|
|
613
1089
|
"is-optional": __props.isOptional,
|
|
614
1090
|
"is-required": __props.isRequired,
|
|
615
1091
|
"label-tooltip": __props.labelTooltip,
|
|
@@ -622,11 +1098,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
622
1098
|
status: __props.status,
|
|
623
1099
|
"status-variant": __props.statusVariant,
|
|
624
1100
|
format: __props.format,
|
|
625
|
-
"described-by": props.describedBy,
|
|
1101
|
+
"described-by": [unref(attrs)["aria-describedby"], props.describedBy].filter(Boolean).join(" ") || void 0,
|
|
626
1102
|
"disabled-message": disabledMessage.value,
|
|
627
1103
|
width: __props.width,
|
|
628
|
-
"
|
|
629
|
-
|
|
1104
|
+
"container-class": unref(parts).containerClass.value,
|
|
1105
|
+
"container-style": unref(parts).containerStyle.value,
|
|
1106
|
+
"control-class": unref(parts).controlClass(),
|
|
1107
|
+
"control-style": unref(parts).controlStyle()
|
|
1108
|
+
}, inputAttrs(), { "onUpdate:modelValue": commit }), null, 16, [
|
|
630
1109
|
"input-id",
|
|
631
1110
|
"model-value",
|
|
632
1111
|
"label",
|
|
@@ -652,18 +1131,30 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
652
1131
|
"format",
|
|
653
1132
|
"described-by",
|
|
654
1133
|
"disabled-message",
|
|
655
|
-
"width"
|
|
656
|
-
|
|
1134
|
+
"width",
|
|
1135
|
+
"container-class",
|
|
1136
|
+
"container-style",
|
|
1137
|
+
"control-class",
|
|
1138
|
+
"control-style"
|
|
1139
|
+
])) : (openBlock(), createBlock(resolveDynamicComponent(shell.value), mergeProps({ key: 1 }, fieldBindings.value, {
|
|
1140
|
+
class: unref(parts).containerClass.value,
|
|
1141
|
+
style: unref(parts).containerStyle.value
|
|
1142
|
+
}), {
|
|
657
1143
|
default: withCtx((field) => [createElementVNode("div", {
|
|
658
1144
|
ref_key: "containerRef",
|
|
659
1145
|
ref: containerRef,
|
|
660
|
-
class: normalizeClass(["astryx-date-input", [
|
|
1146
|
+
class: normalizeClass(["astryx-date-input", [
|
|
1147
|
+
statusType.value ? `status-${statusType.value}` : void 0,
|
|
1148
|
+
`size-${props.size}`,
|
|
1149
|
+
unref(parts).controlClass()
|
|
1150
|
+
]]),
|
|
1151
|
+
style: normalizeStyle(unref(parts).controlStyle()),
|
|
661
1152
|
"data-status": statusType.value,
|
|
662
1153
|
"data-presentation": useSheet.value ? "bottom-sheet" : "popover",
|
|
663
1154
|
onPointerenter: _cache[2] || (_cache[2] = (...args) => unref(disabledTooltip).onPointerEnter && unref(disabledTooltip).onPointerEnter(...args)),
|
|
664
1155
|
onPointerleave: _cache[3] || (_cache[3] = (...args) => unref(disabledTooltip).onPointerLeave && unref(disabledTooltip).onPointerLeave(...args))
|
|
665
1156
|
}, [
|
|
666
|
-
createVNode(_sfc_main$
|
|
1157
|
+
createVNode(_sfc_main$12, {
|
|
667
1158
|
"is-open": useSheet.value ? false : isOpen.value,
|
|
668
1159
|
"is-enabled": !useSheet.value && !locked.value,
|
|
669
1160
|
placement: "below",
|
|
@@ -680,7 +1171,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
680
1171
|
content: withCtx(() => [!useSheet.value ? (openBlock(), createElementBlock("div", {
|
|
681
1172
|
key: 0,
|
|
682
1173
|
id: popupId.value
|
|
683
|
-
}, [createVNode(_sfc_main$
|
|
1174
|
+
}, [createVNode(_sfc_main$9, {
|
|
684
1175
|
"model-value": props.modelValue,
|
|
685
1176
|
min: props.min,
|
|
686
1177
|
max: props.max,
|
|
@@ -716,7 +1207,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
716
1207
|
icon: "calendar",
|
|
717
1208
|
size: "sm"
|
|
718
1209
|
})], 40, _hoisted_4),
|
|
719
|
-
createElementVNode("input", {
|
|
1210
|
+
createElementVNode("input", mergeProps(inputAttrs(), {
|
|
720
1211
|
id: inputId.value,
|
|
721
1212
|
ref_key: "inputRef",
|
|
722
1213
|
ref: inputRef,
|
|
@@ -733,7 +1224,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
733
1224
|
"aria-labelledby": showsField.value ? field?.labelId : void 0,
|
|
734
1225
|
"aria-describedby": describedBy(field?.describedBy),
|
|
735
1226
|
"aria-invalid": statusType.value === "error" ? "true" : void 0,
|
|
736
|
-
"aria-required":
|
|
1227
|
+
"aria-required": unref(ariaRequired),
|
|
737
1228
|
"aria-busy": busy.value || void 0,
|
|
738
1229
|
"aria-controls": popupId.value,
|
|
739
1230
|
"aria-expanded": isOpen.value,
|
|
@@ -744,7 +1235,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
744
1235
|
onFocus: _cache[0] || (_cache[0] = (...args) => unref(disabledTooltip).onFocus && unref(disabledTooltip).onFocus(...args)),
|
|
745
1236
|
onClick: openCalendar,
|
|
746
1237
|
onKeydown: onInputKeyDown
|
|
747
|
-
}, null,
|
|
1238
|
+
}), null, 16, _hoisted_5),
|
|
748
1239
|
showsClear.value ? (openBlock(), createElementBlock("button", {
|
|
749
1240
|
key: 1,
|
|
750
1241
|
type: "button",
|
|
@@ -756,12 +1247,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
756
1247
|
icon: "close",
|
|
757
1248
|
size: "sm"
|
|
758
1249
|
})], 8, _hoisted_6)) : _ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_7, [renderSlot(_ctx.$slots, "suffix")])) : createCommentVNode("v-if", true),
|
|
759
|
-
busy.value ? (openBlock(), createBlock(_sfc_main$
|
|
1250
|
+
busy.value ? (openBlock(), createBlock(_sfc_main$10, {
|
|
760
1251
|
key: 3,
|
|
761
1252
|
class: "astryx-date-input-spinner",
|
|
762
1253
|
size: "sm",
|
|
763
1254
|
"aria-label": unref(messages).dateInput.loading
|
|
764
|
-
}, null, 8, ["aria-label"])) : statusType.value && props.statusVariant !== "tooltip" ? (openBlock(), createBlock(_sfc_main$
|
|
1255
|
+
}, null, 8, ["aria-label"])) : statusType.value && props.statusVariant !== "tooltip" ? (openBlock(), createBlock(_sfc_main$7, {
|
|
765
1256
|
key: 4,
|
|
766
1257
|
type: statusType.value
|
|
767
1258
|
}, null, 8, ["type"])) : createCommentVNode("v-if", true)
|
|
@@ -773,7 +1264,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
773
1264
|
"width",
|
|
774
1265
|
"label"
|
|
775
1266
|
]),
|
|
776
|
-
useSheet.value ? (openBlock(), createBlock(_sfc_main$
|
|
1267
|
+
useSheet.value ? (openBlock(), createBlock(_sfc_main$8, {
|
|
777
1268
|
key: 0,
|
|
778
1269
|
"is-open": isOpen.value,
|
|
779
1270
|
"onUpdate:isOpen": _cache[1] || (_cache[1] = ($event) => isOpen.value = $event),
|
|
@@ -781,22 +1272,22 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
781
1272
|
height: "hug",
|
|
782
1273
|
padding: 0
|
|
783
1274
|
}, {
|
|
784
|
-
default: withCtx(() => [createElementVNode("div", { id: popupId.value }, [createVNode(_sfc_main$
|
|
785
|
-
|
|
1275
|
+
default: withCtx(() => [createElementVNode("div", { id: popupId.value }, [createVNode(_sfc_main$1, {
|
|
1276
|
+
selected: props.modelValue,
|
|
786
1277
|
min: props.min,
|
|
787
1278
|
max: props.max,
|
|
788
1279
|
"is-date-disabled": props.isDateDisabled,
|
|
789
1280
|
"date-constraints": props.dateConstraints,
|
|
790
|
-
"number-of-months": props.numberOfMonths,
|
|
791
1281
|
"week-starts-on": props.weekStartsOn,
|
|
792
|
-
|
|
1282
|
+
onPick: onCalendarChange,
|
|
1283
|
+
onSave: onSheetSave,
|
|
1284
|
+
onReset: onSheetReset
|
|
793
1285
|
}, null, 8, [
|
|
794
|
-
"
|
|
1286
|
+
"selected",
|
|
795
1287
|
"min",
|
|
796
1288
|
"max",
|
|
797
1289
|
"is-date-disabled",
|
|
798
1290
|
"date-constraints",
|
|
799
|
-
"number-of-months",
|
|
800
1291
|
"week-starts-on"
|
|
801
1292
|
])], 8, _hoisted_9)]),
|
|
802
1293
|
_: 1
|
|
@@ -807,17 +1298,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
807
1298
|
name: props.name,
|
|
808
1299
|
value: props.modelValue ? toIso(props.modelValue) : ""
|
|
809
1300
|
}, null, 8, _hoisted_10)) : createCommentVNode("v-if", true)
|
|
810
|
-
],
|
|
1301
|
+
], 46, _hoisted_1)]),
|
|
811
1302
|
_: 3
|
|
812
|
-
}, 16)),
|
|
813
|
-
showsDisabledMessage.value && surface.value !== "native" ? (openBlock(), createBlock(_sfc_main$
|
|
1303
|
+
}, 16, ["class", "style"])),
|
|
1304
|
+
showsDisabledMessage.value && surface.value !== "native" ? (openBlock(), createBlock(_sfc_main$4, {
|
|
814
1305
|
key: 2,
|
|
815
1306
|
id: disabledMessageId
|
|
816
1307
|
}, {
|
|
817
1308
|
default: withCtx(() => [createTextVNode(toDisplayString(disabledMessage.value), 1)]),
|
|
818
1309
|
_: 1
|
|
819
1310
|
})) : createCommentVNode("v-if", true),
|
|
820
|
-
showsDisabledMessage.value && surface.value !== "native" ? (openBlock(), createBlock(_sfc_main$
|
|
1311
|
+
showsDisabledMessage.value && surface.value !== "native" ? (openBlock(), createBlock(_sfc_main$5, {
|
|
821
1312
|
key: 3,
|
|
822
1313
|
id: `${disabledMessageId}-tooltip`,
|
|
823
1314
|
anchor: containerRef.value,
|
|
@@ -838,4 +1329,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
838
1329
|
}
|
|
839
1330
|
});
|
|
840
1331
|
//#endregion
|
|
841
|
-
export { _sfc_main as t };
|
|
1332
|
+
export { _sfc_main$1 as n, _sfc_main as t };
|