@codemonster-ru/vueforge 0.90.0 → 0.92.0
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 +8 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +25 -2
- package/dist/index.ts.mjs +8934 -6685
- package/dist/index.ts.umd.js +13 -13
- package/dist/package/components/__tests__/avatar.test.d.ts +1 -0
- package/dist/package/components/__tests__/badge.test.d.ts +1 -0
- package/dist/package/components/__tests__/button.test.d.ts +1 -0
- package/dist/package/components/__tests__/card.test.d.ts +1 -0
- package/dist/package/components/__tests__/carousel.test.d.ts +1 -0
- package/dist/package/components/__tests__/chart.test.d.ts +1 -0
- package/dist/package/components/__tests__/checkbox.test.d.ts +1 -0
- package/dist/package/components/__tests__/data-view.test.d.ts +1 -0
- package/dist/package/components/__tests__/image.test.d.ts +1 -0
- package/dist/package/components/__tests__/listbox.test.d.ts +1 -0
- package/dist/package/components/__tests__/mega-menu.test.d.ts +1 -0
- package/dist/package/components/__tests__/menu-bar.test.d.ts +1 -0
- package/dist/package/components/__tests__/must-have-parity-a11y.test.d.ts +1 -0
- package/dist/package/components/__tests__/must-have-parity-responsive.test.d.ts +1 -0
- package/dist/package/components/__tests__/overlay-panel.test.d.ts +1 -0
- package/dist/package/components/__tests__/panel-menu.test.d.ts +1 -0
- package/dist/package/components/__tests__/rtl-regression.test.d.ts +1 -0
- package/dist/package/components/__tests__/speed-dial.test.d.ts +1 -0
- package/dist/package/components/__tests__/ssr-hydration.test.d.ts +1 -0
- package/dist/package/components/__tests__/switch.test.d.ts +1 -0
- package/dist/package/components/__tests__/tree-table.test.d.ts +1 -0
- package/dist/package/components/accordion.vue.d.ts +3 -3
- package/dist/package/components/autocomplete.vue.d.ts +2 -2
- package/dist/package/components/avatar.vue.d.ts +1 -1
- package/dist/package/components/badge.vue.d.ts +1 -1
- package/dist/package/components/calendar.vue.d.ts +2 -2
- package/dist/package/components/carousel.vue.d.ts +83 -0
- package/dist/package/components/chart-adapter.d.ts +35 -0
- package/dist/package/components/chart.vue.d.ts +63 -0
- package/dist/package/components/checkbox.vue.d.ts +17 -1
- package/dist/package/components/chip.vue.d.ts +2 -2
- package/dist/package/components/color-picker.vue.d.ts +3 -2
- package/dist/package/components/combobox.vue.d.ts +2 -2
- package/dist/package/components/command-palette.vue.d.ts +2 -2
- package/dist/package/components/confirm-dialog.vue.d.ts +8 -8
- package/dist/package/components/data-table.vue.d.ts +3 -3
- package/dist/package/components/data-view.vue.d.ts +83 -0
- package/dist/package/components/date-range-picker.vue.d.ts +2 -2
- package/dist/package/components/datepicker.vue.d.ts +2 -2
- package/dist/package/components/datetimepicker.vue.d.ts +2 -2
- package/dist/package/components/divider.vue.d.ts +1 -1
- package/dist/package/components/drawer.vue.d.ts +2 -2
- package/dist/package/components/file-upload.vue.d.ts +2 -2
- package/dist/package/components/filter-chips.vue.d.ts +5 -5
- package/dist/package/components/form.vue.d.ts +1 -1
- package/dist/package/components/image.vue.d.ts +61 -0
- package/dist/package/components/inline-edit.vue.d.ts +1 -1
- package/dist/package/components/input-group.vue.d.ts +4 -0
- package/dist/package/components/input.vue.d.ts +2 -2
- package/dist/package/components/listbox.vue.d.ts +81 -0
- package/dist/package/components/masked-input.vue.d.ts +2 -2
- package/dist/package/components/mega-menu.vue.d.ts +39 -0
- package/dist/package/components/mention-input.vue.d.ts +4 -4
- package/dist/package/components/menu-bar.vue.d.ts +27 -0
- package/dist/package/components/modal.vue.d.ts +1 -1
- package/dist/package/components/multi-select.vue.d.ts +2 -2
- package/dist/package/components/notification-center.vue.d.ts +6 -6
- package/dist/package/components/number-input.vue.d.ts +2 -2
- package/dist/package/components/otp-input.vue.d.ts +2 -2
- package/dist/package/components/overlay-panel.vue.d.ts +374 -0
- package/dist/package/components/pagination.vue.d.ts +1 -1
- package/dist/package/components/panel-menu-node.vue.d.ts +17 -0
- package/dist/package/components/panel-menu.vue.d.ts +31 -0
- package/dist/package/components/password-input.vue.d.ts +2 -2
- package/dist/package/components/popover.vue.d.ts +3 -3
- package/dist/package/components/progress.vue.d.ts +1 -1
- package/dist/package/components/radio-button.vue.d.ts +1 -1
- package/dist/package/components/radio-group.vue.d.ts +2 -2
- package/dist/package/components/rating.vue.d.ts +1 -1
- package/dist/package/components/rich-text-editor.vue.d.ts +2 -2
- package/dist/package/components/search-input.vue.d.ts +2 -2
- package/dist/package/components/segmented-control.vue.d.ts +2 -2
- package/dist/package/components/select.vue.d.ts +3 -3
- package/dist/package/components/skeleton.vue.d.ts +12 -1
- package/dist/package/components/slider.vue.d.ts +2 -2
- package/dist/package/components/speed-dial.vue.d.ts +91 -0
- package/dist/package/components/spinner.vue.d.ts +1 -1
- package/dist/package/components/split-button.vue.d.ts +3 -1
- package/dist/package/components/stepper.vue.d.ts +1 -1
- package/dist/package/components/switch.vue.d.ts +16 -0
- package/dist/package/components/tabs.vue.d.ts +1 -1
- package/dist/package/components/tag-input.vue.d.ts +3 -3
- package/dist/package/components/textarea.vue.d.ts +2 -2
- package/dist/package/components/timepicker.vue.d.ts +2 -2
- package/dist/package/components/toast-container.vue.d.ts +2 -0
- package/dist/package/components/toast.vue.d.ts +1 -1
- package/dist/package/components/tour.vue.d.ts +2 -2
- package/dist/package/components/tree-select.vue.d.ts +3 -3
- package/dist/package/components/tree-table.vue.d.ts +99 -0
- package/dist/package/components/tree.vue.d.ts +4 -4
- package/dist/package/components/virtual-scroller.vue.d.ts +1 -1
- package/dist/package/components/wizard.vue.d.ts +1 -1
- package/dist/package/config/__tests__/locale-text.test.d.ts +1 -0
- package/dist/package/config/index.d.ts +7 -1
- package/dist/package/config/locale-text.d.ts +151 -0
- package/dist/package/config/pass-through.d.ts +6 -0
- package/dist/package/config/theme-core.d.ts +246 -0
- package/dist/package/services/__tests__/confirm-service.test.d.ts +1 -0
- package/dist/package/services/__tests__/dialog-service.test.d.ts +1 -0
- package/dist/package/services/confirm-service.d.ts +43 -0
- package/dist/package/services/dialog-service.d.ts +29 -0
- package/dist/package/themes/default/components/carousel.d.ts +28 -0
- package/dist/package/themes/default/components/chart.d.ts +12 -0
- package/dist/package/themes/default/components/dataview.d.ts +27 -0
- package/dist/package/themes/default/components/image.d.ts +21 -0
- package/dist/package/themes/default/components/listbox.d.ts +32 -0
- package/dist/package/themes/default/components/megamenu.d.ts +27 -0
- package/dist/package/themes/default/components/menubar.d.ts +7 -0
- package/dist/package/themes/default/components/panelmenu.d.ts +13 -0
- package/dist/package/themes/default/components/skeleton.d.ts +9 -0
- package/dist/package/themes/default/components/speeddial.d.ts +31 -0
- package/dist/package/themes/default/components/treetable.d.ts +38 -0
- package/dist/package/themes/default/index.d.ts +242 -0
- package/package.json +11 -2
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { PassThroughOptions } from '../config/pass-through';
|
|
2
|
+
export interface SpeedDialAction {
|
|
3
|
+
label: string;
|
|
4
|
+
value?: string | number;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
key?: string | number;
|
|
8
|
+
}
|
|
9
|
+
type Direction = 'up' | 'down' | 'left' | 'right';
|
|
10
|
+
interface Props {
|
|
11
|
+
modelValue?: boolean;
|
|
12
|
+
actions?: Array<SpeedDialAction>;
|
|
13
|
+
direction?: Direction;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
openLabel?: string;
|
|
17
|
+
closeLabel?: string;
|
|
18
|
+
closeOnAction?: boolean;
|
|
19
|
+
closeOnOutsideClick?: boolean;
|
|
20
|
+
pt?: PassThroughOptions;
|
|
21
|
+
unstyled?: boolean;
|
|
22
|
+
}
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
attrs: Partial<{}>;
|
|
25
|
+
slots: Readonly<{
|
|
26
|
+
trigger?: (props: {
|
|
27
|
+
open: boolean;
|
|
28
|
+
}) => unknown;
|
|
29
|
+
action?: (props: {
|
|
30
|
+
action: SpeedDialAction;
|
|
31
|
+
index: number;
|
|
32
|
+
}) => unknown;
|
|
33
|
+
}> & {
|
|
34
|
+
trigger?: (props: {
|
|
35
|
+
open: boolean;
|
|
36
|
+
}) => unknown;
|
|
37
|
+
action?: (props: {
|
|
38
|
+
action: SpeedDialAction;
|
|
39
|
+
index: number;
|
|
40
|
+
}) => unknown;
|
|
41
|
+
};
|
|
42
|
+
refs: {
|
|
43
|
+
rootRef: HTMLDivElement;
|
|
44
|
+
actionRefs: HTMLButtonElement;
|
|
45
|
+
};
|
|
46
|
+
rootEl: HTMLDivElement;
|
|
47
|
+
};
|
|
48
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
49
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
50
|
+
open: () => void;
|
|
51
|
+
close: () => void;
|
|
52
|
+
toggle: () => void;
|
|
53
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
54
|
+
toggle: (value: boolean) => any;
|
|
55
|
+
"update:modelValue": (value: boolean) => any;
|
|
56
|
+
action: (payload: {
|
|
57
|
+
action: SpeedDialAction;
|
|
58
|
+
index: number;
|
|
59
|
+
value: string | number | undefined;
|
|
60
|
+
}) => any;
|
|
61
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
62
|
+
onToggle?: ((value: boolean) => any) | undefined;
|
|
63
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
64
|
+
onAction?: ((payload: {
|
|
65
|
+
action: SpeedDialAction;
|
|
66
|
+
index: number;
|
|
67
|
+
value: string | number | undefined;
|
|
68
|
+
}) => any) | undefined;
|
|
69
|
+
}>, {
|
|
70
|
+
disabled: boolean;
|
|
71
|
+
ariaLabel: string;
|
|
72
|
+
modelValue: boolean;
|
|
73
|
+
closeLabel: string;
|
|
74
|
+
pt: PassThroughOptions;
|
|
75
|
+
unstyled: boolean;
|
|
76
|
+
direction: Direction;
|
|
77
|
+
actions: Array<SpeedDialAction>;
|
|
78
|
+
openLabel: string;
|
|
79
|
+
closeOnAction: boolean;
|
|
80
|
+
closeOnOutsideClick: boolean;
|
|
81
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
82
|
+
rootRef: HTMLDivElement;
|
|
83
|
+
actionRefs: HTMLButtonElement;
|
|
84
|
+
}, HTMLDivElement>;
|
|
85
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
86
|
+
export default _default;
|
|
87
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
88
|
+
new (): {
|
|
89
|
+
$slots: S;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
@@ -20,9 +20,9 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
20
20
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
21
21
|
label: string;
|
|
22
22
|
size: SpinnerSize;
|
|
23
|
+
ariaLabel: string;
|
|
23
24
|
variant: SpinnerVariant;
|
|
24
25
|
severity: SpinnerSeverity;
|
|
25
|
-
ariaLabel: string;
|
|
26
26
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
27
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
28
|
export default _default;
|
|
@@ -30,6 +30,7 @@ interface Props {
|
|
|
30
30
|
closeOnEsc?: boolean;
|
|
31
31
|
matchTriggerWidth?: boolean;
|
|
32
32
|
toggleAriaLabel?: string;
|
|
33
|
+
ariaLabel?: string;
|
|
33
34
|
}
|
|
34
35
|
declare function __VLS_template(): {
|
|
35
36
|
attrs: Partial<{}>;
|
|
@@ -167,10 +168,11 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
167
168
|
size: Size;
|
|
168
169
|
items: Array<Item>;
|
|
169
170
|
icon: string;
|
|
171
|
+
ariaLabel: string;
|
|
172
|
+
modelValue: boolean;
|
|
170
173
|
loading: boolean;
|
|
171
174
|
variant: Variant;
|
|
172
175
|
severity: string;
|
|
173
|
-
modelValue: boolean;
|
|
174
176
|
placement: Placement;
|
|
175
177
|
offset: number;
|
|
176
178
|
closeOnEsc: boolean;
|
|
@@ -55,8 +55,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
55
55
|
disabled: boolean;
|
|
56
56
|
size: StepperSize;
|
|
57
57
|
orientation: StepperOrientation;
|
|
58
|
-
modelValue: StepperValue;
|
|
59
58
|
ariaLabel: string;
|
|
59
|
+
modelValue: StepperValue;
|
|
60
60
|
ariaLabelledby: string;
|
|
61
61
|
steps: Array<StepperStep>;
|
|
62
62
|
clickable: boolean;
|
|
@@ -2,6 +2,14 @@ interface Props {
|
|
|
2
2
|
modelValue?: boolean;
|
|
3
3
|
label?: string;
|
|
4
4
|
disabled?: boolean;
|
|
5
|
+
id?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
ariaLabelledby?: string;
|
|
10
|
+
ariaDescribedby?: string;
|
|
11
|
+
ariaInvalid?: boolean | 'true' | 'false';
|
|
12
|
+
ariaRequired?: boolean | 'true' | 'false';
|
|
5
13
|
}
|
|
6
14
|
declare function __VLS_template(): {
|
|
7
15
|
attrs: Partial<{}>;
|
|
@@ -21,7 +29,15 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
21
29
|
}>, {
|
|
22
30
|
label: string;
|
|
23
31
|
disabled: boolean;
|
|
32
|
+
name: string;
|
|
33
|
+
required: boolean;
|
|
34
|
+
id: string;
|
|
35
|
+
ariaLabel: string;
|
|
24
36
|
modelValue: boolean;
|
|
37
|
+
ariaLabelledby: string;
|
|
38
|
+
ariaDescribedby: string;
|
|
39
|
+
ariaInvalid: boolean | "true" | "false";
|
|
40
|
+
ariaRequired: boolean | "true" | "false";
|
|
25
41
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
|
|
26
42
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
43
|
export default _default;
|
|
@@ -27,8 +27,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
27
27
|
}>, {
|
|
28
28
|
disabled: boolean;
|
|
29
29
|
orientation: TabsOrientation;
|
|
30
|
-
modelValue: TabValue;
|
|
31
30
|
ariaLabel: string;
|
|
31
|
+
modelValue: TabValue;
|
|
32
32
|
ariaLabelledby: string;
|
|
33
33
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
34
34
|
list: HTMLDivElement;
|
|
@@ -31,8 +31,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
31
31
|
change: (...args: any[]) => void;
|
|
32
32
|
focus: (...args: any[]) => void;
|
|
33
33
|
"update:modelValue": (...args: any[]) => void;
|
|
34
|
-
reject: (...args: any[]) => void;
|
|
35
34
|
add: (...args: any[]) => void;
|
|
35
|
+
reject: (...args: any[]) => void;
|
|
36
36
|
remove: (...args: any[]) => void;
|
|
37
37
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
38
38
|
onSearch?: ((...args: any[]) => any) | undefined;
|
|
@@ -40,16 +40,16 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
40
40
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
41
41
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
42
42
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
|
-
onReject?: ((...args: any[]) => any) | undefined;
|
|
44
43
|
onAdd?: ((...args: any[]) => any) | undefined;
|
|
44
|
+
onReject?: ((...args: any[]) => any) | undefined;
|
|
45
45
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
46
46
|
}>, {
|
|
47
47
|
filter: boolean;
|
|
48
48
|
disabled: boolean;
|
|
49
49
|
size: Size;
|
|
50
|
+
modelValue: Array<OptionValue>;
|
|
50
51
|
loading: boolean;
|
|
51
52
|
variant: Variant;
|
|
52
|
-
modelValue: Array<OptionValue>;
|
|
53
53
|
placeholder: string;
|
|
54
54
|
readonly: boolean;
|
|
55
55
|
clearable: boolean;
|
|
@@ -38,13 +38,13 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
38
38
|
size: Size;
|
|
39
39
|
required: boolean;
|
|
40
40
|
id: string;
|
|
41
|
-
|
|
41
|
+
ariaLabel: string;
|
|
42
42
|
modelValue: string;
|
|
43
|
+
variant: Variant;
|
|
43
44
|
placeholder: string;
|
|
44
45
|
readonly: boolean;
|
|
45
46
|
autocomplete: string;
|
|
46
47
|
inputmode: InputMode;
|
|
47
|
-
ariaLabel: string;
|
|
48
48
|
ariaLabelledby: string;
|
|
49
49
|
ariaDescribedby: string;
|
|
50
50
|
ariaInvalid: boolean | "true" | "false";
|
|
@@ -28,11 +28,11 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
28
28
|
}>, {
|
|
29
29
|
disabled: boolean;
|
|
30
30
|
size: Size;
|
|
31
|
-
|
|
31
|
+
ariaLabel: string;
|
|
32
32
|
modelValue: string;
|
|
33
|
+
variant: Variant;
|
|
33
34
|
placeholder: string;
|
|
34
35
|
readonly: boolean;
|
|
35
|
-
ariaLabel: string;
|
|
36
36
|
format: TimeFormat;
|
|
37
37
|
min: string;
|
|
38
38
|
max: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type ToastPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
2
2
|
interface Props {
|
|
3
3
|
position?: ToastPosition;
|
|
4
|
+
ariaLabel?: string;
|
|
4
5
|
}
|
|
5
6
|
declare function __VLS_template(): {
|
|
6
7
|
attrs: Partial<{}>;
|
|
@@ -12,6 +13,7 @@ declare function __VLS_template(): {
|
|
|
12
13
|
};
|
|
13
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
15
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
16
|
+
ariaLabel: string;
|
|
15
17
|
position: ToastPosition;
|
|
16
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
19
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -27,8 +27,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
27
27
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
29
|
title: string;
|
|
30
|
-
severity: ToastSeverity;
|
|
31
30
|
modelValue: boolean;
|
|
31
|
+
severity: ToastSeverity;
|
|
32
32
|
message: string;
|
|
33
33
|
closable: boolean;
|
|
34
34
|
duration: number;
|
|
@@ -71,14 +71,14 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
71
71
|
onSkip?: ((...args: any[]) => any) | undefined;
|
|
72
72
|
}>, {
|
|
73
73
|
mask: boolean;
|
|
74
|
-
modelValue: boolean;
|
|
75
74
|
ariaLabel: string;
|
|
75
|
+
modelValue: boolean;
|
|
76
|
+
closeOnOverlay: boolean;
|
|
76
77
|
placement: Placement;
|
|
77
78
|
prevLabel: string;
|
|
78
79
|
nextLabel: string;
|
|
79
80
|
offset: number;
|
|
80
81
|
closeOnEsc: boolean;
|
|
81
|
-
closeOnOverlay: boolean;
|
|
82
82
|
steps: Array<TourStep>;
|
|
83
83
|
startIndex: number;
|
|
84
84
|
showSkip: boolean;
|
|
@@ -64,19 +64,19 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
64
64
|
disabled: boolean;
|
|
65
65
|
size: Size;
|
|
66
66
|
items: Array<TreeItem>;
|
|
67
|
+
modelValue: TreeValue | TreeValue[];
|
|
68
|
+
expandedKeys: Array<TreeValue>;
|
|
69
|
+
multiple: boolean;
|
|
67
70
|
loading: boolean;
|
|
68
71
|
variant: Variant;
|
|
69
|
-
modelValue: TreeValue | TreeValue[];
|
|
70
72
|
placeholder: string;
|
|
71
73
|
readonly: boolean;
|
|
72
74
|
clearable: boolean;
|
|
73
75
|
loadingText: string;
|
|
74
76
|
emptyText: string;
|
|
75
|
-
multiple: boolean;
|
|
76
77
|
searchPlaceholder: string;
|
|
77
78
|
expandOnClick: boolean;
|
|
78
79
|
selectable: boolean;
|
|
79
|
-
expandedKeys: Array<TreeValue>;
|
|
80
80
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
81
81
|
root: HTMLDivElement;
|
|
82
82
|
trigger: HTMLButtonElement;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
type Align = 'left' | 'center' | 'right';
|
|
2
|
+
type Size = 'small' | 'normal' | 'large';
|
|
3
|
+
type Variant = 'filled' | 'outlined';
|
|
4
|
+
export type TreeTableValue = string | number;
|
|
5
|
+
type ModelValue = TreeTableValue | Array<TreeTableValue> | undefined;
|
|
6
|
+
export interface TreeTableColumn {
|
|
7
|
+
field: string;
|
|
8
|
+
header?: string;
|
|
9
|
+
width?: string;
|
|
10
|
+
align?: Align;
|
|
11
|
+
formatter?: (node: TreeTableNode, value: unknown, column: TreeTableColumn) => string | number;
|
|
12
|
+
}
|
|
13
|
+
export interface TreeTableNode {
|
|
14
|
+
key: TreeTableValue;
|
|
15
|
+
label?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
data?: Record<string, unknown>;
|
|
18
|
+
children?: Array<TreeTableNode>;
|
|
19
|
+
}
|
|
20
|
+
interface Props {
|
|
21
|
+
items?: Array<TreeTableNode>;
|
|
22
|
+
columns?: Array<TreeTableColumn>;
|
|
23
|
+
modelValue?: ModelValue;
|
|
24
|
+
expandedKeys?: Array<TreeTableValue>;
|
|
25
|
+
multiple?: boolean;
|
|
26
|
+
selectable?: boolean;
|
|
27
|
+
expandOnClick?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
striped?: boolean;
|
|
30
|
+
hover?: boolean;
|
|
31
|
+
size?: Size;
|
|
32
|
+
variant?: Variant;
|
|
33
|
+
ariaLabel?: string;
|
|
34
|
+
emptyText?: string;
|
|
35
|
+
expandLabel?: string;
|
|
36
|
+
collapseLabel?: string;
|
|
37
|
+
}
|
|
38
|
+
declare function __VLS_template(): {
|
|
39
|
+
attrs: Partial<{}>;
|
|
40
|
+
slots: Partial<Record<`header-${string}`, (_: {
|
|
41
|
+
column: TreeTableColumn;
|
|
42
|
+
}) => any>> & Partial<Record<`cell-${string}`, (_: {
|
|
43
|
+
node: TreeTableNode;
|
|
44
|
+
column: TreeTableColumn;
|
|
45
|
+
value: unknown;
|
|
46
|
+
level: number;
|
|
47
|
+
expanded: boolean;
|
|
48
|
+
selected: boolean;
|
|
49
|
+
}) => any>> & Partial<Record<`cell-${string}`, (_: {
|
|
50
|
+
node: TreeTableNode;
|
|
51
|
+
column: TreeTableColumn;
|
|
52
|
+
value: unknown;
|
|
53
|
+
level: number;
|
|
54
|
+
expanded: boolean;
|
|
55
|
+
selected: boolean;
|
|
56
|
+
}) => any>> & {
|
|
57
|
+
empty?(_: {}): any;
|
|
58
|
+
};
|
|
59
|
+
refs: {};
|
|
60
|
+
rootEl: HTMLDivElement;
|
|
61
|
+
};
|
|
62
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
63
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
64
|
+
change: (...args: any[]) => void;
|
|
65
|
+
toggle: (...args: any[]) => void;
|
|
66
|
+
"update:modelValue": (...args: any[]) => void;
|
|
67
|
+
"update:expandedKeys": (...args: any[]) => void;
|
|
68
|
+
rowClick: (...args: any[]) => void;
|
|
69
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
70
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
onToggle?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
"onUpdate:expandedKeys"?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
onRowClick?: ((...args: any[]) => any) | undefined;
|
|
75
|
+
}>, {
|
|
76
|
+
disabled: boolean;
|
|
77
|
+
size: Size;
|
|
78
|
+
columns: Array<TreeTableColumn>;
|
|
79
|
+
items: Array<TreeTableNode>;
|
|
80
|
+
ariaLabel: string;
|
|
81
|
+
modelValue: TreeTableValue | TreeTableValue[];
|
|
82
|
+
expandedKeys: Array<TreeTableValue>;
|
|
83
|
+
multiple: boolean;
|
|
84
|
+
variant: Variant;
|
|
85
|
+
emptyText: string;
|
|
86
|
+
striped: boolean;
|
|
87
|
+
hover: boolean;
|
|
88
|
+
expandOnClick: boolean;
|
|
89
|
+
selectable: boolean;
|
|
90
|
+
expandLabel: string;
|
|
91
|
+
collapseLabel: string;
|
|
92
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
93
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
94
|
+
export default _default;
|
|
95
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
96
|
+
new (): {
|
|
97
|
+
$slots: S;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
@@ -53,14 +53,14 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
53
53
|
disabled: boolean;
|
|
54
54
|
size: "small" | "normal" | "large";
|
|
55
55
|
items: Array<TreeItem>;
|
|
56
|
-
variant: "filled" | "outlined";
|
|
57
|
-
modelValue: TreeValue | TreeValue[];
|
|
58
56
|
ariaLabel: string;
|
|
59
|
-
|
|
57
|
+
modelValue: TreeValue | TreeValue[];
|
|
58
|
+
expandedKeys: Array<TreeValue>;
|
|
60
59
|
multiple: boolean;
|
|
60
|
+
variant: "filled" | "outlined";
|
|
61
|
+
ariaLabelledby: string;
|
|
61
62
|
expandOnClick: boolean;
|
|
62
63
|
selectable: boolean;
|
|
63
|
-
expandedKeys: Array<TreeValue>;
|
|
64
64
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
65
65
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
66
66
|
export default _default;
|
|
@@ -38,8 +38,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
38
38
|
}>, {
|
|
39
39
|
items: Array<unknown>;
|
|
40
40
|
ariaLabel: string;
|
|
41
|
-
emptyText: string;
|
|
42
41
|
height: string;
|
|
42
|
+
emptyText: string;
|
|
43
43
|
itemHeight: number;
|
|
44
44
|
overscan: number;
|
|
45
45
|
keyField: string;
|
|
@@ -59,8 +59,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
59
59
|
onInvalidStep?: ((...args: any[]) => any) | undefined;
|
|
60
60
|
}>, {
|
|
61
61
|
disabled: boolean;
|
|
62
|
-
modelValue: WizardValue;
|
|
63
62
|
ariaLabel: string;
|
|
63
|
+
modelValue: WizardValue;
|
|
64
64
|
ariaLabelledby: string;
|
|
65
65
|
prevLabel: string;
|
|
66
66
|
nextLabel: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,17 +2,23 @@ import { App } from 'vue';
|
|
|
2
2
|
import { ThemeOptions, ThemePreset } from './theme-core';
|
|
3
3
|
import { getTheme, setTheme, updateTheme } from './theme-runtime';
|
|
4
4
|
import { DateTimeLocaleOptions, getDateTimeLocale, setDateTimeLocale, updateDateTimeLocale } from './date-time-locale';
|
|
5
|
+
import { getLocaleText, LocaleTextOptions, setLocaleText, updateLocaleText } from './locale-text';
|
|
5
6
|
import { applyUiPreferences, DensityPreset, getDensityPreset, getReducedMotion, getUiPreferences, setDensityPreset, setReducedMotion } from './ui-preferences';
|
|
7
|
+
import { resolvePassThrough, withPartClass } from './pass-through';
|
|
6
8
|
type VueForgeOptions = {
|
|
7
9
|
theme?: ThemeOptions | ThemePreset;
|
|
8
10
|
dateTimeLocale?: DateTimeLocaleOptions;
|
|
11
|
+
localeText?: LocaleTextOptions;
|
|
9
12
|
density?: DensityPreset;
|
|
10
13
|
reducedMotion?: boolean;
|
|
11
14
|
};
|
|
12
|
-
export { setTheme, updateTheme, getTheme, setDateTimeLocale, updateDateTimeLocale, getDateTimeLocale };
|
|
15
|
+
export { setTheme, updateTheme, getTheme, setDateTimeLocale, updateDateTimeLocale, getDateTimeLocale, setLocaleText, updateLocaleText, getLocaleText, };
|
|
13
16
|
export type { DateTimeLocaleOptions };
|
|
17
|
+
export type { LocaleTextOptions };
|
|
14
18
|
export { setDensityPreset, getDensityPreset, setReducedMotion, getReducedMotion, getUiPreferences, applyUiPreferences };
|
|
15
19
|
export type { DensityPreset };
|
|
20
|
+
export { resolvePassThrough, withPartClass };
|
|
21
|
+
export type { PassThroughAttrs, PassThroughEntry, PassThroughOptions, PassThroughResolverContext, } from './pass-through';
|
|
16
22
|
declare const _default: {
|
|
17
23
|
install(_app: App, options?: VueForgeOptions): void;
|
|
18
24
|
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
export type LocaleTextSchema = {
|
|
2
|
+
common: {
|
|
3
|
+
loadingText: string;
|
|
4
|
+
emptyText: string;
|
|
5
|
+
};
|
|
6
|
+
dataTable: {
|
|
7
|
+
loadingText: string;
|
|
8
|
+
emptyText: string;
|
|
9
|
+
selectedSuffix: string;
|
|
10
|
+
clearSelectionLabel: string;
|
|
11
|
+
selectAllAriaLabel: string;
|
|
12
|
+
selectRowAriaLabel: string;
|
|
13
|
+
};
|
|
14
|
+
autocomplete: {
|
|
15
|
+
loadingText: string;
|
|
16
|
+
emptyText: string;
|
|
17
|
+
};
|
|
18
|
+
combobox: {
|
|
19
|
+
loadingText: string;
|
|
20
|
+
emptyText: string;
|
|
21
|
+
clearValueAriaLabel: string;
|
|
22
|
+
};
|
|
23
|
+
multiSelect: {
|
|
24
|
+
loadingText: string;
|
|
25
|
+
emptyText: string;
|
|
26
|
+
searchPlaceholder: string;
|
|
27
|
+
clearSelectionAriaLabel: string;
|
|
28
|
+
removeItemAriaLabel: string;
|
|
29
|
+
};
|
|
30
|
+
tagInput: {
|
|
31
|
+
loadingText: string;
|
|
32
|
+
emptyText: string;
|
|
33
|
+
clearTagsAriaLabel: string;
|
|
34
|
+
removeTagAriaLabelPrefix: string;
|
|
35
|
+
};
|
|
36
|
+
treeSelect: {
|
|
37
|
+
loadingText: string;
|
|
38
|
+
emptyText: string;
|
|
39
|
+
searchPlaceholder: string;
|
|
40
|
+
clearSelectionAriaLabel: string;
|
|
41
|
+
};
|
|
42
|
+
mentionInput: {
|
|
43
|
+
loadingText: string;
|
|
44
|
+
emptyText: string;
|
|
45
|
+
};
|
|
46
|
+
commandPalette: {
|
|
47
|
+
placeholder: string;
|
|
48
|
+
emptyText: string;
|
|
49
|
+
ariaLabel: string;
|
|
50
|
+
};
|
|
51
|
+
notificationCenter: {
|
|
52
|
+
title: string;
|
|
53
|
+
emptyText: string;
|
|
54
|
+
markAllLabel: string;
|
|
55
|
+
clearLabel: string;
|
|
56
|
+
closeLabel: string;
|
|
57
|
+
readLabel: string;
|
|
58
|
+
unreadLabel: string;
|
|
59
|
+
};
|
|
60
|
+
virtualScroller: {
|
|
61
|
+
ariaLabel: string;
|
|
62
|
+
emptyText: string;
|
|
63
|
+
};
|
|
64
|
+
filterChips: {
|
|
65
|
+
clearText: string;
|
|
66
|
+
clearLabel: string;
|
|
67
|
+
};
|
|
68
|
+
chip: {
|
|
69
|
+
closeLabel: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
type Primitive = string | number | boolean | null | undefined;
|
|
73
|
+
type DeepPartial<T> = {
|
|
74
|
+
[K in keyof T]?: T[K] extends Primitive ? T[K] : DeepPartial<T[K]>;
|
|
75
|
+
};
|
|
76
|
+
export type LocaleTextOptions = DeepPartial<LocaleTextSchema>;
|
|
77
|
+
export declare const setLocaleText: (options?: LocaleTextOptions) => void;
|
|
78
|
+
export declare const updateLocaleText: (partial?: LocaleTextOptions) => void;
|
|
79
|
+
export declare const getLocaleText: () => LocaleTextSchema;
|
|
80
|
+
export declare const useLocaleText: () => {
|
|
81
|
+
readonly common: {
|
|
82
|
+
readonly loadingText: string;
|
|
83
|
+
readonly emptyText: string;
|
|
84
|
+
};
|
|
85
|
+
readonly dataTable: {
|
|
86
|
+
readonly loadingText: string;
|
|
87
|
+
readonly emptyText: string;
|
|
88
|
+
readonly selectedSuffix: string;
|
|
89
|
+
readonly clearSelectionLabel: string;
|
|
90
|
+
readonly selectAllAriaLabel: string;
|
|
91
|
+
readonly selectRowAriaLabel: string;
|
|
92
|
+
};
|
|
93
|
+
readonly autocomplete: {
|
|
94
|
+
readonly loadingText: string;
|
|
95
|
+
readonly emptyText: string;
|
|
96
|
+
};
|
|
97
|
+
readonly combobox: {
|
|
98
|
+
readonly loadingText: string;
|
|
99
|
+
readonly emptyText: string;
|
|
100
|
+
readonly clearValueAriaLabel: string;
|
|
101
|
+
};
|
|
102
|
+
readonly multiSelect: {
|
|
103
|
+
readonly loadingText: string;
|
|
104
|
+
readonly emptyText: string;
|
|
105
|
+
readonly searchPlaceholder: string;
|
|
106
|
+
readonly clearSelectionAriaLabel: string;
|
|
107
|
+
readonly removeItemAriaLabel: string;
|
|
108
|
+
};
|
|
109
|
+
readonly tagInput: {
|
|
110
|
+
readonly loadingText: string;
|
|
111
|
+
readonly emptyText: string;
|
|
112
|
+
readonly clearTagsAriaLabel: string;
|
|
113
|
+
readonly removeTagAriaLabelPrefix: string;
|
|
114
|
+
};
|
|
115
|
+
readonly treeSelect: {
|
|
116
|
+
readonly loadingText: string;
|
|
117
|
+
readonly emptyText: string;
|
|
118
|
+
readonly searchPlaceholder: string;
|
|
119
|
+
readonly clearSelectionAriaLabel: string;
|
|
120
|
+
};
|
|
121
|
+
readonly mentionInput: {
|
|
122
|
+
readonly loadingText: string;
|
|
123
|
+
readonly emptyText: string;
|
|
124
|
+
};
|
|
125
|
+
readonly commandPalette: {
|
|
126
|
+
readonly placeholder: string;
|
|
127
|
+
readonly emptyText: string;
|
|
128
|
+
readonly ariaLabel: string;
|
|
129
|
+
};
|
|
130
|
+
readonly notificationCenter: {
|
|
131
|
+
readonly title: string;
|
|
132
|
+
readonly emptyText: string;
|
|
133
|
+
readonly markAllLabel: string;
|
|
134
|
+
readonly clearLabel: string;
|
|
135
|
+
readonly closeLabel: string;
|
|
136
|
+
readonly readLabel: string;
|
|
137
|
+
readonly unreadLabel: string;
|
|
138
|
+
};
|
|
139
|
+
readonly virtualScroller: {
|
|
140
|
+
readonly ariaLabel: string;
|
|
141
|
+
readonly emptyText: string;
|
|
142
|
+
};
|
|
143
|
+
readonly filterChips: {
|
|
144
|
+
readonly clearText: string;
|
|
145
|
+
readonly clearLabel: string;
|
|
146
|
+
};
|
|
147
|
+
readonly chip: {
|
|
148
|
+
readonly closeLabel: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type PassThroughAttrs = Record<string, unknown>;
|
|
2
|
+
export type PassThroughResolverContext = Record<string, unknown>;
|
|
3
|
+
export type PassThroughEntry<Context extends PassThroughResolverContext = PassThroughResolverContext> = PassThroughAttrs | ((context: Context) => PassThroughAttrs | undefined | null);
|
|
4
|
+
export type PassThroughOptions<Context extends PassThroughResolverContext = PassThroughResolverContext> = Record<string, PassThroughEntry<Context> | undefined>;
|
|
5
|
+
export declare const resolvePassThrough: <Context extends PassThroughResolverContext>(options: PassThroughOptions<Context> | undefined, part: string, context: Context) => PassThroughAttrs;
|
|
6
|
+
export declare const withPartClass: (attrs: PassThroughAttrs, baseClass: string | null, unstyled: boolean) => PassThroughAttrs;
|