@odoo/o-spreadsheet 16.4.11 → 16.4.13

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.
@@ -4200,70 +4200,71 @@ var CommandResult;
4200
4200
  CommandResult[CommandResult["InvalidFigureId"] = 29] = "InvalidFigureId";
4201
4201
  CommandResult[CommandResult["InputAlreadyFocused"] = 30] = "InputAlreadyFocused";
4202
4202
  CommandResult[CommandResult["MaximumRangesReached"] = 31] = "MaximumRangesReached";
4203
- CommandResult[CommandResult["InvalidChartDefinition"] = 32] = "InvalidChartDefinition";
4204
- CommandResult[CommandResult["InvalidDataSet"] = 33] = "InvalidDataSet";
4205
- CommandResult[CommandResult["InvalidLabelRange"] = 34] = "InvalidLabelRange";
4206
- CommandResult[CommandResult["InvalidScorecardKeyValue"] = 35] = "InvalidScorecardKeyValue";
4207
- CommandResult[CommandResult["InvalidScorecardBaseline"] = 36] = "InvalidScorecardBaseline";
4208
- CommandResult[CommandResult["InvalidGaugeDataRange"] = 37] = "InvalidGaugeDataRange";
4209
- CommandResult[CommandResult["EmptyGaugeRangeMin"] = 38] = "EmptyGaugeRangeMin";
4210
- CommandResult[CommandResult["GaugeRangeMinNaN"] = 39] = "GaugeRangeMinNaN";
4211
- CommandResult[CommandResult["EmptyGaugeRangeMax"] = 40] = "EmptyGaugeRangeMax";
4212
- CommandResult[CommandResult["GaugeRangeMaxNaN"] = 41] = "GaugeRangeMaxNaN";
4213
- CommandResult[CommandResult["GaugeRangeMinBiggerThanRangeMax"] = 42] = "GaugeRangeMinBiggerThanRangeMax";
4214
- CommandResult[CommandResult["GaugeLowerInflectionPointNaN"] = 43] = "GaugeLowerInflectionPointNaN";
4215
- CommandResult[CommandResult["GaugeUpperInflectionPointNaN"] = 44] = "GaugeUpperInflectionPointNaN";
4216
- CommandResult[CommandResult["GaugeLowerBiggerThanUpper"] = 45] = "GaugeLowerBiggerThanUpper";
4217
- CommandResult[CommandResult["InvalidAutofillSelection"] = 46] = "InvalidAutofillSelection";
4218
- CommandResult[CommandResult["WrongComposerSelection"] = 47] = "WrongComposerSelection";
4219
- CommandResult[CommandResult["MinBiggerThanMax"] = 48] = "MinBiggerThanMax";
4220
- CommandResult[CommandResult["LowerBiggerThanUpper"] = 49] = "LowerBiggerThanUpper";
4221
- CommandResult[CommandResult["MidBiggerThanMax"] = 50] = "MidBiggerThanMax";
4222
- CommandResult[CommandResult["MinBiggerThanMid"] = 51] = "MinBiggerThanMid";
4223
- CommandResult[CommandResult["FirstArgMissing"] = 52] = "FirstArgMissing";
4224
- CommandResult[CommandResult["SecondArgMissing"] = 53] = "SecondArgMissing";
4225
- CommandResult[CommandResult["MinNaN"] = 54] = "MinNaN";
4226
- CommandResult[CommandResult["MidNaN"] = 55] = "MidNaN";
4227
- CommandResult[CommandResult["MaxNaN"] = 56] = "MaxNaN";
4228
- CommandResult[CommandResult["ValueUpperInflectionNaN"] = 57] = "ValueUpperInflectionNaN";
4229
- CommandResult[CommandResult["ValueLowerInflectionNaN"] = 58] = "ValueLowerInflectionNaN";
4230
- CommandResult[CommandResult["MinInvalidFormula"] = 59] = "MinInvalidFormula";
4231
- CommandResult[CommandResult["MidInvalidFormula"] = 60] = "MidInvalidFormula";
4232
- CommandResult[CommandResult["MaxInvalidFormula"] = 61] = "MaxInvalidFormula";
4233
- CommandResult[CommandResult["ValueUpperInvalidFormula"] = 62] = "ValueUpperInvalidFormula";
4234
- CommandResult[CommandResult["ValueLowerInvalidFormula"] = 63] = "ValueLowerInvalidFormula";
4235
- CommandResult[CommandResult["InvalidSortZone"] = 64] = "InvalidSortZone";
4236
- CommandResult[CommandResult["WaitingSessionConfirmation"] = 65] = "WaitingSessionConfirmation";
4237
- CommandResult[CommandResult["MergeOverlap"] = 66] = "MergeOverlap";
4238
- CommandResult[CommandResult["TooManyHiddenElements"] = 67] = "TooManyHiddenElements";
4239
- CommandResult[CommandResult["Readonly"] = 68] = "Readonly";
4240
- CommandResult[CommandResult["InvalidViewportSize"] = 69] = "InvalidViewportSize";
4241
- CommandResult[CommandResult["InvalidScrollingDirection"] = 70] = "InvalidScrollingDirection";
4242
- CommandResult[CommandResult["FigureDoesNotExist"] = 71] = "FigureDoesNotExist";
4243
- CommandResult[CommandResult["InvalidConditionalFormatId"] = 72] = "InvalidConditionalFormatId";
4244
- CommandResult[CommandResult["InvalidCellPopover"] = 73] = "InvalidCellPopover";
4245
- CommandResult[CommandResult["EmptyTarget"] = 74] = "EmptyTarget";
4246
- CommandResult[CommandResult["InvalidFreezeQuantity"] = 75] = "InvalidFreezeQuantity";
4247
- CommandResult[CommandResult["FrozenPaneOverlap"] = 76] = "FrozenPaneOverlap";
4248
- CommandResult[CommandResult["ValuesNotChanged"] = 77] = "ValuesNotChanged";
4249
- CommandResult[CommandResult["InvalidFilterZone"] = 78] = "InvalidFilterZone";
4250
- CommandResult[CommandResult["FilterOverlap"] = 79] = "FilterOverlap";
4251
- CommandResult[CommandResult["FilterNotFound"] = 80] = "FilterNotFound";
4252
- CommandResult[CommandResult["MergeInFilter"] = 81] = "MergeInFilter";
4253
- CommandResult[CommandResult["NonContinuousTargets"] = 82] = "NonContinuousTargets";
4254
- CommandResult[CommandResult["DuplicatedFigureId"] = 83] = "DuplicatedFigureId";
4255
- CommandResult[CommandResult["InvalidSelectionStep"] = 84] = "InvalidSelectionStep";
4256
- CommandResult[CommandResult["DuplicatedChartId"] = 85] = "DuplicatedChartId";
4257
- CommandResult[CommandResult["ChartDoesNotExist"] = 86] = "ChartDoesNotExist";
4258
- CommandResult[CommandResult["InvalidHeaderIndex"] = 87] = "InvalidHeaderIndex";
4259
- CommandResult[CommandResult["InvalidQuantity"] = 88] = "InvalidQuantity";
4260
- CommandResult[CommandResult["MoreThanOneColumnSelected"] = 89] = "MoreThanOneColumnSelected";
4261
- CommandResult[CommandResult["EmptySplitSeparator"] = 90] = "EmptySplitSeparator";
4262
- CommandResult[CommandResult["SplitWillOverwriteContent"] = 91] = "SplitWillOverwriteContent";
4263
- CommandResult[CommandResult["NoSplitSeparatorInSelection"] = 92] = "NoSplitSeparatorInSelection";
4264
- CommandResult[CommandResult["NoActiveSheet"] = 93] = "NoActiveSheet";
4265
- CommandResult[CommandResult["InvalidLocale"] = 94] = "InvalidLocale";
4266
- CommandResult[CommandResult["AlreadyInPaintingFormatMode"] = 95] = "AlreadyInPaintingFormatMode";
4203
+ CommandResult[CommandResult["MinimumRangesReached"] = 32] = "MinimumRangesReached";
4204
+ CommandResult[CommandResult["InvalidChartDefinition"] = 33] = "InvalidChartDefinition";
4205
+ CommandResult[CommandResult["InvalidDataSet"] = 34] = "InvalidDataSet";
4206
+ CommandResult[CommandResult["InvalidLabelRange"] = 35] = "InvalidLabelRange";
4207
+ CommandResult[CommandResult["InvalidScorecardKeyValue"] = 36] = "InvalidScorecardKeyValue";
4208
+ CommandResult[CommandResult["InvalidScorecardBaseline"] = 37] = "InvalidScorecardBaseline";
4209
+ CommandResult[CommandResult["InvalidGaugeDataRange"] = 38] = "InvalidGaugeDataRange";
4210
+ CommandResult[CommandResult["EmptyGaugeRangeMin"] = 39] = "EmptyGaugeRangeMin";
4211
+ CommandResult[CommandResult["GaugeRangeMinNaN"] = 40] = "GaugeRangeMinNaN";
4212
+ CommandResult[CommandResult["EmptyGaugeRangeMax"] = 41] = "EmptyGaugeRangeMax";
4213
+ CommandResult[CommandResult["GaugeRangeMaxNaN"] = 42] = "GaugeRangeMaxNaN";
4214
+ CommandResult[CommandResult["GaugeRangeMinBiggerThanRangeMax"] = 43] = "GaugeRangeMinBiggerThanRangeMax";
4215
+ CommandResult[CommandResult["GaugeLowerInflectionPointNaN"] = 44] = "GaugeLowerInflectionPointNaN";
4216
+ CommandResult[CommandResult["GaugeUpperInflectionPointNaN"] = 45] = "GaugeUpperInflectionPointNaN";
4217
+ CommandResult[CommandResult["GaugeLowerBiggerThanUpper"] = 46] = "GaugeLowerBiggerThanUpper";
4218
+ CommandResult[CommandResult["InvalidAutofillSelection"] = 47] = "InvalidAutofillSelection";
4219
+ CommandResult[CommandResult["WrongComposerSelection"] = 48] = "WrongComposerSelection";
4220
+ CommandResult[CommandResult["MinBiggerThanMax"] = 49] = "MinBiggerThanMax";
4221
+ CommandResult[CommandResult["LowerBiggerThanUpper"] = 50] = "LowerBiggerThanUpper";
4222
+ CommandResult[CommandResult["MidBiggerThanMax"] = 51] = "MidBiggerThanMax";
4223
+ CommandResult[CommandResult["MinBiggerThanMid"] = 52] = "MinBiggerThanMid";
4224
+ CommandResult[CommandResult["FirstArgMissing"] = 53] = "FirstArgMissing";
4225
+ CommandResult[CommandResult["SecondArgMissing"] = 54] = "SecondArgMissing";
4226
+ CommandResult[CommandResult["MinNaN"] = 55] = "MinNaN";
4227
+ CommandResult[CommandResult["MidNaN"] = 56] = "MidNaN";
4228
+ CommandResult[CommandResult["MaxNaN"] = 57] = "MaxNaN";
4229
+ CommandResult[CommandResult["ValueUpperInflectionNaN"] = 58] = "ValueUpperInflectionNaN";
4230
+ CommandResult[CommandResult["ValueLowerInflectionNaN"] = 59] = "ValueLowerInflectionNaN";
4231
+ CommandResult[CommandResult["MinInvalidFormula"] = 60] = "MinInvalidFormula";
4232
+ CommandResult[CommandResult["MidInvalidFormula"] = 61] = "MidInvalidFormula";
4233
+ CommandResult[CommandResult["MaxInvalidFormula"] = 62] = "MaxInvalidFormula";
4234
+ CommandResult[CommandResult["ValueUpperInvalidFormula"] = 63] = "ValueUpperInvalidFormula";
4235
+ CommandResult[CommandResult["ValueLowerInvalidFormula"] = 64] = "ValueLowerInvalidFormula";
4236
+ CommandResult[CommandResult["InvalidSortZone"] = 65] = "InvalidSortZone";
4237
+ CommandResult[CommandResult["WaitingSessionConfirmation"] = 66] = "WaitingSessionConfirmation";
4238
+ CommandResult[CommandResult["MergeOverlap"] = 67] = "MergeOverlap";
4239
+ CommandResult[CommandResult["TooManyHiddenElements"] = 68] = "TooManyHiddenElements";
4240
+ CommandResult[CommandResult["Readonly"] = 69] = "Readonly";
4241
+ CommandResult[CommandResult["InvalidViewportSize"] = 70] = "InvalidViewportSize";
4242
+ CommandResult[CommandResult["InvalidScrollingDirection"] = 71] = "InvalidScrollingDirection";
4243
+ CommandResult[CommandResult["FigureDoesNotExist"] = 72] = "FigureDoesNotExist";
4244
+ CommandResult[CommandResult["InvalidConditionalFormatId"] = 73] = "InvalidConditionalFormatId";
4245
+ CommandResult[CommandResult["InvalidCellPopover"] = 74] = "InvalidCellPopover";
4246
+ CommandResult[CommandResult["EmptyTarget"] = 75] = "EmptyTarget";
4247
+ CommandResult[CommandResult["InvalidFreezeQuantity"] = 76] = "InvalidFreezeQuantity";
4248
+ CommandResult[CommandResult["FrozenPaneOverlap"] = 77] = "FrozenPaneOverlap";
4249
+ CommandResult[CommandResult["ValuesNotChanged"] = 78] = "ValuesNotChanged";
4250
+ CommandResult[CommandResult["InvalidFilterZone"] = 79] = "InvalidFilterZone";
4251
+ CommandResult[CommandResult["FilterOverlap"] = 80] = "FilterOverlap";
4252
+ CommandResult[CommandResult["FilterNotFound"] = 81] = "FilterNotFound";
4253
+ CommandResult[CommandResult["MergeInFilter"] = 82] = "MergeInFilter";
4254
+ CommandResult[CommandResult["NonContinuousTargets"] = 83] = "NonContinuousTargets";
4255
+ CommandResult[CommandResult["DuplicatedFigureId"] = 84] = "DuplicatedFigureId";
4256
+ CommandResult[CommandResult["InvalidSelectionStep"] = 85] = "InvalidSelectionStep";
4257
+ CommandResult[CommandResult["DuplicatedChartId"] = 86] = "DuplicatedChartId";
4258
+ CommandResult[CommandResult["ChartDoesNotExist"] = 87] = "ChartDoesNotExist";
4259
+ CommandResult[CommandResult["InvalidHeaderIndex"] = 88] = "InvalidHeaderIndex";
4260
+ CommandResult[CommandResult["InvalidQuantity"] = 89] = "InvalidQuantity";
4261
+ CommandResult[CommandResult["MoreThanOneColumnSelected"] = 90] = "MoreThanOneColumnSelected";
4262
+ CommandResult[CommandResult["EmptySplitSeparator"] = 91] = "EmptySplitSeparator";
4263
+ CommandResult[CommandResult["SplitWillOverwriteContent"] = 92] = "SplitWillOverwriteContent";
4264
+ CommandResult[CommandResult["NoSplitSeparatorInSelection"] = 93] = "NoSplitSeparatorInSelection";
4265
+ CommandResult[CommandResult["NoActiveSheet"] = 94] = "NoActiveSheet";
4266
+ CommandResult[CommandResult["InvalidLocale"] = 95] = "InvalidLocale";
4267
+ CommandResult[CommandResult["AlreadyInPaintingFormatMode"] = 96] = "AlreadyInPaintingFormatMode";
4267
4268
  })(CommandResult || (CommandResult = {}));
4268
4269
 
4269
4270
  const borderStyles = ["thin", "medium", "thick", "dashed", "dotted"];
@@ -16027,11 +16028,11 @@ function checkDataset(definition) {
16027
16028
  if (definition.dataSets) {
16028
16029
  const invalidRanges = definition.dataSets.find((range) => !rangeReference.test(range)) !== undefined;
16029
16030
  if (invalidRanges) {
16030
- return 33 /* CommandResult.InvalidDataSet */;
16031
+ return 34 /* CommandResult.InvalidDataSet */;
16031
16032
  }
16032
16033
  const zones = definition.dataSets.map(toUnboundedZone);
16033
16034
  if (zones.some((zone) => zone.top !== zone.bottom && isFullRow(zone))) {
16034
- return 33 /* CommandResult.InvalidDataSet */;
16035
+ return 34 /* CommandResult.InvalidDataSet */;
16035
16036
  }
16036
16037
  }
16037
16038
  return 0 /* CommandResult.Success */;
@@ -16040,7 +16041,7 @@ function checkLabelRange(definition) {
16040
16041
  if (definition.labelRange) {
16041
16042
  const invalidLabels = !rangeReference.test(definition.labelRange || "");
16042
16043
  if (invalidLabels) {
16043
- return 34 /* CommandResult.InvalidLabelRange */;
16044
+ return 35 /* CommandResult.InvalidLabelRange */;
16044
16045
  }
16045
16046
  }
16046
16047
  return 0 /* CommandResult.Success */;
@@ -16127,22 +16128,22 @@ function getChartPositionAtCenterOfViewport(getters, chartSize) {
16127
16128
  const CfTerms = {
16128
16129
  Errors: {
16129
16130
  [26 /* CommandResult.InvalidRange */]: _lt("The range is invalid"),
16130
- [52 /* CommandResult.FirstArgMissing */]: _lt("The argument is missing. Please provide a value"),
16131
- [53 /* CommandResult.SecondArgMissing */]: _lt("The second argument is missing. Please provide a value"),
16132
- [54 /* CommandResult.MinNaN */]: _lt("The minpoint must be a number"),
16133
- [55 /* CommandResult.MidNaN */]: _lt("The midpoint must be a number"),
16134
- [56 /* CommandResult.MaxNaN */]: _lt("The maxpoint must be a number"),
16135
- [57 /* CommandResult.ValueUpperInflectionNaN */]: _lt("The first value must be a number"),
16136
- [58 /* CommandResult.ValueLowerInflectionNaN */]: _lt("The second value must be a number"),
16137
- [48 /* CommandResult.MinBiggerThanMax */]: _lt("Minimum must be smaller then Maximum"),
16138
- [51 /* CommandResult.MinBiggerThanMid */]: _lt("Minimum must be smaller then Midpoint"),
16139
- [50 /* CommandResult.MidBiggerThanMax */]: _lt("Midpoint must be smaller then Maximum"),
16140
- [49 /* CommandResult.LowerBiggerThanUpper */]: _lt("Lower inflection point must be smaller than upper inflection point"),
16141
- [59 /* CommandResult.MinInvalidFormula */]: _lt("Invalid Minpoint formula"),
16142
- [61 /* CommandResult.MaxInvalidFormula */]: _lt("Invalid Maxpoint formula"),
16143
- [60 /* CommandResult.MidInvalidFormula */]: _lt("Invalid Midpoint formula"),
16144
- [62 /* CommandResult.ValueUpperInvalidFormula */]: _lt("Invalid upper inflection point formula"),
16145
- [63 /* CommandResult.ValueLowerInvalidFormula */]: _lt("Invalid lower inflection point formula"),
16131
+ [53 /* CommandResult.FirstArgMissing */]: _lt("The argument is missing. Please provide a value"),
16132
+ [54 /* CommandResult.SecondArgMissing */]: _lt("The second argument is missing. Please provide a value"),
16133
+ [55 /* CommandResult.MinNaN */]: _lt("The minpoint must be a number"),
16134
+ [56 /* CommandResult.MidNaN */]: _lt("The midpoint must be a number"),
16135
+ [57 /* CommandResult.MaxNaN */]: _lt("The maxpoint must be a number"),
16136
+ [58 /* CommandResult.ValueUpperInflectionNaN */]: _lt("The first value must be a number"),
16137
+ [59 /* CommandResult.ValueLowerInflectionNaN */]: _lt("The second value must be a number"),
16138
+ [49 /* CommandResult.MinBiggerThanMax */]: _lt("Minimum must be smaller then Maximum"),
16139
+ [52 /* CommandResult.MinBiggerThanMid */]: _lt("Minimum must be smaller then Midpoint"),
16140
+ [51 /* CommandResult.MidBiggerThanMax */]: _lt("Midpoint must be smaller then Maximum"),
16141
+ [50 /* CommandResult.LowerBiggerThanUpper */]: _lt("Lower inflection point must be smaller than upper inflection point"),
16142
+ [60 /* CommandResult.MinInvalidFormula */]: _lt("Invalid Minpoint formula"),
16143
+ [62 /* CommandResult.MaxInvalidFormula */]: _lt("Invalid Maxpoint formula"),
16144
+ [61 /* CommandResult.MidInvalidFormula */]: _lt("Invalid Midpoint formula"),
16145
+ [63 /* CommandResult.ValueUpperInvalidFormula */]: _lt("Invalid upper inflection point formula"),
16146
+ [64 /* CommandResult.ValueLowerInvalidFormula */]: _lt("Invalid lower inflection point formula"),
16146
16147
  [25 /* CommandResult.EmptyRange */]: _lt("A range needs to be defined"),
16147
16148
  Unexpected: _lt("The rule is invalid for an unknown reason"),
16148
16149
  },
@@ -16170,20 +16171,20 @@ const ChartTerms = {
16170
16171
  Errors: {
16171
16172
  Unexpected: _lt("The chart definition is invalid for an unknown reason"),
16172
16173
  // BASIC CHART ERRORS (LINE | BAR | PIE)
16173
- [33 /* CommandResult.InvalidDataSet */]: _lt("The dataset is invalid"),
16174
- [34 /* CommandResult.InvalidLabelRange */]: _lt("Labels are invalid"),
16174
+ [34 /* CommandResult.InvalidDataSet */]: _lt("The dataset is invalid"),
16175
+ [35 /* CommandResult.InvalidLabelRange */]: _lt("Labels are invalid"),
16175
16176
  // SCORECARD CHART ERRORS
16176
- [35 /* CommandResult.InvalidScorecardKeyValue */]: _lt("The key value is invalid"),
16177
- [36 /* CommandResult.InvalidScorecardBaseline */]: _lt("The baseline value is invalid"),
16177
+ [36 /* CommandResult.InvalidScorecardKeyValue */]: _lt("The key value is invalid"),
16178
+ [37 /* CommandResult.InvalidScorecardBaseline */]: _lt("The baseline value is invalid"),
16178
16179
  // GAUGE CHART ERRORS
16179
- [37 /* CommandResult.InvalidGaugeDataRange */]: _lt("The data range is invalid"),
16180
- [38 /* CommandResult.EmptyGaugeRangeMin */]: _lt("A minimum range limit value is needed"),
16181
- [39 /* CommandResult.GaugeRangeMinNaN */]: _lt("The minimum range limit value must be a number"),
16182
- [40 /* CommandResult.EmptyGaugeRangeMax */]: _lt("A maximum range limit value is needed"),
16183
- [41 /* CommandResult.GaugeRangeMaxNaN */]: _lt("The maximum range limit value must be a number"),
16184
- [42 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */]: _lt("Minimum range limit must be smaller than maximum range limit"),
16185
- [43 /* CommandResult.GaugeLowerInflectionPointNaN */]: _lt("The lower inflection point value must be a number"),
16186
- [44 /* CommandResult.GaugeUpperInflectionPointNaN */]: _lt("The upper inflection point value must be a number"),
16180
+ [38 /* CommandResult.InvalidGaugeDataRange */]: _lt("The data range is invalid"),
16181
+ [39 /* CommandResult.EmptyGaugeRangeMin */]: _lt("A minimum range limit value is needed"),
16182
+ [40 /* CommandResult.GaugeRangeMinNaN */]: _lt("The minimum range limit value must be a number"),
16183
+ [41 /* CommandResult.EmptyGaugeRangeMax */]: _lt("A maximum range limit value is needed"),
16184
+ [42 /* CommandResult.GaugeRangeMaxNaN */]: _lt("The maximum range limit value must be a number"),
16185
+ [43 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */]: _lt("Minimum range limit must be smaller than maximum range limit"),
16186
+ [44 /* CommandResult.GaugeLowerInflectionPointNaN */]: _lt("The lower inflection point value must be a number"),
16187
+ [45 /* CommandResult.GaugeUpperInflectionPointNaN */]: _lt("The upper inflection point value must be a number"),
16187
16188
  },
16188
16189
  };
16189
16190
  const CustomCurrencyTerms = {
@@ -16193,9 +16194,9 @@ const MergeErrorMessage = _lt("Merged cells are preventing this operation. Unmer
16193
16194
  const SplitToColumnsTerms = {
16194
16195
  Errors: {
16195
16196
  Unexpected: _lt("Cannot split the selection for an unknown reason"),
16196
- [92 /* CommandResult.NoSplitSeparatorInSelection */]: _lt("There is no match for the selected separator in the selection"),
16197
- [89 /* CommandResult.MoreThanOneColumnSelected */]: _lt("Only a selection from a single column can be split"),
16198
- [91 /* CommandResult.SplitWillOverwriteContent */]: _lt("Splitting will overwrite existing content"),
16197
+ [93 /* CommandResult.NoSplitSeparatorInSelection */]: _lt("There is no match for the selected separator in the selection"),
16198
+ [90 /* CommandResult.MoreThanOneColumnSelected */]: _lt("Only a selection from a single column can be split"),
16199
+ [92 /* CommandResult.SplitWillOverwriteContent */]: _lt("Splitting will overwrite existing content"),
16199
16200
  },
16200
16201
  };
16201
16202
 
@@ -16600,7 +16601,7 @@ function createBarChartRuntime(chart, getters) {
16600
16601
 
16601
16602
  function isDataRangeValid(definition) {
16602
16603
  return definition.dataRange && !rangeReference.test(definition.dataRange)
16603
- ? 37 /* CommandResult.InvalidGaugeDataRange */
16604
+ ? 38 /* CommandResult.InvalidGaugeDataRange */
16604
16605
  : 0 /* CommandResult.Success */;
16605
16606
  }
16606
16607
  function checkRangeLimits(check, batchValidations) {
@@ -16632,7 +16633,7 @@ function checkInflectionPointsValue(check, batchValidations) {
16632
16633
  function checkRangeMinBiggerThanRangeMax(definition) {
16633
16634
  if (definition.sectionRule) {
16634
16635
  if (Number(definition.sectionRule.rangeMin) >= Number(definition.sectionRule.rangeMax)) {
16635
- return 42 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */;
16636
+ return 43 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */;
16636
16637
  }
16637
16638
  }
16638
16639
  return 0 /* CommandResult.Success */;
@@ -16641,9 +16642,9 @@ function checkEmpty(value, valueName) {
16641
16642
  if (value === "") {
16642
16643
  switch (valueName) {
16643
16644
  case "rangeMin":
16644
- return 38 /* CommandResult.EmptyGaugeRangeMin */;
16645
+ return 39 /* CommandResult.EmptyGaugeRangeMin */;
16645
16646
  case "rangeMax":
16646
- return 40 /* CommandResult.EmptyGaugeRangeMax */;
16647
+ return 41 /* CommandResult.EmptyGaugeRangeMax */;
16647
16648
  }
16648
16649
  }
16649
16650
  return 0 /* CommandResult.Success */;
@@ -16652,13 +16653,13 @@ function checkNaN(value, valueName) {
16652
16653
  if (isNaN(value)) {
16653
16654
  switch (valueName) {
16654
16655
  case "rangeMin":
16655
- return 39 /* CommandResult.GaugeRangeMinNaN */;
16656
+ return 40 /* CommandResult.GaugeRangeMinNaN */;
16656
16657
  case "rangeMax":
16657
- return 41 /* CommandResult.GaugeRangeMaxNaN */;
16658
+ return 42 /* CommandResult.GaugeRangeMaxNaN */;
16658
16659
  case "lowerInflectionPointValue":
16659
- return 43 /* CommandResult.GaugeLowerInflectionPointNaN */;
16660
+ return 44 /* CommandResult.GaugeLowerInflectionPointNaN */;
16660
16661
  case "upperInflectionPointValue":
16661
- return 44 /* CommandResult.GaugeUpperInflectionPointNaN */;
16662
+ return 45 /* CommandResult.GaugeUpperInflectionPointNaN */;
16662
16663
  }
16663
16664
  }
16664
16665
  return 0 /* CommandResult.Success */;
@@ -17454,12 +17455,12 @@ function createPieChartRuntime(chart, getters) {
17454
17455
 
17455
17456
  function checkKeyValue(definition) {
17456
17457
  return definition.keyValue && !rangeReference.test(definition.keyValue)
17457
- ? 35 /* CommandResult.InvalidScorecardKeyValue */
17458
+ ? 36 /* CommandResult.InvalidScorecardKeyValue */
17458
17459
  : 0 /* CommandResult.Success */;
17459
17460
  }
17460
17461
  function checkBaseline(definition) {
17461
17462
  return definition.baseline && !rangeReference.test(definition.baseline)
17462
- ? 36 /* CommandResult.InvalidScorecardBaseline */
17463
+ ? 37 /* CommandResult.InvalidScorecardBaseline */
17463
17464
  : 0 /* CommandResult.Success */;
17464
17465
  }
17465
17466
  class ScorecardChart extends AbstractChart {
@@ -17986,7 +17987,7 @@ const AddMergeInteractiveContent = {
17986
17987
  };
17987
17988
  function interactiveAddMerge(env, sheetId, target) {
17988
17989
  const result = env.model.dispatch("ADD_MERGE", { sheetId, target });
17989
- if (result.isCancelledBecause(81 /* CommandResult.MergeInFilter */)) {
17990
+ if (result.isCancelledBecause(82 /* CommandResult.MergeInFilter */)) {
17990
17991
  env.raiseError(AddMergeInteractiveContent.MergeInFilter);
17991
17992
  }
17992
17993
  else if (result.isCancelledBecause(3 /* CommandResult.MergeIsDestructive */)) {
@@ -18013,7 +18014,7 @@ function handlePasteResult(env, result) {
18013
18014
  else if (result.reasons.includes(23 /* CommandResult.WrongFigurePasteOption */)) {
18014
18015
  env.raiseError(PasteInteractiveContent.wrongFigurePasteOption);
18015
18016
  }
18016
- else if (result.reasons.includes(76 /* CommandResult.FrozenPaneOverlap */)) {
18017
+ else if (result.reasons.includes(77 /* CommandResult.FrozenPaneOverlap */)) {
18017
18018
  env.raiseError(PasteInteractiveContent.frozenPaneOverlap);
18018
18019
  }
18019
18020
  }
@@ -19189,7 +19190,7 @@ function interactiveSortSelection(env, sheetId, anchor, zone, sortDirection) {
19189
19190
  });
19190
19191
  }
19191
19192
  }
19192
- if (result.isCancelledBecause(64 /* CommandResult.InvalidSortZone */)) {
19193
+ if (result.isCancelledBecause(65 /* CommandResult.InvalidSortZone */)) {
19193
19194
  const { col, row } = anchor;
19194
19195
  env.model.selection.selectZone({ cell: { col, row }, zone });
19195
19196
  env.raiseError(_lt("Cannot sort. To sort, select only cells or only merges that have the same size."));
@@ -19203,13 +19204,13 @@ const AddFilterInteractiveContent = {
19203
19204
  };
19204
19205
  function interactiveAddFilter(env, sheetId, target) {
19205
19206
  const result = env.model.dispatch("CREATE_FILTER_TABLE", { target, sheetId });
19206
- if (result.isCancelledBecause(79 /* CommandResult.FilterOverlap */)) {
19207
+ if (result.isCancelledBecause(80 /* CommandResult.FilterOverlap */)) {
19207
19208
  env.raiseError(AddFilterInteractiveContent.filterOverlap);
19208
19209
  }
19209
- else if (result.isCancelledBecause(81 /* CommandResult.MergeInFilter */)) {
19210
+ else if (result.isCancelledBecause(82 /* CommandResult.MergeInFilter */)) {
19210
19211
  env.raiseError(AddFilterInteractiveContent.mergeInFilter);
19211
19212
  }
19212
- else if (result.isCancelledBecause(82 /* CommandResult.NonContinuousTargets */)) {
19213
+ else if (result.isCancelledBecause(83 /* CommandResult.NonContinuousTargets */)) {
19213
19214
  env.raiseError(AddFilterInteractiveContent.nonContinuousTargets);
19214
19215
  }
19215
19216
  }
@@ -19646,7 +19647,7 @@ function interactiveFreezeColumnsRows(env, dimension, base) {
19646
19647
  const sheetId = env.model.getters.getActiveSheetId();
19647
19648
  const cmd = dimension === "COL" ? "FREEZE_COLUMNS" : "FREEZE_ROWS";
19648
19649
  const result = env.model.dispatch(cmd, { sheetId, quantity: base });
19649
- if (result.isCancelledBecause(66 /* CommandResult.MergeOverlap */)) {
19650
+ if (result.isCancelledBecause(67 /* CommandResult.MergeOverlap */)) {
19650
19651
  env.raiseError(MergeErrorMessage);
19651
19652
  }
19652
19653
  }
@@ -20684,16 +20685,11 @@ class SelectionInput extends Component {
20684
20685
  this.triggerChange();
20685
20686
  }
20686
20687
  reset() {
20687
- const existingSelectionRanges = this.env.model.getters.getSelectionInput(this.id);
20688
- for (const range of existingSelectionRanges) {
20689
- this.env.model.dispatch("REMOVE_RANGE", {
20690
- id: this.id,
20691
- rangeId: range.id,
20692
- });
20693
- }
20694
- for (const range of this.previousRanges) {
20695
- this.env.model.dispatch("ADD_RANGE", { id: this.id, value: range });
20696
- }
20688
+ this.env.model.dispatch("ENABLE_NEW_SELECTION_INPUT", {
20689
+ id: this.id,
20690
+ initialRanges: this.previousRanges,
20691
+ hasSingleRange: this.props.hasSingleRange,
20692
+ });
20697
20693
  this.confirm();
20698
20694
  }
20699
20695
  confirm() {
@@ -20702,11 +20698,13 @@ class SelectionInput extends Component {
20702
20698
  const existingSelectionXcs = [];
20703
20699
  for (const range of existingSelectionRanges) {
20704
20700
  if (range.xc === "") {
20705
- this.env.model.dispatch("REMOVE_RANGE", {
20701
+ const result = this.env.model.dispatch("REMOVE_RANGE", {
20706
20702
  id: this.id,
20707
20703
  rangeId: range.id,
20708
20704
  });
20709
- continue;
20705
+ if (result.isSuccessful) {
20706
+ continue;
20707
+ }
20710
20708
  }
20711
20709
  existingSelectionXcs.push(range.xc);
20712
20710
  if (this.env.model.getters.isRangeValid(range.xc)) {
@@ -20789,10 +20787,10 @@ class LineBarPieConfigPanel extends Component {
20789
20787
  return cancelledReasons.map((error) => ChartTerms.Errors[error] || ChartTerms.Errors.Unexpected);
20790
20788
  }
20791
20789
  get isDatasetInvalid() {
20792
- return !!this.state.datasetDispatchResult?.isCancelledBecause(33 /* CommandResult.InvalidDataSet */);
20790
+ return !!this.state.datasetDispatchResult?.isCancelledBecause(34 /* CommandResult.InvalidDataSet */);
20793
20791
  }
20794
20792
  get isLabelInvalid() {
20795
- return !!this.state.labelsDispatchResult?.isCancelledBecause(34 /* CommandResult.InvalidLabelRange */);
20793
+ return !!this.state.labelsDispatchResult?.isCancelledBecause(35 /* CommandResult.InvalidLabelRange */);
20796
20794
  }
20797
20795
  onUpdateDataSetsHaveTitle(ev) {
20798
20796
  this.props.updateChart(this.props.figureId, {
@@ -21466,7 +21464,7 @@ class GaugeChartConfigPanel extends Component {
21466
21464
  return cancelledReasons.map((error) => ChartTerms.Errors[error] || ChartTerms.Errors.Unexpected);
21467
21465
  }
21468
21466
  get isDataRangeInvalid() {
21469
- return !!this.state.dataRangeDispatchResult?.isCancelledBecause(37 /* CommandResult.InvalidGaugeDataRange */);
21467
+ return !!this.state.dataRangeDispatchResult?.isCancelledBecause(38 /* CommandResult.InvalidGaugeDataRange */);
21470
21468
  }
21471
21469
  onDataRangeChanged(ranges) {
21472
21470
  this.dataRange = ranges[0];
@@ -21550,25 +21548,25 @@ class GaugeChartDesignPanel extends Component {
21550
21548
  });
21551
21549
  }
21552
21550
  isRangeMinInvalid() {
21553
- return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(38 /* CommandResult.EmptyGaugeRangeMin */) ||
21554
- this.state.sectionRuleDispatchResult?.isCancelledBecause(39 /* CommandResult.GaugeRangeMinNaN */) ||
21555
- this.state.sectionRuleDispatchResult?.isCancelledBecause(42 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */));
21551
+ return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(39 /* CommandResult.EmptyGaugeRangeMin */) ||
21552
+ this.state.sectionRuleDispatchResult?.isCancelledBecause(40 /* CommandResult.GaugeRangeMinNaN */) ||
21553
+ this.state.sectionRuleDispatchResult?.isCancelledBecause(43 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */));
21556
21554
  }
21557
21555
  isRangeMaxInvalid() {
21558
- return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(40 /* CommandResult.EmptyGaugeRangeMax */) ||
21559
- this.state.sectionRuleDispatchResult?.isCancelledBecause(41 /* CommandResult.GaugeRangeMaxNaN */) ||
21560
- this.state.sectionRuleDispatchResult?.isCancelledBecause(42 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */));
21556
+ return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(41 /* CommandResult.EmptyGaugeRangeMax */) ||
21557
+ this.state.sectionRuleDispatchResult?.isCancelledBecause(42 /* CommandResult.GaugeRangeMaxNaN */) ||
21558
+ this.state.sectionRuleDispatchResult?.isCancelledBecause(43 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */));
21561
21559
  }
21562
21560
  // ---------------------------------------------------------------------------
21563
21561
  // COLOR_SECTION_TEMPLATE
21564
21562
  // ---------------------------------------------------------------------------
21565
21563
  get isLowerInflectionPointInvalid() {
21566
- return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(43 /* CommandResult.GaugeLowerInflectionPointNaN */) ||
21567
- this.state.sectionRuleDispatchResult?.isCancelledBecause(45 /* CommandResult.GaugeLowerBiggerThanUpper */));
21564
+ return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(44 /* CommandResult.GaugeLowerInflectionPointNaN */) ||
21565
+ this.state.sectionRuleDispatchResult?.isCancelledBecause(46 /* CommandResult.GaugeLowerBiggerThanUpper */));
21568
21566
  }
21569
21567
  get isUpperInflectionPointInvalid() {
21570
- return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(44 /* CommandResult.GaugeUpperInflectionPointNaN */) ||
21571
- this.state.sectionRuleDispatchResult?.isCancelledBecause(45 /* CommandResult.GaugeLowerBiggerThanUpper */));
21568
+ return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(45 /* CommandResult.GaugeUpperInflectionPointNaN */) ||
21569
+ this.state.sectionRuleDispatchResult?.isCancelledBecause(46 /* CommandResult.GaugeLowerBiggerThanUpper */));
21572
21570
  }
21573
21571
  updateSectionColor(target, color) {
21574
21572
  const sectionRule = deepCopy(this.state.sectionRule);
@@ -21656,10 +21654,10 @@ class ScorecardChartConfigPanel extends Component {
21656
21654
  return cancelledReasons.map((error) => ChartTerms.Errors[error] || ChartTerms.Errors.Unexpected);
21657
21655
  }
21658
21656
  get isKeyValueInvalid() {
21659
- return !!this.state.keyValueDispatchResult?.isCancelledBecause(35 /* CommandResult.InvalidScorecardKeyValue */);
21657
+ return !!this.state.keyValueDispatchResult?.isCancelledBecause(36 /* CommandResult.InvalidScorecardKeyValue */);
21660
21658
  }
21661
21659
  get isBaselineInvalid() {
21662
- return !!this.state.keyValueDispatchResult?.isCancelledBecause(36 /* CommandResult.InvalidScorecardBaseline */);
21660
+ return !!this.state.keyValueDispatchResult?.isCancelledBecause(37 /* CommandResult.InvalidScorecardBaseline */);
21663
21661
  }
21664
21662
  onKeyValueRangeChanged(ranges) {
21665
21663
  this.keyValue = ranges[0];
@@ -22554,10 +22552,10 @@ class ConditionalFormattingPanel extends Component {
22554
22552
  * Cell Is Rule
22555
22553
  ****************************************************************************/
22556
22554
  get isValue1Invalid() {
22557
- return !!this.state.errors?.includes(52 /* CommandResult.FirstArgMissing */);
22555
+ return !!this.state.errors?.includes(53 /* CommandResult.FirstArgMissing */);
22558
22556
  }
22559
22557
  get isValue2Invalid() {
22560
- return !!this.state.errors?.includes(53 /* CommandResult.SecondArgMissing */);
22558
+ return !!this.state.errors?.includes(54 /* CommandResult.SecondArgMissing */);
22561
22559
  }
22562
22560
  toggleStyle(tool) {
22563
22561
  const style = this.state.rules.cellIs.style;
@@ -22574,17 +22572,17 @@ class ConditionalFormattingPanel extends Component {
22574
22572
  isValueInvalid(threshold) {
22575
22573
  switch (threshold) {
22576
22574
  case "minimum":
22577
- return (this.state.errors.includes(59 /* CommandResult.MinInvalidFormula */) ||
22578
- this.state.errors.includes(51 /* CommandResult.MinBiggerThanMid */) ||
22579
- this.state.errors.includes(48 /* CommandResult.MinBiggerThanMax */) ||
22580
- this.state.errors.includes(54 /* CommandResult.MinNaN */));
22575
+ return (this.state.errors.includes(60 /* CommandResult.MinInvalidFormula */) ||
22576
+ this.state.errors.includes(52 /* CommandResult.MinBiggerThanMid */) ||
22577
+ this.state.errors.includes(49 /* CommandResult.MinBiggerThanMax */) ||
22578
+ this.state.errors.includes(55 /* CommandResult.MinNaN */));
22581
22579
  case "midpoint":
22582
- return (this.state.errors.includes(60 /* CommandResult.MidInvalidFormula */) ||
22583
- this.state.errors.includes(55 /* CommandResult.MidNaN */) ||
22584
- this.state.errors.includes(50 /* CommandResult.MidBiggerThanMax */));
22580
+ return (this.state.errors.includes(61 /* CommandResult.MidInvalidFormula */) ||
22581
+ this.state.errors.includes(56 /* CommandResult.MidNaN */) ||
22582
+ this.state.errors.includes(51 /* CommandResult.MidBiggerThanMax */));
22585
22583
  case "maximum":
22586
- return (this.state.errors.includes(61 /* CommandResult.MaxInvalidFormula */) ||
22587
- this.state.errors.includes(56 /* CommandResult.MaxNaN */));
22584
+ return (this.state.errors.includes(62 /* CommandResult.MaxInvalidFormula */) ||
22585
+ this.state.errors.includes(57 /* CommandResult.MaxNaN */));
22588
22586
  default:
22589
22587
  return false;
22590
22588
  }
@@ -22632,13 +22630,13 @@ class ConditionalFormattingPanel extends Component {
22632
22630
  isInflectionPointInvalid(inflectionPoint) {
22633
22631
  switch (inflectionPoint) {
22634
22632
  case "lowerInflectionPoint":
22635
- return (this.state.errors.includes(58 /* CommandResult.ValueLowerInflectionNaN */) ||
22636
- this.state.errors.includes(63 /* CommandResult.ValueLowerInvalidFormula */) ||
22637
- this.state.errors.includes(49 /* CommandResult.LowerBiggerThanUpper */));
22633
+ return (this.state.errors.includes(59 /* CommandResult.ValueLowerInflectionNaN */) ||
22634
+ this.state.errors.includes(64 /* CommandResult.ValueLowerInvalidFormula */) ||
22635
+ this.state.errors.includes(50 /* CommandResult.LowerBiggerThanUpper */));
22638
22636
  case "upperInflectionPoint":
22639
- return (this.state.errors.includes(57 /* CommandResult.ValueUpperInflectionNaN */) ||
22640
- this.state.errors.includes(62 /* CommandResult.ValueUpperInvalidFormula */) ||
22641
- this.state.errors.includes(49 /* CommandResult.LowerBiggerThanUpper */));
22637
+ return (this.state.errors.includes(58 /* CommandResult.ValueUpperInflectionNaN */) ||
22638
+ this.state.errors.includes(63 /* CommandResult.ValueUpperInvalidFormula */) ||
22639
+ this.state.errors.includes(50 /* CommandResult.LowerBiggerThanUpper */));
22642
22640
  default:
22643
22641
  return true;
22644
22642
  }
@@ -23001,7 +22999,7 @@ const SplitToColumnsInteractiveContent = {
23001
22999
  };
23002
23000
  function interactiveSplitToColumns(env, separator, addNewColumns) {
23003
23001
  let result = env.model.dispatch("SPLIT_TEXT_INTO_COLUMNS", { separator, addNewColumns });
23004
- if (result.isCancelledBecause(91 /* CommandResult.SplitWillOverwriteContent */)) {
23002
+ if (result.isCancelledBecause(92 /* CommandResult.SplitWillOverwriteContent */)) {
23005
23003
  env.askConfirmation(SplitToColumnsInteractiveContent.SplitIsDestructive, () => {
23006
23004
  result = env.model.dispatch("SPLIT_TEXT_INTO_COLUMNS", {
23007
23005
  separator,
@@ -23065,8 +23063,8 @@ class SplitIntoColumnsPanel extends Component {
23065
23063
  const errors = new Set();
23066
23064
  for (const reason of cancelledReasons) {
23067
23065
  switch (reason) {
23068
- case 91 /* CommandResult.SplitWillOverwriteContent */:
23069
- case 90 /* CommandResult.EmptySplitSeparator */:
23066
+ case 92 /* CommandResult.SplitWillOverwriteContent */:
23067
+ case 91 /* CommandResult.EmptySplitSeparator */:
23070
23068
  break;
23071
23069
  default:
23072
23070
  errors.add(SplitToColumnsTerms.Errors[reason] || SplitToColumnsTerms.Errors.Unexpected);
@@ -23081,8 +23079,8 @@ class SplitIntoColumnsPanel extends Component {
23081
23079
  addNewColumns: this.state.addNewColumns,
23082
23080
  force: false,
23083
23081
  }).reasons;
23084
- if (cancelledReasons.includes(91 /* CommandResult.SplitWillOverwriteContent */)) {
23085
- warnings.push(SplitToColumnsTerms.Errors[91 /* CommandResult.SplitWillOverwriteContent */]);
23082
+ if (cancelledReasons.includes(92 /* CommandResult.SplitWillOverwriteContent */)) {
23083
+ warnings.push(SplitToColumnsTerms.Errors[92 /* CommandResult.SplitWillOverwriteContent */]);
23086
23084
  }
23087
23085
  return warnings;
23088
23086
  }
@@ -32316,13 +32314,13 @@ class ChartPlugin extends CorePlugin {
32316
32314
  }
32317
32315
  checkChartDuplicate(cmd) {
32318
32316
  return this.getters.getFigureSheetId(cmd.id)
32319
- ? 85 /* CommandResult.DuplicatedChartId */
32317
+ ? 86 /* CommandResult.DuplicatedChartId */
32320
32318
  : 0 /* CommandResult.Success */;
32321
32319
  }
32322
32320
  checkChartExists(cmd) {
32323
32321
  return this.getters.getFigureSheetId(cmd.id)
32324
32322
  ? 0 /* CommandResult.Success */
32325
- : 86 /* CommandResult.ChartDoesNotExist */;
32323
+ : 87 /* CommandResult.ChartDoesNotExist */;
32326
32324
  }
32327
32325
  }
32328
32326
 
@@ -32534,10 +32532,10 @@ class ConditionalFormatPlugin extends CorePlugin {
32534
32532
  return 28 /* CommandResult.InvalidSheetId */;
32535
32533
  const ruleIndex = this.cfRules[sheetId].findIndex((cf) => cf.id === cfId);
32536
32534
  if (ruleIndex === -1)
32537
- return 72 /* CommandResult.InvalidConditionalFormatId */;
32535
+ return 73 /* CommandResult.InvalidConditionalFormatId */;
32538
32536
  const cfIndex2 = direction === "up" ? ruleIndex - 1 : ruleIndex + 1;
32539
32537
  if (cfIndex2 < 0 || cfIndex2 >= this.cfRules[sheetId].length) {
32540
- return 72 /* CommandResult.InvalidConditionalFormatId */;
32538
+ return 73 /* CommandResult.InvalidConditionalFormatId */;
32541
32539
  }
32542
32540
  return 0 /* CommandResult.Success */;
32543
32541
  }
@@ -32578,10 +32576,10 @@ class ConditionalFormatPlugin extends CorePlugin {
32578
32576
  const errors = [];
32579
32577
  const isEmpty = (value) => value === undefined || value === "";
32580
32578
  if (expectedNumber >= 1 && isEmpty(rule.values[0])) {
32581
- errors.push(52 /* CommandResult.FirstArgMissing */);
32579
+ errors.push(53 /* CommandResult.FirstArgMissing */);
32582
32580
  }
32583
32581
  if (expectedNumber >= 2 && isEmpty(rule.values[1])) {
32584
- errors.push(53 /* CommandResult.SecondArgMissing */);
32582
+ errors.push(54 /* CommandResult.SecondArgMissing */);
32585
32583
  }
32586
32584
  return errors.length ? errors : 0 /* CommandResult.Success */;
32587
32585
  }
@@ -32593,15 +32591,15 @@ class ConditionalFormatPlugin extends CorePlugin {
32593
32591
  (threshold.value === "" || isNaN(threshold.value))) {
32594
32592
  switch (thresholdName) {
32595
32593
  case "min":
32596
- return 54 /* CommandResult.MinNaN */;
32594
+ return 55 /* CommandResult.MinNaN */;
32597
32595
  case "max":
32598
- return 56 /* CommandResult.MaxNaN */;
32596
+ return 57 /* CommandResult.MaxNaN */;
32599
32597
  case "mid":
32600
- return 55 /* CommandResult.MidNaN */;
32598
+ return 56 /* CommandResult.MidNaN */;
32601
32599
  case "upperInflectionPoint":
32602
- return 57 /* CommandResult.ValueUpperInflectionNaN */;
32600
+ return 58 /* CommandResult.ValueUpperInflectionNaN */;
32603
32601
  case "lowerInflectionPoint":
32604
- return 58 /* CommandResult.ValueLowerInflectionNaN */;
32602
+ return 59 /* CommandResult.ValueLowerInflectionNaN */;
32605
32603
  }
32606
32604
  }
32607
32605
  return 0 /* CommandResult.Success */;
@@ -32615,15 +32613,15 @@ class ConditionalFormatPlugin extends CorePlugin {
32615
32613
  catch (error) {
32616
32614
  switch (thresholdName) {
32617
32615
  case "min":
32618
- return 59 /* CommandResult.MinInvalidFormula */;
32616
+ return 60 /* CommandResult.MinInvalidFormula */;
32619
32617
  case "max":
32620
- return 61 /* CommandResult.MaxInvalidFormula */;
32618
+ return 62 /* CommandResult.MaxInvalidFormula */;
32621
32619
  case "mid":
32622
- return 60 /* CommandResult.MidInvalidFormula */;
32620
+ return 61 /* CommandResult.MidInvalidFormula */;
32623
32621
  case "upperInflectionPoint":
32624
- return 62 /* CommandResult.ValueUpperInvalidFormula */;
32622
+ return 63 /* CommandResult.ValueUpperInvalidFormula */;
32625
32623
  case "lowerInflectionPoint":
32626
- return 63 /* CommandResult.ValueLowerInvalidFormula */;
32624
+ return 64 /* CommandResult.ValueLowerInvalidFormula */;
32627
32625
  }
32628
32626
  }
32629
32627
  return 0 /* CommandResult.Success */;
@@ -32640,7 +32638,7 @@ class ConditionalFormatPlugin extends CorePlugin {
32640
32638
  if (["number", "percentage", "percentile"].includes(rule.lowerInflectionPoint.type) &&
32641
32639
  rule.lowerInflectionPoint.type === rule.upperInflectionPoint.type &&
32642
32640
  Number(minValue) > Number(maxValue)) {
32643
- return 49 /* CommandResult.LowerBiggerThanUpper */;
32641
+ return 50 /* CommandResult.LowerBiggerThanUpper */;
32644
32642
  }
32645
32643
  return 0 /* CommandResult.Success */;
32646
32644
  }
@@ -32650,7 +32648,7 @@ class ConditionalFormatPlugin extends CorePlugin {
32650
32648
  if (["number", "percentage", "percentile"].includes(rule.minimum.type) &&
32651
32649
  rule.minimum.type === rule.maximum.type &&
32652
32650
  stringToNumber(minValue) >= stringToNumber(maxValue)) {
32653
- return 48 /* CommandResult.MinBiggerThanMax */;
32651
+ return 49 /* CommandResult.MinBiggerThanMax */;
32654
32652
  }
32655
32653
  return 0 /* CommandResult.Success */;
32656
32654
  }
@@ -32661,7 +32659,7 @@ class ConditionalFormatPlugin extends CorePlugin {
32661
32659
  ["number", "percentage", "percentile"].includes(rule.midpoint.type) &&
32662
32660
  rule.midpoint.type === rule.maximum.type &&
32663
32661
  stringToNumber(midValue) >= stringToNumber(maxValue)) {
32664
- return 50 /* CommandResult.MidBiggerThanMax */;
32662
+ return 51 /* CommandResult.MidBiggerThanMax */;
32665
32663
  }
32666
32664
  return 0 /* CommandResult.Success */;
32667
32665
  }
@@ -32672,7 +32670,7 @@ class ConditionalFormatPlugin extends CorePlugin {
32672
32670
  ["number", "percentage", "percentile"].includes(rule.midpoint.type) &&
32673
32671
  rule.minimum.type === rule.midpoint.type &&
32674
32672
  stringToNumber(minValue) >= stringToNumber(midValue)) {
32675
- return 51 /* CommandResult.MinBiggerThanMid */;
32673
+ return 52 /* CommandResult.MinBiggerThanMid */;
32676
32674
  }
32677
32675
  return 0 /* CommandResult.Success */;
32678
32676
  }
@@ -32804,13 +32802,13 @@ class FigurePlugin extends CorePlugin {
32804
32802
  }
32805
32803
  checkFigureExists(sheetId, figureId) {
32806
32804
  if (this.figures[sheetId]?.[figureId] === undefined) {
32807
- return 71 /* CommandResult.FigureDoesNotExist */;
32805
+ return 72 /* CommandResult.FigureDoesNotExist */;
32808
32806
  }
32809
32807
  return 0 /* CommandResult.Success */;
32810
32808
  }
32811
32809
  checkFigureDuplicate(figureId) {
32812
32810
  if (Object.values(this.figures).find((sheet) => sheet?.[figureId])) {
32813
- return 83 /* CommandResult.DuplicatedFigureId */;
32811
+ return 84 /* CommandResult.DuplicatedFigureId */;
32814
32812
  }
32815
32813
  return 0 /* CommandResult.Success */;
32816
32814
  }
@@ -32922,12 +32920,12 @@ class FiltersPlugin extends CorePlugin {
32922
32920
  switch (cmd.type) {
32923
32921
  case "CREATE_FILTER_TABLE":
32924
32922
  if (!areZonesContinuous(...cmd.target)) {
32925
- return 82 /* CommandResult.NonContinuousTargets */;
32923
+ return 83 /* CommandResult.NonContinuousTargets */;
32926
32924
  }
32927
32925
  const zone = union(...cmd.target);
32928
32926
  const checkFilterOverlap = () => {
32929
32927
  if (this.getFilterTables(cmd.sheetId).some((filter) => overlap(filter.zone, zone))) {
32930
- return 79 /* CommandResult.FilterOverlap */;
32928
+ return 80 /* CommandResult.FilterOverlap */;
32931
32929
  }
32932
32930
  return 0 /* CommandResult.Success */;
32933
32931
  };
@@ -32935,7 +32933,7 @@ class FiltersPlugin extends CorePlugin {
32935
32933
  const mergesInTarget = this.getters.getMergesInZone(cmd.sheetId, zone);
32936
32934
  for (let merge of mergesInTarget) {
32937
32935
  if (overlap(zone, merge)) {
32938
- return 81 /* CommandResult.MergeInFilter */;
32936
+ return 82 /* CommandResult.MergeInFilter */;
32939
32937
  }
32940
32938
  }
32941
32939
  return 0 /* CommandResult.Success */;
@@ -32945,7 +32943,7 @@ class FiltersPlugin extends CorePlugin {
32945
32943
  for (let merge of cmd.target) {
32946
32944
  for (let filterTable of this.getFilterTables(cmd.sheetId)) {
32947
32945
  if (overlap(filterTable.zone, merge)) {
32948
- return 81 /* CommandResult.MergeInFilter */;
32946
+ return 82 /* CommandResult.MergeInFilter */;
32949
32947
  }
32950
32948
  }
32951
32949
  }
@@ -33307,10 +33305,10 @@ class HeaderVisibilityPlugin extends CorePlugin {
33307
33305
  : this.getters.getNumberRows(cmd.sheetId);
33308
33306
  const hiddenElements = new Set((hiddenGroup || []).flat().concat(cmd.elements));
33309
33307
  if (hiddenElements.size >= elements) {
33310
- return 67 /* CommandResult.TooManyHiddenElements */;
33308
+ return 68 /* CommandResult.TooManyHiddenElements */;
33311
33309
  }
33312
33310
  else if (Math.min(...cmd.elements) < 0 || Math.max(...cmd.elements) > elements) {
33313
- return 87 /* CommandResult.InvalidHeaderIndex */;
33311
+ return 88 /* CommandResult.InvalidHeaderIndex */;
33314
33312
  }
33315
33313
  else {
33316
33314
  return 0 /* CommandResult.Success */;
@@ -33874,7 +33872,7 @@ class MergePlugin extends CorePlugin {
33874
33872
  for (const zone of target) {
33875
33873
  for (const zone2 of target) {
33876
33874
  if (zone !== zone2 && overlap(zone, zone2)) {
33877
- return 66 /* CommandResult.MergeOverlap */;
33875
+ return 67 /* CommandResult.MergeOverlap */;
33878
33876
  }
33879
33877
  }
33880
33878
  }
@@ -33888,7 +33886,7 @@ class MergePlugin extends CorePlugin {
33888
33886
  for (const zone of target) {
33889
33887
  if ((zone.left < xSplit && zone.right >= xSplit) ||
33890
33888
  (zone.top < ySplit && zone.bottom >= ySplit)) {
33891
- return 76 /* CommandResult.FrozenPaneOverlap */;
33889
+ return 77 /* CommandResult.FrozenPaneOverlap */;
33892
33890
  }
33893
33891
  }
33894
33892
  return 0 /* CommandResult.Success */;
@@ -34521,10 +34519,10 @@ class SheetPlugin extends CorePlugin {
34521
34519
  ? this.getNumberCols(cmd.sheetId)
34522
34520
  : this.getNumberRows(cmd.sheetId);
34523
34521
  if (cmd.base < 0 || cmd.base > elements) {
34524
- return 87 /* CommandResult.InvalidHeaderIndex */;
34522
+ return 88 /* CommandResult.InvalidHeaderIndex */;
34525
34523
  }
34526
34524
  else if (cmd.quantity <= 0) {
34527
- return 88 /* CommandResult.InvalidQuantity */;
34525
+ return 89 /* CommandResult.InvalidQuantity */;
34528
34526
  }
34529
34527
  return 0 /* CommandResult.Success */;
34530
34528
  case "REMOVE_COLUMNS_ROWS": {
@@ -34532,7 +34530,7 @@ class SheetPlugin extends CorePlugin {
34532
34530
  ? this.getNumberCols(cmd.sheetId)
34533
34531
  : this.getNumberRows(cmd.sheetId);
34534
34532
  if (Math.min(...cmd.elements) < 0 || Math.max(...cmd.elements) > elements) {
34535
- return 87 /* CommandResult.InvalidHeaderIndex */;
34533
+ return 88 /* CommandResult.InvalidHeaderIndex */;
34536
34534
  }
34537
34535
  else if (this.checkElementsIncludeAllNonFrozenHeaders(cmd.sheetId, cmd.dimension, cmd.elements)) {
34538
34536
  return 8 /* CommandResult.NotEnoughElements */;
@@ -35012,18 +35010,18 @@ class SheetPlugin extends CorePlugin {
35012
35010
  checkRowFreezeQuantity(cmd) {
35013
35011
  return cmd.quantity >= 1 && cmd.quantity < this.getNumberRows(cmd.sheetId)
35014
35012
  ? 0 /* CommandResult.Success */
35015
- : 75 /* CommandResult.InvalidFreezeQuantity */;
35013
+ : 76 /* CommandResult.InvalidFreezeQuantity */;
35016
35014
  }
35017
35015
  checkColFreezeQuantity(cmd) {
35018
35016
  return cmd.quantity >= 1 && cmd.quantity < this.getNumberCols(cmd.sheetId)
35019
35017
  ? 0 /* CommandResult.Success */
35020
- : 75 /* CommandResult.InvalidFreezeQuantity */;
35018
+ : 76 /* CommandResult.InvalidFreezeQuantity */;
35021
35019
  }
35022
35020
  checkRowFreezeOverlapMerge(cmd) {
35023
35021
  const merges = this.getters.getMerges(cmd.sheetId);
35024
35022
  for (let merge of merges) {
35025
35023
  if (merge.top < cmd.quantity && cmd.quantity <= merge.bottom) {
35026
- return 66 /* CommandResult.MergeOverlap */;
35024
+ return 67 /* CommandResult.MergeOverlap */;
35027
35025
  }
35028
35026
  }
35029
35027
  return 0 /* CommandResult.Success */;
@@ -35032,7 +35030,7 @@ class SheetPlugin extends CorePlugin {
35032
35030
  const merges = this.getters.getMerges(cmd.sheetId);
35033
35031
  for (let merge of merges) {
35034
35032
  if (merge.left < cmd.quantity && cmd.quantity <= merge.right) {
35035
- return 66 /* CommandResult.MergeOverlap */;
35033
+ return 67 /* CommandResult.MergeOverlap */;
35036
35034
  }
35037
35035
  }
35038
35036
  return 0 /* CommandResult.Success */;
@@ -35367,7 +35365,7 @@ class SettingsPlugin extends CorePlugin {
35367
35365
  allowDispatch(cmd) {
35368
35366
  switch (cmd.type) {
35369
35367
  case "UPDATE_LOCALE":
35370
- return isValidLocale(cmd.locale) ? 0 /* CommandResult.Success */ : 94 /* CommandResult.InvalidLocale */;
35368
+ return isValidLocale(cmd.locale) ? 0 /* CommandResult.Success */ : 95 /* CommandResult.InvalidLocale */;
35371
35369
  }
35372
35370
  return 0 /* CommandResult.Success */;
35373
35371
  }
@@ -35593,9 +35591,9 @@ class FormulaDependencyGraph {
35593
35591
  */
35594
35592
  getCellsDependingOn(positionIds) {
35595
35593
  const visited = new JetSet();
35596
- const queue = Array.from(positionIds);
35594
+ const queue = Array.from(positionIds).reverse();
35597
35595
  while (queue.length > 0) {
35598
- const node = queue.shift();
35596
+ const node = queue.pop();
35599
35597
  visited.add(node);
35600
35598
  const adjacentNodes = this.inverseDependencies.get(node) || new Set();
35601
35599
  for (const adjacentNode of adjacentNodes) {
@@ -35810,9 +35808,6 @@ class Evaluator {
35810
35808
  }
35811
35809
  }
35812
35810
  setEvaluatedCell(positionId, evaluatedCell) {
35813
- if (this.nextPositionsToUpdate.has(positionId)) {
35814
- this.nextPositionsToUpdate.delete(positionId);
35815
- }
35816
35811
  this.evaluatedCells.set(positionId, evaluatedCell);
35817
35812
  }
35818
35813
  computeCell(positionId) {
@@ -37115,7 +37110,7 @@ class AutofillPlugin extends UIPlugin {
37115
37110
  if (this.lastCellSelected.col !== undefined && this.lastCellSelected.row !== undefined) {
37116
37111
  return 0 /* CommandResult.Success */;
37117
37112
  }
37118
- return 46 /* CommandResult.InvalidAutofillSelection */;
37113
+ return 47 /* CommandResult.InvalidAutofillSelection */;
37119
37114
  case "AUTOFILL_AUTO":
37120
37115
  const zone = this.getters.getSelectedZone();
37121
37116
  return zone.top === zone.bottom
@@ -37732,7 +37727,7 @@ class CellPopoverPlugin extends UIPlugin {
37732
37727
  cellPopoverRegistry.get(cmd.popoverType);
37733
37728
  }
37734
37729
  catch (error) {
37735
- return 73 /* CommandResult.InvalidCellPopover */;
37730
+ return 74 /* CommandResult.InvalidCellPopover */;
37736
37731
  }
37737
37732
  return 0 /* CommandResult.Success */;
37738
37733
  default:
@@ -39880,6 +39875,11 @@ class SelectionInputPlugin extends UIPlugin {
39880
39875
  return 31 /* CommandResult.MaximumRangesReached */;
39881
39876
  }
39882
39877
  break;
39878
+ case "REMOVE_RANGE":
39879
+ if (this.ranges.length === 1) {
39880
+ return 32 /* CommandResult.MinimumRangesReached */;
39881
+ }
39882
+ break;
39883
39883
  case "CHANGE_RANGE":
39884
39884
  if (this.inputHasSingleRange && cmd.value.split(",").length > 1) {
39885
39885
  return 31 /* CommandResult.MaximumRangesReached */;
@@ -40243,7 +40243,7 @@ class SortPlugin extends UIPlugin {
40243
40243
  /*Test the presence of single cells*/
40244
40244
  const singleCells = positions(zone).some(({ col, row }) => !this.getters.isInMerge({ sheetId, col, row }));
40245
40245
  if (singleCells) {
40246
- return 64 /* CommandResult.InvalidSortZone */;
40246
+ return 65 /* CommandResult.InvalidSortZone */;
40247
40247
  }
40248
40248
  return 0 /* CommandResult.Success */;
40249
40249
  }
@@ -40262,7 +40262,7 @@ class SortPlugin extends UIPlugin {
40262
40262
  ];
40263
40263
  return widthCurrent === widthFirst && heightCurrent === heightFirst;
40264
40264
  })) {
40265
- return 64 /* CommandResult.InvalidSortZone */;
40265
+ return 65 /* CommandResult.InvalidSortZone */;
40266
40266
  }
40267
40267
  return 0 /* CommandResult.Success */;
40268
40268
  }
@@ -40700,7 +40700,7 @@ class SheetUIPlugin extends UIPlugin {
40700
40700
  const sheetId = "sheetId" in cmd ? cmd.sheetId : this.getters.tryGetActiveSheetId();
40701
40701
  const zones = this.getters.getCommandZones(cmd);
40702
40702
  if (!sheetId && zones.length > 0) {
40703
- return 93 /* CommandResult.NoActiveSheet */;
40703
+ return 94 /* CommandResult.NoActiveSheet */;
40704
40704
  }
40705
40705
  if (sheetId && zones.length > 0) {
40706
40706
  return this.getters.checkZonesExistInSheet(sheetId, zones);
@@ -41182,13 +41182,13 @@ class SplitToColumnsPlugin extends UIPlugin {
41182
41182
  }
41183
41183
  checkSingleColSelected() {
41184
41184
  if (!this.getters.isSingleColSelected()) {
41185
- return 89 /* CommandResult.MoreThanOneColumnSelected */;
41185
+ return 90 /* CommandResult.MoreThanOneColumnSelected */;
41186
41186
  }
41187
41187
  return 0 /* CommandResult.Success */;
41188
41188
  }
41189
41189
  checkNonEmptySelector(cmd) {
41190
41190
  if (cmd.separator === "") {
41191
- return 90 /* CommandResult.EmptySplitSeparator */;
41191
+ return 91 /* CommandResult.EmptySplitSeparator */;
41192
41192
  }
41193
41193
  return 0 /* CommandResult.Success */;
41194
41194
  }
@@ -41199,7 +41199,7 @@ class SplitToColumnsPlugin extends UIPlugin {
41199
41199
  const selection = this.getters.getSelectedZones()[0];
41200
41200
  const splitted = this.getSplittedCols(selection, cmd.separator);
41201
41201
  if (this.willSplittedColsOverwriteContent(selection, splitted)) {
41202
- return 91 /* CommandResult.SplitWillOverwriteContent */;
41202
+ return 92 /* CommandResult.SplitWillOverwriteContent */;
41203
41203
  }
41204
41204
  return 0 /* CommandResult.Success */;
41205
41205
  }
@@ -41210,7 +41210,7 @@ class SplitToColumnsPlugin extends UIPlugin {
41210
41210
  return 0 /* CommandResult.Success */;
41211
41211
  }
41212
41212
  }
41213
- return 92 /* CommandResult.NoSplitSeparatorInSelection */;
41213
+ return 93 /* CommandResult.NoSplitSeparatorInSelection */;
41214
41214
  }
41215
41215
  }
41216
41216
 
@@ -41358,7 +41358,7 @@ class ClipboardCellsState extends ClipboardCellsAbstractState {
41358
41358
  for (const zone of this.getPasteZones(target)) {
41359
41359
  if ((zone.left < xSplit && zone.right >= xSplit) ||
41360
41360
  (zone.top < ySplit && zone.bottom >= ySplit)) {
41361
- return 76 /* CommandResult.FrozenPaneOverlap */;
41361
+ return 77 /* CommandResult.FrozenPaneOverlap */;
41362
41362
  }
41363
41363
  }
41364
41364
  return 0 /* CommandResult.Success */;
@@ -41810,7 +41810,7 @@ class ClipboardFigureState {
41810
41810
  }
41811
41811
  isPasteAllowed(target, option) {
41812
41812
  if (target.length === 0) {
41813
- return 74 /* CommandResult.EmptyTarget */;
41813
+ return 75 /* CommandResult.EmptyTarget */;
41814
41814
  }
41815
41815
  if (option?.pasteOption !== undefined) {
41816
41816
  return 23 /* CommandResult.WrongFigurePasteOption */;
@@ -42043,7 +42043,7 @@ class ClipboardPlugin extends UIPlugin {
42043
42043
  }
42044
42044
  case "ACTIVATE_PAINT_FORMAT": {
42045
42045
  if (this.paintFormatStatus !== "inactive") {
42046
- return 95 /* CommandResult.AlreadyInPaintingFormatMode */;
42046
+ return 96 /* CommandResult.AlreadyInPaintingFormatMode */;
42047
42047
  }
42048
42048
  }
42049
42049
  }
@@ -42617,7 +42617,7 @@ class EditionPlugin extends UIPlugin {
42617
42617
  validateSelection(length, start, end) {
42618
42618
  return start >= 0 && start <= length && end >= 0 && end <= length
42619
42619
  ? 0 /* CommandResult.Success */
42620
- : 47 /* CommandResult.WrongComposerSelection */;
42620
+ : 48 /* CommandResult.WrongComposerSelection */;
42621
42621
  }
42622
42622
  onColumnsRemoved(cmd) {
42623
42623
  if (cmd.elements.includes(this.col) && this.mode !== "inactive") {
@@ -42998,7 +42998,7 @@ class FilterEvaluationPlugin extends UIPlugin {
42998
42998
  switch (cmd.type) {
42999
42999
  case "UPDATE_FILTER":
43000
43000
  if (!this.getters.getFilterId(cmd)) {
43001
- return 80 /* CommandResult.FilterNotFound */;
43001
+ return 81 /* CommandResult.FilterNotFound */;
43002
43002
  }
43003
43003
  break;
43004
43004
  }
@@ -44601,7 +44601,7 @@ class SheetViewPlugin extends UIPlugin {
44601
44601
  }
44602
44602
  checkPositiveDimension(cmd) {
44603
44603
  if (cmd.width < 0 || cmd.height < 0) {
44604
- return 69 /* CommandResult.InvalidViewportSize */;
44604
+ return 70 /* CommandResult.InvalidViewportSize */;
44605
44605
  }
44606
44606
  return 0 /* CommandResult.Success */;
44607
44607
  }
@@ -44611,7 +44611,7 @@ class SheetViewPlugin extends UIPlugin {
44611
44611
  cmd.gridOffsetY === this.gridOffsetY &&
44612
44612
  cmd.width === width &&
44613
44613
  cmd.height === height) {
44614
- return 77 /* CommandResult.ValuesNotChanged */;
44614
+ return 78 /* CommandResult.ValuesNotChanged */;
44615
44615
  }
44616
44616
  return 0 /* CommandResult.Success */;
44617
44617
  }
@@ -44619,7 +44619,7 @@ class SheetViewPlugin extends UIPlugin {
44619
44619
  const pane = this.getMainInternalViewport(this.getters.getActiveSheetId());
44620
44620
  if ((!pane.canScrollHorizontally && offsetX > 0) ||
44621
44621
  (!pane.canScrollVertically && offsetY > 0)) {
44622
- return 70 /* CommandResult.InvalidScrollingDirection */;
44622
+ return 71 /* CommandResult.InvalidScrollingDirection */;
44623
44623
  }
44624
44624
  return 0 /* CommandResult.Success */;
44625
44625
  }
@@ -46513,6 +46513,7 @@ css /* scss */ `
46513
46513
  line-height: 1.2;
46514
46514
  font-size: 13px;
46515
46515
  font-weight: 500;
46516
+ background-color: #fff;
46516
46517
 
46517
46518
  .o-topbar-top {
46518
46519
  border-bottom: 1px solid ${SEPARATOR_COLOR};
@@ -48077,7 +48078,7 @@ class SelectionStreamProcessorImpl {
48077
48078
  */
48078
48079
  moveAnchorCell(direction, step = 1) {
48079
48080
  if (step !== "end" && step <= 0) {
48080
- return new DispatchResult(84 /* CommandResult.InvalidSelectionStep */);
48081
+ return new DispatchResult(85 /* CommandResult.InvalidSelectionStep */);
48081
48082
  }
48082
48083
  const { col, row } = this.getNextAvailablePosition(direction, step);
48083
48084
  return this.selectCell(col, row);
@@ -48123,7 +48124,7 @@ class SelectionStreamProcessorImpl {
48123
48124
  */
48124
48125
  resizeAnchorZone(direction, step = 1) {
48125
48126
  if (step !== "end" && step <= 0) {
48126
- return new DispatchResult(84 /* CommandResult.InvalidSelectionStep */);
48127
+ return new DispatchResult(85 /* CommandResult.InvalidSelectionStep */);
48127
48128
  }
48128
48129
  const sheetId = this.getters.getActiveSheetId();
48129
48130
  const anchor = this.anchor;
@@ -49364,14 +49365,14 @@ function convertFigureData(figure, sheet) {
49364
49365
  */
49365
49366
  function figureCoordinates(headers, position) {
49366
49367
  let currentPosition = 0;
49367
- for (const [headerIndex, header] of Object.entries(headers)) {
49368
+ for (const [headerIndex, header] of headers.entries()) {
49368
49369
  if (currentPosition <= position && position < currentPosition + header.size) {
49369
49370
  return {
49370
- index: parseInt(headerIndex),
49371
+ index: headerIndex,
49371
49372
  offset: convertDotValueToEMU(position - currentPosition + FIGURE_BORDER_WIDTH),
49372
49373
  };
49373
49374
  }
49374
- else {
49375
+ else if (headerIndex < headers.length - 1) {
49375
49376
  currentPosition += header.size;
49376
49377
  }
49377
49378
  }
@@ -50477,10 +50478,10 @@ class Model extends EventBus {
50477
50478
  const command = createCommand(type, payload);
50478
50479
  let status = this.status;
50479
50480
  if (this.getters.isReadonly() && !canExecuteInReadonly(command)) {
50480
- return new DispatchResult(68 /* CommandResult.Readonly */);
50481
+ return new DispatchResult(69 /* CommandResult.Readonly */);
50481
50482
  }
50482
50483
  if (!this.session.canApplyOptimisticUpdate()) {
50483
- return new DispatchResult(65 /* CommandResult.WaitingSessionConfirmation */);
50484
+ return new DispatchResult(66 /* CommandResult.WaitingSessionConfirmation */);
50484
50485
  }
50485
50486
  switch (status) {
50486
50487
  case 0 /* Status.Ready */:
@@ -50735,6 +50736,6 @@ const constants = {
50735
50736
  export { AbstractChart, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, __info__, addFunction, astToFormula, compile, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, tokenize };
50736
50737
 
50737
50738
 
50738
- __info__.version = '16.4.11';
50739
- __info__.date = '2023-10-25T10:03:47.870Z';
50740
- __info__.hash = 'ae96a3e';
50739
+ __info__.version = '16.4.13';
50740
+ __info__.date = '2023-11-03T12:21:08.124Z';
50741
+ __info__.hash = '001985e';