@astryx-vue/core 0.1.3 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-BylcA4vV.js → AlertDialog-ovx4cBjM.js} +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-b0PWt9Fz.js → AppShell-1wNIEtK_.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar-jmHInHwj.js +244 -0
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CZcgAMjM.js → AvatarGroup-QyzSrpYA.js} +8 -7
- package/dist/Badge/index.d.ts +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge-CjDQPF5g.js +30 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-C3YZFQ9w.js → Breadcrumbs-C97HmjkC.js} +45 -11
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +1 -1
- package/dist/Calendar-DqC3EDN1.js +352 -0
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +2 -0
- package/dist/Carousel/index.js +2 -0
- package/dist/Carousel-BGUnskjo.js +363 -0
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-C1aWl5V3.js → Chat-DCjXRiOF.js} +8 -8
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C1X0Rde8.js → Citation-DunoAqVH.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +3 -2
- package/dist/Code/index.js +4 -2
- package/dist/Code-yb_KOFtJ.js +299 -0
- package/dist/{CodeBlock-BQdooQy2.js → CodeBlock-CAF-VJnh.js} +8 -2
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BS9ctCQV.js → Collapsible-DvMiYJp7.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-u5h_E05P.js → CommandPalette-xfm9ldUI.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BHmGWml0.js → ComplexSelector-B6lBTRhP.js} +2 -2
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-dA-ppaRQ.js → ContextMenu-DUkED3Z3.js} +101 -63
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-Crcg-CCj.js +376 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-fmQlr_A7.js → DateRangeInput-e9KSxBBK.js} +2 -2
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-Bs1JmcIp.js → DateTimeInput-fSOfuLex.js} +5 -3
- package/dist/DropdownMenu/index.d.ts +3 -2
- package/dist/DropdownMenu/index.js +3 -2
- package/dist/{DropdownMenu-B0gogrvG.js → DropdownMenu-8G0B1UND.js} +63 -16
- package/dist/DropdownMenu-XvW4BJob.js +164 -0
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-Bhlqgsg4.js → EmptyState-CUJdTYKV.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CmAfOpkA.js → FileInput-D-fchyQH.js} +2 -2
- package/dist/Icon/index.d.ts +4 -0
- package/dist/Icon/index.js +3 -0
- package/dist/Icon/plugin.d.ts +45 -0
- package/dist/Icon/plugin.js +177 -0
- package/dist/Icon-Bku25g_K.js +193 -0
- package/dist/Lightbox/index.d.ts +2 -0
- package/dist/Lightbox/index.js +2 -0
- package/dist/Lightbox-uuVGgHxW.js +384 -0
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link-DqdQZ37C.js +141 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-CwtLr3f_.js → Markdown-DLICa3db.js} +3 -3
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-DlXQTLog.js → MetadataList-h492rqEN.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-CgQamG6E.js → MobileNavToggle-BMj3Wtuq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BXL6Dqsu.js → MoreMenu-DkYi5az5.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DT8ZccMI.js → MultiSelector-C2IS-EaU.js} +2 -2
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +1 -1
- package/dist/{NavMenuItem-mzNQESpB.js → NavMenuItem-B-k7olt5.js} +2 -1
- package/dist/NumberInput/index.d.ts +2 -2
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-CjfAsFwj.js +210 -0
- package/dist/Outline/index.d.ts +2 -0
- package/dist/Outline/index.js +2 -0
- package/dist/Outline-BTmrtvXR.js +325 -0
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-zXg3g6fy.js → OverflowList-CRE8BE7V.js} +2 -2
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +2 -2
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DXfgMUKJ.js → Pagination-BpGXPmc7.js} +76 -22
- package/dist/Popover/index.d.ts +1 -1
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-ChDp-7oe.js → ProgressBar-DO9Chic6.js} +31 -11
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-BuGKvU9I.js → Resizable-CE8XQDL2.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 +2 -2
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-DkJOLZSR.js +468 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-Cdrigq2A.js → SideNav-DcDWBnXJ.js} +17 -17
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DxmLfh8O.js → Stepper-DZKaqEoz.js} +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-C411uNQU.js → TabList-hm06QPiW.js} +10 -3
- package/dist/Table/index.js +1 -1
- package/dist/{Table-7qRmlIQd.js → Table-DwehtMap.js} +4 -4
- package/dist/Text/index.d.ts +3 -2
- package/dist/Text/index.js +1 -1
- package/dist/{Text-CKd7e3gK.js → Text-BHVghsWo.js} +12 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-Cv9UVbzS.js → TextArea-CPwSytdO.js} +12 -6
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +2 -0
- package/dist/Theme/index.js +2 -0
- package/dist/Theme-BuUiiJNr.js +429 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BWVzLLyI.js → Thumbnail-CAOYds8t.js} +11 -11
- package/dist/{TimeField-l3QzU6vC.js → TimeField-BGbxCoKU.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-OkgX-xbQ.js → TimeInput-DJP3l4ZS.js} +1 -1
- package/dist/Timer/index.d.ts +2 -0
- package/dist/Timer/index.js +2 -0
- package/dist/Timer-B7GV6hqd.js +134 -0
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +2 -1
- package/dist/{Timestamp-DUoP9ari.js → Timestamp-BzRp8uWc.js} +5 -122
- package/dist/Toast/index.d.ts +2 -2
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BKXPvEMp.js → Toast-C2ML-bmi.js} +37 -7
- 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-C4KD0fZD.js → Token-CjocuhzE.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-BA8sTMPZ.js → Tokenizer-mYES5SPM.js} +2 -2
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CZokS7E_.js → TopNav-C2t6JkZb.js} +4 -4
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CIbAGOMf.js → TreeList-THJ0KamE.js} +3 -3
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-DIw-K4aa.js → Typeahead-D7VnvRpK.js} +2 -2
- package/dist/{context-D6ECRdc5.js → context-DzcK4T_C.js} +58 -2
- package/dist/context-O2Vb8cJl.js +57 -0
- package/dist/formatInstant-BDWUIxS7.js +119 -0
- package/dist/index-1AZ4KZhg.d.ts +96 -0
- package/dist/index-3p2BDVHq.d.ts +31 -0
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-FEy8qFSD.d.ts → index-BHqRH7QW.d.ts} +2 -2
- package/dist/{index-CTolyeii.d.ts → index-BLOEjvaM.d.ts} +16 -2
- package/dist/index-BMrggCw-.d.ts +52 -0
- package/dist/{index-z4p2k9VR.d.ts → index-Bgv4ZmBl.d.ts} +20 -2
- package/dist/{index-BoRIw-bP.d.ts → index-Bt7ewoz2.d.ts} +32 -2
- package/dist/{index-CjtAH60j.d.ts → index-Bu0Zd1uw.d.ts} +1 -1
- package/dist/{index-uQrLBZfF.d.ts → index-Bu3oXIIS.d.ts} +24 -0
- package/dist/{index-CX97hlld.d.ts → index-CBym0hSq.d.ts} +2 -19
- package/dist/index-CJlBAXwj.d.ts +100 -0
- package/dist/{index-DT9S92sh.d.ts → index-CNjbOgty.d.ts} +15 -0
- package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
- package/dist/index-CRizexSC.d.ts +147 -0
- package/dist/{index-DYChvBOM.d.ts → index-Clmz00IK.d.ts} +31 -0
- package/dist/index-Cm_TiLXU.d.ts +22 -0
- package/dist/index-Cn-sSds-.d.ts +68 -0
- package/dist/index-CsVS37na.d.ts +81 -0
- package/dist/{index-DRmb-oUa.d.ts → index-CuFLztiI.d.ts} +6 -1
- package/dist/{index-CT8KEpec.d.ts → index-D0TlUOtG.d.ts} +1 -1
- package/dist/{index-fa72tWIU.d.ts → index-D2bSSSBP.d.ts} +1 -1
- package/dist/{index-2u4l3wq8.d.ts → index-DAiGhkNZ.d.ts} +15 -2
- package/dist/{index-DGNqi2za.d.ts → index-DQAnGHu7.d.ts} +5 -5
- package/dist/{index-BfOtLyNH.d.ts → index-D_nYxnNv.d.ts} +1 -1
- package/dist/{index-Df2YvC8o.d.ts → index-DeOftUMq.d.ts} +191 -75
- package/dist/{index-DXDGk38y.d.ts → index-Dg3ZmwEg.d.ts} +11 -0
- package/dist/{index-BiMGXtD-.d.ts → index-DimuSES0.d.ts} +14 -1
- package/dist/{index-C_2Z65Rp.d.ts → index-DnEh-HA0.d.ts} +1 -1
- package/dist/{index-D-ZuubCK.d.ts → index-DnSrjbjP.d.ts} +1 -1
- package/dist/{index-mQ6EPmaG.d.ts → index-DsyKhauk.d.ts} +78 -9
- package/dist/{index-C6RecznD.d.ts → index-I4J7gwa1.d.ts} +51 -9
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-B4OOtNP8.d.ts → index-Z_onS2lR.d.ts} +1 -1
- package/dist/{index-CVn0GBdB.d.ts → index-cG1E0U2s.d.ts} +1 -1
- package/dist/{index-DEeJowZf.d.ts → index-cGagYM1g.d.ts} +15 -2
- package/dist/{index-Ck8qy6Rf.d.ts → index-c_TaW8mM.d.ts} +24 -2
- package/dist/{index-Bqb_Fyju.d.ts → index-jdjcb3Js.d.ts} +2 -2
- package/dist/index.d.ts +78 -68
- package/dist/index.js +107 -96
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/registry-B1ObuP--.d.ts +45 -0
- package/dist/registry-C7OZb0PJ.js +135 -0
- package/dist/syntaxTheme-Bcs1YMF7.d.ts +38 -0
- package/dist/syntaxTheme-ClpWALZX.js +75 -0
- package/dist/types-BKcxXW--.d.ts +114 -0
- package/dist/types-Bt-lSgYX.d.ts +65 -0
- package/dist/{index-B8MbfMwV.d.ts → types-DDAAT1Xd.d.ts} +36 -82
- package/package.json +30 -1
- package/styles/avatar.css +14 -0
- package/styles/badge.css +8 -0
- package/styles/breadcrumbs.css +6 -1
- package/styles/button.css +13 -0
- package/styles/calendar.css +16 -0
- package/styles/card.css +2 -0
- package/styles/carousel.css +120 -0
- package/styles/chat.css +5 -2
- package/styles/dropdown-menu.css +11 -0
- package/styles/heading.css +6 -2
- package/styles/icon.css +38 -8
- package/styles/lightbox.css +144 -0
- package/styles/link.css +5 -0
- package/styles/media-theme.css +51 -0
- package/styles/number-input.css +22 -0
- package/styles/outline.css +124 -0
- package/styles/pagination.css +45 -1
- package/styles/progress-bar.css +4 -0
- package/styles/selector.css +58 -0
- package/styles/tab-list.css +15 -0
- package/styles/text-area.css +17 -0
- package/styles/text-input.css +5 -0
- package/styles/text.css +63 -14
- package/styles/theme.css +29 -0
- package/styles/timer.css +34 -0
- package/styles/toast.css +7 -0
- package/styles/toolbar.css +11 -0
- package/styles.css +6 -0
- package/dist/Avatar-5s3HSrtN.js +0 -136
- package/dist/Badge-Ba0EwsTj.js +0 -19
- package/dist/Calendar-CYhGDT6f.js +0 -277
- package/dist/DateInput-D2ErjXYO.js +0 -250
- package/dist/Icon-5MdZQ18k.js +0 -86
- package/dist/Link-CprjOuTI.js +0 -92
- package/dist/NumberInput-DspJO6z6.js +0 -147
- package/dist/Selector-DlZpQh42.js +0 -325
- package/dist/index-BzqRns96.d.ts +0 -64
- package/dist/index-ZJyk8RtQ.d.ts +0 -68
- package/dist/{CheckboxList-EsIEXjK_.js → CheckboxList-BbCPiend.js} +1 -1
- package/dist/{index-4FM5lQdV.d.ts → index-BUXNRekN.d.ts} +1 -1
|
@@ -13,6 +13,22 @@ const calendarMessages = {
|
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
|
+
//#region src/locale/messages/carousel.ts
|
|
17
|
+
const carouselMessages = {
|
|
18
|
+
"en": {
|
|
19
|
+
label: "Carousel",
|
|
20
|
+
scrollLeft: "Scroll left",
|
|
21
|
+
scrollRight: "Scroll right",
|
|
22
|
+
slide: (current, total) => `Slide ${current} of ${total}`
|
|
23
|
+
},
|
|
24
|
+
"zh-CN": {
|
|
25
|
+
label: "轮播",
|
|
26
|
+
scrollLeft: "向左滚动",
|
|
27
|
+
scrollRight: "向右滚动",
|
|
28
|
+
slide: (current, total) => `第 ${current} 张幻灯片,共 ${total} 张`
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
16
32
|
//#region src/locale/messages/chat.ts
|
|
17
33
|
const chatMessages = {
|
|
18
34
|
"en": {
|
|
@@ -196,6 +212,32 @@ const layoutMessages = {
|
|
|
196
212
|
}
|
|
197
213
|
};
|
|
198
214
|
//#endregion
|
|
215
|
+
//#region src/locale/messages/lightbox.ts
|
|
216
|
+
const lightboxMessages = {
|
|
217
|
+
"en": {
|
|
218
|
+
close: "Close",
|
|
219
|
+
previous: "Previous",
|
|
220
|
+
next: "Next",
|
|
221
|
+
mediaViewer: "Media viewer",
|
|
222
|
+
zoom: "Zoom",
|
|
223
|
+
zoomedIn: "Zoomed in, use arrow keys to pan",
|
|
224
|
+
zoomedOut: "Zoomed out",
|
|
225
|
+
imagePosition: (index, total) => `Image ${index} of ${total}`,
|
|
226
|
+
mediaPosition: (alt, index, total) => `${alt}, ${index} of ${total}`
|
|
227
|
+
},
|
|
228
|
+
"zh-CN": {
|
|
229
|
+
close: "关闭",
|
|
230
|
+
previous: "上一个",
|
|
231
|
+
next: "下一个",
|
|
232
|
+
mediaViewer: "媒体查看器",
|
|
233
|
+
zoom: "缩放",
|
|
234
|
+
zoomedIn: "已放大,使用箭头键平移",
|
|
235
|
+
zoomedOut: "已缩小",
|
|
236
|
+
imagePosition: (index, total) => `第 ${index} 张图片,共 ${total} 张`,
|
|
237
|
+
mediaPosition: (alt, index, total) => `${alt},第 ${index} 项,共 ${total} 项`
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
//#endregion
|
|
199
241
|
//#region src/locale/messages/markdown.ts
|
|
200
242
|
const markdownMessages = {
|
|
201
243
|
"en": {
|
|
@@ -292,6 +334,12 @@ const numberInputMessages = {
|
|
|
292
334
|
}
|
|
293
335
|
};
|
|
294
336
|
//#endregion
|
|
337
|
+
//#region src/locale/messages/outline.ts
|
|
338
|
+
const outlineMessages = {
|
|
339
|
+
"en": { label: "Table of contents" },
|
|
340
|
+
"zh-CN": { label: "目录" }
|
|
341
|
+
};
|
|
342
|
+
//#endregion
|
|
295
343
|
//#region src/locale/messages/pagination.ts
|
|
296
344
|
const paginationMessages = {
|
|
297
345
|
"en": {
|
|
@@ -303,7 +351,8 @@ const paginationMessages = {
|
|
|
303
351
|
perPage: "Per page",
|
|
304
352
|
pageSize: (count) => `${count} / page`,
|
|
305
353
|
total: (total, from, to) => `${from}–${to} of ${total}`,
|
|
306
|
-
compact: (page, totalPages) => `${page} / ${totalPages}
|
|
354
|
+
compact: (page, totalPages) => `${page} / ${totalPages}`,
|
|
355
|
+
pageOf: (page, totalPages) => `Page ${page} of ${totalPages}`
|
|
307
356
|
},
|
|
308
357
|
"zh-CN": {
|
|
309
358
|
nav: "分页导航",
|
|
@@ -314,7 +363,8 @@ const paginationMessages = {
|
|
|
314
363
|
perPage: "每页",
|
|
315
364
|
pageSize: (count) => `${count} 条/页`,
|
|
316
365
|
total: (total, from, to) => `共 ${total} 条,显示 ${from}-${to}`,
|
|
317
|
-
compact: (page, totalPages) => `${page} / ${totalPages}
|
|
366
|
+
compact: (page, totalPages) => `${page} / ${totalPages}`,
|
|
367
|
+
pageOf: (page, totalPages) => `第 ${page} 页,共 ${totalPages} 页`
|
|
318
368
|
}
|
|
319
369
|
};
|
|
320
370
|
//#endregion
|
|
@@ -520,6 +570,7 @@ const typeaheadMessages = {
|
|
|
520
570
|
const astryxMessages = {
|
|
521
571
|
"en": {
|
|
522
572
|
calendar: calendarMessages.en,
|
|
573
|
+
carousel: carouselMessages.en,
|
|
523
574
|
chat: chatMessages.en,
|
|
524
575
|
citation: citationMessages.en,
|
|
525
576
|
commandPalette: commandPaletteMessages.en,
|
|
@@ -528,11 +579,13 @@ const astryxMessages = {
|
|
|
528
579
|
dateTimeInput: dateTimeInputMessages.en,
|
|
529
580
|
fileInput: fileInputMessages.en,
|
|
530
581
|
layout: layoutMessages.en,
|
|
582
|
+
lightbox: lightboxMessages.en,
|
|
531
583
|
markdown: markdownMessages.en,
|
|
532
584
|
metadataList: metadataListMessages.en,
|
|
533
585
|
multiSelector: multiSelectorMessages.en,
|
|
534
586
|
nav: navMessages.en,
|
|
535
587
|
numberInput: numberInputMessages.en,
|
|
588
|
+
outline: outlineMessages.en,
|
|
536
589
|
pagination: paginationMessages.en,
|
|
537
590
|
selector: selectorMessages.en,
|
|
538
591
|
stepper: stepperMessages.en,
|
|
@@ -547,6 +600,7 @@ const astryxMessages = {
|
|
|
547
600
|
},
|
|
548
601
|
"zh-CN": {
|
|
549
602
|
calendar: calendarMessages["zh-CN"],
|
|
603
|
+
carousel: carouselMessages["zh-CN"],
|
|
550
604
|
chat: chatMessages["zh-CN"],
|
|
551
605
|
citation: citationMessages["zh-CN"],
|
|
552
606
|
commandPalette: commandPaletteMessages["zh-CN"],
|
|
@@ -555,11 +609,13 @@ const astryxMessages = {
|
|
|
555
609
|
dateTimeInput: dateTimeInputMessages["zh-CN"],
|
|
556
610
|
fileInput: fileInputMessages["zh-CN"],
|
|
557
611
|
layout: layoutMessages["zh-CN"],
|
|
612
|
+
lightbox: lightboxMessages["zh-CN"],
|
|
558
613
|
markdown: markdownMessages["zh-CN"],
|
|
559
614
|
metadataList: metadataListMessages["zh-CN"],
|
|
560
615
|
multiSelector: multiSelectorMessages["zh-CN"],
|
|
561
616
|
nav: navMessages["zh-CN"],
|
|
562
617
|
numberInput: numberInputMessages["zh-CN"],
|
|
618
|
+
outline: outlineMessages["zh-CN"],
|
|
563
619
|
pagination: paginationMessages["zh-CN"],
|
|
564
620
|
selector: selectorMessages["zh-CN"],
|
|
565
621
|
stepper: stepperMessages["zh-CN"],
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
//#region src/Code/syntaxContext.ts
|
|
2
|
+
const syntaxThemeKey = Symbol("astryx-syntax-theme");
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/Theme/colorMode.ts
|
|
5
|
+
/**
|
|
6
|
+
* Split `light-dark(light, dark)` at the top-level comma.
|
|
7
|
+
* Nested functions such as `rgb()` keep their own commas.
|
|
8
|
+
*/
|
|
9
|
+
function splitLightDark(value) {
|
|
10
|
+
const trimmed = value.trim();
|
|
11
|
+
if (!trimmed.startsWith("light-dark(") || !trimmed.endsWith(")")) return null;
|
|
12
|
+
const body = trimmed.slice(11, -1);
|
|
13
|
+
let depth = 0;
|
|
14
|
+
for (let index = 0; index < body.length; index += 1) {
|
|
15
|
+
const char = body[index];
|
|
16
|
+
if (char === "(") depth += 1;
|
|
17
|
+
else if (char === ")") depth -= 1;
|
|
18
|
+
else if (char === "," && depth === 0) {
|
|
19
|
+
const light = body.slice(0, index).trim();
|
|
20
|
+
const dark = body.slice(index + 1).trim();
|
|
21
|
+
return light && dark ? [light, dark] : null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Pick the stop `light-dark()` would use for the effective mode.
|
|
28
|
+
* A value that is not `light-dark()` is returned unchanged.
|
|
29
|
+
*/
|
|
30
|
+
function resolveLightDark(value, mode) {
|
|
31
|
+
const parts = splitLightDark(value);
|
|
32
|
+
if (!parts) return value.trim();
|
|
33
|
+
return mode === "dark" ? parts[1] : parts[0];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The mode `light-dark()` is using on the page.
|
|
37
|
+
*
|
|
38
|
+
* An explicit theme mode is handled by the caller. This reads the document
|
|
39
|
+
* attribute, the docs site's `dark` class, then the OS preference that was
|
|
40
|
+
* already measured.
|
|
41
|
+
*/
|
|
42
|
+
function readColorMode(prefersDark) {
|
|
43
|
+
if (typeof document !== "undefined") {
|
|
44
|
+
const attr = document.documentElement.getAttribute("data-astryx-color-mode");
|
|
45
|
+
if (attr === "light" || attr === "dark") return attr;
|
|
46
|
+
if (document.documentElement.classList.contains("dark")) return "dark";
|
|
47
|
+
}
|
|
48
|
+
return prefersDark ? "dark" : "light";
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/Theme/context.ts
|
|
52
|
+
const themeContextKey = Symbol("astryx-theme");
|
|
53
|
+
/** Present when this component is already inside a Theme. */
|
|
54
|
+
const themeNestingKey = Symbol("astryx-theme-nesting");
|
|
55
|
+
const mediaThemeKey = Symbol("astryx-media-theme");
|
|
56
|
+
//#endregion
|
|
57
|
+
export { resolveLightDark as a, readColorMode as i, themeContextKey as n, syntaxThemeKey as o, themeNestingKey as r, mediaThemeKey as t };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
//#region src/Timestamp/formatInstant.ts
|
|
2
|
+
const DATE_SHORT = {
|
|
3
|
+
month: "short",
|
|
4
|
+
day: "numeric",
|
|
5
|
+
year: "numeric"
|
|
6
|
+
};
|
|
7
|
+
const DATE_LONG = {
|
|
8
|
+
year: "numeric",
|
|
9
|
+
month: "long",
|
|
10
|
+
day: "numeric"
|
|
11
|
+
};
|
|
12
|
+
const DATE_WEEKDAY = {
|
|
13
|
+
weekday: "short",
|
|
14
|
+
month: "short",
|
|
15
|
+
day: "numeric",
|
|
16
|
+
year: "numeric"
|
|
17
|
+
};
|
|
18
|
+
const TIME = {
|
|
19
|
+
hour: "numeric",
|
|
20
|
+
minute: "2-digit"
|
|
21
|
+
};
|
|
22
|
+
const DATE_TIME = {
|
|
23
|
+
...DATE_SHORT,
|
|
24
|
+
...TIME
|
|
25
|
+
};
|
|
26
|
+
const FULL = {
|
|
27
|
+
year: "numeric",
|
|
28
|
+
month: "long",
|
|
29
|
+
day: "numeric",
|
|
30
|
+
hour: "numeric",
|
|
31
|
+
minute: "2-digit",
|
|
32
|
+
second: "2-digit",
|
|
33
|
+
timeZoneName: "short"
|
|
34
|
+
};
|
|
35
|
+
function pad(value) {
|
|
36
|
+
return String(value).padStart(2, "0");
|
|
37
|
+
}
|
|
38
|
+
function wallClock(date, timeZone) {
|
|
39
|
+
if (timeZone == null) return {
|
|
40
|
+
year: date.getFullYear(),
|
|
41
|
+
month: date.getMonth() + 1,
|
|
42
|
+
day: date.getDate(),
|
|
43
|
+
hour: date.getHours(),
|
|
44
|
+
minute: date.getMinutes(),
|
|
45
|
+
second: date.getSeconds()
|
|
46
|
+
};
|
|
47
|
+
const parts = new Intl.DateTimeFormat("en-US", {
|
|
48
|
+
timeZone,
|
|
49
|
+
hourCycle: "h23",
|
|
50
|
+
year: "numeric",
|
|
51
|
+
month: "2-digit",
|
|
52
|
+
day: "2-digit",
|
|
53
|
+
hour: "2-digit",
|
|
54
|
+
minute: "2-digit",
|
|
55
|
+
second: "2-digit"
|
|
56
|
+
}).formatToParts(date);
|
|
57
|
+
const read = (type) => Number(parts.find((part) => part.type === type)?.value ?? 0);
|
|
58
|
+
return {
|
|
59
|
+
year: read("year"),
|
|
60
|
+
month: read("month"),
|
|
61
|
+
day: read("day"),
|
|
62
|
+
hour: read("hour"),
|
|
63
|
+
minute: read("minute"),
|
|
64
|
+
second: read("second")
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function formatInstant(date, format, locale, { timeZone, isTimezoneShown = false, timeZoneNameStyle = "short" } = {}) {
|
|
68
|
+
const zone = timeZone == null ? {} : { timeZone };
|
|
69
|
+
const zoneName = isTimezoneShown ? { timeZoneName: "short" } : {};
|
|
70
|
+
switch (format) {
|
|
71
|
+
case "full": return new Intl.DateTimeFormat(locale, {
|
|
72
|
+
...FULL,
|
|
73
|
+
timeZoneName: timeZoneNameStyle,
|
|
74
|
+
...zone,
|
|
75
|
+
calendar: "gregory"
|
|
76
|
+
}).format(date);
|
|
77
|
+
case "date": return new Intl.DateTimeFormat(locale, {
|
|
78
|
+
...DATE_SHORT,
|
|
79
|
+
...zone,
|
|
80
|
+
calendar: "gregory"
|
|
81
|
+
}).format(date);
|
|
82
|
+
case "date_long": return new Intl.DateTimeFormat(locale, {
|
|
83
|
+
...DATE_LONG,
|
|
84
|
+
...zone,
|
|
85
|
+
calendar: "gregory"
|
|
86
|
+
}).format(date);
|
|
87
|
+
case "date_weekday": return new Intl.DateTimeFormat(locale, {
|
|
88
|
+
...DATE_WEEKDAY,
|
|
89
|
+
...zone,
|
|
90
|
+
calendar: "gregory"
|
|
91
|
+
}).format(date);
|
|
92
|
+
case "date_time": return new Intl.DateTimeFormat(locale, {
|
|
93
|
+
...DATE_TIME,
|
|
94
|
+
...zoneName,
|
|
95
|
+
...zone,
|
|
96
|
+
calendar: "gregory"
|
|
97
|
+
}).format(date);
|
|
98
|
+
case "time": return new Intl.DateTimeFormat(locale, {
|
|
99
|
+
...TIME,
|
|
100
|
+
...zoneName,
|
|
101
|
+
...zone
|
|
102
|
+
}).format(date);
|
|
103
|
+
case "system_date": {
|
|
104
|
+
const clock = wallClock(date, timeZone);
|
|
105
|
+
return `${clock.year}-${pad(clock.month)}-${pad(clock.day)}`;
|
|
106
|
+
}
|
|
107
|
+
case "system_date_time": {
|
|
108
|
+
const clock = wallClock(date, timeZone);
|
|
109
|
+
return `${clock.year}-${pad(clock.month)}-${pad(clock.day)} ${pad(clock.hour)}:${pad(clock.minute)}:${pad(clock.second)}`;
|
|
110
|
+
}
|
|
111
|
+
case "system_time": {
|
|
112
|
+
const clock = wallClock(date, timeZone);
|
|
113
|
+
return `${pad(clock.hour)}:${pad(clock.minute)}:${pad(clock.second)}`;
|
|
114
|
+
}
|
|
115
|
+
case "unix_seconds": return String(Math.floor(date.getTime() / 1e3));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
export { formatInstant as t };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from "vue";
|
|
2
|
+
//#region src/Lightbox/types.d.ts
|
|
3
|
+
type LightboxMediaType = 'image' | 'video';
|
|
4
|
+
interface LightboxMedia {
|
|
5
|
+
src: string;
|
|
6
|
+
alt: string;
|
|
7
|
+
caption?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Zoom and pan are only available for images.
|
|
10
|
+
* @default 'image'
|
|
11
|
+
*/
|
|
12
|
+
type?: LightboxMediaType;
|
|
13
|
+
}
|
|
14
|
+
interface LightboxProps {
|
|
15
|
+
/** Whether the lightbox is open. Bind with `v-model:is-open`. */
|
|
16
|
+
isOpen: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* One item, or a gallery. An array shows previous, next, and a counter.
|
|
19
|
+
*/
|
|
20
|
+
media: LightboxMedia | readonly LightboxMedia[];
|
|
21
|
+
/**
|
|
22
|
+
* Controlled gallery index. Bind with `v-model:index`.
|
|
23
|
+
*/
|
|
24
|
+
index?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Initial index when `index` is omitted.
|
|
27
|
+
* @default 0
|
|
28
|
+
*/
|
|
29
|
+
defaultIndex?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Double-click, Enter, Space, `+`, and `-` zoom images. Arrow keys pan while zoomed.
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
hasZoom?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Start video playback when a video item is shown.
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
hasAutoPlay?: boolean;
|
|
40
|
+
}
|
|
41
|
+
interface LightboxEmits {
|
|
42
|
+
'update:isOpen': [isOpen: boolean];
|
|
43
|
+
'update:index': [index: number];
|
|
44
|
+
}
|
|
45
|
+
interface UseLightboxOptions {
|
|
46
|
+
media: LightboxMedia | readonly LightboxMedia[];
|
|
47
|
+
hasZoom?: boolean;
|
|
48
|
+
hasAutoPlay?: boolean;
|
|
49
|
+
}
|
|
50
|
+
interface LightboxTriggerProps {
|
|
51
|
+
'role': 'button';
|
|
52
|
+
'tabindex': 0;
|
|
53
|
+
'aria-haspopup': 'dialog';
|
|
54
|
+
'onClick': () => void;
|
|
55
|
+
'onKeydown': (event: KeyboardEvent) => void;
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/Lightbox/Lightbox.vue.d.ts
|
|
59
|
+
declare const __VLS_export: import("vue").DefineComponent<LightboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
|
+
"update:isOpen": (isOpen: boolean) => any;
|
|
61
|
+
"update:index": (index: number) => any;
|
|
62
|
+
}, string, import("vue").PublicProps, Readonly<LightboxProps> & Readonly<{
|
|
63
|
+
"onUpdate:isOpen"?: ((isOpen: boolean) => any) | undefined;
|
|
64
|
+
"onUpdate:index"?: ((index: number) => any) | undefined;
|
|
65
|
+
}>, {
|
|
66
|
+
defaultIndex: number;
|
|
67
|
+
hasZoom: boolean;
|
|
68
|
+
hasAutoPlay: boolean;
|
|
69
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
70
|
+
declare const _default: typeof __VLS_export;
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/Lightbox/useLightbox.d.ts
|
|
73
|
+
interface LightboxBindings {
|
|
74
|
+
'hasAutoPlay': boolean | undefined;
|
|
75
|
+
'hasZoom': boolean | undefined;
|
|
76
|
+
'index': number;
|
|
77
|
+
'isOpen': boolean;
|
|
78
|
+
'media': LightboxMedia | readonly LightboxMedia[];
|
|
79
|
+
'onUpdate:index': (next: number) => void;
|
|
80
|
+
'onUpdate:isOpen': (next: boolean) => void;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Owns the open state and gallery index for a `Lightbox`.
|
|
84
|
+
* Bind `bindings` onto `Lightbox`, and call `open(index)` from a thumbnail.
|
|
85
|
+
*/
|
|
86
|
+
declare function useLightbox(options: UseLightboxOptions): {
|
|
87
|
+
bindings: ComputedRef<LightboxBindings>;
|
|
88
|
+
close: () => void;
|
|
89
|
+
getTriggerProps: (next: number) => LightboxTriggerProps;
|
|
90
|
+
index: Ref<number>;
|
|
91
|
+
isOpen: Ref<boolean>;
|
|
92
|
+
open: (next?: number) => void;
|
|
93
|
+
triggerProps: ComputedRef<LightboxTriggerProps>;
|
|
94
|
+
};
|
|
95
|
+
//#endregion
|
|
96
|
+
export { LightboxMediaType as a, UseLightboxOptions as c, LightboxMedia as i, _default as n, LightboxProps as o, LightboxEmits as r, LightboxTriggerProps as s, useLightbox as t };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { i as IconProps, n as IconColor, o as IconSlots, r as IconName } from "./types-BKcxXW--.js";
|
|
2
|
+
//#region src/Icon/glyphs.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* A name that resolves to built-in artwork: one of the semantic names the
|
|
5
|
+
* components use, or a namespaced key such as `owner:key` that a component
|
|
6
|
+
* owns.
|
|
7
|
+
*/
|
|
8
|
+
type IconGlyphName = IconName | `${string}:${string}`;
|
|
9
|
+
/**
|
|
10
|
+
* The artwork kept for the components' own chrome. Applications bring their own
|
|
11
|
+
* icons; this list only has to cover what astryx-vue draws itself.
|
|
12
|
+
*/
|
|
13
|
+
declare const ICON_GLYPHS: readonly ["chevronDown", "chevronLeft", "chevronRight", "check", "moreHorizontal", "copy", "calendar", "clock", "upload", "arrowUp", "arrowDown", "close", "funnel", "image"];
|
|
14
|
+
declare function isIconGlyph(value: string): value is IconGlyphName;
|
|
15
|
+
/** The CSS-safe form of a name, used as the `astryx-icon--<slug>` class. */
|
|
16
|
+
declare function iconGlyphSlug(name: IconGlyphName): string;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/Icon/Icon.vue.d.ts
|
|
19
|
+
type __VLS_Slots = IconSlots;
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {
|
|
21
|
+
color: IconColor;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { isIconGlyph as a, iconGlyphSlug as i, ICON_GLYPHS as n, IconGlyphName as r, _default as t };
|
|
@@ -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;
|
|
@@ -72,8 +72,8 @@ interface TokenizerSlots<T extends SearchableItem = SearchableItem> {
|
|
|
72
72
|
//#region src/Tokenizer/Tokenizer.vue.d.ts
|
|
73
73
|
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<{
|
|
74
74
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<TokenizerProps<T> & {
|
|
75
|
-
onChange?: ((value: T[], change: TokenizerChange<T>) => any) | undefined;
|
|
76
75
|
onSearch?: ((query: string) => any) | undefined;
|
|
76
|
+
onChange?: ((value: T[], change: TokenizerChange<T>) => any) | undefined;
|
|
77
77
|
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
78
78
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
79
79
|
}> & (typeof globalThis extends {
|
|
@@ -85,7 +85,7 @@ declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<
|
|
|
85
85
|
}>) => void;
|
|
86
86
|
attrs: any;
|
|
87
87
|
slots: TokenizerSlots<T>;
|
|
88
|
-
emit: ((evt: "
|
|
88
|
+
emit: ((evt: "search", query: string) => void) & ((evt: "change", value: T[], change: TokenizerChange<T>) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "openChange", isOpen: boolean) => void);
|
|
89
89
|
}>) => import("vue").VNode & {
|
|
90
90
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
91
91
|
};
|
|
@@ -15,6 +15,14 @@ type ContextMenuSize = 'sm' | 'md' | 'lg';
|
|
|
15
15
|
* text flow.
|
|
16
16
|
*/
|
|
17
17
|
type ContextMenuTriggerElement = 'div' | 'span';
|
|
18
|
+
/**
|
|
19
|
+
* How the actions are presented.
|
|
20
|
+
*
|
|
21
|
+
* `popover` anchors a menu to the pointer, `bottom-sheet` presents a
|
|
22
|
+
* thumb-reachable sheet, and `adaptive` uses the sheet at 768px and below
|
|
23
|
+
* when the primary pointer is coarse.
|
|
24
|
+
*/
|
|
25
|
+
type ContextMenuPresentation = 'popover' | 'bottom-sheet' | 'adaptive';
|
|
18
26
|
/** A menu width as a number of pixels or any CSS length. */
|
|
19
27
|
type ContextMenuWidth = number | string;
|
|
20
28
|
/**
|
|
@@ -134,6 +142,11 @@ interface ContextMenuProps {
|
|
|
134
142
|
* @default 'div'
|
|
135
143
|
*/
|
|
136
144
|
triggerAs?: ContextMenuTriggerElement;
|
|
145
|
+
/**
|
|
146
|
+
* How the menu is presented.
|
|
147
|
+
* @default 'popover'
|
|
148
|
+
*/
|
|
149
|
+
presentation?: ContextMenuPresentation;
|
|
137
150
|
/**
|
|
138
151
|
* Open state of the menu. Bind it with `v-model:is-open` to control the
|
|
139
152
|
* menu from the outside; leave it unbound and the menu manages its own
|
|
@@ -314,8 +327,9 @@ declare const __VLS_base$3: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
314
327
|
"onUpdate:isOpen"?: ((...args: unknown[]) => any) | undefined;
|
|
315
328
|
}>, {
|
|
316
329
|
label: string;
|
|
317
|
-
size: ContextMenuSize;
|
|
318
330
|
isDisabled: boolean;
|
|
331
|
+
size: ContextMenuSize;
|
|
332
|
+
presentation: ContextMenuPresentation;
|
|
319
333
|
triggerAs: ContextMenuTriggerElement;
|
|
320
334
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
321
335
|
declare const __VLS_export$4: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
@@ -381,4 +395,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
381
395
|
};
|
|
382
396
|
};
|
|
383
397
|
//#endregion
|
|
384
|
-
export {
|
|
398
|
+
export { ContextMenuWidth as A, ContextMenuSize as C, ContextMenuSubMenuSlots as D, ContextMenuSubMenuProps as E, ContextMenuTriggerElement as O, ContextMenuSection as S, ContextMenuSubMenuEmits as T, ContextMenuItemSlots as _, _default$4 as a, ContextMenuPresentation as b, ContextMenuDividerData as c, ContextMenuGroupProps as d, ContextMenuGroupSlots as f, ContextMenuItemProps as g, ContextMenuItemIcon as h, _default$3 as i, ContextMenuVariant as k, ContextMenuDividerProps as l, ContextMenuItemEmits as m, _default$1 as n, useContextMenu as o, ContextMenuItemData as p, _default$2 as r, useContextMenuSize as s, _default as t, ContextMenuEmits as u, ContextMenuItemTarget as v, ContextMenuSlots as w, ContextMenuProps as x, ContextMenuOption as y };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { a as TextSize, n as TextColor, o as TextType, s as TextWeight } from "./types-Bt-lSgYX.js";
|
|
2
|
+
//#region src/Timer/format.d.ts
|
|
3
|
+
type TimerFormat = 'elapsed' | 'clock';
|
|
4
|
+
interface TimerPresentation {
|
|
5
|
+
dateTime: string;
|
|
6
|
+
text: string;
|
|
7
|
+
}
|
|
8
|
+
declare function getPresentation(elapsedMilliseconds: number, format: TimerFormat): TimerPresentation;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/Timer/types.d.ts
|
|
11
|
+
/** Timer can inherit the surrounding type, which Text itself does not offer. */
|
|
12
|
+
type TimerType = TextType | 'inherit';
|
|
13
|
+
type TimerColor = TextColor | 'disabled';
|
|
14
|
+
interface TimerProps {
|
|
15
|
+
/**
|
|
16
|
+
* Unix time in milliseconds when the measured operation began.
|
|
17
|
+
* Omit it to start counting from this Timer's mount.
|
|
18
|
+
*/
|
|
19
|
+
startTime?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Standard duration representation.
|
|
22
|
+
* `elapsed` uses compact units and drops seconds after one hour.
|
|
23
|
+
* `clock` stays second-precise (`m:ss` or `h:mm:ss`).
|
|
24
|
+
* @default 'elapsed'
|
|
25
|
+
*/
|
|
26
|
+
format?: 'elapsed' | 'clock';
|
|
27
|
+
/**
|
|
28
|
+
* Semantic text type. Matches Timestamp typography.
|
|
29
|
+
* `inherit` takes the surrounding font instead of a text type.
|
|
30
|
+
* @default 'supporting'
|
|
31
|
+
*/
|
|
32
|
+
type?: TimerType;
|
|
33
|
+
/** Explicit font size. Overrides the size that comes from `type`. */
|
|
34
|
+
size?: TextSize;
|
|
35
|
+
/**
|
|
36
|
+
* Text color.
|
|
37
|
+
* @default 'secondary'
|
|
38
|
+
*/
|
|
39
|
+
color?: TimerColor;
|
|
40
|
+
/** Font weight override. */
|
|
41
|
+
weight?: TextWeight;
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/Timer/Timer.vue.d.ts
|
|
45
|
+
declare const __VLS_export: import("vue").DefineComponent<TimerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TimerProps> & Readonly<{}>, {
|
|
46
|
+
type: TimerType;
|
|
47
|
+
color: TimerColor;
|
|
48
|
+
format: "clock" | "elapsed";
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
|
+
declare const _default: typeof __VLS_export;
|
|
51
|
+
//#endregion
|
|
52
|
+
export { TimerFormat as a, TimerType as i, TimerColor as n, TimerPresentation as o, TimerProps as r, getPresentation as s, _default as t };
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { CalendarDate } from "@internationalized/date";
|
|
2
2
|
//#region src/Calendar/types.d.ts
|
|
3
|
+
interface CalendarRangeValue {
|
|
4
|
+
start: Date | null;
|
|
5
|
+
end: Date | null;
|
|
6
|
+
}
|
|
3
7
|
interface CalendarProps {
|
|
4
|
-
/**
|
|
8
|
+
/** 当前选中的日期。`mode="range"` 时改用 `range`。 */
|
|
5
9
|
modelValue?: Date | null;
|
|
10
|
+
/** 选一天,或选一段起止日期。 */
|
|
11
|
+
mode?: 'single' | 'range';
|
|
12
|
+
/** 范围模式下的起止日期,用 `v-model:range` 绑定。 */
|
|
13
|
+
range?: CalendarRangeValue | null;
|
|
14
|
+
/** 并排显示的月份数。 */
|
|
15
|
+
numberOfMonths?: 1 | 2;
|
|
16
|
+
/** 打开时先显示这一天所在的月份。 */
|
|
17
|
+
focusDate?: Date;
|
|
6
18
|
/** 最小可选日期 */
|
|
7
19
|
min?: Date;
|
|
8
20
|
/** 最大可选日期 */
|
|
@@ -16,6 +28,7 @@ interface CalendarProps {
|
|
|
16
28
|
}
|
|
17
29
|
interface CalendarEmits {
|
|
18
30
|
(event: 'update:modelValue', value: Date | null): void;
|
|
31
|
+
(event: 'update:range', value: CalendarRangeValue): void;
|
|
19
32
|
(event: 'change', value: Date | null): void;
|
|
20
33
|
}
|
|
21
34
|
interface CalendarSlots {
|
|
@@ -36,12 +49,17 @@ type __VLS_Slots = CalendarSlots;
|
|
|
36
49
|
declare const __VLS_base: import("vue").DefineComponent<CalendarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
37
50
|
change: (value: Date | null) => any;
|
|
38
51
|
"update:modelValue": (value: Date | null) => any;
|
|
52
|
+
"update:range": (value: CalendarRangeValue) => any;
|
|
39
53
|
}, string, import("vue").PublicProps, Readonly<CalendarProps> & Readonly<{
|
|
40
54
|
onChange?: ((value: Date | null) => any) | undefined;
|
|
41
55
|
"onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
|
|
56
|
+
"onUpdate:range"?: ((value: CalendarRangeValue) => any) | undefined;
|
|
42
57
|
}>, {
|
|
43
58
|
modelValue: Date | null;
|
|
59
|
+
mode: "single" | "range";
|
|
44
60
|
disabled: boolean;
|
|
61
|
+
range: CalendarRangeValue | null;
|
|
62
|
+
numberOfMonths: 1 | 2;
|
|
45
63
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
64
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
47
65
|
declare const _default: typeof __VLS_export;
|
|
@@ -51,4 +69,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
51
69
|
};
|
|
52
70
|
};
|
|
53
71
|
//#endregion
|
|
54
|
-
export { CalendarSlots as i, CalendarEmits as n, CalendarProps as r, _default as t };
|
|
72
|
+
export { CalendarSlots as a, CalendarRangeValue as i, CalendarEmits as n, CalendarProps as r, _default as t };
|