@ishibashi0112/spreadsheet-grid 1.11.0 → 1.13.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/API_REFERENCE.md +167 -16
- package/README.md +2 -2
- package/dist/GridShell.d.ts +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/features/diffView.d.ts +2 -0
- package/dist/features/findReplace.d.ts +2 -0
- package/dist/features/rangeDecorations.d.ts +2 -0
- package/dist/features/richCopy.d.ts +2 -0
- package/dist/features/types.d.ts +25 -0
- package/dist/hooks/useGridStore.d.ts +1 -1
- package/dist/index.cjs +13 -11
- package/dist/index.js +4553 -3979
- package/dist/lite/createSpreadsheetGrid-DNoVKiwo.cjs +13 -0
- package/dist/lite/createSpreadsheetGrid-cOTbng_2.js +5436 -0
- package/dist/lite/createSpreadsheetGrid.cjs +1 -1
- package/dist/lite/createSpreadsheetGrid.js +1 -1
- package/dist/lite/diffView-Dpyl8usm.cjs +1 -0
- package/dist/lite/diffView-mFClK416.js +68 -0
- package/dist/lite/features/diffView.cjs +1 -0
- package/dist/lite/features/diffView.js +2 -0
- package/dist/lite/features/find.cjs +1 -1
- package/dist/lite/features/find.js +1 -1
- package/dist/lite/features/findReplace.cjs +1 -0
- package/dist/lite/features/findReplace.js +2 -0
- package/dist/lite/features/rangeDecorations.cjs +1 -0
- package/dist/lite/features/rangeDecorations.js +2 -0
- package/dist/lite/features/richCopy.cjs +1 -0
- package/dist/lite/features/richCopy.js +9 -0
- package/dist/lite/features/rowDrag.cjs +1 -1
- package/dist/lite/features/rowDrag.js +1 -1
- package/dist/lite/find-B3brbyYF.js +112 -0
- package/dist/lite/find-CyoYo6uk.cjs +1 -0
- package/dist/lite/findReplace-Bl26__8E.js +128 -0
- package/dist/lite/findReplace-DqAy-_o3.cjs +1 -0
- package/dist/lite/rangeDecorations-wiKlfXLc.js +40 -0
- package/dist/lite/rangeDecorations-wnAx2LgH.cjs +1 -0
- package/dist/lite/rowDrag-Cn5fud6W.cjs +1 -0
- package/dist/lite/{rowDrag-DVqgwSaj.js → rowDrag-e6TC1gsM.js} +19 -18
- package/dist/lite.cjs +1 -1
- package/dist/lite.d.ts +4 -0
- package/dist/lite.js +33 -29
- package/dist/style.css +1 -1
- package/dist/style.layer.css +1 -1
- package/dist/themes/astryx.css +4 -0
- package/dist/themes/heroui.css +4 -0
- package/dist/themes/mantine.css +4 -0
- package/dist/themes/shadcn.css +4 -0
- package/dist/view/DefaultGridBottomBar.d.ts +3 -1
- package/dist/view/GridBodyLayer.d.ts +8 -1
- package/dist/view/GridDiffBar.d.ts +13 -0
- package/dist/view/GridFindBar.d.ts +7 -1
- package/dist/view/GridFindReplace.d.ts +25 -0
- package/dist/view/GridRangeDecorations.d.ts +9 -0
- package/package.json +2 -2
- package/skills/spreadsheet-grid/SKILL.md +6 -2
- package/dist/lite/createSpreadsheetGrid-D7fxsRZG.cjs +0 -11
- package/dist/lite/createSpreadsheetGrid-DRJX-y38.js +0 -5075
- package/dist/lite/find-CBDk2qXA.cjs +0 -1
- package/dist/lite/find-DtRIqxec.js +0 -105
- package/dist/lite/rowDrag--lPuW0-D.cjs +0 -1
package/dist/features/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RichCopyParts } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/clipboardHtml';
|
|
1
2
|
import type { CSSProperties, MouseEvent as ReactMouseEvent, ReactNode, RefObject } from 'react';
|
|
2
3
|
import type { GridCoreFeatures } from '@ishibashi0112/spreadsheet-grid-core/internal/engine/features';
|
|
3
4
|
import type { splitTextByFindRanges } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/find';
|
|
@@ -12,12 +13,15 @@ import type { DateRolloverStore } from '@ishibashi0112/spreadsheet-grid-core/int
|
|
|
12
13
|
import type { RowOrder } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/filtering';
|
|
13
14
|
import type { buildRevertMenuItems, describeUnsavedCell, formatUnsavedSummary } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/changeTracking';
|
|
14
15
|
import type { ResolvedGridLocaleText } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText';
|
|
16
|
+
import type { createRangeDecorationResolver } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/rangeDecorations';
|
|
17
|
+
import type { describeChangeNavTarget, describeDiffCell, formatDiffOriginalText, formatDiffSummaryParts, nextChangeNavAnnouncement } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/diffView';
|
|
15
18
|
import type { resolveNewRowPlaceholder } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/newRow';
|
|
16
19
|
import type { GridUiAction } from '@ishibashi0112/spreadsheet-grid-core/internal/model/gridActions';
|
|
17
20
|
import type { ColumnPane, GridPaneLayout } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/geometry';
|
|
18
21
|
import type { DetailRowExtra, RowMetrics } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/verticalGeometry';
|
|
19
22
|
import type { CellCoord, ColumnFilterValue, GridColumn, GridContextMenuItem, GridContextMenuParams, GridContextMenuTarget, GridResolvedSlots, GridSelection, GridSelectionAggregates, GridLocaleText, GridUiState, GlobalFilterStatus, GridGlobalFilterMatch, GridRowKey, RowModel, SpreadsheetGridProps } from '../model/gridTypes.js';
|
|
20
23
|
import type { GridFindBar } from '../view/GridFindBar.js';
|
|
24
|
+
import type { GridFindReplaceSection, GridFindReplaceToggle, GridFindScopeOverlay } from '../view/GridFindReplace.js';
|
|
21
25
|
import type { GridScrollHint } from '../view/GridScrollHint.js';
|
|
22
26
|
import type { GridTotalRow } from '../view/GridTotalRow.js';
|
|
23
27
|
import type { GridPinnedRows } from '../view/GridPinnedRows.js';
|
|
@@ -26,6 +30,8 @@ import type { SearchSelectCellEditor } from '../editors/SearchSelectCellEditor.j
|
|
|
26
30
|
import type { DateTimeCellEditor } from '../editors/DateTimeCellEditor.js';
|
|
27
31
|
import type { MultiSelectCellEditor } from '../editors/MultiSelectCellEditor.js';
|
|
28
32
|
import type { GridMultiSelectChips } from '../view/GridMultiSelectChips.js';
|
|
33
|
+
import type { GridRangeDecorationFrames } from '../view/GridRangeDecorations.js';
|
|
34
|
+
import type { GridDiffBarChip } from '../view/GridDiffBar.js';
|
|
29
35
|
import type { resolveMultiSelectChipLabels, splitRangesByChips } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/multiSelect';
|
|
30
36
|
import type { GridTreeAggregateValue, GridTreeCellPrefix } from '../view/GridTreeCell.js';
|
|
31
37
|
import type { GridBodyLabelRow } from '../view/GridBodyLabelRow.js';
|
|
@@ -174,6 +180,7 @@ export type RowDragFeatureArgs<T> = Omit<UseRowDragControllerArgs, 'getRowDragLa
|
|
|
174
180
|
resolveRowKey: (row: T, index: number) => GridRowKey;
|
|
175
181
|
hasRowKeys: boolean;
|
|
176
182
|
localeTexts: ResolvedGridLocaleText;
|
|
183
|
+
blockedByRemovedRows?: boolean | undefined;
|
|
177
184
|
};
|
|
178
185
|
export type RowDragFeatureResult<T> = {
|
|
179
186
|
renderHandleCell: (row: T, rowIndex: number) => ReactNode;
|
|
@@ -229,6 +236,12 @@ export type ReactGridFeatures = {
|
|
|
229
236
|
FindBar: typeof GridFindBar;
|
|
230
237
|
splitTextByFindRanges: typeof splitTextByFindRanges;
|
|
231
238
|
} | undefined;
|
|
239
|
+
findReplace?: NonNullable<GridCoreFeatures['findReplace']> & FeatureLocaleDefaults & {
|
|
240
|
+
FindReplaceToggle: typeof GridFindReplaceToggle;
|
|
241
|
+
FindReplaceSection: typeof GridFindReplaceSection;
|
|
242
|
+
FindScopeOverlay: typeof GridFindScopeOverlay;
|
|
243
|
+
} | undefined;
|
|
244
|
+
richCopy?: RichCopyParts | undefined;
|
|
232
245
|
fillHandle?: (FeatureLocaleDefaults & {
|
|
233
246
|
useFillHandle: <T>(args: FillHandleFeatureArgs<T>) => FillHandleFeatureResult;
|
|
234
247
|
}) | undefined;
|
|
@@ -297,6 +310,18 @@ export type ReactGridFeatures = {
|
|
|
297
310
|
formatUnsavedSummary: typeof formatUnsavedSummary;
|
|
298
311
|
buildRevertMenuItems: typeof buildRevertMenuItems;
|
|
299
312
|
} | undefined;
|
|
313
|
+
diffView?: NonNullable<GridCoreFeatures['diffView']> & FeatureLocaleDefaults & {
|
|
314
|
+
describeDiffCell: typeof describeDiffCell;
|
|
315
|
+
formatDiffOriginalText: typeof formatDiffOriginalText;
|
|
316
|
+
formatDiffSummaryParts: typeof formatDiffSummaryParts;
|
|
317
|
+
describeChangeNavTarget: typeof describeChangeNavTarget;
|
|
318
|
+
nextChangeNavAnnouncement: typeof nextChangeNavAnnouncement;
|
|
319
|
+
DiffBarChip: typeof GridDiffBarChip;
|
|
320
|
+
} | undefined;
|
|
321
|
+
rangeDecorations?: {
|
|
322
|
+
createRangeDecorationResolver: typeof createRangeDecorationResolver;
|
|
323
|
+
RangeDecorationFrames: typeof GridRangeDecorationFrames;
|
|
324
|
+
} | undefined;
|
|
300
325
|
excelShortcuts?: NonNullable<GridCoreFeatures['excelShortcuts']> | undefined;
|
|
301
326
|
newRow?: NonNullable<GridCoreFeatures['newRow']> & FeatureLocaleDefaults & {
|
|
302
327
|
resolveNewRowPlaceholder: typeof resolveNewRowPlaceholder;
|
|
@@ -2,6 +2,6 @@ import { type GridStore, type GridViewState, type Updater } from '@ishibashi0112
|
|
|
2
2
|
import type { GridUiState } from '../model/gridTypes.js';
|
|
3
3
|
export declare function useGridStore(store: GridStore): [GridUiState, GridStore['dispatch']];
|
|
4
4
|
export type GridViewStateSetters = {
|
|
5
|
-
[K in Exclude<keyof GridViewState, 'maxBodyPx' | 'newRowDraft'> as `set${Capitalize<K>}`]-?: (next: Updater<Exclude<GridViewState[K], undefined>>) => void;
|
|
5
|
+
[K in Exclude<keyof GridViewState, 'maxBodyPx' | 'newRowDraft' | 'changeNavRowKey' | 'changeNavActiveCell' | 'changeNavAnnouncement'> as `set${Capitalize<K>}`]-?: (next: Updater<Exclude<GridViewState[K], undefined>>) => void;
|
|
6
6
|
};
|
|
7
7
|
export declare function useGridViewState(store: GridStore): [GridViewState, GridViewStateSetters];
|