@mkt-loitd/react-table-grid-custom 1.0.1 → 1.0.2
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/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -6
- package/dist/index.mjs +1 -5
- package/package.json +6 -7
package/dist/index.d.mts
CHANGED
|
@@ -51,13 +51,13 @@ interface ICalculatorTotalPage extends IPaginationParams {
|
|
|
51
51
|
}
|
|
52
52
|
interface ISTTParams extends IPaginationParams {
|
|
53
53
|
}
|
|
54
|
-
interface
|
|
54
|
+
interface UseShowHideColumnParameter<T, SR = unknown> {
|
|
55
55
|
nameLocal?: string;
|
|
56
56
|
/** nếu đầu vào là columns: Functions() thì nên dùng useMemo thì sẽ tối ưu hơn */
|
|
57
57
|
columns: TColumnsTable<T, SR>;
|
|
58
58
|
ignoreColumns?: string[];
|
|
59
59
|
}
|
|
60
|
-
interface
|
|
60
|
+
interface UseShowHideColumnReturn<T, SR> {
|
|
61
61
|
hiddenColumns: string[];
|
|
62
62
|
setHiddenColumns: Dispatch<SetStateAction<string[]>>;
|
|
63
63
|
columnsTable: TColumnsTable<T, SR>;
|
|
@@ -68,4 +68,4 @@ interface useShowHideColumnReturn<T, SR> {
|
|
|
68
68
|
handleChangeLocation?: (arr: string[]) => void;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
export { type ICalculatorTotalPage, type IPaginationParams, type IReactTableGridCustom, type ISTTParams, type Maybe, ReactTableGridCustom,
|
|
71
|
+
export { type ICalculatorTotalPage, type IPaginationParams, type IReactTableGridCustom, type ISTTParams, type Maybe, ReactTableGridCustom, type TColumnsTable, type UseShowHideColumnParameter, type UseShowHideColumnReturn };
|
package/dist/index.d.ts
CHANGED
|
@@ -51,13 +51,13 @@ interface ICalculatorTotalPage extends IPaginationParams {
|
|
|
51
51
|
}
|
|
52
52
|
interface ISTTParams extends IPaginationParams {
|
|
53
53
|
}
|
|
54
|
-
interface
|
|
54
|
+
interface UseShowHideColumnParameter<T, SR = unknown> {
|
|
55
55
|
nameLocal?: string;
|
|
56
56
|
/** nếu đầu vào là columns: Functions() thì nên dùng useMemo thì sẽ tối ưu hơn */
|
|
57
57
|
columns: TColumnsTable<T, SR>;
|
|
58
58
|
ignoreColumns?: string[];
|
|
59
59
|
}
|
|
60
|
-
interface
|
|
60
|
+
interface UseShowHideColumnReturn<T, SR> {
|
|
61
61
|
hiddenColumns: string[];
|
|
62
62
|
setHiddenColumns: Dispatch<SetStateAction<string[]>>;
|
|
63
63
|
columnsTable: TColumnsTable<T, SR>;
|
|
@@ -68,4 +68,4 @@ interface useShowHideColumnReturn<T, SR> {
|
|
|
68
68
|
handleChangeLocation?: (arr: string[]) => void;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
export { type ICalculatorTotalPage, type IPaginationParams, type IReactTableGridCustom, type ISTTParams, type Maybe, ReactTableGridCustom,
|
|
71
|
+
export { type ICalculatorTotalPage, type IPaginationParams, type IReactTableGridCustom, type ISTTParams, type Maybe, ReactTableGridCustom, type TColumnsTable, type UseShowHideColumnParameter, type UseShowHideColumnReturn };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
"use client";
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -21,8 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
20
|
// src/index.ts
|
|
22
21
|
var index_exports = {};
|
|
23
22
|
__export(index_exports, {
|
|
24
|
-
ReactTableGridCustom: () => ReactTableGridCustom
|
|
25
|
-
ReactTableGridCustomDefault: () => ReactTableGridCustom_default
|
|
23
|
+
ReactTableGridCustom: () => ReactTableGridCustom
|
|
26
24
|
});
|
|
27
25
|
module.exports = __toCommonJS(index_exports);
|
|
28
26
|
|
|
@@ -409,9 +407,7 @@ var ReactTableGridCustomInner = ({
|
|
|
409
407
|
var ReactTableGridCustom = (0, import_react3.memo)(
|
|
410
408
|
ReactTableGridCustomInner
|
|
411
409
|
);
|
|
412
|
-
var ReactTableGridCustom_default = ReactTableGridCustom;
|
|
413
410
|
// Annotate the CommonJS export names for ESM import in node:
|
|
414
411
|
0 && (module.exports = {
|
|
415
|
-
ReactTableGridCustom
|
|
416
|
-
ReactTableGridCustomDefault
|
|
412
|
+
ReactTableGridCustom
|
|
417
413
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
// src/ReactTableGridCustom.tsx
|
|
4
2
|
import { Checkbox, Pagination } from "@mantine/core";
|
|
5
3
|
|
|
@@ -383,8 +381,6 @@ var ReactTableGridCustomInner = ({
|
|
|
383
381
|
var ReactTableGridCustom = memo(
|
|
384
382
|
ReactTableGridCustomInner
|
|
385
383
|
);
|
|
386
|
-
var ReactTableGridCustom_default = ReactTableGridCustom;
|
|
387
384
|
export {
|
|
388
|
-
ReactTableGridCustom
|
|
389
|
-
ReactTableGridCustom_default as ReactTableGridCustomDefault
|
|
385
|
+
ReactTableGridCustom
|
|
390
386
|
};
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mkt-loitd/react-table-grid-custom",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "React Table Grid Custom component",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"private": false,
|
|
4
7
|
"publishConfig": {
|
|
5
8
|
"access": "public"
|
|
6
9
|
},
|
|
7
|
-
"private": false,
|
|
8
|
-
"description": "React Table Grid Custom component",
|
|
9
10
|
"main": "dist/index.cjs",
|
|
10
11
|
"module": "dist/index.js",
|
|
11
12
|
"types": "dist/index.d.ts",
|
|
12
13
|
"exports": {
|
|
13
14
|
".": {
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
15
15
|
"import": "./dist/index.js",
|
|
16
16
|
"require": "./dist/index.cjs"
|
|
17
17
|
}
|
|
@@ -54,14 +54,13 @@
|
|
|
54
54
|
"tsup": "^8.5.1",
|
|
55
55
|
"typescript": "^5.9.3"
|
|
56
56
|
},
|
|
57
|
-
"license": "ISC",
|
|
58
57
|
"repository": {
|
|
59
58
|
"type": "git",
|
|
60
59
|
"url": "git+ssh://git@github.com/loitd140201/react-table.git"
|
|
61
60
|
},
|
|
62
|
-
"author": "",
|
|
63
61
|
"bugs": {
|
|
64
62
|
"url": "https://github.com/loitd140201/react-table/issues"
|
|
65
63
|
},
|
|
66
|
-
"homepage": "https://github.com/loitd140201/react-table#readme"
|
|
64
|
+
"homepage": "https://github.com/loitd140201/react-table#readme",
|
|
65
|
+
"author": ""
|
|
67
66
|
}
|