@astryx-vue/core 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-EiGyPFbA.js → AppShell-1wNIEtK_.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar-jmHInHwj.js +244 -0
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CZcgAMjM.js → AvatarGroup-QyzSrpYA.js} +8 -7
- package/dist/Badge/index.d.ts +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge-CjDQPF5g.js +30 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-C3YZFQ9w.js → Breadcrumbs-C97HmjkC.js} +45 -11
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +1 -1
- package/dist/Calendar-DqC3EDN1.js +352 -0
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BTtHkKea.js → Carousel-BGUnskjo.js} +2 -2
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DjNxw5gv.js → Chat-DCjXRiOF.js} +8 -8
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-DijdbUUu.js → Citation-DunoAqVH.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CxTb6j9_.js → CodeBlock-CAF-VJnh.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-9MC08X39.js → Collapsible-DvMiYJp7.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BD2iODF5.js → CommandPalette-xfm9ldUI.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-D9iXd5cH.js → ComplexSelector-B6lBTRhP.js} +2 -2
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-HS_WqYIg.js → ContextMenu-DUkED3Z3.js} +101 -63
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-Crcg-CCj.js +376 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-1bhPGG2s.js → DateRangeInput-e9KSxBBK.js} +2 -2
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-SnPdgk6P.js → DateTimeInput-fSOfuLex.js} +5 -3
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +3 -2
- package/dist/DropdownMenu/index.js +3 -2
- package/dist/{DropdownMenu-UJGych6v.js → DropdownMenu-8G0B1UND.js} +63 -16
- package/dist/DropdownMenu-XvW4BJob.js +164 -0
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BQiwE-GB.js → FileInput-D-fchyQH.js} +2 -2
- package/dist/Icon/index.d.ts +4 -3
- package/dist/Icon/index.js +3 -2
- package/dist/Icon/plugin.d.ts +45 -0
- package/dist/Icon/plugin.js +177 -0
- package/dist/Icon-Bku25g_K.js +193 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-CshKoB0r.js → Lightbox-uuVGgHxW.js} +2 -2
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link-DqdQZ37C.js +141 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-D-Ua055V.js → Markdown-DLICa3db.js} +3 -3
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-sYph_d8Q.js → MetadataList-h492rqEN.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DD9D01aj.js → MobileNavToggle-BMj3Wtuq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BVrK5kkk.js → MoreMenu-DkYi5az5.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DiYov9sF.js → MultiSelector-C2IS-EaU.js} +2 -2
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +2 -2
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-CjfAsFwj.js +210 -0
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DQfEBxlc.js → Outline-BTmrtvXR.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-BU5VCntl.js → OverflowList-CRE8BE7V.js} +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +2 -2
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-HdhtykeF.js → Pagination-BpGXPmc7.js} +76 -22
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-ChDp-7oe.js → ProgressBar-DO9Chic6.js} +31 -11
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-BhSMfO5B.js → Resizable-CE8XQDL2.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +2 -2
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-DkJOLZSR.js +468 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-B-Om6Bz3.js → SideNav-DcDWBnXJ.js} +17 -17
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-BZ_8SEZt.js → Stepper-DZKaqEoz.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Cnc2Hs1H.js → TabList-hm06QPiW.js} +10 -3
- package/dist/Table/index.js +1 -1
- package/dist/{Table-D-LhAy_J.js → Table-DwehtMap.js} +4 -4
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-Cv9UVbzS.js → TextArea-CPwSytdO.js} +12 -6
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-Dc1UpykG.js → Thumbnail-CAOYds8t.js} +11 -11
- package/dist/{TimeField-C7t9Knq9.js → TimeField-BGbxCoKU.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-BXxCOY98.js → TimeInput-DJP3l4ZS.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +2 -1
- package/dist/{Timestamp-DlZSmgCJ.js → Timestamp-BzRp8uWc.js} +4 -121
- package/dist/Toast/index.d.ts +2 -2
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BKXPvEMp.js → Toast-C2ML-bmi.js} +37 -7
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-wt4e80IM.js → Token-CjocuhzE.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-nmTqdS9n.js → Tokenizer-mYES5SPM.js} +2 -2
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-notp-mJx.js → TopNav-C2t6JkZb.js} +3 -3
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-s1xBQ0qq.js → TreeList-THJ0KamE.js} +3 -3
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-VAuiCurV.js → Typeahead-D7VnvRpK.js} +2 -2
- package/dist/{context-Dbo22sck.js → context-DzcK4T_C.js} +4 -2
- package/dist/formatInstant-BDWUIxS7.js +119 -0
- package/dist/{index-Bainr_3n.d.ts → index-3p2BDVHq.d.ts} +1 -1
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-CTolyeii.d.ts → index-BLOEjvaM.d.ts} +16 -2
- package/dist/{index-z4p2k9VR.d.ts → index-Bgv4ZmBl.d.ts} +20 -2
- package/dist/{index-BoRIw-bP.d.ts → index-Bt7ewoz2.d.ts} +32 -2
- package/dist/{index-uQrLBZfF.d.ts → index-Bu3oXIIS.d.ts} +24 -0
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-C59PdX9L.d.ts → index-CBym0hSq.d.ts} +1 -1
- package/dist/index-CJlBAXwj.d.ts +100 -0
- package/dist/{index-DT9S92sh.d.ts → index-CNjbOgty.d.ts} +15 -0
- package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
- package/dist/{index-DoFCm2Q2.d.ts → index-Clmz00IK.d.ts} +2 -0
- package/dist/{index-DRmb-oUa.d.ts → index-CuFLztiI.d.ts} +6 -1
- package/dist/{index-fa72tWIU.d.ts → index-D2bSSSBP.d.ts} +1 -1
- package/dist/{index-NzLDrOkk.d.ts → index-DAiGhkNZ.d.ts} +15 -2
- package/dist/{index-DOUEn7V0.d.ts → index-DQAnGHu7.d.ts} +2 -2
- package/dist/{index-BfOtLyNH.d.ts → index-D_nYxnNv.d.ts} +1 -1
- package/dist/{index-C6iJwTL0.d.ts → index-DeOftUMq.d.ts} +181 -72
- package/dist/{index-Bn_odHQ9.d.ts → index-Dg3ZmwEg.d.ts} +12 -1
- package/dist/{index-BiMGXtD-.d.ts → index-DimuSES0.d.ts} +14 -1
- package/dist/{index-C_2Z65Rp.d.ts → index-DnEh-HA0.d.ts} +1 -1
- package/dist/{index-D-ZuubCK.d.ts → index-DnSrjbjP.d.ts} +1 -1
- package/dist/{index-BtPZKO20.d.ts → index-I4J7gwa1.d.ts} +49 -7
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-C7mxUcDR.d.ts → index-Z_onS2lR.d.ts} +2 -2
- package/dist/{index-CVn0GBdB.d.ts → index-cG1E0U2s.d.ts} +1 -1
- package/dist/{index-DEeJowZf.d.ts → index-cGagYM1g.d.ts} +15 -2
- package/dist/{index-Ck8qy6Rf.d.ts → index-c_TaW8mM.d.ts} +24 -2
- package/dist/index.d.ts +68 -67
- package/dist/index.js +98 -95
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/registry-B1ObuP--.d.ts +45 -0
- package/dist/registry-C7OZb0PJ.js +135 -0
- package/dist/{types-DZoEm_DG.d.ts → types-BKcxXW--.d.ts} +22 -5
- package/dist/{index-B8MbfMwV.d.ts → types-DDAAT1Xd.d.ts} +36 -82
- package/package.json +6 -1
- package/styles/avatar.css +14 -0
- package/styles/badge.css +8 -0
- package/styles/breadcrumbs.css +6 -1
- package/styles/button.css +13 -0
- package/styles/calendar.css +16 -0
- package/styles/card.css +2 -0
- package/styles/chat.css +5 -2
- package/styles/dropdown-menu.css +11 -0
- package/styles/icon.css +38 -8
- package/styles/link.css +5 -0
- package/styles/number-input.css +22 -0
- package/styles/pagination.css +45 -1
- package/styles/progress-bar.css +4 -0
- package/styles/selector.css +58 -0
- package/styles/tab-list.css +15 -0
- package/styles/text-area.css +17 -0
- package/styles/text-input.css +5 -0
- package/styles/toast.css +7 -0
- package/styles/toolbar.css +11 -0
- package/dist/Avatar-5s3HSrtN.js +0 -136
- package/dist/Badge-Ba0EwsTj.js +0 -19
- package/dist/Calendar-BG7wEsro.js +0 -277
- package/dist/DateInput-DE2TN1Rq.js +0 -250
- package/dist/Icon-Dfr4k6-S.js +0 -86
- package/dist/Link-CprjOuTI.js +0 -92
- package/dist/NumberInput-CTYiQxHq.js +0 -147
- package/dist/Selector-Da-2BO3q.js +0 -325
- package/dist/index-DtjAdYEc.d.ts +0 -68
- package/dist/{CheckboxList-EsIEXjK_.js → CheckboxList-BbCPiend.js} +1 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
//#region src/Timestamp/formatInstant.ts
|
|
2
|
+
const DATE_SHORT = {
|
|
3
|
+
month: "short",
|
|
4
|
+
day: "numeric",
|
|
5
|
+
year: "numeric"
|
|
6
|
+
};
|
|
7
|
+
const DATE_LONG = {
|
|
8
|
+
year: "numeric",
|
|
9
|
+
month: "long",
|
|
10
|
+
day: "numeric"
|
|
11
|
+
};
|
|
12
|
+
const DATE_WEEKDAY = {
|
|
13
|
+
weekday: "short",
|
|
14
|
+
month: "short",
|
|
15
|
+
day: "numeric",
|
|
16
|
+
year: "numeric"
|
|
17
|
+
};
|
|
18
|
+
const TIME = {
|
|
19
|
+
hour: "numeric",
|
|
20
|
+
minute: "2-digit"
|
|
21
|
+
};
|
|
22
|
+
const DATE_TIME = {
|
|
23
|
+
...DATE_SHORT,
|
|
24
|
+
...TIME
|
|
25
|
+
};
|
|
26
|
+
const FULL = {
|
|
27
|
+
year: "numeric",
|
|
28
|
+
month: "long",
|
|
29
|
+
day: "numeric",
|
|
30
|
+
hour: "numeric",
|
|
31
|
+
minute: "2-digit",
|
|
32
|
+
second: "2-digit",
|
|
33
|
+
timeZoneName: "short"
|
|
34
|
+
};
|
|
35
|
+
function pad(value) {
|
|
36
|
+
return String(value).padStart(2, "0");
|
|
37
|
+
}
|
|
38
|
+
function wallClock(date, timeZone) {
|
|
39
|
+
if (timeZone == null) return {
|
|
40
|
+
year: date.getFullYear(),
|
|
41
|
+
month: date.getMonth() + 1,
|
|
42
|
+
day: date.getDate(),
|
|
43
|
+
hour: date.getHours(),
|
|
44
|
+
minute: date.getMinutes(),
|
|
45
|
+
second: date.getSeconds()
|
|
46
|
+
};
|
|
47
|
+
const parts = new Intl.DateTimeFormat("en-US", {
|
|
48
|
+
timeZone,
|
|
49
|
+
hourCycle: "h23",
|
|
50
|
+
year: "numeric",
|
|
51
|
+
month: "2-digit",
|
|
52
|
+
day: "2-digit",
|
|
53
|
+
hour: "2-digit",
|
|
54
|
+
minute: "2-digit",
|
|
55
|
+
second: "2-digit"
|
|
56
|
+
}).formatToParts(date);
|
|
57
|
+
const read = (type) => Number(parts.find((part) => part.type === type)?.value ?? 0);
|
|
58
|
+
return {
|
|
59
|
+
year: read("year"),
|
|
60
|
+
month: read("month"),
|
|
61
|
+
day: read("day"),
|
|
62
|
+
hour: read("hour"),
|
|
63
|
+
minute: read("minute"),
|
|
64
|
+
second: read("second")
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function formatInstant(date, format, locale, { timeZone, isTimezoneShown = false, timeZoneNameStyle = "short" } = {}) {
|
|
68
|
+
const zone = timeZone == null ? {} : { timeZone };
|
|
69
|
+
const zoneName = isTimezoneShown ? { timeZoneName: "short" } : {};
|
|
70
|
+
switch (format) {
|
|
71
|
+
case "full": return new Intl.DateTimeFormat(locale, {
|
|
72
|
+
...FULL,
|
|
73
|
+
timeZoneName: timeZoneNameStyle,
|
|
74
|
+
...zone,
|
|
75
|
+
calendar: "gregory"
|
|
76
|
+
}).format(date);
|
|
77
|
+
case "date": return new Intl.DateTimeFormat(locale, {
|
|
78
|
+
...DATE_SHORT,
|
|
79
|
+
...zone,
|
|
80
|
+
calendar: "gregory"
|
|
81
|
+
}).format(date);
|
|
82
|
+
case "date_long": return new Intl.DateTimeFormat(locale, {
|
|
83
|
+
...DATE_LONG,
|
|
84
|
+
...zone,
|
|
85
|
+
calendar: "gregory"
|
|
86
|
+
}).format(date);
|
|
87
|
+
case "date_weekday": return new Intl.DateTimeFormat(locale, {
|
|
88
|
+
...DATE_WEEKDAY,
|
|
89
|
+
...zone,
|
|
90
|
+
calendar: "gregory"
|
|
91
|
+
}).format(date);
|
|
92
|
+
case "date_time": return new Intl.DateTimeFormat(locale, {
|
|
93
|
+
...DATE_TIME,
|
|
94
|
+
...zoneName,
|
|
95
|
+
...zone,
|
|
96
|
+
calendar: "gregory"
|
|
97
|
+
}).format(date);
|
|
98
|
+
case "time": return new Intl.DateTimeFormat(locale, {
|
|
99
|
+
...TIME,
|
|
100
|
+
...zoneName,
|
|
101
|
+
...zone
|
|
102
|
+
}).format(date);
|
|
103
|
+
case "system_date": {
|
|
104
|
+
const clock = wallClock(date, timeZone);
|
|
105
|
+
return `${clock.year}-${pad(clock.month)}-${pad(clock.day)}`;
|
|
106
|
+
}
|
|
107
|
+
case "system_date_time": {
|
|
108
|
+
const clock = wallClock(date, timeZone);
|
|
109
|
+
return `${clock.year}-${pad(clock.month)}-${pad(clock.day)} ${pad(clock.hour)}:${pad(clock.minute)}:${pad(clock.second)}`;
|
|
110
|
+
}
|
|
111
|
+
case "system_time": {
|
|
112
|
+
const clock = wallClock(date, timeZone);
|
|
113
|
+
return `${pad(clock.hour)}:${pad(clock.minute)}:${pad(clock.second)}`;
|
|
114
|
+
}
|
|
115
|
+
case "unix_seconds": return String(Math.floor(date.getTime() / 1e3));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
export { formatInstant as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as IconProps, n as IconColor, o as IconSlots, r as IconName } from "./types-
|
|
1
|
+
import { i as IconProps, n as IconColor, o as IconSlots, r as IconName } from "./types-BKcxXW--.js";
|
|
2
2
|
//#region src/Icon/glyphs.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* A name that resolves to built-in artwork: one of the semantic names the
|
|
@@ -175,8 +175,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
175
175
|
}>, {
|
|
176
176
|
position: OverlayPosition;
|
|
177
177
|
align: OverlayAlign;
|
|
178
|
-
scrim: OverlayScrimMode;
|
|
179
178
|
showOn: OverlayShowOn;
|
|
179
|
+
scrim: OverlayScrimMode;
|
|
180
180
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
181
181
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
182
182
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -192,8 +192,8 @@ declare const __VLS_base: import("vue").DefineComponent<OverlayScrimProps, {}, {
|
|
|
192
192
|
isOpen: boolean;
|
|
193
193
|
position: OverlayPosition;
|
|
194
194
|
align: OverlayAlign;
|
|
195
|
-
scrim: OverlayScrimMode;
|
|
196
195
|
showOn: OverlayShowOn;
|
|
196
|
+
scrim: OverlayScrimMode;
|
|
197
197
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
198
198
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
199
199
|
declare const _default: typeof __VLS_export;
|
|
@@ -15,6 +15,14 @@ type ContextMenuSize = 'sm' | 'md' | 'lg';
|
|
|
15
15
|
* text flow.
|
|
16
16
|
*/
|
|
17
17
|
type ContextMenuTriggerElement = 'div' | 'span';
|
|
18
|
+
/**
|
|
19
|
+
* How the actions are presented.
|
|
20
|
+
*
|
|
21
|
+
* `popover` anchors a menu to the pointer, `bottom-sheet` presents a
|
|
22
|
+
* thumb-reachable sheet, and `adaptive` uses the sheet at 768px and below
|
|
23
|
+
* when the primary pointer is coarse.
|
|
24
|
+
*/
|
|
25
|
+
type ContextMenuPresentation = 'popover' | 'bottom-sheet' | 'adaptive';
|
|
18
26
|
/** A menu width as a number of pixels or any CSS length. */
|
|
19
27
|
type ContextMenuWidth = number | string;
|
|
20
28
|
/**
|
|
@@ -134,6 +142,11 @@ interface ContextMenuProps {
|
|
|
134
142
|
* @default 'div'
|
|
135
143
|
*/
|
|
136
144
|
triggerAs?: ContextMenuTriggerElement;
|
|
145
|
+
/**
|
|
146
|
+
* How the menu is presented.
|
|
147
|
+
* @default 'popover'
|
|
148
|
+
*/
|
|
149
|
+
presentation?: ContextMenuPresentation;
|
|
137
150
|
/**
|
|
138
151
|
* Open state of the menu. Bind it with `v-model:is-open` to control the
|
|
139
152
|
* menu from the outside; leave it unbound and the menu manages its own
|
|
@@ -314,8 +327,9 @@ declare const __VLS_base$3: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
314
327
|
"onUpdate:isOpen"?: ((...args: unknown[]) => any) | undefined;
|
|
315
328
|
}>, {
|
|
316
329
|
label: string;
|
|
317
|
-
size: ContextMenuSize;
|
|
318
330
|
isDisabled: boolean;
|
|
331
|
+
size: ContextMenuSize;
|
|
332
|
+
presentation: ContextMenuPresentation;
|
|
319
333
|
triggerAs: ContextMenuTriggerElement;
|
|
320
334
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
321
335
|
declare const __VLS_export$4: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
@@ -381,4 +395,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
381
395
|
};
|
|
382
396
|
};
|
|
383
397
|
//#endregion
|
|
384
|
-
export {
|
|
398
|
+
export { ContextMenuWidth as A, ContextMenuSize as C, ContextMenuSubMenuSlots as D, ContextMenuSubMenuProps as E, ContextMenuTriggerElement as O, ContextMenuSection as S, ContextMenuSubMenuEmits as T, ContextMenuItemSlots as _, _default$4 as a, ContextMenuPresentation as b, ContextMenuDividerData as c, ContextMenuGroupProps as d, ContextMenuGroupSlots as f, ContextMenuItemProps as g, ContextMenuItemIcon as h, _default$3 as i, ContextMenuVariant as k, ContextMenuDividerProps as l, ContextMenuItemEmits as m, _default$1 as n, useContextMenu as o, ContextMenuItemData as p, _default$2 as r, useContextMenuSize as s, _default as t, ContextMenuEmits as u, ContextMenuItemTarget as v, ContextMenuSlots as w, ContextMenuProps as x, ContextMenuOption as y };
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { CalendarDate } from "@internationalized/date";
|
|
2
2
|
//#region src/Calendar/types.d.ts
|
|
3
|
+
interface CalendarRangeValue {
|
|
4
|
+
start: Date | null;
|
|
5
|
+
end: Date | null;
|
|
6
|
+
}
|
|
3
7
|
interface CalendarProps {
|
|
4
|
-
/**
|
|
8
|
+
/** 当前选中的日期。`mode="range"` 时改用 `range`。 */
|
|
5
9
|
modelValue?: Date | null;
|
|
10
|
+
/** 选一天,或选一段起止日期。 */
|
|
11
|
+
mode?: 'single' | 'range';
|
|
12
|
+
/** 范围模式下的起止日期,用 `v-model:range` 绑定。 */
|
|
13
|
+
range?: CalendarRangeValue | null;
|
|
14
|
+
/** 并排显示的月份数。 */
|
|
15
|
+
numberOfMonths?: 1 | 2;
|
|
16
|
+
/** 打开时先显示这一天所在的月份。 */
|
|
17
|
+
focusDate?: Date;
|
|
6
18
|
/** 最小可选日期 */
|
|
7
19
|
min?: Date;
|
|
8
20
|
/** 最大可选日期 */
|
|
@@ -16,6 +28,7 @@ interface CalendarProps {
|
|
|
16
28
|
}
|
|
17
29
|
interface CalendarEmits {
|
|
18
30
|
(event: 'update:modelValue', value: Date | null): void;
|
|
31
|
+
(event: 'update:range', value: CalendarRangeValue): void;
|
|
19
32
|
(event: 'change', value: Date | null): void;
|
|
20
33
|
}
|
|
21
34
|
interface CalendarSlots {
|
|
@@ -36,12 +49,17 @@ type __VLS_Slots = CalendarSlots;
|
|
|
36
49
|
declare const __VLS_base: import("vue").DefineComponent<CalendarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
37
50
|
change: (value: Date | null) => any;
|
|
38
51
|
"update:modelValue": (value: Date | null) => any;
|
|
52
|
+
"update:range": (value: CalendarRangeValue) => any;
|
|
39
53
|
}, string, import("vue").PublicProps, Readonly<CalendarProps> & Readonly<{
|
|
40
54
|
onChange?: ((value: Date | null) => any) | undefined;
|
|
41
55
|
"onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
|
|
56
|
+
"onUpdate:range"?: ((value: CalendarRangeValue) => any) | undefined;
|
|
42
57
|
}>, {
|
|
43
58
|
modelValue: Date | null;
|
|
59
|
+
mode: "single" | "range";
|
|
44
60
|
disabled: boolean;
|
|
61
|
+
range: CalendarRangeValue | null;
|
|
62
|
+
numberOfMonths: 1 | 2;
|
|
45
63
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
64
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
47
65
|
declare const _default: typeof __VLS_export;
|
|
@@ -51,4 +69,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
51
69
|
};
|
|
52
70
|
};
|
|
53
71
|
//#endregion
|
|
54
|
-
export { CalendarSlots as i, CalendarEmits as n, CalendarProps as r, _default as t };
|
|
72
|
+
export { CalendarSlots as a, CalendarRangeValue as i, CalendarEmits as n, CalendarProps as r, _default as t };
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { Component } from "vue";
|
|
1
2
|
//#region src/Toast/types.d.ts
|
|
2
3
|
type ToastType = 'info' | 'success' | 'warning' | 'error';
|
|
4
|
+
/**
|
|
5
|
+
* What happens when a new toast reuses a `uniqueID` that is already on screen.
|
|
6
|
+
*
|
|
7
|
+
* `overwrite` replaces that toast in place. `ignore` drops the new toast.
|
|
8
|
+
*/
|
|
9
|
+
type ToastCollisionBehavior = 'ignore' | 'overwrite';
|
|
3
10
|
interface ToastOptions {
|
|
4
11
|
/**
|
|
5
12
|
* Visual type of the toast.
|
|
@@ -20,9 +27,31 @@ interface ToastOptions {
|
|
|
20
27
|
* @default 5000
|
|
21
28
|
*/
|
|
22
29
|
duration?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Identity shared by toasts that should collapse into one. A later toast with
|
|
32
|
+
* the same id overwrites the visible one, unless `collisionBehavior` is
|
|
33
|
+
* `ignore`.
|
|
34
|
+
*/
|
|
35
|
+
uniqueID?: string;
|
|
36
|
+
/**
|
|
37
|
+
* How a `uniqueID` clash is resolved.
|
|
38
|
+
* @default 'overwrite'
|
|
39
|
+
*/
|
|
40
|
+
collisionBehavior?: ToastCollisionBehavior;
|
|
41
|
+
/**
|
|
42
|
+
* Trailing action rendered after the message, such as an undo button.
|
|
43
|
+
* Pass a component; for a one-off render, pass a function component.
|
|
44
|
+
*/
|
|
45
|
+
endContent?: Component;
|
|
23
46
|
}
|
|
24
|
-
interface ToastItem
|
|
47
|
+
interface ToastItem {
|
|
25
48
|
id: string;
|
|
49
|
+
type: ToastType;
|
|
50
|
+
body: string;
|
|
51
|
+
autoClose: boolean;
|
|
52
|
+
duration: number;
|
|
53
|
+
uniqueID?: string;
|
|
54
|
+
endContent?: Component;
|
|
26
55
|
/**
|
|
27
56
|
* True once the toast has been asked to close. The toast stays mounted so it
|
|
28
57
|
* can play its exit transition, then leaves the store.
|
|
@@ -41,6 +70,7 @@ type __VLS_Props$1 = ToastOptions & {
|
|
|
41
70
|
};
|
|
42
71
|
type __VLS_Slots = {
|
|
43
72
|
default: () => unknown;
|
|
73
|
+
end: () => unknown;
|
|
44
74
|
};
|
|
45
75
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props$1, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
46
76
|
close: () => any;
|
|
@@ -86,4 +116,4 @@ interface UseToastReturn {
|
|
|
86
116
|
}
|
|
87
117
|
declare function useToast(): UseToastReturn;
|
|
88
118
|
//#endregion
|
|
89
|
-
export {
|
|
119
|
+
export { ToastItem as a, ToastType as c, ToastCollisionBehavior as i, _default as n, ToastOptions as o, _default$1 as r, ToastPlacement as s, useToast as t };
|
|
@@ -32,6 +32,25 @@ interface AvatarProps {
|
|
|
32
32
|
* The primary image source for the avatar.
|
|
33
33
|
*/
|
|
34
34
|
src?: string;
|
|
35
|
+
/**
|
|
36
|
+
* When set, the avatar renders as a link.
|
|
37
|
+
*/
|
|
38
|
+
href?: string;
|
|
39
|
+
/**
|
|
40
|
+
* HTML target for the link. Only applies when `href` is set.
|
|
41
|
+
*/
|
|
42
|
+
target?: string;
|
|
43
|
+
/**
|
|
44
|
+
* HTML rel for the link. `noopener noreferrer` is added when `target` is `_blank`.
|
|
45
|
+
*/
|
|
46
|
+
rel?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Hover and focus tooltip.
|
|
49
|
+
*
|
|
50
|
+
* `true` (default) shows `name`. A string shows that text instead. `false` turns the tooltip off.
|
|
51
|
+
* @default true
|
|
52
|
+
*/
|
|
53
|
+
tooltip?: boolean | string;
|
|
35
54
|
}
|
|
36
55
|
type AvatarStatusDotVariant = 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
37
56
|
interface AvatarStatusDotProps {
|
|
@@ -40,6 +59,10 @@ interface AvatarStatusDotProps {
|
|
|
40
59
|
* @default 'neutral'
|
|
41
60
|
*/
|
|
42
61
|
variant?: AvatarStatusDotVariant;
|
|
62
|
+
/**
|
|
63
|
+
* Accessible name for the status. When omitted the dot is hidden from assistive technology.
|
|
64
|
+
*/
|
|
65
|
+
label?: string;
|
|
43
66
|
}
|
|
44
67
|
//#endregion
|
|
45
68
|
//#region src/Avatar/Avatar.vue.d.ts
|
|
@@ -53,6 +76,7 @@ declare const __VLS_base: import("vue").DefineComponent<AvatarProps, {}, {}, {},
|
|
|
53
76
|
onError?: ((event: Event) => any) | undefined;
|
|
54
77
|
}>, {
|
|
55
78
|
size: AvatarSize;
|
|
79
|
+
tooltip: string | boolean;
|
|
56
80
|
shape: AvatarShape;
|
|
57
81
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
82
|
declare const __VLS_export$1: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -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>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as ButtonSize } from "./types-WlmsNL1I.js";
|
|
2
2
|
import { l as FieldStatusVariant, o as FieldStatusInput } from "./types-3eXh_5os.js";
|
|
3
|
-
import { t as ExtendedIconName } from "./types-
|
|
3
|
+
import { t as ExtendedIconName } from "./types-BKcxXW--.js";
|
|
4
4
|
import { r as PopoverPlacement, t as PopoverAlignment } from "./types-Db3Owy8Q.js";
|
|
5
5
|
import { Component, Ref, VNode } from "vue";
|
|
6
6
|
//#region src/ComplexSelector/types.d.ts
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { n as LayerPlacement, t as LayerAlignment } from "./position-DFW5ymAF.js";
|
|
2
|
+
import { _ as DropdownMenuSubMenuProps, a as DropdownMenuGroupSlots, c as DropdownMenuItemProps, f as DropdownMenuPresentation, g as DropdownMenuSlots, h as DropdownMenuSize, i as DropdownMenuGroupProps, l as DropdownMenuItemSlots, p as DropdownMenuProps, t as DropdownMenuButtonProps, u as DropdownMenuItemVariant, v as DropdownMenuSubMenuSlots } from "./types-DDAAT1Xd.js";
|
|
3
|
+
import { ComputedRef, InjectionKey } from "vue";
|
|
4
|
+
//#region src/DropdownMenu/context.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* What a `DropdownMenu` tells the rows inside it.
|
|
7
|
+
*
|
|
8
|
+
* `menuSize` is a computed ref rather than a plain value: a row reads it after
|
|
9
|
+
* mount, so a snapshot would leave every row stuck at the size the trigger had
|
|
10
|
+
* when the menu was created.
|
|
11
|
+
*/
|
|
12
|
+
interface DropdownMenuContextValue {
|
|
13
|
+
/** Closes the menu and returns focus to the trigger. */
|
|
14
|
+
closeMenu: () => void;
|
|
15
|
+
/** Whether the root menu is open. Nested flyouts close with it. */
|
|
16
|
+
isOpen: ComputedRef<boolean>;
|
|
17
|
+
/** Size of the menu, derived from the trigger button's size. */
|
|
18
|
+
menuSize: ComputedRef<DropdownMenuSize>;
|
|
19
|
+
}
|
|
20
|
+
/** The surrounding menu, or `undefined` when a row stands alone. */
|
|
21
|
+
declare function useDropdownMenuContext(): DropdownMenuContextValue | undefined;
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/DropdownMenu/DropdownMenu.vue.d.ts
|
|
24
|
+
type __VLS_Props = DropdownMenuProps;
|
|
25
|
+
type __VLS_Slots$3 = DropdownMenuSlots;
|
|
26
|
+
type __VLS_ModelProps = {
|
|
27
|
+
'isMenuOpen'?: boolean | undefined;
|
|
28
|
+
};
|
|
29
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
30
|
+
declare const __VLS_base$3: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
+
click: () => any;
|
|
32
|
+
openChange: (isOpen: boolean) => any;
|
|
33
|
+
"update:isMenuOpen": (...args: unknown[]) => any;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
35
|
+
onClick?: (() => any) | undefined;
|
|
36
|
+
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
37
|
+
"onUpdate:isMenuOpen"?: ((...args: unknown[]) => any) | undefined;
|
|
38
|
+
}>, {
|
|
39
|
+
button: DropdownMenuButtonProps;
|
|
40
|
+
placement: LayerPlacement;
|
|
41
|
+
alignment: LayerAlignment;
|
|
42
|
+
presentation: DropdownMenuPresentation;
|
|
43
|
+
hasChevron: boolean;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const __VLS_export$4: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
46
|
+
declare const _default$4: typeof __VLS_export$4;
|
|
47
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/DropdownMenu/DropdownMenuDivider.vue.d.ts
|
|
54
|
+
declare const __VLS_export$3: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
55
|
+
declare const _default$3: typeof __VLS_export$3;
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/DropdownMenu/DropdownMenuGroup.vue.d.ts
|
|
58
|
+
type __VLS_Slots$2 = DropdownMenuGroupSlots;
|
|
59
|
+
declare const __VLS_base$2: import("vue").DefineComponent<DropdownMenuGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DropdownMenuGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
60
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
61
|
+
declare const _default$2: typeof __VLS_export$2;
|
|
62
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
63
|
+
new (): {
|
|
64
|
+
$slots: S;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/DropdownMenu/DropdownMenuItem.vue.d.ts
|
|
69
|
+
type __VLS_Slots$1 = DropdownMenuItemSlots;
|
|
70
|
+
declare const __VLS_base$1: import("vue").DefineComponent<DropdownMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
71
|
+
click: (event: MouseEvent) => any;
|
|
72
|
+
}, string, import("vue").PublicProps, Readonly<DropdownMenuItemProps> & Readonly<{
|
|
73
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
74
|
+
}>, {
|
|
75
|
+
isDisabled: boolean;
|
|
76
|
+
variant: DropdownMenuItemVariant;
|
|
77
|
+
hasCloseOnSelect: boolean;
|
|
78
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
79
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
80
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
81
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
82
|
+
new (): {
|
|
83
|
+
$slots: S;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/DropdownMenu/DropdownMenuSubMenu.vue.d.ts
|
|
88
|
+
type __VLS_Slots = DropdownMenuSubMenuSlots;
|
|
89
|
+
declare const __VLS_base: import("vue").DefineComponent<DropdownMenuSubMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DropdownMenuSubMenuProps> & Readonly<{}>, {
|
|
90
|
+
isDisabled: boolean;
|
|
91
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
92
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
93
|
+
declare const _default: typeof __VLS_export;
|
|
94
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
95
|
+
new (): {
|
|
96
|
+
$slots: S;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
//#endregion
|
|
100
|
+
export { _default$4 as a, _default$3 as i, _default$1 as n, DropdownMenuContextValue as o, _default$2 as r, useDropdownMenuContext as s, _default as t };
|
|
@@ -2,6 +2,7 @@ import { ComputedRef, Ref } from "vue";
|
|
|
2
2
|
//#region src/TabList/types.d.ts
|
|
3
3
|
type TabListSize = 'sm' | 'md' | 'lg';
|
|
4
4
|
type TabListLayout = 'hug' | 'fill';
|
|
5
|
+
type TabListEdgeCompensation = 'inline';
|
|
5
6
|
interface TabListProps {
|
|
6
7
|
/**
|
|
7
8
|
* Currently selected tab value.
|
|
@@ -22,6 +23,19 @@ interface TabListProps {
|
|
|
22
23
|
* @default false
|
|
23
24
|
*/
|
|
24
25
|
hasDivider?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Stretch the strip to the container's inline content edges, cancelling
|
|
28
|
+
* `--container-padding-inline-*`, while the first and last labels stay on
|
|
29
|
+
* the content inset. `edgeCompensation="inline"` is the same mode and wins
|
|
30
|
+
* when both are set.
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
isFullBleed?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Canonical name for the inline bleed. `isFullBleed` selects the same mode
|
|
36
|
+
* when this is omitted.
|
|
37
|
+
*/
|
|
38
|
+
edgeCompensation?: TabListEdgeCompensation;
|
|
25
39
|
}
|
|
26
40
|
interface TabMenuOption {
|
|
27
41
|
value: string;
|
|
@@ -93,6 +107,7 @@ declare const __VLS_base: import("vue").DefineComponent<TabListProps, {}, {}, {}
|
|
|
93
107
|
onChange?: ((value: string) => any) | undefined;
|
|
94
108
|
}>, {
|
|
95
109
|
size: TabListSize;
|
|
110
|
+
isFullBleed: boolean;
|
|
96
111
|
hasDivider: boolean;
|
|
97
112
|
layout: TabListLayout;
|
|
98
113
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -125,8 +125,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
125
125
|
onChange?: ((value: string) => any) | undefined;
|
|
126
126
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
127
127
|
}>, {
|
|
128
|
-
size: SegmentedControlSize;
|
|
129
128
|
isDisabled: boolean;
|
|
129
|
+
size: SegmentedControlSize;
|
|
130
130
|
layout: SegmentedControlLayout;
|
|
131
131
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
132
132
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
@@ -186,6 +186,8 @@ interface PaginationMessages {
|
|
|
186
186
|
total: (total: number, from: number, to: number) => string;
|
|
187
187
|
/** 窄容器里代替页码按钮的「当前页 / 总页数」。 */
|
|
188
188
|
compact: (page: number, totalPages: number) => string;
|
|
189
|
+
/** compact 变体的「Page X of Y」。 */
|
|
190
|
+
pageOf: (page: number, totalPages: number) => string;
|
|
189
191
|
}
|
|
190
192
|
//#endregion
|
|
191
193
|
//#region src/locale/messages/selector.d.ts
|
|
@@ -23,11 +23,16 @@ interface BadgeProps {
|
|
|
23
23
|
* @default 'neutral'
|
|
24
24
|
*/
|
|
25
25
|
variant?: BadgeVariant;
|
|
26
|
+
/**
|
|
27
|
+
* Badge text. A string or number is also set as the title so a clipped
|
|
28
|
+
* label stays reachable. The default slot overrides this when both are set.
|
|
29
|
+
*/
|
|
30
|
+
label?: string | number;
|
|
26
31
|
}
|
|
27
32
|
//#endregion
|
|
28
33
|
//#region src/Badge/Badge.vue.d.ts
|
|
29
34
|
type __VLS_Slots = {
|
|
30
|
-
default
|
|
35
|
+
default?: () => unknown;
|
|
31
36
|
icon?: () => unknown;
|
|
32
37
|
};
|
|
33
38
|
declare const __VLS_base: import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
@@ -24,8 +24,8 @@ declare const __VLS_base: import("vue").DefineComponent<NavItemProps, {}, {}, {}
|
|
|
24
24
|
}, string, import("vue").PublicProps, Readonly<NavItemProps> & Readonly<{
|
|
25
25
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
|
-
size: NavItemSize;
|
|
28
27
|
isDisabled: boolean;
|
|
28
|
+
size: NavItemSize;
|
|
29
29
|
isIconOnly: boolean;
|
|
30
30
|
isSelected: boolean;
|
|
31
31
|
block: boolean;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { c as FieldStatusType, o as FieldStatusInput } from "./types-3eXh_5os.js";
|
|
1
2
|
//#region src/NumberInput/types.d.ts
|
|
3
|
+
/** 带说明的校验状态。仍接受单独的状态字符串。 */
|
|
4
|
+
type NumberInputStatus = FieldStatusInput | 'default' | FieldStatusType;
|
|
2
5
|
interface NumberInputProps {
|
|
3
6
|
/** 当前值 */
|
|
4
7
|
modelValue?: number | null;
|
|
@@ -18,6 +21,16 @@ interface NumberInputProps {
|
|
|
18
21
|
size?: 'sm' | 'md' | 'lg';
|
|
19
22
|
/** 标签 */
|
|
20
23
|
label?: string;
|
|
24
|
+
/** 标签下方的说明 */
|
|
25
|
+
description?: string;
|
|
26
|
+
/** 只把标签留给读屏 */
|
|
27
|
+
isLabelHidden?: boolean;
|
|
28
|
+
/** 单位,显示在步进按钮前面,例如 % */
|
|
29
|
+
units?: string;
|
|
30
|
+
/** 有值时显示清除按钮 */
|
|
31
|
+
clearable?: boolean;
|
|
32
|
+
/** 校验状态。对象形式会在字段下方显示说明。 */
|
|
33
|
+
status?: NumberInputStatus;
|
|
21
34
|
/** 名称(用于表单提交) */
|
|
22
35
|
name?: string;
|
|
23
36
|
}
|
|
@@ -34,12 +47,12 @@ declare const __VLS_export: import("vue").DefineComponent<NumberInputProps, {},
|
|
|
34
47
|
onChange?: ((value: number | null) => any) | undefined;
|
|
35
48
|
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
36
49
|
}>, {
|
|
37
|
-
size: "sm" | "md" | "lg";
|
|
38
50
|
step: number;
|
|
51
|
+
size: "sm" | "md" | "lg";
|
|
39
52
|
modelValue: number | null;
|
|
40
53
|
placeholder: string;
|
|
41
54
|
disabled: boolean;
|
|
42
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
56
|
declare const _default: typeof __VLS_export;
|
|
44
57
|
//#endregion
|
|
45
|
-
export { NumberInputEmits as n, NumberInputProps as r, _default as t };
|
|
58
|
+
export { NumberInputStatus as i, NumberInputEmits as n, NumberInputProps as r, _default as t };
|
|
@@ -86,10 +86,10 @@ declare const __VLS_base: import("vue").DefineComponent<MultiSelectorProps, {
|
|
|
86
86
|
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
87
87
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
88
88
|
}>, {
|
|
89
|
-
|
|
89
|
+
status: MultiSelectorStatus;
|
|
90
90
|
required: boolean;
|
|
91
|
+
size: MultiSelectorSize;
|
|
91
92
|
variant: MultiSelectorVariant;
|
|
92
|
-
status: MultiSelectorStatus;
|
|
93
93
|
modelValue: readonly (string | number)[];
|
|
94
94
|
disabled: boolean;
|
|
95
95
|
labelHidden: boolean;
|
|
@@ -45,7 +45,7 @@ interface CardProps {
|
|
|
45
45
|
* passing a step is a decision to override the theme instead of a way to
|
|
46
46
|
* restate the default.
|
|
47
47
|
*
|
|
48
|
-
* @default undefined (the theme's card padding,
|
|
48
|
+
* @default undefined (the theme's card padding; neutral uses step 3, otherwise step 4)
|
|
49
49
|
*/
|
|
50
50
|
padding?: SpacingStep;
|
|
51
51
|
/**
|