@astryx-vue/core 0.1.0 → 0.1.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/README.md +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/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-BEyrkUtr.js} +2 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bfd-YPAK.js → Chat-CO3mCs9A.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +2 -0
- package/dist/CheckboxList/index.js +2 -0
- package/dist/CheckboxList-BL2sDOWK.js +174 -0
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-DaDd1teb.js → Citation-BqwJvw7o.js} +2 -2
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CK-NWM_1.js → CodeBlock-BQdooQy2.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-ByXCGhT8.js → Collapsible-BYg9soTk.js} +1 -1
- 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-BOIb0zAp.js} +18 -10
- package/dist/DateRangeInput/index.d.ts +2 -0
- package/dist/DateRangeInput/index.js +2 -0
- package/dist/DateRangeInput-DLcbgUBi.js +385 -0
- package/dist/DateTimeInput/index.d.ts +2 -0
- package/dist/DateTimeInput/index.js +2 -0
- package/dist/DateTimeInput-RitYX_Yx.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 +1 -2
- 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-CYvEV503.js +238 -0
- package/dist/{Icon-B6qNgBP9.js → Icon-5MdZQ18k.js} +10 -2
- 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-Dnlp8cVx.js} +2 -2
- package/dist/MetadataList/index.d.ts +2 -0
- package/dist/MetadataList/index.js +2 -0
- package/dist/MetadataList-DIsqS1Qb.js +124 -0
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-BK2iRJF-.js → MobileNavToggle-aUZiDwHm.js} +1 -1
- 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-Bh8or2S6.js} +2 -2
- 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-C3S-4dIu.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-B2T5UtiQ.js → OverflowList-Kr4iJrNV.js} +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-qCgNwwhr.js → Pagination-BRStpeSB.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +2 -2
- package/dist/Radio/index.js +2 -2
- package/dist/{Radio-BioQfwHQ.js → RadioGroup-DS6oTV_j.js} +21 -88
- package/dist/RadioList/index.d.ts +2 -0
- package/dist/RadioList/index.js +2 -0
- package/dist/RadioList-pwr93I-z.js +122 -0
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-C6sPJMtH.js → Selector-DvEUIVEC.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-D9lnn-sM.js → SideNav-B7LX4RcP.js} +2 -2
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Table/index.d.ts +2 -0
- package/dist/Table/index.js +2 -0
- package/dist/Table-D5zWaITo.js +967 -0
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Thumbnail/index.d.ts +2 -0
- package/dist/Thumbnail/index.js +2 -0
- package/dist/Thumbnail-DMOgWncm.js +163 -0
- package/dist/TimeField-DeQ1ukHl.js +214 -0
- package/dist/TimeInput/index.d.ts +2 -0
- package/dist/TimeInput/index.js +2 -0
- package/dist/TimeInput-jb1nLqZk.js +121 -0
- package/dist/Timestamp/index.d.ts +2 -0
- package/dist/Timestamp/index.js +2 -0
- package/dist/Timestamp-DrWwVQBL.js +465 -0
- 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-Ctf9jekS.js → Token-CV2J94bn.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-D5MPgau0.js → Tokenizer-DF9r4hTW.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-CjbMCbkC.js → TopNav-BH_s3uap.js} +3 -3
- package/dist/TreeList/index.d.ts +2 -0
- package/dist/TreeList/index.js +2 -0
- package/dist/TreeList-D9cR-w7r.js +506 -0
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-BMoU3hfx.js → Typeahead-s4DC1Qem.js} +2 -2
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +4 -1
- package/dist/{locale-56lkR7OK.js → context-BshXcNYX.js} +183 -18
- package/dist/{index-DjOdQv5B.d.ts → index--dh0s8Li.d.ts} +1 -1
- package/dist/{index-Cdi82rTW.d.ts → index-12ObcW99.d.ts} +6 -2
- package/dist/{index-JeZ0YTyd.d.ts → index-5R_pi3eT.d.ts} +2 -2
- package/dist/{index-Cc2HGODZ.d.ts → index-AkMWQ97a.d.ts} +3 -3
- 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-CxspvLBl.d.ts → index-Bc0dgVM5.d.ts} +5 -5
- package/dist/{index-4FM5lQdV.d.ts → index-BlWLperN.d.ts} +1 -1
- package/dist/{index-DBcbfStA.d.ts → index-BnNh5Iml.d.ts} +84 -1
- package/dist/{index-Cp0NlzQv.d.ts → index-Bovw9_8d.d.ts} +1 -1
- package/dist/{index-CnVbMebA.d.ts → index-Bqb_Fyju.d.ts} +3 -3
- 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-C0S2Xzoi.d.ts → index-CNcQmDrK.d.ts} +93 -0
- package/dist/{index-CaHXYQ_E.d.ts → index-CQ9F1f_F.d.ts} +535 -137
- package/dist/index-CR6sUmRT.d.ts +356 -0
- package/dist/index-C_2Z65Rp.d.ts +67 -0
- package/dist/{index-Dw21t7Uf.d.ts → index-CsJpQElv.d.ts} +1 -1
- package/dist/index-CtlkhQ55.d.ts +36 -0
- package/dist/{index-C8NW9xre.d.ts → index-D3V7yRUP.d.ts} +7 -7
- package/dist/index-Da7Jm8Ht.d.ts +10 -0
- package/dist/{index-CPhDtlv-.d.ts → index-FEy8qFSD.d.ts} +3 -3
- package/dist/{index-BeJqhW4l.d.ts → index-Q4gqBSIZ.d.ts} +2 -2
- package/dist/{index-Cz9ZHVf6.d.ts → index-g03bmR4K.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-utZGF4GR.d.ts +79 -0
- package/dist/index.d.ts +54 -49
- package/dist/index.js +86 -64
- 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/useFileSelection-BPtaegqK.js +58 -0
- package/dist/useMonthGrid-CmJsZTcB.js +139 -0
- package/dist/useTimeValue-DWk6oTAZ.js +113 -0
- package/package.json +49 -1
- package/styles/bordered-control.css +87 -0
- package/styles/calendar.css +8 -2
- package/styles/checkbox-list.css +15 -0
- package/styles/date-range-input.css +163 -0
- package/styles/date-time-input.css +40 -0
- package/styles/field.css +2 -3
- package/styles/file-input.css +87 -0
- package/styles/icon.css +32 -0
- package/styles/metadata-list.css +107 -0
- package/styles/number-input.css +6 -0
- package/styles/radio.css +32 -0
- package/styles/selector.css +10 -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 +11 -0
|
@@ -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": {
|
|
@@ -113,6 +96,60 @@ const dateInputMessages = {
|
|
|
113
96
|
}
|
|
114
97
|
};
|
|
115
98
|
//#endregion
|
|
99
|
+
//#region src/locale/messages/date-range-input.ts
|
|
100
|
+
const dateRangeInputMessages = {
|
|
101
|
+
"en": {
|
|
102
|
+
placeholder: "Select date range",
|
|
103
|
+
dialogLabel: "Choose date range",
|
|
104
|
+
clear: (label) => clearLabel(label, "Clear", "Clear ")
|
|
105
|
+
},
|
|
106
|
+
"zh-CN": {
|
|
107
|
+
placeholder: "选择日期区间",
|
|
108
|
+
dialogLabel: "选择日期区间",
|
|
109
|
+
clear: (label) => clearLabel(label, "清除", "清除")
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/locale/messages/date-time-input.ts
|
|
114
|
+
const dateTimeInputMessages = {
|
|
115
|
+
"en": {
|
|
116
|
+
dateLabel: "Date",
|
|
117
|
+
timeLabel: "Time",
|
|
118
|
+
clear: (label) => clearLabel(label, "Clear", "Clear ")
|
|
119
|
+
},
|
|
120
|
+
"zh-CN": {
|
|
121
|
+
dateLabel: "日期",
|
|
122
|
+
timeLabel: "时间",
|
|
123
|
+
clear: (label) => clearLabel(label, "清除", "清除")
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/locale/messages/file-input.ts
|
|
128
|
+
const fileInputMessages = {
|
|
129
|
+
"en": {
|
|
130
|
+
placeholder: "Choose file",
|
|
131
|
+
placeholderMultiple: "Choose files",
|
|
132
|
+
clear: "Clear",
|
|
133
|
+
required: "Required",
|
|
134
|
+
fileSelected: (fileName) => `${fileName} selected`,
|
|
135
|
+
filesSelected: (count) => `${count} files selected`,
|
|
136
|
+
errorType: (fileName) => `${fileName} is not an accepted file type`,
|
|
137
|
+
errorSize: (fileName, maxSize) => `${fileName} exceeds ${maxSize}`,
|
|
138
|
+
errorCount: (maxFiles) => `You can select up to ${maxFiles} files`
|
|
139
|
+
},
|
|
140
|
+
"zh-CN": {
|
|
141
|
+
placeholder: "选择文件",
|
|
142
|
+
placeholderMultiple: "选择文件",
|
|
143
|
+
clear: "清除",
|
|
144
|
+
required: "必填",
|
|
145
|
+
fileSelected: (fileName) => `已选择 ${fileName}`,
|
|
146
|
+
filesSelected: (count) => `已选择 ${count} 个文件`,
|
|
147
|
+
errorType: (fileName) => `${fileName} 不是允许的文件类型`,
|
|
148
|
+
errorSize: (fileName, maxSize) => `${fileName} 超过 ${maxSize}`,
|
|
149
|
+
errorCount: (maxFiles) => `最多选择 ${maxFiles} 个文件`
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
//#endregion
|
|
116
153
|
//#region src/locale/messages/markdown.ts
|
|
117
154
|
const markdownMessages = {
|
|
118
155
|
"en": {
|
|
@@ -129,6 +166,18 @@ const markdownMessages = {
|
|
|
129
166
|
}
|
|
130
167
|
};
|
|
131
168
|
//#endregion
|
|
169
|
+
//#region src/locale/messages/metadata-list.ts
|
|
170
|
+
const metadataListMessages = {
|
|
171
|
+
"en": {
|
|
172
|
+
showMore: "Show more",
|
|
173
|
+
showLess: "Show less"
|
|
174
|
+
},
|
|
175
|
+
"zh-CN": {
|
|
176
|
+
showMore: "显示更多",
|
|
177
|
+
showLess: "收起"
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
//#endregion
|
|
132
181
|
//#region src/locale/messages/multi-selector.ts
|
|
133
182
|
const multiSelectorMessages = {
|
|
134
183
|
"en": {
|
|
@@ -237,6 +286,98 @@ const selectorMessages = {
|
|
|
237
286
|
}
|
|
238
287
|
};
|
|
239
288
|
//#endregion
|
|
289
|
+
//#region src/locale/messages/table.ts
|
|
290
|
+
const tableMessages = {
|
|
291
|
+
"en": {
|
|
292
|
+
label: "Table",
|
|
293
|
+
noData: "No data",
|
|
294
|
+
filterAll: "All",
|
|
295
|
+
reset: "Reset",
|
|
296
|
+
apply: "Apply",
|
|
297
|
+
selectAllRows: "Select all rows",
|
|
298
|
+
selectRow: "Select row",
|
|
299
|
+
selectRowNamed: (label) => `Select ${label}`,
|
|
300
|
+
sortAscending: "Sort ascending",
|
|
301
|
+
sortDescending: "Sort descending",
|
|
302
|
+
clearSort: "Clear sort",
|
|
303
|
+
sortedAscending: "Ascending",
|
|
304
|
+
sortedDescending: "Descending",
|
|
305
|
+
sortBy: (label) => `Sort by ${label}`,
|
|
306
|
+
bulkActionsLabel: "Bulk actions",
|
|
307
|
+
clearAll: "Unselect All",
|
|
308
|
+
selectedCount: (count) => `${count} selected`,
|
|
309
|
+
paginationLabel: "Table pagination"
|
|
310
|
+
},
|
|
311
|
+
"zh-CN": {
|
|
312
|
+
label: "表格",
|
|
313
|
+
noData: "暂无数据",
|
|
314
|
+
filterAll: "全部",
|
|
315
|
+
reset: "重置",
|
|
316
|
+
apply: "应用",
|
|
317
|
+
selectAllRows: "选择所有行",
|
|
318
|
+
selectRow: "选择行",
|
|
319
|
+
selectRowNamed: (label) => `选择 ${label}`,
|
|
320
|
+
sortAscending: "升序排序",
|
|
321
|
+
sortDescending: "降序排序",
|
|
322
|
+
clearSort: "清除排序",
|
|
323
|
+
sortedAscending: "升序",
|
|
324
|
+
sortedDescending: "降序",
|
|
325
|
+
sortBy: (label) => `按 ${label} 排序`,
|
|
326
|
+
bulkActionsLabel: "批量操作",
|
|
327
|
+
clearAll: "取消全选",
|
|
328
|
+
selectedCount: (count) => `已选择 ${count} 项`,
|
|
329
|
+
paginationLabel: "表格分页"
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
//#endregion
|
|
333
|
+
//#region src/locale/messages/thumbnail.ts
|
|
334
|
+
const thumbnailMessages = {
|
|
335
|
+
"en": {
|
|
336
|
+
remove: (accessibleName) => `Remove ${accessibleName}`,
|
|
337
|
+
open: (accessibleName) => `Open ${accessibleName}`,
|
|
338
|
+
fallbackName: "Thumbnail"
|
|
339
|
+
},
|
|
340
|
+
"zh-CN": {
|
|
341
|
+
remove: (accessibleName) => `移除 ${accessibleName}`,
|
|
342
|
+
open: (accessibleName) => `打开 ${accessibleName}`,
|
|
343
|
+
fallbackName: "缩略图"
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region src/locale/messages/time-input.ts
|
|
348
|
+
const timeInputMessages = {
|
|
349
|
+
"en": {
|
|
350
|
+
placeholder: "Select a time",
|
|
351
|
+
formatHint12: "e.g., 2:30 PM",
|
|
352
|
+
formatHint24: "e.g., 14:30",
|
|
353
|
+
outOfRange: "Time is outside the allowed range",
|
|
354
|
+
clear: (label) => clearLabel(label, "Clear", "Clear ")
|
|
355
|
+
},
|
|
356
|
+
"zh-CN": {
|
|
357
|
+
placeholder: "选择时间",
|
|
358
|
+
formatHint12: "例如 2:30 PM",
|
|
359
|
+
formatHint24: "例如 14:30",
|
|
360
|
+
outOfRange: "时间不在允许的范围内",
|
|
361
|
+
clear: (label) => clearLabel(label, "清除", "清除")
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
//#endregion
|
|
365
|
+
//#region src/locale/messages/timestamp.ts
|
|
366
|
+
const timestampMessages = {
|
|
367
|
+
"en": {
|
|
368
|
+
copyValue: (value) => `Copy ${value}`,
|
|
369
|
+
copy: "Copy",
|
|
370
|
+
copied: "Copied",
|
|
371
|
+
detailsLabel: "Timestamp details"
|
|
372
|
+
},
|
|
373
|
+
"zh-CN": {
|
|
374
|
+
copyValue: (value) => `复制 ${value}`,
|
|
375
|
+
copy: "复制",
|
|
376
|
+
copied: "已复制",
|
|
377
|
+
detailsLabel: "时间戳详情"
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
//#endregion
|
|
240
381
|
//#region src/locale/messages/token.ts
|
|
241
382
|
const tokenMessages = {
|
|
242
383
|
"en": { remove: (label) => `Remove ${label}` },
|
|
@@ -271,6 +412,12 @@ const tokenizerMessages = {
|
|
|
271
412
|
}
|
|
272
413
|
};
|
|
273
414
|
//#endregion
|
|
415
|
+
//#region src/locale/messages/tree-list.ts
|
|
416
|
+
const treeListMessages = {
|
|
417
|
+
"en": { toggleChildren: "Toggle children" },
|
|
418
|
+
"zh-CN": { toggleChildren: "切换子项" }
|
|
419
|
+
};
|
|
420
|
+
//#endregion
|
|
274
421
|
//#region src/locale/messages/typeahead.ts
|
|
275
422
|
const typeaheadMessages = {
|
|
276
423
|
"en": {
|
|
@@ -298,14 +445,23 @@ const astryxMessages = {
|
|
|
298
445
|
chat: chatMessages.en,
|
|
299
446
|
citation: citationMessages.en,
|
|
300
447
|
dateInput: dateInputMessages.en,
|
|
448
|
+
dateRangeInput: dateRangeInputMessages.en,
|
|
449
|
+
dateTimeInput: dateTimeInputMessages.en,
|
|
450
|
+
fileInput: fileInputMessages.en,
|
|
301
451
|
markdown: markdownMessages.en,
|
|
452
|
+
metadataList: metadataListMessages.en,
|
|
302
453
|
multiSelector: multiSelectorMessages.en,
|
|
303
454
|
nav: navMessages.en,
|
|
304
455
|
numberInput: numberInputMessages.en,
|
|
305
456
|
pagination: paginationMessages.en,
|
|
306
457
|
selector: selectorMessages.en,
|
|
458
|
+
table: tableMessages.en,
|
|
459
|
+
thumbnail: thumbnailMessages.en,
|
|
460
|
+
timeInput: timeInputMessages.en,
|
|
461
|
+
timestamp: timestampMessages.en,
|
|
307
462
|
token: tokenMessages.en,
|
|
308
463
|
tokenizer: tokenizerMessages.en,
|
|
464
|
+
treeList: treeListMessages.en,
|
|
309
465
|
typeahead: typeaheadMessages.en
|
|
310
466
|
},
|
|
311
467
|
"zh-CN": {
|
|
@@ -313,14 +469,23 @@ const astryxMessages = {
|
|
|
313
469
|
chat: chatMessages["zh-CN"],
|
|
314
470
|
citation: citationMessages["zh-CN"],
|
|
315
471
|
dateInput: dateInputMessages["zh-CN"],
|
|
472
|
+
dateRangeInput: dateRangeInputMessages["zh-CN"],
|
|
473
|
+
dateTimeInput: dateTimeInputMessages["zh-CN"],
|
|
474
|
+
fileInput: fileInputMessages["zh-CN"],
|
|
316
475
|
markdown: markdownMessages["zh-CN"],
|
|
476
|
+
metadataList: metadataListMessages["zh-CN"],
|
|
317
477
|
multiSelector: multiSelectorMessages["zh-CN"],
|
|
318
478
|
nav: navMessages["zh-CN"],
|
|
319
479
|
numberInput: numberInputMessages["zh-CN"],
|
|
320
480
|
pagination: paginationMessages["zh-CN"],
|
|
321
481
|
selector: selectorMessages["zh-CN"],
|
|
482
|
+
table: tableMessages["zh-CN"],
|
|
483
|
+
thumbnail: thumbnailMessages["zh-CN"],
|
|
484
|
+
timeInput: timeInputMessages["zh-CN"],
|
|
485
|
+
timestamp: timestampMessages["zh-CN"],
|
|
322
486
|
token: tokenMessages["zh-CN"],
|
|
323
487
|
tokenizer: tokenizerMessages["zh-CN"],
|
|
488
|
+
treeList: treeListMessages["zh-CN"],
|
|
324
489
|
typeahead: typeaheadMessages["zh-CN"]
|
|
325
490
|
}
|
|
326
491
|
};
|
|
@@ -344,4 +509,4 @@ function useAstryxMessages() {
|
|
|
344
509
|
return computed(() => astryxMessages[locale.value]);
|
|
345
510
|
}
|
|
346
511
|
//#endregion
|
|
347
|
-
export { useAstryxMessages as a, useAstryxLocale as i, normalizeLocale as n,
|
|
512
|
+
export { useAstryxMessages as a, useAstryxLocale as i, normalizeLocale as n, provideAstryxLocale as r, astryxLocaleKey as t };
|
|
@@ -197,10 +197,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
197
197
|
}>> & Readonly<{}>, {
|
|
198
198
|
display: MarkdownDisplay | undefined;
|
|
199
199
|
content: string;
|
|
200
|
+
density: MarkdownDensity | undefined;
|
|
200
201
|
contentAlign: MarkdownAlign | undefined;
|
|
201
202
|
contentWidth: string | number | undefined;
|
|
202
203
|
components: MarkdownComponents | undefined;
|
|
203
|
-
density: MarkdownDensity | undefined;
|
|
204
204
|
headingLevelStart: MarkdownHeadingLevel | undefined;
|
|
205
205
|
onLinkClick: ((href: string, event: MouseEvent) => void | false) | undefined;
|
|
206
206
|
sources: Record<string, MarkdownSource> | undefined;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
//#region src/DateInput/types.d.ts
|
|
2
2
|
interface DateInputProps {
|
|
3
|
+
/** 输入框 id。不传时组件自己生成。 */
|
|
4
|
+
id?: string;
|
|
5
|
+
/** 额外的无障碍描述,接在字段说明后面。 */
|
|
6
|
+
describedBy?: string;
|
|
3
7
|
/** 当前选中的日期 */
|
|
4
8
|
modelValue?: Date | null;
|
|
5
9
|
/** 占位符文本 */
|
|
@@ -47,10 +51,10 @@ declare const __VLS_base: import("vue").DefineComponent<DateInputProps, {}, {},
|
|
|
47
51
|
onChange?: ((value: Date | null) => any) | undefined;
|
|
48
52
|
"onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
|
|
49
53
|
}>, {
|
|
50
|
-
size: "
|
|
54
|
+
size: "md" | "sm" | "lg";
|
|
51
55
|
modelValue: Date | null;
|
|
56
|
+
status: "default" | "error" | "warning" | "success";
|
|
52
57
|
disabled: boolean;
|
|
53
|
-
status: "default" | "success" | "warning" | "error";
|
|
54
58
|
clearable: boolean;
|
|
55
59
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
60
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -32,12 +32,12 @@ declare const __VLS_base$2: import("vue").DefineComponent<ItemProps, {
|
|
|
32
32
|
focus: typeof focus;
|
|
33
33
|
blur: typeof blur;
|
|
34
34
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ItemProps> & Readonly<{}>, {
|
|
35
|
-
as: ItemElement;
|
|
36
35
|
isDisabled: boolean;
|
|
36
|
+
as: ItemElement;
|
|
37
37
|
align: ItemAlign;
|
|
38
38
|
layout: ItemLayout;
|
|
39
|
-
isSelected: boolean;
|
|
40
39
|
density: ListDensity;
|
|
40
|
+
isSelected: boolean;
|
|
41
41
|
isHighlighted: boolean;
|
|
42
42
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
43
|
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
@@ -62,18 +62,18 @@ interface SelectorSlots {
|
|
|
62
62
|
//#region src/Selector/Selector.vue.d.ts
|
|
63
63
|
type __VLS_Slots = SelectorSlots;
|
|
64
64
|
declare const __VLS_base: import("vue").DefineComponent<SelectorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
65
|
-
search: (query: string) => any;
|
|
66
65
|
change: (value: string | number | null) => any;
|
|
66
|
+
search: (query: string) => any;
|
|
67
67
|
"update:modelValue": (value: string | number | null) => any;
|
|
68
68
|
}, string, import("vue").PublicProps, Readonly<SelectorProps> & Readonly<{
|
|
69
|
-
onSearch?: ((query: string) => any) | undefined;
|
|
70
69
|
onChange?: ((value: string | number | null) => any) | undefined;
|
|
70
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
71
71
|
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
72
72
|
}>, {
|
|
73
73
|
size: SelectorSize;
|
|
74
74
|
modelValue: string | number | null;
|
|
75
|
-
disabled: boolean;
|
|
76
75
|
status: SelectorStatus;
|
|
76
|
+
disabled: boolean;
|
|
77
77
|
clearable: boolean;
|
|
78
78
|
searchable: boolean;
|
|
79
79
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -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>;
|
|
@@ -305,17 +305,17 @@ declare const __VLS_base$3: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
305
305
|
focus: () => void | undefined;
|
|
306
306
|
open: () => void;
|
|
307
307
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
308
|
-
openChange: (isOpen: boolean) => any;
|
|
309
308
|
select: (item: ContextMenuItemData, event: MouseEvent) => any;
|
|
309
|
+
openChange: (isOpen: boolean) => any;
|
|
310
310
|
"update:isOpen": (...args: unknown[]) => any;
|
|
311
311
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
312
|
-
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
313
312
|
onSelect?: ((item: ContextMenuItemData, event: MouseEvent) => any) | undefined;
|
|
313
|
+
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
314
314
|
"onUpdate:isOpen"?: ((...args: unknown[]) => any) | undefined;
|
|
315
315
|
}>, {
|
|
316
|
-
isDisabled: boolean;
|
|
317
316
|
label: string;
|
|
318
317
|
size: ContextMenuSize;
|
|
318
|
+
isDisabled: boolean;
|
|
319
319
|
triggerAs: ContextMenuTriggerElement;
|
|
320
320
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
321
321
|
declare const __VLS_export$4: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
@@ -365,11 +365,11 @@ type __VLS_WithSlots$1<T, S> = T & {
|
|
|
365
365
|
//#region src/ContextMenu/ContextMenuSubMenu.vue.d.ts
|
|
366
366
|
type __VLS_Slots = ContextMenuSubMenuSlots;
|
|
367
367
|
declare const __VLS_base: import("vue").DefineComponent<ContextMenuSubMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
368
|
-
openChange: (isOpen: boolean) => any;
|
|
369
368
|
select: (item: ContextMenuItemData, event: MouseEvent) => any;
|
|
369
|
+
openChange: (isOpen: boolean) => any;
|
|
370
370
|
}, string, import("vue").PublicProps, Readonly<ContextMenuSubMenuProps> & Readonly<{
|
|
371
|
-
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
372
371
|
onSelect?: ((item: ContextMenuItemData, event: MouseEvent) => any) | undefined;
|
|
372
|
+
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
373
373
|
}>, {
|
|
374
374
|
isDisabled: boolean;
|
|
375
375
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -39,7 +39,7 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
|
|
|
39
39
|
onRemove?: ((event: Event) => any) | undefined;
|
|
40
40
|
}>, {
|
|
41
41
|
size: TokenSize;
|
|
42
|
-
color: "default" | "blue" | "cyan" | "
|
|
42
|
+
color: "default" | "blue" | "cyan" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow" | "gray";
|
|
43
43
|
labelHidden: boolean;
|
|
44
44
|
disabled: boolean;
|
|
45
45
|
removable: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "./useClipboard-CU-kfqeJ.js";
|
|
2
2
|
import "./useAsyncSource-xpQovjV_.js";
|
|
3
3
|
import { ComputedRef, MaybeRefOrGetter, Ref } from "vue";
|
|
4
|
+
import { CalendarDate } from "@internationalized/date";
|
|
4
5
|
//#region src/composables/internal/announce.d.ts
|
|
5
6
|
/**
|
|
6
7
|
* 对应原版 Astryx 的 `hooks/useAnnounce`。
|
|
@@ -106,6 +107,10 @@ interface UseChatStreamScrollReturn {
|
|
|
106
107
|
*/
|
|
107
108
|
declare function useChatStreamScroll(options: UseChatStreamScrollOptions): UseChatStreamScrollReturn;
|
|
108
109
|
//#endregion
|
|
110
|
+
//#region src/composables/useCoarsePointer.d.ts
|
|
111
|
+
/** 粗指针(触摸)为 true。服务端和细指针设备为 false。 */
|
|
112
|
+
declare function useCoarsePointer(): ComputedRef<boolean>;
|
|
113
|
+
//#endregion
|
|
109
114
|
//#region src/composables/useCombobox.d.ts
|
|
110
115
|
interface ComboboxOption {
|
|
111
116
|
value: string | number;
|
|
@@ -198,6 +203,30 @@ interface ControllableState<T> {
|
|
|
198
203
|
*/
|
|
199
204
|
declare function useControllableState<T>(options: UseControllableStateOptions<T>): ControllableState<T>;
|
|
200
205
|
//#endregion
|
|
206
|
+
//#region src/composables/useDateRange.d.ts
|
|
207
|
+
interface ISODateRange {
|
|
208
|
+
start: string;
|
|
209
|
+
end: string;
|
|
210
|
+
}
|
|
211
|
+
type WeekStartsOn = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat';
|
|
212
|
+
declare function resolveWeekStart(value: WeekStartsOn | number | undefined): number;
|
|
213
|
+
declare function compareISODate(a: string, b: string): number;
|
|
214
|
+
declare function spanDays(start: string, end: string): number;
|
|
215
|
+
declare function orderRange(a: string, b: string): ISODateRange;
|
|
216
|
+
declare function isSameRange(a: ISODateRange | null, b: ISODateRange | null): boolean;
|
|
217
|
+
declare function isRangeWithinSpan(range: ISODateRange, minRangeSpan?: number, maxRangeSpan?: number): boolean;
|
|
218
|
+
interface RangeClickResult {
|
|
219
|
+
pending: string | null;
|
|
220
|
+
commit: ISODateRange | null;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* 第一次点击记下起点。第二次点击在跨度合法时提交区间。
|
|
224
|
+
* 再次点击起点时,最短跨度允许单日就提交单日,否则取消这次选择。
|
|
225
|
+
*/
|
|
226
|
+
declare function applyRangeClick(pending: string | null, day: string, minRangeSpan?: number, maxRangeSpan?: number): RangeClickResult;
|
|
227
|
+
declare function isDayOutsideSpan(pending: string | null, day: string, minRangeSpan?: number, maxRangeSpan?: number): boolean;
|
|
228
|
+
declare function formatDateRange(range: ISODateRange | null, locale: string): string;
|
|
229
|
+
//#endregion
|
|
201
230
|
//#region src/composables/useDismiss.d.ts
|
|
202
231
|
interface UseDismissOptions {
|
|
203
232
|
/** 要监听点击外部的容器元素 */
|
|
@@ -222,6 +251,26 @@ interface UseDismissOptions {
|
|
|
222
251
|
*/
|
|
223
252
|
declare function useDismiss(options: UseDismissOptions): void;
|
|
224
253
|
//#endregion
|
|
254
|
+
//#region src/composables/useFileSelection.d.ts
|
|
255
|
+
interface FileRejection {
|
|
256
|
+
code: 'type' | 'size' | 'count';
|
|
257
|
+
fileName?: string;
|
|
258
|
+
maxSize?: number;
|
|
259
|
+
maxFiles?: number;
|
|
260
|
+
}
|
|
261
|
+
interface FileSelectionOptions {
|
|
262
|
+
accept?: string;
|
|
263
|
+
maxSize?: number;
|
|
264
|
+
maxFiles?: number;
|
|
265
|
+
isMultiple?: boolean;
|
|
266
|
+
}
|
|
267
|
+
interface FileSelectionResult {
|
|
268
|
+
files: File | File[] | null;
|
|
269
|
+
rejections: FileRejection[];
|
|
270
|
+
}
|
|
271
|
+
declare function formatFileSize(bytes: number): string;
|
|
272
|
+
declare function selectFiles(list: FileList | File[] | null | undefined, options: FileSelectionOptions): FileSelectionResult;
|
|
273
|
+
//#endregion
|
|
225
274
|
//#region src/composables/useFocusTrap.d.ts
|
|
226
275
|
interface UseFocusTrapOptions {
|
|
227
276
|
/** 要陷阱焦点的容器元素 */
|
|
@@ -431,6 +480,16 @@ declare function useLongPress(options: LongPressOptions): LongPressHandlers;
|
|
|
431
480
|
*/
|
|
432
481
|
declare function useMediaQuery(query: string): Ref<boolean>;
|
|
433
482
|
//#endregion
|
|
483
|
+
//#region src/composables/useMonthGrid.d.ts
|
|
484
|
+
declare function toISODate(date: CalendarDate): string;
|
|
485
|
+
declare function parseISODate(value: string): CalendarDate;
|
|
486
|
+
declare function buildMonthGrid(year: number, month: number, weekStartsOn?: WeekStartsOn | number): string[][];
|
|
487
|
+
declare function addMonths(year: number, month: number, amount: number): {
|
|
488
|
+
year: number;
|
|
489
|
+
month: number;
|
|
490
|
+
};
|
|
491
|
+
declare function todayISODate(): string;
|
|
492
|
+
//#endregion
|
|
434
493
|
//#region src/composables/useNumberField.d.ts
|
|
435
494
|
interface UseNumberFieldOptions {
|
|
436
495
|
/** 当前值 */
|
|
@@ -600,6 +659,30 @@ declare function snapToGraphemeBoundary(text: string, offset: number): number;
|
|
|
600
659
|
*/
|
|
601
660
|
declare function useStreamingText(targetText: MaybeRefOrGetter<string>, isStreaming?: MaybeRefOrGetter<boolean>, options?: MaybeRefOrGetter<UseStreamingTextOptions>): ComputedRef<string>;
|
|
602
661
|
//#endregion
|
|
662
|
+
//#region src/composables/useTimeValue.d.ts
|
|
663
|
+
type HourFormat = '12h' | '24h';
|
|
664
|
+
type ISOTimeString = string;
|
|
665
|
+
interface ParsedTime {
|
|
666
|
+
hours: number;
|
|
667
|
+
minutes: number;
|
|
668
|
+
seconds: number;
|
|
669
|
+
}
|
|
670
|
+
declare function parseISOTime(value: string): ParsedTime | null;
|
|
671
|
+
declare function formatISOTime(time: ParsedTime, hasSeconds: boolean): ISOTimeString;
|
|
672
|
+
declare function formatDisplayTime(value: string, hourFormat: HourFormat, hasSeconds: boolean): string;
|
|
673
|
+
declare function parseDisplayTime(text: string, hasSeconds: boolean): ISOTimeString | null;
|
|
674
|
+
declare function shiftTime(value: string, minuteDelta: number, hasSeconds: boolean): ISOTimeString;
|
|
675
|
+
declare function isTimeInRange(value: string, min?: string, max?: string): boolean;
|
|
676
|
+
type TimePresentation = 'text-input' | 'popover' | 'bottom-sheet' | 'native' | 'adaptive-bottom-sheet' | 'adaptive-native';
|
|
677
|
+
type NativePicker = 'touch' | 'always' | 'never';
|
|
678
|
+
declare function resolveTimeSurface(options: {
|
|
679
|
+
presentation?: TimePresentation;
|
|
680
|
+
nativePicker?: NativePicker;
|
|
681
|
+
coarse: boolean;
|
|
682
|
+
hasSeconds: boolean;
|
|
683
|
+
increment: number;
|
|
684
|
+
}): 'text' | 'native';
|
|
685
|
+
//#endregion
|
|
603
686
|
//#region src/composables/useTypeahead.d.ts
|
|
604
687
|
interface UseTypeaheadOptions {
|
|
605
688
|
/** 当前 DOM 顺序上的标签。某一项可以是 null,表示这个下标不能匹配。 */
|
|
@@ -632,4 +715,4 @@ interface UseTypeaheadReturn {
|
|
|
632
715
|
*/
|
|
633
716
|
declare function useTypeahead(options: UseTypeaheadOptions): UseTypeaheadReturn;
|
|
634
717
|
//#endregion
|
|
635
|
-
export {
|
|
718
|
+
export { useFocusTrap as $, NumberField as A, useChatStreamScroll as At, LongPressOptions as B, useRestoreFocus as C, ComboboxOption as Ct, UseOverflowReturn as D, ChatScrollToBottomOptions as Dt, UseOverflowOptions as E, useCoarsePointer as Et, parseISODate as F, AnnounceFn as Ft, useListFocus as G, ListFocus as H, toISODate as I, AnnouncePoliteness as It, GridRovingFocus as J, Hotkey as K, todayISODate as L, useAnnounce as Lt, useNumberField as M, UseChatNewMessagesOptions as Mt, addMonths as N, UseChatNewMessagesReturn as Nt, computeOverflow as O, UseChatStreamScrollOptions as Ot, buildMonthGrid as P, useChatNewMessages as Pt, UseFocusTrapOptions as Q, useMediaQuery as R, UseRestoreFocusOptions as S, Combobox as St, ComputeOverflowResult as T, useCombobox as Tt, ListFocusOrientation as U, useLongPress as V, UseListFocusOptions as W, useGridRovingFocus as X, UseGridRovingFocusOptions as Y, FocusTrap as Z, UseStreamingTextOptions as _, resolveWeekStart as _t, ISOTimeString as a, UseDismissOptions as at, useScrollLock as b, UseControllableStateOptions as bt, TimePresentation as c, RangeClickResult as ct, isTimeInRange as d, compareISODate as dt, FileRejection as et, parseDisplayTime as f, formatDateRange as ft, StreamingTextSpeed as g, orderRange as gt, shiftTime as h, isSameRange as ht, HourFormat as i, selectFiles as it, UseNumberFieldOptions as j, CHAT_MESSAGE_CLASS as jt, useOverflow as k, UseChatStreamScrollReturn as kt, formatDisplayTime as l, WeekStartsOn as lt, resolveTimeSurface as m, isRangeWithinSpan as mt, UseTypeaheadReturn as n, FileSelectionResult as nt, NativePicker as o, useDismiss as ot, parseISOTime as p, isDayOutsideSpan as pt, useHotkeys as q, useTypeahead as r, formatFileSize as rt, ParsedTime as s, ISODateRange as st, UseTypeaheadOptions as t, FileSelectionOptions as tt, formatISOTime as u, applyRangeClick as ut, snapToGraphemeBoundary as v, spanDays as vt, ComputeOverflowInput as w, UseComboboxOptions as wt, RestoreFocus as x, useControllableState as xt, useStreamingText as y, ControllableState as yt, LongPressHandlers as z };
|
|
@@ -51,11 +51,11 @@ declare const __VLS_base: import("vue").DefineComponent<PopoverProps, {}, {}, {}
|
|
|
51
51
|
label: string;
|
|
52
52
|
width: string | number;
|
|
53
53
|
padding: PopoverPadding;
|
|
54
|
+
hasAutoFocus: boolean;
|
|
54
55
|
placement: LayerPlacement;
|
|
55
56
|
alignment: LayerAlignment;
|
|
56
57
|
isEnabled: boolean;
|
|
57
58
|
isOpen: boolean;
|
|
58
|
-
hasAutoFocus: boolean;
|
|
59
59
|
role: PopoverRole;
|
|
60
60
|
isModal: boolean;
|
|
61
61
|
hasCloseButton: boolean;
|
|
@@ -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
|
};
|
|
@@ -18,8 +18,8 @@ type __VLS_Slots = {} & {
|
|
|
18
18
|
label?: (props: typeof __VLS_1) => any;
|
|
19
19
|
};
|
|
20
20
|
declare const __VLS_base: import("vue").DefineComponent<DividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
|
21
|
-
variant: DividerVariant;
|
|
22
21
|
orientation: DividerOrientation;
|
|
22
|
+
variant: DividerVariant;
|
|
23
23
|
isFullBleed: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -47,8 +47,8 @@ type __VLS_Slots = {} & {
|
|
|
47
47
|
default?: (props: typeof __VLS_7) => any;
|
|
48
48
|
};
|
|
49
49
|
declare const __VLS_base: import("vue").DefineComponent<TextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextProps> & Readonly<{}>, {
|
|
50
|
-
as: TextAs;
|
|
51
50
|
type: TextType;
|
|
51
|
+
as: TextAs;
|
|
52
52
|
color: TextColor;
|
|
53
53
|
display: TextDisplay;
|
|
54
54
|
maxLines: number;
|