open-grid 1.7.0 → 1.7.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 (61) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/ExportProgressView-BYPw8osg.cjs +2 -0
  3. package/dist/ExportProgressView-Bt5-z7rE.js +2 -0
  4. package/dist/LcpMergeOrderer-CeP6C6G1.cjs +2 -0
  5. package/dist/LcpMergeOrderer-Ebwuir-r.js +2 -0
  6. package/dist/OpenGrid-Bh1NMOcm.cjs +98 -0
  7. package/dist/OpenGrid-CeXt04ho.js +98 -0
  8. package/dist/Registry-CrT46EAO.js +2 -0
  9. package/dist/Registry-DpHOpU5V.cjs +2 -0
  10. package/dist/XlsxChannel-CuOZ3LQz.js +2 -0
  11. package/dist/XlsxChannel-DQHLGend.cjs +2 -0
  12. package/dist/XlsxWorkbookWriter-DixuNGtw.cjs +3 -0
  13. package/dist/XlsxWorkbookWriter-VgbibI0Z.js +3 -0
  14. package/dist/fflate-Cs3txMgg.js +2 -0
  15. package/dist/fflate-G9RAFEgF.cjs +2 -0
  16. package/dist/index-1OXjJmct.js +2 -0
  17. package/dist/index-B5V7e4Xc.js +2 -0
  18. package/dist/index-DbKDox8y.cjs +2 -0
  19. package/dist/index-HaDoF1HM.cjs +2 -0
  20. package/dist/open-grid-react.cjs +1 -27
  21. package/dist/open-grid-react.js +1 -30
  22. package/dist/open-grid-vue.cjs +1 -31
  23. package/dist/open-grid-vue.js +1 -33
  24. package/dist/open-grid.cjs +6 -275
  25. package/dist/open-grid.js +6 -293
  26. package/dist/sinks-BCZFMGQJ.cjs +2 -0
  27. package/dist/sinks-qkBJ5bKn.js +2 -0
  28. package/dist/types/core/ExportManager.d.ts +1 -0
  29. package/dist/types/core/export/channels/XlsxChannel.d.ts +9 -1
  30. package/dist/types/core/export/channels/XlsxRichTextRun.d.ts +14 -0
  31. package/dist/types/core/export/channels/XlsxSheetXml.d.ts +19 -0
  32. package/dist/types/core/export/channels/XlsxStyleEntries.d.ts +80 -0
  33. package/dist/types/core/export/channels/XlsxStylesRegistry.d.ts +20 -0
  34. package/dist/types/core/export/channels/XlsxWorkbookWriter.d.ts +7 -4
  35. package/dist/types/core/export/channels/XlsxXml.d.ts +6 -0
  36. package/dist/types/core/export/types.d.ts +63 -0
  37. package/dist/types/core/types.d.ts +24 -0
  38. package/dist/types/index.d.ts +1 -0
  39. package/dist/xlsx.min-CMvrM6b4.cjs +138 -0
  40. package/dist/xlsx.min-i_b-4PvU.js +138 -0
  41. package/package.json +2 -1
  42. package/dist/ExportProgressView-9Kt1SQxv.js +0 -48
  43. package/dist/ExportProgressView-B59uHIwt.cjs +0 -48
  44. package/dist/LcpMergeOrderer-BdUtV67j.js +0 -114
  45. package/dist/LcpMergeOrderer-C_ANVkGk.cjs +0 -113
  46. package/dist/OpenGrid-BUYQs1_w.cjs +0 -9806
  47. package/dist/OpenGrid-BmagF0yo.js +0 -9819
  48. package/dist/Registry-CPJYOqCn.js +0 -74
  49. package/dist/Registry-D74ZmdDz.cjs +0 -71
  50. package/dist/XlsxChannel-DOeHeP7h.cjs +0 -95
  51. package/dist/XlsxChannel-DdaiytFR.js +0 -95
  52. package/dist/XlsxWorkbookWriter-BTNtZ80J.js +0 -199
  53. package/dist/XlsxWorkbookWriter-_u5stfg4.cjs +0 -198
  54. package/dist/index-B9_g5Eg3.js +0 -481
  55. package/dist/index-CeJ-0-80.cjs +0 -260
  56. package/dist/index-CnyumyPV.cjs +0 -452
  57. package/dist/index-DnarQ4eR.js +0 -266
  58. package/dist/sinks-BWkWQexV.js +0 -149
  59. package/dist/sinks-DPK0VxYG.cjs +0 -143
  60. package/dist/xlsx.min-BQ1o3sB6.cjs +0 -11793
  61. package/dist/xlsx.min-Bbz2ZypC.js +0 -11794
@@ -0,0 +1,2 @@
1
+ const n=new TextEncoder;class l{constructor(e=8*1024*1024){this.$dF=e,this.$ia=[],this.$aE=0,this.$x=!1,this.$ak=!1}write(e){return this.$x||this.$ak?Promise.reject(new Error("sink closed/aborted")):(this.$ia.push(e),this.$aE+=typeof e=="string"?n.encode(e).length:e.length,Promise.resolve())}close(){return this.$x=!0,Promise.resolve()}abort(e){this.$ak=!0,e!==void 0&&(this.$hD=e)}get desiredSize(){return this.$dF-this.$aE}toString(){return this.$ia.map(e=>typeof e=="string"?e:new TextDecoder().decode(e)).join("")}get bytesWritten(){return this.$aE}get closed(){return this.$x}get aborted(){return this.$ak}get abortReason(){return this.$hD}}class d{constructor(e,t=Number.POSITIVE_INFINITY){this.$dw=e,this.$dF=t,this.$as="",this.$aE=0,this.$x=!1}write(e){const t=typeof e=="string"?e:new TextDecoder().decode(e);return this.$as+=t,this.$aE+=n.encode(t).length,Promise.resolve()}close(){return this.$x||(this.$x=!0,this.$dw(this.$as)),Promise.resolve()}abort(){this.$x=!0}get desiredSize(){return this.$dF-this.$aE}}const h="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";function f(i){return typeof i=="string"?n.encode(i).length:i.length}class a{constructor(e,t=8*1024*1024){this.$hB=e,this.$dF=t,this.$ap=0,this.$x=!1,this.$ak=!1}async write(e){if(this.$x||this.$ak)throw new Error("sink closed/aborted");const t=f(e);this.$ap+=t;try{await this.$hB.write(e)}finally{this.$ap-=t}}async close(){this.$x||this.$ak||(this.$x=!0,await this.$hB.close())}abort(e){var t,r;if(!this.$ak){this.$ak=!0;try{const s=(r=(t=this.$hB).abort)==null?void 0:r.call(t,e);s&&typeof s.catch=="function"&&s.catch(()=>{})}catch{}}}get desiredSize(){return this.$dF-this.$ap}}class o{constructor(e={}){this.$eX=[],this.$aE=0,this.$x=!1,this.$ak=!1,this.$gf=e.fileName??"export.xlsx",this.$jt=e.mime??h,this.$iV=e.highWaterMark??1024*1024*1024,this.$dw=e.download}write(e){if(this.$x||this.$ak)return Promise.reject(new Error("sink closed/aborted"));const t=typeof e=="string"?n.encode(e):e;return this.$eX.push(t),this.$aE+=t.length,Promise.resolve()}close(){if(this.$x||this.$ak)return Promise.resolve();this.$x=!0;const e=new Blob(this.$eX,{type:this.$jt});return this.$eX.length=0,this.$dw?this.$dw(e,this.$gf):o.$kY(e,this.$gf),Promise.resolve()}abort(){this.$ak=!0,this.$eX.length=0}get desiredSize(){return this.$iV-this.$aE}get bytesWritten(){return this.$aE}static $kY(e,t){if(typeof document>"u"||typeof URL>"u"||!URL.createObjectURL)return;const r=URL.createObjectURL(e);try{const s=document.createElement("a");s.href=r,s.download=t,s.style.display="none",document.body.appendChild(s),s.click(),s.remove()}finally{URL.revokeObjectURL(r)}}}function c(i={}){if(i.fsAccess==="off")return!1;const e=i.env!==void 0?i.env:typeof window<"u"?window:void 0;return!!e&&typeof e.showSaveFilePicker=="function"}function u(i={}){const e=i.fileName??"export.xlsx",t=i.mime??h;if(c(i)){const r=i.env!==void 0?i.env:window;return{kind:"fs",async create(){const s=await r.showSaveFilePicker({suggestedName:e,types:[{description:"Excel",accept:{[t]:[".xlsx"]}}]});return new a(await s.createWritable(),i.highWaterMark)}}}return{kind:"blob",create:()=>Promise.resolve(new o({fileName:e,mime:t,highWaterMark:i.highWaterMark,download:i.download}))}}export{o as BlobDownloadByteSink,d as DownloadByteSink,a as FileSystemByteSink,l as MemoryByteSink,h as XLSX_MIME,c as canUseFileSystemAccess,u as pickExcelSink};
2
+ //# sourceMappingURL=sinks-qkBJ5bKn.js.map
@@ -14,6 +14,7 @@ export interface StreamModules {
14
14
  createChannel: (o: {
15
15
  sheetName?: string;
16
16
  includeHeader?: boolean;
17
+ compressionLevel?: ExportOptions['compressionLevel'];
17
18
  }) => {
18
19
  writeStreaming(src: IArtifactSource, sink: IByteSink, ctx?: ExportRunCtx): Promise<ExportResult>;
19
20
  };
@@ -1,4 +1,4 @@
1
- import { ChannelCapabilities, ExportResult, ExportRunCtx, IArtifactSource, IByteSink } from '../types.js';
1
+ import { ChannelCapabilities, ExportResult, ExportRunCtx, IArtifactSource, IByteSink, XlsxCellStyleSpec, XlsxRichTextRun } from '../types.js';
2
2
  /** 순수 셀 모델(값 + 상류 확정 스타일). / Pure cell model (value + upstream-confirmed style). */
3
3
  export interface SheetCell {
4
4
  /** 표시값(= CellArtifact.text). / Display value. */
@@ -10,6 +10,12 @@ export interface SheetCell {
10
10
  /** 채움 위 잉크색(= cf.inkColor). / Ink color from cf.inkColor. */
11
11
  readonly ink?: string;
12
12
  readonly align: 'left' | 'right' | 'center';
13
+ /** 미리 등록한 스타일 번호(session.addStyle 반환값). 있으면 그대로 쓴다. / Pre-registered style index; used as-is when present. */
14
+ readonly s?: number;
15
+ /** 셀 스타일 명세(쓰기기가 등록·중복 제거). / Cell style spec (registered and de-duplicated by the writer). */
16
+ readonly style?: XlsxCellStyleSpec;
17
+ /** 셀 안 서식 조각(있으면 글자 대신 이 조각들을 쓴다). / In-cell rich-text runs (replace the plain text when present). */
18
+ readonly runs?: ReadonlyArray<XlsxRichTextRun>;
13
19
  readonly rowSpan: number;
14
20
  readonly colSpan: number;
15
21
  }
@@ -47,6 +53,8 @@ export interface XlsxStreamInit {
47
53
  export interface IXlsxStreamSession {
48
54
  /** 행 청크 추가(sink 쓰기를 await = 백프레셔). / Append a row chunk (awaits sink writes). */
49
55
  appendRows(rows: ReadonlyArray<ReadonlyArray<SheetCell>>, merges?: ReadonlyArray<MergeRegion>): Promise<void>;
56
+ /** 스타일 등록 후 번호 반환(같은 조합은 같은 번호). / Register a style and return its index (equal combos share one). */
57
+ addStyle?(spec: XlsxCellStyleSpec): number;
50
58
  /** 마무리(총 바이트 반환). sink.close 는 호출자 몫. / Finish; returns total bytes (caller closes sink). */
51
59
  finish(): Promise<number>;
52
60
  /** 중단(이후 쓰기 없음). / Abort. */
@@ -0,0 +1,14 @@
1
+ import { XlsxRichTextRun } from '../types.js';
2
+ import { FontEntry } from './XlsxStyleEntries.js';
3
+ /** 셀 안 서식 조각. / One in-cell run. */
4
+ export declare class RichTextRunEntry {
5
+ readonly text: string;
6
+ readonly font: FontEntry | undefined;
7
+ private constructor();
8
+ /** DTO 한 토막 → 값 객체(글자가 비면 undefined). / DTO run → entry (undefined when the text is empty). */
9
+ static from(run: XlsxRichTextRun): RichTextRunEntry | undefined;
10
+ /** DTO 목록 → 값 객체 목록(빈 토막은 버린다). / DTO list → entries (empty runs dropped). */
11
+ static fromAll(runs: ReadonlyArray<XlsxRichTextRun>): RichTextRunEntry[];
12
+ /** `<r>` 한 조각. / One `<r>` fragment. */
13
+ toXml(): string;
14
+ }
@@ -0,0 +1,19 @@
1
+ import { MergeRegion, SheetCell, XlsxStreamInit } from './XlsxChannel.js';
2
+ import { StylesRegistry } from './XlsxStylesRegistry.js';
3
+ /** 시트 XML 조립기. / Sheet XML builder. */
4
+ export declare class SheetXmlBuilder {
5
+ private readonly init;
6
+ private readonly styles;
7
+ private nextRow;
8
+ private readonly merges;
9
+ private readonly writeHeader;
10
+ constructor(init: XlsxStreamInit, styles: StylesRegistry);
11
+ /** 시트 머리(열 너비·머리글 행 포함). / Sheet head (column widths + header row). */
12
+ head(): string;
13
+ /** 행 청크 → XML(빈 청크면 빈 문자열). / Row chunk → XML (empty string for an empty chunk). */
14
+ rows(rows: ReadonlyArray<ReadonlyArray<SheetCell>>, rowMerges?: ReadonlyArray<MergeRegion>): string;
15
+ /** 시트 꼬리(병합 영역 포함). / Sheet tail (with merge regions). */
16
+ tail(): string;
17
+ /** 셀 → 스타일 번호(미리 준 번호 > 명세 > 색 필드 > 줄무늬). / Cell → style index. */
18
+ private styleIndex;
19
+ }
@@ -0,0 +1,80 @@
1
+ import { XlsxCellStyleSpec } from '../types.js';
2
+ /** 풀에 담기는 항목의 공통 약속. / Contract shared by pooled entries. */
3
+ export interface IStyleEntry {
4
+ /** 같은 내용이면 같은 문자열. / Equal content → equal string. */
5
+ hashKey(): string;
6
+ /** XML 한 조각. / One XML fragment. */
7
+ toXml(): string;
8
+ }
9
+ /** 색 문자열(#rgb·#rrggbb·rgb()·RRGGBB·AARRGGBB) → AARRGGBB 대문자. 못 읽으면 undefined. / Normalize to AARRGGBB; undefined if unreadable. */
10
+ export declare function argb(c: string | undefined): string | undefined;
11
+ /** 글꼴 항목. / Font entry. */
12
+ export declare class FontEntry implements IStyleEntry {
13
+ readonly bold: boolean;
14
+ readonly italic: boolean;
15
+ readonly color: string | undefined;
16
+ readonly size: number;
17
+ constructor(bold: boolean, italic: boolean, color: string | undefined, size?: number);
18
+ /** 기본 글꼴(굵기·기울임·색 없음). / The plain default font. */
19
+ static plain(): FontEntry;
20
+ /** 명세에서 글꼴이 필요하면 만든다. / Build when the spec asks for a font. */
21
+ static from(spec: XlsxCellStyleSpec): FontEntry | undefined;
22
+ /** 셀 안 조각용 글꼴(명세가 비면 undefined). / Font for an in-cell run (undefined when the spec is empty). */
23
+ static fromRun(style: {
24
+ color?: {
25
+ rgb: string;
26
+ };
27
+ bold?: boolean;
28
+ italic?: boolean;
29
+ size?: number;
30
+ } | undefined): FontEntry | undefined;
31
+ hashKey(): string;
32
+ equals(o: FontEntry): boolean;
33
+ toXml(): string;
34
+ /** 셀 안 조각의 `<rPr>`. / The `<rPr>` of an in-cell run. */
35
+ toRunPropsXml(): string;
36
+ }
37
+ /** 채움 항목. / Fill entry. */
38
+ export declare class FillEntry implements IStyleEntry {
39
+ private readonly pattern;
40
+ readonly color: string | undefined;
41
+ private constructor();
42
+ static none(): FillEntry;
43
+ static gray125(): FillEntry;
44
+ static solid(color: string): FillEntry;
45
+ static from(spec: XlsxCellStyleSpec): FillEntry | undefined;
46
+ hashKey(): string;
47
+ equals(o: FillEntry): boolean;
48
+ toXml(): string;
49
+ }
50
+ /** 테두리 항목(사방 같은 선). / Border entry (same line on all four sides). */
51
+ export declare class BorderEntry implements IStyleEntry {
52
+ private readonly style;
53
+ private readonly color;
54
+ constructor(style: string | undefined, color: string | undefined);
55
+ static none(): BorderEntry;
56
+ static from(spec: XlsxCellStyleSpec): BorderEntry | undefined;
57
+ hashKey(): string;
58
+ equals(o: BorderEntry): boolean;
59
+ toXml(): string;
60
+ }
61
+ /** 사용자 숫자 서식 항목(번호는 등록소가 매긴다). / Custom number-format entry (id assigned by the registry). */
62
+ export declare class NumFmtEntry implements IStyleEntry {
63
+ readonly code: string;
64
+ readonly id: number;
65
+ constructor(code: string, id: number);
66
+ /** 내장 서식이면 그 번호, 아니면 undefined. / Built-in id, or undefined. */
67
+ static builtinId(code: string): number | undefined;
68
+ hashKey(): string;
69
+ equals(o: NumFmtEntry): boolean;
70
+ toXml(): string;
71
+ }
72
+ /** 가로 정렬 항목. / Horizontal-alignment entry. */
73
+ export declare class AlignmentEntry implements IStyleEntry {
74
+ readonly horizontal: string;
75
+ constructor(horizontal: string);
76
+ static from(spec: XlsxCellStyleSpec): AlignmentEntry | undefined;
77
+ hashKey(): string;
78
+ equals(o: AlignmentEntry): boolean;
79
+ toXml(): string;
80
+ }
@@ -0,0 +1,20 @@
1
+ import { XlsxCellStyleSpec } from '../types.js';
2
+ /** 줄무늬 채움색(styles 2번). / Stripe fill color (style index 2). */
3
+ export declare const STRIPE_RGB = "F5F7FA";
4
+ /** 스타일 등록소. / Style registry. */
5
+ export declare class StylesRegistry {
6
+ private readonly fonts;
7
+ private readonly fills;
8
+ private readonly borders;
9
+ private readonly numFmts;
10
+ private readonly xfs;
11
+ private readonly xfIds;
12
+ constructor();
13
+ /** 등록된 고유 서식 수. / Distinct registered styles. */
14
+ get size(): number;
15
+ /** 스타일 등록 → 번호(같은 조합은 같은 번호). / Register a style → index (equal combos share one). */
16
+ add(spec: XlsxCellStyleSpec): number;
17
+ private numFmtId;
18
+ /** styles.xml 전체(마지막에 한 번). / Full styles.xml (serialized once at the end). */
19
+ toXml(): string;
20
+ }
@@ -1,12 +1,15 @@
1
1
  import { IByteSink } from '../types.js';
2
2
  import { IStreamingWorkbookWriter, IXlsxStreamSession, SheetModel, XlsxStreamInit } from './XlsxChannel.js';
3
+ import { StylesRegistry } from './XlsxStylesRegistry.js';
4
+ import { xmlEscape } from './XlsxXml.js';
5
+ export { xmlEscape };
3
6
  /** 쓰기기 옵션. / Writer options. */
4
7
  export interface XlsxWorkbookWriterOptions {
5
- /** deflate 수준(0 = 저장만, 기본 6). / Deflate level (0 = stored; default 6). */
6
- readonly level?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
8
+ /** deflate 수준(0 = 저장만, 기본 6). 0~9 밖의 값은 6 으로 본다. / Deflate level (0 = stored; default 6). Values outside 0..9 are treated as 6. */
9
+ readonly level?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | undefined;
10
+ /** 스트림마다 쓸 스타일 등록소 공급자(주입, 기본 새 등록소). / Per-stream styles registry factory (injected; default a fresh registry). */
11
+ readonly createStyles?: (() => StylesRegistry) | undefined;
7
12
  }
8
- /** XML 에서 허용되지 않는 제어문자 제거 + 특수문자 이스케이프. / Strip illegal control chars + escape. */
9
- export declare function xmlEscape(s: string): string;
10
13
  /** 스트리밍 xlsx 쓰기기. / Streaming xlsx writer. */
11
14
  export declare class XlsxWorkbookWriter implements IStreamingWorkbookWriter {
12
15
  private readonly opts;
@@ -0,0 +1,6 @@
1
+ /** XML 에서 허용되지 않는 제어문자 제거 + 특수문자 이스케이프. / Strip illegal control chars + escape. */
2
+ export declare function xmlEscape(s: string): string;
3
+ /** 0-base 열 → A, B, … AA. / 0-based column → letters. */
4
+ export declare function colName(i: number): string;
5
+ export declare const XML_HEAD = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
6
+ export declare const NS = "http://schemas.openxmlformats.org/spreadsheetml/2006/main";
@@ -37,6 +37,69 @@ export interface CellArtifact {
37
37
  readonly align: CellAlign;
38
38
  /** 채널별 셀 타입 매핑용(xlsx number vs string). / Domain kind for per-channel typing. */
39
39
  readonly type: DomainKind;
40
+ /** 스트리밍 xlsx 셀 스타일(채움·글자색·굵기·숫자 서식 등). 없으면 기본 줄무늬. / Streaming-xlsx cell style; none = default banding. */
41
+ readonly xlsxStyle?: XlsxCellStyleSpec;
42
+ /** 스트리밍 xlsx 셀 안 서식 조각(낱말별 색·굵기). 있으면 `text` 대신 이 조각들을 이어 쓴다. / Rich-text runs; when present they replace `text` in the streaming xlsx. */
43
+ readonly xlsxRuns?: ReadonlyArray<XlsxRichTextRun>;
44
+ }
45
+ /**
46
+ * 셀 안 서식 조각 한 토막. 이어 붙인 글자가 셀 값이다.
47
+ *
48
+ * One rich-text run inside a cell; the concatenated texts form the cell value.
49
+ *
50
+ * セル内の書式付き断片。つなげた文字がセルの値になります。
51
+ *
52
+ * 单元格内的一段富文本;各段文字连起来就是单元格的值。
53
+ */
54
+ export interface XlsxRichTextRun {
55
+ /** 이 토막의 글자. / Text of this run. */
56
+ readonly text: string;
57
+ /** 이 토막의 글자 서식. 없으면 셀 기본. / Font of this run; none = cell default. */
58
+ readonly style?: {
59
+ readonly color?: {
60
+ readonly rgb: string;
61
+ };
62
+ readonly bold?: boolean;
63
+ readonly italic?: boolean;
64
+ /** 글자 크기(pt). / Font size in points. */
65
+ readonly size?: number;
66
+ };
67
+ }
68
+ /**
69
+ * 스트리밍 xlsx 셀 스타일 명세. 색은 `RRGGBB` 또는 `AARRGGBB`(# 없이). 같은 조합은 같은 스타일 번호를 공유한다.
70
+ *
71
+ * Streaming-xlsx cell style spec. Colors are `RRGGBB` or `AARRGGBB` (no `#`). Equal combinations share one style index.
72
+ *
73
+ * ストリーミング xlsx のセルスタイル指定。色は `RRGGBB` または `AARRGGBB`(# なし)。同じ組み合わせは同じ番号を共有します。
74
+ *
75
+ * 流式 xlsx 的单元格样式。颜色为 `RRGGBB` 或 `AARRGGBB`(不带 #)。相同组合共用同一样式编号。
76
+ */
77
+ export interface XlsxCellStyleSpec {
78
+ /** 배경 채움색. / Background fill. */
79
+ readonly fill?: {
80
+ readonly rgb: string;
81
+ };
82
+ /** 글자 서식. / Font. */
83
+ readonly font?: {
84
+ readonly bold?: boolean;
85
+ readonly italic?: boolean;
86
+ readonly color?: {
87
+ readonly rgb: string;
88
+ };
89
+ };
90
+ /** 숫자 서식(예: `#,##0.00`). / Number format. */
91
+ readonly numFmt?: string;
92
+ /** 사방 테두리. / Border on all four sides. */
93
+ readonly border?: {
94
+ readonly style: 'thin' | 'medium' | 'thick' | 'hair' | 'dotted' | 'dashed';
95
+ readonly color?: {
96
+ readonly rgb: string;
97
+ };
98
+ };
99
+ /** 가로 정렬. / Horizontal alignment. */
100
+ readonly align?: {
101
+ readonly horizontal: 'left' | 'center' | 'right';
102
+ };
40
103
  }
41
104
  /** 한 논리 행의 아티팩트. 화면 밖 행도 동일 구조(전량 순회, REQ-T3-805). / One logical row's artifact. */
42
105
  export interface RowArtifact {
@@ -1903,6 +1903,16 @@ export interface ColumnDef<T = any> {
1903
1903
  * 单元格的内联样式(静态,或按值、行的函数)。
1904
1904
  */
1905
1905
  cellStyle?: CSSProperties | ((value: any, row: T, rowIndex: number) => CSSProperties);
1906
+ /**
1907
+ * 엑셀 내보내기에서 셀 안 낱말별 색·굵기를 살리는 조각 목록. `null`/빈 배열이면 일반 셀. 화면 표시에는 영향 없음.
1908
+ *
1909
+ * Rich-text runs for Excel export, keeping per-word color/bold inside a cell. `null`/empty = plain cell. Does not affect on-screen rendering.
1910
+ *
1911
+ * Excel 書き出しでセル内の語ごとの色・太字を残す断片のリスト。`null`/空配列なら通常のセル。画面表示には影響しません。
1912
+ *
1913
+ * 导出 Excel 时保留单元格内逐词颜色/加粗的片段列表。`null`/空数组表示普通单元格。不影响屏幕显示。
1914
+ */
1915
+ cellRuns?: (value: any, row: T, rowIndex: number) => ReadonlyArray<import('./export/types.js').XlsxRichTextRun> | null | undefined;
1906
1916
  /**
1907
1917
  * 헤더 인라인 스타일.
1908
1918
  *
@@ -2610,6 +2620,20 @@ export interface ExportOptions {
2610
2620
  * 是否包含表头行。默认 true。
2611
2621
  */
2612
2622
  includeHeader?: boolean;
2623
+ /**
2624
+ * 대용량 엑셀(스트리밍) 내보내기의 압축 수준. 0 = 압축 없음(가장 빠르고 큼), 9 = 가장 작음(느림). 기본 6.
2625
+ * 범위 밖의 값은 6 으로 본다. 소형(비스트리밍) 경로에는 영향이 없다.
2626
+ *
2627
+ * Compression level for large (streaming) Excel exports. 0 = stored (fastest, largest), 9 = smallest (slowest). Default 6.
2628
+ * Values outside 0..9 are treated as 6. Has no effect on the small (non-streaming) path.
2629
+ *
2630
+ * 大容量 Excel(ストリーミング)出力の圧縮レベル。0 = 圧縮なし(最速・最大)、9 = 最小(低速)。既定 6。
2631
+ * 範囲外の値は 6 として扱います。小規模(非ストリーミング)経路には影響しません。
2632
+ *
2633
+ * 大容量 Excel(流式)导出的压缩级别。0 = 不压缩(最快、最大),9 = 最小(较慢)。默认 6。
2634
+ * 超出范围的值按 6 处理。对小型(非流式)路径无影响。
2635
+ */
2636
+ compressionLevel?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
2613
2637
  /**
2614
2638
  * 내보내기에서 뺄 컬럼들의 field.
2615
2639
  *
@@ -88,6 +88,7 @@ export { SkinRegistry, skinRegistry } from './core/SkinRegistry.js';
88
88
  * FORM 专用皮肤令牌增量(拒绝颜色字面量)。
89
89
  */
90
90
  export type { SkinTokenDelta } from './core/types.js';
91
+ export type { XlsxCellStyleSpec, XlsxRichTextRun } from './core/export/types.js';
91
92
  /**
92
93
  * 로케일 메시지 레지스트리·전역 싱글턴·편의 t().
93
94
  *