@vmscloud/moz-ui-grid-react 0.1.21 → 0.1.22

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 (111) hide show
  1. package/README.md +3 -3
  2. package/dist/{legacy/locale/contextWrapper.d.ts → contextWrapper.d.ts} +2 -5
  3. package/dist/index.cjs +1 -25
  4. package/dist/index.d.ts +3 -7
  5. package/dist/index.js +54 -95649
  6. package/dist/locale/MozGridLocaleContext.d.ts +23 -0
  7. package/dist/style.css +1 -1
  8. package/package.json +21 -17
  9. package/dist/legacy/components/common/Dragging.d.ts +0 -30
  10. package/dist/legacy/components/common/custom-cell/FormulaEngine.d.ts +0 -256
  11. package/dist/legacy/components/common/custom-cell/FormulaInput.d.ts +0 -25
  12. package/dist/legacy/components/common/custom-cell/GridCustomCell.d.ts +0 -17
  13. package/dist/legacy/components/common/custom-cell/useFormulaAutocomplete.d.ts +0 -54
  14. package/dist/legacy/components/common/excel/ClientExcelUploadPopup.d.ts +0 -6
  15. package/dist/legacy/components/common/filter/GridFilter.d.ts +0 -13
  16. package/dist/legacy/components/common/footer/GridFooter.d.ts +0 -17
  17. package/dist/legacy/components/common/sort/GridSort.d.ts +0 -12
  18. package/dist/legacy/components/common/toolbar/GridSearchInput.d.ts +0 -26
  19. package/dist/legacy/components/grid/CellEditor.d.ts +0 -9
  20. package/dist/legacy/components/grid/CellTemplate.d.ts +0 -21
  21. package/dist/legacy/components/grid/DetailTemplate.d.ts +0 -8
  22. package/dist/legacy/components/grid/GroupTemplate.d.ts +0 -8
  23. package/dist/legacy/components/grid/HeaderTemplate.d.ts +0 -9
  24. package/dist/legacy/components/grid/MozGridReact.d.ts +0 -12
  25. package/dist/legacy/components/grid/MozGridReactCore.d.ts +0 -28
  26. package/dist/legacy/components/grid/bulk-editor/GridBulkEditor.d.ts +0 -11
  27. package/dist/legacy/components/grid/context-menu/GridContextMenu.d.ts +0 -22
  28. package/dist/legacy/components/grid/group-panel/GroupPanel.d.ts +0 -5
  29. package/dist/legacy/components/grid/toolbar/ColumnPicker.d.ts +0 -18
  30. package/dist/legacy/components/grid/toolbar/GridOptionModal.d.ts +0 -30
  31. package/dist/legacy/components/grid/toolbar/GridSetupPopover.d.ts +0 -25
  32. package/dist/legacy/components/grid/toolbar/GridToolBox.d.ts +0 -49
  33. package/dist/legacy/components/pivot/MozPivotReact.d.ts +0 -47
  34. package/dist/legacy/components/pivot/PivotContextMenu.d.ts +0 -23
  35. package/dist/legacy/components/pivot/PivotFieldChip.d.ts +0 -17
  36. package/dist/legacy/components/pivot/PivotFieldDropZone.d.ts +0 -30
  37. package/dist/legacy/components/pivot/PivotFieldPanel.d.ts +0 -26
  38. package/dist/legacy/components/pivot/PivotOptionModal.d.ts +0 -36
  39. package/dist/legacy/components/pivot/PivotToolBox.d.ts +0 -56
  40. package/dist/legacy/components/pivot/chart/EChart.d.ts +0 -18
  41. package/dist/legacy/components/pivot/chart/MozPivotChart.d.ts +0 -23
  42. package/dist/legacy/components/pivot/chart/PivotChartDetail.d.ts +0 -17
  43. package/dist/legacy/components/pivot/chart/PivotChartMini.d.ts +0 -19
  44. package/dist/legacy/components/pivot/chart/PivotChartMultiple.d.ts +0 -16
  45. package/dist/legacy/components/pivot/chart/PivotChartToolbar.d.ts +0 -32
  46. package/dist/legacy/components/pivot/chart/chartUtils.d.ts +0 -45
  47. package/dist/legacy/contexts/index.d.ts +0 -31
  48. package/dist/legacy/contracts/notification.contract.d.ts +0 -34
  49. package/dist/legacy/hooks/index.d.ts +0 -16
  50. package/dist/legacy/hooks/useCellTooltip.d.ts +0 -8
  51. package/dist/legacy/hooks/useClientExcelExport.d.ts +0 -27
  52. package/dist/legacy/hooks/useClientExcelStore.d.ts +0 -18
  53. package/dist/legacy/hooks/useContextMenu.d.ts +0 -62
  54. package/dist/legacy/hooks/useGridBulkEditor.d.ts +0 -16
  55. package/dist/legacy/hooks/useGridChanges.d.ts +0 -10
  56. package/dist/legacy/hooks/useGridColumns.d.ts +0 -11
  57. package/dist/legacy/hooks/useGridCustomCell.d.ts +0 -32
  58. package/dist/legacy/hooks/useGridCustomCellModule.d.ts +0 -9
  59. package/dist/legacy/hooks/useGridEvents.d.ts +0 -13
  60. package/dist/legacy/hooks/useGridFilter.d.ts +0 -19
  61. package/dist/legacy/hooks/useGridInstance.d.ts +0 -9
  62. package/dist/legacy/hooks/useGridSelect.d.ts +0 -10
  63. package/dist/legacy/hooks/useGridSelection.d.ts +0 -6
  64. package/dist/legacy/hooks/useGridSort.d.ts +0 -16
  65. package/dist/legacy/hooks/useGridUndoRedo.d.ts +0 -10
  66. package/dist/legacy/hooks/useGridValidation.d.ts +0 -9
  67. package/dist/legacy/hooks/useSearchHighlight.d.ts +0 -9
  68. package/dist/legacy/icons/index.d.ts +0 -36
  69. package/dist/legacy/index.d.ts +0 -71
  70. package/dist/legacy/locale/MozConfigProvider.d.ts +0 -31
  71. package/dist/legacy/locale/en.d.ts +0 -2
  72. package/dist/legacy/locale/index.d.ts +0 -8
  73. package/dist/legacy/locale/ja.d.ts +0 -2
  74. package/dist/legacy/locale/ko.d.ts +0 -2
  75. package/dist/legacy/locale/types.d.ts +0 -330
  76. package/dist/legacy/locale/useMozLocale.d.ts +0 -15
  77. package/dist/legacy/locale/zh.d.ts +0 -2
  78. package/dist/legacy/stories/MozGridReact.stories.d.ts +0 -7
  79. package/dist/legacy/stories/MozPivotReact.stories.d.ts +0 -44
  80. package/dist/legacy/types/pivot-props.d.ts +0 -62
  81. package/dist/legacy/types/props.d.ts +0 -127
  82. package/dist/legacy/types/toolbar.d.ts +0 -117
  83. package/dist/legacy/ui/button/Button.d.ts +0 -18
  84. package/dist/legacy/ui/button/index.d.ts +0 -1
  85. package/dist/legacy/ui/checkbox/CheckBox.d.ts +0 -17
  86. package/dist/legacy/ui/checkbox/icons.d.ts +0 -9
  87. package/dist/legacy/ui/checkbox/index.d.ts +0 -1
  88. package/dist/legacy/ui/context-menu/ContextMenu.d.ts +0 -36
  89. package/dist/legacy/ui/context-menu/index.d.ts +0 -2
  90. package/dist/legacy/ui/context-menu/types.d.ts +0 -26
  91. package/dist/legacy/ui/date-input/DateInput.d.ts +0 -25
  92. package/dist/legacy/ui/date-input/index.d.ts +0 -1
  93. package/dist/legacy/ui/empty-state/EmptyState.d.ts +0 -28
  94. package/dist/legacy/ui/empty-state/index.d.ts +0 -1
  95. package/dist/legacy/ui/input/Input.d.ts +0 -27
  96. package/dist/legacy/ui/input/index.d.ts +0 -1
  97. package/dist/legacy/ui/multi-select/MultiSelect.d.ts +0 -43
  98. package/dist/legacy/ui/multi-select/index.d.ts +0 -1
  99. package/dist/legacy/ui/number-input/NumberInput.d.ts +0 -22
  100. package/dist/legacy/ui/number-input/index.d.ts +0 -1
  101. package/dist/legacy/ui/popup/Popup.d.ts +0 -50
  102. package/dist/legacy/ui/popup/index.d.ts +0 -1
  103. package/dist/legacy/ui/select/Select.d.ts +0 -56
  104. package/dist/legacy/ui/select/index.d.ts +0 -1
  105. package/dist/legacy/ui/toggle/Toggle.d.ts +0 -21
  106. package/dist/legacy/ui/toggle/index.d.ts +0 -1
  107. package/dist/legacy/utils/cn.d.ts +0 -5
  108. package/dist/legacy/utils/file.d.ts +0 -17
  109. package/dist/legacy/utils/index.d.ts +0 -2
  110. package/dist/legacy/utils/misc.d.ts +0 -17
  111. /package/dist/{legacy/stories → stories}/_helpers/sampleData.d.ts +0 -0
@@ -1,330 +0,0 @@
1
- export interface MozLocaleMessages {
2
- Popup: {
3
- title: string;
4
- save: string;
5
- cancel: string;
6
- ok: string;
7
- close: string;
8
- };
9
- Select: {
10
- searchPlaceholder: string;
11
- emptyText: string;
12
- requiredMessage: string;
13
- };
14
- MultiSelect: {
15
- search: string;
16
- selectAll: string;
17
- selectFiltered: string;
18
- specificResults: string;
19
- specificSelect: string;
20
- noData: string;
21
- required: string;
22
- headerFormat: string;
23
- };
24
- TreeSelect: {
25
- search: string;
26
- selectAll: string;
27
- selectFiltered: string;
28
- specificResults: string;
29
- noData: string;
30
- showSelectedOnly: string;
31
- expandAll: string;
32
- collapseAll: string;
33
- required: string;
34
- headerFormat: string;
35
- };
36
- TagInput: {
37
- add: string;
38
- };
39
- TimePicker: {
40
- hour: string;
41
- minute: string;
42
- currentTime: string;
43
- };
44
- EmptyState: {
45
- customEmptyHeader: string;
46
- customEmptyContent: string;
47
- dataEmptyHeader: string;
48
- dataEmptyContent: string;
49
- resultEmptyHeader: string;
50
- resultEmptyContent: string;
51
- searchEmptyHeader: string;
52
- searchEmptyContent: string;
53
- };
54
- TableSelect: {
55
- searchPlaceholder: string;
56
- emptyText: string;
57
- requiredMessage: string;
58
- footerSelect: string;
59
- footerNavigate: string;
60
- footerClose: string;
61
- };
62
- Common: {
63
- requiredMessage: string;
64
- };
65
- Grid: {
66
- layoutSetting: string;
67
- filter: string;
68
- sort: string;
69
- customCellStyle: string;
70
- reset: string;
71
- searchFilter: string;
72
- newView: string;
73
- selectAll: string;
74
- columnPicker: string;
75
- viewToolbar: string;
76
- viewFooter: string;
77
- viewGroupPanel: string;
78
- resetFilterAndSort: string;
79
- defaultView: string;
80
- filterPopup: string;
81
- resetFilter: string;
82
- addFilter: string;
83
- sortingPopup: string;
84
- ascending: string;
85
- descending: string;
86
- resetSort: string;
87
- addSort: string;
88
- symbolEqual: string;
89
- symbolNotEqual: string;
90
- symbolContains: string;
91
- symbolNotContains: string;
92
- symbolLessThan: string;
93
- symbolGreaterThan: string;
94
- symbolLessOrEqual: string;
95
- symbolGreaterOrEqual: string;
96
- symbolEmpty: string;
97
- symbolNotEmpty: string;
98
- customCellRuleNamePlaceholder: string;
99
- addFormulaCondition: string;
100
- applicationColumn: string;
101
- backgroundColor: string;
102
- fontColor: string;
103
- resetCustomCell: string;
104
- addFormulaConditionSet: string;
105
- /** 조건부 서식 규칙이 하나도 없을 때 본문에 띄우는 안내. */
106
- customCellEmptyHint: string;
107
- customColor: string;
108
- formulaConditionSet: string;
109
- contextFilterAndSort: string;
110
- contextAddFilter: string;
111
- contextSelectFilter: string;
112
- contextResetColumnFilter: string;
113
- contextResetColumnSort: string;
114
- contextResetColumnAll: string;
115
- contextDataCopy: string;
116
- contextDataExcelCopy: string;
117
- contextDataWithHeaderCopy: string;
118
- contextPin: string;
119
- contextColumnPicker: string;
120
- contextMoveColumnFirst: string;
121
- contextAutoSizeColumns: string;
122
- contextGroupPanel: string;
123
- contextGroupToggle: string;
124
- contextGroupCollapseAll: string;
125
- contextGroupExpandAll: string;
126
- groupPanelPlaceholder: string;
127
- contextBulkEdit: string;
128
- contextImport: string;
129
- contextImportExcel: string;
130
- contextImportExcelAppend: string;
131
- contextExport: string;
132
- contextExportXlsx: string;
133
- contextExportCsv: string;
134
- contextSum: string;
135
- check: string;
136
- cancel: string;
137
- save: string;
138
- remove: string;
139
- close: string;
140
- pause: string;
141
- add: string;
142
- immediateApply: string;
143
- warning: string;
144
- mozWarning: string;
145
- confirmCancel: string;
146
- alreadyExcelProgress: string;
147
- downloadFail: string;
148
- addDataWithFilterSort: string;
149
- resetAndAdd: string;
150
- confirmDeleteGeneral: string;
151
- toastCopySuccess: string;
152
- toastSaveSuccess: string;
153
- toastSaveError: string;
154
- toastResetSuccess: string;
155
- toastRequiredVal: string;
156
- excelInvalidExcel: string;
157
- excelInvalidUpload: string;
158
- downloadFormat: string;
159
- click: string;
160
- drag: string;
161
- overwriteSelected: string;
162
- fileOverwrite: string;
163
- dropHere: string;
164
- dropHerePrefix: string;
165
- dropHereMiddle: string;
166
- dropHereSuffix: string;
167
- withFormatting: string;
168
- requestTimedOut: string;
169
- serverError: string;
170
- total: string;
171
- correct: string;
172
- error: string;
173
- success: string;
174
- fail: string;
175
- excelExportConfirmLargeData: string;
176
- footerTotalRowCount: string;
177
- footerFilteredRowCount: string;
178
- aggregateAverage: string;
179
- aggregateCount: string;
180
- aggregateMin: string;
181
- aggregateMax: string;
182
- aggregateSum: string;
183
- };
184
- GridPivot: {
185
- setting: string;
186
- gridSetting: string;
187
- fieldSetting: string;
188
- showRowTotals: string;
189
- showColumnTotals: string;
190
- subtotalCriteria: string;
191
- subtotalAggregateField: string;
192
- totalsBeforeData: string;
193
- showZeros: string;
194
- showOutlineMode: string;
195
- collapsibleSubtotal: string;
196
- fieldName: string;
197
- fieldAggregate: string;
198
- fieldShowAs: string;
199
- fieldFormat: string;
200
- openChart: string;
201
- selectValueField: string;
202
- none: string;
203
- sum: string;
204
- count: string;
205
- average: string;
206
- max: string;
207
- min: string;
208
- range: string;
209
- std: string;
210
- var: string;
211
- stdPop: string;
212
- varPop: string;
213
- cntAll: string;
214
- showFirstValue: string;
215
- showLastValue: string;
216
- noCalculation: string;
217
- diffRow: string;
218
- diffRowPct: string;
219
- diffCol: string;
220
- diffColPct: string;
221
- grandtotalPct: string;
222
- rowTotalPct: string;
223
- colTotalPct: string;
224
- prevRowPct: string;
225
- prevColPct: string;
226
- runTot: string;
227
- runTotPct: string;
228
- generalFormat: string;
229
- int: string;
230
- float: string;
231
- currency: string;
232
- percentage: string;
233
- percentageDot2: string;
234
- thousands: string;
235
- millions: string;
236
- billions: string;
237
- subtotal: string;
238
- grandtotal: string;
239
- grandtotalValue: string;
240
- category: string;
241
- chartType: string;
242
- chartXAxis: string;
243
- chartYAxis: string;
244
- categoryName: string;
245
- barChart: string;
246
- lineChart: string;
247
- lineSymbolChart: string;
248
- areaChart: string;
249
- chartRenderingErrorHeader: string;
250
- chartRenderingErrorContent: string;
251
- contextPivotExportXlsx: string;
252
- contextPivotExportOriginXlsx: string;
253
- contextPivotExportOriginCsv: string;
254
- row: string;
255
- column: string;
256
- value: string;
257
- filter: string;
258
- searchFieldPlaceholder: string;
259
- dropZoneRowPlaceholder: string;
260
- dropZoneColumnPlaceholder: string;
261
- dropZoneValuePlaceholder: string;
262
- dropZoneFilterPlaceholder: string;
263
- update: string;
264
- selectFieldForReport: string;
265
- dragFieldsBetweenAreas: string;
266
- valueSummaryCriteria: string;
267
- };
268
- Gantt: {
269
- searchPlaceholder: string;
270
- columnSize: string;
271
- rowSize: string;
272
- };
273
- Chart: {
274
- filterPopup: string;
275
- resetFilter: string;
276
- addFilter: string;
277
- symbolEqual: string;
278
- symbolNotEqual: string;
279
- symbolContains: string;
280
- symbolNotContains: string;
281
- symbolLessThan: string;
282
- symbolGreaterThan: string;
283
- symbolLessOrEqual: string;
284
- symbolGreaterOrEqual: string;
285
- symbolEmpty: string;
286
- symbolNotEmpty: string;
287
- chartSetting: string;
288
- chartCategory: string;
289
- chartType: string;
290
- chartUseZoom: string;
291
- multiYAxisSetting: string;
292
- notUsed: string;
293
- chartPopup: string;
294
- errorMessage: string;
295
- valueFieldSetting: string;
296
- valueSummaryCriteria: string;
297
- selectFieldForReport: string;
298
- column: string;
299
- row: string;
300
- value: string;
301
- sumValue: string;
302
- count: string;
303
- sum: string;
304
- average: string;
305
- min: string;
306
- max: string;
307
- seriesCategory: string;
308
- pieCategory: string;
309
- scatterCategory: string;
310
- treemapCategory: string;
311
- boxplotCategory: string;
312
- candlestickCategory: string;
313
- barChart: string;
314
- stackBarChart: string;
315
- horizontalStackBarChart: string;
316
- lineChart: string;
317
- lineSymbolChart: string;
318
- areaChart: string;
319
- general: string;
320
- custom: string;
321
- axisCategoryLabel: string;
322
- legendSeriesLabel: string;
323
- legendSingleLabel: string;
324
- legendMultiLabel: string;
325
- valueSingleLabel: string;
326
- xAxisSingleLabel: string;
327
- yAxisMultiLabel: string;
328
- notSet: string;
329
- };
330
- }
@@ -1,15 +0,0 @@
1
- import { MozLocaleMessages } from './types';
2
- /**
3
- * MozLocale React Context
4
- *
5
- * Vue 측 `provide(MOZ_LOCALE_KEY, ...)`의 React 대응.
6
- * Provider 없이도 koKR 기본값으로 동작합니다.
7
- */
8
- export declare const MozLocaleContext: import('react').Context<MozLocaleMessages>;
9
- /**
10
- * 다국어 메시지 훅
11
- *
12
- * Vue의 `useMozLocale()`이 `Ref<MozLocaleMessages>`를 반환하는 반면,
13
- * React 버전은 객체 자체를 반환합니다 (React 리렌더로 자동 갱신).
14
- */
15
- export declare function useMozLocale(): MozLocaleMessages;
@@ -1,2 +0,0 @@
1
- import { MozLocaleMessages } from './types';
2
- export declare const zhCN: MozLocaleMessages;
@@ -1,7 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { MozGridReact } from '..';
3
- declare const meta: Meta<typeof MozGridReact>;
4
- export default meta;
5
- type Story = StoryObj<typeof MozGridReact>;
6
- /** 기본 Flat 그리드 — 직원 데이터 100건 */
7
- export declare const Basic: Story;
@@ -1,44 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { MozPivotReact } from '..';
3
- declare const meta: Meta<typeof MozPivotReact>;
4
- export default meta;
5
- type Story = StoryObj<typeof MozPivotReact>;
6
- /**
7
- * 기본 Pivot — 지역×제품 × 연도×분기 매출/이익. 툴바 차트 아이콘 클릭으로 차트 열기.
8
- *
9
- * 행 필드가 2개 이상이면 차트의 default categoryField(첫 번째 row field)가 non-leaf라
10
- * `getSeriesData`가 해당 depth의 subtotal 행을 요구한다 → pivotSettings에 subtotal 활성화.
11
- */
12
- export declare const Basic: Story;
13
- /** 기본 차트: 지역×분기별 매출 — 툴바 차트 아이콘 클릭으로 토글 */
14
- export declare const ChartDefault: Story;
15
- /**
16
- * 차트가 처음부터 열려 있는 상태로 시작. `chartActive`/`onClickChart`로 외부 제어.
17
- *
18
- * Y축(행 필드) 2개 → 차트 툴바에 Y축 카테고리 선택 UI 노출.
19
- */
20
- export declare const RowFieldSelector: Story;
21
- /**
22
- * 다중 열 필드(연도 > 분기) — 차트 툴바에 X축 카테고리 선택 UI 노출.
23
- */
24
- export declare const ColumnFieldSelector: Story;
25
- /**
26
- * 다중 값 필드(매출/비용/수량) — 차트 툴바에서 시리즈 체크박스로 선택/해제.
27
- */
28
- export declare const MultipleValueFields: Story;
29
- /**
30
- * 전체 옵션: 다중 행/열/값 필드 + Grand Total 포함.
31
- */
32
- export declare const FullOptions: Story;
33
- /**
34
- * 차트 토글 제어: 외부 버튼으로 열기/닫기.
35
- */
36
- export declare const ChartToggleControl: Story;
37
- /**
38
- * 일별 날짜 컬럼(90일) — zoom bar / X축 라벨 회전 / hideOverlap / 적응형 초기 윈도우 데모.
39
- *
40
- * 컬럼 cardinality가 높아 xLabels > 10 → Detail 차트에 dataZoom 슬라이더가 표시됨.
41
- * `useMultipleChart={false}`로 처음부터 Detail(단일 차트) 모드로 시작.
42
- * 슬라이더 드래그 / shift+wheel 좌우 스크롤 동작 확인 가능.
43
- */
44
- export declare const ChartManyColumns: Story;
@@ -1,62 +0,0 @@
1
- import { PivotRowField, PivotColumnField, PivotValueField, PivotFilterField } from '@vmscloud/moz-ui-grid-core';
2
- /**
3
- * Vue 측 src/types/pivot-props.ts의 React 대응.
4
- */
5
- export interface PivotFieldItem {
6
- id: string;
7
- header: string;
8
- area: 'row' | 'column' | 'value' | 'filter' | null;
9
- aggregate?: string;
10
- }
11
- /** PivotFieldPanel 왼쪽 목록에 표시되는 사용 가능 필드 */
12
- export interface AvailableField {
13
- /** 필드 키 */
14
- field: string;
15
- /** 표시 헤더 */
16
- header: string;
17
- /** 데이터 타입 */
18
- dataType: 'string' | 'number' | 'date' | 'boolean';
19
- }
20
- /**
21
- * PivotFieldPanel의 `update:config` event payload.
22
- * 사용자가 패널에서 행/열/값/필터 필드를 재배치한 결과.
23
- */
24
- export interface PivotFieldPanelConfig {
25
- rowFields: PivotRowField[];
26
- columnFields: PivotColumnField[];
27
- valueFields: PivotValueField[];
28
- filterFields: PivotFilterField[];
29
- }
30
- /** PivotFieldPanel UI 옵션 (영역 표시 여부 / 검색 사용 여부) */
31
- export interface PivotFieldPanelOptions {
32
- /** 사용 가능한 영역 (기본: row, column, value) */
33
- areas?: Array<'row' | 'column' | 'value' | 'filter'>;
34
- /** 필드 검색 활성화 */
35
- useSearch?: boolean;
36
- }
37
- export interface PivotGridProps {
38
- pivotRowFields: PivotRowField[];
39
- pivotColumnFields: PivotColumnField[];
40
- pivotValueFields: PivotValueField[];
41
- fieldPanelOptions?: PivotFieldPanelOptions;
42
- availableFields?: AvailableField[];
43
- }
44
- export interface PivotGridSettings {
45
- /** 행 부분합 표시 */
46
- showRowSubTotals?: boolean;
47
- /** 행 총합 표시 */
48
- showRowGrandTotals?: boolean;
49
- /** 열 부분합 표시 */
50
- showColumnSubTotals?: boolean;
51
- /** 열 총합 표시 */
52
- showColumnGrandTotals?: boolean;
53
- /** 행 부분합 기준 필드 (undefined면 모든 필드) */
54
- rowSubTotalFields?: string[];
55
- /** 열 부분합 기준 필드 (undefined면 모든 필드) */
56
- columnSubTotalFields?: string[];
57
- /** 합계를 데이터 앞에 표시 */
58
- totalsBeforeData?: boolean;
59
- /** 0 값을 채워 표시 */
60
- showZeros?: boolean;
61
- }
62
- export type { PivotRowField, PivotColumnField, PivotValueField, PivotFilterField };
@@ -1,127 +0,0 @@
1
- import { FieldDef, PureSheetEventType, PivotRowField, PivotColumnField, PivotValueField, FormatRowCallback, PartialTranslationMap, RowGroupConfig, ColumnGroupDef, RowHeaderConfig, FieldRowTemplate, LoaderConfig, RowSelectionConfig, CellSelectionConfig, ScrollEndReachedPayload, ScrollPayload, UndoStack } from '@vmscloud/moz-ui-grid-core';
2
- import { IContextMenuConfig } from './toolbar';
3
- /**
4
- * MozGridReactCore Props
5
- *
6
- * Vue 버전(MozGridVueCoreProps)과 동일 시그니처. 이벤트는 별도 onXxx 콜백 prop으로 제공.
7
- */
8
- export interface MozGridReactCoreProps {
9
- fields: FieldDef[];
10
- data?: Record<string, unknown>[];
11
- mode?: 'flat' | 'pivot';
12
- pivotRowFields?: PivotRowField[];
13
- pivotColumnFields?: PivotColumnField[];
14
- pivotValueFields?: PivotValueField[];
15
- height?: string | number;
16
- keyFields?: string[];
17
- theme?: 'light' | 'dark' | 'auto';
18
- rowHeight?: number;
19
- headerHeight?: number;
20
- showHeader?: boolean;
21
- resizableColumns?: boolean;
22
- reorderableColumns?: boolean;
23
- /** @deprecated `rowHeader`를 사용하세요 (core가 warn 후 자동 매핑) */
24
- showRowHeader?: boolean | {
25
- width?: number;
26
- };
27
- /** 행 헤더 (구 showRowHeader) — 객체형으로 width/cellRenderer/headerRenderer 지정 */
28
- rowHeader?: boolean | RowHeaderConfig;
29
- rowSelection?: RowSelectionConfig;
30
- cellSelection?: CellSelectionConfig;
31
- cellSelectionImpliesRows?: boolean;
32
- rowModel?: 'client' | 'server';
33
- endReachedThresholdRows?: number;
34
- editable?: boolean;
35
- tooltipMode?: 'none' | 'overflow' | 'always';
36
- alternatingRows?: boolean;
37
- autoFitColumns?: boolean;
38
- dynamicRowHeights?: boolean;
39
- reorderableRows?: boolean;
40
- locale?: string;
41
- engine?: 'aq' | 'native';
42
- useWorker?: boolean;
43
- loader?: LoaderConfig;
44
- preventKeyEdit?: boolean;
45
- showStatusBar?: boolean;
46
- showDragHandleColumn?: boolean;
47
- undoStack?: InstanceType<typeof UndoStack>;
48
- formatRow?: FormatRowCallback;
49
- translations?: PartialTranslationMap;
50
- rowStyle?: string;
51
- headerStyle?: string;
52
- rowHeightChangeThreshold?: number;
53
- group?: RowGroupConfig;
54
- columnGroups?: ColumnGroupDef[];
55
- rowTemplate?: FieldRowTemplate;
56
- /** PureSheet 인스턴스가 준비됐을 때 */
57
- onReady?: (grid: unknown) => void;
58
- onDataLoaded?: () => void;
59
- onRowClick?: (payload: unknown) => void;
60
- onRowDblclick?: (payload: unknown) => void;
61
- onRowPinned?: (payload: unknown) => void;
62
- onRowUnpinned?: (payload: unknown) => void;
63
- onRowReordered?: (payload: unknown) => void;
64
- onCellClick?: (payload: unknown) => void;
65
- onCellDblclick?: (payload: unknown) => void;
66
- onCellChange?: (payload: unknown) => void;
67
- onCellBeforeEdit?: (payload: unknown) => void;
68
- onCellEditCommitting?: (payload: unknown) => void;
69
- onCellEditCommitted?: (payload: unknown) => void;
70
- onCellTooltip?: (payload: unknown) => void;
71
- onSelectionChanged?: (payload: unknown) => void;
72
- onColumnResize?: (payload: unknown) => void;
73
- onColumnReorder?: (payload: unknown) => void;
74
- onColumnPin?: (payload: unknown) => void;
75
- onColumnVisibility?: (payload: unknown) => void;
76
- onSortChanged?: (payload: unknown) => void;
77
- onFilterChanged?: (payload: unknown) => void;
78
- onScroll?: (payload: ScrollPayload) => void;
79
- onEndReached?: (payload: ScrollEndReachedPayload) => void;
80
- onUndoStateChange?: (payload: unknown) => void;
81
- onClipboardCopy?: (payload: unknown) => void;
82
- onClipboardPaste?: (payload: unknown) => void;
83
- onValidationChanged?: (payload: unknown) => void;
84
- onColumnGroupToggle?: (payload: unknown) => void;
85
- onGroupToggle?: (payload: unknown) => void;
86
- onGroupBatchToggle?: (payload: unknown) => void;
87
- onContextMenu?: (payload: unknown) => void;
88
- /** 자식: 템플릿 등록 컴포넌트들 */
89
- children?: React.ReactNode;
90
- }
91
- /**
92
- * MozGridReact Props (toolbar/footer 등 UI 포함).
93
- */
94
- export interface MozGridReactProps extends MozGridReactCoreProps {
95
- name?: string;
96
- useToolBox?: boolean;
97
- useToolBoxSetting?: boolean;
98
- useExtendFooter?: boolean;
99
- useSummaryFooter?: boolean;
100
- useSort?: boolean;
101
- useCustomCell?: boolean;
102
- contextMenuConfig?: IContextMenuConfig;
103
- useContextMenu?: boolean;
104
- loading?: boolean;
105
- emptyState?: {
106
- isCustomState?: boolean;
107
- headerMsg?: string;
108
- contentMsg?: string;
109
- useImg?: boolean;
110
- selectImg?: 'Custom' | 'Result' | 'Data' | 'Search';
111
- };
112
- }
113
- /** Props → PureSheetConfig 변환에 사용하는 키 목록 (Vue와 동일) */
114
- export declare const CONFIG_PROP_KEYS: readonly ["keyFields", "theme", "rowHeight", "headerHeight", "showHeader", "resizableColumns", "reorderableColumns", "showRowHeader", "rowHeader", "rowSelection", "cellSelection", "cellSelectionImpliesRows", "rowModel", "endReachedThresholdRows", "editable", "tooltipMode", "alternatingRows", "autoFitColumns", "dynamicRowHeights", "reorderableRows", "locale", "engine", "useWorker", "loader", "preventKeyEdit", "showStatusBar", "showDragHandleColumn", "undoStack", "formatRow", "translations", "rowStyle", "headerStyle", "rowHeightChangeThreshold"];
115
- export declare const FLAT_ONLY_PROP_KEYS: readonly ["columnGroups", "rowTemplate"];
116
- /**
117
- * flat 전용 prop 중 **core 설정 키 이름이 다른 것** — `prop 이름 → core 설정 키`.
118
- *
119
- * legacy `group` prop 은 소비처 표면이라 이름을 유지하되, core 설정 키는
120
- * `rowGroupConfig`(`treeConfig`/`masterDetailConfig` 와 같은 규약)로 옮겨졌다.
121
- */
122
- export declare const FLAT_ONLY_PROP_KEY_MAP: {
123
- readonly group: "rowGroupConfig";
124
- };
125
- export declare const BRIDGED_EVENTS: PureSheetEventType[];
126
- /** PureSheet 이벤트 → onXxx prop 이름 매핑 */
127
- export declare const EVENT_TO_PROP: Record<PureSheetEventType, keyof MozGridReactCoreProps>;