open-grid 1.1.1 → 1.2.1
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 +32 -0
- package/README.md +30 -1
- package/dist/OpenGrid-0r_543Kj.cjs +7192 -0
- package/dist/OpenGrid-HmhGVC2V.js +7203 -0
- package/dist/open-grid-react.cjs +27 -1
- package/dist/open-grid-react.js +22 -82
- package/dist/open-grid-vue.cjs +31 -1
- package/dist/open-grid-vue.js +29 -79
- package/dist/open-grid.cjs +272 -6
- package/dist/open-grid.js +174 -260
- package/dist/types/core/CellEditManager.d.ts +75 -0
- package/dist/types/core/CellEventHandler.d.ts +99 -2
- package/dist/types/core/ChartManager.d.ts +53 -3
- package/dist/types/core/ContextMenu.d.ts +48 -3
- package/dist/types/core/CrossGridController.d.ts +86 -15
- package/dist/types/core/CrossGridRegistry.d.ts +36 -2
- package/dist/types/core/DetailManager.d.ts +108 -15
- package/dist/types/core/ExportManager.d.ts +73 -1
- package/dist/types/core/ExtensionPointRegistry.d.ts +160 -14
- package/dist/types/core/FilterPanel.d.ts +21 -3
- package/dist/types/core/FilterSelect.d.ts +41 -14
- package/dist/types/core/FindBarManager.d.ts +32 -0
- package/dist/types/core/FlatRowModel.d.ts +54 -11
- package/dist/types/core/FooterManager.d.ts +53 -1
- package/dist/types/core/FormulaController.d.ts +141 -10
- package/dist/types/core/GridComposer.d.ts +57 -4
- package/dist/types/core/GridRenderer.d.ts +3 -0
- package/dist/types/core/GridShuttle.d.ts +44 -4
- package/dist/types/core/GroupTreeManager.d.ts +86 -2
- package/dist/types/core/IconRegistry.d.ts +56 -9
- package/dist/types/core/KeyboardManager.d.ts +90 -4
- package/dist/types/core/MaskingEngine.d.ts +10 -9
- package/dist/types/core/MutationService.d.ts +115 -10
- package/dist/types/core/OpenGrid.d.ts +393 -34
- package/dist/types/core/OrgChart.d.ts +56 -1
- package/dist/types/core/OverrideKernel.d.ts +59 -15
- package/dist/types/core/Pagination.d.ts +44 -5
- package/dist/types/core/RangeSelectionManager.d.ts +123 -7
- package/dist/types/core/RenderController.d.ts +56 -0
- package/dist/types/core/RowManager.d.ts +55 -0
- package/dist/types/core/SkinRegistry.d.ts +51 -15
- package/dist/types/core/SortFilterManager.d.ts +82 -1
- package/dist/types/core/TriggerManager.d.ts +46 -0
- package/dist/types/core/WorksheetManager.d.ts +65 -3
- package/dist/types/core/XmlConverter.d.ts +56 -23
- package/dist/types/core/chart/types.d.ts +107 -10
- package/dist/types/core/detail/DetailGlyph.d.ts +3 -1
- package/dist/types/core/editors/CellEditor.d.ts +29 -2
- package/dist/types/core/formula/types.d.ts +71 -8
- package/dist/types/core/i18n/LocaleRegistry.d.ts +0 -0
- package/dist/types/core/i18n/interpolate.d.ts +5 -0
- package/dist/types/core/i18n/locales/en.d.ts +166 -0
- package/dist/types/core/i18n/locales/ko.d.ts +166 -0
- package/dist/types/core/i18n/types.d.ts +249 -0
- package/dist/types/core/range/RangeQuery.d.ts +24 -2
- package/dist/types/core/renderers/CellRenderer.d.ts +105 -8
- package/dist/types/core/types.d.ts +352 -96
- package/dist/types/index.d.ts +22 -0
- package/dist/xlsx.min-BQ1o3sB6.cjs +11793 -0
- package/dist/{xlsx.min-Wavxcamn.js → xlsx.min-Bbz2ZypC.js} +453 -566
- package/package.json +4 -1
- package/dist/OpenGrid-LcZ5iixx.cjs +0 -97
- package/dist/OpenGrid-yg4mw6Ge.js +0 -9505
- package/dist/xlsx.min-Bx-LxWOf.cjs +0 -138
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to OPEN_GRID will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.2.1] - 2026-07-05
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- **ES 번들 미니파이** / **ES bundle minification.** Vite lib 모드가 ES 포맷 청크에 minify 를
|
|
9
|
+
적용하지 않아 ESM(`module`) 번들 전체가 비압축(주석·공백 포함)으로 배포되던 문제를 수정.
|
|
10
|
+
이제 모든 청크를 esbuild 로 압축하고 JSDoc 주석을 번들에서 제거한다 —
|
|
11
|
+
ES 코어 청크 gzip **135KB → 98KB (약 -27%)**. (이전 모든 버전에 존재하던 결함)
|
|
12
|
+
|
|
13
|
+
### Docs
|
|
14
|
+
- 공개 API 선언 원본·오케스트레이터/매니저 38개 파일에 한·영 병행 JSDoc 확대.
|
|
15
|
+
- 번들 사이즈 게이트 추가 (`npm run size`).
|
|
16
|
+
|
|
17
|
+
## [1.2.0] - 2026-07-05
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
- **다국어(i18n) — 리소스 분리** / **Internationalization — separated resources.**
|
|
21
|
+
UI 문자열(라벨·aria-label·announce·툴팁·플레이스홀더)을 코어에서 분리해 로케일 카탈로그로 관리.
|
|
22
|
+
`SkinRegistry`/`IconRegistry`와 동형인 `LocaleRegistry`(전역 싱글턴 + 인스턴스별 child 체인 + never-throw 폴백).
|
|
23
|
+
- 옵션: `new OpenGrid(el, { locale: 'en', messages: { ... } })`
|
|
24
|
+
- 메서드: `grid.setLocale('en')` / `grid.getLocale()` / `grid.setMessage(key, value)` / `grid.t(key, params)`
|
|
25
|
+
- 등록: `localeRegistry.register('ja', { ... })`, `OpenGrid.defineLocale(id, messages)`
|
|
26
|
+
- 내장 로케일 `ko`(기본)·`en`. 폴백 체인 = 인스턴스 오버라이드 → 활성 로케일 → ko → 키 원문.
|
|
27
|
+
- `setLocale` 시 상주 크롬(페이지네이션·찾기 바) 재라벨 + 컨텍스트메뉴/필터패널 재구성 + `lang` 속성 갱신 + `localeChange` 이벤트.
|
|
28
|
+
- 공개 export: `LocaleRegistry`/`localeRegistry`/`t` + 타입 `LocaleMessages`/`PartialLocaleMessages`/`LocaleMessageKey`/`MessageValue`.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
- **하위호환 보장** — 기본 로케일 `ko` 고정. `locale`/`messages` 미지정 시 렌더 결과는 이전과 동일(byte-identical).
|
|
32
|
+
개발자 대면 오류 메시지(throw/console)와 숫자·날짜 포맷은 i18n 범위에서 제외(로그 안정성·별도 축).
|
|
33
|
+
|
|
34
|
+
### Docs
|
|
35
|
+
- **TypeDoc API 문서 파이프라인** — `npm run docs`로 공개 API 문서 생성. 공개 표면에 한·영 병행 JSDoc.
|
|
36
|
+
|
|
5
37
|
## [1.1.1] - 2026-07-04
|
|
6
38
|
|
|
7
39
|
### Added
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ High-performance, framework-agnostic data grid with virtual scrolling, inline ed
|
|
|
9
9
|
|
|
10
10
|
[](LICENSE)
|
|
11
11
|
[](https://www.typescriptlang.org/)
|
|
12
|
-
[](https://www.npmjs.com/package/open-grid)
|
|
13
13
|
|
|
14
14
|
📖 **[개발 가이드](https://foxnail.kr/open-grid/demo/v2/guide/index.php)** — 설치부터 고급 API까지 단계별 가이드
|
|
15
15
|
🔗 **[데모/홈페이지](https://foxnail.kr/open-grid/demo/v2/index.php)**
|
|
@@ -28,6 +28,7 @@ High-performance, framework-agnostic data grid with virtual scrolling, inline ed
|
|
|
28
28
|
| Column Reorder (drag header, `columnReorder: true`) | ✅ |
|
|
29
29
|
| Frozen Columns | ✅ |
|
|
30
30
|
| Row/Column Groups (header merge) | ✅ |
|
|
31
|
+
| Localization / i18n (built-in `ko`·`en`, `setLocale`, custom locales) | ✅ |
|
|
31
32
|
| Grouping + Summary (SUM/AVG/MIN/MAX/COUNT) | ✅ |
|
|
32
33
|
| Tree Grid (flat → hierarchy, expand/collapse) | ✅ |
|
|
33
34
|
| OrgChart (organization chart with theme) | ✅ |
|
|
@@ -350,6 +351,34 @@ CSS 변수로 완전한 테마 커스터마이즈 가능:
|
|
|
350
351
|
}
|
|
351
352
|
```
|
|
352
353
|
|
|
354
|
+
## Localization (i18n)
|
|
355
|
+
|
|
356
|
+
All built-in UI strings — labels, `aria-label`s, live-region announcements, tooltips, placeholders —
|
|
357
|
+
are kept in swappable locale catalogs, separated from the core. Ships with **`ko` (default) and `en`**.
|
|
358
|
+
Existing apps are unaffected: without a `locale`/`messages` option, output is byte-identical to before.
|
|
359
|
+
|
|
360
|
+
```ts
|
|
361
|
+
import { OpenGrid, localeRegistry } from 'open-grid';
|
|
362
|
+
|
|
363
|
+
// 1) Pick a built-in locale per instance
|
|
364
|
+
const grid = new OpenGrid(el, { columns, locale: 'en' });
|
|
365
|
+
|
|
366
|
+
// 2) Switch at runtime (re-labels chrome, updates the `lang` attribute, emits `localeChange`)
|
|
367
|
+
grid.setLocale('ko');
|
|
368
|
+
|
|
369
|
+
// 3) Override just a few messages for one instance
|
|
370
|
+
new OpenGrid(el, { locale: 'en', messages: { contextMenu: { sortAsc: 'Sort A→Z' } } });
|
|
371
|
+
|
|
372
|
+
// 4) Register a custom locale globally (partial dictionaries are fine — missing keys fall back)
|
|
373
|
+
localeRegistry.register('ja', { contextMenu: { find: '検索' }, pagination: { rowsPerPage: '行/ページ:' } });
|
|
374
|
+
new OpenGrid(el, { locale: 'ja' });
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
Fallback chain: instance override → active locale → `ko` (complete catalog) → raw key.
|
|
378
|
+
Number/date formatting and developer-facing error messages are intentionally out of scope
|
|
379
|
+
(use `Intl` and keep logs grep-stable). See the
|
|
380
|
+
[Localization guide](https://foxnail.kr/open-grid/demo/v2/guide/index.php) for the full key reference.
|
|
381
|
+
|
|
353
382
|
## Changelog
|
|
354
383
|
|
|
355
384
|
### v0.1.2 (2026-05-30)
|