@astryx-vue/core 0.2.1 → 0.2.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/THIRD_PARTY_NOTICES.md +2 -0
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-1wNIEtK_.js → AppShell-Dd-D4bA2.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.d.ts +3 -2
- package/dist/Breadcrumbs/index.js +3 -2
- package/dist/{Breadcrumbs-C97HmjkC.js → Breadcrumbs-CWGfgLNK.js} +13 -8
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +1 -1
- package/dist/Calendar-CnOsSjMY.js +656 -0
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BGUnskjo.js → Carousel-JA7ilqI_.js} +2 -2
- package/dist/Chat/index.d.ts +2 -2
- package/dist/Chat/index.js +2 -2
- package/dist/Chat-C7WrCOE4.js +3148 -0
- package/dist/CheckboxIndicator/index.js +1 -1
- package/dist/CheckboxIndicator-D37cm2Rh.js +68 -0
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CMsEE1_4.js → CheckboxInput-25Q8ItH-.js} +10 -9
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BbCPiend.js → CheckboxList-CnCGnkZk.js} +77 -24
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-DunoAqVH.js → Citation-CtwrU33I.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-yb_KOFtJ.js → Code-BvefYRpx.js} +2 -1
- package/dist/{CodeBlock-CAF-VJnh.js → CodeBlock-BZGzYeoL.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-DvMiYJp7.js → Collapsible-3YerR-FO.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-xfm9ldUI.js → CommandPalette-BNbM9T9y.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-B6lBTRhP.js → ComplexSelector-LtbLlrcj.js} +3 -3
- package/dist/ContextMenu/index.d.ts +3 -2
- package/dist/ContextMenu/index.js +3 -2
- package/dist/{ContextMenu-DUkED3Z3.js → ContextMenu-DVQl0xL5.js} +204 -56
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-zm8sNc0t.js +743 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-e9KSxBBK.js → DateRangeInput-DlVFzrf7.js} +54 -19
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-fSOfuLex.js → DateTimeInput-C7Z-p6Yd.js} +54 -15
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +3 -3
- package/dist/DropdownMenu/index.js +4 -3
- package/dist/{DropdownMenu-8G0B1UND.js → DropdownMenu-BoZChdev.js} +308 -63
- package/dist/DropdownMenu-u1psFjis.js +325 -0
- package/dist/DropdownMenuRadioItem.vue-uVM0FD2f.d.ts +564 -0
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-D-fchyQH.js → FileInput-QdlZn7qK.js} +2 -2
- package/dist/Icon/index.d.ts +4 -3
- package/dist/Icon/index.js +2 -2
- package/dist/{Icon-Bku25g_K.js → Icon-bteSId7T.js} +114 -14
- package/dist/Indicator/index.d.ts +3 -0
- package/dist/Indicator/index.js +2 -0
- package/dist/InputGroup/index.d.ts +2 -2
- package/dist/InputGroup/index.js +3 -2
- package/dist/InputGroup-BzR6JRZb.js +129 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-uuVGgHxW.js → Lightbox-BSzfqZ-u.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DLICa3db.js → Markdown-B6tSqenv.js} +8 -5
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-h492rqEN.js → MetadataList-aN1tRn6W.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-BMj3Wtuq.js → MobileNavToggle-fqcSafkc.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-DkYi5az5.js → MoreMenu-B3brqdK_.js} +1 -1
- package/dist/MultiSelector/index.d.ts +2 -2
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-C2IS-EaU.js → MultiSelector-BD5PMgez.js} +303 -121
- package/dist/{NavDisclosure-DHrSNRDR.js → NavDisclosure-DbYLDXK0.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenuItem-B-k7olt5.js → NavMenuItem-DrwIMHKO.js} +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-CjfAsFwj.js → NumberInput-CBeU4lEl.js} +1 -1
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-BTmrtvXR.js → Outline--HVMSB6i.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-CRE8BE7V.js → OverflowList-FMh7r-r_.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-BpGXPmc7.js → Pagination-DlIvESjx.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-Crhk9PNP.js → Popover-D7zqpFwU.js} +1 -1
- package/dist/PowerSearch/index.d.ts +2 -0
- package/dist/PowerSearch/index.js +2 -0
- package/dist/PowerSearch-CMG7Rb69.js +2386 -0
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BqjdSCfJ.js → RadioGroup-CBqUPq_L.js} +16 -8
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DI8ujXcT.js → RadioList-CPOJn9Th.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-CE8XQDL2.js → Resizable-CXpvj1TZ.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +2 -2
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-BpPnuWH3.js +618 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DcDWBnXJ.js → SideNav-D4TupqgE.js} +3 -3
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DZKaqEoz.js → Stepper-H-6-T5Ps.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-hm06QPiW.js → TabList-BlzkrObv.js} +2 -2
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +2 -2
- package/dist/Table-nqA_njNz.js +1982 -0
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +2 -1
- package/dist/Theme/index.js +1 -1
- package/dist/{Theme-BuUiiJNr.js → Theme-CejS9MHm.js} +21 -3
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-CAOYds8t.js → Thumbnail-CXb3m_Hv.js} +2 -2
- package/dist/{TimeField-BGbxCoKU.js → TimeField-B3cndWb0.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-DJP3l4ZS.js → TimeInput-BHQ_LKGm.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-BzRp8uWc.js → Timestamp-Cfuxbb3i.js} +3 -3
- 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-CjocuhzE.js → Token-CdVLH0_H.js} +2 -2
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-mYES5SPM.js → Tokenizer-DlD-S_8-.js} +4 -4
- 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-DzV874G7.js} +5 -5
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-THJ0KamE.js → TreeList-DEwvlZRV.js} +2 -2
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-D7VnvRpK.js → Typeahead-DQ3tmqYe.js} +4 -4
- package/dist/{useTypeaheadMenu-Ba7XpcZl.js → TypeaheadMenu-CGvo0Tud.js} +107 -107
- package/dist/{context-O2Vb8cJl.js → colorMode-CBgdgDSn.js} +1 -7
- package/dist/composables/index.d.ts +4 -4
- package/dist/composables/index.js +10 -5
- package/dist/{composables-CVfjp9h4.js → composables-DDI08XFF.js} +98 -1
- package/dist/context-Cws_tXTr.js +7 -0
- package/dist/context-D5-MwxnN.js +4 -0
- package/dist/{context-DzcK4T_C.js → context-DmOLCubj.js} +262 -12
- package/dist/{index-DimuSES0.d.ts → index-B1x05arQ.d.ts} +3 -1
- package/dist/index-B9WzWqzk.d.ts +18 -0
- package/dist/index-B9f1rUEv.d.ts +77 -0
- package/dist/{index-DnSrjbjP.d.ts → index-BB5yVIN-.d.ts} +2 -2
- package/dist/{index-Bu0Zd1uw.d.ts → index-BMn9ghAX.d.ts} +3 -3
- package/dist/{index-CJlBAXwj.d.ts → index-BRfR0lhb.d.ts} +41 -4
- package/dist/{index-DeOftUMq.d.ts → index-BTAgQRP0.d.ts} +762 -114
- package/dist/{index-DA52oIdw.d.ts → index-BcJBLWJ0.d.ts} +2 -2
- package/dist/{index-jdjcb3Js.d.ts → index-Bqb_Fyju.d.ts} +2 -2
- package/dist/{index-CNjbOgty.d.ts → index-C-QpeUlQ.d.ts} +2 -2
- package/dist/{index-I4J7gwa1.d.ts → index-C2sfHfBw.d.ts} +31 -5
- package/dist/{index-By2mSzUA.d.ts → index-CA6RbRWx.d.ts} +1 -1
- package/dist/{index-DnEh-HA0.d.ts → index-C_2Z65Rp.d.ts} +1 -1
- package/dist/{index-cG1E0U2s.d.ts → index-Ca8VIE4l.d.ts} +1 -1
- package/dist/{index-CRizexSC.d.ts → index-Ch6BbxCP.d.ts} +2 -67
- package/dist/{index-CBym0hSq.d.ts → index-ChWlKHjc.d.ts} +1 -1
- package/dist/{index-DXSs3rwa.d.ts → index-CngORuiq.d.ts} +137 -2
- package/dist/index-Ctu32CLv.d.ts +902 -0
- package/dist/{index-DQAnGHu7.d.ts → index-D1Twv_fL.d.ts} +65 -6
- package/dist/{index-D_nYxnNv.d.ts → index-D7-WTV6I.d.ts} +1 -1
- package/dist/{index-c_TaW8mM.d.ts → index-D8o50qOE.d.ts} +1 -1
- package/dist/index-DMQG6kdM.d.ts +416 -0
- package/dist/index-D_UEJIU5.d.ts +83 -0
- package/dist/{index-D2bSSSBP.d.ts → index-DkVEBdWa.d.ts} +2 -2
- package/dist/{index-SMh42NI8.d.ts → index-DxsKyAxq.d.ts} +118 -46
- package/dist/{index-BHqRH7QW.d.ts → index-FEy8qFSD.d.ts} +2 -2
- package/dist/{index-Byar3h1e.d.ts → index-HV6W3xCx.d.ts} +1 -1
- package/dist/{index-Clmz00IK.d.ts → index-LIyvJTW3.d.ts} +63 -0
- package/dist/{index-BKr7yvVv.d.ts → index-MPcg1Pm4.d.ts} +1 -1
- package/dist/{index-cGagYM1g.d.ts → index-ViSV0RBx.d.ts} +1 -1
- package/dist/{index-Z_onS2lR.d.ts → index-f4NGT-e2.d.ts} +3 -3
- package/dist/{index-DsyKhauk.d.ts → index-foQMNKZO.d.ts} +1 -1
- package/dist/{index-1uRMrk63.d.ts → index-nCEmW6wa.d.ts} +1 -1
- package/dist/{index-NOXYEdOI.d.ts → index-utZGF4GR.d.ts} +1 -1
- package/dist/{index-3p2BDVHq.d.ts → index-vP0EtrJJ.d.ts} +13 -3
- package/dist/{index-CZeoAr0a.d.ts → index-xfkEuGLY.d.ts} +2 -2
- package/dist/index.d.ts +81 -78
- package/dist/index.js +122 -106
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +2 -2
- package/dist/{locale-Cpk_nrLA.js → locale-CCwVnyMZ.js} +25 -1
- package/dist/power-search-DrDfcoL1.d.ts +68 -0
- package/dist/searchResultMessage-DN0HeRRB.js +94 -0
- package/dist/semantic-CKH9XVqa.d.ts +54 -0
- package/dist/{types-JktRxujg.d.ts → types-Cp4liug-.d.ts} +66 -3
- package/dist/{types-BKcxXW--.d.ts → types-CwyibrRB.d.ts} +12 -11
- package/dist/types-DIYwbkpe.d.ts +33 -0
- package/dist/types-jmqqnkKA.d.ts +163 -0
- package/dist/{useAnchoredListbox-7W90Ny-9.js → useAnchoredListbox-BN9LQnon.js} +1 -1
- package/dist/useDatePresentation-C07PnOCw.js +21 -0
- package/dist/{useMonthGrid-CmJsZTcB.js → useDateRange-CIXoE_8k.js} +1 -42
- package/dist/useDisclosureHandle-Df3HhAfC.js +24 -0
- package/dist/{useDismiss-CAiHU6QD.js → useDismiss-Cj8x_51F.js} +8 -4
- package/dist/useFieldControlState-voICDrys.js +18 -0
- package/dist/useHandleRef-6cdKugm8.js +17 -0
- package/dist/useIndicator-i1NORM7W.js +147 -0
- package/dist/useMenuDrillIn-OaEwjK44.js +520 -0
- package/dist/useMonthGrid-fGHSSrFc.js +43 -0
- package/dist/usePendingChange-ib-h8FZK.js +25 -0
- package/dist/{useResizable-CeESZS1v.d.ts → useResizable-CUoNPmUw.d.ts} +1 -1
- package/dist/useSubmenuMode-CZN9qrUo.js +37 -0
- package/package.json +9 -1
- package/styles/calendar.css +38 -3
- package/styles/chat.css +469 -1
- package/styles/check-indicator.css +17 -0
- package/styles/checkbox-indicator.css +29 -10
- package/styles/checkbox-input.css +0 -11
- package/styles/date-input.css +48 -0
- package/styles/dropdown-menu.css +163 -0
- package/styles/field.css +48 -0
- package/styles/icon.css +69 -1
- package/styles/input-group.css +32 -3
- package/styles/multi-selector.css +26 -0
- package/styles/power-search.css +303 -0
- package/styles/radio-indicator.css +90 -0
- package/styles/radio.css +9 -42
- package/styles/selector.css +112 -14
- package/styles/table.css +304 -1
- package/styles.css +3 -0
- package/dist/Calendar-DqC3EDN1.js +0 -352
- package/dist/Chat-DCjXRiOF.js +0 -1051
- package/dist/CheckboxIndicator-DdJmksHt.js +0 -52
- package/dist/DateInput-Crcg-CCj.js +0 -376
- package/dist/DropdownMenu-XvW4BJob.js +0 -164
- package/dist/InputGroup-ChrFVxzV.js +0 -42
- package/dist/Selector-DkJOLZSR.js +0 -468
- package/dist/Table-DwehtMap.js +0 -967
- package/dist/index-BLOEjvaM.d.ts +0 -398
- package/dist/index-Bgv4ZmBl.d.ts +0 -72
- package/dist/index-CuFLztiI.d.ts +0 -49
- package/dist/index-DJo-BmXZ.d.ts +0 -431
- package/dist/index-IbUN4M8V.d.ts +0 -40
- package/dist/types-DDAAT1Xd.d.ts +0 -285
- package/dist/useGridRovingFocus-DQQAOYH5.js +0 -99
- /package/dist/{index-BUXNRekN.d.ts → index-BXkNZF3q.d.ts} +0 -0
|
@@ -26,6 +26,103 @@ function useControllableState(options) {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
//#endregion
|
|
29
|
+
//#region src/composables/useGridRovingFocus.ts
|
|
30
|
+
/**
|
|
31
|
+
* 网格式导航(roving tabindex):用方向键在二维网格中移动焦点。
|
|
32
|
+
* 供 Calendar、Pagination(如果需要)等组件复用。
|
|
33
|
+
*/
|
|
34
|
+
function useGridRovingFocus(options) {
|
|
35
|
+
const { rows, columns, activeIndex, isEnabled = ref(true), isDisabled, onChange } = options;
|
|
36
|
+
const row = ref(0);
|
|
37
|
+
const column = ref(0);
|
|
38
|
+
watch(activeIndex, (index) => {
|
|
39
|
+
const cols = columns.value;
|
|
40
|
+
if (cols > 0) {
|
|
41
|
+
row.value = Math.floor(index / cols);
|
|
42
|
+
column.value = index % cols;
|
|
43
|
+
}
|
|
44
|
+
}, { immediate: true });
|
|
45
|
+
function indexFromRowCol(r, c) {
|
|
46
|
+
return r * columns.value + c;
|
|
47
|
+
}
|
|
48
|
+
function moveTo(targetRow, targetCol) {
|
|
49
|
+
if (!isEnabled.value) return;
|
|
50
|
+
const r = Math.max(0, Math.min(targetRow, rows.value - 1));
|
|
51
|
+
const c = Math.max(0, Math.min(targetCol, columns.value - 1));
|
|
52
|
+
if (isDisabled?.(r, c)) return;
|
|
53
|
+
const index = indexFromRowCol(r, c);
|
|
54
|
+
onChange(index);
|
|
55
|
+
}
|
|
56
|
+
function moveUp() {
|
|
57
|
+
moveTo(row.value - 1, column.value);
|
|
58
|
+
}
|
|
59
|
+
function moveDown() {
|
|
60
|
+
moveTo(row.value + 1, column.value);
|
|
61
|
+
}
|
|
62
|
+
function moveLeft() {
|
|
63
|
+
moveTo(row.value, column.value - 1);
|
|
64
|
+
}
|
|
65
|
+
function moveRight() {
|
|
66
|
+
moveTo(row.value, column.value + 1);
|
|
67
|
+
}
|
|
68
|
+
function moveToFirstInRow() {
|
|
69
|
+
moveTo(row.value, 0);
|
|
70
|
+
}
|
|
71
|
+
function moveToLastInRow() {
|
|
72
|
+
moveTo(row.value, columns.value - 1);
|
|
73
|
+
}
|
|
74
|
+
function moveToFirstInColumn() {
|
|
75
|
+
moveTo(0, column.value);
|
|
76
|
+
}
|
|
77
|
+
function moveToLastInColumn() {
|
|
78
|
+
moveTo(rows.value - 1, column.value);
|
|
79
|
+
}
|
|
80
|
+
function onKeyDown(event) {
|
|
81
|
+
if (!isEnabled.value) return;
|
|
82
|
+
switch (event.key) {
|
|
83
|
+
case "ArrowUp":
|
|
84
|
+
event.preventDefault();
|
|
85
|
+
moveUp();
|
|
86
|
+
break;
|
|
87
|
+
case "ArrowDown":
|
|
88
|
+
event.preventDefault();
|
|
89
|
+
moveDown();
|
|
90
|
+
break;
|
|
91
|
+
case "ArrowLeft":
|
|
92
|
+
event.preventDefault();
|
|
93
|
+
moveLeft();
|
|
94
|
+
break;
|
|
95
|
+
case "ArrowRight":
|
|
96
|
+
event.preventDefault();
|
|
97
|
+
moveRight();
|
|
98
|
+
break;
|
|
99
|
+
case "Home":
|
|
100
|
+
event.preventDefault();
|
|
101
|
+
if (event.ctrlKey) moveTo(0, 0);
|
|
102
|
+
else moveToFirstInRow();
|
|
103
|
+
break;
|
|
104
|
+
case "End":
|
|
105
|
+
event.preventDefault();
|
|
106
|
+
if (event.ctrlKey) moveTo(rows.value - 1, columns.value - 1);
|
|
107
|
+
else moveToLastInRow();
|
|
108
|
+
break;
|
|
109
|
+
case "PageUp":
|
|
110
|
+
event.preventDefault();
|
|
111
|
+
moveToFirstInColumn();
|
|
112
|
+
break;
|
|
113
|
+
case "PageDown":
|
|
114
|
+
event.preventDefault();
|
|
115
|
+
moveToLastInColumn();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
row,
|
|
120
|
+
column,
|
|
121
|
+
onKeyDown,
|
|
122
|
+
moveTo
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
//#endregion
|
|
29
126
|
//#region src/composables/useResizable.ts
|
|
30
127
|
const DEFAULT_SIZE = 250;
|
|
31
128
|
const DEFAULT_MIN = 50;
|
|
@@ -499,4 +596,4 @@ function useStreamingText(targetText, isStreaming = false, options) {
|
|
|
499
596
|
});
|
|
500
597
|
}
|
|
501
598
|
//#endregion
|
|
502
|
-
export { useResizable as a, percent as i, useStreamingText as n,
|
|
599
|
+
export { useResizable as a, percent as i, useStreamingText as n, useGridRovingFocus as o, useScrollOverflow as r, useControllableState as s, snapToGraphemeBoundary as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/Theme/context.ts
|
|
2
|
+
const themeContextKey = Symbol("astryx-theme");
|
|
3
|
+
/** Present when this component is already inside a Theme. */
|
|
4
|
+
const themeNestingKey = Symbol("astryx-theme-nesting");
|
|
5
|
+
const mediaThemeKey = Symbol("astryx-media-theme");
|
|
6
|
+
//#endregion
|
|
7
|
+
export { themeContextKey as n, themeNestingKey as r, mediaThemeKey as t };
|
|
@@ -4,12 +4,24 @@ const calendarMessages = {
|
|
|
4
4
|
"en": {
|
|
5
5
|
label: "Calendar",
|
|
6
6
|
previousMonth: "Previous month",
|
|
7
|
-
nextMonth: "Next month"
|
|
7
|
+
nextMonth: "Next month",
|
|
8
|
+
rangeStart: (date) => `Range start, ${date}`,
|
|
9
|
+
rangeCleared: (date) => `Range cleared, ${date}`,
|
|
10
|
+
rangeComplete: (start, end) => `${start} to ${end}`,
|
|
11
|
+
rangeStartName: (date) => `${date}, range start`,
|
|
12
|
+
rangeEndName: (date) => `${date}, range end`,
|
|
13
|
+
rangeBoth: (date) => `${date}, range start and range end`
|
|
8
14
|
},
|
|
9
15
|
"zh-CN": {
|
|
10
16
|
label: "日历",
|
|
11
17
|
previousMonth: "上一月",
|
|
12
|
-
nextMonth: "下一月"
|
|
18
|
+
nextMonth: "下一月",
|
|
19
|
+
rangeStart: (date) => `已选择开始日期,${date}`,
|
|
20
|
+
rangeCleared: (date) => `已取消选择,${date}`,
|
|
21
|
+
rangeComplete: (start, end) => `${start}到${end}`,
|
|
22
|
+
rangeStartName: (date) => `${date},范围开始`,
|
|
23
|
+
rangeEndName: (date) => `${date},范围结束`,
|
|
24
|
+
rangeBoth: (date) => `${date},范围开始和结束`
|
|
13
25
|
}
|
|
14
26
|
};
|
|
15
27
|
//#endregion
|
|
@@ -54,7 +66,21 @@ const chatMessages = {
|
|
|
54
66
|
typingTwo: (first, second) => `${first} and ${second} are typing…`,
|
|
55
67
|
typingMany: (name, others) => `${name} and ${others} others are typing…`,
|
|
56
68
|
unreadBelow: (label) => `${label} messages below`,
|
|
57
|
-
unreadLabel: "New"
|
|
69
|
+
unreadLabel: "New",
|
|
70
|
+
placeholder: "Type a message…",
|
|
71
|
+
drawerLabel: "Items",
|
|
72
|
+
inputLabel: "Message input",
|
|
73
|
+
noSpeechDetected: "No speech was detected.",
|
|
74
|
+
expandPastedText: "Expand",
|
|
75
|
+
drawerExpand: (label) => `Expand ${label}`,
|
|
76
|
+
drawerCollapse: (label) => `Collapse ${label}`,
|
|
77
|
+
startDictation: "Start dictation",
|
|
78
|
+
stopDictation: "Stop dictation",
|
|
79
|
+
send: "Send",
|
|
80
|
+
stop: "Stop",
|
|
81
|
+
suggestions: "Suggestions",
|
|
82
|
+
searching: "Searching…",
|
|
83
|
+
noResults: "No results"
|
|
58
84
|
},
|
|
59
85
|
"zh-CN": {
|
|
60
86
|
log: "消息列表",
|
|
@@ -79,10 +105,30 @@ const chatMessages = {
|
|
|
79
105
|
typingTwo: (first, second) => `${first} 和 ${second} 正在输入…`,
|
|
80
106
|
typingMany: (name, others) => `${name} 和其他 ${others} 人正在输入…`,
|
|
81
107
|
unreadBelow: (label) => `${label}以下是未读消息`,
|
|
82
|
-
unreadLabel: "新消息"
|
|
108
|
+
unreadLabel: "新消息",
|
|
109
|
+
placeholder: "输入消息……",
|
|
110
|
+
drawerLabel: "项目",
|
|
111
|
+
inputLabel: "消息输入框",
|
|
112
|
+
noSpeechDetected: "未检测到语音。",
|
|
113
|
+
expandPastedText: "展开",
|
|
114
|
+
drawerExpand: (label) => `展开 ${label}`,
|
|
115
|
+
drawerCollapse: (label) => `折叠 ${label}`,
|
|
116
|
+
startDictation: "开始语音输入",
|
|
117
|
+
stopDictation: "停止语音输入",
|
|
118
|
+
send: "发送",
|
|
119
|
+
stop: "停止",
|
|
120
|
+
suggestions: "建议",
|
|
121
|
+
searching: "正在搜索…",
|
|
122
|
+
noResults: "没有结果"
|
|
83
123
|
}
|
|
84
124
|
};
|
|
85
125
|
//#endregion
|
|
126
|
+
//#region src/locale/messages/checkbox-list.ts
|
|
127
|
+
const checkboxListMessages = {
|
|
128
|
+
"en": { loading: "Loading" },
|
|
129
|
+
"zh-CN": { loading: "正在加载" }
|
|
130
|
+
};
|
|
131
|
+
//#endregion
|
|
86
132
|
//#region src/locale/messages/citation.ts
|
|
87
133
|
const citationMessages = {
|
|
88
134
|
"en": { label: (number, title) => `Citation ${number}: ${title}` },
|
|
@@ -131,14 +177,18 @@ const dateInputMessages = {
|
|
|
131
177
|
dialogLabel: "Choose date",
|
|
132
178
|
openCalendar: "Open calendar",
|
|
133
179
|
closeCalendar: "Close calendar",
|
|
134
|
-
clear: (label) => clearLabel(label, "Clear", "Clear ")
|
|
180
|
+
clear: (label) => clearLabel(label, "Clear", "Clear "),
|
|
181
|
+
invalidDate: "That date is not available",
|
|
182
|
+
loading: "Loading"
|
|
135
183
|
},
|
|
136
184
|
"zh-CN": {
|
|
137
185
|
placeholder: "选择日期",
|
|
138
186
|
dialogLabel: "选择日期",
|
|
139
187
|
openCalendar: "打开日历",
|
|
140
188
|
closeCalendar: "关闭日历",
|
|
141
|
-
clear: (label) => clearLabel(label, "清除", "清除")
|
|
189
|
+
clear: (label) => clearLabel(label, "清除", "清除"),
|
|
190
|
+
invalidDate: "这个日期不可用",
|
|
191
|
+
loading: "正在加载"
|
|
142
192
|
}
|
|
143
193
|
};
|
|
144
194
|
//#endregion
|
|
@@ -170,6 +220,18 @@ const dateTimeInputMessages = {
|
|
|
170
220
|
}
|
|
171
221
|
};
|
|
172
222
|
//#endregion
|
|
223
|
+
//#region src/locale/messages/dropdown-menu.ts
|
|
224
|
+
const dropdownMenuMessages = {
|
|
225
|
+
"en": {
|
|
226
|
+
back: "Back",
|
|
227
|
+
backTo: (parent) => `Back to ${parent}`
|
|
228
|
+
},
|
|
229
|
+
"zh-CN": {
|
|
230
|
+
back: "返回",
|
|
231
|
+
backTo: (parent) => `返回到${parent}`
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
//#endregion
|
|
173
235
|
//#region src/locale/messages/file-input.ts
|
|
174
236
|
const fileInputMessages = {
|
|
175
237
|
"en": {
|
|
@@ -196,6 +258,20 @@ const fileInputMessages = {
|
|
|
196
258
|
}
|
|
197
259
|
};
|
|
198
260
|
//#endregion
|
|
261
|
+
//#region src/locale/messages/input.ts
|
|
262
|
+
const inputMessages = {
|
|
263
|
+
"en": {
|
|
264
|
+
statusError: "Error details",
|
|
265
|
+
statusWarning: "Warning details",
|
|
266
|
+
statusSuccess: "Success details"
|
|
267
|
+
},
|
|
268
|
+
"zh-CN": {
|
|
269
|
+
statusError: "错误详情",
|
|
270
|
+
statusWarning: "警告详情",
|
|
271
|
+
statusSuccess: "成功详情"
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
//#endregion
|
|
199
275
|
//#region src/locale/messages/layout.ts
|
|
200
276
|
const layoutMessages = {
|
|
201
277
|
"en": {
|
|
@@ -273,18 +349,30 @@ const multiSelectorMessages = {
|
|
|
273
349
|
search: "Search…",
|
|
274
350
|
clear: "Clear",
|
|
275
351
|
empty: "No matches",
|
|
352
|
+
emptySearch: "No results found",
|
|
276
353
|
selectAll: "Select all",
|
|
277
354
|
selected: (count) => `${count} selected`,
|
|
278
|
-
more: (count) => `+${count}
|
|
355
|
+
more: (count) => `+${count}`,
|
|
356
|
+
resultCount: (count) => count === 1 ? "1 result" : `${count} results`,
|
|
357
|
+
create: (query) => `Create "${query}"`,
|
|
358
|
+
created: (label) => `${label} created`,
|
|
359
|
+
readOnly: "Read-only",
|
|
360
|
+
loading: "Loading"
|
|
279
361
|
},
|
|
280
362
|
"zh-CN": {
|
|
281
363
|
placeholder: "请选择",
|
|
282
364
|
search: "搜索…",
|
|
283
365
|
clear: "清除",
|
|
284
366
|
empty: "无匹配项",
|
|
367
|
+
emptySearch: "未找到结果",
|
|
285
368
|
selectAll: "全选",
|
|
286
369
|
selected: (count) => `已选 ${count} 项`,
|
|
287
|
-
more: (count) => `+${count}
|
|
370
|
+
more: (count) => `+${count}`,
|
|
371
|
+
resultCount: (count) => `${count} 个结果`,
|
|
372
|
+
create: (query) => `创建“${query}”`,
|
|
373
|
+
created: (label) => `已创建 ${label}`,
|
|
374
|
+
readOnly: "只读",
|
|
375
|
+
loading: "正在加载"
|
|
288
376
|
}
|
|
289
377
|
};
|
|
290
378
|
//#endregion
|
|
@@ -367,6 +455,136 @@ const paginationMessages = {
|
|
|
367
455
|
pageOf: (page, totalPages) => `第 ${page} 页,共 ${totalPages} 页`
|
|
368
456
|
}
|
|
369
457
|
};
|
|
458
|
+
const powerSearchMessages = {
|
|
459
|
+
"en": {
|
|
460
|
+
label: "Search",
|
|
461
|
+
placeholder: "Search…",
|
|
462
|
+
clear: "Clear all",
|
|
463
|
+
results: "Search results",
|
|
464
|
+
empty: "No results",
|
|
465
|
+
removeFilter: (label) => `Remove ${label}`,
|
|
466
|
+
resultCount: (count) => `${new Intl.NumberFormat("en").format(count)} ${count === 1 ? "result" : "results"}`,
|
|
467
|
+
itemsCount: (count) => `${new Intl.NumberFormat("en").format(count)} ${count === 1 ? "item" : "items"}`,
|
|
468
|
+
entitiesCount: (count) => `${new Intl.NumberFormat("en").format(count)} ${count === 1 ? "entity" : "entities"}`,
|
|
469
|
+
filtersCount: (count) => `${new Intl.NumberFormat("en").format(count)} ${count === 1 ? "filter" : "filters"}`,
|
|
470
|
+
more: (count) => `${new Intl.NumberFormat("en").format(count)} more`,
|
|
471
|
+
dateRange: "date range",
|
|
472
|
+
operators: {
|
|
473
|
+
contains: "contains",
|
|
474
|
+
notContains: "does not contain",
|
|
475
|
+
startsWith: "starts with",
|
|
476
|
+
notStartsWith: "does not start with",
|
|
477
|
+
endsWith: "ends with",
|
|
478
|
+
notEndsWith: "does not end with",
|
|
479
|
+
is: "is",
|
|
480
|
+
isNot: "is not",
|
|
481
|
+
equals: "equals",
|
|
482
|
+
notEquals: "does not equal",
|
|
483
|
+
greaterThan: "is greater than",
|
|
484
|
+
lessThan: "is less than",
|
|
485
|
+
greaterThanOrEqual: "is greater than or equal to",
|
|
486
|
+
lessThanOrEqual: "is less than or equal to",
|
|
487
|
+
before: "is before",
|
|
488
|
+
after: "is after",
|
|
489
|
+
between: "is between",
|
|
490
|
+
isTrue: "is true",
|
|
491
|
+
isFalse: "is false",
|
|
492
|
+
isAnyOf: "is any of",
|
|
493
|
+
isNoneOf: "is none of"
|
|
494
|
+
},
|
|
495
|
+
editor: {
|
|
496
|
+
field: "Field",
|
|
497
|
+
operator: "Operator",
|
|
498
|
+
addFilter: "+ Add filter",
|
|
499
|
+
removeFilter: "Remove filter",
|
|
500
|
+
group: "Group",
|
|
501
|
+
delete: "Delete",
|
|
502
|
+
cancel: "Cancel",
|
|
503
|
+
apply: "Apply",
|
|
504
|
+
editing: "Edit filter"
|
|
505
|
+
},
|
|
506
|
+
value: {
|
|
507
|
+
value: "Value",
|
|
508
|
+
values: "Values",
|
|
509
|
+
time: "Time",
|
|
510
|
+
date: "Date",
|
|
511
|
+
relativeDate: "Relative date",
|
|
512
|
+
startDate: "Start date",
|
|
513
|
+
endDate: "End date",
|
|
514
|
+
entities: "Entities",
|
|
515
|
+
searchPlaceholder: "Search…",
|
|
516
|
+
enterValuePlaceholder: "Enter value…",
|
|
517
|
+
addValuesPlaceholder: "Add values…",
|
|
518
|
+
enterNumberPlaceholder: "Enter number…",
|
|
519
|
+
selectPlaceholder: "Select…",
|
|
520
|
+
selectValuesPlaceholder: "Select values…"
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
"zh-CN": {
|
|
524
|
+
label: "搜索",
|
|
525
|
+
placeholder: "搜索……",
|
|
526
|
+
clear: "全部清除",
|
|
527
|
+
results: "搜索结果",
|
|
528
|
+
empty: "没有结果",
|
|
529
|
+
removeFilter: (label) => `移除${label}`,
|
|
530
|
+
resultCount: (count) => `${new Intl.NumberFormat("zh-CN").format(count)} 个结果`,
|
|
531
|
+
itemsCount: (count) => `${new Intl.NumberFormat("zh-CN").format(count)} 个项目`,
|
|
532
|
+
entitiesCount: (count) => `${new Intl.NumberFormat("zh-CN").format(count)} 个实体`,
|
|
533
|
+
filtersCount: (count) => `${new Intl.NumberFormat("zh-CN").format(count)} 个筛选条件`,
|
|
534
|
+
more: (count) => `另外 ${new Intl.NumberFormat("zh-CN").format(count)} 个`,
|
|
535
|
+
dateRange: "日期范围",
|
|
536
|
+
operators: {
|
|
537
|
+
contains: "包含",
|
|
538
|
+
notContains: "不包含",
|
|
539
|
+
startsWith: "开头是",
|
|
540
|
+
notStartsWith: "开头不是",
|
|
541
|
+
endsWith: "结尾是",
|
|
542
|
+
notEndsWith: "结尾不是",
|
|
543
|
+
is: "是",
|
|
544
|
+
isNot: "不是",
|
|
545
|
+
equals: "等于",
|
|
546
|
+
notEquals: "不等于",
|
|
547
|
+
greaterThan: "大于",
|
|
548
|
+
lessThan: "小于",
|
|
549
|
+
greaterThanOrEqual: "大于或等于",
|
|
550
|
+
lessThanOrEqual: "小于或等于",
|
|
551
|
+
before: "早于",
|
|
552
|
+
after: "晚于",
|
|
553
|
+
between: "介于",
|
|
554
|
+
isTrue: "为真",
|
|
555
|
+
isFalse: "为假",
|
|
556
|
+
isAnyOf: "是其中任一",
|
|
557
|
+
isNoneOf: "不是其中任何一个"
|
|
558
|
+
},
|
|
559
|
+
editor: {
|
|
560
|
+
field: "字段",
|
|
561
|
+
operator: "运算符",
|
|
562
|
+
addFilter: "+ 添加筛选条件",
|
|
563
|
+
removeFilter: "移除筛选条件",
|
|
564
|
+
group: "分组",
|
|
565
|
+
delete: "删除",
|
|
566
|
+
cancel: "取消",
|
|
567
|
+
apply: "应用",
|
|
568
|
+
editing: "编辑筛选条件"
|
|
569
|
+
},
|
|
570
|
+
value: {
|
|
571
|
+
value: "值",
|
|
572
|
+
values: "值",
|
|
573
|
+
time: "时间",
|
|
574
|
+
date: "日期",
|
|
575
|
+
relativeDate: "相对日期",
|
|
576
|
+
startDate: "开始日期",
|
|
577
|
+
endDate: "结束日期",
|
|
578
|
+
entities: "实体",
|
|
579
|
+
searchPlaceholder: "搜索……",
|
|
580
|
+
enterValuePlaceholder: "输入值……",
|
|
581
|
+
addValuesPlaceholder: "添加值……",
|
|
582
|
+
enterNumberPlaceholder: "输入数字……",
|
|
583
|
+
selectPlaceholder: "选择……",
|
|
584
|
+
selectValuesPlaceholder: "选择值……"
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
};
|
|
370
588
|
//#endregion
|
|
371
589
|
//#region src/locale/messages/selector.ts
|
|
372
590
|
const selectorMessages = {
|
|
@@ -374,13 +592,21 @@ const selectorMessages = {
|
|
|
374
592
|
placeholder: "Select…",
|
|
375
593
|
search: "Search…",
|
|
376
594
|
clear: "Clear",
|
|
377
|
-
empty: "No matches"
|
|
595
|
+
empty: "No matches",
|
|
596
|
+
emptySearch: "No results found",
|
|
597
|
+
resultCount: (count) => count === 1 ? "1 result" : `${count} results`,
|
|
598
|
+
readOnly: "Read-only",
|
|
599
|
+
loading: "Loading"
|
|
378
600
|
},
|
|
379
601
|
"zh-CN": {
|
|
380
602
|
placeholder: "请选择",
|
|
381
603
|
search: "搜索…",
|
|
382
604
|
clear: "清除",
|
|
383
|
-
empty: "无匹配项"
|
|
605
|
+
empty: "无匹配项",
|
|
606
|
+
emptySearch: "未找到结果",
|
|
607
|
+
resultCount: (count) => `${count} 个结果`,
|
|
608
|
+
readOnly: "只读",
|
|
609
|
+
loading: "正在加载"
|
|
384
610
|
}
|
|
385
611
|
};
|
|
386
612
|
//#endregion
|
|
@@ -434,7 +660,15 @@ const tableMessages = {
|
|
|
434
660
|
bulkActionsLabel: "Bulk actions",
|
|
435
661
|
clearAll: "Unselect All",
|
|
436
662
|
selectedCount: (count) => `${count} selected`,
|
|
437
|
-
paginationLabel: "Table pagination"
|
|
663
|
+
paginationLabel: "Table pagination",
|
|
664
|
+
expandGroup: (groupKey) => `Expand group ${groupKey}`,
|
|
665
|
+
collapseGroup: (groupKey) => `Collapse group ${groupKey}`,
|
|
666
|
+
expandRow: "Expand row",
|
|
667
|
+
collapseRow: "Collapse row",
|
|
668
|
+
expandAllRows: "Expand all rows",
|
|
669
|
+
collapseAllRows: "Collapse all rows",
|
|
670
|
+
rowExpansion: "Row expansion",
|
|
671
|
+
rowStatus: "Row status"
|
|
438
672
|
},
|
|
439
673
|
"zh-CN": {
|
|
440
674
|
label: "表格",
|
|
@@ -454,7 +688,15 @@ const tableMessages = {
|
|
|
454
688
|
bulkActionsLabel: "批量操作",
|
|
455
689
|
clearAll: "取消全选",
|
|
456
690
|
selectedCount: (count) => `已选择 ${count} 项`,
|
|
457
|
-
paginationLabel: "表格分页"
|
|
691
|
+
paginationLabel: "表格分页",
|
|
692
|
+
expandGroup: (groupKey) => `展开分组 ${groupKey}`,
|
|
693
|
+
collapseGroup: (groupKey) => `折叠分组 ${groupKey}`,
|
|
694
|
+
expandRow: "展开行",
|
|
695
|
+
collapseRow: "折叠行",
|
|
696
|
+
expandAllRows: "展开所有行",
|
|
697
|
+
collapseAllRows: "折叠所有行",
|
|
698
|
+
rowExpansion: "行展开",
|
|
699
|
+
rowStatus: "行状态"
|
|
458
700
|
}
|
|
459
701
|
};
|
|
460
702
|
//#endregion
|
|
@@ -572,12 +814,15 @@ const astryxMessages = {
|
|
|
572
814
|
calendar: calendarMessages.en,
|
|
573
815
|
carousel: carouselMessages.en,
|
|
574
816
|
chat: chatMessages.en,
|
|
817
|
+
checkboxList: checkboxListMessages.en,
|
|
575
818
|
citation: citationMessages.en,
|
|
576
819
|
commandPalette: commandPaletteMessages.en,
|
|
577
820
|
dateInput: dateInputMessages.en,
|
|
578
821
|
dateRangeInput: dateRangeInputMessages.en,
|
|
579
822
|
dateTimeInput: dateTimeInputMessages.en,
|
|
823
|
+
dropdownMenu: dropdownMenuMessages.en,
|
|
580
824
|
fileInput: fileInputMessages.en,
|
|
825
|
+
input: inputMessages.en,
|
|
581
826
|
layout: layoutMessages.en,
|
|
582
827
|
lightbox: lightboxMessages.en,
|
|
583
828
|
markdown: markdownMessages.en,
|
|
@@ -587,6 +832,7 @@ const astryxMessages = {
|
|
|
587
832
|
numberInput: numberInputMessages.en,
|
|
588
833
|
outline: outlineMessages.en,
|
|
589
834
|
pagination: paginationMessages.en,
|
|
835
|
+
powerSearch: powerSearchMessages.en,
|
|
590
836
|
selector: selectorMessages.en,
|
|
591
837
|
stepper: stepperMessages.en,
|
|
592
838
|
table: tableMessages.en,
|
|
@@ -602,12 +848,15 @@ const astryxMessages = {
|
|
|
602
848
|
calendar: calendarMessages["zh-CN"],
|
|
603
849
|
carousel: carouselMessages["zh-CN"],
|
|
604
850
|
chat: chatMessages["zh-CN"],
|
|
851
|
+
checkboxList: checkboxListMessages["zh-CN"],
|
|
605
852
|
citation: citationMessages["zh-CN"],
|
|
606
853
|
commandPalette: commandPaletteMessages["zh-CN"],
|
|
607
854
|
dateInput: dateInputMessages["zh-CN"],
|
|
608
855
|
dateRangeInput: dateRangeInputMessages["zh-CN"],
|
|
609
856
|
dateTimeInput: dateTimeInputMessages["zh-CN"],
|
|
857
|
+
dropdownMenu: dropdownMenuMessages["zh-CN"],
|
|
610
858
|
fileInput: fileInputMessages["zh-CN"],
|
|
859
|
+
input: inputMessages["zh-CN"],
|
|
611
860
|
layout: layoutMessages["zh-CN"],
|
|
612
861
|
lightbox: lightboxMessages["zh-CN"],
|
|
613
862
|
markdown: markdownMessages["zh-CN"],
|
|
@@ -617,6 +866,7 @@ const astryxMessages = {
|
|
|
617
866
|
numberInput: numberInputMessages["zh-CN"],
|
|
618
867
|
outline: outlineMessages["zh-CN"],
|
|
619
868
|
pagination: paginationMessages["zh-CN"],
|
|
869
|
+
powerSearch: powerSearchMessages["zh-CN"],
|
|
620
870
|
selector: selectorMessages["zh-CN"],
|
|
621
871
|
stepper: stepperMessages["zh-CN"],
|
|
622
872
|
table: tableMessages["zh-CN"],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as DropdownMenuSize, y as DropdownMenuOption } from "./DropdownMenuRadioItem.vue-uVM0FD2f.js";
|
|
2
2
|
import { ComputedRef } from "vue";
|
|
3
3
|
//#region src/Breadcrumbs/types.d.ts
|
|
4
4
|
type BreadcrumbsVariant = 'default' | 'supporting';
|
|
@@ -46,6 +46,8 @@ interface BreadcrumbItemProps {
|
|
|
46
46
|
type __VLS_Slots$1 = {
|
|
47
47
|
default: () => unknown;
|
|
48
48
|
startIcon: () => unknown;
|
|
49
|
+
/** Compound menu rows. Used instead of the `menu` array. */
|
|
50
|
+
menu?: () => unknown;
|
|
49
51
|
};
|
|
50
52
|
declare const __VLS_base$1: import("vue").DefineComponent<BreadcrumbItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
51
53
|
click: (event: MouseEvent) => any;
|
|
@@ -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 };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { _ as IndicatorProps, d as IndicatorComponent, h as IndicatorName, i as ThemeDefinition, u as CoreIndicatorName, y as IndicatorSize } from "./types-jmqqnkKA.js";
|
|
2
|
+
import { ComputedRef, VNodeChild } from "vue";
|
|
3
|
+
//#region src/Indicator/CheckIndicator.vue.d.ts
|
|
4
|
+
type __VLS_Props$1 = IndicatorProps<'singleSelection'>;
|
|
5
|
+
declare var __VLS_1$1: {};
|
|
6
|
+
type __VLS_Slots$1 = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1$1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base$1: import("vue").DefineComponent<__VLS_Props$1, {
|
|
10
|
+
element: Readonly<import("vue").ShallowRef<HTMLElement | null>>;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props$1> & Readonly<{}>, {
|
|
12
|
+
size: IndicatorSize;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
15
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
16
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/Indicator/isRenderable.d.ts
|
|
23
|
+
/**
|
|
24
|
+
* Whether a slot or vnode should replace an indicator's own mark.
|
|
25
|
+
*
|
|
26
|
+
* Null, undefined, booleans, and the empty string do not count. An element
|
|
27
|
+
* does, even when that element later renders nothing. A host writes
|
|
28
|
+
* `v-if="busy"` around a spinner, and `false` must not delete the mark.
|
|
29
|
+
*/
|
|
30
|
+
declare function isRenderable(value: VNodeChild | VNodeChild[] | undefined): boolean;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/Indicator/RadioIndicator.vue.d.ts
|
|
33
|
+
type __VLS_Props = IndicatorProps<'singleSelection'>;
|
|
34
|
+
declare var __VLS_1: {};
|
|
35
|
+
type __VLS_Slots = {} & {
|
|
36
|
+
default?: (props: typeof __VLS_1) => any;
|
|
37
|
+
};
|
|
38
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
39
|
+
element: Readonly<import("vue").ShallowRef<HTMLSpanElement | null>>;
|
|
40
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
42
|
+
declare const _default: typeof __VLS_export;
|
|
43
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/Indicator/registry.d.ts
|
|
50
|
+
/**
|
|
51
|
+
* The graphics this package ships.
|
|
52
|
+
*
|
|
53
|
+
* A theme's `indicators` entries replace these by name. The set is closed:
|
|
54
|
+
* a name added by augmentation is not in here.
|
|
55
|
+
*/
|
|
56
|
+
declare const defaultIndicators: { [N in CoreIndicatorName]: IndicatorComponent; };
|
|
57
|
+
declare function isCoreIndicatorName(name: string): name is CoreIndicatorName;
|
|
58
|
+
/**
|
|
59
|
+
* Resolve one graphic by name.
|
|
60
|
+
*
|
|
61
|
+
* A core name always resolves. A name this package does not know resolves
|
|
62
|
+
* only when the theme supplies it.
|
|
63
|
+
*/
|
|
64
|
+
declare function getIndicator<N extends CoreIndicatorName>(name: N, theme?: ThemeDefinition | null): IndicatorComponent;
|
|
65
|
+
declare function getIndicator(name: IndicatorName | (string & {}), theme?: ThemeDefinition | null): IndicatorComponent | undefined;
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/Indicator/useIndicator.d.ts
|
|
68
|
+
/**
|
|
69
|
+
* The indicator graphic from the nearest theme.
|
|
70
|
+
*
|
|
71
|
+
* A core name always resolves. Any other name resolves only when that theme
|
|
72
|
+
* supplies a component.
|
|
73
|
+
*/
|
|
74
|
+
declare function useIndicator<N extends CoreIndicatorName>(name: N): ComputedRef<IndicatorComponent>;
|
|
75
|
+
declare function useIndicator(name: string): ComputedRef<IndicatorComponent | undefined>;
|
|
76
|
+
//#endregion
|
|
77
|
+
export { _default as a, isCoreIndicatorName as i, defaultIndicators as n, isRenderable as o, getIndicator as r, _default$1 as s, useIndicator as t };
|
|
@@ -32,10 +32,10 @@ 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
|
-
|
|
35
|
+
isSelected: boolean;
|
|
36
36
|
isDisabled: boolean;
|
|
37
|
+
density: ListDensity;
|
|
37
38
|
as: ItemElement;
|
|
38
|
-
isSelected: boolean;
|
|
39
39
|
align: ItemAlign;
|
|
40
40
|
layout: ItemLayout;
|
|
41
41
|
isHighlighted: boolean;
|
|
@@ -12,14 +12,14 @@ declare const __VLS_base: import("vue").DefineComponent<PopoverProps, {}, {}, {}
|
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<PopoverProps> & Readonly<{
|
|
13
13
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
|
-
label: string;
|
|
16
|
-
width: string | number;
|
|
17
15
|
padding: PopoverPadding;
|
|
16
|
+
width: string | number;
|
|
17
|
+
label: string;
|
|
18
18
|
isOpen: boolean;
|
|
19
19
|
placement: LayerPlacement;
|
|
20
20
|
alignment: LayerAlignment;
|
|
21
|
-
isEnabled: boolean;
|
|
22
21
|
hasAutoFocus: boolean;
|
|
22
|
+
isEnabled: boolean;
|
|
23
23
|
role: PopoverRole;
|
|
24
24
|
isModal: boolean;
|
|
25
25
|
hasCloseButton: boolean;
|