open-grid 1.0.1 → 1.0.6
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 +265 -0
- package/NOTICE +21 -0
- package/README.md +33 -1
- package/THIRD_PARTY_LICENSES.txt +229 -0
- package/package.json +15 -7
- package/dist/OpenGrid-B7dLL9eH.cjs.map +0 -1
- package/dist/OpenGrid-v528T7RJ.js.map +0 -1
- package/dist/open-grid-react.cjs.map +0 -1
- package/dist/open-grid-react.js.map +0 -1
- package/dist/open-grid-vue.cjs.map +0 -1
- package/dist/open-grid-vue.js.map +0 -1
- package/dist/open-grid.cjs.map +0 -1
- package/dist/open-grid.js.map +0 -1
- package/dist/xlsx.min-Bx-LxWOf.cjs.map +0 -1
- package/dist/xlsx.min-Wavxcamn.js.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to OPEN_GRID will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [1.0.5] - 2026-06-24
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
- **런타임 의존성 0 (zero runtime dependencies)** — Excel 내보내기에 쓰이는 `xlsx`·`xlsx-js-style`을
|
|
9
|
+
`dependencies` → `devDependencies`로 옮겼다. 이들은 **빌드 시 `dist/`에 번들로 포함**되므로
|
|
10
|
+
(`src`의 `import('xlsx-js-style')`가 빌드 과정에서 `dist/xlsx.min-*.js` 청크로 변환됨),
|
|
11
|
+
설치하는 쪽에서 별도로 받을 필요가 없다 — `npm install open-grid`는 외부 런타임 의존성을
|
|
12
|
+
하나도 끌어오지 않는다. **Excel 내보내기는 번들된 SheetJS로 그대로 동작**한다(설치 불필요).
|
|
13
|
+
코드·동작 변경 없음(의존성 분류만 정정). 번들된 SheetJS는 Apache-2.0이며 `NOTICE`/`THIRD_PARTY_LICENSES.txt`로 귀속 표기됨.
|
|
14
|
+
|
|
15
|
+
## [1.0.4] - 2026-06-24
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
- **소개 문구(intro) 추가** — README 상단과 npm `description`에 제품 소개 문구를 추가하고
|
|
19
|
+
npm 배지 버전 표기를 현행화했다. 코드·기능 변경 없음(문서/메타데이터만).
|
|
20
|
+
("zero-dependency **core**" — Excel 내보내기는 SheetJS를 번들하므로 "코어 무의존"으로 정확히 표기.)
|
|
21
|
+
|
|
22
|
+
## [1.0.3] - 2026-06-24
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- **라이선스 준수 내역을 배포 패키지에 명시** — 발행 tarball에 `CHANGELOG.md`를 포함하고,
|
|
26
|
+
README·변경 이력에 1.0.2의 라이선스 컴플라이언스 조치(아래)를 명확히 기재했다.
|
|
27
|
+
코드·기능 변경 없음(문서/배포 메타데이터만).
|
|
28
|
+
|
|
29
|
+
## [1.0.2] - 2026-06-24
|
|
30
|
+
|
|
31
|
+
### Fixed — 라이선스 컴플라이언스 (잠재적 라이선스 위반 소지 해소)
|
|
32
|
+
- **문제** — Excel 내보내기 기능에 쓰이는 `xlsx`(SheetJS Community Edition)와
|
|
33
|
+
`xlsx-js-style`는 **Apache License 2.0** 라이선스이며 빌드 결과물(`dist/`)에 번들되어
|
|
34
|
+
함께 배포된다. 그런데 1.0.1까지의 배포 패키지에는 OPEN_GRID 자체의 **MIT LICENSE만**
|
|
35
|
+
들어 있고, Apache-2.0가 재배포 시 요구하는 **라이선스 사본과 저작권 귀속 고지가 누락**
|
|
36
|
+
되어 있었다(Apache-2.0 §4(a)·§4(c) 미충족 → **잠재적 라이선스 위반 소지**).
|
|
37
|
+
- **해결** — 배포 패키지에 다음을 추가하고 `files`에 포함해 함께 배포한다:
|
|
38
|
+
- `THIRD_PARTY_LICENSES.txt` — Apache License 2.0 **전문** + 번들 구성요소 식별·저작권 고지
|
|
39
|
+
- `NOTICE` — SheetJS LLC(`xlsx`) 및 SheetJS LLC·Brent Ely(`xlsx-js-style`) 저작권 귀속
|
|
40
|
+
- README에 "Third-party licenses" 안내 추가
|
|
41
|
+
- **영향 범위** — OPEN_GRID 본체 라이선스(MIT)와 코드는 **변경 없음**. MIT와 Apache-2.0는
|
|
42
|
+
서로 호환되어 **라이선스 충돌은 없으며**, 누락돼 있던 Apache-2.0 **귀속 의무만 충족**시킨
|
|
43
|
+
조치다.
|
|
44
|
+
|
|
45
|
+
## [1.0.1] - 2026-06-24
|
|
46
|
+
|
|
47
|
+
### Fixed
|
|
48
|
+
- **그리드 초기화 크래시 수정** — `summary` 푸터를 사용하는 그리드를 생성할 때
|
|
49
|
+
`Cannot read properties of undefined (reading 'getStrategy')` 로 초기화가 실패하던 문제.
|
|
50
|
+
생성자에서 OverrideKernel 부착(및 strategy resolver 배선)을 최초 마운트 **이전**으로
|
|
51
|
+
옮겨, 초기 푸터/그룹 렌더가 strategy 슬롯을 조회할 때 커널이 항상 준비되도록 했다.
|
|
52
|
+
(피벗·집계 푸터·그룹 합계 등 `summary`/`footer` 옵션을 쓰는 모든 구성에 영향.)
|
|
53
|
+
|
|
54
|
+
## [1.0.0] - 2026-06-23
|
|
55
|
+
|
|
56
|
+
첫 정식 메이저 릴리스. 본문(코어) 코드 무수정으로 동작을 확장하는 `grid.override()` API와 헤더 줄바꿈을 추가.
|
|
57
|
+
|
|
58
|
+
### Added
|
|
59
|
+
- **`grid.override()` — 본문 무수정 동작 확장 API** (신규 `src/core/OverrideKernel.ts`)
|
|
60
|
+
- `grid.override(name, (orig, ...args) => result)` — 메서드 래핑. `orig()`는 `super`처럼 항상 호출 가능.
|
|
61
|
+
합성 순서는 FIFO 좌측폴드(나중에 건 것이 가장 바깥), 재진입 깊이 32 + 사이클 가드.
|
|
62
|
+
- `grid.override.strategy(slot, fn)` — 6개 알고리즘 슬롯 교체: 정렬 비교(sortComparator),
|
|
63
|
+
필터 술어(filterPredicate), 표시 포맷터(displayFormatter), 엑셀 직렬화(cellSerializer),
|
|
64
|
+
그룹 키(groupKeyFn), 집계 연산(summaryOp).
|
|
65
|
+
- `grid.restore(name)` / `grid.restoreAll()` — 원복. `destroy()` 시 자동 전체 복원.
|
|
66
|
+
- `OpenGrid.defaultOverride(name, fn)` / `OpenGrid.defaults.strategy(slot, fn)` — 전역(앞으로 생성될 모든 그리드) 기본 오버라이드.
|
|
67
|
+
- 오류는 기본(strict) 그대로 전파. 기존 메서드 본문은 한 줄도 수정하지 않음(C1 원칙 준수).
|
|
68
|
+
- **헤더 줄바꿈** — `ColumnDef.headerWrap?: boolean` + 헤더 문자열 `\n` 줄바꿈 + 헤더 높이 자동 확장.
|
|
69
|
+
- **override 데모 32종 × 5 프레임워크**(Vanilla/React/Vue/jQuery/Angular) — `examples/override/`, 허브 포함.
|
|
70
|
+
- **그리드 튜닝 참고자료 페이지** — 아키텍처/시퀀스 UML 다이어그램 기반 내부 동작 설명.
|
|
71
|
+
- **AI 에이전트용 override 가이드**(KO/EN) + 개발 가이드 override 챕터.
|
|
72
|
+
|
|
73
|
+
### Tests
|
|
74
|
+
- override 코어 + 헤더 줄바꿈 단위 테스트 추가. 전체 테스트 통과(회귀 0).
|
|
75
|
+
|
|
76
|
+
## [0.3.2] - 2026-06-18
|
|
77
|
+
|
|
78
|
+
### Fixed
|
|
79
|
+
- **셀 줄바꿈(col.wrap)이 실제로 꺾이지 않던 문제** — `.og-cell--wrap` 는 셀에 적용됐지만, 내부 텍스트
|
|
80
|
+
span(`.og-cell-text`)을 렌더러가 인라인 `white-space:nowrap` 으로 렌더해 클래스만으로는 못 이겼다.
|
|
81
|
+
`.og-cell--wrap .og-cell-text/.og-cell-date { white-space: normal !important; text-overflow: clip !important }`
|
|
82
|
+
로 인라인을 무력화. e2e 도 셀이 아닌 **내부 span + 실제 줄 수**를 검증하도록 강화.
|
|
83
|
+
(npm `open-grid@0.3.1` 은 이 수정 직전에 발행되어 wrap 미동작 → **0.3.2 로 재발행**, npm latest = 0.3.2.)
|
|
84
|
+
|
|
85
|
+
## [0.3.1] - 2026-06-17
|
|
86
|
+
|
|
87
|
+
### Fixed
|
|
88
|
+
- **Host CSS isolation — 임베드 시 호스트 테마 CSS inbound 상속으로 레이아웃/색상 깨짐** (foxnail.kr/WordPress 통합에서 발견)
|
|
89
|
+
- 원인: 헤더가 실제 `<table>`/`<th>` 라서, 임베드 호스트(WordPress 등)의 element/높은 특이도 셀렉터
|
|
90
|
+
(`th,td`, `.entry-content th`, `.fn-post-content th` 등)가 그리드 헤더로 침범 — `line-height`, `border`,
|
|
91
|
+
`background`, `color`, `table{margin}` 등이 새어들어와 헤더가 깨지거나 호스트 색(navy/white)으로 칠해짐.
|
|
92
|
+
바디는 `<div>` 라 안전. (헤더 `<th>` 는 element 셀렉터라 그리드의 클래스/상속값을 이김)
|
|
93
|
+
- `src/core/GridRenderer.ts` — 헤더 `<th>` 의 모든 시각 속성을 **인라인으로 고정**(인라인이 호스트 셀렉터를 이김):
|
|
94
|
+
`background`/`color`/`line-height`/`font-size`/`vertical-align`/`border-top·left` (data + extra/rownumber/check 컬럼 전부).
|
|
95
|
+
헤더 `<table>` 에 `og-header-table` 클래스 부여 + 인라인 `margin:0;border-spacing:0`.
|
|
96
|
+
- `src/styles/base.css` — `.og-container { line-height: normal }` (바디 셀 메트릭 격리) 및 헤더 클래스 기본 방어.
|
|
97
|
+
- **WordPress 전역 스타일 `:where([style*="border-color"]){border-style:solid}` 대응** — 그리드 인라인 보더가
|
|
98
|
+
`var(--og-border-color)` 를 참조해 "border-color" 문자열에 매칭되면, 폭 미지정 변에 `medium`(3px) 보더가
|
|
99
|
+
강제돼 헤더(`.og-header`)·그룹행·병합셀의 좌/우/상에 굵은 선이 생기고 바디 컬럼선과 어긋나던 문제 수정.
|
|
100
|
+
`GridRenderer.ts` 의 단일변 인라인 보더에 `border:0` 선행(미지정 변 폭 0 명시). 테마 무관(전 테마 동일 적용).
|
|
101
|
+
- **컨텍스트메뉴 위치 — 임베드 호스트의 transform 조상 아래에서 마우스 좌표를 벗어남** (그리드 너비 확대 시 두드러짐)
|
|
102
|
+
- `src/core/ContextMenu.ts` — 메뉴를 그리드 컨테이너 대신 `document.body` 에 부착 → `position:fixed` 가
|
|
103
|
+
항상 뷰포트 기준으로 동작. 테마 변수 보존을 위해 `data-og-theme` 복사 + `.og-context-menu` 에 `--og-cm-*` 정의 확장.
|
|
104
|
+
|
|
105
|
+
### Added
|
|
106
|
+
- **셀 툴팁** — `column.tooltip`(문자열|함수) 또는 그리드 옵션 `tooltips: true`(모든 셀에 값 자동 노출).
|
|
107
|
+
헤더 셀도 `title` 노출(잘린 헤더 가독성).
|
|
108
|
+
- **셀 줄바꿈(wrap)** — `column.wrap: true` 시 nowrap+ellipsis 대신 여러 줄 표시(`white-space:normal`).
|
|
109
|
+
가상 스크롤 고정 행 높이와 함께 `rowHeight` 확대 권장.
|
|
110
|
+
- 회귀 테스트: `test/e2e/host-isolation.spec.ts` + 적대적 호스트 픽스처 `examples/host-isolation/`
|
|
111
|
+
(line-height/border/margin/색상 격리 + 컨텍스트메뉴 transform 조상 + 툴팁/wrap, before/after 변별 — 10 케이스).
|
|
112
|
+
|
|
113
|
+
## [0.3.0] - 2026-06-05
|
|
114
|
+
|
|
115
|
+
### Added
|
|
116
|
+
- **개발 가이드 DB화 완성** — 39개 섹션 전체 SQLite DB화 (G1~G6)
|
|
117
|
+
- G1: 시작하기 (npm 설치, 퀵스타트, 기본 설정)
|
|
118
|
+
- G2: 데이터/옵션 (컬럼 정의, 데이터 옵션, 선택/체크박스/DnD/상태 관리)
|
|
119
|
+
- G3: 편집/이벤트 (셀 편집, 셀 타입, 마스킹, 병합, 이벤트, 트리거)
|
|
120
|
+
- G4: 그룹/페이징 (그룹, 트리, 푸터, 페이지네이션, 파인드바, 키보드)
|
|
121
|
+
- G5: 고급/내보내기 (피벗, 워크시트, SAP, XML, 수식, 조직도, Excel/CSV/인쇄)
|
|
122
|
+
- G6: 스타일/API (테마, 커스텀, 폰트, 사이징, 접근성, 그리드/컬럼/이벤트 API)
|
|
123
|
+
- **전 프레임워크 데모 완성** — React / Vue / jQuery / Angular / Vanilla 각 49개 섹션
|
|
124
|
+
- Angular A~H: AngularJS 1.x CDN 기반, `$scope.$apply` 없이 ng-show/ng-hide 패턴
|
|
125
|
+
- **Guide 렌더러** — `lang='html'` 감지 시 innerHTML 직접 주입 방식으로 전환 (pre/code 래핑 없음)
|
|
126
|
+
|
|
127
|
+
## [0.2.0] - 2026-06-04
|
|
128
|
+
|
|
129
|
+
### Fixed
|
|
130
|
+
- **Formula 셀 클릭 버그** — `CellEventHandler.ts`: formula 컬럼 cellClick 시 `e.value`가 `undefined`이던 문제 수정
|
|
131
|
+
- `row[col.field]` 대신 `evaluateFormula()`로 직접 계산 후 주입
|
|
132
|
+
|
|
133
|
+
### Added
|
|
134
|
+
- **React 데모** — `demo-react/index.php` 신규 (React 18 CDN, `useRef+useEffect+createRoot` 패턴)
|
|
135
|
+
- React 프레임워크 전 섹션(A~H, 49개) DB 삽입 완료
|
|
136
|
+
- 선택/필터셀렉트 API 버그 수정 (`getSelections()`, `valueMap` 기반 표시)
|
|
137
|
+
|
|
138
|
+
## [0.1.2] - 2026-05-30
|
|
139
|
+
|
|
140
|
+
### Added (Sprint 29 추가분)
|
|
141
|
+
- **변경 추적 API 보강**
|
|
142
|
+
- `getChanges()` — `{ added, edited, removed }` 한 번에 반환. edited 행에 `_changedFields` 포함
|
|
143
|
+
- `getEditedRows()` — 수정된 행만 반환 (기존 `getChangedRows()` 개선판)
|
|
144
|
+
- `getChangedColumns()` — `{ row, fields, diff[] }` 형태로 컬럼 단위 diff 반환 (oldValue/newValue 포함)
|
|
145
|
+
- `getOriginalRow(rowIndex)` — 수정 전 원본 행 데이터 반환
|
|
146
|
+
- **합계 / 소계 (Footer)**
|
|
147
|
+
- `setFooter(FooterDef[])` — 런타임 푸터 설정 (SUM/AVG/MIN/MAX/COUNT)
|
|
148
|
+
- `getFooterValue(field)` — 특정 필드 집계 결과 조회
|
|
149
|
+
- `getFooterData()` — 전체 집계 데이터 배열 조회
|
|
150
|
+
- OGDecimal 기반 정밀 계산 — 소수점 누적 오류 없음 (0.1 × 10 = 정확히 1.00)
|
|
151
|
+
- 데이터 수정/추가/삭제 시 푸터 자동 재계산
|
|
152
|
+
- **Guide** — Ch26(변경 추적), Ch27(합계/소계) 추가 → 총 27챕터
|
|
153
|
+
- **Vanilla 데모** — '변경 추적' 섹션, '합계/소계' 섹션 추가
|
|
154
|
+
|
|
155
|
+
## [0.1.1] - 2026-05-30
|
|
156
|
+
|
|
157
|
+
### Added (Sprint 29)
|
|
158
|
+
- **columnReorder** — `columnReorder: true` 옵션으로 헤더 드래그 컬럼 순서 변경 지원
|
|
159
|
+
- `onColumnReorder` 이벤트 콜백 (`{ fromIndex, toIndex, field }`)
|
|
160
|
+
- 드래그 중 시각 피드백 (`og-col-dragging` / `og-col-drop-over` CSS 클래스)
|
|
161
|
+
- **Guide** — 개발 가이드 4개 챕터 신규 추가 (Ch22~Ch25)
|
|
162
|
+
- Ch22: 데이터 마스킹 (10종 타입, 셀/컬럼 단위 해제, maskOnExport)
|
|
163
|
+
- Ch23: 조직도 (OrgChart API, setData, expandAll/collapseAll, 테마 연동)
|
|
164
|
+
- Ch24: 페이지네이션 (API, 서버사이드, React/Vue 예제)
|
|
165
|
+
- Ch25: 키보드 단축키 (WCAG 2.2 준수 표, aria-label 설정)
|
|
166
|
+
- **E2E Tests** — sprint29.spec.ts 25개 시나리오 추가
|
|
167
|
+
- checkColumn 선택/해제, 컨텍스트 메뉴 렌더링/닫힘, 테마 전환(data-og-theme), 키보드 네비게이션, 셀 편집, 정렬(aria-sort)
|
|
168
|
+
|
|
169
|
+
### Changed
|
|
170
|
+
- `GridRenderer` 내부 콜백에 `onColDragStart` / `onColDrop` / `getColDragIdx` 추가
|
|
171
|
+
|
|
172
|
+
## [0.1.0] - 2026-05-24
|
|
173
|
+
|
|
174
|
+
### Added
|
|
175
|
+
- **Core Engine**
|
|
176
|
+
- `OpenGrid` class — main grid instance with `new OpenGrid(container, options)` API
|
|
177
|
+
- `DataLayer` — CRUD, state tracking (added/edited/removed), sort, filter
|
|
178
|
+
- `VirtualScroll` — rAF-based rendering with row pooling (100k+ rows)
|
|
179
|
+
- `ColumnLayout` — group headers, frozen columns, flex widths
|
|
180
|
+
- `EventEmitter` — on/once/off/emit event system
|
|
181
|
+
|
|
182
|
+
- **Cell Renderers** (8 types)
|
|
183
|
+
- text, number (format), date, checkbox, button, badge, link, template
|
|
184
|
+
|
|
185
|
+
- **Cell Editors** (5 types)
|
|
186
|
+
- text, number, select, date, checkbox
|
|
187
|
+
- Inline editing: click / dblclick / F2 entry, Enter/Tab/Esc exit
|
|
188
|
+
|
|
189
|
+
- **Grouping + Summary**
|
|
190
|
+
- `groupBy(fields[])` — multi-level hierarchical grouping
|
|
191
|
+
- `summary` option — SUM / AVG / MIN / MAX / COUNT per column
|
|
192
|
+
- `expandAll()` / `collapseAll()` / `clearGroup()`
|
|
193
|
+
|
|
194
|
+
- **Tree Grid**
|
|
195
|
+
- `enableTree()` / `disableTree()` — flat-to-tree via `treeId` / `treeParentId`
|
|
196
|
+
- `expandNodes(ids)` / `expandAllNodes()` / `collapseAllNodes()`
|
|
197
|
+
- Indent + toggle arrow rendering per depth level
|
|
198
|
+
|
|
199
|
+
- **Cell Merge**
|
|
200
|
+
- `mergeCells([{row, col, rowSpan?, colSpan?}])` — manual merge
|
|
201
|
+
- `autoMerge(fields[])` — auto rowSpan for consecutive identical values
|
|
202
|
+
- `clearMerge()` — remove all merges
|
|
203
|
+
|
|
204
|
+
- **Row Drag & Drop**
|
|
205
|
+
- `draggable: true` option
|
|
206
|
+
- Ghost row + drop indicator
|
|
207
|
+
- `reorderRow(from, to)` public API
|
|
208
|
+
- `onRowDrop` callback
|
|
209
|
+
|
|
210
|
+
- **Filter UI**
|
|
211
|
+
- Column header filter icon
|
|
212
|
+
- 9 operators: `=`, `!=`, `contains`, `startsWith`, `endsWith`, `>`, `<`, `>=`, `<=`
|
|
213
|
+
|
|
214
|
+
- **Export**
|
|
215
|
+
- `exportExcel(options?)` — SheetJS xlsx (dynamic import, code-split)
|
|
216
|
+
- `exportCsv(options?)` — BOM-aware CSV
|
|
217
|
+
- `exportJson(options?)` — JSON download
|
|
218
|
+
|
|
219
|
+
- **Pagination**
|
|
220
|
+
- `pagination: true` + `pageSize` option
|
|
221
|
+
- Page size selector (10/20/50/100/200)
|
|
222
|
+
- First/Prev/Next/Last navigation
|
|
223
|
+
|
|
224
|
+
- **Keyboard Navigation**
|
|
225
|
+
- Arrow keys — cell navigation
|
|
226
|
+
- Tab / Shift+Tab — next/prev cell
|
|
227
|
+
- F2 / Enter — start edit
|
|
228
|
+
- Escape — cancel edit / clear focus
|
|
229
|
+
- Ctrl+C / Ctrl+V — clipboard
|
|
230
|
+
|
|
231
|
+
- **UI**
|
|
232
|
+
- Column resize (drag)
|
|
233
|
+
- Multi-sort (Shift+click)
|
|
234
|
+
- Dark theme (`theme: 'dark'`)
|
|
235
|
+
- CSS Variables — full theme customization
|
|
236
|
+
- `setTheme(theme)` / `setThemeVar(key, value)`
|
|
237
|
+
|
|
238
|
+
- **Vue 3 Component** (`open-grid/vue`)
|
|
239
|
+
- Composition API, `defineProps` / `defineEmits`
|
|
240
|
+
- Reactive `data` / `columns` watchers
|
|
241
|
+
- `grid` instance exposed via `defineExpose`
|
|
242
|
+
|
|
243
|
+
- **React 18 Component** (`open-grid/react`)
|
|
244
|
+
- Hooks-based (`useRef`, `useEffect`)
|
|
245
|
+
- `OpenGridReact` + `OpenGridWithRef` (forwardRef)
|
|
246
|
+
- `stateColumn`, `draggable`, `onRowDrop` props
|
|
247
|
+
|
|
248
|
+
- **API Naming** — distinctive, self-consistent method names
|
|
249
|
+
- `readCell`, `writeCell` for cell access
|
|
250
|
+
- `orderBy` for sorting
|
|
251
|
+
- `jumpToRow` for scrolling
|
|
252
|
+
- `getSelections` for selection
|
|
253
|
+
- (40+ purpose-built method names)
|
|
254
|
+
|
|
255
|
+
### Performance
|
|
256
|
+
- Multi-sort 100k rows: 1789ms → **40ms** (44× improvement via Schwartzian transform)
|
|
257
|
+
- Single sort 100k rows: ~38ms
|
|
258
|
+
- Filter 100k rows: ~17ms
|
|
259
|
+
- Group build 100k rows: ~3ms (5 groups)
|
|
260
|
+
- Tree build 100k rows: ~25ms
|
|
261
|
+
|
|
262
|
+
### Tests
|
|
263
|
+
- 124 unit tests across 7 test files
|
|
264
|
+
- EventEmitter (7), DataLayer (14), GroupEngine (18), TreeEngine (20),
|
|
265
|
+
MergeEngine (16), CellEditor (23), CellRenderer (26)
|
package/NOTICE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
OPEN_GRID
|
|
2
|
+
Copyright (c) 2026 OPEN_GRID Contributors
|
|
3
|
+
|
|
4
|
+
This product is licensed under the MIT License (see LICENSE).
|
|
5
|
+
|
|
6
|
+
This product bundles third-party components that are licensed under the
|
|
7
|
+
Apache License, Version 2.0. Their attribution notices are reproduced below,
|
|
8
|
+
and the full license texts are provided in THIRD_PARTY_LICENSES.txt.
|
|
9
|
+
|
|
10
|
+
-----------------------------------------------------------------------
|
|
11
|
+
SheetJS Community Edition (xlsx)
|
|
12
|
+
Copyright (C) 2012-present SheetJS LLC
|
|
13
|
+
https://sheetjs.com/
|
|
14
|
+
Licensed under the Apache License, Version 2.0.
|
|
15
|
+
|
|
16
|
+
xlsx-js-style
|
|
17
|
+
Copyright (C) 2012-present SheetJS LLC
|
|
18
|
+
Copyright (C) 2021-present Brent Ely (gitbrent)
|
|
19
|
+
https://github.com/gitbrent/xlsx-js-style/
|
|
20
|
+
Licensed under the Apache License, Version 2.0.
|
|
21
|
+
-----------------------------------------------------------------------
|
package/README.md
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
# OPEN_GRID
|
|
2
2
|
|
|
3
|
+
**Meet Open Grid** — the ultra-light data grid with a **zero-dependency core** that fits
|
|
4
|
+
effortlessly into any tech stack. React, Vue, Angular, jQuery, or pure JavaScript — it just
|
|
5
|
+
works. MIT-licensed for full commercial freedom, endlessly customizable, and enhanced with an
|
|
6
|
+
AI-friendly override guide so you can push your grid further than ever.
|
|
7
|
+
|
|
3
8
|
High-performance, framework-agnostic data grid with virtual scrolling, inline editing, grouping, tree view, drag-and-drop, change tracking, footer aggregation, and column reorder.
|
|
4
9
|
|
|
5
10
|
[](LICENSE)
|
|
6
11
|
[](https://www.typescriptlang.org/)
|
|
7
|
-
[](https://www.npmjs.com/package/open-grid)
|
|
8
13
|
|
|
9
14
|
📖 **[개발 가이드](https://foxnail.kr/open-grid/demo/v2/guide/index.php)** — 설치부터 고급 API까지 단계별 가이드
|
|
10
15
|
🔗 **[데모/홈페이지](https://foxnail.kr/open-grid/demo/v2/index.php)**
|
|
@@ -365,3 +370,30 @@ CSS 변수로 완전한 테마 커스터마이즈 가능:
|
|
|
365
370
|
## License
|
|
366
371
|
|
|
367
372
|
MIT © OPEN_GRID Contributors
|
|
373
|
+
|
|
374
|
+
### Zero runtime dependencies (Excel still works out of the box)
|
|
375
|
+
|
|
376
|
+
`npm install open-grid` pulls **no external runtime dependencies** — the core grid is fully
|
|
377
|
+
self-contained.
|
|
378
|
+
|
|
379
|
+
**Excel export works out of the box, with nothing extra to install.** It uses SheetJS
|
|
380
|
+
(`xlsx-js-style`), which is **bundled inside the package** (in `dist/`) and loaded on demand
|
|
381
|
+
only when you actually export. You do **not** need to add `xlsx`/`xlsx-js-style` to your
|
|
382
|
+
project — they ship inside OPEN_GRID. (They are listed under `devDependencies` because they are
|
|
383
|
+
needed to *build* the bundle, not to *use* it.)
|
|
384
|
+
|
|
385
|
+
### Third-party licenses
|
|
386
|
+
|
|
387
|
+
The bundled Excel export uses **SheetJS Community Edition (`xlsx`)** and
|
|
388
|
+
**`xlsx-js-style`**, both licensed under the **Apache License, Version 2.0**
|
|
389
|
+
(© SheetJS LLC, and Brent Ely for the style fork). Their attribution notices
|
|
390
|
+
and the full license text are included in [`NOTICE`](NOTICE) and
|
|
391
|
+
[`THIRD_PARTY_LICENSES.txt`](THIRD_PARTY_LICENSES.txt).
|
|
392
|
+
|
|
393
|
+
> **As of 1.0.2**, these `NOTICE` and `THIRD_PARTY_LICENSES.txt` files are shipped
|
|
394
|
+
> inside the published package to satisfy the Apache-2.0 attribution requirements
|
|
395
|
+
> for the bundled components — resolving a potential license-compliance gap in
|
|
396
|
+
> earlier releases (≤ 1.0.1), which shipped only the MIT license without the
|
|
397
|
+
> required Apache-2.0 notices. OPEN_GRID's own MIT license is unchanged; MIT and
|
|
398
|
+
> Apache-2.0 are compatible, so this was an attribution fix only. See
|
|
399
|
+
> [`CHANGELOG.md`](CHANGELOG.md) for details.
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
OPEN_GRID — Third-Party Software Licenses
|
|
2
|
+
=========================================
|
|
3
|
+
|
|
4
|
+
The OPEN_GRID distribution (the `dist/` directory of the published npm package)
|
|
5
|
+
bundles the following third-party open-source components. OPEN_GRID itself is
|
|
6
|
+
licensed under the MIT License (see LICENSE). The components below are
|
|
7
|
+
redistributed under the Apache License, Version 2.0, a copy of which is
|
|
8
|
+
reproduced in full at the end of this file.
|
|
9
|
+
|
|
10
|
+
-----------------------------------------------------------------------
|
|
11
|
+
1. SheetJS Community Edition (xlsx)
|
|
12
|
+
Copyright (C) 2012-present SheetJS LLC
|
|
13
|
+
Homepage: https://sheetjs.com/
|
|
14
|
+
License: Apache License, Version 2.0
|
|
15
|
+
Bundled as: dist/xlsx.min-*.js (used by the Excel export feature)
|
|
16
|
+
|
|
17
|
+
2. xlsx-js-style
|
|
18
|
+
Copyright (C) 2012-present SheetJS LLC
|
|
19
|
+
Copyright (C) 2021-present Brent Ely (gitbrent)
|
|
20
|
+
Homepage: https://github.com/gitbrent/xlsx-js-style/
|
|
21
|
+
License: Apache License, Version 2.0
|
|
22
|
+
(A style-preserving fork of SheetJS Community Edition; portions of its
|
|
23
|
+
code are bundled together with the Excel export feature.)
|
|
24
|
+
-----------------------------------------------------------------------
|
|
25
|
+
|
|
26
|
+
The complete text of the Apache License, Version 2.0 follows.
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
Apache License
|
|
30
|
+
Version 2.0, January 2004
|
|
31
|
+
http://www.apache.org/licenses/
|
|
32
|
+
|
|
33
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
34
|
+
|
|
35
|
+
1. Definitions.
|
|
36
|
+
|
|
37
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
38
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
39
|
+
|
|
40
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
41
|
+
the copyright owner that is granting the License.
|
|
42
|
+
|
|
43
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
44
|
+
other entities that control, are controlled by, or are under common
|
|
45
|
+
control with that entity. For the purposes of this definition,
|
|
46
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
47
|
+
direction or management of such entity, whether by contract or
|
|
48
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
49
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
50
|
+
|
|
51
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
52
|
+
exercising permissions granted by this License.
|
|
53
|
+
|
|
54
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
55
|
+
including but not limited to software source code, documentation
|
|
56
|
+
source, and configuration files.
|
|
57
|
+
|
|
58
|
+
"Object" form shall mean any form resulting from mechanical
|
|
59
|
+
transformation or translation of a Source form, including but
|
|
60
|
+
not limited to compiled object code, generated documentation,
|
|
61
|
+
and conversions to other media types.
|
|
62
|
+
|
|
63
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
64
|
+
Object form, made available under the License, as indicated by a
|
|
65
|
+
copyright notice that is included in or attached to the work
|
|
66
|
+
(an example is provided in the Appendix below).
|
|
67
|
+
|
|
68
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
69
|
+
form, that is based on (or derived from) the Work and for which the
|
|
70
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
71
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
72
|
+
of this License, Derivative Works shall not include works that remain
|
|
73
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
74
|
+
the Work and Derivative Works thereof.
|
|
75
|
+
|
|
76
|
+
"Contribution" shall mean any work of authorship, including
|
|
77
|
+
the original version of the Work and any modifications or additions
|
|
78
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
79
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
80
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
81
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
82
|
+
means any form of electronic, verbal, or written communication sent
|
|
83
|
+
to the Licensor or its representatives, including but not limited to
|
|
84
|
+
communication on electronic mailing lists, source code control systems,
|
|
85
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
86
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
87
|
+
excluding communication that is conspicuously marked or otherwise
|
|
88
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
89
|
+
|
|
90
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
91
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
92
|
+
subsequently incorporated within the Work.
|
|
93
|
+
|
|
94
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
95
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
96
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
97
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
98
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
99
|
+
Work and such Derivative Works in Source or Object form.
|
|
100
|
+
|
|
101
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
102
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
103
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
104
|
+
(except as stated in this section) patent license to make, have made,
|
|
105
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
106
|
+
where such license applies only to those patent claims licensable
|
|
107
|
+
by such Contributor that are necessarily infringed by their
|
|
108
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
109
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
110
|
+
institute patent litigation against any entity (including a
|
|
111
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
112
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
113
|
+
or contributory patent infringement, then any patent licenses
|
|
114
|
+
granted to You under this License for that Work shall terminate
|
|
115
|
+
as of the date such litigation is filed.
|
|
116
|
+
|
|
117
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
118
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
119
|
+
modifications, and in Source or Object form, provided that You
|
|
120
|
+
meet the following conditions:
|
|
121
|
+
|
|
122
|
+
(a) You must give any other recipients of the Work or
|
|
123
|
+
Derivative Works a copy of this License; and
|
|
124
|
+
|
|
125
|
+
(b) You must cause any modified files to carry prominent notices
|
|
126
|
+
stating that You changed the files; and
|
|
127
|
+
|
|
128
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
129
|
+
that You distribute, all copyright, patent, trademark, and
|
|
130
|
+
attribution notices from the Source form of the Work,
|
|
131
|
+
excluding those notices that do not pertain to any part of
|
|
132
|
+
the Derivative Works; and
|
|
133
|
+
|
|
134
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
135
|
+
distribution, then any Derivative Works that You distribute must
|
|
136
|
+
include a readable copy of the attribution notices contained
|
|
137
|
+
within such NOTICE file, excluding those notices that do not
|
|
138
|
+
pertain to any part of the Derivative Works, in at least one
|
|
139
|
+
of the following places: within a NOTICE text file distributed
|
|
140
|
+
as part of the Derivative Works; within the Source form or
|
|
141
|
+
documentation, if provided along with the Derivative Works; or,
|
|
142
|
+
within a display generated by the Derivative Works, if and
|
|
143
|
+
wherever such third-party notices normally appear. The contents
|
|
144
|
+
of the NOTICE file are for informational purposes only and
|
|
145
|
+
do not modify the License. You may add Your own attribution
|
|
146
|
+
notices within Derivative Works that You distribute, alongside
|
|
147
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
148
|
+
that such additional attribution notices cannot be construed
|
|
149
|
+
as modifying the License.
|
|
150
|
+
|
|
151
|
+
You may add Your own copyright statement to Your modifications and
|
|
152
|
+
may provide additional or different license terms and conditions
|
|
153
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
154
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
155
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
156
|
+
the conditions stated in this License.
|
|
157
|
+
|
|
158
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
159
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
160
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
161
|
+
this License, without any additional terms or conditions.
|
|
162
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
163
|
+
the terms of any separate license agreement you may have executed
|
|
164
|
+
with Licensor regarding such Contributions.
|
|
165
|
+
|
|
166
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
167
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
168
|
+
except as required for reasonable and customary use in describing the
|
|
169
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
170
|
+
|
|
171
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
172
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
173
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
174
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
175
|
+
implied, including, without limitation, any warranties or conditions
|
|
176
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
177
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
178
|
+
appropriateness of using or redistributing the Work and assume any
|
|
179
|
+
risks associated with Your exercise of permissions under this License.
|
|
180
|
+
|
|
181
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
182
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
183
|
+
unless required by applicable law (such as deliberate and grossly
|
|
184
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
185
|
+
liable to You for damages, including any direct, indirect, special,
|
|
186
|
+
incidental, or consequential damages of any character arising as a
|
|
187
|
+
result of this License or out of the use or inability to use the
|
|
188
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
189
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
190
|
+
other commercial damages or losses), even if such Contributor
|
|
191
|
+
has been advised of the possibility of such damages.
|
|
192
|
+
|
|
193
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
194
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
195
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
196
|
+
or other liability obligations and/or rights consistent with this
|
|
197
|
+
License. However, in accepting such obligations, You may act only
|
|
198
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
199
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
200
|
+
defend, and hold each Contributor harmless for any liability
|
|
201
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
202
|
+
of your accepting any such warranty or additional liability.
|
|
203
|
+
|
|
204
|
+
END OF TERMS AND CONDITIONS
|
|
205
|
+
|
|
206
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
207
|
+
|
|
208
|
+
To apply the Apache License to your work, attach the following
|
|
209
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
210
|
+
replaced with your own identifying information. (Don't include
|
|
211
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
212
|
+
comment syntax for the file format. We also recommend that a
|
|
213
|
+
file or class name and description of purpose be included on the
|
|
214
|
+
same "printed page" as the copyright notice for easier
|
|
215
|
+
identification within third-party archives.
|
|
216
|
+
|
|
217
|
+
Copyright (C) 2012-present SheetJS LLC
|
|
218
|
+
|
|
219
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
220
|
+
you may not use this file except in compliance with the License.
|
|
221
|
+
You may obtain a copy of the License at
|
|
222
|
+
|
|
223
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
224
|
+
|
|
225
|
+
Unless required by applicable law or agreed to in writing, software
|
|
226
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
227
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
228
|
+
See the License for the specific language governing permissions and
|
|
229
|
+
limitations under the License.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-grid",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.6",
|
|
4
|
+
"description": "Ultra-light data grid with a zero-dependency core — works with React, Vue, Angular, jQuery, or vanilla JS. MIT-licensed, endlessly customizable, with an AI-friendly override guide.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/open-grid.cjs",
|
|
7
7
|
"module": "dist/open-grid.js",
|
|
@@ -27,7 +27,10 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"dist",
|
|
29
29
|
"README.md",
|
|
30
|
-
"
|
|
30
|
+
"CHANGELOG.md",
|
|
31
|
+
"LICENSE",
|
|
32
|
+
"NOTICE",
|
|
33
|
+
"THIRD_PARTY_LICENSES.txt"
|
|
31
34
|
],
|
|
32
35
|
"scripts": {
|
|
33
36
|
"dev": "vite",
|
|
@@ -78,9 +81,7 @@
|
|
|
78
81
|
"vite": "^5.2.0",
|
|
79
82
|
"vite-plugin-dts": "^4.5.4",
|
|
80
83
|
"vitest": "^1.6.0",
|
|
81
|
-
"vue": "^3.4.0"
|
|
82
|
-
},
|
|
83
|
-
"dependencies": {
|
|
84
|
+
"vue": "^3.4.0",
|
|
84
85
|
"xlsx": "^0.18.5",
|
|
85
86
|
"xlsx-js-style": "^1.2.0"
|
|
86
87
|
},
|
|
@@ -96,5 +97,12 @@
|
|
|
96
97
|
],
|
|
97
98
|
"license": "MIT",
|
|
98
99
|
"author": "OPEN_GRID Contributors",
|
|
99
|
-
"homepage": "https://foxnail.kr/open-grid/demo/v2/index.php"
|
|
100
|
+
"homepage": "https://foxnail.kr/open-grid/demo/v2/index.php",
|
|
101
|
+
"repository": {
|
|
102
|
+
"type": "git",
|
|
103
|
+
"url": "git+https://github.com/farmerkweon/OpenGrid.git"
|
|
104
|
+
},
|
|
105
|
+
"bugs": {
|
|
106
|
+
"url": "https://github.com/farmerkweon/OpenGrid/issues"
|
|
107
|
+
}
|
|
100
108
|
}
|