@rotki/ui-library 0.14.0 → 0.16.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/dist/RuiColorPicker.vue_vue_type_script_setup_true_lang-ByCIjyQ_.js +8945 -0
- package/dist/breakpoint-DAvEs_TA.js +37 -0
- package/dist/components/alerts/{Alert.vue.d.ts → RuiAlert.vue.d.ts} +10 -10
- package/dist/components/buttons/button/{Button.vue.d.ts → RuiButton.vue.d.ts} +5 -5
- package/dist/components/buttons/button-group/{ButtonGroup.vue.d.ts → RuiButtonGroup.vue.d.ts} +4 -4
- package/dist/components/cards/{Card.vue.d.ts → RuiCard.vue.d.ts} +12 -12
- package/dist/components/chips/{Chip.vue.d.ts → RuiChip.vue.d.ts} +19 -19
- package/dist/components/color-picker/RuiColorBoard.vue.d.ts +23 -0
- package/dist/components/color-picker/RuiColorDisplay.vue.d.ts +12 -0
- package/dist/components/color-picker/RuiColorHue.vue.d.ts +12 -0
- package/dist/components/color-picker/RuiColorInput.vue.d.ts +13 -0
- package/dist/components/color-picker/RuiColorPicker.vue.d.ts +21 -0
- package/dist/components/color-picker/utils.d.ts +44 -0
- package/dist/components/forms/auto-complete/{AutoComplete.vue.d.ts → RuiAutoComplete.vue.d.ts} +1 -1
- package/dist/components/forms/auto-complete/{AutoCompleteSelection.vue.d.ts → RuiAutoCompleteSelection.vue.d.ts} +2 -2
- package/dist/components/forms/radio-button/radio-group/{RadioGroup.vue.d.ts → RuiRadioGroup.vue.d.ts} +10 -10
- package/dist/components/forms/revealable-text-field/{RevealableTextField.vue.d.ts → RuiRevealableTextField.vue.d.ts} +37 -37
- package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +153 -0
- package/dist/components/forms/slider/{Slider.vue.d.ts → RuiSlider.vue.d.ts} +19 -19
- package/dist/components/forms/text-area/{TextArea.vue.d.ts → RuiTextArea.vue.d.ts} +37 -37
- package/dist/components/forms/text-field/{TextField.vue.d.ts → RuiTextField.vue.d.ts} +38 -38
- package/dist/components/icons/{Icon.vue.d.ts → RuiIcon.vue.d.ts} +9 -9
- package/dist/components/index.d.ts +41 -39
- package/dist/components/index.es.js +36 -34
- package/dist/components/loaders/{SkeletonBase.vue.d.ts → RuiSkeletonBase.vue.d.ts} +3 -3
- package/dist/components/loaders/{Skeleton.vue.d.ts → RuiSkeletonLoader.vue.d.ts} +7 -7
- package/dist/components/logos/RuiLogo.vue.d.ts +65 -0
- package/dist/components/overlays/badge/{Badge.vue.d.ts → RuiBadge.vue.d.ts} +19 -19
- package/dist/components/overlays/bottom-sheet/RuiBottomSheet.vue.d.ts +46 -0
- package/dist/components/overlays/dialog/RuiDialog.vue.d.ts +87 -0
- package/dist/components/overlays/menu/{Menu.vue.d.ts → RuiMenu.vue.d.ts} +90 -7
- package/dist/components/steppers/{FooterStepper.vue.d.ts → RuiFooterStepper.vue.d.ts} +19 -9
- package/dist/components/tables/{DataTable.vue.d.ts → RuiDataTable.vue.d.ts} +13 -9
- package/dist/components/tables/{ExpandButton.vue.d.ts → RuiExpandButton.vue.d.ts} +1 -1
- package/dist/components/tables/{TableHead.vue.d.ts → RuiTableHead.vue.d.ts} +16 -4
- package/dist/composables/dropdown-menu.d.ts +40 -0
- package/dist/composables/index.es.js +5 -81
- package/dist/consts/forms/auto-complete/index.d.ts +3 -3
- package/dist/consts/typography.d.ts +1 -2
- package/dist/index-RsNqSz2V.js +177 -0
- package/dist/index.es.js +2787 -2785
- package/dist/style.css +1 -1
- package/dist/theme/index.es.js +1 -1
- package/dist/utils/assert.d.ts +1 -0
- package/dist/utils/helpers.d.ts +7 -0
- package/package.json +45 -49
- package/dist/components/forms/select/MenuSelect.vue.d.ts +0 -62
- package/dist/components/logos/Logo.vue.d.ts +0 -27
- package/dist/components/overlays/dialog/Dialog.vue.d.ts +0 -60
- package/dist/index-4pX97qAk.js +0 -8090
- package/dist/theme-DT8UjYf9.js +0 -124
- package/dist/{colors-ikihApJv.js → colors-D563Ic3q.js} +0 -0
- package/dist/components/accordions/accordion/{Accordion.vue.d.ts → RuiAccordion.vue.d.ts} +0 -0
- package/dist/components/accordions/accordions/{Accordions.vue.d.ts → RuiAccordions.vue.d.ts} +0 -0
- package/dist/components/cards/{CardHeader.vue.d.ts → RuiCardHeader.vue.d.ts} +0 -0
- package/dist/components/divider/{Divider.vue.d.ts → RuiDivider.vue.d.ts} +0 -0
- package/dist/components/forms/checkbox/{Checkbox.vue.d.ts → RuiCheckbox.vue.d.ts} +18 -18
- package/dist/components/forms/radio-button/radio/{Radio.vue.d.ts → RuiRadio.vue.d.ts} +17 -17
- package/dist/components/forms/select/{SimpleSelect.vue.d.ts → RuiSimpleSelect.vue.d.ts} +8 -8
- package/dist/components/forms/switch/{Switch.vue.d.ts → RuiSwitch.vue.d.ts} +9 -9
- package/dist/components/helpers/{FormTextDetail.vue.d.ts → RuiFormTextDetail.vue.d.ts} +0 -0
- package/dist/components/overlays/tooltip/{Tooltip.vue.d.ts → RuiTooltip.vue.d.ts} +0 -0
- package/dist/components/progress/{Progress.vue.d.ts → RuiProgress.vue.d.ts} +9 -9
- package/dist/components/steppers/{Stepper.vue.d.ts → RuiStepper.vue.d.ts} +9 -9
- package/dist/components/steppers/{StepperCustomIcon.vue.d.ts → RuiStepperCustomIcon.vue.d.ts} +0 -0
- package/dist/components/steppers/{StepperIcon.vue.d.ts → RuiStepperIcon.vue.d.ts} +0 -0
- package/dist/components/tables/{TablePagination.vue.d.ts → RuiTablePagination.vue.d.ts} +8 -8
- package/dist/components/tabs/tab/{Tab.vue.d.ts → RuiTab.vue.d.ts} +18 -18
- package/dist/components/tabs/tab-item/{TabItem.vue.d.ts → RuiTabItem.vue.d.ts} +8 -8
- package/dist/components/tabs/tab-items/{TabItems.vue.d.ts → RuiTabItems.vue.d.ts} +0 -0
- package/dist/components/tabs/tabs/{Tabs.vue.d.ts → RuiTabs.vue.d.ts} +16 -16
|
@@ -1,24 +1,35 @@
|
|
|
1
1
|
import { type PopperOptions } from '../../../composables/popper';
|
|
2
|
-
export interface
|
|
2
|
+
export interface MenuProps {
|
|
3
3
|
modelValue?: boolean;
|
|
4
4
|
openOnHover?: boolean;
|
|
5
|
+
fullWidth?: boolean;
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
openDelay?: number;
|
|
7
8
|
closeDelay?: number;
|
|
8
9
|
popper?: PopperOptions;
|
|
10
|
+
wrapperClass?: string;
|
|
9
11
|
menuClass?: string;
|
|
10
12
|
closeOnContentClick?: boolean;
|
|
13
|
+
hint?: string;
|
|
14
|
+
errorMessages?: string | string[];
|
|
15
|
+
successMessages?: string | string[];
|
|
16
|
+
showDetails?: boolean;
|
|
17
|
+
dense?: boolean;
|
|
18
|
+
persistent?: boolean;
|
|
11
19
|
}
|
|
12
20
|
declare function checkClick(): void;
|
|
13
21
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
14
|
-
|
|
22
|
+
modelValue: {
|
|
15
23
|
type: globalThis.PropType<boolean>;
|
|
16
24
|
default: boolean;
|
|
17
25
|
};
|
|
18
|
-
|
|
26
|
+
disabled: {
|
|
19
27
|
type: globalThis.PropType<boolean>;
|
|
20
28
|
default: boolean;
|
|
21
29
|
};
|
|
30
|
+
dense: {
|
|
31
|
+
type: globalThis.PropType<boolean>;
|
|
32
|
+
};
|
|
22
33
|
openDelay: {
|
|
23
34
|
type: globalThis.PropType<number>;
|
|
24
35
|
default: number;
|
|
@@ -31,10 +42,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
31
42
|
type: globalThis.PropType<PopperOptions>;
|
|
32
43
|
default: () => {};
|
|
33
44
|
};
|
|
45
|
+
errorMessages: {
|
|
46
|
+
type: globalThis.PropType<string | string[]>;
|
|
47
|
+
default: () => never[];
|
|
48
|
+
};
|
|
49
|
+
successMessages: {
|
|
50
|
+
type: globalThis.PropType<string | string[]>;
|
|
51
|
+
default: () => never[];
|
|
52
|
+
};
|
|
53
|
+
hint: {
|
|
54
|
+
type: globalThis.PropType<string>;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
34
57
|
openOnHover: {
|
|
35
58
|
type: globalThis.PropType<boolean>;
|
|
36
59
|
default: boolean;
|
|
37
60
|
};
|
|
61
|
+
fullWidth: {
|
|
62
|
+
type: globalThis.PropType<boolean>;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
wrapperClass: {
|
|
66
|
+
type: globalThis.PropType<string>;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
38
69
|
menuClass: {
|
|
39
70
|
type: globalThis.PropType<string>;
|
|
40
71
|
default: string;
|
|
@@ -43,17 +74,27 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
43
74
|
type: globalThis.PropType<boolean>;
|
|
44
75
|
default: boolean;
|
|
45
76
|
};
|
|
77
|
+
showDetails: {
|
|
78
|
+
type: globalThis.PropType<boolean>;
|
|
79
|
+
};
|
|
80
|
+
persistent: {
|
|
81
|
+
type: globalThis.PropType<boolean>;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
46
84
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
85
|
"update:model-value": (value: boolean) => void;
|
|
48
86
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
49
|
-
|
|
87
|
+
modelValue: {
|
|
50
88
|
type: globalThis.PropType<boolean>;
|
|
51
89
|
default: boolean;
|
|
52
90
|
};
|
|
53
|
-
|
|
91
|
+
disabled: {
|
|
54
92
|
type: globalThis.PropType<boolean>;
|
|
55
93
|
default: boolean;
|
|
56
94
|
};
|
|
95
|
+
dense: {
|
|
96
|
+
type: globalThis.PropType<boolean>;
|
|
97
|
+
};
|
|
57
98
|
openDelay: {
|
|
58
99
|
type: globalThis.PropType<number>;
|
|
59
100
|
default: number;
|
|
@@ -66,10 +107,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
66
107
|
type: globalThis.PropType<PopperOptions>;
|
|
67
108
|
default: () => {};
|
|
68
109
|
};
|
|
110
|
+
errorMessages: {
|
|
111
|
+
type: globalThis.PropType<string | string[]>;
|
|
112
|
+
default: () => never[];
|
|
113
|
+
};
|
|
114
|
+
successMessages: {
|
|
115
|
+
type: globalThis.PropType<string | string[]>;
|
|
116
|
+
default: () => never[];
|
|
117
|
+
};
|
|
118
|
+
hint: {
|
|
119
|
+
type: globalThis.PropType<string>;
|
|
120
|
+
default: undefined;
|
|
121
|
+
};
|
|
69
122
|
openOnHover: {
|
|
70
123
|
type: globalThis.PropType<boolean>;
|
|
71
124
|
default: boolean;
|
|
72
125
|
};
|
|
126
|
+
fullWidth: {
|
|
127
|
+
type: globalThis.PropType<boolean>;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
wrapperClass: {
|
|
131
|
+
type: globalThis.PropType<string>;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
73
134
|
menuClass: {
|
|
74
135
|
type: globalThis.PropType<string>;
|
|
75
136
|
default: string;
|
|
@@ -78,27 +139,49 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
78
139
|
type: globalThis.PropType<boolean>;
|
|
79
140
|
default: boolean;
|
|
80
141
|
};
|
|
142
|
+
showDetails: {
|
|
143
|
+
type: globalThis.PropType<boolean>;
|
|
144
|
+
};
|
|
145
|
+
persistent: {
|
|
146
|
+
type: globalThis.PropType<boolean>;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
81
149
|
}>> & {
|
|
82
150
|
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
83
151
|
}, {
|
|
84
|
-
disabled: boolean;
|
|
85
152
|
modelValue: boolean;
|
|
153
|
+
disabled: boolean;
|
|
86
154
|
openDelay: number;
|
|
87
155
|
closeDelay: number;
|
|
88
156
|
popper: PopperOptions;
|
|
157
|
+
errorMessages: string | string[];
|
|
158
|
+
successMessages: string | string[];
|
|
159
|
+
hint: string;
|
|
89
160
|
openOnHover: boolean;
|
|
161
|
+
fullWidth: boolean;
|
|
162
|
+
wrapperClass: string;
|
|
90
163
|
menuClass: string;
|
|
91
164
|
closeOnContentClick: boolean;
|
|
165
|
+
persistent: boolean;
|
|
92
166
|
}, {}>, {
|
|
93
167
|
activator?(_: {
|
|
94
168
|
on: {
|
|
169
|
+
mouseover?: undefined;
|
|
170
|
+
mouseleave?: undefined;
|
|
171
|
+
click?: undefined;
|
|
172
|
+
} | {
|
|
95
173
|
mouseover: () => void;
|
|
96
174
|
mouseleave: () => void;
|
|
97
175
|
click: typeof checkClick;
|
|
98
176
|
};
|
|
99
177
|
open: boolean;
|
|
178
|
+
disabled: boolean;
|
|
179
|
+
hasError: boolean;
|
|
180
|
+
hasSuccess: boolean;
|
|
181
|
+
}): any;
|
|
182
|
+
default?(_: {
|
|
183
|
+
width: number;
|
|
100
184
|
}): any;
|
|
101
|
-
default?(_: {}): any;
|
|
102
185
|
}>;
|
|
103
186
|
export default _default;
|
|
104
187
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -3,16 +3,17 @@ export interface Props {
|
|
|
3
3
|
modelValue?: number;
|
|
4
4
|
variant?: 'numeric' | 'bullet' | 'progress' | 'pill';
|
|
5
5
|
arrowButtons?: boolean;
|
|
6
|
+
hideButtons?: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const _default: import("vue").DefineComponent<{
|
|
8
|
-
variant: {
|
|
9
|
-
type: globalThis.PropType<"progress" | "numeric" | "bullet" | "pill">;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
9
|
modelValue: {
|
|
13
10
|
type: globalThis.PropType<number>;
|
|
14
11
|
default: number;
|
|
15
12
|
};
|
|
13
|
+
variant: {
|
|
14
|
+
type: globalThis.PropType<"progress" | "numeric" | "bullet" | "pill">;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
16
17
|
pages: {
|
|
17
18
|
type: globalThis.PropType<number>;
|
|
18
19
|
required: true;
|
|
@@ -21,17 +22,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
22
|
type: globalThis.PropType<boolean>;
|
|
22
23
|
default: boolean;
|
|
23
24
|
};
|
|
25
|
+
hideButtons: {
|
|
26
|
+
type: globalThis.PropType<boolean>;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
24
29
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
30
|
"update:modelValue": (modelValue: number) => void;
|
|
26
31
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
27
|
-
variant: {
|
|
28
|
-
type: globalThis.PropType<"progress" | "numeric" | "bullet" | "pill">;
|
|
29
|
-
default: string;
|
|
30
|
-
};
|
|
31
32
|
modelValue: {
|
|
32
33
|
type: globalThis.PropType<number>;
|
|
33
34
|
default: number;
|
|
34
35
|
};
|
|
36
|
+
variant: {
|
|
37
|
+
type: globalThis.PropType<"progress" | "numeric" | "bullet" | "pill">;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
35
40
|
pages: {
|
|
36
41
|
type: globalThis.PropType<number>;
|
|
37
42
|
required: true;
|
|
@@ -40,11 +45,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
45
|
type: globalThis.PropType<boolean>;
|
|
41
46
|
default: boolean;
|
|
42
47
|
};
|
|
48
|
+
hideButtons: {
|
|
49
|
+
type: globalThis.PropType<boolean>;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
43
52
|
}>> & {
|
|
44
53
|
"onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
|
|
45
54
|
}, {
|
|
46
|
-
variant: "progress" | "numeric" | "bullet" | "pill";
|
|
47
55
|
modelValue: number;
|
|
56
|
+
variant: "progress" | "numeric" | "bullet" | "pill";
|
|
48
57
|
arrowButtons: boolean;
|
|
58
|
+
hideButtons: boolean;
|
|
49
59
|
}, {}>;
|
|
50
60
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type TablePaginationData } from '
|
|
2
|
-
import { type GroupData, type GroupKeys, type TableColumn, type TableRowKeyData, type TableSortData } from '
|
|
1
|
+
import { type TablePaginationData } from '../../components/tables/RuiTablePagination.vue';
|
|
2
|
+
import { type GroupData, type GroupKeys, type TableColumn, type TableRowKeyData, type TableSortData } from '../../components/tables/RuiTableHead.vue';
|
|
3
3
|
export interface TableOptions<T> {
|
|
4
4
|
pagination?: TablePaginationData;
|
|
5
5
|
sort?: TableSortData<T>;
|
|
@@ -130,8 +130,12 @@ export interface Props<T, K extends keyof T> {
|
|
|
130
130
|
* @example v-model:group="['name', 'country']"
|
|
131
131
|
*/
|
|
132
132
|
group?: TableRowKeyData<T>;
|
|
133
|
+
groupExpandButtonPosition?: 'start' | 'end';
|
|
133
134
|
collapsed?: T[];
|
|
134
135
|
disabledRows?: T[];
|
|
136
|
+
multiPageSelect?: boolean;
|
|
137
|
+
scroller?: HTMLElement | null;
|
|
138
|
+
itemClass?: ((item: T) => string) | string;
|
|
135
139
|
}
|
|
136
140
|
declare const _default: <T extends object, IdType extends keyof T = keyof T>(__VLS_props: Props<T, IdType> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: Pick<{
|
|
137
141
|
props: Props<T, IdType>;
|
|
@@ -169,16 +173,16 @@ declare const _default: <T extends object, IdType extends keyof T = keyof T>(__V
|
|
|
169
173
|
tfoot: () => any;
|
|
170
174
|
}>;
|
|
171
175
|
emit: {
|
|
172
|
-
(e: 'update:model-value', value?: T[IdType][]
|
|
176
|
+
(e: 'update:model-value', value?: T[IdType][]): void;
|
|
173
177
|
(e: 'update:expanded', value: T[]): void;
|
|
174
178
|
(e: 'update:pagination', value: TablePaginationData): void;
|
|
175
179
|
(e: 'update:sort', value?: TableSortData<T>): void;
|
|
176
180
|
(e: 'update:options', value: TableOptions<T>): void;
|
|
177
181
|
(e: 'update:group', value?: GroupKeys<T>): void;
|
|
178
|
-
(e: 'update:collapsed', value?: T[]
|
|
182
|
+
(e: 'update:collapsed', value?: T[]): void;
|
|
179
183
|
(e: 'copy:group', value: GroupData<T>): void;
|
|
180
184
|
};
|
|
181
|
-
}, "
|
|
185
|
+
}, "slots" | "attrs" | "emit"> | undefined, __VLS_expose?: ((exposed: {}) => void) | undefined, __VLS_setup?: Promise<{
|
|
182
186
|
props: Props<T, IdType>;
|
|
183
187
|
expose(exposed: {}): void;
|
|
184
188
|
attrs: any;
|
|
@@ -214,13 +218,13 @@ declare const _default: <T extends object, IdType extends keyof T = keyof T>(__V
|
|
|
214
218
|
tfoot: () => any;
|
|
215
219
|
}>;
|
|
216
220
|
emit: {
|
|
217
|
-
(e: 'update:model-value', value?: T[IdType][]
|
|
221
|
+
(e: 'update:model-value', value?: T[IdType][]): void;
|
|
218
222
|
(e: 'update:expanded', value: T[]): void;
|
|
219
223
|
(e: 'update:pagination', value: TablePaginationData): void;
|
|
220
224
|
(e: 'update:sort', value?: TableSortData<T>): void;
|
|
221
225
|
(e: 'update:options', value: TableOptions<T>): void;
|
|
222
226
|
(e: 'update:group', value?: GroupKeys<T>): void;
|
|
223
|
-
(e: 'update:collapsed', value?: T[]
|
|
227
|
+
(e: 'update:collapsed', value?: T[]): void;
|
|
224
228
|
(e: 'copy:group', value: GroupData<T>): void;
|
|
225
229
|
};
|
|
226
230
|
}>) => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -262,13 +266,13 @@ declare const _default: <T extends object, IdType extends keyof T = keyof T>(__V
|
|
|
262
266
|
tfoot: () => any;
|
|
263
267
|
}>;
|
|
264
268
|
emit: {
|
|
265
|
-
(e: 'update:model-value', value?: T[IdType][]
|
|
269
|
+
(e: 'update:model-value', value?: T[IdType][]): void;
|
|
266
270
|
(e: 'update:expanded', value: T[]): void;
|
|
267
271
|
(e: 'update:pagination', value: TablePaginationData): void;
|
|
268
272
|
(e: 'update:sort', value?: TableSortData<T>): void;
|
|
269
273
|
(e: 'update:options', value: TableOptions<T>): void;
|
|
270
274
|
(e: 'update:group', value?: GroupKeys<T>): void;
|
|
271
|
-
(e: 'update:collapsed', value?: T[]
|
|
275
|
+
(e: 'update:collapsed', value?: T[]): void;
|
|
272
276
|
(e: 'copy:group', value: GroupData<T>): void;
|
|
273
277
|
};
|
|
274
278
|
} | undefined;
|
|
@@ -71,26 +71,34 @@ declare const _default: <T extends object, K extends keyof T = keyof T>(__VLS_pr
|
|
|
71
71
|
attrs: any;
|
|
72
72
|
slots: Partial<Record<string, (_: {
|
|
73
73
|
column: TableColumn<T>;
|
|
74
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
75
|
+
column: SortableTableColumn<T>;
|
|
76
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
77
|
+
column: NoneSortableTableColumn<T>;
|
|
74
78
|
}) => any>>;
|
|
75
79
|
emit: {
|
|
76
80
|
(e: 'select:all', value: boolean): void;
|
|
77
81
|
(e: 'sort', value: {
|
|
78
82
|
key: TableRowKey<T>;
|
|
79
|
-
direction?:
|
|
83
|
+
direction?: 'asc' | 'desc';
|
|
80
84
|
}): void;
|
|
81
85
|
};
|
|
82
|
-
}, "
|
|
86
|
+
}, "slots" | "attrs" | "emit"> | undefined, __VLS_expose?: ((exposed: {}) => void) | undefined, __VLS_setup?: Promise<{
|
|
83
87
|
props: Props<T>;
|
|
84
88
|
expose(exposed: {}): void;
|
|
85
89
|
attrs: any;
|
|
86
90
|
slots: Partial<Record<string, (_: {
|
|
87
91
|
column: TableColumn<T>;
|
|
92
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
93
|
+
column: SortableTableColumn<T>;
|
|
94
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
95
|
+
column: NoneSortableTableColumn<T>;
|
|
88
96
|
}) => any>>;
|
|
89
97
|
emit: {
|
|
90
98
|
(e: 'select:all', value: boolean): void;
|
|
91
99
|
(e: 'sort', value: {
|
|
92
100
|
key: TableRowKey<T>;
|
|
93
|
-
direction?:
|
|
101
|
+
direction?: 'asc' | 'desc';
|
|
94
102
|
}): void;
|
|
95
103
|
};
|
|
96
104
|
}>) => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -102,12 +110,16 @@ declare const _default: <T extends object, K extends keyof T = keyof T>(__VLS_pr
|
|
|
102
110
|
attrs: any;
|
|
103
111
|
slots: Partial<Record<string, (_: {
|
|
104
112
|
column: TableColumn<T>;
|
|
113
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
114
|
+
column: SortableTableColumn<T>;
|
|
115
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
116
|
+
column: NoneSortableTableColumn<T>;
|
|
105
117
|
}) => any>>;
|
|
106
118
|
emit: {
|
|
107
119
|
(e: 'select:all', value: boolean): void;
|
|
108
120
|
(e: 'sort', value: {
|
|
109
121
|
key: TableRowKey<T>;
|
|
110
|
-
direction?:
|
|
122
|
+
direction?: 'asc' | 'desc';
|
|
111
123
|
}): void;
|
|
112
124
|
};
|
|
113
125
|
} | undefined;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
export interface DropdownOptions<T, K extends keyof T = keyof T> {
|
|
3
|
+
options: Ref<T[]>;
|
|
4
|
+
dense?: Ref<boolean>;
|
|
5
|
+
value: Ref<T | undefined>;
|
|
6
|
+
menuRef: Ref<HTMLElement>;
|
|
7
|
+
keyAttr?: K;
|
|
8
|
+
textAttr?: keyof T;
|
|
9
|
+
appendWidth?: number;
|
|
10
|
+
prependWidth?: number;
|
|
11
|
+
itemHeight?: number;
|
|
12
|
+
overscan?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare function useDropdownMenu<T extends object | string, K extends keyof T>({ appendWidth, dense, itemHeight, keyAttr, menuRef, options, overscan, prependWidth, textAttr, value, }: DropdownOptions<T, K>): {
|
|
15
|
+
containerProps: {
|
|
16
|
+
ref: Ref<HTMLElement | null>;
|
|
17
|
+
onScroll: () => void;
|
|
18
|
+
style: import("vue").StyleValue;
|
|
19
|
+
};
|
|
20
|
+
getIdentifier: (item: T) => T[K] | T;
|
|
21
|
+
getText: (item: T) => T[keyof T] | T;
|
|
22
|
+
isActiveItem: (item: T) => boolean;
|
|
23
|
+
isOpen: Ref<boolean>;
|
|
24
|
+
menuWidth: globalThis.ComputedRef<string>;
|
|
25
|
+
renderedData: globalThis.ComputedRef<T[]>;
|
|
26
|
+
toggle: (state?: boolean) => void;
|
|
27
|
+
valueKey: globalThis.ComputedRef<T | T[K] | undefined>;
|
|
28
|
+
wrapperProps: globalThis.ComputedRef<{
|
|
29
|
+
style: {
|
|
30
|
+
width: string;
|
|
31
|
+
height: string;
|
|
32
|
+
marginTop: string;
|
|
33
|
+
} | {
|
|
34
|
+
width: string;
|
|
35
|
+
height: string;
|
|
36
|
+
marginLeft: string;
|
|
37
|
+
display: string;
|
|
38
|
+
};
|
|
39
|
+
}>;
|
|
40
|
+
};
|
|
@@ -1,83 +1,7 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import {
|
|
3
|
-
import { computed as _ } from "vue";
|
|
4
|
-
import { get as h } from "@vueuse/shared";
|
|
5
|
-
const C = /\d/, g = ["-", "_", "/", "."];
|
|
6
|
-
function E(e = "") {
|
|
7
|
-
if (!C.test(e))
|
|
8
|
-
return e !== e.toLowerCase();
|
|
9
|
-
}
|
|
10
|
-
function S(e, n) {
|
|
11
|
-
const o = n ?? g, r = [];
|
|
12
|
-
if (!e || typeof e != "string")
|
|
13
|
-
return r;
|
|
14
|
-
let t = "", i, p;
|
|
15
|
-
for (const c of e) {
|
|
16
|
-
const f = o.includes(c);
|
|
17
|
-
if (f === !0) {
|
|
18
|
-
r.push(t), t = "", i = void 0;
|
|
19
|
-
continue;
|
|
20
|
-
}
|
|
21
|
-
const u = E(c);
|
|
22
|
-
if (p === !1) {
|
|
23
|
-
if (i === !1 && u === !0) {
|
|
24
|
-
r.push(t), t = c, i = u;
|
|
25
|
-
continue;
|
|
26
|
-
}
|
|
27
|
-
if (i === !0 && u === !1 && t.length > 1) {
|
|
28
|
-
const s = t.at(-1);
|
|
29
|
-
r.push(t.slice(0, Math.max(0, t.length - 1))), t = s + c, i = u;
|
|
30
|
-
continue;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
t += c, i = u, p = f;
|
|
34
|
-
}
|
|
35
|
-
return r.push(t), r;
|
|
36
|
-
}
|
|
37
|
-
function y(e) {
|
|
38
|
-
return e ? e[0].toUpperCase() + e.slice(1) : "";
|
|
39
|
-
}
|
|
40
|
-
function z(e) {
|
|
41
|
-
return e ? e[0].toLowerCase() + e.slice(1) : "";
|
|
42
|
-
}
|
|
43
|
-
function R(e, n) {
|
|
44
|
-
return e ? (Array.isArray(e) ? e : S(e)).map((o) => y(n != null && n.normalize ? o.toLowerCase() : o)).join("") : "";
|
|
45
|
-
}
|
|
46
|
-
function l(e, n) {
|
|
47
|
-
return z(R(e || "", n));
|
|
48
|
-
}
|
|
49
|
-
function L() {
|
|
50
|
-
const { width: e } = m(), n = {
|
|
51
|
-
xs: 0,
|
|
52
|
-
...d
|
|
53
|
-
}, o = w(n), r = Object.keys, t = r(n), i = t.map(
|
|
54
|
-
(s, a) => [
|
|
55
|
-
s,
|
|
56
|
-
a < t.length - 1 ? o.between(s, t[a + 1]) : o[s]
|
|
57
|
-
]
|
|
58
|
-
), p = i.map(([s, a]) => [
|
|
59
|
-
l(`is_${s}`),
|
|
60
|
-
a
|
|
61
|
-
]), c = t.map((s) => [
|
|
62
|
-
l(`is_${s}_and_up`),
|
|
63
|
-
o.greaterOrEqual(s)
|
|
64
|
-
]), f = t.map((s) => [
|
|
65
|
-
l(`is_${s}_and_down`),
|
|
66
|
-
o.smaller(s)
|
|
67
|
-
]), u = _(() => {
|
|
68
|
-
var s;
|
|
69
|
-
return ((s = i.find((a) => h(a[1]))) == null ? void 0 : s[0]) || "";
|
|
70
|
-
});
|
|
71
|
-
return {
|
|
72
|
-
...Object.fromEntries(p),
|
|
73
|
-
...Object.fromEntries(c),
|
|
74
|
-
...Object.fromEntries(f),
|
|
75
|
-
name: u,
|
|
76
|
-
width: e
|
|
77
|
-
};
|
|
78
|
-
}
|
|
1
|
+
import { u as s, a } from "../index-RsNqSz2V.js";
|
|
2
|
+
import { u } from "../breakpoint-DAvEs_TA.js";
|
|
79
3
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
4
|
+
u as useBreakpoint,
|
|
5
|
+
s as useIcons,
|
|
6
|
+
a as useRotkiTheme
|
|
83
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const defaultTextProp
|
|
2
|
-
declare const defaultKeyProp
|
|
3
|
-
declare const defaultDisabledProp
|
|
1
|
+
declare const defaultTextProp = "text";
|
|
2
|
+
declare const defaultKeyProp = "id";
|
|
3
|
+
declare const defaultDisabledProp = "disabled";
|
|
4
4
|
export { defaultKeyProp, defaultDisabledProp, defaultTextProp, };
|