@astryx-vue/core 0.3.0 → 0.4.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/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-RAVA_cT1.js → AlertDialog-C2inDZWG.js} +5 -5
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-0wTvOo3H.js → AppShell-CumzH-8z.js} +3 -3
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-pPZ4dI_s.js → Avatar-BW0TE8t9.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-DLC_FFR5.js} +57 -13
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-GbGxrqQO.js → Banner-C5VAwo4D.js} +68 -34
- 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-CTaz7Kh4.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-BAqzzQm2.js} +5 -5
- package/dist/Card/index.d.ts +2 -2
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CA8zpD9v.js → Carousel-DXC22UWq.js} +4 -4
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bmna9EOA.js → Chat-BdJW6IX5.js} +147 -83
- 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-DJHCbwgC.js} +19 -11
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CX1i_jVP.js → CheckboxList-BdZIP4_J.js} +155 -38
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-Djgwa0ko.js → Citation-DbZn2vms.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.js +3 -3
- package/dist/{Code-XnPuGxey.js → Code-Bg7GBdxy.js} +2 -1
- package/dist/{CodeBlock-D0BFubut.js → CodeBlock-Caaflp7C.js} +3 -3
- 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-C_MClfAg.js} +143 -63
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DWLdKPGI.js → ComplexSelector-BeVQaqRf.js} +85 -20
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-Bq9b3Ti5.js → ContextMenu-C6hPYvYz.js} +297 -179
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DT518j5E.js → DateInput-BjLdmYor.js} +567 -76
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Bqi5tlIA.js → DateRangeInput-Br3wVEfD.js} +85 -20
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/DateTimeInput-CAZBwoRe.js +562 -0
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +2 -2
- package/dist/{Dialog-BiOSKQso.js → Dialog-Dce4Y97V.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-BdGmQVb1.js} +85 -57
- package/dist/{DropdownMenu-DEb2dSSP.js → DropdownMenu-BzQrNV9C.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--OEsLBfE.js} +4 -3
- package/dist/{FieldInfoTip-Ds-sW_jY.js → FieldInfoTip-gxsnfkZw.js} +3 -3
- package/dist/{FieldLabel-BNeXRuGH.js → FieldLabel-jxIiWgLw.js} +12 -7
- 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 → FileInput-B_pUxB0Y.js} +106 -29
- 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-CwXPan8c.js +40 -0
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +2 -2
- package/dist/{InputGroup-CA03Smrs.js → InputGroup-DiiocoIW.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-kBapgKAQ.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-D8wyPgMK.js} +8 -6
- package/dist/Link/index.js +1 -1
- package/dist/{Link-BqHCtiyt.js → Link-DweIpOtN.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 +5 -2
- package/dist/Markdown/parser/index.d.ts +4 -0
- package/dist/Markdown/parser/index.js +3 -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-DhVfOvXk.js} +195 -484
- package/dist/MediaTheme-DlLqYhDy.js +433 -0
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-B-OelQlt.js → MetadataList-CEYceIlN.js} +15 -7
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DxGz0xKA.js → MobileNavToggle-pdoJFZHx.js} +52 -17
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-Dlb7MLlW.js → MoreMenu-CFNqSRev.js} +72 -59
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/MultiSelector-DuVatmq5.js +1456 -0
- package/dist/{NavDisclosure-C_fugrQ3.js → NavDisclosure-Bq9DTZLO.js} +29 -7
- package/dist/{NavHeadingSurface-B3yJspSN.js → NavHeadingSurface-C4v_MtkX.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-B0vzOg3N.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-CfGv2F1o.js} +91 -6
- package/dist/OverflowList/index.d.ts +2 -2
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-NmrSMbxb.js → OverflowList-BgRLZ3dh.js} +23 -6
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DqwNQFRp.js → Pagination-Bfe12018.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-BoAMdFaT.js} +774 -586
- 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-BIipql-L.js} +94 -26
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-xY1cwLdZ.js → RadioList-GyhgBg4j.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-TPlUCAHD.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-CPISLzp7.js +1049 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BF8mYDxl.js → SideNav-CN2QeAtY.js} +51 -37
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DWobsPgm.js → Slider-pdC0jpHu.js} +172 -46
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner-DdVUadii.js +200 -0
- package/dist/Stack/index.d.ts +1 -1
- 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.js +1 -1
- package/dist/{Stepper-CE8dHysu.js → Stepper-CyaSRSdu.js} +101 -79
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DaVPRxvN.js → Switch-Z2Vfiiic.js} +38 -22
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-DIkK9sgK.js → TabList-DRqP0Hrv.js} +205 -63
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +1 -1
- package/dist/{Table-fecqnm7P.js → Table-BcrrylMX.js} +726 -452
- 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-DA9CCG_J.js} +104 -50
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-zFT1_qgI.js → TextInput-CI96einV.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-B2ZAY59J.js} +13 -10
- package/dist/{TimeField-CoHDGmsP.js → TimeField-CpAgja9D.js} +297 -40
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-D2k3Ux3p.js → TimeInput-Bw_lHS4M.js} +78 -9
- package/dist/Timer/index.d.ts +1 -1
- 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-BFNuoTZ0.js} +5 -5
- package/dist/Toast/index.d.ts +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/Toast-DwnPjx6j.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-BfS4vi__.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-Ci3E5bvP.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-gW59zp1o.js} +16 -15
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-BUz-KZJd.js → TreeList-DaoI7zaH.js} +124 -41
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-JP9RT87x.js → Typeahead-D4JjvjK4.js} +123 -26
- package/dist/{TypeaheadMenu-DBW6rHeO.js → TypeaheadMenu-BQlMrfqX.js} +141 -51
- package/dist/{announce-Cnio10Wk.js → announce-B210eJVf.js} +17 -2
- package/dist/characterReferences-BJ-jLhsR.js +65 -0
- 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-Bc02zKAO.js} +167 -197
- package/dist/context-B6UElI5X.js +5 -0
- package/dist/{context-Cfjh8te1.js → context-Cfml4jaK.js} +5 -3
- package/dist/{context-iABt_ueM.js → context-DWfi56sq.js} +451 -122
- 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-Cde5JvtX.d.ts → index-B-nESNam.d.ts} +8 -7
- package/dist/{index-CsNi1I8j.d.ts → index-B08-Uxhv.d.ts} +4 -2
- package/dist/{index-Cn-sSds-.d.ts → index-B56j4eI2.d.ts} +24 -1
- package/dist/{index-BkjSF265.d.ts → index-BEZ4ezJk.d.ts} +3 -3
- package/dist/{index-DeQwYJbg.d.ts → index-BNaRK-s5.d.ts} +10 -1
- package/dist/{index-0QGtSf3r.d.ts → index-BO9TY87G.d.ts} +3 -2
- package/dist/{index-IBAInumL.d.ts → index-BQEJj72c.d.ts} +23 -10
- 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-BkUkm6Al.d.ts +11 -0
- package/dist/{index-ClNU2Th8.d.ts → index-Bn-v89Vt.d.ts} +10 -6
- package/dist/{index-Bu8NA2SD.d.ts → index-BnEhvmdR.d.ts} +16 -7
- package/dist/index-Bo-ofFyg.d.ts +166 -0
- package/dist/{index-i0tNFWfz.d.ts → index-BqhgeAT4.d.ts} +2 -0
- package/dist/{index-DWh2WC8W.d.ts → index-C4Cjz6OK.d.ts} +2 -2
- 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-xrzJC4wm.d.ts → index-CJ6ajsUC.d.ts} +1 -1
- package/dist/{index-B9e52paP.d.ts → index-CK-Dbh0f.d.ts} +1 -1
- package/dist/index-CKUfpmFL.d.ts +375 -0
- package/dist/{index-DXpSFlPG.d.ts → index-CKgBTAzC.d.ts} +4 -4
- package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
- package/dist/{index-B4OOtNP8.d.ts → index-CPtDjmcX.d.ts} +3 -3
- package/dist/{index-12QYAbiz.d.ts → index-CRrSHbok.d.ts} +3 -2
- package/dist/{index-DG52Bg0W.d.ts → index-CTf3SK0b.d.ts} +6 -0
- package/dist/{index-BVKivP59.d.ts → index-CTjkJP4x.d.ts} +32 -3
- package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-GI9xIV9l.d.ts → index-CikMzeab.d.ts} +2 -2
- package/dist/{index-DUaLJO7l.d.ts → index-CpNlPLBF.d.ts} +172 -126
- package/dist/{index-yT1yiiww.d.ts → index-Cs1xsHKi.d.ts} +24 -12
- package/dist/{index-Cyb9Du5Z.d.ts → index-CtTGt6Dv.d.ts} +1 -1
- package/dist/{index-Byar3h1e.d.ts → index-D05JGsT3.d.ts} +6 -3
- package/dist/{index-B3Fomy15.d.ts → index-D0_HsuC3.d.ts} +3 -3
- package/dist/{index-BgT6mH3U.d.ts → index-D7ShT2c-.d.ts} +1 -1
- package/dist/{index-CkKPMIeX.d.ts → index-D7XRtUTY.d.ts} +9 -0
- package/dist/{index-TntQsADQ.d.ts → index-DEm3kRBO.d.ts} +4 -3
- package/dist/{index-C2nbK2AA.d.ts → index-DLAG3m9W.d.ts} +13 -3
- package/dist/{index-DVmgNb78.d.ts → index-DRJZ-v1E.d.ts} +4 -4
- package/dist/{index-CL1T2j4y.d.ts → index-DY8Wph-A.d.ts} +3 -3
- package/dist/{index-B1WJxt-n.d.ts → index-DfC05uKG.d.ts} +17 -7
- package/dist/{index-C5e-7Obr.d.ts → index-Dj1_1t3j.d.ts} +19 -6
- package/dist/{index-D41_xqjs.d.ts → index-Dr4b_oji.d.ts} +20 -13
- package/dist/{index-CqE4Bf3Q.d.ts → index-Ds201-d2.d.ts} +16 -2
- package/dist/{index-DIXAzTKL.d.ts → index-DxxudRgB.d.ts} +1 -1
- package/dist/{index-B42oE_F-.d.ts → index-IfsSCj8J.d.ts} +18 -5
- 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-BhpAUzUr.d.ts → index-unAZVFGz.d.ts} +2 -2
- package/dist/index.d.ts +80 -74
- package/dist/index.js +149 -134
- 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-BGHKG_9N.d.ts → loadCatalog-DlLFZreI.d.ts} +281 -7
- package/dist/loadCatalog-eopw74qb.js +424 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -3
- package/dist/locale-CabGJlGp.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-RSeMzAN1.d.ts +238 -0
- package/dist/publicParser-B0MRoikr.d.ts +141 -0
- package/dist/publicParser-uHC_T0Fo.js +895 -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-mCpJBvra.js} +5 -14
- package/dist/{semantic-CKH9XVqa.d.ts → semantic-BF_AjLvk.d.ts} +6 -3
- package/dist/slug-C65CUsf9.js +32 -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-xr3gvREu.js +731 -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-MZmfBWid.js} +5 -23
- package/dist/{useInputContainer-CpgDe2-4.js → useInputContainer-CLcYrby4.js} +1 -1
- package/dist/{useInputStatusIcon-DBOwxV4x.js → useInputStatusIcon-DAE7PExr.js} +1 -1
- 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-BmWt2BBt.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 +124 -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 +22 -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 +4 -0
- 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 -10
- package/styles/text-area.css +1 -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/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/index-BH9PzQ1F.d.ts +0 -87
- package/dist/link-C4_WogdF.js +0 -18
- 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
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "./FieldIcon--NTgW5IU.js";
|
|
3
|
+
import { t as _sfc_main$3 } from "./IconButton-DI-XBbtV.js";
|
|
4
|
+
import { o as useAstryxLocale, s as useAstryxMessages } from "./context-DWfi56sq.js";
|
|
5
|
+
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
6
|
+
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
7
|
+
import { a as parseISOTime, n as formatISOTime, t as formatDisplayTime } from "./useTimeValue-BJd0xBhG.js";
|
|
8
|
+
import { t as _sfc_main$4 } from "./BottomSheet-B4sc3F1S.js";
|
|
9
|
+
import { t as _sfc_main$5 } from "./Icon-KDnUyY7f.js";
|
|
10
|
+
import { t as _sfc_main$6 } from "./Spinner-DdVUadii.js";
|
|
11
|
+
import { t as _sfc_main$7 } from "./Field--OEsLBfE.js";
|
|
12
|
+
import { t as useFieldPartStyling } from "./fieldParts--SyRZVQG.js";
|
|
13
|
+
import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
|
|
14
|
+
import { n as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-BjLdmYor.js";
|
|
15
|
+
import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-CpAgja9D.js";
|
|
16
|
+
import { r as effectivePickerPresentation, s as resolvePickerPresentation } from "./inputPresentation-BOyHkCDr.js";
|
|
17
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, ref, toDisplayString, unref, useAttrs, useId, useModel, watch, withCtx } from "vue";
|
|
18
|
+
import "../styles/date-time-input.css";
|
|
19
|
+
//#region src/DateTimeInput/TouchDateTimeField.vue
|
|
20
|
+
const _hoisted_1$1 = {
|
|
21
|
+
class: "astryx-date-time-fields",
|
|
22
|
+
"data-presentation": "bottom-sheet"
|
|
23
|
+
};
|
|
24
|
+
const _hoisted_2$1 = ["disabled", "aria-describedby"];
|
|
25
|
+
const _hoisted_3 = ["data-placeholder"];
|
|
26
|
+
const _hoisted_4 = [
|
|
27
|
+
"id",
|
|
28
|
+
"disabled",
|
|
29
|
+
"aria-label",
|
|
30
|
+
"aria-describedby"
|
|
31
|
+
];
|
|
32
|
+
const _hoisted_5 = ["data-placeholder"];
|
|
33
|
+
const _hoisted_6 = { class: "astryx-date-time-touch" };
|
|
34
|
+
const _hoisted_7 = ["aria-label"];
|
|
35
|
+
const _hoisted_8 = ["aria-selected"];
|
|
36
|
+
const _hoisted_9 = ["aria-selected"];
|
|
37
|
+
const _hoisted_10 = {
|
|
38
|
+
key: 1,
|
|
39
|
+
class: "astryx-date-time-touch-time"
|
|
40
|
+
};
|
|
41
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
42
|
+
__name: "TouchDateTimeField",
|
|
43
|
+
props: {
|
|
44
|
+
label: {},
|
|
45
|
+
inputId: {},
|
|
46
|
+
date: { default: null },
|
|
47
|
+
time: { default: null },
|
|
48
|
+
describedBy: {},
|
|
49
|
+
placeholder: {},
|
|
50
|
+
timePlaceholder: {},
|
|
51
|
+
timeLabel: {},
|
|
52
|
+
hourFormat: { default: "12h" },
|
|
53
|
+
hasSeconds: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: false
|
|
56
|
+
},
|
|
57
|
+
min: {},
|
|
58
|
+
max: {},
|
|
59
|
+
dateConstraints: {},
|
|
60
|
+
weekStartsOn: {},
|
|
61
|
+
isDisabled: { type: Boolean }
|
|
62
|
+
},
|
|
63
|
+
emits: [
|
|
64
|
+
"pickDate",
|
|
65
|
+
"pickTime",
|
|
66
|
+
"reset"
|
|
67
|
+
],
|
|
68
|
+
setup(__props, { emit: __emit }) {
|
|
69
|
+
const props = __props;
|
|
70
|
+
const emit = __emit;
|
|
71
|
+
const messages = useAstryxMessages();
|
|
72
|
+
const locale = useAstryxLocale();
|
|
73
|
+
const open = ref(false);
|
|
74
|
+
const panel = ref("date");
|
|
75
|
+
function datePart(value) {
|
|
76
|
+
const date = value?.slice(0, 10) ?? "";
|
|
77
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(date)) return null;
|
|
78
|
+
const [year, month, day] = date.split("-").map(Number);
|
|
79
|
+
return new Date(year, month - 1, day);
|
|
80
|
+
}
|
|
81
|
+
const dateText = computed(() => props.date ? formatInstant(props.date, "date_long", locale.value) : "");
|
|
82
|
+
const timeText = computed(() => props.time ? formatDisplayTime(props.time, props.hourFormat, props.hasSeconds) : "");
|
|
83
|
+
function clockBound(value) {
|
|
84
|
+
const parsed = parseISOTime(value?.slice(11) ?? "");
|
|
85
|
+
return parsed ? formatISOTime(parsed, true) : void 0;
|
|
86
|
+
}
|
|
87
|
+
function dateBound(value) {
|
|
88
|
+
return datePart(value ?? null) ?? void 0;
|
|
89
|
+
}
|
|
90
|
+
function show(next) {
|
|
91
|
+
if (props.isDisabled) return;
|
|
92
|
+
panel.value = next;
|
|
93
|
+
open.value = true;
|
|
94
|
+
}
|
|
95
|
+
function onDate(value) {
|
|
96
|
+
if (props.isDisabled) return;
|
|
97
|
+
emit("pickDate", value);
|
|
98
|
+
}
|
|
99
|
+
function onTime(value) {
|
|
100
|
+
if (props.isDisabled) return;
|
|
101
|
+
emit("pickTime", value);
|
|
102
|
+
}
|
|
103
|
+
function onReset() {
|
|
104
|
+
if (props.isDisabled) return;
|
|
105
|
+
emit("reset");
|
|
106
|
+
}
|
|
107
|
+
function saveDate() {
|
|
108
|
+
if (!props.date) return;
|
|
109
|
+
panel.value = "time";
|
|
110
|
+
}
|
|
111
|
+
function close() {
|
|
112
|
+
open.value = false;
|
|
113
|
+
}
|
|
114
|
+
return (_ctx, _cache) => {
|
|
115
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1$1, [createElementVNode("button", {
|
|
116
|
+
type: "button",
|
|
117
|
+
class: "astryx-date-touch-segment",
|
|
118
|
+
disabled: __props.isDisabled,
|
|
119
|
+
"aria-describedby": __props.describedBy,
|
|
120
|
+
onClick: _cache[0] || (_cache[0] = ($event) => show("date"))
|
|
121
|
+
}, [createVNode(_sfc_main$5, {
|
|
122
|
+
class: "astryx-date-time-toggle-icon",
|
|
123
|
+
icon: "calendar",
|
|
124
|
+
size: "sm"
|
|
125
|
+
}), createElementVNode("span", { "data-placeholder": !dateText.value || void 0 }, toDisplayString(dateText.value || __props.placeholder || unref(messages).dateTimeInput.placeholder), 9, _hoisted_3)], 8, _hoisted_2$1), createElementVNode("button", {
|
|
126
|
+
id: __props.inputId,
|
|
127
|
+
type: "button",
|
|
128
|
+
class: "astryx-date-touch-segment",
|
|
129
|
+
disabled: __props.isDisabled,
|
|
130
|
+
"aria-label": __props.timeLabel || unref(messages).dateTimeInput.timeLabel,
|
|
131
|
+
"aria-describedby": __props.describedBy,
|
|
132
|
+
onClick: _cache[1] || (_cache[1] = ($event) => show("time"))
|
|
133
|
+
}, [createVNode(_sfc_main$5, {
|
|
134
|
+
class: "astryx-date-time-clock-icon",
|
|
135
|
+
icon: "clock",
|
|
136
|
+
size: "sm"
|
|
137
|
+
}), createElementVNode("span", { "data-placeholder": !timeText.value || void 0 }, toDisplayString(timeText.value || __props.timePlaceholder || unref(messages).dateTimeInput.timePlaceholder), 9, _hoisted_5)], 8, _hoisted_4)]), createVNode(_sfc_main$4, {
|
|
138
|
+
"is-open": open.value,
|
|
139
|
+
"onUpdate:isOpen": _cache[4] || (_cache[4] = ($event) => open.value = $event),
|
|
140
|
+
label: unref(messages).dateTimeInput.dialogLabel,
|
|
141
|
+
height: "hug",
|
|
142
|
+
padding: 0
|
|
143
|
+
}, {
|
|
144
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_6, [createElementVNode("div", {
|
|
145
|
+
class: "astryx-date-time-touch-tabs",
|
|
146
|
+
role: "tablist",
|
|
147
|
+
"aria-label": unref(messages).dateTimeInput.pickerMode
|
|
148
|
+
}, [createElementVNode("button", {
|
|
149
|
+
type: "button",
|
|
150
|
+
role: "tab",
|
|
151
|
+
"aria-selected": panel.value === "date",
|
|
152
|
+
onClick: _cache[2] || (_cache[2] = ($event) => panel.value = "date")
|
|
153
|
+
}, toDisplayString(unref(messages).dateTimeInput.dateLabel), 9, _hoisted_8), createElementVNode("button", {
|
|
154
|
+
type: "button",
|
|
155
|
+
role: "tab",
|
|
156
|
+
"aria-selected": panel.value === "time",
|
|
157
|
+
onClick: _cache[3] || (_cache[3] = ($event) => panel.value = "time")
|
|
158
|
+
}, toDisplayString(unref(messages).dateTimeInput.timeLabel), 9, _hoisted_9)], 8, _hoisted_7), panel.value === "date" ? (openBlock(), createBlock(_sfc_main$8, {
|
|
159
|
+
key: 0,
|
|
160
|
+
selected: __props.date,
|
|
161
|
+
min: dateBound(__props.min),
|
|
162
|
+
max: dateBound(__props.max),
|
|
163
|
+
"date-constraints": __props.dateConstraints,
|
|
164
|
+
"week-starts-on": __props.weekStartsOn,
|
|
165
|
+
"save-label": unref(messages).dateTimeInput.saveDatePicking,
|
|
166
|
+
"save-disabled": !__props.date,
|
|
167
|
+
onPick: onDate,
|
|
168
|
+
onSave: saveDate,
|
|
169
|
+
onReset
|
|
170
|
+
}, null, 8, [
|
|
171
|
+
"selected",
|
|
172
|
+
"min",
|
|
173
|
+
"max",
|
|
174
|
+
"date-constraints",
|
|
175
|
+
"week-starts-on",
|
|
176
|
+
"save-label",
|
|
177
|
+
"save-disabled"
|
|
178
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_10, [createVNode(_sfc_main$10, {
|
|
179
|
+
"model-value": __props.time,
|
|
180
|
+
"hour-format": __props.hourFormat,
|
|
181
|
+
"has-seconds": __props.hasSeconds,
|
|
182
|
+
min: clockBound(__props.min),
|
|
183
|
+
max: clockBound(__props.max),
|
|
184
|
+
"onUpdate:modelValue": onTime
|
|
185
|
+
}, null, 8, [
|
|
186
|
+
"model-value",
|
|
187
|
+
"hour-format",
|
|
188
|
+
"has-seconds",
|
|
189
|
+
"min",
|
|
190
|
+
"max"
|
|
191
|
+
]), createElementVNode("button", {
|
|
192
|
+
type: "button",
|
|
193
|
+
class: "astryx-date-touch-save",
|
|
194
|
+
onClick: close
|
|
195
|
+
}, toDisplayString(unref(messages).dateInput.savePicking), 1)]))])]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["is-open", "label"])], 64);
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/DateTimeInput/DateTimeInput.vue
|
|
203
|
+
const _hoisted_1 = [
|
|
204
|
+
"data-size",
|
|
205
|
+
"data-status",
|
|
206
|
+
"data-disabled",
|
|
207
|
+
"aria-busy"
|
|
208
|
+
];
|
|
209
|
+
const _hoisted_2 = {
|
|
210
|
+
key: 1,
|
|
211
|
+
class: "astryx-date-time-fields"
|
|
212
|
+
};
|
|
213
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
214
|
+
name: "AstryxDateTimeInput",
|
|
215
|
+
inheritAttrs: false,
|
|
216
|
+
__name: "DateTimeInput",
|
|
217
|
+
props: /*@__PURE__*/ mergeModels({
|
|
218
|
+
label: {},
|
|
219
|
+
id: {},
|
|
220
|
+
description: {},
|
|
221
|
+
placeholder: {},
|
|
222
|
+
hourFormat: { default: "12h" },
|
|
223
|
+
presentation: {},
|
|
224
|
+
nativePicker: {},
|
|
225
|
+
hasClear: {
|
|
226
|
+
type: Boolean,
|
|
227
|
+
default: false
|
|
228
|
+
},
|
|
229
|
+
clearLabel: {},
|
|
230
|
+
size: { default: "md" },
|
|
231
|
+
hasSeconds: {
|
|
232
|
+
type: Boolean,
|
|
233
|
+
default: false
|
|
234
|
+
},
|
|
235
|
+
timeIncrement: { default: 1 },
|
|
236
|
+
timeOptionInterval: {},
|
|
237
|
+
timeLabel: {},
|
|
238
|
+
timePlaceholder: {},
|
|
239
|
+
disabledMessage: {},
|
|
240
|
+
min: {},
|
|
241
|
+
max: {},
|
|
242
|
+
dateConstraints: {},
|
|
243
|
+
numberOfMonths: {},
|
|
244
|
+
weekStartsOn: {},
|
|
245
|
+
isDisabled: { type: Boolean },
|
|
246
|
+
isLoading: {
|
|
247
|
+
type: Boolean,
|
|
248
|
+
default: false
|
|
249
|
+
},
|
|
250
|
+
changeAction: {},
|
|
251
|
+
isReadOnly: { type: Boolean },
|
|
252
|
+
isRequired: { type: Boolean },
|
|
253
|
+
isOptional: { type: Boolean },
|
|
254
|
+
isLabelHidden: { type: Boolean },
|
|
255
|
+
labelHidden: { type: Boolean },
|
|
256
|
+
labelTooltip: {},
|
|
257
|
+
status: {},
|
|
258
|
+
statusVariant: { default: "attached" },
|
|
259
|
+
width: {},
|
|
260
|
+
containerClass: { type: [
|
|
261
|
+
Boolean,
|
|
262
|
+
null,
|
|
263
|
+
String,
|
|
264
|
+
Object,
|
|
265
|
+
Array
|
|
266
|
+
] },
|
|
267
|
+
containerStyle: { type: [
|
|
268
|
+
Boolean,
|
|
269
|
+
null,
|
|
270
|
+
String,
|
|
271
|
+
Object,
|
|
272
|
+
Array
|
|
273
|
+
] },
|
|
274
|
+
controlClass: { type: [
|
|
275
|
+
Boolean,
|
|
276
|
+
null,
|
|
277
|
+
String,
|
|
278
|
+
Object,
|
|
279
|
+
Array
|
|
280
|
+
] },
|
|
281
|
+
controlStyle: { type: [
|
|
282
|
+
Boolean,
|
|
283
|
+
null,
|
|
284
|
+
String,
|
|
285
|
+
Object,
|
|
286
|
+
Array
|
|
287
|
+
] }
|
|
288
|
+
}, {
|
|
289
|
+
"modelValue": { default: null },
|
|
290
|
+
"modelModifiers": {}
|
|
291
|
+
}),
|
|
292
|
+
emits: /*@__PURE__*/ mergeModels(["update:modelValue", "change"], ["update:modelValue"]),
|
|
293
|
+
setup(__props, { emit: __emit }) {
|
|
294
|
+
const props = __props;
|
|
295
|
+
const emit = __emit;
|
|
296
|
+
const model = useModel(__props, "modelValue");
|
|
297
|
+
const attrs = useAttrs();
|
|
298
|
+
const parts = useFieldPartStyling({
|
|
299
|
+
component: "DateTimeInput",
|
|
300
|
+
props,
|
|
301
|
+
attrs,
|
|
302
|
+
reservedAttrs: [
|
|
303
|
+
"id",
|
|
304
|
+
"aria-labelledby",
|
|
305
|
+
"aria-describedby",
|
|
306
|
+
"aria-required",
|
|
307
|
+
"aria-busy",
|
|
308
|
+
"aria-disabled",
|
|
309
|
+
"aria-invalid"
|
|
310
|
+
]
|
|
311
|
+
});
|
|
312
|
+
const hideLabel = useResolvedLabelHidden(() => props.isLabelHidden, () => props.labelHidden);
|
|
313
|
+
const coarse = useMediaQuery("(pointer: coarse)");
|
|
314
|
+
const messages = useAstryxMessages();
|
|
315
|
+
const generatedId = `astryx-date-time-${useId()}`;
|
|
316
|
+
const draftDate = ref(void 0);
|
|
317
|
+
const draftTime = ref(void 0);
|
|
318
|
+
const action = usePendingChange(() => props.changeAction);
|
|
319
|
+
const busy = computed(() => props.isLoading || action.busy.value);
|
|
320
|
+
const locked = computed(() => props.isDisabled || busy.value);
|
|
321
|
+
const sheetLocked = computed(() => locked.value || props.isReadOnly === true);
|
|
322
|
+
const datePresentation = computed(() => {
|
|
323
|
+
const value = props.presentation;
|
|
324
|
+
if (value == null || value === "text-input") return void 0;
|
|
325
|
+
return value;
|
|
326
|
+
});
|
|
327
|
+
const useSheet = computed(() => resolvePickerPresentation(effectivePickerPresentation(datePresentation.value, props.nativePicker), coarse.value) === "sheet");
|
|
328
|
+
function parseDate(value) {
|
|
329
|
+
const date = value?.slice(0, 10) ?? "";
|
|
330
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(date)) return null;
|
|
331
|
+
const [year, month, day] = date.split("-").map(Number);
|
|
332
|
+
return new Date(year, month - 1, day);
|
|
333
|
+
}
|
|
334
|
+
function parseTime(value) {
|
|
335
|
+
const parsed = parseISOTime(value?.slice(11) ?? "");
|
|
336
|
+
return parsed ? formatISOTime(parsed, props.hasSeconds) : null;
|
|
337
|
+
}
|
|
338
|
+
function formatDate(date) {
|
|
339
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
340
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
341
|
+
return `${date.getFullYear()}-${month}-${day}`;
|
|
342
|
+
}
|
|
343
|
+
/** 取 ISO 日期时间里的时间部分,给只用时间的那一半做范围限制。 */
|
|
344
|
+
function timePart(value) {
|
|
345
|
+
const raw = value?.slice(11) ?? "";
|
|
346
|
+
const parsed = parseISOTime(raw);
|
|
347
|
+
return parsed ? formatISOTime(parsed, true) : void 0;
|
|
348
|
+
}
|
|
349
|
+
const timeMin = computed(() => timePart(props.min));
|
|
350
|
+
const timeMax = computed(() => timePart(props.max));
|
|
351
|
+
const dateValue = computed(() => draftDate.value !== void 0 ? draftDate.value : parseDate(model.value));
|
|
352
|
+
const timeValue = computed(() => draftTime.value !== void 0 ? draftTime.value : parseTime(model.value));
|
|
353
|
+
const clearLabel = computed(() => messages.value.dateTimeInput.clear());
|
|
354
|
+
const resolvedTimeLabel = computed(() => props.timeLabel || messages.value.dateTimeInput.timeLabel);
|
|
355
|
+
function publish() {
|
|
356
|
+
const date = dateValue.value;
|
|
357
|
+
const time = timeValue.value;
|
|
358
|
+
const next = date && time ? `${formatDate(date)}T${time}` : null;
|
|
359
|
+
if (next != null) {
|
|
360
|
+
draftDate.value = void 0;
|
|
361
|
+
draftTime.value = void 0;
|
|
362
|
+
}
|
|
363
|
+
if (next !== model.value) {
|
|
364
|
+
model.value = next;
|
|
365
|
+
emit("change", next);
|
|
366
|
+
action.run(next);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
function onSheetDate(value) {
|
|
370
|
+
if (sheetLocked.value) return;
|
|
371
|
+
onDate(value);
|
|
372
|
+
}
|
|
373
|
+
function onSheetTime(value) {
|
|
374
|
+
if (sheetLocked.value) return;
|
|
375
|
+
onTime(value);
|
|
376
|
+
}
|
|
377
|
+
function onSheetReset() {
|
|
378
|
+
if (sheetLocked.value) return;
|
|
379
|
+
clear();
|
|
380
|
+
}
|
|
381
|
+
function onDate(value) {
|
|
382
|
+
draftDate.value = value;
|
|
383
|
+
publish();
|
|
384
|
+
}
|
|
385
|
+
function onTime(value) {
|
|
386
|
+
draftTime.value = value;
|
|
387
|
+
publish();
|
|
388
|
+
}
|
|
389
|
+
function clear() {
|
|
390
|
+
draftDate.value = null;
|
|
391
|
+
draftTime.value = null;
|
|
392
|
+
if (model.value !== null) {
|
|
393
|
+
model.value = null;
|
|
394
|
+
emit("change", null);
|
|
395
|
+
action.run(null);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
watch(model, (value) => {
|
|
399
|
+
if (value) {
|
|
400
|
+
draftDate.value = void 0;
|
|
401
|
+
draftTime.value = void 0;
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
return (_ctx, _cache) => {
|
|
405
|
+
return openBlock(), createBlock(_sfc_main$7, {
|
|
406
|
+
class: normalizeClass(unref(parts).containerClass.value),
|
|
407
|
+
style: normalizeStyle(unref(parts).containerStyle.value),
|
|
408
|
+
label: __props.label,
|
|
409
|
+
"input-id": generatedId,
|
|
410
|
+
description: __props.description,
|
|
411
|
+
width: __props.width,
|
|
412
|
+
"is-label-hidden": unref(hideLabel),
|
|
413
|
+
"is-disabled": locked.value,
|
|
414
|
+
"is-optional": __props.isOptional,
|
|
415
|
+
"is-required": __props.isRequired,
|
|
416
|
+
"label-tooltip": __props.labelTooltip,
|
|
417
|
+
status: __props.status,
|
|
418
|
+
"status-variant": __props.statusVariant
|
|
419
|
+
}, {
|
|
420
|
+
default: withCtx((field) => [createElementVNode("div", {
|
|
421
|
+
class: normalizeClass(["astryx-date-time-input", unref(parts).controlClass()]),
|
|
422
|
+
style: normalizeStyle(unref(parts).controlStyle()),
|
|
423
|
+
"data-size": __props.size,
|
|
424
|
+
"data-status": __props.status?.type,
|
|
425
|
+
"data-disabled": locked.value || void 0,
|
|
426
|
+
"aria-busy": busy.value || void 0
|
|
427
|
+
}, [useSheet.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
428
|
+
key: 0,
|
|
429
|
+
date: dateValue.value,
|
|
430
|
+
time: timeValue.value,
|
|
431
|
+
label: __props.label,
|
|
432
|
+
"input-id": generatedId,
|
|
433
|
+
"described-by": [unref(attrs)["aria-describedby"], field.describedBy].filter(Boolean).join(" ") || void 0,
|
|
434
|
+
placeholder: __props.placeholder,
|
|
435
|
+
"time-placeholder": __props.timePlaceholder,
|
|
436
|
+
"time-label": resolvedTimeLabel.value,
|
|
437
|
+
"hour-format": __props.hourFormat,
|
|
438
|
+
"has-seconds": __props.hasSeconds,
|
|
439
|
+
min: __props.min,
|
|
440
|
+
max: __props.max,
|
|
441
|
+
"date-constraints": __props.dateConstraints,
|
|
442
|
+
"week-starts-on": __props.weekStartsOn,
|
|
443
|
+
"is-disabled": sheetLocked.value,
|
|
444
|
+
onPickDate: onSheetDate,
|
|
445
|
+
onPickTime: onSheetTime,
|
|
446
|
+
onReset: onSheetReset
|
|
447
|
+
}, null, 8, [
|
|
448
|
+
"date",
|
|
449
|
+
"time",
|
|
450
|
+
"label",
|
|
451
|
+
"described-by",
|
|
452
|
+
"placeholder",
|
|
453
|
+
"time-placeholder",
|
|
454
|
+
"time-label",
|
|
455
|
+
"hour-format",
|
|
456
|
+
"has-seconds",
|
|
457
|
+
"min",
|
|
458
|
+
"max",
|
|
459
|
+
"date-constraints",
|
|
460
|
+
"week-starts-on",
|
|
461
|
+
"is-disabled"
|
|
462
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(_sfc_main$9, {
|
|
463
|
+
id: generatedId,
|
|
464
|
+
"model-value": dateValue.value,
|
|
465
|
+
label: unref(messages).dateTimeInput.dateLabel,
|
|
466
|
+
"is-label-hidden": "",
|
|
467
|
+
placeholder: __props.placeholder,
|
|
468
|
+
disabled: locked.value,
|
|
469
|
+
size: __props.size,
|
|
470
|
+
"described-by": [unref(attrs)["aria-describedby"], field.describedBy].filter(Boolean).join(" ") || void 0,
|
|
471
|
+
"date-constraints": __props.dateConstraints,
|
|
472
|
+
"number-of-months": __props.numberOfMonths,
|
|
473
|
+
"week-starts-on": __props.weekStartsOn,
|
|
474
|
+
presentation: datePresentation.value,
|
|
475
|
+
"native-picker": __props.nativePicker,
|
|
476
|
+
"disabled-message": __props.disabledMessage,
|
|
477
|
+
"onUpdate:modelValue": onDate
|
|
478
|
+
}, null, 8, [
|
|
479
|
+
"model-value",
|
|
480
|
+
"label",
|
|
481
|
+
"placeholder",
|
|
482
|
+
"disabled",
|
|
483
|
+
"size",
|
|
484
|
+
"described-by",
|
|
485
|
+
"date-constraints",
|
|
486
|
+
"number-of-months",
|
|
487
|
+
"week-starts-on",
|
|
488
|
+
"presentation",
|
|
489
|
+
"native-picker",
|
|
490
|
+
"disabled-message"
|
|
491
|
+
]), createVNode(_sfc_main$11, {
|
|
492
|
+
"model-value": timeValue.value,
|
|
493
|
+
label: resolvedTimeLabel.value,
|
|
494
|
+
"described-by": [unref(attrs)["aria-describedby"], field.describedBy].filter(Boolean).join(" ") || void 0,
|
|
495
|
+
placeholder: __props.timePlaceholder,
|
|
496
|
+
"hour-format": __props.hourFormat,
|
|
497
|
+
presentation: __props.presentation,
|
|
498
|
+
"native-picker": __props.nativePicker,
|
|
499
|
+
"has-seconds": __props.hasSeconds,
|
|
500
|
+
increment: __props.timeIncrement,
|
|
501
|
+
"option-interval": __props.timeOptionInterval,
|
|
502
|
+
min: timeMin.value,
|
|
503
|
+
max: timeMax.value,
|
|
504
|
+
size: __props.size,
|
|
505
|
+
"is-disabled": locked.value,
|
|
506
|
+
"is-read-only": __props.isReadOnly,
|
|
507
|
+
"disabled-message": __props.disabledMessage,
|
|
508
|
+
status: __props.status,
|
|
509
|
+
"onUpdate:modelValue": onTime
|
|
510
|
+
}, null, 8, [
|
|
511
|
+
"model-value",
|
|
512
|
+
"label",
|
|
513
|
+
"described-by",
|
|
514
|
+
"placeholder",
|
|
515
|
+
"hour-format",
|
|
516
|
+
"presentation",
|
|
517
|
+
"native-picker",
|
|
518
|
+
"has-seconds",
|
|
519
|
+
"increment",
|
|
520
|
+
"option-interval",
|
|
521
|
+
"min",
|
|
522
|
+
"max",
|
|
523
|
+
"size",
|
|
524
|
+
"is-disabled",
|
|
525
|
+
"is-read-only",
|
|
526
|
+
"disabled-message",
|
|
527
|
+
"status"
|
|
528
|
+
])])), busy.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
529
|
+
key: 2,
|
|
530
|
+
size: "sm",
|
|
531
|
+
"aria-label": unref(messages).dateInput.loading
|
|
532
|
+
}, null, 8, ["aria-label"])) : __props.hasClear && (dateValue.value || timeValue.value) && !locked.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
533
|
+
key: 3,
|
|
534
|
+
class: "astryx-input-clear-button",
|
|
535
|
+
variant: "ghost",
|
|
536
|
+
size: "sm",
|
|
537
|
+
label: clearLabel.value,
|
|
538
|
+
onClick: clear
|
|
539
|
+
}, {
|
|
540
|
+
default: withCtx(() => [createVNode(_sfc_main$2, { type: "clear" })]),
|
|
541
|
+
_: 1
|
|
542
|
+
}, 8, ["label"])) : createCommentVNode("v-if", true)], 14, _hoisted_1)]),
|
|
543
|
+
_: 1
|
|
544
|
+
}, 8, [
|
|
545
|
+
"class",
|
|
546
|
+
"style",
|
|
547
|
+
"label",
|
|
548
|
+
"description",
|
|
549
|
+
"width",
|
|
550
|
+
"is-label-hidden",
|
|
551
|
+
"is-disabled",
|
|
552
|
+
"is-optional",
|
|
553
|
+
"is-required",
|
|
554
|
+
"label-tooltip",
|
|
555
|
+
"status",
|
|
556
|
+
"status-variant"
|
|
557
|
+
]);
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
});
|
|
561
|
+
//#endregion
|
|
562
|
+
export { _sfc_main as t };
|
package/dist/Dialog/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _default, c as DialogPadding, d as DialogPurpose, f as DialogVariant, i as _default$1, l as DialogPosition, n as ImperativeDialogReturn, o as DialogBlockPosition, r as useImperativeDialog, s as DialogHeaderProps, t as ImperativeDialogOptions, u as DialogProps } from "../index-
|
|
1
|
+
import { a as _default, c as DialogPadding, d as DialogPurpose, f as DialogVariant, i as _default$1, l as DialogPosition, n as ImperativeDialogReturn, o as DialogBlockPosition, r as useImperativeDialog, s as DialogHeaderProps, t as ImperativeDialogOptions, u as DialogProps } from "../index-Ds201-d2.js";
|
|
2
2
|
export { _default as Dialog, type DialogBlockPosition, _default$1 as DialogHeader, type DialogHeaderProps, type DialogPadding, type DialogPosition, type DialogProps, type DialogPurpose, type DialogVariant, type ImperativeDialogOptions, type ImperativeDialogReturn, useImperativeDialog };
|
package/dist/Dialog/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Dialog-
|
|
2
|
-
import { n as _sfc_main$1, t as useImperativeDialog } from "../Dialog-
|
|
1
|
+
import { t as _sfc_main } from "../Dialog-fhyxB00e.js";
|
|
2
|
+
import { n as _sfc_main$1, t as useImperativeDialog } from "../Dialog-Dce4Y97V.js";
|
|
3
3
|
export { _sfc_main as Dialog, _sfc_main$1 as DialogHeader, useImperativeDialog };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./IconButton-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as _sfc_main$1 } from "./IconButton-DI-XBbtV.js";
|
|
2
|
+
import { s as useAstryxMessages } from "./context-DWfi56sq.js";
|
|
3
|
+
import { n as DIALOG_CONTEXT_KEY, t as _sfc_main$2 } from "./Dialog-fhyxB00e.js";
|
|
4
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, h, inject, mergeProps, normalizeClass, onBeforeUnmount, onMounted, openBlock, readonly, ref, renderSlot, shallowRef, toDisplayString, useAttrs, useId, useSlots, withCtx } from "vue";
|
|
4
5
|
import "../styles/dialog-header.css";
|
|
5
6
|
//#region src/Dialog/DialogHeader.vue
|
|
6
7
|
const _hoisted_1 = {
|
|
7
8
|
key: 0,
|
|
8
|
-
class: "astryx-dialog-header__actions"
|
|
9
|
+
class: "astryx-dialog-header__actions astryx-dialog-header-start-content"
|
|
9
10
|
};
|
|
10
|
-
const _hoisted_2 = { class: "astryx-dialog-header__title-block" };
|
|
11
|
+
const _hoisted_2 = { class: "astryx-dialog-header__title-block astryx-dialog-header-title-block" };
|
|
11
12
|
const _hoisted_3 = ["id", "data-dialog-default-focus"];
|
|
12
13
|
const _hoisted_4 = {
|
|
13
14
|
key: 0,
|
|
@@ -24,11 +25,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
24
25
|
type: Boolean,
|
|
25
26
|
default: false
|
|
26
27
|
},
|
|
28
|
+
endContentEdgeCompensation: { default: void 0 },
|
|
27
29
|
hasDivider: {
|
|
28
30
|
type: Boolean,
|
|
29
31
|
default: false
|
|
30
32
|
},
|
|
31
|
-
closeButtonLabel: { default:
|
|
33
|
+
closeButtonLabel: { default: void 0 }
|
|
32
34
|
},
|
|
33
35
|
emits: ["openChange"],
|
|
34
36
|
setup(__props, { emit: __emit }) {
|
|
@@ -36,11 +38,23 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
36
38
|
const emit = __emit;
|
|
37
39
|
const slots = useSlots();
|
|
38
40
|
const attrs = useAttrs();
|
|
41
|
+
const messages = useAstryxMessages();
|
|
39
42
|
const dialog = inject(DIALOG_CONTEXT_KEY, null);
|
|
40
43
|
const fallbackTitleId = `astryx-dialog-header-title-${useId()}`;
|
|
41
44
|
const titleId = computed(() => dialog?.titleId ?? fallbackTitleId);
|
|
42
45
|
const defaultFocusAttr = computed(() => dialog?.isInline.value ? void 0 : "");
|
|
43
|
-
const
|
|
46
|
+
const showSubtitle = computed(() => slots.subtitle != null || props.subtitle != null && props.subtitle !== "");
|
|
47
|
+
const closeLabel = computed(() => props.closeButtonLabel ?? messages.value.dialog.close);
|
|
48
|
+
const compensateBlock = computed(() => {
|
|
49
|
+
const axis = props.endContentEdgeCompensation;
|
|
50
|
+
if (axis == null) return props.hasCloseButton;
|
|
51
|
+
return axis === "block" || axis === "all";
|
|
52
|
+
});
|
|
53
|
+
const compensateInline = computed(() => {
|
|
54
|
+
const axis = props.endContentEdgeCompensation;
|
|
55
|
+
if (axis == null) return props.hasCloseButton;
|
|
56
|
+
return axis === "inline" || axis === "all";
|
|
57
|
+
});
|
|
44
58
|
onMounted(() => {
|
|
45
59
|
dialog?.registerTitle(true);
|
|
46
60
|
});
|
|
@@ -60,19 +74,22 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
60
74
|
class: "astryx-dialog-header__title",
|
|
61
75
|
tabindex: "-1",
|
|
62
76
|
"data-dialog-default-focus": defaultFocusAttr.value
|
|
63
|
-
}, toDisplayString(__props.title),
|
|
77
|
+
}, [renderSlot(_ctx.$slots, "title", {}, () => [createTextVNode(toDisplayString(__props.title), 1)])], 8, _hoisted_3), showSubtitle.value ? (openBlock(), createElementBlock("span", _hoisted_4, [renderSlot(_ctx.$slots, "subtitle", {}, () => [createTextVNode(toDisplayString(__props.subtitle), 1)])])) : createCommentVNode("v-if", true)]),
|
|
64
78
|
slots.endContent || __props.hasCloseButton ? (openBlock(), createElementBlock("div", {
|
|
65
79
|
key: 1,
|
|
66
|
-
class: normalizeClass(["astryx-dialog-header__actions
|
|
80
|
+
class: normalizeClass(["astryx-dialog-header__actions astryx-dialog-header-end-content", {
|
|
81
|
+
"astryx-dialog-header__actions--compensate-block": compensateBlock.value,
|
|
82
|
+
"astryx-dialog-header__actions--compensate-inline": compensateInline.value
|
|
83
|
+
}])
|
|
67
84
|
}, [renderSlot(_ctx.$slots, "endContent"), __props.hasCloseButton ? (openBlock(), createBlock(_sfc_main$1, {
|
|
68
85
|
key: 0,
|
|
69
86
|
class: "astryx-dialog-header__close",
|
|
70
87
|
variant: "ghost",
|
|
71
|
-
label:
|
|
88
|
+
label: closeLabel.value,
|
|
72
89
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("openChange", false))
|
|
73
90
|
}, {
|
|
74
91
|
default: withCtx(() => [..._cache[1] || (_cache[1] = [createElementVNode("svg", {
|
|
75
|
-
class: "astryx-dialog-header__close-icon",
|
|
92
|
+
class: "astryx-dialog-header__close-icon astryx-dialog-header-close-icon",
|
|
76
93
|
viewBox: "0 0 20 20",
|
|
77
94
|
width: "20",
|
|
78
95
|
height: "20",
|