@syook/react-tabulous 4.0.3 → 4.0.5
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 +1 -1
- package/lib/index.d.ts +334 -0
- package/lib/index.esm.js +2 -3
- package/lib/index.js +2 -3
- package/lib/types/reactTabulous/helpers/select.d.ts +1 -1
- package/lib/types/reactTabulous/hooks/useDebounce.d.ts +2 -0
- package/lib/types/reactTabulous/models/columnDef/columnDef.d.ts +5 -0
- package/package.json +10 -13
- package/lib/index.esm.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/types/__tests__/reactTabulous/helpers/debounce.test.d.ts +0 -1
- package/lib/types/reactTabulous/helpers/debounce.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type ValueType = string | number | boolean;
|
|
2
2
|
export interface OptionInterface {
|
|
3
3
|
value: ValueType;
|
|
4
|
-
label: string;
|
|
4
|
+
label: string | number;
|
|
5
5
|
}
|
|
6
6
|
export declare const getLowercase: (string: ValueType) => string;
|
|
7
7
|
export declare const isStringMatch: (string: ValueType, search: ValueType) => boolean;
|
|
@@ -3,6 +3,7 @@ import { type ColumnType } from './columnType';
|
|
|
3
3
|
import { type GridValidRowModel } from '../gridRows';
|
|
4
4
|
import { type GridPinnedPosition } from './columnPin';
|
|
5
5
|
import { type GridActionsCellItemProps } from '../../components/cell/gridActionsCellItem';
|
|
6
|
+
import { OptionInterface } from '../../helpers/select';
|
|
6
7
|
export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> {
|
|
7
8
|
/**
|
|
8
9
|
* The column identifier. It's used to map with [[GridRowModel]] values.
|
|
@@ -55,6 +56,10 @@ export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel,
|
|
|
55
56
|
* The column to sortable or not.
|
|
56
57
|
*/
|
|
57
58
|
isFilterable?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The column to show options in filter.
|
|
61
|
+
*/
|
|
62
|
+
options?: OptionInterface[];
|
|
58
63
|
}
|
|
59
64
|
export interface GridActionsColDef<R extends GridValidRowModel = any, V = any, F = V> extends GridBaseColDef<R, V, F> {
|
|
60
65
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syook/react-tabulous",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "Terrifically fabulous React Table",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.esm.js",
|
|
@@ -52,8 +52,10 @@
|
|
|
52
52
|
"@popperjs/core": "2.11.8"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
55
56
|
"@emotion/react": "11.11.4",
|
|
56
57
|
"@emotion/styled": "11.11.5",
|
|
58
|
+
"@eslint/js": "9.10.0",
|
|
57
59
|
"@rollup/plugin-babel": "6.0.3",
|
|
58
60
|
"@rollup/plugin-commonjs": "^25.0.0",
|
|
59
61
|
"@rollup/plugin-image": "3.0.2",
|
|
@@ -67,18 +69,12 @@
|
|
|
67
69
|
"@types/node": "^16.18.104",
|
|
68
70
|
"@types/react": "^18.3.3",
|
|
69
71
|
"@types/react-dom": "^18.3.0",
|
|
70
|
-
"
|
|
71
|
-
"eslint": "
|
|
72
|
-
"eslint-
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
77
|
-
"eslint-plugin-promise": "^6.0.0",
|
|
78
|
-
"eslint-plugin-react": "^7.34.1",
|
|
79
|
-
"eslint-plugin-react-hooks": "4.6.0",
|
|
80
|
-
"husky": "^9.0.11",
|
|
81
|
-
"prettier": "3.2.5",
|
|
72
|
+
"eslint": "8.57.0",
|
|
73
|
+
"eslint-config-prettier": "9.1.0",
|
|
74
|
+
"eslint-plugin-react": "7.36.1",
|
|
75
|
+
"globals": "15.9.0",
|
|
76
|
+
"husky": "^9.1.5",
|
|
77
|
+
"prettier": "3.3.3",
|
|
82
78
|
"react": "^18.3.1",
|
|
83
79
|
"react-dom": "^18.3.1",
|
|
84
80
|
"react-scripts": "5.0.1",
|
|
@@ -88,6 +84,7 @@
|
|
|
88
84
|
"rollup-plugin-postcss": "^4.0.2",
|
|
89
85
|
"rollup-plugin-react-svg": "3.0.3",
|
|
90
86
|
"typescript": "^4.9.5",
|
|
87
|
+
"typescript-eslint": "^8.4.0",
|
|
91
88
|
"web-vitals": "^3.3.1"
|
|
92
89
|
},
|
|
93
90
|
"browserslist": {
|