open-grid 1.4.0 → 1.5.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +18 -1
  3. package/dist/{OpenGrid-BOtTt5aI.cjs → OpenGrid-CT9bV6On.cjs} +7 -7
  4. package/dist/OpenGrid-CT9bV6On.cjs.map +1 -0
  5. package/dist/{OpenGrid-sI_vdHQw.js → OpenGrid-DACnZdEy.js} +7 -7
  6. package/dist/OpenGrid-DACnZdEy.js.map +1 -0
  7. package/dist/Registry-CPJYOqCn.js.map +1 -0
  8. package/dist/Registry-D74ZmdDz.cjs.map +1 -0
  9. package/dist/{index-D1l3XFCM.cjs → index-Brfso4Ry.cjs} +2 -2
  10. package/dist/index-Brfso4Ry.cjs.map +1 -0
  11. package/dist/index-CeJ-0-80.cjs.map +1 -0
  12. package/dist/index-DnarQ4eR.js.map +1 -0
  13. package/dist/{index-B3fKi43v.js → index-al9Mbv3E.js} +2 -2
  14. package/dist/index-al9Mbv3E.js.map +1 -0
  15. package/dist/open-grid-base.css +98 -35
  16. package/dist/open-grid-header.cjs +188 -0
  17. package/dist/open-grid-header.cjs.map +1 -0
  18. package/dist/open-grid-header.css +386 -0
  19. package/dist/open-grid-header.js +197 -0
  20. package/dist/open-grid-header.js.map +1 -0
  21. package/dist/open-grid-react.cjs +1 -1
  22. package/dist/open-grid-react.cjs.map +1 -0
  23. package/dist/open-grid-react.js +1 -1
  24. package/dist/open-grid-react.js.map +1 -0
  25. package/dist/open-grid-themes.css +774 -1
  26. package/dist/open-grid-typography.cjs +97 -0
  27. package/dist/open-grid-typography.cjs.map +1 -0
  28. package/dist/open-grid-typography.css +181 -0
  29. package/dist/open-grid-typography.js +105 -0
  30. package/dist/open-grid-typography.js.map +1 -0
  31. package/dist/open-grid-vue.cjs +1 -1
  32. package/dist/open-grid-vue.cjs.map +1 -0
  33. package/dist/open-grid-vue.js +1 -1
  34. package/dist/open-grid-vue.js.map +1 -0
  35. package/dist/open-grid.cjs +1 -1
  36. package/dist/open-grid.cjs.map +1 -0
  37. package/dist/open-grid.js +2 -2
  38. package/dist/open-grid.js.map +1 -0
  39. package/dist/types/core/DetailManager.d.ts +2 -2
  40. package/dist/types/core/FormulaController.d.ts +2 -2
  41. package/dist/types/core/MutationService.d.ts +2 -2
  42. package/dist/types/core/OpenGrid.d.ts +4 -4
  43. package/dist/types/core/appearance/AppearanceAxis.d.ts +1 -1
  44. package/dist/types/core/appearance/HeaderRegistry.d.ts +236 -0
  45. package/dist/types/core/appearance/ThemeMetaRegistry.d.ts +1 -1
  46. package/dist/types/core/appearance/TypographyRegistry.d.ts +122 -0
  47. package/dist/types/core/appearance/index.d.ts +1 -0
  48. package/dist/types/core/detail/DetailState.d.ts +1 -1
  49. package/dist/types/core/detail/SubgridCache.d.ts +2 -2
  50. package/dist/types/header/index.d.ts +144 -0
  51. package/dist/types/typography/index.d.ts +128 -0
  52. package/dist/xlsx.min-BQ1o3sB6.cjs.map +1 -0
  53. package/dist/xlsx.min-Bbz2ZypC.js.map +1 -0
  54. package/package.json +126 -114
package/CHANGELOG.md CHANGED
@@ -2,6 +2,65 @@
2
2
 
3
3
  All notable changes to OPEN_GRID will be documented in this file.
4
4
 
5
+ ## [1.5.1] - 2026-08-08
6
+
7
+ ### Fixed
8
+ - **발행물에서 내부 인명 표기 제거** / **Internal reviewer names removed from shipped files.**
9
+ 소스 주석에 설계·리뷰 참여자 표기가 남아 있어 배포 파일()에 실려 나갔다.
10
+ 전부 역할 라벨로 바꿨다(예: → , → ).
11
+ **코드·값·동작은 한 줄도 바뀌지 않았다 — 주석만 바뀐다.**
12
+ 1.4.0 이전 릴리스에도 일부 표기가 있었으며 이번에 함께 정리했다.
13
+ / Comments only. No code, values, or behaviour changed.
14
+
15
+ ## [1.5.0] - 2026-08-08
16
+
17
+ ### Added
18
+ - **헤더 축 신설 (제6축)** / **New header axis (6th).** 머리글의 **형태**를 색·형태(스킨)·밀도·
19
+ 질감·조판에 이은 여섯 번째 축으로 세운다. 지금까지 머리글 모양은 테마 27종이 색만 갈아끼울 뿐
20
+ **하나뿐**이었다.
21
+ - 프리셋 5종 — `default`(오늘과 동일) · `rule`(색면 없이 아래 선 하나) · `quiet`(색면은 두고
22
+ 세로 칸막이만 걷음) · `band`(굵은 밑줄, 멀리서·저시력) · `pill`(정렬된 컬럼만 배지로 떠오름).
23
+ - 별도 엔트리 `open-grid/header` — import 하지 않으면 **1바이트도 배송되지 않는다.**
24
+ 조판 축(`open-grid/typography`)과 같은 구조다.
25
+ - `applyHeader()` · `defineHeader()` · `HEADER_PRESETS`. 프리셋 본체 CSS 는 `open-grid/header.css`.
26
+ - **이 축은 색을 소유하지 않는다.** `--og-header-*` 이름이 실제로 세 축에 걸쳐 있어
27
+ (색 = 테마 축 · 조판 = 타이포 축 · 형태 = 헤더 축), 헤더 축이 가진 것은 **형태 토큰 8개뿐**이다.
28
+ 색은 CSS 가 테마 토큰에서 `var()` 로 유도하므로 **이 축을 통해 새 색이 들어올 자리가 없다.**
29
+ - / The header axis owns **shape only** — 8 tokens. Colours are derived from theme tokens via
30
+ `var()`, so no new hex can enter through this axis. Ship zero bytes unless you import it.
31
+
32
+ - **신규 테마 12종 확정** / **12 new themes finalised.** 내장 테마는 **27종**이 된다.
33
+ ```
34
+ 밝은 6 graphite · high-contrast · washi · plain · field · clinical
35
+ 어두운 6 high-contrast-dark · blueprint · nocturne · graphite-dark · sentinel · ticker
36
+ ```
37
+
38
+ ### Fixed
39
+ - **hover 막대와 스피너가 테마를 안 따라오던 문제** / **Accent bar and spinner ignored the theme.**
40
+ `:root` 안에서 `--og-row-accent-color: var(--og-primary)` 로 선언하면 **그 자리에서 값이 확정**되어
41
+ 확정값이 상속된다. 그래서 테마가 뒤에서 `--og-primary` 를 바꿔도 따라오지 않았고, 결과적으로
42
+ 행 hover 좌측 막대와 로딩 스피너가 **테마 27종 전부에서 같은 파랑**이었다.
43
+ `.og-container` 에서 다시 선언해 그 요소의 테마 색으로 재확정한다.
44
+ **13종이 대비 미달에서 통과로 올라간다.** 기본 테마는 값이 같아 렌더가 안 바뀐다.
45
+ / Custom properties resolve where they are declared. Re-declaring them on `.og-container`
46
+ lets the theme win. 13 themes move from failing to passing contrast; the default theme is unchanged.
47
+
48
+ ### Changed
49
+ - **하드코딩된 색·반경을 토큰으로** / **Hardcoded colours and radii are now tokens.**
50
+ 행번호 열 글자(`#999`)와 여러 `border-radius` 리터럴을 `var(--토큰, 오늘값)` 으로 연다.
51
+ **폴백이 오늘 값이라 기본 렌더는 그대로다.** 형태 축의 `sharp` 를 골랐을 때 이제 실제로 각진다.
52
+ / Fallbacks keep today's values, so the default render is byte-identical. The `sharp` skin now
53
+ actually squares off the corners it previously missed.
54
+
55
+ - **테마 3종 제거** / **Three themes removed.** `ledger` · `daylight` · `ocean-dark` 는 1.4.0 이후
56
+ 저장소에만 있던 미발행 중간 산출로 **한 번도 배포된 적이 없다.** 최종 명단에서 각각
57
+ `plain` · `field` · `high-contrast-dark` 로 대체됐다. `ocean` 의 다크 짝 표기도 함께 지웠다.
58
+ / They were never published — no consumer action is required.
59
+
60
+ - **API 문서에 축 플러그인 두 개가 나온다** / **Both axis plugins now appear in the API docs.**
61
+ `open-grid/typography` 와 `open-grid/header` 가 TypeDoc 진입점에 없어 문서에서 빠져 있었다.
62
+ 주석은 한국어·영어·일본어로 병행 제공된다.
63
+
5
64
  ## [1.4.0] - 2026-07-17
6
65
 
7
66
  ### Added
package/README.md CHANGED
@@ -281,10 +281,27 @@ grid.applyColumns([...originalColumns]); // 원래 순서로 복원
281
281
  | Method | Description |
282
282
  |---|---|
283
283
  | `jumpToRow(rowIndex)` | 특정 행으로 스크롤 |
284
- | `setTheme(theme)` | 테마 변경 (`'default'` / `'dark'`) |
284
+ | `setTheme(theme)` | 색 테마 변경 — 내장 **27종** (`'default'` / `'dark'` / `'graphite'` / `'ocean-dark'` / `'high-contrast'` …) |
285
+ | `setSkin(skin)` | 형태(모서리·외곽선·그림자) 변경 — 색은 그대로 |
286
+ | `setDensity(name)` | 밀도(행 높이·폰트 크기) 변경 |
285
287
  | `resize(w?, h?)` | 크기 조정 |
286
288
  | `destroy()` | 인스턴스 소멸 |
287
289
 
290
+ ### 타이포그래피 (별도 플러그인)
291
+
292
+ 서체·자간·숫자 자형은 **다섯 번째 외관 축**이며, 쓰지 않는 사람의 번들을 늘리지 않으려고
293
+ **별도 엔트리**로 분리돼 있습니다. `import` 하지 않으면 **1바이트도 포함되지 않습니다.**
294
+
295
+ ```ts
296
+ import { applyTypography } from 'open-grid/typography';
297
+ import 'open-grid/typography.css';
298
+
299
+ applyTypography(gridContainerEl, 'ledger'); // 회계 원장용 — 자릿수 정렬 + slashed-zero
300
+ ```
301
+
302
+ 프리셋 7종: `ui` · `ledger` · `terminal` · `dense-scan` · `humanist` · `hangul-first` · `cjk-doc`.
303
+ **웹폰트를 내려받지 않습니다** — 시스템에 있는 서체만 골라 쓰고 없으면 다음 후보로 내려앉습니다.
304
+
288
305
  ## GridOptions
289
306
 
290
307
  ```typescript
@@ -303,7 +303,7 @@ class FilterPanel {
303
303
  this._field = "", this._outsideHandler = null, this._onApply = s, this._onClear = i, this._t = o ?? t, this._el = document.createElement("div"), this._el.className = "og-filter-panel", this._el.style.cssText = `
304
304
  position:absolute;z-index:1000;min-width:200px;max-width:280px;
305
305
  background:var(--og-row-bg,#fff);border:1px solid var(--og-border-color,#e0e0e0);
306
- border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,0.15);
306
+ border-radius:var(--og-radius-md,4px);box-shadow:0 4px 16px rgba(0,0,0,0.15);
307
307
  padding:10px;box-sizing:border-box;display:none;font-size:13px;
308
308
  `, e.appendChild(this._el);
309
309
  }
@@ -315,7 +315,7 @@ class FilterPanel {
315
315
  const r = document.createElement("div");
316
316
  r.style.cssText = "display:flex;gap:4px;margin-bottom:6px;";
317
317
  const a = document.createElement("select");
318
- a.style.cssText = "flex:1;padding:3px 4px;border:1px solid var(--og-border-color,#e0e0e0);border-radius:3px;font-size:12px;";
318
+ a.style.cssText = "flex:1;padding:3px 4px;border:1px solid var(--og-border-color,#e0e0e0);border-radius:var(--og-radius-md,3px);font-size:12px;";
319
319
  const l = [{ label: this._t("filter.opContains"), value: "contains" }, { label: this._t("filter.opEq"), value: "=" }, { label: this._t("filter.opNe"), value: "!=" }, { label: this._t("filter.opStartsWith"), value: "startsWith" }, { label: this._t("filter.opEndsWith"), value: "endsWith" }, { label: this._t("filter.opGt"), value: ">" }, { label: this._t("filter.opLt"), value: "<" }, { label: this._t("filter.opGte"), value: ">=" }, { label: this._t("filter.opLte"), value: "<=" }];
320
320
  for (const g of l) {
321
321
  const _ = document.createElement("option");
@@ -325,7 +325,7 @@ class FilterPanel {
325
325
  const d = document.createElement("input");
326
326
  d.type = "text", d.placeholder = this._t("filter.valuePlaceholder"), d.value = ((_a = i[0]) == null ? void 0 : _a.value) ?? "", d.style.cssText = `
327
327
  width:100%;padding:4px 6px;border:1px solid var(--og-border-color,#e0e0e0);
328
- border-radius:3px;font-size:12px;box-sizing:border-box;margin-bottom:8px;
328
+ border-radius:var(--og-radius-md,3px);font-size:12px;box-sizing:border-box;margin-bottom:8px;
329
329
  outline:none;
330
330
  `, d.addEventListener("keydown", (g) => {
331
331
  g.key === "Enter" ? u.click() : g.key === "Escape" && this.close();
@@ -335,14 +335,14 @@ class FilterPanel {
335
335
  const h = document.createElement("button");
336
336
  h.textContent = this._t("filter.clear"), h.style.cssText = `
337
337
  padding:3px 10px;border:1px solid var(--og-border-color,#e0e0e0);
338
- border-radius:3px;background:#fff;cursor:pointer;font-size:12px;color:#666;
338
+ border-radius:var(--og-radius-md,3px);background:#fff;cursor:pointer;font-size:12px;color:#666;
339
339
  `, h.addEventListener("click", () => {
340
340
  this._onClear(this._field), this.close();
341
341
  });
342
342
  const u = document.createElement("button");
343
343
  u.textContent = this._t("filter.apply"), u.style.cssText = `
344
344
  padding:3px 10px;border:1px solid var(--og-primary,#1976d2);
345
- border-radius:3px;background:var(--og-primary,#1976d2);
345
+ border-radius:var(--og-radius-md,3px);background:var(--og-primary,#1976d2);
346
346
  color:#fff;cursor:pointer;font-size:12px;
347
347
  `, u.addEventListener("click", () => {
348
348
  const g = d.value.trim();
@@ -6905,7 +6905,7 @@ const _OpenGrid = class _OpenGrid extends EventEmitter {
6905
6905
  this._cf = null, this._cfStats.clear(), this._doRender(...this._visRange());
6906
6906
  return;
6907
6907
  }
6908
- const s = await Promise.resolve().then(() => require("./index-D1l3XFCM.cjs"));
6908
+ const s = await Promise.resolve().then(() => require("./index-Brfso4Ry.cjs"));
6909
6909
  this._cf = new s.CFEngine(new s.CFRuleStore(e)), this._cfAppearance = s.staticAppearanceView(), this._cfComputeStats = s.computeColumnStats, this._recomputeCFStats(), this._doRender(...this._visRange());
6910
6910
  }
6911
6911
  _recomputeCFStats() {
@@ -7382,4 +7382,4 @@ _OpenGrid.defaults = { strategy(e, s) {
7382
7382
  } };
7383
7383
  let OpenGrid = _OpenGrid;
7384
7384
  exports.DEFAULT_ICON_ROLES = DEFAULT_ICON_ROLES, exports.IconRegistry = IconRegistry, exports.LocaleRegistry = LocaleRegistry, exports.OpenGrid = OpenGrid, exports.SkinRegistry = SkinRegistry, exports.buildTree = buildTree, exports.contrastRatio = contrastRatio, exports.iconRegistry = iconRegistry, exports.localeRegistry = localeRegistry, exports.parseColor = parseColor, exports.renderIcon = renderIcon, exports.skinRegistry = skinRegistry, exports.t = t;
7385
- //# sourceMappingURL=OpenGrid-BOtTt5aI.cjs.map
7385
+ //# sourceMappingURL=OpenGrid-CT9bV6On.cjs.map