@astryx-vue/core 0.19.1 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-CNb0dkY9.js → AlertDialog-DYYA2LOe.js} +6 -6
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-NvIT99xw.js → AppShell-zEXmJb1h.js} +116 -9
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-BXITu2pn.js → Banner-C4ZICVvW.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-CCW58Kl3.js → BottomSheet-DNuzJPfQ.js} +2 -2
- package/dist/{BottomSheet-HQpcSkPH.js → BottomSheet-DV7bboru.js} +1 -1
- package/dist/Breadcrumbs/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-DXzBkpkd.js → Breadcrumbs-C8nA3Ft9.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-BZtim0B-.js → Button-DOfigN38.js} +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-EpWZowJP.js → ButtonGroup-BzrDhbMP.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BaCXqtKK.js → Carousel-CRaHAUsZ.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-CXwXzlZ0.js → Chat-DTs843Ta.js} +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-3ONBl1AY.js → CheckboxInput-Ydl1GSBh.js} +33 -3
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CbRX5YDA.js → CheckboxList-Sn_ph-Xz.js} +64 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CLVXVlB7.js → CodeBlock-DXBJEZS6.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-ExzU7vC0.js → Collapsible-BG-u5nEt.js} +2 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-CECjNvGB.js → CommandPalette-CV7t0ouM.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Dmaag1wm.js → ComplexSelector-BKjyFdHr.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CujLDt4e.js → ContextMenu-CwnY6hcJ.js} +2 -2
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-CiIWOWXM.js → DateInput-BaX40vSs.js} +4 -4
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-CLVQ8E0Y.js → DateRangeInput-DplhXZqK.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-jHSN-Dzu.js → DateTimeInput-CrD1EEfs.js} +7 -7
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-BQ5OBB1d.js → Dialog-B2pOTrnQ.js} +1 -1
- package/dist/{Dialog-DgdbRn2l.js → Dialog-CztWmbf8.js} +1 -1
- package/dist/{DialogHeader-D8234o9F.js → DialogHeader-CjHTNccL.js} +2 -2
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-Dqus7kUc.js → Drawer-DGIuMLms.js} +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-BC_zB9le.js → DropdownMenu-l9c562oA.js} +31 -8
- package/dist/{DropdownMenu-LQsXd-_V.js → DropdownMenu-r93pI0mD.js} +4 -4
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-Bw0kWfMi.js → EmptyState-nyV5XxMA.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-BXkGR8H0.js → Field-CIZdFzXr.js} +1 -1
- package/dist/{FieldInfoTip-DzpUxMDh.js → FieldInfoTip-eJSORVbp.js} +1 -1
- package/dist/{FieldLabel-DI7Yqdhf.js → FieldLabel-BoMSIOLF.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BNHjbyQY.js → FileInput-DvGU92Sg.js} +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-Oph-5DDq.js → Heading-Bo6A69fA.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-Du2XBBAX.js → IconButton-oKXLxgYb.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-Bjw1ithP.js → InfoTip-DWC-vnT5.js} +1 -1
- package/dist/{InputClearButton-CED-zP2y.js → InputClearButton-CAitWZTk.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-D5PoL4cU.js → InputGroup-CeTKqJQn.js} +1 -1
- package/dist/{Item-CNR22qzk.js → Item-BSHDEJyh.js} +18 -10
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-RN_f7zRw.js → Lightbox-CesmEisI.js} +3 -3
- package/dist/Link/index.d.ts +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-BJ6ZaKcj.js → ListItem-v1GFTbba.js} +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DnnWjJGX.js → Markdown-CIA5ejYp.js} +2 -2
- package/dist/MobileNav/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DlQmYaBx.js → MobileNavToggle-CKEOroi0.js} +75 -32
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-i80Ey9vR.js → MoreMenu-DcImQxyp.js} +3 -3
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BK6nZweN.js → MultiSelector-DedRF-RL.js} +3 -3
- package/dist/{NavHeadingSurface-C17cbKn9.js → NavHeadingSurface-DZPa2px5.js} +19 -5
- package/dist/NavItem/index.d.ts +2 -2
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-BAe-tUG9.js → NavItem-CcbOJNnY.js} +18 -5
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-BsWTXomE.js → NumberInput-q9HP5L_V.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DFQNX_Mb.js → Pagination-DfAHckUV.js} +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CmAEizH-.js → Popover-D0jAIXkw.js} +3 -2
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-C2x4uuAM.js → PowerSearch-CU_MBQlC.js} +12 -12
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-FhoQMqg5.js → RadioGroup-Cm2n6M5C.js} +10 -2
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DK2uXQ5S.js → RadioList-B5MaynOw.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-BCvscZM9.js → SegmentedControl-D--5X0eZ.js} +9 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-Bo7qkt1P.js → Selector-wcbEB7BC.js} +2 -2
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-CcZLUd7G.js → SideNav-CYlAzvrT.js} +512 -58
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DIgb8ogt.js → Slider-jgmpvIDe.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-5toeiELX.js → Switch-YNk17Lct.js} +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-o3aGMDT1.js → Table-DcFujAPW.js} +12 -10
- package/dist/Text/index.js +2 -2
- package/dist/{Text-CiSw2pOi.js → Text-Bv4urzOW.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-B82oXF-m.js → TextArea-CixgkV__.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-_SIiqVOY.js → TextInput-Bpiq3FcP.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BlueoqOH.js → Thumbnail-Bktyar_H.js} +1 -1
- package/dist/{TimeField-BM-rVFhC.js → TimeField-BtiLoHqW.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-CkZfhhAr.js → TimeInput-eyxw3KzD.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DiIs5GLA.js → Timer-C-N-sElU.js} +2 -2
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-D9Jyk9sD.js → Timestamp-BTs10ZLD.js} +2 -2
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-D4Q6wvYu.js → Toast-DpMqZ72F.js} +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-CO0XWWc0.js → ToggleButton-W_tpgZ8k.js} +3 -3
- package/dist/Token/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-CsFiYUJ_.js → Tokenizer-Bs1VXinx.js} +2 -2
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CFkThrKq.js → TopNav-CSFUTuyI.js} +3 -3
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-ugSF9DWj.js → TreeList-B8p_lI7a.js} +18 -9
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead--kEp21ut.js → Typeahead-Bh0nap5Z.js} +2 -2
- package/dist/{landing-Bs0aMIsR.js → batch-BJD6Bt-O.js} +42 -740
- package/dist/composables/index.js +4 -4
- package/dist/{composables-BgfubKnk.js → composables-CDrwFX0l.js} +2 -19
- package/dist/context-Cj_zItu2.js +729 -0
- package/dist/{dateParser-DS_a8Ej8.js → dateParser-BKoaawL9.js} +46 -2
- package/dist/edge-DIlkB7vS.js +164 -0
- package/dist/edgeRide-D0oC2JEB.js +499 -0
- package/dist/focusAcrossSwap-Casww_IY.js +19 -0
- package/dist/focusRegion-CmDg7_4b.js +81 -0
- package/dist/{handle-BPXdHbkr.js → handle-ChN2TMKH.js} +1 -1
- package/dist/{index-C93nwgTW.d.ts → index-51CkIKnI.d.ts} +1 -1
- package/dist/{index--kbwaSXW.d.ts → index-5Hrxeq2J.d.ts} +4 -4
- package/dist/{index-D-giO0SA.d.ts → index-B63NOJRc.d.ts} +8 -8
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-CryFtTT6.d.ts → index-BIQZa2BD.d.ts} +1 -1
- package/dist/{index-CUCgbqBB.d.ts → index-BNtSmuWg.d.ts} +5 -5
- package/dist/{index-BO9TY87G.d.ts → index-BOCb89V9.d.ts} +3 -3
- package/dist/{index-Djf0M7PH.d.ts → index-BP2SjZiM.d.ts} +2 -2
- package/dist/{index-CdvmnNMH.d.ts → index-BaFphczL.d.ts} +1 -1
- package/dist/{index-CKUfpmFL.d.ts → index-C3FgFPrM.d.ts} +3 -1
- package/dist/{index-BeR-1LgF.d.ts → index-C5fbwY7Y.d.ts} +4 -3
- package/dist/{index-C4S65SAW.d.ts → index-CKnr0JlT.d.ts} +1 -1
- package/dist/{index-ohw86wfM.d.ts → index-CaE2cqeG.d.ts} +59 -55
- package/dist/{index-Otl047R1.d.ts → index-Cb-rvc1W.d.ts} +1 -1
- package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
- package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
- package/dist/{index-B449gOMC.d.ts → index-D1JXm7Et.d.ts} +3 -3
- package/dist/{index-BL4mH8aK.d.ts → index-DMN_JVEt.d.ts} +1 -1
- package/dist/{index-aE810PYg.d.ts → index-DmAEpn5E.d.ts} +1 -1
- package/dist/{index-CfXW4km8.d.ts → index-GgHVkJtB.d.ts} +1 -1
- package/dist/{index-DdT2wE_N.d.ts → index-LaQSu7ST.d.ts} +7 -7
- package/dist/{index-eCp-ElSp.d.ts → index-MvrDMqnQ.d.ts} +1 -1
- package/dist/{index-B-3EGjfQ.d.ts → index-Q1oG9yIT.d.ts} +2 -2
- package/dist/{index-DE1genab.d.ts → index-QnlWyUxN.d.ts} +2 -2
- package/dist/{index-Dg0JsBpI.d.ts → index-Y-AmNzkO.d.ts} +2 -2
- package/dist/{index-dWlCpnua.d.ts → index-mK1ICsVg.d.ts} +1 -1
- package/dist/{index-B3yTdknp.d.ts → index-vCRf5fyK.d.ts} +3 -2
- package/dist/index.d.ts +29 -29
- package/dist/index.js +77 -77
- package/dist/landing-C7nc9JHm.js +104 -0
- package/dist/quietFinished-CKZXgsPM.js +19 -0
- package/dist/sharedMutationObserver-Dvh3N1N2.js +41 -0
- package/dist/{timeFormat-CqrwFE42.js → timeFormat-Cnd5vu5t.js} +1 -1
- package/dist/{timeParser-D9tCF_b3.js → timeParser-nVL5sIwT.js} +34 -5
- package/dist/{types-BG23kC3S.d.ts → types-C2ZuV4jf.d.ts} +7 -1
- package/dist/{useActionGroupTracking-DGeOIv3K.js → useActionGroupTracking-fwmxDcU3.js} +1 -1
- package/dist/{useFocusTrap-BUd-fvUH.js → useFocusTrap-DsYtRdmV.js} +2 -81
- package/dist/{useInputStatusIcon-ne9V7ZQC.js → useInputStatusIcon-CVGsNTi_.js} +1 -1
- package/dist/{useMenuDrillIn-BaNYxWiS.js → useMenuDrillIn-DaH0nhPa.js} +1 -1
- package/dist/{useTimeValue-CcKrnO8z.js → useTimeValue-8YfPQffv.js} +2 -2
- package/dist/{useTouchHitArea-BI-CtI7e.js → useTouchHitArea-BKZL6tHX.js} +48 -5
- package/dist/{useTruncation-C4pdlaXa.js → useTruncation-BxYAhQtF.js} +1 -40
- package/dist/{useTruncationTooltip-DwUQN7fD.js → useTruncationTooltip-DeCGRmot.js} +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +2 -2
- package/package.json +1 -1
- package/styles/mobile-nav.css +4 -2
- package/styles/nav-item.css +3 -3
- package/styles/side-nav.css +36 -8
- package/styles/touch-hit-area.css +28 -0
- package/styles/tree-list.css +9 -4
- package/dist/context-ZsDEkhSF.js +0 -24
- package/dist/{index-BqhgeAT4.d.ts → index-BJ9Wim6J.d.ts} +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as useImperativeAlertDialog } from "../AlertDialog-
|
|
1
|
+
import { n as _sfc_main, t as useImperativeAlertDialog } from "../AlertDialog-DYYA2LOe.js";
|
|
2
2
|
export { _sfc_main as AlertDialog, useImperativeAlertDialog };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as pressGroupItemProps } from "./useTouchHitArea-
|
|
2
|
-
import { t as useActionGroupTracking } from "./useActionGroupTracking-
|
|
3
|
-
import { t as _sfc_main$1 } from "./Button-
|
|
1
|
+
import { a as pressGroupItemProps } from "./useTouchHitArea-BKZL6tHX.js";
|
|
2
|
+
import { t as useActionGroupTracking } from "./useActionGroupTracking-fwmxDcU3.js";
|
|
3
|
+
import { t as _sfc_main$1 } from "./Button-DOfigN38.js";
|
|
4
4
|
import { t as useCoarsePointer } from "./useCoarsePointer-GItEMrjX.js";
|
|
5
5
|
import { t as useMediaQuery } from "./useMediaQuery-BzXGT1Aw.js";
|
|
6
|
-
import { t as _sfc_main$2 } from "./Dialog-
|
|
7
|
-
import { t as _sfc_main$3 } from "./Heading-
|
|
6
|
+
import { t as _sfc_main$2 } from "./Dialog-CztWmbf8.js";
|
|
7
|
+
import { t as _sfc_main$3 } from "./Heading-Bo6A69fA.js";
|
|
8
8
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
9
9
|
import { t as _sfc_main$4 } from "./Stack-DPB-Ztf7.js";
|
|
10
|
-
import { t as _sfc_main$5 } from "./Text-
|
|
10
|
+
import { t as _sfc_main$5 } from "./Text-Bv4urzOW.js";
|
|
11
11
|
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, h, mergeProps, onMounted, openBlock, provide, ref, renderList, renderSlot, shallowRef, toDisplayString, unref, useId, useTemplateRef, withCtx } from "vue";
|
|
12
12
|
import "../styles/alert-dialog.css";
|
|
13
13
|
//#region src/AlertDialog/context.ts
|
package/dist/AppShell/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../AppShell-
|
|
1
|
+
import { t as _sfc_main } from "../AppShell-zEXmJb1h.js";
|
|
2
2
|
export { _sfc_main as AppShell };
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { n as createAnimatedLayout } from "./handle-ChN2TMKH.js";
|
|
2
|
+
import { g as layoutStartFor } from "./batch-BJD6Bt-O.js";
|
|
3
|
+
import { c as holdLayoutSwap, i as sideNavShellKey, l as playLayoutFrames, r as sideNavRenderModeKey, u as playLayoutSwap } from "./context-Cj_zItu2.js";
|
|
4
|
+
import { i as reportLayoutChange, n as landLayoutGlide, r as layoutMotionFor } from "./landing-C7nc9JHm.js";
|
|
1
5
|
import { t as appShellMobileKey } from "./useAppShellMobile-DTsyuAJ4.js";
|
|
2
6
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
3
7
|
import { t as attachScrollKeyboardDelegation } from "./scrollKeyboardDelegation-DZ4t5PvC.js";
|
|
@@ -5,8 +9,7 @@ import { n as observeMainOverflow } from "./useScrollRegionProps-DwkPUb-O.js";
|
|
|
5
9
|
import { a as _sfc_main$2, n as _sfc_main$4, r as _sfc_main$3, t as _sfc_main$5 } from "./LayoutPanel-DuroKU_A.js";
|
|
6
10
|
import { t as layoutMessages } from "./layout-DhX4-SyE.js";
|
|
7
11
|
import { t as navMessages } from "./nav-DpKQUHqR.js";
|
|
8
|
-
import { n as _sfc_main$7, t as _sfc_main$6 } from "./MobileNavToggle-
|
|
9
|
-
import { r as sideNavRenderModeKey } from "./context-ZsDEkhSF.js";
|
|
12
|
+
import { n as _sfc_main$7, t as _sfc_main$6 } from "./MobileNavToggle-CKEOroi0.js";
|
|
10
13
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeModels, mergeProps, openBlock, provide, reactive, ref, renderSlot, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
11
14
|
import "../styles/app-shell.css";
|
|
12
15
|
//#region src/SideNav/SideNavRenderMode.vue
|
|
@@ -23,6 +26,99 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
23
26
|
}
|
|
24
27
|
});
|
|
25
28
|
//#endregion
|
|
29
|
+
//#region src/AppShell/useAppShellRail.ts
|
|
30
|
+
/** 主内容区旁边的那一列:它的祖先里,父元素同时装着轨道的那一个。滑动移动它,轨道的边骑在它上面。 */
|
|
31
|
+
function columnOf(main, rail) {
|
|
32
|
+
let column = main;
|
|
33
|
+
while (column.parentElement != null && !column.parentElement.contains(rail)) column = column.parentElement;
|
|
34
|
+
return column;
|
|
35
|
+
}
|
|
36
|
+
function useAppShellRail(elements) {
|
|
37
|
+
const contentLayout = createAnimatedLayout(() => elements.root.value);
|
|
38
|
+
let pending = null;
|
|
39
|
+
let lastSwap = null;
|
|
40
|
+
return {
|
|
41
|
+
animatedLayout: contentLayout,
|
|
42
|
+
rail: () => elements.rail.value,
|
|
43
|
+
column: () => elements.main.value == null ? null : columnOf(elements.main.value, elements.rail.value),
|
|
44
|
+
landContent() {
|
|
45
|
+
if (elements.main.value != null) landLayoutGlide(columnOf(elements.main.value, elements.rail.value));
|
|
46
|
+
},
|
|
47
|
+
beforeRailChange() {
|
|
48
|
+
const main = elements.main.value;
|
|
49
|
+
if (main == null) return;
|
|
50
|
+
const motion = layoutMotionFor(main);
|
|
51
|
+
let change = null;
|
|
52
|
+
if (motion.kind === "glide") {
|
|
53
|
+
change = reportLayoutChange(contentLayout, () => elements.rail.value);
|
|
54
|
+
change.measureBefore();
|
|
55
|
+
}
|
|
56
|
+
let held = 1;
|
|
57
|
+
let entering = 0;
|
|
58
|
+
const last = lastSwap;
|
|
59
|
+
if (last != null && motion.kind === "glide") {
|
|
60
|
+
const elapsed = Math.max(0, layoutStartFor(main.ownerDocument) - last.startedAt);
|
|
61
|
+
if (elapsed < motion.progress.durationMs) {
|
|
62
|
+
const p = 1 - motion.progress.remaining(elapsed);
|
|
63
|
+
held = last.entering + (1 - last.entering) * p;
|
|
64
|
+
entering = last.held * (1 - p);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
lastSwap = null;
|
|
68
|
+
pending = {
|
|
69
|
+
change,
|
|
70
|
+
swap: holdLayoutSwap(contentLayout, main, { isVisiblePart: true }),
|
|
71
|
+
before: main.getBoundingClientRect(),
|
|
72
|
+
held,
|
|
73
|
+
entering
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
afterRailChange() {
|
|
77
|
+
const noted = pending;
|
|
78
|
+
pending = null;
|
|
79
|
+
const main = elements.main.value;
|
|
80
|
+
if (noted == null || main == null) return () => {};
|
|
81
|
+
noted.change?.animate();
|
|
82
|
+
const column = columnOf(main, elements.rail.value);
|
|
83
|
+
const after = main.getBoundingClientRect();
|
|
84
|
+
const isRtl = getComputedStyle(main).direction === "rtl";
|
|
85
|
+
const travel = isRtl ? noted.before.right - after.right : noted.before.left - after.left;
|
|
86
|
+
const cover = [];
|
|
87
|
+
const surface = elements.backdrop.value ?? main;
|
|
88
|
+
const color = getComputedStyle(surface).backgroundColor;
|
|
89
|
+
const isPainted = !/^rgba\(.*,\s*0\)$|^transparent$/.test(color);
|
|
90
|
+
const glides = layoutMotionFor(main).kind === "glide";
|
|
91
|
+
if ((isRtl ? travel > 0 : travel < 0) && glides && isPainted) cover.push({
|
|
92
|
+
element: surface,
|
|
93
|
+
frames: (p) => ({ boxShadow: `${-travel * (1 - p)}px 0px 0px 0px ${color}` })
|
|
94
|
+
});
|
|
95
|
+
if (noted.swap == null || column.parentElement == null) return playLayoutFrames(contentLayout, cover);
|
|
96
|
+
if (!glides && isPainted) noted.swap.copy.style.backgroundColor = color;
|
|
97
|
+
const { held, entering } = noted;
|
|
98
|
+
lastSwap = {
|
|
99
|
+
startedAt: layoutStartFor(main.ownerDocument),
|
|
100
|
+
held,
|
|
101
|
+
entering
|
|
102
|
+
};
|
|
103
|
+
return playLayoutSwap(noted.swap, {
|
|
104
|
+
host: column.parentElement,
|
|
105
|
+
copy: (p) => ({ opacity: held * (1 - p) }),
|
|
106
|
+
rideWith: {
|
|
107
|
+
element: column,
|
|
108
|
+
travel: {
|
|
109
|
+
x: travel,
|
|
110
|
+
y: 0
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
incoming: [...Array.from(main.children, (element) => ({
|
|
114
|
+
element,
|
|
115
|
+
frames: (p) => ({ opacity: entering + (1 - entering) * p })
|
|
116
|
+
})), ...cover]
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
//#endregion
|
|
26
122
|
//#region src/AppShell/AppShell.vue
|
|
27
123
|
const _hoisted_1 = ["data-variant", "data-height"];
|
|
28
124
|
const _hoisted_2 = ["href"];
|
|
@@ -34,11 +130,7 @@ const _hoisted_4 = {
|
|
|
34
130
|
const _hoisted_5 = ["data-variant"];
|
|
35
131
|
const _hoisted_6 = ["aria-label"];
|
|
36
132
|
const _hoisted_7 = ["data-elevated"];
|
|
37
|
-
const _hoisted_8 =
|
|
38
|
-
key: 0,
|
|
39
|
-
class: "astryx-app-shell__backdrop"
|
|
40
|
-
};
|
|
41
|
-
const _hoisted_9 = ["id"];
|
|
133
|
+
const _hoisted_8 = ["id"];
|
|
42
134
|
const mainId = "astryx-app-shell-main";
|
|
43
135
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
44
136
|
name: "AstryxAppShell",
|
|
@@ -169,6 +261,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
169
261
|
flush: "post",
|
|
170
262
|
immediate: true
|
|
171
263
|
});
|
|
264
|
+
const rail = useTemplateRef("rail");
|
|
265
|
+
const backdrop = useTemplateRef("backdrop");
|
|
266
|
+
provide(sideNavShellKey, useAppShellRail({
|
|
267
|
+
root: computed(() => root.value),
|
|
268
|
+
rail: computed(() => rail.value?.element ?? null),
|
|
269
|
+
main: computed(() => content.value?.element ?? null),
|
|
270
|
+
backdrop: computed(() => backdrop.value)
|
|
271
|
+
}));
|
|
172
272
|
function focusMain() {
|
|
173
273
|
const main = root.value?.ownerDocument.getElementById(mainId);
|
|
174
274
|
if (main == null) return;
|
|
@@ -200,7 +300,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
200
300
|
default: withCtx(() => [createElementVNode("div", {
|
|
201
301
|
class: "astryx-app-shell__main",
|
|
202
302
|
"data-elevated": elevate.value || void 0
|
|
203
|
-
}, [elevate.value ? (openBlock(), createElementBlock("div",
|
|
303
|
+
}, [elevate.value ? (openBlock(), createElementBlock("div", {
|
|
304
|
+
key: 0,
|
|
305
|
+
ref_key: "backdrop",
|
|
306
|
+
ref: backdrop,
|
|
307
|
+
class: "astryx-app-shell__backdrop"
|
|
308
|
+
}, null, 512)) : createCommentVNode("v-if", true), createVNode(_sfc_main$3, {
|
|
204
309
|
id: mainId,
|
|
205
310
|
ref_key: "content",
|
|
206
311
|
ref: content,
|
|
@@ -261,6 +366,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
261
366
|
} : void 0, showSideInline.value ? {
|
|
262
367
|
name: "start",
|
|
263
368
|
fn: withCtx(() => [createVNode(_sfc_main$5, {
|
|
369
|
+
ref_key: "rail",
|
|
370
|
+
ref: rail,
|
|
264
371
|
class: "astryx-app-shell__sidenav",
|
|
265
372
|
padding: 0,
|
|
266
373
|
"has-divider": __props.variant === "section",
|
|
@@ -283,7 +390,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
283
390
|
"onUpdate:isOpen": _cache[1] || (_cache[1] = ($event) => open.value = $event),
|
|
284
391
|
label: unref(messages).layout.mobileNavigation
|
|
285
392
|
}, {
|
|
286
|
-
default: withCtx(() => [createElementVNode("div", { id: `${mobileNavId}-items` }, null, 8,
|
|
393
|
+
default: withCtx(() => [createElementVNode("div", { id: `${mobileNavId}-items` }, null, 8, _hoisted_8), createVNode(_sfc_main$1, { mode: "drawer-content" }, {
|
|
287
394
|
default: withCtx(() => [renderSlot(_ctx.$slots, "sideNav")]),
|
|
288
395
|
_: 3
|
|
289
396
|
})]),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-
|
|
1
|
+
import { a as AvatarGroupOverflowSlots, i as AvatarGroupOverflowProps, n as _default, o as AvatarGroupProps, r as AvatarGroupOverflowEmits, t as _default$1 } from "../index-CaE2cqeG.js";
|
|
2
2
|
export { _default as AvatarGroup, _default$1 as AvatarGroupOverflow, type AvatarGroupOverflowEmits, type AvatarGroupOverflowProps, type AvatarGroupOverflowSlots, type AvatarGroupProps };
|
package/dist/Banner/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Co as BannerSlots, So as BannerProps, bo as BannerContainer, wo as BannerStatus, xo as BannerEmits, yo as _default } from "../index-
|
|
1
|
+
import { Co as BannerSlots, So as BannerProps, bo as BannerContainer, wo as BannerStatus, xo as BannerEmits, yo as _default } from "../index-CaE2cqeG.js";
|
|
2
2
|
export { _default as Banner, type BannerContainer, type BannerEmits, type BannerProps, type BannerSlots, type BannerStatus };
|
package/dist/Banner/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Banner-
|
|
1
|
+
import { t as _sfc_main } from "../Banner-C4ZICVvW.js";
|
|
2
2
|
export { _sfc_main as Banner };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as isRenderable } from "./isRenderable-BnKHIqfd.js";
|
|
2
2
|
import { t as _sfc_main$1 } from "./FieldIcon-DMtfe1Ne.js";
|
|
3
|
-
import { t as _sfc_main$2 } from "./IconButton-
|
|
3
|
+
import { t as _sfc_main$2 } from "./IconButton-oKXLxgYb.js";
|
|
4
4
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
5
5
|
import { t as bannerMessages } from "./banner-Bv76b50U.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, openBlock, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-
|
|
1
|
+
import { a as BottomSheetMotion, c as BottomSheetPurpose, d as BottomSheetState, i as BottomSheetHeight, l as BottomSheetSlots, n as _default, o as BottomSheetPadding, r as BottomSheetEmits, s as BottomSheetProps, t as _default$1, u as BottomSheetSnapPoint } from "../index-BOCb89V9.js";
|
|
2
2
|
export { _default as BottomSheet, type BottomSheetEmits, type BottomSheetHeight, type BottomSheetMotion, type BottomSheetPadding, type BottomSheetProps, type BottomSheetPurpose, type BottomSheetSlots, type BottomSheetSnapPoint, type BottomSheetState, _default$1 as BottomSheetSwitcher };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as _sfc_main } from "../BottomSheet-
|
|
2
|
-
import { t as _sfc_main$1 } from "../BottomSheet-
|
|
1
|
+
import { n as _sfc_main } from "../BottomSheet-DV7bboru.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "../BottomSheet-DNuzJPfQ.js";
|
|
3
3
|
export { _sfc_main as BottomSheet, _sfc_main$1 as BottomSheetSwitcher };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as bottomSheetSwitcherKey, r as useSheetLayerDismiss } from "./BottomSheet-
|
|
1
|
+
import { i as bottomSheetSwitcherKey, r as useSheetLayerDismiss } from "./BottomSheet-DV7bboru.js";
|
|
2
2
|
import { p as isImeKeyEvent } from "./interactionModality-B5dR7nnb.js";
|
|
3
|
-
import { t as useFocusTrap } from "./useFocusTrap-
|
|
3
|
+
import { t as useFocusTrap } from "./useFocusTrap-DsYtRdmV.js";
|
|
4
4
|
import { t as useScrollLock } from "./scrollLock-CoVg9lLU.js";
|
|
5
5
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeModels, mergeProps, nextTick, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, shallowRef, useModel, useTemplateRef, watch } from "vue";
|
|
6
6
|
import "../styles/bottom-sheet.css";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
|
|
2
2
|
import { c as useLayerDepth, f as pushLayer, p as isImeKeyEvent, s as provideLayerDepth, u as isTopLayer } from "./interactionModality-B5dR7nnb.js";
|
|
3
|
-
import { t as useFocusTrap } from "./useFocusTrap-BUd-fvUH.js";
|
|
4
3
|
import { t as focusForLastInput } from "./focusReturn-D7Y7Pwwb.js";
|
|
4
|
+
import { t as useFocusTrap } from "./useFocusTrap-DsYtRdmV.js";
|
|
5
5
|
import { t as useRestoreFocus } from "./useRestoreFocus-Cz_jM_nW.js";
|
|
6
6
|
import { t as attachScrollKeyboardDelegation } from "./scrollKeyboardDelegation-DZ4t5PvC.js";
|
|
7
7
|
import { t as useScrollLock } from "./scrollLock-CoVg9lLU.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { b as DropdownMenuCheckboxItemProps, j as DropdownMenuRadioItemProps, k as DropdownMenuRadioGroupProps, n as _default$2, r as _default$1, t as _default$3 } from "../DropdownMenuRadioItem.vue-C9DdN6UE.js";
|
|
2
|
-
import { a as BreadcrumbsProps, i as BreadcrumbMenuOption, n as _default, o as BreadcrumbsVariant, r as BreadcrumbItemProps, t as _default$4 } from "../index-
|
|
2
|
+
import { a as BreadcrumbsProps, i as BreadcrumbMenuOption, n as _default, o as BreadcrumbsVariant, r as BreadcrumbItemProps, t as _default$4 } from "../index-GgHVkJtB.js";
|
|
3
3
|
export { _default as BreadcrumbItem, type BreadcrumbItemProps, _default$1 as BreadcrumbMenuCheckboxItem, type DropdownMenuCheckboxItemProps as BreadcrumbMenuCheckboxItemProps, type BreadcrumbMenuOption, _default$2 as BreadcrumbMenuRadioGroup, type DropdownMenuRadioGroupProps as BreadcrumbMenuRadioGroupProps, _default$3 as BreadcrumbMenuRadioItem, type DropdownMenuRadioItemProps as BreadcrumbMenuRadioItemProps, _default$4 as Breadcrumbs, type BreadcrumbsProps, type BreadcrumbsVariant };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as _sfc_main$1, i as _sfc_main$2, r as _sfc_main$3 } from "../useMenuDrillIn-
|
|
2
|
-
import { n as _sfc_main, t as _sfc_main$4 } from "../Breadcrumbs-
|
|
1
|
+
import { a as _sfc_main$1, i as _sfc_main$2, r as _sfc_main$3 } from "../useMenuDrillIn-DaH0nhPa.js";
|
|
2
|
+
import { n as _sfc_main, t as _sfc_main$4 } from "../Breadcrumbs-C8nA3Ft9.js";
|
|
3
3
|
export { _sfc_main as BreadcrumbItem, _sfc_main$1 as BreadcrumbMenuCheckboxItem, _sfc_main$2 as BreadcrumbMenuRadioGroup, _sfc_main$3 as BreadcrumbMenuRadioItem, _sfc_main$4 as Breadcrumbs };
|
|
@@ -3,7 +3,7 @@ import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide
|
|
|
3
3
|
import { t as _sfc_main$2 } from "./Icon-BCHo7W0x.js";
|
|
4
4
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
5
5
|
import { n as useDevWarning } from "./useDevWarning-B2fsk2B-.js";
|
|
6
|
-
import { t as _sfc_main$3 } from "./DropdownMenu-
|
|
6
|
+
import { t as _sfc_main$3 } from "./DropdownMenu-r93pI0mD.js";
|
|
7
7
|
import { n as isNavigableHref } from "./link-DuuA2eCL.js";
|
|
8
8
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, onMounted, onScopeDispose, onUpdated, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, unref, useId, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
9
9
|
import "../styles/breadcrumbs.css";
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as ButtonProps, c as ButtonSizeValue, d as ButtonVariantMap, i as ButtonLinkElement, l as ButtonSlots, n as ButtonElevation, o as ButtonRootElement, r as ButtonEmits, s as ButtonSize, t as ButtonClickAction, u as ButtonVariant } from "../types-DRpOiAlm.js";
|
|
2
|
-
import { t as _default } from "../index
|
|
2
|
+
import { t as _default } from "../index-5Hrxeq2J.js";
|
|
3
3
|
export { _default as Button, _default as default, type ButtonClickAction, type ButtonElevation, type ButtonEmits, type ButtonLinkElement, type ButtonProps, type ButtonRootElement, type ButtonSize, type ButtonSizeValue, type ButtonSlots, type ButtonVariant, type ButtonVariantMap };
|
package/dist/Button/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as hasSlotContent } from "./slotContent-CNWOrGOr.js";
|
|
2
|
-
import { a as pressGroupItemProps, n as useTouchHitArea } from "./useTouchHitArea-
|
|
2
|
+
import { a as pressGroupItemProps, n as useTouchHitArea } from "./useTouchHitArea-BKZL6tHX.js";
|
|
3
3
|
import { t as usePressFeedback } from "./usePressFeedback-2YAzGB6C.js";
|
|
4
4
|
import { n as readLayerScoped } from "./scopedProvide-C-Df7c15.js";
|
|
5
5
|
import { a as provideIconSize, t as _sfc_main$3 } from "./Icon-BCHo7W0x.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _o as ButtonGroupSlots, go as ButtonGroupProps, ho as _default, vo as ButtonGroupOrientation } from "../index-
|
|
1
|
+
import { _o as ButtonGroupSlots, go as ButtonGroupProps, ho as _default, vo as ButtonGroupOrientation } from "../index-CaE2cqeG.js";
|
|
2
2
|
export { _default as ButtonGroup, _default as default, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonGroupSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as ButtonGroup_default } from "../ButtonGroup-
|
|
1
|
+
import { n as _sfc_main, t as ButtonGroup_default } from "../ButtonGroup-BzrDhbMP.js";
|
|
2
2
|
export { _sfc_main as ButtonGroup, ButtonGroup_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as useTouchHitArea, t as GROUP_HIT_AREA } from "./useTouchHitArea-
|
|
2
|
-
import { t as useActionGroupTracking } from "./useActionGroupTracking-
|
|
1
|
+
import { n as useTouchHitArea, t as GROUP_HIT_AREA } from "./useTouchHitArea-BKZL6tHX.js";
|
|
2
|
+
import { t as useActionGroupTracking } from "./useActionGroupTracking-fwmxDcU3.js";
|
|
3
3
|
import { i as useSize, r as provideSize } from "./SizeContext-BbaF-SEx.js";
|
|
4
4
|
import { n as buttonHitAreaContextKey, t as buttonGroupContextKey } from "./context-Cgkyk-b7.js";
|
|
5
5
|
import { t as invokeNativeEventHandler } from "./eventHandlers-DUXzBWZy.js";
|
package/dist/Calendar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { co as _default, do as CalendarHandleRef, fo as CalendarProps, lo as CalendarEmits, mo as CalendarSlots, po as CalendarRangeValue, uo as CalendarHandle } from "../index-
|
|
1
|
+
import { co as _default, do as CalendarHandleRef, fo as CalendarProps, lo as CalendarEmits, mo as CalendarSlots, po as CalendarRangeValue, uo as CalendarHandle } from "../index-CaE2cqeG.js";
|
|
2
2
|
export { _default as Calendar, type CalendarEmits, type CalendarHandle, type CalendarHandleRef, type CalendarProps, type CalendarRangeValue, type CalendarSlots };
|
package/dist/Carousel/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ao as CarouselHandle, io as CarouselGap, oo as CarouselProps, ro as _default, so as CarouselSlots } from "../index-
|
|
1
|
+
import { ao as CarouselHandle, io as CarouselGap, oo as CarouselProps, ro as _default, so as CarouselSlots } from "../index-CaE2cqeG.js";
|
|
2
2
|
export { _default as Carousel, type CarouselGap, type CarouselHandle, type CarouselProps, type CarouselSlots };
|
package/dist/Carousel/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Carousel-
|
|
1
|
+
import { t as _sfc_main } from "../Carousel-CRaHAUsZ.js";
|
|
2
2
|
export { _sfc_main as Carousel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
|
|
2
|
-
import { t as _sfc_main$2 } from "./IconButton-
|
|
2
|
+
import { t as _sfc_main$2 } from "./IconButton-oKXLxgYb.js";
|
|
3
3
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
4
4
|
import { a as moveSnapPaging, c as snapStops, i as moveHeldSnapPaging, n as isSnapPaging, o as nearestStop, t as attachSnapPaging } from "./snapPagingValue-B5hfph1H.js";
|
|
5
5
|
import { t as carouselMessages } from "./carousel-Uaa3h_cg.js";
|
package/dist/Chat/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ChatComposerTokenBadge, A as _default$8, At as ChatReasoningProps, B as ChatComposerDrawerEmits, Bt as ChatTypingIndicatorProps, C as _default$15, Ct as ChatMessageMetadataProps, D as _default$11, Dt as ChatMessageSlots, E as _default$12, Et as ChatMessageSender, F as _default$3, Ft as ChatToolCallItem, G as ChatComposerInputControl, H as ChatComposerDrawerSlots, I as _default$2, It as ChatToolCallStatus, J as ChatComposerInputProps, K as ChatComposerInputEmits, L as _default$1, Lt as ChatToolCallsEmits, M as _default$6, Mt as ChatSystemMessageProps, N as _default$5, Nt as ChatSystemMessageSlots, O as _default$10, Ot as ChatMessageStatus, P as _default$4, Pt as ChatSystemMessageVariant, Q as ChatComposerToken, R as _default, Rt as ChatToolCallsProps, S as _default$16, St as ChatMessageListSlots, T as _default$13, Tt as ChatMessageProps, U as ChatComposerElevation, V as ChatComposerDrawerProps, Vt as ChatUnreadDividerProps, W as ChatComposerEmits, X as ChatComposerSlots, Y as ChatComposerProps, Z as ChatComposerStatus, _ as useChatComposerContext, _t as ChatMessageBubbleProps, a as useChatPasteAsToken, at as ChatSendButtonEmits, b as useChatMessageContext, bt as ChatMessageListAlign, c as SpeechRecognitionError, ct as ChatTokenizedTextProps, d as useSpeechRecognition, dt as ChatLayoutProps, et as ChatComposerTokenCustom, f as TokenPortal, ft as ChatLayoutScrollButtonEmits, g as ChatComposerContextValue, gt as ChatMessageBubbleGroup, h as useChatComposerTokens, ht as ChatLayoutSlots, i as pastedTextLabel, it as ChatDictationButtonProps, j as _default$7, jt as ChatReasoningSlots, k as _default$9, kt as ChatReasoningEmits, l as UseSpeechRecognitionOptions, lt as ChatTokenizedTextSlots, m as UseChatComposerTokensReturn, mt as ChatLayoutScrollSlotProps, n as UseChatPasteAsTokenOptions, nt as ChatComposerTrigger, o as UseChatDictationOptions, ot as ChatSendButtonProps, p as UseChatComposerTokensOptions, pt as ChatLayoutScrollButtonProps, q as ChatComposerInputHandle, r as UseChatPasteAsTokenReturn, rt as ChatComposerTriggerItem, s as useChatDictation, st as ChatSendButtonSlots, t as PASTE_TOKEN_THRESHOLD, tt as ChatComposerTokenElementProps, u as UseSpeechRecognitionReturn, ut as ChatDensity, v as useChatLayoutContext, vt as ChatMessageBubbleSlots, w as _default$14, wt as ChatMessageMetadataSlots, x as _default$17, xt as ChatMessageListProps, y as useChatListContext, yt as ChatMessageBubbleVariant, z as ChatComposerDensity, zt as ChatToolCallsSlots } from "../index-
|
|
1
|
+
import { $ as ChatComposerTokenBadge, A as _default$8, At as ChatReasoningProps, B as ChatComposerDrawerEmits, Bt as ChatTypingIndicatorProps, C as _default$15, Ct as ChatMessageMetadataProps, D as _default$11, Dt as ChatMessageSlots, E as _default$12, Et as ChatMessageSender, F as _default$3, Ft as ChatToolCallItem, G as ChatComposerInputControl, H as ChatComposerDrawerSlots, I as _default$2, It as ChatToolCallStatus, J as ChatComposerInputProps, K as ChatComposerInputEmits, L as _default$1, Lt as ChatToolCallsEmits, M as _default$6, Mt as ChatSystemMessageProps, N as _default$5, Nt as ChatSystemMessageSlots, O as _default$10, Ot as ChatMessageStatus, P as _default$4, Pt as ChatSystemMessageVariant, Q as ChatComposerToken, R as _default, Rt as ChatToolCallsProps, S as _default$16, St as ChatMessageListSlots, T as _default$13, Tt as ChatMessageProps, U as ChatComposerElevation, V as ChatComposerDrawerProps, Vt as ChatUnreadDividerProps, W as ChatComposerEmits, X as ChatComposerSlots, Y as ChatComposerProps, Z as ChatComposerStatus, _ as useChatComposerContext, _t as ChatMessageBubbleProps, a as useChatPasteAsToken, at as ChatSendButtonEmits, b as useChatMessageContext, bt as ChatMessageListAlign, c as SpeechRecognitionError, ct as ChatTokenizedTextProps, d as useSpeechRecognition, dt as ChatLayoutProps, et as ChatComposerTokenCustom, f as TokenPortal, ft as ChatLayoutScrollButtonEmits, g as ChatComposerContextValue, gt as ChatMessageBubbleGroup, h as useChatComposerTokens, ht as ChatLayoutSlots, i as pastedTextLabel, it as ChatDictationButtonProps, j as _default$7, jt as ChatReasoningSlots, k as _default$9, kt as ChatReasoningEmits, l as UseSpeechRecognitionOptions, lt as ChatTokenizedTextSlots, m as UseChatComposerTokensReturn, mt as ChatLayoutScrollSlotProps, n as UseChatPasteAsTokenOptions, nt as ChatComposerTrigger, o as UseChatDictationOptions, ot as ChatSendButtonProps, p as UseChatComposerTokensOptions, pt as ChatLayoutScrollButtonProps, q as ChatComposerInputHandle, r as UseChatPasteAsTokenReturn, rt as ChatComposerTriggerItem, s as useChatDictation, st as ChatSendButtonSlots, t as PASTE_TOKEN_THRESHOLD, tt as ChatComposerTokenElementProps, u as UseSpeechRecognitionReturn, ut as ChatDensity, v as useChatLayoutContext, vt as ChatMessageBubbleSlots, w as _default$14, wt as ChatMessageMetadataSlots, x as _default$17, xt as ChatMessageListProps, y as useChatListContext, yt as ChatMessageBubbleVariant, z as ChatComposerDensity, zt as ChatToolCallsSlots } from "../index-B63NOJRc.js";
|
|
2
2
|
export { _default as ChatComposer, type ChatComposerContextValue, type ChatComposerDensity, _default$1 as ChatComposerDrawer, type ChatComposerDrawerEmits, type ChatComposerDrawerProps, type ChatComposerDrawerSlots, type ChatComposerElevation, type ChatComposerEmits, _default$2 as ChatComposerInput, type ChatComposerInputControl, type ChatComposerInputEmits, type ChatComposerInputHandle, type ChatComposerInputProps, type ChatComposerProps, type ChatComposerSlots, type ChatComposerStatus, type ChatComposerToken, type ChatComposerTokenBadge, type ChatComposerTokenCustom, _default$3 as ChatComposerTokenElement, type ChatComposerTokenElementProps, type ChatComposerTrigger, type ChatComposerTriggerItem, type ChatDensity, _default$4 as ChatDictationButton, type ChatDictationButtonProps, _default$5 as ChatLayout, type ChatLayoutProps, _default$6 as ChatLayoutScrollButton, type ChatLayoutScrollButtonEmits, type ChatLayoutScrollButtonProps, type ChatLayoutScrollSlotProps, type ChatLayoutSlots, _default$7 as ChatMessage, _default$8 as ChatMessageBubble, type ChatMessageBubbleGroup, type ChatMessageBubbleProps, type ChatMessageBubbleSlots, type ChatMessageBubbleVariant, _default$9 as ChatMessageList, type ChatMessageListAlign, type ChatMessageListProps, type ChatMessageListSlots, _default$10 as ChatMessageMetadata, type ChatMessageMetadataProps, type ChatMessageMetadataSlots, type ChatMessageProps, type ChatMessageSender, type ChatMessageSlots, type ChatMessageStatus, _default$11 as ChatReasoning, type ChatReasoningEmits, type ChatReasoningProps, type ChatReasoningSlots, _default$12 as ChatSendButton, type ChatSendButtonEmits, type ChatSendButtonProps, type ChatSendButtonSlots, _default$13 as ChatSystemMessage, type ChatSystemMessageProps, type ChatSystemMessageSlots, type ChatSystemMessageVariant, _default$14 as ChatTokenizedText, type ChatTokenizedTextProps, type ChatTokenizedTextSlots, type ChatToolCallItem, type ChatToolCallStatus, _default$15 as ChatToolCalls, type ChatToolCallsEmits, type ChatToolCallsProps, type ChatToolCallsSlots, _default$16 as ChatTypingIndicator, type ChatTypingIndicatorProps, _default$17 as ChatUnreadDivider, type ChatUnreadDividerProps, PASTE_TOKEN_THRESHOLD, type SpeechRecognitionError, type TokenPortal, type UseChatComposerTokensOptions, type UseChatComposerTokensReturn, type UseChatDictationOptions, type UseChatPasteAsTokenOptions, type UseChatPasteAsTokenReturn, type UseSpeechRecognitionOptions, type UseSpeechRecognitionReturn, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
|
package/dist/Chat/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-
|
|
1
|
+
import { C as useChatLayoutContext, D as pastedTextLabel, E as PASTE_TOKEN_THRESHOLD, O as useChatPasteAsToken, S as useChatComposerContext, T as useChatMessageContext, _ as _sfc_main$1, a as _sfc_main$15, b as _sfc_main$2, c as _sfc_main$11, d as _sfc_main$8, f as _sfc_main$7, g as _sfc_main$3, h as _sfc_main$4, i as _sfc_main$16, l as _sfc_main$10, m as _sfc_main$6, n as useSpeechRecognition, o as _sfc_main$14, p as _sfc_main$5, r as _sfc_main$17, s as _sfc_main$13, t as useChatDictation, u as _sfc_main$9, v as _sfc_main, w as useChatListContext, x as useChatComposerTokens, y as _sfc_main$12 } from "../Chat-DTs843Ta.js";
|
|
2
2
|
export { _sfc_main as ChatComposer, _sfc_main$1 as ChatComposerDrawer, _sfc_main$2 as ChatComposerInput, _sfc_main$3 as ChatComposerTokenElement, _sfc_main$4 as ChatDictationButton, _sfc_main$5 as ChatLayout, _sfc_main$6 as ChatLayoutScrollButton, _sfc_main$7 as ChatMessage, _sfc_main$8 as ChatMessageBubble, _sfc_main$9 as ChatMessageList, _sfc_main$10 as ChatMessageMetadata, _sfc_main$11 as ChatReasoning, _sfc_main$12 as ChatSendButton, _sfc_main$13 as ChatSystemMessage, _sfc_main$14 as ChatTokenizedText, _sfc_main$15 as ChatToolCalls, _sfc_main$16 as ChatTypingIndicator, _sfc_main$17 as ChatUnreadDivider, PASTE_TOKEN_THRESHOLD, pastedTextLabel, useChatComposerContext, useChatComposerTokens, useChatDictation, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatPasteAsToken, useSpeechRecognition };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
2
|
import { t as _sfc_main$24 } from "./Icon-BCHo7W0x.js";
|
|
3
|
-
import { t as _sfc_main$25 } from "./Button-
|
|
3
|
+
import { t as _sfc_main$25 } from "./Button-DOfigN38.js";
|
|
4
4
|
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-Dfb0Ky7T.js";
|
|
5
5
|
import { i as trackInteractionModality, n as isKeyboardModality, p as isImeKeyEvent } from "./interactionModality-B5dR7nnb.js";
|
|
6
6
|
import { t as _sfc_main$26 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $a as CheckboxInputEmits, Qa as CheckboxInputChangeEvent, Xa as _default, Za as CheckboxInputChangeAction, eo as CheckboxInputProps, no as CheckboxValue, to as CheckboxInputSlots } from "../index-
|
|
1
|
+
import { $a as CheckboxInputEmits, Qa as CheckboxInputChangeEvent, Xa as _default, Za as CheckboxInputChangeAction, eo as CheckboxInputProps, no as CheckboxValue, to as CheckboxInputSlots } from "../index-CaE2cqeG.js";
|
|
2
2
|
export { _default as CheckboxInput, type CheckboxInputChangeAction, type CheckboxInputChangeEvent, type CheckboxInputEmits, type CheckboxInputProps, type CheckboxInputSlots, type CheckboxValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../CheckboxInput-
|
|
1
|
+
import { t as _sfc_main } from "../CheckboxInput-Ydl1GSBh.js";
|
|
2
2
|
export { _sfc_main as CheckboxInput };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { n as useTouchHitArea } from "./useTouchHitArea-BKZL6tHX.js";
|
|
1
2
|
import { t as usePressFeedback } from "./usePressFeedback-2YAzGB6C.js";
|
|
2
3
|
import { t as _sfc_main$1 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
3
4
|
import { t as _sfc_main$2 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
4
5
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
5
6
|
import { i as useAriaRequired } from "./context-DsNhYm5O.js";
|
|
6
|
-
import { t as _sfc_main$3 } from "./FieldLabel-
|
|
7
|
+
import { t as _sfc_main$3 } from "./FieldLabel-BoMSIOLF.js";
|
|
7
8
|
import { t as _sfc_main$4 } from "./FieldStatus-DSUCli4W.js";
|
|
8
9
|
import { t as useIndicator } from "./useIndicator--9mGGlT2.js";
|
|
9
10
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onUpdated, openBlock, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
@@ -148,6 +149,25 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
148
149
|
const state = computed(() => action.value.value === "indeterminate" ? "indeterminate" : action.value.value ? "checked" : "unchecked");
|
|
149
150
|
const CheckboxMark = useIndicator("checkbox");
|
|
150
151
|
const press = usePressFeedback({ hasOverlay: false });
|
|
152
|
+
const row = useTemplateRef("row");
|
|
153
|
+
const hasHitArea = computed(() => !props.isLabelHidden && !props.isDisabled && !props.isReadOnly);
|
|
154
|
+
useTouchHitArea(row, hasHitArea);
|
|
155
|
+
/** 按下落在行自己(不是里面的控件)上时,这次按下的位置。 */
|
|
156
|
+
let rowPress = null;
|
|
157
|
+
function rowPointerDown(event) {
|
|
158
|
+
rowPress = event.target === event.currentTarget ? {
|
|
159
|
+
x: event.clientX,
|
|
160
|
+
y: event.clientY
|
|
161
|
+
} : null;
|
|
162
|
+
}
|
|
163
|
+
/** 起点在热区(行盒子之外)的点按,和点在复选框上一样切换它;代码发出的点击(detail 为 0)不算。 */
|
|
164
|
+
function rowClick(event) {
|
|
165
|
+
const start = rowPress;
|
|
166
|
+
rowPress = null;
|
|
167
|
+
if (start == null || event.detail === 0 || event.target !== event.currentTarget) return;
|
|
168
|
+
const box = event.currentTarget.getBoundingClientRect();
|
|
169
|
+
if (start.x < box.left || start.x > box.right || start.y < box.top || start.y > box.bottom) input.value?.click();
|
|
170
|
+
}
|
|
151
171
|
const widthStyle = computed(() => ({ width: typeof props.width === "number" ? `${props.width}px` : props.width }));
|
|
152
172
|
const element = computed(() => input.value ?? null);
|
|
153
173
|
function focus(options) {
|
|
@@ -236,9 +256,19 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
236
256
|
"data-status": __props.status?.type,
|
|
237
257
|
"data-blocked": blocked.value || void 0
|
|
238
258
|
}, [
|
|
239
|
-
|
|
259
|
+
createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events, vue-a11y/no-static-element-interactions -- 点击只用来把热区上的点按交给里面的复选框,键盘由复选框自己处理。 "),
|
|
260
|
+
createElementVNode("div", mergeProps({
|
|
261
|
+
ref_key: "row",
|
|
262
|
+
ref: row,
|
|
263
|
+
class: ["astryx-checkbox-row", {
|
|
264
|
+
"astryx-indicator-scope": !blocked.value,
|
|
265
|
+
"astryx-touch-hit-area-band": hasHitArea.value
|
|
266
|
+
}]
|
|
267
|
+
}, blocked.value ? void 0 : unref(press).pressableProps, {
|
|
240
268
|
onPointerenter: _cache[2] || (_cache[2] = (...args) => unref(tooltip).onPointerEnter && unref(tooltip).onPointerEnter(...args)),
|
|
241
|
-
onPointerleave: _cache[3] || (_cache[3] = (...args) => unref(tooltip).onPointerLeave && unref(tooltip).onPointerLeave(...args))
|
|
269
|
+
onPointerleave: _cache[3] || (_cache[3] = (...args) => unref(tooltip).onPointerLeave && unref(tooltip).onPointerLeave(...args)),
|
|
270
|
+
onPointerdown: _cache[4] || (_cache[4] = ($event) => hasHitArea.value ? rowPointerDown($event) : void 0),
|
|
271
|
+
onClick: _cache[5] || (_cache[5] = ($event) => hasHitArea.value ? rowClick($event) : void 0)
|
|
242
272
|
}), [createElementVNode("span", _hoisted_2, [createElementVNode("input", mergeProps(inputAttrs(), {
|
|
243
273
|
id: inputId.value,
|
|
244
274
|
ref_key: "input",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ga as _default, Ja as CheckboxListItemProps, Ka as CheckboxListEmits, Wa as _default$1, Ya as CheckboxListProps, qa as CheckboxListItemEmits } from "../index-
|
|
1
|
+
import { Ga as _default, Ja as CheckboxListItemProps, Ka as CheckboxListEmits, Wa as _default$1, Ya as CheckboxListProps, qa as CheckboxListItemEmits } from "../index-CaE2cqeG.js";
|
|
2
2
|
export { _default as CheckboxList, type CheckboxListEmits, _default$1 as CheckboxListItem, type CheckboxListItemEmits, type CheckboxListItemProps, type CheckboxListProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../CheckboxList-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../CheckboxList-Sn_ph-Xz.js";
|
|
2
2
|
export { _sfc_main as CheckboxList, _sfc_main$1 as CheckboxListItem };
|
|
@@ -1,18 +1,51 @@
|
|
|
1
1
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
2
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
3
3
|
import { t as _sfc_main$3 } from "./Tooltip-DQipgW1R.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as _sfc_main$
|
|
4
|
+
import { t as observeContent } from "./sharedMutationObserver-Dvh3N1N2.js";
|
|
5
|
+
import { r as useItemDescriptionId } from "./Item-BSHDEJyh.js";
|
|
6
|
+
import { t as _sfc_main$4 } from "./CheckboxInput-Ydl1GSBh.js";
|
|
7
|
+
import { t as _sfc_main$5 } from "./Field-CIZdFzXr.js";
|
|
7
8
|
import { t as useFieldPartStyling } from "./fieldParts-CbWvZLhH.js";
|
|
8
|
-
import { n as _sfc_main$6, t as _sfc_main$7 } from "./ListItem-
|
|
9
|
+
import { n as _sfc_main$6, t as _sfc_main$7 } from "./ListItem-v1GFTbba.js";
|
|
9
10
|
import { t as checkboxListMessages } from "./checkbox-list-uI6q4y3V.js";
|
|
10
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, ref, renderSlot, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, withCtx } from "vue";
|
|
11
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, provide, ref, renderSlot, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, watchEffect, withCtx } from "vue";
|
|
11
12
|
import "../styles/checkbox-list.css";
|
|
12
13
|
import "../styles/visually-hidden-utility.css";
|
|
13
14
|
//#region src/CheckboxList/context.ts
|
|
14
15
|
const checkboxListKey = defineLayerScopedKey("astryx-checkbox-list", void 0);
|
|
15
16
|
//#endregion
|
|
17
|
+
//#region src/CheckboxList/requiredGroup.ts
|
|
18
|
+
function byDocumentOrder(a, b) {
|
|
19
|
+
return a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 浏览器没有“一组复选框必填”的原生状态。没有任何框被勾选时,第一个可用的框
|
|
23
|
+
* 带原生 `required`,浏览器就会拦住提交并带着自己的提示把焦点移到它上面;
|
|
24
|
+
* 一旦有框被勾选,所有框都不再带 `required`。
|
|
25
|
+
*/
|
|
26
|
+
function createRequiredGroup() {
|
|
27
|
+
const boxes = /* @__PURE__ */ new Map();
|
|
28
|
+
function update() {
|
|
29
|
+
const ordered = [...boxes.keys()].sort(byDocumentOrder);
|
|
30
|
+
const target = ![...boxes.values()].some((box) => box.isChecked) ? ordered.find((input) => boxes.get(input)?.isEnabled === true) : void 0;
|
|
31
|
+
for (const input of ordered) input.required = input === target;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
register(input, box) {
|
|
35
|
+
boxes.set(input, box);
|
|
36
|
+
update();
|
|
37
|
+
return () => {
|
|
38
|
+
boxes.delete(input);
|
|
39
|
+
input.required = false;
|
|
40
|
+
update();
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
observe(container) {
|
|
44
|
+
return observeContent(container, update);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
16
49
|
//#region src/CheckboxList/CheckboxList.vue
|
|
17
50
|
const _hoisted_1$1 = ["aria-labelledby", "aria-describedby"];
|
|
18
51
|
const _hoisted_2 = ["id"];
|
|
@@ -117,7 +150,19 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
117
150
|
showsReason.value ? `${inputId.value}-reason` : void 0
|
|
118
151
|
].filter(Boolean).join(" ") || void 0;
|
|
119
152
|
}
|
|
153
|
+
const requiredGroup = computed(() => props.isRequired === true && props.isOptional !== true ? createRequiredGroup() : void 0);
|
|
154
|
+
const controlElement = ref(null);
|
|
155
|
+
let stopObserving;
|
|
156
|
+
watch([requiredGroup, controlElement], ([group, element]) => {
|
|
157
|
+
stopObserving?.();
|
|
158
|
+
stopObserving = group != null && element != null ? group.observe(element) : void 0;
|
|
159
|
+
}, {
|
|
160
|
+
flush: "post",
|
|
161
|
+
immediate: true
|
|
162
|
+
});
|
|
163
|
+
onBeforeUnmount(() => stopObserving?.());
|
|
120
164
|
provide(checkboxListKey, {
|
|
165
|
+
requiredGroup,
|
|
121
166
|
values: shown,
|
|
122
167
|
toggle,
|
|
123
168
|
isDisabled: groupDisabled,
|
|
@@ -149,6 +194,8 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
149
194
|
placement: "above"
|
|
150
195
|
}, {
|
|
151
196
|
default: withCtx(() => [createElementVNode("div", mergeProps({
|
|
197
|
+
ref_key: "controlElement",
|
|
198
|
+
ref: controlElement,
|
|
152
199
|
class: ["astryx-checkbox-list-control", __props.controlClass],
|
|
153
200
|
style: __props.controlStyle,
|
|
154
201
|
role: "group"
|
|
@@ -279,6 +326,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
279
326
|
const loading = computed(() => props.isLoading || props.value != null && (context?.loadingValues.value.includes(props.value) ?? false));
|
|
280
327
|
const reason = computed(() => context?.isDisabled.value ? context.disabledReason.value : void 0);
|
|
281
328
|
const selected = computed(() => checked.value === true && !disabled.value && !readOnly.value);
|
|
329
|
+
let unregister;
|
|
330
|
+
watchEffect(() => {
|
|
331
|
+
unregister?.();
|
|
332
|
+
unregister = void 0;
|
|
333
|
+
const group = context?.requiredGroup.value;
|
|
334
|
+
const input = checkbox.value?.element;
|
|
335
|
+
if (group != null && input != null) unregister = group.register(input, {
|
|
336
|
+
isChecked: checked.value === true,
|
|
337
|
+
isEnabled: !disabled.value && !readOnly.value
|
|
338
|
+
});
|
|
339
|
+
}, { flush: "post" });
|
|
340
|
+
onBeforeUnmount(() => unregister?.());
|
|
282
341
|
if (collection.value && props.value == null) throw new Error("CheckboxListItem 在集合模式下必须提供 value。");
|
|
283
342
|
function onChecked(value) {
|
|
284
343
|
if (disabled.value || readOnly.value || loading.value) return;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ba as _default, Ha as ClickableCardProps, Ua as ClickableCardSlots, Va as ClickableCardEmits } from "../index-
|
|
1
|
+
import { Ba as _default, Ha as ClickableCardProps, Ua as ClickableCardSlots, Va as ClickableCardEmits } from "../index-CaE2cqeG.js";
|
|
2
2
|
export { _default as ClickableCard, _default as default, type ClickableCardEmits, type ClickableCardProps, type ClickableCardSlots };
|
package/dist/Code/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useClipboard } from "../useClipboard-CTY3GwFz.js";
|
|
2
|
-
import { a as tokenizeAsync, c as splitDiffLines, d as applyHighlightRangesFlat, f as _sfc_main, i as tokenize, l as HIGHLIGHTED_TOKEN_TYPES, n as SYNC_TOKENIZE_THRESHOLD, o as diffLineKind, r as flatTokensToLines, s as parseFenceLanguage, t as _sfc_main$1, u as applyHighlightRanges } from "../CodeBlock-
|
|
2
|
+
import { a as tokenizeAsync, c as splitDiffLines, d as applyHighlightRangesFlat, f as _sfc_main, i as tokenize, l as HIGHLIGHTED_TOKEN_TYPES, n as SYNC_TOKENIZE_THRESHOLD, o as diffLineKind, r as flatTokensToLines, s as parseFenceLanguage, t as _sfc_main$1, u as applyHighlightRanges } from "../CodeBlock-DXBJEZS6.js";
|
|
3
3
|
import { i as githubDark, n as SYNTAX_TOKEN_KEYS, r as defineSyntaxTheme, t as DIFF_SYNTAX_TOKEN_KEYS } from "../syntaxTheme-R7xnu5x5.js";
|
|
4
4
|
import { a as catppuccinMocha, c as githubLight, d as nord, f as oneDarkPro, g as tokyoNightLight, h as tokyoNight, i as catppuccinLatte, l as lightSyntaxPresets, m as solarizedLight, n as _sfc_main$2, o as darkSyntaxPresets, p as oneLight, r as allSyntaxPresets, s as dracula, t as useSyntaxTheme, u as monokai } from "../Code-rmiC0XfO.js";
|
|
5
5
|
export { _sfc_main as Code, _sfc_main$1 as CodeBlock, DIFF_SYNTAX_TOKEN_KEYS, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, _sfc_main$2 as SyntaxTheme, allSyntaxPresets, applyHighlightRanges, applyHighlightRangesFlat, catppuccinLatte, catppuccinMocha, darkSyntaxPresets, defineSyntaxTheme, diffLineKind, dracula, flatTokensToLines, githubDark, githubLight, lightSyntaxPresets, monokai, nord, oneDarkPro, oneLight, parseFenceLanguage, solarizedLight, splitDiffLines, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, useClipboard as useCopyToClipboard, useSyntaxTheme };
|
|
@@ -2,7 +2,7 @@ import { t as _sfc_main$3 } from "./Icon-BCHo7W0x.js";
|
|
|
2
2
|
import { t as _sfc_main$4 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
3
3
|
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
4
4
|
import { t as useClipboard } from "./useClipboard-CTY3GwFz.js";
|
|
5
|
-
import { t as _sfc_main$5 } from "./IconButton-
|
|
5
|
+
import { t as _sfc_main$5 } from "./IconButton-oKXLxgYb.js";
|
|
6
6
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
7
7
|
import { t as _sfc_main$6 } from "./ComponentIcon-BRXBBKeG.js";
|
|
8
8
|
import { a as syntaxThemeStyle } from "./syntaxTheme-R7xnu5x5.js";
|