@astryx-vue/core 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-CBkJecfc.js → AlertDialog-5bbCe_ma.js} +1 -1
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-DhVBdHeQ.js → AvatarGroup-ezWQX5UE.js} +5 -2
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-m54uCMJN.js → BottomSheet-BrxST6Zp.js} +2 -1
- package/dist/{BottomSheet-B4sc3F1S.js → BottomSheet-itRm1Yh5.js} +1 -0
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-DRXYUqOk.js → Breadcrumbs-DYmOUlSu.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- 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/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-sNg2CZ_P.js → Chat-DpH2ob4k.js} +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-DDORpsYN.js → CheckboxInput-D0SSjziv.js} +2 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-B8_wed6z.js → CheckboxList-DnqRfWKg.js} +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-DM66XZ07.js → ClickableCard-CGjr4c7g.js} +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-DFxk2sil.js → CommandPalette-B6lzcEE4.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-32r0RVQE.js → ComplexSelector-CABdPOyw.js} +16 -3
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-BH_yV1xZ.js → ContextMenu-DMSJQdZ5.js} +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-B57PrbII.js → DateInput-cVln1Xnn.js} +4 -6
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BMw1A5Q3.js → DateTimeInput-CViJJt8m.js} +3 -3
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -2
- package/dist/{Dialog-fhyxB00e.js → Dialog-BhxN-tp4.js} +1 -0
- package/dist/Dialog-Bn4eUNiy.js +49 -0
- package/dist/{Dialog-CL8u76KG.js → DialogHeader-B-Lz4rB5.js} +3 -49
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +2 -0
- package/dist/Drawer/index.js +2 -0
- package/dist/Drawer-DjSbpQcy.js +137 -0
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-C0QDklYy.js → DropdownMenu-Cr1zAiZm.js} +142 -27
- package/dist/{DropdownMenu-DO9lDRvW.js → DropdownMenu-CxbpuT2r.js} +2 -2
- package/dist/{DropdownMenuRadioItem.vue-D-VSfulY.d.ts → DropdownMenuRadioItem.vue-z0XU7pZS.d.ts} +9 -0
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-BpJhT0sn.js → HoverCard-C3zQizyS.js} +93 -67
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/plugin-protocol/index.js +4 -3
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DVqD6OEy.js → MultiSelector-r5acBuN0.js} +10 -5
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- 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-L0IDhBbo.js → Pagination-CYmPEKKt.js} +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CBYYhpvA.js → PowerSearch-CjhX2YkL.js} +8 -8
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/ScrollableArea/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-Dle5Lbvs.js → Selector-PYpxWfKo.js} +38 -15
- package/dist/SideNav/index.d.ts +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-DBdLd0-t.js → Switch-DSuC0F7H.js} +2 -4
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-npiEQK-q.js → TabList-CXLDPFte.js} +30 -6
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-BwfRe7_x.js → Table-36BOw1Q0.js} +5 -5
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/{TimeField-Dajh0ej2.js → TimeField-BnXwqr_O.js} +8 -12
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-BVrrBcMF.js → TimeInput-68-3BdYQ.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-Bf6iQTk6.js → Timestamp-DTr30OUF.js} +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-CBrEN21_.js → Token-DP3bU-8c.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DxOCrbq3.js → Tokenizer-DT1Kj9dR.js} +1 -1
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-XpX5aA-Q.js → Typeahead-D4oT1wUP.js} +1 -1
- package/dist/{disabledInteraction-C9lrgFxB.js → disabledInteraction-CPzL8kVP.js} +20 -1
- package/dist/{index-Dacg7XTH.d.ts → index-8px-LKw_.d.ts} +2 -2
- package/dist/{index-D_K1wfRa.d.ts → index-B2kcUxGA.d.ts} +1 -1
- package/dist/{index-CL8JvxHW.d.ts → index-B3yTdknp.d.ts} +1 -1
- package/dist/{index-rszZajcw.d.ts → index-B449gOMC.d.ts} +2 -2
- package/dist/{index-RW8kvEwf.d.ts → index-B6eL2gOK.d.ts} +5 -5
- package/dist/{index-C3f1zsJR.d.ts → index-Bm_3wP0q.d.ts} +2 -2
- package/dist/{index-BaxM-pFP.d.ts → index-BnEhvmdR.d.ts} +4 -4
- package/dist/{index-DTyX3QfK.d.ts → index-C3dirxkN.d.ts} +4 -4
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-WrrH8ulk.d.ts → index-CA9Nneq_.d.ts} +6 -6
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-DLAG3m9W.d.ts → index-DXJ3U3ve.d.ts} +2 -2
- package/dist/{index-DR3eQt87.d.ts → index-Djd6glIa.d.ts} +206 -115
- package/dist/{index-BNaRK-s5.d.ts → index-DsaP4-eB.d.ts} +1 -1
- package/dist/{index-C_6RCsGf.d.ts → index-Gnewu6-J.d.ts} +1 -1
- package/dist/{index-B1WWphal.d.ts → index-IvAfdGCC.d.ts} +1 -1
- package/dist/{index-TA1zVibb.d.ts → index-MEix_m1o.d.ts} +4 -4
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-CqSDC6Af.d.ts → index-aTBpXbot.d.ts} +6 -6
- package/dist/{index-ChOyJzJh.d.ts → index-cG1E0U2s.d.ts} +2 -2
- package/dist/{index-D5N9ikrS.d.ts → index-hCpxKePE.d.ts} +1 -1
- package/dist/{index-3t5RAfNP.d.ts → index-mkbGYz8f.d.ts} +2 -2
- package/dist/{index-C732aNMY.d.ts → index-qayqGnJT.d.ts} +3 -3
- package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
- package/dist/index.d.ts +68 -68
- package/dist/index.js +104 -102
- package/package.json +5 -1
- package/styles/drawer.css +77 -0
- package/styles/dropdown-menu.css +28 -0
- package/styles.css +1 -0
- package/dist/{index-CHx33xGa.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-5bbCe_ma.js";
|
|
2
2
|
export { _sfc_main as AlertDialog, useImperativeAlertDialog };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./Button-xMGOU3Wj.js";
|
|
2
2
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
3
|
-
import { t as _sfc_main$2 } from "./Dialog-
|
|
3
|
+
import { t as _sfc_main$2 } from "./Dialog-BhxN-tp4.js";
|
|
4
4
|
import { t as _sfc_main$3 } from "./Heading-BzBunfN7.js";
|
|
5
5
|
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
6
6
|
import { t as _sfc_main$4 } from "./Stack-Bp-XN9J4.js";
|
package/dist/AppShell/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AppShellMobileNav, c as AppShellVariant, i as AppShellHeight, n as AppShellBreakpoint, o as AppShellProps, r as AppShellEmits, s as AppShellSlots, t as _default } from "../index-
|
|
1
|
+
import { a as AppShellMobileNav, c as AppShellVariant, i as AppShellHeight, n as AppShellBreakpoint, o as AppShellProps, r as AppShellEmits, s as AppShellSlots, t as _default } from "../index-TXcNH86P.js";
|
|
2
2
|
export { _default as AppShell, type AppShellBreakpoint, type AppShellEmits, type AppShellHeight, type AppShellMobileNav, type AppShellProps, type AppShellSlots, type AppShellVariant };
|
|
@@ -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-Djd6glIa.js";
|
|
2
2
|
export { _default as AvatarGroup, _default$1 as AvatarGroupOverflow, type AvatarGroupOverflowEmits, type AvatarGroupOverflowProps, type AvatarGroupOverflowSlots, type AvatarGroupProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../AvatarGroup-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../AvatarGroup-ezWQX5UE.js";
|
|
2
2
|
export { _sfc_main as AvatarGroup, _sfc_main$1 as AvatarGroupOverflow };
|
|
@@ -4,7 +4,7 @@ import { t as _sfc_main$2 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
|
4
4
|
import { s as useAstryxMessages } from "./context-CVUee2tp.js";
|
|
5
5
|
import { t as useListFocus } from "./useListFocus-ChxLg0b4.js";
|
|
6
6
|
import { o as AvatarGroupContext, r as resolveSize } from "./utils-ClVseK2w.js";
|
|
7
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, defineComponent, getCurrentInstance, mergeProps, normalizeStyle, onMounted, onUpdated, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, withCtx } from "vue";
|
|
7
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, defineComponent, getCurrentInstance, mergeProps, normalizeStyle, onMounted, onUpdated, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, withCtx } from "vue";
|
|
8
8
|
import "../styles/avatar-group.css";
|
|
9
9
|
//#region src/AvatarGroup/AvatarGroup.vue
|
|
10
10
|
const _hoisted_1 = [
|
|
@@ -83,6 +83,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
83
83
|
const props = __props;
|
|
84
84
|
const emit = __emit;
|
|
85
85
|
const instance = getCurrentInstance();
|
|
86
|
+
const attrs = useAttrs();
|
|
86
87
|
const messages = useAstryxMessages();
|
|
87
88
|
const press = usePressFeedback();
|
|
88
89
|
const avatarGroup = readLayerScoped(AvatarGroupContext);
|
|
@@ -111,6 +112,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
111
112
|
"--astryx-avatar-group-overflow-computed-font-size": `max(var(--astryx-text-supporting-size, 0.75rem), ${Math.round(numericSize.value * OVERFLOW_FONT_RATIO * 100) / 100}px)`
|
|
112
113
|
}));
|
|
113
114
|
const pressBindings = computed(() => isInteractive.value ? press.pressableProps : {});
|
|
115
|
+
/** 静态指示器的 `img` 语义可以被调用方换掉,比如标成 `note`。 */
|
|
116
|
+
const staticRole = computed(() => attrs.role ?? "img");
|
|
114
117
|
return (_ctx, _cache) => {
|
|
115
118
|
return openBlock(), createBlock(resolveDynamicComponent(isInteractive.value ? "button" : "span"), mergeProps(pressBindings.value, {
|
|
116
119
|
class: ["astryx-avatar-group-overflow", [`astryx-avatar-group-overflow--${shape.value}`, { "astryx-avatar-group-overflow--interactive": isInteractive.value }]],
|
|
@@ -120,7 +123,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
120
123
|
"data-avatar-item": isInteractive.value ? "" : void 0,
|
|
121
124
|
type: isInteractive.value ? "button" : void 0,
|
|
122
125
|
"aria-label": accessibleName.value,
|
|
123
|
-
role: isInteractive.value ? void 0 :
|
|
126
|
+
role: isInteractive.value ? void 0 : staticRole.value,
|
|
124
127
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("click", $event))
|
|
125
128
|
}), {
|
|
126
129
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(`+${safeCount.value}`), 1)])]),
|
package/dist/Banner/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ao as BannerStatus, eo as _default, io as BannerSlots, no as BannerEmits, ro as BannerProps, to as BannerContainer } from "../index-Djd6glIa.js";
|
|
2
2
|
export { _default as Banner, type BannerContainer, type BannerEmits, type BannerProps, type BannerSlots, type BannerStatus };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../BottomSheet-
|
|
2
|
-
import { t as _sfc_main$1 } from "../BottomSheet-
|
|
1
|
+
import { t as _sfc_main } from "../BottomSheet-itRm1Yh5.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "../BottomSheet-BrxST6Zp.js";
|
|
3
3
|
export { _sfc_main as BottomSheet, _sfc_main$1 as BottomSheetSwitcher };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as isImeKeyEvent } from "./layerDepth-CNDh-IHb.js";
|
|
2
2
|
import { n as useFocusTrap } from "./useRestoreFocus-XEKs5-gp.js";
|
|
3
3
|
import { t as useScrollLock } from "./scrollLock-C3aT4-0z.js";
|
|
4
|
-
import { n as useSheetLayerDismiss, r as bottomSheetSwitcherKey } from "./BottomSheet-
|
|
4
|
+
import { n as useSheetLayerDismiss, r as bottomSheetSwitcherKey } from "./BottomSheet-itRm1Yh5.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";
|
|
7
7
|
//#region src/BottomSheet/BottomSheetSwitcher.vue
|
|
@@ -130,6 +130,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
130
130
|
requestClose();
|
|
131
131
|
}
|
|
132
132
|
function onCancel(event) {
|
|
133
|
+
if (event.target !== dialog.value) return;
|
|
133
134
|
emit("cancel", event);
|
|
134
135
|
if (event.defaultPrevented) return;
|
|
135
136
|
event.preventDefault();
|
|
@@ -1,3 +1,3 @@
|
|
|
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-
|
|
2
|
-
import { a as BreadcrumbsProps, i as BreadcrumbMenuOption, n as _default, o as BreadcrumbsVariant, r as BreadcrumbItemProps, t as _default$4 } from "../index-
|
|
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-z0XU7pZS.js";
|
|
2
|
+
import { a as BreadcrumbsProps, i as BreadcrumbMenuOption, n as _default, o as BreadcrumbsVariant, r as BreadcrumbItemProps, t as _default$4 } from "../index-Gnewu6-J.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
1
|
import { i as _sfc_main$1, n as _sfc_main$3, r as _sfc_main$2 } from "../useMenuDrillIn-CjU_ZMhh.js";
|
|
2
|
-
import { n as _sfc_main, t as _sfc_main$4 } from "../Breadcrumbs-
|
|
2
|
+
import { n as _sfc_main, t as _sfc_main$4 } from "../Breadcrumbs-DYmOUlSu.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 };
|
|
@@ -2,7 +2,7 @@ import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide
|
|
|
2
2
|
import { t as _sfc_main$2 } from "./Icon-Dosui-zD.js";
|
|
3
3
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
4
4
|
import { n as useDevWarning } from "./useDevWarning-DznOpOHT.js";
|
|
5
|
-
import { t as _sfc_main$3 } from "./DropdownMenu-
|
|
5
|
+
import { t as _sfc_main$3 } from "./DropdownMenu-CxbpuT2r.js";
|
|
6
6
|
import { n as isNavigableHref } from "./link-DuuA2eCL.js";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, onMounted, onScopeDispose, onUpdated, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, useId, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
8
8
|
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-DnrU3HYQ.js";
|
|
2
|
-
import { t as _default } from "../index-
|
|
2
|
+
import { t as _default } from "../index-B2kcUxGA.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 };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $a as ButtonGroupOrientation, Qa as ButtonGroupSlots, Xa as _default, Za as ButtonGroupProps } from "../index-Djd6glIa.js";
|
|
2
2
|
export { _default as ButtonGroup, _default as default, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonGroupSlots };
|
package/dist/Calendar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ga as CalendarHandle, Ja as CalendarRangeValue, Ka as CalendarHandleRef, Ua as _default, Wa as CalendarEmits, Ya as CalendarSlots, qa as CalendarProps } from "../index-Djd6glIa.js";
|
|
2
2
|
export { _default as Calendar, type CalendarEmits, type CalendarHandle, type CalendarHandleRef, type CalendarProps, type CalendarRangeValue, type CalendarSlots };
|
package/dist/Card/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, s as CardVariantMap, t as _default } from "../index-
|
|
1
|
+
import { a as CardSlots, i as CardSizeValue, n as CardElevation, o as CardVariant, r as CardProps, s as CardVariantMap, t as _default } from "../index-CTjkJP4x.js";
|
|
2
2
|
export { _default as Card, type CardElevation, type CardProps, type CardSizeValue, type CardSlots, type CardVariant, type CardVariantMap };
|
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-B6eL2gOK.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-DpH2ob4k.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 };
|
|
@@ -11,7 +11,7 @@ import { o as useAstryxLocale, s as useAstryxMessages } from "./context-CVUee2tp
|
|
|
11
11
|
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
12
12
|
import { t as _sfc_main$27 } from "./Badge-CjDQPF5g.js";
|
|
13
13
|
import { t as _sfc_main$28 } from "./Divider-mOZ6vIQw.js";
|
|
14
|
-
import { t as _sfc_main$29 } from "./HoverCard-
|
|
14
|
+
import { t as _sfc_main$29 } from "./HoverCard-C3zQizyS.js";
|
|
15
15
|
import { t as _sfc_main$30 } from "./Spinner-B7xuy3ZA.js";
|
|
16
16
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toValue, unref, useId, useModel, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
|
|
17
17
|
import "../styles/layer.css";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ba as CheckboxInputProps, Ha as CheckboxValue, Ia as _default, La as CheckboxInputChangeAction, Ra as CheckboxInputChangeEvent, Va as CheckboxInputSlots, za as CheckboxInputEmits } from "../index-Djd6glIa.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-D0SSjziv.js";
|
|
2
2
|
export { _sfc_main as CheckboxInput };
|
|
@@ -70,7 +70,6 @@ const _hoisted_2 = { class: "astryx-checkbox-control" };
|
|
|
70
70
|
const _hoisted_3 = [
|
|
71
71
|
"id",
|
|
72
72
|
"checked",
|
|
73
|
-
"disabled",
|
|
74
73
|
"name",
|
|
75
74
|
"form",
|
|
76
75
|
"required",
|
|
@@ -247,14 +246,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
247
246
|
class: "astryx-checkbox-native",
|
|
248
247
|
type: "checkbox",
|
|
249
248
|
checked: unref(action).value.value === true,
|
|
250
|
-
disabled: __props.isDisabled && !showsDisabledMessage.value,
|
|
251
249
|
name: __props.isDisabled ? void 0 : __props.htmlName ?? inputAttrs().name,
|
|
252
|
-
form:
|
|
250
|
+
form: __props.isDisabled ? "" : inputAttrs().form,
|
|
253
251
|
required: __props.isRequired && !__props.isOptional || inputAttrs().required,
|
|
254
252
|
readonly: __props.isReadOnly || showsDisabledMessage.value,
|
|
255
253
|
"aria-labelledby": labelledBy(),
|
|
256
254
|
"aria-describedby": describedBy(),
|
|
257
|
-
"aria-disabled":
|
|
255
|
+
"aria-disabled": __props.isDisabled || void 0,
|
|
258
256
|
"aria-readonly": __props.isReadOnly || void 0,
|
|
259
257
|
"aria-busy": busy.value || void 0,
|
|
260
258
|
"aria-required": unref(ariaRequired),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Aa as _default$1, Fa as CheckboxListProps, Ma as CheckboxListEmits, Na as CheckboxListItemEmits, Pa as CheckboxListItemProps, ja as _default } from "../index-Djd6glIa.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-DnqRfWKg.js";
|
|
2
2
|
export { _sfc_main as CheckboxList, _sfc_main$1 as CheckboxListItem };
|
|
@@ -2,7 +2,7 @@ import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide
|
|
|
2
2
|
import { s as useAstryxMessages } from "./context-CVUee2tp.js";
|
|
3
3
|
import { t as _sfc_main$3 } from "./Tooltip-sAM8i1eO.js";
|
|
4
4
|
import { r as useItemDescriptionId } from "./Item-DWMIjN8n.js";
|
|
5
|
-
import { t as _sfc_main$4 } from "./CheckboxInput-
|
|
5
|
+
import { t as _sfc_main$4 } from "./CheckboxInput-D0SSjziv.js";
|
|
6
6
|
import { t as _sfc_main$5 } from "./Field-DRQuVVlH.js";
|
|
7
7
|
import { t as useFieldPartStyling } from "./fieldParts--SyRZVQG.js";
|
|
8
8
|
import { n as _sfc_main$6, t as _sfc_main$7 } from "./ListItem-Cq_nU1YV.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Da as ClickableCardEmits, Ea as _default, Oa as ClickableCardProps, ka as ClickableCardSlots } from "../index-Djd6glIa.js";
|
|
2
2
|
export { _default as ClickableCard, _default as default, type ClickableCardEmits, type ClickableCardProps, type ClickableCardSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as ClickableCard_default } from "../ClickableCard-
|
|
1
|
+
import { n as _sfc_main, t as ClickableCard_default } from "../ClickableCard-CGjr4c7g.js";
|
|
2
2
|
export { _sfc_main as ClickableCard, ClickableCard_default as default };
|
|
@@ -2,7 +2,7 @@ import { t as usePressFeedback } from "./usePressFeedback-BJCpjEpv.js";
|
|
|
2
2
|
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
3
3
|
import { i as useClickableContainer } from "./useClickableContainer-CdGp_Cev.js";
|
|
4
4
|
import { t as _sfc_main$2 } from "./Card-B-I24X9S.js";
|
|
5
|
-
import {
|
|
5
|
+
import { n as disabledInteractionProps } from "./disabledInteraction-CPzL8kVP.js";
|
|
6
6
|
import { computed, createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, useTemplateRef, withCtx } from "vue";
|
|
7
7
|
import "../styles/clickable-card.css";
|
|
8
8
|
//#region src/ClickableCard/ClickableCard.vue
|
package/dist/Code/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as SyntaxThemeInput, c as SyntaxTokenValue, i as SyntaxThemeDefinition, l as defineSyntaxTheme, n as SYNTAX_TOKEN_KEYS, o as SyntaxThemeTokens, r as SyntaxDiffTokenKey, s as SyntaxTokenKey, t as DIFF_SYNTAX_TOKEN_KEYS, u as githubDark } from "../syntaxTheme-CwVEcVDk.js";
|
|
2
|
-
import { A as _default, B as CodeSlots, C as applyHighlightRanges, D as parseFenceLanguage, E as diffLineKind, F as CodeBlockTokenizer, H as TokenLine, I as CodeColor, L as CodeHighlightMode, M as CodeBlockEmits, N as CodeBlockProps, O as splitDiffLines, P as CodeBlockSize, R as CodeProps, S as HIGHLIGHTED_TOKEN_TYPES, T as DiffLines, V as SyntaxToken, _ as oneDarkPro, a as tokenize, b as tokyoNight, c as allSyntaxPresets, d as darkSyntaxPresets, f as dracula, g as nord, h as monokai, i as flatTokensToLines, j as CodeBlockContainer, k as _default$1, l as catppuccinLatte, m as lightSyntaxPresets, n as useSyntaxTheme, o as tokenizeAsync, p as githubLight, r as SYNC_TOKENIZE_THRESHOLD, s as _default$2, t as UseSyntaxThemeReturn, u as catppuccinMocha, v as oneLight, w as DiffLineKind, x as tokyoNightLight, y as solarizedLight, z as CodeSize } from "../index-
|
|
2
|
+
import { A as _default, B as CodeSlots, C as applyHighlightRanges, D as parseFenceLanguage, E as diffLineKind, F as CodeBlockTokenizer, H as TokenLine, I as CodeColor, L as CodeHighlightMode, M as CodeBlockEmits, N as CodeBlockProps, O as splitDiffLines, P as CodeBlockSize, R as CodeProps, S as HIGHLIGHTED_TOKEN_TYPES, T as DiffLines, V as SyntaxToken, _ as oneDarkPro, a as tokenize, b as tokyoNight, c as allSyntaxPresets, d as darkSyntaxPresets, f as dracula, g as nord, h as monokai, i as flatTokensToLines, j as CodeBlockContainer, k as _default$1, l as catppuccinLatte, m as lightSyntaxPresets, n as useSyntaxTheme, o as tokenizeAsync, p as githubLight, r as SYNC_TOKENIZE_THRESHOLD, s as _default$2, t as UseSyntaxThemeReturn, u as catppuccinMocha, v as oneLight, w as DiffLineKind, x as tokyoNightLight, y as solarizedLight, z as CodeSize } from "../index-hCpxKePE.js";
|
|
3
3
|
import { n as UseClipboardReturn, r as useClipboard, t as UseClipboardOptions } from "../useClipboard-CU-kfqeJ.js";
|
|
4
4
|
export { _default as Code, _default$1 as CodeBlock, type CodeBlockContainer, type CodeBlockEmits, type CodeBlockProps, type CodeBlockSize, type CodeBlockTokenizer, type CodeColor, type CodeHighlightMode, type CodeProps, type CodeSize, type CodeSlots, type UseClipboardOptions as CopyToClipboardOptions, type UseClipboardReturn as CopyToClipboardReturn, DIFF_SYNTAX_TOKEN_KEYS, type DiffLineKind, type DiffLines, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, type SyntaxDiffTokenKey, _default$2 as SyntaxTheme, type SyntaxThemeDefinition, type SyntaxThemeInput, type SyntaxThemeTokens, type SyntaxToken, type SyntaxTokenKey, type SyntaxTokenValue, type TokenLine, type UseSyntaxThemeReturn, allSyntaxPresets, applyHighlightRanges, 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 };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _default$1, c as CollapsibleGroupSlots, d as CollapsibleGroupValue, f as _default, g as CollapsibleSlots, h as CollapsibleProps, i as useCollapsible, l as CollapsibleGroupDensity, m as CollapsibleEmits, n as UseCollapsibleOptions, o as CollapsibleGroupEmits, p as CollapsibleChevronPosition, r as UseCollapsibleReturn, s as CollapsibleGroupProps, t as CollapsibleConfig, u as CollapsibleGroupType } from "../index-
|
|
1
|
+
import { a as _default$1, c as CollapsibleGroupSlots, d as CollapsibleGroupValue, f as _default, g as CollapsibleSlots, h as CollapsibleProps, i as useCollapsible, l as CollapsibleGroupDensity, m as CollapsibleEmits, n as UseCollapsibleOptions, o as CollapsibleGroupEmits, p as CollapsibleChevronPosition, r as UseCollapsibleReturn, s as CollapsibleGroupProps, t as CollapsibleConfig, u as CollapsibleGroupType } from "../index-wY6dKz6c.js";
|
|
2
2
|
export { _default as Collapsible, type CollapsibleChevronPosition, type CollapsibleConfig, type CollapsibleEmits, _default$1 as CollapsibleGroup, type CollapsibleGroupDensity, type CollapsibleGroupEmits, type CollapsibleGroupProps, type CollapsibleGroupSlots, type CollapsibleGroupType, type CollapsibleGroupValue, type CollapsibleProps, type CollapsibleSlots, type UseCollapsibleOptions, type UseCollapsibleReturn, useCollapsible };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _sfc_main$3, i as _sfc_main$4, n as _sfc_main$6, o as _sfc_main$2, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main } from "../CommandPalette-
|
|
1
|
+
import { a as _sfc_main$3, i as _sfc_main$4, n as _sfc_main$6, o as _sfc_main$2, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main } from "../CommandPalette-B6lzcEE4.js";
|
|
2
2
|
export { _sfc_main as CommandPalette, _sfc_main$1 as CommandPaletteEmpty, _sfc_main$2 as CommandPaletteFooter, _sfc_main$3 as CommandPaletteGroup, _sfc_main$4 as CommandPaletteInput, _sfc_main$5 as CommandPaletteItem, _sfc_main$6 as CommandPaletteList };
|
|
@@ -4,7 +4,7 @@ import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
|
4
4
|
import { n as useAsyncSource } from "./useAsyncSource-Gk0VtE7_.js";
|
|
5
5
|
import { t as _sfc_main$8 } from "./Kbd-CV3LO2Ge.js";
|
|
6
6
|
import { s as useAstryxMessages } from "./context-CVUee2tp.js";
|
|
7
|
-
import { n as DIALOG_CONTEXT_KEY, t as _sfc_main$9 } from "./Dialog-
|
|
7
|
+
import { n as DIALOG_CONTEXT_KEY, t as _sfc_main$9 } from "./Dialog-BhxN-tp4.js";
|
|
8
8
|
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
9
9
|
import { t as _sfc_main$10 } from "./Spinner-B7xuy3ZA.js";
|
|
10
10
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onMounted, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ComplexSelectorProps, c as ComplexSelectorState, i as ComplexSelectorHandleRef, l as ComplexSelectorTriggerProps, n as ComplexSelectorEmits, o as ComplexSelectorSlotProps, r as ComplexSelectorHandle, s as ComplexSelectorSlots, t as _default, u as ComplexSelectorVariant } from "../index-
|
|
1
|
+
import { a as ComplexSelectorProps, c as ComplexSelectorState, i as ComplexSelectorHandleRef, l as ComplexSelectorTriggerProps, n as ComplexSelectorEmits, o as ComplexSelectorSlotProps, r as ComplexSelectorHandle, s as ComplexSelectorSlots, t as _default, u as ComplexSelectorVariant } from "../index-8px-LKw_.js";
|
|
2
2
|
export { _default as ComplexSelector, _default as default, type ComplexSelectorEmits, type ComplexSelectorHandle, type ComplexSelectorHandleRef, type ComplexSelectorProps, type ComplexSelectorSlotProps, type ComplexSelectorSlots, type ComplexSelectorState, type ComplexSelectorTriggerProps, type ComplexSelectorVariant };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as ComplexSelector_default } from "../ComplexSelector-
|
|
1
|
+
import { n as _sfc_main, t as ComplexSelector_default } from "../ComplexSelector-CABdPOyw.js";
|
|
2
2
|
export { _sfc_main as ComplexSelector, ComplexSelector_default as default };
|
|
@@ -5,6 +5,7 @@ import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
|
5
5
|
import { t as _sfc_main$2 } from "./Spinner-B7xuy3ZA.js";
|
|
6
6
|
import { t as _sfc_main$3 } from "./Field-DRQuVVlH.js";
|
|
7
7
|
import { t as useFieldPartStyling } from "./fieldParts--SyRZVQG.js";
|
|
8
|
+
import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
|
|
8
9
|
import { n as fieldStatusPlacement, t as normalizeTriggerVariant } from "./triggerVariant-BsL8jMHs.js";
|
|
9
10
|
import { t as _sfc_main$4 } from "./Popover-DsGCMcaU.js";
|
|
10
11
|
import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
@@ -18,8 +19,8 @@ const _hoisted_1 = [
|
|
|
18
19
|
"aria-busy",
|
|
19
20
|
"aria-expanded",
|
|
20
21
|
"aria-invalid",
|
|
21
|
-
"aria-
|
|
22
|
-
"
|
|
22
|
+
"aria-disabled",
|
|
23
|
+
"aria-required"
|
|
23
24
|
];
|
|
24
25
|
const _hoisted_2 = { class: "astryx-complex-selector-value" };
|
|
25
26
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -199,22 +200,33 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
199
200
|
}
|
|
200
201
|
}
|
|
201
202
|
/** 内置触发器:先让调用方有机会取消打开,再走自己的开关。 */
|
|
203
|
+
/**
|
|
204
|
+
* 禁用态用 `aria-disabled` 表达,触发器仍留在 Tab 序列里(spec:AST-085 FR1)。
|
|
205
|
+
* 原生 `disabled` 不会派发事件,换成 aria 之后要自己挡住指针和按键(FR2)。
|
|
206
|
+
*/
|
|
207
|
+
function blockedWhileDisabled(event) {
|
|
208
|
+
return consumeWhileDisabled(event, props.isDisabled);
|
|
209
|
+
}
|
|
202
210
|
function onBuiltinClick(event) {
|
|
211
|
+
if (blockedWhileDisabled(event)) return;
|
|
203
212
|
emit("click", event);
|
|
204
213
|
if (event.defaultPrevented) event.stopImmediatePropagation();
|
|
205
214
|
}
|
|
206
215
|
/** 内置触发器:内置处理完再透出,每个键都收到。 */
|
|
207
216
|
function onBuiltinKeyDown(event) {
|
|
217
|
+
if (blockedWhileDisabled(event)) return;
|
|
208
218
|
onTriggerKeyDown(event);
|
|
209
219
|
emit("keydown", event);
|
|
210
220
|
}
|
|
211
221
|
/** 自定义触发器:开关已经做完,点不能取消;内置处理取消的键不外透。 */
|
|
212
222
|
function onCustomClick(event) {
|
|
213
223
|
event.stopImmediatePropagation();
|
|
224
|
+
if (blockedWhileDisabled(event)) return;
|
|
214
225
|
toggle();
|
|
215
226
|
emit("click", event);
|
|
216
227
|
}
|
|
217
228
|
function onCustomKeyDown(event) {
|
|
229
|
+
if (blockedWhileDisabled(event)) return;
|
|
218
230
|
onTriggerKeyDown(event);
|
|
219
231
|
if (!event.defaultPrevented) emit("keydown", event);
|
|
220
232
|
}
|
|
@@ -225,6 +237,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
225
237
|
"id": triggerId,
|
|
226
238
|
"onClick": onCustomClick,
|
|
227
239
|
"onKeydown": onCustomKeyDown,
|
|
240
|
+
"aria-disabled": props.isDisabled ? "true" : void 0,
|
|
228
241
|
"aria-haspopup": "dialog",
|
|
229
242
|
"aria-expanded": isOpen.value,
|
|
230
243
|
"aria-controls": isOpen.value ? contentId : void 0,
|
|
@@ -349,9 +362,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
349
362
|
"aria-busy": isBusy.value || void 0,
|
|
350
363
|
"aria-expanded": isOpen.value,
|
|
351
364
|
"aria-invalid": __props.status?.type === "error" || void 0,
|
|
365
|
+
"aria-disabled": __props.isDisabled || void 0,
|
|
352
366
|
"aria-labelledby": labelId,
|
|
353
367
|
"aria-required": __props.isRequired || void 0,
|
|
354
|
-
disabled: __props.isDisabled,
|
|
355
368
|
type: "button",
|
|
356
369
|
onClick: onBuiltinClick,
|
|
357
370
|
onKeydown: onBuiltinKeyDown
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $i as
|
|
2
|
-
import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-
|
|
1
|
+
import { $i as ContextMenuCheckboxData, Ca as ContextMenuTriggerElement, Ji as _default$3, Ki as _default$7, Qi as useContextMenuSize, Sa as ContextMenuSubMenuSlots, Ta as ContextMenuWidth, Xi as _default, Yi as _default$2, Zi as useContextMenu, _a as ContextMenuSection, aa as ContextMenuGroupSlots, ba as ContextMenuSubMenuEmits, ca as ContextMenuItemIcon, da as ContextMenuItemTarget, ea as ContextMenuDividerData, fa as ContextMenuOption, ga as ContextMenuRadioOptionData, ha as ContextMenuRadioData, ia as ContextMenuGroupProps, la as ContextMenuItemProps, ma as ContextMenuProps, na as ContextMenuEmits, oa as ContextMenuItemData, pa as ContextMenuPresentation, qi as _default$4, ra as ContextMenuEntry, sa as ContextMenuItemEmits, ta as ContextMenuDividerProps, ua as ContextMenuItemSlots, va as ContextMenuSize, wa as ContextMenuVariant, xa as ContextMenuSubMenuProps, ya as ContextMenuSlots } from "../index-Djd6glIa.js";
|
|
2
|
+
import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-z0XU7pZS.js";
|
|
3
3
|
export { _default as ContextMenu, type ContextMenuCheckboxData, _default$1 as ContextMenuCheckboxItem, _default$2 as ContextMenuDivider, type ContextMenuDividerData, type ContextMenuDividerProps, type ContextMenuEmits, type ContextMenuEntry, _default$3 as ContextMenuGroup, type ContextMenuGroupProps, type ContextMenuGroupSlots, _default$4 as ContextMenuItem, type ContextMenuItemData, type ContextMenuItemEmits, type ContextMenuItemIcon, type ContextMenuItemProps, type ContextMenuItemSlots, type ContextMenuItemTarget, type ContextMenuOption, type ContextMenuPresentation, type ContextMenuProps, type ContextMenuRadioData, _default$5 as ContextMenuRadioGroup, _default$6 as ContextMenuRadioItem, type ContextMenuRadioOptionData, type ContextMenuSection, type ContextMenuSize, type ContextMenuSlots, _default$7 as ContextMenuSubMenu, type ContextMenuSubMenuEmits, type ContextMenuSubMenuProps, type ContextMenuSubMenuSlots, type ContextMenuTriggerElement, type ContextMenuVariant, type ContextMenuWidth, useContextMenu, useContextMenuSize };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { d as useContextMenuSize, i as _sfc_main$1, n as _sfc_main$6, r as _sfc_main$5, u as useContextMenu } from "../useMenuDrillIn-CjU_ZMhh.js";
|
|
2
|
-
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-
|
|
2
|
+
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-DMSJQdZ5.js";
|
|
3
3
|
export { _sfc_main as ContextMenu, _sfc_main$1 as ContextMenuCheckboxItem, _sfc_main$2 as ContextMenuDivider, _sfc_main$3 as ContextMenuGroup, _sfc_main$4 as ContextMenuItem, _sfc_main$5 as ContextMenuRadioGroup, _sfc_main$6 as ContextMenuRadioItem, _sfc_main$7 as ContextMenuSubMenu, useContextMenu, useContextMenuSize };
|
|
@@ -8,7 +8,7 @@ import { o as resetMenuPress, s as useLongPress, t as useMenuPress } from "./use
|
|
|
8
8
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
9
9
|
import { t as _sfc_main$7 } from "./LayerContentBoundary-CvsKxwwm.js";
|
|
10
10
|
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
11
|
-
import { t as _sfc_main$8 } from "./BottomSheet-
|
|
11
|
+
import { t as _sfc_main$8 } from "./BottomSheet-itRm1Yh5.js";
|
|
12
12
|
import { c as contextMenuContextKey, d as useContextMenuSize, i as _sfc_main$9, l as submenuAncestorOpenKey, n as _sfc_main$11, r as _sfc_main$10, t as useMenuDrillIn, u as useContextMenu } from "./useMenuDrillIn-CjU_ZMhh.js";
|
|
13
13
|
import { t as _sfc_main$12 } from "./Divider-mOZ6vIQw.js";
|
|
14
14
|
import { t as _sfc_main$13 } from "./Spinner-B7xuy3ZA.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bi as DateInputNativePicker, Gi as DateInputStatusType, Hi as DateInputProps, Ii as _default, Li as DateInputEmits, Ri as DateInputFormat, Ui as DateInputSlots, Vi as DateInputPresentation, Wi as DateInputStatus, zi as DateInputFormatName } from "../index-Djd6glIa.js";
|
|
2
2
|
export { _default as DateInput, type DateInputEmits, type DateInputFormat, type DateInputFormatName, type DateInputNativePicker, type DateInputPresentation, type DateInputProps, type DateInputSlots, type DateInputStatus, type DateInputStatusType };
|
package/dist/DateInput/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../DateInput-
|
|
1
|
+
import { t as _sfc_main } from "../DateInput-cVln1Xnn.js";
|
|
2
2
|
export { _sfc_main as DateInput };
|
|
@@ -10,7 +10,7 @@ import { o as useAstryxLocale, s as useAstryxMessages } from "./context-CVUee2tp
|
|
|
10
10
|
import { a as weekdayNames, i as standaloneShortWeekdayNames, r as formatCalendarMonth } from "./locale-D4DoSjrL.js";
|
|
11
11
|
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
12
12
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
13
|
-
import { t as _sfc_main$8 } from "./BottomSheet-
|
|
13
|
+
import { t as _sfc_main$8 } from "./BottomSheet-itRm1Yh5.js";
|
|
14
14
|
import { a as isOutsideCalendarBounds, c as toCalendarDate, i as isCalendarDateDisabled, l as weekStartIndex, n as resolveCalendarKey, o as formatWeekdayDate, r as buildCalendarWeeks, s as sameCalendarDay, t as _sfc_main$9 } from "./Calendar-Gx77cbI3.js";
|
|
15
15
|
import { t as _sfc_main$10 } from "./Spinner-B7xuy3ZA.js";
|
|
16
16
|
import { i as useAriaRequired } from "./context-Cfml4jaK.js";
|
|
@@ -767,7 +767,6 @@ const _hoisted_5 = [
|
|
|
767
767
|
"id",
|
|
768
768
|
"value",
|
|
769
769
|
"placeholder",
|
|
770
|
-
"disabled",
|
|
771
770
|
"readonly",
|
|
772
771
|
"aria-disabled",
|
|
773
772
|
"inputmode",
|
|
@@ -1013,7 +1012,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1013
1012
|
return parts.forwardedAttrs();
|
|
1014
1013
|
}
|
|
1015
1014
|
function onInput(event) {
|
|
1016
|
-
if (useSheet.value || event instanceof InputEvent && event.isComposing) return;
|
|
1015
|
+
if (useSheet.value || locked.value || event instanceof InputEvent && event.isComposing) return;
|
|
1017
1016
|
const target = event.target;
|
|
1018
1017
|
const value = target.value.trim();
|
|
1019
1018
|
inputValue.value = target.value;
|
|
@@ -1216,9 +1215,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1216
1215
|
role: "combobox",
|
|
1217
1216
|
value: inputValue.value,
|
|
1218
1217
|
placeholder: resolvedPlaceholder.value,
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
"aria-disabled": showsDisabledMessage.value || void 0,
|
|
1218
|
+
readonly: useSheet.value || locked.value,
|
|
1219
|
+
"aria-disabled": locked.value || void 0,
|
|
1222
1220
|
inputmode: useSheet.value ? "none" : void 0,
|
|
1223
1221
|
"aria-label": showsField.value ? void 0 : props.label,
|
|
1224
1222
|
"aria-labelledby": showsField.value ? field?.labelId : void 0,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fi as DateRangePreset, Mi as DateRange, Ni as DateRangeInputEmits, Pi as DateRangeInputProps, ji as _default } from "../index-Djd6glIa.js";
|
|
2
2
|
export { type DateRange, _default as DateRangeInput, type DateRangeInputEmits, type DateRangeInputProps, type DateRangePreset };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ai as DateTimeInputSize, Di as _default, Oi as DateTimeInputEmits, ki as DateTimeInputProps } from "../index-Djd6glIa.js";
|
|
2
2
|
export { _default as DateTimeInput, type DateTimeInputEmits, type DateTimeInputProps, type DateTimeInputSize };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../DateTimeInput-
|
|
1
|
+
import { t as _sfc_main } from "../DateTimeInput-CViJJt8m.js";
|
|
2
2
|
export { _sfc_main as DateTimeInput };
|
|
@@ -6,13 +6,13 @@ import { o as useAstryxLocale, s as useAstryxMessages } from "./context-CVUee2tp
|
|
|
6
6
|
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
7
7
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
8
8
|
import { a as parseISOTime, n as formatISOTime, t as formatDisplayTime } from "./useTimeValue-BJd0xBhG.js";
|
|
9
|
-
import { t as _sfc_main$5 } from "./BottomSheet-
|
|
9
|
+
import { t as _sfc_main$5 } from "./BottomSheet-itRm1Yh5.js";
|
|
10
10
|
import { t as _sfc_main$6 } from "./Spinner-B7xuy3ZA.js";
|
|
11
11
|
import { t as _sfc_main$7 } from "./Field-DRQuVVlH.js";
|
|
12
12
|
import { t as useFieldPartStyling } from "./fieldParts--SyRZVQG.js";
|
|
13
13
|
import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
|
|
14
|
-
import { n as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-
|
|
15
|
-
import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-
|
|
14
|
+
import { n as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-cVln1Xnn.js";
|
|
15
|
+
import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-BnXwqr_O.js";
|
|
16
16
|
import { r as effectivePickerPresentation, s as resolvePickerPresentation } from "./inputPresentation-BOyHkCDr.js";
|
|
17
17
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, ref, toDisplayString, unref, useAttrs, useId, useModel, watch, withCtx } from "vue";
|
|
18
18
|
import "../styles/date-time-input.css";
|
package/dist/Dialog/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _default, c as DialogPadding, d as DialogPurpose, f as DialogVariant, i as _default$1, l as DialogPosition, n as ImperativeDialogReturn, o as DialogBlockPosition, r as useImperativeDialog, s as DialogHeaderProps, t as ImperativeDialogOptions, u as DialogProps } from "../index-
|
|
1
|
+
import { a as _default, c as DialogPadding, d as DialogPurpose, f as DialogVariant, i as _default$1, l as DialogPosition, n as ImperativeDialogReturn, o as DialogBlockPosition, r as useImperativeDialog, s as DialogHeaderProps, t as ImperativeDialogOptions, u as DialogProps } from "../index-qayqGnJT.js";
|
|
2
2
|
export { _default as Dialog, type DialogBlockPosition, _default$1 as DialogHeader, type DialogHeaderProps, type DialogPadding, type DialogPosition, type DialogProps, type DialogPurpose, type DialogVariant, type ImperativeDialogOptions, type ImperativeDialogReturn, useImperativeDialog };
|
package/dist/Dialog/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Dialog-
|
|
2
|
-
import {
|
|
1
|
+
import { t as _sfc_main } from "../Dialog-BhxN-tp4.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "../DialogHeader-B-Lz4rB5.js";
|
|
3
|
+
import { t as useImperativeDialog } from "../Dialog-Bn4eUNiy.js";
|
|
3
4
|
export { _sfc_main as Dialog, _sfc_main$1 as DialogHeader, useImperativeDialog };
|
|
@@ -191,6 +191,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
191
191
|
unlockScroll();
|
|
192
192
|
}
|
|
193
193
|
function onCancel(event) {
|
|
194
|
+
if (event.target !== dialogRef.value) return;
|
|
194
195
|
event.preventDefault();
|
|
195
196
|
if (props.purpose !== "required") emit("openChange", false);
|
|
196
197
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { t as _sfc_main } from "./Dialog-BhxN-tp4.js";
|
|
2
|
+
import { defineComponent, h, readonly, ref, shallowRef } from "vue";
|
|
3
|
+
//#region src/Dialog/useImperativeDialog.ts
|
|
4
|
+
/**
|
|
5
|
+
* 无需管理 `isOpen` 状态即可打开对话框。
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```
|
|
9
|
+
* const dialog = useImperativeDialog()
|
|
10
|
+
* // <button @click="dialog.show(() => h('p', 'Hello'))">Open</button>
|
|
11
|
+
* // <dialog.Host />
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
function useImperativeDialog(defaultOptions = {}) {
|
|
15
|
+
const isOpen = ref(false);
|
|
16
|
+
const content = shallowRef(() => null);
|
|
17
|
+
const options = shallowRef(defaultOptions);
|
|
18
|
+
function show(nextContent, nextOptions) {
|
|
19
|
+
content.value = nextContent;
|
|
20
|
+
if (nextOptions) options.value = {
|
|
21
|
+
...options.value,
|
|
22
|
+
...nextOptions
|
|
23
|
+
};
|
|
24
|
+
isOpen.value = true;
|
|
25
|
+
}
|
|
26
|
+
function hide() {
|
|
27
|
+
isOpen.value = false;
|
|
28
|
+
}
|
|
29
|
+
const Host = defineComponent({
|
|
30
|
+
name: "AstryxImperativeDialogHost",
|
|
31
|
+
setup() {
|
|
32
|
+
return () => h(_sfc_main, {
|
|
33
|
+
...options.value,
|
|
34
|
+
isOpen: isOpen.value,
|
|
35
|
+
onOpenChange: (open) => {
|
|
36
|
+
if (!open) isOpen.value = false;
|
|
37
|
+
}
|
|
38
|
+
}, { default: () => content.value() });
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
return {
|
|
42
|
+
show,
|
|
43
|
+
hide,
|
|
44
|
+
isOpen: readonly(isOpen),
|
|
45
|
+
Host
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { useImperativeDialog as t };
|