@syook/react-tabulous 3.0.3 → 4.0.0-beta-0.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/README.md +206 -197
- package/lib/index.esm.js +19 -0
- package/lib/index.esm.js.map +1 -0
- package/lib/index.js +19 -0
- package/lib/index.js.map +1 -0
- package/lib/types/App.d.ts +4 -0
- package/lib/types/__tests__/reactTabulous/components/base/gridBody.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/base/gridFooterPlaceholder.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/bulkAction/bulkActions.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/cell/columnCell.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/columnBody/columnBody.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/columnHeaders/columnHeaderCheckbox.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/columnHeaders/columnHeaderItem.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/columnHeaders/columnHeaderMenu.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/columnHeaders/columnHeaders.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/containers/gridRoot.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/filter/index.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/filter/inputCategories.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/gridHeader.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/pagination/pagination.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/toolbar/gridToolbar.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/toolbar/gridToolbarColumns.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/toolbar/gridToolbarDensity.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/toolbar/gridToolbarExport.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/toolbar/gridToolbarFilter.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/toolbar/gridToolbarQuickFilter.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/widgets/button/button.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/widgets/checkbox.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/widgets/divider.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/widgets/icon.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/widgets/iconButton/iconButton.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/widgets/input/input.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/widgets/inputError/index.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/widgets/inputLabel/index.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/widgets/loader.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/widgets/menu.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/widgets/popup/popup.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/widgets/select/select.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/widgets/switch.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/components/widgets/typography.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/context/dataGridContextProvider.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/helpers/classnames.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/helpers/debounce.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/helpers/getColumnsAndSearchKeys.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/helpers/toCamelCase.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/hooks/useDragHandler.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/hooks/useGridColumn.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/hooks/useGridColumnHeaders.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/hooks/useGridDensity.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/hooks/useGridExport.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/hooks/useGridFilter.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/hooks/useGridPagination.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/hooks/useGridPin.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/hooks/useGridResize.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/hooks/useGridRootProps.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/hooks/useGridRowSelection.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/hooks/useGridSearch.test.d.ts +1 -0
- package/lib/types/__tests__/reactTabulous/hooks/useGridSort.test.d.ts +1 -0
- package/lib/types/data/index.d.ts +83 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/reactTabulous/components/base/gridBody.d.ts +2 -0
- package/lib/types/reactTabulous/components/base/gridFooterPlaceholder.d.ts +2 -0
- package/lib/types/reactTabulous/components/base/index.d.ts +2 -0
- package/lib/types/reactTabulous/components/bulkAction/index.d.ts +9 -0
- package/lib/types/reactTabulous/components/cell/columnCell.d.ts +12 -0
- package/lib/types/reactTabulous/components/cell/gridActionsCellItem.d.ts +10 -0
- package/lib/types/reactTabulous/components/columnBody/columnBody.d.ts +2 -0
- package/lib/types/reactTabulous/components/columnBody/index.d.ts +1 -0
- package/lib/types/reactTabulous/components/columnHeaders/columnHeaderCheckbox.d.ts +7 -0
- package/lib/types/reactTabulous/components/columnHeaders/columnHeaderItem.d.ts +31 -0
- package/lib/types/reactTabulous/components/columnHeaders/columnHeaderMenu.d.ts +18 -0
- package/lib/types/reactTabulous/components/columnHeaders/columnHeaders.d.ts +2 -0
- package/lib/types/reactTabulous/components/columnHeaders/index.d.ts +1 -0
- package/lib/types/reactTabulous/components/containers/gridRoot.d.ts +2 -0
- package/lib/types/reactTabulous/components/containers/index.d.ts +1 -0
- package/lib/types/reactTabulous/components/filter/index.d.ts +13 -0
- package/lib/types/reactTabulous/components/filter/inputCategories.d.ts +13 -0
- package/lib/types/reactTabulous/components/gridHeader.d.ts +2 -0
- package/lib/types/reactTabulous/components/index.d.ts +3 -0
- package/lib/types/reactTabulous/components/overlayWrapper/index.d.ts +1 -0
- package/lib/types/reactTabulous/components/overlayWrapper/overlayWrapper.d.ts +6 -0
- package/lib/types/reactTabulous/components/pagination/index.d.ts +1 -0
- package/lib/types/reactTabulous/components/pagination/pagination.d.ts +2 -0
- package/lib/types/reactTabulous/components/toolbar/gridToolbar.d.ts +6 -0
- package/lib/types/reactTabulous/components/toolbar/gridToolbarColumns.d.ts +2 -0
- package/lib/types/reactTabulous/components/toolbar/gridToolbarDensity.d.ts +2 -0
- package/lib/types/reactTabulous/components/toolbar/gridToolbarExport.d.ts +2 -0
- package/lib/types/reactTabulous/components/toolbar/gridToolbarFilter.d.ts +2 -0
- package/lib/types/reactTabulous/components/toolbar/gridToolbarQuickFilter.d.ts +2 -0
- package/lib/types/reactTabulous/components/toolbar/index.d.ts +6 -0
- package/lib/types/reactTabulous/components/widgets/button/buttonStyle.d.ts +5 -0
- package/lib/types/reactTabulous/components/widgets/button/index.d.ts +21 -0
- package/lib/types/reactTabulous/components/widgets/checkbox.d.ts +7 -0
- package/lib/types/reactTabulous/components/widgets/divider.d.ts +2 -0
- package/lib/types/reactTabulous/components/widgets/icon.d.ts +41 -0
- package/lib/types/reactTabulous/components/widgets/iconButton/index.d.ts +12 -0
- package/lib/types/reactTabulous/components/widgets/index.d.ts +12 -0
- package/lib/types/reactTabulous/components/widgets/input/index.d.ts +26 -0
- package/lib/types/reactTabulous/components/widgets/input/inputStyle.d.ts +5 -0
- package/lib/types/reactTabulous/components/widgets/inputError/index.d.ts +8 -0
- package/lib/types/reactTabulous/components/widgets/inputLabel/index.d.ts +13 -0
- package/lib/types/reactTabulous/components/widgets/loader.d.ts +1 -0
- package/lib/types/reactTabulous/components/widgets/menu.d.ts +16 -0
- package/lib/types/reactTabulous/components/widgets/popup/index.d.ts +12 -0
- package/lib/types/reactTabulous/components/widgets/select/index.d.ts +13 -0
- package/lib/types/reactTabulous/components/widgets/select/selectStyle.d.ts +5 -0
- package/lib/types/reactTabulous/components/widgets/switch.d.ts +8 -0
- package/lib/types/reactTabulous/components/widgets/typography.d.ts +28 -0
- package/lib/types/reactTabulous/constant/index.d.ts +10 -0
- package/lib/types/reactTabulous/constant/noRowsOverlay.d.ts +2 -0
- package/lib/types/reactTabulous/context/dataGridContextProvider.d.ts +6 -0
- package/lib/types/reactTabulous/context/dataGridRootPropsContext.d.ts +3 -0
- package/lib/types/reactTabulous/context/index.d.ts +1 -0
- package/lib/types/reactTabulous/context/test-utils.d.ts +5 -0
- package/lib/types/reactTabulous/helpers/classnames.d.ts +2 -0
- package/lib/types/reactTabulous/helpers/debounce.d.ts +1 -0
- package/lib/types/reactTabulous/helpers/getColumnsAndSearchKeys.d.ts +5 -0
- package/lib/types/reactTabulous/helpers/toCamelCase.d.ts +1 -0
- package/lib/types/reactTabulous/hooks/useClickAwayListener.d.ts +2 -0
- package/lib/types/reactTabulous/hooks/useDragHandler.d.ts +8 -0
- package/lib/types/reactTabulous/hooks/useGridColumn.d.ts +1 -0
- package/lib/types/reactTabulous/hooks/useGridColumnHeaders.d.ts +1 -0
- package/lib/types/reactTabulous/hooks/useGridDensity.d.ts +1 -0
- package/lib/types/reactTabulous/hooks/useGridExport.d.ts +3 -0
- package/lib/types/reactTabulous/hooks/useGridFilter.d.ts +6 -0
- package/lib/types/reactTabulous/hooks/useGridPagination.d.ts +1 -0
- package/lib/types/reactTabulous/hooks/useGridPin.d.ts +1 -0
- package/lib/types/reactTabulous/hooks/useGridResize.d.ts +1 -0
- package/lib/types/reactTabulous/hooks/useGridRootProps.d.ts +48 -0
- package/lib/types/reactTabulous/hooks/useGridRowSelection.d.ts +1 -0
- package/lib/types/reactTabulous/hooks/useGridSearch.d.ts +5 -0
- package/lib/types/reactTabulous/hooks/useGridSort.d.ts +4 -0
- package/lib/types/reactTabulous/index.d.ts +2 -0
- package/lib/types/reactTabulous/models/columnDef/columnDef.d.ts +72 -0
- package/lib/types/reactTabulous/models/columnDef/columnPin.d.ts +48 -0
- package/lib/types/reactTabulous/models/columnDef/columnType.d.ts +2 -0
- package/lib/types/reactTabulous/models/columnDef/index.d.ts +3 -0
- package/lib/types/reactTabulous/models/gridDensity.d.ts +4 -0
- package/lib/types/reactTabulous/models/gridFiltersModel.d.ts +9 -0
- package/lib/types/reactTabulous/models/gridRows.d.ts +2 -0
- package/lib/types/reactTabulous/models/gridSortModel.d.ts +1 -0
- package/lib/types/reactTabulous/models/index.d.ts +7 -0
- package/lib/types/reactTabulous/models/logger.d.ts +6 -0
- package/lib/types/reactTabulous/models/props/dataGridProps.d.ts +158 -0
- package/lib/types/reactTabulous/models/props/index.d.ts +1 -0
- package/lib/types/reactTabulous/reactTabulous/index.d.ts +1 -0
- package/lib/types/reactTabulous/reactTabulous/reactTabulous.d.ts +5 -0
- package/lib/types/reactTabulous/reactTabulous/reactTabulousStyle.d.ts +5 -0
- package/lib/types/setupTests.d.ts +1 -0
- package/package.json +107 -75
- package/CHANGELOG.md +0 -27
- package/lib/react-tabulous.min.js +0 -2
- package/lib/react-tabulous.min.js.LICENSE.txt +0 -20
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type GridColDef } from '../columnDef';
|
|
3
|
+
import { type GridDensity } from '../gridDensity';
|
|
4
|
+
import { type GridSortDirection } from '../gridSortModel';
|
|
5
|
+
import { type Logger } from '../logger';
|
|
6
|
+
import { type GridRowId, type GridValidRowModel } from '../gridRows';
|
|
7
|
+
import { type FilterFieldProps } from '../gridFiltersModel';
|
|
8
|
+
export interface DataGridPropsWithDefaultValues {
|
|
9
|
+
data: any;
|
|
10
|
+
rootData: [];
|
|
11
|
+
filteredAndSortedData: [];
|
|
12
|
+
defaultPageSize: number;
|
|
13
|
+
columns: GridColDef[];
|
|
14
|
+
density: GridDensity;
|
|
15
|
+
emptyPlaceholder: string;
|
|
16
|
+
loading: boolean;
|
|
17
|
+
page: number;
|
|
18
|
+
pageSizeOptions: number[];
|
|
19
|
+
sortingOrder: GridSortDirection[];
|
|
20
|
+
sortField: string;
|
|
21
|
+
sortFieldType: string;
|
|
22
|
+
sortBy: GridSortDirection;
|
|
23
|
+
logger: Logger;
|
|
24
|
+
showColumnToolbar: boolean;
|
|
25
|
+
showFilterToolbar: boolean;
|
|
26
|
+
searchKeys: string[];
|
|
27
|
+
searchText: string;
|
|
28
|
+
/**
|
|
29
|
+
* If `true`, column filters are disabled.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
disableColumnFilter: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* If `true`, the column menu is disabled.
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
disableColumnMenu: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* If `true`, the column pinning is disabled.
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
disableColumnPinning: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* If `true`, reordering columns is disabled.
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
disableColumnReorder: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* If `true`, resizing columns is disabled.
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
disableColumnResize: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* If `true`, hiding/showing columns is disabled.
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
disableColumnSelector: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* If `true`, the density selector is disabled.
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
disableDensitySelector: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* If `true`, sorting with multiple columns is disabled.
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
67
|
+
disableMultipleColumnsSorting: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* If `true`, quick search will be disabled.
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
disableSearch: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* If `true`, export will be disabled.
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
disableColumnExport: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* If `true`, there won't be any footer or pagination.
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
82
|
+
hideFooter: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* If `true`, the row count in pagination component in the footer is hidden.
|
|
85
|
+
* @default false
|
|
86
|
+
*/
|
|
87
|
+
hideFooterRowCount: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* If `true`, the pagination component in the footer is hidden but row count will be shown.
|
|
90
|
+
* @default false
|
|
91
|
+
*/
|
|
92
|
+
hidePagination: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* If `true`, the selected row count in the footer is hidden.
|
|
95
|
+
* @default false
|
|
96
|
+
*/
|
|
97
|
+
pagination: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Pagination can be processed on the server or client-side.
|
|
100
|
+
* Set it to 'client' if you would like to handle the pagination on the client-side.
|
|
101
|
+
* Set it to 'server' if you would like to handle the pagination on the server-side.
|
|
102
|
+
* @default "client"
|
|
103
|
+
*/
|
|
104
|
+
filters: FilterFieldProps[];
|
|
105
|
+
/**
|
|
106
|
+
* If `true`, the grid will have checkbox selection.
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
checkboxSelection: boolean;
|
|
110
|
+
selectedRows: GridRowId[];
|
|
111
|
+
paginatedSelectedRows: GridRowId[];
|
|
112
|
+
/**
|
|
113
|
+
* Bulk actions to be displayed in the toolbar.
|
|
114
|
+
* @default []
|
|
115
|
+
* @example ['delete']
|
|
116
|
+
*/
|
|
117
|
+
bulkActions: string[] | any[];
|
|
118
|
+
/**
|
|
119
|
+
* Callback fired when a bulk action is clicked.
|
|
120
|
+
* @param {string} action The action clicked.
|
|
121
|
+
* @param {GridRowId[]} selectedRows The selected rows.
|
|
122
|
+
*/
|
|
123
|
+
onBulkActionClick: (action: string, selectedRows: GridRowId[]) => void;
|
|
124
|
+
/**
|
|
125
|
+
* The text to be displayed when the grid is empty.
|
|
126
|
+
* @default 'No rows'
|
|
127
|
+
* @example 'No rows'
|
|
128
|
+
* @example <span>No rows</span>
|
|
129
|
+
* @example <MyEmptyPlaceholder />
|
|
130
|
+
*/
|
|
131
|
+
noRowsOverlay: ReactNode | string;
|
|
132
|
+
/**
|
|
133
|
+
* The custom component to render next to search.
|
|
134
|
+
*/
|
|
135
|
+
children: null | ((filteredAndSortedData: any, searchText: string, columns: any) => JSX.Element | ReactNode);
|
|
136
|
+
/**
|
|
137
|
+
* Callback fired when the page, page size, sort or sort direction is changed.
|
|
138
|
+
* @param {number} page The page selected.
|
|
139
|
+
* @param {number} pageSize The number of rows in a page.
|
|
140
|
+
* @param {string} sort The field sorted.
|
|
141
|
+
* @param {string} sortDirection The direction of the sort.
|
|
142
|
+
* @param {boolean} fetchOnPageChange If `true`, the callback is fired when the page is changed.
|
|
143
|
+
*/
|
|
144
|
+
fetchOnPageChange: null | ((page: number, pageSize: number, searchText: string, sort: string, sortDirection: GridSortDirection) => void);
|
|
145
|
+
/**
|
|
146
|
+
* for paginated api as the table does not have all the data to calculate the total number of rows
|
|
147
|
+
*/
|
|
148
|
+
rowsCount: null | number;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* if the export is custom.
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
customExport: null | ((filteredAndSortedData: any, searchText: string, columns: any) => void);
|
|
155
|
+
}
|
|
156
|
+
export type DataGridProps<R extends GridValidRowModel = any> = Partial<DataGridPropsWithDefaultValues> & {
|
|
157
|
+
pagination?: true;
|
|
158
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dataGridProps';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './reactTabulous';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DataGridProps, type GridValidRowModel } from '../models';
|
|
3
|
+
type DataGridComponent = React.ForwardRefExoticComponent<DataGridProps<GridValidRowModel> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export declare const ReactTabulous: DataGridComponent;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DataGridStyle: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/package.json
CHANGED
|
@@ -1,77 +1,109 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
2
|
+
"name": "@syook/react-tabulous",
|
|
3
|
+
"version": "4.0.0-beta-0.1",
|
|
4
|
+
"description": "Terrifically fabulous React Table",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"module": "lib/index.esm.js",
|
|
7
|
+
"types": "lib/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"README.md",
|
|
10
|
+
"lib"
|
|
11
|
+
],
|
|
12
|
+
"keywords": [
|
|
13
|
+
"syook",
|
|
14
|
+
"table",
|
|
15
|
+
"react"
|
|
16
|
+
],
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/syook/react-tabulous.git"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"author": "Syook",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/syook/react-tabulous/issues"
|
|
27
|
+
},
|
|
28
|
+
"lint-staged": {
|
|
29
|
+
"*.{js,jsx,json,css}": [
|
|
30
|
+
"npm run prettier:fix"
|
|
31
|
+
],
|
|
32
|
+
"*.{js, jsx, ts, tsx}": [
|
|
33
|
+
"npm run lint:fix"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"prepare": "husky install",
|
|
38
|
+
"start": "react-scripts start",
|
|
39
|
+
"build": "react-scripts build",
|
|
40
|
+
"test": "react-scripts test",
|
|
41
|
+
"coverage": "npm test -- --coverage --watchAll --collectCoverageFrom='!src/data/**/*.{ts,tsx}'",
|
|
42
|
+
"eject": "react-scripts eject",
|
|
43
|
+
"lint": "eslint --ignore-path .eslintignore ./src",
|
|
44
|
+
"lint:fix": "npm run lint --fix",
|
|
45
|
+
"prettier": "prettier . -c --config .prettierrc",
|
|
46
|
+
"prettier:fix": "prettier . -c --config .prettierrc --write",
|
|
47
|
+
"rollup": "rm -rf lib && rollup -c",
|
|
48
|
+
"build:dev": "npm run rollup && npm pack",
|
|
49
|
+
"npm-publish": "yarn install && npm run build:dev && npm publish"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@popperjs/core": "2.11.7"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@emotion/react": "11.11.0",
|
|
56
|
+
"@emotion/styled": "11.11.0",
|
|
57
|
+
"@rollup/plugin-babel": "6.0.3",
|
|
58
|
+
"@rollup/plugin-commonjs": "^25.0.0",
|
|
59
|
+
"@rollup/plugin-image": "3.0.2",
|
|
60
|
+
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
61
|
+
"@rollup/plugin-terser": "0.4.3",
|
|
62
|
+
"@rollup/plugin-typescript": "11.1.1",
|
|
63
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
64
|
+
"@testing-library/react": "^14.0.0",
|
|
65
|
+
"@testing-library/user-event": "^14.4.3",
|
|
66
|
+
"@types/jest": "^29.5.1",
|
|
67
|
+
"@types/node": "^20.2.1",
|
|
68
|
+
"@types/react": "^18.2.6",
|
|
69
|
+
"@types/react-dom": "^18.2.4",
|
|
70
|
+
"@typescript-eslint/eslint-plugin": "^5.59.6",
|
|
71
|
+
"eslint": "^8.40.0",
|
|
72
|
+
"eslint-config-prettier": "8.8.0",
|
|
73
|
+
"eslint-config-standard-with-typescript": "^34.0.1",
|
|
74
|
+
"eslint-plugin-import": "^2.27.5",
|
|
75
|
+
"eslint-plugin-n": "^16.0.0",
|
|
76
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
77
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
78
|
+
"eslint-plugin-react": "^7.32.2",
|
|
79
|
+
"eslint-plugin-react-hooks": "4.6.0",
|
|
80
|
+
"husky": "^8.0.3",
|
|
81
|
+
"prettier": "2.8.8",
|
|
82
|
+
"react": "^18.2.0",
|
|
83
|
+
"react-dom": "^18.2.0",
|
|
84
|
+
"react-scripts": "5.0.1",
|
|
85
|
+
"rollup": "^3.22.0",
|
|
86
|
+
"rollup-plugin-dts": "5.3.0",
|
|
87
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
88
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
89
|
+
"rollup-plugin-react-svg": "3.0.3",
|
|
90
|
+
"typescript": "^5.0.4",
|
|
91
|
+
"web-vitals": "^3.3.1"
|
|
92
|
+
},
|
|
93
|
+
"peerDependencies": {
|
|
94
|
+
"react": "^version",
|
|
95
|
+
"react-dom": "^version"
|
|
96
|
+
},
|
|
97
|
+
"browserslist": {
|
|
98
|
+
"production": [
|
|
99
|
+
">0.2%",
|
|
100
|
+
"not dead",
|
|
101
|
+
"not op_mini all"
|
|
102
|
+
],
|
|
103
|
+
"development": [
|
|
104
|
+
"last 1 chrome version",
|
|
105
|
+
"last 1 firefox version",
|
|
106
|
+
"last 1 safari version"
|
|
107
|
+
]
|
|
108
|
+
}
|
|
77
109
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# react-tabulous change log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
Project versioning adheres to [Semantic Versioning](http://semver.org/).
|
|
6
|
-
|
|
7
|
-
Commit convention is based on [Conventional Commits](http://conventionalcommits.org).
|
|
8
|
-
|
|
9
|
-
Change log format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
10
|
-
|
|
11
|
-
## [Unreleased]
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
## [Released]
|
|
16
|
-
|
|
17
|
-
## [2.7.7](https://github.com/syook/react-tabulous/releases/tag/2.7.7) - 2021-07-08
|
|
18
|
-
|
|
19
|
-
### Fixes
|
|
20
|
-
|
|
21
|
-
- fix pagination not working on changing the rows per page option (#74)
|
|
22
|
-
|
|
23
|
-
## 2.7.6 - 2021-05-17
|
|
24
|
-
|
|
25
|
-
### Fixes
|
|
26
|
-
|
|
27
|
-
- Fix selected rows in bulk actions updating to object type (#79)
|