@rowsncolumns/spreadsheet 10.18.0 → 10.19.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.
- package/dist/cjs/api/fill-series.d.ts +18 -0
- package/dist/cjs/api/fill-series.d.ts.map +1 -1
- package/dist/cjs/api/fill-series.js +95 -1
- package/dist/cjs/atoms/cell-input-context.atom.d.ts.map +1 -1
- package/dist/cjs/atoms/fill-series-dialog.atom.d.ts +6 -0
- package/dist/cjs/atoms/fill-series-dialog.atom.d.ts.map +1 -1
- package/dist/cjs/atoms/frozen-area-sent.atom.d.ts +42 -0
- package/dist/cjs/atoms/frozen-area-sent.atom.d.ts.map +1 -0
- package/dist/cjs/atoms/frozen-area-sent.atom.js +29 -0
- package/dist/cjs/atoms/index.d.ts +2 -0
- package/dist/cjs/atoms/index.d.ts.map +1 -1
- package/dist/cjs/atoms/index.js +2 -0
- package/dist/cjs/atoms/undo-redo-sent.atom.d.ts +25 -0
- package/dist/cjs/atoms/undo-redo-sent.atom.d.ts.map +1 -0
- package/dist/cjs/atoms/undo-redo-sent.atom.js +23 -0
- package/dist/cjs/components/canvas-grid/frozen-start.d.ts +25 -10
- package/dist/cjs/components/canvas-grid/frozen-start.d.ts.map +1 -1
- package/dist/cjs/components/canvas-grid/frozen-start.js +25 -18
- package/dist/cjs/components/canvas-grid/index.d.ts.map +1 -1
- package/dist/cjs/components/canvas-grid/index.js +131 -24
- package/dist/cjs/components/canvas-grid/typings.d.ts +15 -0
- package/dist/cjs/components/canvas-grid/typings.d.ts.map +1 -1
- package/dist/cjs/components/fill-series-dialog/index.d.ts +10 -1
- package/dist/cjs/components/fill-series-dialog/index.d.ts.map +1 -1
- package/dist/cjs/components/fill-series-dialog/index.js +14 -4
- package/dist/cjs/hooks/use-selection-interceptors.d.ts.map +1 -1
- package/dist/cjs/hooks/use-selection-interceptors.js +9 -0
- package/dist/cjs/hooks/use-selection.d.ts +8 -1
- package/dist/cjs/hooks/use-selection.d.ts.map +1 -1
- package/dist/cjs/hooks/use-selection.js +39 -9
- package/dist/cjs/release-date.js +1 -1
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/api/fill-series.d.ts +18 -0
- package/dist/esm/api/fill-series.d.ts.map +1 -1
- package/dist/esm/api/fill-series.js +89 -0
- package/dist/esm/atoms/cell-input-context.atom.d.ts.map +1 -1
- package/dist/esm/atoms/fill-series-dialog.atom.d.ts +6 -0
- package/dist/esm/atoms/fill-series-dialog.atom.d.ts.map +1 -1
- package/dist/esm/atoms/frozen-area-sent.atom.d.ts +42 -0
- package/dist/esm/atoms/frozen-area-sent.atom.d.ts.map +1 -0
- package/dist/esm/atoms/frozen-area-sent.atom.js +21 -0
- package/dist/esm/atoms/index.d.ts +2 -0
- package/dist/esm/atoms/index.d.ts.map +1 -1
- package/dist/esm/atoms/index.js +2 -0
- package/dist/esm/atoms/undo-redo-sent.atom.d.ts +25 -0
- package/dist/esm/atoms/undo-redo-sent.atom.d.ts.map +1 -0
- package/dist/esm/atoms/undo-redo-sent.atom.js +18 -0
- package/dist/esm/components/canvas-grid/frozen-start.d.ts +25 -10
- package/dist/esm/components/canvas-grid/frozen-start.d.ts.map +1 -1
- package/dist/esm/components/canvas-grid/frozen-start.js +25 -18
- package/dist/esm/components/canvas-grid/index.d.ts.map +1 -1
- package/dist/esm/components/canvas-grid/index.js +129 -22
- package/dist/esm/components/canvas-grid/typings.d.ts +15 -0
- package/dist/esm/components/canvas-grid/typings.d.ts.map +1 -1
- package/dist/esm/components/fill-series-dialog/index.d.ts +10 -1
- package/dist/esm/components/fill-series-dialog/index.d.ts.map +1 -1
- package/dist/esm/components/fill-series-dialog/index.js +14 -4
- package/dist/esm/hooks/use-selection-interceptors.d.ts.map +1 -1
- package/dist/esm/hooks/use-selection-interceptors.js +10 -1
- package/dist/esm/hooks/use-selection.d.ts +8 -1
- package/dist/esm/hooks/use-selection.d.ts.map +1 -1
- package/dist/esm/hooks/use-selection.js +35 -5
- package/dist/esm/release-date.js +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-selection-interceptors.d.ts","sourceRoot":"","sources":["../../../hooks/use-selection-interceptors.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"use-selection-interceptors.d.ts","sourceRoot":"","sources":["../../../hooks/use-selection-interceptors.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAGlB,KAAK,UAAU,EACf,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,KAAK,6BAA6B,GAAG;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACpC,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACvC;;OAEG;IACH,YAAY,CAAC,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC;IAC5C,WAAW,IAAI,aAAa,CAAC;IAC7B,YAAY,EAAE,mBAAmB,CAAC,cAAc,CAAC,CAAC;IAClD,kBAAkB,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;CAC/D,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,iQAkBtC,6BAA6B;gCAGvB,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC,YAAY,UAC1C,aAAa,kBACL,KAAK,CAAC,gBAAgB,CAAC,aAAa,GAAG,IAAI,CAAC,gBAC9C,KAAK,CAAC,gBAAgB,CAAC,aAAa,GAAG,IAAI,CAAC,mBACzC,CACf,MAAM,EAAE,aAAa,EACrB,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,KAChC,IAAI;gCAkCN,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,UAAU,CAAC,YAAY,UACrD,aAAa,kBACL,KAAK,CAAC,gBAAgB,CAAC,aAAa,GAAG,IAAI,CAAC,gBAC9C,KAAK,CAAC,gBAAgB,CAAC,aAAa,GAAG,IAAI,CAAC,mBACzC,CACf,MAAM,EAAE,aAAa,EACrB,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,KAChC,IAAI,mBACQ,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,CAAC,EAAE,aAAa,KAAK,IAAI,mBACnD,MAAM,IAAI,aAChB,MAAM,IAAI;CA2I1B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { clampIndex, Direction, } from "@rowsncolumns/grid";
|
|
1
|
+
import { Align, clampIndex, Direction, } from "@rowsncolumns/grid";
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
3
|
export const useSelectionInterceptors = ({ sheetId, rowCount, columnCount, frozenRows, frozenColumns, frozenRowStart = 1, frozenColumnStart = 1, selectionLeftBound, selectionTopBound, isHiddenColumn, isHiddenRow, isRowHeader, isColumnHeader, isMergedCell, getViewPort, scrollToCell, onChangeActiveCell, }) => {
|
|
4
4
|
const onMouseMoveInterceptor = useCallback((e, coords, selectionStart, selectionEnd, modifySelection) => {
|
|
@@ -89,6 +89,14 @@ export const useSelectionInterceptors = ({ sheetId, rowCount, columnCount, froze
|
|
|
89
89
|
}
|
|
90
90
|
// Prevent bug where cell can be out of view
|
|
91
91
|
scrollToCell(activeCell);
|
|
92
|
+
// Excel, on a sheet frozen from a start below row 1: picking a column also brings the
|
|
93
|
+
// scrolling area back to its top.
|
|
94
|
+
if (rowHeader &&
|
|
95
|
+
!isShiftKey &&
|
|
96
|
+
frozenRowStart > 1 &&
|
|
97
|
+
actualFrozenRows >= selectionTopBound) {
|
|
98
|
+
scrollToCell({ rowIndex: frozenRows }, Align.start);
|
|
99
|
+
}
|
|
92
100
|
if (isShiftKey) {
|
|
93
101
|
modifySelection(end);
|
|
94
102
|
}
|
|
@@ -123,6 +131,7 @@ export const useSelectionInterceptors = ({ sheetId, rowCount, columnCount, froze
|
|
|
123
131
|
isMergedCell,
|
|
124
132
|
onChangeActiveCell,
|
|
125
133
|
getViewPort,
|
|
134
|
+
scrollToCell,
|
|
126
135
|
]);
|
|
127
136
|
return useMemo(() => ({
|
|
128
137
|
onMouseMoveInterceptor,
|
|
@@ -136,6 +136,13 @@ export type UseSelectionOptions<T extends AreaStyle = AreaStyle> = {
|
|
|
136
136
|
* Right bound
|
|
137
137
|
*/
|
|
138
138
|
selectionRightBound?: number;
|
|
139
|
+
/**
|
|
140
|
+
* The first row / column of the scrolling area on a sheet with frozen panes (the line right
|
|
141
|
+
* after the frozen area). Ctrl+Home goes to that cell, and Page Up / Page Down with the active
|
|
142
|
+
* cell in the frozen rows page the scrolling area. Absent = nothing frozen on that axis.
|
|
143
|
+
*/
|
|
144
|
+
scrollingTopBound?: number;
|
|
145
|
+
scrollingLeftBound?: number;
|
|
139
146
|
/**
|
|
140
147
|
* merged cells
|
|
141
148
|
*/
|
|
@@ -290,7 +297,7 @@ export type UseSelectionOptions<T extends AreaStyle = AreaStyle> = {
|
|
|
290
297
|
rightToLeft?: boolean;
|
|
291
298
|
};
|
|
292
299
|
export type NewSelectionMode = "clear" | "modify" | "append";
|
|
293
|
-
export declare const useSelection: <T extends AreaStyle>({ sheetId, activeCell, onChangeActiveCell: onChangeActiveCellProp, selections, onChangeSelections: onChangeSelectionsProp, columnCount, rowCount, selectionPolicy, newSelectionMode, allowDeselectSelection, onFill, onFillHandleRelease, onFillShrink, onInsertCutCells, onCopySelection, onInsertCopiedCells, onSelectionDragMenu, confirmMoveOverwrite, isHiddenRow, isHiddenColumn, alwaysScrollToActiveCell, selectionTopBound, selectionBottomBound, selectionLeftBound, selectionRightBound, mouseDownInterceptor, mouseMoveInterceptor, mergedCells, merges, canSelectionSpanMergedCells, getValue, onMoveSelection, getCellCoordsFromOffset, getCellBounds, getViewPort, focus, scrollToCell, isMergedCell, enableSelectOnEnterKey, enterKeyDirection, formulaMode, isTouchDevice, getDataRowCount, getDataColumnCount, getDataRegion, isRowHeader, isColumnHeader, enableDataBoundaryNavigation, tables, onInsertTableRow, isRangeSelectable: isRangeSelectableProp, rightToLeft, }: UseSelectionOptions<T>) => {
|
|
300
|
+
export declare const useSelection: <T extends AreaStyle>({ sheetId, activeCell, onChangeActiveCell: onChangeActiveCellProp, selections, onChangeSelections: onChangeSelectionsProp, columnCount, rowCount, selectionPolicy, newSelectionMode, allowDeselectSelection, onFill, onFillHandleRelease, onFillShrink, onInsertCutCells, onCopySelection, onInsertCopiedCells, onSelectionDragMenu, confirmMoveOverwrite, isHiddenRow, isHiddenColumn, alwaysScrollToActiveCell, selectionTopBound, selectionBottomBound, selectionLeftBound, selectionRightBound, scrollingTopBound, scrollingLeftBound, mouseDownInterceptor, mouseMoveInterceptor, mergedCells, merges, canSelectionSpanMergedCells, getValue, onMoveSelection, getCellCoordsFromOffset, getCellBounds, getViewPort, focus, scrollToCell, isMergedCell, enableSelectOnEnterKey, enterKeyDirection, formulaMode, isTouchDevice, getDataRowCount, getDataColumnCount, getDataRegion, isRowHeader, isColumnHeader, enableDataBoundaryNavigation, tables, onInsertTableRow, isRangeSelectable: isRangeSelectableProp, rightToLeft, }: UseSelectionOptions<T>) => {
|
|
294
301
|
isDragging: boolean;
|
|
295
302
|
/** True while a selection-border drag would copy on release (Ctrl / ⌥ held). */
|
|
296
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O,CAAC;IAClD;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAKF,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAsG7D,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,SAAS,EAAE,s+BAuD/C,mBAAmB,CAAC,CAAC,CAAC;;IA8oFrB,gFAAgF;;;;;;8BA5X3E,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,cACvB,aAAa,GAAG,SAAS,aAC1B,aAAa,GAAG,SAAS,SAC7B,MAAM,GAAG,SAAS;4BAkNnB,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC;qBApnCtC,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,UAAU,CAAC,YAAY;mBAgM1D,KAAK,CAAC,aAAa,GAAG,UAAU,CAAC,aAAa;0BAlsC1C,aAAa,QAAO,aAAa;+BA8mDrC,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC;iCAmiBhC,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC;;;;8BAlwE3B,aAAa,kBAAkB,OAAO;;6BAmEvC,aAAa,QAAO,aAAa;;;6BAsL5B,MAAM,UACP,aAAa,kCAEb,KAAK;;6CAo3DT,aAAa,GAAG,SAAS,cACnB,aAAa,EAAE,GAAG,SAAS;mCA/pEjC,aAAa,OAAO,aAAa;;;;;;gCAoyB3B,MAAM,GAAG,SAAS;gDAk8CpB,MAAM,aAAa,aAAa,KAAG,SAAS;CAkP3D,CAAC"}
|
|
@@ -97,7 +97,7 @@ const fillShrinkFor = (selection, coords) => {
|
|
|
97
97
|
const defaultConfirmMoveOverwrite = (message) => typeof window === "undefined" || typeof window.confirm !== "function"
|
|
98
98
|
? true
|
|
99
99
|
: window.confirm(message);
|
|
100
|
-
export const useSelection = ({ sheetId, activeCell, onChangeActiveCell: onChangeActiveCellProp, selections, onChangeSelections: onChangeSelectionsProp, columnCount = 0, rowCount = 0, selectionPolicy = "multiple", newSelectionMode = "clear", allowDeselectSelection = true, onFill, onFillHandleRelease, onFillShrink, onInsertCutCells, onCopySelection, onInsertCopiedCells, onSelectionDragMenu, confirmMoveOverwrite = defaultConfirmMoveOverwrite, isHiddenRow = defaultIsHidden, isHiddenColumn = defaultIsHidden, alwaysScrollToActiveCell = true, selectionTopBound = 0, selectionBottomBound = rowCount, selectionLeftBound = 0, selectionRightBound = columnCount, mouseDownInterceptor, mouseMoveInterceptor, mergedCells = DEFAULT_ARRAY, merges, canSelectionSpanMergedCells = defaultSelectionSpan, getValue, onMoveSelection, getCellCoordsFromOffset, getCellBounds, getViewPort, focus, scrollToCell, isMergedCell, enableSelectOnEnterKey, enterKeyDirection = "down", formulaMode, isTouchDevice, getDataRowCount, getDataColumnCount, getDataRegion, isRowHeader, isColumnHeader, enableDataBoundaryNavigation = false, tables, onInsertTableRow, isRangeSelectable: isRangeSelectableProp, rightToLeft = false, }) => {
|
|
100
|
+
export const useSelection = ({ sheetId, activeCell, onChangeActiveCell: onChangeActiveCellProp, selections, onChangeSelections: onChangeSelectionsProp, columnCount = 0, rowCount = 0, selectionPolicy = "multiple", newSelectionMode = "clear", allowDeselectSelection = true, onFill, onFillHandleRelease, onFillShrink, onInsertCutCells, onCopySelection, onInsertCopiedCells, onSelectionDragMenu, confirmMoveOverwrite = defaultConfirmMoveOverwrite, isHiddenRow = defaultIsHidden, isHiddenColumn = defaultIsHidden, alwaysScrollToActiveCell = true, selectionTopBound = 0, selectionBottomBound = rowCount, selectionLeftBound = 0, selectionRightBound = columnCount, scrollingTopBound = selectionTopBound, scrollingLeftBound = selectionLeftBound, mouseDownInterceptor, mouseMoveInterceptor, mergedCells = DEFAULT_ARRAY, merges, canSelectionSpanMergedCells = defaultSelectionSpan, getValue, onMoveSelection, getCellCoordsFromOffset, getCellBounds, getViewPort, focus, scrollToCell, isMergedCell, enableSelectOnEnterKey, enterKeyDirection = "down", formulaMode, isTouchDevice, getDataRowCount, getDataColumnCount, getDataRegion, isRowHeader, isColumnHeader, enableDataBoundaryNavigation = false, tables, onInsertTableRow, isRangeSelectable: isRangeSelectableProp, rightToLeft = false, }) => {
|
|
101
101
|
/**
|
|
102
102
|
* Selectability gate (Excel's Select locked / unlocked cells). Every
|
|
103
103
|
* gesture checks it before it moves anything, and the two emitters below
|
|
@@ -1008,13 +1008,26 @@ export const useSelection = ({ sheetId, activeCell, onChangeActiveCell: onChange
|
|
|
1008
1008
|
const selectFirstCellInSheet = useCallback(() => {
|
|
1009
1009
|
if (!selectionStart.current)
|
|
1010
1010
|
return;
|
|
1011
|
+
// Excel on a frozen sheet: the first cell of the scrolling area (A4 with rows 1–3 frozen),
|
|
1012
|
+
// and the scrolling area back at its top-left.
|
|
1011
1013
|
const cell = {
|
|
1012
|
-
rowIndex: selectionTopBound,
|
|
1013
|
-
columnIndex: selectionLeftBound,
|
|
1014
|
+
rowIndex: Math.max(selectionTopBound, scrollingTopBound),
|
|
1015
|
+
columnIndex: Math.max(selectionLeftBound, scrollingLeftBound),
|
|
1014
1016
|
};
|
|
1017
|
+
const frozen = cell.rowIndex > selectionTopBound || cell.columnIndex > selectionLeftBound;
|
|
1015
1018
|
newSelection(cell);
|
|
1016
|
-
|
|
1017
|
-
|
|
1019
|
+
if (frozen)
|
|
1020
|
+
scrollToCell(cell, Align.start);
|
|
1021
|
+
else
|
|
1022
|
+
scrollToCell(cell);
|
|
1023
|
+
}, [
|
|
1024
|
+
scrollToCell,
|
|
1025
|
+
newSelection,
|
|
1026
|
+
selectionTopBound,
|
|
1027
|
+
selectionLeftBound,
|
|
1028
|
+
scrollingTopBound,
|
|
1029
|
+
scrollingLeftBound,
|
|
1030
|
+
]);
|
|
1018
1031
|
// fn+⌘+End
|
|
1019
1032
|
const selectLastCellInSheet = useCallback(() => {
|
|
1020
1033
|
if (!selectionStart.current)
|
|
@@ -1048,6 +1061,14 @@ export const useSelection = ({ sheetId, activeCell, onChangeActiveCell: onChange
|
|
|
1048
1061
|
return;
|
|
1049
1062
|
const { visibleRowStartIndex, visibleRowStopIndex } = getViewPort();
|
|
1050
1063
|
const pageSize = visibleRowStopIndex - visibleRowStartIndex;
|
|
1064
|
+
// Excel with the active cell in the frozen rows: the scrolling area moves one page and its
|
|
1065
|
+
// new top row becomes active.
|
|
1066
|
+
if (activeCell.rowIndex < scrollingTopBound) {
|
|
1067
|
+
const rowIndex = Math.min(visibleRowStartIndex + pageSize, rowCount);
|
|
1068
|
+
handleSetActiveCell(sheetId, { rowIndex, columnIndex: activeCell.columnIndex }, false);
|
|
1069
|
+
scrollToCell({ rowIndex }, Align.start);
|
|
1070
|
+
return;
|
|
1071
|
+
}
|
|
1051
1072
|
const rowIndex = Math.min(activeCell.rowIndex + pageSize, rowCount);
|
|
1052
1073
|
const newActiveCell = {
|
|
1053
1074
|
rowIndex,
|
|
@@ -1063,6 +1084,7 @@ export const useSelection = ({ sheetId, activeCell, onChangeActiveCell: onChange
|
|
|
1063
1084
|
sheetId,
|
|
1064
1085
|
activeCell,
|
|
1065
1086
|
rowCount,
|
|
1087
|
+
scrollingTopBound,
|
|
1066
1088
|
]);
|
|
1067
1089
|
// Page up
|
|
1068
1090
|
const pageUp = useCallback(() => {
|
|
@@ -1070,6 +1092,13 @@ export const useSelection = ({ sheetId, activeCell, onChangeActiveCell: onChange
|
|
|
1070
1092
|
return;
|
|
1071
1093
|
const { visibleRowStartIndex, visibleRowStopIndex } = getViewPort();
|
|
1072
1094
|
const pageSize = visibleRowStopIndex - visibleRowStartIndex;
|
|
1095
|
+
// As Page Down: from the frozen rows, the scrolling area moves and its new top row is active.
|
|
1096
|
+
if (activeCell.rowIndex < scrollingTopBound) {
|
|
1097
|
+
const rowIndex = Math.max(visibleRowStartIndex - pageSize, scrollingTopBound);
|
|
1098
|
+
handleSetActiveCell(sheetId, { rowIndex, columnIndex: activeCell.columnIndex }, false);
|
|
1099
|
+
scrollToCell({ rowIndex }, Align.start);
|
|
1100
|
+
return;
|
|
1101
|
+
}
|
|
1073
1102
|
const rowIndex = Math.max(activeCell.rowIndex - pageSize, selectionTopBound);
|
|
1074
1103
|
const newActiveCell = {
|
|
1075
1104
|
rowIndex,
|
|
@@ -1085,6 +1114,7 @@ export const useSelection = ({ sheetId, activeCell, onChangeActiveCell: onChange
|
|
|
1085
1114
|
sheetId,
|
|
1086
1115
|
activeCell,
|
|
1087
1116
|
selectionTopBound,
|
|
1117
|
+
scrollingTopBound,
|
|
1088
1118
|
]);
|
|
1089
1119
|
// Page right
|
|
1090
1120
|
const pageRight = useCallback(() => {
|
package/dist/esm/release-date.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../../config.ts","../../helpers.ts","../../index.tsx","../../platform.ts","../../release-date.ts","../../test-setup.ts","../../themes.ts","../../types.ts","../../vitest.config.ts","../../api/animate.ts","../../api/autocomplete.ts","../../api/banded-ranges.ts","../../api/calculated-column-fill.ts","../../api/cf-data-bar.ts","../../api/cf-engine.ts","../../api/cf-icons.ts","../../api/cf-overlays.ts","../../api/cf-priority.ts","../../api/cf-window.ts","../../api/chart-sheet.ts","../../api/chart-source-ranges.ts","../../api/colors.ts","../../api/copy-paste.ts","../../api/editor-formula.ts","../../api/error-checking.ts","../../api/evaluate-formula.ts","../../api/excel-edit-value.ts","../../api/excel-validation-kinds.ts","../../api/fill-patterns.ts","../../api/fill-series.ts","../../api/font-loader.ts","../../api/go-to-special.ts","../../api/go-to.ts","../../api/heatmap.ts","../../api/index-ranges.ts","../../api/insert-options.ts","../../api/move-overwrite.ts","../../api/multi-selection.ts","../../api/scheduler.ts","../../api/scroller.ts","../../api/selections.ts","../../api/split-pane.ts","../../api/spreadsheet-api.ts","../../api/table-auto-expansion.ts","../../api/table.ts","../../api/validation-tooltip.tsx","../../api/validation.ts","../../atoms/active-editor.atom.ts","../../atoms/advanced-filter-dialog.atom.ts","../../atoms/calculated-column-fill.atom.ts","../../atoms/cell-editor-mode.atom.ts","../../atoms/cell-input-context.atom.ts","../../atoms/chart-actions.atom.ts","../../atoms/consolidate-dialog.atom.ts","../../atoms/copied-range.atom.ts","../../atoms/editing-cell.atom.ts","../../atoms/enter-key-direction.atom.ts","../../atoms/evaluate-formula-dialog.atom.ts","../../atoms/fill-options.atom.ts","../../atoms/fill-series-dialog.atom.ts","../../atoms/flash-fill-options.atom.ts","../../atoms/formula-bar-editor-value.atom.ts","../../atoms/formula-mode.atom.ts","../../atoms/formula-selection-state.atom.ts","../../atoms/formula-selections.atom.ts","../../atoms/go-to-dialog.atom.ts","../../atoms/goal-seek-dialog.atom.ts","../../atoms/index.ts","../../atoms/insert-cells-dialog.atom.ts","../../atoms/insert-options.atom.ts","../../atoms/loading-indicator.atom.ts","../../atoms/magic-fill-state.atom.ts","../../atoms/move-chart-dialog.atom.ts","../../atoms/move-overwrite-confirm.atom.ts","../../atoms/outline-settings-dialog.atom.ts","../../atoms/paste-menu.atom.ts","../../atoms/paste-special-dialog.atom.ts","../../atoms/persistent-tooltip.atom.ts","../../atoms/pick-list.atom.ts","../../atoms/popover.atom.ts","../../atoms/range-selector.atom.ts","../../atoms/remove-duplicates-dialog.atom.ts","../../atoms/selected-chart-embed.atom.ts","../../atoms/selected-chart-series.atom.ts","../../atoms/selected-object-formula.atom.ts","../../atoms/sheet-context.atom.ts","../../atoms/sheet-status-display.atom.ts","../../atoms/show-formula-help.atom.ts","../../atoms/sort-dialog.atom.ts","../../atoms/sparkline-dialog.atom.ts","../../atoms/spreadsheet-api.atom.ts","../../atoms/subtotal-dialog.atom.ts","../../atoms/table-auto-expansion.atom.ts","../../atoms/text-to-columns-dialog.atom.ts","../../atoms/validation-alert.atom.ts","../../atoms/watch-window.atom.ts","../../components/advanced-filter-dialog/index.tsx","../../components/autocorrect-options-smart-tag/index.tsx","../../components/bottom-bar/index.tsx","../../components/calculated-column-smart-tag/index.tsx","../../components/calculation-options-dialog/index.tsx","../../components/canvas-grid/frozen-start.ts","../../components/canvas-grid/helpers.ts","../../components/canvas-grid/index.tsx","../../components/canvas-grid/overflow.ts","../../components/canvas-grid/page-break-preview-styles.ts","../../components/canvas-grid/page-breaks.ts","../../components/canvas-grid/typings.ts","../../components/cell/alignment.ts","../../components/cell/cell-background.tsx","../../components/cell/cell-backgrounds.tsx","../../components/cell/cell-text-runs.tsx","../../components/cell/helpers.ts","../../components/cell/index.tsx","../../components/cell/line-height.ts","../../components/cell/number-format-layout.ts","../../components/cell/rich-text.ts","../../components/cell/typings.ts","../../components/cell-arrow/index.tsx","../../components/cell-calculated/index.tsx","../../components/cell-checkbox/index.tsx","../../components/cell-diff/index.tsx","../../components/cell-editor/calendar-popup.tsx","../../components/cell-editor/formula-result-preview.tsx","../../components/cell-editor/helpers.ts","../../components/cell-editor/index.tsx","../../components/cell-editor/style.tsx","../../components/cell-expand/index.tsx","../../components/cell-filter/index.tsx","../../components/cell-group/index.tsx","../../components/cell-indicator/index.tsx","../../components/cell-input/cell-input.tsx","../../components/cell-input/formula-bar-cell-input.tsx","../../components/cell-input/index.tsx","../../components/cell-input/style.tsx","../../components/cell-overlay/index.tsx","../../components/cell-structured/cell-image.tsx","../../components/cell-structured/image-geometry.ts","../../components/cell-structured/index.tsx","../../components/cell-structured/sparkline-math.ts","../../components/cell-structured/sparkline.tsx","../../components/cell-structured/types.ts","../../components/cell-tooltip/index.tsx","../../components/cell-tooltip/note-editor.tsx","../../components/cell-tooltip/style.tsx","../../components/cf-icon-preview/index.tsx","../../components/chart-sheet-view/index.tsx","../../components/consolidate-dialog/index.tsx","../../components/context-menu/embed-context-menu.tsx","../../components/context-menu/index.tsx","../../components/context-menu/menu.tsx","../../components/context-menu/style.tsx","../../components/context-menu/total-row-function-menu.tsx","../../components/context-menu/total-row-functions.ts","../../components/data-table-dialog/index.tsx","../../components/embeds/chart-component.tsx","../../components/embeds/embed-component.tsx","../../components/embeds/embed-draggable.tsx","../../components/embeds/index.tsx","../../components/embeds/linked-picture.tsx","../../components/embeds/object-cell-offset.ts","../../components/embeds/object-focus.ts","../../components/embeds/page-gaps.ts","../../components/embeds/pane-copy.tsx","../../components/embeds/shape-geometry.ts","../../components/embeds/shape-svg.tsx","../../components/embeds/slicer-component.tsx","../../components/embeds/text-box-view.tsx","../../components/error-check-smart-tag/index.tsx","../../components/evaluate-formula-dialog/index.tsx","../../components/fill-handle/index.tsx","../../components/fill-series-dialog/index.tsx","../../components/filter-box/date-tree.ts","../../components/filter-box/filter-by-color.tsx","../../components/filter-box/filter-by-condition.tsx","../../components/filter-box/filter-by-value.tsx","../../components/filter-box/index.tsx","../../components/flash-fill-options-smart-tag/index.tsx","../../components/floating-cell-editor/index.tsx","../../components/forecast-sheet-dialog/index.tsx","../../components/formula-bar/index.tsx","../../components/formula-bar/style.tsx","../../components/formula-input/index.tsx","../../components/go-to-dialog/index.tsx","../../components/goal-seek-dialog/index.tsx","../../components/grid-footer/index.tsx","../../components/header-cell/index.tsx","../../components/header-menu/index.tsx","../../components/header-move/index.tsx","../../components/header-resizer/index.tsx","../../components/hidden-markers/index.tsx","../../components/hidden-markers/style.tsx","../../components/insert-cells-dialog/index.tsx","../../components/insert-function-dialog/index.tsx","../../components/insert-options-smart-tag/index.tsx","../../components/loading-indicator/index.tsx","../../components/move-chart-dialog/index.tsx","../../components/move-overwrite-confirm-dialog/index.tsx","../../components/outline-gutter/index.tsx","../../components/outline-gutter/offsets.ts","../../components/outline-settings-dialog/index.tsx","../../components/page-layout-view/compute-page-layout.ts","../../components/page-layout-view/header-footer-codes.ts","../../components/page-layout-view/index.ts","../../components/page-layout-view/page-layout-chrome.tsx","../../components/paste-special-dialog/index.tsx","../../components/pivot-placeholder/index.tsx","../../components/print-preview/cell-styles.ts","../../components/print-preview/index.ts","../../components/print-preview/page-block.tsx","../../components/print-preview/page-break-preview.ts","../../components/print-preview/print-cells.ts","../../components/print-preview/print-comments.tsx","../../components/print-preview/print-preview-dialog.tsx","../../components/print-preview/run-print.ts","../../components/print-preview/settings.ts","../../components/print-preview/sheet-page-setup.ts","../../components/print-preview/use-page-layout.ts","../../components/protect-sheet-dialog/allow-edit-ranges-dialog.tsx","../../components/protect-sheet-dialog/constants.ts","../../components/protect-sheet-dialog/index.tsx","../../components/range-selector/index.tsx","../../components/remove-duplicates-dialog/index.tsx","../../components/resizer/index.tsx","../../components/scenario-manager-dialog/index.tsx","../../components/selection/avatar.tsx","../../components/selection/fill-options-menu.tsx","../../components/selection/index.tsx","../../components/selection/magic-fill.tsx","../../components/selection/paste-menu.tsx","../../components/selection/paste-options.ts","../../components/selection/quick-edit.tsx","../../components/selection/style.tsx","../../components/selection/suggestion-action.tsx","../../components/selection/title.tsx","../../components/selection/types.ts","../../components/selection-drop-menu/index.tsx","../../components/selection-input/index.tsx","../../components/selection-input/style.tsx","../../components/sheet-background/index.tsx","../../components/sheet-search/index.tsx","../../components/sheet-status/index.tsx","../../components/sheet-status/style.tsx","../../components/sheet-switcher/index.tsx","../../components/sheet-switcher/new-sheet-button.tsx","../../components/sheet-tabs/context-menu.tsx","../../components/sheet-tabs/index.tsx","../../components/sheet-tabs/sheet-tab.tsx","../../components/sheet-tabs/style.tsx","../../components/sheet-tabs/types.ts","../../components/solver-dialog/index.tsx","../../components/sort-range-dialog/index.tsx","../../components/sparkline-dialog/index.tsx","../../components/subtotal-dialog/index.tsx","../../components/table-auto-expansion-smart-tag/index.tsx","../../components/text-to-columns-dialog/index.tsx","../../components/toolbar/background-color-selector.tsx","../../components/toolbar/border-color-selector.tsx","../../components/toolbar/border-line-style-options.tsx","../../components/toolbar/border-line-style-selector.tsx","../../components/toolbar/border-location-options.tsx","../../components/toolbar/border-selector.tsx","../../components/toolbar/buttons.tsx","../../components/toolbar/cell-style-selector.tsx","../../components/toolbar/color-selector.tsx","../../components/toolbar/fill-selectors.tsx","../../components/toolbar/font-family-selector.tsx","../../components/toolbar/font-size-selector.tsx","../../components/toolbar/index.tsx","../../components/toolbar/insert-menu.tsx","../../components/toolbar/merge-cells-selector.tsx","../../components/toolbar/scale-selector.tsx","../../components/toolbar/sparkline-actions.tsx","../../components/toolbar/style.tsx","../../components/toolbar/table-actions.tsx","../../components/toolbar/table-style-editor.tsx","../../components/toolbar/table-style-selector.tsx","../../components/toolbar/text-color-selector.tsx","../../components/toolbar/text-format-selector.tsx","../../components/toolbar/text-horizontal-align-selector.tsx","../../components/toolbar/text-rotation-selector.tsx","../../components/toolbar/text-vertical-align-selector.tsx","../../components/toolbar/text-wrap-selector.tsx","../../components/toolbar/theme-selector.tsx","../../components/toolbar/toolbar.tsx","../../components/toolbar/types.ts","../../components/toolbar/view-menu.tsx","../../components/validation-alert-dialog/index.tsx","../../components/watch-window/index.tsx","../../helpers/merged-cell-borders.ts","../../hooks/export-range-tiles.ts","../../hooks/index.ts","../../hooks/object-clipboard-payload.ts","../../hooks/object-spec-schema.generated.ts","../../hooks/show-zeros.ts","../../hooks/use-async.ts","../../hooks/use-border-styles.ts","../../hooks/use-callback-ref.ts","../../hooks/use-cell-diff-highlight.ts","../../hooks/use-cell-popover.tsx","../../hooks/use-cell-renderer.tsx","../../hooks/use-chart-clipboard.ts","../../hooks/use-chart-source-ranges.ts","../../hooks/use-column-color-icons.ts","../../hooks/use-conditional-formatting.ts","../../hooks/use-context-menu.tsx","../../hooks/use-context-setter.ts","../../hooks/use-copy-paste-cut.tsx","../../hooks/use-create-address-from-selection.ts","../../hooks/use-create-formula-tokenizer.ts","../../hooks/use-delayed-value.ts","../../hooks/use-editable.tsx","../../hooks/use-editor-cancel.ts","../../hooks/use-editor-change.ts","../../hooks/use-editor-keydown.ts","../../hooks/use-editor-submit.ts","../../hooks/use-embeds-charts.tsx","../../hooks/use-expand-cell.tsx","../../hooks/use-export-range.ts","../../hooks/use-filter.ts","../../hooks/use-flash-fill-suggestion.ts","../../hooks/use-flash.ts","../../hooks/use-fonts.ts","../../hooks/use-formula-range-helpers.ts","../../hooks/use-get-tooltip.tsx","../../hooks/use-get-values-from-range.ts","../../hooks/use-grid-children.tsx","../../hooks/use-header-actions.tsx","../../hooks/use-hidden-dimension-markers.tsx","../../hooks/use-hidden-dimensions.ts","../../hooks/use-hovered-selection-ids.ts","../../hooks/use-isomorphic-layout-effect.ts","../../hooks/use-keyboard-handler.tsx","../../hooks/use-licensekey-validator.tsx","../../hooks/use-memo-compare.ts","../../hooks/use-merge.refs.ts","../../hooks/use-move-columns-rows.tsx","../../hooks/use-navigate-sheet-range.ts","../../hooks/use-previous.ts","../../hooks/use-raf.ts","../../hooks/use-resize-observer.ts","../../hooks/use-reveal-chart-embed.ts","../../hooks/use-scale-listener.ts","../../hooks/use-selected-rows-columns.ts","../../hooks/use-selection-aware-formatting.ts","../../hooks/use-selection-change.ts","../../hooks/use-selection-drag-copy.ts","../../hooks/use-selection-interceptors.ts","../../hooks/use-selection-move.ts","../../hooks/use-selection-renderer.tsx","../../hooks/use-selection-resize.ts","../../hooks/use-selection.ts","../../hooks/use-sheet-change-handler.ts","../../hooks/use-shown-notes.tsx","../../hooks/use-sizer.ts","../../hooks/use-spreadsheet-theme.ts","../../hooks/use-stable-ref.ts","../../hooks/use-structured-reference-selection.ts","../../hooks/use-table-hit-zones.ts","../../hooks/use-table-resizer.tsx","../../hooks/use-text-dimensions.ts","../../hooks/use-tooltip.ts","../../hooks/use-touch.ts","../../providers/spreadsheet-provider.tsx","../../signals/scroll-subscriber.ts","../../utils/copy-as-picture.ts","../../utils/maybe.ts","../../utils/pivot-chart-field-buttons.ts","../../utils/z-order.ts"],"version":"5.8.3"}
|
|
1
|
+
{"root":["../../config.ts","../../helpers.ts","../../index.tsx","../../platform.ts","../../release-date.ts","../../test-setup.ts","../../themes.ts","../../types.ts","../../vitest.config.ts","../../api/animate.ts","../../api/autocomplete.ts","../../api/banded-ranges.ts","../../api/calculated-column-fill.ts","../../api/cf-data-bar.ts","../../api/cf-engine.ts","../../api/cf-icons.ts","../../api/cf-overlays.ts","../../api/cf-priority.ts","../../api/cf-window.ts","../../api/chart-sheet.ts","../../api/chart-source-ranges.ts","../../api/colors.ts","../../api/copy-paste.ts","../../api/editor-formula.ts","../../api/error-checking.ts","../../api/evaluate-formula.ts","../../api/excel-edit-value.ts","../../api/excel-validation-kinds.ts","../../api/fill-patterns.ts","../../api/fill-series.ts","../../api/font-loader.ts","../../api/go-to-special.ts","../../api/go-to.ts","../../api/heatmap.ts","../../api/index-ranges.ts","../../api/insert-options.ts","../../api/move-overwrite.ts","../../api/multi-selection.ts","../../api/scheduler.ts","../../api/scroller.ts","../../api/selections.ts","../../api/split-pane.ts","../../api/spreadsheet-api.ts","../../api/table-auto-expansion.ts","../../api/table.ts","../../api/validation-tooltip.tsx","../../api/validation.ts","../../atoms/active-editor.atom.ts","../../atoms/advanced-filter-dialog.atom.ts","../../atoms/calculated-column-fill.atom.ts","../../atoms/cell-editor-mode.atom.ts","../../atoms/cell-input-context.atom.ts","../../atoms/chart-actions.atom.ts","../../atoms/consolidate-dialog.atom.ts","../../atoms/copied-range.atom.ts","../../atoms/editing-cell.atom.ts","../../atoms/enter-key-direction.atom.ts","../../atoms/evaluate-formula-dialog.atom.ts","../../atoms/fill-options.atom.ts","../../atoms/fill-series-dialog.atom.ts","../../atoms/flash-fill-options.atom.ts","../../atoms/formula-bar-editor-value.atom.ts","../../atoms/formula-mode.atom.ts","../../atoms/formula-selection-state.atom.ts","../../atoms/formula-selections.atom.ts","../../atoms/frozen-area-sent.atom.ts","../../atoms/go-to-dialog.atom.ts","../../atoms/goal-seek-dialog.atom.ts","../../atoms/index.ts","../../atoms/insert-cells-dialog.atom.ts","../../atoms/insert-options.atom.ts","../../atoms/loading-indicator.atom.ts","../../atoms/magic-fill-state.atom.ts","../../atoms/move-chart-dialog.atom.ts","../../atoms/move-overwrite-confirm.atom.ts","../../atoms/outline-settings-dialog.atom.ts","../../atoms/paste-menu.atom.ts","../../atoms/paste-special-dialog.atom.ts","../../atoms/persistent-tooltip.atom.ts","../../atoms/pick-list.atom.ts","../../atoms/popover.atom.ts","../../atoms/range-selector.atom.ts","../../atoms/remove-duplicates-dialog.atom.ts","../../atoms/selected-chart-embed.atom.ts","../../atoms/selected-chart-series.atom.ts","../../atoms/selected-object-formula.atom.ts","../../atoms/sheet-context.atom.ts","../../atoms/sheet-status-display.atom.ts","../../atoms/show-formula-help.atom.ts","../../atoms/sort-dialog.atom.ts","../../atoms/sparkline-dialog.atom.ts","../../atoms/spreadsheet-api.atom.ts","../../atoms/subtotal-dialog.atom.ts","../../atoms/table-auto-expansion.atom.ts","../../atoms/text-to-columns-dialog.atom.ts","../../atoms/undo-redo-sent.atom.ts","../../atoms/validation-alert.atom.ts","../../atoms/watch-window.atom.ts","../../components/advanced-filter-dialog/index.tsx","../../components/autocorrect-options-smart-tag/index.tsx","../../components/bottom-bar/index.tsx","../../components/calculated-column-smart-tag/index.tsx","../../components/calculation-options-dialog/index.tsx","../../components/canvas-grid/frozen-start.ts","../../components/canvas-grid/helpers.ts","../../components/canvas-grid/index.tsx","../../components/canvas-grid/overflow.ts","../../components/canvas-grid/page-break-preview-styles.ts","../../components/canvas-grid/page-breaks.ts","../../components/canvas-grid/typings.ts","../../components/cell/alignment.ts","../../components/cell/cell-background.tsx","../../components/cell/cell-backgrounds.tsx","../../components/cell/cell-text-runs.tsx","../../components/cell/helpers.ts","../../components/cell/index.tsx","../../components/cell/line-height.ts","../../components/cell/number-format-layout.ts","../../components/cell/rich-text.ts","../../components/cell/typings.ts","../../components/cell-arrow/index.tsx","../../components/cell-calculated/index.tsx","../../components/cell-checkbox/index.tsx","../../components/cell-diff/index.tsx","../../components/cell-editor/calendar-popup.tsx","../../components/cell-editor/formula-result-preview.tsx","../../components/cell-editor/helpers.ts","../../components/cell-editor/index.tsx","../../components/cell-editor/style.tsx","../../components/cell-expand/index.tsx","../../components/cell-filter/index.tsx","../../components/cell-group/index.tsx","../../components/cell-indicator/index.tsx","../../components/cell-input/cell-input.tsx","../../components/cell-input/formula-bar-cell-input.tsx","../../components/cell-input/index.tsx","../../components/cell-input/style.tsx","../../components/cell-overlay/index.tsx","../../components/cell-structured/cell-image.tsx","../../components/cell-structured/image-geometry.ts","../../components/cell-structured/index.tsx","../../components/cell-structured/sparkline-math.ts","../../components/cell-structured/sparkline.tsx","../../components/cell-structured/types.ts","../../components/cell-tooltip/index.tsx","../../components/cell-tooltip/note-editor.tsx","../../components/cell-tooltip/style.tsx","../../components/cf-icon-preview/index.tsx","../../components/chart-sheet-view/index.tsx","../../components/consolidate-dialog/index.tsx","../../components/context-menu/embed-context-menu.tsx","../../components/context-menu/index.tsx","../../components/context-menu/menu.tsx","../../components/context-menu/style.tsx","../../components/context-menu/total-row-function-menu.tsx","../../components/context-menu/total-row-functions.ts","../../components/data-table-dialog/index.tsx","../../components/embeds/chart-component.tsx","../../components/embeds/embed-component.tsx","../../components/embeds/embed-draggable.tsx","../../components/embeds/index.tsx","../../components/embeds/linked-picture.tsx","../../components/embeds/object-cell-offset.ts","../../components/embeds/object-focus.ts","../../components/embeds/page-gaps.ts","../../components/embeds/pane-copy.tsx","../../components/embeds/shape-geometry.ts","../../components/embeds/shape-svg.tsx","../../components/embeds/slicer-component.tsx","../../components/embeds/text-box-view.tsx","../../components/error-check-smart-tag/index.tsx","../../components/evaluate-formula-dialog/index.tsx","../../components/fill-handle/index.tsx","../../components/fill-series-dialog/index.tsx","../../components/filter-box/date-tree.ts","../../components/filter-box/filter-by-color.tsx","../../components/filter-box/filter-by-condition.tsx","../../components/filter-box/filter-by-value.tsx","../../components/filter-box/index.tsx","../../components/flash-fill-options-smart-tag/index.tsx","../../components/floating-cell-editor/index.tsx","../../components/forecast-sheet-dialog/index.tsx","../../components/formula-bar/index.tsx","../../components/formula-bar/style.tsx","../../components/formula-input/index.tsx","../../components/go-to-dialog/index.tsx","../../components/goal-seek-dialog/index.tsx","../../components/grid-footer/index.tsx","../../components/header-cell/index.tsx","../../components/header-menu/index.tsx","../../components/header-move/index.tsx","../../components/header-resizer/index.tsx","../../components/hidden-markers/index.tsx","../../components/hidden-markers/style.tsx","../../components/insert-cells-dialog/index.tsx","../../components/insert-function-dialog/index.tsx","../../components/insert-options-smart-tag/index.tsx","../../components/loading-indicator/index.tsx","../../components/move-chart-dialog/index.tsx","../../components/move-overwrite-confirm-dialog/index.tsx","../../components/outline-gutter/index.tsx","../../components/outline-gutter/offsets.ts","../../components/outline-settings-dialog/index.tsx","../../components/page-layout-view/compute-page-layout.ts","../../components/page-layout-view/header-footer-codes.ts","../../components/page-layout-view/index.ts","../../components/page-layout-view/page-layout-chrome.tsx","../../components/paste-special-dialog/index.tsx","../../components/pivot-placeholder/index.tsx","../../components/print-preview/cell-styles.ts","../../components/print-preview/index.ts","../../components/print-preview/page-block.tsx","../../components/print-preview/page-break-preview.ts","../../components/print-preview/print-cells.ts","../../components/print-preview/print-comments.tsx","../../components/print-preview/print-preview-dialog.tsx","../../components/print-preview/run-print.ts","../../components/print-preview/settings.ts","../../components/print-preview/sheet-page-setup.ts","../../components/print-preview/use-page-layout.ts","../../components/protect-sheet-dialog/allow-edit-ranges-dialog.tsx","../../components/protect-sheet-dialog/constants.ts","../../components/protect-sheet-dialog/index.tsx","../../components/range-selector/index.tsx","../../components/remove-duplicates-dialog/index.tsx","../../components/resizer/index.tsx","../../components/scenario-manager-dialog/index.tsx","../../components/selection/avatar.tsx","../../components/selection/fill-options-menu.tsx","../../components/selection/index.tsx","../../components/selection/magic-fill.tsx","../../components/selection/paste-menu.tsx","../../components/selection/paste-options.ts","../../components/selection/quick-edit.tsx","../../components/selection/style.tsx","../../components/selection/suggestion-action.tsx","../../components/selection/title.tsx","../../components/selection/types.ts","../../components/selection-drop-menu/index.tsx","../../components/selection-input/index.tsx","../../components/selection-input/style.tsx","../../components/sheet-background/index.tsx","../../components/sheet-search/index.tsx","../../components/sheet-status/index.tsx","../../components/sheet-status/style.tsx","../../components/sheet-switcher/index.tsx","../../components/sheet-switcher/new-sheet-button.tsx","../../components/sheet-tabs/context-menu.tsx","../../components/sheet-tabs/index.tsx","../../components/sheet-tabs/sheet-tab.tsx","../../components/sheet-tabs/style.tsx","../../components/sheet-tabs/types.ts","../../components/solver-dialog/index.tsx","../../components/sort-range-dialog/index.tsx","../../components/sparkline-dialog/index.tsx","../../components/subtotal-dialog/index.tsx","../../components/table-auto-expansion-smart-tag/index.tsx","../../components/text-to-columns-dialog/index.tsx","../../components/toolbar/background-color-selector.tsx","../../components/toolbar/border-color-selector.tsx","../../components/toolbar/border-line-style-options.tsx","../../components/toolbar/border-line-style-selector.tsx","../../components/toolbar/border-location-options.tsx","../../components/toolbar/border-selector.tsx","../../components/toolbar/buttons.tsx","../../components/toolbar/cell-style-selector.tsx","../../components/toolbar/color-selector.tsx","../../components/toolbar/fill-selectors.tsx","../../components/toolbar/font-family-selector.tsx","../../components/toolbar/font-size-selector.tsx","../../components/toolbar/index.tsx","../../components/toolbar/insert-menu.tsx","../../components/toolbar/merge-cells-selector.tsx","../../components/toolbar/scale-selector.tsx","../../components/toolbar/sparkline-actions.tsx","../../components/toolbar/style.tsx","../../components/toolbar/table-actions.tsx","../../components/toolbar/table-style-editor.tsx","../../components/toolbar/table-style-selector.tsx","../../components/toolbar/text-color-selector.tsx","../../components/toolbar/text-format-selector.tsx","../../components/toolbar/text-horizontal-align-selector.tsx","../../components/toolbar/text-rotation-selector.tsx","../../components/toolbar/text-vertical-align-selector.tsx","../../components/toolbar/text-wrap-selector.tsx","../../components/toolbar/theme-selector.tsx","../../components/toolbar/toolbar.tsx","../../components/toolbar/types.ts","../../components/toolbar/view-menu.tsx","../../components/validation-alert-dialog/index.tsx","../../components/watch-window/index.tsx","../../helpers/merged-cell-borders.ts","../../hooks/export-range-tiles.ts","../../hooks/index.ts","../../hooks/object-clipboard-payload.ts","../../hooks/object-spec-schema.generated.ts","../../hooks/show-zeros.ts","../../hooks/use-async.ts","../../hooks/use-border-styles.ts","../../hooks/use-callback-ref.ts","../../hooks/use-cell-diff-highlight.ts","../../hooks/use-cell-popover.tsx","../../hooks/use-cell-renderer.tsx","../../hooks/use-chart-clipboard.ts","../../hooks/use-chart-source-ranges.ts","../../hooks/use-column-color-icons.ts","../../hooks/use-conditional-formatting.ts","../../hooks/use-context-menu.tsx","../../hooks/use-context-setter.ts","../../hooks/use-copy-paste-cut.tsx","../../hooks/use-create-address-from-selection.ts","../../hooks/use-create-formula-tokenizer.ts","../../hooks/use-delayed-value.ts","../../hooks/use-editable.tsx","../../hooks/use-editor-cancel.ts","../../hooks/use-editor-change.ts","../../hooks/use-editor-keydown.ts","../../hooks/use-editor-submit.ts","../../hooks/use-embeds-charts.tsx","../../hooks/use-expand-cell.tsx","../../hooks/use-export-range.ts","../../hooks/use-filter.ts","../../hooks/use-flash-fill-suggestion.ts","../../hooks/use-flash.ts","../../hooks/use-fonts.ts","../../hooks/use-formula-range-helpers.ts","../../hooks/use-get-tooltip.tsx","../../hooks/use-get-values-from-range.ts","../../hooks/use-grid-children.tsx","../../hooks/use-header-actions.tsx","../../hooks/use-hidden-dimension-markers.tsx","../../hooks/use-hidden-dimensions.ts","../../hooks/use-hovered-selection-ids.ts","../../hooks/use-isomorphic-layout-effect.ts","../../hooks/use-keyboard-handler.tsx","../../hooks/use-licensekey-validator.tsx","../../hooks/use-memo-compare.ts","../../hooks/use-merge.refs.ts","../../hooks/use-move-columns-rows.tsx","../../hooks/use-navigate-sheet-range.ts","../../hooks/use-previous.ts","../../hooks/use-raf.ts","../../hooks/use-resize-observer.ts","../../hooks/use-reveal-chart-embed.ts","../../hooks/use-scale-listener.ts","../../hooks/use-selected-rows-columns.ts","../../hooks/use-selection-aware-formatting.ts","../../hooks/use-selection-change.ts","../../hooks/use-selection-drag-copy.ts","../../hooks/use-selection-interceptors.ts","../../hooks/use-selection-move.ts","../../hooks/use-selection-renderer.tsx","../../hooks/use-selection-resize.ts","../../hooks/use-selection.ts","../../hooks/use-sheet-change-handler.ts","../../hooks/use-shown-notes.tsx","../../hooks/use-sizer.ts","../../hooks/use-spreadsheet-theme.ts","../../hooks/use-stable-ref.ts","../../hooks/use-structured-reference-selection.ts","../../hooks/use-table-hit-zones.ts","../../hooks/use-table-resizer.tsx","../../hooks/use-text-dimensions.ts","../../hooks/use-tooltip.ts","../../hooks/use-touch.ts","../../providers/spreadsheet-provider.tsx","../../signals/scroll-subscriber.ts","../../utils/copy-as-picture.ts","../../utils/maybe.ts","../../utils/pivot-chart-field-buttons.ts","../../utils/z-order.ts"],"version":"5.8.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rowsncolumns/spreadsheet",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.19.1",
|
|
4
4
|
"author": "Vinay M",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"jotai": "^2.12.4",
|
|
55
55
|
"jotai-effect": "^2.0.2",
|
|
56
56
|
"lodash": "^4.17.21",
|
|
57
|
+
"numfmt": "^3.2.2",
|
|
57
58
|
"react-draggable": "^4.4.6",
|
|
58
59
|
"react-resizable": "^3.0.5",
|
|
59
60
|
"rxjs": "^7.8.2"
|