@codemonster-ru/vueforge 0.81.0 → 0.82.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/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.ts.mjs +4616 -4499
- package/dist/index.ts.umd.js +12 -12
- package/dist/package/components/data-table.vue.d.ts +33 -0
- package/package.json +1 -1
|
@@ -3,6 +3,8 @@ type Variant = 'filled' | 'outlined';
|
|
|
3
3
|
type Align = 'left' | 'center' | 'right';
|
|
4
4
|
type SortOrder = 'asc' | 'desc' | null;
|
|
5
5
|
type DataTableFilters = Record<string, unknown>;
|
|
6
|
+
type DataTableSelectionMode = 'single' | 'multiple' | null;
|
|
7
|
+
type DataTableRowKey = string | number;
|
|
6
8
|
export interface DataTableColumn {
|
|
7
9
|
field: string;
|
|
8
10
|
header?: string;
|
|
@@ -19,6 +21,11 @@ export interface DataTableQuery {
|
|
|
19
21
|
pageSize: number;
|
|
20
22
|
filters: DataTableFilters;
|
|
21
23
|
}
|
|
24
|
+
export interface DataTableBulkAction {
|
|
25
|
+
label: string;
|
|
26
|
+
value: string;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
}
|
|
22
29
|
interface Props {
|
|
23
30
|
rows?: Array<Record<string, unknown>>;
|
|
24
31
|
columns?: Array<DataTableColumn>;
|
|
@@ -39,6 +46,11 @@ interface Props {
|
|
|
39
46
|
page?: number;
|
|
40
47
|
pageSize?: number;
|
|
41
48
|
filters?: DataTableFilters;
|
|
49
|
+
selectionMode?: DataTableSelectionMode;
|
|
50
|
+
selection?: DataTableRowKey | Array<DataTableRowKey> | null;
|
|
51
|
+
bulkActions?: Array<DataTableBulkAction>;
|
|
52
|
+
selectAllAriaLabel?: string;
|
|
53
|
+
selectRowAriaLabel?: string;
|
|
42
54
|
}
|
|
43
55
|
declare function __VLS_template(): {
|
|
44
56
|
attrs: Partial<{}>;
|
|
@@ -52,6 +64,12 @@ declare function __VLS_template(): {
|
|
|
52
64
|
value: unknown;
|
|
53
65
|
index: number;
|
|
54
66
|
}) => any>> & {
|
|
67
|
+
'bulk-actions'?(_: {
|
|
68
|
+
selectedKeys: DataTableRowKey[];
|
|
69
|
+
selectedRows: Record<string, unknown>[];
|
|
70
|
+
clearSelection: () => void;
|
|
71
|
+
applyAction: (value: string) => void;
|
|
72
|
+
}): any;
|
|
55
73
|
loading?(_: {}): any;
|
|
56
74
|
empty?(_: {}): any;
|
|
57
75
|
};
|
|
@@ -65,6 +83,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
65
83
|
setFilters: (value: DataTableFilters) => void;
|
|
66
84
|
clearFilters: () => void;
|
|
67
85
|
getQuery: () => DataTableQuery;
|
|
86
|
+
clearSelection: () => void;
|
|
87
|
+
getSelectedKeys: () => DataTableRowKey[];
|
|
88
|
+
getSelectedRows: () => Record<string, unknown>[];
|
|
89
|
+
applyBulkAction: (value: string) => void;
|
|
68
90
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
69
91
|
sort: (...args: any[]) => void;
|
|
70
92
|
filter: (...args: any[]) => void;
|
|
@@ -76,6 +98,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
76
98
|
"update:pageSize": (...args: any[]) => void;
|
|
77
99
|
"update:filters": (...args: any[]) => void;
|
|
78
100
|
request: (...args: any[]) => void;
|
|
101
|
+
"update:selection": (...args: any[]) => void;
|
|
102
|
+
selectionChange: (...args: any[]) => void;
|
|
103
|
+
bulkAction: (...args: any[]) => void;
|
|
79
104
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
80
105
|
onSort?: ((...args: any[]) => any) | undefined;
|
|
81
106
|
onFilter?: ((...args: any[]) => any) | undefined;
|
|
@@ -87,6 +112,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
87
112
|
"onUpdate:pageSize"?: ((...args: any[]) => any) | undefined;
|
|
88
113
|
"onUpdate:filters"?: ((...args: any[]) => any) | undefined;
|
|
89
114
|
onRequest?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
"onUpdate:selection"?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
onBulkAction?: ((...args: any[]) => any) | undefined;
|
|
90
118
|
}>, {
|
|
91
119
|
size: Size;
|
|
92
120
|
columns: Array<DataTableColumn>;
|
|
@@ -107,6 +135,11 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
107
135
|
showHeader: boolean;
|
|
108
136
|
server: boolean;
|
|
109
137
|
filters: DataTableFilters;
|
|
138
|
+
selectionMode: DataTableSelectionMode;
|
|
139
|
+
selection: DataTableRowKey | Array<DataTableRowKey> | null;
|
|
140
|
+
bulkActions: Array<DataTableBulkAction>;
|
|
141
|
+
selectAllAriaLabel: string;
|
|
142
|
+
selectRowAriaLabel: string;
|
|
110
143
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
111
144
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
112
145
|
export default _default;
|