@astryx-vue/core 0.16.3 → 0.16.5
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-C8W-FjkH.js → AlertDialog-CNb0dkY9.js} +4 -4
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-dMLeTLRs.js → Avatar-D85dSNpq.js} +1 -1
- 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-BBW8L_Z6.js → Banner-BXITu2pn.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-oyT1pLaR.js → Breadcrumbs-DXzBkpkd.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-OfqvSU1j.js → Button-BZtim0B-.js} +1 -2
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CCiDP6TT.js → Carousel-BaCXqtKK.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DzxOPova.js → Chat-PEkZTrQE.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CWfobjQ1.js → CheckboxInput-3ONBl1AY.js} +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CEFhwHbk.js → CheckboxList-CbRX5YDA.js} +3 -3
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-BcZ4SmzT.js → CodeBlock-9Lfec8C8.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-urnqxaZR.js → CommandPalette-mNR6dV0B.js} +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Bb9Tietz.js → ComplexSelector-CR9XbpTa.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-UGCRWpCu.js → DateInput-kXAc_r5m.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-CvIZFmpf.js → DateRangeInput-DW7IzFQM.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-Dw6LG-U7.js → DateTimeInput-ChGin5zS.js} +4 -4
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-CvRMUDsx.js → Dialog-BQ5OBB1d.js} +1 -1
- package/dist/{Dialog-BoV6-sZg.js → Dialog-DgdbRn2l.js} +25 -6
- package/dist/{DialogHeader-BO-8FOex.js → DialogHeader-D8234o9F.js} +7 -3
- 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-CxdifWfD.js → Drawer-Dqus7kUc.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-BvTeXvbu.js → DropdownMenu-BC_zB9le.js} +1 -1
- package/dist/{DropdownMenu-DF56Xz8n.js → DropdownMenu-LQsXd-_V.js} +1 -1
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-D2ENfW7V.js → EmptyState-Bw0kWfMi.js} +3 -3
- package/dist/Field/index.d.ts +1 -1
- package/dist/Field/index.js +3 -3
- package/dist/{Field-BE1CuxSu.js → Field-BXkGR8H0.js} +1 -1
- package/dist/{FieldInfoTip-BfK_h-Q_.js → FieldInfoTip-DzpUxMDh.js} +1 -1
- package/dist/{FieldLabel-CvPYOohI.js → FieldLabel-DI7Yqdhf.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CksYDbGe.js → FileInput-BNHjbyQY.js} +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-CNOg6iq5.js → Heading-Oph-5DDq.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-DafCEtWH.js → HoverCard-DVPLeccv.js} +22 -10
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-B8cvzcz_.js → IconButton-Du2XBBAX.js} +9 -6
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BnGk9nr_.js → InfoTip-Bjw1ithP.js} +1 -1
- package/dist/{InputClearButton-U5mpIbi3.js → InputClearButton-CED-zP2y.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-BX4cdWQW.js → InputGroup-D5PoL4cU.js} +1 -1
- package/dist/LayerProvider/index.d.ts +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-BUTJJLup.js → Lightbox-RN_f7zRw.js} +3 -2
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-wft8544N.js → Link-CQ-Ztuo_.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-D_Qf7a0I.js → Markdown-BNVd70jg.js} +3 -3
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-DGJumYR1.js → MoreMenu-i80Ey9vR.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DeIhhc3D.js → MultiSelector-CXX1Hsty.js} +2 -2
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-XJj0qlhX.js → NumberInput-BPeesTRv.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- 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-BYbqhFXF.js → Pagination-BvZFvwso.js} +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-BepO8m2B.js → Popover-CmAEizH-.js} +3 -3
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CwKjKqnm.js → PowerSearch-BiupstfT.js} +13 -13
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-CHdyTMyH.js → ProgressBar-DgyPRxV0.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BvoO922B.js → RadioGroup-FhoQMqg5.js} +2 -2
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-LmcRXW-R.js → RadioList-DK2uXQ5S.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- 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-CTzIfy5D.js → Selector-DiSLNzl8.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BFDgU7Ul.js → SideNav-CcZLUd7G.js} +2 -2
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-JoQDr9bl.js → Slider-DIgb8ogt.js} +1 -1
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-DdR_DF-k.js → StatusDot-Cxm-uhTD.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-CijkvpAA.js → Switch-5toeiELX.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-B3NzB0hb.js → Table-BD8MugZo.js} +10 -10
- package/dist/Text/index.js +1 -1
- package/dist/{Text-DKlvc1pK.js → Text-CiSw2pOi.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BjhiilDS.js → TextArea-B82oXF-m.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-CZRsm1Q0.js → TextInput-_SIiqVOY.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-C7_U0Lsa.js → Thumbnail-BlueoqOH.js} +2 -2
- package/dist/{TimeField-CjQo4xYN.js → TimeField-CBWgdA1Y.js} +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-CdMrEcfT.js → TimeInput-8ASOMV3B.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DOs3NhSX.js → Timer-C8evnsTE.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-C4vel7iV.js → Timestamp-CgvZe6vH.js} +3 -3
- package/dist/Toast/index.d.ts +2 -2
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-DEjrZdFl.js → Toast-CzbqvHDN.js} +107 -34
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DcLaKPDT.js → ToggleButton-CO0XWWc0.js} +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-VRx_-QNc.js → Tokenizer-mu0Sak58.js} +2 -2
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-vUyPDqhh.js → Tooltip-DQipgW1R.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-TKRr6Ath.js → Typeahead-Db8Tu27Z.js} +2 -2
- package/dist/composables/index.js +2 -2
- package/dist/{index-BBTU-TKb.d.ts → index-9eluGe3a.d.ts} +1 -1
- package/dist/{index-NDBQupTs.d.ts → index-B-Jla56c.d.ts} +1 -1
- package/dist/{index-YfMHAQ_D.d.ts → index-B0yaHi__.d.ts} +4 -4
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-wY6dKz6c.d.ts → index-BEZ4ezJk.d.ts} +2 -2
- package/dist/{index-9tZJgo0R.d.ts → index-BFZxzCYu.d.ts} +2 -2
- package/dist/{index-B3U6GJKl.d.ts → index-BPHqOCfp.d.ts} +3 -3
- package/dist/{index-D1JXm7Et.d.ts → index-BPf_jmME.d.ts} +1 -1
- package/dist/{index-CBOv5j3c.d.ts → index-BQ3cm7mP.d.ts} +2 -2
- package/dist/{index--kbwaSXW.d.ts → index-BWzEt0gT.d.ts} +2 -2
- package/dist/{index-BTK7aStw.d.ts → index-BaK0mywG.d.ts} +1 -1
- package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
- package/dist/{index-CEjvYAUZ.d.ts → index-BvWBeoa8.d.ts} +1 -1
- package/dist/{index-DFLPv9io.d.ts → index-BxWCX2pJ.d.ts} +3 -3
- package/dist/{index-GmoeIuhl.d.ts → index-Byan7Dad.d.ts} +1 -1
- package/dist/{index-DhcjuwQq.d.ts → index-C5e2rZML.d.ts} +3 -3
- package/dist/{index-z0ugRU15.d.ts → index-CE74Qsbn.d.ts} +8 -8
- package/dist/{index-Cun6cXGP.d.ts → index-CJdOt5Cc.d.ts} +5 -5
- package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
- package/dist/{index-Bm6aL0ni.d.ts → index-DBwEz4M9.d.ts} +10 -10
- package/dist/{index-VBgzSy8g.d.ts → index-D_xBhUV5.d.ts} +10 -10
- package/dist/{index-D1J81rYJ.d.ts → index-DbFIQDoa.d.ts} +4 -4
- package/dist/{index-CX1_9PMQ.d.ts → index-LHvLg1Pv.d.ts} +79 -79
- package/dist/{index-DPhQZXYw.d.ts → index-SWw-WMTO.d.ts} +3 -3
- package/dist/{index-COgrQZIL.d.ts → index-Xc3q9f84.d.ts} +3 -3
- package/dist/{index-D7XRtUTY.d.ts → index-bk5kfP_c.d.ts} +5 -1
- package/dist/{index-C93nwgTW.d.ts → index-gmY3A_Iw.d.ts} +1 -1
- package/dist/{index-CO9GW-ik.d.ts → index-sXu15K4j.d.ts} +1 -1
- package/dist/{index-Dy746dfn.d.ts → index-unAZVFGz.d.ts} +1 -1
- package/dist/{index-C1zwvxPH.d.ts → index-ygmRS6Np.d.ts} +2 -2
- package/dist/index.d.ts +33 -33
- package/dist/index.js +64 -64
- package/dist/{layerFocusReturn-13azEIdn.js → layerFocusReturn-B8Hp14ZG.js} +1 -1
- package/dist/tooltipFocusRules-D4cJ08fk.js +67 -0
- package/dist/{useLayer-CzyH9KXY.js → tooltipTriggerRules-PBxqztvn.js} +10 -1
- package/dist/{types-BRfVvZTH.d.ts → types-Bc_G8h4i.d.ts} +2 -0
- package/dist/{useInputStatusIcon-DPFaJ1Oq.js → useInputStatusIcon-ne9V7ZQC.js} +1 -1
- package/dist/{useTooltip-frKBHzqr.js → useTooltip-C7gHRGEO.js} +9 -44
- package/dist/{useTruncationTooltip-DUkkZgmO.js → useTruncationTooltip-DwUQN7fD.js} +3 -3
- package/package.json +1 -1
- package/styles/dialog-header.css +19 -4
- package/styles/dialog.css +4 -0
- package/styles/hover-card.css +6 -0
- package/styles/toast.css +19 -0
- package/styles/tooltip.css +6 -0
- package/dist/tooltipTriggerRules-9zkDe8_b.js +0 -10
- package/dist/useHoverLayerDismiss-CFGjvYi4.js +0 -27
- package/dist/{index-5FGt4HsB.d.ts → index-BqhgeAT4.d.ts} +1 -1
|
@@ -2,13 +2,21 @@ import { n as hasInteractiveAncestor } from "./useClickableContainer-Dtjg-nkm.js
|
|
|
2
2
|
import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
|
|
3
3
|
import { t as _sfc_main$2 } from "./Icon-BCHo7W0x.js";
|
|
4
4
|
import { r as useLayerConfig } from "./context-M-er0-Rk.js";
|
|
5
|
-
import {
|
|
5
|
+
import { n as focusElement, r as getFocusables } from "./focus-x7mxEqjR.js";
|
|
6
|
+
import { t as _sfc_main$3 } from "./IconButton-Du2XBBAX.js";
|
|
6
7
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
7
8
|
import { n as useActiveModalOutlet, r as whenModalSettled } from "./modalOutlet-Drr9a16b.js";
|
|
8
9
|
import { t as toastMessages } from "./toast-BvAnX6Vc.js";
|
|
9
10
|
import { n as useTheme, t as _sfc_main$4 } from "./MediaTheme-Bkj-_DFN.js";
|
|
10
|
-
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, markRaw, normalizeClass, normalizeProps, normalizeStyle, onMounted, onScopeDispose, onUnmounted, openBlock, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, watch, withCtx } from "vue";
|
|
11
|
+
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, markRaw, normalizeClass, normalizeProps, normalizeStyle, onMounted, onScopeDispose, onUnmounted, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, watch, withCtx } from "vue";
|
|
11
12
|
import "../styles/toast.css";
|
|
13
|
+
//#region src/Toast/context.ts
|
|
14
|
+
/**
|
|
15
|
+
* 视口提供给里面的提示:卡片在视口里才是 live 区域。
|
|
16
|
+
* 单独渲染的 `Toast` 不带 live 角色,播报交给调用方。
|
|
17
|
+
*/
|
|
18
|
+
const TOAST_VIEWPORT_KEY = Symbol("astryx-toast-viewport");
|
|
19
|
+
//#endregion
|
|
12
20
|
//#region src/Toast/options.ts
|
|
13
21
|
/** 这条提示会不会自己消失。`error` 默认不消失。 */
|
|
14
22
|
function resolveAutoHide(options) {
|
|
@@ -270,7 +278,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
270
278
|
type: Boolean,
|
|
271
279
|
default: false
|
|
272
280
|
},
|
|
273
|
-
swipeDirection: { default: 1 }
|
|
281
|
+
swipeDirection: { default: 1 },
|
|
282
|
+
timerKey: {}
|
|
274
283
|
},
|
|
275
284
|
emits: ["dismiss", "close"],
|
|
276
285
|
setup(__props, { emit: __emit }) {
|
|
@@ -279,12 +288,13 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
279
288
|
const duration = computed(() => resolveAutoHideDuration(props));
|
|
280
289
|
const autoHide = computed(() => resolveAutoHide(props));
|
|
281
290
|
const remaining = ref(duration.value);
|
|
282
|
-
const
|
|
291
|
+
const pauseSources = /* @__PURE__ */ new Set();
|
|
283
292
|
const timer = ref(null);
|
|
284
293
|
const startTime = ref(null);
|
|
285
294
|
const isAlert = computed(() => props.type === "error");
|
|
286
|
-
const
|
|
287
|
-
const
|
|
295
|
+
const isInViewport = inject(TOAST_VIEWPORT_KEY, false);
|
|
296
|
+
const role = computed(() => isInViewport ? isAlert.value ? "alert" : "status" : void 0);
|
|
297
|
+
const ariaLive = computed(() => isInViewport ? isAlert.value ? "assertive" : "polite" : void 0);
|
|
288
298
|
const messages = useComponentMessages({ toast: toastMessages });
|
|
289
299
|
const theme = useTheme();
|
|
290
300
|
const mediaFallback = computed(() => isAlert.value || theme.mode.value === "light" ? "dark" : "light");
|
|
@@ -310,22 +320,24 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
310
320
|
direction: () => props.swipeDirection,
|
|
311
321
|
enabled: () => !props.isExiting,
|
|
312
322
|
canPauseTimer: () => autoHide.value,
|
|
313
|
-
isTimerPaused: () =>
|
|
314
|
-
pauseTimer,
|
|
315
|
-
resumeTimer,
|
|
323
|
+
isTimerPaused: () => pauseSources.has("gesture"),
|
|
324
|
+
pauseTimer: () => pauseTimer("gesture"),
|
|
325
|
+
resumeTimer: () => resumeTimer("gesture"),
|
|
316
326
|
dismiss: () => dismiss("manual")
|
|
317
327
|
});
|
|
318
328
|
function startTimer() {
|
|
319
|
-
if (!autoHide.value ||
|
|
329
|
+
if (!autoHide.value || pauseSources.size > 0) return;
|
|
320
330
|
if (timer.value) clearTimeout(timer.value);
|
|
321
331
|
startTime.value = Date.now();
|
|
322
332
|
timer.value = setTimeout(() => {
|
|
323
333
|
dismiss("auto");
|
|
324
334
|
}, remaining.value);
|
|
325
335
|
}
|
|
326
|
-
function pauseTimer() {
|
|
327
|
-
if (!autoHide.value
|
|
328
|
-
|
|
336
|
+
function pauseTimer(source) {
|
|
337
|
+
if (!autoHide.value) return;
|
|
338
|
+
const wasRunning = pauseSources.size === 0;
|
|
339
|
+
pauseSources.add(source);
|
|
340
|
+
if (!wasRunning) return;
|
|
329
341
|
if (timer.value) {
|
|
330
342
|
clearTimeout(timer.value);
|
|
331
343
|
timer.value = null;
|
|
@@ -335,19 +347,24 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
335
347
|
remaining.value = Math.max(remaining.value - elapsed, MIN_REMAINING_MS);
|
|
336
348
|
}
|
|
337
349
|
}
|
|
338
|
-
function resumeTimer() {
|
|
339
|
-
if (!autoHide.value || !
|
|
340
|
-
isPaused.value = false;
|
|
350
|
+
function resumeTimer(source) {
|
|
351
|
+
if (!autoHide.value || !pauseSources.delete(source)) return;
|
|
341
352
|
startTimer();
|
|
342
353
|
}
|
|
343
354
|
function handleClose() {
|
|
344
355
|
dismiss("manual");
|
|
345
356
|
}
|
|
346
357
|
function onWindowBlur() {
|
|
347
|
-
pauseTimer();
|
|
358
|
+
pauseTimer("window");
|
|
348
359
|
}
|
|
349
360
|
function onWindowFocus() {
|
|
350
|
-
resumeTimer();
|
|
361
|
+
resumeTimer("window");
|
|
362
|
+
}
|
|
363
|
+
function onFocusOut(event) {
|
|
364
|
+
const root = event.currentTarget;
|
|
365
|
+
const next = event.relatedTarget;
|
|
366
|
+
if (next instanceof Node && root.contains(next)) return;
|
|
367
|
+
resumeTimer("focus");
|
|
351
368
|
}
|
|
352
369
|
watch(() => props.isExiting, (exiting) => {
|
|
353
370
|
if (!exiting || !timer.value) return;
|
|
@@ -358,11 +375,16 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
358
375
|
remaining.value = next;
|
|
359
376
|
startTimer();
|
|
360
377
|
});
|
|
378
|
+
watch(() => props.timerKey, () => {
|
|
379
|
+
remaining.value = duration.value;
|
|
380
|
+
startTimer();
|
|
381
|
+
});
|
|
361
382
|
onMounted(() => {
|
|
362
383
|
startTimer();
|
|
363
384
|
if (autoHide.value) {
|
|
364
385
|
window.addEventListener("blur", onWindowBlur);
|
|
365
386
|
window.addEventListener("focus", onWindowFocus);
|
|
387
|
+
if (typeof document.hasFocus === "function" && !document.hasFocus()) pauseTimer("window");
|
|
366
388
|
}
|
|
367
389
|
});
|
|
368
390
|
onUnmounted(() => {
|
|
@@ -377,15 +399,15 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
377
399
|
role: role.value,
|
|
378
400
|
"aria-live": ariaLive.value,
|
|
379
401
|
"aria-atomic": "true",
|
|
380
|
-
onMouseenter: pauseTimer,
|
|
381
|
-
onMouseleave: resumeTimer,
|
|
382
|
-
onFocusin: pauseTimer,
|
|
383
|
-
onFocusout:
|
|
384
|
-
onPointerdown: _cache[
|
|
385
|
-
onPointermove: _cache[
|
|
386
|
-
onPointerup: _cache[
|
|
387
|
-
onPointercancel: _cache[
|
|
388
|
-
onLostpointercapture: _cache[
|
|
402
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event) => pauseTimer("pointer")),
|
|
403
|
+
onMouseleave: _cache[1] || (_cache[1] = ($event) => resumeTimer("pointer")),
|
|
404
|
+
onFocusin: _cache[2] || (_cache[2] = ($event) => pauseTimer("focus")),
|
|
405
|
+
onFocusout: onFocusOut,
|
|
406
|
+
onPointerdown: _cache[3] || (_cache[3] = (...args) => unref(gesture).onPointerDown && unref(gesture).onPointerDown(...args)),
|
|
407
|
+
onPointermove: _cache[4] || (_cache[4] = (...args) => unref(gesture).onPointerMove && unref(gesture).onPointerMove(...args)),
|
|
408
|
+
onPointerup: _cache[5] || (_cache[5] = (...args) => unref(gesture).onPointerUp && unref(gesture).onPointerUp(...args)),
|
|
409
|
+
onPointercancel: _cache[6] || (_cache[6] = (...args) => unref(gesture).onPointerCancel && unref(gesture).onPointerCancel(...args)),
|
|
410
|
+
onLostpointercapture: _cache[7] || (_cache[7] = (...args) => unref(gesture).onPointerCancel && unref(gesture).onPointerCancel(...args))
|
|
389
411
|
}, [createVNode(_sfc_main$4, {
|
|
390
412
|
mode: "auto",
|
|
391
413
|
fallback: mediaFallback.value,
|
|
@@ -466,6 +488,7 @@ const toastStore = reactive({
|
|
|
466
488
|
if (existing && behavior === "ignore") return null;
|
|
467
489
|
if (existing) {
|
|
468
490
|
Object.assign(existing, resolved);
|
|
491
|
+
existing.revision += 1;
|
|
469
492
|
return existing.id;
|
|
470
493
|
}
|
|
471
494
|
}
|
|
@@ -473,6 +496,7 @@ const toastStore = reactive({
|
|
|
473
496
|
this.toasts.push({
|
|
474
497
|
id,
|
|
475
498
|
uniqueID: options.uniqueID,
|
|
499
|
+
revision: 0,
|
|
476
500
|
isExiting: false,
|
|
477
501
|
...resolved
|
|
478
502
|
});
|
|
@@ -500,18 +524,50 @@ const toastStore = reactive({
|
|
|
500
524
|
}
|
|
501
525
|
});
|
|
502
526
|
//#endregion
|
|
527
|
+
//#region src/Toast/toastFocus.ts
|
|
528
|
+
function createToastFocusHandoff(getViewport) {
|
|
529
|
+
let previous = null;
|
|
530
|
+
return {
|
|
531
|
+
onFocusIn(event) {
|
|
532
|
+
const viewport = getViewport();
|
|
533
|
+
const from = event.relatedTarget;
|
|
534
|
+
if (viewport != null && from instanceof HTMLElement && !viewport.contains(from)) previous = from;
|
|
535
|
+
},
|
|
536
|
+
handoff(id) {
|
|
537
|
+
const viewport = getViewport();
|
|
538
|
+
if (viewport == null) return;
|
|
539
|
+
const all = [...viewport.querySelectorAll("[data-toast-id]")];
|
|
540
|
+
const index = all.findIndex((row) => row.dataset.toastId === id);
|
|
541
|
+
const row = all[index];
|
|
542
|
+
if (row == null || !row.contains(viewport.ownerDocument.activeElement)) return;
|
|
543
|
+
const neighbors = [...all.slice(index + 1), ...all.slice(0, index).reverse()].filter((candidate) => !candidate.hasAttribute("data-toast-exiting"));
|
|
544
|
+
for (const neighbor of neighbors) {
|
|
545
|
+
const target = getFocusables(neighbor)[0];
|
|
546
|
+
if (target != null && focusElement(target)) return;
|
|
547
|
+
}
|
|
548
|
+
if (previous?.isConnected) previous.focus({ preventScroll: true });
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
//#endregion
|
|
503
553
|
//#region src/Toast/ToastViewport.vue
|
|
504
|
-
const _hoisted_1 = [
|
|
554
|
+
const _hoisted_1 = [
|
|
555
|
+
"data-toast-id",
|
|
556
|
+
"data-toast-exiting",
|
|
557
|
+
"onTransitionend"
|
|
558
|
+
];
|
|
505
559
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
506
560
|
__name: "ToastViewport",
|
|
507
561
|
props: { placement: {} },
|
|
508
562
|
setup(__props) {
|
|
509
563
|
const props = __props;
|
|
564
|
+
provide(TOAST_VIEWPORT_KEY, true);
|
|
510
565
|
resetLayerScopedContext();
|
|
511
566
|
const layer = useLayerConfig();
|
|
512
567
|
const activeModal = useActiveModalOutlet();
|
|
513
568
|
const mountTarget = ref("body");
|
|
514
569
|
const viewportRef = ref(null);
|
|
570
|
+
const focusHandoff = createToastFocusHandoff(() => viewportRef.value);
|
|
515
571
|
/** 等两帧,让浏览器把上一步的样式算完。没有 `requestAnimationFrame` 时立刻返回。 */
|
|
516
572
|
function afterTwoFrames() {
|
|
517
573
|
if (typeof requestAnimationFrame !== "function") return Promise.resolve();
|
|
@@ -581,7 +637,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
581
637
|
"astryx-toast-viewport",
|
|
582
638
|
"astryx-layer",
|
|
583
639
|
`astryx-toast-viewport--placement-${placement.value}`,
|
|
584
|
-
{ "astryx-toast-viewport--rehosting": isRehosting.value }
|
|
640
|
+
{ "astryx-toast-viewport--rehosting": isRehosting.value },
|
|
641
|
+
{ "astryx-toast-viewport--empty": toastStore.toasts.length === 0 }
|
|
585
642
|
]);
|
|
586
643
|
/** 超出可见上限时只渲染最新的几条。 */
|
|
587
644
|
const visibleToasts = computed(() => {
|
|
@@ -613,14 +670,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
613
670
|
]
|
|
614
671
|
];
|
|
615
672
|
/**
|
|
616
|
-
*
|
|
617
|
-
*
|
|
673
|
+
* 逐边偏移叠在基础内边距上。基础内边距在上、左、右三边取间距第 4 档和设备安全区的较大者,
|
|
674
|
+
* 下沿则是间距第 4 档加设备安全区。没有 provider 时不写内联样式,保持原来的样子。
|
|
618
675
|
*/
|
|
619
676
|
const viewportStyle = computed(() => {
|
|
620
677
|
const inset = layer?.value.toast.inset;
|
|
621
678
|
if (inset == null) return void 0;
|
|
622
679
|
const style = {};
|
|
623
|
-
for (const [property, edge, areaEdge] of INSET_EDGES)
|
|
680
|
+
for (const [property, edge, areaEdge] of INSET_EDGES) {
|
|
681
|
+
const extra = inset[edge] ?? 0;
|
|
682
|
+
style[property] = `calc(${edge === "blockEnd" ? `var(--astryx-spacing-4, 16px) + max(env(safe-area-inset-bottom, 0px), var(--_toast-bottom-floor, 0px))` : `max(var(--astryx-spacing-4, 16px), env(safe-area-inset-${areaEdge}, 0px))`} + ${extra}px)`;
|
|
683
|
+
}
|
|
624
684
|
return style;
|
|
625
685
|
});
|
|
626
686
|
const settled = reactive(/* @__PURE__ */ new Set());
|
|
@@ -635,6 +695,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
635
695
|
settled.delete(id);
|
|
636
696
|
toastStore.dismissFromCard(id, reason);
|
|
637
697
|
}
|
|
698
|
+
watch(() => `${toastStore.toasts.map((t) => `${t.id}:${t.isExiting}`).join(",")}|${visibleToasts.value.map((t) => t.id).join(",")}`, () => {
|
|
699
|
+
const shown = new Set(visibleToasts.value.map((t) => t.id));
|
|
700
|
+
for (const toast of [...toastStore.toasts]) {
|
|
701
|
+
if (!toast.isExiting) continue;
|
|
702
|
+
focusHandoff.handoff(toast.id);
|
|
703
|
+
if (!shown.has(toast.id)) toastStore.finalize(toast.id);
|
|
704
|
+
}
|
|
705
|
+
}, { flush: "pre" });
|
|
638
706
|
watch(() => toastStore.toasts.map((t) => t.id).join(","), () => {
|
|
639
707
|
const live = new Set(toastStore.toasts.map((t) => t.id));
|
|
640
708
|
for (const id of [...settled]) if (!live.has(id)) settled.delete(id);
|
|
@@ -647,10 +715,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
647
715
|
style: normalizeStyle(viewportStyle.value),
|
|
648
716
|
popover: "manual",
|
|
649
717
|
"aria-live": "polite",
|
|
650
|
-
"aria-atomic": "false"
|
|
718
|
+
"aria-atomic": "false",
|
|
719
|
+
onFocusin: _cache[0] || (_cache[0] = (...args) => unref(focusHandoff).onFocusIn && unref(focusHandoff).onFocusIn(...args))
|
|
651
720
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(visibleToasts.value, (toast) => {
|
|
652
721
|
return openBlock(), createElementBlock("div", {
|
|
653
722
|
key: toast.id,
|
|
723
|
+
"data-toast-id": toast.id,
|
|
724
|
+
"data-toast-exiting": toast.isExiting ? "" : void 0,
|
|
654
725
|
class: normalizeClass(["astryx-toast-viewport__row", [isTopPlacement.value ? "astryx-toast-viewport__row--from-top" : "astryx-toast-viewport__row--from-bottom", { "astryx-toast-viewport__row--exiting": toast.isExiting }]]),
|
|
655
726
|
onTransitionend: ($event) => handleRowTransitionEnd(toast.id, $event)
|
|
656
727
|
}, [createElementVNode("div", { class: normalizeClass(["astryx-toast-viewport__clip", { "astryx-toast-viewport__clip--settled": settled.has(toast.id) }]) }, [createVNode(_sfc_main$1, {
|
|
@@ -661,6 +732,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
661
732
|
"end-content": toast.endContent,
|
|
662
733
|
"is-exiting": toast.isExiting,
|
|
663
734
|
"swipe-direction": isTopPlacement.value ? -1 : 1,
|
|
735
|
+
"timer-key": toast.revision,
|
|
664
736
|
onDismiss: ($event) => handleDismiss(toast.id, $event)
|
|
665
737
|
}, null, 8, [
|
|
666
738
|
"type",
|
|
@@ -670,9 +742,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
670
742
|
"end-content",
|
|
671
743
|
"is-exiting",
|
|
672
744
|
"swipe-direction",
|
|
745
|
+
"timer-key",
|
|
673
746
|
"onDismiss"
|
|
674
747
|
])], 2)], 42, _hoisted_1);
|
|
675
|
-
}), 128))],
|
|
748
|
+
}), 128))], 38)], 8, ["to"]);
|
|
676
749
|
};
|
|
677
750
|
}
|
|
678
751
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-
|
|
1
|
+
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-LHvLg1Pv.js";
|
|
2
2
|
export { _default as ToggleButton, _default as default, type ToggleButtonChangeAction, type ToggleButtonElevation, type ToggleButtonEmits, _default$1 as ToggleButtonGroup, type ToggleButtonGroupBaseProps, type ToggleButtonGroupEmits, type ToggleButtonGroupMultipleProps, type ToggleButtonGroupOrientation, type ToggleButtonGroupProps, type ToggleButtonGroupSingleProps, type ToggleButtonGroupSlots, type ToggleButtonGroupType, type ToggleButtonGroupValue, type ToggleButtonPressedChangeHandler, type ToggleButtonProps, type ToggleButtonSize, type ToggleButtonSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main$1, r as _sfc_main, t as ToggleButton_default } from "../ToggleButton-
|
|
1
|
+
import { n as _sfc_main$1, r as _sfc_main, t as ToggleButton_default } from "../ToggleButton-CO0XWWc0.js";
|
|
2
2
|
export { _sfc_main as ToggleButton, _sfc_main$1 as ToggleButtonGroup, ToggleButton_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as pressGroupItemProps, n as useTouchHitArea, t as GROUP_HIT_AREA } from "./useTouchHitArea-BI-CtI7e.js";
|
|
2
2
|
import { t as useActionGroupTracking } from "./useActionGroupTracking-DGeOIv3K.js";
|
|
3
3
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
4
|
-
import { t as _sfc_main$2 } from "./Button-
|
|
4
|
+
import { t as _sfc_main$2 } from "./Button-BZtim0B-.js";
|
|
5
5
|
import { n as buttonHitAreaContextKey } from "./context-Cgkyk-b7.js";
|
|
6
6
|
import { t as useCoarsePointer } from "./useCoarsePointer-GItEMrjX.js";
|
|
7
7
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, mergeModels, mergeProps, normalizeClass, openBlock, provide, renderSlot, shallowRef, toDisplayString, unref, useModel, useTemplateRef, withCtx } from "vue";
|
package/dist/Token/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-
|
|
1
|
+
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-BqhgeAT4.js";
|
|
2
2
|
export { TOKEN_COLORS, _default as Token, type TokenColor, type TokenEmits, type TokenProps, type TokenSize, type TokenSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TokenizerProps, c as TokenizerStatus, i as TokenizerOverflow, n as TokenizerChange, o as TokenizerSize, r as TokenizerEmits, s as TokenizerSlots, t as _default } from "../index-
|
|
1
|
+
import { a as TokenizerProps, c as TokenizerStatus, i as TokenizerOverflow, n as TokenizerChange, o as TokenizerSize, r as TokenizerEmits, s as TokenizerSlots, t as _default } from "../index-B0yaHi__.js";
|
|
2
2
|
export { _default as Tokenizer, type TokenizerChange, type TokenizerEmits, type TokenizerOverflow, type TokenizerProps, type TokenizerSize, type TokenizerSlots, type TokenizerStatus };
|
package/dist/Tokenizer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Tokenizer-
|
|
1
|
+
import { t as _sfc_main } from "../Tokenizer-mu0Sak58.js";
|
|
2
2
|
export { _sfc_main as Tokenizer };
|
|
@@ -4,12 +4,12 @@ import { t as _sfc_main$1 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
|
4
4
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
5
5
|
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
6
6
|
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
7
|
-
import { t as useInputStatusIcon } from "./useInputStatusIcon-
|
|
7
|
+
import { t as useInputStatusIcon } from "./useInputStatusIcon-ne9V7ZQC.js";
|
|
8
8
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
9
9
|
import { t as useOverflow } from "./useOverflow-GU0pxGaU.js";
|
|
10
10
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
11
11
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
12
|
-
import { t as _sfc_main$2 } from "./Field-
|
|
12
|
+
import { t as _sfc_main$2 } from "./Field-BXkGR8H0.js";
|
|
13
13
|
import { t as useFieldPartStyling } from "./fieldParts-CbWvZLhH.js";
|
|
14
14
|
import { t as tokenizerMessages } from "./tokenizer-ChiAuPN-.js";
|
|
15
15
|
import { t as _sfc_main$3 } from "./Token-jBbgdevV.js";
|
package/dist/Toolbar/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { T as _default } from "../index-
|
|
1
|
+
import { T as _default } from "../index-LHvLg1Pv.js";
|
|
2
2
|
import { et as ToolbarOrientation, nt as ToolbarSize, tt as ToolbarProps } from "../useResizable-CJd4JkbJ.js";
|
|
3
3
|
export { _default as Toolbar, type ToolbarOrientation, type ToolbarProps, type ToolbarSize };
|
package/dist/Tooltip/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TooltipAlignment, c as TooltipProps, i as _default, l as TooltipTouchTrigger, n as UseTooltipReturn, o as TooltipFocusTrigger, r as useTooltip, s as TooltipPlacement, t as UseTooltipOptions } from "../index-
|
|
1
|
+
import { a as TooltipAlignment, c as TooltipProps, i as _default, l as TooltipTouchTrigger, n as UseTooltipReturn, o as TooltipFocusTrigger, r as useTooltip, s as TooltipPlacement, t as UseTooltipOptions } from "../index-SWw-WMTO.js";
|
|
2
2
|
export { _default as Tooltip, type TooltipAlignment, type TooltipFocusTrigger, type TooltipPlacement, type TooltipProps, type TooltipTouchTrigger, type UseTooltipOptions, type UseTooltipReturn, useTooltip };
|
package/dist/Tooltip/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as useTooltip } from "../useTooltip-
|
|
2
|
-
import { t as _sfc_main } from "../Tooltip-
|
|
1
|
+
import { t as useTooltip } from "../useTooltip-C7gHRGEO.js";
|
|
2
|
+
import { t as _sfc_main } from "../Tooltip-DQipgW1R.js";
|
|
3
3
|
export { _sfc_main as Tooltip, useTooltip };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as _sfc_main$1, t as useTooltip } from "./useTooltip-
|
|
1
|
+
import { i as _sfc_main$1, t as useTooltip } from "./useTooltip-C7gHRGEO.js";
|
|
2
2
|
import { Fragment, Teleport, computed, createElementBlock, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, nextTick, onMounted, onUpdated, openBlock, ref, renderSlot, toDisplayString, unref, useAttrs, watch, withCtx } from "vue";
|
|
3
3
|
import "../styles/tooltip.css";
|
|
4
4
|
//#region src/Tooltip/Tooltip.vue
|
package/dist/TopNav/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-
|
|
1
|
+
import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-LHvLg1Pv.js";
|
|
2
2
|
export { _default as TopNav, _default$1 as TopNavHeading, type TopNavHeadingProps, _default$2 as TopNavItem, type TopNavItemEmits, type TopNavItemProps, _default$3 as TopNavMegaMenu, type TopNavMegaMenuEmits, _default$4 as TopNavMegaMenuFeaturedCard, type TopNavMegaMenuFeaturedCardProps, _default$5 as TopNavMegaMenuItem, type TopNavMegaMenuItemProps, type TopNavMegaMenuProps, _default$6 as TopNavMenu, type TopNavMenuEmits, type TopNavMenuItem, type TopNavMenuProps, type TopNavProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TypeaheadEmits, c as TypeaheadSize, i as BaseTypeaheadProps, l as TypeaheadSlots, n as _default$1, o as TypeaheadItemProps, r as _default, s as TypeaheadProps, t as _default$2, u as TypeaheadStatus } from "../index-
|
|
1
|
+
import { a as TypeaheadEmits, c as TypeaheadSize, i as BaseTypeaheadProps, l as TypeaheadSlots, n as _default$1, o as TypeaheadItemProps, r as _default, s as TypeaheadProps, t as _default$2, u as TypeaheadStatus } from "../index-DbFIQDoa.js";
|
|
2
2
|
export { _default as BaseTypeahead, type BaseTypeaheadProps, _default$1 as Typeahead, type TypeaheadEmits, _default$2 as TypeaheadItem, type TypeaheadItemProps, type TypeaheadProps, type TypeaheadSize, type TypeaheadSlots, type TypeaheadStatus };
|
package/dist/Typeahead/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as _sfc_main$2 } from "../useTypeaheadAnnouncement-CSikDlpK.js";
|
|
2
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../Typeahead-
|
|
2
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../Typeahead-Db8Tu27Z.js";
|
|
3
3
|
export { _sfc_main as BaseTypeahead, _sfc_main$1 as Typeahead, _sfc_main$2 as TypeaheadItem };
|
|
@@ -2,12 +2,12 @@ import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
|
|
|
2
2
|
import { p as isImeKeyEvent } from "./interactionModality-B5dR7nnb.js";
|
|
3
3
|
import { t as _sfc_main$2 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
4
4
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
5
|
-
import { t as useInputStatusIcon } from "./useInputStatusIcon-
|
|
5
|
+
import { t as useInputStatusIcon } from "./useInputStatusIcon-ne9V7ZQC.js";
|
|
6
6
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
7
7
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
8
8
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
9
9
|
import { t as _sfc_main$3 } from "./Spinner-DEVPDsD0.js";
|
|
10
|
-
import { t as _sfc_main$4 } from "./Field-
|
|
10
|
+
import { t as _sfc_main$4 } from "./Field-BXkGR8H0.js";
|
|
11
11
|
import { t as useFieldPartStyling } from "./fieldParts-CbWvZLhH.js";
|
|
12
12
|
import { t as typeaheadMessages } from "./typeahead-RkZw0Ktn.js";
|
|
13
13
|
import { t as _sfc_main$5 } from "./Token-jBbgdevV.js";
|
|
@@ -3,7 +3,7 @@ import { n as isMenuPressActivation, r as resetMenuPress } from "../strayClick-_
|
|
|
3
3
|
import { t as usePressFeedback } from "../usePressFeedback-2YAzGB6C.js";
|
|
4
4
|
import { n as useLayerTeleportTarget, r as useResolvedLayerTeleport, t as useLayerMountTarget } from "../useLayerMountTarget-BmZyeKWE.js";
|
|
5
5
|
import { t as useDismiss } from "../useDismiss-Dfb0Ky7T.js";
|
|
6
|
-
import {
|
|
6
|
+
import { n as useLayer } from "../tooltipTriggerRules-PBxqztvn.js";
|
|
7
7
|
import { t as useCoarsePointer } from "../useCoarsePointer-GItEMrjX.js";
|
|
8
8
|
import { t as useMediaQuery } from "../useMediaQuery-BzXGT1Aw.js";
|
|
9
9
|
import { t as characterCount } from "../characters-wTnzjkkR.js";
|
|
@@ -24,7 +24,7 @@ import { t as useFocusTrap } from "../useFocusTrap-BUd-fvUH.js";
|
|
|
24
24
|
import { t as useHandleRef } from "../useHandleRef-6cdKugm8.js";
|
|
25
25
|
import { n as useResizable, r as useHotkeys, t as percent } from "../useResizable-BMlG1oxA.js";
|
|
26
26
|
import { t as useInputContainer } from "../useInputContainer-CLhsKYZ6.js";
|
|
27
|
-
import { t as useInputStatusIcon } from "../useInputStatusIcon-
|
|
27
|
+
import { t as useInputStatusIcon } from "../useInputStatusIcon-ne9V7ZQC.js";
|
|
28
28
|
import { t as useInteractiveRole } from "../useInteractiveRole-Cn0Nd5GX.js";
|
|
29
29
|
import { t as useListFocus } from "../useListFocus-CbHkLT-X.js";
|
|
30
30
|
import { a as useLongPress, i as MENU_PRESS_MARKER, n as MENU_PRESS_SETTLE_MS, r as menuPressStep, t as useMenuPress } from "../useMenuPress-9dOj2hvC.js";
|
|
@@ -44,8 +44,8 @@ interface TimerProps {
|
|
|
44
44
|
//#region src/Timer/Timer.vue.d.ts
|
|
45
45
|
declare const __VLS_export: import("vue").DefineComponent<TimerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TimerProps> & Readonly<{}>, {
|
|
46
46
|
type: TimerType;
|
|
47
|
-
format: "clock" | "elapsed";
|
|
48
47
|
color: TimerColor;
|
|
48
|
+
format: "clock" | "elapsed";
|
|
49
49
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
50
|
declare const _default: typeof __VLS_export;
|
|
51
51
|
//#endregion
|
|
@@ -403,9 +403,9 @@ declare const __VLS_base: import("vue").DefineComponent<PowerSearchProps, {
|
|
|
403
403
|
}>, {
|
|
404
404
|
status: PowerSearchStatus;
|
|
405
405
|
statusVariant: PowerSearchStatusVariant;
|
|
406
|
-
disabled: boolean;
|
|
407
406
|
hasClear: boolean;
|
|
408
407
|
labelHidden: boolean;
|
|
408
|
+
disabled: boolean;
|
|
409
409
|
clearable: boolean;
|
|
410
410
|
overflow: PowerSearchOverflow;
|
|
411
411
|
readOnly: boolean;
|
|
@@ -107,12 +107,12 @@ interface TokenizerSlots<T extends SearchableItem = SearchableItem> {
|
|
|
107
107
|
//#region src/Tokenizer/Tokenizer.vue.d.ts
|
|
108
108
|
declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
109
109
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<TokenizerProps<T> & {
|
|
110
|
-
onSearch?: ((query: string) => any) | undefined;
|
|
111
110
|
onChange?: ((value: T[], change: TokenizerChange<T>) => any) | undefined;
|
|
112
|
-
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
113
|
-
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
114
111
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
115
112
|
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
113
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
114
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
115
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
116
116
|
onChangeQuery?: ((query: string) => any) | undefined;
|
|
117
117
|
}> & (typeof globalThis extends {
|
|
118
118
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -123,7 +123,7 @@ declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<
|
|
|
123
123
|
}>) => void;
|
|
124
124
|
attrs: any;
|
|
125
125
|
slots: TokenizerSlots<T>;
|
|
126
|
-
emit: ((evt: "
|
|
126
|
+
emit: ((evt: "change", value: T[], change: TokenizerChange<T>) => void) & ((evt: "openChange", isOpen: boolean) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "search", query: string) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "changeQuery", query: string) => void);
|
|
127
127
|
}>) => import("vue").VNode & {
|
|
128
128
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
129
129
|
};
|
|
@@ -175,8 +175,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
175
175
|
}>, {
|
|
176
176
|
position: OverlayPosition;
|
|
177
177
|
align: OverlayAlign;
|
|
178
|
-
scrim: OverlayScrimMode;
|
|
179
178
|
showOn: OverlayShowOn;
|
|
179
|
+
scrim: OverlayScrimMode;
|
|
180
180
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
181
181
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
182
182
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -192,8 +192,8 @@ declare const __VLS_base: import("vue").DefineComponent<OverlayScrimProps, {}, {
|
|
|
192
192
|
isOpen: boolean;
|
|
193
193
|
position: OverlayPosition;
|
|
194
194
|
align: OverlayAlign;
|
|
195
|
-
scrim: OverlayScrimMode;
|
|
196
195
|
showOn: OverlayShowOn;
|
|
196
|
+
scrim: OverlayScrimMode;
|
|
197
197
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
198
198
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
199
199
|
declare const _default: typeof __VLS_export;
|
|
@@ -154,11 +154,11 @@ type __VLS_ModelProps = {
|
|
|
154
154
|
};
|
|
155
155
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
156
156
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
157
|
-
"update:value": (value: CollapsibleGroupValue | undefined) => any;
|
|
158
157
|
change: (value: CollapsibleGroupValue) => any;
|
|
158
|
+
"update:value": (value: CollapsibleGroupValue | undefined) => any;
|
|
159
159
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
160
|
-
"onUpdate:value"?: ((value: CollapsibleGroupValue | undefined) => any) | undefined;
|
|
161
160
|
onChange?: ((value: CollapsibleGroupValue) => any) | undefined;
|
|
161
|
+
"onUpdate:value"?: ((value: CollapsibleGroupValue | undefined) => any) | undefined;
|
|
162
162
|
}>, {
|
|
163
163
|
type: CollapsibleGroupType;
|
|
164
164
|
hasDividers: boolean;
|
|
@@ -36,10 +36,10 @@ declare const __VLS_base$2: import("vue").DefineComponent<ItemProps, {
|
|
|
36
36
|
blur: typeof blur;
|
|
37
37
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ItemProps> & Readonly<{}>, {
|
|
38
38
|
isDisabled: boolean;
|
|
39
|
+
isSelected: boolean;
|
|
39
40
|
as: ItemElement;
|
|
40
41
|
density: ListDensity;
|
|
41
42
|
layout: ItemLayout;
|
|
42
|
-
isSelected: boolean;
|
|
43
43
|
align: ItemAlign;
|
|
44
44
|
isHighlighted: boolean;
|
|
45
45
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -56,8 +56,8 @@ type __VLS_Slots$1 = ListSlots;
|
|
|
56
56
|
declare const __VLS_base$1: import("vue").DefineComponent<ListProps, {
|
|
57
57
|
element: import("vue").ComputedRef<HTMLUListElement | HTMLOListElement | null>;
|
|
58
58
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ListProps> & Readonly<{}>, {
|
|
59
|
-
density: ListDensity;
|
|
60
59
|
start: number;
|
|
60
|
+
density: ListDensity;
|
|
61
61
|
hasDividers: boolean;
|
|
62
62
|
listStyle: ListMarkerStyle;
|
|
63
63
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -15,13 +15,13 @@ declare const __VLS_base: import("vue").DefineComponent<PopoverProps, {}, {}, {}
|
|
|
15
15
|
}, string, import("vue").PublicProps, Readonly<PopoverProps> & Readonly<{
|
|
16
16
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
+
isOpen: boolean;
|
|
18
19
|
label: string;
|
|
19
|
-
anchor: HTMLElement | null;
|
|
20
20
|
width: string | number;
|
|
21
|
-
padding: PopoverPadding;
|
|
22
|
-
isOpen: boolean;
|
|
23
21
|
placement: LayerPlacement;
|
|
24
22
|
alignment: LayerAlignment;
|
|
23
|
+
anchor: HTMLElement | null;
|
|
24
|
+
padding: PopoverPadding;
|
|
25
25
|
role: PopoverRole;
|
|
26
26
|
hasAutoFocus: boolean;
|
|
27
27
|
hasCloseButton: boolean;
|
|
@@ -108,8 +108,8 @@ declare const __VLS_base: import("vue").DefineComponent<PaginationProps, {}, {},
|
|
|
108
108
|
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
109
109
|
onPageSizeChange?: ((pageSize: number) => any) | undefined;
|
|
110
110
|
}>, {
|
|
111
|
-
size: PaginationSize;
|
|
112
111
|
isDisabled: boolean;
|
|
112
|
+
size: PaginationSize;
|
|
113
113
|
variant: PaginationVariant;
|
|
114
114
|
step: number;
|
|
115
115
|
page: number;
|
|
@@ -89,11 +89,11 @@ declare const __VLS_base$1: import("vue").DefineComponent<DialogProps, {}, {}, {
|
|
|
89
89
|
}, string, import("vue").PublicProps, Readonly<DialogProps> & Readonly<{
|
|
90
90
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
91
91
|
}>, {
|
|
92
|
-
variant: DialogVariant;
|
|
93
92
|
width: string | number;
|
|
93
|
+
variant: DialogVariant;
|
|
94
94
|
padding: DialogPadding;
|
|
95
|
-
position: DialogPosition;
|
|
96
95
|
isInline: boolean;
|
|
96
|
+
position: DialogPosition;
|
|
97
97
|
purpose: DialogPurpose;
|
|
98
98
|
maxHeight: string | number;
|
|
99
99
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -10,12 +10,12 @@ declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {
|
|
|
10
10
|
}>, {
|
|
11
11
|
type: "button" | "reset" | "submit";
|
|
12
12
|
isDisabled: boolean;
|
|
13
|
-
elevation: ButtonElevation;
|
|
14
13
|
isLoading: boolean;
|
|
14
|
+
variant: ButtonVariant;
|
|
15
|
+
elevation: ButtonElevation;
|
|
15
16
|
isIconOnly: boolean;
|
|
16
17
|
isInterruptible: boolean;
|
|
17
18
|
loadingLabel: string;
|
|
18
|
-
variant: ButtonVariant;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -18,8 +18,8 @@ type __VLS_Slots$2 = {
|
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_base$2: import("vue").DefineComponent<StackProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StackProps> & Readonly<{}>, {
|
|
20
20
|
as: StackElement;
|
|
21
|
-
direction: StackDirection;
|
|
22
21
|
wrap: StackWrap;
|
|
22
|
+
direction: StackDirection;
|
|
23
23
|
isScrollable: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|