velox-grid 0.11.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/CHANGELOG.md +483 -0
- package/README.md +755 -0
- package/dist/react/index.esm.js +3757 -0
- package/dist/react/index.esm.js.map +1 -0
- package/dist/react/index.js +7 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/react/VeloxGridReact.d.ts +33 -0
- package/dist/react/react/VeloxGridReact.d.ts.map +1 -0
- package/dist/react/react/index.d.ts +9 -0
- package/dist/react/react/index.d.ts.map +1 -0
- package/dist/react/react/types.d.ts +52 -0
- package/dist/react/react/types.d.ts.map +1 -0
- package/dist/react/react/useVeloxGrid.d.ts +23 -0
- package/dist/react/react/useVeloxGrid.d.ts.map +1 -0
- package/dist/react/types/index.d.ts +878 -0
- package/dist/react/types/index.d.ts.map +1 -0
- package/dist/types/core/GridColumnMenu.d.ts +35 -0
- package/dist/types/core/GridColumnMenu.d.ts.map +1 -0
- package/dist/types/core/GridDragManager.d.ts +83 -0
- package/dist/types/core/GridDragManager.d.ts.map +1 -0
- package/dist/types/core/GridEditorFactory.d.ts +33 -0
- package/dist/types/core/GridEditorFactory.d.ts.map +1 -0
- package/dist/types/core/GridFilterPopup.d.ts +43 -0
- package/dist/types/core/GridFilterPopup.d.ts.map +1 -0
- package/dist/types/core/GridHistory.d.ts +84 -0
- package/dist/types/core/GridHistory.d.ts.map +1 -0
- package/dist/types/core/GridRenderer.d.ts +73 -0
- package/dist/types/core/GridRenderer.d.ts.map +1 -0
- package/dist/types/core/GridSummary.d.ts +98 -0
- package/dist/types/core/GridSummary.d.ts.map +1 -0
- package/dist/types/core/GridTooltip.d.ts +43 -0
- package/dist/types/core/GridTooltip.d.ts.map +1 -0
- package/dist/types/core/GridValidator.d.ts +63 -0
- package/dist/types/core/GridValidator.d.ts.map +1 -0
- package/dist/types/core/VeloxGrid.d.ts +437 -0
- package/dist/types/core/VeloxGrid.d.ts.map +1 -0
- package/dist/types/core/index.d.ts +15 -0
- package/dist/types/core/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/react/VeloxGridReact.d.ts +40 -0
- package/dist/types/react/VeloxGridReact.d.ts.map +1 -0
- package/dist/types/react/index.d.ts +9 -0
- package/dist/types/react/index.d.ts.map +1 -0
- package/dist/types/react/types.d.ts +55 -0
- package/dist/types/react/types.d.ts.map +1 -0
- package/dist/types/react/useVeloxGrid.d.ts +54 -0
- package/dist/types/react/useVeloxGrid.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +878 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/utils/data.d.ts +41 -0
- package/dist/types/utils/data.d.ts.map +1 -0
- package/dist/types/utils/dom.d.ts +13 -0
- package/dist/types/utils/dom.d.ts.map +1 -0
- package/dist/types/utils/export.d.ts +60 -0
- package/dist/types/utils/export.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +4 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/vue/index.d.ts +9 -0
- package/dist/types/vue/index.d.ts.map +1 -0
- package/dist/types/vue/types.d.ts +68 -0
- package/dist/types/vue/types.d.ts.map +1 -0
- package/dist/types/vue/useVeloxGrid.d.ts +49 -0
- package/dist/types/vue/useVeloxGrid.d.ts.map +1 -0
- package/dist/velox-grid.css +1 -0
- package/dist/velox-grid.esm.js +3387 -0
- package/dist/velox-grid.esm.js.map +1 -0
- package/dist/velox-grid.iife.js +14 -0
- package/dist/velox-grid.iife.js.map +1 -0
- package/dist/velox-grid.js +14 -0
- package/dist/velox-grid.js.map +1 -0
- package/dist/vue/index.esm.js +3754 -0
- package/dist/vue/index.esm.js.map +1 -0
- package/dist/vue/index.js +7 -0
- package/dist/vue/index.js.map +1 -0
- package/dist/vue/types/index.d.ts +878 -0
- package/dist/vue/types/index.d.ts.map +1 -0
- package/dist/vue/vue/index.d.ts +9 -0
- package/dist/vue/vue/index.d.ts.map +1 -0
- package/dist/vue/vue/types.d.ts +65 -0
- package/dist/vue/vue/types.d.ts.map +1 -0
- package/dist/vue/vue/useVeloxGrid.d.ts +21 -0
- package/dist/vue/vue/useVeloxGrid.d.ts.map +1 -0
- package/package.json +120 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { VeloxGridReactProps, VeloxGridReactRef } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* VeloxGridReact 컴포넌트
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* import { VeloxGridReact } from 'velox-grid/react';
|
|
9
|
+
*
|
|
10
|
+
* function App() {
|
|
11
|
+
* const gridRef = useRef<VeloxGridReactRef>(null);
|
|
12
|
+
*
|
|
13
|
+
* return (
|
|
14
|
+
* <VeloxGridReact
|
|
15
|
+
* ref={gridRef}
|
|
16
|
+
* columns={[
|
|
17
|
+
* { field: 'name', header: 'Name', width: 150 },
|
|
18
|
+
* { field: 'age', header: 'Age', type: 'number', width: 80 },
|
|
19
|
+
* ]}
|
|
20
|
+
* data={[
|
|
21
|
+
* { name: 'Alice', age: 30 },
|
|
22
|
+
* { name: 'Bob', age: 25 },
|
|
23
|
+
* ]}
|
|
24
|
+
* height={400}
|
|
25
|
+
* editable={true}
|
|
26
|
+
* onCellEditEnd={(e) => console.log('Edit:', e)}
|
|
27
|
+
* />
|
|
28
|
+
* );
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare const VeloxGridReact: import('react').ForwardRefExoticComponent<VeloxGridReactProps & import('react').RefAttributes<VeloxGridReactRef>>;
|
|
33
|
+
//# sourceMappingURL=VeloxGridReact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VeloxGridReact.d.ts","sourceRoot":"","sources":["../../../src/react/VeloxGridReact.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAWH,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AA6EtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,cAAc,mHAyN1B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VeloxGrid React Wrapper
|
|
3
|
+
* @description React component and hook for VeloxGrid
|
|
4
|
+
* Phase 17: Framework Wrappers (React)
|
|
5
|
+
*/
|
|
6
|
+
export { VeloxGridReact } from './VeloxGridReact';
|
|
7
|
+
export { useVeloxGrid } from './useVeloxGrid';
|
|
8
|
+
export type { VeloxGridReactProps, VeloxGridReactRef } from './types';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { GridOptions, GridEvents, VeloxGridInstance } from '../types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* VeloxGridReact 컴포넌트 Props
|
|
5
|
+
* GridOptions의 모든 옵션을 Props로 전달할 수 있으며,
|
|
6
|
+
* GridEvents의 모든 이벤트를 콜백 Props로 전달할 수 있습니다.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <VeloxGridReact
|
|
11
|
+
* columns={columns}
|
|
12
|
+
* data={data}
|
|
13
|
+
* height={400}
|
|
14
|
+
* editable={true}
|
|
15
|
+
* onCellEditEnd={(e) => console.log(e)}
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export interface VeloxGridReactProps extends GridOptions, GridEvents {
|
|
20
|
+
/**
|
|
21
|
+
* 컨테이너에 적용할 CSS 클래스
|
|
22
|
+
* GridOptions.className과 별개로 wrapper div에 적용됩니다.
|
|
23
|
+
*/
|
|
24
|
+
wrapperClassName?: string;
|
|
25
|
+
/**
|
|
26
|
+
* 컨테이너에 적용할 인라인 스타일
|
|
27
|
+
*/
|
|
28
|
+
wrapperStyle?: React.CSSProperties;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* VeloxGridReact ref를 통해 접근 가능한 메서드
|
|
32
|
+
* VeloxGridInstance의 모든 메서드를 포함합니다.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```tsx
|
|
36
|
+
* const gridRef = useRef<VeloxGridReactRef>(null);
|
|
37
|
+
*
|
|
38
|
+
* // 데이터 조회
|
|
39
|
+
* const data = gridRef.current?.getData();
|
|
40
|
+
*
|
|
41
|
+
* // 행 추가
|
|
42
|
+
* gridRef.current?.addRow({ name: 'New', value: 100 });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export interface VeloxGridReactRef extends VeloxGridInstance {
|
|
46
|
+
/**
|
|
47
|
+
* 내부 VeloxGrid 인스턴스에 직접 접근
|
|
48
|
+
* 일반적으로 ref 메서드를 사용하되, 고급 시나리오에서 사용
|
|
49
|
+
*/
|
|
50
|
+
getGridInstance(): VeloxGridInstance | null;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/react/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE3E;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,mBAAoB,SAAQ,WAAW,EAAE,UAAU;IAClE;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACpC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D;;;OAGG;IACH,eAAe,IAAI,iBAAiB,GAAG,IAAI,CAAC;CAC7C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GridOptions, GridEvents, VeloxGridInstance } from '../types';
|
|
2
|
+
|
|
3
|
+
type UseVeloxGridOptions = GridOptions & Partial<GridEvents>;
|
|
4
|
+
interface UseVeloxGridReturn {
|
|
5
|
+
/** 그리드가 마운트될 컨테이너 ref (div에 연결) */
|
|
6
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
7
|
+
/** VeloxGrid 인스턴스 (초기화 전 null) */
|
|
8
|
+
grid: VeloxGridInstance | null;
|
|
9
|
+
/** 그리드 초기화 여부 */
|
|
10
|
+
isReady: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* useVeloxGrid Hook
|
|
14
|
+
*
|
|
15
|
+
* GridOptions + GridEvents를 받아서 VeloxGrid 인스턴스를 생성하고 관리합니다.
|
|
16
|
+
* containerRef를 div에 연결하면 자동으로 그리드가 초기화됩니다.
|
|
17
|
+
*
|
|
18
|
+
* @param options - GridOptions와 GridEvents를 합친 옵션 객체
|
|
19
|
+
* @returns containerRef, grid 인스턴스, isReady 상태
|
|
20
|
+
*/
|
|
21
|
+
export declare function useVeloxGrid(options: UseVeloxGridOptions): UseVeloxGridReturn;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=useVeloxGrid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVeloxGrid.d.ts","sourceRoot":"","sources":["../../../src/react/useVeloxGrid.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE3E,KAAK,mBAAmB,GAAG,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAE7D,UAAU,kBAAkB;IAC1B,mCAAmC;IACnC,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACrD,kCAAkC;IAClC,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC/B,iBAAiB;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,kBAAkB,CAkC7E"}
|