@astryx-vue/core 0.2.1 → 0.2.2
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/AppShell/index.js +1 -1
- package/dist/{AppShell-1wNIEtK_.js → AppShell-Cb41gIAj.js} +2 -2
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Badge/index.d.ts +2 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-C97HmjkC.js → Breadcrumbs-CTQ7fjDn.js} +2 -2
- 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-DqC3EDN1.js → Calendar-BFaI5AMv.js} +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BGUnskjo.js → Carousel-X0cuQkvg.js} +2 -2
- package/dist/Chat/index.d.ts +2 -2
- package/dist/Chat/index.js +2 -2
- package/dist/Chat-M0tiGrNT.js +3148 -0
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-DunoAqVH.js → Citation-C1veUk5p.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CAF-VJnh.js → CodeBlock-DesTJAkm.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-DvMiYJp7.js → Collapsible-BestK35V.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-xfm9ldUI.js → CommandPalette-BArt97V8.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-B6lBTRhP.js → ComplexSelector-CAoig1RK.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-DUkED3Z3.js → ContextMenu-9Im6i43E.js} +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-Crcg-CCj.js → DateInput-BLocxqC3.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-e9KSxBBK.js → DateRangeInput-DwDy3eRo.js} +2 -2
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-fSOfuLex.js → DateTimeInput-BYiaC9bn.js} +3 -3
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-XvW4BJob.js → DropdownMenu-Ddfr-aEC.js} +2 -2
- package/dist/{DropdownMenu-8G0B1UND.js → DropdownMenu-Dh-WAHKb.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-D-fchyQH.js → FileInput-DLO6V12n.js} +2 -2
- package/dist/Icon/index.d.ts +2 -2
- package/dist/Icon/index.js +1 -1
- package/dist/{Icon-Bku25g_K.js → Icon-CJKjdJy-.js} +6 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-uuVGgHxW.js → Lightbox-CdFCS_EA.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DLICa3db.js → Markdown-BqKloI3w.js} +2 -2
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-h492rqEN.js → MetadataList-CvZkmisf.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-BMj3Wtuq.js → MobileNavToggle-Bwi0qXXM.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-DkYi5az5.js → MoreMenu-BwJaJrkB.js} +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-C2IS-EaU.js → MultiSelector-C-ETfFy_.js} +2 -2
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-CjfAsFwj.js → NumberInput-DjetVB8O.js} +1 -1
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-BTmrtvXR.js → Outline-Bz9c-u5y.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-CRE8BE7V.js → OverflowList-ED-KN9Y5.js} +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-BpGXPmc7.js → Pagination-Cb66HMEf.js} +2 -2
- package/dist/PowerSearch/index.d.ts +2 -0
- package/dist/PowerSearch/index.js +2 -0
- package/dist/PowerSearch-CjU8y4mi.js +2386 -0
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-CE8XQDL2.js → Resizable-D-TBCg0Y.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 +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DkJOLZSR.js → Selector-DE2IEFML.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DcDWBnXJ.js → SideNav-DonEfiAx.js} +2 -2
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DZKaqEoz.js → Stepper-D2ZIcUNx.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-hm06QPiW.js → TabList-D3F-stq-.js} +1 -1
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +2 -2
- package/dist/Table-CrP2Uffq.js +1982 -0
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-CAOYds8t.js → Thumbnail-BC5JGPGZ.js} +2 -2
- package/dist/{TimeField-BGbxCoKU.js → TimeField-DpHFrNv0.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-DJP3l4ZS.js → TimeInput-DJLV0_4z.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-BzRp8uWc.js → Timestamp-GKNjjt5g.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-CjocuhzE.js → Token-Chu_eCVs.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-mYES5SPM.js → Tokenizer-DRDpvQ_l.js} +3 -3
- 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-C2t6JkZb.js → TopNav-CEyWddtA.js} +3 -3
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-THJ0KamE.js → TreeList-COS8US8e.js} +2 -2
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-D7VnvRpK.js → Typeahead-P7cCqtaQ.js} +3 -3
- package/dist/{useTypeaheadMenu-Ba7XpcZl.js → TypeaheadMenu-CGvo0Tud.js} +107 -107
- package/dist/composables/index.d.ts +3 -3
- package/dist/{context-DzcK4T_C.js → context-CiKncNSH.js} +180 -4
- package/dist/{index-SMh42NI8.d.ts → index-B1TG2GPS.d.ts} +2 -2
- package/dist/index-B9WzWqzk.d.ts +18 -0
- package/dist/{index-Z_onS2lR.d.ts → index-C7mxUcDR.d.ts} +2 -2
- package/dist/{index-cG1E0U2s.d.ts → index-CVn0GBdB.d.ts} +1 -1
- package/dist/{index-DnEh-HA0.d.ts → index-C_2Z65Rp.d.ts} +1 -1
- package/dist/{index-DXSs3rwa.d.ts → index-CngORuiq.d.ts} +137 -2
- package/dist/index-Cs5pcwY3.d.ts +416 -0
- package/dist/{index-DnSrjbjP.d.ts → index-D-ZuubCK.d.ts} +1 -1
- package/dist/{index-DAiGhkNZ.d.ts → index-D4I_obqR.d.ts} +1 -1
- package/dist/{index-I4J7gwa1.d.ts → index-DGXviOlp.d.ts} +1 -1
- package/dist/{index-BLOEjvaM.d.ts → index-DN7MXPHM.d.ts} +1 -1
- package/dist/{index-DeOftUMq.d.ts → index-DNRBbwp_.d.ts} +37 -36
- package/dist/{index-DQAnGHu7.d.ts → index-DOUEn7V0.d.ts} +2 -2
- package/dist/{index-CBym0hSq.d.ts → index-DWH_HzXi.d.ts} +1 -1
- package/dist/{index-Byar3h1e.d.ts → index-HV6W3xCx.d.ts} +1 -1
- package/dist/{index-D2bSSSBP.d.ts → index-fa72tWIU.d.ts} +1 -1
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/index-kVhSuA9t.d.ts +902 -0
- package/dist/{index-1uRMrk63.d.ts → index-nCEmW6wa.d.ts} +1 -1
- package/dist/{index-Clmz00IK.d.ts → index-qiZtHnGK.d.ts} +24 -0
- package/dist/{index-3p2BDVHq.d.ts → index-u5ozu0G7.d.ts} +2 -2
- package/dist/{index-NOXYEdOI.d.ts → index-utZGF4GR.d.ts} +1 -1
- package/dist/index.d.ts +73 -71
- package/dist/index.js +106 -98
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/power-search-DrDfcoL1.d.ts +68 -0
- package/dist/{types-JktRxujg.d.ts → types-Cp4liug-.d.ts} +66 -3
- package/dist/types-DIYwbkpe.d.ts +33 -0
- package/dist/{types-BKcxXW--.d.ts → types-pnljWjEE.d.ts} +1 -1
- package/dist/{useResizable-CeESZS1v.d.ts → useResizable-CUoNPmUw.d.ts} +1 -1
- package/package.json +5 -1
- package/styles/chat.css +469 -1
- package/styles/icon.css +20 -0
- package/styles/power-search.css +303 -0
- package/styles/table.css +304 -1
- package/styles.css +1 -0
- package/dist/Chat-DCjXRiOF.js +0 -1051
- package/dist/Table-DwehtMap.js +0 -967
- package/dist/index-CuFLztiI.d.ts +0 -49
- package/dist/index-DJo-BmXZ.d.ts +0 -431
|
@@ -54,7 +54,21 @@ const chatMessages = {
|
|
|
54
54
|
typingTwo: (first, second) => `${first} and ${second} are typing…`,
|
|
55
55
|
typingMany: (name, others) => `${name} and ${others} others are typing…`,
|
|
56
56
|
unreadBelow: (label) => `${label} messages below`,
|
|
57
|
-
unreadLabel: "New"
|
|
57
|
+
unreadLabel: "New",
|
|
58
|
+
placeholder: "Type a message…",
|
|
59
|
+
drawerLabel: "Items",
|
|
60
|
+
inputLabel: "Message input",
|
|
61
|
+
noSpeechDetected: "No speech was detected.",
|
|
62
|
+
expandPastedText: "Expand",
|
|
63
|
+
drawerExpand: (label) => `Expand ${label}`,
|
|
64
|
+
drawerCollapse: (label) => `Collapse ${label}`,
|
|
65
|
+
startDictation: "Start dictation",
|
|
66
|
+
stopDictation: "Stop dictation",
|
|
67
|
+
send: "Send",
|
|
68
|
+
stop: "Stop",
|
|
69
|
+
suggestions: "Suggestions",
|
|
70
|
+
searching: "Searching…",
|
|
71
|
+
noResults: "No results"
|
|
58
72
|
},
|
|
59
73
|
"zh-CN": {
|
|
60
74
|
log: "消息列表",
|
|
@@ -79,7 +93,21 @@ const chatMessages = {
|
|
|
79
93
|
typingTwo: (first, second) => `${first} 和 ${second} 正在输入…`,
|
|
80
94
|
typingMany: (name, others) => `${name} 和其他 ${others} 人正在输入…`,
|
|
81
95
|
unreadBelow: (label) => `${label}以下是未读消息`,
|
|
82
|
-
unreadLabel: "新消息"
|
|
96
|
+
unreadLabel: "新消息",
|
|
97
|
+
placeholder: "输入消息……",
|
|
98
|
+
drawerLabel: "项目",
|
|
99
|
+
inputLabel: "消息输入框",
|
|
100
|
+
noSpeechDetected: "未检测到语音。",
|
|
101
|
+
expandPastedText: "展开",
|
|
102
|
+
drawerExpand: (label) => `展开 ${label}`,
|
|
103
|
+
drawerCollapse: (label) => `折叠 ${label}`,
|
|
104
|
+
startDictation: "开始语音输入",
|
|
105
|
+
stopDictation: "停止语音输入",
|
|
106
|
+
send: "发送",
|
|
107
|
+
stop: "停止",
|
|
108
|
+
suggestions: "建议",
|
|
109
|
+
searching: "正在搜索…",
|
|
110
|
+
noResults: "没有结果"
|
|
83
111
|
}
|
|
84
112
|
};
|
|
85
113
|
//#endregion
|
|
@@ -367,6 +395,136 @@ const paginationMessages = {
|
|
|
367
395
|
pageOf: (page, totalPages) => `第 ${page} 页,共 ${totalPages} 页`
|
|
368
396
|
}
|
|
369
397
|
};
|
|
398
|
+
const powerSearchMessages = {
|
|
399
|
+
"en": {
|
|
400
|
+
label: "Search",
|
|
401
|
+
placeholder: "Search…",
|
|
402
|
+
clear: "Clear all",
|
|
403
|
+
results: "Search results",
|
|
404
|
+
empty: "No results",
|
|
405
|
+
removeFilter: (label) => `Remove ${label}`,
|
|
406
|
+
resultCount: (count) => `${new Intl.NumberFormat("en").format(count)} ${count === 1 ? "result" : "results"}`,
|
|
407
|
+
itemsCount: (count) => `${new Intl.NumberFormat("en").format(count)} ${count === 1 ? "item" : "items"}`,
|
|
408
|
+
entitiesCount: (count) => `${new Intl.NumberFormat("en").format(count)} ${count === 1 ? "entity" : "entities"}`,
|
|
409
|
+
filtersCount: (count) => `${new Intl.NumberFormat("en").format(count)} ${count === 1 ? "filter" : "filters"}`,
|
|
410
|
+
more: (count) => `${new Intl.NumberFormat("en").format(count)} more`,
|
|
411
|
+
dateRange: "date range",
|
|
412
|
+
operators: {
|
|
413
|
+
contains: "contains",
|
|
414
|
+
notContains: "does not contain",
|
|
415
|
+
startsWith: "starts with",
|
|
416
|
+
notStartsWith: "does not start with",
|
|
417
|
+
endsWith: "ends with",
|
|
418
|
+
notEndsWith: "does not end with",
|
|
419
|
+
is: "is",
|
|
420
|
+
isNot: "is not",
|
|
421
|
+
equals: "equals",
|
|
422
|
+
notEquals: "does not equal",
|
|
423
|
+
greaterThan: "is greater than",
|
|
424
|
+
lessThan: "is less than",
|
|
425
|
+
greaterThanOrEqual: "is greater than or equal to",
|
|
426
|
+
lessThanOrEqual: "is less than or equal to",
|
|
427
|
+
before: "is before",
|
|
428
|
+
after: "is after",
|
|
429
|
+
between: "is between",
|
|
430
|
+
isTrue: "is true",
|
|
431
|
+
isFalse: "is false",
|
|
432
|
+
isAnyOf: "is any of",
|
|
433
|
+
isNoneOf: "is none of"
|
|
434
|
+
},
|
|
435
|
+
editor: {
|
|
436
|
+
field: "Field",
|
|
437
|
+
operator: "Operator",
|
|
438
|
+
addFilter: "+ Add filter",
|
|
439
|
+
removeFilter: "Remove filter",
|
|
440
|
+
group: "Group",
|
|
441
|
+
delete: "Delete",
|
|
442
|
+
cancel: "Cancel",
|
|
443
|
+
apply: "Apply",
|
|
444
|
+
editing: "Edit filter"
|
|
445
|
+
},
|
|
446
|
+
value: {
|
|
447
|
+
value: "Value",
|
|
448
|
+
values: "Values",
|
|
449
|
+
time: "Time",
|
|
450
|
+
date: "Date",
|
|
451
|
+
relativeDate: "Relative date",
|
|
452
|
+
startDate: "Start date",
|
|
453
|
+
endDate: "End date",
|
|
454
|
+
entities: "Entities",
|
|
455
|
+
searchPlaceholder: "Search…",
|
|
456
|
+
enterValuePlaceholder: "Enter value…",
|
|
457
|
+
addValuesPlaceholder: "Add values…",
|
|
458
|
+
enterNumberPlaceholder: "Enter number…",
|
|
459
|
+
selectPlaceholder: "Select…",
|
|
460
|
+
selectValuesPlaceholder: "Select values…"
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
"zh-CN": {
|
|
464
|
+
label: "搜索",
|
|
465
|
+
placeholder: "搜索……",
|
|
466
|
+
clear: "全部清除",
|
|
467
|
+
results: "搜索结果",
|
|
468
|
+
empty: "没有结果",
|
|
469
|
+
removeFilter: (label) => `移除${label}`,
|
|
470
|
+
resultCount: (count) => `${new Intl.NumberFormat("zh-CN").format(count)} 个结果`,
|
|
471
|
+
itemsCount: (count) => `${new Intl.NumberFormat("zh-CN").format(count)} 个项目`,
|
|
472
|
+
entitiesCount: (count) => `${new Intl.NumberFormat("zh-CN").format(count)} 个实体`,
|
|
473
|
+
filtersCount: (count) => `${new Intl.NumberFormat("zh-CN").format(count)} 个筛选条件`,
|
|
474
|
+
more: (count) => `另外 ${new Intl.NumberFormat("zh-CN").format(count)} 个`,
|
|
475
|
+
dateRange: "日期范围",
|
|
476
|
+
operators: {
|
|
477
|
+
contains: "包含",
|
|
478
|
+
notContains: "不包含",
|
|
479
|
+
startsWith: "开头是",
|
|
480
|
+
notStartsWith: "开头不是",
|
|
481
|
+
endsWith: "结尾是",
|
|
482
|
+
notEndsWith: "结尾不是",
|
|
483
|
+
is: "是",
|
|
484
|
+
isNot: "不是",
|
|
485
|
+
equals: "等于",
|
|
486
|
+
notEquals: "不等于",
|
|
487
|
+
greaterThan: "大于",
|
|
488
|
+
lessThan: "小于",
|
|
489
|
+
greaterThanOrEqual: "大于或等于",
|
|
490
|
+
lessThanOrEqual: "小于或等于",
|
|
491
|
+
before: "早于",
|
|
492
|
+
after: "晚于",
|
|
493
|
+
between: "介于",
|
|
494
|
+
isTrue: "为真",
|
|
495
|
+
isFalse: "为假",
|
|
496
|
+
isAnyOf: "是其中任一",
|
|
497
|
+
isNoneOf: "不是其中任何一个"
|
|
498
|
+
},
|
|
499
|
+
editor: {
|
|
500
|
+
field: "字段",
|
|
501
|
+
operator: "运算符",
|
|
502
|
+
addFilter: "+ 添加筛选条件",
|
|
503
|
+
removeFilter: "移除筛选条件",
|
|
504
|
+
group: "分组",
|
|
505
|
+
delete: "删除",
|
|
506
|
+
cancel: "取消",
|
|
507
|
+
apply: "应用",
|
|
508
|
+
editing: "编辑筛选条件"
|
|
509
|
+
},
|
|
510
|
+
value: {
|
|
511
|
+
value: "值",
|
|
512
|
+
values: "值",
|
|
513
|
+
time: "时间",
|
|
514
|
+
date: "日期",
|
|
515
|
+
relativeDate: "相对日期",
|
|
516
|
+
startDate: "开始日期",
|
|
517
|
+
endDate: "结束日期",
|
|
518
|
+
entities: "实体",
|
|
519
|
+
searchPlaceholder: "搜索……",
|
|
520
|
+
enterValuePlaceholder: "输入值……",
|
|
521
|
+
addValuesPlaceholder: "添加值……",
|
|
522
|
+
enterNumberPlaceholder: "输入数字……",
|
|
523
|
+
selectPlaceholder: "选择……",
|
|
524
|
+
selectValuesPlaceholder: "选择值……"
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
};
|
|
370
528
|
//#endregion
|
|
371
529
|
//#region src/locale/messages/selector.ts
|
|
372
530
|
const selectorMessages = {
|
|
@@ -434,7 +592,15 @@ const tableMessages = {
|
|
|
434
592
|
bulkActionsLabel: "Bulk actions",
|
|
435
593
|
clearAll: "Unselect All",
|
|
436
594
|
selectedCount: (count) => `${count} selected`,
|
|
437
|
-
paginationLabel: "Table pagination"
|
|
595
|
+
paginationLabel: "Table pagination",
|
|
596
|
+
expandGroup: (groupKey) => `Expand group ${groupKey}`,
|
|
597
|
+
collapseGroup: (groupKey) => `Collapse group ${groupKey}`,
|
|
598
|
+
expandRow: "Expand row",
|
|
599
|
+
collapseRow: "Collapse row",
|
|
600
|
+
expandAllRows: "Expand all rows",
|
|
601
|
+
collapseAllRows: "Collapse all rows",
|
|
602
|
+
rowExpansion: "Row expansion",
|
|
603
|
+
rowStatus: "Row status"
|
|
438
604
|
},
|
|
439
605
|
"zh-CN": {
|
|
440
606
|
label: "表格",
|
|
@@ -454,7 +620,15 @@ const tableMessages = {
|
|
|
454
620
|
bulkActionsLabel: "批量操作",
|
|
455
621
|
clearAll: "取消全选",
|
|
456
622
|
selectedCount: (count) => `已选择 ${count} 项`,
|
|
457
|
-
paginationLabel: "表格分页"
|
|
623
|
+
paginationLabel: "表格分页",
|
|
624
|
+
expandGroup: (groupKey) => `展开分组 ${groupKey}`,
|
|
625
|
+
collapseGroup: (groupKey) => `折叠分组 ${groupKey}`,
|
|
626
|
+
expandRow: "展开行",
|
|
627
|
+
collapseRow: "折叠行",
|
|
628
|
+
expandAllRows: "展开所有行",
|
|
629
|
+
collapseAllRows: "折叠所有行",
|
|
630
|
+
rowExpansion: "行展开",
|
|
631
|
+
rowStatus: "行状态"
|
|
458
632
|
}
|
|
459
633
|
};
|
|
460
634
|
//#endregion
|
|
@@ -587,6 +761,7 @@ const astryxMessages = {
|
|
|
587
761
|
numberInput: numberInputMessages.en,
|
|
588
762
|
outline: outlineMessages.en,
|
|
589
763
|
pagination: paginationMessages.en,
|
|
764
|
+
powerSearch: powerSearchMessages.en,
|
|
590
765
|
selector: selectorMessages.en,
|
|
591
766
|
stepper: stepperMessages.en,
|
|
592
767
|
table: tableMessages.en,
|
|
@@ -617,6 +792,7 @@ const astryxMessages = {
|
|
|
617
792
|
numberInput: numberInputMessages["zh-CN"],
|
|
618
793
|
outline: outlineMessages["zh-CN"],
|
|
619
794
|
pagination: paginationMessages["zh-CN"],
|
|
795
|
+
powerSearch: powerSearchMessages["zh-CN"],
|
|
620
796
|
selector: selectorMessages["zh-CN"],
|
|
621
797
|
stepper: stepperMessages["zh-CN"],
|
|
622
798
|
table: tableMessages["zh-CN"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./useClipboard-CU-kfqeJ.js";
|
|
2
1
|
import "./useAsyncSource-xpQovjV_.js";
|
|
3
|
-
import "./
|
|
2
|
+
import "./useClipboard-CU-kfqeJ.js";
|
|
3
|
+
import "./useResizable-CUoNPmUw.js";
|
|
4
4
|
import { CSSProperties, ComputedRef, InjectionKey, MaybeRefOrGetter, Ref } from "vue";
|
|
5
5
|
import { CalendarDate } from "@internationalized/date";
|
|
6
6
|
//#region src/composables/internal/announce.d.ts
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { n as BadgeVariant, t as BadgeProps } from "./types-DIYwbkpe.js";
|
|
2
|
+
//#region src/Badge/Badge.vue.d.ts
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
default?: () => unknown;
|
|
5
|
+
icon?: () => unknown;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
8
|
+
variant: BadgeVariant;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { _default as t };
|
|
@@ -8,11 +8,11 @@ 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
|
-
isDisabled: boolean;
|
|
12
|
-
type: "button" | "reset" | "submit";
|
|
13
11
|
elevation: ButtonElevation;
|
|
12
|
+
isDisabled: boolean;
|
|
14
13
|
isLoading: boolean;
|
|
15
14
|
isIconOnly: boolean;
|
|
15
|
+
type: "button" | "reset" | "submit";
|
|
16
16
|
isInterruptible: boolean;
|
|
17
17
|
loadingLabel: string;
|
|
18
18
|
variant: ButtonVariant;
|
|
@@ -84,9 +84,9 @@ interface StepSlots {
|
|
|
84
84
|
//#region src/Stepper/Step.vue.d.ts
|
|
85
85
|
type __VLS_Slots$1 = StepSlots;
|
|
86
86
|
declare const __VLS_base$1: import("vue").DefineComponent<StepProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepProps> & Readonly<{}>, {
|
|
87
|
-
indicator: StepIndicator;
|
|
88
87
|
isDisabled: boolean;
|
|
89
88
|
isOptional: boolean;
|
|
89
|
+
indicator: StepIndicator;
|
|
90
90
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
91
91
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
92
92
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -42,8 +42,8 @@ interface TreeListSlots {
|
|
|
42
42
|
//#region src/TreeList/TreeList.vue.d.ts
|
|
43
43
|
type __VLS_Slots = TreeListSlots;
|
|
44
44
|
declare const __VLS_base: import("vue").DefineComponent<TreeListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TreeListProps> & Readonly<{}>, {
|
|
45
|
-
density: TreeListDensity;
|
|
46
45
|
variant: TreeListVariant;
|
|
46
|
+
density: TreeListDensity;
|
|
47
47
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
48
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
49
49
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as TableProps, a as TableCellProps, b as TableRowProps, d as TableFilterState, f as TableFilterValue, g as TablePlugin, n as PixelWidth, o as TableColumn, r as ProportionalWidth, u as TableFilterField, w as TableSortState, x as TableSlots } from "./types-Cp4liug-.js";
|
|
2
2
|
import { CSSProperties, ComputedRef, MaybeRefOrGetter, Ref, VNodeChild } from "vue";
|
|
3
3
|
//#region src/Table/columnUtils.d.ts
|
|
4
4
|
declare function proportional(value?: number, options?: {
|
|
@@ -12,6 +12,10 @@ interface ResolvedColumnWidths {
|
|
|
12
12
|
columns: Map<string, ResolvedColumnWidth>;
|
|
13
13
|
tableMinWidth: number;
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* 表格被挤到最小宽度时每一列的像素。固定列的偏移按这个宽度累加。
|
|
17
|
+
*/
|
|
18
|
+
declare function resolveColumnFloorWidths<T extends Record<string, unknown>>(columns: readonly TableColumn<T>[]): Map<string, number>;
|
|
15
19
|
declare function resolveColumnWidths<T extends Record<string, unknown>>(columns: readonly TableColumn<T>[]): ResolvedColumnWidths;
|
|
16
20
|
declare function capitalize(value: string): string;
|
|
17
21
|
declare function cellText(value: unknown): string;
|
|
@@ -66,6 +70,33 @@ declare function useTableFilterState(initial?: TableFilterState): {
|
|
|
66
70
|
declare function applyTableFilters<T extends Record<string, unknown>>(rows: readonly T[], filters: TableFilterState, fields?: readonly TableFilterField[]): T[];
|
|
67
71
|
declare function useTableFiltering<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableFilteringConfig>): TablePlugin<T>;
|
|
68
72
|
//#endregion
|
|
73
|
+
//#region src/Table/plugins/groupedRows.d.ts
|
|
74
|
+
interface UseTableGroupedRowsConfig<T extends Record<string, unknown>> {
|
|
75
|
+
data: readonly T[];
|
|
76
|
+
groupBy: (item: T) => string;
|
|
77
|
+
collapsedGroups: ReadonlySet<string>;
|
|
78
|
+
onToggleGroup: (groupKey: string) => void;
|
|
79
|
+
renderGroupHeader?: (groupKey: string, count: number, collapsed: boolean) => VNodeChild;
|
|
80
|
+
getRowKey?: (item: T) => string;
|
|
81
|
+
groupOrder?: readonly string[];
|
|
82
|
+
}
|
|
83
|
+
declare function isTableGroupHeader(item: unknown): item is Record<string, unknown> & {
|
|
84
|
+
groupKey: string;
|
|
85
|
+
count: number;
|
|
86
|
+
};
|
|
87
|
+
declare function buildGroupedRows<T extends Record<string, unknown>>(data: readonly T[], groupBy: (item: T) => string, collapsedGroups: ReadonlySet<string>, groupOrder?: readonly string[]): T[];
|
|
88
|
+
declare function useTableGroupedRows<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableGroupedRowsConfig<T>>): {
|
|
89
|
+
data: ComputedRef<T[]>;
|
|
90
|
+
plugin: TablePlugin<T>;
|
|
91
|
+
idKey: (item: T) => string;
|
|
92
|
+
};
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/Table/plugins/interaction.d.ts
|
|
95
|
+
/**
|
|
96
|
+
* 这一下点在按钮、链接、表单或一段被选中的文字上,就不该再触发行展开。
|
|
97
|
+
*/
|
|
98
|
+
declare function isInteractiveRowClick(event: MouseEvent): boolean;
|
|
99
|
+
//#endregion
|
|
69
100
|
//#region src/Table/plugins/pagination.d.ts
|
|
70
101
|
interface UseTablePaginationConfig {
|
|
71
102
|
page: number;
|
|
@@ -80,6 +111,48 @@ interface UseTablePaginationConfig {
|
|
|
80
111
|
}
|
|
81
112
|
declare function useTablePagination<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTablePaginationConfig>): TablePlugin<T>;
|
|
82
113
|
//#endregion
|
|
114
|
+
//#region src/Table/plugins/rowExpansion.d.ts
|
|
115
|
+
interface UseTableRowExpansionConfig<T extends Record<string, unknown>> {
|
|
116
|
+
expandedKeys: ReadonlySet<string>;
|
|
117
|
+
onToggle: (key: string) => void;
|
|
118
|
+
getRowKey: (item: T) => string;
|
|
119
|
+
renderExpanded: (item: T) => VNodeChild;
|
|
120
|
+
getIsItemExpandable?: (item: T) => boolean;
|
|
121
|
+
panelVariant?: 'muted' | 'transparent';
|
|
122
|
+
hasRowClickExpansion?: boolean;
|
|
123
|
+
}
|
|
124
|
+
declare function useTableRowExpansion<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableRowExpansionConfig<T>>): TablePlugin<T>;
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/Table/plugins/rowIndex.d.ts
|
|
127
|
+
interface UseTableRowIndexConfig<T extends Record<string, unknown>> {
|
|
128
|
+
data: readonly T[];
|
|
129
|
+
getRowKey?: (item: T) => string;
|
|
130
|
+
label?: string;
|
|
131
|
+
startFrom?: number;
|
|
132
|
+
}
|
|
133
|
+
declare function useTableRowIndex<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableRowIndexConfig<T>>): TablePlugin<T>;
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/Table/plugins/rowStatus.d.ts
|
|
136
|
+
type TableRowStatusName = 'success' | 'warning' | 'error';
|
|
137
|
+
type TableRowStatusColor = 'accent' | 'success' | 'error' | 'warning' | 'red' | 'orange' | 'green' | 'yellow' | 'blue' | 'gray';
|
|
138
|
+
interface TableSemanticRowStatus {
|
|
139
|
+
status: TableRowStatusName;
|
|
140
|
+
label: string;
|
|
141
|
+
color?: never;
|
|
142
|
+
icon?: never;
|
|
143
|
+
}
|
|
144
|
+
interface TableCustomRowStatus {
|
|
145
|
+
status?: never;
|
|
146
|
+
color: TableRowStatusColor | (string & {});
|
|
147
|
+
icon?: string;
|
|
148
|
+
label: string;
|
|
149
|
+
}
|
|
150
|
+
type TableRowStatus = TableSemanticRowStatus | TableCustomRowStatus;
|
|
151
|
+
interface UseTableRowStatusConfig<T extends Record<string, unknown>> {
|
|
152
|
+
getStatus: (item: T) => TableRowStatus | null;
|
|
153
|
+
}
|
|
154
|
+
declare function useTableRowStatus<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableRowStatusConfig<T>>): TablePlugin<T>;
|
|
155
|
+
//#endregion
|
|
83
156
|
//#region src/Table/plugins/selection.d.ts
|
|
84
157
|
interface UseTableSelectionStateConfig<T extends Record<string, unknown>> {
|
|
85
158
|
data: MaybeRefOrGetter<readonly T[]>;
|
|
@@ -129,6 +202,68 @@ declare function useTableSortableState<T extends Record<string, unknown>>(option
|
|
|
129
202
|
};
|
|
130
203
|
declare function useTableSortable<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableSortableConfig>): TablePlugin<T>;
|
|
131
204
|
//#endregion
|
|
205
|
+
//#region src/Table/plugins/stickyColumns.d.ts
|
|
206
|
+
interface UseTableStickyColumnsConfig {
|
|
207
|
+
startKeys?: readonly string[];
|
|
208
|
+
endKeys?: readonly string[];
|
|
209
|
+
}
|
|
210
|
+
interface StickySide {
|
|
211
|
+
edge: 'start' | 'end';
|
|
212
|
+
offset: number;
|
|
213
|
+
}
|
|
214
|
+
declare function stickyOffsets<T extends Record<string, unknown>>(columns: readonly TableColumn<T>[], keys: readonly string[], edge: 'start' | 'end'): Map<string, number> | null;
|
|
215
|
+
declare function resolveStickySide<T extends Record<string, unknown>>(columns: readonly TableColumn<T>[], columnKey: string, startKeys: readonly string[], endKeys: readonly string[]): StickySide | null;
|
|
216
|
+
declare function useTableStickyColumns<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableStickyColumnsConfig>): TablePlugin<T>;
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region src/Table/plugins/tree.d.ts
|
|
219
|
+
interface TableTreeRowMeta {
|
|
220
|
+
id: string;
|
|
221
|
+
level: number;
|
|
222
|
+
hasChildren: boolean;
|
|
223
|
+
isExpanded: boolean;
|
|
224
|
+
}
|
|
225
|
+
interface UseTableTreeDataConfig<T extends Record<string, unknown>> {
|
|
226
|
+
getRowMeta: (item: T) => TableTreeRowMeta | undefined;
|
|
227
|
+
onToggleItem: (item: T) => void;
|
|
228
|
+
hasExpandableRows: boolean;
|
|
229
|
+
isAllExpanded?: boolean | 'indeterminate';
|
|
230
|
+
onExpandAll?: () => void;
|
|
231
|
+
onCollapseAll?: () => void;
|
|
232
|
+
hasExpandAllControl?: boolean;
|
|
233
|
+
indent?: 'sm' | 'md' | 'lg';
|
|
234
|
+
treeColumnKey?: string;
|
|
235
|
+
hasRowClickExpansion?: boolean;
|
|
236
|
+
}
|
|
237
|
+
interface UseTableTreeStateConfig<T extends Record<string, unknown>> {
|
|
238
|
+
data: readonly T[];
|
|
239
|
+
idKey: (keyof T & string) | ((item: T) => string | number);
|
|
240
|
+
childrenKey?: string;
|
|
241
|
+
defaultExpandedIds?: Iterable<string>;
|
|
242
|
+
expandedIds?: ReadonlySet<string>;
|
|
243
|
+
onExpandedIdsChange?: (ids: ReadonlySet<string>) => void;
|
|
244
|
+
isItemExpandable?: (item: T) => boolean;
|
|
245
|
+
sortSiblings?: (siblings: T[]) => T[];
|
|
246
|
+
indent?: 'sm' | 'md' | 'lg';
|
|
247
|
+
treeColumnKey?: string;
|
|
248
|
+
hasExpandAllControl?: boolean;
|
|
249
|
+
hasRowClickExpansion?: boolean;
|
|
250
|
+
}
|
|
251
|
+
interface FlatTree<T> {
|
|
252
|
+
rows: T[];
|
|
253
|
+
meta: Map<string, TableTreeRowMeta>;
|
|
254
|
+
expandableIds: string[];
|
|
255
|
+
}
|
|
256
|
+
declare function flattenTree<T extends Record<string, unknown>>(config: UseTableTreeStateConfig<T>, expandedIds: ReadonlySet<string>): FlatTree<T>;
|
|
257
|
+
declare function useTableTreeData<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableTreeDataConfig<T>>): TablePlugin<T>;
|
|
258
|
+
declare function useTableTreeState<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableTreeStateConfig<T>>): {
|
|
259
|
+
visibleData: ComputedRef<T[]>;
|
|
260
|
+
plugin: TablePlugin<T>;
|
|
261
|
+
expandedIds: ComputedRef<ReadonlySet<string>>;
|
|
262
|
+
isAllExpanded: ComputedRef<boolean | 'indeterminate'>;
|
|
263
|
+
expandAll: () => void;
|
|
264
|
+
collapseAll: () => void;
|
|
265
|
+
};
|
|
266
|
+
//#endregion
|
|
132
267
|
//#region src/Table/Table.vue.d.ts
|
|
133
268
|
declare const __VLS_export$7: <T extends Record<string, unknown>>(__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<{
|
|
134
269
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<TableProps<T>> & (typeof globalThis extends {
|
|
@@ -249,4 +384,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
249
384
|
};
|
|
250
385
|
};
|
|
251
386
|
//#endregion
|
|
252
|
-
export {
|
|
387
|
+
export { UseTableColumnResizeConfig as $, TableRowStatusName as A, isInteractiveRowClick as B, UseTableSelectionConfig as C, TableCustomRowStatus as D, useTableSelectionState as E, useTableRowIndex as F, UseTableFilteringConfig as G, buildGroupedRows as H, UseTableRowExpansionConfig as I, useTableFiltering as J, applyTableFilters as K, useTableRowExpansion as L, UseTableRowStatusConfig as M, useTableRowStatus as N, TableRowStatus as O, UseTableRowIndexConfig as P, useTableColumnSettingsState as Q, UseTablePaginationConfig as R, useTableSortableState as S, useTableSelection as T, isTableGroupHeader as U, UseTableGroupedRowsConfig as V, useTableGroupedRows as W, UseTableColumnSettingsConfig as X, ColumnSettingsOption as Y, useTableColumnSettings as Z, resolveStickySide as _, _default$4 as a, pixel as at, UseTableSortableConfig as b, _default$7 as c, resolveColumnWidths as ct, UseTableTreeStateConfig as d, useTableColumnResize as et, flattenTree as f, UseTableStickyColumnsConfig as g, StickySide as h, _default$3 as i, paginateData as it, TableSemanticRowStatus as j, TableRowStatusColor as k, TableTreeRowMeta as l, sortRows as lt, useTableTreeState as m, _default$1 as n, cellText as nt, _default$5 as o, proportional as ot, useTableTreeData as p, useTableFilterState as q, _default$2 as r, generateColumns as rt, _default$6 as s, resolveColumnFloorWidths as st, _default as t, capitalize as tt, UseTableTreeDataConfig as u, stickyOffsets as v, UseTableSelectionStateConfig as w, useTableSortable as x, useTableStickyColumns as y, useTablePagination as z };
|