@rowsncolumns/spreadsheet 10.19.4 → 10.19.6

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 (123) hide show
  1. package/dist/cjs/api/entry-selections.d.ts +6 -0
  2. package/dist/cjs/api/entry-selections.d.ts.map +1 -1
  3. package/dist/cjs/api/entry-selections.js +11 -1
  4. package/dist/cjs/atoms/cell-input-context.atom.d.ts.map +1 -1
  5. package/dist/cjs/components/advanced-filter-dialog/index.d.ts.map +1 -1
  6. package/dist/cjs/components/advanced-filter-dialog/index.js +6 -6
  7. package/dist/cjs/components/calculation-options-dialog/index.d.ts.map +1 -1
  8. package/dist/cjs/components/calculation-options-dialog/index.js +3 -3
  9. package/dist/cjs/components/canvas-grid/index.d.ts.map +1 -1
  10. package/dist/cjs/components/canvas-grid/index.js +65 -17
  11. package/dist/cjs/components/canvas-grid/typings.d.ts +12 -0
  12. package/dist/cjs/components/canvas-grid/typings.d.ts.map +1 -1
  13. package/dist/cjs/components/cell-input/formula-bar-cell-input.d.ts.map +1 -1
  14. package/dist/cjs/components/cell-input/formula-bar-cell-input.js +8 -2
  15. package/dist/cjs/components/consolidate-dialog/index.d.ts.map +1 -1
  16. package/dist/cjs/components/consolidate-dialog/index.js +12 -8
  17. package/dist/cjs/components/data-table-dialog/index.d.ts.map +1 -1
  18. package/dist/cjs/components/data-table-dialog/index.js +2 -2
  19. package/dist/cjs/components/evaluate-formula-dialog/index.d.ts.map +1 -1
  20. package/dist/cjs/components/evaluate-formula-dialog/index.js +9 -3
  21. package/dist/cjs/components/fill-series-dialog/index.d.ts.map +1 -1
  22. package/dist/cjs/components/fill-series-dialog/index.js +22 -6
  23. package/dist/cjs/components/forecast-sheet-dialog/index.d.ts.map +1 -1
  24. package/dist/cjs/components/forecast-sheet-dialog/index.js +4 -4
  25. package/dist/cjs/components/go-to-dialog/index.d.ts.map +1 -1
  26. package/dist/cjs/components/go-to-dialog/index.js +19 -6
  27. package/dist/cjs/components/goal-seek-dialog/index.d.ts.map +1 -1
  28. package/dist/cjs/components/goal-seek-dialog/index.js +5 -5
  29. package/dist/cjs/components/insert-cells-dialog/index.d.ts.map +1 -1
  30. package/dist/cjs/components/insert-cells-dialog/index.js +9 -9
  31. package/dist/cjs/components/move-chart-dialog/index.d.ts.map +1 -1
  32. package/dist/cjs/components/move-chart-dialog/index.js +4 -2
  33. package/dist/cjs/components/outline-settings-dialog/index.d.ts.map +1 -1
  34. package/dist/cjs/components/outline-settings-dialog/index.js +7 -5
  35. package/dist/cjs/components/paste-special-dialog/index.d.ts.map +1 -1
  36. package/dist/cjs/components/paste-special-dialog/index.js +22 -20
  37. package/dist/cjs/components/protect-sheet-dialog/index.d.ts.map +1 -1
  38. package/dist/cjs/components/protect-sheet-dialog/index.js +4 -3
  39. package/dist/cjs/components/remove-duplicates-dialog/index.d.ts.map +1 -1
  40. package/dist/cjs/components/remove-duplicates-dialog/index.js +5 -3
  41. package/dist/cjs/components/scenario-manager-dialog/index.d.ts.map +1 -1
  42. package/dist/cjs/components/scenario-manager-dialog/index.js +16 -11
  43. package/dist/cjs/components/solver-dialog/index.d.ts.map +1 -1
  44. package/dist/cjs/components/solver-dialog/index.js +12 -10
  45. package/dist/cjs/components/sort-range-dialog/index.d.ts.map +1 -1
  46. package/dist/cjs/components/sort-range-dialog/index.js +13 -9
  47. package/dist/cjs/components/sparkline-dialog/index.d.ts.map +1 -1
  48. package/dist/cjs/components/sparkline-dialog/index.js +4 -2
  49. package/dist/cjs/components/subtotal-dialog/index.d.ts.map +1 -1
  50. package/dist/cjs/components/subtotal-dialog/index.js +6 -5
  51. package/dist/cjs/components/text-to-columns-dialog/index.d.ts.map +1 -1
  52. package/dist/cjs/components/text-to-columns-dialog/index.js +5 -4
  53. package/dist/cjs/hooks/use-editable.d.ts +7 -1
  54. package/dist/cjs/hooks/use-editable.d.ts.map +1 -1
  55. package/dist/cjs/hooks/use-editable.js +72 -8
  56. package/dist/cjs/hooks/use-editor-submit.d.ts +6 -1
  57. package/dist/cjs/hooks/use-editor-submit.d.ts.map +1 -1
  58. package/dist/cjs/hooks/use-editor-submit.js +14 -6
  59. package/dist/cjs/hooks/use-selection.d.ts.map +1 -1
  60. package/dist/cjs/hooks/use-selection.js +2 -2
  61. package/dist/cjs/release-date.js +1 -1
  62. package/dist/esm/api/entry-selections.d.ts +6 -0
  63. package/dist/esm/api/entry-selections.d.ts.map +1 -1
  64. package/dist/esm/api/entry-selections.js +10 -0
  65. package/dist/esm/atoms/cell-input-context.atom.d.ts.map +1 -1
  66. package/dist/esm/components/advanced-filter-dialog/index.d.ts.map +1 -1
  67. package/dist/esm/components/advanced-filter-dialog/index.js +7 -7
  68. package/dist/esm/components/calculation-options-dialog/index.d.ts.map +1 -1
  69. package/dist/esm/components/calculation-options-dialog/index.js +4 -4
  70. package/dist/esm/components/canvas-grid/index.d.ts.map +1 -1
  71. package/dist/esm/components/canvas-grid/index.js +64 -17
  72. package/dist/esm/components/canvas-grid/typings.d.ts +12 -0
  73. package/dist/esm/components/canvas-grid/typings.d.ts.map +1 -1
  74. package/dist/esm/components/cell-input/formula-bar-cell-input.d.ts.map +1 -1
  75. package/dist/esm/components/cell-input/formula-bar-cell-input.js +9 -3
  76. package/dist/esm/components/consolidate-dialog/index.d.ts.map +1 -1
  77. package/dist/esm/components/consolidate-dialog/index.js +13 -9
  78. package/dist/esm/components/data-table-dialog/index.d.ts.map +1 -1
  79. package/dist/esm/components/data-table-dialog/index.js +3 -3
  80. package/dist/esm/components/evaluate-formula-dialog/index.d.ts.map +1 -1
  81. package/dist/esm/components/evaluate-formula-dialog/index.js +7 -3
  82. package/dist/esm/components/fill-series-dialog/index.d.ts.map +1 -1
  83. package/dist/esm/components/fill-series-dialog/index.js +23 -7
  84. package/dist/esm/components/forecast-sheet-dialog/index.d.ts.map +1 -1
  85. package/dist/esm/components/forecast-sheet-dialog/index.js +5 -5
  86. package/dist/esm/components/go-to-dialog/index.d.ts.map +1 -1
  87. package/dist/esm/components/go-to-dialog/index.js +20 -7
  88. package/dist/esm/components/goal-seek-dialog/index.d.ts.map +1 -1
  89. package/dist/esm/components/goal-seek-dialog/index.js +6 -6
  90. package/dist/esm/components/insert-cells-dialog/index.d.ts.map +1 -1
  91. package/dist/esm/components/insert-cells-dialog/index.js +10 -10
  92. package/dist/esm/components/move-chart-dialog/index.d.ts.map +1 -1
  93. package/dist/esm/components/move-chart-dialog/index.js +5 -3
  94. package/dist/esm/components/outline-settings-dialog/index.d.ts.map +1 -1
  95. package/dist/esm/components/outline-settings-dialog/index.js +8 -6
  96. package/dist/esm/components/paste-special-dialog/index.d.ts.map +1 -1
  97. package/dist/esm/components/paste-special-dialog/index.js +23 -21
  98. package/dist/esm/components/protect-sheet-dialog/index.d.ts.map +1 -1
  99. package/dist/esm/components/protect-sheet-dialog/index.js +5 -4
  100. package/dist/esm/components/remove-duplicates-dialog/index.d.ts.map +1 -1
  101. package/dist/esm/components/remove-duplicates-dialog/index.js +6 -4
  102. package/dist/esm/components/scenario-manager-dialog/index.d.ts.map +1 -1
  103. package/dist/esm/components/scenario-manager-dialog/index.js +17 -12
  104. package/dist/esm/components/solver-dialog/index.d.ts.map +1 -1
  105. package/dist/esm/components/solver-dialog/index.js +13 -11
  106. package/dist/esm/components/sort-range-dialog/index.d.ts.map +1 -1
  107. package/dist/esm/components/sort-range-dialog/index.js +14 -10
  108. package/dist/esm/components/sparkline-dialog/index.d.ts.map +1 -1
  109. package/dist/esm/components/sparkline-dialog/index.js +5 -3
  110. package/dist/esm/components/subtotal-dialog/index.d.ts.map +1 -1
  111. package/dist/esm/components/subtotal-dialog/index.js +7 -6
  112. package/dist/esm/components/text-to-columns-dialog/index.d.ts.map +1 -1
  113. package/dist/esm/components/text-to-columns-dialog/index.js +6 -5
  114. package/dist/esm/hooks/use-editable.d.ts +7 -1
  115. package/dist/esm/hooks/use-editable.d.ts.map +1 -1
  116. package/dist/esm/hooks/use-editable.js +69 -5
  117. package/dist/esm/hooks/use-editor-submit.d.ts +6 -1
  118. package/dist/esm/hooks/use-editor-submit.d.ts.map +1 -1
  119. package/dist/esm/hooks/use-editor-submit.js +14 -4
  120. package/dist/esm/hooks/use-selection.d.ts.map +1 -1
  121. package/dist/esm/hooks/use-selection.js +2 -2
  122. package/dist/esm/release-date.js +1 -1
  123. package/package.json +3 -3
@@ -35,6 +35,12 @@ export type EntryCell = {
35
35
  rowIndex: number;
36
36
  columnIndex: number;
37
37
  };
38
+ /**
39
+ * Stands for the entry of a range input beside the grid (`FormulaInput`),
40
+ * which is typed in no cell: its picks leave the selections when it gives up
41
+ * formula mode. No cell has these coordinates.
42
+ */
43
+ export declare const RANGE_INPUT_ENTRY: EntryCell;
38
44
  export type EntrySelections = {
39
45
  /** The cell the entry is typed in: another cell is another entry. */
40
46
  cell: EntryCell;
@@ -1 +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"}
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;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAI/B,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"}
@@ -1,7 +1,17 @@
1
1
  "use strict";
2
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;
3
+ exports.afterPutBack = exports.hasEntryPicks = exports.afterHostGave = exports.afterPick = exports.entrySheetSelections = exports.sameRanges = exports.leadingSameRanges = exports.isSameEntryCell = exports.RANGE_INPUT_ENTRY = void 0;
4
4
  var tslib_1 = require("tslib");
5
+ /**
6
+ * Stands for the entry of a range input beside the grid (`FormulaInput`),
7
+ * which is typed in no cell: its picks leave the selections when it gives up
8
+ * formula mode. No cell has these coordinates.
9
+ */
10
+ exports.RANGE_INPUT_ENTRY = {
11
+ sheetId: -1,
12
+ rowIndex: -1,
13
+ columnIndex: -1,
14
+ };
5
15
  var isSameEntryCell = function (a, b) {
6
16
  return a !== undefined &&
7
17
  b !== undefined &&
@@ -1 +1 @@
1
- {"version":3,"file":"cell-input-context.atom.d.ts","sourceRoot":"","sources":["../../../atoms/cell-input-context.atom.ts"],"names":[],"mappings":"AAoCA,eAAO,MAAM,mBAAmB;;;;oBAC4m8F,CAAC;qBAAwB,CAAC;;;;;;;;;;;CADvl8F,CAAC"}
1
+ {"version":3,"file":"cell-input-context.atom.d.ts","sourceRoot":"","sources":["../../../atoms/cell-input-context.atom.ts"],"names":[],"mappings":"AAoCA,eAAO,MAAM,mBAAmB;;;;oBACi09F,CAAC;qBAAwB,CAAC;;;;;;;;;;;CAD5y9F,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/advanced-filter-dialog/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAMtE,OAAO,KAAK,EAAwB,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE/E,MAAM,MAAM,yBAAyB,GAAG;IACtC,2BAA2B;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,oFAAoF;IACpF,gBAAgB,EAAE,MAAM,CAAC;IACzB,8EAA8E;IAC9E,OAAO,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAAC;CAC/C,CAAC;AAQF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,gFACqB,yBAAyB,uBAsK9E,CAAC;AAIF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;;CAcpC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/advanced-filter-dialog/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAMtE,OAAO,KAAK,EAAwB,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE/E,MAAM,MAAM,yBAAyB,GAAG;IACtC,2BAA2B;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,oFAAoF;IACpF,gBAAgB,EAAE,MAAM,CAAC;IACzB,8EAA8E;IAC9E,OAAO,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAAC;CAC/C,CAAC;AAQF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,gFACqB,yBAAyB,uBAsK9E,CAAC;AAIF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;;CAcpC,CAAC"}
@@ -82,31 +82,31 @@ exports.AdvancedFilterDialog = (0, react_1.memo)(function (_a) {
82
82
  react_1.default.createElement("div", { className: "flex flex-col gap-1", role: "radiogroup", "aria-label": "Action" },
83
83
  react_1.default.createElement("label", { className: "flex items-center gap-1" },
84
84
  react_1.default.createElement("input", { type: "radio", name: "advanced-filter-action", value: "filter", checked: action === "filter", onChange: function () { return setAction("filter"); } }),
85
- "Filter the list, in-place"),
85
+ react_1.default.createElement(ui_1.AccessKeyLabel, { accessKey: "f" }, "Filter the list, in-place")),
86
86
  react_1.default.createElement("label", { className: "flex items-center gap-1" },
87
87
  react_1.default.createElement("input", { type: "radio", name: "advanced-filter-action", value: "copy", checked: action === "copy", onChange: function () { return setAction("copy"); } }),
88
- "Copy to another location")),
88
+ react_1.default.createElement(ui_1.AccessKeyLabel, { accessKey: "o" }, "Copy to another location"))),
89
89
  react_1.default.createElement("label", { className: "flex flex-col gap-1 text-xs font-medium" },
90
- "List range:",
90
+ react_1.default.createElement(ui_1.AccessKeyLabel, { accessKey: "l" }, "List range:"),
91
91
  react_1.default.createElement(ui_1.Input, { value: listRange, "aria-label": "List range", onChange: function (e) {
92
92
  setListRange(e.target.value);
93
93
  setError(undefined);
94
94
  } })),
95
95
  react_1.default.createElement("label", { className: "flex flex-col gap-1 text-xs font-medium" },
96
- "Criteria range:",
96
+ react_1.default.createElement(ui_1.AccessKeyLabel, { accessKey: "c" }, "Criteria range:"),
97
97
  react_1.default.createElement(ui_1.Input, { autoFocus: true, value: criteriaRange, "aria-label": "Criteria range", placeholder: "e.g. E1:F3", onChange: function (e) {
98
98
  setCriteriaRange(e.target.value);
99
99
  setError(undefined);
100
100
  } })),
101
101
  action === "copy" ? (react_1.default.createElement("label", { className: "flex flex-col gap-1 text-xs font-medium" },
102
- "Copy to:",
102
+ react_1.default.createElement(ui_1.AccessKeyLabel, { accessKey: "t" }, "Copy to:"),
103
103
  react_1.default.createElement(ui_1.Input, { value: copyTo, "aria-label": "Copy to", placeholder: "e.g. H1", onChange: function (e) {
104
104
  setCopyTo(e.target.value);
105
105
  setError(undefined);
106
106
  } }))) : null,
107
107
  react_1.default.createElement("label", { className: "flex items-center gap-1" },
108
108
  react_1.default.createElement("input", { type: "checkbox", name: "uniqueOnly", checked: uniqueOnly, onChange: function (e) { return setUniqueOnly(e.target.checked); } }),
109
- "Unique records only"),
109
+ react_1.default.createElement(ui_1.AccessKeyLabel, { accessKey: "r" }, "Unique records only")),
110
110
  error ? (react_1.default.createElement("div", { role: "alert", className: "text-xs text-rnc-destructive" }, error)) : null,
111
111
  react_1.default.createElement(ui_1.Separator, null),
112
112
  react_1.default.createElement("div", { className: "flex justify-end gap-2" },
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/calculation-options-dialog/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAE9C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE/D,0EAA0E;AAC1E,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,2BAA2B,CAK7E,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GACxC,OAAO;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,EACrE,SAAS,2BAA2B,GAAG,SAAS,KAC/C,2BAeF,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,mEAAmE;IACnE,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,2BAA2B,GAAG,IAAI,CAAC;CACnD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,sEACO,6BAA6B,uBAgFxE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/calculation-options-dialog/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAE9C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE/D,0EAA0E;AAC1E,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,2BAA2B,CAK7E,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GACxC,OAAO;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,EACrE,SAAS,2BAA2B,GAAG,SAAS,KAC/C,2BAeF,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,mEAAmE;IACnE,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,2BAA2B,GAAG,IAAI,CAAC;CACnD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,sEACO,6BAA6B,uBAoFxE,CAAC"}
@@ -54,12 +54,12 @@ exports.CalculationOptionsDialog = (0, react_1.memo)(function (_a) {
54
54
  } },
55
55
  react_1.default.createElement("label", { className: "flex items-center gap-2 text-xs font-medium" },
56
56
  react_1.default.createElement("input", { type: "checkbox", checked: enabled, onChange: function (e) { return setEnabled(e.target.checked); } }),
57
- "Enable iterative calculation"),
57
+ react_1.default.createElement(ui_1.AccessKeyLabel, { accessKey: "i" }, "Enable iterative calculation")),
58
58
  react_1.default.createElement("label", { className: "flex flex-col gap-1 text-xs font-medium" },
59
- "Maximum iterations:",
59
+ react_1.default.createElement(ui_1.AccessKeyLabel, { accessKey: "x" }, "Maximum iterations:"),
60
60
  react_1.default.createElement(ui_1.Input, { type: "number", min: 1, max: 32767, step: 1, value: maxIterations, disabled: !enabled, onChange: function (e) { return setMaxIterations(e.target.value); } })),
61
61
  react_1.default.createElement("label", { className: "flex flex-col gap-1 text-xs font-medium" },
62
- "Maximum change:",
62
+ react_1.default.createElement(ui_1.AccessKeyLabel, { accessKey: "c" }, "Maximum change:"),
63
63
  react_1.default.createElement(ui_1.Input, { type: "number", min: 0, step: "any", value: maxChange, disabled: !enabled, onChange: function (e) { return setMaxChange(e.target.value); } })),
64
64
  react_1.default.createElement(ui_1.Separator, null),
65
65
  react_1.default.createElement("div", { className: "flex justify-end gap-2" },
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/canvas-grid/index.tsx"],"names":[],"mappings":"AAqEA,OAAO,KASN,MAAM,OAAO,CAAC;AAoSf,OAAO,KAAK,EAGV,QAAQ,EAcT,MAAM,aAAa,CAAC;AA0DrB,OAAO,KAAK,EACV,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,EAEhB,MAAM,WAAW,CAAC;AAw/QnB,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"}
@@ -182,7 +182,7 @@ var getObjectPlaceholder = function () { return (react_1.default.createElement("
182
182
  function CanvasGridComponent(props, forwardedRef) {
183
183
  var _this = this;
184
184
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
185
- var licenseKey = props.licenseKey, sheetId = props.sheetId, sheetType = props.sheetType, _q = props.ChartSheetView, ChartSheetViewComponent = _q === void 0 ? chart_sheet_view_1.ChartSheetView : _q, instanceId = props.instanceId, _r = props.activeCell, activeCell = _r === void 0 ? config_1.DEFAULT_ACTIVE_CELL : _r, _s = props.selections, selections = _s === void 0 ? config_1.DEFAULT_ARRAY : _s, _t = props.frozenColumnCount, frozenColumnCount = _t === void 0 ? 0 : _t, _u = props.frozenRowCount, frozenRowCount = _u === void 0 ? 0 : _u, frozenRowStart = props.frozenRowStart, frozenColumnStart = props.frozenColumnStart, _v = props.rowCount, rowCount = _v === void 0 ? config_1.DEFAULT_ROW_COUNT : _v, _w = props.columnCount, columnCount = _w === void 0 ? config_1.DEFAULT_COLUMN_COUNT : _w, autoFocus = props.autoFocus, basicFilter = props.basicFilter, tables = props.tables, namedRanges = props.namedRanges, _x = props.bandedRanges, bandedRanges = _x === void 0 ? config_1.DEFAULT_ARRAY : _x, _y = props.tableBorderColor, tableBorderColor = _y === void 0 ? "#008000" : _y, _z = props.filterIconColor, filterIconColor = _z === void 0 ? config_1.FILTER_BUTTON_GLYPH_COLOR : _z, conditionalFormats = props.conditionalFormats, _0 = props.showFilterIcon, showFilterIcon = _0 === void 0 ? true : _0, _1 = props.showCalculatedColumnIcon, showCalculatedColumnIcon = _1 === void 0 ? true : _1, _2 = props.showHeaders, showHeaders = _2 === void 0 ? true : _2, backgroundImageUrl = props.backgroundImageUrl, _3 = props.defaultColumnWidth, defaultColumnWidth = _3 === void 0 ? config_1.DEFAULT_COLUMN_WIDTH : _3, _4 = props.defaultRowHeight, defaultRowHeight = _4 === void 0 ? config_1.DEFAULT_ROW_HEIGHT : _4, _5 = props.lineHeightMode, lineHeightMode = _5 === void 0 ? "fontMetrics" : _5, _6 = props.columnHeaderHeight, columnHeaderHeight = _6 === void 0 ? config_1.COLUMN_HEADER_HEIGHT : _6, _7 = props.rowHeaderWidth, rowHeaderWidth = _7 === void 0 ? config_1.ROW_HEADER_WIDTH : _7, _8 = props.gridLineColor, gridLineColor = _8 === void 0 ? config_1.GRIDLINE_COLOR : _8, _9 = props.cellBackgroundColor, cellBackgroundColor = _9 === void 0 ? config_1.DEFAULT_CELL_BACKGROUND_COLOR : _9, _10 = props.cellColor, cellColor = _10 === void 0 ? config_1.DEFAULT_CELL_COLOR : _10, _11 = props.headerBorderColor, headerBorderColor = _11 === void 0 ? config_1.DEFAULT_HEADER_BORDER_COLOR : _11, _12 = props.headerBackgroundColor, headerBackgroundColor = _12 === void 0 ? config_1.DEFAULT_HEADER_BG : _12, _13 = props.headerColor, headerColor = _13 === void 0 ? config_1.DEFAULT_HEADER_COLOR : _13, _14 = props.headerActiveBackgroundColor, headerActiveBackgroundColor = _14 === void 0 ? config_1.DEFAULT_HEADER_ACTIVE_BG : _14, _15 = props.headerSelectedBackgroundColor, headerSelectedBackgroundColor = _15 === void 0 ? config_1.DEFAULT_HEADER_SELECTED_BG : _15, _16 = props.headerSelectedColor, headerSelectedColor = _16 === void 0 ? "white" : _16, _17 = props.headerTableBackgroundColor, headerTableBackgroundColor = _17 === void 0 ? config_1.DEFAULT_HEADER_TABLE_BG : _17, _18 = props.headerTableActiveBackgroundColor, headerTableActiveBackgroundColor = _18 === void 0 ? config_1.DEFAULT_HEADER_ACTIVE_TABLE_BG : _18, _19 = props.headerTableSelectedBackgroundColor, headerTableSelectedBackgroundColor = _19 === void 0 ? config_1.DEFAULT_HEADER_SELECTED_TABLE_BG : _19, _20 = props.frozenShadowColor, frozenShadowColor = _20 === void 0 ? headerBorderColor : _20, _21 = props.frozenShadowThickness, frozenShadowThickness = _21 === void 0 ? 1 : _21, _22 = props.selectionBackgroundColor, selectionBackgroundColor = _22 === void 0 ? config_1.SELECTION_BG : _22, _23 = props.selectionBorderColor, selectionBorderColor = _23 === void 0 ? config_1.SELECTION_BORDER : _23, selectionStrokeWidth = props.selectionStrokeWidth, showActiveCellBorderInSelection = props.showActiveCellBorderInSelection, _24 = props.selectionDragBorderColor, selectionDragBorderColor = _24 === void 0 ? config_1.SELECTION_BORDER : _24, chartSelectedColor = props.chartSelectedColor, _25 = props.chipBackgroundColor, chipBackgroundColor = _25 === void 0 ? config_1.CHIP_COLOR : _25, _26 = props.merges, merges = _26 === void 0 ? config_1.DEFAULT_ARRAY : _26, borderStyles = props.borderStyles, protectedRanges = props.protectedRanges, allowEditRanges = props.allowEditRanges, _27 = props.isWorkbookProtected, isWorkbookProtectedProp = _27 === void 0 ? false : _27, getSheetProtection = props.getSheetProtection, pivotTables = props.pivotTables, charts = props.charts, onUpdateChart = props.onUpdateChart, onChangeZOrder = props.onChangeZOrder, embeds = props.embeds, slicers = props.slicers, _28 = props.rowMetadata, rowMetadata = _28 === void 0 ? config_1.DEFAULT_ARRAY : _28, _29 = props.columnMetadata, columnMetadata = _29 === void 0 ? config_1.DEFAULT_ARRAY : _29, _30 = props.scale, zoomScale = _30 === void 0 ? 1 : _30, _31 = props.zoomSpeed, zoomSpeed = _31 === void 0 ? 1 : _31, _32 = props.overscanCount, overscanCount = _32 === void 0 ? 3 : _32, enableEditOnEnterKeyProp = props.enableEditOnEnterKey, _33 = props.enterKeyDirection, enterKeyDirection = _33 === void 0 ? "down" : _33, enableAutoCorrect = props.enableAutoCorrect, shouldHandleKeyDown = props.shouldHandleKeyDown, _34 = props.enableTextOverflow, enableTextOverflow = _34 === void 0 ? true : _34, _showGridLines = props.showGridLines, showZeros = props.showZeros, showObjects = props.showObjects, splitPane = props.splitPane, _35 = props.enableCellDragAndDrop, enableCellDragAndDrop = _35 === void 0 ? true : _35, _36 = props.alertBeforeOverwritingCells, alertBeforeOverwritingCells = _36 === void 0 ? true : _36, _37 = props.autoPercentEntry, autoPercentEntry = _37 === void 0 ? false : _37, errorCheckingRules = props.errorCheckingRules, staleCells = props.staleCells, _rightToLeft = props.rightToLeft, pageBreaks = props.pageBreaks, pageBreakPreviewProp = props.pageBreakPreview, workbookView = props.workbookView, printSettings = props.printSettings, onChangeHeaderFooter = props.onChangeHeaderFooter, _38 = props.showRulers, showRulers = _38 === void 0 ? true : _38, workbookTitle = props.workbookTitle, _39 = props.showFormulas, showFormulas = _39 === void 0 ? false : _39, _40 = props.protectFormulas, protectFormulas = _40 === void 0 ? false : _40, _41 = props.showFrozenSeparator, showFrozenSeparator = _41 === void 0 ? true : _41, _42 = props.HeaderCell, HeaderCell = _42 === void 0 ? header_cell_1.HeaderCell : _42, _43 = props.Cell, Cell = _43 === void 0 ? cell_1.Cell : _43, _44 = props.SelectionTitleComponent, SelectionTitleComponent = _44 === void 0 ? title_1.SelectionTitle : _44, _45 = props.CellEditor, CellEditor = _45 === void 0 ? cell_editor_1.CellEditor : _45, CellTooltip = props.CellTooltip, _46 = props.ContextMenu, ContextMenu = _46 === void 0 ? context_menu_1.ContextMenu : _46, _47 = props.ContextMenuWrapper, ContextMenuWrapper = _47 === void 0 ? use_context_menu_1.DefaultContextMenuWrapper : _47, _48 = props.FilterBox, FilterBox = _48 === void 0 ? filter_box_1.FilterBox : _48, _49 = props.HeaderMoveDragComponent, HeaderMoveDragComponent = _49 === void 0 ? header_move_1.HeaderMoveDragComponent : _49, SuggestionsDropdown = props.SuggestionsDropdown, _50 = props.stickyEditor, stickyEditor = _50 === void 0 ? true : _50, _51 = props.scrollSnap, scrollSnap = _51 === void 0 ? false : _51, scrollThrottleTimeout = props.scrollThrottleTimeout, preventBrowserDefaultScroll = props.preventBrowserDefaultScroll, _52 = props.mouseMoveThrottleTimeout, mouseMoveThrottleTimeout = _52 === void 0 ? 60 : _52, _53 = props.tooltipIntentInterval, tooltipIntentInterval = _53 === void 0 ? 60 : _53, selectionPolicy = props.selectionPolicy, users = props.users, userId = props.userId, renderCollaboratorCursor = props.renderCollaboratorCursor, functionDescriptions = props.functionDescriptions, _54 = props.showHeaderMenuButton, showHeaderMenuButton = _54 === void 0 ? true : _54, _55 = props.scrollbarSize, scrollbarSize = _55 === void 0 ? config_1.SCROLLBAR_SIZE : _55, _56 = props.theme, theme = _56 === void 0 ? config_1.defaultSpreadsheetTheme : _56, _57 = props.showNotes, showNotes = _57 === void 0 ? true : _57, _58 = props.showAllNotes, showAllNotes = _58 === void 0 ? false : _58, isNoteVisibleProp = props.isNoteVisible, _59 = props.showComments, showComments = _59 === void 0 ? true : _59, _60 = props.circleInvalidData, circleInvalidData = _60 === void 0 ? false : _60, getIgnoredErrors = props.getIgnoredErrors, locale = props.locale, getDate1904 = props.getDate1904, parseCellEntryNumber = props.parseCellEntryNumber, formulaLocaleProp = props.formulaLocale, _61 = props.referenceStyle, referenceStyle = _61 === void 0 ? "A1" : _61, agentSuggestions = props.agentSuggestions, onReviewSuggestion = props.onReviewSuggestion, onShowFormulas = props.onShowFormulas, getDataRowCount = props.getDataRowCount, getDataRegion = props.getDataRegion, getArrayFormula = props.getArrayFormula, getChartComponent = props.getChartComponent, getEmbedComponent = props.getEmbedComponent, getLinkedPictureSourceProp = props.getLinkedPictureSource, getSlicerComponent = props.getSlicerComponent, onChange = props.onChange, onChangeBatch = props.onChangeBatch, onChangeArrayFormula = props.onChangeArrayFormula, onExpandCollapse = props.onExpandCollapse, onPivotDrillDown = props.onPivotDrillDown, onDelete = props.onDelete, onChangeEditorValue = props.onChangeEditorValue, onFill = props.onFill, onRequestCalculate = props.onRequestCalculate, onRequestFunctionArguments = props.onRequestFunctionArguments, onChangeActiveCell = props.onChangeActiveCell, onChangeActiveSheet = props.onChangeActiveSheet, onChangeSelections = props.onChangeSelections, getSheetName = props.getSheetName, getSheetId = props.getSheetId, getCellData = props.getCellData, getNoteProp = props.getNote, getTextFormatRuns = props.getTextFormatRuns, getDataValidation = props.getDataValidation, getEffectiveFormat = props.getEffectiveFormat, getFormattedValueProp = props.getFormattedValue, getTooltipContent = props.getTooltipContent, errorResolutionComponent = props.errorResolutionComponent, getEffectiveValueProp = props.getEffectiveValue, getSparklineGroup = props.getSparklineGroup, getUserEnteredExtendedValue = props.getUserEnteredExtendedValue, getEffectiveExtendedValue = props.getEffectiveExtendedValue, getSheetRowCount = props.getSheetRowCount, getSheetColumnCount = props.getSheetColumnCount, getCellPopoverContent = props.getCellPopoverContent, onScroll = props.onScroll, onPaneScroll = props.onPaneScroll, onViewPortChange = props.onViewPortChange, _62 = props.windowConditionalFormats, windowConditionalFormats = _62 === void 0 ? false : _62, _63 = props.engineConditionalFormatResults, engineConditionalFormatResults = _63 === void 0 ? false : _63, getConditionalFormatRuleStats = props.getConditionalFormatRuleStats, onResize = props.onResize, onAutoResize = props.onAutoResize, onHideColumn = props.onHideColumn, onHideRow = props.onHideRow, onShowColumn = props.onShowColumn, onShowRow = props.onShowRow, onGroupRows = props.onGroupRows, onUngroupRows = props.onUngroupRows, onCollapseRowGroup = props.onCollapseRowGroup, onExpandRowGroup = props.onExpandRowGroup, onGroupColumns = props.onGroupColumns, onUngroupColumns = props.onUngroupColumns, onCollapseColumnGroup = props.onCollapseColumnGroup, onExpandColumnGroup = props.onExpandColumnGroup, onSetOutlineDepth = props.onSetOutlineDepth, onDeleteRow = props.onDeleteRow, onDeleteColumn = props.onDeleteColumn, onInsertRow = props.onInsertRow, onInsertColumn = props.onInsertColumn, onChangeAutoExpandTables = props.onChangeAutoExpandTables, onChangeAutoCalculatedColumns = props.onChangeAutoCalculatedColumns, onInsertCellsShiftDown = props.onInsertCellsShiftDown, onInsertCellsShiftRight = props.onInsertCellsShiftRight, onDeleteCellsShiftLeft = props.onDeleteCellsShiftLeft, onDeleteCellsShiftUp = props.onDeleteCellsShiftUp, onClearContents = props.onClearContents, onMoveColumns = props.onMoveColumns, onMoveRows = props.onMoveRows, onSelectNextSheet = props.onSelectNextSheet, onSelectPreviousSheet = props.onSelectPreviousSheet, onCreateNewSheet = props.onCreateNewSheet, onKeyDown = props.onKeyDown, onChangeFormatting = props.onChangeFormatting, onRepeatFormatting = props.onRepeatFormatting, onClearFormatting = props.onClearFormatting, onRequestEditProtectedRange = props.onRequestEditProtectedRange, onRequestUnlockAllowEditRange = props.onRequestUnlockAllowEditRange, onMoveChart = props.onMoveChart, onResizeChart = props.onResizeChart, onDeleteChart = props.onDeleteChart, onCutChart = props.onCutChart, onCopyChart = props.onCopyChart, _64 = props.objectClipboard, objectClipboard = _64 === void 0 ? true : _64, objectClipboardPolicy = props.objectClipboardPolicy, onMoveEmbed = props.onMoveEmbed, onResizeEmbed = props.onResizeEmbed, onDeleteEmbed = props.onDeleteEmbed, onRequestEditEmbed = props.onRequestEditEmbed, onMoveSlicer = props.onMoveSlicer, onResizeSlicer = props.onResizeSlicer, onDeleteSlicer = props.onDeleteSlicer, onDeleteObjects = props.onDeleteObjects, onRequestEditSlicer = props.onRequestEditSlicer, onFillRange = props.onFillRange, onFlashFill = props.onFlashFill, onFlashFillSuggest = props.onFlashFillSuggest, onAcceptFlashFill = props.onAcceptFlashFill, disableFillRightShortcut = props.disableFillRightShortcut, keymap = props.keymap, _65 = props.enableAutoComplete, enableAutoComplete = _65 === void 0 ? true : _65, onCalculateNow = props.onCalculateNow, onRequestGoTo = props.onRequestGoTo, onMoveSelection = props.onMoveSelection, onInsertCutCells = props.onInsertCutCells, onInsertCopiedCells = props.onInsertCopiedCells, onInsertTime = props.onInsertTime, onInsertDate = props.onInsertDate, onInsertDateTime = props.onInsertDateTime, onInsertAutoSum = props.onInsertAutoSum, onUndo = props.onUndo, onRedo = props.onRedo, batchHistory = props.batchHistory, onPaste = props.onPaste, onReapplyPaste = props.onReapplyPaste, onCopy = props.onCopy, onCut = props.onCut, onSortColumn = props.onSortColumn, onSortTable = props.onSortTable, onFilterTable = props.onFilterTable, onFilterPivot = props.onFilterPivot, onResizeTable = props.onResizeTable, onUndoTableAutoExpansion = props.onUndoTableAutoExpansion, onUndoCalculatedColumn = props.onUndoCalculatedColumn, onOverwriteCalculatedColumn = props.onOverwriteCalculatedColumn, onRequestEditTable = props.onRequestEditTable, onRequestEditPivotTable = props.onRequestEditPivotTable, onRequestDeletePivotTable = props.onRequestDeletePivotTable, onRequestCreatePivotChart = props.onRequestCreatePivotChart, onRemoveTable = props.onRemoveTable, onCreateTable = props.onCreateTable, onRequestCreateTable = props.onRequestCreateTable, onInsertTableColumn = props.onInsertTableColumn, onDeleteTableColumn = props.onDeleteTableColumn, onInsertTableRow = props.onInsertTableRow, onDeleteTableRow = props.onDeleteTableRow, onUpdateTable = props.onUpdateTable, onRequestResizeTable = props.onRequestResizeTable, onRequestInsertSlicer = props.onRequestInsertSlicer, onCreateBasicFilter = props.onCreateBasicFilter, onRequestDefineNamedRange = props.onRequestDefineNamedRange, onRequestFormatCells = props.onRequestFormatCells, onRequestConditionalFormat = props.onRequestConditionalFormat, onRequestDataValidation = props.onRequestDataValidation, onRequestInsertComment = props.onRequestInsertComment, onRequestInsertLink = props.onRequestInsertLink, onFreezeColumn = props.onFreezeColumn, onFreezeRow = props.onFreezeRow, onUpdateNote = props.onUpdateNote, onProtectRange = props.onProtectRange, onUnProtectRange = props.onUnProtectRange, onSortRange = props.onSortRange, onRequestSearch = props.onRequestSearch, onRequestReplace = props.onRequestReplace, onRequestResize = props.onRequestResize, _66 = props.getRowHeaderText, getRowHeaderText = _66 === void 0 ? helpers_1.getDefaultRowHeader : _66, getColumnHeaderTextProp = props.getColumnHeaderText, getAdditionalCellSpacing = props.getAdditionalCellSpacing, _67 = props.tokenizer, defaultTokenizer = _67 === void 0 ? calculator_1.tokenize : _67, onChangeScale = props.onChangeScale, onRemoveLink = props.onRemoveLink, onSelectLink = props.onSelectLink, onSplitTextToColumns = props.onSplitTextToColumns, onRemoveDuplicates = props.onRemoveDuplicates, onGoalSeek = props.onGoalSeek, onSubtotal = props.onSubtotal, onAdvancedFilter = props.onAdvancedFilter, onRequestExpand = props.onRequestExpand, cellExpandPredicate = props.cellExpandPredicate, _68 = props.StructuredResult, StructuredResult = _68 === void 0 ? cell_structured_1.StructuredResultRenderer : _68, getMentions = props.getMentions, getStructuredPropertiesProp = props.getStructuredProperties, getFunctionParameterSuggestions = props.getFunctionParameterSuggestions, shouldFetchFunctionParameters = props.shouldFetchFunctionParameters, MentionTagComponent = props.MentionTagComponent, MentionDropdownItemComponent = props.MentionDropdownItemComponent, _69 = props.showSelectionResizeHandles, showSelectionResizeHandles = _69 === void 0 ? true : _69, enableMagicFill = props.enableMagicFill, _70 = props.enableQuickEdit, enableQuickEdit = _70 === void 0 ? true : _70, MagicFillComponent = props.MagicFillComponent, MagicFillContent = props.MagicFillContent, QuickEdit = props.QuickEdit, PasteMenu = props.PasteMenu, SuggestionAction = props.SuggestionAction, HiddenRowMarkers = props.HiddenRowMarkers, HiddenColumnMarkers = props.HiddenColumnMarkers, enableResizerOverflow = props.enableResizerOverflow, className = props.className, _71 = props.defaultFontSizePoint, defaultFontSizePoint = _71 === void 0 ? config_1.DEFAULT_FONT_SIZE_PT : _71, defaultCellFormat = props.defaultCellFormat, readonly = props.readonly, _72 = props.isComparing, isComparing = _72 === void 0 ? false : _72, getCellDiff = props.getCellDiff, enableDataBoundaryNavigation = props.enableDataBoundaryNavigation, footerHeight = props.footerHeight, footerComponent = props.footerComponent, arrowComponents = props.arrowComponents,
185
+ var licenseKey = props.licenseKey, sheetId = props.sheetId, sheetType = props.sheetType, _q = props.ChartSheetView, ChartSheetViewComponent = _q === void 0 ? chart_sheet_view_1.ChartSheetView : _q, instanceId = props.instanceId, _r = props.activeCell, activeCell = _r === void 0 ? config_1.DEFAULT_ACTIVE_CELL : _r, _s = props.selections, selections = _s === void 0 ? config_1.DEFAULT_ARRAY : _s, _t = props.frozenColumnCount, frozenColumnCount = _t === void 0 ? 0 : _t, _u = props.frozenRowCount, frozenRowCount = _u === void 0 ? 0 : _u, frozenRowStart = props.frozenRowStart, frozenColumnStart = props.frozenColumnStart, _v = props.rowCount, rowCount = _v === void 0 ? config_1.DEFAULT_ROW_COUNT : _v, _w = props.columnCount, columnCount = _w === void 0 ? config_1.DEFAULT_COLUMN_COUNT : _w, autoFocus = props.autoFocus, basicFilter = props.basicFilter, tables = props.tables, namedRanges = props.namedRanges, _x = props.bandedRanges, bandedRanges = _x === void 0 ? config_1.DEFAULT_ARRAY : _x, _y = props.tableBorderColor, tableBorderColor = _y === void 0 ? "#008000" : _y, _z = props.filterIconColor, filterIconColor = _z === void 0 ? config_1.FILTER_BUTTON_GLYPH_COLOR : _z, conditionalFormats = props.conditionalFormats, _0 = props.showFilterIcon, showFilterIcon = _0 === void 0 ? true : _0, _1 = props.showCalculatedColumnIcon, showCalculatedColumnIcon = _1 === void 0 ? true : _1, _2 = props.showHeaders, showHeaders = _2 === void 0 ? true : _2, backgroundImageUrl = props.backgroundImageUrl, _3 = props.defaultColumnWidth, defaultColumnWidth = _3 === void 0 ? config_1.DEFAULT_COLUMN_WIDTH : _3, _4 = props.defaultRowHeight, defaultRowHeight = _4 === void 0 ? config_1.DEFAULT_ROW_HEIGHT : _4, _5 = props.lineHeightMode, lineHeightMode = _5 === void 0 ? "fontMetrics" : _5, _6 = props.columnHeaderHeight, columnHeaderHeight = _6 === void 0 ? config_1.COLUMN_HEADER_HEIGHT : _6, _7 = props.rowHeaderWidth, rowHeaderWidth = _7 === void 0 ? config_1.ROW_HEADER_WIDTH : _7, _8 = props.gridLineColor, gridLineColor = _8 === void 0 ? config_1.GRIDLINE_COLOR : _8, _9 = props.cellBackgroundColor, cellBackgroundColor = _9 === void 0 ? config_1.DEFAULT_CELL_BACKGROUND_COLOR : _9, _10 = props.cellColor, cellColor = _10 === void 0 ? config_1.DEFAULT_CELL_COLOR : _10, _11 = props.headerBorderColor, headerBorderColor = _11 === void 0 ? config_1.DEFAULT_HEADER_BORDER_COLOR : _11, _12 = props.headerBackgroundColor, headerBackgroundColor = _12 === void 0 ? config_1.DEFAULT_HEADER_BG : _12, _13 = props.headerColor, headerColor = _13 === void 0 ? config_1.DEFAULT_HEADER_COLOR : _13, _14 = props.headerActiveBackgroundColor, headerActiveBackgroundColor = _14 === void 0 ? config_1.DEFAULT_HEADER_ACTIVE_BG : _14, _15 = props.headerSelectedBackgroundColor, headerSelectedBackgroundColor = _15 === void 0 ? config_1.DEFAULT_HEADER_SELECTED_BG : _15, _16 = props.headerSelectedColor, headerSelectedColor = _16 === void 0 ? "white" : _16, _17 = props.headerTableBackgroundColor, headerTableBackgroundColor = _17 === void 0 ? config_1.DEFAULT_HEADER_TABLE_BG : _17, _18 = props.headerTableActiveBackgroundColor, headerTableActiveBackgroundColor = _18 === void 0 ? config_1.DEFAULT_HEADER_ACTIVE_TABLE_BG : _18, _19 = props.headerTableSelectedBackgroundColor, headerTableSelectedBackgroundColor = _19 === void 0 ? config_1.DEFAULT_HEADER_SELECTED_TABLE_BG : _19, _20 = props.frozenShadowColor, frozenShadowColor = _20 === void 0 ? headerBorderColor : _20, _21 = props.frozenShadowThickness, frozenShadowThickness = _21 === void 0 ? 1 : _21, _22 = props.selectionBackgroundColor, selectionBackgroundColor = _22 === void 0 ? config_1.SELECTION_BG : _22, _23 = props.selectionBorderColor, selectionBorderColor = _23 === void 0 ? config_1.SELECTION_BORDER : _23, selectionStrokeWidth = props.selectionStrokeWidth, showActiveCellBorderInSelection = props.showActiveCellBorderInSelection, _24 = props.selectionDragBorderColor, selectionDragBorderColor = _24 === void 0 ? config_1.SELECTION_BORDER : _24, chartSelectedColor = props.chartSelectedColor, _25 = props.chipBackgroundColor, chipBackgroundColor = _25 === void 0 ? config_1.CHIP_COLOR : _25, _26 = props.merges, merges = _26 === void 0 ? config_1.DEFAULT_ARRAY : _26, borderStyles = props.borderStyles, protectedRanges = props.protectedRanges, allowEditRanges = props.allowEditRanges, _27 = props.isWorkbookProtected, isWorkbookProtectedProp = _27 === void 0 ? false : _27, getSheetProtection = props.getSheetProtection, pivotTables = props.pivotTables, charts = props.charts, onUpdateChart = props.onUpdateChart, onChangeZOrder = props.onChangeZOrder, embeds = props.embeds, slicers = props.slicers, _28 = props.rowMetadata, rowMetadata = _28 === void 0 ? config_1.DEFAULT_ARRAY : _28, _29 = props.columnMetadata, columnMetadata = _29 === void 0 ? config_1.DEFAULT_ARRAY : _29, _30 = props.scale, zoomScale = _30 === void 0 ? 1 : _30, _31 = props.zoomSpeed, zoomSpeed = _31 === void 0 ? 1 : _31, _32 = props.overscanCount, overscanCount = _32 === void 0 ? 3 : _32, enableEditOnEnterKeyProp = props.enableEditOnEnterKey, _33 = props.enterKeyDirection, enterKeyDirection = _33 === void 0 ? "down" : _33, enableAutoCorrect = props.enableAutoCorrect, shouldHandleKeyDown = props.shouldHandleKeyDown, _34 = props.enableTextOverflow, enableTextOverflow = _34 === void 0 ? true : _34, _showGridLines = props.showGridLines, showZeros = props.showZeros, showObjects = props.showObjects, splitPane = props.splitPane, _35 = props.enableCellDragAndDrop, enableCellDragAndDrop = _35 === void 0 ? true : _35, _36 = props.alertBeforeOverwritingCells, alertBeforeOverwritingCells = _36 === void 0 ? true : _36, _37 = props.autoPercentEntry, autoPercentEntry = _37 === void 0 ? false : _37, errorCheckingRules = props.errorCheckingRules, staleCells = props.staleCells, _rightToLeft = props.rightToLeft, pageBreaks = props.pageBreaks, pageBreakPreviewProp = props.pageBreakPreview, workbookView = props.workbookView, printSettings = props.printSettings, onChangeHeaderFooter = props.onChangeHeaderFooter, _38 = props.showRulers, showRulers = _38 === void 0 ? true : _38, workbookTitle = props.workbookTitle, _39 = props.showFormulas, showFormulas = _39 === void 0 ? false : _39, _40 = props.protectFormulas, protectFormulas = _40 === void 0 ? false : _40, _41 = props.showFrozenSeparator, showFrozenSeparator = _41 === void 0 ? true : _41, _42 = props.HeaderCell, HeaderCell = _42 === void 0 ? header_cell_1.HeaderCell : _42, _43 = props.Cell, Cell = _43 === void 0 ? cell_1.Cell : _43, _44 = props.SelectionTitleComponent, SelectionTitleComponent = _44 === void 0 ? title_1.SelectionTitle : _44, _45 = props.CellEditor, CellEditor = _45 === void 0 ? cell_editor_1.CellEditor : _45, CellTooltip = props.CellTooltip, _46 = props.ContextMenu, ContextMenu = _46 === void 0 ? context_menu_1.ContextMenu : _46, _47 = props.ContextMenuWrapper, ContextMenuWrapper = _47 === void 0 ? use_context_menu_1.DefaultContextMenuWrapper : _47, _48 = props.FilterBox, FilterBox = _48 === void 0 ? filter_box_1.FilterBox : _48, _49 = props.HeaderMoveDragComponent, HeaderMoveDragComponent = _49 === void 0 ? header_move_1.HeaderMoveDragComponent : _49, SuggestionsDropdown = props.SuggestionsDropdown, _50 = props.stickyEditor, stickyEditor = _50 === void 0 ? true : _50, _51 = props.scrollSnap, scrollSnap = _51 === void 0 ? false : _51, scrollThrottleTimeout = props.scrollThrottleTimeout, preventBrowserDefaultScroll = props.preventBrowserDefaultScroll, _52 = props.mouseMoveThrottleTimeout, mouseMoveThrottleTimeout = _52 === void 0 ? 60 : _52, _53 = props.tooltipIntentInterval, tooltipIntentInterval = _53 === void 0 ? 60 : _53, selectionPolicy = props.selectionPolicy, users = props.users, userId = props.userId, renderCollaboratorCursor = props.renderCollaboratorCursor, functionDescriptions = props.functionDescriptions, _54 = props.showHeaderMenuButton, showHeaderMenuButton = _54 === void 0 ? true : _54, _55 = props.scrollbarSize, scrollbarSize = _55 === void 0 ? config_1.SCROLLBAR_SIZE : _55, _56 = props.theme, theme = _56 === void 0 ? config_1.defaultSpreadsheetTheme : _56, _57 = props.showNotes, showNotes = _57 === void 0 ? true : _57, _58 = props.showAllNotes, showAllNotes = _58 === void 0 ? false : _58, isNoteVisibleProp = props.isNoteVisible, _59 = props.showComments, showComments = _59 === void 0 ? true : _59, _60 = props.circleInvalidData, circleInvalidData = _60 === void 0 ? false : _60, getIgnoredErrors = props.getIgnoredErrors, locale = props.locale, getDate1904 = props.getDate1904, parseCellEntryNumber = props.parseCellEntryNumber, formulaLocaleProp = props.formulaLocale, _61 = props.referenceStyle, referenceStyle = _61 === void 0 ? "A1" : _61, agentSuggestions = props.agentSuggestions, onReviewSuggestion = props.onReviewSuggestion, onShowFormulas = props.onShowFormulas, getDataRowCount = props.getDataRowCount, getDataRegion = props.getDataRegion, getArrayFormula = props.getArrayFormula, getChartComponent = props.getChartComponent, getEmbedComponent = props.getEmbedComponent, getLinkedPictureSourceProp = props.getLinkedPictureSource, getSlicerComponent = props.getSlicerComponent, onChange = props.onChange, onChangeBatch = props.onChangeBatch, onChangeArrayFormula = props.onChangeArrayFormula, onExpandCollapse = props.onExpandCollapse, onPivotDrillDown = props.onPivotDrillDown, onDelete = props.onDelete, onChangeEditorValue = props.onChangeEditorValue, onFill = props.onFill, onRequestCalculate = props.onRequestCalculate, onRequestFunctionArguments = props.onRequestFunctionArguments, onChangeActiveCell = props.onChangeActiveCell, onChangeActiveSheet = props.onChangeActiveSheet, onChangeSelections = props.onChangeSelections, getSheetName = props.getSheetName, getSheetId = props.getSheetId, getCellData = props.getCellData, getNoteProp = props.getNote, getTextFormatRuns = props.getTextFormatRuns, getDataValidation = props.getDataValidation, getEffectiveFormat = props.getEffectiveFormat, getFormattedValueProp = props.getFormattedValue, getTooltipContent = props.getTooltipContent, errorResolutionComponent = props.errorResolutionComponent, getEffectiveValueProp = props.getEffectiveValue, getSparklineGroup = props.getSparklineGroup, getUserEnteredExtendedValue = props.getUserEnteredExtendedValue, getEffectiveExtendedValue = props.getEffectiveExtendedValue, getSheetRowCount = props.getSheetRowCount, getSheetColumnCount = props.getSheetColumnCount, getSelections = props.getSelections, getCellPopoverContent = props.getCellPopoverContent, onScroll = props.onScroll, onPaneScroll = props.onPaneScroll, onViewPortChange = props.onViewPortChange, _62 = props.windowConditionalFormats, windowConditionalFormats = _62 === void 0 ? false : _62, _63 = props.engineConditionalFormatResults, engineConditionalFormatResults = _63 === void 0 ? false : _63, getConditionalFormatRuleStats = props.getConditionalFormatRuleStats, onResize = props.onResize, onAutoResize = props.onAutoResize, onHideColumn = props.onHideColumn, onHideRow = props.onHideRow, onShowColumn = props.onShowColumn, onShowRow = props.onShowRow, onGroupRows = props.onGroupRows, onUngroupRows = props.onUngroupRows, onCollapseRowGroup = props.onCollapseRowGroup, onExpandRowGroup = props.onExpandRowGroup, onGroupColumns = props.onGroupColumns, onUngroupColumns = props.onUngroupColumns, onCollapseColumnGroup = props.onCollapseColumnGroup, onExpandColumnGroup = props.onExpandColumnGroup, onSetOutlineDepth = props.onSetOutlineDepth, onDeleteRow = props.onDeleteRow, onDeleteColumn = props.onDeleteColumn, onInsertRow = props.onInsertRow, onInsertColumn = props.onInsertColumn, onChangeAutoExpandTables = props.onChangeAutoExpandTables, onChangeAutoCalculatedColumns = props.onChangeAutoCalculatedColumns, onInsertCellsShiftDown = props.onInsertCellsShiftDown, onInsertCellsShiftRight = props.onInsertCellsShiftRight, onDeleteCellsShiftLeft = props.onDeleteCellsShiftLeft, onDeleteCellsShiftUp = props.onDeleteCellsShiftUp, onClearContents = props.onClearContents, onMoveColumns = props.onMoveColumns, onMoveRows = props.onMoveRows, onSelectNextSheet = props.onSelectNextSheet, onSelectPreviousSheet = props.onSelectPreviousSheet, onCreateNewSheet = props.onCreateNewSheet, onKeyDown = props.onKeyDown, onChangeFormatting = props.onChangeFormatting, onRepeatFormatting = props.onRepeatFormatting, onClearFormatting = props.onClearFormatting, onRequestEditProtectedRange = props.onRequestEditProtectedRange, onRequestUnlockAllowEditRange = props.onRequestUnlockAllowEditRange, onMoveChart = props.onMoveChart, onResizeChart = props.onResizeChart, onDeleteChart = props.onDeleteChart, onCutChart = props.onCutChart, onCopyChart = props.onCopyChart, _64 = props.objectClipboard, objectClipboard = _64 === void 0 ? true : _64, objectClipboardPolicy = props.objectClipboardPolicy, onMoveEmbed = props.onMoveEmbed, onResizeEmbed = props.onResizeEmbed, onDeleteEmbed = props.onDeleteEmbed, onRequestEditEmbed = props.onRequestEditEmbed, onMoveSlicer = props.onMoveSlicer, onResizeSlicer = props.onResizeSlicer, onDeleteSlicer = props.onDeleteSlicer, onDeleteObjects = props.onDeleteObjects, onRequestEditSlicer = props.onRequestEditSlicer, onFillRange = props.onFillRange, onFlashFill = props.onFlashFill, onFlashFillSuggest = props.onFlashFillSuggest, onAcceptFlashFill = props.onAcceptFlashFill, disableFillRightShortcut = props.disableFillRightShortcut, keymap = props.keymap, _65 = props.enableAutoComplete, enableAutoComplete = _65 === void 0 ? true : _65, onCalculateNow = props.onCalculateNow, onRequestGoTo = props.onRequestGoTo, onMoveSelection = props.onMoveSelection, onInsertCutCells = props.onInsertCutCells, onInsertCopiedCells = props.onInsertCopiedCells, onInsertTime = props.onInsertTime, onInsertDate = props.onInsertDate, onInsertDateTime = props.onInsertDateTime, onInsertAutoSum = props.onInsertAutoSum, onUndo = props.onUndo, onRedo = props.onRedo, batchHistory = props.batchHistory, onPaste = props.onPaste, onReapplyPaste = props.onReapplyPaste, onCopy = props.onCopy, onCut = props.onCut, onSortColumn = props.onSortColumn, onSortTable = props.onSortTable, onFilterTable = props.onFilterTable, onFilterPivot = props.onFilterPivot, onResizeTable = props.onResizeTable, onUndoTableAutoExpansion = props.onUndoTableAutoExpansion, onUndoCalculatedColumn = props.onUndoCalculatedColumn, onOverwriteCalculatedColumn = props.onOverwriteCalculatedColumn, onRequestEditTable = props.onRequestEditTable, onRequestEditPivotTable = props.onRequestEditPivotTable, onRequestDeletePivotTable = props.onRequestDeletePivotTable, onRequestCreatePivotChart = props.onRequestCreatePivotChart, onRemoveTable = props.onRemoveTable, onCreateTable = props.onCreateTable, onRequestCreateTable = props.onRequestCreateTable, onInsertTableColumn = props.onInsertTableColumn, onDeleteTableColumn = props.onDeleteTableColumn, onInsertTableRow = props.onInsertTableRow, onDeleteTableRow = props.onDeleteTableRow, onUpdateTable = props.onUpdateTable, onRequestResizeTable = props.onRequestResizeTable, onRequestInsertSlicer = props.onRequestInsertSlicer, onCreateBasicFilter = props.onCreateBasicFilter, onRequestDefineNamedRange = props.onRequestDefineNamedRange, onRequestFormatCells = props.onRequestFormatCells, onRequestConditionalFormat = props.onRequestConditionalFormat, onRequestDataValidation = props.onRequestDataValidation, onRequestInsertComment = props.onRequestInsertComment, onRequestInsertLink = props.onRequestInsertLink, onFreezeColumn = props.onFreezeColumn, onFreezeRow = props.onFreezeRow, onUpdateNote = props.onUpdateNote, onProtectRange = props.onProtectRange, onUnProtectRange = props.onUnProtectRange, onSortRange = props.onSortRange, onRequestSearch = props.onRequestSearch, onRequestReplace = props.onRequestReplace, onRequestResize = props.onRequestResize, _66 = props.getRowHeaderText, getRowHeaderText = _66 === void 0 ? helpers_1.getDefaultRowHeader : _66, getColumnHeaderTextProp = props.getColumnHeaderText, getAdditionalCellSpacing = props.getAdditionalCellSpacing, _67 = props.tokenizer, defaultTokenizer = _67 === void 0 ? calculator_1.tokenize : _67, onChangeScale = props.onChangeScale, onRemoveLink = props.onRemoveLink, onSelectLink = props.onSelectLink, onSplitTextToColumns = props.onSplitTextToColumns, onRemoveDuplicates = props.onRemoveDuplicates, onGoalSeek = props.onGoalSeek, onSubtotal = props.onSubtotal, onAdvancedFilter = props.onAdvancedFilter, onRequestExpand = props.onRequestExpand, cellExpandPredicate = props.cellExpandPredicate, _68 = props.StructuredResult, StructuredResult = _68 === void 0 ? cell_structured_1.StructuredResultRenderer : _68, getMentions = props.getMentions, getStructuredPropertiesProp = props.getStructuredProperties, getFunctionParameterSuggestions = props.getFunctionParameterSuggestions, shouldFetchFunctionParameters = props.shouldFetchFunctionParameters, MentionTagComponent = props.MentionTagComponent, MentionDropdownItemComponent = props.MentionDropdownItemComponent, _69 = props.showSelectionResizeHandles, showSelectionResizeHandles = _69 === void 0 ? true : _69, enableMagicFill = props.enableMagicFill, _70 = props.enableQuickEdit, enableQuickEdit = _70 === void 0 ? true : _70, MagicFillComponent = props.MagicFillComponent, MagicFillContent = props.MagicFillContent, QuickEdit = props.QuickEdit, PasteMenu = props.PasteMenu, SuggestionAction = props.SuggestionAction, HiddenRowMarkers = props.HiddenRowMarkers, HiddenColumnMarkers = props.HiddenColumnMarkers, enableResizerOverflow = props.enableResizerOverflow, className = props.className, _71 = props.defaultFontSizePoint, defaultFontSizePoint = _71 === void 0 ? config_1.DEFAULT_FONT_SIZE_PT : _71, defaultCellFormat = props.defaultCellFormat, readonly = props.readonly, _72 = props.isComparing, isComparing = _72 === void 0 ? false : _72, getCellDiff = props.getCellDiff, enableDataBoundaryNavigation = props.enableDataBoundaryNavigation, footerHeight = props.footerHeight, footerComponent = props.footerComponent, arrowComponents = props.arrowComponents,
186
186
  // Host-driven filter props. `hostHiddenRowRanges`
187
187
  // supplies compact [start, end] hidden-row tuples; `getFilterValues` supplies a
188
188
  // column's distinct values. Both let a million-row filter render without scanning
@@ -197,7 +197,7 @@ function CanvasGridComponent(props, forwardedRef) {
197
197
  // (formula-valued names, structured references, OFFSET/INDIRECT/FILTER/UNIQUE).
198
198
  resolveValidationSourceValues = props.resolveValidationSourceValues,
199
199
  // Unused props only for api
200
- getDataColumnCount = props.getDataColumnCount, onDeleteNamedRange = props.onDeleteNamedRange, onChangeBorder = props.onChangeBorder, onDuplicateSheet = props.onDuplicateSheet, onCreateConditionalFormattingRule = props.onCreateConditionalFormattingRule, onDeleteConditionalFormattingRule = props.onDeleteConditionalFormattingRule, onUpdateConditionalFormattingRule = props.onUpdateConditionalFormattingRule, onCreateDataValidationRule = props.onCreateDataValidationRule, onUpdateDataValidationRule = props.onUpdateDataValidationRule, onDeleteDataValidationRule = props.onDeleteDataValidationRule, onCreateChart = props.onCreateChart, onDeleteSheet = props.onDeleteSheet, onCreateEmbed = props.onCreateEmbed, onDecreaseIndent = props.onDecreaseIndent, onIncreaseIndent = props.onIncreaseIndent, onChangeTheme = props.onChangeTheme, onChangeDecimals = props.onChangeDecimals, onUpdateSheet = props.onUpdateSheet, onChangeBatchStream = props.onChangeBatchStream, onBlur = props.onBlur, rest = tslib_1.__rest(props, ["licenseKey", "sheetId", "sheetType", "ChartSheetView", "instanceId", "activeCell", "selections", "frozenColumnCount", "frozenRowCount", "frozenRowStart", "frozenColumnStart", "rowCount", "columnCount", "autoFocus", "basicFilter", "tables", "namedRanges", "bandedRanges", "tableBorderColor", "filterIconColor", "conditionalFormats", "showFilterIcon", "showCalculatedColumnIcon", "showHeaders", "backgroundImageUrl", "defaultColumnWidth", "defaultRowHeight", "lineHeightMode", "columnHeaderHeight", "rowHeaderWidth", "gridLineColor", "cellBackgroundColor", "cellColor", "headerBorderColor", "headerBackgroundColor", "headerColor", "headerActiveBackgroundColor", "headerSelectedBackgroundColor", "headerSelectedColor", "headerTableBackgroundColor", "headerTableActiveBackgroundColor", "headerTableSelectedBackgroundColor", "frozenShadowColor", "frozenShadowThickness", "selectionBackgroundColor", "selectionBorderColor", "selectionStrokeWidth", "showActiveCellBorderInSelection", "selectionDragBorderColor", "chartSelectedColor", "chipBackgroundColor", "merges", "borderStyles", "protectedRanges", "allowEditRanges", "isWorkbookProtected", "getSheetProtection", "pivotTables", "charts", "onUpdateChart", "onChangeZOrder", "embeds", "slicers", "rowMetadata", "columnMetadata", "scale", "zoomSpeed", "overscanCount", "enableEditOnEnterKey", "enterKeyDirection", "enableAutoCorrect", "shouldHandleKeyDown", "enableTextOverflow", "showGridLines", "showZeros", "showObjects", "splitPane", "enableCellDragAndDrop", "alertBeforeOverwritingCells", "autoPercentEntry", "errorCheckingRules", "staleCells", "rightToLeft", "pageBreaks", "pageBreakPreview", "workbookView", "printSettings", "onChangeHeaderFooter", "showRulers", "workbookTitle", "showFormulas", "protectFormulas", "showFrozenSeparator", "HeaderCell", "Cell", "SelectionTitleComponent", "CellEditor", "CellTooltip", "ContextMenu", "ContextMenuWrapper", "FilterBox", "HeaderMoveDragComponent", "SuggestionsDropdown", "stickyEditor", "scrollSnap", "scrollThrottleTimeout", "preventBrowserDefaultScroll", "mouseMoveThrottleTimeout", "tooltipIntentInterval", "selectionPolicy", "users", "userId", "renderCollaboratorCursor", "functionDescriptions", "showHeaderMenuButton", "scrollbarSize", "theme", "showNotes", "showAllNotes", "isNoteVisible", "showComments", "circleInvalidData", "getIgnoredErrors", "locale", "getDate1904", "parseCellEntryNumber", "formulaLocale", "referenceStyle", "agentSuggestions", "onReviewSuggestion", "onShowFormulas", "getDataRowCount", "getDataRegion", "getArrayFormula", "getChartComponent", "getEmbedComponent", "getLinkedPictureSource", "getSlicerComponent", "onChange", "onChangeBatch", "onChangeArrayFormula", "onExpandCollapse", "onPivotDrillDown", "onDelete", "onChangeEditorValue", "onFill", "onRequestCalculate", "onRequestFunctionArguments", "onChangeActiveCell", "onChangeActiveSheet", "onChangeSelections", "getSheetName", "getSheetId", "getCellData", "getNote", "getTextFormatRuns", "getDataValidation", "getEffectiveFormat", "getFormattedValue", "getTooltipContent", "errorResolutionComponent", "getEffectiveValue", "getSparklineGroup", "getUserEnteredExtendedValue", "getEffectiveExtendedValue", "getSheetRowCount", "getSheetColumnCount", "getCellPopoverContent", "onScroll", "onPaneScroll", "onViewPortChange", "windowConditionalFormats", "engineConditionalFormatResults", "getConditionalFormatRuleStats", "onResize", "onAutoResize", "onHideColumn", "onHideRow", "onShowColumn", "onShowRow", "onGroupRows", "onUngroupRows", "onCollapseRowGroup", "onExpandRowGroup", "onGroupColumns", "onUngroupColumns", "onCollapseColumnGroup", "onExpandColumnGroup", "onSetOutlineDepth", "onDeleteRow", "onDeleteColumn", "onInsertRow", "onInsertColumn", "onChangeAutoExpandTables", "onChangeAutoCalculatedColumns", "onInsertCellsShiftDown", "onInsertCellsShiftRight", "onDeleteCellsShiftLeft", "onDeleteCellsShiftUp", "onClearContents", "onMoveColumns", "onMoveRows", "onSelectNextSheet", "onSelectPreviousSheet", "onCreateNewSheet", "onKeyDown", "onChangeFormatting", "onRepeatFormatting", "onClearFormatting", "onRequestEditProtectedRange", "onRequestUnlockAllowEditRange", "onMoveChart", "onResizeChart", "onDeleteChart", "onCutChart", "onCopyChart", "objectClipboard", "objectClipboardPolicy", "onMoveEmbed", "onResizeEmbed", "onDeleteEmbed", "onRequestEditEmbed", "onMoveSlicer", "onResizeSlicer", "onDeleteSlicer", "onDeleteObjects", "onRequestEditSlicer", "onFillRange", "onFlashFill", "onFlashFillSuggest", "onAcceptFlashFill", "disableFillRightShortcut", "keymap", "enableAutoComplete", "onCalculateNow", "onRequestGoTo", "onMoveSelection", "onInsertCutCells", "onInsertCopiedCells", "onInsertTime", "onInsertDate", "onInsertDateTime", "onInsertAutoSum", "onUndo", "onRedo", "batchHistory", "onPaste", "onReapplyPaste", "onCopy", "onCut", "onSortColumn", "onSortTable", "onFilterTable", "onFilterPivot", "onResizeTable", "onUndoTableAutoExpansion", "onUndoCalculatedColumn", "onOverwriteCalculatedColumn", "onRequestEditTable", "onRequestEditPivotTable", "onRequestDeletePivotTable", "onRequestCreatePivotChart", "onRemoveTable", "onCreateTable", "onRequestCreateTable", "onInsertTableColumn", "onDeleteTableColumn", "onInsertTableRow", "onDeleteTableRow", "onUpdateTable", "onRequestResizeTable", "onRequestInsertSlicer", "onCreateBasicFilter", "onRequestDefineNamedRange", "onRequestFormatCells", "onRequestConditionalFormat", "onRequestDataValidation", "onRequestInsertComment", "onRequestInsertLink", "onFreezeColumn", "onFreezeRow", "onUpdateNote", "onProtectRange", "onUnProtectRange", "onSortRange", "onRequestSearch", "onRequestReplace", "onRequestResize", "getRowHeaderText", "getColumnHeaderText", "getAdditionalCellSpacing", "tokenizer", "onChangeScale", "onRemoveLink", "onSelectLink", "onSplitTextToColumns", "onRemoveDuplicates", "onGoalSeek", "onSubtotal", "onAdvancedFilter", "onRequestExpand", "cellExpandPredicate", "StructuredResult", "getMentions", "getStructuredProperties", "getFunctionParameterSuggestions", "shouldFetchFunctionParameters", "MentionTagComponent", "MentionDropdownItemComponent", "showSelectionResizeHandles", "enableMagicFill", "enableQuickEdit", "MagicFillComponent", "MagicFillContent", "QuickEdit", "PasteMenu", "SuggestionAction", "HiddenRowMarkers", "HiddenColumnMarkers", "enableResizerOverflow", "className", "defaultFontSizePoint", "defaultCellFormat", "readonly", "isComparing", "getCellDiff", "enableDataBoundaryNavigation", "footerHeight", "footerComponent", "arrowComponents", "hostHiddenRowRanges", "getFilterValues", "getFilterColors", "getValidationSourceValue", "resolveValidationSourceValues", "getDataColumnCount", "onDeleteNamedRange", "onChangeBorder", "onDuplicateSheet", "onCreateConditionalFormattingRule", "onDeleteConditionalFormattingRule", "onUpdateConditionalFormattingRule", "onCreateDataValidationRule", "onUpdateDataValidationRule", "onDeleteDataValidationRule", "onCreateChart", "onDeleteSheet", "onCreateEmbed", "onDecreaseIndent", "onIncreaseIndent", "onChangeTheme", "onChangeDecimals", "onUpdateSheet", "onChangeBatchStream", "onBlur"]);
200
+ getDataColumnCount = props.getDataColumnCount, onDeleteNamedRange = props.onDeleteNamedRange, onChangeBorder = props.onChangeBorder, onDuplicateSheet = props.onDuplicateSheet, onCreateConditionalFormattingRule = props.onCreateConditionalFormattingRule, onDeleteConditionalFormattingRule = props.onDeleteConditionalFormattingRule, onUpdateConditionalFormattingRule = props.onUpdateConditionalFormattingRule, onCreateDataValidationRule = props.onCreateDataValidationRule, onUpdateDataValidationRule = props.onUpdateDataValidationRule, onDeleteDataValidationRule = props.onDeleteDataValidationRule, onCreateChart = props.onCreateChart, onDeleteSheet = props.onDeleteSheet, onCreateEmbed = props.onCreateEmbed, onDecreaseIndent = props.onDecreaseIndent, onIncreaseIndent = props.onIncreaseIndent, onChangeTheme = props.onChangeTheme, onChangeDecimals = props.onChangeDecimals, onUpdateSheet = props.onUpdateSheet, onChangeBatchStream = props.onChangeBatchStream, onBlur = props.onBlur, rest = tslib_1.__rest(props, ["licenseKey", "sheetId", "sheetType", "ChartSheetView", "instanceId", "activeCell", "selections", "frozenColumnCount", "frozenRowCount", "frozenRowStart", "frozenColumnStart", "rowCount", "columnCount", "autoFocus", "basicFilter", "tables", "namedRanges", "bandedRanges", "tableBorderColor", "filterIconColor", "conditionalFormats", "showFilterIcon", "showCalculatedColumnIcon", "showHeaders", "backgroundImageUrl", "defaultColumnWidth", "defaultRowHeight", "lineHeightMode", "columnHeaderHeight", "rowHeaderWidth", "gridLineColor", "cellBackgroundColor", "cellColor", "headerBorderColor", "headerBackgroundColor", "headerColor", "headerActiveBackgroundColor", "headerSelectedBackgroundColor", "headerSelectedColor", "headerTableBackgroundColor", "headerTableActiveBackgroundColor", "headerTableSelectedBackgroundColor", "frozenShadowColor", "frozenShadowThickness", "selectionBackgroundColor", "selectionBorderColor", "selectionStrokeWidth", "showActiveCellBorderInSelection", "selectionDragBorderColor", "chartSelectedColor", "chipBackgroundColor", "merges", "borderStyles", "protectedRanges", "allowEditRanges", "isWorkbookProtected", "getSheetProtection", "pivotTables", "charts", "onUpdateChart", "onChangeZOrder", "embeds", "slicers", "rowMetadata", "columnMetadata", "scale", "zoomSpeed", "overscanCount", "enableEditOnEnterKey", "enterKeyDirection", "enableAutoCorrect", "shouldHandleKeyDown", "enableTextOverflow", "showGridLines", "showZeros", "showObjects", "splitPane", "enableCellDragAndDrop", "alertBeforeOverwritingCells", "autoPercentEntry", "errorCheckingRules", "staleCells", "rightToLeft", "pageBreaks", "pageBreakPreview", "workbookView", "printSettings", "onChangeHeaderFooter", "showRulers", "workbookTitle", "showFormulas", "protectFormulas", "showFrozenSeparator", "HeaderCell", "Cell", "SelectionTitleComponent", "CellEditor", "CellTooltip", "ContextMenu", "ContextMenuWrapper", "FilterBox", "HeaderMoveDragComponent", "SuggestionsDropdown", "stickyEditor", "scrollSnap", "scrollThrottleTimeout", "preventBrowserDefaultScroll", "mouseMoveThrottleTimeout", "tooltipIntentInterval", "selectionPolicy", "users", "userId", "renderCollaboratorCursor", "functionDescriptions", "showHeaderMenuButton", "scrollbarSize", "theme", "showNotes", "showAllNotes", "isNoteVisible", "showComments", "circleInvalidData", "getIgnoredErrors", "locale", "getDate1904", "parseCellEntryNumber", "formulaLocale", "referenceStyle", "agentSuggestions", "onReviewSuggestion", "onShowFormulas", "getDataRowCount", "getDataRegion", "getArrayFormula", "getChartComponent", "getEmbedComponent", "getLinkedPictureSource", "getSlicerComponent", "onChange", "onChangeBatch", "onChangeArrayFormula", "onExpandCollapse", "onPivotDrillDown", "onDelete", "onChangeEditorValue", "onFill", "onRequestCalculate", "onRequestFunctionArguments", "onChangeActiveCell", "onChangeActiveSheet", "onChangeSelections", "getSheetName", "getSheetId", "getCellData", "getNote", "getTextFormatRuns", "getDataValidation", "getEffectiveFormat", "getFormattedValue", "getTooltipContent", "errorResolutionComponent", "getEffectiveValue", "getSparklineGroup", "getUserEnteredExtendedValue", "getEffectiveExtendedValue", "getSheetRowCount", "getSheetColumnCount", "getSelections", "getCellPopoverContent", "onScroll", "onPaneScroll", "onViewPortChange", "windowConditionalFormats", "engineConditionalFormatResults", "getConditionalFormatRuleStats", "onResize", "onAutoResize", "onHideColumn", "onHideRow", "onShowColumn", "onShowRow", "onGroupRows", "onUngroupRows", "onCollapseRowGroup", "onExpandRowGroup", "onGroupColumns", "onUngroupColumns", "onCollapseColumnGroup", "onExpandColumnGroup", "onSetOutlineDepth", "onDeleteRow", "onDeleteColumn", "onInsertRow", "onInsertColumn", "onChangeAutoExpandTables", "onChangeAutoCalculatedColumns", "onInsertCellsShiftDown", "onInsertCellsShiftRight", "onDeleteCellsShiftLeft", "onDeleteCellsShiftUp", "onClearContents", "onMoveColumns", "onMoveRows", "onSelectNextSheet", "onSelectPreviousSheet", "onCreateNewSheet", "onKeyDown", "onChangeFormatting", "onRepeatFormatting", "onClearFormatting", "onRequestEditProtectedRange", "onRequestUnlockAllowEditRange", "onMoveChart", "onResizeChart", "onDeleteChart", "onCutChart", "onCopyChart", "objectClipboard", "objectClipboardPolicy", "onMoveEmbed", "onResizeEmbed", "onDeleteEmbed", "onRequestEditEmbed", "onMoveSlicer", "onResizeSlicer", "onDeleteSlicer", "onDeleteObjects", "onRequestEditSlicer", "onFillRange", "onFlashFill", "onFlashFillSuggest", "onAcceptFlashFill", "disableFillRightShortcut", "keymap", "enableAutoComplete", "onCalculateNow", "onRequestGoTo", "onMoveSelection", "onInsertCutCells", "onInsertCopiedCells", "onInsertTime", "onInsertDate", "onInsertDateTime", "onInsertAutoSum", "onUndo", "onRedo", "batchHistory", "onPaste", "onReapplyPaste", "onCopy", "onCut", "onSortColumn", "onSortTable", "onFilterTable", "onFilterPivot", "onResizeTable", "onUndoTableAutoExpansion", "onUndoCalculatedColumn", "onOverwriteCalculatedColumn", "onRequestEditTable", "onRequestEditPivotTable", "onRequestDeletePivotTable", "onRequestCreatePivotChart", "onRemoveTable", "onCreateTable", "onRequestCreateTable", "onInsertTableColumn", "onDeleteTableColumn", "onInsertTableRow", "onDeleteTableRow", "onUpdateTable", "onRequestResizeTable", "onRequestInsertSlicer", "onCreateBasicFilter", "onRequestDefineNamedRange", "onRequestFormatCells", "onRequestConditionalFormat", "onRequestDataValidation", "onRequestInsertComment", "onRequestInsertLink", "onFreezeColumn", "onFreezeRow", "onUpdateNote", "onProtectRange", "onUnProtectRange", "onSortRange", "onRequestSearch", "onRequestReplace", "onRequestResize", "getRowHeaderText", "getColumnHeaderText", "getAdditionalCellSpacing", "tokenizer", "onChangeScale", "onRemoveLink", "onSelectLink", "onSplitTextToColumns", "onRemoveDuplicates", "onGoalSeek", "onSubtotal", "onAdvancedFilter", "onRequestExpand", "cellExpandPredicate", "StructuredResult", "getMentions", "getStructuredProperties", "getFunctionParameterSuggestions", "shouldFetchFunctionParameters", "MentionTagComponent", "MentionDropdownItemComponent", "showSelectionResizeHandles", "enableMagicFill", "enableQuickEdit", "MagicFillComponent", "MagicFillContent", "QuickEdit", "PasteMenu", "SuggestionAction", "HiddenRowMarkers", "HiddenColumnMarkers", "enableResizerOverflow", "className", "defaultFontSizePoint", "defaultCellFormat", "readonly", "isComparing", "getCellDiff", "enableDataBoundaryNavigation", "footerHeight", "footerComponent", "arrowComponents", "hostHiddenRowRanges", "getFilterValues", "getFilterColors", "getValidationSourceValue", "resolveValidationSourceValues", "getDataColumnCount", "onDeleteNamedRange", "onChangeBorder", "onDuplicateSheet", "onCreateConditionalFormattingRule", "onDeleteConditionalFormattingRule", "onUpdateConditionalFormattingRule", "onCreateDataValidationRule", "onUpdateDataValidationRule", "onDeleteDataValidationRule", "onCreateChart", "onDeleteSheet", "onCreateEmbed", "onDecreaseIndent", "onIncreaseIndent", "onChangeTheme", "onChangeDecimals", "onUpdateSheet", "onChangeBatchStream", "onBlur"]);
201
201
  // Enter on a cell opens the editor in Google Sheets and moves down in
202
202
  // Excel; a host's explicit value wins under either keymap.
203
203
  var enableEditOnEnterKey = enableEditOnEnterKeyProp !== null && enableEditOnEnterKeyProp !== void 0 ? enableEditOnEnterKeyProp : keymap !== "excel";
@@ -3136,37 +3136,47 @@ function CanvasGridComponent(props, forwardedRef) {
3136
3136
  columnIndex: typingColumnIndex,
3137
3137
  };
3138
3138
  }, [typingSheetId, typingRowIndex, typingColumnIndex]);
3139
- var isPickingForCellEntry = formulaMode && canSelectCells && typingCell !== undefined;
3139
+ /** The entry that takes picks: a cell's, or a range input's while it holds formula mode. */
3140
+ var entryCell = typingCell !== null && typingCell !== void 0 ? typingCell : (formulaMode ? entry_selections_1.RANGE_INPUT_ENTRY : undefined);
3141
+ var isPickingForEntry = formulaMode && canSelectCells;
3140
3142
  // Every selection a gesture on the grid writes goes to the host through
3141
3143
  // here (cells, headings, table edges, a drawn selection or its title), so
3142
3144
  // each one made while an entry is taking picks is told apart from a
3143
3145
  // selection the host sets on its own.
3144
3146
  var onChangeSelectionsFromGrid = (0, use_callback_ref_1.useCallbackRef)((0, react_1.useCallback)(function (changedSheetId, nextSelections, finishedSelection) {
3145
- if (isPickingForCellEntry && typingCell && changedSheetId === sheetId) {
3147
+ if (isPickingForEntry && entryCell && changedSheetId === sheetId) {
3146
3148
  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)
3149
+ var sheets = (0, entry_selections_1.isSameEntryCell)(state === null || state === void 0 ? void 0 : state.cell, entryCell)
3148
3150
  ? state === null || state === void 0 ? void 0 : state.sheets
3149
3151
  : undefined;
3150
3152
  store.set(entry_selections_atom_1.entrySelectionsAtom, {
3151
- cell: typingCell,
3153
+ cell: entryCell,
3152
3154
  sheets: new Map(sheets).set(changedSheetId, (0, entry_selections_1.afterPick)(sheets === null || sheets === void 0 ? void 0 : sheets.get(changedSheetId), selections, nextSelections)),
3153
3155
  });
3154
3156
  }
3155
3157
  onChangeSelections === null || onChangeSelections === void 0 ? void 0 : onChangeSelections(changedSheetId, nextSelections, finishedSelection);
3156
3158
  }, [
3157
3159
  store,
3158
- isPickingForCellEntry,
3159
- typingCell,
3160
+ isPickingForEntry,
3161
+ entryCell,
3160
3162
  sheetId,
3161
3163
  selections,
3162
3164
  onChangeSelections,
3163
3165
  ]));
3166
+ /**
3167
+ * A pick moves the active cell of the sheet it is made on. For every sheet
3168
+ * but the typing one, the active cell it had before the entry's first pick
3169
+ * on it: it goes back with the sheet's selection.
3170
+ */
3171
+ var activeCellsBeforePicks = (0, react_1.useRef)(new Map());
3164
3172
  /**
3165
3173
  * 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).
3174
+ * a range was picked on gets its own selection back, and its active cell
3175
+ * when it is not the typing sheet (Excel leaves the referenced sheet's
3176
+ * cursor where it was). A sheet nothing was picked on keeps its selection
3177
+ * as it is, whatever references the formula holds (Excel keeps the selected
3178
+ * range through Enter and Escape, and when the formula is deleted while it
3179
+ * is still being typed).
3170
3180
  */
3171
3181
  var putBackEntrySelections = (0, use_callback_ref_1.useCallbackRef)((0, react_1.useCallback)(function (state, finishedSelection) {
3172
3182
  var sheets = new Map(state.sheets);
@@ -3180,10 +3190,14 @@ function CanvasGridComponent(props, forwardedRef) {
3180
3190
  else {
3181
3191
  onChangeSelections === null || onChangeSelections === void 0 ? void 0 : onChangeSelections(pickedSheetId, sheet.own, finishedSelection);
3182
3192
  }
3193
+ var activeCellBefore = activeCellsBeforePicks.current.get(pickedSheetId);
3194
+ if (activeCellBefore && pickedSheetId !== state.cell.sheetId) {
3195
+ onChangeActiveCell === null || onChangeActiveCell === void 0 ? void 0 : onChangeActiveCell(pickedSheetId, activeCellBefore);
3196
+ }
3183
3197
  sheets.set(pickedSheetId, (0, entry_selections_1.afterPutBack)(sheet));
3184
3198
  });
3185
3199
  return sheets;
3186
- }, [onChangeSelections]));
3200
+ }, [onChangeSelections, onChangeActiveCell]));
3187
3201
  // The entry's state follows what the host gives. It runs after every render
3188
3202
  // that brings another entry, another sheet in view or another selection, so
3189
3203
  // it reads the host's selection as it is now, including one the host set in
@@ -3192,7 +3206,7 @@ function CanvasGridComponent(props, forwardedRef) {
3192
3206
  (0, use_isomorphic_layout_effect_1.useIsomorphicLayoutEffect)(function () {
3193
3207
  var _a;
3194
3208
  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);
3209
+ var isSameEntry = (0, entry_selections_1.isSameEntryCell)(state === null || state === void 0 ? void 0 : state.cell, entryCell);
3196
3210
  var kept = isSameEntry ? state === null || state === void 0 ? void 0 : state.sheets : undefined;
3197
3211
  var sheets = kept;
3198
3212
  var seeded;
@@ -3208,7 +3222,7 @@ function CanvasGridComponent(props, forwardedRef) {
3208
3222
  }
3209
3223
  : state);
3210
3224
  }
3211
- if (!typingCell) {
3225
+ if (!entryCell) {
3212
3226
  if (state) {
3213
3227
  store.set(entry_selections_atom_1.entrySelectionsAtom, undefined);
3214
3228
  }
@@ -3220,7 +3234,7 @@ function CanvasGridComponent(props, forwardedRef) {
3220
3234
  if (known) {
3221
3235
  inView = (0, entry_selections_1.afterHostGave)(known, selections);
3222
3236
  }
3223
- else if (sheetId === typingCell.sheetId && (formulaMode || putBack)) {
3237
+ else if (sheetId === (typingCell === null || typingCell === void 0 ? void 0 : typingCell.sheetId) && (formulaMode || putBack)) {
3224
3238
  // The typing sheet is kept from the moment the entry is a formula: only
3225
3239
  // a formula takes a pick or stays open while another sheet is shown. A
3226
3240
  // constant reads the selection in view. What was just put back is what
@@ -3231,7 +3245,7 @@ function CanvasGridComponent(props, forwardedRef) {
3231
3245
  sheets = new Map(sheets).set(sheetId, inView);
3232
3246
  }
3233
3247
  if (sheets && sheets !== kept) {
3234
- store.set(entry_selections_atom_1.entrySelectionsAtom, { cell: typingCell, sheets: sheets });
3248
+ store.set(entry_selections_atom_1.entrySelectionsAtom, { cell: entryCell, sheets: sheets });
3235
3249
  }
3236
3250
  else if (state && !isSameEntry) {
3237
3251
  store.set(entry_selections_atom_1.entrySelectionsAtom, undefined);
@@ -3239,11 +3253,24 @@ function CanvasGridComponent(props, forwardedRef) {
3239
3253
  }, [
3240
3254
  store,
3241
3255
  typingCell,
3256
+ entryCell,
3242
3257
  sheetId,
3243
3258
  selections,
3244
3259
  formulaMode,
3245
3260
  putBackEntrySelections,
3246
3261
  ]);
3262
+ // Runs after the effect above, which puts an ended entry's active cells back.
3263
+ (0, use_isomorphic_layout_effect_1.useIsomorphicLayoutEffect)(function () {
3264
+ var _a, _b;
3265
+ if (!typingCell) {
3266
+ activeCellsBeforePicks.current.clear();
3267
+ return;
3268
+ }
3269
+ if (sheetId !== typingCell.sheetId &&
3270
+ !((_b = (_a = store.get(entry_selections_atom_1.entrySelectionsAtom)) === null || _a === void 0 ? void 0 : _a.sheets.get(sheetId)) === null || _b === void 0 ? void 0 : _b.written)) {
3271
+ activeCellsBeforePicks.current.set(sheetId, activeCell);
3272
+ }
3273
+ }, [store, typingCell, sheetId, activeCell]);
3247
3274
  /**
3248
3275
  * What the sheet the entry is typed on has selected, apart from any range
3249
3276
  * picked for its formula, whatever sheet is in view: during a pick on
@@ -3264,6 +3291,25 @@ function CanvasGridComponent(props, forwardedRef) {
3264
3291
  : typingSheetId === sheetId
3265
3292
  ? selections
3266
3293
  : config_1.DEFAULT_ARRAY;
3294
+ /**
3295
+ * The same, as the host has it at the moment of the call (`getSelections`):
3296
+ * asked when the entry commits while another sheet is in view, since a
3297
+ * selection the host sets for a sheet that is not in view is not handed to
3298
+ * the grid. Undefined when the host gives none, or the typing sheet is in
3299
+ * view.
3300
+ */
3301
+ var getEntrySelectionsNow = (0, use_callback_ref_1.useCallbackRef)((0, react_1.useCallback)(function () {
3302
+ if (typingSheetId === undefined || typingSheetId === sheetId) {
3303
+ return undefined;
3304
+ }
3305
+ var given = getSelections === null || getSelections === void 0 ? void 0 : getSelections(typingSheetId);
3306
+ if (!given) {
3307
+ return undefined;
3308
+ }
3309
+ return typingSheetSelections
3310
+ ? (0, entry_selections_1.afterHostGave)(typingSheetSelections, given).own
3311
+ : given;
3312
+ }, [getSelections, typingSheetId, sheetId, typingSheetSelections]));
3267
3313
  /**
3268
3314
  * Selection change handler
3269
3315
  */
@@ -4151,6 +4197,7 @@ function CanvasGridComponent(props, forwardedRef) {
4151
4197
  // Ctrl+Enter fills what the typing sheet had selected: not a range picked
4152
4198
  // for the formula, nor what another sheet in view has selected.
4153
4199
  selections: entrySelections !== null && entrySelections !== void 0 ? entrySelections : selections,
4200
+ getSelections: getEntrySelectionsNow,
4154
4201
  onChangeBatch: onChangeBatch,
4155
4202
  batchHistory: batchHistory,
4156
4203
  formulaLocale: formulaLocale,
@@ -4592,6 +4639,7 @@ function CanvasGridComponent(props, forwardedRef) {
4592
4639
  // the entry is typed on: never inside a range picked for the formula, nor
4593
4640
  // inside what another sheet in view has selected.
4594
4641
  navigationSelections: entrySelections,
4642
+ getNavigationSelections: getEntrySelectionsNow,
4595
4643
  getSheetColumnCount: getSheetColumnCount,
4596
4644
  getSheetRowCount: getSheetRowCount,
4597
4645
  getValue: getEditorDisplayValue,
@@ -1349,6 +1349,18 @@ export type CanvasGridProps<T extends CellData = CellData<any, any>> = {
1349
1349
  * @param sheetName
1350
1350
  */
1351
1351
  getSheetId?(sheetName: string): number | undefined;
1352
+ /**
1353
+ * What a sheet has selected now, by sheet id. The grid is handed the
1354
+ * selection of the sheet in view only (`selections`). While a formula takes
1355
+ * a reference on another sheet, the entry still acts on the selection of
1356
+ * the sheet it is typed on: the commit key moves the active cell inside it
1357
+ * and Ctrl+Enter fills it. With this the grid asks for that selection when
1358
+ * the entry is committed, so one the host set meanwhile (a collaborator's
1359
+ * row insert moves it) is the one acted on. Without it the grid acts on
1360
+ * what the host last gave while the typing sheet was in view.
1361
+ * @param sheetId
1362
+ */
1363
+ getSelections?(sheetId: number): SelectionArea<SelectionAttributes>[] | undefined;
1352
1364
  /**
1353
1365
  * Get row count of a sheet
1354
1366
  * @param sheetId