vuetable-next 1.0.9 → 1.0.11
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/LICENSE +20 -20
- package/README.md +347 -71
- package/dist/index.js +20 -0
- package/dist/portable/components/useVuetableField.d.ts +28 -0
- package/dist/portable/components/useVuetableFieldCheckbox.d.ts +19 -0
- package/dist/portable/components/useVuetablePagination.d.ts +34 -0
- package/dist/portable/components/useVuetablePaginationInfo.d.ts +25 -0
- package/dist/portable/helpers/toValue.d.ts +4 -0
- package/dist/portable/reactivity.d.ts +7 -0
- package/dist/public.d.ts +118 -0
- package/dist/selector.cjs +1 -0
- package/dist/style.css +3 -1
- package/dist/types/components/Vuetable.vue.d.ts +1266 -0
- package/dist/types/components/VuetableColGroup.vue.d.ts +33 -0
- package/dist/types/components/VuetableColGutter.vue.d.ts +5 -0
- package/dist/types/components/VuetableContext.d.ts +21 -0
- package/dist/types/components/VuetableCssSemanticUI.d.ts +35 -0
- package/dist/types/components/VuetableDetailHost.vue.d.ts +44 -0
- package/dist/types/components/VuetableFieldCheckbox.vue.d.ts +64 -0
- package/dist/types/components/VuetableFieldCheckboxMixin.vue.d.ts +66 -0
- package/dist/types/components/VuetableFieldHandle.vue.d.ts +31 -0
- package/dist/types/components/VuetableFieldMixin.vue.d.ts +53 -0
- package/dist/types/components/VuetableFieldSequence.vue.d.ts +42 -0
- package/dist/types/components/VuetablePagination.vue.d.ts +69 -0
- package/dist/types/components/VuetablePaginationDropdown.vue.d.ts +82 -0
- package/dist/types/components/VuetablePaginationInfo.vue.d.ts +44 -0
- package/dist/types/components/VuetablePaginationInfoMixin.vue.d.ts +47 -0
- package/dist/types/components/VuetablePaginationMixin.vue.d.ts +57 -0
- package/dist/types/components/VuetableRowHeader.vue.d.ts +182 -0
- package/dist/types/components/useVuetableField.d.ts +28 -0
- package/dist/types/components/useVuetableFieldCheckbox.d.ts +19 -0
- package/dist/types/components/useVuetablePagination.d.ts +34 -0
- package/dist/types/components/useVuetablePaginationInfo.d.ts +25 -0
- package/dist/types/helpers/toValue.d.ts +4 -0
- package/dist/types/index.d.ts +28 -0
- package/dist/vue2.cjs +18 -0
- package/dist/vue2.cjs.map +1 -0
- package/dist/vue2.js +1576 -0
- package/dist/vue2.js.map +1 -0
- package/dist/vue3.cjs +6 -0
- package/dist/vue3.cjs.map +1 -0
- package/dist/vue3.js +1723 -0
- package/dist/vue3.js.map +1 -0
- package/package.json +42 -12
- package/style.css +3 -0
- package/vue2.js +2 -0
- package/vue3.js +2 -0
- package/dist/vuetable-next.d.ts +0 -728
- package/dist/vuetable-next.js +0 -3324
- package/dist/vuetable-next.js.map +0 -1
- package/dist/vuetable-next.umd.cjs +0 -11
- package/dist/vuetable-next.umd.cjs.map +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue-demi';
|
|
2
|
+
import { VuetableContext } from './VuetableContext';
|
|
3
|
+
export interface Field {
|
|
4
|
+
name: string | DefineComponent;
|
|
5
|
+
sortField: string | null;
|
|
6
|
+
title: string | ((str?: any) => string);
|
|
7
|
+
titleClass: string;
|
|
8
|
+
dataClass: string;
|
|
9
|
+
formatter: (<T>(...args: any[]) => T) | null;
|
|
10
|
+
visible: boolean;
|
|
11
|
+
width: string;
|
|
12
|
+
$_index: number;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: DefineComponent<import('vue').ExtractPropTypes<{
|
|
16
|
+
isHeader: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
}>, {
|
|
22
|
+
vuetable: VuetableContext;
|
|
23
|
+
columnClass: (field: Field, fieldIndex: number) => string[];
|
|
24
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
25
|
+
isHeader: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
required: false;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>> & Readonly<{}>, {
|
|
31
|
+
isHeader: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { VuetableContext } from './VuetableContext';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
3
|
+
vuetable: VuetableContext;
|
|
4
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface VuetableContext {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
fieldPrefix: string;
|
|
4
|
+
tableFields: any[];
|
|
5
|
+
tableData: any[] | null;
|
|
6
|
+
tablePagination: {
|
|
7
|
+
from: number;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
} | null;
|
|
10
|
+
scrollVisible: boolean;
|
|
11
|
+
scrollBarWidth: string;
|
|
12
|
+
sortOrder: {
|
|
13
|
+
field: string;
|
|
14
|
+
sortField: string;
|
|
15
|
+
direction: "asc" | "desc";
|
|
16
|
+
}[];
|
|
17
|
+
trackBy: string;
|
|
18
|
+
perPage: number;
|
|
19
|
+
showSortIcons: boolean;
|
|
20
|
+
css: Record<string, any>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
table: {
|
|
3
|
+
tableWrapper: string;
|
|
4
|
+
tableHeaderClass: string;
|
|
5
|
+
tableBodyClass: string;
|
|
6
|
+
tableClass: string;
|
|
7
|
+
loadingClass: string;
|
|
8
|
+
ascendingIcon: string;
|
|
9
|
+
descendingIcon: string;
|
|
10
|
+
ascendingClass: string;
|
|
11
|
+
descendingClass: string;
|
|
12
|
+
sortableIcon: string;
|
|
13
|
+
handleIcon: string;
|
|
14
|
+
};
|
|
15
|
+
pagination: {
|
|
16
|
+
wrapperClass: string;
|
|
17
|
+
activeClass: string;
|
|
18
|
+
disabledClass: string;
|
|
19
|
+
pageClass: string;
|
|
20
|
+
linkClass: string;
|
|
21
|
+
paginationClass: string;
|
|
22
|
+
paginationInfoClass: string;
|
|
23
|
+
dropdownClass: string;
|
|
24
|
+
icons: {
|
|
25
|
+
first: string;
|
|
26
|
+
prev: string;
|
|
27
|
+
next: string;
|
|
28
|
+
last: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
paginationInfo: {
|
|
32
|
+
infoClass: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { VuetableContext } from './VuetableContext';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
detailComponent: {
|
|
4
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
rowData: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
rowIndex: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
options: {
|
|
16
|
+
type: ObjectConstructor;
|
|
17
|
+
default: () => {};
|
|
18
|
+
};
|
|
19
|
+
}>, {
|
|
20
|
+
tableContext: VuetableContext;
|
|
21
|
+
vuetable: import('vue').ComputedRef<any>;
|
|
22
|
+
resolvedDetailComponent: import('vue').ComputedRef<string | import('vue').Raw<Record<string, any>>>;
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
+
detailComponent: {
|
|
25
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
rowData: {
|
|
29
|
+
type: ObjectConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
rowIndex: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
options: {
|
|
37
|
+
type: ObjectConstructor;
|
|
38
|
+
default: () => {};
|
|
39
|
+
};
|
|
40
|
+
}>> & Readonly<{}>, {
|
|
41
|
+
detailComponent: string | Record<string, any>;
|
|
42
|
+
options: Record<string, any>;
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { VuetableContext } from './VuetableContext';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
rowData: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
required: false;
|
|
6
|
+
};
|
|
7
|
+
rowIndex: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
};
|
|
11
|
+
rowField: {
|
|
12
|
+
type: ObjectConstructor;
|
|
13
|
+
required: false;
|
|
14
|
+
default: null;
|
|
15
|
+
};
|
|
16
|
+
isHeader: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
title: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: false;
|
|
24
|
+
};
|
|
25
|
+
}>, {
|
|
26
|
+
vuetable: VuetableContext;
|
|
27
|
+
checkbox: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
28
|
+
isIndeterminate: import('vue').ComputedRef<boolean>;
|
|
29
|
+
toggleCheckbox: (dataItem: {
|
|
30
|
+
[key: string]: unknown;
|
|
31
|
+
} | undefined, event: Event) => void;
|
|
32
|
+
toggleAllCheckbox: (event: Event) => void;
|
|
33
|
+
isSelected: (rowData: {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
} | undefined) => boolean;
|
|
36
|
+
isAllItemsInCurrentPageSelected: () => boolean;
|
|
37
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
38
|
+
rowData: {
|
|
39
|
+
type: ObjectConstructor;
|
|
40
|
+
required: false;
|
|
41
|
+
};
|
|
42
|
+
rowIndex: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
required: false;
|
|
45
|
+
};
|
|
46
|
+
rowField: {
|
|
47
|
+
type: ObjectConstructor;
|
|
48
|
+
required: false;
|
|
49
|
+
default: null;
|
|
50
|
+
};
|
|
51
|
+
isHeader: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
required: false;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
title: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
required: false;
|
|
59
|
+
};
|
|
60
|
+
}>> & Readonly<{}>, {
|
|
61
|
+
rowField: Record<string, any>;
|
|
62
|
+
isHeader: boolean;
|
|
63
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
64
|
+
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {
|
|
2
|
+
toggleCheckbox(dataItem: any, event: Event & {
|
|
3
|
+
target: {
|
|
4
|
+
checked: boolean;
|
|
5
|
+
};
|
|
6
|
+
}): void;
|
|
7
|
+
toggleAllCheckbox(event: Event & {
|
|
8
|
+
target: {
|
|
9
|
+
checked: boolean;
|
|
10
|
+
};
|
|
11
|
+
}): void;
|
|
12
|
+
isSelected(rowData: any): any;
|
|
13
|
+
isAllItemsInCurrentPageSelected(): boolean | undefined;
|
|
14
|
+
}, import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
15
|
+
rowData: {
|
|
16
|
+
type: ObjectConstructor;
|
|
17
|
+
default: null;
|
|
18
|
+
};
|
|
19
|
+
rowIndex: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
};
|
|
22
|
+
rowField: {
|
|
23
|
+
type: ObjectConstructor;
|
|
24
|
+
};
|
|
25
|
+
isHeader: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
title: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
vuetable: {
|
|
34
|
+
type: ObjectConstructor;
|
|
35
|
+
default: null;
|
|
36
|
+
};
|
|
37
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
38
|
+
rowData: {
|
|
39
|
+
type: ObjectConstructor;
|
|
40
|
+
default: null;
|
|
41
|
+
};
|
|
42
|
+
rowIndex: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
};
|
|
45
|
+
rowField: {
|
|
46
|
+
type: ObjectConstructor;
|
|
47
|
+
};
|
|
48
|
+
isHeader: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
title: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
vuetable: {
|
|
57
|
+
type: ObjectConstructor;
|
|
58
|
+
default: null;
|
|
59
|
+
};
|
|
60
|
+
}>> & Readonly<{}>, {
|
|
61
|
+
rowData: Record<string, any>;
|
|
62
|
+
isHeader: boolean;
|
|
63
|
+
title: string;
|
|
64
|
+
vuetable: Record<string, any>;
|
|
65
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
66
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { VuetableContext } from './VuetableContext';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
isHeader: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
required: false;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
title: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
required: false;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}>, {
|
|
14
|
+
vuetable: VuetableContext;
|
|
15
|
+
renderIconTag: (classes: string[], options?: string) => any;
|
|
16
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
isHeader: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
required: false;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
title: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
required: false;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
isHeader: boolean;
|
|
29
|
+
title: string;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
rowData: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
6
|
+
rowIndex: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
};
|
|
9
|
+
rowField: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
};
|
|
12
|
+
isHeader: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
title: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
vuetable: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
default: null;
|
|
23
|
+
};
|
|
24
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
25
|
+
rowData: {
|
|
26
|
+
type: ObjectConstructor;
|
|
27
|
+
default: null;
|
|
28
|
+
};
|
|
29
|
+
rowIndex: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
};
|
|
32
|
+
rowField: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
};
|
|
35
|
+
isHeader: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
title: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
vuetable: {
|
|
44
|
+
type: ObjectConstructor;
|
|
45
|
+
default: null;
|
|
46
|
+
};
|
|
47
|
+
}>> & Readonly<{}>, {
|
|
48
|
+
rowData: Record<string, any>;
|
|
49
|
+
isHeader: boolean;
|
|
50
|
+
title: string;
|
|
51
|
+
vuetable: Record<string, any>;
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
53
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { VuetableContext } from './VuetableContext';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
rowIndex: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
required: false;
|
|
6
|
+
default: number;
|
|
7
|
+
};
|
|
8
|
+
isHeader: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
required: false;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
title: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: false;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}>, {
|
|
19
|
+
vuetable: VuetableContext;
|
|
20
|
+
renderSequence: () => number;
|
|
21
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
22
|
+
rowIndex: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
required: false;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
isHeader: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
required: false;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
title: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
}>> & Readonly<{}>, {
|
|
38
|
+
rowIndex: number;
|
|
39
|
+
isHeader: boolean;
|
|
40
|
+
title: string;
|
|
41
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
css: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
onEachSide: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
firstPage: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
}>, {
|
|
18
|
+
tableCss: {
|
|
19
|
+
wrapperClass: string;
|
|
20
|
+
activeClass: string;
|
|
21
|
+
disabledClass: string;
|
|
22
|
+
pageClass: string;
|
|
23
|
+
linkClass: string;
|
|
24
|
+
paginationClass: string;
|
|
25
|
+
paginationInfoClass: string;
|
|
26
|
+
dropdownClass: string;
|
|
27
|
+
icons: {
|
|
28
|
+
first: string;
|
|
29
|
+
prev: string;
|
|
30
|
+
next: string;
|
|
31
|
+
last: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
tablePagination: import('vue').Ref<import('./useVuetablePagination').TablePagination | null, import('./useVuetablePagination').TablePagination | null>;
|
|
35
|
+
totalPage: import('vue').ComputedRef<number>;
|
|
36
|
+
lastPage: import('vue').ComputedRef<number>;
|
|
37
|
+
isOnFirstPage: import('vue').ComputedRef<boolean>;
|
|
38
|
+
isOnLastPage: import('vue').ComputedRef<boolean>;
|
|
39
|
+
notEnoughPages: import('vue').ComputedRef<boolean>;
|
|
40
|
+
windowSize: import('vue').ComputedRef<number>;
|
|
41
|
+
windowStart: import('vue').ComputedRef<number>;
|
|
42
|
+
isCurrentPage: (page: number) => boolean;
|
|
43
|
+
setPaginationData: (value: import('./useVuetablePagination').TablePagination | null) => void;
|
|
44
|
+
resetData: () => void;
|
|
45
|
+
loadPage: (page: string | number) => void;
|
|
46
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "vuetable-pagination:change-page"[], "vuetable-pagination:change-page", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
47
|
+
css: {
|
|
48
|
+
type: ObjectConstructor;
|
|
49
|
+
required: false;
|
|
50
|
+
default: () => {};
|
|
51
|
+
};
|
|
52
|
+
onEachSide: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
required: false;
|
|
55
|
+
default: number;
|
|
56
|
+
};
|
|
57
|
+
firstPage: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
required: false;
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
62
|
+
}>> & Readonly<{
|
|
63
|
+
"onVuetable-pagination:change-page"?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
}>, {
|
|
65
|
+
css: Record<string, any>;
|
|
66
|
+
firstPage: number;
|
|
67
|
+
onEachSide: number;
|
|
68
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
69
|
+
export default _default;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
css: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
pageText: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
onEachSide: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
firstPage: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
required: false;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
}>, {
|
|
23
|
+
emitter: import('mitt').Emitter<Record<import('mitt').EventType, unknown>>;
|
|
24
|
+
tableCss: {
|
|
25
|
+
wrapperClass: string;
|
|
26
|
+
activeClass: string;
|
|
27
|
+
disabledClass: string;
|
|
28
|
+
pageClass: string;
|
|
29
|
+
linkClass: string;
|
|
30
|
+
paginationClass: string;
|
|
31
|
+
paginationInfoClass: string;
|
|
32
|
+
dropdownClass: string;
|
|
33
|
+
icons: {
|
|
34
|
+
first: string;
|
|
35
|
+
prev: string;
|
|
36
|
+
next: string;
|
|
37
|
+
last: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
tablePagination: import('vue').Ref<import('./useVuetablePagination.ts').TablePagination | null, import('./useVuetablePagination.ts').TablePagination | null>;
|
|
41
|
+
totalPage: import('vue').ComputedRef<number>;
|
|
42
|
+
lastPage: import('vue').ComputedRef<number>;
|
|
43
|
+
isOnFirstPage: import('vue').ComputedRef<boolean>;
|
|
44
|
+
isOnLastPage: import('vue').ComputedRef<boolean>;
|
|
45
|
+
notEnoughPages: import('vue').ComputedRef<boolean>;
|
|
46
|
+
windowSize: import('vue').ComputedRef<number>;
|
|
47
|
+
windowStart: import('vue').ComputedRef<number>;
|
|
48
|
+
isCurrentPage: (page: number) => boolean;
|
|
49
|
+
setPaginationData: (value: import('./useVuetablePagination.ts').TablePagination | null) => void;
|
|
50
|
+
resetData: () => void;
|
|
51
|
+
loadPage: (page: string | number) => void;
|
|
52
|
+
onPageSelected: (event: Event) => void;
|
|
53
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "vuetable-pagination:change-page"[], "vuetable-pagination:change-page", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
54
|
+
css: {
|
|
55
|
+
type: ObjectConstructor;
|
|
56
|
+
required: false;
|
|
57
|
+
default: () => {};
|
|
58
|
+
};
|
|
59
|
+
pageText: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
required: false;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
onEachSide: {
|
|
65
|
+
type: NumberConstructor;
|
|
66
|
+
required: false;
|
|
67
|
+
default: number;
|
|
68
|
+
};
|
|
69
|
+
firstPage: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
required: false;
|
|
72
|
+
default: number;
|
|
73
|
+
};
|
|
74
|
+
}>> & Readonly<{
|
|
75
|
+
"onVuetable-pagination:change-page"?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
}>, {
|
|
77
|
+
css: Record<string, any>;
|
|
78
|
+
firstPage: number;
|
|
79
|
+
onEachSide: number;
|
|
80
|
+
pageText: string;
|
|
81
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
82
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
css: {
|
|
3
|
+
type: null;
|
|
4
|
+
required: false;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
infoTemplate: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
noDataTemplate: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
}>, {
|
|
18
|
+
tablePagination: import('vue').Ref<import('./useVuetablePaginationInfo.ts').TablePagination | null, import('./useVuetablePaginationInfo.ts').TablePagination | null>;
|
|
19
|
+
paginationInfo: import('vue').ComputedRef<string>;
|
|
20
|
+
setPaginationData: (value: import('./useVuetablePaginationInfo.ts').TablePagination | null) => void;
|
|
21
|
+
resetData: () => void;
|
|
22
|
+
tableCss: import('vue').Ref<any, any>;
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
+
css: {
|
|
25
|
+
type: null;
|
|
26
|
+
required: false;
|
|
27
|
+
default: () => {};
|
|
28
|
+
};
|
|
29
|
+
infoTemplate: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
required: false;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
noDataTemplate: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
required: false;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{}>, {
|
|
40
|
+
css: any;
|
|
41
|
+
noDataTemplate: string;
|
|
42
|
+
infoTemplate: string;
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
interface TablePagination {
|
|
2
|
+
from: number;
|
|
3
|
+
to: number;
|
|
4
|
+
total: number;
|
|
5
|
+
}
|
|
6
|
+
interface Data {
|
|
7
|
+
tablePagination: TablePagination | null;
|
|
8
|
+
customCss: Record<string, any>;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
css: {
|
|
12
|
+
type: ObjectConstructor;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
15
|
+
infoTemplate: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
noDataTemplate: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
}>, {}, Data, {
|
|
24
|
+
paginationInfo(): string;
|
|
25
|
+
}, {
|
|
26
|
+
mergeCss(): void;
|
|
27
|
+
setPaginationData(tablePagination: TablePagination): void;
|
|
28
|
+
resetData(): void;
|
|
29
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
30
|
+
css: {
|
|
31
|
+
type: ObjectConstructor;
|
|
32
|
+
default: () => {};
|
|
33
|
+
};
|
|
34
|
+
infoTemplate: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
noDataTemplate: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
}>> & Readonly<{}>, {
|
|
43
|
+
css: Record<string, any>;
|
|
44
|
+
noDataTemplate: string;
|
|
45
|
+
infoTemplate: string;
|
|
46
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
export default _default;
|