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.98",
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,41 +1,55 @@
1
- declare module 'qcell-react' {
2
- import React from 'react';
3
-
4
- // QCELL 관련 타입 정의
5
- interface QCELLType {
6
- create: (property: ObjPropertyType) => void;
7
- getInstance: (id: string) => QCELLInstance | null;
8
- deleteInstance: (id: string) => void;
9
- }
10
-
11
- interface QCELLInstance {
12
- // QCELL 인스턴스의 메서드 및 프로퍼티 정의
13
- destroy?: () => void;
14
- }
15
-
16
- interface ObjPropertyType {
17
- id: string;
18
- parentid?: string;
19
- [key: string]: any; // 동적 프로퍼티 지원
20
- }
21
-
22
- // Props 타입 정의
23
- interface QCELLReactProps {
24
- width?: string;
25
- height?: string;
26
- objProperty: ObjPropertyType;
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;