qcell-react 1.0.98 → 1.1.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcell-react",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "QCELL component for React. Righttech Co., Ltd. All rights reserved.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "./src/types/index.d.ts",
|
|
@@ -18,11 +18,7 @@
|
|
|
18
18
|
"clean": "rimraf dist",
|
|
19
19
|
"build": "npm run clean && webpack && node scripts/rename-output.js"
|
|
20
20
|
},
|
|
21
|
-
"keywords": [
|
|
22
|
-
"react",
|
|
23
|
-
"QCELL Component",
|
|
24
|
-
"npm"
|
|
25
|
-
],
|
|
21
|
+
"keywords": ["react", "QCELL Component", "npm"],
|
|
26
22
|
"author": "Righttech",
|
|
27
23
|
"license": "MIT",
|
|
28
24
|
"peerDependencies": {
|
|
@@ -49,7 +45,7 @@
|
|
|
49
45
|
"style-loader": "^4.0.0",
|
|
50
46
|
"webpack": "^5.94.0",
|
|
51
47
|
"webpack-cli": "^5.1.4",
|
|
52
|
-
"react": "^
|
|
53
|
-
"react-dom": "^
|
|
48
|
+
"react": "^18.2.0",
|
|
49
|
+
"react-dom": "^18.2.0"
|
|
54
50
|
}
|
|
55
|
-
}
|
|
51
|
+
}
|
package/src/types/index.d.ts
CHANGED
|
@@ -1,41 +1,55 @@
|
|
|
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
|
-
// Ref 타입 정의
|
|
30
|
-
export interface QCELLReactRef {
|
|
31
|
-
getQCELLInstance: () => QCELLInstance | null;
|
|
32
|
-
getQCELL: () => QCELLType;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// React 컴포넌트 타입 정의
|
|
36
|
-
const QCELLReact: React.ForwardRefExoticComponent<
|
|
37
|
-
React.PropsWithoutRef<QCELLReactProps> & React.RefAttributes<QCELLReactRef>
|
|
38
|
-
>;
|
|
39
|
-
|
|
40
|
-
export default QCELLReact;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
export interface QCELLInstance {
|
|
4
|
+
setData?: (data: any[]) => void;
|
|
5
|
+
|
|
6
|
+
removeRow?: () => void;
|
|
7
|
+
deleteRow?: (row: number) => void;
|
|
8
|
+
removeRows?: (count: number) => void;
|
|
9
|
+
deleteRows?: (row: number, count: number) => void;
|
|
10
|
+
deleteRowsEx?: (rows: number[]) => void;
|
|
11
|
+
|
|
12
|
+
addRow?: (row: any) => void;
|
|
13
|
+
insertRow?: (row: number, data: any) => void;
|
|
14
|
+
addRows?: (rows: any[]) => void;
|
|
15
|
+
insertRows?: (row: number, rows: any[]) => void;
|
|
16
|
+
insertRowsEx?: (items: [number, any][]) => void;
|
|
17
|
+
|
|
18
|
+
setPageUnit?: (pageUnit: number) => void;
|
|
19
|
+
getPageUnit?: () => number;
|
|
20
|
+
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface QCELLType {
|
|
25
|
+
create: (property: Record<string, any>) => void;
|
|
26
|
+
getInstance: (id: string) => QCELLInstance | null;
|
|
27
|
+
deleteInstance: (id: string) => void;
|
|
28
|
+
[key: string]: any;
|
|
41
29
|
}
|
|
30
|
+
|
|
31
|
+
export interface QCELLReactRef {
|
|
32
|
+
getQCELLInstance: () => QCELLInstance | null;
|
|
33
|
+
getQCELL: () => QCELLType;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface ObjPropertyType {
|
|
37
|
+
id: string;
|
|
38
|
+
parentid?: string;
|
|
39
|
+
data?: any;
|
|
40
|
+
columns?: any[];
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface QCELLReactProps {
|
|
45
|
+
width?: string | number;
|
|
46
|
+
height: string | number;
|
|
47
|
+
objProperty: ObjPropertyType;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare const QCELLReact: React.ForwardRefExoticComponent<
|
|
51
|
+
React.PropsWithoutRef<QCELLReactProps> &
|
|
52
|
+
React.RefAttributes<QCELLReactRef>
|
|
53
|
+
>;
|
|
54
|
+
|
|
55
|
+
export default QCELLReact;
|
/package/dist/{main.49a473d6cdfdbe6815fc.js.LICENSE.txt → main.e337af4b792ad4ebabca.js.LICENSE.txt}
RENAMED
|
File without changes
|