@astryx-vue/core 0.7.21 → 0.7.23
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.d.ts +1 -1
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-C-7Ko5Iz.js → AlertDialog-XBjLwnAX.js} +14 -8
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-ggoyfRU8.js → AppShell--izaf9Fx.js} +3 -3
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-CP5bJN1n.js → Avatar-cNntRBEo.js} +18 -14
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-Caxyz9SE.js → AvatarGroup-DbWLEmi1.js} +2 -2
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-DbyQDB6e.js → Banner-ks2zPq6Z.js} +7 -5
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-ChaxnQlr.js → BottomSheet-BKeyoL9N.js} +1 -1
- package/dist/{BottomSheet-BTFPLoGw.js → BottomSheet-CMukh1iI.js} +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-DI7yRoNk.js → Breadcrumbs-k-Xqzbkt.js} +2 -2
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-j-zrKX71.js → Button-Byrr4hAu.js} +25 -79
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-DnkSZ9a5.js → ButtonGroup-B9sj-OvC.js} +5 -3
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-C3ImYBio.js → Calendar-d_uOkvFE.js} +3 -3
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/{Card-B-I24X9S.js → Card-H4571ZKi.js} +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BQDdfnXx.js → Carousel-CrRD6YdZ.js} +3 -3
- package/dist/Center/index.d.ts +1 -1
- package/dist/Center/index.js +1 -1
- package/dist/{Center-DVaZaTGP.js → Center-B7FTd7Hw.js} +2 -10
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-CNPH-uIM.js → Chat-D0m-tH7R.js} +11 -8
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-B5xAXedF.js → CheckboxInput-B4pDfjvr.js} +5 -5
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DtX0fbxc.js → CheckboxList-DtxfdHRI.js} +14 -10
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-BDHIuvX3.js → Citation-CCu6QWG7.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-Co1tB4i-.js → ClickableCard-jEBZbzHE.js} +2 -2
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-D3YjfbpG.js → CodeBlock-C1CyMSCL.js} +17 -6
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-DPC_G0Me.js → Collapsible-BsPZ8CoN.js} +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-CM5VyZTp.js → CommandPalette-0Kg-dJg3.js} +5 -5
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DS23yb98.js → ComplexSelector-wbVUmVh6.js} +6 -6
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DPY3WDdI.js → ContextMenu-CgSIWUYh.js} +7 -7
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-Bg_CG9Gq.js → DateInput-CdwODQhw.js} +16 -14
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Dz2AUP0I.js → DateRangeInput-Byb8zqZ2.js} +14 -12
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BVbqFtKG.js → DateTimeInput-lcpORu_P.js} +15 -13
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +1 -1
- package/dist/{DialogHeader-B9o0yEd3.js → DialogHeader-8cIwslf4.js} +26 -17
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-D15rGbvd.js → Drawer-B8OuWU7j.js} +1 -1
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-Ct4EORZS.js → DropdownMenu-BYD5fFzB.js} +7 -7
- package/dist/{DropdownMenu-DntJ04S-.js → DropdownMenu-BnY1UWKa.js} +8 -8
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CVbtVcRb.js → EmptyState-BQrzgh2f.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-CQkyMITp.js → Field-DLg-trP2.js} +2 -2
- package/dist/{FieldIcon--Qng2Cup.js → FieldIcon-CxTnEb4Y.js} +1 -1
- package/dist/{FieldInfoTip-DJjB5GkG.js → FieldInfoTip-xYN2qeQk.js} +3 -3
- package/dist/{FieldLabel-D9uEygay.js → FieldLabel-D5_Pap_W.js} +9 -5
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-BOtg9PvT.js → FieldStatus-D6Vo_dU5.js} +4 -3
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-tLDnY0rm.js → FileInput-D2AOeGrs.js} +9 -9
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-CwMG-5tj.js → Heading-D0zL1j5T.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-SuGMVIZR.js → HoverCard-B9uadAzT.js} +2 -1
- package/dist/Icon/index.js +1 -1
- package/dist/{Icon-Dosui-zD.js → Icon-CU3412Fe.js} +6 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CR5nMj-j.js → IconButton-Dzhukpzc.js} +1 -1
- package/dist/Indicator/index.js +1 -1
- package/dist/InfoTip/index.d.ts +2 -0
- package/dist/InfoTip/index.js +5 -0
- package/dist/InfoTip-BlOySTNC.js +95 -0
- package/dist/{InputClearButton-C1LdboAn.js → InputClearButton-D9QzdIWM.js} +3 -3
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-Tvm7cVv3.js → InputGroup-BleRgc6W.js} +8 -4
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-DKNYYBp5.js → InternationalizationProvider-CWJDt7Qb.js} +2 -2
- package/dist/{Item-DWMIjN8n.js → Item-X9wgYWoD.js} +1 -1
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-JJRCG7Mf.js → Layout-mHcy28k7.js} +3 -2
- package/dist/{LayoutPanel-zM5vjrKS.js → LayoutPanel-DpbBk6rj.js} +4 -27
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Cu56MBXY.js → Lightbox-COttfQHP.js} +3 -3
- package/dist/Link/index.d.ts +3 -3
- package/dist/Link/index.js +1 -1
- package/dist/{Link-YpnthlXS.js → Link-Qhzs2lcO.js} +27 -20
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-Cq_nU1YV.js → ListItem-CertehfW.js} +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DLeP1tb9.js → Markdown-C42NPUFp.js} +9 -7
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-sNNwmmXa.js → MetadataList-wOngshS5.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DgEwchpj.js → MobileNavToggle-C8KAzhRl.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-B2RqL8Dk.js → MoreMenu-CocuDVj-.js} +13 -11
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BdEMzzhg.js → MultiSelector-D0g3yHj6.js} +36 -38
- package/dist/{NavDisclosure-snipr7Cd.js → NavDisclosure-BbRWuyhq.js} +1 -1
- package/dist/{NavHeadingSurface-tn7cGNlX.js → NavHeadingSurface-B2HkXx6S.js} +3 -3
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-BPb3yfgz.js → NavItem-DfHMmSsw.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-BA5lW02j.js → NavMenu-CZS5pRUv.js} +1 -1
- package/dist/{NavMenuItem-BuIgWJq8.js → NavMenuItem-duQuvU1o.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DC-_pL6R.js → NumberInput-DEfKx0qI.js} +18 -31
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-C6xBCP2y.js → Outline-D3g7Vq7-.js} +2 -2
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-BHnarnHA.js → OverflowList-WwL2NPbI.js} +3 -3
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-968o5gbr.js → Pagination-Cn53Nqe3.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-nNZl2uqy.js → Popover-D90phFsK.js} +10 -6
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CibPe6gr.js → PowerSearch-Cj_D0iaM.js} +88 -73
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-Cmbhdfla.js → ProgressBar-Dt5AS0GY.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-DuhW4utO.js → RadioGroup-B2lYTCeV.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-Bq3Ndazr.js → RadioList-CieZtXzY.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-Bxt3HOsd.js → ResizeHandle-uBJj4W1M.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-0u6RWtGG.js → ScrollableArea-BgIytCxo.js} +3 -8
- package/dist/Scrollbars/index.js +2 -2
- package/dist/{Scrollbars-D_93hJYK.js → Scrollbars-Gvu4QVaF.js} +1 -1
- package/dist/Section/index.js +1 -1
- package/dist/{Section-v2QuWBBJ.js → Section-Km_FjJ-i.js} +2 -7
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-D1wWGBZo.js → SegmentedControl-BmDn1avo.js} +6 -4
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-DmV8zq4L.js → SelectableCard-2a2gsxys.js} +2 -2
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-Bl_vRB6B.js → Selector-CgrXQtte.js} +121 -51
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BkYc75A-.js → SideNav-GELGN9LR.js} +45 -27
- package/dist/SizeContext/index.d.ts +2 -0
- package/dist/SizeContext/index.js +2 -0
- package/dist/SizeContext-BbaF-SEx.js +37 -0
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DmQDKGvY.js → Slider-CEhy-D-R.js} +3 -3
- package/dist/Spinner/index.js +1 -1
- package/dist/{Spinner-D8YW_EgO.js → Spinner-CTWLR75x.js} +1 -1
- package/dist/Stack/index.js +2 -2
- package/dist/{Stack-Bp-XN9J4.js → Stack-DPB-Ztf7.js} +3 -11
- package/dist/{Stack-Bb_h60t3.js → Stack-Tw4I_dt-.js} +2 -2
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-DhNtAVEN.js → StatusDot-Bu_nCu0I.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CWoK1f1i.js → Stepper-DVXisudw.js} +148 -66
- package/dist/Switch/index.d.ts +2 -2
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-D_P5kd9S.js → Switch-DXShvaDA.js} +11 -5
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-B9RRmiqV.js → TabList-DIEm4YKM.js} +10 -8
- package/dist/Table/index.d.ts +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/{Table-By-8bJNs.js → Table-Du4FXP9X.js} +27 -19
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +1 -1
- package/dist/{Text-D8ZIQxgB.js → Text-Wk-iDAzh.js} +2 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-MbA1CHBn.js → TextArea-CbQp3Lqm.js} +23 -13
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-BTh_93lB.js → TextInput-CkJRorQb.js} +10 -7
- package/dist/Theme/index.js +1 -1
- package/dist/{Theme-Db264zBm.js → Theme-D7_fQWgb.js} +569 -3
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BICV4We5.js → Thumbnail-7dKY4N-p.js} +6 -6
- package/dist/{TimeField-aSYbUpCL.js → TimeField-DGPsFfii.js} +9 -9
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-adg4eX-J.js → TimeInput-CnOvJGgC.js} +6 -4
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-cp10vcti.js → Timer-DL_MPa_h.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-Ip2NKQJq.js → Timestamp-BQc2NBd7.js} +5 -5
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BXHyruqR.js → Toast-DytdMVIS.js} +24 -18
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-CyZswHtC.js → ToggleButton-Cgr84UJy.js} +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-rBcE4hYh.js → Token-BJDLztV6.js} +2 -2
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-BbB7QIzQ.js → Tokenizer-yz0873oG.js} +45 -37
- package/dist/Toolbar/index.d.ts +2 -2
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-DKld_COt.js → Toolbar-CbVhy7K9.js} +3 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -1
- package/dist/Tooltip-BfKegFfq.js +126 -0
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-Dwu7beKR.js → TopNav-aCHKxMyk.js} +7 -7
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-XMAHW9fH.js → TreeList-tcEjVfb0.js} +34 -26
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-CFOX5CtL.js → Typeahead-ClidGB0O.js} +8 -8
- package/dist/{TypeaheadMenu-CafYGgVa.js → TypeaheadMenu-Bu9HO-wZ.js} +1 -1
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +6 -5
- package/dist/{composables-rlh0LyHP.js → composables-BWDrzi3J.js} +1 -1
- package/dist/{context-dY6CBI-t.js → context-BLSiTojH.js} +12 -2
- package/dist/context-Bv6lAoqu.js +26 -0
- package/dist/{index-GpET2_oj.d.ts → index--tm6L1ot.d.ts} +2 -2
- package/dist/{index-oYGkhGRq.d.ts → index--uIQXVJ7.d.ts} +3 -4
- package/dist/{index-COxy6LEW.d.ts → index-6kd7pher.d.ts} +0 -1
- package/dist/{index-Dacg7XTH.d.ts → index-8px-LKw_.d.ts} +2 -2
- package/dist/{index-ChCcxRFB.d.ts → index-9eluGe3a.d.ts} +1 -1
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-BxWCX2pJ.d.ts → index-BOCb89V9.d.ts} +1 -1
- package/dist/{index-G935Rujh.d.ts → index-BUZDSd-n.d.ts} +96 -2
- package/dist/{index-B8EnP-PB.d.ts → index-BfQ85cS8.d.ts} +0 -1
- package/dist/{index-D_K1wfRa.d.ts → index-BhLLG-Gi.d.ts} +2 -2
- package/dist/{index-BaxM-pFP.d.ts → index-BnEhvmdR.d.ts} +4 -4
- package/dist/{index-C085uLOn.d.ts → index-BqEPgwku.d.ts} +3 -4
- package/dist/{index-Dl4Kx5Pl.d.ts → index-BzZC2Y7c.d.ts} +14 -4
- package/dist/{index-CL8JvxHW.d.ts → index-C1zwvxPH.d.ts} +2 -2
- package/dist/{index-C-tFz2Yx.d.ts → index-C9ZssPUV.d.ts} +1 -1
- package/dist/{index-CRPSZ4nY.d.ts → index-CFm1rPma.d.ts} +1 -1
- package/dist/{index-ChOyJzJh.d.ts → index-CO9GW-ik.d.ts} +1 -1
- package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-DAMHLkmd.d.ts → index-CfPGC9aW.d.ts} +1 -1
- package/dist/{index-rszZajcw.d.ts → index-Cy1rEWC-.d.ts} +1 -1
- package/dist/{index-DUnLj1kn.d.ts → index-DLq_N8bd.d.ts} +1 -1
- package/dist/{index-CKpz_Eed.d.ts → index-DX4HQToB.d.ts} +1 -1
- package/dist/{index-IfiA8CSr.d.ts → index-DZKv1WNB.d.ts} +3 -3
- package/dist/{index-CAttPKaF.d.ts → index-DjVJDoz4.d.ts} +1 -1
- package/dist/{index-BlujHTbz.d.ts → index-Dw-zjHHD.d.ts} +6 -7
- package/dist/{index-QmmrXztz.d.ts → index-EvhMa33P.d.ts} +5 -5
- package/dist/{index-B9xI9ns-.d.ts → index-HoCUEVoX.d.ts} +225 -157
- package/dist/{index-BbArm3_c.d.ts → index-LySSG_PR.d.ts} +1 -1
- package/dist/{index-DaXzQxos.d.ts → index-MEix_m1o.d.ts} +2 -2
- package/dist/{index-BNaRK-s5.d.ts → index-O9y23OPJ.d.ts} +11 -1
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-C3f1zsJR.d.ts → index-UFlyBbRd.d.ts} +2 -2
- package/dist/{index-D21zdEgS.d.ts → index-Uh-ddE5F.d.ts} +1 -1
- package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
- package/dist/{index-YiuDd72p.d.ts → index-cJKrAHO-.d.ts} +22 -9
- package/dist/{index-3t5RAfNP.d.ts → index-mkbGYz8f.d.ts} +2 -2
- package/dist/index-q7fVtnQc.d.ts +48 -0
- package/dist/{index-mcNmCMqs.d.ts → index-uqEqPcmR.d.ts} +2 -2
- package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
- package/dist/index.d.ts +66 -67
- package/dist/index.js +132 -125
- package/dist/{loadCatalog-Cr3451_V.js → loadCatalog-85MyL2bm.js} +1 -1
- package/dist/{loadCatalog-DNIEPF3f.d.ts → loadCatalog-DSRSkHnY.d.ts} +9 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -4
- package/dist/{locale-BdA3CTlQ.js → locale-C7RSY-JG.js} +77 -77
- package/dist/{searchResultMessage-BTUZRCT6.js → searchResultMessage-T4H3r8Vz.js} +3 -3
- package/dist/sharedResizeObserver-9EFWnSWH.js +87 -0
- package/dist/{size-Cpn_wzXi.js → size-BfginNaZ.js} +19 -1
- package/dist/{types-BymI5mmm.d.ts → types-B8suOGP8.d.ts} +3 -2
- package/dist/{useAnchoredListbox-DwQTMWjI.js → useAnchoredListbox-6t5zSSz1.js} +1 -1
- package/dist/useButtonTooltip-DjCaZMp_.js +73 -0
- package/dist/{useIndicator-fTOZfYVI.js → useIndicator-BvF_KY9S.js} +1 -1
- package/dist/{useInputStatusIcon-CX16yX33.js → useInputStatusIcon-Bpe0xKqN.js} +2 -2
- package/dist/{useMergedRefs-CG0YVRL-.js → useLayer-Byjda3dD.js} +2 -23
- package/dist/{useMenuDrillIn-B6jh8tv8.js → useMenuDrillIn-C36Z89W3.js} +3 -3
- package/dist/useMergedRefs-DTGo1cEU.js +22 -0
- package/dist/{usePositionedLayer-HrhF3lEZ.js → usePositionedLayer-psKf3ano.js} +13 -3
- package/dist/{usePressFeedback-BJCpjEpv.js → usePressFeedback-Dhnfc3ee.js} +19 -2
- package/dist/{useResizable-BJ0DaMml.d.ts → useResizable-fEGAFziz.d.ts} +2 -0
- package/dist/{useScrollbars-C2NJ6Qwq.js → useScrollbars-Ch0xqJWO.js} +3 -0
- package/dist/useTooltip-BKsCTWdb.js +415 -0
- package/dist/{useTranslator-DZBywLvR.js → useTranslator-BDUOzbP_.js} +1 -1
- package/dist/utils/index.js +2 -1
- package/dist/{utils-BE5HBOBX.js → utils-BOmFijPc.js} +1 -87
- package/package.json +9 -1
- package/styles/app-shell.css +12 -0
- package/styles/avatar.css +14 -2
- package/styles/banner.css +35 -27
- package/styles/bottom-sheet.css +8 -1
- package/styles/button.css +47 -13
- package/styles/calendar.css +3 -1
- package/styles/chat.css +53 -32
- package/styles/clickable-card.css +3 -3
- package/styles/code.css +5 -7
- package/styles/collapsible.css +10 -0
- package/styles/complex-selector.css +3 -3
- package/styles/container-reveal.css +161 -69
- package/styles/dialog-header.css +6 -0
- package/styles/dialog.css +29 -9
- package/styles/dropdown-menu.css +7 -6
- package/styles/empty-state.css +0 -4
- package/styles/field.css +37 -20
- package/styles/heading.css +20 -9
- package/styles/icon.css +11 -6
- package/styles/info-tip.css +45 -0
- package/styles/layout.css +2 -1
- package/styles/link.css +54 -7
- package/styles/list.css +1 -1
- package/styles/markdown.css +46 -2
- package/styles/more-menu.css +3 -2
- package/styles/multi-selector.css +6 -6
- package/styles/number-input.css +1 -2
- package/styles/popover.css +2 -2
- package/styles/power-search.css +10 -1
- package/styles/pressable.css +4 -4
- package/styles/radio.css +2 -3
- package/styles/section.css +3 -0
- package/styles/segmented-control.css +13 -0
- package/styles/selector.css +25 -10
- package/styles/side-nav.css +75 -2
- package/styles/slider.css +5 -2
- package/styles/stepper-track.css +57 -0
- package/styles/stepper.css +81 -46
- package/styles/switch.css +22 -11
- package/styles/tab-list.css +7 -6
- package/styles/tab-menu.css +0 -1
- package/styles/table.css +38 -3
- package/styles/text-area.css +5 -8
- package/styles/text.css +21 -1
- package/styles/theme.css +2 -0
- package/styles/thumbnail.css +1 -1
- package/styles/toast.css +11 -21
- package/styles/token.css +1 -1
- package/styles/tokenizer.css +8 -1
- package/styles/toolbar.css +5 -1
- package/styles/top-nav.css +19 -6
- package/styles/tree-list.css +2 -3
- package/styles.css +2 -0
- package/dist/Tooltip-sESBLZwR.js +0 -339
- package/dist/index-CHuSkU5Q.d.ts +0 -26
- package/dist/types-CbiqoBoG.d.ts +0 -89
- package/dist/{index-BJ9Wim6J.d.ts → index-BqhgeAT4.d.ts} +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as useAstryxLocale } from "./context-
|
|
1
|
+
import { o as useAstryxLocale } from "./context-BLSiTojH.js";
|
|
2
2
|
import { computed, toValue } from "vue";
|
|
3
3
|
//#region src/locale/weekdays.ts
|
|
4
4
|
const standaloneShortWeekdayNamesByLocale = {
|
|
@@ -57,40 +57,40 @@ const standaloneShortWeekdayNamesByLocale = {
|
|
|
57
57
|
"lø."
|
|
58
58
|
],
|
|
59
59
|
"de": [
|
|
60
|
-
"So
|
|
61
|
-
"Mo
|
|
62
|
-
"Di
|
|
63
|
-
"Mi
|
|
64
|
-
"Do
|
|
65
|
-
"Fr
|
|
66
|
-
"Sa
|
|
60
|
+
"So",
|
|
61
|
+
"Mo",
|
|
62
|
+
"Di",
|
|
63
|
+
"Mi",
|
|
64
|
+
"Do",
|
|
65
|
+
"Fr",
|
|
66
|
+
"Sa"
|
|
67
67
|
],
|
|
68
68
|
"el": [
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
69
|
+
"Κυρ",
|
|
70
|
+
"Δευ",
|
|
71
|
+
"Τρί",
|
|
72
|
+
"Τετ",
|
|
73
|
+
"Πέμ",
|
|
74
|
+
"Παρ",
|
|
75
|
+
"Σάβ"
|
|
76
76
|
],
|
|
77
77
|
"en": [
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
78
|
+
"Sun",
|
|
79
|
+
"Mon",
|
|
80
|
+
"Tue",
|
|
81
|
+
"Wed",
|
|
82
|
+
"Thu",
|
|
83
|
+
"Fri",
|
|
84
|
+
"Sat"
|
|
85
85
|
],
|
|
86
86
|
"es": [
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
87
|
+
"dom",
|
|
88
|
+
"lun",
|
|
89
|
+
"mar",
|
|
90
|
+
"mié",
|
|
91
|
+
"jue",
|
|
92
|
+
"vie",
|
|
93
|
+
"sáb"
|
|
94
94
|
],
|
|
95
95
|
"fi": [
|
|
96
96
|
"su",
|
|
@@ -102,13 +102,13 @@ const standaloneShortWeekdayNamesByLocale = {
|
|
|
102
102
|
"la"
|
|
103
103
|
],
|
|
104
104
|
"fr": [
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
105
|
+
"dim.",
|
|
106
|
+
"lun.",
|
|
107
|
+
"mar.",
|
|
108
|
+
"mer.",
|
|
109
|
+
"jeu.",
|
|
110
|
+
"ven.",
|
|
111
|
+
"sam."
|
|
112
112
|
],
|
|
113
113
|
"he": [
|
|
114
114
|
"א׳",
|
|
@@ -165,13 +165,13 @@ const standaloneShortWeekdayNamesByLocale = {
|
|
|
165
165
|
"za"
|
|
166
166
|
],
|
|
167
167
|
"no": [
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
168
|
+
"søn.",
|
|
169
|
+
"man.",
|
|
170
|
+
"tir.",
|
|
171
|
+
"ons.",
|
|
172
|
+
"tor.",
|
|
173
|
+
"fre.",
|
|
174
|
+
"lør."
|
|
175
175
|
],
|
|
176
176
|
"pl": [
|
|
177
177
|
"nie",
|
|
@@ -201,13 +201,13 @@ const standaloneShortWeekdayNamesByLocale = {
|
|
|
201
201
|
"sáb."
|
|
202
202
|
],
|
|
203
203
|
"ro": [
|
|
204
|
-
"
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
"
|
|
204
|
+
"dum.",
|
|
205
|
+
"lun.",
|
|
206
|
+
"mar.",
|
|
207
|
+
"mie.",
|
|
208
208
|
"joi",
|
|
209
|
-
"
|
|
210
|
-
"
|
|
209
|
+
"vin.",
|
|
210
|
+
"sâm."
|
|
211
211
|
],
|
|
212
212
|
"ru": [
|
|
213
213
|
"вс",
|
|
@@ -219,31 +219,31 @@ const standaloneShortWeekdayNamesByLocale = {
|
|
|
219
219
|
"сб"
|
|
220
220
|
],
|
|
221
221
|
"sr": [
|
|
222
|
-
"
|
|
223
|
-
"
|
|
224
|
-
"
|
|
225
|
-
"
|
|
226
|
-
"
|
|
227
|
-
"
|
|
228
|
-
"
|
|
222
|
+
"нед",
|
|
223
|
+
"пон",
|
|
224
|
+
"уто",
|
|
225
|
+
"сре",
|
|
226
|
+
"чет",
|
|
227
|
+
"пет",
|
|
228
|
+
"суб"
|
|
229
229
|
],
|
|
230
230
|
"sv": [
|
|
231
|
-
"
|
|
232
|
-
"
|
|
233
|
-
"
|
|
234
|
-
"
|
|
235
|
-
"
|
|
236
|
-
"
|
|
237
|
-
"
|
|
231
|
+
"sön",
|
|
232
|
+
"mån",
|
|
233
|
+
"tis",
|
|
234
|
+
"ons",
|
|
235
|
+
"tors",
|
|
236
|
+
"fre",
|
|
237
|
+
"lör"
|
|
238
238
|
],
|
|
239
239
|
"tr": [
|
|
240
|
-
"
|
|
241
|
-
"
|
|
242
|
-
"
|
|
243
|
-
"
|
|
244
|
-
"
|
|
245
|
-
"
|
|
246
|
-
"
|
|
240
|
+
"Paz",
|
|
241
|
+
"Pzt",
|
|
242
|
+
"Sal",
|
|
243
|
+
"Çar",
|
|
244
|
+
"Per",
|
|
245
|
+
"Cum",
|
|
246
|
+
"Cmt"
|
|
247
247
|
],
|
|
248
248
|
"uk": [
|
|
249
249
|
"нд",
|
|
@@ -273,13 +273,13 @@ const standaloneShortWeekdayNamesByLocale = {
|
|
|
273
273
|
"周六"
|
|
274
274
|
],
|
|
275
275
|
"zh-TW": [
|
|
276
|
-
"
|
|
277
|
-
"
|
|
278
|
-
"
|
|
279
|
-
"
|
|
280
|
-
"
|
|
281
|
-
"
|
|
282
|
-
"
|
|
276
|
+
"週日",
|
|
277
|
+
"週一",
|
|
278
|
+
"週二",
|
|
279
|
+
"週三",
|
|
280
|
+
"週四",
|
|
281
|
+
"週五",
|
|
282
|
+
"週六"
|
|
283
283
|
]
|
|
284
284
|
};
|
|
285
285
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
2
|
-
import { n as useButtonTooltip } from "./Button-j-zrKX71.js";
|
|
1
|
+
import { t as _sfc_main$1 } from "./Icon-CU3412Fe.js";
|
|
3
2
|
import { t as _sfc_main$2 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
4
|
-
import {
|
|
3
|
+
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
4
|
+
import { s as useAstryxMessages } from "./context-BLSiTojH.js";
|
|
5
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, openBlock, unref, useId, useTemplateRef, withModifiers } from "vue";
|
|
6
6
|
//#region src/Field/StatusGlyph.vue
|
|
7
7
|
const _hoisted_1 = ["data-status", "aria-label"];
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
//#region src/utils/sharedResizeObserver.ts
|
|
2
|
+
let observer = null;
|
|
3
|
+
const callbacks = /* @__PURE__ */ new Map();
|
|
4
|
+
/**
|
|
5
|
+
* The shared observer, or null where the API does not exist (jsdom, an old
|
|
6
|
+
* browser). Callers still get the one-shot measurement `observeResize` fires
|
|
7
|
+
* on registration; live resize updates are the part that needs the API.
|
|
8
|
+
*/
|
|
9
|
+
function getObserver() {
|
|
10
|
+
if (typeof ResizeObserver === "undefined") return null;
|
|
11
|
+
if (!observer) observer = new ResizeObserver((entries) => {
|
|
12
|
+
for (const entry of entries) {
|
|
13
|
+
const targetCallbacks = callbacks.get(entry.target);
|
|
14
|
+
if (targetCallbacks) for (const cb of [...targetCallbacks.keys()]) cb(entry);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
return observer;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Observe an element's size via a shared ResizeObserver singleton.
|
|
21
|
+
*
|
|
22
|
+
* Fires the callback once synchronously on registration (with a
|
|
23
|
+
* synthetic entry) so callers don't need separate initial-measurement
|
|
24
|
+
* logic. Subsequent callbacks fire on actual resizes.
|
|
25
|
+
*
|
|
26
|
+
* Returns an unsubscribe function that removes only this registration, leaving
|
|
27
|
+
* every other observer of the same element intact — prefer it over
|
|
28
|
+
* `unobserveResize(element)`, which drops them all. The shared observer is
|
|
29
|
+
* destroyed when the last element is unobserved.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```
|
|
33
|
+
* const unsubscribe = observeResize(element, (entry) => {
|
|
34
|
+
* console.log(entry.contentBoxSize);
|
|
35
|
+
* });
|
|
36
|
+
*
|
|
37
|
+
* // Cleanup:
|
|
38
|
+
* unsubscribe();
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
function observeResize(element, callback) {
|
|
42
|
+
const existing = callbacks.get(element);
|
|
43
|
+
if (existing) existing.set(callback, (existing.get(callback) ?? 0) + 1);
|
|
44
|
+
else callbacks.set(element, /* @__PURE__ */ new Map([[callback, 1]]));
|
|
45
|
+
getObserver()?.observe(element);
|
|
46
|
+
callback({ target: element });
|
|
47
|
+
let isSubscribed = true;
|
|
48
|
+
return () => {
|
|
49
|
+
if (!isSubscribed) return;
|
|
50
|
+
isSubscribed = false;
|
|
51
|
+
unobserveResize(element, callback);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Stop observing an element.
|
|
56
|
+
*
|
|
57
|
+
* Pass the callback to remove only that registration — the unsubscribe returned
|
|
58
|
+
* by `observeResize` does this for you. Omitting it removes EVERY callback on
|
|
59
|
+
* the element, which silences peers that are still mounted, so it is only
|
|
60
|
+
* correct for a caller that owns the element outright.
|
|
61
|
+
*
|
|
62
|
+
* If no elements remain, the shared observer is disconnected and released for
|
|
63
|
+
* garbage collection.
|
|
64
|
+
*/
|
|
65
|
+
function unobserveResize(element, callback) {
|
|
66
|
+
const targetCallbacks = callbacks.get(element);
|
|
67
|
+
if (callback != null) {
|
|
68
|
+
const registrationCount = targetCallbacks?.get(callback);
|
|
69
|
+
if (targetCallbacks == null || registrationCount == null) return;
|
|
70
|
+
if (registrationCount > 1) {
|
|
71
|
+
targetCallbacks.set(callback, registrationCount - 1);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
targetCallbacks.delete(callback);
|
|
75
|
+
if (targetCallbacks.size > 0) return;
|
|
76
|
+
}
|
|
77
|
+
callbacks.delete(element);
|
|
78
|
+
if (observer) {
|
|
79
|
+
observer.unobserve(element);
|
|
80
|
+
if (callbacks.size === 0) {
|
|
81
|
+
observer.disconnect();
|
|
82
|
+
observer = null;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
export { unobserveResize as n, observeResize as t };
|
|
@@ -17,6 +17,24 @@ function formatSize(value) {
|
|
|
17
17
|
if (value == null) return void 0;
|
|
18
18
|
return typeof value === "number" ? `${value}px` : value;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* 布局组件的尺寸属性转成内联样式,只放传了值的项。
|
|
22
|
+
* Vue 合并 style 数组时按键覆盖,写成 undefined 会把使用方 `style` 里同名的
|
|
23
|
+
* width / maxWidth 抹掉;原版同样只展开有值的项。
|
|
24
|
+
*/
|
|
25
|
+
function sizingStyle(props) {
|
|
26
|
+
const style = {};
|
|
27
|
+
for (const key of [
|
|
28
|
+
"width",
|
|
29
|
+
"height",
|
|
30
|
+
"maxWidth",
|
|
31
|
+
"minHeight"
|
|
32
|
+
]) {
|
|
33
|
+
const value = formatSize(props[key]);
|
|
34
|
+
if (value !== void 0) style[key] = value;
|
|
35
|
+
}
|
|
36
|
+
return style;
|
|
37
|
+
}
|
|
20
38
|
function spacingVariable(step) {
|
|
21
39
|
return step == null ? void 0 : SPACING_VARIABLES[step];
|
|
22
40
|
}
|
|
@@ -76,4 +94,4 @@ function supportsInternalContentWidth(width) {
|
|
|
76
94
|
return value === "0" || /^-?(?:\d+(?:\.\d+)?|\.\d+)[a-z]+$/.test(value) || /^(?:calc|min|max|clamp)\(/.test(value);
|
|
77
95
|
}
|
|
78
96
|
//#endregion
|
|
79
|
-
export {
|
|
97
|
+
export { spacingVariable as a, spacingEdgeVars as i, resolvePadding as n, supportsInternalContentWidth as o, sizingStyle as r, formatSize as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/Text/types.d.ts
|
|
2
|
-
type TextType = 'body' | 'large' | 'label' | 'supporting' | 'code' | 'display-1' | 'display-2' | 'display-3';
|
|
3
|
-
type TextSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
2
|
+
type TextType = 'body' | 'large' | 'label' | 'supporting' | 'code' | 'display-1' | 'display-2' | 'display-3' | 'inherit';
|
|
3
|
+
type TextSize = 'xsm' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
type TextColor = 'primary' | 'secondary' | 'accent' | 'disabled' | 'placeholder' | 'inherit';
|
|
5
5
|
type TextWeight = 'regular' | 'normal' | 'medium' | 'semibold' | 'bold';
|
|
6
6
|
type TextWrap = 'wrap' | 'nowrap' | 'balance' | 'pretty';
|
|
@@ -12,6 +12,7 @@ type TextTruncateTooltip = boolean | 'above' | 'below' | 'start' | 'end';
|
|
|
12
12
|
interface TextProps {
|
|
13
13
|
/**
|
|
14
14
|
* Semantic text type. Determines size, weight, and line-height.
|
|
15
|
+
* `inherit` 字号、行高、字重和颜色都跟随父元素,适合嵌在别的文字里。
|
|
15
16
|
* @default 'body'
|
|
16
17
|
*/
|
|
17
18
|
type?: TextType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-
|
|
1
|
+
import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-psKf3ano.js";
|
|
2
2
|
import { computed, onMounted, ref, toValue, watch } from "vue";
|
|
3
3
|
//#region src/Typeahead/useAnchoredListbox.ts
|
|
4
4
|
/** 想要的宽度再宽也要给视口留边。没给就不插手宽度。 */
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { onScopeDispose, shallowRef, watch } from "vue";
|
|
2
|
+
//#region src/Button/useButtonTooltip.ts
|
|
3
|
+
const HIDE_DELAY = 100;
|
|
4
|
+
const SHOW_DELAY = 200;
|
|
5
|
+
function useButtonTooltip(isEnabled) {
|
|
6
|
+
const isOpen = shallowRef(false);
|
|
7
|
+
let showTimer;
|
|
8
|
+
let hideTimer;
|
|
9
|
+
function clearShowTimer() {
|
|
10
|
+
if (showTimer != null) clearTimeout(showTimer);
|
|
11
|
+
showTimer = void 0;
|
|
12
|
+
}
|
|
13
|
+
function clearHideTimer() {
|
|
14
|
+
if (hideTimer != null) clearTimeout(hideTimer);
|
|
15
|
+
hideTimer = void 0;
|
|
16
|
+
}
|
|
17
|
+
function hideImmediately() {
|
|
18
|
+
clearShowTimer();
|
|
19
|
+
clearHideTimer();
|
|
20
|
+
isOpen.value = false;
|
|
21
|
+
}
|
|
22
|
+
function showImmediately() {
|
|
23
|
+
if (!isEnabled.value) return;
|
|
24
|
+
clearShowTimer();
|
|
25
|
+
clearHideTimer();
|
|
26
|
+
isOpen.value = true;
|
|
27
|
+
}
|
|
28
|
+
function onPointerEnter() {
|
|
29
|
+
if (!isEnabled.value) return;
|
|
30
|
+
clearShowTimer();
|
|
31
|
+
clearHideTimer();
|
|
32
|
+
showTimer = setTimeout(showImmediately, SHOW_DELAY);
|
|
33
|
+
}
|
|
34
|
+
function onPointerLeave() {
|
|
35
|
+
clearShowTimer();
|
|
36
|
+
clearHideTimer();
|
|
37
|
+
hideTimer = setTimeout(hideImmediately, HIDE_DELAY);
|
|
38
|
+
}
|
|
39
|
+
function onFocus(event) {
|
|
40
|
+
const target = event.currentTarget;
|
|
41
|
+
if (!(target instanceof HTMLElement)) return;
|
|
42
|
+
let isFocusVisible = true;
|
|
43
|
+
try {
|
|
44
|
+
isFocusVisible = target.matches(":focus-visible");
|
|
45
|
+
} catch {}
|
|
46
|
+
if (isFocusVisible) showImmediately();
|
|
47
|
+
}
|
|
48
|
+
function onTooltipPointerEnter() {
|
|
49
|
+
if (!isEnabled.value) return;
|
|
50
|
+
clearHideTimer();
|
|
51
|
+
isOpen.value = true;
|
|
52
|
+
}
|
|
53
|
+
watch(isEnabled, (enabled) => {
|
|
54
|
+
if (!enabled) hideImmediately();
|
|
55
|
+
});
|
|
56
|
+
onScopeDispose(() => {
|
|
57
|
+
clearShowTimer();
|
|
58
|
+
clearHideTimer();
|
|
59
|
+
});
|
|
60
|
+
return {
|
|
61
|
+
hideImmediately,
|
|
62
|
+
isOpen,
|
|
63
|
+
onBlur: onPointerLeave,
|
|
64
|
+
onFocus,
|
|
65
|
+
onPointerDown: hideImmediately,
|
|
66
|
+
onPointerEnter,
|
|
67
|
+
onPointerLeave,
|
|
68
|
+
onTooltipPointerEnter,
|
|
69
|
+
onTooltipPointerLeave: onPointerLeave
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { useButtonTooltip as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$2 } from "./Icon-
|
|
1
|
+
import { t as _sfc_main$2 } from "./Icon-CU3412Fe.js";
|
|
2
2
|
import { n as themeContextKey } from "./context-Cws_tXTr.js";
|
|
3
3
|
import { t as isRenderable } from "./isRenderable-BnKHIqfd.js";
|
|
4
4
|
import { n as decorativeAttrs, t as _sfc_main$3 } from "./CheckboxIndicator-fH4d-JE1.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as _sfc_main } from "./FieldIcon
|
|
2
|
-
import { t as _sfc_main$1 } from "./FieldInfoTip-
|
|
1
|
+
import { t as _sfc_main } from "./FieldIcon-CxTnEb4Y.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "./FieldInfoTip-xYN2qeQk.js";
|
|
3
3
|
import { computed, toValue } from "vue";
|
|
4
4
|
//#region src/composables/useInputStatusIcon.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-
|
|
1
|
+
import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-psKf3ano.js";
|
|
2
2
|
import { computed, shallowRef, toValue, useId } from "vue";
|
|
3
3
|
//#region src/composables/useLayer.ts
|
|
4
4
|
/**
|
|
@@ -105,25 +105,4 @@ function useLayer(options) {
|
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
//#endregion
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* 对应原版 Astryx 的 `hooks/useMergedRefs`。
|
|
111
|
-
*
|
|
112
|
-
* 把多个 `Ref` 和函数 ref 合成一个函数 ref,交给模板的 `:ref`。
|
|
113
|
-
* 组件既要往外转发使用者给的 ref,又要自己留一份内部 ref 时用得上。
|
|
114
|
-
*
|
|
115
|
-
* 返回的函数在组合式函数的生命周期里只有一份。直接在模板里写
|
|
116
|
-
* `:ref="value => { ... }"` 每次渲染都会造一个新函数,Vue 会先解绑再重新绑定,
|
|
117
|
-
* 白白多做一轮解绑和挂载。
|
|
118
|
-
*/
|
|
119
|
-
function useMergedRefs(refs) {
|
|
120
|
-
return function mergedRef(value) {
|
|
121
|
-
for (const target of refs) {
|
|
122
|
-
if (target == null) continue;
|
|
123
|
-
if (typeof target === "function") target(value);
|
|
124
|
-
else target.value = value;
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
//#endregion
|
|
129
|
-
export { useLayer as n, useMergedRefs as t };
|
|
108
|
+
export { useLayer as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
-
import { t as _sfc_main$4 } from "./Icon-
|
|
3
|
-
import { t as _sfc_main$5 } from "./Item-
|
|
2
|
+
import { t as _sfc_main$4 } from "./Icon-CU3412Fe.js";
|
|
3
|
+
import { t as _sfc_main$5 } from "./Item-X9wgYWoD.js";
|
|
4
4
|
import { t as _sfc_main$6 } from "./CheckboxIndicator-fH4d-JE1.js";
|
|
5
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useAttrs, useModel, useSlots, watch, withCtx } from "vue";
|
|
6
6
|
import "../styles/dropdown-menu.css";
|
|
@@ -91,7 +91,7 @@ function useMenuSelectableRow(options) {
|
|
|
91
91
|
const contextMenu = useContextMenu();
|
|
92
92
|
const menuSize = computed(() => contextMenu?.menuSize.value ?? dropdown?.menuSize.value ?? "md");
|
|
93
93
|
const controlSize = computed(() => menuSize.value === "sm" ? "sm" : "md");
|
|
94
|
-
const density = computed(() =>
|
|
94
|
+
const density = computed(() => "balanced");
|
|
95
95
|
const inContextMenu = computed(() => contextMenu != null);
|
|
96
96
|
function closeHost() {
|
|
97
97
|
if (!options.hasCloseOnSelect.value) return;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/composables/useMergedRefs.ts
|
|
2
|
+
/**
|
|
3
|
+
* 对应原版 Astryx 的 `hooks/useMergedRefs`。
|
|
4
|
+
*
|
|
5
|
+
* 把多个 `Ref` 和函数 ref 合成一个函数 ref,交给模板的 `:ref`。
|
|
6
|
+
* 组件既要往外转发使用者给的 ref,又要自己留一份内部 ref 时用得上。
|
|
7
|
+
*
|
|
8
|
+
* 返回的函数在组合式函数的生命周期里只有一份。直接在模板里写
|
|
9
|
+
* `:ref="value => { ... }"` 每次渲染都会造一个新函数,Vue 会先解绑再重新绑定,
|
|
10
|
+
* 白白多做一轮解绑和挂载。
|
|
11
|
+
*/
|
|
12
|
+
function useMergedRefs(refs) {
|
|
13
|
+
return function mergedRef(value) {
|
|
14
|
+
for (const target of refs) {
|
|
15
|
+
if (target == null) continue;
|
|
16
|
+
if (typeof target === "function") target(value);
|
|
17
|
+
else target.value = value;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { useMergedRefs as t };
|
|
@@ -73,9 +73,14 @@ function computeLayerPosition(anchor, layer, viewport, placement, alignment, gap
|
|
|
73
73
|
else if (resolved === "end" && anchor.right + gap + layer.width > viewport.width) resolved = "start";
|
|
74
74
|
let top;
|
|
75
75
|
let left;
|
|
76
|
+
let alignedTo = alignment;
|
|
77
|
+
if (resolved === "above" || resolved === "below") {
|
|
78
|
+
if (alignment === "start" && anchor.left + layer.width > viewport.width - gutter.inlineEnd && anchor.right - layer.width >= gutter.inlineStart) alignedTo = "end";
|
|
79
|
+
else if (alignment === "end" && anchor.right - layer.width < gutter.inlineStart && anchor.left >= gutter.inlineStart && anchor.left + layer.width <= viewport.width - gutter.inlineEnd) alignedTo = "start";
|
|
80
|
+
}
|
|
76
81
|
if (resolved === "above" || resolved === "below") {
|
|
77
82
|
top = resolved === "above" ? anchor.top - gap - layer.height : anchor.bottom + gap;
|
|
78
|
-
left = alignOnAxis(anchor.left, anchor.width, layer.width,
|
|
83
|
+
left = alignOnAxis(anchor.left, anchor.width, layer.width, alignedTo);
|
|
79
84
|
} else {
|
|
80
85
|
left = resolved === "start" ? anchor.left - gap - layer.width : anchor.right + gap;
|
|
81
86
|
top = alignOnAxis(anchor.top, anchor.height, layer.height, alignment);
|
|
@@ -85,9 +90,14 @@ function computeLayerPosition(anchor, layer, viewport, placement, alignment, gap
|
|
|
85
90
|
left,
|
|
86
91
|
placement: resolved
|
|
87
92
|
};
|
|
93
|
+
const horizontalPlacement = resolved === "above" || resolved === "below";
|
|
94
|
+
const minTop = horizontalPlacement ? resolved === "below" ? 0 : gutter.blockStart : alignment === "start" ? 0 : gutter.blockStart;
|
|
95
|
+
const minLeft = horizontalPlacement ? alignedTo === "start" ? 0 : gutter.inlineStart : resolved === "end" ? 0 : gutter.inlineStart;
|
|
96
|
+
const maxTop = viewport.height - layer.height - (horizontalPlacement ? resolved === "above" ? 0 : gutter.blockEnd : alignment === "end" ? 0 : gutter.blockEnd);
|
|
97
|
+
const maxLeft = viewport.width - layer.width - (horizontalPlacement ? alignedTo === "end" ? 0 : gutter.inlineEnd : resolved === "start" ? 0 : gutter.inlineEnd);
|
|
88
98
|
return {
|
|
89
|
-
top: clamp(top,
|
|
90
|
-
left: clamp(left,
|
|
99
|
+
top: clamp(top, minTop, maxTop),
|
|
100
|
+
left: clamp(left, minLeft, maxLeft),
|
|
91
101
|
placement: resolved
|
|
92
102
|
};
|
|
93
103
|
}
|
|
@@ -94,7 +94,7 @@ let lastScroller = null;
|
|
|
94
94
|
let lastTouchAt = 0;
|
|
95
95
|
let lastTouchTarget = null;
|
|
96
96
|
const TIMER_MS = {
|
|
97
|
-
fade:
|
|
97
|
+
fade: 175,
|
|
98
98
|
flash: 100,
|
|
99
99
|
onset: 150
|
|
100
100
|
};
|
|
@@ -103,6 +103,22 @@ const TIMER_EVENT = {
|
|
|
103
103
|
flash: "flashEnd",
|
|
104
104
|
onset: "onset"
|
|
105
105
|
};
|
|
106
|
+
/** 读出一个 CSS 时间值,单位毫秒。不是时间就返回 null。 */
|
|
107
|
+
function parseTimeMs(value) {
|
|
108
|
+
const match = /^\s*(-?(?:\d+(?:\.\d+)?|\.\d+))(ms|s)\s*$/.exec(value);
|
|
109
|
+
if (match == null) return null;
|
|
110
|
+
const amount = Number.parseFloat(match[1]);
|
|
111
|
+
return match[2] === "s" ? amount * 1e3 : amount;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* 抬手后淡出的时长:元素上主题的 `--astryx-duration-exit`,抬手时读一次。
|
|
115
|
+
* 读不出时间(没主题、或不是时间值)就用默认的 PRESS_FADE_MS。
|
|
116
|
+
*/
|
|
117
|
+
function pressFadeMs(element) {
|
|
118
|
+
if (typeof getComputedStyle !== "function") return 175;
|
|
119
|
+
const ms = parseTimeMs(getComputedStyle(element).getPropertyValue("--astryx-duration-exit"));
|
|
120
|
+
return ms != null && ms >= 0 ? ms : 175;
|
|
121
|
+
}
|
|
106
122
|
function paintElement(element, paint) {
|
|
107
123
|
if (paint === "none") element.removeAttribute(PRESSED_ATTRIBUTE);
|
|
108
124
|
else element.setAttribute(PRESSED_ATTRIBUTE, paint);
|
|
@@ -134,10 +150,11 @@ function apply(step) {
|
|
|
134
150
|
}
|
|
135
151
|
if (step.timer != null) {
|
|
136
152
|
const kind = step.timer;
|
|
153
|
+
const delay = kind === "fade" ? pressFadeMs(live.element) : TIMER_MS[kind];
|
|
137
154
|
live.timer = setTimeout(() => {
|
|
138
155
|
if (live != null) live.timer = null;
|
|
139
156
|
apply(pressGestureStep(live?.gesture ?? idlePressGesture(), { kind: TIMER_EVENT[kind] }));
|
|
140
|
-
},
|
|
157
|
+
}, delay);
|
|
141
158
|
}
|
|
142
159
|
}
|
|
143
160
|
/**
|
|
@@ -169,6 +169,8 @@ type TableFilterVariant = 'inline' | 'inline-compact' | 'popover';
|
|
|
169
169
|
interface TableFilterContribution {
|
|
170
170
|
variant: TableFilterVariant;
|
|
171
171
|
field: TableFilterField;
|
|
172
|
+
/** 所在列的标题文字;用来拼「筛选 xxx」这类无障碍名称,缺省时用字段名。 */
|
|
173
|
+
header?: string;
|
|
172
174
|
value: TableFilterValue | null;
|
|
173
175
|
onChange: (value: TableFilterValue | null) => void;
|
|
174
176
|
}
|
|
@@ -28,7 +28,10 @@ function useScrollbars(target, options = {}) {
|
|
|
28
28
|
watch([() => toValue(target), () => ctx.enabled.value && (toValue(options.enabled) ?? true)], ([element, enabled]) => {
|
|
29
29
|
release();
|
|
30
30
|
if (enabled && element instanceof HTMLElement) {
|
|
31
|
+
const { scrollTop, scrollLeft } = element;
|
|
31
32
|
handle = ctx.mount(element, ctx.options.value);
|
|
33
|
+
if (element.scrollTop !== scrollTop) element.scrollTop = scrollTop;
|
|
34
|
+
if (element.scrollLeft !== scrollLeft) element.scrollLeft = scrollLeft;
|
|
32
35
|
active.value = true;
|
|
33
36
|
}
|
|
34
37
|
}, {
|