@astryx-vue/core 0.36.1 → 0.37.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-C4oB89RV.js → AlertDialog-DwITRN1M.js} +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-CU12SF6s.js → AppShell-ClZ2Y8cu.js} +2 -2
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-DCLOhzZP.js → BottomSheet-CDxV1Rkx.js} +3 -3
- package/dist/BottomSheet-Cr6FacYP.js +1853 -0
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-BfjWIfgO.js → Breadcrumbs-DaxgM0-F.js} +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-f9HzZe5y.js → Chat-BRtDKajd.js} +230 -12
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-Dxp-BWv-.js → Collapsible-DfVihLCR.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-PyPfsPLY.js → CommandPalette-CWaKVNGZ.js} +2 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-B07QdP_p.js → ComplexSelector-D2QRdM57.js} +1 -1
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-B6NH9NBS.js → ContextMenu-D-G53u7B.js} +4 -4
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-TrPijW9a.js → DateInput-BHSp4fZS.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-bKPzsoHA.js → DateRangeInput-DP1QWK_6.js} +1 -1
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-5jZPqFu2.js → DateTimeInput-Bgx9lgWb.js} +3 -3
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-CDAicnpK.js → Dialog-DCKT1dWC.js} +2 -1
- package/dist/{Dialog-dm_qZ9NI.js → Dialog-DRQrtKHT.js} +5 -82
- package/dist/{DialogHeader-CQfcOIfF.js → DialogHeader-C3Mc580J.js} +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/Drawer-CnFTUjln.js +422 -0
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-C-SLsVSO.js → DropdownMenu-DU_Rw88D.js} +4 -4
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-CpFgVnlQ.js → Layout-BDS2ZN6C.js} +1 -1
- package/dist/{LayoutPanel-Dhm0Hubb.js → LayoutPanel-D56PBM4I.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-BSzyDGkK.js → Lightbox-CnTXrgq6.js} +2 -2
- package/dist/Link/index.d.ts +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-C1_IinAo.js → MobileNavToggle-CjlgmcSf.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-DbYO8V7N.js → MoreMenu-CGTbwTyw.js} +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CthCkW-w.js → MultiSelector-DUQMNBoZ.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenu-g8ZVhLMG.js → NavMenu-BflnhBtX.js} +1 -1
- package/dist/{NavMenuItem-DJg9jfHm.js → NavMenuItem-CrFrczWe.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-BM52uE72.js → NumberInput-vWUcgJU8.js} +2 -0
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-nW6GCEsY.js → OverflowList-D9Ua6e3-.js} +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-DFZivDZZ.js → Pagination-DBikmHyn.js} +3 -3
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-IvZGq1LC.js → Popover-CTCWhA_K.js} +3 -3
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CQdyB8_N.js → PowerSearch-CTNFHNnr.js} +10 -10
- 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-icOfE3ja.js → Selector-BvxQXUYr.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-ZZ5zCQz0.js → SideNav-D8jQrwtL.js} +1 -1
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-C-HBxmkc.js → TabList-DjRutwar.js} +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-aMqVf_iH.js → Table-3GiSElIS.js} +8 -8
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-YJtL9Fi6.js → TextArea-BtBC4IoD.js} +2 -0
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-CuPxOApN.js → TextInput-cotkU2bC.js} +2 -0
- package/dist/{TimeField-DNxPI2cM.js → TimeField-BYuUKUNq.js} +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-PJdyNX0T.js → TimeInput-Bqo_oHMl.js} +1 -1
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-W6aKxXlF.js → Toast-BSay0eZw.js} +14 -6
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-CdyoUaoZ.js → Tokenizer-D-wBxbBE.js} +3 -3
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CxAm5bN5.js → TopNav-D7jH9iwk.js} +2 -2
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/{accessibleName-CN1vKvS_.js → accessibleName-CHrrgpAy.js} +1 -1
- package/dist/composables/index.js +4 -4
- package/dist/{focusLeaving-DMkbxFkF.js → focusLeaving-BbZ69DYV.js} +1 -1
- package/dist/{focusReturn-DfZS7TCp.js → focusReturn-BeSRm0xD.js} +34 -3
- package/dist/{index-ZXrvTM3A.d.ts → index-0RIgvtdm.d.ts} +2 -2
- package/dist/{index-tdOyqA_U.d.ts → index-Ak1b0V24.d.ts} +1 -1
- package/dist/{index-DYabo8TI.d.ts → index-B44fLswd.d.ts} +2 -2
- package/dist/{index-B27k2e77.d.ts → index-B7Rd2RuL.d.ts} +44 -32
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-x7g2WHHx.d.ts → index-BhpRhww0.d.ts} +3 -3
- package/dist/{index-rr6Rns7h.d.ts → index-CGRtGORf.d.ts} +1 -1
- package/dist/{index-C4S65SAW.d.ts → index-CKnr0JlT.d.ts} +1 -1
- package/dist/{index-CdvmnNMH.d.ts → index-COgrQZIL.d.ts} +1 -1
- package/dist/{index-CBOv5j3c.d.ts → index-CbA8rR_b.d.ts} +1 -1
- package/dist/{index-JE1HrzdJ.d.ts → index-DVX2jlTQ.d.ts} +2 -2
- package/dist/{index-DofC9Rll.d.ts → index-Dk50Zh3F.d.ts} +2 -2
- package/dist/{index-BfFpUr1B.d.ts → index-ZKBj_1nu.d.ts} +1 -1
- package/dist/{index-BufuCsTx.d.ts → index-hwP1oWCA.d.ts} +2 -2
- package/dist/{index-C3JmGujU.d.ts → index-mK1ICsVg.d.ts} +1 -1
- package/dist/index.d.ts +17 -17
- package/dist/index.js +46 -46
- package/dist/{layerFocusReturn-CEvrMbxH.js → layerFocusReturn-uixUCSc8.js} +1 -1
- package/dist/{lazyBottomSheet-DlrpPOl8.js → lazyBottomSheet-C6Rw8yoX.js} +1 -1
- package/dist/{modalOutlet-Drr9a16b.js → modalOutlet-BwR9AAlm.js} +16 -1
- package/dist/position-DwHfneha.js +79 -0
- package/dist/rideKeyboard-BCzVooOd.js +1635 -0
- package/dist/sheetTransition-BEm1GCv1.js +76 -0
- package/dist/{useChatStreamScroll-DWhnCSP1.js → useChatStreamScroll-3mJvbNtI.js} +30 -4
- package/dist/{useFocusTrap-DcjriBe1.js → useFocusTrap-Bj9GskLh.js} +1 -1
- package/dist/{useMenuPress-zOinmIFS.js → useMenuPress-kjmot8Bn.js} +1 -1
- package/dist/useMobileKeyboard-BDPV51xl.js +806 -0
- package/dist/{useRestoreFocus-DS7uQWok.js → useRestoreFocus-m3rsqE4d.js} +1 -1
- package/package.json +1 -1
- package/styles/chat.css +6 -0
- package/styles/drawer.css +136 -44
- package/dist/BottomSheet-Chr9yCIL.js +0 -4353
- package/dist/Drawer-DKSqpR2p.js +0 -137
package/dist/Drawer-DKSqpR2p.js
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { t as _sfc_main$2 } from "./Dialog-dm_qZ9NI.js";
|
|
2
|
-
import { t as _sfc_main$3 } from "./DialogHeader-CQfcOIfF.js";
|
|
3
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, unref, useAttrs, useSlots, withCtx } from "vue";
|
|
4
|
-
import "../styles/drawer.css";
|
|
5
|
-
//#region src/Drawer/Drawer.vue
|
|
6
|
-
const _hoisted_1 = { class: "astryx-drawer-body" };
|
|
7
|
-
const _hoisted_2 = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "astryx-drawer-footer"
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* 贴边的模态面板。模态、焦点陷阱、焦点归还、滚动锁和 `purpose` 的关闭规则
|
|
13
|
-
* 都由 `Dialog` 负责,这里只决定贴哪一边和多大。
|
|
14
|
-
*/
|
|
15
|
-
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
16
|
-
name: "AstryxDrawer",
|
|
17
|
-
inheritAttrs: false,
|
|
18
|
-
__name: "Drawer",
|
|
19
|
-
props: {
|
|
20
|
-
isOpen: { type: Boolean },
|
|
21
|
-
label: {},
|
|
22
|
-
placement: { default: "end" },
|
|
23
|
-
width: { default: 400 },
|
|
24
|
-
padding: { default: void 0 },
|
|
25
|
-
purpose: { default: "info" }
|
|
26
|
-
},
|
|
27
|
-
emits: ["openChange"],
|
|
28
|
-
setup(__props, { emit: __emit }) {
|
|
29
|
-
const props = __props;
|
|
30
|
-
const emit = __emit;
|
|
31
|
-
const attrs = useAttrs();
|
|
32
|
-
const position = computed(() => props.placement === "start" ? {
|
|
33
|
-
start: 0,
|
|
34
|
-
top: 0,
|
|
35
|
-
bottom: 0
|
|
36
|
-
} : {
|
|
37
|
-
end: 0,
|
|
38
|
-
top: 0,
|
|
39
|
-
bottom: 0
|
|
40
|
-
});
|
|
41
|
-
const rootAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([name]) => name !== "class" && name !== "style")));
|
|
42
|
-
return (_ctx, _cache) => {
|
|
43
|
-
return openBlock(), createBlock(_sfc_main$2, mergeProps(rootAttrs.value, {
|
|
44
|
-
"aria-label": __props.label,
|
|
45
|
-
class: ["astryx-drawer", [`astryx-drawer--${__props.placement}`, unref(attrs).class]],
|
|
46
|
-
"is-open": __props.isOpen,
|
|
47
|
-
"max-height": "100dvh",
|
|
48
|
-
padding: __props.padding,
|
|
49
|
-
position: position.value,
|
|
50
|
-
purpose: __props.purpose,
|
|
51
|
-
style: unref(attrs).style,
|
|
52
|
-
width: __props.width,
|
|
53
|
-
onOpenChange: _cache[0] || (_cache[0] = ($event) => emit("openChange", $event))
|
|
54
|
-
}), {
|
|
55
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]), _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "footer")])) : createCommentVNode("v-if", true)]),
|
|
56
|
-
_: 3
|
|
57
|
-
}, 16, [
|
|
58
|
-
"aria-label",
|
|
59
|
-
"class",
|
|
60
|
-
"is-open",
|
|
61
|
-
"padding",
|
|
62
|
-
"position",
|
|
63
|
-
"purpose",
|
|
64
|
-
"style",
|
|
65
|
-
"width"
|
|
66
|
-
]);
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
//#endregion
|
|
71
|
-
//#region src/Drawer/DrawerHeader.vue
|
|
72
|
-
/**
|
|
73
|
-
* 抽屉的标题行。布局、标题语义和关闭按钮的补偿边都复用 `DialogHeader`,
|
|
74
|
-
* 这里只把关闭按钮的默认值和事件名换成抽屉的说法。
|
|
75
|
-
*/
|
|
76
|
-
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
77
|
-
name: "AstryxDrawerHeader",
|
|
78
|
-
__name: "DrawerHeader",
|
|
79
|
-
props: {
|
|
80
|
-
title: {},
|
|
81
|
-
subtitle: { default: void 0 },
|
|
82
|
-
hasCloseButton: {
|
|
83
|
-
type: Boolean,
|
|
84
|
-
default: void 0
|
|
85
|
-
},
|
|
86
|
-
closeButtonLabel: { default: void 0 }
|
|
87
|
-
},
|
|
88
|
-
emits: ["openChange"],
|
|
89
|
-
setup(__props, { emit: __emit }) {
|
|
90
|
-
const props = __props;
|
|
91
|
-
const emit = __emit;
|
|
92
|
-
const instance = getCurrentInstance();
|
|
93
|
-
const slots = useSlots();
|
|
94
|
-
/**
|
|
95
|
-
* 关闭按钮只在有人接关闭请求时出现:没人处理的按钮点了什么也不会发生。
|
|
96
|
-
* 显式传 `hasCloseButton` 时以传入值为准。监听函数在渲染时才看得到,所以放在 computed 里读。
|
|
97
|
-
*/
|
|
98
|
-
const showClose = computed(() => props.hasCloseButton ?? instance?.vnode?.props?.onOpenChange != null);
|
|
99
|
-
return (_ctx, _cache) => {
|
|
100
|
-
return openBlock(), createBlock(_sfc_main$3, {
|
|
101
|
-
"close-button-label": __props.closeButtonLabel,
|
|
102
|
-
"has-close-button": showClose.value,
|
|
103
|
-
subtitle: __props.subtitle,
|
|
104
|
-
title: __props.title,
|
|
105
|
-
onOpenChange: _cache[0] || (_cache[0] = ($event) => emit("openChange", false))
|
|
106
|
-
}, createSlots({ _: 2 }, [
|
|
107
|
-
unref(slots).title ? {
|
|
108
|
-
name: "title",
|
|
109
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "title")]),
|
|
110
|
-
key: "0"
|
|
111
|
-
} : void 0,
|
|
112
|
-
unref(slots).subtitle ? {
|
|
113
|
-
name: "subtitle",
|
|
114
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "subtitle")]),
|
|
115
|
-
key: "1"
|
|
116
|
-
} : void 0,
|
|
117
|
-
unref(slots).startContent ? {
|
|
118
|
-
name: "startContent",
|
|
119
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "startContent")]),
|
|
120
|
-
key: "2"
|
|
121
|
-
} : void 0,
|
|
122
|
-
unref(slots).endContent ? {
|
|
123
|
-
name: "endContent",
|
|
124
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "endContent")]),
|
|
125
|
-
key: "3"
|
|
126
|
-
} : void 0
|
|
127
|
-
]), 1032, [
|
|
128
|
-
"close-button-label",
|
|
129
|
-
"has-close-button",
|
|
130
|
-
"subtitle",
|
|
131
|
-
"title"
|
|
132
|
-
]);
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
//#endregion
|
|
137
|
-
export { _sfc_main$1 as n, _sfc_main as t };
|