vueye-table 1.4.1 → 2.0.0-alpha.10

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.
Files changed (40) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +89 -202
  3. package/dist/components/core/VueyeTable/VueyeTable.vue.d.ts +65 -0
  4. package/dist/components/core/VueyeTable/api.d.ts +14 -0
  5. package/dist/components/core/VueyeTable/components/VueyeBody/VueyeBody.vue.d.ts +49 -0
  6. package/dist/components/core/VueyeTable/components/VueyeBody/api.d.ts +7 -0
  7. package/dist/components/core/VueyeTable/components/VueyeBody/index.d.ts +2 -0
  8. package/dist/components/core/VueyeTable/components/VueyeDropdown/api.d.ts +20 -0
  9. package/dist/components/core/VueyeTable/components/VueyeDropdown/index.d.ts +4 -0
  10. package/dist/components/core/VueyeTable/components/VueyeHead/VueyeHead.vue.d.ts +22 -0
  11. package/dist/components/core/VueyeTable/components/VueyeHead/index.d.ts +2 -0
  12. package/dist/components/core/VueyeTable/components/VueyePagination/VueyePagination.vue.d.ts +56 -0
  13. package/dist/components/core/VueyeTable/components/VueyePagination/api.d.ts +12 -0
  14. package/dist/components/core/VueyeTable/components/VueyePagination/index.d.ts +2 -0
  15. package/dist/components/core/VueyeTable/components/index.d.ts +4 -0
  16. package/dist/components/core/VueyeTable/composables/index.d.ts +4 -0
  17. package/dist/components/core/VueyeTable/composables/useHeaderKeys.d.ts +4 -0
  18. package/dist/components/core/VueyeTable/composables/usePagination.d.ts +11 -0
  19. package/dist/components/core/VueyeTable/index.d.ts +5 -0
  20. package/dist/components/core/VueyeTable/types/Column.d.ts +55 -0
  21. package/dist/components/core/VueyeTable/types/Row.d.ts +3 -0
  22. package/dist/components/core/VueyeTable/types/Utils.d.ts +19 -0
  23. package/dist/components/core/VueyeTable/types/index.d.ts +3 -0
  24. package/dist/components/core/VueyeTable/utils/body.d.ts +4 -0
  25. package/dist/components/core/VueyeTable/utils/header.d.ts +7 -0
  26. package/dist/components/core/VueyeTable/utils/humanize.d.ts +1 -0
  27. package/dist/components/core/VueyeTable/utils/index.d.ts +3 -0
  28. package/dist/components/index.d.ts +1 -0
  29. package/dist/composables/dark.d.ts +2 -0
  30. package/dist/composables/index.d.ts +1 -0
  31. package/dist/favicon.ico +0 -0
  32. package/dist/histoire-setup.d.ts +0 -0
  33. package/dist/index.d.ts +1 -0
  34. package/dist/main.d.ts +1 -0
  35. package/dist/style.css +1 -0
  36. package/dist/vueye-table.js +429 -0
  37. package/dist/vueye-table.umd.cjs +1 -0
  38. package/dist/white-logo.ico +0 -0
  39. package/package.json +92 -62
  40. package/build/vueye-table.common.js +0 -7473
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 radix-vue
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,202 +1,89 @@
1
- # Vueye Table
2
-
3
- Vueye data table is a responsive data table component based on [Vue.js](http://vuejs.org), it organizes
4
- your data per pages in order to navigate easily.
5
-
6
- ![Vueye](https://raw.githubusercontent.com/boussadjra/vueye-table/master/src/assets/vueye.png)
7
-
8
- This component allows you to :
9
-
10
- - Paginate data (server/client side)
11
- - Filter by field
12
- - Sort columns
13
- - Show only desired columns
14
- - Custom cells rendering
15
-
16
-
17
- ## Docs
18
-
19
- **[Documentation](https://boussadjra.github.io/vueye-table/)**
20
-
21
- [Boilerplate in codesandbox](https://codesandbox.io/s/bold-star-s7hgw) (update the component dependency to the latest version)
22
-
23
-
24
-
25
- ## Requirement
26
-
27
- - Vue.js ^2.6 + composition-api
28
- - It doesn't require any CSS framework
29
-
30
- ## Installation
31
-
32
- ```
33
- npm install vueye-table --save
34
- ```
35
-
36
- ## Usage
37
-
38
- ```js
39
- <template>
40
- <div id="app">
41
- <VueyeTable :data="employees" :columns="columns" title="Employees" filter-by="employee_salary">
42
- <template v-slot:employee_salary="{item}">
43
- <b
44
- v-if="item.employee_salary>100000"
45
- style="background:#3bb640;color:white"
46
- >{{item.employee_salary}}</b>
47
- <b v-else style="background:#ee4422;color:white">{{item.employee_salary}}</b>
48
- </template>
49
- <template v-slot:actions="{item}">
50
- <div class="ve-table-actions">
51
- <button class="ve-table-btn ve-table-btn-primary" @click="edit(item)">Edit</button>
52
- <button class="ve-table-btn ve-table-btn-danger" @click="deleteItem(item)">Delete</button>
53
- </div>
54
- </template>
55
- </VueyeTable>
56
- </div>
57
- </template>
58
-
59
- <script>
60
- import VueyeTable from "./components/VueyeTable.vue";
61
- import employees from "./assets/employees.json";
62
- export default {
63
- name: "App",
64
- data: () => ({
65
- employees: employees,
66
- columns: [
67
- {
68
- key: "id",
69
- label: "ID",
70
- sortable: true,
71
- type: "number",
72
- display: true
73
- },
74
- {
75
- key: "employee_name",
76
- label: "Employee Name",
77
- sortable: true,
78
- display: true
79
- },
80
- {
81
- key: "employee_salary",
82
- label: "Employee Salary",
83
- display: true,
84
- sortable: true
85
- },
86
- {
87
- key: "employee_age",
88
- label: "Employee Age",
89
- sortable: true
90
- },
91
- {
92
- key: "address.city",
93
- label: "Address",
94
- display: true,
95
- sortable: true
96
- },
97
- {
98
- key: "actions",
99
- label: "Actions",
100
- sortable: false,
101
- display: true
102
- }
103
- ],
104
- selectedRows: []
105
- }),
106
- methods: {
107
- edit(item) {
108
- //open a dialog to edit the selected item
109
- //or redirect to another page that contains
110
- // edit form
111
- },
112
- deleteItem(item) {
113
- this.employees = this.employees.filter(
114
- employee => employee.id !== item.id
115
- );
116
- }
117
- },
118
- components: {
119
- VueyeTable
120
- }
121
- };
122
- </script>
123
-
124
- <style lang="scss">
125
- #app {
126
- font-family: Avenir, Helvetica, Arial, sans-serif;
127
- -webkit-font-smoothing: antialiased;
128
- -moz-osx-font-smoothing: grayscale;
129
- text-align: center;
130
- color: #2c3e50;
131
- display: flex;
132
- justify-content: center;
133
- align-items: center;
134
- padding: 20px;
135
- }
136
-
137
- .ve-table {
138
- &-actions {
139
- width: 104px;
140
- display: flex;
141
- justify-content: space-around;
142
- align-items: center;
143
- }
144
- &-btn {
145
- height: 24px;
146
- min-width: 32px;
147
- padding: 0 8px;
148
- text-align: center;
149
- border-radius: 4px;
150
-
151
- cursor: pointer;
152
- justify-content: center;
153
- outline: none;
154
- border: none;
155
- position: relative;
156
- white-space: nowrap;
157
- &-primary {
158
- background: #3844cc;
159
- color: white;
160
- }
161
- &-danger {
162
- background: #e24e40;
163
- color: white;
164
- }
165
- }
166
- }
167
- </style>
168
-
169
-
170
- ```
171
-
172
- In main.js add `@vue/composition-api` plugin to make work with Vue.js 2 :
173
-
174
- ```js
175
- import Vue from 'vue';
176
- import App from './App.vue';
177
- import VueComp from '@vue/composition-api';
178
- Vue.config.productionTip = false;
179
-
180
- Vue.use(VueComp);
181
-
182
- new Vue({
183
- render: h => h(App),
184
- }).$mount('#app');
185
- ```
186
-
187
- ### Props
188
-
189
- | Name | Description |
190
- | --------------- | -------------------------------------------- |
191
- | title | the data table title |
192
- | columns | the attributes or columns |
193
- | data | JS array of object or json content |
194
- | filter-by | specify the default column for filter |
195
- | per-page-values | the array of per pages values |
196
- | per-page | the default per page |
197
- | select-rows | add checkbox columns in order to select rows |
198
- | v-model | returns the selected rows |
199
- | dense | Show table rows in small size |
200
- | striped | Apply striped style |
201
- | bordered | make the table bordered |
202
- | header-display | show/hide the table header |
1
+ # Vueye Table
2
+
3
+ Vueye Table is a Vue 3 component for displaying data in a table.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install vueye-table
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```vue
14
+ <template>
15
+ <VueyeTable
16
+ :data="data"
17
+ :columnHeaders="columnHeaders"
18
+ :itemValue="itemValue"
19
+ :perPage="perPage"
20
+ :currentPage="currentPage"
21
+ :perPageOptions="perPageOptions"
22
+ :loading="loading"
23
+ :selected="selected"
24
+ :selectMode="selectMode"
25
+ :caption="caption"
26
+ :summary="summary"
27
+ @update:loading="updateLoading"
28
+ @update:selected="updateSelected"
29
+ >
30
+ <template #headerCellContent.name="props">
31
+ {{ props.columnHeader.name }}
32
+ </template>
33
+ <template #itemCellContent.name="props">
34
+ {{ props.item.name }}
35
+ </template>
36
+ </VueyeTable>
37
+ </template>
38
+ ```
39
+
40
+ ### VueyeTableProps
41
+
42
+ | Prop Name | Type | Default Value | Description |
43
+ | --- | --- | --- | --- |
44
+ | data | TData[] | [] | An array of data for the table. |
45
+ | columnHeaders | TColumn[] or a function returning an array | [] | An array of column headers for the table. |
46
+ | itemValue | string | 'id' | The property name used as a unique identifier for each item. |
47
+ | perPage | number | 10 | The number of items displayed per page. |
48
+ | currentPage | number | 1 | The current page number. |
49
+ | perPageOptions | number[] or a function returning an array | [5, 10, 20, 30] | An array of options for the number of items per page. |
50
+ | loading | boolean | false | Indicates whether the table is in a loading state. |
51
+ | selected | TData[], Row[], or null | null | An array of selected items or rows. |
52
+ | selectMode | 'page' or 'all' | 'all' | The mode for selecting items: 'page' or 'all'. |
53
+ | caption | string | '' | The table's caption. |
54
+ | summary | string | '' | The table's summary. |
55
+
56
+ ### VueyeTableEmits
57
+
58
+ | Emit Name | Parameters | Description |
59
+ | --------------- | -------------- | ------------------------------------- |
60
+ | update:loading | value: boolean | Emits when the loading state changes. |
61
+ | update:selected | value: T[] | Emits when the selected items change. |
62
+
63
+ ### PaginationEmits
64
+
65
+ | Emit Name | Parameters | Description |
66
+ | ------------------ | ------------- | ------------------------------------------------ |
67
+ | update:currentPage | value: number | Emits when the current page changes. |
68
+ | update:perPage | value: number | Emits when the number of items per page changes. |
69
+
70
+ ### SlotHeader
71
+
72
+ The SlotHeader component defines various slots for customizing the table header.
73
+
74
+ - `headerCell.<ColumnKey>`: Slot for customizing the content of a specific column header.
75
+ - `headerCellContent.<ColumnKey>`: Slot for customizing the content within a specific column header cell.
76
+ - `headers`: Slot for customizing the entire table header, containing all column headers.
77
+ - `checkbox`: Slot for customizing the checkbox used for selecting all items.
78
+
79
+ ### SlotRow
80
+
81
+ The SlotRow component defines various slots for customizing the table rows.
82
+
83
+ - `itemCell.<ItemKey>`: Slot for customizing the content of a specific item cell within a row.
84
+ - `itemCellContent.<ItemKey>`: Slot for customizing the content within a specific item cell.
85
+ - `rows`: Slot for customizing the entire table rows, containing all rows.
86
+ - `row`: Slot for customizing a specific row.
87
+ - `checkbox`: Slot for customizing the checkbox used for selecting a specific row.
88
+
89
+ You can use these Markdown tables to document the props, emits, and slot definitions for the data table and pagination components in your Vue 3 project.
@@ -0,0 +1,65 @@
1
+ import type { ColumnHeader } from './types';
2
+ declare const _default: <TData extends Record<string, unknown>, TColumn extends ColumnHeader>(__VLS_props: {
3
+ caption?: string | undefined;
4
+ data: TData[];
5
+ summary?: string | undefined;
6
+ columnHeaders?: TColumn[] | undefined;
7
+ itemValue?: string | undefined;
8
+ perPage?: number | undefined;
9
+ currentPage?: number | undefined;
10
+ perPageOptions?: number[] | undefined;
11
+ loading?: boolean | undefined;
12
+ selectable?: boolean | undefined;
13
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
14
+ attrs: any;
15
+ slots: Readonly<import("./types").SlotHeaderCell<TData> & import("./types").SlotHeaderCellContent<TData> & {
16
+ caption: () => any;
17
+ summary: () => any;
18
+ }>;
19
+ emit: any;
20
+ } | undefined, __VLS_expose?: ((exposed: {}) => void) | undefined, __VLS_setup?: Promise<{
21
+ props: {
22
+ caption?: string | undefined;
23
+ data: TData[];
24
+ summary?: string | undefined;
25
+ columnHeaders?: TColumn[] | undefined;
26
+ itemValue?: string | undefined;
27
+ perPage?: number | undefined;
28
+ currentPage?: number | undefined;
29
+ perPageOptions?: number[] | undefined;
30
+ loading?: boolean | undefined;
31
+ selectable?: boolean | undefined;
32
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
33
+ expose(exposed: {}): void;
34
+ attrs: any;
35
+ slots: Readonly<import("./types").SlotHeaderCell<TData> & import("./types").SlotHeaderCellContent<TData> & {
36
+ caption: () => any;
37
+ summary: () => any;
38
+ }>;
39
+ emit: any;
40
+ }>) => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
+ [key: string]: any;
42
+ }> & {
43
+ __ctx?: {
44
+ props: {
45
+ caption?: string | undefined;
46
+ data: TData[];
47
+ summary?: string | undefined;
48
+ columnHeaders?: TColumn[] | undefined;
49
+ itemValue?: string | undefined;
50
+ perPage?: number | undefined;
51
+ currentPage?: number | undefined;
52
+ perPageOptions?: number[] | undefined;
53
+ loading?: boolean | undefined;
54
+ selectable?: boolean | undefined;
55
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
56
+ expose(exposed: {}): void;
57
+ attrs: any;
58
+ slots: Readonly<import("./types").SlotHeaderCell<TData> & import("./types").SlotHeaderCellContent<TData> & {
59
+ caption: () => any;
60
+ summary: () => any;
61
+ }>;
62
+ emit: any;
63
+ } | undefined;
64
+ };
65
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { InferDefaults } from './types';
2
+ export type VueyeTableProps<TColumn = any, TData = any> = {
3
+ data: TData[];
4
+ columnHeaders?: TColumn[];
5
+ itemValue?: string;
6
+ perPage?: number;
7
+ currentPage?: number;
8
+ perPageOptions?: number[];
9
+ loading?: boolean;
10
+ selectable?: boolean;
11
+ caption?: string;
12
+ summary?: string;
13
+ };
14
+ export declare const VueyeTablePropsDefaults: InferDefaults<VueyeTableProps>;
@@ -0,0 +1,49 @@
1
+ import { BodyProps } from './api';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ itemValue: {
4
+ type: globalThis.PropType<string>;
5
+ required: true;
6
+ default: (string | ((props: BodyProps) => string)) | undefined;
7
+ };
8
+ loading: {
9
+ type: globalThis.PropType<boolean>;
10
+ required: true;
11
+ default: (boolean | ((props: BodyProps) => boolean)) | undefined;
12
+ };
13
+ bodyRows: {
14
+ type: globalThis.PropType<import("../..").Row[]>;
15
+ required: true;
16
+ default: ((props: BodyProps) => import("../..").Row[]) | undefined;
17
+ };
18
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{
19
+ itemValue: {
20
+ type: globalThis.PropType<string>;
21
+ required: true;
22
+ default: (string | ((props: BodyProps) => string)) | undefined;
23
+ };
24
+ loading: {
25
+ type: globalThis.PropType<boolean>;
26
+ required: true;
27
+ default: (boolean | ((props: BodyProps) => boolean)) | undefined;
28
+ };
29
+ bodyRows: {
30
+ type: globalThis.PropType<import("../..").Row[]>;
31
+ required: true;
32
+ default: ((props: BodyProps) => import("../..").Row[]) | undefined;
33
+ };
34
+ }>>, {
35
+ itemValue: string;
36
+ loading: boolean;
37
+ bodyRows: import("../..").Row[];
38
+ }, {}>, {
39
+ default?(_: {
40
+ cell: any;
41
+ key: string;
42
+ }): any;
43
+ }>;
44
+ export default _default;
45
+ type __VLS_WithTemplateSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -0,0 +1,7 @@
1
+ import { InferDefaults, Row } from '../../types';
2
+ export type BodyProps = {
3
+ loading: boolean;
4
+ bodyRows: Row[];
5
+ itemValue: string;
6
+ };
7
+ export declare const bodyPropDefaults: InferDefaults<BodyProps>;
@@ -0,0 +1,2 @@
1
+ import VueyeBody from './VueyeBody.vue';
2
+ export { VueyeBody };
@@ -0,0 +1,20 @@
1
+ export type OptionValue = string | number | boolean | object | symbol;
2
+ interface Option {
3
+ content: OptionValue;
4
+ label: string;
5
+ }
6
+ export type DropdownProps = {
7
+ options: Option[];
8
+ modelValue: string | number;
9
+ label: string;
10
+ defaultValue?: Option;
11
+ };
12
+ export declare const dropdownPropsDefaults: {
13
+ options: () => never[];
14
+ modelValue: string;
15
+ label: string;
16
+ };
17
+ export type DropdownEmits = {
18
+ (event: 'update:modelValue', value: OptionValue): void;
19
+ };
20
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { OptionValue } from './api';
2
+ import VueyeDropdown from './VueyeDropdown.vue';
3
+ export { VueyeDropdown };
4
+ export type { OptionValue };
@@ -0,0 +1,22 @@
1
+ import type { ColumnHeader } from '../../types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ columnHeaders: {
4
+ type: globalThis.PropType<ColumnHeader[][]>;
5
+ required: true;
6
+ default: () => never[];
7
+ };
8
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{
9
+ columnHeaders: {
10
+ type: globalThis.PropType<ColumnHeader[][]>;
11
+ required: true;
12
+ default: () => never[];
13
+ };
14
+ }>>, {
15
+ columnHeaders: ColumnHeader[][];
16
+ }, {}>, Readonly<import("../../types").SlotHeaderCell<Record<string, string>> & import("../../types").SlotHeaderCellContent<Record<string, string>>>>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,2 @@
1
+ import VueyeHead from './VueyeHead.vue';
2
+ export { VueyeHead };
@@ -0,0 +1,56 @@
1
+ import { PaginationProps } from './api';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ perPage: {
4
+ type: globalThis.PropType<number>;
5
+ required: true;
6
+ default: (number | ((props: PaginationProps) => number)) | undefined;
7
+ };
8
+ currentPage: {
9
+ type: globalThis.PropType<number>;
10
+ required: true;
11
+ default: (number | ((props: PaginationProps) => number)) | undefined;
12
+ };
13
+ perPageOptions: {
14
+ type: globalThis.PropType<number[]>;
15
+ required: true;
16
+ default: ((props: PaginationProps) => number[]) | undefined;
17
+ };
18
+ total: {
19
+ type: globalThis.PropType<number>;
20
+ required: true;
21
+ default: (number | ((props: PaginationProps) => number)) | undefined;
22
+ };
23
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
+ "update:currentPage": (value: number) => void;
25
+ "update:perPage": (value: number) => void;
26
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{
27
+ perPage: {
28
+ type: globalThis.PropType<number>;
29
+ required: true;
30
+ default: (number | ((props: PaginationProps) => number)) | undefined;
31
+ };
32
+ currentPage: {
33
+ type: globalThis.PropType<number>;
34
+ required: true;
35
+ default: (number | ((props: PaginationProps) => number)) | undefined;
36
+ };
37
+ perPageOptions: {
38
+ type: globalThis.PropType<number[]>;
39
+ required: true;
40
+ default: ((props: PaginationProps) => number[]) | undefined;
41
+ };
42
+ total: {
43
+ type: globalThis.PropType<number>;
44
+ required: true;
45
+ default: (number | ((props: PaginationProps) => number)) | undefined;
46
+ };
47
+ }>> & {
48
+ "onUpdate:currentPage"?: ((value: number) => any) | undefined;
49
+ "onUpdate:perPage"?: ((value: number) => any) | undefined;
50
+ }, {
51
+ perPage: number;
52
+ currentPage: number;
53
+ perPageOptions: number[];
54
+ total: number;
55
+ }, {}>;
56
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { InferDefaults } from '../../types';
2
+ export interface PaginationProps {
3
+ perPage: number;
4
+ currentPage: number;
5
+ total: number;
6
+ perPageOptions: number[];
7
+ }
8
+ export interface PaginationEmits {
9
+ (event: 'update:currentPage', value: number): void;
10
+ (event: 'update:perPage', value: number): void;
11
+ }
12
+ export declare const paginationPropsDefaults: InferDefaults<PaginationProps>;
@@ -0,0 +1,2 @@
1
+ import VueyePagination from './VueyePagination.vue';
2
+ export { VueyePagination };
@@ -0,0 +1,4 @@
1
+ export * from './VueyeDropdown';
2
+ export * from './VueyeBody';
3
+ export * from './VueyeHead';
4
+ export * from './VueyePagination';
@@ -0,0 +1,4 @@
1
+ export * from './useHeaderKeys';
2
+ export * from './usePagination';
3
+ export * from './useBodyRows';
4
+ export * from './useHeaders';
@@ -0,0 +1,4 @@
1
+ import { ColumnHeader } from '../types';
2
+ export declare function useHeaderKeys(columnHeaders: ColumnHeader[][]): {
3
+ headerKeys: globalThis.ComputedRef<string[]>;
4
+ };
@@ -0,0 +1,11 @@
1
+ export declare function usePagination(props?: {
2
+ perPage?: number;
3
+ currentPage?: number;
4
+ }): {
5
+ pagination: globalThis.Ref<{
6
+ perPage: number;
7
+ currentPage: number;
8
+ }>;
9
+ updateCurrentPage: (page: number) => void;
10
+ updatePerPage: (perPage: number) => void;
11
+ };
@@ -0,0 +1,5 @@
1
+ import VueyeTable from './VueyeTable.vue';
2
+ export * from './types';
3
+ export * from './composables';
4
+ export * from './utils';
5
+ export { VueyeTable };