qcell-react 1.0.99 → 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.99",
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": "^19.2.1",
53
- "react-dom": "^19.2.1"
48
+ "react": "^18.2.0",
49
+ "react-dom": "^18.2.0"
54
50
  }
55
- }
51
+ }
@@ -1,30 +1,23 @@
1
1
  import * as React from "react";
2
2
 
3
- export interface QCELLColumn {
4
- key: string;
5
- title?: string[];
6
- width?: string | number;
7
- [key: string]: any;
8
- }
3
+ export interface QCELLInstance {
4
+ setData?: (data: any[]) => void;
9
5
 
10
- export interface QCELLRowHeight {
11
- header?: number;
12
- data?: number;
13
- [key: string]: any;
14
- }
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;
15
11
 
16
- export interface QCELLPagination {
17
- unitlist?: number[];
18
- pageunit?: number;
19
- pagecount?: number;
20
- mode?: "simple" | "extend" | string;
21
- [key: string]: any;
22
- }
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;
23
17
 
24
- export interface QCELLInstance {
25
18
  setPageUnit?: (pageUnit: number) => void;
26
19
  getPageUnit?: () => number;
27
- destroy?: () => void;
20
+
28
21
  [key: string]: any;
29
22
  }
30
23
 
@@ -40,19 +33,18 @@ export interface QCELLReactRef {
40
33
  getQCELL: () => QCELLType;
41
34
  }
42
35
 
36
+ export interface ObjPropertyType {
37
+ id: string;
38
+ parentid?: string;
39
+ data?: any;
40
+ columns?: any[];
41
+ [key: string]: any;
42
+ }
43
+
43
44
  export interface QCELLReactProps {
44
- id?: string;
45
45
  width?: string | number;
46
46
  height: string | number;
47
-
48
- data?: any[];
49
- columns?: QCELLColumn[];
50
- rowHeight?: QCELLRowHeight;
51
- pagination?: QCELLPagination;
52
-
53
- objProperty?: Record<string, any>;
54
-
55
- [key: string]: any;
47
+ objProperty: ObjPropertyType;
56
48
  }
57
49
 
58
50
  declare const QCELLReact: React.ForwardRefExoticComponent<