@rotki/ui-library 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/chips/Chip.vue.d.ts +4 -3
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.es.js +17 -16
- package/dist/components/overlays/badge/Badge.vue.d.ts +128 -0
- package/dist/components/overlays/tooltip/Tooltip.vue.d.ts +9 -9
- package/dist/components/tables/DataTable.vue.d.ts +124 -194
- package/dist/components/tabs/tab/Tab.vue.d.ts +4 -3
- package/dist/components/tabs/tab-item/TabItem.vue.d.ts +4 -3
- package/dist/composables/popper.d.ts +4 -226
- package/dist/index-c62f6196.js +5605 -0
- package/dist/index.es.js +2517 -2516
- package/dist/style.css +1 -1
- package/dist/utils/generate-id.d.ts +1 -0
- package/package.json +36 -35
- package/dist/index-65c6da26.js +0 -5422
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ContextColorsType } from '../../consts/colors';
|
|
2
2
|
export interface Props {
|
|
3
|
-
label
|
|
3
|
+
label?: string;
|
|
4
4
|
dismissible?: boolean;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
size?: 'sm' | 'md';
|
|
@@ -22,7 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
22
22
|
};
|
|
23
23
|
label: {
|
|
24
24
|
type: globalThis.PropType<string>;
|
|
25
|
-
|
|
25
|
+
default: string;
|
|
26
26
|
};
|
|
27
27
|
disabled: {
|
|
28
28
|
type: globalThis.PropType<boolean>;
|
|
@@ -49,7 +49,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
49
49
|
};
|
|
50
50
|
label: {
|
|
51
51
|
type: globalThis.PropType<string>;
|
|
52
|
-
|
|
52
|
+
default: string;
|
|
53
53
|
};
|
|
54
54
|
disabled: {
|
|
55
55
|
type: globalThis.PropType<boolean>;
|
|
@@ -65,6 +65,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
65
65
|
variant: "outlined" | "filled";
|
|
66
66
|
color: "grey" | "primary" | "secondary" | "error" | "warning" | "info" | "success";
|
|
67
67
|
size: "sm" | "md";
|
|
68
|
+
label: string;
|
|
68
69
|
disabled: boolean;
|
|
69
70
|
dismissible: boolean;
|
|
70
71
|
}, {}>, {
|
|
@@ -8,6 +8,7 @@ import { type Props as ChipProps, default as RuiChip } from '../components/chips
|
|
|
8
8
|
import { default as RuiStepper } from '../components/steppers/Stepper.vue';
|
|
9
9
|
import { default as RuiTextField } from '../components/forms/text-field/TextField.vue';
|
|
10
10
|
import { default as RuiTooltip, type Props as TooltipProps } from '../components/overlays/tooltip/Tooltip.vue';
|
|
11
|
+
import { type Props as BadgeProps, default as RuiBadge } from '../components/overlays/badge/Badge.vue';
|
|
11
12
|
import { type Props as DialogProps, default as RuiDialog } from '../components/overlays/dialog/Dialog.vue';
|
|
12
13
|
import { default as RuiFooterStepper } from '../components/steppers/FooterStepper.vue';
|
|
13
14
|
import { default as RuiProgress } from '../components/progress/Progress.vue';
|
|
@@ -17,9 +18,10 @@ import { default as RuiRevealableTextField } from '../components/forms/revealabl
|
|
|
17
18
|
import { default as RuiLogo } from '../components/logos/Logo.vue';
|
|
18
19
|
import { default as RuiSimpleSelect, type Props as SimpleSelectProps } from '../components/forms/select/SimpleSelect.vue';
|
|
19
20
|
import { type TableColumn as DataTableColumn, type TableOptions as DataTableOptions, type Props as DataTableProps, type SortColumn as DataTableSortColumn, default as RuiDataTable } from '../components/tables/DataTable.vue';
|
|
21
|
+
import { type TablePaginationData } from '../components/tables/TablePagination.vue';
|
|
20
22
|
import { type Props as CardProps, default as RuiCard } from '../components/cards/Card.vue';
|
|
21
23
|
import { default as RuiTabs } from '../components/tabs/tabs/Tabs.vue';
|
|
22
24
|
import { default as RuiTab } from '../components/tabs/tab/Tab.vue';
|
|
23
25
|
import { default as RuiTabItems } from '../components/tabs/tab-items/TabItems.vue';
|
|
24
26
|
import { default as RuiTabItem } from '../components/tabs/tab-item/TabItem.vue';
|
|
25
|
-
export { RuiAlert, RuiAutoComplete, RuiButton, RuiButtonGroup, RuiCheckbox, RuiChip, RuiFooterStepper, RuiIcon, RuiLogo, RuiProgress, RuiRadio, RuiRadioGroup, RuiRevealableTextField, RuiStepper, RuiTextField, RuiTooltip, RuiDataTable, RuiSimpleSelect, RuiDialog, RuiCard, RuiTabs, RuiTab, RuiTabItems, RuiTabItem, AutoCompleteProps, ChipProps, TooltipProps, SimpleSelectProps, DataTableProps, DataTableColumn, DataTableSortColumn, DataTableOptions, DialogProps, ButtonProps, CardProps, };
|
|
27
|
+
export { RuiAlert, RuiAutoComplete, RuiBadge, RuiButton, RuiButtonGroup, RuiCheckbox, RuiChip, RuiFooterStepper, RuiIcon, RuiLogo, RuiProgress, RuiRadio, RuiRadioGroup, RuiRevealableTextField, RuiStepper, RuiTextField, RuiTooltip, RuiDataTable, RuiSimpleSelect, RuiDialog, RuiCard, RuiTabs, RuiTab, RuiTabItems, RuiTabItem, AutoCompleteProps, ChipProps, TooltipProps, SimpleSelectProps, DataTableProps, DataTableColumn, DataTableSortColumn, DataTableOptions, TablePaginationData, DialogProps, ButtonProps, CardProps, BadgeProps, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as r, a as m, B as l, b as T,
|
|
1
|
+
import { A as r, a as m, B as l, b as T, c as b, k as d, C as g, d as C, D as c, j as n, F as x, I as B, _ as F, P as I, R as S, e as h, f as A, i as D, g as f, m as k, o as G, n as P, l as j, h as v, T as L } from "../index-c62f6196.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@vueuse/shared";
|
|
4
4
|
import "../index-393a0e94.js";
|
|
@@ -9,26 +9,27 @@ import "vue-router";
|
|
|
9
9
|
export {
|
|
10
10
|
r as RuiAlert,
|
|
11
11
|
m as RuiAutoComplete,
|
|
12
|
-
l as
|
|
13
|
-
T as
|
|
14
|
-
b as
|
|
15
|
-
d as
|
|
12
|
+
l as RuiBadge,
|
|
13
|
+
T as RuiButton,
|
|
14
|
+
b as RuiButtonGroup,
|
|
15
|
+
d as RuiCard,
|
|
16
|
+
g as RuiCheckbox,
|
|
16
17
|
C as RuiChip,
|
|
17
18
|
c as RuiDataTable,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
n as RuiDialog,
|
|
20
|
+
x as RuiFooterStepper,
|
|
21
|
+
B as RuiIcon,
|
|
21
22
|
F as RuiLogo,
|
|
22
23
|
I as RuiProgress,
|
|
23
24
|
S as RuiRadio,
|
|
24
25
|
h as RuiRadioGroup,
|
|
25
26
|
A as RuiRevealableTextField,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
D as RuiSimpleSelect,
|
|
28
|
+
f as RuiStepper,
|
|
29
|
+
k as RuiTab,
|
|
30
|
+
G as RuiTabItem,
|
|
31
|
+
P as RuiTabItems,
|
|
32
|
+
j as RuiTabs,
|
|
33
|
+
v as RuiTextField,
|
|
34
|
+
L as RuiTooltip
|
|
34
35
|
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { type ContextColorsType } from '../../../consts/colors';
|
|
2
|
+
import { type RuiIcons } from '~/src';
|
|
3
|
+
export interface Props {
|
|
4
|
+
text?: string | null;
|
|
5
|
+
icon?: RuiIcons | null;
|
|
6
|
+
modelValue?: boolean;
|
|
7
|
+
dot?: boolean;
|
|
8
|
+
left?: boolean;
|
|
9
|
+
offsetX?: string | number;
|
|
10
|
+
offsetY?: string | number;
|
|
11
|
+
placement?: 'top' | 'center' | 'bottom';
|
|
12
|
+
size?: 'sm' | 'md' | 'lg';
|
|
13
|
+
rounded?: 'sm' | 'md' | 'lg' | 'full';
|
|
14
|
+
color?: 'default' | ContextColorsType;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
17
|
+
color: {
|
|
18
|
+
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success" | "default">;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
type: globalThis.PropType<"sm" | "lg" | "md">;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
text: {
|
|
26
|
+
type: globalThis.PropType<string | null>;
|
|
27
|
+
default: null;
|
|
28
|
+
};
|
|
29
|
+
rounded: {
|
|
30
|
+
type: globalThis.PropType<"sm" | "lg" | "md" | "full">;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
icon: {
|
|
34
|
+
type: globalThis.PropType<RuiIcons | null>;
|
|
35
|
+
default: null;
|
|
36
|
+
};
|
|
37
|
+
modelValue: {
|
|
38
|
+
type: globalThis.PropType<boolean>;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
left: {
|
|
42
|
+
type: globalThis.PropType<boolean>;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
placement: {
|
|
46
|
+
type: globalThis.PropType<"center" | "top" | "bottom">;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
dot: {
|
|
50
|
+
type: globalThis.PropType<boolean>;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
offsetX: {
|
|
54
|
+
type: globalThis.PropType<string | number>;
|
|
55
|
+
default: number;
|
|
56
|
+
};
|
|
57
|
+
offsetY: {
|
|
58
|
+
type: globalThis.PropType<string | number>;
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
color: {
|
|
63
|
+
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success" | "default">;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
size: {
|
|
67
|
+
type: globalThis.PropType<"sm" | "lg" | "md">;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
text: {
|
|
71
|
+
type: globalThis.PropType<string | null>;
|
|
72
|
+
default: null;
|
|
73
|
+
};
|
|
74
|
+
rounded: {
|
|
75
|
+
type: globalThis.PropType<"sm" | "lg" | "md" | "full">;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
icon: {
|
|
79
|
+
type: globalThis.PropType<RuiIcons | null>;
|
|
80
|
+
default: null;
|
|
81
|
+
};
|
|
82
|
+
modelValue: {
|
|
83
|
+
type: globalThis.PropType<boolean>;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
left: {
|
|
87
|
+
type: globalThis.PropType<boolean>;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
placement: {
|
|
91
|
+
type: globalThis.PropType<"center" | "top" | "bottom">;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
dot: {
|
|
95
|
+
type: globalThis.PropType<boolean>;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
offsetX: {
|
|
99
|
+
type: globalThis.PropType<string | number>;
|
|
100
|
+
default: number;
|
|
101
|
+
};
|
|
102
|
+
offsetY: {
|
|
103
|
+
type: globalThis.PropType<string | number>;
|
|
104
|
+
default: number;
|
|
105
|
+
};
|
|
106
|
+
}>>, {
|
|
107
|
+
color: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "default";
|
|
108
|
+
size: "sm" | "lg" | "md";
|
|
109
|
+
text: string | null;
|
|
110
|
+
rounded: "sm" | "lg" | "md" | "full";
|
|
111
|
+
icon: RuiIcons | null;
|
|
112
|
+
modelValue: boolean;
|
|
113
|
+
left: boolean;
|
|
114
|
+
placement: "center" | "top" | "bottom";
|
|
115
|
+
dot: boolean;
|
|
116
|
+
offsetX: string | number;
|
|
117
|
+
offsetY: string | number;
|
|
118
|
+
}, {}>, {
|
|
119
|
+
default?(_: {}): any;
|
|
120
|
+
badge?(_: {}): any;
|
|
121
|
+
icon?(_: {}): any;
|
|
122
|
+
}>;
|
|
123
|
+
export default _default;
|
|
124
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
125
|
+
new (): {
|
|
126
|
+
$slots: S;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
@@ -17,10 +17,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
17
17
|
type: globalThis.PropType<boolean>;
|
|
18
18
|
default: boolean;
|
|
19
19
|
};
|
|
20
|
-
popper: {
|
|
21
|
-
type: globalThis.PropType<PopperOptions>;
|
|
22
|
-
default: () => {};
|
|
23
|
-
};
|
|
24
20
|
hideArrow: {
|
|
25
21
|
type: globalThis.PropType<boolean>;
|
|
26
22
|
default: boolean;
|
|
@@ -33,6 +29,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
33
29
|
type: globalThis.PropType<number>;
|
|
34
30
|
default: number;
|
|
35
31
|
};
|
|
32
|
+
popper: {
|
|
33
|
+
type: globalThis.PropType<PopperOptions>;
|
|
34
|
+
default: () => {};
|
|
35
|
+
};
|
|
36
36
|
tooltipClass: {
|
|
37
37
|
type: globalThis.PropType<string>;
|
|
38
38
|
default: string;
|
|
@@ -46,10 +46,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
46
46
|
type: globalThis.PropType<boolean>;
|
|
47
47
|
default: boolean;
|
|
48
48
|
};
|
|
49
|
-
popper: {
|
|
50
|
-
type: globalThis.PropType<PopperOptions>;
|
|
51
|
-
default: () => {};
|
|
52
|
-
};
|
|
53
49
|
hideArrow: {
|
|
54
50
|
type: globalThis.PropType<boolean>;
|
|
55
51
|
default: boolean;
|
|
@@ -62,6 +58,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
62
58
|
type: globalThis.PropType<number>;
|
|
63
59
|
default: number;
|
|
64
60
|
};
|
|
61
|
+
popper: {
|
|
62
|
+
type: globalThis.PropType<PopperOptions>;
|
|
63
|
+
default: () => {};
|
|
64
|
+
};
|
|
65
65
|
tooltipClass: {
|
|
66
66
|
type: globalThis.PropType<string>;
|
|
67
67
|
default: string;
|
|
@@ -69,10 +69,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
69
69
|
}>>, {
|
|
70
70
|
text: string | null;
|
|
71
71
|
disabled: boolean;
|
|
72
|
-
popper: PopperOptions;
|
|
73
72
|
hideArrow: boolean;
|
|
74
73
|
openDelay: number;
|
|
75
74
|
closeDelay: number;
|
|
75
|
+
popper: PopperOptions;
|
|
76
76
|
tooltipClass: string;
|
|
77
77
|
}, {}>, {
|
|
78
78
|
activator?(_: {
|
|
@@ -1,38 +1,77 @@
|
|
|
1
1
|
import { type TablePaginationData } from './TablePagination.vue';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Represents a sortable column name for a given type.
|
|
4
|
+
* The column name must be a key of the passed data object type.
|
|
5
|
+
* @template T - The type of the data in the column.
|
|
6
|
+
*/
|
|
7
|
+
export type SortableColumnName<T> = keyof T;
|
|
8
|
+
/**
|
|
9
|
+
* Represents the name of a column in a dataset.
|
|
10
|
+
*
|
|
11
|
+
* The `ColumnName` type can either be a `SortableColumnName` or a string.
|
|
12
|
+
*
|
|
13
|
+
* @typeparam T - The type of the dataset containing the column name.
|
|
14
|
+
*/
|
|
15
|
+
export type ColumnName<T> = SortableColumnName<T> | string;
|
|
16
|
+
export interface BaseTableColumn {
|
|
5
17
|
direction?: 'asc' | 'desc';
|
|
6
18
|
align?: 'start' | 'center' | 'end';
|
|
7
19
|
class?: string;
|
|
8
20
|
cellClass?: string;
|
|
9
21
|
[key: string]: any;
|
|
10
22
|
}
|
|
11
|
-
|
|
12
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Represents a sortable table column.
|
|
25
|
+
* This is used to ensure that when using sortable with a true value,
|
|
26
|
+
* the key matches to an actual property of the object passed.
|
|
27
|
+
*
|
|
28
|
+
* @template T - The type of data in the table column.
|
|
29
|
+
*/
|
|
30
|
+
export interface SortableTableColumn<T> extends BaseTableColumn {
|
|
31
|
+
key: SortableColumnName<T>;
|
|
32
|
+
sortable: true;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* An interface representing a column in a table that cannot be sorted.
|
|
36
|
+
* This can be mapped to an actual property of the object or to a virtual column.
|
|
37
|
+
*
|
|
38
|
+
* @typeparam T - The type of data in the table.
|
|
39
|
+
*/
|
|
40
|
+
export interface NoneSortableTableColumn<T> extends BaseTableColumn {
|
|
41
|
+
key: string | SortableColumnName<T>;
|
|
42
|
+
sortable?: false;
|
|
43
|
+
}
|
|
44
|
+
export type TableColumn<T> = SortableTableColumn<T> | NoneSortableTableColumn<T>;
|
|
45
|
+
export interface SortColumn<T> {
|
|
46
|
+
column?: SortableColumnName<T>;
|
|
13
47
|
direction: 'asc' | 'desc';
|
|
14
48
|
}
|
|
15
|
-
export interface TableOptions {
|
|
49
|
+
export interface TableOptions<T> {
|
|
16
50
|
pagination?: TablePaginationData;
|
|
17
|
-
sort?: SortColumn | SortColumn[];
|
|
51
|
+
sort?: SortColumn<T> | SortColumn<T>[];
|
|
18
52
|
}
|
|
19
|
-
export interface Props {
|
|
53
|
+
export interface Props<T, K extends keyof T> {
|
|
20
54
|
/**
|
|
21
55
|
* list of items for each row
|
|
22
56
|
*/
|
|
23
|
-
rows:
|
|
57
|
+
rows: T[];
|
|
24
58
|
/**
|
|
25
59
|
* the attribute used to identify each row uniquely for selection, usually `id`
|
|
26
60
|
*/
|
|
27
|
-
rowAttr:
|
|
61
|
+
rowAttr: K;
|
|
28
62
|
/**
|
|
29
63
|
* model for selected rows, add a v-model to support row selection
|
|
30
64
|
*/
|
|
31
|
-
modelValue?:
|
|
65
|
+
modelValue?: T[K][];
|
|
32
66
|
/**
|
|
33
|
-
* model for
|
|
67
|
+
* model for internal searching
|
|
34
68
|
*/
|
|
35
69
|
search?: string;
|
|
70
|
+
/**
|
|
71
|
+
* model for items per page
|
|
72
|
+
* will be used if the `pagination` model isn't specified
|
|
73
|
+
*/
|
|
74
|
+
itemsPerPage?: number;
|
|
36
75
|
/**
|
|
37
76
|
* model for paginating data
|
|
38
77
|
* @example v-model:pagination="{ total: 10, limit: 5, page: 1 }"
|
|
@@ -53,7 +92,7 @@ export interface Props {
|
|
|
53
92
|
* multi columns sort
|
|
54
93
|
* @example v-model:sort="[{ column: 'name', direction: 'asc' }]"
|
|
55
94
|
*/
|
|
56
|
-
sort?: SortColumn | SortColumn[];
|
|
95
|
+
sort?: SortColumn<T> | SortColumn<T>[];
|
|
57
96
|
/**
|
|
58
97
|
* modifiers for specifying externally sorted tables
|
|
59
98
|
* use this when api controls sorting
|
|
@@ -68,7 +107,7 @@ export interface Props {
|
|
|
68
107
|
/**
|
|
69
108
|
* list of column definitions
|
|
70
109
|
*/
|
|
71
|
-
cols?:
|
|
110
|
+
cols?: TableColumn<T>[];
|
|
72
111
|
/**
|
|
73
112
|
* attribute to use from column definitions to display column titles
|
|
74
113
|
*/
|
|
@@ -95,187 +134,78 @@ export interface Props {
|
|
|
95
134
|
label?: string;
|
|
96
135
|
description?: string;
|
|
97
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
* should hide the footer
|
|
139
|
+
*/
|
|
140
|
+
hideDefaultFooter?: boolean;
|
|
141
|
+
rounded?: 'sm' | 'md' | 'lg';
|
|
98
142
|
}
|
|
99
|
-
declare const _default:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
143
|
+
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<{
|
|
144
|
+
props: Props<T, IdType>;
|
|
145
|
+
expose(exposed: {}): void;
|
|
146
|
+
attrs: any;
|
|
147
|
+
slots: Partial<Record<string, (_: {
|
|
148
|
+
column: TableColumn<T>;
|
|
149
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
150
|
+
column: TableColumn<T>;
|
|
151
|
+
row: T;
|
|
152
|
+
index: number;
|
|
153
|
+
}) => any>> & {
|
|
154
|
+
"no-data"?(_: {}): any;
|
|
155
|
+
"empty-description"?(_: {}): any;
|
|
156
|
+
tfoot?(_: {}): any;
|
|
157
|
+
};
|
|
158
|
+
emit: {
|
|
159
|
+
(e: 'update:model-value', value?: T[IdType][] | undefined): void;
|
|
160
|
+
(e: 'update:pagination', value: TablePaginationData): void;
|
|
161
|
+
(e: 'update:sort', value?: SortColumn<T> | SortColumn<T>[] | undefined): void;
|
|
162
|
+
(e: 'update:options', value: TableOptions<T>): void;
|
|
163
|
+
};
|
|
164
|
+
}, "attrs" | "slots" | "emit"> | undefined, __VLS_expose?: ((exposed: {}) => void) | undefined, __VLS_setup?: Promise<{
|
|
165
|
+
props: Props<T, IdType>;
|
|
166
|
+
expose(exposed: {}): void;
|
|
167
|
+
attrs: any;
|
|
168
|
+
slots: Partial<Record<string, (_: {
|
|
169
|
+
column: TableColumn<T>;
|
|
170
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
171
|
+
column: TableColumn<T>;
|
|
172
|
+
row: T;
|
|
173
|
+
index: number;
|
|
174
|
+
}) => any>> & {
|
|
175
|
+
"no-data"?(_: {}): any;
|
|
176
|
+
"empty-description"?(_: {}): any;
|
|
177
|
+
tfoot?(_: {}): any;
|
|
178
|
+
};
|
|
179
|
+
emit: {
|
|
180
|
+
(e: 'update:model-value', value?: T[IdType][] | undefined): void;
|
|
181
|
+
(e: 'update:pagination', value: TablePaginationData): void;
|
|
182
|
+
(e: 'update:sort', value?: SortColumn<T> | SortColumn<T>[] | undefined): void;
|
|
183
|
+
(e: 'update:options', value: TableOptions<T>): void;
|
|
184
|
+
};
|
|
185
|
+
}>) => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
186
|
+
[key: string]: any;
|
|
187
|
+
}> & {
|
|
188
|
+
__ctx?: {
|
|
189
|
+
props: Props<T, IdType>;
|
|
190
|
+
expose(exposed: {}): void;
|
|
191
|
+
attrs: any;
|
|
192
|
+
slots: Partial<Record<string, (_: {
|
|
193
|
+
column: TableColumn<T>;
|
|
194
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
195
|
+
column: TableColumn<T>;
|
|
196
|
+
row: T;
|
|
197
|
+
index: number;
|
|
198
|
+
}) => any>> & {
|
|
199
|
+
"no-data"?(_: {}): any;
|
|
200
|
+
"empty-description"?(_: {}): any;
|
|
201
|
+
tfoot?(_: {}): any;
|
|
129
202
|
};
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
rowAttr: {
|
|
136
|
-
type: globalThis.PropType<string>;
|
|
137
|
-
required: true;
|
|
138
|
-
};
|
|
139
|
-
pagination: {
|
|
140
|
-
type: globalThis.PropType<TablePaginationData>;
|
|
141
|
-
default: undefined;
|
|
142
|
-
};
|
|
143
|
-
paginationModifiers: {
|
|
144
|
-
type: globalThis.PropType<{
|
|
145
|
-
external: boolean;
|
|
146
|
-
}>;
|
|
147
|
-
default: undefined;
|
|
148
|
-
};
|
|
149
|
-
sortModifiers: {
|
|
150
|
-
type: globalThis.PropType<{
|
|
151
|
-
external: boolean;
|
|
152
|
-
}>;
|
|
153
|
-
default: undefined;
|
|
154
|
-
};
|
|
155
|
-
cols: {
|
|
156
|
-
type: globalThis.PropType<TableColumn[]>;
|
|
157
|
-
default: undefined;
|
|
158
|
-
};
|
|
159
|
-
columnAttr: {
|
|
160
|
-
type: globalThis.PropType<string>;
|
|
161
|
-
default: string;
|
|
162
|
-
};
|
|
163
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
164
|
-
"update:model-value": (value?: string[] | undefined) => void;
|
|
165
|
-
"update:pagination": (value?: TablePaginationData | undefined) => void;
|
|
166
|
-
"update:sort": (value?: SortColumn | SortColumn[] | undefined) => void;
|
|
167
|
-
"update:options": (value?: TableOptions | undefined) => void;
|
|
168
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
169
|
-
sort: {
|
|
170
|
-
type: globalThis.PropType<SortColumn | SortColumn[]>;
|
|
171
|
-
default: undefined;
|
|
172
|
-
};
|
|
173
|
-
search: {
|
|
174
|
-
type: globalThis.PropType<string>;
|
|
175
|
-
default: string;
|
|
176
|
-
};
|
|
177
|
-
outlined: {
|
|
178
|
-
type: globalThis.PropType<boolean>;
|
|
179
|
-
};
|
|
180
|
-
loading: {
|
|
181
|
-
type: globalThis.PropType<boolean>;
|
|
182
|
-
default: boolean;
|
|
183
|
-
};
|
|
184
|
-
modelValue: {
|
|
185
|
-
type: globalThis.PropType<string[]>;
|
|
186
|
-
default: undefined;
|
|
187
|
-
};
|
|
188
|
-
dense: {
|
|
189
|
-
type: globalThis.PropType<boolean>;
|
|
190
|
-
};
|
|
191
|
-
empty: {
|
|
192
|
-
type: globalThis.PropType<{
|
|
193
|
-
label?: string | undefined;
|
|
194
|
-
description?: string | undefined;
|
|
195
|
-
}>;
|
|
196
|
-
default: () => {
|
|
197
|
-
label: string;
|
|
203
|
+
emit: {
|
|
204
|
+
(e: 'update:model-value', value?: T[IdType][] | undefined): void;
|
|
205
|
+
(e: 'update:pagination', value: TablePaginationData): void;
|
|
206
|
+
(e: 'update:sort', value?: SortColumn<T> | SortColumn<T>[] | undefined): void;
|
|
207
|
+
(e: 'update:options', value: TableOptions<T>): void;
|
|
198
208
|
};
|
|
199
|
-
};
|
|
200
|
-
rows: {
|
|
201
|
-
type: globalThis.PropType<Record<string, any>[]>;
|
|
202
|
-
required: true;
|
|
203
|
-
};
|
|
204
|
-
rowAttr: {
|
|
205
|
-
type: globalThis.PropType<string>;
|
|
206
|
-
required: true;
|
|
207
|
-
};
|
|
208
|
-
pagination: {
|
|
209
|
-
type: globalThis.PropType<TablePaginationData>;
|
|
210
|
-
default: undefined;
|
|
211
|
-
};
|
|
212
|
-
paginationModifiers: {
|
|
213
|
-
type: globalThis.PropType<{
|
|
214
|
-
external: boolean;
|
|
215
|
-
}>;
|
|
216
|
-
default: undefined;
|
|
217
|
-
};
|
|
218
|
-
sortModifiers: {
|
|
219
|
-
type: globalThis.PropType<{
|
|
220
|
-
external: boolean;
|
|
221
|
-
}>;
|
|
222
|
-
default: undefined;
|
|
223
|
-
};
|
|
224
|
-
cols: {
|
|
225
|
-
type: globalThis.PropType<TableColumn[]>;
|
|
226
|
-
default: undefined;
|
|
227
|
-
};
|
|
228
|
-
columnAttr: {
|
|
229
|
-
type: globalThis.PropType<string>;
|
|
230
|
-
default: string;
|
|
231
|
-
};
|
|
232
|
-
}>> & {
|
|
233
|
-
"onUpdate:model-value"?: ((value?: string[] | undefined) => any) | undefined;
|
|
234
|
-
"onUpdate:pagination"?: ((value?: TablePaginationData | undefined) => any) | undefined;
|
|
235
|
-
"onUpdate:sort"?: ((value?: SortColumn | SortColumn[] | undefined) => any) | undefined;
|
|
236
|
-
"onUpdate:options"?: ((value?: TableOptions | undefined) => any) | undefined;
|
|
237
|
-
}, {
|
|
238
|
-
sort: SortColumn | SortColumn[];
|
|
239
|
-
search: string;
|
|
240
|
-
loading: boolean;
|
|
241
|
-
modelValue: string[];
|
|
242
|
-
empty: {
|
|
243
|
-
label?: string | undefined;
|
|
244
|
-
description?: string | undefined;
|
|
245
|
-
};
|
|
246
|
-
pagination: TablePaginationData;
|
|
247
|
-
paginationModifiers: {
|
|
248
|
-
external: boolean;
|
|
249
|
-
};
|
|
250
|
-
sortModifiers: {
|
|
251
|
-
external: boolean;
|
|
252
|
-
};
|
|
253
|
-
cols: TableColumn[];
|
|
254
|
-
columnAttr: string;
|
|
255
|
-
}, {}>, Partial<Record<string, (_: {
|
|
256
|
-
column: TableColumn | {
|
|
257
|
-
[x: string]: string | boolean;
|
|
258
|
-
key: string;
|
|
259
|
-
sortable: boolean;
|
|
260
|
-
class: string;
|
|
261
|
-
};
|
|
262
|
-
}) => any>> & Partial<Record<string, (_: {
|
|
263
|
-
column: TableColumn | {
|
|
264
|
-
[x: string]: string | boolean;
|
|
265
|
-
key: string;
|
|
266
|
-
sortable: boolean;
|
|
267
|
-
class: string;
|
|
268
|
-
};
|
|
269
|
-
row: Record<string, any>;
|
|
270
|
-
index: number;
|
|
271
|
-
}) => any>> & {
|
|
272
|
-
"no-data"?(_: {}): any;
|
|
273
|
-
"empty-description"?(_: {}): any;
|
|
274
|
-
tfoot?(_: {}): any;
|
|
275
|
-
}>;
|
|
276
|
-
export default _default;
|
|
277
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
278
|
-
new (): {
|
|
279
|
-
$slots: S;
|
|
280
|
-
};
|
|
209
|
+
} | undefined;
|
|
281
210
|
};
|
|
211
|
+
export default _default;
|