@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
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as usePressFeedback } from "./usePressFeedback-BJCpjEpv.js";
|
|
2
|
+
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
2
3
|
import { n as useAsyncSource } from "./useAsyncSource-Gk0VtE7_.js";
|
|
3
|
-
import { t as _sfc_main$7 } from "./Kbd-
|
|
4
|
-
import {
|
|
5
|
-
import { n as DIALOG_CONTEXT_KEY, t as _sfc_main$8 } from "./Dialog-
|
|
4
|
+
import { t as _sfc_main$7 } from "./Kbd-CV3LO2Ge.js";
|
|
5
|
+
import { s as useAstryxMessages } from "./context-DWfi56sq.js";
|
|
6
|
+
import { n as DIALOG_CONTEXT_KEY, t as _sfc_main$8 } from "./Dialog-fhyxB00e.js";
|
|
6
7
|
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
7
|
-
import { t as _sfc_main$9 } from "./
|
|
8
|
-
import {
|
|
8
|
+
import { t as _sfc_main$9 } from "./Icon-KDnUyY7f.js";
|
|
9
|
+
import { t as _sfc_main$10 } from "./Spinner-DdVUadii.js";
|
|
10
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onMounted, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
9
11
|
import "../styles/command-palette.css";
|
|
10
12
|
//#region src/CommandPalette/CommandPaletteEmpty.vue
|
|
11
|
-
const _hoisted_1$
|
|
13
|
+
const _hoisted_1$5 = { class: "astryx-command-palette-empty" };
|
|
12
14
|
const _sfc_main$6 = /*@__PURE__*/ defineComponent({
|
|
13
15
|
name: "AstryxCommandPaletteEmpty",
|
|
14
16
|
__name: "CommandPaletteEmpty",
|
|
15
17
|
setup(__props) {
|
|
16
18
|
return (_ctx, _cache) => {
|
|
17
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [renderSlot(_ctx.$slots, "default")]);
|
|
18
20
|
};
|
|
19
21
|
}
|
|
20
22
|
});
|
|
21
23
|
//#endregion
|
|
22
24
|
//#region src/CommandPalette/CommandPaletteFooter.vue
|
|
23
|
-
const _hoisted_1$
|
|
25
|
+
const _hoisted_1$4 = { class: "astryx-command-palette-footer" };
|
|
24
26
|
const _hoisted_2$3 = { class: "astryx-command-palette-hint" };
|
|
25
|
-
const _hoisted_3$
|
|
27
|
+
const _hoisted_3$1 = { class: "astryx-command-palette-hint" };
|
|
26
28
|
const _hoisted_4 = { class: "astryx-command-palette-hint" };
|
|
27
29
|
const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
28
30
|
name: "AstryxCommandPaletteFooter",
|
|
@@ -30,13 +32,13 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
|
30
32
|
setup(__props) {
|
|
31
33
|
const messages = useAstryxMessages();
|
|
32
34
|
return (_ctx, _cache) => {
|
|
33
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [renderSlot(_ctx.$slots, "default", {}, () => [
|
|
34
36
|
createElementVNode("span", _hoisted_2$3, [
|
|
35
37
|
createVNode(_sfc_main$7, { keys: "up" }),
|
|
36
38
|
createVNode(_sfc_main$7, { keys: "down" }),
|
|
37
39
|
createTextVNode(" " + toDisplayString(unref(messages).commandPalette.navigate), 1)
|
|
38
40
|
]),
|
|
39
|
-
createElementVNode("span", _hoisted_3$
|
|
41
|
+
createElementVNode("span", _hoisted_3$1, [createVNode(_sfc_main$7, { keys: "enter" }), createTextVNode(" " + toDisplayString(unref(messages).commandPalette.select), 1)]),
|
|
40
42
|
createElementVNode("span", _hoisted_4, [createVNode(_sfc_main$7, { keys: "escape" }), createTextVNode(" " + toDisplayString(unref(messages).commandPalette.close), 1)])
|
|
41
43
|
])]);
|
|
42
44
|
};
|
|
@@ -44,7 +46,7 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
|
44
46
|
});
|
|
45
47
|
//#endregion
|
|
46
48
|
//#region src/CommandPalette/CommandPaletteGroup.vue
|
|
47
|
-
const _hoisted_1$
|
|
49
|
+
const _hoisted_1$3 = ["aria-label"];
|
|
48
50
|
const _hoisted_2$2 = {
|
|
49
51
|
class: "astryx-command-palette-group-heading",
|
|
50
52
|
"aria-hidden": "true"
|
|
@@ -59,7 +61,7 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
|
59
61
|
class: "astryx-command-palette-group",
|
|
60
62
|
role: "group",
|
|
61
63
|
"aria-label": __props.heading
|
|
62
|
-
}, [createElementVNode("div", _hoisted_2$2, toDisplayString(__props.heading), 1), renderSlot(_ctx.$slots, "default")], 8, _hoisted_1$
|
|
64
|
+
}, [createElementVNode("div", _hoisted_2$2, toDisplayString(__props.heading), 1), renderSlot(_ctx.$slots, "default")], 8, _hoisted_1$3);
|
|
63
65
|
};
|
|
64
66
|
}
|
|
65
67
|
});
|
|
@@ -68,18 +70,20 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
|
68
70
|
const commandPaletteKey = Symbol("commandPalette");
|
|
69
71
|
//#endregion
|
|
70
72
|
//#region src/CommandPalette/CommandPaletteInput.vue
|
|
71
|
-
const _hoisted_1$
|
|
72
|
-
const _hoisted_2$1 = [
|
|
73
|
+
const _hoisted_1$2 = [
|
|
73
74
|
"aria-activedescendant",
|
|
75
|
+
"aria-autocomplete",
|
|
74
76
|
"aria-controls",
|
|
75
77
|
"aria-expanded",
|
|
76
78
|
"aria-label",
|
|
77
79
|
"placeholder",
|
|
80
|
+
"role",
|
|
78
81
|
"value"
|
|
79
82
|
];
|
|
80
|
-
const
|
|
83
|
+
const _hoisted_2$1 = { class: "astryx-command-palette-end" };
|
|
81
84
|
const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
82
85
|
name: "AstryxCommandPaletteInput",
|
|
86
|
+
inheritAttrs: false,
|
|
83
87
|
__name: "CommandPaletteInput",
|
|
84
88
|
props: {
|
|
85
89
|
placeholder: {},
|
|
@@ -96,18 +100,78 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
96
100
|
const emit = __emit;
|
|
97
101
|
const palette = inject(commandPaletteKey, null);
|
|
98
102
|
const dialog = inject(DIALOG_CONTEXT_KEY, null);
|
|
103
|
+
const attrs = useAttrs();
|
|
99
104
|
const messages = useAstryxMessages();
|
|
100
105
|
const inputRef = useTemplateRef("input");
|
|
106
|
+
function hasAttr(name) {
|
|
107
|
+
return Object.hasOwn(attrs, name);
|
|
108
|
+
}
|
|
109
|
+
function attrText(name) {
|
|
110
|
+
const value = attrs[name];
|
|
111
|
+
if (typeof value === "string") return value;
|
|
112
|
+
if (typeof value === "number" || typeof value === "boolean") return String(value);
|
|
113
|
+
}
|
|
101
114
|
const placeholder = computed(() => props.placeholder ?? messages.value.commandPalette.placeholder);
|
|
102
|
-
const label = computed(() =>
|
|
115
|
+
const label = computed(() => {
|
|
116
|
+
const given = attrs["aria-label"];
|
|
117
|
+
return typeof given === "string" && given !== "" ? given : props.label ?? messages.value.commandPalette.inputLabel;
|
|
118
|
+
});
|
|
103
119
|
const value = computed(() => props.value ?? palette?.search.value ?? "");
|
|
120
|
+
const hasListbox = computed(() => (palette?.items.value.length ?? 0) > 0);
|
|
121
|
+
const callerOwnsPopup = computed(() => {
|
|
122
|
+
if (palette != null) return false;
|
|
123
|
+
const popup = attrs["aria-haspopup"];
|
|
124
|
+
const declaresPopup = hasAttr("aria-haspopup") && popup !== false && popup !== "false";
|
|
125
|
+
return attrs.role === "combobox" || hasAttr("aria-expanded") || hasAttr("aria-autocomplete") || hasAttr("aria-controls") || hasAttr("aria-owns") || hasAttr("aria-activedescendant") || declaresPopup;
|
|
126
|
+
});
|
|
127
|
+
const role = computed(() => {
|
|
128
|
+
if (palette != null) return "combobox";
|
|
129
|
+
if (hasAttr("role")) return attrText("role");
|
|
130
|
+
return callerOwnsPopup.value ? "combobox" : "searchbox";
|
|
131
|
+
});
|
|
132
|
+
const expanded = computed(() => {
|
|
133
|
+
const given = attrText("aria-expanded");
|
|
134
|
+
const normalized = given === "true" || given === "false" ? given : void 0;
|
|
135
|
+
if (palette != null) return hasListbox.value ? "true" : void 0;
|
|
136
|
+
if (hasAttr("aria-expanded")) return normalized;
|
|
137
|
+
return callerOwnsPopup.value ? "true" : void 0;
|
|
138
|
+
});
|
|
139
|
+
const autocomplete = computed(() => {
|
|
140
|
+
if (palette != null) return "list";
|
|
141
|
+
const given = attrs["aria-autocomplete"];
|
|
142
|
+
if (given === "none" || given === "both" || given === "inline" || given === "list") return given;
|
|
143
|
+
return callerOwnsPopup.value ? "list" : void 0;
|
|
144
|
+
});
|
|
145
|
+
const controls = computed(() => {
|
|
146
|
+
if (palette != null) return hasListbox.value ? palette.listId : void 0;
|
|
147
|
+
return attrText("aria-controls");
|
|
148
|
+
});
|
|
104
149
|
const activeDescendant = computed(() => {
|
|
105
|
-
|
|
106
|
-
|
|
150
|
+
if (palette == null) return attrText("aria-activedescendant");
|
|
151
|
+
const index = palette.highlightedIndex.value;
|
|
152
|
+
if (!hasListbox.value || index < 0) return void 0;
|
|
107
153
|
return `${palette.listId}-item-${index}`;
|
|
108
154
|
});
|
|
155
|
+
const inputAttrs = computed(() => {
|
|
156
|
+
const reserved = /* @__PURE__ */ new Set([
|
|
157
|
+
"class",
|
|
158
|
+
"style",
|
|
159
|
+
"role",
|
|
160
|
+
"aria-label",
|
|
161
|
+
"aria-expanded",
|
|
162
|
+
"aria-autocomplete",
|
|
163
|
+
"aria-controls",
|
|
164
|
+
"aria-activedescendant",
|
|
165
|
+
"onKeydown",
|
|
166
|
+
"onKeyDown",
|
|
167
|
+
"onInput"
|
|
168
|
+
]);
|
|
169
|
+
return Object.fromEntries(Object.entries(attrs).filter(([key]) => !reserved.has(key)));
|
|
170
|
+
});
|
|
109
171
|
const shouldFocus = computed(() => props.hasAutoFocus && dialog?.isInline.value !== true);
|
|
110
172
|
function onInput(event) {
|
|
173
|
+
const caller = attrs.onInput;
|
|
174
|
+
if (typeof caller === "function") caller(event);
|
|
111
175
|
const next = event.target.value;
|
|
112
176
|
if (props.value == null) {
|
|
113
177
|
palette?.setSearch(next);
|
|
@@ -116,42 +180,52 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
116
180
|
emit("valueChange", next);
|
|
117
181
|
emit("update:value", next);
|
|
118
182
|
}
|
|
183
|
+
function onKeyDown(event) {
|
|
184
|
+
const caller = attrs.onKeydown ?? attrs.onKeyDown;
|
|
185
|
+
if (typeof caller === "function") caller(event);
|
|
186
|
+
if (event.defaultPrevented || event.isComposing || event.key === "Process") return;
|
|
187
|
+
palette?.onKeyDown(event);
|
|
188
|
+
}
|
|
119
189
|
onMounted(() => {
|
|
120
190
|
if (shouldFocus.value) requestAnimationFrame(() => inputRef.value?.focus());
|
|
121
191
|
});
|
|
122
192
|
return (_ctx, _cache) => {
|
|
123
|
-
return openBlock(), createElementBlock("div",
|
|
124
|
-
|
|
193
|
+
return openBlock(), createElementBlock("div", {
|
|
194
|
+
class: normalizeClass(["astryx-command-palette-input", unref(attrs).class]),
|
|
195
|
+
style: normalizeStyle(unref(attrs).style)
|
|
196
|
+
}, [
|
|
197
|
+
createVNode(_sfc_main$9, {
|
|
125
198
|
class: "astryx-command-palette-search",
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
199
|
+
icon: "search",
|
|
200
|
+
size: "sm"
|
|
201
|
+
}),
|
|
202
|
+
createElementVNode("input", mergeProps(inputAttrs.value, {
|
|
129
203
|
ref: "input",
|
|
130
204
|
"aria-activedescendant": activeDescendant.value,
|
|
131
|
-
"aria-autocomplete":
|
|
132
|
-
"aria-controls":
|
|
133
|
-
"aria-expanded":
|
|
205
|
+
"aria-autocomplete": autocomplete.value,
|
|
206
|
+
"aria-controls": controls.value,
|
|
207
|
+
"aria-expanded": expanded.value,
|
|
134
208
|
"aria-label": label.value,
|
|
135
209
|
class: "astryx-command-palette-field",
|
|
136
210
|
placeholder: placeholder.value,
|
|
137
|
-
role:
|
|
211
|
+
role: role.value,
|
|
138
212
|
type: "text",
|
|
139
213
|
value: value.value,
|
|
140
214
|
onInput,
|
|
141
|
-
onKeydown:
|
|
142
|
-
}, null,
|
|
143
|
-
createElementVNode("span",
|
|
215
|
+
onKeydown: onKeyDown
|
|
216
|
+
}), null, 16, _hoisted_1$2),
|
|
217
|
+
createElementVNode("span", _hoisted_2$1, [unref(palette)?.isBusy.value ? (openBlock(), createBlock(_sfc_main$10, {
|
|
144
218
|
key: 0,
|
|
145
219
|
class: "astryx-command-palette-spinner",
|
|
146
220
|
size: "sm"
|
|
147
221
|
})) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "end", {}, () => [renderSlot(_ctx.$slots, "endContent")])])
|
|
148
|
-
]);
|
|
222
|
+
], 6);
|
|
149
223
|
};
|
|
150
224
|
}
|
|
151
225
|
});
|
|
152
226
|
//#endregion
|
|
153
227
|
//#region src/CommandPalette/CommandPaletteItem.vue
|
|
154
|
-
const _hoisted_1$
|
|
228
|
+
const _hoisted_1$1 = [
|
|
155
229
|
"id",
|
|
156
230
|
"aria-disabled",
|
|
157
231
|
"aria-selected",
|
|
@@ -177,6 +251,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
177
251
|
const props = __props;
|
|
178
252
|
const emit = __emit;
|
|
179
253
|
const palette = inject(commandPaletteKey, null);
|
|
254
|
+
const press = usePressFeedback({ hasOverlay: false });
|
|
180
255
|
const instance = getCurrentInstance();
|
|
181
256
|
/**
|
|
182
257
|
* Vue turns an omitted boolean prop into `false`, so a `??` fallback cannot
|
|
@@ -208,24 +283,23 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
208
283
|
if (item != null) palette.selectItem(item);
|
|
209
284
|
}
|
|
210
285
|
function highlight() {
|
|
211
|
-
if (!props.isDisabled && index.value >= 0) palette?.setHighlightedIndex(index.value);
|
|
286
|
+
if (!props.isDisabled && index.value >= 0) palette?.setHighlightedIndex(index.value, "pointer");
|
|
212
287
|
}
|
|
213
288
|
function scrollIntoView(element) {
|
|
214
|
-
if (!(element instanceof HTMLElement)) return;
|
|
215
|
-
if (palette?.isInline.value && palette.highlightedIndex.value === index.value && index.value === 0) return;
|
|
216
289
|
element.scrollIntoView({ block: "nearest" });
|
|
217
290
|
}
|
|
218
291
|
watch(isHighlighted, (highlighted, _previous, onCleanup) => {
|
|
219
|
-
if (!highlighted) return;
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
const
|
|
292
|
+
if (!highlighted || typeof document === "undefined") return;
|
|
293
|
+
if (palette?.highlightCause.value === "pointer") return;
|
|
294
|
+
if (palette?.highlightCause.value === "sync" && palette.isInline.value) return;
|
|
295
|
+
const id = palette && index.value >= 0 ? `${palette.listId}-item-${index.value}` : void 0;
|
|
296
|
+
const node = (id == null ? void 0 : document.getElementById(id)) ?? (instance?.vnode.el instanceof HTMLElement ? instance.vnode.el : null);
|
|
297
|
+
if (node == null) return;
|
|
298
|
+
const frame = requestAnimationFrame(() => scrollIntoView(node));
|
|
224
299
|
onCleanup(() => cancelAnimationFrame(frame));
|
|
225
300
|
});
|
|
226
301
|
return (_ctx, _cache) => {
|
|
227
|
-
return openBlock(), createElementBlock("div", {
|
|
228
|
-
id: index.value >= 0 && unref(palette) ? `${unref(palette).listId}-item-${index.value}` : void 0,
|
|
302
|
+
return openBlock(), createElementBlock("div", mergeProps({ id: index.value >= 0 && unref(palette) ? `${unref(palette).listId}-item-${index.value}` : void 0 }, unref(press).pressableProps, {
|
|
229
303
|
class: "astryx-command-palette-item",
|
|
230
304
|
role: "option",
|
|
231
305
|
tabindex: "-1",
|
|
@@ -239,17 +313,12 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
239
313
|
onFocus: highlight,
|
|
240
314
|
onKeydown: onKeyDown,
|
|
241
315
|
onMouseenter: highlight
|
|
242
|
-
}, [renderSlot(_ctx.$slots, "default")],
|
|
316
|
+
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$1);
|
|
243
317
|
};
|
|
244
318
|
}
|
|
245
319
|
});
|
|
246
320
|
//#endregion
|
|
247
321
|
//#region src/CommandPalette/CommandPaletteList.vue
|
|
248
|
-
const _hoisted_1$1 = [
|
|
249
|
-
"id",
|
|
250
|
-
"role",
|
|
251
|
-
"aria-label"
|
|
252
|
-
];
|
|
253
322
|
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
254
323
|
name: "AstryxCommandPaletteList",
|
|
255
324
|
__name: "CommandPaletteList",
|
|
@@ -259,18 +328,21 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
259
328
|
const palette = inject(commandPaletteKey, null);
|
|
260
329
|
const messages = useAstryxMessages();
|
|
261
330
|
const label = computed(() => props.label ?? messages.value.commandPalette.listLabel);
|
|
262
|
-
/** 没有可选项时它只是个空容器,不再当作 listbox
|
|
331
|
+
/** 没有可选项时它只是个空容器,不再当作 listbox 暴露给读屏。单独使用时始终是 listbox。 */
|
|
263
332
|
const hasOptions = computed(() => palette == null || palette.items.value.length > 0);
|
|
333
|
+
const bindings = computed(() => {
|
|
334
|
+
const result = {};
|
|
335
|
+
if (palette != null) result.id = palette.listId;
|
|
336
|
+
if (hasOptions.value) {
|
|
337
|
+
result.role = "listbox";
|
|
338
|
+
result["aria-label"] = label.value;
|
|
339
|
+
}
|
|
340
|
+
return result;
|
|
341
|
+
});
|
|
264
342
|
const listEl = useTemplateRef("list");
|
|
265
343
|
useScrollbars(listEl);
|
|
266
344
|
return (_ctx, _cache) => {
|
|
267
|
-
return openBlock(), createElementBlock("div", {
|
|
268
|
-
id: unref(palette)?.listId,
|
|
269
|
-
ref: "list",
|
|
270
|
-
class: "astryx-command-palette-list",
|
|
271
|
-
role: hasOptions.value ? "listbox" : void 0,
|
|
272
|
-
"aria-label": hasOptions.value ? label.value : void 0
|
|
273
|
-
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1$1);
|
|
345
|
+
return openBlock(), createElementBlock("div", mergeProps({ ref: "list" }, bindings.value, { class: "astryx-command-palette-list" }), [renderSlot(_ctx.$slots, "default")], 16);
|
|
274
346
|
};
|
|
275
347
|
}
|
|
276
348
|
});
|
|
@@ -330,6 +402,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
330
402
|
const announce = useAnnounce();
|
|
331
403
|
const search = ref("");
|
|
332
404
|
const highlightedIndex = ref(-1);
|
|
405
|
+
const highlightCause = ref("sync");
|
|
333
406
|
const listId = `astryx-command-palette-${useId()}`;
|
|
334
407
|
const enabled = computed(() => props.isOpen);
|
|
335
408
|
const source = computed(() => props.searchSource);
|
|
@@ -379,7 +452,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
379
452
|
function setSearch(next) {
|
|
380
453
|
search.value = next;
|
|
381
454
|
}
|
|
382
|
-
function setHighlightedIndex(index) {
|
|
455
|
+
function setHighlightedIndex(index, cause = "keyboard") {
|
|
456
|
+
highlightCause.value = cause;
|
|
383
457
|
highlightedIndex.value = index;
|
|
384
458
|
}
|
|
385
459
|
function close() {
|
|
@@ -398,8 +472,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
398
472
|
function onKeyDown(event) {
|
|
399
473
|
if (event.isComposing || event.key === "Process") return;
|
|
400
474
|
if (event.key === "Escape") {
|
|
401
|
-
|
|
402
|
-
|
|
475
|
+
if (props.isInline) {
|
|
476
|
+
event.preventDefault();
|
|
477
|
+
close();
|
|
478
|
+
}
|
|
403
479
|
return;
|
|
404
480
|
}
|
|
405
481
|
if (event.key === " ") return;
|
|
@@ -409,16 +485,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
409
485
|
if (item != null) selectItem(item);
|
|
410
486
|
return;
|
|
411
487
|
}
|
|
412
|
-
|
|
488
|
+
if (event.key === "Home" || event.key === "End") return;
|
|
489
|
+
const direction = event.key === "ArrowDown" ? "next" : event.key === "ArrowUp" ? "previous" : event.key === "PageUp" ? "first" : event.key === "PageDown" ? "last" : null;
|
|
413
490
|
if (direction == null) return;
|
|
414
491
|
event.preventDefault();
|
|
415
|
-
|
|
492
|
+
setHighlightedIndex(moveHighlight(items.value, highlightedIndex.value, direction), "keyboard");
|
|
416
493
|
}
|
|
417
494
|
function onOpenChange(open) {
|
|
418
495
|
if (!open) close();
|
|
419
496
|
else emit("openChange", true);
|
|
420
497
|
}
|
|
421
498
|
watch(items, (list) => {
|
|
499
|
+
highlightCause.value = "sync";
|
|
422
500
|
if (search.value.trim() === "" && value.value) {
|
|
423
501
|
highlightedIndex.value = list.findIndex((item) => item.id === value.value && !item.disabled);
|
|
424
502
|
return;
|
|
@@ -442,11 +520,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
442
520
|
if (!open) {
|
|
443
521
|
results.cancel();
|
|
444
522
|
search.value = "";
|
|
523
|
+
highlightCause.value = "sync";
|
|
445
524
|
highlightedIndex.value = -1;
|
|
446
525
|
}
|
|
447
526
|
});
|
|
448
527
|
provide(commandPaletteKey, {
|
|
449
528
|
highlightedIndex,
|
|
529
|
+
highlightCause,
|
|
450
530
|
isBusy,
|
|
451
531
|
isInline,
|
|
452
532
|
items,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ComplexSelectorProps, c as ComplexSelectorState, i as ComplexSelectorHandleRef, l as ComplexSelectorTriggerProps, n as ComplexSelectorEmits, o as ComplexSelectorSlotProps, r as ComplexSelectorHandle, s as ComplexSelectorSlots, t as _default, u as ComplexSelectorVariant } from "../index-
|
|
1
|
+
import { a as ComplexSelectorProps, c as ComplexSelectorState, i as ComplexSelectorHandleRef, l as ComplexSelectorTriggerProps, n as ComplexSelectorEmits, o as ComplexSelectorSlotProps, r as ComplexSelectorHandle, s as ComplexSelectorSlots, t as _default, u as ComplexSelectorVariant } from "../index-B-nESNam.js";
|
|
2
2
|
export { _default as ComplexSelector, _default as default, type ComplexSelectorEmits, type ComplexSelectorHandle, type ComplexSelectorHandleRef, type ComplexSelectorProps, type ComplexSelectorSlotProps, type ComplexSelectorSlots, type ComplexSelectorState, type ComplexSelectorTriggerProps, type ComplexSelectorVariant };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as ComplexSelector_default } from "../ComplexSelector-
|
|
1
|
+
import { n as _sfc_main, t as ComplexSelector_default } from "../ComplexSelector-BeVQaqRf.js";
|
|
2
2
|
export { _sfc_main as ComplexSelector, ComplexSelector_default as default };
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as useDevWarning } from "./useDevWarning-DznOpOHT.js";
|
|
2
|
+
import { s as useAstryxMessages } from "./context-DWfi56sq.js";
|
|
2
3
|
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
3
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
4
|
-
import { t as _sfc_main$2 } from "./Spinner-
|
|
5
|
-
import { t as _sfc_main$3 } from "./Field
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
4
|
+
import { t as _sfc_main$1 } from "./Icon-KDnUyY7f.js";
|
|
5
|
+
import { t as _sfc_main$2 } from "./Spinner-DdVUadii.js";
|
|
6
|
+
import { t as _sfc_main$3 } from "./Field--OEsLBfE.js";
|
|
7
|
+
import { t as useFieldPartStyling } from "./fieldParts--SyRZVQG.js";
|
|
8
|
+
import { n as fieldStatusPlacement, t as normalizeTriggerVariant } from "./triggerVariant-BsL8jMHs.js";
|
|
9
|
+
import { t as _sfc_main$4 } from "./Popover-78dFjTb9.js";
|
|
10
|
+
import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
8
11
|
import "../styles/complex-selector.css";
|
|
9
12
|
//#region src/ComplexSelector/ComplexSelector.vue
|
|
10
13
|
const _hoisted_1 = [
|
|
@@ -21,6 +24,7 @@ const _hoisted_1 = [
|
|
|
21
24
|
const _hoisted_2 = { class: "astryx-complex-selector-value" };
|
|
22
25
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
23
26
|
name: "AstryxComplexSelector",
|
|
27
|
+
inheritAttrs: false,
|
|
24
28
|
__name: "ComplexSelector",
|
|
25
29
|
props: /*@__PURE__*/ mergeModels({
|
|
26
30
|
label: {},
|
|
@@ -59,7 +63,35 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
59
63
|
variant: { default: "input" },
|
|
60
64
|
renderTrigger: {},
|
|
61
65
|
handleRef: {},
|
|
62
|
-
changeAction: {}
|
|
66
|
+
changeAction: {},
|
|
67
|
+
containerClass: { type: [
|
|
68
|
+
Boolean,
|
|
69
|
+
null,
|
|
70
|
+
String,
|
|
71
|
+
Object,
|
|
72
|
+
Array
|
|
73
|
+
] },
|
|
74
|
+
containerStyle: { type: [
|
|
75
|
+
Boolean,
|
|
76
|
+
null,
|
|
77
|
+
String,
|
|
78
|
+
Object,
|
|
79
|
+
Array
|
|
80
|
+
] },
|
|
81
|
+
controlClass: { type: [
|
|
82
|
+
Boolean,
|
|
83
|
+
null,
|
|
84
|
+
String,
|
|
85
|
+
Object,
|
|
86
|
+
Array
|
|
87
|
+
] },
|
|
88
|
+
controlStyle: { type: [
|
|
89
|
+
Boolean,
|
|
90
|
+
null,
|
|
91
|
+
String,
|
|
92
|
+
Object,
|
|
93
|
+
Array
|
|
94
|
+
] }
|
|
63
95
|
}, {
|
|
64
96
|
"modelValue": { required: true },
|
|
65
97
|
"modelModifiers": {}
|
|
@@ -74,6 +106,30 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
74
106
|
const props = __props;
|
|
75
107
|
const emit = __emit;
|
|
76
108
|
const slots = useSlots();
|
|
109
|
+
const attrs = useAttrs();
|
|
110
|
+
const parts = useFieldPartStyling({
|
|
111
|
+
component: "ComplexSelector",
|
|
112
|
+
props,
|
|
113
|
+
attrs: new Proxy(attrs, { get(target, key, receiver) {
|
|
114
|
+
if (key === "class" || key === "style") return void 0;
|
|
115
|
+
return Reflect.get(target, key, receiver);
|
|
116
|
+
} }),
|
|
117
|
+
reservedAttrs: [
|
|
118
|
+
"id",
|
|
119
|
+
"role",
|
|
120
|
+
"aria-label",
|
|
121
|
+
"aria-labelledby",
|
|
122
|
+
"aria-expanded",
|
|
123
|
+
"aria-controls",
|
|
124
|
+
"aria-haspopup",
|
|
125
|
+
"aria-busy",
|
|
126
|
+
"aria-invalid",
|
|
127
|
+
"aria-required",
|
|
128
|
+
"disabled"
|
|
129
|
+
]
|
|
130
|
+
});
|
|
131
|
+
const triggerVariant = computed(() => normalizeTriggerVariant(props.variant));
|
|
132
|
+
const effectiveStatusVariant = computed(() => fieldStatusPlacement(props.variant, props.statusVariant));
|
|
77
133
|
const model = useModel(__props, "modelValue");
|
|
78
134
|
const messages = useAstryxMessages();
|
|
79
135
|
const isOpen = ref(false);
|
|
@@ -148,6 +204,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
148
204
|
if (!event.defaultPrevented) emit("keydown", event);
|
|
149
205
|
}
|
|
150
206
|
const hasCustomTrigger = computed(() => props.renderTrigger != null || slots.trigger != null);
|
|
207
|
+
useDevWarning("ComplexSelector", "`containerClass`/`containerStyle` have no effect on a custom trigger.", () => hasCustomTrigger.value && (props.containerClass != null || props.containerStyle != null));
|
|
208
|
+
useDevWarning("ComplexSelector", "`controlClass`/`controlStyle` have no effect on a custom trigger.", () => hasCustomTrigger.value && (props.controlClass != null || props.controlStyle != null));
|
|
151
209
|
const triggerProps = computed(() => ({
|
|
152
210
|
"id": triggerId,
|
|
153
211
|
"onClick": onCustomClick,
|
|
@@ -184,8 +242,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
184
242
|
onBeforeUnmount(() => publishHandle(null));
|
|
185
243
|
__expose(handle);
|
|
186
244
|
return (_ctx, _cache) => {
|
|
187
|
-
return hasCustomTrigger.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
188
|
-
|
|
245
|
+
return hasCustomTrigger.value ? (openBlock(), createBlock(_sfc_main$4, mergeProps({ key: 0 }, unref(parts).forwardedAttrs(), {
|
|
246
|
+
class: unref(attrs).class,
|
|
247
|
+
style: unref(attrs).style,
|
|
189
248
|
alignment: __props.alignment,
|
|
190
249
|
"has-auto-focus": true,
|
|
191
250
|
"has-close-button": false,
|
|
@@ -196,7 +255,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
196
255
|
placement: __props.placement,
|
|
197
256
|
role: "dialog",
|
|
198
257
|
onOpenChange: setOpen
|
|
199
|
-
}, {
|
|
258
|
+
}), {
|
|
200
259
|
content: withCtx(() => [createElementVNode("div", {
|
|
201
260
|
id: contentId,
|
|
202
261
|
ref_key: "contentEl",
|
|
@@ -210,7 +269,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
210
269
|
})], 512)]),
|
|
211
270
|
default: withCtx(() => [renderSlot(_ctx.$slots, "trigger", normalizeProps(guardReactiveProps(triggerProps.value)), () => [(openBlock(), createBlock(resolveDynamicComponent(triggerView)))])]),
|
|
212
271
|
_: 3
|
|
213
|
-
},
|
|
272
|
+
}, 16, [
|
|
273
|
+
"class",
|
|
274
|
+
"style",
|
|
214
275
|
"alignment",
|
|
215
276
|
"is-enabled",
|
|
216
277
|
"is-open",
|
|
@@ -218,8 +279,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
218
279
|
"placement"
|
|
219
280
|
])) : (openBlock(), createBlock(_sfc_main$3, {
|
|
220
281
|
key: 1,
|
|
221
|
-
class: "astryx-complex-selector-field",
|
|
222
|
-
|
|
282
|
+
class: normalizeClass(["astryx-complex-selector-field", [unref(attrs).class, unref(parts).containerClass.value]]),
|
|
283
|
+
style: normalizeStyle([unref(attrs).style, unref(parts).containerStyle.value]),
|
|
284
|
+
"data-variant": triggerVariant.value,
|
|
223
285
|
description: __props.description,
|
|
224
286
|
"input-id": triggerId,
|
|
225
287
|
"is-disabled": __props.isDisabled,
|
|
@@ -230,7 +292,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
230
292
|
"label-id": labelId,
|
|
231
293
|
"label-tooltip": __props.labelTooltip,
|
|
232
294
|
status: __props.status,
|
|
233
|
-
"status-variant":
|
|
295
|
+
"status-variant": effectiveStatusVariant.value,
|
|
234
296
|
width: __props.width
|
|
235
297
|
}, {
|
|
236
298
|
default: withCtx(() => [createVNode(_sfc_main$4, {
|
|
@@ -256,13 +318,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
256
318
|
state: state.value,
|
|
257
319
|
value: displayValue.value
|
|
258
320
|
})], 512)]),
|
|
259
|
-
default: withCtx(() => [createElementVNode("button", {
|
|
321
|
+
default: withCtx(() => [createElementVNode("button", mergeProps(unref(parts).forwardedAttrs(), {
|
|
260
322
|
id: triggerId,
|
|
261
|
-
class: "astryx-complex-selector",
|
|
323
|
+
class: ["astryx-complex-selector", __props.controlClass],
|
|
324
|
+
style: __props.controlStyle,
|
|
262
325
|
"data-placeholder": hasTriggerLabel.value ? void 0 : "",
|
|
263
326
|
"data-size": __props.size,
|
|
264
|
-
"data-status": __props.status?.type,
|
|
265
|
-
"data-variant":
|
|
327
|
+
"data-status": triggerVariant.value === "input" ? __props.status?.type : void 0,
|
|
328
|
+
"data-variant": triggerVariant.value,
|
|
266
329
|
"aria-busy": isBusy.value || void 0,
|
|
267
330
|
"aria-expanded": isOpen.value,
|
|
268
331
|
"aria-invalid": __props.status?.type === "error" || void 0,
|
|
@@ -272,7 +335,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
272
335
|
type: "button",
|
|
273
336
|
onClick: onBuiltinClick,
|
|
274
337
|
onKeydown: onBuiltinKeyDown
|
|
275
|
-
}, [
|
|
338
|
+
}), [
|
|
276
339
|
__props.startIcon ? (openBlock(), createBlock(_sfc_main$1, {
|
|
277
340
|
key: 0,
|
|
278
341
|
class: "astryx-complex-selector-start",
|
|
@@ -292,7 +355,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
292
355
|
icon: "chevronDown",
|
|
293
356
|
size: "sm"
|
|
294
357
|
}, null, 8, ["data-state"])
|
|
295
|
-
],
|
|
358
|
+
], 16, _hoisted_1)]),
|
|
296
359
|
_: 3
|
|
297
360
|
}, 8, [
|
|
298
361
|
"alignment",
|
|
@@ -303,6 +366,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
303
366
|
])]),
|
|
304
367
|
_: 3
|
|
305
368
|
}, 8, [
|
|
369
|
+
"class",
|
|
370
|
+
"style",
|
|
306
371
|
"data-variant",
|
|
307
372
|
"description",
|
|
308
373
|
"is-disabled",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $i as
|
|
2
|
-
import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-
|
|
1
|
+
import { $i as ContextMenuItemIcon, Bi as _default$2, Gi as ContextMenuDividerData, Hi as useContextMenu, Ji as ContextMenuEntry, Ki as ContextMenuDividerProps, Li as _default$7, Qi as ContextMenuItemEmits, Ri as _default$4, Ui as useContextMenuSize, Vi as _default, Wi as ContextMenuCheckboxData, Xi as ContextMenuGroupSlots, Yi as ContextMenuGroupProps, Zi as ContextMenuItemData, aa as ContextMenuProps, ca as ContextMenuSection, da as ContextMenuSubMenuEmits, ea as ContextMenuItemProps, fa as ContextMenuSubMenuProps, ga as ContextMenuWidth, ha as ContextMenuVariant, ia as ContextMenuPresentation, la as ContextMenuSize, ma as ContextMenuTriggerElement, na as ContextMenuItemTarget, oa as ContextMenuRadioData, pa as ContextMenuSubMenuSlots, qi as ContextMenuEmits, ra as ContextMenuOption, sa as ContextMenuRadioOptionData, ta as ContextMenuItemSlots, ua as ContextMenuSlots, zi as _default$3 } from "../index-CpNlPLBF.js";
|
|
2
|
+
import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-Qd-8Rg4Q.js";
|
|
3
3
|
export { _default as ContextMenu, type ContextMenuCheckboxData, _default$1 as ContextMenuCheckboxItem, _default$2 as ContextMenuDivider, type ContextMenuDividerData, type ContextMenuDividerProps, type ContextMenuEmits, type ContextMenuEntry, _default$3 as ContextMenuGroup, type ContextMenuGroupProps, type ContextMenuGroupSlots, _default$4 as ContextMenuItem, type ContextMenuItemData, type ContextMenuItemEmits, type ContextMenuItemIcon, type ContextMenuItemProps, type ContextMenuItemSlots, type ContextMenuItemTarget, type ContextMenuOption, type ContextMenuPresentation, type ContextMenuProps, type ContextMenuRadioData, _default$5 as ContextMenuRadioGroup, _default$6 as ContextMenuRadioItem, type ContextMenuRadioOptionData, type ContextMenuSection, type ContextMenuSize, type ContextMenuSlots, _default$7 as ContextMenuSubMenu, type ContextMenuSubMenuEmits, type ContextMenuSubMenuProps, type ContextMenuSubMenuSlots, type ContextMenuTriggerElement, type ContextMenuVariant, type ContextMenuWidth, useContextMenu, useContextMenuSize };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { d as useContextMenuSize, i as _sfc_main$1, n as _sfc_main$6, r as _sfc_main$5, u as useContextMenu } from "../useMenuDrillIn-
|
|
2
|
-
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-
|
|
1
|
+
import { d as useContextMenuSize, i as _sfc_main$1, n as _sfc_main$6, r as _sfc_main$5, u as useContextMenu } from "../useMenuDrillIn-DhUnPvKs.js";
|
|
2
|
+
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-C6hPYvYz.js";
|
|
3
3
|
export { _sfc_main as ContextMenu, _sfc_main$1 as ContextMenuCheckboxItem, _sfc_main$2 as ContextMenuDivider, _sfc_main$3 as ContextMenuGroup, _sfc_main$4 as ContextMenuItem, _sfc_main$5 as ContextMenuRadioGroup, _sfc_main$6 as ContextMenuRadioItem, _sfc_main$7 as ContextMenuSubMenu, useContextMenu, useContextMenuSize };
|