@synopackageland/ui 0.5.5 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +120 -0
- package/dist/UiDefectsDemo.vue.d.ts +3 -0
- package/dist/components/advanced-panel/AdvancePanelGrid.vue.d.ts +1 -0
- package/dist/components/app/app-sidebar/AppSidebar.vue.d.ts +2 -1
- package/dist/components/app/section-tabs/SectionTabs.vue.d.ts +1 -0
- package/dist/components/composite/about-dialog/AboutDialog.vue.d.ts +13 -12
- package/dist/components/composite/callout/Callout.vue.d.ts +0 -1
- package/dist/components/composite/config-provider/ConfigProvider.vue.d.ts +2 -0
- package/dist/components/composite/copy-cut-field/CopyCutField.vue.d.ts +0 -2
- package/dist/components/composite/data-grid/labels.d.ts +2 -0
- package/dist/components/composite/data-table/DataTable.vue.d.ts +1 -2
- package/dist/components/composite/file-picker/FilePicker.vue.d.ts +8 -4
- package/dist/components/composite/form/FormItem.vue.d.ts +5 -3
- package/dist/components/composite/form/context.d.ts +7 -1
- package/dist/components/composite/form/rules.d.ts +3 -0
- package/dist/components/composite/form/types.d.ts +1 -1
- package/dist/components/composite/key-value-row/KeyValueRow.vue.d.ts +20 -0
- package/dist/components/composite/message-box/MessageBox.vue.d.ts +0 -5
- package/dist/components/composite/message-box/controller.d.ts +2 -1
- package/dist/components/composite/overflow-toolbar/OverflowToolbar.vue.d.ts +0 -4
- package/dist/components/composite/repeat-rows/RepeatRow.vue.d.ts +2 -1
- package/dist/components/composite/search-field/SearchField.vue.d.ts +2 -2
- package/dist/components/composite/tree-view/TreeView.vue.d.ts +0 -1
- package/dist/components/composite/wizard/Wizard.vue.d.ts +2 -6
- package/dist/components/composite/wizard/types.d.ts +1 -0
- package/dist/components/containers/panel/Panel.vue.d.ts +0 -2
- package/dist/components/feedback/info-mask/InfoMask.vue.d.ts +1 -1
- package/dist/components/feedback/info-tip/InfoTip.vue.d.ts +0 -1
- package/dist/components/feedback/notification/Notification.vue.d.ts +0 -1
- package/dist/components/feedback/notification/NotificationProvider.vue.d.ts +0 -2
- package/dist/components/primitives/breadcrumb/Breadcrumb.vue.d.ts +0 -1
- package/dist/components/primitives/color-picker/ColorPicker.vue.d.ts +6 -2
- package/dist/components/primitives/combobox/Combobox.vue.d.ts +2 -2
- package/dist/components/primitives/date-picker/DatePicker.vue.d.ts +14 -4
- package/dist/components/primitives/dialog/Dialog.vue.d.ts +0 -1
- package/dist/components/primitives/input-steppers/InputSteppers.vue.d.ts +5 -13
- package/dist/components/primitives/link/Link.vue.d.ts +30 -0
- package/dist/components/primitives/loading/LoadingIndicator.vue.d.ts +0 -1
- package/dist/components/primitives/multiple-select/MultipleSelect.vue.d.ts +2 -2
- package/dist/components/primitives/pagination/Pagination.vue.d.ts +3 -3
- package/dist/components/primitives/pagination/labels.d.ts +1 -0
- package/dist/components/primitives/schedule-table/ScheduleTable.vue.d.ts +9 -0
- package/dist/components/primitives/segment-control/SegmentControl.vue.d.ts +2 -2
- package/dist/components/primitives/select/Select.vue.d.ts +0 -4
- package/dist/components/primitives/select/internal/ComboboxField.vue.d.ts +2 -7
- package/dist/components/primitives/select/internal/types.d.ts +1 -0
- package/dist/components/primitives/sheet/Sheet.vue.d.ts +0 -1
- package/dist/components/primitives/slider/Slider.vue.d.ts +0 -1
- package/dist/components/primitives/spinner/Spinner.vue.d.ts +0 -1
- package/dist/components/primitives/split-button/SplitButton.vue.d.ts +0 -1
- package/dist/components/primitives/superbox-select/SuperboxSelect.vue.d.ts +2 -2
- package/dist/components/primitives/tag/Tag.vue.d.ts +0 -1
- package/dist/components/primitives/toast/ToastProvider.vue.d.ts +4 -0
- package/dist/components/primitives/toggle-button/ToggleButton.vue.d.ts +2 -2
- package/dist/components/primitives/toggle-button/ToggleButtonGroup.vue.d.ts +2 -2
- package/dist/components/primitives/typography/TypoHeader.vue.d.ts +1 -0
- package/dist/components/primitives/typography/typography.d.ts +1 -1
- package/dist/composables/elementWidth.d.ts +4 -0
- package/dist/composables/formControl.d.ts +21 -0
- package/dist/i18n/filePicker.d.ts +15 -0
- package/dist/i18n/locale.d.ts +6 -0
- package/dist/i18n/text.d.ts +140 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +13672 -12041
- package/dist/reka-runtime.json +1 -1
- package/dist/theme.css +1 -1
- package/dist/themes/dsm7-embedded-theme.css +1 -1
- package/dist/themes/dsm7-embedded.css +1 -1
- package/dist/themes/dsm7.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { DateFormat, TimeFormat } from './dateTime';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
+
text?: Partial<{
|
|
4
|
+
placeholder: string;
|
|
5
|
+
previousMonth: string;
|
|
6
|
+
nextMonth: string;
|
|
7
|
+
addTime: string;
|
|
8
|
+
hour: string;
|
|
9
|
+
minute: string;
|
|
10
|
+
meridiem: string;
|
|
11
|
+
clear: string;
|
|
12
|
+
am: string;
|
|
13
|
+
pm: string;
|
|
14
|
+
}>;
|
|
3
15
|
/** `YYYY-MM-DD` for date mode, `YYYY-MM-DDTHH:mm:ss` for `showTime` mode. Local wall-clock, no timezone. */
|
|
4
16
|
modelValue?: string;
|
|
5
17
|
placeholder?: string;
|
|
@@ -29,28 +41,26 @@ type __VLS_Props = {
|
|
|
29
41
|
timeFormat?: TimeFormat;
|
|
30
42
|
};
|
|
31
43
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
44
|
+
change: (value: string | undefined) => any;
|
|
32
45
|
invalid: (payload: {
|
|
33
46
|
reason: "format" | "required";
|
|
34
47
|
text: string;
|
|
35
48
|
}) => any;
|
|
36
49
|
"update:modelValue": (value: string | undefined) => any;
|
|
37
|
-
change: (value: string | undefined) => any;
|
|
38
50
|
"select-date": (value: string) => any;
|
|
39
51
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
52
|
+
onChange?: ((value: string | undefined) => any) | undefined;
|
|
40
53
|
onInvalid?: ((payload: {
|
|
41
54
|
reason: "format" | "required";
|
|
42
55
|
text: string;
|
|
43
56
|
}) => any) | undefined;
|
|
44
57
|
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
45
|
-
onChange?: ((value: string | undefined) => any) | undefined;
|
|
46
58
|
"onSelect-date"?: ((value: string) => any) | undefined;
|
|
47
59
|
}>, {
|
|
48
60
|
disabled: boolean;
|
|
49
|
-
placeholder: string;
|
|
50
61
|
readonly: boolean;
|
|
51
62
|
editable: boolean;
|
|
52
63
|
clearable: boolean;
|
|
53
|
-
locale: string;
|
|
54
64
|
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
55
65
|
showTime: boolean;
|
|
56
66
|
allowBlank: boolean;
|
|
@@ -34,7 +34,6 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
34
34
|
width: string;
|
|
35
35
|
defaultOpen: boolean;
|
|
36
36
|
open: boolean;
|
|
37
|
-
closeLabel: string;
|
|
38
37
|
showClose: boolean;
|
|
39
38
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
40
39
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -2,20 +2,12 @@ export type InputSteppersMenuItem = {
|
|
|
2
2
|
title: string;
|
|
3
3
|
value: number;
|
|
4
4
|
};
|
|
5
|
-
/**
|
|
6
|
-
* Number semantics of this component (documented contract):
|
|
7
|
-
* - `min` / `max` clamp every committed value.
|
|
8
|
-
* - `step` is the increment used by the +/- buttons and by ArrowUp / ArrowDown.
|
|
9
|
-
* - `precision` (optional) rounds every committed value to N decimals. Without it
|
|
10
|
-
* a manually typed value keeps its decimals; step arithmetic only rounds away
|
|
11
|
-
* binary float noise (0.1 + 0.2 becomes 0.3, 1.5 + 1 stays 2.5).
|
|
12
|
-
* - Typing is committed on blur or Enter. An empty or non-numeric entry reverts to
|
|
13
|
-
* the last valid value; an out-of-range entry is clamped. This is intentional:
|
|
14
|
-
* the reference component left manual entries unclamped.
|
|
15
|
-
* - `patchNum` runs before clamping and may reject a value with `false`, which also
|
|
16
|
-
* reverts to the last valid value.
|
|
17
|
-
*/
|
|
18
5
|
type __VLS_Props = {
|
|
6
|
+
text?: Partial<{
|
|
7
|
+
increase: string;
|
|
8
|
+
decrease: string;
|
|
9
|
+
presets: string;
|
|
10
|
+
}>;
|
|
19
11
|
modelValue?: number;
|
|
20
12
|
/** Lower bound; defaults to Number.MIN_SAFE_INTEGER when omitted. */
|
|
21
13
|
min?: number | string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
href?: string;
|
|
3
|
+
download?: string | boolean;
|
|
4
|
+
external?: boolean;
|
|
5
|
+
target?: string;
|
|
6
|
+
rel?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
externalLabel?: string;
|
|
9
|
+
downloadLabel?: string;
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_1: {};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
default?: (props: typeof __VLS_1) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
click: (event: MouseEvent) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
external: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -3,7 +3,6 @@ type __VLS_Props = {
|
|
|
3
3
|
label?: string;
|
|
4
4
|
};
|
|
5
5
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
-
label: string;
|
|
7
6
|
text: string;
|
|
8
7
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
8
|
declare const _default: typeof __VLS_export;
|
|
@@ -5,20 +5,20 @@ type __VLS_Props = Omit<SelectFieldProps, 'multiple' | 'modelValue' | 'defaultVa
|
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
7
|
select: (option: SelectOption) => any;
|
|
8
|
+
blur: (event: FocusEvent) => any;
|
|
8
9
|
invalid: (text: string) => any;
|
|
9
10
|
"update:modelValue": (value: string[]) => any;
|
|
10
11
|
focus: (event: FocusEvent) => any;
|
|
11
|
-
blur: (event: FocusEvent) => any;
|
|
12
12
|
"update:loading": (loading: boolean) => any;
|
|
13
13
|
create: (value: string) => any;
|
|
14
14
|
"open-dropdown": () => any;
|
|
15
15
|
"close-dropdown": () => any;
|
|
16
16
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
17
|
onSelect?: ((option: SelectOption) => any) | undefined;
|
|
18
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
18
19
|
onInvalid?: ((text: string) => any) | undefined;
|
|
19
20
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
20
21
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
21
|
-
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
22
22
|
"onUpdate:loading"?: ((loading: boolean) => any) | undefined;
|
|
23
23
|
onCreate?: ((value: string) => any) | undefined;
|
|
24
24
|
"onOpen-dropdown"?: (() => any) | undefined;
|
|
@@ -64,19 +64,20 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
64
64
|
focusPrevious: () => void;
|
|
65
65
|
focusNext: () => void;
|
|
66
66
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
67
|
-
"update:modelValue": (page: number) => any;
|
|
68
67
|
change: (page: number) => any;
|
|
68
|
+
"update:modelValue": (page: number) => any;
|
|
69
69
|
refresh: () => any;
|
|
70
70
|
"update:pageSize": (pageSize: number) => any;
|
|
71
71
|
changePage: (payload: PaginationSwitch) => any;
|
|
72
72
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
73
|
-
"onUpdate:modelValue"?: ((page: number) => any) | undefined;
|
|
74
73
|
onChange?: ((page: number) => any) | undefined;
|
|
74
|
+
"onUpdate:modelValue"?: ((page: number) => any) | undefined;
|
|
75
75
|
onRefresh?: (() => any) | undefined;
|
|
76
76
|
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
77
77
|
onChangePage?: ((payload: PaginationSwitch) => any) | undefined;
|
|
78
78
|
}>, {
|
|
79
79
|
modelValue: number;
|
|
80
|
+
labels: Partial<PaginationLabels>;
|
|
80
81
|
end: string | number;
|
|
81
82
|
mode: "normal" | "less";
|
|
82
83
|
start: string | number;
|
|
@@ -99,7 +100,6 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
99
100
|
maxPageButtons: number;
|
|
100
101
|
totalTextMode: PaginationTotalTextMode;
|
|
101
102
|
totalTextFormat: Partial<Record<PaginationTotalTextMode, string>>;
|
|
102
|
-
labels: Partial<PaginationLabels>;
|
|
103
103
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
104
104
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
105
105
|
declare const _default: typeof __VLS_export;
|
|
@@ -16,3 +16,4 @@ export type PaginationLabels = {
|
|
|
16
16
|
totalText: Record<PaginationTotalTextMode, string>;
|
|
17
17
|
};
|
|
18
18
|
export declare const defaultPaginationLabels: PaginationLabels;
|
|
19
|
+
export declare function localizedPaginationLabels(t: import('../../../i18n/text').UiTranslator): PaginationLabels;
|
|
@@ -2,6 +2,14 @@ import { ScheduleOption, ScheduleSplitMinute } from './schedule';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
/** Digit string; length must be `168 * (60 / splitMinute)`. */
|
|
4
4
|
modelValue: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
dayLabels?: [string, string, string, string, string, string, string];
|
|
7
|
+
text?: Partial<{
|
|
8
|
+
selectAll: string;
|
|
9
|
+
selectHour: (hour: number) => string;
|
|
10
|
+
selectDay: (day: string) => string;
|
|
11
|
+
edit: (label: string) => string;
|
|
12
|
+
}>;
|
|
5
13
|
options?: ScheduleOption[];
|
|
6
14
|
splitMinute?: ScheduleSplitMinute;
|
|
7
15
|
optionsCountPerRow?: number;
|
|
@@ -48,6 +56,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
48
56
|
}) => any) | undefined;
|
|
49
57
|
"onEdit-option"?: ((option: ScheduleOption) => any) | undefined;
|
|
50
58
|
}>, {
|
|
59
|
+
disabled: boolean;
|
|
51
60
|
prefix: string;
|
|
52
61
|
options: ScheduleOption[];
|
|
53
62
|
defaultSelected: number;
|
|
@@ -13,11 +13,11 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
default?: (props: typeof __VLS_1) => any;
|
|
14
14
|
};
|
|
15
15
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
-
"update:modelValue": (value: string) => any;
|
|
17
16
|
change: (value: string) => any;
|
|
17
|
+
"update:modelValue": (value: string) => any;
|
|
18
18
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
20
19
|
onChange?: ((value: string) => any) | undefined;
|
|
20
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
disabled: boolean;
|
|
23
23
|
modelValue: string;
|
|
@@ -23,13 +23,9 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
23
23
|
}>, {
|
|
24
24
|
search: SelectSearch;
|
|
25
25
|
disabled: boolean;
|
|
26
|
-
placeholder: string;
|
|
27
26
|
options: SelectOptions;
|
|
28
27
|
minSearchChar: number;
|
|
29
28
|
caseSensitive: boolean;
|
|
30
|
-
searchPlaceholder: string;
|
|
31
|
-
notFoundText: string;
|
|
32
|
-
loadingText: string;
|
|
33
29
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
34
30
|
declare const _default: typeof __VLS_export;
|
|
35
31
|
export default _default;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { SelectFieldProps, SelectOption } from './types';
|
|
2
2
|
declare const __VLS_export: import('vue').DefineComponent<SelectFieldProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
3
|
select: (option: SelectOption) => any;
|
|
4
|
+
blur: (event: FocusEvent) => any;
|
|
4
5
|
invalid: (text: string) => any;
|
|
5
6
|
"update:modelValue": (value: string | string[]) => any;
|
|
6
7
|
focus: (event: FocusEvent) => any;
|
|
7
|
-
blur: (event: FocusEvent) => any;
|
|
8
8
|
"update:loading": (loading: boolean) => any;
|
|
9
9
|
create: (value: string) => any;
|
|
10
10
|
"open-dropdown": () => any;
|
|
11
11
|
"close-dropdown": () => any;
|
|
12
12
|
}, string, import('vue').PublicProps, Readonly<SelectFieldProps> & Readonly<{
|
|
13
13
|
onSelect?: ((option: SelectOption) => any) | undefined;
|
|
14
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
14
15
|
onInvalid?: ((text: string) => any) | undefined;
|
|
15
16
|
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
16
17
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
17
|
-
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
18
18
|
"onUpdate:loading"?: ((loading: boolean) => any) | undefined;
|
|
19
19
|
onCreate?: ((value: string) => any) | undefined;
|
|
20
20
|
"onOpen-dropdown"?: (() => any) | undefined;
|
|
@@ -24,22 +24,17 @@ declare const __VLS_export: import('vue').DefineComponent<SelectFieldProps, {},
|
|
|
24
24
|
loading: boolean;
|
|
25
25
|
disabled: boolean;
|
|
26
26
|
modelValue: string | string[];
|
|
27
|
-
placeholder: string;
|
|
28
27
|
ariaLabel: string;
|
|
29
28
|
ariaLabelledby: string;
|
|
30
29
|
defaultValue: string | string[];
|
|
31
30
|
options: import('./types').SelectOptions;
|
|
32
31
|
minSearchChar: number;
|
|
33
32
|
caseSensitive: boolean;
|
|
34
|
-
notFoundText: string;
|
|
35
|
-
loadingText: string;
|
|
36
33
|
multiple: boolean;
|
|
37
34
|
allowCreate: import('./types').SelectAllowCreate;
|
|
38
35
|
editable: boolean;
|
|
39
36
|
clearable: boolean;
|
|
40
|
-
createHintText: string;
|
|
41
37
|
displayLimit: number | false;
|
|
42
|
-
clearLabel: string;
|
|
43
38
|
removeTagLabel: (label: string) => string;
|
|
44
39
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
45
40
|
declare const _default: typeof __VLS_export;
|
|
@@ -35,7 +35,6 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
35
35
|
side: SheetSide;
|
|
36
36
|
defaultOpen: boolean;
|
|
37
37
|
open: boolean;
|
|
38
|
-
closeLabel: string;
|
|
39
38
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
40
39
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
41
40
|
declare const _default: typeof __VLS_export;
|
|
@@ -41,7 +41,6 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
41
41
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
42
42
|
}>, {
|
|
43
43
|
disabled: boolean;
|
|
44
|
-
ariaLabel: string;
|
|
45
44
|
step: number | string;
|
|
46
45
|
tip: boolean;
|
|
47
46
|
withInput: boolean | SliderInputOptions;
|
|
@@ -3,7 +3,6 @@ type __VLS_Props = {
|
|
|
3
3
|
size?: number;
|
|
4
4
|
};
|
|
5
5
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
-
label: string;
|
|
7
6
|
size: number;
|
|
8
7
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
8
|
declare const _default: typeof __VLS_export;
|
|
@@ -18,7 +18,6 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
18
18
|
}>, {
|
|
19
19
|
variant: "secondary" | "primary";
|
|
20
20
|
disabled: boolean;
|
|
21
|
-
menuLabel: string;
|
|
22
21
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
23
|
declare const _default: typeof __VLS_export;
|
|
@@ -5,20 +5,20 @@ type __VLS_Props = Omit<SelectFieldProps, 'multiple' | 'modelValue' | 'defaultVa
|
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
7
|
select: (option: SelectOption) => any;
|
|
8
|
+
blur: (event: FocusEvent) => any;
|
|
8
9
|
invalid: (text: string) => any;
|
|
9
10
|
"update:modelValue": (value: string[]) => any;
|
|
10
11
|
focus: (event: FocusEvent) => any;
|
|
11
|
-
blur: (event: FocusEvent) => any;
|
|
12
12
|
"update:loading": (loading: boolean) => any;
|
|
13
13
|
create: (value: string) => any;
|
|
14
14
|
"open-dropdown": () => any;
|
|
15
15
|
"close-dropdown": () => any;
|
|
16
16
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
17
|
onSelect?: ((option: SelectOption) => any) | undefined;
|
|
18
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
18
19
|
onInvalid?: ((text: string) => any) | undefined;
|
|
19
20
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
20
21
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
21
|
-
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
22
22
|
"onUpdate:loading"?: ((loading: boolean) => any) | undefined;
|
|
23
23
|
onCreate?: ((value: string) => any) | undefined;
|
|
24
24
|
"onOpen-dropdown"?: (() => any) | undefined;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ToastController } from './toast';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
+
/** Announcement prefix and viewport hotkey hint; default to the Provider locale. */
|
|
4
|
+
announcementLabel?: string;
|
|
5
|
+
viewportLabel?: string;
|
|
6
|
+
closeLabel?: string;
|
|
3
7
|
duration?: number;
|
|
4
8
|
swipeDirection?: 'right' | 'left' | 'up' | 'down';
|
|
5
9
|
};
|
|
@@ -20,11 +20,11 @@ type __VLS_Slots = {} & {
|
|
|
20
20
|
default?: (props: typeof __VLS_22) => any;
|
|
21
21
|
};
|
|
22
22
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
-
"update:modelValue": (value: boolean) => any;
|
|
24
23
|
change: (value: boolean) => any;
|
|
24
|
+
"update:modelValue": (value: boolean) => any;
|
|
25
25
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
27
26
|
onChange?: ((value: boolean) => any) | undefined;
|
|
27
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
29
|
size: "sm" | "md" | "lg";
|
|
30
30
|
type: "text" | "icon" | "icon-text";
|
|
@@ -17,11 +17,11 @@ type __VLS_Slots = {} & {
|
|
|
17
17
|
default?: (props: typeof __VLS_10) => any;
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
-
"update:modelValue": (value: string | string[]) => any;
|
|
21
20
|
change: (value: string | string[]) => any;
|
|
21
|
+
"update:modelValue": (value: string | string[]) => any;
|
|
22
22
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
-
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
24
23
|
onChange?: ((value: string | string[]) => any) | undefined;
|
|
24
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
label: string;
|
|
27
27
|
disabled: boolean;
|
|
@@ -7,6 +7,6 @@ export declare const HEADER_LEVELS: Record<HeaderLevel, string>;
|
|
|
7
7
|
/** Turns heading text into a fragment id; CJK letters are kept as-is. */
|
|
8
8
|
export declare function headingId(text: string): string;
|
|
9
9
|
export type TipType = 'info' | 'warn' | 'error';
|
|
10
|
-
export declare const TIP_TITLES: Record<TipType,
|
|
10
|
+
export declare const TIP_TITLES: Record<TipType, 'Info' | 'Warning' | 'Error'>;
|
|
11
11
|
export declare const TIP_BORDERS: Record<TipType, string>;
|
|
12
12
|
export declare const TIP_TITLE_COLORS: Record<TipType, string>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ShallowRef } from 'vue';
|
|
2
|
+
/** Observe the component's container, including DSM window resizes that do not
|
|
3
|
+
* resize the document viewport. Zero is unknown (e.g. hidden tab or SSR). */
|
|
4
|
+
export declare function useElementWidth(element: Readonly<ShallowRef<HTMLElement | null>>): import('vue').Ref<number, number>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** One primary control per FormItem. Layout attrs stay on wrappers; all other
|
|
2
|
+
* attrs belong to the focusable control. Composite controls consume the field
|
|
3
|
+
* so their popup's internal inputs cannot steal its label or reuse its id. */
|
|
4
|
+
export declare function useFormControl(options: {
|
|
5
|
+
value: () => unknown;
|
|
6
|
+
disabled: () => boolean | undefined;
|
|
7
|
+
id?: () => string | undefined;
|
|
8
|
+
ariaLabel?: () => string | undefined;
|
|
9
|
+
ariaLabelledby?: () => string | undefined;
|
|
10
|
+
invalid?: () => boolean | undefined;
|
|
11
|
+
}): {
|
|
12
|
+
controlAttrs: () => Record<string, unknown> & {
|
|
13
|
+
id?: string;
|
|
14
|
+
"aria-label"?: string;
|
|
15
|
+
};
|
|
16
|
+
wrapperAttrs: () => {
|
|
17
|
+
class: import('vue').ClassValue;
|
|
18
|
+
style: import('vue').StyleValue;
|
|
19
|
+
};
|
|
20
|
+
changed: (value: unknown) => void;
|
|
21
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UiLocale } from './locale';
|
|
2
|
+
export type FilePickerText = {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
chooseFiles: string;
|
|
6
|
+
chooseFolder: string;
|
|
7
|
+
maxSize: string;
|
|
8
|
+
maxFiles: string;
|
|
9
|
+
remove: string;
|
|
10
|
+
typeRejected: string;
|
|
11
|
+
sizeRejected: string;
|
|
12
|
+
countRejected: string;
|
|
13
|
+
duplicateRejected: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const filePickerText: Record<UiLocale, FilePickerText>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
export type UiLocale = 'en' | 'zh-TW' | 'zh-CN' | 'ja' | 'ko' | 'de' | 'fr' | 'es' | 'it';
|
|
3
|
+
export declare const UI_LOCALE_KEY: InjectionKey<ComputedRef<UiLocale>>;
|
|
4
|
+
export declare function useUiLocale(own: () => UiLocale | undefined): ComputedRef<UiLocale>;
|
|
5
|
+
/** Named placeholders let applications translate messages without concatenating English. */
|
|
6
|
+
export declare function formatUiText(template: string, values: Record<string, string | number>): string;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { UiLocale } from './locale';
|
|
2
|
+
export declare const englishUiText: {
|
|
3
|
+
readonly "Opens in a new tab": "Opens in a new tab";
|
|
4
|
+
readonly Download: "Download";
|
|
5
|
+
readonly Close: "Close";
|
|
6
|
+
readonly Cancel: "Cancel";
|
|
7
|
+
readonly Confirm: "Confirm";
|
|
8
|
+
readonly OK: "OK";
|
|
9
|
+
readonly Delete: "Delete";
|
|
10
|
+
readonly Save: "Save";
|
|
11
|
+
readonly "Don't save": "Don't save";
|
|
12
|
+
readonly Remove: "Remove";
|
|
13
|
+
readonly "Remove {name}": "Remove {name}";
|
|
14
|
+
readonly Loading: "Loading";
|
|
15
|
+
readonly "Loading\u2026": "Loading…";
|
|
16
|
+
readonly Working: "Working";
|
|
17
|
+
readonly Search: "Search";
|
|
18
|
+
readonly "Search\u2026": "Search…";
|
|
19
|
+
readonly "Clear search": "Clear search";
|
|
20
|
+
readonly "Select\u2026": "Select…";
|
|
21
|
+
readonly "No results": "No results";
|
|
22
|
+
readonly "No data": "No data";
|
|
23
|
+
readonly Add: "Add";
|
|
24
|
+
readonly Clear: "Clear";
|
|
25
|
+
readonly "Open options": "Open options";
|
|
26
|
+
readonly Copy: "Copy";
|
|
27
|
+
readonly Cut: "Cut";
|
|
28
|
+
readonly "Toggle content": "Toggle content";
|
|
29
|
+
readonly "More options": "More options";
|
|
30
|
+
readonly More: "More";
|
|
31
|
+
readonly "Close notification": "Close notification";
|
|
32
|
+
readonly Notifications: "Notifications";
|
|
33
|
+
readonly "Press F6 to access notifications": "Press F6 to access notifications";
|
|
34
|
+
readonly "Application navigation": "Application navigation";
|
|
35
|
+
readonly Sections: "Sections";
|
|
36
|
+
readonly Slider: "Slider";
|
|
37
|
+
readonly "Increase value": "Increase value";
|
|
38
|
+
readonly "Decrease value": "Decrease value";
|
|
39
|
+
readonly "Preset values": "Preset values";
|
|
40
|
+
readonly "Show full path": "Show full path";
|
|
41
|
+
readonly "Link to this section": "Link to this section";
|
|
42
|
+
readonly "More information": "More information";
|
|
43
|
+
readonly Info: "Info";
|
|
44
|
+
readonly Warning: "Warning";
|
|
45
|
+
readonly Error: "Error";
|
|
46
|
+
readonly Reset: "Reset";
|
|
47
|
+
readonly Custom: "Custom";
|
|
48
|
+
readonly Color: "Color";
|
|
49
|
+
readonly "Common colors": "Common colors";
|
|
50
|
+
readonly Palette: "Palette";
|
|
51
|
+
readonly "Custom colors": "Custom colors";
|
|
52
|
+
readonly "Select date": "Select date";
|
|
53
|
+
readonly "Previous month": "Previous month";
|
|
54
|
+
readonly "Next month": "Next month";
|
|
55
|
+
readonly "Add time": "Add time";
|
|
56
|
+
readonly Hour: "Hour";
|
|
57
|
+
readonly Minute: "Minute";
|
|
58
|
+
readonly Meridiem: "Meridiem";
|
|
59
|
+
readonly "Clear date": "Clear date";
|
|
60
|
+
readonly AM: "AM";
|
|
61
|
+
readonly PM: "PM";
|
|
62
|
+
readonly "Expand {name}": "Expand {name}";
|
|
63
|
+
readonly "Collapse {name}": "Collapse {name}";
|
|
64
|
+
readonly "Select all times": "Select all times";
|
|
65
|
+
readonly "Select hour {hour}": "Select hour {hour}";
|
|
66
|
+
readonly "Select {name}": "Select {name}";
|
|
67
|
+
readonly "Edit {name}": "Edit {name}";
|
|
68
|
+
readonly "Setup wizard": "Setup wizard";
|
|
69
|
+
readonly Apply: "Apply";
|
|
70
|
+
readonly Start: "Start";
|
|
71
|
+
readonly Next: "Next";
|
|
72
|
+
readonly Previous: "Previous";
|
|
73
|
+
readonly "Step {step} of {total}": "Step {step} of {total}";
|
|
74
|
+
readonly "Password:": "Password:";
|
|
75
|
+
readonly "Enter password": "Enter password";
|
|
76
|
+
readonly "Unsaved changes": "Unsaved changes";
|
|
77
|
+
readonly "Save your changes before closing?": "Save your changes before closing?";
|
|
78
|
+
readonly "The value is not valid.": "The value is not valid.";
|
|
79
|
+
readonly "About this application": "About this application";
|
|
80
|
+
readonly BETA: "BETA";
|
|
81
|
+
readonly "Version {version}": "Version {version}";
|
|
82
|
+
readonly "Checking for updates\u2026": "Checking for updates…";
|
|
83
|
+
readonly "Version {version} is available.": "Version {version} is available.";
|
|
84
|
+
readonly "Beta version {version} is available.": "Beta version {version} is available.";
|
|
85
|
+
readonly "Could not check for updates.": "Could not check for updates.";
|
|
86
|
+
readonly Retry: "Retry";
|
|
87
|
+
readonly "Release notes": "Release notes";
|
|
88
|
+
readonly "Terms of Service": "Terms of Service";
|
|
89
|
+
readonly "Privacy Policy": "Privacy Policy";
|
|
90
|
+
readonly "{title} legal": "{title} legal";
|
|
91
|
+
readonly "First page": "First page";
|
|
92
|
+
readonly "Previous page": "Previous page";
|
|
93
|
+
readonly "Next page": "Next page";
|
|
94
|
+
readonly "Last page": "Last page";
|
|
95
|
+
readonly Refresh: "Refresh";
|
|
96
|
+
readonly Pagination: "Pagination";
|
|
97
|
+
readonly "Pagination, {total} items total": "Pagination, {total} items total";
|
|
98
|
+
readonly "Page {page}": "Page {page}";
|
|
99
|
+
readonly "Go to page {page}": "Go to page {page}";
|
|
100
|
+
readonly "Items per page": "Items per page";
|
|
101
|
+
readonly "{total} items": "{total} items";
|
|
102
|
+
readonly "{start}-{end} items": "{start}-{end} items";
|
|
103
|
+
readonly "{filteredCount} items": "{filteredCount} items";
|
|
104
|
+
readonly "{selectedCount} / {total} items selected": "{selectedCount} / {total} items selected";
|
|
105
|
+
readonly "{count} items": "{count} items";
|
|
106
|
+
readonly "Page {page} / {pageCount}": "Page {page} / {pageCount}";
|
|
107
|
+
readonly "Select visible rows": "Select visible rows";
|
|
108
|
+
readonly "Select row {key}": "Select row {key}";
|
|
109
|
+
readonly "Resize column {label}": "Resize column {label}";
|
|
110
|
+
readonly "Expand row {key}": "Expand row {key}";
|
|
111
|
+
readonly "Collapse row {key}": "Collapse row {key}";
|
|
112
|
+
readonly "Reorder row {key}": "Reorder row {key}";
|
|
113
|
+
readonly "Sort by {name}": "Sort by {name}";
|
|
114
|
+
readonly "Value is required": "Value is required";
|
|
115
|
+
readonly "Value does not match the expected format": "Value does not match the expected format";
|
|
116
|
+
readonly "Value is not one of the allowed options": "Value is not one of the allowed options";
|
|
117
|
+
readonly "Value must be exactly {len} characters": "Value must be exactly {len} characters";
|
|
118
|
+
readonly "Value must be at least {min}": "Value must be at least {min}";
|
|
119
|
+
readonly "Value must be at most {max}": "Value must be at most {max}";
|
|
120
|
+
readonly "Value must be a string": "Value must be a string";
|
|
121
|
+
readonly "Value must be a number": "Value must be a number";
|
|
122
|
+
readonly "Value must be an integer": "Value must be an integer";
|
|
123
|
+
readonly "Value must be a boolean": "Value must be a boolean";
|
|
124
|
+
readonly "Value must be an array": "Value must be an array";
|
|
125
|
+
readonly "Value must be a valid email address": "Value must be a valid email address";
|
|
126
|
+
readonly "Value must be a valid URL": "Value must be a valid URL";
|
|
127
|
+
readonly "Value must be a valid date": "Value must be a valid date";
|
|
128
|
+
readonly "{count} item": "{count} item";
|
|
129
|
+
readonly "Pagination, {total} item total": "Pagination, {total} item total";
|
|
130
|
+
readonly Notification: "Notification";
|
|
131
|
+
readonly "Notifications ({hotkey})": "Notifications ({hotkey})";
|
|
132
|
+
};
|
|
133
|
+
export type UiTextKey = keyof typeof englishUiText;
|
|
134
|
+
export type UiTranslator = (key: UiTextKey, values?: Record<string, string | number>) => string;
|
|
135
|
+
export declare const uiText: Record<UiLocale, Record<UiTextKey, string>>;
|
|
136
|
+
export declare function translateUiText(locale: UiLocale, key: UiTextKey, values?: Record<string, string | number>): string;
|
|
137
|
+
export declare function useUiText(): UiTranslator;
|
|
138
|
+
/** Preserve explicit strings, including empty ones, while resolving defaults
|
|
139
|
+
* lazily so provider locale changes are reflected during the next render. */
|
|
140
|
+
export declare function useLocalizedDefaults<T extends object, K extends keyof T>(raw: T, defaults: Record<K, UiTextKey>): T & Record<K, string>;
|
package/dist/index.d.ts
CHANGED
|
@@ -185,3 +185,8 @@ export type { AffixFix, AffixPlacement } from './components/primitives/affix/aff
|
|
|
185
185
|
export { default as OverflowToolbar } from './components/composite/overflow-toolbar/OverflowToolbar.vue';
|
|
186
186
|
export { computeOverflowFit, ITEM_GAP } from './components/composite/overflow-toolbar/overflow';
|
|
187
187
|
export type { OverflowToolbarItem, OverflowToolbarMenuEntry, OverflowToolbarMoreMenu, OverflowToolbarMoreState, OverflowToolbarMoreText, } from './components/composite/overflow-toolbar/types';
|
|
188
|
+
export type { UiLocale } from './i18n/locale';
|
|
189
|
+
export { filePickerText } from './i18n/filePicker';
|
|
190
|
+
export type { FilePickerText } from './i18n/filePicker';
|
|
191
|
+
export { default as Link } from './components/primitives/link/Link.vue';
|
|
192
|
+
export { default as KeyValueRow } from './components/composite/key-value-row/KeyValueRow.vue';
|