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.
Files changed (84) hide show
  1. package/CHANGELOG.md +483 -0
  2. package/README.md +755 -0
  3. package/dist/react/index.esm.js +3757 -0
  4. package/dist/react/index.esm.js.map +1 -0
  5. package/dist/react/index.js +7 -0
  6. package/dist/react/index.js.map +1 -0
  7. package/dist/react/react/VeloxGridReact.d.ts +33 -0
  8. package/dist/react/react/VeloxGridReact.d.ts.map +1 -0
  9. package/dist/react/react/index.d.ts +9 -0
  10. package/dist/react/react/index.d.ts.map +1 -0
  11. package/dist/react/react/types.d.ts +52 -0
  12. package/dist/react/react/types.d.ts.map +1 -0
  13. package/dist/react/react/useVeloxGrid.d.ts +23 -0
  14. package/dist/react/react/useVeloxGrid.d.ts.map +1 -0
  15. package/dist/react/types/index.d.ts +878 -0
  16. package/dist/react/types/index.d.ts.map +1 -0
  17. package/dist/types/core/GridColumnMenu.d.ts +35 -0
  18. package/dist/types/core/GridColumnMenu.d.ts.map +1 -0
  19. package/dist/types/core/GridDragManager.d.ts +83 -0
  20. package/dist/types/core/GridDragManager.d.ts.map +1 -0
  21. package/dist/types/core/GridEditorFactory.d.ts +33 -0
  22. package/dist/types/core/GridEditorFactory.d.ts.map +1 -0
  23. package/dist/types/core/GridFilterPopup.d.ts +43 -0
  24. package/dist/types/core/GridFilterPopup.d.ts.map +1 -0
  25. package/dist/types/core/GridHistory.d.ts +84 -0
  26. package/dist/types/core/GridHistory.d.ts.map +1 -0
  27. package/dist/types/core/GridRenderer.d.ts +73 -0
  28. package/dist/types/core/GridRenderer.d.ts.map +1 -0
  29. package/dist/types/core/GridSummary.d.ts +98 -0
  30. package/dist/types/core/GridSummary.d.ts.map +1 -0
  31. package/dist/types/core/GridTooltip.d.ts +43 -0
  32. package/dist/types/core/GridTooltip.d.ts.map +1 -0
  33. package/dist/types/core/GridValidator.d.ts +63 -0
  34. package/dist/types/core/GridValidator.d.ts.map +1 -0
  35. package/dist/types/core/VeloxGrid.d.ts +437 -0
  36. package/dist/types/core/VeloxGrid.d.ts.map +1 -0
  37. package/dist/types/core/index.d.ts +15 -0
  38. package/dist/types/core/index.d.ts.map +1 -0
  39. package/dist/types/index.d.ts +16 -0
  40. package/dist/types/index.d.ts.map +1 -0
  41. package/dist/types/react/VeloxGridReact.d.ts +40 -0
  42. package/dist/types/react/VeloxGridReact.d.ts.map +1 -0
  43. package/dist/types/react/index.d.ts +9 -0
  44. package/dist/types/react/index.d.ts.map +1 -0
  45. package/dist/types/react/types.d.ts +55 -0
  46. package/dist/types/react/types.d.ts.map +1 -0
  47. package/dist/types/react/useVeloxGrid.d.ts +54 -0
  48. package/dist/types/react/useVeloxGrid.d.ts.map +1 -0
  49. package/dist/types/types/index.d.ts +878 -0
  50. package/dist/types/types/index.d.ts.map +1 -0
  51. package/dist/types/utils/data.d.ts +41 -0
  52. package/dist/types/utils/data.d.ts.map +1 -0
  53. package/dist/types/utils/dom.d.ts +13 -0
  54. package/dist/types/utils/dom.d.ts.map +1 -0
  55. package/dist/types/utils/export.d.ts +60 -0
  56. package/dist/types/utils/export.d.ts.map +1 -0
  57. package/dist/types/utils/index.d.ts +4 -0
  58. package/dist/types/utils/index.d.ts.map +1 -0
  59. package/dist/types/vue/index.d.ts +9 -0
  60. package/dist/types/vue/index.d.ts.map +1 -0
  61. package/dist/types/vue/types.d.ts +68 -0
  62. package/dist/types/vue/types.d.ts.map +1 -0
  63. package/dist/types/vue/useVeloxGrid.d.ts +49 -0
  64. package/dist/types/vue/useVeloxGrid.d.ts.map +1 -0
  65. package/dist/velox-grid.css +1 -0
  66. package/dist/velox-grid.esm.js +3387 -0
  67. package/dist/velox-grid.esm.js.map +1 -0
  68. package/dist/velox-grid.iife.js +14 -0
  69. package/dist/velox-grid.iife.js.map +1 -0
  70. package/dist/velox-grid.js +14 -0
  71. package/dist/velox-grid.js.map +1 -0
  72. package/dist/vue/index.esm.js +3754 -0
  73. package/dist/vue/index.esm.js.map +1 -0
  74. package/dist/vue/index.js +7 -0
  75. package/dist/vue/index.js.map +1 -0
  76. package/dist/vue/types/index.d.ts +878 -0
  77. package/dist/vue/types/index.d.ts.map +1 -0
  78. package/dist/vue/vue/index.d.ts +9 -0
  79. package/dist/vue/vue/index.d.ts.map +1 -0
  80. package/dist/vue/vue/types.d.ts +65 -0
  81. package/dist/vue/vue/types.d.ts.map +1 -0
  82. package/dist/vue/vue/useVeloxGrid.d.ts +21 -0
  83. package/dist/vue/vue/useVeloxGrid.d.ts.map +1 -0
  84. 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"}