@odoo/o-spreadsheet 17.2.17 → 17.2.19

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.
@@ -3,9 +3,9 @@
3
3
  /**
4
4
  * This file is generated by o-spreadsheet build tools. Do not edit it.
5
5
  * @see https://github.com/odoo/o-spreadsheet
6
- * @version 17.2.17
7
- * @date 2024-07-18T14:23:50.417Z
8
- * @hash 9e0ea24
6
+ * @version 17.2.19
7
+ * @date 2024-08-02T08:22:56.367Z
8
+ * @hash c5ae261
9
9
  */
10
10
 
11
11
  'use strict';
@@ -487,7 +487,7 @@ function debounce(func, wait, immediate) {
487
487
  let timeout = undefined;
488
488
  const debounced = function () {
489
489
  const context = this;
490
- const args = arguments;
490
+ const args = Array.from(arguments);
491
491
  function later() {
492
492
  timeout = undefined;
493
493
  if (!immediate) {
@@ -715,7 +715,7 @@ function getSearchRegex(searchStr, searchOptions) {
715
715
  */
716
716
  function largeMax(array) {
717
717
  let len = array.length;
718
- if (len < 100000)
718
+ if (len < 100_000)
719
719
  return Math.max(...array);
720
720
  let max = -Infinity;
721
721
  while (len--) {
@@ -729,7 +729,7 @@ function largeMax(array) {
729
729
  */
730
730
  function largeMin(array) {
731
731
  let len = array.length;
732
- if (len < 100000)
732
+ if (len < 100_000)
733
733
  return Math.min(...array);
734
734
  let min = +Infinity;
735
735
  while (len--) {
@@ -2670,13 +2670,16 @@ const wildcardToRegExp = memoize(function wildcardToRegExp(operand) {
2670
2670
  }
2671
2671
  return new RegExp("^" + exp + "$", "i");
2672
2672
  });
2673
- function evaluatePredicate(value = "", criterion) {
2673
+ function evaluatePredicate(value = "", criterion, locale) {
2674
2674
  const { operator, operand } = criterion;
2675
2675
  if (operand === undefined || value === null || operand === null) {
2676
2676
  return false;
2677
2677
  }
2678
2678
  if (typeof operand === "number" && operator === "=") {
2679
- return value.toString() === operand.toString();
2679
+ if (typeof value === "string" && (isNumber(value, locale) || isDateTime(value, locale))) {
2680
+ return toNumber(value, locale) === operand;
2681
+ }
2682
+ return value === operand;
2680
2683
  }
2681
2684
  if (operator === "<>" || operator === "=") {
2682
2685
  let result;
@@ -2758,7 +2761,7 @@ function visitMatchingRanges(args, cb, locale, isQuery = false) {
2758
2761
  for (let k = 0; k < countArg - 1; k += 2) {
2759
2762
  const criteriaValue = toMatrix(args[k])[i][j].value;
2760
2763
  const criterion = predicates[k / 2];
2761
- validatedPredicates = evaluatePredicate(criteriaValue ?? undefined, criterion);
2764
+ validatedPredicates = evaluatePredicate(criteriaValue ?? undefined, criterion, locale);
2762
2765
  if (!validatedPredicates) {
2763
2766
  break;
2764
2767
  }
@@ -7182,7 +7185,7 @@ function textCell(value, format, formattedValue) {
7182
7185
  }
7183
7186
  function numberCell(value, format, formattedValue) {
7184
7187
  return {
7185
- value: value || 0,
7188
+ value: value || 0, // necessary to avoid "-0" and NaN values,
7186
7189
  format,
7187
7190
  formattedValue,
7188
7191
  type: CellValueType.number,
@@ -19630,8 +19633,8 @@ function truncateLabel(label) {
19630
19633
  function getDefaultChartJsRuntime(chart, labels, fontColor, { format, locale, truncateLabels = true }) {
19631
19634
  const options = {
19632
19635
  // https://www.chartjs.org/docs/latest/general/responsive.html
19633
- responsive: true,
19634
- maintainAspectRatio: false,
19636
+ responsive: true, // will resize when its container is resized
19637
+ maintainAspectRatio: false, // doesn't maintain the aspect ration (width/height =2 by default) so the user has the choice of the exact layout
19635
19638
  layout: {
19636
19639
  padding: { left: 20, right: 20, top: chart.title ? 10 : 25, bottom: 10 },
19637
19640
  },
@@ -19677,7 +19680,7 @@ function getDefaultChartJsRuntime(chart, labels, fontColor, { format, locale, tr
19677
19680
  labels: truncateLabels ? labels.map(truncateLabel) : labels,
19678
19681
  datasets: [],
19679
19682
  },
19680
- platform: undefined,
19683
+ platform: undefined, // This key is optional and will be set by chart.js
19681
19684
  plugins: [],
19682
19685
  };
19683
19686
  }
@@ -19954,7 +19957,7 @@ function getBarConfiguration(chart, labels, localeFormat) {
19954
19957
  },
19955
19958
  y: {
19956
19959
  position: chart.verticalAxisPosition,
19957
- beginAtZero: true,
19960
+ beginAtZero: true, // the origin of the y axis is always zero
19958
19961
  ticks: {
19959
19962
  color: fontColor,
19960
19963
  callback: (value) => {
@@ -20478,7 +20481,7 @@ function getLineOrScatterConfiguration(chart, labels, options) {
20478
20481
  },
20479
20482
  y: {
20480
20483
  position: chart.verticalAxisPosition,
20481
- beginAtZero: true,
20484
+ beginAtZero: true, // the origin of the y axis is always zero
20482
20485
  ticks: {
20483
20486
  color: fontColor,
20484
20487
  callback: (value) => {
@@ -20568,7 +20571,7 @@ function createLineOrScatterChartRuntime(chart, getters) {
20568
20571
  const dataset = {
20569
20572
  label,
20570
20573
  data,
20571
- tension: 0,
20574
+ tension: 0, // 0 -> render straight lines, which is much faster
20572
20575
  borderColor: color,
20573
20576
  backgroundColor,
20574
20577
  pointBackgroundColor: color,
@@ -20790,7 +20793,7 @@ class PieChart extends AbstractChart {
20790
20793
  ...this.getDefinition(),
20791
20794
  backgroundColor: toXlsxHexColor(this.background || BACKGROUND_CHART_COLOR),
20792
20795
  fontColor: toXlsxHexColor(chartFontColor(this.background)),
20793
- verticalAxisPosition: "left",
20796
+ verticalAxisPosition: "left", //TODO ExcelChartDefinition should be adapted, but can be done later
20794
20797
  dataSets,
20795
20798
  labelRange,
20796
20799
  };
@@ -23357,7 +23360,7 @@ const lightTemplateWithHeader = (colorSet) => ({
23357
23360
  style: { fillColor: colorSet.highlight, textColor: "#FFFFFF" },
23358
23361
  border: { bottom: { color: colorSet.highlight, style: "thin" } },
23359
23362
  },
23360
- totalRow: { border: { top: { color: colorSet.highlight, style: "medium" } } },
23363
+ totalRow: { border: { top: { color: colorSet.highlight, style: "medium" } } }, // @compatibility: should be double line
23361
23364
  firstRowStripe: { border: { bottom: { color: colorSet.highlight, style: "thin" } } },
23362
23365
  secondRowStripe: { border: { bottom: { color: colorSet.highlight, style: "thin" } } },
23363
23366
  });
@@ -23375,7 +23378,7 @@ const lightTemplateAllBorders = (colorSet) => ({
23375
23378
  },
23376
23379
  },
23377
23380
  headerRow: { border: { bottom: { color: colorSet.highlight, style: "medium" } } },
23378
- totalRow: { border: { top: { color: colorSet.highlight, style: "medium" } } },
23381
+ totalRow: { border: { top: { color: colorSet.highlight, style: "medium" } } }, // @compatibility: should be double line
23379
23382
  firstRowStripe: { style: { fillColor: colorSet.light } },
23380
23383
  firstColumnStripe: { style: { fillColor: colorSet.light } },
23381
23384
  });
@@ -23394,7 +23397,7 @@ const mediumTemplateBandedBorders = (colorSet) => ({
23394
23397
  headerRow: {
23395
23398
  style: { fillColor: colorSet.highlight, textColor: "#FFFFFF" },
23396
23399
  },
23397
- totalRow: { border: { top: { color: colorSet.highlight, style: "medium" } } },
23400
+ totalRow: { border: { top: { color: colorSet.highlight, style: "medium" } } }, // @compatibility: should be double line
23398
23401
  firstRowStripe: { style: { fillColor: colorSet.light } },
23399
23402
  firstColumnStripe: { style: { fillColor: colorSet.light } },
23400
23403
  });
@@ -23430,7 +23433,7 @@ const mediumTemplateMinimalBorders = (colorSet) => ({
23430
23433
  bottom: { color: "#000000", style: "medium" },
23431
23434
  },
23432
23435
  },
23433
- totalRow: { border: { top: { color: "#000000", style: "medium" } } },
23436
+ totalRow: { border: { top: { color: "#000000", style: "medium" } } }, // @compatibility: should be double line
23434
23437
  headerRow: {
23435
23438
  style: { fillColor: colorSet.highlight, textColor: "#FFFFFF" },
23436
23439
  border: { bottom: { color: "#000000", style: "medium" } },
@@ -23454,7 +23457,7 @@ const mediumTemplateAllBorders = (colorSet) => ({
23454
23457
  },
23455
23458
  style: { fillColor: colorSet.light },
23456
23459
  },
23457
- totalRow: { border: { top: { color: colorSet.highlight, style: "medium" } } },
23460
+ totalRow: { border: { top: { color: colorSet.highlight, style: "medium" } } }, // @compatibility: should be double line
23458
23461
  firstRowStripe: { style: { fillColor: colorSet.medium } },
23459
23462
  firstColumnStripe: { style: { fillColor: colorSet.medium } },
23460
23463
  });
@@ -23485,7 +23488,7 @@ const darkTemplateNoBorders = (colorSet) => ({
23485
23488
  category: "dark",
23486
23489
  colorName: colorSet.name,
23487
23490
  wholeTable: { style: { fillColor: colorSet.light } },
23488
- totalRow: { border: { top: { color: "#000000", style: "medium" } } },
23491
+ totalRow: { border: { top: { color: "#000000", style: "medium" } } }, // @compatibility: should be double line
23489
23492
  headerRow: { style: { fillColor: colorSet.highlight, textColor: "#FFFFFF" } },
23490
23493
  firstRowStripe: { style: { fillColor: colorSet.medium } },
23491
23494
  firstColumnStripe: { style: { fillColor: colorSet.medium } },
@@ -32257,7 +32260,9 @@ class Composer extends owl.Component {
32257
32260
  argToFocus: 0,
32258
32261
  });
32259
32262
  compositionActive = false;
32263
+ spreadsheetRect = useSpreadsheetRect();
32260
32264
  get assistantStyle() {
32265
+ const composerRect = this.composerRef.el.getBoundingClientRect();
32261
32266
  const assistantStyle = {};
32262
32267
  assistantStyle["min-width"] = `${this.props.rect?.width || ASSISTANT_WIDTH}px`;
32263
32268
  const proposals = this.autoCompleteState.provider?.proposals;
@@ -32284,6 +32289,9 @@ class Composer extends owl.Component {
32284
32289
  }
32285
32290
  else if (this.props.delimitation) {
32286
32291
  assistantStyle["max-height"] = `${this.props.delimitation.height}px`;
32292
+ if (composerRect.left + ASSISTANT_WIDTH > this.spreadsheetRect.width) {
32293
+ assistantStyle.right = `0px`;
32294
+ }
32287
32295
  }
32288
32296
  return cssPropertiesToCss(assistantStyle);
32289
32297
  }
@@ -33846,10 +33854,13 @@ function useCellHovered(env, gridRef, callback) {
33846
33854
  row: undefined,
33847
33855
  };
33848
33856
  const { Date } = window;
33849
- let x = 0;
33850
- let y = 0;
33857
+ let x = undefined;
33858
+ let y = undefined;
33851
33859
  let lastMoved = 0;
33852
33860
  function getPosition() {
33861
+ if (x === undefined || y === undefined) {
33862
+ return { col: -1, row: -1 };
33863
+ }
33853
33864
  const col = env.model.getters.getColIndex(x);
33854
33865
  const row = env.model.getters.getRowIndex(y);
33855
33866
  return { col, row };
@@ -35680,7 +35691,7 @@ class VerticalScrollBar extends owl.Component {
35680
35691
  onScroll(offset) {
35681
35692
  const { scrollX } = this.env.model.getters.getActiveSheetDOMScrollInfo();
35682
35693
  this.env.model.dispatch("SET_VIEWPORT_OFFSET", {
35683
- offsetX: scrollX,
35694
+ offsetX: scrollX, // offsetX is the same
35684
35695
  offsetY: offset,
35685
35696
  });
35686
35697
  }
@@ -35969,8 +35980,8 @@ class Grid extends owl.Component {
35969
35980
  "Ctrl+Shift+L": () => this.setHorizontalAlign("left"),
35970
35981
  "Ctrl+Shift+R": () => this.setHorizontalAlign("right"),
35971
35982
  "Ctrl+Shift+V": () => PASTE_AS_VALUE_ACTION(this.env),
35972
- "Ctrl+Shift+<": () => this.clearFormatting(),
35973
- "Ctrl+<": () => this.clearFormatting(),
35983
+ "Ctrl+Shift+<": () => this.clearFormatting(), // for qwerty
35984
+ "Ctrl+<": () => this.clearFormatting(), // for azerty
35974
35985
  "Ctrl+Shift+ ": () => {
35975
35986
  this.env.model.selection.selectAll();
35976
35987
  },
@@ -36771,10 +36782,10 @@ function convertCFCellIsOperator(xlsxCfOperator) {
36771
36782
  const CF_TYPE_CONVERSION_MAP = {
36772
36783
  aboveAverage: undefined,
36773
36784
  expression: undefined,
36774
- cellIs: undefined,
36775
- colorScale: undefined,
36785
+ cellIs: undefined, // exist but isn't an operator in o_spreadsheet
36786
+ colorScale: undefined, // exist but isn't an operator in o_spreadsheet
36776
36787
  dataBar: undefined,
36777
- iconSet: undefined,
36788
+ iconSet: undefined, // exist but isn't an operator in o_spreadsheet
36778
36789
  top10: undefined,
36779
36790
  uniqueValues: undefined,
36780
36791
  duplicateValues: undefined,
@@ -37009,7 +37020,7 @@ const XLSX_INDEXED_COLORS = {
37009
37020
  61: "993366",
37010
37021
  62: "333399",
37011
37022
  63: "333333",
37012
- 64: "000000",
37023
+ 64: "000000", // system foreground
37013
37024
  65: "FFFFFF", // system background
37014
37025
  };
37015
37026
  const IMAGE_MIMETYPE_TO_EXTENSION_MAPPING = {
@@ -40652,12 +40663,13 @@ class BordersPlugin extends CorePlugin {
40652
40663
  this.clearBorders(cmd.sheetId, cmd.target);
40653
40664
  break;
40654
40665
  case "REMOVE_COLUMNS_ROWS":
40655
- for (let el of [...cmd.elements].sort((a, b) => b - a)) {
40666
+ const elements = [...cmd.elements].sort((a, b) => b - a);
40667
+ for (const group of groupConsecutive(elements)) {
40656
40668
  if (cmd.dimension === "COL") {
40657
- this.shiftBordersHorizontally(cmd.sheetId, el + 1, -1);
40669
+ this.shiftBordersHorizontally(cmd.sheetId, group[group.length - 1] + 1, -group.length);
40658
40670
  }
40659
40671
  else {
40660
- this.shiftBordersVertically(cmd.sheetId, el + 1, -1);
40672
+ this.shiftBordersVertically(cmd.sheetId, group[group.length - 1] + 1, -group.length);
40661
40673
  }
40662
40674
  }
40663
40675
  break;
@@ -45022,12 +45034,7 @@ class SheetPlugin extends CorePlugin {
45022
45034
  });
45023
45035
  }
45024
45036
  if (colIndex > deletedColumn) {
45025
- this.dispatch("UPDATE_CELL_POSITION", {
45026
- sheetId: sheet.id,
45027
- cellId: cellId,
45028
- col: colIndex - 1,
45029
- row: rowIndex,
45030
- });
45037
+ this.setNewPosition(cellId, sheet.id, colIndex - 1, rowIndex);
45031
45038
  }
45032
45039
  }
45033
45040
  }
@@ -45037,7 +45044,7 @@ class SheetPlugin extends CorePlugin {
45037
45044
  * Move the cells after a column or rows insertion
45038
45045
  */
45039
45046
  moveCellsOnAddition(sheet, addedElement, quantity, dimension) {
45040
- const commands = [];
45047
+ const updates = [];
45041
45048
  for (let rowIndex = 0; rowIndex < sheet.rows.length; rowIndex++) {
45042
45049
  const row = sheet.rows[rowIndex];
45043
45050
  if (dimension !== "rows" || rowIndex >= addedElement) {
@@ -45046,20 +45053,20 @@ class SheetPlugin extends CorePlugin {
45046
45053
  const cellId = row.cells[i];
45047
45054
  if (cellId) {
45048
45055
  if (dimension === "rows" || colIndex >= addedElement) {
45049
- commands.push({
45050
- type: "UPDATE_CELL_POSITION",
45056
+ updates.push({
45051
45057
  sheetId: sheet.id,
45052
45058
  cellId: cellId,
45053
45059
  col: colIndex + (dimension === "columns" ? quantity : 0),
45054
45060
  row: rowIndex + (dimension === "rows" ? quantity : 0),
45061
+ type: "UPDATE_CELL_POSITION",
45055
45062
  });
45056
45063
  }
45057
45064
  }
45058
45065
  }
45059
45066
  }
45060
45067
  }
45061
- for (let cmd of commands.reverse()) {
45062
- this.dispatch(cmd.type, cmd);
45068
+ for (let update of updates.reverse()) {
45069
+ this.updateCellPosition(update);
45063
45070
  }
45064
45071
  }
45065
45072
  /**
@@ -45092,12 +45099,7 @@ class SheetPlugin extends CorePlugin {
45092
45099
  const colIndex = Number(i);
45093
45100
  const cellId = row.cells[i];
45094
45101
  if (cellId) {
45095
- this.dispatch("UPDATE_CELL_POSITION", {
45096
- sheetId: sheet.id,
45097
- cellId: cellId,
45098
- col: colIndex,
45099
- row: rowIndex - numberRows,
45100
- });
45102
+ this.setNewPosition(cellId, sheet.id, colIndex, rowIndex - numberRows);
45101
45103
  }
45102
45104
  }
45103
45105
  }
@@ -48290,17 +48292,17 @@ function isBadExpression(tokens) {
48290
48292
  */
48291
48293
  function sortWithClusters(colorsToSort) {
48292
48294
  const clusters = [
48293
- { leadColor: rgba(255, 0, 0), colors: [] },
48294
- { leadColor: rgba(255, 128, 0), colors: [] },
48295
- { leadColor: rgba(128, 128, 0), colors: [] },
48296
- { leadColor: rgba(128, 255, 0), colors: [] },
48297
- { leadColor: rgba(0, 255, 0), colors: [] },
48298
- { leadColor: rgba(0, 255, 128), colors: [] },
48299
- { leadColor: rgba(0, 255, 255), colors: [] },
48300
- { leadColor: rgba(0, 127, 255), colors: [] },
48301
- { leadColor: rgba(0, 0, 255), colors: [] },
48302
- { leadColor: rgba(127, 0, 255), colors: [] },
48303
- { leadColor: rgba(128, 0, 128), colors: [] },
48295
+ { leadColor: rgba(255, 0, 0), colors: [] }, // red
48296
+ { leadColor: rgba(255, 128, 0), colors: [] }, // orange
48297
+ { leadColor: rgba(128, 128, 0), colors: [] }, // yellow
48298
+ { leadColor: rgba(128, 255, 0), colors: [] }, // chartreuse
48299
+ { leadColor: rgba(0, 255, 0), colors: [] }, // green
48300
+ { leadColor: rgba(0, 255, 128), colors: [] }, // spring green
48301
+ { leadColor: rgba(0, 255, 255), colors: [] }, // cyan
48302
+ { leadColor: rgba(0, 127, 255), colors: [] }, // azure
48303
+ { leadColor: rgba(0, 0, 255), colors: [] }, // blue
48304
+ { leadColor: rgba(127, 0, 255), colors: [] }, // violet
48305
+ { leadColor: rgba(128, 0, 128), colors: [] }, // magenta
48304
48306
  { leadColor: rgba(255, 0, 128), colors: [] }, // rose
48305
48307
  ];
48306
48308
  for (const color of colorsToSort.map(colorToRGBA)) {
@@ -55421,7 +55423,7 @@ class BottomBar extends owl.Component {
55421
55423
  .map((sheetEl) => sheetEl.getBoundingClientRect())
55422
55424
  .map((rect) => ({
55423
55425
  x: rect.x,
55424
- width: rect.width - 1,
55426
+ width: rect.width - 1, // -1 to compensate negative margin
55425
55427
  y: rect.y,
55426
55428
  height: rect.height,
55427
55429
  }));
@@ -55643,7 +55645,7 @@ class RowGroup extends AbstractHeaderGroup {
55643
55645
  }
55644
55646
  return cssPropertiesToCss({
55645
55647
  top: `${groupBox.headerRect.height / 2}px`,
55646
- left: `calc(50% - 1px)`,
55648
+ left: `calc(50% - 1px)`, // -1px: we want the border to be on the center
55647
55649
  width: `30%`,
55648
55650
  height: `calc(100% - ${groupBox.headerRect.height / 2}px)`,
55649
55651
  "border-left": `1px solid ${HEADER_GROUPING_BORDER_COLOR}`,
@@ -55695,7 +55697,7 @@ class ColGroup extends AbstractHeaderGroup {
55695
55697
  return "";
55696
55698
  }
55697
55699
  return cssPropertiesToCss({
55698
- top: `calc(50% - 1px)`,
55700
+ top: `calc(50% - 1px)`, // -1px: we want the border to be on the center
55699
55701
  left: `${groupBox.headerRect.width / 2}px`,
55700
55702
  width: `calc(100% - ${groupBox.headerRect.width / 2}px)`,
55701
55703
  height: `30%`,
@@ -57113,7 +57115,7 @@ class Spreadsheet extends owl.Component {
57113
57115
  const gridColSize = GROUP_LAYER_WIDTH * this.rowLayers.length;
57114
57116
  const gridRowSize = GROUP_LAYER_WIDTH * this.colLayers.length;
57115
57117
  return cssPropertiesToCss({
57116
- "grid-template-columns": `${gridColSize ? gridColSize + 2 : 0}px auto`,
57118
+ "grid-template-columns": `${gridColSize ? gridColSize + 2 : 0}px auto`, // +2: margins
57117
57119
  "grid-template-rows": `${gridRowSize ? gridRowSize + 2 : 0}px auto`,
57118
57120
  });
57119
57121
  }
@@ -58563,7 +58565,7 @@ class SelectionStreamProcessorImpl {
58563
58565
  }
58564
58566
 
58565
58567
  class StateObserver {
58566
- changes = [];
58568
+ changes;
58567
58569
  commands = [];
58568
58570
  /**
58569
58571
  * Record the changes which could happen in the given callback, save them in a
@@ -58595,7 +58597,7 @@ class StateObserver {
58595
58597
  if (value[key] === val) {
58596
58598
  return;
58597
58599
  }
58598
- this.changes.push({
58600
+ this.changes?.push({
58599
58601
  path: args,
58600
58602
  before: value[key],
58601
58603
  after: val,
@@ -59726,7 +59728,7 @@ function addTableColumns(table, sheetData) {
59726
59728
  const colHeaderXc = toXC(tableZone.left + i, tableZone.top);
59727
59729
  const colName = sheetData.cells[colHeaderXc]?.content || `col${i}`;
59728
59730
  const colAttributes = [
59729
- ["id", i + 1],
59731
+ ["id", i + 1], // id cannot be 0
59730
59732
  ["name", colName],
59731
59733
  ];
59732
59734
  columns.push(escapeXml /*xml*/ `<tableColumn ${formatAttributes(colAttributes)}/>`);
@@ -60883,6 +60885,6 @@ exports.tokenColors = tokenColors;
60883
60885
  exports.tokenize = tokenize;
60884
60886
 
60885
60887
 
60886
- __info__.version = "17.2.17";
60887
- __info__.date = "2024-07-18T14:23:50.417Z";
60888
- __info__.hash = "9e0ea24";
60888
+ __info__.version = "17.2.19";
60889
+ __info__.date = "2024-08-02T08:22:56.367Z";
60890
+ __info__.hash = "c5ae261";
@@ -6759,6 +6759,7 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
6759
6759
  autoCompleteState: AutoCompleteState;
6760
6760
  functionDescriptionState: FunctionDescriptionState;
6761
6761
  private compositionActive;
6762
+ private spreadsheetRect;
6762
6763
  get assistantStyle(): string;
6763
6764
  shouldProcessInputEvents: boolean;
6764
6765
  tokens: EnrichedToken[];
@@ -9058,7 +9059,7 @@ declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEn
9058
9059
  private notificationStore;
9059
9060
  private composerFocusStore;
9060
9061
  get model(): Model;
9061
- getStyle(): string;
9062
+ getStyle(): "grid-template-rows: auto;" | "grid-template-rows: 63px auto 37px";
9062
9063
  setup(): void;
9063
9064
  private bindModelEvents;
9064
9065
  private unbindModelEvents;