@rowsncolumns/spreadsheet 10.19.2 → 10.19.4

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 (39) hide show
  1. package/dist/cjs/api/entry-selections.d.ts +85 -0
  2. package/dist/cjs/api/entry-selections.d.ts.map +1 -0
  3. package/dist/cjs/api/entry-selections.js +122 -0
  4. package/dist/cjs/atoms/entry-selections.atom.d.ts +11 -0
  5. package/dist/cjs/atoms/entry-selections.atom.d.ts.map +1 -0
  6. package/dist/cjs/atoms/entry-selections.atom.js +11 -0
  7. package/dist/cjs/components/canvas-grid/index.d.ts.map +1 -1
  8. package/dist/cjs/components/canvas-grid/index.js +183 -23
  9. package/dist/cjs/hooks/use-editable.d.ts +9 -1
  10. package/dist/cjs/hooks/use-editable.d.ts.map +1 -1
  11. package/dist/cjs/hooks/use-editable.js +12 -10
  12. package/dist/cjs/hooks/use-editor-change.d.ts +7 -3
  13. package/dist/cjs/hooks/use-editor-change.d.ts.map +1 -1
  14. package/dist/cjs/hooks/use-editor-change.js +12 -14
  15. package/dist/cjs/hooks/use-editor-submit.d.ts +4 -2
  16. package/dist/cjs/hooks/use-editor-submit.d.ts.map +1 -1
  17. package/dist/cjs/hooks/use-editor-submit.js +5 -0
  18. package/dist/cjs/release-date.js +1 -1
  19. package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
  20. package/dist/esm/api/entry-selections.d.ts +85 -0
  21. package/dist/esm/api/entry-selections.d.ts.map +1 -0
  22. package/dist/esm/api/entry-selections.js +88 -0
  23. package/dist/esm/atoms/entry-selections.atom.d.ts +11 -0
  24. package/dist/esm/atoms/entry-selections.atom.d.ts.map +1 -0
  25. package/dist/esm/atoms/entry-selections.atom.js +8 -0
  26. package/dist/esm/components/canvas-grid/index.d.ts.map +1 -1
  27. package/dist/esm/components/canvas-grid/index.js +180 -23
  28. package/dist/esm/hooks/use-editable.d.ts +9 -1
  29. package/dist/esm/hooks/use-editable.d.ts.map +1 -1
  30. package/dist/esm/hooks/use-editable.js +7 -5
  31. package/dist/esm/hooks/use-editor-change.d.ts +7 -3
  32. package/dist/esm/hooks/use-editor-change.d.ts.map +1 -1
  33. package/dist/esm/hooks/use-editor-change.js +10 -12
  34. package/dist/esm/hooks/use-editor-submit.d.ts +4 -2
  35. package/dist/esm/hooks/use-editor-submit.d.ts.map +1 -1
  36. package/dist/esm/hooks/use-editor-submit.js +5 -0
  37. package/dist/esm/release-date.js +1 -1
  38. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  39. package/package.json +1 -1
@@ -0,0 +1,85 @@
1
+ import type { SelectionArea } from "@rowsncolumns/grid";
2
+ import type { SelectionAttributes } from "../components/canvas-grid/typings";
3
+ /**
4
+ * A range picked for a formula (pointer or arrow keys) lives in the sheet's
5
+ * own selection until the entry ends: appended after it, or in its place (a
6
+ * heading click, Shift+Arrow as the first pick, a pick that replaces a typed
7
+ * reference, a table's edge). The entry itself acts on what the sheet has
8
+ * selected WITHOUT those ranges: the commit key moves the active cell inside
9
+ * it, Ctrl+Enter fills it, and the sheet gets it back when the entry ends.
10
+ *
11
+ * The host owns the selection. So what is kept here is only ever what the
12
+ * host last gave the grid for a sheet, with the entry's own picks taken out.
13
+ * A selection the host sets while the entry is open (a collaborator's row or
14
+ * column edit moves it) replaces what was kept: nothing the entry writes may
15
+ * land outside what the host has selected now.
16
+ */
17
+ type Selections = SelectionArea<SelectionAttributes>[];
18
+ /** What one sheet has selected, as far as the open cell entry is concerned. */
19
+ export type EntrySheetSelections = {
20
+ /** What the host last gave the grid for the sheet, without the entry's picks. */
21
+ own: Selections;
22
+ /**
23
+ * The sheet's selection as a gesture on the grid last wrote it for the
24
+ * entry, picked ranges included. Absent while nothing is picked on the
25
+ * sheet.
26
+ */
27
+ written?: Selections;
28
+ /** How many of `written`'s leading selections are the sheet's own; the rest are picks. */
29
+ ownCount: number;
30
+ /** The selection the host last handed the grid for the sheet. */
31
+ seen: Selections;
32
+ };
33
+ export type EntryCell = {
34
+ sheetId: number;
35
+ rowIndex: number;
36
+ columnIndex: number;
37
+ };
38
+ export type EntrySelections = {
39
+ /** The cell the entry is typed in: another cell is another entry. */
40
+ cell: EntryCell;
41
+ sheets: ReadonlyMap<number, EntrySheetSelections>;
42
+ };
43
+ export declare const isSameEntryCell: (a: EntryCell | undefined, b: EntryCell | undefined) => boolean;
44
+ /** How many leading selections of `a` and `b` cover the same ranges. */
45
+ export declare const leadingSameRanges: (a: Selections, b: Selections) => number;
46
+ /**
47
+ * Whether two selections cover the same ranges in the same order. A host may
48
+ * hand back other objects than the grid wrote, or a new array on every render,
49
+ * so identity says nothing about who chose a selection.
50
+ */
51
+ export declare const sameRanges: (a: Selections, b: Selections) => boolean;
52
+ /** A sheet nothing is picked on, holding what the host gave for it. */
53
+ export declare const entrySheetSelections: (own: Selections, seen?: Selections) => EntrySheetSelections;
54
+ /**
55
+ * A gesture on the grid wrote `next` for the sheet while the entry takes
56
+ * picks. `current` is what the host has for the sheet now; it is what the
57
+ * sheet's own selection is when this is its first pick.
58
+ *
59
+ * The sheet's own selections are the leading ones a pick left as they were.
60
+ * An appended pick leaves them all; a pick that takes the selection's place
61
+ * leaves none, and from then on none of what is written is the sheet's own.
62
+ */
63
+ export declare const afterPick: (sheet: EntrySheetSelections | undefined, current: Selections, next: Selections) => EntrySheetSelections;
64
+ /**
65
+ * The host handed the grid `given` for the sheet. Returns the same object when
66
+ * it is nothing new.
67
+ *
68
+ * It is the host's own choice only when it is neither what the grid last
69
+ * wrote nor what the host had handed over before: a host that applies a write
70
+ * a tick later, or builds a new array on every render, shows the old selection
71
+ * once more before the grid's write comes back.
72
+ *
73
+ * The host's choice replaces what was kept. When it has as many selections as
74
+ * the grid wrote, they are the same ones moved (a row or a column inserted or
75
+ * deleted above them), so the sheet's own are still the leading ones and the
76
+ * picks the rest. Otherwise the host chose something else altogether, and the
77
+ * sheet has that selected with nothing picked on it.
78
+ */
79
+ export declare const afterHostGave: (sheet: EntrySheetSelections, given: Selections) => EntrySheetSelections;
80
+ /** Whether a range picked for the entry is in any sheet's selection. */
81
+ export declare const hasEntryPicks: (state: EntrySelections) => boolean;
82
+ /** The sheet once its picks are out of its selection again. */
83
+ export declare const afterPutBack: (sheet: EntrySheetSelections) => EntrySheetSelections;
84
+ export {};
85
+ //# sourceMappingURL=entry-selections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry-selections.d.ts","sourceRoot":"","sources":["../../../api/entry-selections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAE7E;;;;;;;;;;;;;GAaG;AAEH,KAAK,UAAU,GAAG,aAAa,CAAC,mBAAmB,CAAC,EAAE,CAAC;AAEvD,+EAA+E;AAC/E,MAAM,MAAM,oBAAoB,GAAG;IACjC,iFAAiF;IACjF,GAAG,EAAE,UAAU,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,0FAA0F;IAC1F,QAAQ,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,qEAAqE;IACrE,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,GAAG,SAAS,GAAG,SAAS,EACxB,GAAG,SAAS,GAAG,SAAS,KACvB,OAK8B,CAAC;AAWlC,wEAAwE;AACxE,eAAO,MAAM,iBAAiB,GAAI,GAAG,UAAU,EAAE,GAAG,UAAU,KAAG,MAUhE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,GAAG,UAAU,EAAE,GAAG,UAAU,KAAG,OACkB,CAAC;AAE7E,uEAAuE;AACvE,eAAO,MAAM,oBAAoB,GAC/B,KAAK,UAAU,EACf,OAAM,UAAgB,KACrB,oBAA6D,CAAC;AAEjE;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,GACpB,OAAO,oBAAoB,GAAG,SAAS,EACvC,SAAS,UAAU,EACnB,MAAM,UAAU,KACf,oBAWF,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,GACxB,OAAO,oBAAoB,EAC3B,OAAO,UAAU,KAChB,oBAgBF,CAAC;AAEF,wEAAwE;AACxE,eAAO,MAAM,aAAa,GAAI,OAAO,eAAe,KAAG,OAOtD,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,YAAY,GACvB,OAAO,oBAAoB,KAC1B,oBAAmE,CAAC"}
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.afterPutBack = exports.hasEntryPicks = exports.afterHostGave = exports.afterPick = exports.entrySheetSelections = exports.sameRanges = exports.leadingSameRanges = exports.isSameEntryCell = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var isSameEntryCell = function (a, b) {
6
+ return a !== undefined &&
7
+ b !== undefined &&
8
+ a.sheetId === b.sheetId &&
9
+ a.rowIndex === b.rowIndex &&
10
+ a.columnIndex === b.columnIndex;
11
+ };
12
+ exports.isSameEntryCell = isSameEntryCell;
13
+ var isSameRange = function (a, b) {
14
+ return a.range.startRowIndex === b.range.startRowIndex &&
15
+ a.range.endRowIndex === b.range.endRowIndex &&
16
+ a.range.startColumnIndex === b.range.startColumnIndex &&
17
+ a.range.endColumnIndex === b.range.endColumnIndex;
18
+ };
19
+ /** How many leading selections of `a` and `b` cover the same ranges. */
20
+ var leadingSameRanges = function (a, b) {
21
+ var count = 0;
22
+ while (count < a.length &&
23
+ count < b.length &&
24
+ isSameRange(a[count], b[count])) {
25
+ count++;
26
+ }
27
+ return count;
28
+ };
29
+ exports.leadingSameRanges = leadingSameRanges;
30
+ /**
31
+ * Whether two selections cover the same ranges in the same order. A host may
32
+ * hand back other objects than the grid wrote, or a new array on every render,
33
+ * so identity says nothing about who chose a selection.
34
+ */
35
+ var sameRanges = function (a, b) {
36
+ return a === b || (a.length === b.length && (0, exports.leadingSameRanges)(a, b) === a.length);
37
+ };
38
+ exports.sameRanges = sameRanges;
39
+ /** A sheet nothing is picked on, holding what the host gave for it. */
40
+ var entrySheetSelections = function (own, seen) {
41
+ if (seen === void 0) { seen = own; }
42
+ return ({ own: own, ownCount: own.length, seen: seen });
43
+ };
44
+ exports.entrySheetSelections = entrySheetSelections;
45
+ /**
46
+ * A gesture on the grid wrote `next` for the sheet while the entry takes
47
+ * picks. `current` is what the host has for the sheet now; it is what the
48
+ * sheet's own selection is when this is its first pick.
49
+ *
50
+ * The sheet's own selections are the leading ones a pick left as they were.
51
+ * An appended pick leaves them all; a pick that takes the selection's place
52
+ * leaves none, and from then on none of what is written is the sheet's own.
53
+ */
54
+ var afterPick = function (sheet, current, next) {
55
+ var _a;
56
+ var known = sheet !== null && sheet !== void 0 ? sheet : (0, exports.entrySheetSelections)(current);
57
+ return {
58
+ own: known.own,
59
+ written: next,
60
+ ownCount: Math.min(known.ownCount, (0, exports.leadingSameRanges)((_a = known.written) !== null && _a !== void 0 ? _a : known.own, next)),
61
+ seen: known.seen,
62
+ };
63
+ };
64
+ exports.afterPick = afterPick;
65
+ /**
66
+ * The host handed the grid `given` for the sheet. Returns the same object when
67
+ * it is nothing new.
68
+ *
69
+ * It is the host's own choice only when it is neither what the grid last
70
+ * wrote nor what the host had handed over before: a host that applies a write
71
+ * a tick later, or builds a new array on every render, shows the old selection
72
+ * once more before the grid's write comes back.
73
+ *
74
+ * The host's choice replaces what was kept. When it has as many selections as
75
+ * the grid wrote, they are the same ones moved (a row or a column inserted or
76
+ * deleted above them), so the sheet's own are still the leading ones and the
77
+ * picks the rest. Otherwise the host chose something else altogether, and the
78
+ * sheet has that selected with nothing picked on it.
79
+ */
80
+ var afterHostGave = function (sheet, given) {
81
+ var _a;
82
+ if ((0, exports.sameRanges)(given, sheet.seen)) {
83
+ return sheet;
84
+ }
85
+ if ((0, exports.sameRanges)(given, (_a = sheet.written) !== null && _a !== void 0 ? _a : sheet.own)) {
86
+ return tslib_1.__assign(tslib_1.__assign({}, sheet), { seen: given });
87
+ }
88
+ if (sheet.written && given.length === sheet.written.length) {
89
+ return {
90
+ own: given.slice(0, sheet.ownCount),
91
+ written: given,
92
+ ownCount: sheet.ownCount,
93
+ seen: given,
94
+ };
95
+ }
96
+ return (0, exports.entrySheetSelections)(given);
97
+ };
98
+ exports.afterHostGave = afterHostGave;
99
+ /** Whether a range picked for the entry is in any sheet's selection. */
100
+ var hasEntryPicks = function (state) {
101
+ var e_1, _a;
102
+ try {
103
+ for (var _b = tslib_1.__values(state.sheets.values()), _c = _b.next(); !_c.done; _c = _b.next()) {
104
+ var sheet = _c.value;
105
+ if (sheet.written) {
106
+ return true;
107
+ }
108
+ }
109
+ }
110
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
111
+ finally {
112
+ try {
113
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
114
+ }
115
+ finally { if (e_1) throw e_1.error; }
116
+ }
117
+ return false;
118
+ };
119
+ exports.hasEntryPicks = hasEntryPicks;
120
+ /** The sheet once its picks are out of its selection again. */
121
+ var afterPutBack = function (sheet) { return (0, exports.entrySheetSelections)(sheet.own, sheet.seen); };
122
+ exports.afterPutBack = afterPutBack;
@@ -0,0 +1,11 @@
1
+ import type { EntrySelections } from "../api/entry-selections";
2
+ /**
3
+ * What each sheet has selected, as far as the cell entry now open is
4
+ * concerned (`api/entry-selections.ts`). It lives beside the editing cell so
5
+ * that it outlives a grid that remounts in the middle of an entry, as the
6
+ * editing cell does. Not part of the package's exports.
7
+ */
8
+ export declare const entrySelectionsAtom: import("jotai").PrimitiveAtom<EntrySelections | undefined> & {
9
+ init: EntrySelections | undefined;
10
+ };
11
+ //# sourceMappingURL=entry-selections.atom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry-selections.atom.d.ts","sourceRoot":"","sources":["../../../atoms/entry-selections.atom.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;CAA+C,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.entrySelectionsAtom = void 0;
4
+ var jotai_1 = require("jotai");
5
+ /**
6
+ * What each sheet has selected, as far as the cell entry now open is
7
+ * concerned (`api/entry-selections.ts`). It lives beside the editing cell so
8
+ * that it outlives a grid that remounts in the middle of an entry, as the
9
+ * editing cell does. Not part of the package's exports.
10
+ */
11
+ exports.entrySelectionsAtom = (0, jotai_1.atom)(undefined);
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/canvas-grid/index.tsx"],"names":[],"mappings":"AAqEA,OAAO,KASN,MAAM,OAAO,CAAC;AAuRf,OAAO,KAAK,EAGV,QAAQ,EAcT,MAAM,aAAa,CAAC;AA0DrB,OAAO,KAAK,EACV,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,EAEhB,MAAM,WAAW,CAAC;AAixQnB,eAAO,MAAM,UAAU,EAA4C,CACjE,CAAC,SAAS,QAAQ,CAAC,GAAG,CAAC,EAEvB,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,GACvB,wBAAwB,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAAE,KAChE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/canvas-grid/index.tsx"],"names":[],"mappings":"AAqEA,OAAO,KASN,MAAM,OAAO,CAAC;AAmSf,OAAO,KAAK,EAGV,QAAQ,EAcT,MAAM,aAAa,CAAC;AA0DrB,OAAO,KAAK,EACV,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,EAEhB,MAAM,WAAW,CAAC;AAm8QnB,eAAO,MAAM,UAAU,EAA4C,CACjE,CAAC,SAAS,QAAQ,CAAC,GAAG,CAAC,EAEvB,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,GACvB,wBAAwB,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAAE,KAChE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC"}
@@ -18,6 +18,7 @@ var react_dom_1 = require("react-dom");
18
18
  var banded_ranges_1 = require("../../api/banded-ranges");
19
19
  var split_pane_1 = require("../../api/split-pane");
20
20
  var excel_edit_value_1 = require("../../api/excel-edit-value");
21
+ var entry_selections_1 = require("../../api/entry-selections");
21
22
  var error_checking_1 = require("../../api/error-checking");
22
23
  var formula_bar_editor_value_atom_1 = require("../../atoms/formula-bar-editor-value.atom");
23
24
  var insert_options_1 = require("../../api/insert-options");
@@ -40,6 +41,7 @@ var object_focus_1 = require("../embeds/object-focus");
40
41
  var enter_key_direction_atom_1 = require("../../atoms/enter-key-direction.atom");
41
42
  var formula_bar_editor_value_atom_2 = require("../../atoms/formula-bar-editor-value.atom");
42
43
  var formula_selection_state_atom_1 = require("../../atoms/formula-selection-state.atom");
44
+ var entry_selections_atom_1 = require("../../atoms/entry-selections.atom");
43
45
  var formula_selections_atom_1 = require("../../atoms/formula-selections.atom");
44
46
  var magic_fill_state_atom_1 = require("../../atoms/magic-fill-state.atom");
45
47
  var show_formula_help_atom_1 = require("../../atoms/show-formula-help.atom");
@@ -3110,11 +3112,163 @@ function CanvasGridComponent(props, forwardedRef) {
3110
3112
  showNotes: showNotes,
3111
3113
  isNoteShown: showAllNotes ? use_shown_notes_1.alwaysTrue : isNoteVisible,
3112
3114
  });
3115
+ /**
3116
+ * The cell entry now open and what each sheet has selected as far as it is
3117
+ * concerned (`api/entry-selections.ts`): the host's selection for the sheet
3118
+ * with the ranges picked for the entry's formula taken out. The entry acts
3119
+ * on the typing sheet's (the commit key moves the active cell inside it,
3120
+ * Ctrl+Enter fills it), and each sheet a range was picked on gets its own
3121
+ * back when the entry ends.
3122
+ */
3123
+ var entrySelectionsState = (0, jotai_1.useAtomValue)(entry_selections_atom_1.entrySelectionsAtom);
3124
+ var typingSheetId = editingCellCoordinate === null || editingCellCoordinate === void 0 ? void 0 : editingCellCoordinate.sheetId;
3125
+ var typingRowIndex = editingCellCoordinate === null || editingCellCoordinate === void 0 ? void 0 : editingCellCoordinate.rowIndex;
3126
+ var typingColumnIndex = editingCellCoordinate === null || editingCellCoordinate === void 0 ? void 0 : editingCellCoordinate.columnIndex;
3127
+ /** The cell the open entry is typed in; none while no entry is open. */
3128
+ var typingCell = (0, react_1.useMemo)(function () {
3129
+ return typingSheetId === undefined ||
3130
+ typingRowIndex === undefined ||
3131
+ typingColumnIndex === undefined
3132
+ ? undefined
3133
+ : {
3134
+ sheetId: typingSheetId,
3135
+ rowIndex: typingRowIndex,
3136
+ columnIndex: typingColumnIndex,
3137
+ };
3138
+ }, [typingSheetId, typingRowIndex, typingColumnIndex]);
3139
+ var isPickingForCellEntry = formulaMode && canSelectCells && typingCell !== undefined;
3140
+ // Every selection a gesture on the grid writes goes to the host through
3141
+ // here (cells, headings, table edges, a drawn selection or its title), so
3142
+ // each one made while an entry is taking picks is told apart from a
3143
+ // selection the host sets on its own.
3144
+ var onChangeSelectionsFromGrid = (0, use_callback_ref_1.useCallbackRef)((0, react_1.useCallback)(function (changedSheetId, nextSelections, finishedSelection) {
3145
+ if (isPickingForCellEntry && typingCell && changedSheetId === sheetId) {
3146
+ var state = store.get(entry_selections_atom_1.entrySelectionsAtom);
3147
+ var sheets = (0, entry_selections_1.isSameEntryCell)(state === null || state === void 0 ? void 0 : state.cell, typingCell)
3148
+ ? state === null || state === void 0 ? void 0 : state.sheets
3149
+ : undefined;
3150
+ store.set(entry_selections_atom_1.entrySelectionsAtom, {
3151
+ cell: typingCell,
3152
+ sheets: new Map(sheets).set(changedSheetId, (0, entry_selections_1.afterPick)(sheets === null || sheets === void 0 ? void 0 : sheets.get(changedSheetId), selections, nextSelections)),
3153
+ });
3154
+ }
3155
+ onChangeSelections === null || onChangeSelections === void 0 ? void 0 : onChangeSelections(changedSheetId, nextSelections, finishedSelection);
3156
+ }, [
3157
+ store,
3158
+ isPickingForCellEntry,
3159
+ typingCell,
3160
+ sheetId,
3161
+ selections,
3162
+ onChangeSelections,
3163
+ ]));
3164
+ /**
3165
+ * Takes the entry's picked ranges out of every sheet's selection: each sheet
3166
+ * a range was picked on gets its own selection back. A sheet nothing was
3167
+ * picked on keeps its selection as it is, whatever references the formula
3168
+ * holds (Excel keeps the selected range through Enter and Escape, and when
3169
+ * the formula is deleted while it is still being typed).
3170
+ */
3171
+ var putBackEntrySelections = (0, use_callback_ref_1.useCallbackRef)((0, react_1.useCallback)(function (state, finishedSelection) {
3172
+ var sheets = new Map(state.sheets);
3173
+ state.sheets.forEach(function (sheet, pickedSheetId) {
3174
+ if (!sheet.written) {
3175
+ return;
3176
+ }
3177
+ if (finishedSelection === undefined) {
3178
+ onChangeSelections === null || onChangeSelections === void 0 ? void 0 : onChangeSelections(pickedSheetId, sheet.own);
3179
+ }
3180
+ else {
3181
+ onChangeSelections === null || onChangeSelections === void 0 ? void 0 : onChangeSelections(pickedSheetId, sheet.own, finishedSelection);
3182
+ }
3183
+ sheets.set(pickedSheetId, (0, entry_selections_1.afterPutBack)(sheet));
3184
+ });
3185
+ return sheets;
3186
+ }, [onChangeSelections]));
3187
+ // The entry's state follows what the host gives. It runs after every render
3188
+ // that brings another entry, another sheet in view or another selection, so
3189
+ // it reads the host's selection as it is now, including one the host set in
3190
+ // the same tick as it cancelled or reopened the editor (a collaborator's
3191
+ // edit moving the cell being typed in).
3192
+ (0, use_isomorphic_layout_effect_1.useIsomorphicLayoutEffect)(function () {
3193
+ var _a;
3194
+ var state = store.get(entry_selections_atom_1.entrySelectionsAtom);
3195
+ var isSameEntry = (0, entry_selections_1.isSameEntryCell)(state === null || state === void 0 ? void 0 : state.cell, typingCell);
3196
+ var kept = isSameEntry ? state === null || state === void 0 ? void 0 : state.sheets : undefined;
3197
+ var sheets = kept;
3198
+ var seeded;
3199
+ if (state && !isSameEntry) {
3200
+ // The entry ended (committed, cancelled, closed by the floating editor)
3201
+ // or another cell's entry took its place: its picks leave the
3202
+ // selections. The sheet in view is read first, as the host has it now.
3203
+ var inView_1 = state.sheets.get(sheetId);
3204
+ seeded = putBackEntrySelections(inView_1
3205
+ ? {
3206
+ cell: state.cell,
3207
+ sheets: new Map(state.sheets).set(sheetId, (0, entry_selections_1.afterHostGave)(inView_1, selections)),
3208
+ }
3209
+ : state);
3210
+ }
3211
+ if (!typingCell) {
3212
+ if (state) {
3213
+ store.set(entry_selections_atom_1.entrySelectionsAtom, undefined);
3214
+ }
3215
+ return;
3216
+ }
3217
+ var known = sheets === null || sheets === void 0 ? void 0 : sheets.get(sheetId);
3218
+ var putBack = seeded === null || seeded === void 0 ? void 0 : seeded.get(sheetId);
3219
+ var inView = known;
3220
+ if (known) {
3221
+ inView = (0, entry_selections_1.afterHostGave)(known, selections);
3222
+ }
3223
+ else if (sheetId === typingCell.sheetId && (formulaMode || putBack)) {
3224
+ // The typing sheet is kept from the moment the entry is a formula: only
3225
+ // a formula takes a pick or stays open while another sheet is shown. A
3226
+ // constant reads the selection in view. What was just put back is what
3227
+ // the sheet has; the host shows it on its next render.
3228
+ inView = (0, entry_selections_1.entrySheetSelections)((_a = putBack === null || putBack === void 0 ? void 0 : putBack.own) !== null && _a !== void 0 ? _a : selections, selections);
3229
+ }
3230
+ if (inView !== known) {
3231
+ sheets = new Map(sheets).set(sheetId, inView);
3232
+ }
3233
+ if (sheets && sheets !== kept) {
3234
+ store.set(entry_selections_atom_1.entrySelectionsAtom, { cell: typingCell, sheets: sheets });
3235
+ }
3236
+ else if (state && !isSameEntry) {
3237
+ store.set(entry_selections_atom_1.entrySelectionsAtom, undefined);
3238
+ }
3239
+ }, [
3240
+ store,
3241
+ typingCell,
3242
+ sheetId,
3243
+ selections,
3244
+ formulaMode,
3245
+ putBackEntrySelections,
3246
+ ]);
3247
+ /**
3248
+ * What the sheet the entry is typed on has selected, apart from any range
3249
+ * picked for its formula, whatever sheet is in view: during a pick on
3250
+ * another sheet the sheet in view is the referenced one, and its selection
3251
+ * is not the entry's. The grid is handed the selection of the sheet in view
3252
+ * only, so the typing sheet's is what the host last gave for it while it
3253
+ * was in view during this entry; an entry opened on a sheet that has not
3254
+ * been in view since has none.
3255
+ */
3256
+ var typingSheetSelections = typingSheetId !== undefined &&
3257
+ (0, entry_selections_1.isSameEntryCell)(entrySelectionsState === null || entrySelectionsState === void 0 ? void 0 : entrySelectionsState.cell, typingCell)
3258
+ ? entrySelectionsState === null || entrySelectionsState === void 0 ? void 0 : entrySelectionsState.sheets.get(typingSheetId)
3259
+ : undefined;
3260
+ var entrySelections = typingSheetId === undefined
3261
+ ? undefined
3262
+ : typingSheetSelections
3263
+ ? typingSheetSelections.own
3264
+ : typingSheetId === sheetId
3265
+ ? selections
3266
+ : config_1.DEFAULT_ARRAY;
3113
3267
  /**
3114
3268
  * Selection change handler
3115
3269
  */
3116
3270
  var onSelectionChange = (0, use_selection_change_1.useSelectionChange)({
3117
- onChangeSelections: onChangeSelections,
3271
+ onChangeSelections: onChangeSelectionsFromGrid,
3118
3272
  getSheetName: getSheetName,
3119
3273
  sheetId: sheetId,
3120
3274
  });
@@ -3925,29 +4079,25 @@ function CanvasGridComponent(props, forwardedRef) {
3925
4079
  };
3926
4080
  }, [onRequestGoTo, isGoToDialogMounted]);
3927
4081
  /**
3928
- * After formula mode
3929
- * Recover old selections
4082
+ * The entry stopped being a formula while it is still open: its picked
4083
+ * ranges leave the selections now. An entry that ends (Enter, Tab, Escape,
4084
+ * a click elsewhere) has them taken out by the effect above, once the host
4085
+ * has rendered what it holds.
3930
4086
  */
3931
4087
  var restoreSelections = (0, use_callback_ref_1.useCallbackRef)((0, react_1.useCallback)(function () {
3932
- if (!formulaMode || !formulaSelections.length) {
4088
+ var state = store.get(entry_selections_atom_1.entrySelectionsAtom);
4089
+ if (!state || !(0, entry_selections_1.hasEntryPicks)(state)) {
3933
4090
  return;
3934
4091
  }
3935
- var len = selections.length - formulaSelections.length;
3936
- onChangeSelections === null || onChangeSelections === void 0 ? void 0 : onChangeSelections(sheetId, selections.filter(function (_, i) { return i < len; }));
3937
- }, [
3938
- sheetId,
3939
- selections,
3940
- formulaMode,
3941
- formulaSelections,
3942
- onChangeSelections,
3943
- ]));
4092
+ var sheets = putBackEntrySelections(state, true);
4093
+ store.set(entry_selections_atom_1.entrySelectionsAtom, { cell: state.cell, sheets: sheets });
4094
+ }, [store, putBackEntrySelections]));
3944
4095
  /**
3945
4096
  * Callback when editor value changes
3946
4097
  */
3947
4098
  var onEditorChange = (0, use_editor_change_1.useEditorChange)({
3948
- selections: selections,
3949
4099
  onChangeActiveCell: onChangeActiveCell,
3950
- onChangeSelections: onChangeSelections,
4100
+ restoreSelections: restoreSelections,
3951
4101
  getSelectionsFromFormula: getSelectionsFromFormula,
3952
4102
  onChangeEditorValue: onChangeEditorValue,
3953
4103
  formulaLocale: formulaLocale,
@@ -3995,11 +4145,12 @@ function CanvasGridComponent(props, forwardedRef) {
3995
4145
  reopenEditor: reopenEditor,
3996
4146
  onChangeActiveSheet: onChangeActiveSheet,
3997
4147
  setActiveCell: setActiveCell,
3998
- onComplete: restoreSelections,
3999
4148
  onChange: onChange,
4000
4149
  getCommitValidation: getCommitValidation,
4001
4150
  showValidationAlert: showValidationAlert,
4002
- selections: selections,
4151
+ // Ctrl+Enter fills what the typing sheet had selected: not a range picked
4152
+ // for the formula, nor what another sheet in view has selected.
4153
+ selections: entrySelections !== null && entrySelections !== void 0 ? entrySelections : selections,
4003
4154
  onChangeBatch: onChangeBatch,
4004
4155
  batchHistory: batchHistory,
4005
4156
  formulaLocale: formulaLocale,
@@ -4018,7 +4169,6 @@ function CanvasGridComponent(props, forwardedRef) {
4018
4169
  sheetId: sheetId,
4019
4170
  onChangeActiveSheet: onChangeActiveSheet,
4020
4171
  setActiveCell: setActiveCell,
4021
- onComplete: restoreSelections,
4022
4172
  });
4023
4173
  // The editor callbacks also drive the automatic Flash Fill suggestion: typing plans it, a
4024
4174
  // keyboard commit of the same text accepts it, Escape drops it.
@@ -4160,8 +4310,8 @@ function CanvasGridComponent(props, forwardedRef) {
4160
4310
  */
4161
4311
  var selectRangeFromMenu = (0, react_1.useCallback)(function (targetSheetId, range) {
4162
4312
  setActiveCell(targetSheetId, { rowIndex: range.startRowIndex, columnIndex: range.startColumnIndex }, false);
4163
- onChangeSelections === null || onChangeSelections === void 0 ? void 0 : onChangeSelections(targetSheetId, [{ range: range }]);
4164
- }, [setActiveCell, onChangeSelections]);
4313
+ onChangeSelectionsFromGrid(targetSheetId, [{ range: range }]);
4314
+ }, [setActiveCell, onChangeSelectionsFromGrid]);
4165
4315
  // Excel's table hit zones (header top edge / corner / row left edge).
4166
4316
  var _102 = (0, use_table_hit_zones_1.useTableHitZones)({
4167
4317
  sheetId: sheetId,
@@ -4438,6 +4588,10 @@ function CanvasGridComponent(props, forwardedRef) {
4438
4588
  frozenRows: frozenRows,
4439
4589
  activeCell: activeCell,
4440
4590
  selections: selections,
4591
+ // The commit key moves the active cell inside the selection of the sheet
4592
+ // the entry is typed on: never inside a range picked for the formula, nor
4593
+ // inside what another sheet in view has selected.
4594
+ navigationSelections: entrySelections,
4441
4595
  getSheetColumnCount: getSheetColumnCount,
4442
4596
  getSheetRowCount: getSheetRowCount,
4443
4597
  getValue: getEditorDisplayValue,
@@ -5533,14 +5687,20 @@ function CanvasGridComponent(props, forwardedRef) {
5533
5687
  range: tslib_1.__assign(tslib_1.__assign({}, table.range), { startColumnIndex: firstCell.columnIndex, endColumnIndex: Math.max(firstCell.columnIndex, (_a = selection === null || selection === void 0 ? void 0 : selection.range.endColumnIndex) !== null && _a !== void 0 ? _a : 0) }),
5534
5688
  };
5535
5689
  // Update column selection
5536
- onChangeSelections === null || onChangeSelections === void 0 ? void 0 : onChangeSelections(sheetId, [columnSelection]);
5690
+ onChangeSelectionsFromGrid(sheetId, [columnSelection]);
5537
5691
  // Pass column
5538
5692
  onSelectionMouseDown === null || onSelectionMouseDown === void 0 ? void 0 : onSelectionMouseDown(e, cell, columnSelection, index, shouldClamp);
5539
5693
  }
5540
5694
  else {
5541
5695
  onSelectionMouseDown === null || onSelectionMouseDown === void 0 ? void 0 : onSelectionMouseDown(e, cell, selection, index, shouldClamp);
5542
5696
  }
5543
- }, [onSelectionMouseDown, onChangeSelections, isTableHeader, tables, sheetId]);
5697
+ }, [
5698
+ onSelectionMouseDown,
5699
+ onChangeSelectionsFromGrid,
5700
+ isTableHeader,
5701
+ tables,
5702
+ sheetId,
5703
+ ]);
5544
5704
  // Selection resize
5545
5705
  var onMouseDownResizeHandle = (0, use_selection_resize_1.useSelectionResize)({
5546
5706
  getCellBounds: getCellBounds,
@@ -5608,7 +5768,7 @@ function CanvasGridComponent(props, forwardedRef) {
5608
5768
  onMouseDownMoveSelection: onMouseDownMoveSelection,
5609
5769
  isDraggingMoveSelection: isDraggingMoveSelection,
5610
5770
  onChangeActiveCell: onChangeActiveCell,
5611
- onChangeSelections: onChangeSelections,
5771
+ onChangeSelections: onChangeSelectionsFromGrid,
5612
5772
  SelectionTitleComponent: SelectionTitleComponent,
5613
5773
  selectionCount: (formulaMode ? formulaSelections : selections).length,
5614
5774
  selectionBackgroundColor: selectionBackgroundColor,
@@ -134,6 +134,14 @@ export type UseEditableOptions<T extends CellData> = {
134
134
  * Currently selected cells, injected by useSelection
135
135
  */
136
136
  selections: SelectionArea[];
137
+ /**
138
+ * The selections a commit key moves the active cell inside
139
+ * (`getNextFocusableCell`). `selections` when omitted. While a formula is
140
+ * taking picks, `selections` holds the range being picked, or is another
141
+ * sheet's altogether when the pick is made there; the move belongs inside
142
+ * what the sheet the entry is typed on had selected before any pick.
143
+ */
144
+ navigationSelections?: SelectionArea[];
137
145
  /**
138
146
  * Active selected cell. This can change, if the user is in formula mode
139
147
  */
@@ -405,7 +413,7 @@ export declare const areTextFormatRunsEqual: (a: TextFormatRun[] | undefined | n
405
413
  *
406
414
  * Moves to incorrect cell
407
415
  */
408
- export declare const useEditable: <T extends CellData>({ getEditor, getValue, getTextFormatRuns, onChange, onSubmit, onCancel, onBlur, onDelete, sheetId, selections, activeCell, canEdit, canView, frozenRows, frozenColumns, hideOnBlur, isHiddenRow, isHiddenColumn, rowCount, columnCount, selectionTopBound, selectionBottomBound, selectionLeftBound, selectionRightBound, enableEditOnEnterKey, keymap, clearSelections, onRequestCut, shouldHandleKeyDown, sticky, editorBorderColor, editorBorderOutlineColor, onBeforeEdit, onKeyDown, onEditorKeyDown, getCellOffsetFromCoords, getCellCoordsFromOffset, getCellBounds, focus, getActualCellCoords, scrollToCell, onChangeBatch, containerWidth, containerHeight, getScrollPosition, getColumnOffset, getEditorAlignment, getSheetRowCount, getSheetColumnCount, getBooleanValue, getDataValidation, setActiveCell, onCopy, onPaste, onCut, tables, onInsertTableRow, }: UseEditableOptions<T>) => {
416
+ export declare const useEditable: <T extends CellData>({ getEditor, getValue, getTextFormatRuns, onChange, onSubmit, onCancel, onBlur, onDelete, sheetId, selections, navigationSelections, activeCell, canEdit, canView, frozenRows, frozenColumns, hideOnBlur, isHiddenRow, isHiddenColumn, rowCount, columnCount, selectionTopBound, selectionBottomBound, selectionLeftBound, selectionRightBound, enableEditOnEnterKey, keymap, clearSelections, onRequestCut, shouldHandleKeyDown, sticky, editorBorderColor, editorBorderOutlineColor, onBeforeEdit, onKeyDown, onEditorKeyDown, getCellOffsetFromCoords, getCellCoordsFromOffset, getCellBounds, focus, getActualCellCoords, scrollToCell, onChangeBatch, containerWidth, containerHeight, getScrollPosition, getColumnOffset, getEditorAlignment, getSheetRowCount, getSheetColumnCount, getBooleanValue, getDataValidation, setActiveCell, onCopy, onPaste, onCut, tables, onInsertTableRow, }: UseEditableOptions<T>) => {
409
417
  editorComponent: React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
410
418
  onDoubleClick: (e: React.MouseEvent<HTMLElement>) => void;
411
419
  getNextFocusableCell: (sheetId: number, currentCell: CellInterface, direction?: Direction, restrictWithinSelection?: boolean) => CellInterface | null;
@@ -1 +1 @@
1
- {"version":3,"file":"use-editable.d.ts","sourceRoot":"","sources":["../../../hooks/use-editable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,aAAa,EACb,YAAY,EACZ,SAAS,EACT,UAAU,EACV,qBAAqB,EACrB,YAAY,EACZ,aAAa,EACd,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAEL,SAAS,EAIV,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAIzE,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG7D;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,wDAAwD;IACxD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6EAA6E;IAC7E,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;OAKG;IACH,aAAa,CA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