@astryx-vue/core 0.2.6 → 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/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-BBhl5P1X.js → AlertDialog-C2inDZWG.js} +13 -7
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-mrflO0Uy.js → AppShell-CumzH-8z.js} +3 -3
- package/dist/Avatar/index.d.ts +1 -1
- 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-eJ3FzTBD.js → BottomSheet-B4sc3F1S.js} +288 -140
- package/dist/{BottomSheet-DIVwbGr3.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/Card/index.js +1 -1
- package/dist/{Card-HAjZQg2s.js → Card-B-I24X9S.js} +2 -0
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-DAkOa7KK.js → Carousel-DXC22UWq.js} +50 -33
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DVoI6UOA.js → Chat-BdJW6IX5.js} +152 -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-Bhds4RRe.js → ClickableCard-ChAfiw9T.js} +10 -7
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +3 -3
- package/dist/{Code-XnPuGxey.js → Code-Bg7GBdxy.js} +2 -1
- package/dist/{CodeBlock-BUM3czCS.js → CodeBlock-Caaflp7C.js} +7 -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-D6wYS30d.js → CommandPalette-C_MClfAg.js} +146 -62
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Bil81sfq.js → ComplexSelector-BeVQaqRf.js} +94 -22
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DdLJnxNN.js → ContextMenu-C6hPYvYz.js} +299 -179
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-u2XKccpK.js → DateInput-BjLdmYor.js} +567 -76
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-u7LhH6up.js → DateRangeInput-Br3wVEfD.js} +99 -28
- 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-SM_BEOgM.js → DropdownMenu-BdGmQVb1.js} +85 -57
- package/dist/{DropdownMenu-BEasdJ6R.js → DropdownMenu-BzQrNV9C.js} +481 -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-9X6eCUoY.js → Layout-JJRCG7Mf.js} +1 -1
- package/dist/{LayoutPanel-DeOh00p5.js → LayoutPanel-zM5vjrKS.js} +15 -8
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DTF9EdTG.js → Lightbox-D8wyPgMK.js} +8 -6
- package/dist/Link/index.d.ts +2 -2
- 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-2CVyZDuB.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-C3dkrM98.js → MobileNavToggle-pdoJFZHx.js} +60 -19
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-D1WFGqGU.js → MoreMenu-CFNqSRev.js} +87 -67
- 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-Cc4BrjQg.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-CtoBfVlD.js → Popover-78dFjTb9.js} +28 -17
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DHoiObLn.js → PowerSearch-BoAMdFaT.js} +776 -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-CJiaALHm.js → ScrollableArea-0u6RWtGG.js} +14 -3
- package/dist/Scrollbars/index.d.ts +2 -0
- package/dist/Scrollbars/index.js +3 -0
- package/dist/Scrollbars-D_93hJYK.js +75 -0
- package/dist/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-Bj5s_tIN.js → SelectableCard-BEqnhPaX.js} +17 -12
- 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-Dtv8eA2j.js → SideNav-CN2QeAtY.js} +64 -41
- 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-CjQEavuq.js → Stack-Bb_h60t3.js} +10 -3
- package/dist/{Stack-D_Bhs-3r.js → Stack-Bp-XN9J4.js} +20 -9
- package/dist/StatusDot/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-BPUhMOff.js → StatusDot-BS_ohXhd.js} +8 -4
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CE8dHysu.js → Stepper-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-hqZMmzfU.js → Table-BcrrylMX.js} +727 -448
- package/dist/Text/index.d.ts +2 -2
- 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-ByiJKBRM.js → TimeField-CpAgja9D.js} +299 -40
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-S8n946tp.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-41p035dX.js → Tokenizer-Ci3E5bvP.js} +109 -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-CeSeEMX3.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-k3xhFxkr.js → Typeahead-D4JjvjK4.js} +125 -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-BJMJ09K-.d.ts → index-BEZ4ezJk.d.ts} +1 -1
- package/dist/{index-DeQwYJbg.d.ts → index-BNaRK-s5.d.ts} +10 -1
- package/dist/{index-CQCTKjIO.d.ts → index-BO9TY87G.d.ts} +5 -4
- package/dist/{index-BJSxFVXH.d.ts → index-BQEJj72c.d.ts} +21 -8
- package/dist/{index-BXk7Wng7.d.ts → index-BULhhnGf.d.ts} +1 -1
- package/dist/{index-D97pQbua.d.ts → index-BV2D2x_u.d.ts} +1 -1
- package/dist/{index-BPYzIIYn.d.ts → index-BZKgbyN9.d.ts} +2 -2
- 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-csA1lH_0.d.ts → index-CJ6ajsUC.d.ts} +2 -2
- package/dist/{index-CY-KvZ9B.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-EFqQF2Bx.d.ts → index-CPtDjmcX.d.ts} +4 -4
- 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-BNy3SW4S.d.ts → index-CTjkJP4x.d.ts} +32 -3
- package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
- package/dist/{index-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-BUEPz7BL.d.ts → index-CikMzeab.d.ts} +3 -3
- package/dist/{index-CdtZjkmG.d.ts → index-CpNlPLBF.d.ts} +183 -129
- package/dist/{index-N7OVZ38M.d.ts → index-Cs1xsHKi.d.ts} +28 -16
- package/dist/{index-Cyb9Du5Z.d.ts → index-CtTGt6Dv.d.ts} +1 -1
- package/dist/{index-HV6W3xCx.d.ts → index-D05JGsT3.d.ts} +5 -2
- package/dist/{index-CsTbMVDS.d.ts → index-D0_HsuC3.d.ts} +4 -4
- 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-DamRHh1i.d.ts → index-DLAG3m9W.d.ts} +11 -1
- package/dist/{index-DUnDGFQE.d.ts → index-DNA2l1RN.d.ts} +1 -1
- package/dist/{index-WnUY4Kxu.d.ts → index-DRJZ-v1E.d.ts} +4 -4
- package/dist/{index-DYp2RWkM.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-jW-mP58D.d.ts → index-Dr4b_oji.d.ts} +22 -15
- package/dist/{index-uKnRGtzi.d.ts → index-Ds201-d2.d.ts} +18 -4
- package/dist/{index-DIXAzTKL.d.ts → index-DxxudRgB.d.ts} +1 -1
- package/dist/{index-DQmK3Lq_.d.ts → index-IfsSCj8J.d.ts} +19 -6
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-XuAAcYiP.d.ts → index-f3d9cVtj.d.ts} +1 -1
- package/dist/index-fAZaRruV.d.ts +125 -0
- package/dist/{index-D5N9ikrS.d.ts → index-hCpxKePE.d.ts} +1 -1
- package/dist/{index-T2FOcOuI.d.ts → index-jOwU3YoR.d.ts} +400 -90
- package/dist/{index-DdGck82Y.d.ts → index-pNtfr-RW.d.ts} +2 -2
- package/dist/{index-BhpAUzUr.d.ts → index-unAZVFGz.d.ts} +2 -2
- package/dist/index.d.ts +84 -77
- package/dist/index.js +151 -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-H4Bbbxiw.d.ts → types-BnNTzEnd.d.ts} +1 -1
- package/dist/{types-CwyibrRB.d.ts → types-C5GQ2KCK.d.ts} +23 -3
- package/dist/{types-BBWrcHMD.d.ts → types-Ckih2YJi.d.ts} +3 -2
- 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/useScrollbars-C2NJ6Qwq.js +43 -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 +24 -3
- 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/scrollbars.css +28 -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-DPVaziH4.js +0 -141
- package/dist/ButtonGroup-ySQWanDP.js +0 -125
- package/dist/DateTimeInput-DHp683jZ.js +0 -268
- package/dist/MultiSelector-BeV98x7X.js +0 -988
- package/dist/NumberInput-AZ9x3oja.js +0 -473
- package/dist/Selector-DuVozKNq.js +0 -675
- 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,2 +1,2 @@
|
|
|
1
|
-
import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-
|
|
1
|
+
import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-CdvmnNMH.js";
|
|
2
2
|
export { _default as ProgressBar, type ProgressBarMark, type ProgressBarProps, type ProgressBarSize, type ProgressBarVariant };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../ProgressBar-
|
|
1
|
+
import { t as _sfc_main } from "../ProgressBar-VP4JS7vm.js";
|
|
2
2
|
export { _sfc_main as ProgressBar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Tooltip-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Tooltip-sAM8i1eO.js";
|
|
2
2
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderList, toDisplayString, unref, useAttrs, useId, withCtx } from "vue";
|
|
3
3
|
import "../styles/visually-hidden.css";
|
|
4
4
|
import "../styles/progress-bar.css";
|
|
@@ -44,7 +44,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
44
44
|
min: { default: 0 },
|
|
45
45
|
max: { default: 100 },
|
|
46
46
|
size: { default: "md" },
|
|
47
|
-
variant: { default: "
|
|
47
|
+
variant: { default: "accent" },
|
|
48
48
|
label: {},
|
|
49
49
|
isLabelHidden: {
|
|
50
50
|
type: Boolean,
|
|
@@ -70,9 +70,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
70
70
|
const rootId = computed(() => attrs.id ?? generatedId);
|
|
71
71
|
const labelId = computed(() => `${rootId.value}-label`);
|
|
72
72
|
const descriptionId = computed(() => props.description ? `${rootId.value}-description` : void 0);
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
function finite(value, fallback) {
|
|
74
|
+
return Number.isFinite(value) ? value : fallback;
|
|
75
|
+
}
|
|
76
|
+
const min = computed(() => finite(Number(props.min), 0));
|
|
77
|
+
const max = computed(() => finite(Number(props.max), 0));
|
|
78
|
+
const value = computed(() => finite(Number(props.value), 0));
|
|
76
79
|
const clamped = computed(() => Math.max(min.value, Math.min(max.value, value.value)));
|
|
77
80
|
const percentage = computed(() => {
|
|
78
81
|
if (max.value === min.value) return 0;
|
|
@@ -126,8 +129,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
126
129
|
role: "progressbar",
|
|
127
130
|
"aria-labelledby": labelledBy.value,
|
|
128
131
|
"aria-describedby": describedBy.value,
|
|
129
|
-
"aria-valuemin": min.value,
|
|
130
|
-
"aria-valuemax": max.value,
|
|
132
|
+
"aria-valuemin": __props.isIndeterminate ? void 0 : min.value,
|
|
133
|
+
"aria-valuemax": __props.isIndeterminate ? void 0 : max.value,
|
|
131
134
|
"aria-valuenow": __props.isIndeterminate ? void 0 : clamped.value,
|
|
132
135
|
"aria-valuetext": __props.isIndeterminate ? void 0 : displayValue.value
|
|
133
136
|
}, [createElementVNode("div", {
|
package/dist/Radio/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ar as RadioChangeEvent, Br as RadioStatus, Fr as RadioOption, Hr as RadioValue, Ir as RadioOrientation, Lr as RadioProps, Mr as RadioGroupProps, Nr as RadioGroupSlots, Or as _default$1, Rr as RadioSize, Vr as RadioStatusType, jr as RadioGroupEmits, kr as _default, zr as RadioSlots } from "../index-
|
|
1
|
+
import { Ar as RadioChangeEvent, Br as RadioStatus, Fr as RadioOption, Hr as RadioValue, Ir as RadioOrientation, Lr as RadioProps, Mr as RadioGroupProps, Nr as RadioGroupSlots, Or as _default$1, Rr as RadioSize, Vr as RadioStatusType, jr as RadioGroupEmits, kr as _default, zr as RadioSlots } from "../index-CpNlPLBF.js";
|
|
2
2
|
export { _default as Radio, type RadioChangeEvent, _default$1 as RadioGroup, type RadioGroupEmits, type RadioGroupProps, type RadioGroupSlots, type RadioOption, type RadioOrientation, type RadioProps, type RadioSize, type RadioSlots, type RadioStatus, type RadioStatusType, type RadioValue };
|
package/dist/Radio/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../RadioGroup-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../RadioGroup-BIipql-L.js";
|
|
2
2
|
export { _sfc_main as Radio, _sfc_main$1 as RadioGroup };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { t as usePressFeedback } from "./usePressFeedback-BJCpjEpv.js";
|
|
2
|
+
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
1
3
|
import { t as _sfc_main$2 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
|
-
import { t as _sfc_main$3 } from "./Tooltip-
|
|
3
|
-
import { t as useIndicator } from "./useIndicator-
|
|
4
|
-
import { t as _sfc_main$4 } from "./Field
|
|
5
|
-
import {
|
|
4
|
+
import { t as _sfc_main$3 } from "./Tooltip-sAM8i1eO.js";
|
|
5
|
+
import { t as useIndicator } from "./useIndicator-MZmfBWid.js";
|
|
6
|
+
import { t as _sfc_main$4 } from "./Field--OEsLBfE.js";
|
|
7
|
+
import { t as useFieldPartStyling } from "./fieldParts--SyRZVQG.js";
|
|
8
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, withCtx } from "vue";
|
|
6
9
|
import "../styles/radio.css";
|
|
7
10
|
//#region src/Radio/types.ts
|
|
8
|
-
const radioContextKey =
|
|
11
|
+
const radioContextKey = defineLayerScopedKey("astryx-radio-context", void 0);
|
|
9
12
|
//#endregion
|
|
10
13
|
//#region src/Radio/Radio.vue
|
|
11
14
|
const _hoisted_1$1 = [
|
|
@@ -48,7 +51,9 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
48
51
|
const props = __props;
|
|
49
52
|
const emit = __emit;
|
|
50
53
|
const attrs = useAttrs();
|
|
51
|
-
const
|
|
54
|
+
const slots = useSlots();
|
|
55
|
+
const press = usePressFeedback({ hasOverlay: false });
|
|
56
|
+
const context = readLayerScoped(radioContextKey);
|
|
52
57
|
const generatedId = `astryx-radio-option-${useId()}`;
|
|
53
58
|
const inputId = computed(() => props.id ?? generatedId);
|
|
54
59
|
const name = computed(() => context?.name.value ?? attrs.name ?? inputId.value);
|
|
@@ -70,17 +75,24 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
70
75
|
function click(event) {
|
|
71
76
|
if (explainedByMessage.value) event.preventDefault();
|
|
72
77
|
}
|
|
78
|
+
const hasDescription = computed(() => !!props.description || slots.description != null);
|
|
73
79
|
function describedBy() {
|
|
74
|
-
return [
|
|
80
|
+
return [hasDescription.value ? `${inputId.value}-description` : void 0, messageDescriptionId.value].filter(Boolean).join(" ") || void 0;
|
|
81
|
+
}
|
|
82
|
+
function rowClick(event) {
|
|
83
|
+
const target = event.target;
|
|
84
|
+
if (target instanceof Element && target.closest("a, button, select, textarea, [role=\"button\"], [role=\"link\"]")) event.preventDefault();
|
|
75
85
|
}
|
|
76
86
|
return (_ctx, _cache) => {
|
|
77
|
-
return openBlock(), createElementBlock("label", {
|
|
87
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events, vue-a11y/no-static-element-interactions -- 标签包住整行。点到链接时取消标签的默认选中,键盘仍由单选框处理。 "), createElementVNode("label", mergeProps({
|
|
78
88
|
for: inputId.value,
|
|
79
|
-
class:
|
|
89
|
+
class: ["astryx-radio", { "astryx-indicator-scope": !isDisabled.value }]
|
|
90
|
+
}, isDisabled.value ? void 0 : unref(press).pressableProps, {
|
|
80
91
|
"data-size": indicatorSize.value,
|
|
81
92
|
"data-disabled": isDisabled.value || void 0,
|
|
82
|
-
"data-readonly": isReadOnly.value || void 0
|
|
83
|
-
|
|
93
|
+
"data-readonly": isReadOnly.value || void 0,
|
|
94
|
+
onClick: rowClick
|
|
95
|
+
}), [
|
|
84
96
|
createElementVNode("input", {
|
|
85
97
|
id: inputId.value,
|
|
86
98
|
class: "astryx-radio-native",
|
|
@@ -105,13 +117,13 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
105
117
|
"size",
|
|
106
118
|
"is-disabled"
|
|
107
119
|
])),
|
|
108
|
-
createElementVNode("span", _hoisted_3, [createElementVNode("span", _hoisted_4, toDisplayString(__props.label), 1),
|
|
120
|
+
createElementVNode("span", _hoisted_3, [createElementVNode("span", _hoisted_4, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])]), hasDescription.value ? (openBlock(), createElementBlock("span", {
|
|
109
121
|
key: 0,
|
|
110
122
|
id: `${inputId.value}-description`,
|
|
111
123
|
class: "astryx-radio-description"
|
|
112
|
-
}, toDisplayString(__props.description),
|
|
124
|
+
}, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])], 8, _hoisted_5)) : createCommentVNode("v-if", true)]),
|
|
113
125
|
_ctx.$slots.end ? (openBlock(), createElementBlock("span", _hoisted_6, [renderSlot(_ctx.$slots, "end")])) : createCommentVNode("v-if", true)
|
|
114
|
-
],
|
|
126
|
+
], 16, _hoisted_1$1)], 2112);
|
|
115
127
|
};
|
|
116
128
|
}
|
|
117
129
|
});
|
|
@@ -120,6 +132,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
120
132
|
const _hoisted_1 = ["aria-labelledby", "aria-describedby"];
|
|
121
133
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
122
134
|
name: "AstryxRadioGroup",
|
|
135
|
+
inheritAttrs: false,
|
|
123
136
|
__name: "RadioGroup",
|
|
124
137
|
props: /*@__PURE__*/ mergeModels({
|
|
125
138
|
id: {},
|
|
@@ -141,7 +154,36 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
141
154
|
labelIcon: {},
|
|
142
155
|
labelTooltip: {},
|
|
143
156
|
optionalLabel: {},
|
|
144
|
-
requiredLabel: {}
|
|
157
|
+
requiredLabel: {},
|
|
158
|
+
targetClass: {},
|
|
159
|
+
containerClass: { type: [
|
|
160
|
+
Boolean,
|
|
161
|
+
null,
|
|
162
|
+
String,
|
|
163
|
+
Object,
|
|
164
|
+
Array
|
|
165
|
+
] },
|
|
166
|
+
containerStyle: { type: [
|
|
167
|
+
Boolean,
|
|
168
|
+
null,
|
|
169
|
+
String,
|
|
170
|
+
Object,
|
|
171
|
+
Array
|
|
172
|
+
] },
|
|
173
|
+
controlClass: { type: [
|
|
174
|
+
Boolean,
|
|
175
|
+
null,
|
|
176
|
+
String,
|
|
177
|
+
Object,
|
|
178
|
+
Array
|
|
179
|
+
] },
|
|
180
|
+
controlStyle: { type: [
|
|
181
|
+
Boolean,
|
|
182
|
+
null,
|
|
183
|
+
String,
|
|
184
|
+
Object,
|
|
185
|
+
Array
|
|
186
|
+
] }
|
|
145
187
|
}, {
|
|
146
188
|
"modelValue": { required: true },
|
|
147
189
|
"modelModifiers": {}
|
|
@@ -150,6 +192,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
150
192
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
151
193
|
const props = __props;
|
|
152
194
|
const emit = __emit;
|
|
195
|
+
const attrs = useAttrs();
|
|
196
|
+
const parts = useFieldPartStyling({
|
|
197
|
+
component: "RadioList",
|
|
198
|
+
props,
|
|
199
|
+
attrs,
|
|
200
|
+
reservedAttrs: [
|
|
201
|
+
"aria-labelledby",
|
|
202
|
+
"aria-describedby",
|
|
203
|
+
"aria-invalid",
|
|
204
|
+
"aria-required"
|
|
205
|
+
]
|
|
206
|
+
});
|
|
153
207
|
const model = useModel(__props, "modelValue");
|
|
154
208
|
const generatedName = `astryx-radio-${useId()}`;
|
|
155
209
|
const groupName = computed(() => props.name ?? generatedName);
|
|
@@ -160,6 +214,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
160
214
|
const disabledMessage = computed(() => props.disabledMessage?.trim() || void 0);
|
|
161
215
|
const disabledMessageId = computed(() => disabledMessage.value ? `${inputId.value}-disabled` : void 0);
|
|
162
216
|
__expose({ element: group });
|
|
217
|
+
function groupDescribedBy(fieldDescribed) {
|
|
218
|
+
return [
|
|
219
|
+
attrs["aria-describedby"],
|
|
220
|
+
fieldDescribed,
|
|
221
|
+
props.isDisabled ? disabledMessageId.value : void 0
|
|
222
|
+
].filter(Boolean).join(" ") || void 0;
|
|
223
|
+
}
|
|
163
224
|
function select(value, event) {
|
|
164
225
|
if (props.isDisabled || props.isReadOnly) return;
|
|
165
226
|
const changeEvent = new CustomEvent("change", {
|
|
@@ -186,10 +247,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
186
247
|
});
|
|
187
248
|
return (_ctx, _cache) => {
|
|
188
249
|
return openBlock(), createBlock(_sfc_main$4, {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
250
|
+
class: normalizeClass(["astryx-radio-group", [unref(attrs).class, unref(parts).containerClass.value]]),
|
|
251
|
+
style: normalizeStyle([
|
|
252
|
+
style.value,
|
|
253
|
+
unref(attrs).style,
|
|
254
|
+
unref(parts).containerStyle.value
|
|
255
|
+
]),
|
|
193
256
|
"data-orientation": __props.orientation,
|
|
194
257
|
label: __props.label,
|
|
195
258
|
"input-id": inputId.value,
|
|
@@ -213,12 +276,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
213
276
|
"focus-trigger": "always",
|
|
214
277
|
placement: "above"
|
|
215
278
|
}, {
|
|
216
|
-
default: withCtx(() => [createElementVNode("div", {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
"
|
|
220
|
-
|
|
221
|
-
|
|
279
|
+
default: withCtx(() => [createElementVNode("div", mergeProps({
|
|
280
|
+
ref_key: "group",
|
|
281
|
+
ref: group,
|
|
282
|
+
class: ["astryx-radio-group-list", __props.controlClass],
|
|
283
|
+
style: __props.controlStyle,
|
|
284
|
+
role: "radiogroup"
|
|
285
|
+
}, unref(parts).forwardedAttrs(), {
|
|
286
|
+
"aria-labelledby": [field.labelId, unref(attrs)["aria-labelledby"]].filter(Boolean).join(" ") || void 0,
|
|
287
|
+
"aria-describedby": groupDescribedBy(field.describedBy)
|
|
288
|
+
}), [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
222
289
|
return openBlock(), createBlock(_sfc_main$1, {
|
|
223
290
|
key: option.value,
|
|
224
291
|
value: option.value,
|
|
@@ -231,7 +298,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
231
298
|
"description",
|
|
232
299
|
"is-disabled"
|
|
233
300
|
]);
|
|
234
|
-
}), 128)), renderSlot(_ctx.$slots, "default")],
|
|
301
|
+
}), 128)), renderSlot(_ctx.$slots, "default")], 16, _hoisted_1)]),
|
|
235
302
|
_: 2
|
|
236
303
|
}, 1032, ["content", "is-enabled"]), __props.isDisabled && disabledMessageId.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
237
304
|
key: 0,
|
|
@@ -246,6 +313,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
246
313
|
fn: withCtx(() => [renderSlot(_ctx.$slots, "labelIcon")]),
|
|
247
314
|
key: "0"
|
|
248
315
|
} : void 0]), 1032, [
|
|
316
|
+
"class",
|
|
249
317
|
"style",
|
|
250
318
|
"data-orientation",
|
|
251
319
|
"label",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Dr as _default, Er as RadioListItemProps, Pr as RadioListProps, Tr as _default$1 } from "../index-
|
|
1
|
+
import { Dr as _default, Er as RadioListItemProps, Pr as RadioListProps, Tr as _default$1 } from "../index-CpNlPLBF.js";
|
|
2
2
|
export { _default as RadioList, _default$1 as RadioListItem, type RadioListItemProps, type RadioListProps };
|
package/dist/RadioList/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../RadioList-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../RadioList-GyhgBg4j.js";
|
|
2
2
|
export { _sfc_main as RadioList, _sfc_main$1 as RadioListItem };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as _sfc_main$3, t as _sfc_main$2 } from "./RadioGroup-
|
|
1
|
+
import { n as _sfc_main$3, t as _sfc_main$2 } from "./RadioGroup-BIipql-L.js";
|
|
2
2
|
import { createBlock, createSlots, defineComponent, mergeModels, openBlock, renderSlot, useModel, withCtx } from "vue";
|
|
3
3
|
//#region src/Radio/RadioList.vue
|
|
4
4
|
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
@@ -24,7 +24,36 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
24
24
|
labelIcon: {},
|
|
25
25
|
labelTooltip: {},
|
|
26
26
|
optionalLabel: {},
|
|
27
|
-
requiredLabel: {}
|
|
27
|
+
requiredLabel: {},
|
|
28
|
+
targetClass: {},
|
|
29
|
+
containerClass: { type: [
|
|
30
|
+
Boolean,
|
|
31
|
+
null,
|
|
32
|
+
String,
|
|
33
|
+
Object,
|
|
34
|
+
Array
|
|
35
|
+
] },
|
|
36
|
+
containerStyle: { type: [
|
|
37
|
+
Boolean,
|
|
38
|
+
null,
|
|
39
|
+
String,
|
|
40
|
+
Object,
|
|
41
|
+
Array
|
|
42
|
+
] },
|
|
43
|
+
controlClass: { type: [
|
|
44
|
+
Boolean,
|
|
45
|
+
null,
|
|
46
|
+
String,
|
|
47
|
+
Object,
|
|
48
|
+
Array
|
|
49
|
+
] },
|
|
50
|
+
controlStyle: { type: [
|
|
51
|
+
Boolean,
|
|
52
|
+
null,
|
|
53
|
+
String,
|
|
54
|
+
Object,
|
|
55
|
+
Array
|
|
56
|
+
] }
|
|
28
57
|
}, {
|
|
29
58
|
"modelValue": { required: true },
|
|
30
59
|
"modelModifiers": {}
|
|
@@ -55,6 +84,10 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
55
84
|
options: __props.options,
|
|
56
85
|
size: __props.size,
|
|
57
86
|
orientation: __props.orientation,
|
|
87
|
+
"container-class": __props.containerClass,
|
|
88
|
+
"container-style": __props.containerStyle,
|
|
89
|
+
"control-class": __props.controlClass,
|
|
90
|
+
"control-style": __props.controlStyle,
|
|
58
91
|
onChange: _cache[1] || (_cache[1] = (value, event) => emit("change", value, event))
|
|
59
92
|
}, createSlots({
|
|
60
93
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
@@ -82,7 +115,11 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
82
115
|
"name",
|
|
83
116
|
"options",
|
|
84
117
|
"size",
|
|
85
|
-
"orientation"
|
|
118
|
+
"orientation",
|
|
119
|
+
"container-class",
|
|
120
|
+
"container-style",
|
|
121
|
+
"control-class",
|
|
122
|
+
"control-style"
|
|
86
123
|
]);
|
|
87
124
|
};
|
|
88
125
|
}
|
|
@@ -107,11 +144,23 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
107
144
|
description: __props.description,
|
|
108
145
|
"is-disabled": __props.isDisabled,
|
|
109
146
|
"is-read-only": __props.isReadOnly
|
|
110
|
-
}, createSlots({ _: 2 }, [
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
147
|
+
}, createSlots({ _: 2 }, [
|
|
148
|
+
_ctx.$slots.label ? {
|
|
149
|
+
name: "label",
|
|
150
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "label")]),
|
|
151
|
+
key: "0"
|
|
152
|
+
} : void 0,
|
|
153
|
+
_ctx.$slots.description ? {
|
|
154
|
+
name: "description",
|
|
155
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "description")]),
|
|
156
|
+
key: "1"
|
|
157
|
+
} : void 0,
|
|
158
|
+
_ctx.$slots.end ? {
|
|
159
|
+
name: "end",
|
|
160
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "end")]),
|
|
161
|
+
key: "2"
|
|
162
|
+
} : void 0
|
|
163
|
+
]), 1032, [
|
|
115
164
|
"value",
|
|
116
165
|
"label",
|
|
117
166
|
"description",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ResizePillPlacement, i as ResizeHandleSlots, n as ResizeDirection, o as ResizePosition, r as ResizeHandleProps, t as _default } from "../index-
|
|
1
|
+
import { a as ResizePillPlacement, i as ResizeHandleSlots, n as ResizeDirection, o as ResizePosition, r as ResizeHandleProps, t as _default } from "../index-BZKgbyN9.js";
|
|
2
2
|
export { type ResizeDirection, _default as ResizeHandle, type ResizeHandleProps, type ResizeHandleSlots, type ResizePillPlacement, type ResizePosition };
|
package/dist/Resizable/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../ResizeHandle-
|
|
1
|
+
import { t as _sfc_main } from "../ResizeHandle-TPlUCAHD.js";
|
|
2
2
|
export { _sfc_main as ResizeHandle };
|
|
@@ -1,6 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as devWarn } from "./useDevWarning-DznOpOHT.js";
|
|
2
|
+
import { s as useAstryxMessages } from "./context-DWfi56sq.js";
|
|
3
|
+
import { n as getEffectiveMaxPx, t as getCollapseControls } from "./resizableChannel-3vivrEcT.js";
|
|
4
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, useAttrs, useTemplateRef, watch } from "vue";
|
|
3
5
|
import "../styles/resize-handle.css";
|
|
6
|
+
//#region src/Resizable/resizeKeyboard.ts
|
|
7
|
+
const KEYBOARD_STEP = 10;
|
|
8
|
+
const KEYBOARD_LARGE_STEP = 50;
|
|
9
|
+
function gesture(resizable, delta) {
|
|
10
|
+
resizable._onResizeStart();
|
|
11
|
+
resizable._onResizeMove(delta);
|
|
12
|
+
resizable._onResizeEnd();
|
|
13
|
+
}
|
|
14
|
+
/** 折叠时展开回之前的尺寸。没有登记控制函数时,收到最小值。 */
|
|
15
|
+
function toggleCollapse(resizable) {
|
|
16
|
+
const controls = getCollapseControls(resizable);
|
|
17
|
+
if (controls) {
|
|
18
|
+
if (resizable._isCollapsed) controls.expand();
|
|
19
|
+
else controls.collapse();
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
gesture(resizable, resizable._isCollapsed ? resizable._minSizePx : -resizable._size);
|
|
23
|
+
}
|
|
24
|
+
function grows(key, rtl, sign, isHorizontal) {
|
|
25
|
+
return (key === "ArrowRight" || key === "ArrowDown" ? 1 : key === "ArrowLeft" || key === "ArrowUp" ? -1 : 0) * (isHorizontal ? rtl : 1) * sign > 0;
|
|
26
|
+
}
|
|
27
|
+
function adjacentSnap(resizable, direction, count) {
|
|
28
|
+
const ceiling = Number.isFinite(resizable._maxSizePx) ? resizable._maxSizePx : Number.POSITIVE_INFINITY;
|
|
29
|
+
const points = [...new Set(resizable._snaps.map((point) => Math.min(ceiling, Math.max(resizable._minSizePx, point))))].sort((left, right) => left - right);
|
|
30
|
+
const ahead = direction > 0 ? points.filter((point) => point > resizable._size) : points.filter((point) => point < resizable._size).reverse();
|
|
31
|
+
if (ahead.length === 0) return resizable._size;
|
|
32
|
+
return ahead[Math.min(count, ahead.length) - 1] ?? resizable._size;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 分隔条上的方向键、Home、End、Enter。
|
|
36
|
+
* 使用者自己的 keydown 要在调用本函数之前先跑。
|
|
37
|
+
*/
|
|
38
|
+
function handleResizeKey(event, resizable, sign, rtl, isHorizontal) {
|
|
39
|
+
const step = event.shiftKey ? KEYBOARD_LARGE_STEP : KEYBOARD_STEP;
|
|
40
|
+
const key = event.key;
|
|
41
|
+
if (key === "ArrowRight" || key === "ArrowDown" || key === "ArrowLeft" || key === "ArrowUp") {
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
if (resizable._isCollapsed) {
|
|
44
|
+
if (grows(key, rtl, sign, isHorizontal)) gesture(resizable, Math.max(resizable._minSizePx + step, resizable._collapsedSize));
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (resizable._snaps.length > 0) {
|
|
48
|
+
gesture(resizable, adjacentSnap(resizable, grows(key, rtl, sign, isHorizontal) ? 1 : -1, event.shiftKey ? 2 : 1) - resizable._size);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
gesture(resizable, (key === "ArrowRight" || key === "ArrowDown" ? 1 : -1) * step * (isHorizontal ? rtl : 1) * sign);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (key === "Home") {
|
|
55
|
+
event.preventDefault();
|
|
56
|
+
gesture(resizable, resizable._minSizePx - resizable._size);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (key === "End") {
|
|
60
|
+
event.preventDefault();
|
|
61
|
+
if (Number.isFinite(resizable._maxSizePx)) gesture(resizable, resizable._maxSizePx - resizable._size);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (key === "Enter") {
|
|
65
|
+
event.preventDefault();
|
|
66
|
+
if (resizable._collapsible) toggleCollapse(resizable);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
4
70
|
//#region src/Resizable/ResizeHandle.vue
|
|
5
71
|
const _hoisted_1 = [
|
|
6
72
|
"aria-orientation",
|
|
@@ -18,7 +84,8 @@ const _hoisted_1 = [
|
|
|
18
84
|
"data-active",
|
|
19
85
|
"data-resizing"
|
|
20
86
|
];
|
|
21
|
-
const _hoisted_2 = ["data-
|
|
87
|
+
const _hoisted_2 = ["data-bias"];
|
|
88
|
+
const _hoisted_3 = ["data-hidden"];
|
|
22
89
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
23
90
|
name: "AstryxResizeHandle",
|
|
24
91
|
inheritAttrs: false,
|
|
@@ -61,7 +128,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
61
128
|
const collapsed = computed(() => props.resizable?._isCollapsed ?? false);
|
|
62
129
|
const active = computed(() => hovered.value || focused.value || dragging.value);
|
|
63
130
|
const pillSide = computed(() => resolveSide(props.pillPlacement, props.isReversed, collapsed.value));
|
|
64
|
-
const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style" && key !== "onKeydown")));
|
|
131
|
+
const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style" && key !== "onKeydown" && key !== "onKeyDown")));
|
|
65
132
|
const rootClass = computed(() => ["astryx-resize-handle", attrs.class]);
|
|
66
133
|
const rootStyle = computed(() => attrs.style);
|
|
67
134
|
const ariaNow = computed(() => {
|
|
@@ -70,19 +137,28 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
70
137
|
return collapsed.value ? Math.max(resizable._size, resizable._minSizePx) : resizable._size;
|
|
71
138
|
});
|
|
72
139
|
const ariaMax = computed(() => {
|
|
73
|
-
const
|
|
74
|
-
|
|
140
|
+
const resizable = props.resizable;
|
|
141
|
+
if (resizable == null) return void 0;
|
|
142
|
+
const reported = getEffectiveMaxPx(resizable);
|
|
143
|
+
if (reported != null && Number.isFinite(reported)) return reported;
|
|
144
|
+
const max = resizable._maxSizePx;
|
|
145
|
+
return max != null && Number.isFinite(max) ? max : void 0;
|
|
75
146
|
});
|
|
147
|
+
let warnedAxis = false;
|
|
148
|
+
watch(() => [props.direction, props.resizable?._direction], ([direction, hookDirection]) => {
|
|
149
|
+
if (warnedAxis || hookDirection == null || hookDirection === direction) return;
|
|
150
|
+
warnedAxis = true;
|
|
151
|
+
devWarn("ResizeHandle", `direction="${direction}" but its useResizable region is "${hookDirection}". They must match: the hook measures one axis and the handle drags the other.`);
|
|
152
|
+
}, { immediate: true });
|
|
76
153
|
const ariaText = computed(() => collapsed.value && props.resizable ? messages.value.layout.collapsed : void 0);
|
|
77
|
-
const pillStyle = computed(() => offsetStyle(props.direction, pillSide.value
|
|
78
|
-
const hitStyle = computed(() => offsetStyle(props.direction, pillSide.value, false));
|
|
154
|
+
const pillStyle = computed(() => offsetStyle(props.direction, pillSide.value));
|
|
79
155
|
function resolveSide(placement, reversed, isCollapsed) {
|
|
80
156
|
if (placement !== "auto") return placement;
|
|
81
157
|
const panelSide = reversed ? "end" : "start";
|
|
82
158
|
if (isCollapsed) return panelSide === "start" ? "end" : "start";
|
|
83
159
|
return panelSide;
|
|
84
160
|
}
|
|
85
|
-
function offsetStyle(direction, side
|
|
161
|
+
function offsetStyle(direction, side) {
|
|
86
162
|
const dir = side === "center" ? 0 : side === "start" ? -1 : 1;
|
|
87
163
|
const gap = "var(--astryx-spacing-1, 4px)";
|
|
88
164
|
if (direction === "horizontal") {
|
|
@@ -90,27 +166,26 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
90
166
|
insetInlineStart: "50%",
|
|
91
167
|
transform: "translateX(-50%)"
|
|
92
168
|
};
|
|
93
|
-
if (pill) return {
|
|
94
|
-
insetInlineStart: "0",
|
|
95
|
-
transform: `translate(calc(${dir} * (100% + ${gap})), -50%)`
|
|
96
|
-
};
|
|
97
169
|
return {
|
|
98
170
|
insetInlineStart: "0",
|
|
99
|
-
transform: `
|
|
171
|
+
transform: `translate(calc(${dir} * (100% + ${gap})), -50%)`
|
|
100
172
|
};
|
|
101
173
|
}
|
|
102
174
|
if (side === "center") return {
|
|
103
175
|
insetBlockStart: "50%",
|
|
104
176
|
transform: "translateY(-50%)"
|
|
105
177
|
};
|
|
106
|
-
|
|
178
|
+
return {
|
|
107
179
|
top: "0",
|
|
108
180
|
transform: `translate(-50%, calc(${dir} * (100% + ${gap})))`
|
|
109
181
|
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
182
|
+
}
|
|
183
|
+
function callKeydown(handler, event) {
|
|
184
|
+
if (Array.isArray(handler)) {
|
|
185
|
+
for (const item of handler) callKeydown(item, event);
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
if (typeof handler === "function") handler(event);
|
|
114
189
|
}
|
|
115
190
|
function rtlMultiplier() {
|
|
116
191
|
if (props.direction !== "horizontal" || root.value == null) return 1;
|
|
@@ -172,39 +247,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
172
247
|
clearDrag();
|
|
173
248
|
props.resizable?._onResizeCancel?.();
|
|
174
249
|
}
|
|
175
|
-
function
|
|
250
|
+
function onRootKeyDown(event) {
|
|
251
|
+
callKeydown(attrs.onKeydown, event);
|
|
252
|
+
if (attrs.onKeyDown !== attrs.onKeydown) callKeydown(attrs.onKeyDown, event);
|
|
176
253
|
const resizable = props.resizable;
|
|
177
254
|
if (props.isDisabled || resizable == null) return;
|
|
178
|
-
|
|
179
|
-
const rtl = rtlMultiplier();
|
|
180
|
-
const move = (delta) => {
|
|
181
|
-
resizable._onResizeStart();
|
|
182
|
-
resizable._onResizeMove(delta);
|
|
183
|
-
resizable._onResizeEnd();
|
|
184
|
-
};
|
|
185
|
-
if (event.key === "ArrowRight" || event.key === "ArrowDown") {
|
|
186
|
-
event.preventDefault();
|
|
187
|
-
move(step * rtl * sign.value);
|
|
188
|
-
} else if (event.key === "ArrowLeft" || event.key === "ArrowUp") {
|
|
189
|
-
event.preventDefault();
|
|
190
|
-
move(-step * rtl * sign.value);
|
|
191
|
-
} else if (event.key === "Home") {
|
|
192
|
-
event.preventDefault();
|
|
193
|
-
move(resizable._minSizePx - resizable._size);
|
|
194
|
-
} else if (event.key === "End" && resizable._maxSizePx !== Number.POSITIVE_INFINITY) {
|
|
195
|
-
event.preventDefault();
|
|
196
|
-
move(resizable._maxSizePx - resizable._size);
|
|
197
|
-
} else if (event.key === "Enter" && resizable._collapsible) {
|
|
198
|
-
event.preventDefault();
|
|
199
|
-
move(resizable._isCollapsed ? resizable._minSizePx : -resizable._size);
|
|
200
|
-
}
|
|
255
|
+
handleResizeKey(event, resizable, sign.value, rtlMultiplier(), props.direction === "horizontal");
|
|
201
256
|
}
|
|
202
257
|
function doubleClick() {
|
|
203
258
|
const resizable = props.resizable;
|
|
204
259
|
if (props.isDisabled || resizable == null || !resizable._collapsible) return;
|
|
205
|
-
resizable
|
|
206
|
-
resizable._onResizeMove(resizable._isCollapsed ? resizable._minSizePx : -resizable._size);
|
|
207
|
-
resizable._onResizeEnd();
|
|
260
|
+
toggleCollapse(resizable);
|
|
208
261
|
}
|
|
209
262
|
onBeforeUnmount(() => {
|
|
210
263
|
if (frame) {
|
|
@@ -235,13 +288,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
235
288
|
"data-disabled": __props.isDisabled || void 0,
|
|
236
289
|
"data-active": active.value || void 0,
|
|
237
290
|
"data-resizing": dragging.value || void 0,
|
|
238
|
-
onKeydown:
|
|
291
|
+
onKeydown: onRootKeyDown,
|
|
239
292
|
onDblclick: doubleClick,
|
|
240
293
|
onFocus: _cache[2] || (_cache[2] = ($event) => focused.value = true),
|
|
241
294
|
onBlur: _cache[3] || (_cache[3] = ($event) => focused.value = false)
|
|
242
295
|
}), [createElementVNode("div", {
|
|
243
296
|
class: "astryx-resize-handle__hit",
|
|
244
|
-
|
|
297
|
+
"data-bias": pillSide.value,
|
|
245
298
|
onPointerdown: pointerDown,
|
|
246
299
|
onPointermove: pointerMove,
|
|
247
300
|
onPointerup: pointerUp,
|
|
@@ -249,11 +302,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
249
302
|
onLostpointercapture: pointerCancel,
|
|
250
303
|
onPointerenter: _cache[0] || (_cache[0] = ($event) => hovered.value = true),
|
|
251
304
|
onPointerleave: _cache[1] || (_cache[1] = ($event) => hovered.value = dragging.value)
|
|
252
|
-
}, null,
|
|
305
|
+
}, null, 40, _hoisted_2), renderSlot(_ctx.$slots, "default", {}, () => [createElementVNode("div", {
|
|
253
306
|
class: "astryx-resize-handle-pill",
|
|
254
307
|
"data-hidden": __props.isAlwaysVisible ? void 0 : true,
|
|
255
308
|
style: normalizeStyle(pillStyle.value)
|
|
256
|
-
}, null, 12,
|
|
309
|
+
}, null, 12, _hoisted_3)])], 16, _hoisted_1)], 2112);
|
|
257
310
|
};
|
|
258
311
|
}
|
|
259
312
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Cr as ScrollableAreaProps, Sr as _default, wr as ScrollableAreaSlots } from "../index-
|
|
1
|
+
import { Cr as ScrollableAreaProps, Sr as _default, wr as ScrollableAreaSlots } from "../index-CpNlPLBF.js";
|
|
2
2
|
export { _default as ScrollableArea, type ScrollableAreaProps, type ScrollableAreaSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../ScrollableArea-
|
|
1
|
+
import { t as _sfc_main } from "../ScrollableArea-0u6RWtGG.js";
|
|
2
2
|
export { _sfc_main as ScrollableArea };
|