@leodamours/ds-components 0.2.8 → 0.2.9
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/DsTable.vue.d.ts +10 -4
- package/dist/index.js +868 -861
- package/package.json +1 -1
|
@@ -24,13 +24,14 @@ export interface DsTableProps {
|
|
|
24
24
|
ofLabel?: string;
|
|
25
25
|
pagination?: DsTablePagination;
|
|
26
26
|
}
|
|
27
|
+
declare function handleRowClick(row: Record<string, any>, rowIndex: number): void;
|
|
28
|
+
declare function handleCellClick(row: Record<string, any>, colKey: string): void;
|
|
27
29
|
declare function __VLS_template(): Partial<Record<`header-${string}`, (_: {
|
|
28
30
|
column: DsTableColumn;
|
|
29
31
|
}) => any>> & Partial<Record<`cell-${string}`, (_: {
|
|
30
32
|
row: Record<string, any>;
|
|
31
33
|
value: any;
|
|
32
34
|
index: number;
|
|
33
|
-
click: void;
|
|
34
35
|
}) => any>> & {
|
|
35
36
|
loading?(_: {}): any;
|
|
36
37
|
empty?(_: {}): any;
|
|
@@ -43,11 +44,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
43
44
|
nextPageLabel: string;
|
|
44
45
|
previousPageLabel: string;
|
|
45
46
|
ofLabel: string;
|
|
46
|
-
}>>, {
|
|
47
|
+
}>>, {
|
|
48
|
+
handleRowClick: typeof handleRowClick;
|
|
49
|
+
handleCellClick: typeof handleCellClick;
|
|
50
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
47
51
|
"update:sortBy": (value: string) => void;
|
|
48
52
|
"update:sortOrder": (value: "desc" | "asc") => void;
|
|
49
53
|
"update:page": (value: number) => void;
|
|
50
|
-
"row:click": (row: Record<string, any
|
|
54
|
+
"row:click": (row: Record<string, any>, rowIndex: number) => void;
|
|
55
|
+
"cell:click": (row: Record<string, any>, colKey: string) => void;
|
|
51
56
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DsTableProps>, {
|
|
52
57
|
loading: boolean;
|
|
53
58
|
emptyText: string;
|
|
@@ -60,7 +65,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
60
65
|
"onUpdate:sortBy"?: ((value: string) => any) | undefined;
|
|
61
66
|
"onUpdate:sortOrder"?: ((value: "desc" | "asc") => any) | undefined;
|
|
62
67
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
63
|
-
"onRow:click"?: ((row: Record<string, any
|
|
68
|
+
"onRow:click"?: ((row: Record<string, any>, rowIndex: number) => any) | undefined;
|
|
69
|
+
"onCell:click"?: ((row: Record<string, any>, colKey: string) => any) | undefined;
|
|
64
70
|
}>, {
|
|
65
71
|
loading: boolean;
|
|
66
72
|
emptyText: string;
|