open-grid 1.3.0 → 1.4.0
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 +40 -0
- package/README.ja.md +462 -0
- package/README.md +52 -18
- package/README.zh.md +455 -0
- package/dist/{OpenGrid-B7m7ei7f.cjs → OpenGrid-BOtTt5aI.cjs} +2 -2
- package/dist/{OpenGrid-CeUdO_fM.js → OpenGrid-sI_vdHQw.js} +2 -2
- package/dist/Registry-CPJYOqCn.js +74 -0
- package/dist/Registry-D74ZmdDz.cjs +71 -0
- package/dist/index-B3fKi43v.js +481 -0
- package/dist/{index-JjfWY3Bt.cjs → index-D1l3XFCM.cjs} +92 -160
- package/dist/open-grid-react.cjs +1 -1
- package/dist/open-grid-react.js +1 -1
- package/dist/open-grid-vue.cjs +1 -1
- package/dist/open-grid-vue.js +1 -1
- package/dist/open-grid.cjs +31 -31
- package/dist/open-grid.js +86 -82
- package/dist/types/core/FilterSelect.d.ts +290 -33
- package/dist/types/core/GridShuttle.d.ts +177 -25
- package/dist/types/core/IconRegistry.d.ts +263 -37
- package/dist/types/core/OpenGrid.d.ts +2815 -373
- package/dist/types/core/OrgChart.d.ts +269 -31
- package/dist/types/core/SkinRegistry.d.ts +341 -43
- package/dist/types/core/XmlConverter.d.ts +424 -43
- package/dist/types/core/chart/types.d.ts +1076 -113
- package/dist/types/core/extension/Registry.d.ts +389 -51
- package/dist/types/core/extension/reserved.d.ts +34 -5
- package/dist/types/core/i18n/LocaleRegistry.d.ts +0 -0
- package/dist/types/core/i18n/types.d.ts +660 -78
- package/dist/types/core/types.d.ts +3791 -373
- package/dist/types/index.d.ts +226 -17
- package/package.json +3 -1
- package/dist/index-DrCPRuYi.js +0 -548
package/dist/types/index.d.ts
CHANGED
|
@@ -1,37 +1,246 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* 그리드 코어 클래스.
|
|
3
|
+
*
|
|
4
|
+
* The core grid class.
|
|
5
|
+
*
|
|
6
|
+
* グリッドのコアクラス。
|
|
7
|
+
*
|
|
8
|
+
* 表格核心类。
|
|
9
|
+
*/
|
|
2
10
|
export { OpenGrid } from './core/OpenGrid.js';
|
|
3
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* 두 그리드 사이 행 이동 셔틀(화살표 버튼 UI).
|
|
13
|
+
*
|
|
14
|
+
* Row shuttle between two grids (arrow-button UI).
|
|
15
|
+
*
|
|
16
|
+
* 2つのグリッド間の行移動シャトル(矢印ボタンUI)。
|
|
17
|
+
*
|
|
18
|
+
* 两个表格之间的行移动穿梭框(箭头按钮 UI)。
|
|
19
|
+
*/
|
|
4
20
|
export { GridShuttle, createGridShuttle } from './core/GridShuttle.js';
|
|
5
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* GridShuttle 생성 옵션.
|
|
23
|
+
*
|
|
24
|
+
* Construction options for GridShuttle.
|
|
25
|
+
*
|
|
26
|
+
* GridShuttle の生成オプション。
|
|
27
|
+
*
|
|
28
|
+
* GridShuttle 的构造选项。
|
|
29
|
+
*/
|
|
6
30
|
export type { GridShuttleOptions } from './core/GridShuttle.js';
|
|
7
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* 조직도(트리) 차트 위젯.
|
|
33
|
+
*
|
|
34
|
+
* Organization (tree) chart widget.
|
|
35
|
+
*
|
|
36
|
+
* 組織図(ツリー)チャートウィジェット。
|
|
37
|
+
*
|
|
38
|
+
* 组织架构(树形)图表组件。
|
|
39
|
+
*/
|
|
8
40
|
export { OrgChart } from './core/OrgChart.js';
|
|
9
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* XML ↔ 행 데이터 변환기(SAP 계열 응답 포함).
|
|
43
|
+
*
|
|
44
|
+
* XML ↔ row-data converter (incl. SAP-style payloads).
|
|
45
|
+
*
|
|
46
|
+
* XML ↔ 行データ変換器(SAP系レスポンスを含む)。
|
|
47
|
+
*
|
|
48
|
+
* XML ↔ 行数据转换器(含 SAP 系响应)。
|
|
49
|
+
*/
|
|
10
50
|
export { XmlConverter } from './core/XmlConverter.js';
|
|
11
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* 시맨틱 아이콘 role 레지스트리·렌더 헬퍼.
|
|
53
|
+
*
|
|
54
|
+
* Semantic icon role registry & render helpers.
|
|
55
|
+
*
|
|
56
|
+
* セマンティックアイコンロールレジストリ・レンダーヘルパー。
|
|
57
|
+
*
|
|
58
|
+
* 语义图标角色注册表与渲染辅助函数。
|
|
59
|
+
*/
|
|
12
60
|
export { IconRegistry, iconRegistry, renderIcon, DEFAULT_ICON_ROLES } from './core/IconRegistry.js';
|
|
13
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* renderIcon 옵션(size/title/element 반환 여부).
|
|
63
|
+
*
|
|
64
|
+
* Options for renderIcon (size/title/element output).
|
|
65
|
+
*
|
|
66
|
+
* renderIcon のオプション(size/title/element の出力可否)。
|
|
67
|
+
*
|
|
68
|
+
* renderIcon 的选项(size/title/element 输出)。
|
|
69
|
+
*/
|
|
14
70
|
export type { IconRenderOptions } from './core/IconRegistry.js';
|
|
15
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* 스킨(FORM 축) 정의 레지스트리.
|
|
73
|
+
*
|
|
74
|
+
* Skin (FORM-axis) definition registry.
|
|
75
|
+
*
|
|
76
|
+
* スキン(FORM軸)定義レジストリ。
|
|
77
|
+
*
|
|
78
|
+
* 皮肤(FORM 轴)定义注册表。
|
|
79
|
+
*/
|
|
16
80
|
export { SkinRegistry, skinRegistry } from './core/SkinRegistry.js';
|
|
17
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* FORM 전용 스킨 토큰 델타(색 리터럴 금지).
|
|
83
|
+
*
|
|
84
|
+
* FORM-only skin token delta (color literals rejected).
|
|
85
|
+
*
|
|
86
|
+
* FORM専用スキントークンデルタ(色リテラル禁止)。
|
|
87
|
+
*
|
|
88
|
+
* FORM 专用皮肤令牌增量(拒绝颜色字面量)。
|
|
89
|
+
*/
|
|
18
90
|
export type { SkinTokenDelta } from './core/types.js';
|
|
19
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* 로케일 메시지 레지스트리·전역 싱글턴·편의 t().
|
|
93
|
+
*
|
|
94
|
+
* Locale message registry, global singleton & convenience t().
|
|
95
|
+
*
|
|
96
|
+
* ロケールメッセージレジストリ・グローバルシングルトン・便利な t()。
|
|
97
|
+
*
|
|
98
|
+
* 语言环境消息注册表、全局单例及便捷函数 t()。
|
|
99
|
+
*/
|
|
20
100
|
export { LocaleRegistry, localeRegistry, t } from './core/i18n/LocaleRegistry.js';
|
|
21
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* 로케일 메시지 카탈로그·부분 오버라이드·dot-key·값·등록결과·메타 타입.
|
|
103
|
+
*
|
|
104
|
+
* Locale catalog, partial override, dot-key, value, register-result & meta types.
|
|
105
|
+
*
|
|
106
|
+
* ロケールメッセージカタログ・部分オーバーライド・dot-key・値・登録結果・メタ型。
|
|
107
|
+
*
|
|
108
|
+
* 语言环境消息目录、部分覆盖、dot-key、值、注册结果与元信息类型。
|
|
109
|
+
*/
|
|
22
110
|
export type { LocaleMessages, PartialLocaleMessages, LocaleMessageKey, MessageValue, LocaleRegisterResult, LocaleMeta, } from './core/i18n/types.js';
|
|
23
|
-
/**
|
|
111
|
+
/**
|
|
112
|
+
* OrgChart 옵션·컬럼 정의.
|
|
113
|
+
*
|
|
114
|
+
* OrgChart options & column definition.
|
|
115
|
+
*
|
|
116
|
+
* OrgChart のオプション・カラム定義。
|
|
117
|
+
*
|
|
118
|
+
* OrgChart 的选项与列定义。
|
|
119
|
+
*/
|
|
24
120
|
export type { OrgChartOptions, OrgChartColumnDef } from './core/OrgChart.js';
|
|
25
|
-
/**
|
|
121
|
+
/**
|
|
122
|
+
* 트리 노드 아이콘 정의.
|
|
123
|
+
*
|
|
124
|
+
* Tree node icon definition.
|
|
125
|
+
*
|
|
126
|
+
* ツリーノードアイコン定義。
|
|
127
|
+
*
|
|
128
|
+
* 树节点图标定义。
|
|
129
|
+
*/
|
|
26
130
|
export type { TreeNodeIconDef } from './core/types.js';
|
|
27
|
-
/**
|
|
131
|
+
/**
|
|
132
|
+
* 캐스케이딩 필터 셀렉트 설정.
|
|
133
|
+
*
|
|
134
|
+
* Cascading filter-select configuration.
|
|
135
|
+
*
|
|
136
|
+
* カスケーディングフィルターセレクト設定。
|
|
137
|
+
*
|
|
138
|
+
* 级联筛选下拉框配置。
|
|
139
|
+
*/
|
|
28
140
|
export type { FilterSelectConfig, FilterSelectColumn } from './core/FilterSelect.js';
|
|
29
141
|
/**
|
|
30
142
|
* 그리드 코어 공개 타입 모음(옵션·컬럼·이벤트·트리거·Phase 0 인프라).
|
|
31
|
-
*
|
|
143
|
+
*
|
|
144
|
+
* Core public types (options, columns, events, triggers, Phase 0 infrastructure).
|
|
145
|
+
*
|
|
146
|
+
* グリッドコアの公開型一覧(オプション・カラム・イベント・トリガー・Phase 0インフラ)。
|
|
147
|
+
*
|
|
148
|
+
* 表格核心公开类型集合(选项、列、事件、触发器、Phase 0 基础设施)。
|
|
32
149
|
*/
|
|
33
150
|
export type { GridOptions, ColumnDef, OpenGridInstance, CellEvent, CellKeyEvent, EditEvent, RowEvent, SortItem, FilterItem, ExportOptions, FooterDef, SummaryOptions, RendererDef, EditorDef, DataType, SelectionMode, SortDir, Position, TriggerContext, TriggerHandler, TriggerEvent, CellRange, FlatRowRef, } from './core/types.js';
|
|
34
|
-
/**
|
|
151
|
+
/**
|
|
152
|
+
* XmlConverter 파싱/직렬화 옵션·결과.
|
|
153
|
+
*
|
|
154
|
+
* XmlConverter parse/stringify options & results.
|
|
155
|
+
*
|
|
156
|
+
* XmlConverter のパース/直列化オプション・結果。
|
|
157
|
+
*
|
|
158
|
+
* XmlConverter 的解析/序列化选项与结果。
|
|
159
|
+
*/
|
|
35
160
|
export type { XmlParseOptions, XmlStringifyOptions, SapParseResult, } from './core/XmlConverter.js';
|
|
36
|
-
/**
|
|
161
|
+
/**
|
|
162
|
+
* F4 통합 차트 공개 타입.
|
|
163
|
+
*
|
|
164
|
+
* Public types of the F4 integrated chart.
|
|
165
|
+
*
|
|
166
|
+
* F4統合チャートの公開型。
|
|
167
|
+
*
|
|
168
|
+
* F4 集成图表的公开类型。
|
|
169
|
+
*/
|
|
37
170
|
export type { ChartType, ChartSource, ChartSeriesSpec, ChartSeries, ChartDataModel, ChartConfig, ChartInstance, ChartGlobalOptions, ChartPoint, ChartAdapter, ChartRenderSpec, ChartTheme, A11yTableModel, } from './core/chart/types.js';
|
|
171
|
+
/**
|
|
172
|
+
* 이름표를 붙여 무언가를 등록해 두고 나중에 꺼내 쓰는 등록소입니다.
|
|
173
|
+
* 셀 렌더러나 포맷터처럼 사용자가 직접 만든 것을 모아둘 때 씁니다.
|
|
174
|
+
*
|
|
175
|
+
* 그냥 `Map` 을 써도 되지만, 그러면 방금 등록이 새로 들어간 것인지 남의 것을
|
|
176
|
+
* 덮어쓴 것인지 알 수 없습니다. 이 등록소는 매 등록마다 어떻게 처리됐는지를
|
|
177
|
+
* 알려줍니다 — 새로 넣었으면 `added`, 덮어썼으면 `replaced`, 기존 것을 지켰으면
|
|
178
|
+
* `kept`, 거절했으면 `rejected` 이고, 지키거나 거절한 경우엔 그 이유도 함께 옵니다.
|
|
179
|
+
*
|
|
180
|
+
* `og:` 나 `og-` 로 시작하는 이름은 그리드가 쓰려고 남겨둔 자리라 등록이 거절됩니다.
|
|
181
|
+
* 내장 항목을 남이 덮어쓰지 못하게 막고 싶으면 `duplicatePolicy: 'protect-builtin'`
|
|
182
|
+
* 을 주면 됩니다.
|
|
183
|
+
*
|
|
184
|
+
* A registry that stores values under a name so you can look them up later —
|
|
185
|
+
* useful for collecting your own cell renderers or formatters.
|
|
186
|
+
*
|
|
187
|
+
* Unlike a plain `Map`, it tells you what each registration actually did:
|
|
188
|
+
* `added`, `replaced`, `kept`, or `rejected` (the latter two come with a reason).
|
|
189
|
+
* Names starting with `og:` or `og-` are reserved by the grid and get rejected,
|
|
190
|
+
* and `duplicatePolicy: 'protect-builtin'` keeps built-in entries from being overwritten.
|
|
191
|
+
*
|
|
192
|
+
* 名前を付けて何かを登録しておき、後から取り出して使うレジストリです。
|
|
193
|
+
* セルレンダラーやフォーマッターのように自分で作ったものをまとめておくときに使います。
|
|
194
|
+
*
|
|
195
|
+
* ただの `Map` を使うこともできますが、それでは今の登録が新規なのか他人のものを
|
|
196
|
+
* 上書きしたのか分かりません。このレジストリは登録のたびにどう処理されたかを
|
|
197
|
+
* 教えてくれます — 新規なら `added`、上書きなら `replaced`、既存を守ったなら
|
|
198
|
+
* `kept`、拒否したなら `rejected` で、守った場合と拒否した場合にはその理由も付きます。
|
|
199
|
+
*
|
|
200
|
+
* `og:` や `og-` で始まる名前はグリッドが使うために予約されているため、登録は
|
|
201
|
+
* 拒否されます。組み込み項目を他人に上書きされたくない場合は
|
|
202
|
+
* `duplicatePolicy: 'protect-builtin'` を指定します。
|
|
203
|
+
*
|
|
204
|
+
* 按名称存储值、供之后查找取用的注册表,可用来收集自定义的单元格渲染器或格式化器。
|
|
205
|
+
*
|
|
206
|
+
* 普通 `Map` 也能用,但看不出这次注册是新增还是覆盖了别人的值。这个注册表会告知
|
|
207
|
+
* 每次注册的处理结果:新增为 `added`、覆盖为 `replaced`、保留原值为 `kept`、拒绝为
|
|
208
|
+
* `rejected`(后两者附带原因)。表格保留了以 `og:` 或 `og-` 开头的名称,这类注册
|
|
209
|
+
* 会被拒绝;设置 `duplicatePolicy: 'protect-builtin'` 即可防止内置项被覆盖。
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* const reg = new TypedRegistry({ spi: { name: 'ICellRenderer', version: '1' } });
|
|
213
|
+
* reg.register('rating', factory); // → { action: 'added' }
|
|
214
|
+
* reg.register('og:core', factory); // → { action: 'rejected', reason: 'reserved-namespace' }
|
|
215
|
+
* reg.get('rating'); // returns the registered value
|
|
216
|
+
*/
|
|
217
|
+
export { TypedRegistry } from './core/extension/Registry.js';
|
|
218
|
+
/**
|
|
219
|
+
* 등록소를 쓸 때 필요한 타입들 — 등록소가 지켜야 할 계약, 등록할 때 주는 옵션과
|
|
220
|
+
* 돌아오는 결과, 등록된 항목의 정보, 중복됐을 때의 처리 방침, 생성 설정.
|
|
221
|
+
*
|
|
222
|
+
* Types for working with the registry — its contract, the options you pass in and the
|
|
223
|
+
* result you get back, entry metadata, the duplicate-handling policy, and construction config.
|
|
224
|
+
*
|
|
225
|
+
* レジストリを使うときに必要な型です — レジストリが守るべき契約、登録時に渡すオプションと
|
|
226
|
+
* 返ってくる結果、登録された項目の情報、重複時の処理方針、生成設定。
|
|
227
|
+
*
|
|
228
|
+
* 使用注册表所需的类型——注册表应遵守的契约、注册时传入的选项与返回的结果、
|
|
229
|
+
* 已注册条目的信息、重复时的处理策略、构造配置。
|
|
230
|
+
*/
|
|
231
|
+
export type { IRegistry, RegisterOptions, RegisterResult, RegisterAction, RegisterReason, RegistryEntry, EntryOrigin, DuplicatePolicy, DeprecationInfo, TypedRegistryConfig, } from './core/extension/Registry.js';
|
|
232
|
+
/**
|
|
233
|
+
* 그리드가 자기 몫으로 남겨둔 이름 접두사(`og:` · `og-`)와, 어떤 이름이 거기 걸리는지
|
|
234
|
+
* 미리 확인하는 함수입니다. 등록이 거절당하기 전에 먼저 물어볼 때 씁니다.
|
|
235
|
+
*
|
|
236
|
+
* The name prefixes the grid reserves for itself (`og:` / `og-`), plus a helper to check
|
|
237
|
+
* a name against them before a registration gets rejected.
|
|
238
|
+
*
|
|
239
|
+
* グリッドが自分のために予約した名前プレフィックス(`og:` ・ `og-`)と、ある名前が
|
|
240
|
+
* それに該当するかどうかを事前に確認する関数です。登録が拒否される前に問い合わせる
|
|
241
|
+
* ときに使います。
|
|
242
|
+
*
|
|
243
|
+
* 表格为自身保留的名称前缀(`og:` / `og-`),以及在注册被拒绝前预先检查某个名称
|
|
244
|
+
* 是否命中这些前缀的辅助函数。
|
|
245
|
+
*/
|
|
246
|
+
export { RESERVED_PREFIXES, isReserved } from './core/extension/reserved.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-grid",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "초경량·제로 의존성 데이터 그리드 — React·Vue·Angular·jQuery·Vanilla 어디서나. 가상 스크롤·인라인 편집·다국어(i18n), MIT 라이선스, AI 친화 override 가이드. / Ultra-light data grid with a zero-dependency core — works with React, Vue, Angular, jQuery, or vanilla JS. Virtual scroll, inline editing, i18n. MIT-licensed, endlessly customizable, with an AI-friendly override guide.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/open-grid.cjs",
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"dist",
|
|
29
29
|
"README.md",
|
|
30
|
+
"README.ja.md",
|
|
31
|
+
"README.zh.md",
|
|
30
32
|
"CHANGELOG.md",
|
|
31
33
|
"LICENSE",
|
|
32
34
|
"NOTICE",
|