open-grid 1.5.2 → 1.6.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 (77) hide show
  1. package/CHANGELOG.md +475 -416
  2. package/README.ja.md +39 -0
  3. package/README.md +39 -0
  4. package/README.zh.md +39 -0
  5. package/dist/{OpenGrid-CT9bV6On.cjs → OpenGrid-CLk8Vt7j.cjs} +1390 -1316
  6. package/dist/{OpenGrid-DACnZdEy.js → OpenGrid-D6YxCsnV.js} +1757 -1683
  7. package/dist/angular/fesm2022/open-grid-angular.mjs +247 -0
  8. package/dist/angular/index.d.ts +5 -0
  9. package/dist/angular/lib/open-grid.component.d.ts +97 -0
  10. package/dist/angular/public-api.d.ts +6 -0
  11. package/dist/{index-Brfso4Ry.cjs → index-D0DJtKYI.cjs} +2 -2
  12. package/dist/{index-al9Mbv3E.js → index-VkKgQ506.js} +2 -2
  13. package/dist/open-grid-a11y.cjs +216 -0
  14. package/dist/open-grid-a11y.js +219 -0
  15. package/dist/open-grid-base.css +13 -4
  16. package/dist/open-grid-header.cjs +4 -4
  17. package/dist/open-grid-header.css +18 -27
  18. package/dist/open-grid-header.js +4 -4
  19. package/dist/open-grid-react.cjs +1 -1
  20. package/dist/open-grid-react.js +1 -1
  21. package/dist/open-grid-skins.css +2 -2
  22. package/dist/open-grid-themes.css +19 -19
  23. package/dist/open-grid-typography.cjs +2 -2
  24. package/dist/open-grid-typography.js +2 -2
  25. package/dist/open-grid-vue.cjs +1 -1
  26. package/dist/open-grid-vue.js +1 -1
  27. package/dist/open-grid.cjs +5 -2
  28. package/dist/open-grid.js +6 -3
  29. package/dist/types/a11y/index.d.ts +37 -0
  30. package/dist/types/core/ColumnLayout.d.ts +3 -3
  31. package/dist/types/core/DetailManager.d.ts +1 -1
  32. package/dist/types/core/ExportManager.d.ts +9 -6
  33. package/dist/types/core/ExtensionPointRegistry.d.ts +2 -2
  34. package/dist/types/core/FlatRowModel.d.ts +8 -0
  35. package/dist/types/core/MergeEngine.d.ts +45 -5
  36. package/dist/types/core/MutationService.d.ts +4 -9
  37. package/dist/types/core/OpenGrid.d.ts +357 -16
  38. package/dist/types/core/OrgChart.d.ts +24 -0
  39. package/dist/types/core/RowDragDrop.d.ts +2 -0
  40. package/dist/types/core/SortFilterManager.d.ts +8 -0
  41. package/dist/types/core/WorksheetManager.d.ts +2 -2
  42. package/dist/types/core/a11y/KeyboardInteractionModel.d.ts +321 -20
  43. package/dist/types/core/a11y/LiveRegionController.d.ts +229 -27
  44. package/dist/types/core/a11y/VisualEquivRegistry.d.ts +199 -14
  45. package/dist/types/core/appearance/AppearanceAxis.d.ts +54 -6
  46. package/dist/types/core/appearance/HeaderRegistry.d.ts +213 -21
  47. package/dist/types/core/appearance/TextureRegistry.d.ts +10 -0
  48. package/dist/types/core/appearance/TypographyRegistry.d.ts +63 -3
  49. package/dist/types/core/cf/CFRule.d.ts +145 -22
  50. package/dist/types/core/chart/DataExtractor.d.ts +1 -1
  51. package/dist/types/core/detail/DetailGlyph.d.ts +3 -3
  52. package/dist/types/core/types.d.ts +511 -31
  53. package/dist/types/header/index.d.ts +146 -6
  54. package/dist/types/index.d.ts +31 -1
  55. package/dist/types/typography/index.d.ts +134 -4
  56. package/dist/types/vue/OpenGrid.vue.d.ts +1 -1
  57. package/package.json +47 -13
  58. package/dist/OpenGrid-CT9bV6On.cjs.map +0 -1
  59. package/dist/OpenGrid-DACnZdEy.js.map +0 -1
  60. package/dist/Registry-CPJYOqCn.js.map +0 -1
  61. package/dist/Registry-D74ZmdDz.cjs.map +0 -1
  62. package/dist/index-Brfso4Ry.cjs.map +0 -1
  63. package/dist/index-CeJ-0-80.cjs.map +0 -1
  64. package/dist/index-DnarQ4eR.js.map +0 -1
  65. package/dist/index-al9Mbv3E.js.map +0 -1
  66. package/dist/open-grid-header.cjs.map +0 -1
  67. package/dist/open-grid-header.js.map +0 -1
  68. package/dist/open-grid-react.cjs.map +0 -1
  69. package/dist/open-grid-react.js.map +0 -1
  70. package/dist/open-grid-typography.cjs.map +0 -1
  71. package/dist/open-grid-typography.js.map +0 -1
  72. package/dist/open-grid-vue.cjs.map +0 -1
  73. package/dist/open-grid-vue.js.map +0 -1
  74. package/dist/open-grid.cjs.map +0 -1
  75. package/dist/open-grid.js.map +0 -1
  76. package/dist/xlsx.min-BQ1o3sB6.cjs.map +0 -1
  77. package/dist/xlsx.min-Bbz2ZypC.js.map +0 -1
@@ -0,0 +1,247 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, ViewChild, HostBinding, Output, Input, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { OpenGrid } from 'open-grid';
4
+
5
+ /** 바뀌면 그리드를 새로 만들어야 하는 입력값. data·theme 는 인스턴스 메서드로 그 자리에서 반영한다. */
6
+ const STRUCTURAL_INPUTS = [
7
+ 'columns', 'editable', 'sortable', 'filterable', 'rowNumber', 'checkColumn',
8
+ 'stateColumn', 'draggable', 'frozenColumns', 'options',
9
+ ];
10
+ /**
11
+ * OPEN_GRID 코어를 감싸는 Angular 컴포넌트(`open-grid/angular`, Angular 17 이상).
12
+ * React·Vue 래퍼와 같은 입력값을 받는다. `data` 는 `setData`, `theme` 는 `setTheme` 로 그 자리에서 반영하고,
13
+ * 컬럼·편집 여부 같은 구조 입력값이 바뀌면 그리드를 새로 만든다. 코어 인스턴스는 `(ready)` 이벤트나 `grid` 속성으로 받는다.
14
+ * 그리드 안의 스크롤·마우스 처리는 Angular 변경 감지 밖에서 돌고, 출력 이벤트는 구독했을 때만 Angular 안으로 들어온다.
15
+ * 스타일시트는 컴포넌트가 불러오지 않는다. `angular.json` 의 `styles` 에 `node_modules/open-grid/dist/open-grid-base.css` 를 넣는다.
16
+ *
17
+ * Angular component wrapping the OPEN_GRID core (`open-grid/angular`, Angular 17+).
18
+ * Takes the same inputs as the React and Vue wrappers. `data` and `theme` are applied in place via `setData` / `setTheme`;
19
+ * structural inputs (columns, editable, …) recreate the grid. Get the core instance from `(ready)` or the `grid` property.
20
+ * Grid scroll and pointer handling runs outside Angular change detection; outputs re-enter the zone only when subscribed.
21
+ * The component does not load CSS — add `node_modules/open-grid/dist/open-grid-base.css` to `styles` in `angular.json`.
22
+ *
23
+ * OPEN_GRID のコアを包む Angular コンポーネントです(`open-grid/angular`、Angular 17 以上)。
24
+ * React・Vue ラッパーと同じ入力を受け取ります。`data` は `setData`、`theme` は `setTheme` でその場に反映し、
25
+ * 列や編集可否などの構造に関わる入力が変わるとグリッドを作り直します。コアのインスタンスは `(ready)` イベントか `grid` プロパティで受け取ります。
26
+ * スタイルシートは読み込みません。`angular.json` の `styles` に `node_modules/open-grid/dist/open-grid-base.css` を追加してください。
27
+ *
28
+ * 包装 OPEN_GRID 核心的 Angular 组件(`open-grid/angular`,Angular 17 及以上)。
29
+ * 接收与 React、Vue 包装器相同的输入。`data` 通过 `setData`、`theme` 通过 `setTheme` 就地生效;
30
+ * 列、是否可编辑等结构性输入变化时会重新创建表格。核心实例可通过 `(ready)` 事件或 `grid` 属性获取。
31
+ * 组件不会加载样式表,请把 `node_modules/open-grid/dist/open-grid-base.css` 加到 `angular.json` 的 `styles` 中。
32
+ *
33
+ * @typeParam T - 행 데이터 타입 / Row data type
34
+ * @example
35
+ * <open-grid [columns]="columns" [data]="rows" [height]="400" (ready)="grid = $event" (cellClick)="onCell($event)"></open-grid>
36
+ */
37
+ class OpenGridComponent {
38
+ get hostHeight() { return toCssSize(this.height); }
39
+ get hostWidth() { return toCssSize(this.width); }
40
+ constructor(_zone) {
41
+ this._zone = _zone;
42
+ /** 컬럼 정의 배열(필수). / Column definitions (required). */
43
+ this.columns = [];
44
+ /** 그리드 높이(숫자는 px). 기본 400. / Grid height (number = px). Default 400. */
45
+ this.height = 400;
46
+ /** 그리드 너비(숫자는 px). 기본 '100%'. / Grid width (number = px). Default '100%'. */
47
+ this.width = '100%';
48
+ /** 셀 편집 허용. 기본 false. / Allow cell editing. Default false. */
49
+ this.editable = false;
50
+ /** 정렬 허용. 기본 true. / Allow sorting. Default true. */
51
+ this.sortable = true;
52
+ /** 필터 허용. 기본 true. / Allow filtering. Default true. */
53
+ this.filterable = true;
54
+ /** 행 번호 컬럼 표시. 기본 false. / Show a row-number column. Default false. */
55
+ this.rowNumber = false;
56
+ /** 체크박스 선택 컬럼 표시. 기본 false. / Show a checkbox selection column. Default false. */
57
+ this.checkColumn = false;
58
+ /** 행 상태 컬럼 표시. 기본 false. / Show a row-state column. Default false. */
59
+ this.stateColumn = false;
60
+ /** 행 드래그앤드롭 허용. 기본 false. / Allow row drag-and-drop. Default false. */
61
+ this.draggable = false;
62
+ /** 왼쪽에서 고정할 컬럼 수. 기본 0. / Number of columns frozen from the left. Default 0. */
63
+ this.frozenColumns = 0;
64
+ /** 테마 id. 기본 'default'. / Theme id. Default 'default'. */
65
+ this.theme = 'default';
66
+ /** 그리드 인스턴스 준비 완료. / The grid instance is ready. */
67
+ this.ready = new EventEmitter();
68
+ /** 데이터 변경. / Data changed. */
69
+ this.dataChange = new EventEmitter();
70
+ /** 셀 클릭. / Cell click. */
71
+ this.cellClick = new EventEmitter();
72
+ /** 행 클릭. / Row click. */
73
+ this.rowClick = new EventEmitter();
74
+ /** 편집 종료(커밋). / Editing ended (commit). */
75
+ this.editEnd = new EventEmitter();
76
+ /** 정렬 변경. / Sorting changed. */
77
+ this.sortChange = new EventEmitter();
78
+ /** 필터 변경. / Filtering changed. */
79
+ this.filterChange = new EventEmitter();
80
+ /** 행 드롭(재정렬). / Row drop (reorder). */
81
+ this.rowDrop = new EventEmitter();
82
+ this.hostDisplay = 'block';
83
+ this.hostBoxSizing = 'border-box';
84
+ this._grid = null;
85
+ this._viewReady = false;
86
+ }
87
+ /** 코어 그리드 인스턴스. 뷰가 준비되기 전에는 `null`. / The core grid instance; `null` until the view is ready. */
88
+ get grid() { return this._grid; }
89
+ ngAfterViewInit() {
90
+ this._viewReady = true;
91
+ this._create();
92
+ }
93
+ ngOnChanges(changes) {
94
+ if (!this._viewReady)
95
+ return;
96
+ if (STRUCTURAL_INPUTS.some(k => changes[k])) {
97
+ this._create();
98
+ return;
99
+ }
100
+ if (changes['data'] && this._grid && this.data)
101
+ this._grid.setData(this.data);
102
+ if (changes['theme'] && this._grid)
103
+ this._grid.setTheme(this.theme);
104
+ }
105
+ ngOnDestroy() {
106
+ this._destroy();
107
+ }
108
+ _create() {
109
+ this._destroy();
110
+ const opts = {
111
+ columns: this.columns,
112
+ height: '100%',
113
+ width: '100%',
114
+ editable: this.editable,
115
+ sortable: this.sortable,
116
+ filterable: this.filterable,
117
+ rowNumber: this.rowNumber,
118
+ checkColumn: this.checkColumn,
119
+ stateColumn: this.stateColumn,
120
+ draggable: this.draggable,
121
+ frozenColumns: this.frozenColumns,
122
+ theme: this.theme,
123
+ ...this.options,
124
+ };
125
+ const userReady = this.options?.onReady;
126
+ opts.onReady = (grid) => {
127
+ this._grid = grid;
128
+ if (this.data?.length)
129
+ grid.setData(this.data);
130
+ userReady?.(grid);
131
+ if (this.ready.observed)
132
+ this._zone.run(() => this.ready.emit(grid));
133
+ };
134
+ // 코어 콜백 → Angular 출력. options 로 넘긴 같은 이름의 콜백도 함께 부른다.
135
+ const outputs = [
136
+ ['onDataChange', this.dataChange], ['onCellClick', this.cellClick], ['onRowClick', this.rowClick],
137
+ ['onEditEnd', this.editEnd], ['onSortChange', this.sortChange], ['onFilterChange', this.filterChange],
138
+ ['onRowDrop', this.rowDrop],
139
+ ];
140
+ const bag = opts;
141
+ for (const [key, out] of outputs) {
142
+ if (!out.observed)
143
+ continue;
144
+ const userFn = bag[key];
145
+ bag[key] = (e) => {
146
+ userFn?.(e);
147
+ this._zone.run(() => out.emit(e));
148
+ };
149
+ }
150
+ this._zone.runOutsideAngular(() => {
151
+ this._grid = new OpenGrid(this._gridEl.nativeElement, opts);
152
+ });
153
+ }
154
+ _destroy() {
155
+ const grid = this._grid;
156
+ this._grid = null;
157
+ grid?.destroy();
158
+ }
159
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: OpenGridComponent, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
160
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: OpenGridComponent, isStandalone: true, selector: "open-grid", inputs: { data: "data", columns: "columns", height: "height", width: "width", editable: "editable", sortable: "sortable", filterable: "filterable", rowNumber: "rowNumber", checkColumn: "checkColumn", stateColumn: "stateColumn", draggable: "draggable", frozenColumns: "frozenColumns", theme: "theme", options: "options" }, outputs: { ready: "ready", dataChange: "dataChange", cellClick: "cellClick", rowClick: "rowClick", editEnd: "editEnd", sortChange: "sortChange", filterChange: "filterChange", rowDrop: "rowDrop" }, host: { properties: { "style.display": "this.hostDisplay", "style.box-sizing": "this.hostBoxSizing", "style.height": "this.hostHeight", "style.width": "this.hostWidth" } }, viewQueries: [{ propertyName: "_gridEl", first: true, predicate: ["gridEl"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: '<div #gridEl style="height:100%;width:100%"></div>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
161
+ }
162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: OpenGridComponent, decorators: [{
163
+ type: Component,
164
+ args: [{
165
+ selector: 'open-grid',
166
+ standalone: true,
167
+ // 코어는 그릇 요소의 인라인 height/width 를 '100%' 로 덮어쓴다. 그래서 호스트(<open-grid>)에 크기를 주고
168
+ // 그리드는 안쪽 div 에 붙인다 — 호스트를 그릇으로 쓰면 지정한 높이가 사라져 행 수만큼 늘었다 줄었다 한다.
169
+ template: '<div #gridEl style="height:100%;width:100%"></div>',
170
+ changeDetection: ChangeDetectionStrategy.OnPush,
171
+ }]
172
+ }], ctorParameters: () => [{ type: i0.NgZone }], propDecorators: { data: [{
173
+ type: Input
174
+ }], columns: [{
175
+ type: Input
176
+ }], height: [{
177
+ type: Input
178
+ }], width: [{
179
+ type: Input
180
+ }], editable: [{
181
+ type: Input
182
+ }], sortable: [{
183
+ type: Input
184
+ }], filterable: [{
185
+ type: Input
186
+ }], rowNumber: [{
187
+ type: Input
188
+ }], checkColumn: [{
189
+ type: Input
190
+ }], stateColumn: [{
191
+ type: Input
192
+ }], draggable: [{
193
+ type: Input
194
+ }], frozenColumns: [{
195
+ type: Input
196
+ }], theme: [{
197
+ type: Input
198
+ }], options: [{
199
+ type: Input
200
+ }], ready: [{
201
+ type: Output
202
+ }], dataChange: [{
203
+ type: Output
204
+ }], cellClick: [{
205
+ type: Output
206
+ }], rowClick: [{
207
+ type: Output
208
+ }], editEnd: [{
209
+ type: Output
210
+ }], sortChange: [{
211
+ type: Output
212
+ }], filterChange: [{
213
+ type: Output
214
+ }], rowDrop: [{
215
+ type: Output
216
+ }], hostDisplay: [{
217
+ type: HostBinding,
218
+ args: ['style.display']
219
+ }], hostBoxSizing: [{
220
+ type: HostBinding,
221
+ args: ['style.box-sizing']
222
+ }], hostHeight: [{
223
+ type: HostBinding,
224
+ args: ['style.height']
225
+ }], hostWidth: [{
226
+ type: HostBinding,
227
+ args: ['style.width']
228
+ }], _gridEl: [{
229
+ type: ViewChild,
230
+ args: ['gridEl', { static: true }]
231
+ }] } });
232
+ function toCssSize(v) {
233
+ return typeof v === 'number' ? `${v}px` : v;
234
+ }
235
+
236
+ /**
237
+ * OPEN_GRID Angular 바인딩 진입점(`open-grid/angular`). / OPEN_GRID Angular binding entry point (`open-grid/angular`).
238
+ *
239
+ * @packageDocumentation
240
+ */
241
+
242
+ /**
243
+ * Generated bundle index. Do not edit.
244
+ */
245
+
246
+ export { OpenGridComponent };
247
+ //# sourceMappingURL=open-grid-angular.mjs.map
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="open-grid-angular" />
5
+ export * from './public-api';
@@ -0,0 +1,97 @@
1
+ import { AfterViewInit, EventEmitter, NgZone, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
+ import type { ColumnDef, GridOptions, OpenGridInstance } from 'open-grid';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * OPEN_GRID 코어를 감싸는 Angular 컴포넌트(`open-grid/angular`, Angular 17 이상).
6
+ * React·Vue 래퍼와 같은 입력값을 받는다. `data` 는 `setData`, `theme` 는 `setTheme` 로 그 자리에서 반영하고,
7
+ * 컬럼·편집 여부 같은 구조 입력값이 바뀌면 그리드를 새로 만든다. 코어 인스턴스는 `(ready)` 이벤트나 `grid` 속성으로 받는다.
8
+ * 그리드 안의 스크롤·마우스 처리는 Angular 변경 감지 밖에서 돌고, 출력 이벤트는 구독했을 때만 Angular 안으로 들어온다.
9
+ * 스타일시트는 컴포넌트가 불러오지 않는다. `angular.json` 의 `styles` 에 `node_modules/open-grid/dist/open-grid-base.css` 를 넣는다.
10
+ *
11
+ * Angular component wrapping the OPEN_GRID core (`open-grid/angular`, Angular 17+).
12
+ * Takes the same inputs as the React and Vue wrappers. `data` and `theme` are applied in place via `setData` / `setTheme`;
13
+ * structural inputs (columns, editable, …) recreate the grid. Get the core instance from `(ready)` or the `grid` property.
14
+ * Grid scroll and pointer handling runs outside Angular change detection; outputs re-enter the zone only when subscribed.
15
+ * The component does not load CSS — add `node_modules/open-grid/dist/open-grid-base.css` to `styles` in `angular.json`.
16
+ *
17
+ * OPEN_GRID のコアを包む Angular コンポーネントです(`open-grid/angular`、Angular 17 以上)。
18
+ * React・Vue ラッパーと同じ入力を受け取ります。`data` は `setData`、`theme` は `setTheme` でその場に反映し、
19
+ * 列や編集可否などの構造に関わる入力が変わるとグリッドを作り直します。コアのインスタンスは `(ready)` イベントか `grid` プロパティで受け取ります。
20
+ * スタイルシートは読み込みません。`angular.json` の `styles` に `node_modules/open-grid/dist/open-grid-base.css` を追加してください。
21
+ *
22
+ * 包装 OPEN_GRID 核心的 Angular 组件(`open-grid/angular`,Angular 17 及以上)。
23
+ * 接收与 React、Vue 包装器相同的输入。`data` 通过 `setData`、`theme` 通过 `setTheme` 就地生效;
24
+ * 列、是否可编辑等结构性输入变化时会重新创建表格。核心实例可通过 `(ready)` 事件或 `grid` 属性获取。
25
+ * 组件不会加载样式表,请把 `node_modules/open-grid/dist/open-grid-base.css` 加到 `angular.json` 的 `styles` 中。
26
+ *
27
+ * @typeParam T - 행 데이터 타입 / Row data type
28
+ * @example
29
+ * <open-grid [columns]="columns" [data]="rows" [height]="400" (ready)="grid = $event" (cellClick)="onCell($event)"></open-grid>
30
+ */
31
+ export declare class OpenGridComponent<T extends Record<string, any> = any> implements AfterViewInit, OnChanges, OnDestroy {
32
+ private readonly _zone;
33
+ /** 표시할 행 데이터 배열. / Row data array to display. */
34
+ data?: T[];
35
+ /** 컬럼 정의 배열(필수). / Column definitions (required). */
36
+ columns: ColumnDef<T>[];
37
+ /** 그리드 높이(숫자는 px). 기본 400. / Grid height (number = px). Default 400. */
38
+ height: number | string;
39
+ /** 그리드 너비(숫자는 px). 기본 '100%'. / Grid width (number = px). Default '100%'. */
40
+ width: number | string;
41
+ /** 셀 편집 허용. 기본 false. / Allow cell editing. Default false. */
42
+ editable: boolean;
43
+ /** 정렬 허용. 기본 true. / Allow sorting. Default true. */
44
+ sortable: boolean;
45
+ /** 필터 허용. 기본 true. / Allow filtering. Default true. */
46
+ filterable: boolean;
47
+ /** 행 번호 컬럼 표시. 기본 false. / Show a row-number column. Default false. */
48
+ rowNumber: boolean;
49
+ /** 체크박스 선택 컬럼 표시. 기본 false. / Show a checkbox selection column. Default false. */
50
+ checkColumn: boolean;
51
+ /** 행 상태 컬럼 표시. 기본 false. / Show a row-state column. Default false. */
52
+ stateColumn: boolean;
53
+ /** 행 드래그앤드롭 허용. 기본 false. / Allow row drag-and-drop. Default false. */
54
+ draggable: boolean;
55
+ /** 왼쪽에서 고정할 컬럼 수. 기본 0. / Number of columns frozen from the left. Default 0. */
56
+ frozenColumns: number;
57
+ /** 테마 id. 기본 'default'. / Theme id. Default 'default'. */
58
+ theme: string;
59
+ /** 위 입력값으로 못 덮는 나머지 코어 옵션. / Remaining core options not covered by the inputs above. */
60
+ options?: Partial<GridOptions<T>>;
61
+ /** 그리드 인스턴스 준비 완료. / The grid instance is ready. */
62
+ readonly ready: EventEmitter<OpenGridInstance<T>>;
63
+ /** 데이터 변경. / Data changed. */
64
+ readonly dataChange: EventEmitter<T[]>;
65
+ /** 셀 클릭. / Cell click. */
66
+ readonly cellClick: EventEmitter<any>;
67
+ /** 행 클릭. / Row click. */
68
+ readonly rowClick: EventEmitter<any>;
69
+ /** 편집 종료(커밋). / Editing ended (commit). */
70
+ readonly editEnd: EventEmitter<any>;
71
+ /** 정렬 변경. / Sorting changed. */
72
+ readonly sortChange: EventEmitter<any>;
73
+ /** 필터 변경. / Filtering changed. */
74
+ readonly filterChange: EventEmitter<any>;
75
+ /** 행 드롭(재정렬). / Row drop (reorder). */
76
+ readonly rowDrop: EventEmitter<{
77
+ fromIndex: number;
78
+ toIndex: number;
79
+ }>;
80
+ readonly hostDisplay = "block";
81
+ readonly hostBoxSizing = "border-box";
82
+ get hostHeight(): string;
83
+ get hostWidth(): string;
84
+ private _gridEl;
85
+ private _grid;
86
+ private _viewReady;
87
+ constructor(_zone: NgZone);
88
+ /** 코어 그리드 인스턴스. 뷰가 준비되기 전에는 `null`. / The core grid instance; `null` until the view is ready. */
89
+ get grid(): OpenGridInstance<T> | null;
90
+ ngAfterViewInit(): void;
91
+ ngOnChanges(changes: SimpleChanges): void;
92
+ ngOnDestroy(): void;
93
+ private _create;
94
+ private _destroy;
95
+ static ɵfac: i0.ɵɵFactoryDeclaration<OpenGridComponent<any>, never>;
96
+ static ɵcmp: i0.ɵɵComponentDeclaration<OpenGridComponent<any>, "open-grid", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "height": { "alias": "height"; "required": false; }; "width": { "alias": "width"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "filterable": { "alias": "filterable"; "required": false; }; "rowNumber": { "alias": "rowNumber"; "required": false; }; "checkColumn": { "alias": "checkColumn"; "required": false; }; "stateColumn": { "alias": "stateColumn"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "frozenColumns": { "alias": "frozenColumns"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "ready": "ready"; "dataChange": "dataChange"; "cellClick": "cellClick"; "rowClick": "rowClick"; "editEnd": "editEnd"; "sortChange": "sortChange"; "filterChange": "filterChange"; "rowDrop": "rowDrop"; }, never, never, true, never>;
97
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * OPEN_GRID Angular 바인딩 진입점(`open-grid/angular`). / OPEN_GRID Angular binding entry point (`open-grid/angular`).
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+ export { OpenGridComponent } from './lib/open-grid.component';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const Registry = require("./Registry-D74ZmdDz.cjs"), OpenGrid = require("./OpenGrid-CT9bV6On.cjs");
3
+ const Registry = require("./Registry-D74ZmdDz.cjs"), OpenGrid = require("./OpenGrid-CLk8Vt7j.cjs");
4
4
  function isStyleRef(e) {
5
5
  return !!e && typeof e.ref == "string";
6
6
  }
@@ -449,4 +449,4 @@ class CFEngine {
449
449
  }
450
450
  }
451
451
  exports.AA_BODY = AA_BODY, exports.BUILTIN_PREDICATES = BUILTIN_PREDICATES, exports.BarEncoder = BarEncoder, exports.CFEngine = CFEngine, exports.CFRuleStore = CFRuleStore, exports.CF_SCHEMA_VERSION = CF_SCHEMA_VERSION, exports.DefaultCFEvaluator = DefaultCFEvaluator, exports.DefaultCFRuleLoader = DefaultCFRuleLoader, exports.DefaultInkResolver = DefaultInkResolver, exports.IconEncoder = IconEncoder, exports.NEUTRAL_MIDPOINT = NEUTRAL_MIDPOINT, exports.ScaleEncoder = ScaleEncoder, exports.SparklineEncoder = SparklineEncoder, exports.cfRuleEquals = cfRuleEquals, exports.computeColumnStats = computeColumnStats, exports.computeDatum = computeDatum, exports.createEncoderRegistry = createEncoderRegistry, exports.createNamedStyleRegistry = createNamedStyleRegistry, exports.createRuleTypeRegistry = createRuleTypeRegistry, exports.divergingBands = divergingBands, exports.divergingColor = divergingColor, exports.isStyleRef = isStyleRef, exports.passesInkGate = passesInkGate, exports.scopeMatches = scopeMatches, exports.sequentialBands = sequentialBands, exports.sequentialColor = sequentialColor, exports.serializeRules = serializeRules, exports.snapshotStats = snapshotStats, exports.staticAppearanceView = staticAppearanceView;
452
- //# sourceMappingURL=index-Brfso4Ry.cjs.map
452
+ //# sourceMappingURL=index-D0DJtKYI.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { T as $ } from "./Registry-CPJYOqCn.js";
2
- import { p as ne, c as I } from "./OpenGrid-DACnZdEy.js";
2
+ import { p as ne, c as I } from "./OpenGrid-D6YxCsnV.js";
3
3
  function z(e) {
4
4
  return !!e && typeof e.ref == "string";
5
5
  }
@@ -478,4 +478,4 @@ export {
478
478
  Y as snapshotStats,
479
479
  oe as staticAppearanceView
480
480
  };
481
- //# sourceMappingURL=index-al9Mbv3E.js.map
481
+ //# sourceMappingURL=index-VkKgQ506.js.map
@@ -0,0 +1,216 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const COMMIT_KEYS = /* @__PURE__ */ new Set(["Enter"]);
4
+ function normalizePattern(i) {
5
+ const e = i.split("+").map((h) => h.trim()).filter(Boolean);
6
+ let s = false, t = false, r = false, n = false, o = "";
7
+ for (const h of e) {
8
+ const a = h.toLowerCase();
9
+ a === "ctrl" || a === "control" ? s = true : a === "alt" || a === "option" ? t = true : a === "shift" ? r = true : a === "meta" || a === "cmd" || a === "command" || a === "super" ? n = true : o = h;
10
+ }
11
+ return canon(o, s, t, r, n);
12
+ }
13
+ function strokeToPattern(i) {
14
+ return canon(i.key, i.ctrl, i.alt, i.shift, i.meta);
15
+ }
16
+ function strokeFromEvent(i) {
17
+ return { key: i.key, ctrl: i.ctrlKey, shift: i.shiftKey, alt: i.altKey, meta: i.metaKey, isComposing: i.isComposing ?? false };
18
+ }
19
+ function canon(i, e, s, t, r) {
20
+ const n = [];
21
+ e && n.push("Ctrl"), s && n.push("Alt"), t && n.push("Shift"), r && n.push("Meta");
22
+ const o = i.toLowerCase();
23
+ return [...n, o].join("+");
24
+ }
25
+ class KeyboardInteractionModel {
26
+ constructor() {
27
+ this._bindings = /* @__PURE__ */ new Map(), this._mouseCommands = /* @__PURE__ */ new Set(), this._mode = "nav";
28
+ }
29
+ register(e) {
30
+ const s = this._storeKey(e.mode, normalizePattern(e.pattern)), t = this._bindings.get(s);
31
+ return t ? { conflict: t } : (this._bindings.set(s, e), {});
32
+ }
33
+ declareMouseCommand(e) {
34
+ this._mouseCommands.add(e);
35
+ }
36
+ resolve(e, s) {
37
+ if (this._guardIme(s)) return null;
38
+ const t = strokeToPattern(s), r = this._bindings.get(this._storeKey(e, t)) ?? this._bindings.get(this._storeKey("*", t));
39
+ return r ? r.commandId : null;
40
+ }
41
+ mode() {
42
+ return this._mode;
43
+ }
44
+ setMode(e) {
45
+ this._mode = e;
46
+ }
47
+ parityReport() {
48
+ const e = /* @__PURE__ */ new Set();
49
+ for (const t of this._bindings.values()) e.add(t.commandId);
50
+ const s = [];
51
+ for (const t of this._mouseCommands) e.has(t) || s.push(t);
52
+ return s.sort(), { mouseOnly: s, covered: this._mouseCommands.size - s.length, total: this._mouseCommands.size };
53
+ }
54
+ size() {
55
+ return this._bindings.size;
56
+ }
57
+ _guardIme(e) {
58
+ return e.isComposing && COMMIT_KEYS.has(e.key);
59
+ }
60
+ _storeKey(e, s) {
61
+ return `${e}|${s}`;
62
+ }
63
+ }
64
+ class LiveRegionController {
65
+ constructor(e) {
66
+ this._polite = /* @__PURE__ */ new Map(), this._assertive = /* @__PURE__ */ new Map(), this._timer = null, this._userBusy = false, this._disposed = false, this._spoken = 0, this._coalesced = 0, this._dropped = 0, this._render = e.render, this._t = e.t ?? ((s) => s), this._debounceMs = e.debounceMs ?? 150, this._assertiveImmediate = e.assertiveImmediate ?? true, this._schedule = e.schedule ?? ((s, t) => setTimeout(s, t)), this._cancel = e.cancel ?? ((s) => clearTimeout(s));
67
+ }
68
+ enqueue(e) {
69
+ if (this._disposed) return;
70
+ const s = e.channel === "assertive" ? this._assertive : this._polite;
71
+ if (s.has(e.mergeKey) && this._coalesced++, s.set(e.mergeKey, e), e.channel === "assertive" && this._assertiveImmediate) {
72
+ this._flushAssertive();
73
+ return;
74
+ }
75
+ this._scheduleFlush();
76
+ }
77
+ setUserBusy(e) {
78
+ const s = this._userBusy;
79
+ this._userBusy = e, s && !e && this._scheduleFlush();
80
+ }
81
+ drop(e) {
82
+ let s = false;
83
+ this._polite.delete(e) && (s = true), this._assertive.delete(e) && (s = true), s && this._dropped++;
84
+ }
85
+ metrics() {
86
+ return { spoken: this._spoken, coalesced: this._coalesced, dropped: this._dropped };
87
+ }
88
+ dispose() {
89
+ this._timer != null && (this._cancel(this._timer), this._timer = null), this._polite.clear(), this._assertive.clear(), this._disposed = true;
90
+ }
91
+ _scheduleFlush() {
92
+ this._disposed || this._timer != null || (this._timer = this._schedule(() => {
93
+ this._timer = null, this._flush();
94
+ }, this._debounceMs));
95
+ }
96
+ _flush() {
97
+ this._disposed || (this._flushAssertive(), this._flushPolite());
98
+ }
99
+ _flushAssertive() {
100
+ if (this._assertive.size === 0) return;
101
+ const e = [...this._assertive.values()].sort((s, t) => t.priority - s.priority);
102
+ this._assertive.clear();
103
+ for (const s of e) this._speak(s);
104
+ }
105
+ _flushPolite() {
106
+ if (this._polite.size === 0) return;
107
+ const e = [], s = /* @__PURE__ */ new Map();
108
+ for (const [t, r] of this._polite) this._userBusy && r.background ? s.set(t, r) : e.push(r);
109
+ this._polite = s, e.sort((t, r) => r.priority - t.priority);
110
+ for (const t of e) this._speak(t);
111
+ }
112
+ _speak(e) {
113
+ const s = this._t(e.messageKey, e.params);
114
+ this._render.announce(e.channel, s), this._spoken++;
115
+ }
116
+ }
117
+ const RESERVED_PREFIXES = ["og:", "og-"];
118
+ function isReserved(i) {
119
+ return RESERVED_PREFIXES.some((e) => i.startsWith(e));
120
+ }
121
+ function spiMajor(i) {
122
+ const e = i.lastIndexOf("@"), s = e >= 0 ? i.slice(e + 1) : i;
123
+ return s.split(".")[0] ?? s;
124
+ }
125
+ function spiCompatible(i, e) {
126
+ return spiMajor(i) === spiMajor(e);
127
+ }
128
+ function buildEntry(i, e, s, t, r) {
129
+ const n = { key: i, value: e, origin: s, priority: t.priority ?? 0, seq: r };
130
+ return t.pluginId !== void 0 && (n.pluginId = t.pluginId), t.spiVersion !== void 0 && (n.spiVersion = t.spiVersion), t.deprecated !== void 0 && (n.deprecated = t.deprecated), n;
131
+ }
132
+ class TypedRegistry {
133
+ constructor(e = {}) {
134
+ this._map = /* @__PURE__ */ new Map(), this._seq = 0, this._disposed = false, this._warned = /* @__PURE__ */ new Set(), this._cfg = e;
135
+ }
136
+ _warn(e, s) {
137
+ const t = `[OpenGrid] ${s}`, r = `${e}::${s}`;
138
+ return this._warned.has(r) || (this._warned.add(r), (this._cfg.onWarn ?? ((o) => {
139
+ typeof console < "u" && console.warn(o);
140
+ }))(t)), t;
141
+ }
142
+ register(e, s, t = {}) {
143
+ if (this._disposed) return { ok: false, action: "rejected", reason: "disposed" };
144
+ if (typeof e != "string" || e.length === 0) return { ok: false, action: "rejected", reason: "invalid-key" };
145
+ const r = t.origin ?? "user";
146
+ if (isReserved(e) && r !== "builtin") return { ok: false, action: "rejected", reason: "reserved-namespace", warning: this._warn(e, `reserved namespace: '${e}' 는 og:* 코어 예약 대역입니다(origin:'builtin' 만 점유).`) };
147
+ if (this._cfg.spi && t.spiVersion !== void 0 && !spiCompatible(this._cfg.spi.version, t.spiVersion)) return { ok: false, action: "rejected", reason: "spi-mismatch", warning: this._warn(e, `SPI major 불일치: '${e}' 선언 ${t.spiVersion}, 코어 ${this._cfg.spi.name}@${this._cfg.spi.version}.`) };
148
+ const n = this._map.get(e);
149
+ return n && !this._resolveConflict(n, t) ? { ok: false, action: "kept", reason: "protected-builtin", warning: this._warn(e, `'${e}' 는 ${n.origin === "builtin" ? "내장(built-in) 보호" : "override 미지정"} — 덮으려면 { override:true }.`) } : (this._map.set(e, buildEntry(e, s, r, t, this._seq++)), { ok: true, action: n ? "replaced" : "added" });
150
+ }
151
+ _resolveConflict(e, s) {
152
+ return e.origin === "builtin" && s.override !== true ? false : this._cfg.duplicatePolicy === "explicit-override" ? s.override === true : true;
153
+ }
154
+ get(e) {
155
+ var _a;
156
+ return (_a = this._map.get(e)) == null ? void 0 : _a.value;
157
+ }
158
+ require(e, s) {
159
+ const t = this.get(e);
160
+ if (t !== void 0) return t;
161
+ if (s !== void 0) return s;
162
+ if (this._cfg.placeholder) return this._cfg.placeholder(e);
163
+ }
164
+ has(e) {
165
+ return this._map.has(e);
166
+ }
167
+ list() {
168
+ return [...this._map.keys()];
169
+ }
170
+ entries() {
171
+ return [...this._map.values()];
172
+ }
173
+ unregister(e) {
174
+ return this._map.delete(e);
175
+ }
176
+ disposePlugin(e) {
177
+ let s = 0;
178
+ for (const [t, r] of this._map) r.pluginId === e && (this._map.delete(t), s++);
179
+ return s;
180
+ }
181
+ dispose() {
182
+ this._map.clear(), this._warned.clear(), this._disposed = true;
183
+ }
184
+ }
185
+ const VISUAL_EQUIV_SPI = { name: "IVisualEquivProvider", version: "1" };
186
+ class VisualEquivRegistry {
187
+ constructor(e) {
188
+ const s = { spi: VISUAL_EQUIV_SPI };
189
+ e !== void 0 && (s.onWarn = e), this._reg = new TypedRegistry(s), this._onWarn = e;
190
+ }
191
+ register(e, s) {
192
+ return this._reg.register(e.kind, e, s);
193
+ }
194
+ has(e) {
195
+ return this._reg.has(e);
196
+ }
197
+ get(e) {
198
+ return this._reg.get(e);
199
+ }
200
+ list() {
201
+ return this._reg.list();
202
+ }
203
+ describe(e, s) {
204
+ var _a;
205
+ const t = this._reg.get(e);
206
+ return t ? t.describe(s) : ((_a = this._onWarn) == null ? void 0 : _a.call(this, `[VisualEquivRegistry] describe("${e}"): no text-equivalent provider registered for this kind (returned an empty string).`), "");
207
+ }
208
+ disposePlugin(e) {
209
+ return this._reg.disposePlugin(e);
210
+ }
211
+ dispose() {
212
+ this._reg.dispose();
213
+ }
214
+ }
215
+ exports.KeyboardInteractionModel = KeyboardInteractionModel, exports.LiveRegionController = LiveRegionController, exports.VisualEquivRegistry = VisualEquivRegistry, exports.strokeFromEvent = strokeFromEvent;
216
+ //# sourceMappingURL=open-grid-a11y.cjs.map