@astryx-vue/core 0.1.0 → 0.1.3
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/README.md +1 -1
- package/dist/AppShell/index.d.ts +2 -0
- package/dist/AppShell/index.js +2 -0
- package/dist/AppShell-b0PWt9Fz.js +249 -0
- package/dist/AspectRatio/index.d.ts +2 -0
- package/dist/AspectRatio/index.js +2 -0
- package/dist/AspectRatio-Bij7e-tq.js +40 -0
- 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/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-DpYFXwgb.js → Calendar-CYhGDT6f.js} +2 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bfd-YPAK.js → Chat-C1aWl5V3.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-C86o3XoG.js → CheckboxInput-CMsEE1_4.js} +4 -2
- package/dist/CheckboxList/index.d.ts +2 -0
- package/dist/CheckboxList/index.js +2 -0
- package/dist/CheckboxList-EsIEXjK_.js +174 -0
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-DaDd1teb.js → Citation-C1X0Rde8.js} +2 -2
- package/dist/ClickableCard/index.d.ts +2 -0
- package/dist/ClickableCard/index.js +2 -0
- package/dist/ClickableCard-Bhds4RRe.js +112 -0
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CK-NWM_1.js → CodeBlock-BQdooQy2.js} +1 -1
- package/dist/Collapsible/index.d.ts +2 -2
- package/dist/Collapsible/index.js +2 -2
- package/dist/Collapsible-BS9ctCQV.js +192 -0
- package/dist/CommandPalette/index.d.ts +2 -0
- package/dist/CommandPalette/index.js +2 -0
- package/dist/CommandPalette-u5h_E05P.js +489 -0
- package/dist/ComplexSelector/index.d.ts +2 -0
- package/dist/ComplexSelector/index.js +2 -0
- package/dist/ComplexSelector-BHmGWml0.js +293 -0
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-BJh99Exj.js → ContextMenu-dA-ppaRQ.js} +284 -12
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-zJAdXByM.js → DateInput-D2ErjXYO.js} +18 -10
- package/dist/DateRangeInput/index.d.ts +2 -0
- package/dist/DateRangeInput/index.js +2 -0
- package/dist/DateRangeInput-fmQlr_A7.js +385 -0
- package/dist/DateTimeInput/index.d.ts +2 -0
- package/dist/DateTimeInput/index.js +2 -0
- package/dist/DateTimeInput-Bs1JmcIp.js +196 -0
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +1 -1
- package/dist/{DropdownMenu-C3j2zaEn.js → DropdownMenu-B0gogrvG.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +3 -4
- package/dist/{Field-VlTBsIEo.js → Field-8zRxzDHE.js} +11 -3
- package/dist/{FieldLabel-B1NRyQlS.js → FieldLabel-DmmJyX7w.js} +6 -1
- package/dist/FieldStatus/index.d.ts +2 -0
- package/dist/FieldStatus/index.js +2 -0
- package/dist/FileInput/index.d.ts +2 -0
- package/dist/FileInput/index.js +2 -0
- package/dist/FileInput-CmAfOpkA.js +238 -0
- package/dist/FormLayout/index.d.ts +2 -0
- package/dist/FormLayout/index.js +2 -0
- package/dist/FormLayout-D47FjiOq.js +40 -0
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/{Icon-B6qNgBP9.js → Icon-5MdZQ18k.js} +10 -2
- package/dist/Layout/index.d.ts +2 -0
- package/dist/Layout/index.js +3 -0
- package/dist/Layout-Bed3kP0M.js +56 -0
- package/dist/LayoutPanel-C34uOq3e.js +358 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DyKIwAL_.js → Markdown-CwtLr3f_.js} +2 -2
- package/dist/MetadataList/index.d.ts +2 -0
- package/dist/MetadataList/index.js +2 -0
- package/dist/MetadataList-DlXQTLog.js +124 -0
- package/dist/MobileNav/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-BK2iRJF-.js → MobileNavToggle-CgQamG6E.js} +19 -12
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BjUsVWWk.js → MoreMenu-BXL6Dqsu.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CKTbTj1A.js → MultiSelector-DT8ZccMI.js} +3 -3
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DU3_rw7z.js → NumberInput-DspJO6z6.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-B2T5UtiQ.js → OverflowList-zXg3g6fy.js} +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-qCgNwwhr.js → Pagination-DXfgMUKJ.js} +2 -2
- package/dist/Popover/index.d.ts +2 -1
- package/dist/Radio/index.d.ts +2 -2
- package/dist/Radio/index.js +2 -2
- package/dist/{Radio-BioQfwHQ.js → RadioGroup-BqjdSCfJ.js} +21 -88
- package/dist/RadioList/index.d.ts +2 -0
- package/dist/RadioList/index.js +2 -0
- package/dist/RadioList-DI8ujXcT.js +122 -0
- package/dist/Resizable/index.d.ts +2 -0
- package/dist/Resizable/index.js +2 -0
- package/dist/Resizable-BuGKvU9I.js +261 -0
- package/dist/ScrollableArea/index.d.ts +2 -0
- package/dist/ScrollableArea/index.js +2 -0
- package/dist/ScrollableArea-DQDYjnxO.js +78 -0
- package/dist/Section/index.d.ts +2 -0
- package/dist/Section/index.js +2 -0
- package/dist/Section-C48Wqfc7.js +68 -0
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +2 -0
- package/dist/SelectableCard/index.js +2 -0
- package/dist/SelectableCard-Bj5s_tIN.js +108 -0
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-C6sPJMtH.js → Selector-DlZpQh42.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -1
- package/dist/{SideNav-D9lnn-sM.js → SideNav-Cdrigq2A.js} +49 -27
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DTnWxtnb.js → Slider-D8h_RKcF.js} +1 -1
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +2 -0
- package/dist/Stepper/index.js +2 -0
- package/dist/Stepper-DxmLfh8O.js +423 -0
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-CNdnr5TP.js → Switch-SesQzPGZ.js} +4 -2
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +2 -2
- package/dist/TabList-C411uNQU.js +380 -0
- package/dist/Table/index.d.ts +3 -0
- package/dist/Table/index.js +2 -0
- package/dist/Table-7qRmlIQd.js +967 -0
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BL0NuB99.js → TextArea-Cv9UVbzS.js} +5 -3
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-B0IKC7g5.js → TextInput-BasnjVvy.js} +5 -3
- package/dist/Thumbnail/index.d.ts +2 -0
- package/dist/Thumbnail/index.js +2 -0
- package/dist/Thumbnail-BWVzLLyI.js +163 -0
- package/dist/TimeField-l3QzU6vC.js +214 -0
- package/dist/TimeInput/index.d.ts +2 -0
- package/dist/TimeInput/index.js +2 -0
- package/dist/TimeInput-OkgX-xbQ.js +121 -0
- package/dist/Timestamp/index.d.ts +2 -0
- package/dist/Timestamp/index.js +2 -0
- package/dist/Timestamp-DUoP9ari.js +465 -0
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Ctf9jekS.js → Token-C4KD0fZD.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-D5MPgau0.js → Tokenizer-BA8sTMPZ.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-CjbMCbkC.js → TopNav-CZokS7E_.js} +57 -31
- package/dist/TreeList/index.d.ts +2 -0
- package/dist/TreeList/index.js +2 -0
- package/dist/TreeList-CIbAGOMf.js +506 -0
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-BMoU3hfx.js → Typeahead-DIw-K4aa.js} +3 -3
- package/dist/composables/index.d.ts +3 -2
- package/dist/composables/index.js +8 -2
- package/dist/composables-CVfjp9h4.js +502 -0
- package/dist/context-BjNya0v8.js +19 -0
- package/dist/context-Cfjh8te1.js +29 -0
- package/dist/{locale-56lkR7OK.js → context-D6ECRdc5.js} +267 -18
- package/dist/index-1uRMrk63.d.ts +54 -0
- package/dist/{index-Dw21t7Uf.d.ts → index-2u4l3wq8.d.ts} +2 -2
- package/dist/{index-CvLlWLIZ.d.ts → index-B4OOtNP8.d.ts} +4 -4
- package/dist/{index-_1-uvr27.d.ts → index-B8MbfMwV.d.ts} +1 -1
- package/dist/{index-MPcg1Pm4.d.ts → index-BKr7yvVv.d.ts} +1 -1
- package/dist/index-Be1czg3M.d.ts +167 -0
- package/dist/{index-Dbmgcm8a.d.ts → index-BeR-1LgF.d.ts} +2 -0
- package/dist/{index-CnVbMebA.d.ts → index-Bqb_Fyju.d.ts} +3 -3
- package/dist/index-BrJzFA5X.d.ts +38 -0
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/index-By2mSzUA.d.ts +67 -0
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-BQuN_dWR.d.ts → index-BzqRns96.d.ts} +1 -1
- package/dist/{index-BkIgRYGz.d.ts → index-C5p2NeCr.d.ts} +2 -2
- package/dist/{index-Cc2HGODZ.d.ts → index-C6RecznD.d.ts} +3 -3
- package/dist/{index-BSRk8MFK.d.ts → index-C8wDPDcP.d.ts} +1 -1
- package/dist/index-CDdRQQF3.d.ts +170 -0
- package/dist/index-COqjznX0.d.ts +47 -0
- package/dist/{index-Cz9ZHVf6.d.ts → index-CT8KEpec.d.ts} +2 -2
- package/dist/{index-CxspvLBl.d.ts → index-CTolyeii.d.ts} +1 -1
- package/dist/index-CVn0GBdB.d.ts +115 -0
- package/dist/index-CX97hlld.d.ts +158 -0
- package/dist/index-C_2Z65Rp.d.ts +67 -0
- package/dist/index-CjtAH60j.d.ts +38 -0
- package/dist/index-CtlkhQ55.d.ts +36 -0
- package/dist/{index-JeZ0YTyd.d.ts → index-D-ZuubCK.d.ts} +4 -4
- package/dist/index-DA52oIdw.d.ts +171 -0
- package/dist/{index-C8NW9xre.d.ts → index-DGNqi2za.d.ts} +7 -7
- package/dist/{index-CCA4R0Mf.d.ts → index-DT9S92sh.d.ts} +31 -6
- package/dist/index-DXSs3rwa.d.ts +252 -0
- package/dist/{index-C0S2Xzoi.d.ts → index-DYChvBOM.d.ts} +135 -0
- package/dist/index-Da7Jm8Ht.d.ts +10 -0
- package/dist/{index-CaHXYQ_E.d.ts → index-Df2YvC8o.d.ts} +717 -147
- package/dist/{index-DjOdQv5B.d.ts → index-DfgHJE7H.d.ts} +1 -1
- package/dist/{index-CPhDtlv-.d.ts → index-FEy8qFSD.d.ts} +3 -3
- package/dist/{index-DBcbfStA.d.ts → index-SMh42NI8.d.ts} +182 -2
- package/dist/{index-Cdi82rTW.d.ts → index-ZJyk8RtQ.d.ts} +6 -2
- package/dist/{index-BeJqhW4l.d.ts → index-fa72tWIU.d.ts} +3 -3
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-BQa836Vz.d.ts → index-iBLzInje.d.ts} +6 -14
- package/dist/{index-BhYFxnjV.d.ts → index-kaKBOZSU.d.ts} +2 -2
- package/dist/index-nKlTsNfV.d.ts +42 -0
- package/dist/index-utZGF4GR.d.ts +79 -0
- package/dist/index.d.ts +76 -59
- package/dist/index.js +119 -78
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +2 -1
- package/dist/locale-Cpk_nrLA.js +18 -0
- package/dist/size-BuTzpgnR.d.ts +14 -0
- package/dist/size-xcIqExkS.js +79 -0
- package/dist/{index-Cp0NlzQv.d.ts → types-Db3Owy8Q.d.ts} +1 -36
- package/dist/types-JktRxujg.d.ts +107 -0
- package/dist/useAppShellMobile-DTsyuAJ4.js +19 -0
- package/dist/useClickableContainer-DyNpnSEa.js +112 -0
- package/dist/useFileSelection-BPtaegqK.js +58 -0
- package/dist/useMonthGrid-CmJsZTcB.js +139 -0
- package/dist/useResizable-CeESZS1v.d.ts +72 -0
- package/dist/useScrollableArea-DDk_CluT.js +172 -0
- package/dist/useTimeValue-DWk6oTAZ.js +113 -0
- package/package.json +97 -1
- package/styles/app-shell.css +151 -0
- package/styles/aspect-ratio.css +49 -0
- package/styles/bordered-control.css +87 -0
- package/styles/calendar.css +8 -2
- package/styles/card.css +5 -1
- package/styles/checkbox-list.css +15 -0
- package/styles/clickable-card.css +101 -0
- package/styles/collapsible.css +37 -0
- package/styles/command-palette.css +183 -0
- package/styles/complex-selector.css +114 -0
- package/styles/date-range-input.css +163 -0
- package/styles/date-time-input.css +40 -0
- package/styles/field.css +14 -3
- package/styles/file-input.css +87 -0
- package/styles/form-layout.css +31 -0
- package/styles/heading.css +19 -17
- package/styles/icon.css +32 -0
- package/styles/layout.css +280 -0
- package/styles/metadata-list.css +107 -0
- package/styles/number-input.css +6 -0
- package/styles/radio.css +32 -0
- package/styles/resize-handle.css +128 -0
- package/styles/scrollable-area.css +50 -0
- package/styles/section.css +60 -0
- package/styles/selector.css +10 -0
- package/styles/side-nav.css +26 -0
- package/styles/stepper.css +357 -0
- package/styles/tab-menu.css +91 -0
- package/styles/table.css +256 -0
- package/styles/text-area.css +6 -1
- package/styles/text-input.css +6 -0
- package/styles/thumbnail.css +151 -0
- package/styles/time-input.css +51 -0
- package/styles/timestamp.css +93 -0
- package/styles/tree-list.css +229 -0
- package/styles.css +23 -0
- package/dist/Collapsible-ByXCGhT8.js +0 -102
- package/dist/TabList-LV1U4ZD6.js +0 -184
- package/dist/composables-Dq9RS33w.js +0 -111
- package/dist/index-TnaIHsCS.d.ts +0 -87
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
import { computed, inject, provide, toValue } from "vue";
|
|
2
|
-
//#region src/locale/format.ts
|
|
3
|
-
const weekdayStart = new Date(2023, 0, 1);
|
|
4
|
-
function formatCalendarMonth(year, month, locale) {
|
|
5
|
-
return new Intl.DateTimeFormat(locale, {
|
|
6
|
-
month: "long",
|
|
7
|
-
year: "numeric"
|
|
8
|
-
}).format(new Date(year, month - 1, 1));
|
|
9
|
-
}
|
|
10
|
-
function weekdayNames(locale, style) {
|
|
11
|
-
const formatter = new Intl.DateTimeFormat(locale, { weekday: style });
|
|
12
|
-
return Array.from({ length: 7 }, (_, index) => {
|
|
13
|
-
const date = new Date(weekdayStart);
|
|
14
|
-
date.setDate(weekdayStart.getDate() + index);
|
|
15
|
-
return formatter.format(date);
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
2
|
//#region src/locale/messages/calendar.ts
|
|
20
3
|
const calendarMessages = {
|
|
21
4
|
"en": {
|
|
@@ -90,6 +73,36 @@ const citationMessages = {
|
|
|
90
73
|
"zh-CN": { label: (number, title) => `引用 ${number}:${title}` }
|
|
91
74
|
};
|
|
92
75
|
//#endregion
|
|
76
|
+
//#region src/locale/messages/command-palette.ts
|
|
77
|
+
const commandPaletteMessages = {
|
|
78
|
+
"en": {
|
|
79
|
+
label: "Command palette",
|
|
80
|
+
emptySearch: "No results",
|
|
81
|
+
emptyBootstrap: "Type to search",
|
|
82
|
+
placeholder: "Search…",
|
|
83
|
+
listLabel: "Commands",
|
|
84
|
+
loading: "Loading",
|
|
85
|
+
noResultsFor: (query) => `No results for ${query}`,
|
|
86
|
+
resultCount: (count) => `${count} ${count === 1 ? "result" : "results"}`,
|
|
87
|
+
navigate: "Navigate",
|
|
88
|
+
select: "Select",
|
|
89
|
+
close: "Close"
|
|
90
|
+
},
|
|
91
|
+
"zh-CN": {
|
|
92
|
+
label: "命令面板",
|
|
93
|
+
emptySearch: "没有结果",
|
|
94
|
+
emptyBootstrap: "输入以搜索",
|
|
95
|
+
placeholder: "搜索…",
|
|
96
|
+
listLabel: "命令",
|
|
97
|
+
loading: "正在加载",
|
|
98
|
+
noResultsFor: (query) => `没有与 ${query} 匹配的结果`,
|
|
99
|
+
resultCount: (count) => `${count} 个结果`,
|
|
100
|
+
navigate: "移动",
|
|
101
|
+
select: "选择",
|
|
102
|
+
close: "关闭"
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
//#endregion
|
|
93
106
|
//#region src/locale/messages/shared.ts
|
|
94
107
|
function clearLabel(label, fallback, prefix) {
|
|
95
108
|
return label != null && label !== "" ? `${prefix}${label}` : fallback;
|
|
@@ -113,6 +126,76 @@ const dateInputMessages = {
|
|
|
113
126
|
}
|
|
114
127
|
};
|
|
115
128
|
//#endregion
|
|
129
|
+
//#region src/locale/messages/date-range-input.ts
|
|
130
|
+
const dateRangeInputMessages = {
|
|
131
|
+
"en": {
|
|
132
|
+
placeholder: "Select date range",
|
|
133
|
+
dialogLabel: "Choose date range",
|
|
134
|
+
clear: (label) => clearLabel(label, "Clear", "Clear ")
|
|
135
|
+
},
|
|
136
|
+
"zh-CN": {
|
|
137
|
+
placeholder: "选择日期区间",
|
|
138
|
+
dialogLabel: "选择日期区间",
|
|
139
|
+
clear: (label) => clearLabel(label, "清除", "清除")
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region src/locale/messages/date-time-input.ts
|
|
144
|
+
const dateTimeInputMessages = {
|
|
145
|
+
"en": {
|
|
146
|
+
dateLabel: "Date",
|
|
147
|
+
timeLabel: "Time",
|
|
148
|
+
clear: (label) => clearLabel(label, "Clear", "Clear ")
|
|
149
|
+
},
|
|
150
|
+
"zh-CN": {
|
|
151
|
+
dateLabel: "日期",
|
|
152
|
+
timeLabel: "时间",
|
|
153
|
+
clear: (label) => clearLabel(label, "清除", "清除")
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/locale/messages/file-input.ts
|
|
158
|
+
const fileInputMessages = {
|
|
159
|
+
"en": {
|
|
160
|
+
placeholder: "Choose file",
|
|
161
|
+
placeholderMultiple: "Choose files",
|
|
162
|
+
clear: "Clear",
|
|
163
|
+
required: "Required",
|
|
164
|
+
fileSelected: (fileName) => `${fileName} selected`,
|
|
165
|
+
filesSelected: (count) => `${count} files selected`,
|
|
166
|
+
errorType: (fileName) => `${fileName} is not an accepted file type`,
|
|
167
|
+
errorSize: (fileName, maxSize) => `${fileName} exceeds ${maxSize}`,
|
|
168
|
+
errorCount: (maxFiles) => `You can select up to ${maxFiles} files`
|
|
169
|
+
},
|
|
170
|
+
"zh-CN": {
|
|
171
|
+
placeholder: "选择文件",
|
|
172
|
+
placeholderMultiple: "选择文件",
|
|
173
|
+
clear: "清除",
|
|
174
|
+
required: "必填",
|
|
175
|
+
fileSelected: (fileName) => `已选择 ${fileName}`,
|
|
176
|
+
filesSelected: (count) => `已选择 ${count} 个文件`,
|
|
177
|
+
errorType: (fileName) => `${fileName} 不是允许的文件类型`,
|
|
178
|
+
errorSize: (fileName, maxSize) => `${fileName} 超过 ${maxSize}`,
|
|
179
|
+
errorCount: (maxFiles) => `最多选择 ${maxFiles} 个文件`
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/locale/messages/layout.ts
|
|
184
|
+
const layoutMessages = {
|
|
185
|
+
"en": {
|
|
186
|
+
skipToContent: "Skip to content",
|
|
187
|
+
resizeHandle: "Resize handle",
|
|
188
|
+
collapsed: "Collapsed",
|
|
189
|
+
mobileNavigation: "Navigation"
|
|
190
|
+
},
|
|
191
|
+
"zh-CN": {
|
|
192
|
+
skipToContent: "跳到正文",
|
|
193
|
+
resizeHandle: "拖拽分隔条",
|
|
194
|
+
collapsed: "已收起",
|
|
195
|
+
mobileNavigation: "导航"
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
//#endregion
|
|
116
199
|
//#region src/locale/messages/markdown.ts
|
|
117
200
|
const markdownMessages = {
|
|
118
201
|
"en": {
|
|
@@ -129,6 +212,18 @@ const markdownMessages = {
|
|
|
129
212
|
}
|
|
130
213
|
};
|
|
131
214
|
//#endregion
|
|
215
|
+
//#region src/locale/messages/metadata-list.ts
|
|
216
|
+
const metadataListMessages = {
|
|
217
|
+
"en": {
|
|
218
|
+
showMore: "Show more",
|
|
219
|
+
showLess: "Show less"
|
|
220
|
+
},
|
|
221
|
+
"zh-CN": {
|
|
222
|
+
showMore: "显示更多",
|
|
223
|
+
showLess: "收起"
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
//#endregion
|
|
132
227
|
//#region src/locale/messages/multi-selector.ts
|
|
133
228
|
const multiSelectorMessages = {
|
|
134
229
|
"en": {
|
|
@@ -160,6 +255,7 @@ const navMessages = {
|
|
|
160
255
|
collapseSidebar: "Collapse sidebar",
|
|
161
256
|
expandSidebar: "Expand sidebar",
|
|
162
257
|
openMenu: "Open menu",
|
|
258
|
+
openNavigation: "Open navigation",
|
|
163
259
|
close: "Close",
|
|
164
260
|
more: "More",
|
|
165
261
|
moreItems: (count) => `${count} more`,
|
|
@@ -174,6 +270,7 @@ const navMessages = {
|
|
|
174
270
|
collapseSidebar: "收起侧边栏",
|
|
175
271
|
expandSidebar: "展开侧边栏",
|
|
176
272
|
openMenu: "打开菜单",
|
|
273
|
+
openNavigation: "打开导航",
|
|
177
274
|
close: "关闭",
|
|
178
275
|
more: "更多",
|
|
179
276
|
moreItems: (count) => `还有 ${count} 项`,
|
|
@@ -237,6 +334,128 @@ const selectorMessages = {
|
|
|
237
334
|
}
|
|
238
335
|
};
|
|
239
336
|
//#endregion
|
|
337
|
+
//#region src/locale/messages/stepper.ts
|
|
338
|
+
const stepperMessages = {
|
|
339
|
+
"en": {
|
|
340
|
+
progress: "Progress",
|
|
341
|
+
optional: "Optional",
|
|
342
|
+
previous: "Previous step",
|
|
343
|
+
next: "Next step",
|
|
344
|
+
goToStep: (step) => `Go to step ${step}`,
|
|
345
|
+
goToStepWithStatus: (step, status) => `Go to step ${step}, ${status}`,
|
|
346
|
+
status: {
|
|
347
|
+
completed: "Completed",
|
|
348
|
+
warning: "Warning",
|
|
349
|
+
error: "Error"
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"zh-CN": {
|
|
353
|
+
progress: "进度",
|
|
354
|
+
optional: "可选",
|
|
355
|
+
previous: "上一步",
|
|
356
|
+
next: "下一步",
|
|
357
|
+
goToStep: (step) => `转到第 ${step} 步`,
|
|
358
|
+
goToStepWithStatus: (step, status) => `转到第 ${step} 步,${status}`,
|
|
359
|
+
status: {
|
|
360
|
+
completed: "已完成",
|
|
361
|
+
warning: "警告",
|
|
362
|
+
error: "错误"
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
//#endregion
|
|
367
|
+
//#region src/locale/messages/table.ts
|
|
368
|
+
const tableMessages = {
|
|
369
|
+
"en": {
|
|
370
|
+
label: "Table",
|
|
371
|
+
noData: "No data",
|
|
372
|
+
filterAll: "All",
|
|
373
|
+
reset: "Reset",
|
|
374
|
+
apply: "Apply",
|
|
375
|
+
selectAllRows: "Select all rows",
|
|
376
|
+
selectRow: "Select row",
|
|
377
|
+
selectRowNamed: (label) => `Select ${label}`,
|
|
378
|
+
sortAscending: "Sort ascending",
|
|
379
|
+
sortDescending: "Sort descending",
|
|
380
|
+
clearSort: "Clear sort",
|
|
381
|
+
sortedAscending: "Ascending",
|
|
382
|
+
sortedDescending: "Descending",
|
|
383
|
+
sortBy: (label) => `Sort by ${label}`,
|
|
384
|
+
bulkActionsLabel: "Bulk actions",
|
|
385
|
+
clearAll: "Unselect All",
|
|
386
|
+
selectedCount: (count) => `${count} selected`,
|
|
387
|
+
paginationLabel: "Table pagination"
|
|
388
|
+
},
|
|
389
|
+
"zh-CN": {
|
|
390
|
+
label: "表格",
|
|
391
|
+
noData: "暂无数据",
|
|
392
|
+
filterAll: "全部",
|
|
393
|
+
reset: "重置",
|
|
394
|
+
apply: "应用",
|
|
395
|
+
selectAllRows: "选择所有行",
|
|
396
|
+
selectRow: "选择行",
|
|
397
|
+
selectRowNamed: (label) => `选择 ${label}`,
|
|
398
|
+
sortAscending: "升序排序",
|
|
399
|
+
sortDescending: "降序排序",
|
|
400
|
+
clearSort: "清除排序",
|
|
401
|
+
sortedAscending: "升序",
|
|
402
|
+
sortedDescending: "降序",
|
|
403
|
+
sortBy: (label) => `按 ${label} 排序`,
|
|
404
|
+
bulkActionsLabel: "批量操作",
|
|
405
|
+
clearAll: "取消全选",
|
|
406
|
+
selectedCount: (count) => `已选择 ${count} 项`,
|
|
407
|
+
paginationLabel: "表格分页"
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
//#endregion
|
|
411
|
+
//#region src/locale/messages/thumbnail.ts
|
|
412
|
+
const thumbnailMessages = {
|
|
413
|
+
"en": {
|
|
414
|
+
remove: (accessibleName) => `Remove ${accessibleName}`,
|
|
415
|
+
open: (accessibleName) => `Open ${accessibleName}`,
|
|
416
|
+
fallbackName: "Thumbnail"
|
|
417
|
+
},
|
|
418
|
+
"zh-CN": {
|
|
419
|
+
remove: (accessibleName) => `移除 ${accessibleName}`,
|
|
420
|
+
open: (accessibleName) => `打开 ${accessibleName}`,
|
|
421
|
+
fallbackName: "缩略图"
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
//#endregion
|
|
425
|
+
//#region src/locale/messages/time-input.ts
|
|
426
|
+
const timeInputMessages = {
|
|
427
|
+
"en": {
|
|
428
|
+
placeholder: "Select a time",
|
|
429
|
+
formatHint12: "e.g., 2:30 PM",
|
|
430
|
+
formatHint24: "e.g., 14:30",
|
|
431
|
+
outOfRange: "Time is outside the allowed range",
|
|
432
|
+
clear: (label) => clearLabel(label, "Clear", "Clear ")
|
|
433
|
+
},
|
|
434
|
+
"zh-CN": {
|
|
435
|
+
placeholder: "选择时间",
|
|
436
|
+
formatHint12: "例如 2:30 PM",
|
|
437
|
+
formatHint24: "例如 14:30",
|
|
438
|
+
outOfRange: "时间不在允许的范围内",
|
|
439
|
+
clear: (label) => clearLabel(label, "清除", "清除")
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
//#endregion
|
|
443
|
+
//#region src/locale/messages/timestamp.ts
|
|
444
|
+
const timestampMessages = {
|
|
445
|
+
"en": {
|
|
446
|
+
copyValue: (value) => `Copy ${value}`,
|
|
447
|
+
copy: "Copy",
|
|
448
|
+
copied: "Copied",
|
|
449
|
+
detailsLabel: "Timestamp details"
|
|
450
|
+
},
|
|
451
|
+
"zh-CN": {
|
|
452
|
+
copyValue: (value) => `复制 ${value}`,
|
|
453
|
+
copy: "复制",
|
|
454
|
+
copied: "已复制",
|
|
455
|
+
detailsLabel: "时间戳详情"
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
//#endregion
|
|
240
459
|
//#region src/locale/messages/token.ts
|
|
241
460
|
const tokenMessages = {
|
|
242
461
|
"en": { remove: (label) => `Remove ${label}` },
|
|
@@ -271,6 +490,12 @@ const tokenizerMessages = {
|
|
|
271
490
|
}
|
|
272
491
|
};
|
|
273
492
|
//#endregion
|
|
493
|
+
//#region src/locale/messages/tree-list.ts
|
|
494
|
+
const treeListMessages = {
|
|
495
|
+
"en": { toggleChildren: "Toggle children" },
|
|
496
|
+
"zh-CN": { toggleChildren: "切换子项" }
|
|
497
|
+
};
|
|
498
|
+
//#endregion
|
|
274
499
|
//#region src/locale/messages/typeahead.ts
|
|
275
500
|
const typeaheadMessages = {
|
|
276
501
|
"en": {
|
|
@@ -297,30 +522,54 @@ const astryxMessages = {
|
|
|
297
522
|
calendar: calendarMessages.en,
|
|
298
523
|
chat: chatMessages.en,
|
|
299
524
|
citation: citationMessages.en,
|
|
525
|
+
commandPalette: commandPaletteMessages.en,
|
|
300
526
|
dateInput: dateInputMessages.en,
|
|
527
|
+
dateRangeInput: dateRangeInputMessages.en,
|
|
528
|
+
dateTimeInput: dateTimeInputMessages.en,
|
|
529
|
+
fileInput: fileInputMessages.en,
|
|
530
|
+
layout: layoutMessages.en,
|
|
301
531
|
markdown: markdownMessages.en,
|
|
532
|
+
metadataList: metadataListMessages.en,
|
|
302
533
|
multiSelector: multiSelectorMessages.en,
|
|
303
534
|
nav: navMessages.en,
|
|
304
535
|
numberInput: numberInputMessages.en,
|
|
305
536
|
pagination: paginationMessages.en,
|
|
306
537
|
selector: selectorMessages.en,
|
|
538
|
+
stepper: stepperMessages.en,
|
|
539
|
+
table: tableMessages.en,
|
|
540
|
+
thumbnail: thumbnailMessages.en,
|
|
541
|
+
timeInput: timeInputMessages.en,
|
|
542
|
+
timestamp: timestampMessages.en,
|
|
307
543
|
token: tokenMessages.en,
|
|
308
544
|
tokenizer: tokenizerMessages.en,
|
|
545
|
+
treeList: treeListMessages.en,
|
|
309
546
|
typeahead: typeaheadMessages.en
|
|
310
547
|
},
|
|
311
548
|
"zh-CN": {
|
|
312
549
|
calendar: calendarMessages["zh-CN"],
|
|
313
550
|
chat: chatMessages["zh-CN"],
|
|
314
551
|
citation: citationMessages["zh-CN"],
|
|
552
|
+
commandPalette: commandPaletteMessages["zh-CN"],
|
|
315
553
|
dateInput: dateInputMessages["zh-CN"],
|
|
554
|
+
dateRangeInput: dateRangeInputMessages["zh-CN"],
|
|
555
|
+
dateTimeInput: dateTimeInputMessages["zh-CN"],
|
|
556
|
+
fileInput: fileInputMessages["zh-CN"],
|
|
557
|
+
layout: layoutMessages["zh-CN"],
|
|
316
558
|
markdown: markdownMessages["zh-CN"],
|
|
559
|
+
metadataList: metadataListMessages["zh-CN"],
|
|
317
560
|
multiSelector: multiSelectorMessages["zh-CN"],
|
|
318
561
|
nav: navMessages["zh-CN"],
|
|
319
562
|
numberInput: numberInputMessages["zh-CN"],
|
|
320
563
|
pagination: paginationMessages["zh-CN"],
|
|
321
564
|
selector: selectorMessages["zh-CN"],
|
|
565
|
+
stepper: stepperMessages["zh-CN"],
|
|
566
|
+
table: tableMessages["zh-CN"],
|
|
567
|
+
thumbnail: thumbnailMessages["zh-CN"],
|
|
568
|
+
timeInput: timeInputMessages["zh-CN"],
|
|
569
|
+
timestamp: timestampMessages["zh-CN"],
|
|
322
570
|
token: tokenMessages["zh-CN"],
|
|
323
571
|
tokenizer: tokenizerMessages["zh-CN"],
|
|
572
|
+
treeList: treeListMessages["zh-CN"],
|
|
324
573
|
typeahead: typeaheadMessages["zh-CN"]
|
|
325
574
|
}
|
|
326
575
|
};
|
|
@@ -344,4 +593,4 @@ function useAstryxMessages() {
|
|
|
344
593
|
return computed(() => astryxMessages[locale.value]);
|
|
345
594
|
}
|
|
346
595
|
//#endregion
|
|
347
|
-
export { useAstryxMessages as a, useAstryxLocale as i, normalizeLocale as n,
|
|
596
|
+
export { useAstryxMessages as a, useAstryxLocale as i, normalizeLocale as n, provideAstryxLocale as r, astryxLocaleKey as t };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { r as ResizableProps } from "./useResizable-CeESZS1v.js";
|
|
2
|
+
import { VNodeChild } from "vue";
|
|
3
|
+
//#region src/Resizable/types.d.ts
|
|
4
|
+
type ResizeDirection = 'horizontal' | 'vertical';
|
|
5
|
+
type ResizePosition = 'inline' | 'overlay';
|
|
6
|
+
type ResizePillPlacement = 'auto' | 'start' | 'end' | 'center';
|
|
7
|
+
interface ResizeHandleProps {
|
|
8
|
+
/** 拖拽方向。horizontal 改宽度,vertical 改高度。 @default 'horizontal' */
|
|
9
|
+
direction?: ResizeDirection;
|
|
10
|
+
/** inline 占一格,overlay 贴在父级边缘。 @default 'inline' */
|
|
11
|
+
position?: ResizePosition;
|
|
12
|
+
/** 面板在结束边时把拖拽方向反过来。 @default false */
|
|
13
|
+
isReversed?: boolean;
|
|
14
|
+
/** @default false */
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
/** 画出 1px 分隔线。线本身就是把手。 @default false */
|
|
17
|
+
hasDivider?: boolean;
|
|
18
|
+
/** 静止时也显示握把。 @default true */
|
|
19
|
+
isAlwaysVisible?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* 握把相对分隔线的位置。auto 靠面板一侧,面板收到 0 时翻到另一侧。
|
|
22
|
+
* @default 'auto'
|
|
23
|
+
*/
|
|
24
|
+
pillPlacement?: ResizePillPlacement;
|
|
25
|
+
/** 分隔条的无障碍名称。不传时用当前语言的默认文案。 */
|
|
26
|
+
label?: string;
|
|
27
|
+
resizable?: ResizableProps;
|
|
28
|
+
}
|
|
29
|
+
interface ResizeHandleSlots {
|
|
30
|
+
default?: () => VNodeChild;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/Resizable/ResizeHandle.vue.d.ts
|
|
34
|
+
type __VLS_Slots = ResizeHandleSlots;
|
|
35
|
+
declare const __VLS_base: import("vue").DefineComponent<ResizeHandleProps, {
|
|
36
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
37
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResizeHandleProps> & Readonly<{}>, {
|
|
38
|
+
isDisabled: boolean;
|
|
39
|
+
position: ResizePosition;
|
|
40
|
+
direction: ResizeDirection;
|
|
41
|
+
isReversed: boolean;
|
|
42
|
+
hasDivider: boolean;
|
|
43
|
+
isAlwaysVisible: boolean;
|
|
44
|
+
pillPlacement: ResizePillPlacement;
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
47
|
+
declare const _default: typeof __VLS_export;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
//#endregion
|
|
54
|
+
export { ResizePillPlacement as a, ResizeHandleSlots as i, ResizeDirection as n, ResizePosition as o, ResizeHandleProps as r, _default as t };
|
|
@@ -34,11 +34,11 @@ declare const __VLS_export: import("vue").DefineComponent<NumberInputProps, {},
|
|
|
34
34
|
onChange?: ((value: number | null) => any) | undefined;
|
|
35
35
|
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
|
-
size: "
|
|
37
|
+
size: "md" | "sm" | "lg";
|
|
38
|
+
step: number;
|
|
38
39
|
modelValue: number | null;
|
|
39
40
|
placeholder: string;
|
|
40
41
|
disabled: boolean;
|
|
41
|
-
step: number;
|
|
42
42
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
43
|
declare const _default: typeof __VLS_export;
|
|
44
44
|
//#endregion
|
|
@@ -8,13 +8,13 @@ declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {
|
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
9
9
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
|
-
|
|
12
|
-
elevation: ButtonElevation;
|
|
11
|
+
type: "button" | "reset" | "submit";
|
|
13
12
|
isDisabled: boolean;
|
|
14
|
-
|
|
13
|
+
elevation: ButtonElevation;
|
|
15
14
|
isLoading: boolean;
|
|
15
|
+
isIconOnly: boolean;
|
|
16
|
+
isInterruptible: boolean;
|
|
16
17
|
loadingLabel: string;
|
|
17
|
-
type: "button" | "reset" | "submit";
|
|
18
18
|
variant: ButtonVariant;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as ButtonProps } from "./types-WlmsNL1I.js";
|
|
2
|
-
import { n as LayerPlacement, t as LayerAlignment } from "./position-DFW5ymAF.js";
|
|
3
2
|
import { c as ItemTarget } from "./types-CAZY4Xua.js";
|
|
3
|
+
import { n as LayerPlacement, t as LayerAlignment } from "./position-DFW5ymAF.js";
|
|
4
4
|
import { Component, ComputedRef, InjectionKey, VNodeChild } from "vue";
|
|
5
5
|
//#region src/DropdownMenu/types.d.ts
|
|
6
6
|
/** Size of the menu, derived from the trigger button's size. */
|
|
@@ -35,8 +35,8 @@ type __VLS_Slots$1 = {
|
|
|
35
35
|
default: () => unknown;
|
|
36
36
|
};
|
|
37
37
|
declare const __VLS_base$1: import("vue").DefineComponent<StackItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StackItemProps> & Readonly<{}>, {
|
|
38
|
-
as: StackElement;
|
|
39
38
|
size: StackItemSize;
|
|
39
|
+
as: StackElement;
|
|
40
40
|
isScrollable: boolean;
|
|
41
41
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
42
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { a as SearchableItem, i as SearchSource } from "./useAsyncSource-xpQovjV_.js";
|
|
2
|
+
import { VNode } from "vue";
|
|
3
|
+
//#region src/CommandPalette/types.d.ts
|
|
4
|
+
interface CommandPaletteProps<T extends SearchableItem = SearchableItem> {
|
|
5
|
+
/** Whether the palette is open. */
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
/** Where commands come from. An empty query calls `bootstrap`. */
|
|
8
|
+
searchSource: SearchSource<T>;
|
|
9
|
+
/**
|
|
10
|
+
* Render in the page flow instead of a modal dialog. Docs use this for the
|
|
11
|
+
* preview.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
isInline?: boolean;
|
|
15
|
+
/** Accessible name of the dialog. */
|
|
16
|
+
label?: string;
|
|
17
|
+
/** @default 640 */
|
|
18
|
+
width?: number | string;
|
|
19
|
+
/** @default 480 */
|
|
20
|
+
maxHeight?: number | string;
|
|
21
|
+
/** Shown when a query returns nothing. */
|
|
22
|
+
emptySearchText?: string;
|
|
23
|
+
/** Shown before the source has anything to list. */
|
|
24
|
+
emptyBootstrapText?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Selected id in picker mode. Bind with `v-model:value`.
|
|
27
|
+
*/
|
|
28
|
+
value?: string;
|
|
29
|
+
}
|
|
30
|
+
interface CommandPaletteEmits {
|
|
31
|
+
openChange: [isOpen: boolean];
|
|
32
|
+
}
|
|
33
|
+
interface CommandPaletteItemSlotProps<T extends SearchableItem = SearchableItem> {
|
|
34
|
+
item: T;
|
|
35
|
+
isSelected: boolean;
|
|
36
|
+
}
|
|
37
|
+
interface CommandPaletteSlots<T extends SearchableItem = SearchableItem> {
|
|
38
|
+
input?: () => VNode[];
|
|
39
|
+
footer?: () => VNode[];
|
|
40
|
+
item?: (props: CommandPaletteItemSlotProps<T>) => VNode[];
|
|
41
|
+
}
|
|
42
|
+
interface CommandPaletteInputProps {
|
|
43
|
+
placeholder?: string;
|
|
44
|
+
label?: string;
|
|
45
|
+
/** @default true */
|
|
46
|
+
hasAutoFocus?: boolean;
|
|
47
|
+
}
|
|
48
|
+
interface CommandPaletteListProps {
|
|
49
|
+
label?: string;
|
|
50
|
+
}
|
|
51
|
+
interface CommandPaletteGroupProps {
|
|
52
|
+
heading: string;
|
|
53
|
+
}
|
|
54
|
+
interface CommandPaletteItemProps {
|
|
55
|
+
value: string;
|
|
56
|
+
isDisabled?: boolean;
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/CommandPalette/CommandPalette.vue.d.ts
|
|
60
|
+
declare const __VLS_export$6: <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<{
|
|
61
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(CommandPaletteProps<T> & {
|
|
62
|
+
value?: string | undefined;
|
|
63
|
+
}) & {
|
|
64
|
+
"onUpdate:value"?: ((value: string | undefined) => any) | undefined;
|
|
65
|
+
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
66
|
+
}> & (typeof globalThis extends {
|
|
67
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
68
|
+
} ? P : {});
|
|
69
|
+
expose: (exposed: {}) => void;
|
|
70
|
+
attrs: any;
|
|
71
|
+
slots: CommandPaletteSlots<T>;
|
|
72
|
+
emit: ((evt: "openChange", isOpen: boolean) => void) & ((event: "update:value", value: string | undefined) => void);
|
|
73
|
+
}>) => import("vue").VNode & {
|
|
74
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
75
|
+
};
|
|
76
|
+
declare const _default$6: typeof __VLS_export$6;
|
|
77
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/CommandPalette/CommandPaletteEmpty.vue.d.ts
|
|
80
|
+
declare var __VLS_1$4: {};
|
|
81
|
+
type __VLS_Slots$5 = {} & {
|
|
82
|
+
default?: (props: typeof __VLS_1$4) => any;
|
|
83
|
+
};
|
|
84
|
+
declare const __VLS_base$5: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
85
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
86
|
+
declare const _default$5: typeof __VLS_export$5;
|
|
87
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
88
|
+
new (): {
|
|
89
|
+
$slots: S;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/CommandPalette/CommandPaletteFooter.vue.d.ts
|
|
94
|
+
declare var __VLS_1$3: {};
|
|
95
|
+
type __VLS_Slots$4 = {} & {
|
|
96
|
+
default?: (props: typeof __VLS_1$3) => any;
|
|
97
|
+
};
|
|
98
|
+
declare const __VLS_base$4: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
99
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
100
|
+
declare const _default$4: typeof __VLS_export$4;
|
|
101
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
102
|
+
new (): {
|
|
103
|
+
$slots: S;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/CommandPalette/CommandPaletteGroup.vue.d.ts
|
|
108
|
+
declare var __VLS_1$2: {};
|
|
109
|
+
type __VLS_Slots$3 = {} & {
|
|
110
|
+
default?: (props: typeof __VLS_1$2) => any;
|
|
111
|
+
};
|
|
112
|
+
declare const __VLS_base$3: import("vue").DefineComponent<CommandPaletteGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CommandPaletteGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
113
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
114
|
+
declare const _default$3: typeof __VLS_export$3;
|
|
115
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
116
|
+
new (): {
|
|
117
|
+
$slots: S;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/CommandPalette/CommandPaletteInput.vue.d.ts
|
|
122
|
+
declare var __VLS_6: {};
|
|
123
|
+
type __VLS_Slots$2 = {} & {
|
|
124
|
+
end?: (props: typeof __VLS_6) => any;
|
|
125
|
+
};
|
|
126
|
+
declare const __VLS_base$2: import("vue").DefineComponent<CommandPaletteInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CommandPaletteInputProps> & Readonly<{}>, {
|
|
127
|
+
hasAutoFocus: boolean;
|
|
128
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
129
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
130
|
+
declare const _default$2: typeof __VLS_export$2;
|
|
131
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
132
|
+
new (): {
|
|
133
|
+
$slots: S;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/CommandPalette/CommandPaletteItem.vue.d.ts
|
|
138
|
+
declare var __VLS_1$1: {};
|
|
139
|
+
type __VLS_Slots$1 = {} & {
|
|
140
|
+
default?: (props: typeof __VLS_1$1) => any;
|
|
141
|
+
};
|
|
142
|
+
declare const __VLS_base$1: import("vue").DefineComponent<CommandPaletteItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CommandPaletteItemProps> & Readonly<{}>, {
|
|
143
|
+
isDisabled: boolean;
|
|
144
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
145
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
146
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
147
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
148
|
+
new (): {
|
|
149
|
+
$slots: S;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/CommandPalette/CommandPaletteList.vue.d.ts
|
|
154
|
+
declare var __VLS_1: {};
|
|
155
|
+
type __VLS_Slots = {} & {
|
|
156
|
+
default?: (props: typeof __VLS_1) => any;
|
|
157
|
+
};
|
|
158
|
+
declare const __VLS_base: import("vue").DefineComponent<CommandPaletteListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CommandPaletteListProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
159
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
160
|
+
declare const _default: typeof __VLS_export;
|
|
161
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
162
|
+
new (): {
|
|
163
|
+
$slots: S;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
//#endregion
|
|
167
|
+
export { _default$4 as a, CommandPaletteEmits as c, CommandPaletteItemProps as d, CommandPaletteItemSlotProps as f, CommandPaletteSlots as h, _default$3 as i, CommandPaletteGroupProps as l, CommandPaletteProps as m, _default$1 as n, _default$5 as o, CommandPaletteListProps as p, _default$2 as r, _default$6 as s, _default as t, CommandPaletteInputProps as u };
|
|
@@ -57,10 +57,10 @@ interface TypeaheadSlots<T extends SearchableItem = SearchableItem> {
|
|
|
57
57
|
//#region src/Typeahead/Typeahead.vue.d.ts
|
|
58
58
|
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<{
|
|
59
59
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<TypeaheadProps<T> & {
|
|
60
|
-
onSearch?: ((query: string) => any) | undefined;
|
|
61
60
|
onChange?: ((value: T | null) => any) | undefined;
|
|
62
|
-
|
|
61
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
63
62
|
"onUpdate:modelValue"?: ((value: T | null) => any) | undefined;
|
|
63
|
+
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
64
64
|
}> & (typeof globalThis extends {
|
|
65
65
|
__VLS_PROPS_FALLBACK: infer P;
|
|
66
66
|
} ? P : {});
|
|
@@ -70,7 +70,7 @@ declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<
|
|
|
70
70
|
}>) => void;
|
|
71
71
|
attrs: any;
|
|
72
72
|
slots: TypeaheadSlots<T>;
|
|
73
|
-
emit: ((evt: "
|
|
73
|
+
emit: ((evt: "change", value: T | null) => void) & ((evt: "search", query: string) => void) & ((evt: "update:modelValue", value: T | null) => void) & ((evt: "openChange", isOpen: boolean) => void);
|
|
74
74
|
}>) => import("vue").VNode & {
|
|
75
75
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
76
76
|
};
|