@astryx-vue/core 0.46.4 → 0.47.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/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +2 -2
- package/dist/{Calendar-BGn9PQI8.js → Calendar-D4nAvj5U.js} +5 -5
- package/dist/{Calendar-DpqfOjgX.js → Calendar-DvbTMsIC.js} +5 -5
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-BU_M6g1j.js → DateInput-Bg4jkwQ_.js} +9 -8
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-B7z6QEYg.js → DateRangeInput-BVN7ZvDc.js} +5 -5
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BhZHEX1C.js → DateTimeInput-DPnBGL6l.js} +4 -4
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-cbbH72PV.js → FileInput-CQP-VdDl.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +3 -3
- package/dist/{InternationalizationProvider-CyxgZ6jv.js → InternationalizationProvider-B6kMYO4h.js} +4 -4
- package/dist/Link/index.d.ts +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-CGT2VGto.js → Markdown-DEwHt1xG.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DO33TcAb.js → MultiSelector-DPRe_xUK.js} +2 -2
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-s0zd_q_u.js → PowerSearch-DiAS6eY3.js} +87 -82
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-EB4C8g83.js → ProgressBar-CDhK30fZ.js} +4 -1
- 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/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/SideNav/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CDlpFNZo.js → Table-CkWBUcAh.js} +4 -4
- 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-CYvBjbkJ.js → Thumbnail-D60-nKWf.js} +2 -2
- package/dist/{TimeField-CyXcvqrc.js → TimeField-BJ8S3TXa.js} +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-C6eMxL8g.js → TimeInput-rUkF0qJc.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +2 -2
- package/dist/{Timestamp-C1y_Uo2J.js → Timestamp-CFTG2jF2.js} +2 -2
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/{calendar-C7py_wtb.js → calendar-B1G5O29s.js} +2 -1
- package/dist/{calendarFormat-DTC8AICa.js → calendarFormat-CbxpwgAe.js} +4 -3
- package/dist/{context-DPVQjlFy.js → context-DVa_OzKt.js} +1 -1
- package/dist/dateTimeFormatCache-CSsvHOhO.js +31 -0
- package/dist/direction-nWTDB0Ko.js +64 -0
- package/dist/{format-lexzIzDb.js → format--_j64_yo.js} +9 -2
- package/dist/{formatInstant-DKbYRamj.js → formatInstant-B-ukorXg.js} +1 -1
- package/dist/{index-DSAtZP4A.d.ts → index-B8NGDyIe.d.ts} +1 -1
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-ZbNwGVkS.d.ts → index-BKnyTWPM.d.ts} +1 -1
- package/dist/{index-D3onyhSs.d.ts → index-BPnP3Abd.d.ts} +4 -4
- package/dist/{index-DV_07j3S.d.ts → index-BXr7LtAh.d.ts} +3 -3
- package/dist/{index-DSsuY9v9.d.ts → index-BaXcJ7eE.d.ts} +1 -1
- package/dist/{index-maTGrWjF.d.ts → index-BenG-F5d.d.ts} +1 -1
- package/dist/{index-CqSUm878.d.ts → index-Bsl8HqR9.d.ts} +3 -3
- package/dist/{index-C8hyLvk2.d.ts → index-C7uGs5Cl.d.ts} +2 -2
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-CmqD5Ya9.d.ts → index-CD1-Hqm0.d.ts} +2 -2
- package/dist/{index-BaFphczL.d.ts → index-COgrQZIL.d.ts} +1 -1
- package/dist/{index-KmUnBSAl.d.ts → index-CWCkAA0e.d.ts} +9 -9
- package/dist/{index-DYU4kE-q.d.ts → index-Cg6pihUE.d.ts} +3 -3
- package/dist/{index-iGHM85Y1.d.ts → index-CpLGbFCR.d.ts} +4 -4
- package/dist/{index-BxlyJ9ui.d.ts → index-DMQqZbs3.d.ts} +69 -64
- package/dist/{index-BMoR8Uoh.d.ts → index-DZMs9KqG.d.ts} +1 -1
- package/dist/{index-Br41ynrM.d.ts → index-Dh1ZiUCu.d.ts} +2 -2
- package/dist/{index-D3UaSnbN.d.ts → index-DofC9Rll.d.ts} +2 -2
- package/dist/{index-CCa_dvoF.d.ts → index-Ds4dOCSy.d.ts} +3 -3
- package/dist/{index-B2BJ8L8S.d.ts → index-DsxkdygE.d.ts} +8 -8
- package/dist/{index-vCRf5fyK.d.ts → index-ZKBj_1nu.d.ts} +1 -1
- package/dist/{index-DyikW_sN.d.ts → index-aBeGbS1N.d.ts} +1 -1
- package/dist/{index-Cm36VS1A.d.ts → index-mK1ICsVg.d.ts} +2 -2
- package/dist/index.d.ts +27 -27
- package/dist/index.js +24 -24
- package/dist/{inputPresentation-DES0JwkL.js → inputPresentation-Br70N2eS.js} +1 -1
- package/dist/{loadCatalog-YkQJ7sxu.d.ts → loadCatalog-BLR2kAhy.d.ts} +27 -2
- package/dist/{loadCatalog--oXKoMve.js → loadCatalog-DT1OyK-2.js} +54 -7
- package/dist/locale/index.d.ts +3 -3
- package/dist/locale/index.js +5 -5
- package/dist/{locale-BH7q40Eo.js → locale-DhcPo0et.js} +2 -2
- package/dist/{plainDate-CaTDErKr.js → plainDate-By2VjeSI.js} +2 -31
- package/dist/{thumbnail-BI82Ijpj.js → thumbnail-ASg6cXnd.js} +4 -2
- package/dist/{useCalendarGrid-BjOvk9HI.js → useCalendarGrid-Bz7NJmA3.js} +2 -2
- package/dist/{useListFormatter-CFDqZ9jK.js → useListFormatter-kggOt7I2.js} +17 -10
- package/dist/utils/index.js +2 -2
- package/locales/en.json +74 -10
- package/locales/vi-VN.json +1336 -0
- package/package.json +1 -1
- package/dist/direction-CNotzbN9.js +0 -44
- package/dist/{index-DrIxH3YE.d.ts → index-CNZCQgHF.d.ts} +1 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
//#region src/InternationalizationProvider/direction.ts
|
|
2
|
+
/**
|
|
3
|
+
* ICU 按从右往左书写的文字(script)。有的引擎(Firefox)的 `Intl.Locale` 没有文字信息,
|
|
4
|
+
* 这时按语言最可能用的文字判断,服务端和浏览器得到同一个方向。
|
|
5
|
+
*/
|
|
6
|
+
const RIGHT_TO_LEFT_SCRIPTS = /* @__PURE__ */ new Set([
|
|
7
|
+
"Adlm",
|
|
8
|
+
"Arab",
|
|
9
|
+
"Armi",
|
|
10
|
+
"Avst",
|
|
11
|
+
"Chrs",
|
|
12
|
+
"Cprt",
|
|
13
|
+
"Elym",
|
|
14
|
+
"Gara",
|
|
15
|
+
"Hatr",
|
|
16
|
+
"Hebr",
|
|
17
|
+
"Hung",
|
|
18
|
+
"Khar",
|
|
19
|
+
"Lydi",
|
|
20
|
+
"Mand",
|
|
21
|
+
"Mani",
|
|
22
|
+
"Mend",
|
|
23
|
+
"Merc",
|
|
24
|
+
"Mero",
|
|
25
|
+
"Narb",
|
|
26
|
+
"Nbat",
|
|
27
|
+
"Nkoo",
|
|
28
|
+
"Orkh",
|
|
29
|
+
"Ougr",
|
|
30
|
+
"Palm",
|
|
31
|
+
"Phli",
|
|
32
|
+
"Phlp",
|
|
33
|
+
"Phnx",
|
|
34
|
+
"Prti",
|
|
35
|
+
"Rohg",
|
|
36
|
+
"Samr",
|
|
37
|
+
"Sarb",
|
|
38
|
+
"Sidt",
|
|
39
|
+
"Sogd",
|
|
40
|
+
"Sogo",
|
|
41
|
+
"Syrc",
|
|
42
|
+
"Thaa",
|
|
43
|
+
"Yezi"
|
|
44
|
+
]);
|
|
45
|
+
/**
|
|
46
|
+
* 由语言标签推导书写方向。`ar-SA`、`he`、`pa-Arab` 这类得到 `rtl`,其余得到 `ltr`。
|
|
47
|
+
* 先读 `Intl.Locale` 的文字信息;引擎没有时,按语言最可能用的文字判断。解析不了的标签按 `ltr` 处理。
|
|
48
|
+
*/
|
|
49
|
+
function getLocaleDirection(locale) {
|
|
50
|
+
const tag = locale.trim();
|
|
51
|
+
if (tag === "") return "ltr";
|
|
52
|
+
let parsed;
|
|
53
|
+
try {
|
|
54
|
+
parsed = new Intl.Locale(tag);
|
|
55
|
+
} catch {
|
|
56
|
+
return "ltr";
|
|
57
|
+
}
|
|
58
|
+
const direction = (typeof parsed.getTextInfo === "function" ? parsed.getTextInfo() : parsed.textInfo)?.direction;
|
|
59
|
+
if (direction === "rtl" || direction === "ltr") return direction;
|
|
60
|
+
const script = parsed.maximize().script;
|
|
61
|
+
return script != null && RIGHT_TO_LEFT_SCRIPTS.has(script) ? "rtl" : "ltr";
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
export { getLocaleDirection as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as firstCharacter, t as characterCount } from "./characters-DmSa8HSB.js";
|
|
2
|
-
import {
|
|
2
|
+
import { n as dateTimeFormatFor } from "./dateTimeFormatCache-CSsvHOhO.js";
|
|
3
3
|
//#region src/locale/weekdays.ts
|
|
4
4
|
const standaloneShortWeekdayNamesByLocale = {
|
|
5
5
|
"af": [
|
|
@@ -375,5 +375,12 @@ function formatDayNumber(value, locale) {
|
|
|
375
375
|
}
|
|
376
376
|
return format.format(value);
|
|
377
377
|
}
|
|
378
|
+
/** 0 到 100 的整数百分比,按语言自己的写法:英文 `45%`,土耳其语 `%45`,德语 `45 %`。 */
|
|
379
|
+
function formatPercent(percent, locale) {
|
|
380
|
+
return new Intl.NumberFormat(locale, {
|
|
381
|
+
style: "percent",
|
|
382
|
+
maximumFractionDigits: 0
|
|
383
|
+
}).format(percent / 100);
|
|
384
|
+
}
|
|
378
385
|
//#endregion
|
|
379
|
-
export {
|
|
386
|
+
export { standaloneShortWeekdayNames as a, formatStandaloneMonthYear as i, formatDayNumber as n, weekdayNames as o, formatPercent as r, formatCalendarMonth as t };
|
|
@@ -92,8 +92,8 @@ declare const __VLS_export$6: <T extends SearchableItem>(__VLS_props: NonNullabl
|
|
|
92
92
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<(CommandPaletteProps<T> & {
|
|
93
93
|
value?: string | undefined;
|
|
94
94
|
}) & {
|
|
95
|
-
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
96
95
|
"onUpdate:value"?: ((value: string | undefined) => any) | undefined;
|
|
96
|
+
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
97
97
|
onValueChange?: ((value: string) => any) | undefined;
|
|
98
98
|
}> & (typeof globalThis extends {
|
|
99
99
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -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;
|
|
@@ -101,8 +101,8 @@ type __VLS_Slots = {
|
|
|
101
101
|
declare const __VLS_base: import("vue").DefineComponent<CenterProps, {
|
|
102
102
|
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
103
103
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CenterProps> & Readonly<{}>, {
|
|
104
|
-
isInline: boolean;
|
|
105
104
|
axis: CenterAxis;
|
|
105
|
+
isInline: boolean;
|
|
106
106
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
107
107
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
108
108
|
declare const _default: typeof __VLS_export;
|
|
@@ -96,12 +96,12 @@ declare const __VLS_base$2: import("vue").DefineComponent<ItemProps, {
|
|
|
96
96
|
focus: typeof focus;
|
|
97
97
|
blur: typeof blur;
|
|
98
98
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ItemProps> & Readonly<{}>, {
|
|
99
|
-
layout: ItemLayout;
|
|
100
|
-
as: ItemElement;
|
|
101
99
|
isDisabled: boolean;
|
|
100
|
+
as: ItemElement;
|
|
102
101
|
density: ListDensity;
|
|
103
|
-
|
|
102
|
+
layout: ItemLayout;
|
|
104
103
|
isSelected: boolean;
|
|
104
|
+
align: ItemAlign;
|
|
105
105
|
isHighlighted: boolean;
|
|
106
106
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
107
107
|
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
@@ -117,8 +117,8 @@ type __VLS_Slots$1 = ListSlots;
|
|
|
117
117
|
declare const __VLS_base$1: import("vue").DefineComponent<ListProps, {
|
|
118
118
|
element: import("vue").ComputedRef<HTMLUListElement | HTMLOListElement | null>;
|
|
119
119
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ListProps> & Readonly<{}>, {
|
|
120
|
-
start: number;
|
|
121
120
|
density: ListDensity;
|
|
121
|
+
start: number;
|
|
122
122
|
hasDividers: boolean;
|
|
123
123
|
listStyle: ListMarkerStyle;
|
|
124
124
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -18,14 +18,14 @@ declare const __VLS_base: import("vue").DefineComponent<PopoverProps, {}, {}, {}
|
|
|
18
18
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
label: string;
|
|
21
|
-
width: string | number;
|
|
22
21
|
anchor: HTMLElement | null;
|
|
23
|
-
|
|
22
|
+
width: string | number;
|
|
24
23
|
isOpen: boolean;
|
|
25
24
|
placement: LayerPlacement;
|
|
26
25
|
alignment: LayerAlignment;
|
|
27
|
-
|
|
26
|
+
padding: PopoverPadding;
|
|
28
27
|
hasAutoFocus: boolean;
|
|
28
|
+
presentation: AdaptivePresentation;
|
|
29
29
|
role: PopoverRole;
|
|
30
30
|
hasCloseButton: boolean;
|
|
31
31
|
closeButtonLabel: string;
|
|
@@ -123,8 +123,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
123
123
|
onChange?: ((value: string) => any) | undefined;
|
|
124
124
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
125
125
|
}>, {
|
|
126
|
-
layout: SegmentedControlLayout;
|
|
127
126
|
isDisabled: boolean;
|
|
127
|
+
layout: SegmentedControlLayout;
|
|
128
128
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
129
129
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
130
130
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -55,8 +55,8 @@ interface InputGroupTextSlots {
|
|
|
55
55
|
//#region src/InputGroup/InputGroup.vue.d.ts
|
|
56
56
|
type __VLS_Slots$1 = InputGroupSlots;
|
|
57
57
|
declare const __VLS_base$1: import("vue").DefineComponent<InputGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupProps> & Readonly<{}>, {
|
|
58
|
-
isLabelHidden: boolean;
|
|
59
58
|
isOptional: boolean;
|
|
59
|
+
isLabelHidden: boolean;
|
|
60
60
|
isRequired: boolean;
|
|
61
61
|
disabled: boolean;
|
|
62
62
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { On as CalendarSystem, s as AstryxMessages, t as AstryxUpstreamCatalog } from "./loadCatalog-BLR2kAhy.js";
|
|
2
2
|
import { ComputedRef, InjectionKey } from "vue";
|
|
3
3
|
//#region src/InternationalizationProvider/catalog.d.ts
|
|
4
4
|
/**
|
|
@@ -20,8 +20,8 @@ declare function resolveProviderMessages(locale: string, messages?: ProviderMess
|
|
|
20
20
|
/** 书写方向。 */
|
|
21
21
|
type TextDirection = 'ltr' | 'rtl';
|
|
22
22
|
/**
|
|
23
|
-
* 由语言标签推导书写方向。`ar-SA`、`he`
|
|
24
|
-
*
|
|
23
|
+
* 由语言标签推导书写方向。`ar-SA`、`he`、`pa-Arab` 这类得到 `rtl`,其余得到 `ltr`。
|
|
24
|
+
* 先读 `Intl.Locale` 的文字信息;引擎没有时,按语言最可能用的文字判断。解析不了的标签按 `ltr` 处理。
|
|
25
25
|
*/
|
|
26
26
|
declare function getLocaleDirection(locale: string): TextDirection;
|
|
27
27
|
//#endregion
|
|
@@ -65,17 +65,17 @@ declare const __VLS_base: import("vue").DefineComponent<TooltipProps, {}, {}, {}
|
|
|
65
65
|
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
66
66
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
67
67
|
}>, {
|
|
68
|
-
content: string;
|
|
69
68
|
anchor: HTMLElement | null;
|
|
69
|
+
content: string;
|
|
70
70
|
isOpen: boolean;
|
|
71
71
|
placement: TooltipPlacement;
|
|
72
72
|
alignment: TooltipAlignment;
|
|
73
73
|
isDefaultOpen: boolean;
|
|
74
|
-
isEnabled: boolean;
|
|
75
74
|
delay: number;
|
|
76
75
|
hideDelay: number;
|
|
77
76
|
focusTrigger: TooltipFocusTrigger;
|
|
78
77
|
touchTrigger: TooltipTouchTrigger;
|
|
78
|
+
isEnabled: boolean;
|
|
79
79
|
hasHoverIndication: boolean | "auto";
|
|
80
80
|
anchorsOnSelf: boolean;
|
|
81
81
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -21,8 +21,8 @@ type __VLS_Slots = {} & {
|
|
|
21
21
|
label?: (props: typeof __VLS_1) => any;
|
|
22
22
|
};
|
|
23
23
|
declare const __VLS_base: import("vue").DefineComponent<DividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
|
24
|
-
variant: DividerVariant;
|
|
25
24
|
orientation: DividerOrientation;
|
|
25
|
+
variant: DividerVariant;
|
|
26
26
|
isFullBleed: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -161,11 +161,11 @@ type __VLS_ModelProps = {
|
|
|
161
161
|
};
|
|
162
162
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
163
163
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
164
|
-
change: (value: CollapsibleGroupValue) => any;
|
|
165
164
|
"update:value": (value: CollapsibleGroupValue | undefined) => any;
|
|
165
|
+
change: (value: CollapsibleGroupValue) => any;
|
|
166
166
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
167
|
-
onChange?: ((value: CollapsibleGroupValue) => any) | undefined;
|
|
168
167
|
"onUpdate:value"?: ((value: CollapsibleGroupValue | undefined) => any) | undefined;
|
|
168
|
+
onChange?: ((value: CollapsibleGroupValue) => any) | undefined;
|
|
169
169
|
}>, {
|
|
170
170
|
type: CollapsibleGroupType;
|
|
171
171
|
hasDividers: boolean;
|
|
@@ -44,8 +44,8 @@ interface ProgressBarProps {
|
|
|
44
44
|
//#region src/ProgressBar/ProgressBar.vue.d.ts
|
|
45
45
|
declare const __VLS_export: import("vue").DefineComponent<ProgressBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProgressBarProps> & Readonly<{}>, {
|
|
46
46
|
size: ProgressBarSize;
|
|
47
|
-
value: number;
|
|
48
47
|
isDisabled: boolean;
|
|
48
|
+
value: number;
|
|
49
49
|
variant: ProgressBarVariant;
|
|
50
50
|
isLabelHidden: boolean;
|
|
51
51
|
min: number;
|
|
@@ -161,33 +161,33 @@ interface SelectorSlots {
|
|
|
161
161
|
type __VLS_Slots = SelectorSlots;
|
|
162
162
|
declare const __VLS_base: import("vue").DefineComponent<SelectorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
163
163
|
search: (query: string) => any;
|
|
164
|
-
click: (event: MouseEvent) => any;
|
|
165
164
|
change: (value: string | number | null) => any;
|
|
165
|
+
click: (event: MouseEvent) => any;
|
|
166
|
+
focus: (event: FocusEvent) => any;
|
|
166
167
|
keydown: (event: KeyboardEvent) => any;
|
|
167
168
|
"update:modelValue": (value: string | number | null) => any;
|
|
168
|
-
focus: (event: FocusEvent) => any;
|
|
169
169
|
}, string, import("vue").PublicProps, Readonly<SelectorProps> & Readonly<{
|
|
170
170
|
onSearch?: ((query: string) => any) | undefined;
|
|
171
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
172
171
|
onChange?: ((value: string | number | null) => any) | undefined;
|
|
172
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
173
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
173
174
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
174
175
|
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
175
|
-
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
176
176
|
}>, {
|
|
177
177
|
isLoading: boolean;
|
|
178
178
|
variant: SelectorVariant;
|
|
179
|
+
status: SelectorStatusInput;
|
|
180
|
+
isOptional: boolean;
|
|
181
|
+
indicatorPosition: SelectorIndicatorPosition;
|
|
179
182
|
modelValue: string | number | null;
|
|
180
183
|
isLabelHidden: boolean;
|
|
181
|
-
isOptional: boolean;
|
|
182
184
|
isRequired: boolean;
|
|
183
|
-
status: SelectorStatusInput;
|
|
184
185
|
statusVariant: SelectorStatusVariant;
|
|
185
|
-
|
|
186
|
+
isReadOnly: boolean;
|
|
186
187
|
disabled: boolean;
|
|
187
188
|
presentation: SelectorPresentation;
|
|
188
|
-
searchable: boolean;
|
|
189
189
|
clearable: boolean;
|
|
190
|
-
|
|
190
|
+
searchable: boolean;
|
|
191
191
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
192
192
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
193
193
|
declare const _default: typeof __VLS_export;
|
|
@@ -130,10 +130,10 @@ declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<
|
|
|
130
130
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<TokenizerProps<T> & {
|
|
131
131
|
onSearch?: ((query: string) => any) | undefined;
|
|
132
132
|
onChange?: ((value: T[], change: TokenizerChange<T>) => any) | undefined;
|
|
133
|
-
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
134
|
-
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
135
133
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
136
134
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
135
|
+
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
136
|
+
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
137
137
|
onChangeQuery?: ((query: string) => any) | undefined;
|
|
138
138
|
}> & (typeof globalThis extends {
|
|
139
139
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -146,7 +146,7 @@ declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<
|
|
|
146
146
|
}>) => void;
|
|
147
147
|
attrs: any;
|
|
148
148
|
slots: TokenizerSlots<T>;
|
|
149
|
-
emit: ((evt: "search", query: string) => void) & ((evt: "change", value: T[], change: TokenizerChange<T>) => void) & ((evt: "
|
|
149
|
+
emit: ((evt: "search", query: string) => void) & ((evt: "change", value: T[], change: TokenizerChange<T>) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "openChange", isOpen: boolean) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "changeQuery", query: string) => void);
|
|
150
150
|
}>) => import("vue").VNode & {
|
|
151
151
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
152
152
|
};
|
|
@@ -8,12 +8,12 @@ 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
|
-
type: "button" | "
|
|
12
|
-
isIconOnly: boolean;
|
|
13
|
-
elevation: ButtonElevation;
|
|
11
|
+
type: "button" | "reset" | "submit";
|
|
14
12
|
isDisabled: boolean;
|
|
15
|
-
|
|
13
|
+
elevation: ButtonElevation;
|
|
16
14
|
isLoading: boolean;
|
|
15
|
+
isIconOnly: boolean;
|
|
16
|
+
isInterruptible: boolean;
|
|
17
17
|
loadingLabel: string;
|
|
18
18
|
variant: ButtonVariant;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|