@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.
- package/dist/o-spreadsheet.cjs.js +235 -234
- package/dist/o-spreadsheet.d.ts +65 -64
- package/dist/o-spreadsheet.esm.js +235 -234
- package/dist/o-spreadsheet.iife.js +235 -234
- package/dist/o-spreadsheet.iife.min.js +14 -13
- package/dist/o_spreadsheet.xml +3982 -0
- package/package.json +4 -3
|
@@ -4204,70 +4204,71 @@ exports.CommandResult = void 0;
|
|
|
4204
4204
|
CommandResult[CommandResult["InvalidFigureId"] = 29] = "InvalidFigureId";
|
|
4205
4205
|
CommandResult[CommandResult["InputAlreadyFocused"] = 30] = "InputAlreadyFocused";
|
|
4206
4206
|
CommandResult[CommandResult["MaximumRangesReached"] = 31] = "MaximumRangesReached";
|
|
4207
|
-
CommandResult[CommandResult["
|
|
4208
|
-
CommandResult[CommandResult["
|
|
4209
|
-
CommandResult[CommandResult["
|
|
4210
|
-
CommandResult[CommandResult["
|
|
4211
|
-
CommandResult[CommandResult["
|
|
4212
|
-
CommandResult[CommandResult["
|
|
4213
|
-
CommandResult[CommandResult["
|
|
4214
|
-
CommandResult[CommandResult["
|
|
4215
|
-
CommandResult[CommandResult["
|
|
4216
|
-
CommandResult[CommandResult["
|
|
4217
|
-
CommandResult[CommandResult["
|
|
4218
|
-
CommandResult[CommandResult["
|
|
4219
|
-
CommandResult[CommandResult["
|
|
4220
|
-
CommandResult[CommandResult["
|
|
4221
|
-
CommandResult[CommandResult["
|
|
4222
|
-
CommandResult[CommandResult["
|
|
4223
|
-
CommandResult[CommandResult["
|
|
4224
|
-
CommandResult[CommandResult["
|
|
4225
|
-
CommandResult[CommandResult["
|
|
4226
|
-
CommandResult[CommandResult["
|
|
4227
|
-
CommandResult[CommandResult["
|
|
4228
|
-
CommandResult[CommandResult["
|
|
4229
|
-
CommandResult[CommandResult["
|
|
4230
|
-
CommandResult[CommandResult["
|
|
4231
|
-
CommandResult[CommandResult["
|
|
4232
|
-
CommandResult[CommandResult["
|
|
4233
|
-
CommandResult[CommandResult["
|
|
4234
|
-
CommandResult[CommandResult["
|
|
4235
|
-
CommandResult[CommandResult["
|
|
4236
|
-
CommandResult[CommandResult["
|
|
4237
|
-
CommandResult[CommandResult["
|
|
4238
|
-
CommandResult[CommandResult["
|
|
4239
|
-
CommandResult[CommandResult["
|
|
4240
|
-
CommandResult[CommandResult["
|
|
4241
|
-
CommandResult[CommandResult["
|
|
4242
|
-
CommandResult[CommandResult["
|
|
4243
|
-
CommandResult[CommandResult["
|
|
4244
|
-
CommandResult[CommandResult["
|
|
4245
|
-
CommandResult[CommandResult["
|
|
4246
|
-
CommandResult[CommandResult["
|
|
4247
|
-
CommandResult[CommandResult["
|
|
4248
|
-
CommandResult[CommandResult["
|
|
4249
|
-
CommandResult[CommandResult["
|
|
4250
|
-
CommandResult[CommandResult["
|
|
4251
|
-
CommandResult[CommandResult["
|
|
4252
|
-
CommandResult[CommandResult["
|
|
4253
|
-
CommandResult[CommandResult["
|
|
4254
|
-
CommandResult[CommandResult["
|
|
4255
|
-
CommandResult[CommandResult["
|
|
4256
|
-
CommandResult[CommandResult["
|
|
4257
|
-
CommandResult[CommandResult["
|
|
4258
|
-
CommandResult[CommandResult["
|
|
4259
|
-
CommandResult[CommandResult["
|
|
4260
|
-
CommandResult[CommandResult["
|
|
4261
|
-
CommandResult[CommandResult["
|
|
4262
|
-
CommandResult[CommandResult["
|
|
4263
|
-
CommandResult[CommandResult["
|
|
4264
|
-
CommandResult[CommandResult["
|
|
4265
|
-
CommandResult[CommandResult["
|
|
4266
|
-
CommandResult[CommandResult["
|
|
4267
|
-
CommandResult[CommandResult["
|
|
4268
|
-
CommandResult[CommandResult["
|
|
4269
|
-
CommandResult[CommandResult["
|
|
4270
|
-
CommandResult[CommandResult["
|
|
4207
|
+
CommandResult[CommandResult["MinimumRangesReached"] = 32] = "MinimumRangesReached";
|
|
4208
|
+
CommandResult[CommandResult["InvalidChartDefinition"] = 33] = "InvalidChartDefinition";
|
|
4209
|
+
CommandResult[CommandResult["InvalidDataSet"] = 34] = "InvalidDataSet";
|
|
4210
|
+
CommandResult[CommandResult["InvalidLabelRange"] = 35] = "InvalidLabelRange";
|
|
4211
|
+
CommandResult[CommandResult["InvalidScorecardKeyValue"] = 36] = "InvalidScorecardKeyValue";
|
|
4212
|
+
CommandResult[CommandResult["InvalidScorecardBaseline"] = 37] = "InvalidScorecardBaseline";
|
|
4213
|
+
CommandResult[CommandResult["InvalidGaugeDataRange"] = 38] = "InvalidGaugeDataRange";
|
|
4214
|
+
CommandResult[CommandResult["EmptyGaugeRangeMin"] = 39] = "EmptyGaugeRangeMin";
|
|
4215
|
+
CommandResult[CommandResult["GaugeRangeMinNaN"] = 40] = "GaugeRangeMinNaN";
|
|
4216
|
+
CommandResult[CommandResult["EmptyGaugeRangeMax"] = 41] = "EmptyGaugeRangeMax";
|
|
4217
|
+
CommandResult[CommandResult["GaugeRangeMaxNaN"] = 42] = "GaugeRangeMaxNaN";
|
|
4218
|
+
CommandResult[CommandResult["GaugeRangeMinBiggerThanRangeMax"] = 43] = "GaugeRangeMinBiggerThanRangeMax";
|
|
4219
|
+
CommandResult[CommandResult["GaugeLowerInflectionPointNaN"] = 44] = "GaugeLowerInflectionPointNaN";
|
|
4220
|
+
CommandResult[CommandResult["GaugeUpperInflectionPointNaN"] = 45] = "GaugeUpperInflectionPointNaN";
|
|
4221
|
+
CommandResult[CommandResult["GaugeLowerBiggerThanUpper"] = 46] = "GaugeLowerBiggerThanUpper";
|
|
4222
|
+
CommandResult[CommandResult["InvalidAutofillSelection"] = 47] = "InvalidAutofillSelection";
|
|
4223
|
+
CommandResult[CommandResult["WrongComposerSelection"] = 48] = "WrongComposerSelection";
|
|
4224
|
+
CommandResult[CommandResult["MinBiggerThanMax"] = 49] = "MinBiggerThanMax";
|
|
4225
|
+
CommandResult[CommandResult["LowerBiggerThanUpper"] = 50] = "LowerBiggerThanUpper";
|
|
4226
|
+
CommandResult[CommandResult["MidBiggerThanMax"] = 51] = "MidBiggerThanMax";
|
|
4227
|
+
CommandResult[CommandResult["MinBiggerThanMid"] = 52] = "MinBiggerThanMid";
|
|
4228
|
+
CommandResult[CommandResult["FirstArgMissing"] = 53] = "FirstArgMissing";
|
|
4229
|
+
CommandResult[CommandResult["SecondArgMissing"] = 54] = "SecondArgMissing";
|
|
4230
|
+
CommandResult[CommandResult["MinNaN"] = 55] = "MinNaN";
|
|
4231
|
+
CommandResult[CommandResult["MidNaN"] = 56] = "MidNaN";
|
|
4232
|
+
CommandResult[CommandResult["MaxNaN"] = 57] = "MaxNaN";
|
|
4233
|
+
CommandResult[CommandResult["ValueUpperInflectionNaN"] = 58] = "ValueUpperInflectionNaN";
|
|
4234
|
+
CommandResult[CommandResult["ValueLowerInflectionNaN"] = 59] = "ValueLowerInflectionNaN";
|
|
4235
|
+
CommandResult[CommandResult["MinInvalidFormula"] = 60] = "MinInvalidFormula";
|
|
4236
|
+
CommandResult[CommandResult["MidInvalidFormula"] = 61] = "MidInvalidFormula";
|
|
4237
|
+
CommandResult[CommandResult["MaxInvalidFormula"] = 62] = "MaxInvalidFormula";
|
|
4238
|
+
CommandResult[CommandResult["ValueUpperInvalidFormula"] = 63] = "ValueUpperInvalidFormula";
|
|
4239
|
+
CommandResult[CommandResult["ValueLowerInvalidFormula"] = 64] = "ValueLowerInvalidFormula";
|
|
4240
|
+
CommandResult[CommandResult["InvalidSortZone"] = 65] = "InvalidSortZone";
|
|
4241
|
+
CommandResult[CommandResult["WaitingSessionConfirmation"] = 66] = "WaitingSessionConfirmation";
|
|
4242
|
+
CommandResult[CommandResult["MergeOverlap"] = 67] = "MergeOverlap";
|
|
4243
|
+
CommandResult[CommandResult["TooManyHiddenElements"] = 68] = "TooManyHiddenElements";
|
|
4244
|
+
CommandResult[CommandResult["Readonly"] = 69] = "Readonly";
|
|
4245
|
+
CommandResult[CommandResult["InvalidViewportSize"] = 70] = "InvalidViewportSize";
|
|
4246
|
+
CommandResult[CommandResult["InvalidScrollingDirection"] = 71] = "InvalidScrollingDirection";
|
|
4247
|
+
CommandResult[CommandResult["FigureDoesNotExist"] = 72] = "FigureDoesNotExist";
|
|
4248
|
+
CommandResult[CommandResult["InvalidConditionalFormatId"] = 73] = "InvalidConditionalFormatId";
|
|
4249
|
+
CommandResult[CommandResult["InvalidCellPopover"] = 74] = "InvalidCellPopover";
|
|
4250
|
+
CommandResult[CommandResult["EmptyTarget"] = 75] = "EmptyTarget";
|
|
4251
|
+
CommandResult[CommandResult["InvalidFreezeQuantity"] = 76] = "InvalidFreezeQuantity";
|
|
4252
|
+
CommandResult[CommandResult["FrozenPaneOverlap"] = 77] = "FrozenPaneOverlap";
|
|
4253
|
+
CommandResult[CommandResult["ValuesNotChanged"] = 78] = "ValuesNotChanged";
|
|
4254
|
+
CommandResult[CommandResult["InvalidFilterZone"] = 79] = "InvalidFilterZone";
|
|
4255
|
+
CommandResult[CommandResult["FilterOverlap"] = 80] = "FilterOverlap";
|
|
4256
|
+
CommandResult[CommandResult["FilterNotFound"] = 81] = "FilterNotFound";
|
|
4257
|
+
CommandResult[CommandResult["MergeInFilter"] = 82] = "MergeInFilter";
|
|
4258
|
+
CommandResult[CommandResult["NonContinuousTargets"] = 83] = "NonContinuousTargets";
|
|
4259
|
+
CommandResult[CommandResult["DuplicatedFigureId"] = 84] = "DuplicatedFigureId";
|
|
4260
|
+
CommandResult[CommandResult["InvalidSelectionStep"] = 85] = "InvalidSelectionStep";
|
|
4261
|
+
CommandResult[CommandResult["DuplicatedChartId"] = 86] = "DuplicatedChartId";
|
|
4262
|
+
CommandResult[CommandResult["ChartDoesNotExist"] = 87] = "ChartDoesNotExist";
|
|
4263
|
+
CommandResult[CommandResult["InvalidHeaderIndex"] = 88] = "InvalidHeaderIndex";
|
|
4264
|
+
CommandResult[CommandResult["InvalidQuantity"] = 89] = "InvalidQuantity";
|
|
4265
|
+
CommandResult[CommandResult["MoreThanOneColumnSelected"] = 90] = "MoreThanOneColumnSelected";
|
|
4266
|
+
CommandResult[CommandResult["EmptySplitSeparator"] = 91] = "EmptySplitSeparator";
|
|
4267
|
+
CommandResult[CommandResult["SplitWillOverwriteContent"] = 92] = "SplitWillOverwriteContent";
|
|
4268
|
+
CommandResult[CommandResult["NoSplitSeparatorInSelection"] = 93] = "NoSplitSeparatorInSelection";
|
|
4269
|
+
CommandResult[CommandResult["NoActiveSheet"] = 94] = "NoActiveSheet";
|
|
4270
|
+
CommandResult[CommandResult["InvalidLocale"] = 95] = "InvalidLocale";
|
|
4271
|
+
CommandResult[CommandResult["AlreadyInPaintingFormatMode"] = 96] = "AlreadyInPaintingFormatMode";
|
|
4271
4272
|
})(exports.CommandResult || (exports.CommandResult = {}));
|
|
4272
4273
|
|
|
4273
4274
|
const borderStyles = ["thin", "medium", "thick", "dashed", "dotted"];
|
|
@@ -16031,11 +16032,11 @@ function checkDataset(definition) {
|
|
|
16031
16032
|
if (definition.dataSets) {
|
|
16032
16033
|
const invalidRanges = definition.dataSets.find((range) => !rangeReference.test(range)) !== undefined;
|
|
16033
16034
|
if (invalidRanges) {
|
|
16034
|
-
return
|
|
16035
|
+
return 34 /* CommandResult.InvalidDataSet */;
|
|
16035
16036
|
}
|
|
16036
16037
|
const zones = definition.dataSets.map(toUnboundedZone);
|
|
16037
16038
|
if (zones.some((zone) => zone.top !== zone.bottom && isFullRow(zone))) {
|
|
16038
|
-
return
|
|
16039
|
+
return 34 /* CommandResult.InvalidDataSet */;
|
|
16039
16040
|
}
|
|
16040
16041
|
}
|
|
16041
16042
|
return 0 /* CommandResult.Success */;
|
|
@@ -16044,7 +16045,7 @@ function checkLabelRange(definition) {
|
|
|
16044
16045
|
if (definition.labelRange) {
|
|
16045
16046
|
const invalidLabels = !rangeReference.test(definition.labelRange || "");
|
|
16046
16047
|
if (invalidLabels) {
|
|
16047
|
-
return
|
|
16048
|
+
return 35 /* CommandResult.InvalidLabelRange */;
|
|
16048
16049
|
}
|
|
16049
16050
|
}
|
|
16050
16051
|
return 0 /* CommandResult.Success */;
|
|
@@ -16131,22 +16132,22 @@ function getChartPositionAtCenterOfViewport(getters, chartSize) {
|
|
|
16131
16132
|
const CfTerms = {
|
|
16132
16133
|
Errors: {
|
|
16133
16134
|
[26 /* CommandResult.InvalidRange */]: _lt("The range is invalid"),
|
|
16134
|
-
[
|
|
16135
|
-
[
|
|
16136
|
-
[
|
|
16137
|
-
[
|
|
16138
|
-
[
|
|
16139
|
-
[
|
|
16140
|
-
[
|
|
16141
|
-
[
|
|
16142
|
-
[
|
|
16143
|
-
[
|
|
16144
|
-
[
|
|
16145
|
-
[
|
|
16146
|
-
[
|
|
16147
|
-
[
|
|
16148
|
-
[
|
|
16149
|
-
[
|
|
16135
|
+
[53 /* CommandResult.FirstArgMissing */]: _lt("The argument is missing. Please provide a value"),
|
|
16136
|
+
[54 /* CommandResult.SecondArgMissing */]: _lt("The second argument is missing. Please provide a value"),
|
|
16137
|
+
[55 /* CommandResult.MinNaN */]: _lt("The minpoint must be a number"),
|
|
16138
|
+
[56 /* CommandResult.MidNaN */]: _lt("The midpoint must be a number"),
|
|
16139
|
+
[57 /* CommandResult.MaxNaN */]: _lt("The maxpoint must be a number"),
|
|
16140
|
+
[58 /* CommandResult.ValueUpperInflectionNaN */]: _lt("The first value must be a number"),
|
|
16141
|
+
[59 /* CommandResult.ValueLowerInflectionNaN */]: _lt("The second value must be a number"),
|
|
16142
|
+
[49 /* CommandResult.MinBiggerThanMax */]: _lt("Minimum must be smaller then Maximum"),
|
|
16143
|
+
[52 /* CommandResult.MinBiggerThanMid */]: _lt("Minimum must be smaller then Midpoint"),
|
|
16144
|
+
[51 /* CommandResult.MidBiggerThanMax */]: _lt("Midpoint must be smaller then Maximum"),
|
|
16145
|
+
[50 /* CommandResult.LowerBiggerThanUpper */]: _lt("Lower inflection point must be smaller than upper inflection point"),
|
|
16146
|
+
[60 /* CommandResult.MinInvalidFormula */]: _lt("Invalid Minpoint formula"),
|
|
16147
|
+
[62 /* CommandResult.MaxInvalidFormula */]: _lt("Invalid Maxpoint formula"),
|
|
16148
|
+
[61 /* CommandResult.MidInvalidFormula */]: _lt("Invalid Midpoint formula"),
|
|
16149
|
+
[63 /* CommandResult.ValueUpperInvalidFormula */]: _lt("Invalid upper inflection point formula"),
|
|
16150
|
+
[64 /* CommandResult.ValueLowerInvalidFormula */]: _lt("Invalid lower inflection point formula"),
|
|
16150
16151
|
[25 /* CommandResult.EmptyRange */]: _lt("A range needs to be defined"),
|
|
16151
16152
|
Unexpected: _lt("The rule is invalid for an unknown reason"),
|
|
16152
16153
|
},
|
|
@@ -16174,20 +16175,20 @@ const ChartTerms = {
|
|
|
16174
16175
|
Errors: {
|
|
16175
16176
|
Unexpected: _lt("The chart definition is invalid for an unknown reason"),
|
|
16176
16177
|
// BASIC CHART ERRORS (LINE | BAR | PIE)
|
|
16177
|
-
[
|
|
16178
|
-
[
|
|
16178
|
+
[34 /* CommandResult.InvalidDataSet */]: _lt("The dataset is invalid"),
|
|
16179
|
+
[35 /* CommandResult.InvalidLabelRange */]: _lt("Labels are invalid"),
|
|
16179
16180
|
// SCORECARD CHART ERRORS
|
|
16180
|
-
[
|
|
16181
|
-
[
|
|
16181
|
+
[36 /* CommandResult.InvalidScorecardKeyValue */]: _lt("The key value is invalid"),
|
|
16182
|
+
[37 /* CommandResult.InvalidScorecardBaseline */]: _lt("The baseline value is invalid"),
|
|
16182
16183
|
// GAUGE CHART ERRORS
|
|
16183
|
-
[
|
|
16184
|
-
[
|
|
16185
|
-
[
|
|
16186
|
-
[
|
|
16187
|
-
[
|
|
16188
|
-
[
|
|
16189
|
-
[
|
|
16190
|
-
[
|
|
16184
|
+
[38 /* CommandResult.InvalidGaugeDataRange */]: _lt("The data range is invalid"),
|
|
16185
|
+
[39 /* CommandResult.EmptyGaugeRangeMin */]: _lt("A minimum range limit value is needed"),
|
|
16186
|
+
[40 /* CommandResult.GaugeRangeMinNaN */]: _lt("The minimum range limit value must be a number"),
|
|
16187
|
+
[41 /* CommandResult.EmptyGaugeRangeMax */]: _lt("A maximum range limit value is needed"),
|
|
16188
|
+
[42 /* CommandResult.GaugeRangeMaxNaN */]: _lt("The maximum range limit value must be a number"),
|
|
16189
|
+
[43 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */]: _lt("Minimum range limit must be smaller than maximum range limit"),
|
|
16190
|
+
[44 /* CommandResult.GaugeLowerInflectionPointNaN */]: _lt("The lower inflection point value must be a number"),
|
|
16191
|
+
[45 /* CommandResult.GaugeUpperInflectionPointNaN */]: _lt("The upper inflection point value must be a number"),
|
|
16191
16192
|
},
|
|
16192
16193
|
};
|
|
16193
16194
|
const CustomCurrencyTerms = {
|
|
@@ -16197,9 +16198,9 @@ const MergeErrorMessage = _lt("Merged cells are preventing this operation. Unmer
|
|
|
16197
16198
|
const SplitToColumnsTerms = {
|
|
16198
16199
|
Errors: {
|
|
16199
16200
|
Unexpected: _lt("Cannot split the selection for an unknown reason"),
|
|
16200
|
-
[
|
|
16201
|
-
[
|
|
16202
|
-
[
|
|
16201
|
+
[93 /* CommandResult.NoSplitSeparatorInSelection */]: _lt("There is no match for the selected separator in the selection"),
|
|
16202
|
+
[90 /* CommandResult.MoreThanOneColumnSelected */]: _lt("Only a selection from a single column can be split"),
|
|
16203
|
+
[92 /* CommandResult.SplitWillOverwriteContent */]: _lt("Splitting will overwrite existing content"),
|
|
16203
16204
|
},
|
|
16204
16205
|
};
|
|
16205
16206
|
|
|
@@ -16604,7 +16605,7 @@ function createBarChartRuntime(chart, getters) {
|
|
|
16604
16605
|
|
|
16605
16606
|
function isDataRangeValid(definition) {
|
|
16606
16607
|
return definition.dataRange && !rangeReference.test(definition.dataRange)
|
|
16607
|
-
?
|
|
16608
|
+
? 38 /* CommandResult.InvalidGaugeDataRange */
|
|
16608
16609
|
: 0 /* CommandResult.Success */;
|
|
16609
16610
|
}
|
|
16610
16611
|
function checkRangeLimits(check, batchValidations) {
|
|
@@ -16636,7 +16637,7 @@ function checkInflectionPointsValue(check, batchValidations) {
|
|
|
16636
16637
|
function checkRangeMinBiggerThanRangeMax(definition) {
|
|
16637
16638
|
if (definition.sectionRule) {
|
|
16638
16639
|
if (Number(definition.sectionRule.rangeMin) >= Number(definition.sectionRule.rangeMax)) {
|
|
16639
|
-
return
|
|
16640
|
+
return 43 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */;
|
|
16640
16641
|
}
|
|
16641
16642
|
}
|
|
16642
16643
|
return 0 /* CommandResult.Success */;
|
|
@@ -16645,9 +16646,9 @@ function checkEmpty(value, valueName) {
|
|
|
16645
16646
|
if (value === "") {
|
|
16646
16647
|
switch (valueName) {
|
|
16647
16648
|
case "rangeMin":
|
|
16648
|
-
return
|
|
16649
|
+
return 39 /* CommandResult.EmptyGaugeRangeMin */;
|
|
16649
16650
|
case "rangeMax":
|
|
16650
|
-
return
|
|
16651
|
+
return 41 /* CommandResult.EmptyGaugeRangeMax */;
|
|
16651
16652
|
}
|
|
16652
16653
|
}
|
|
16653
16654
|
return 0 /* CommandResult.Success */;
|
|
@@ -16656,13 +16657,13 @@ function checkNaN(value, valueName) {
|
|
|
16656
16657
|
if (isNaN(value)) {
|
|
16657
16658
|
switch (valueName) {
|
|
16658
16659
|
case "rangeMin":
|
|
16659
|
-
return
|
|
16660
|
+
return 40 /* CommandResult.GaugeRangeMinNaN */;
|
|
16660
16661
|
case "rangeMax":
|
|
16661
|
-
return
|
|
16662
|
+
return 42 /* CommandResult.GaugeRangeMaxNaN */;
|
|
16662
16663
|
case "lowerInflectionPointValue":
|
|
16663
|
-
return
|
|
16664
|
+
return 44 /* CommandResult.GaugeLowerInflectionPointNaN */;
|
|
16664
16665
|
case "upperInflectionPointValue":
|
|
16665
|
-
return
|
|
16666
|
+
return 45 /* CommandResult.GaugeUpperInflectionPointNaN */;
|
|
16666
16667
|
}
|
|
16667
16668
|
}
|
|
16668
16669
|
return 0 /* CommandResult.Success */;
|
|
@@ -17458,12 +17459,12 @@ function createPieChartRuntime(chart, getters) {
|
|
|
17458
17459
|
|
|
17459
17460
|
function checkKeyValue(definition) {
|
|
17460
17461
|
return definition.keyValue && !rangeReference.test(definition.keyValue)
|
|
17461
|
-
?
|
|
17462
|
+
? 36 /* CommandResult.InvalidScorecardKeyValue */
|
|
17462
17463
|
: 0 /* CommandResult.Success */;
|
|
17463
17464
|
}
|
|
17464
17465
|
function checkBaseline(definition) {
|
|
17465
17466
|
return definition.baseline && !rangeReference.test(definition.baseline)
|
|
17466
|
-
?
|
|
17467
|
+
? 37 /* CommandResult.InvalidScorecardBaseline */
|
|
17467
17468
|
: 0 /* CommandResult.Success */;
|
|
17468
17469
|
}
|
|
17469
17470
|
class ScorecardChart extends AbstractChart {
|
|
@@ -17990,7 +17991,7 @@ const AddMergeInteractiveContent = {
|
|
|
17990
17991
|
};
|
|
17991
17992
|
function interactiveAddMerge(env, sheetId, target) {
|
|
17992
17993
|
const result = env.model.dispatch("ADD_MERGE", { sheetId, target });
|
|
17993
|
-
if (result.isCancelledBecause(
|
|
17994
|
+
if (result.isCancelledBecause(82 /* CommandResult.MergeInFilter */)) {
|
|
17994
17995
|
env.raiseError(AddMergeInteractiveContent.MergeInFilter);
|
|
17995
17996
|
}
|
|
17996
17997
|
else if (result.isCancelledBecause(3 /* CommandResult.MergeIsDestructive */)) {
|
|
@@ -18017,7 +18018,7 @@ function handlePasteResult(env, result) {
|
|
|
18017
18018
|
else if (result.reasons.includes(23 /* CommandResult.WrongFigurePasteOption */)) {
|
|
18018
18019
|
env.raiseError(PasteInteractiveContent.wrongFigurePasteOption);
|
|
18019
18020
|
}
|
|
18020
|
-
else if (result.reasons.includes(
|
|
18021
|
+
else if (result.reasons.includes(77 /* CommandResult.FrozenPaneOverlap */)) {
|
|
18021
18022
|
env.raiseError(PasteInteractiveContent.frozenPaneOverlap);
|
|
18022
18023
|
}
|
|
18023
18024
|
}
|
|
@@ -19193,7 +19194,7 @@ function interactiveSortSelection(env, sheetId, anchor, zone, sortDirection) {
|
|
|
19193
19194
|
});
|
|
19194
19195
|
}
|
|
19195
19196
|
}
|
|
19196
|
-
if (result.isCancelledBecause(
|
|
19197
|
+
if (result.isCancelledBecause(65 /* CommandResult.InvalidSortZone */)) {
|
|
19197
19198
|
const { col, row } = anchor;
|
|
19198
19199
|
env.model.selection.selectZone({ cell: { col, row }, zone });
|
|
19199
19200
|
env.raiseError(_lt("Cannot sort. To sort, select only cells or only merges that have the same size."));
|
|
@@ -19207,13 +19208,13 @@ const AddFilterInteractiveContent = {
|
|
|
19207
19208
|
};
|
|
19208
19209
|
function interactiveAddFilter(env, sheetId, target) {
|
|
19209
19210
|
const result = env.model.dispatch("CREATE_FILTER_TABLE", { target, sheetId });
|
|
19210
|
-
if (result.isCancelledBecause(
|
|
19211
|
+
if (result.isCancelledBecause(80 /* CommandResult.FilterOverlap */)) {
|
|
19211
19212
|
env.raiseError(AddFilterInteractiveContent.filterOverlap);
|
|
19212
19213
|
}
|
|
19213
|
-
else if (result.isCancelledBecause(
|
|
19214
|
+
else if (result.isCancelledBecause(82 /* CommandResult.MergeInFilter */)) {
|
|
19214
19215
|
env.raiseError(AddFilterInteractiveContent.mergeInFilter);
|
|
19215
19216
|
}
|
|
19216
|
-
else if (result.isCancelledBecause(
|
|
19217
|
+
else if (result.isCancelledBecause(83 /* CommandResult.NonContinuousTargets */)) {
|
|
19217
19218
|
env.raiseError(AddFilterInteractiveContent.nonContinuousTargets);
|
|
19218
19219
|
}
|
|
19219
19220
|
}
|
|
@@ -19650,7 +19651,7 @@ function interactiveFreezeColumnsRows(env, dimension, base) {
|
|
|
19650
19651
|
const sheetId = env.model.getters.getActiveSheetId();
|
|
19651
19652
|
const cmd = dimension === "COL" ? "FREEZE_COLUMNS" : "FREEZE_ROWS";
|
|
19652
19653
|
const result = env.model.dispatch(cmd, { sheetId, quantity: base });
|
|
19653
|
-
if (result.isCancelledBecause(
|
|
19654
|
+
if (result.isCancelledBecause(67 /* CommandResult.MergeOverlap */)) {
|
|
19654
19655
|
env.raiseError(MergeErrorMessage);
|
|
19655
19656
|
}
|
|
19656
19657
|
}
|
|
@@ -20688,16 +20689,11 @@ class SelectionInput extends owl.Component {
|
|
|
20688
20689
|
this.triggerChange();
|
|
20689
20690
|
}
|
|
20690
20691
|
reset() {
|
|
20691
|
-
|
|
20692
|
-
|
|
20693
|
-
this.
|
|
20694
|
-
|
|
20695
|
-
|
|
20696
|
-
});
|
|
20697
|
-
}
|
|
20698
|
-
for (const range of this.previousRanges) {
|
|
20699
|
-
this.env.model.dispatch("ADD_RANGE", { id: this.id, value: range });
|
|
20700
|
-
}
|
|
20692
|
+
this.env.model.dispatch("ENABLE_NEW_SELECTION_INPUT", {
|
|
20693
|
+
id: this.id,
|
|
20694
|
+
initialRanges: this.previousRanges,
|
|
20695
|
+
hasSingleRange: this.props.hasSingleRange,
|
|
20696
|
+
});
|
|
20701
20697
|
this.confirm();
|
|
20702
20698
|
}
|
|
20703
20699
|
confirm() {
|
|
@@ -20706,11 +20702,13 @@ class SelectionInput extends owl.Component {
|
|
|
20706
20702
|
const existingSelectionXcs = [];
|
|
20707
20703
|
for (const range of existingSelectionRanges) {
|
|
20708
20704
|
if (range.xc === "") {
|
|
20709
|
-
this.env.model.dispatch("REMOVE_RANGE", {
|
|
20705
|
+
const result = this.env.model.dispatch("REMOVE_RANGE", {
|
|
20710
20706
|
id: this.id,
|
|
20711
20707
|
rangeId: range.id,
|
|
20712
20708
|
});
|
|
20713
|
-
|
|
20709
|
+
if (result.isSuccessful) {
|
|
20710
|
+
continue;
|
|
20711
|
+
}
|
|
20714
20712
|
}
|
|
20715
20713
|
existingSelectionXcs.push(range.xc);
|
|
20716
20714
|
if (this.env.model.getters.isRangeValid(range.xc)) {
|
|
@@ -20793,10 +20791,10 @@ class LineBarPieConfigPanel extends owl.Component {
|
|
|
20793
20791
|
return cancelledReasons.map((error) => ChartTerms.Errors[error] || ChartTerms.Errors.Unexpected);
|
|
20794
20792
|
}
|
|
20795
20793
|
get isDatasetInvalid() {
|
|
20796
|
-
return !!this.state.datasetDispatchResult?.isCancelledBecause(
|
|
20794
|
+
return !!this.state.datasetDispatchResult?.isCancelledBecause(34 /* CommandResult.InvalidDataSet */);
|
|
20797
20795
|
}
|
|
20798
20796
|
get isLabelInvalid() {
|
|
20799
|
-
return !!this.state.labelsDispatchResult?.isCancelledBecause(
|
|
20797
|
+
return !!this.state.labelsDispatchResult?.isCancelledBecause(35 /* CommandResult.InvalidLabelRange */);
|
|
20800
20798
|
}
|
|
20801
20799
|
onUpdateDataSetsHaveTitle(ev) {
|
|
20802
20800
|
this.props.updateChart(this.props.figureId, {
|
|
@@ -21470,7 +21468,7 @@ class GaugeChartConfigPanel extends owl.Component {
|
|
|
21470
21468
|
return cancelledReasons.map((error) => ChartTerms.Errors[error] || ChartTerms.Errors.Unexpected);
|
|
21471
21469
|
}
|
|
21472
21470
|
get isDataRangeInvalid() {
|
|
21473
|
-
return !!this.state.dataRangeDispatchResult?.isCancelledBecause(
|
|
21471
|
+
return !!this.state.dataRangeDispatchResult?.isCancelledBecause(38 /* CommandResult.InvalidGaugeDataRange */);
|
|
21474
21472
|
}
|
|
21475
21473
|
onDataRangeChanged(ranges) {
|
|
21476
21474
|
this.dataRange = ranges[0];
|
|
@@ -21554,25 +21552,25 @@ class GaugeChartDesignPanel extends owl.Component {
|
|
|
21554
21552
|
});
|
|
21555
21553
|
}
|
|
21556
21554
|
isRangeMinInvalid() {
|
|
21557
|
-
return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(
|
|
21558
|
-
this.state.sectionRuleDispatchResult?.isCancelledBecause(
|
|
21559
|
-
this.state.sectionRuleDispatchResult?.isCancelledBecause(
|
|
21555
|
+
return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(39 /* CommandResult.EmptyGaugeRangeMin */) ||
|
|
21556
|
+
this.state.sectionRuleDispatchResult?.isCancelledBecause(40 /* CommandResult.GaugeRangeMinNaN */) ||
|
|
21557
|
+
this.state.sectionRuleDispatchResult?.isCancelledBecause(43 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */));
|
|
21560
21558
|
}
|
|
21561
21559
|
isRangeMaxInvalid() {
|
|
21562
|
-
return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(
|
|
21563
|
-
this.state.sectionRuleDispatchResult?.isCancelledBecause(
|
|
21564
|
-
this.state.sectionRuleDispatchResult?.isCancelledBecause(
|
|
21560
|
+
return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(41 /* CommandResult.EmptyGaugeRangeMax */) ||
|
|
21561
|
+
this.state.sectionRuleDispatchResult?.isCancelledBecause(42 /* CommandResult.GaugeRangeMaxNaN */) ||
|
|
21562
|
+
this.state.sectionRuleDispatchResult?.isCancelledBecause(43 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */));
|
|
21565
21563
|
}
|
|
21566
21564
|
// ---------------------------------------------------------------------------
|
|
21567
21565
|
// COLOR_SECTION_TEMPLATE
|
|
21568
21566
|
// ---------------------------------------------------------------------------
|
|
21569
21567
|
get isLowerInflectionPointInvalid() {
|
|
21570
|
-
return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(
|
|
21571
|
-
this.state.sectionRuleDispatchResult?.isCancelledBecause(
|
|
21568
|
+
return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(44 /* CommandResult.GaugeLowerInflectionPointNaN */) ||
|
|
21569
|
+
this.state.sectionRuleDispatchResult?.isCancelledBecause(46 /* CommandResult.GaugeLowerBiggerThanUpper */));
|
|
21572
21570
|
}
|
|
21573
21571
|
get isUpperInflectionPointInvalid() {
|
|
21574
|
-
return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(
|
|
21575
|
-
this.state.sectionRuleDispatchResult?.isCancelledBecause(
|
|
21572
|
+
return !!(this.state.sectionRuleDispatchResult?.isCancelledBecause(45 /* CommandResult.GaugeUpperInflectionPointNaN */) ||
|
|
21573
|
+
this.state.sectionRuleDispatchResult?.isCancelledBecause(46 /* CommandResult.GaugeLowerBiggerThanUpper */));
|
|
21576
21574
|
}
|
|
21577
21575
|
updateSectionColor(target, color) {
|
|
21578
21576
|
const sectionRule = deepCopy(this.state.sectionRule);
|
|
@@ -21660,10 +21658,10 @@ class ScorecardChartConfigPanel extends owl.Component {
|
|
|
21660
21658
|
return cancelledReasons.map((error) => ChartTerms.Errors[error] || ChartTerms.Errors.Unexpected);
|
|
21661
21659
|
}
|
|
21662
21660
|
get isKeyValueInvalid() {
|
|
21663
|
-
return !!this.state.keyValueDispatchResult?.isCancelledBecause(
|
|
21661
|
+
return !!this.state.keyValueDispatchResult?.isCancelledBecause(36 /* CommandResult.InvalidScorecardKeyValue */);
|
|
21664
21662
|
}
|
|
21665
21663
|
get isBaselineInvalid() {
|
|
21666
|
-
return !!this.state.keyValueDispatchResult?.isCancelledBecause(
|
|
21664
|
+
return !!this.state.keyValueDispatchResult?.isCancelledBecause(37 /* CommandResult.InvalidScorecardBaseline */);
|
|
21667
21665
|
}
|
|
21668
21666
|
onKeyValueRangeChanged(ranges) {
|
|
21669
21667
|
this.keyValue = ranges[0];
|
|
@@ -22558,10 +22556,10 @@ class ConditionalFormattingPanel extends owl.Component {
|
|
|
22558
22556
|
* Cell Is Rule
|
|
22559
22557
|
****************************************************************************/
|
|
22560
22558
|
get isValue1Invalid() {
|
|
22561
|
-
return !!this.state.errors?.includes(
|
|
22559
|
+
return !!this.state.errors?.includes(53 /* CommandResult.FirstArgMissing */);
|
|
22562
22560
|
}
|
|
22563
22561
|
get isValue2Invalid() {
|
|
22564
|
-
return !!this.state.errors?.includes(
|
|
22562
|
+
return !!this.state.errors?.includes(54 /* CommandResult.SecondArgMissing */);
|
|
22565
22563
|
}
|
|
22566
22564
|
toggleStyle(tool) {
|
|
22567
22565
|
const style = this.state.rules.cellIs.style;
|
|
@@ -22578,17 +22576,17 @@ class ConditionalFormattingPanel extends owl.Component {
|
|
|
22578
22576
|
isValueInvalid(threshold) {
|
|
22579
22577
|
switch (threshold) {
|
|
22580
22578
|
case "minimum":
|
|
22581
|
-
return (this.state.errors.includes(
|
|
22582
|
-
this.state.errors.includes(
|
|
22583
|
-
this.state.errors.includes(
|
|
22584
|
-
this.state.errors.includes(
|
|
22579
|
+
return (this.state.errors.includes(60 /* CommandResult.MinInvalidFormula */) ||
|
|
22580
|
+
this.state.errors.includes(52 /* CommandResult.MinBiggerThanMid */) ||
|
|
22581
|
+
this.state.errors.includes(49 /* CommandResult.MinBiggerThanMax */) ||
|
|
22582
|
+
this.state.errors.includes(55 /* CommandResult.MinNaN */));
|
|
22585
22583
|
case "midpoint":
|
|
22586
|
-
return (this.state.errors.includes(
|
|
22587
|
-
this.state.errors.includes(
|
|
22588
|
-
this.state.errors.includes(
|
|
22584
|
+
return (this.state.errors.includes(61 /* CommandResult.MidInvalidFormula */) ||
|
|
22585
|
+
this.state.errors.includes(56 /* CommandResult.MidNaN */) ||
|
|
22586
|
+
this.state.errors.includes(51 /* CommandResult.MidBiggerThanMax */));
|
|
22589
22587
|
case "maximum":
|
|
22590
|
-
return (this.state.errors.includes(
|
|
22591
|
-
this.state.errors.includes(
|
|
22588
|
+
return (this.state.errors.includes(62 /* CommandResult.MaxInvalidFormula */) ||
|
|
22589
|
+
this.state.errors.includes(57 /* CommandResult.MaxNaN */));
|
|
22592
22590
|
default:
|
|
22593
22591
|
return false;
|
|
22594
22592
|
}
|
|
@@ -22636,13 +22634,13 @@ class ConditionalFormattingPanel extends owl.Component {
|
|
|
22636
22634
|
isInflectionPointInvalid(inflectionPoint) {
|
|
22637
22635
|
switch (inflectionPoint) {
|
|
22638
22636
|
case "lowerInflectionPoint":
|
|
22639
|
-
return (this.state.errors.includes(
|
|
22640
|
-
this.state.errors.includes(
|
|
22641
|
-
this.state.errors.includes(
|
|
22637
|
+
return (this.state.errors.includes(59 /* CommandResult.ValueLowerInflectionNaN */) ||
|
|
22638
|
+
this.state.errors.includes(64 /* CommandResult.ValueLowerInvalidFormula */) ||
|
|
22639
|
+
this.state.errors.includes(50 /* CommandResult.LowerBiggerThanUpper */));
|
|
22642
22640
|
case "upperInflectionPoint":
|
|
22643
|
-
return (this.state.errors.includes(
|
|
22644
|
-
this.state.errors.includes(
|
|
22645
|
-
this.state.errors.includes(
|
|
22641
|
+
return (this.state.errors.includes(58 /* CommandResult.ValueUpperInflectionNaN */) ||
|
|
22642
|
+
this.state.errors.includes(63 /* CommandResult.ValueUpperInvalidFormula */) ||
|
|
22643
|
+
this.state.errors.includes(50 /* CommandResult.LowerBiggerThanUpper */));
|
|
22646
22644
|
default:
|
|
22647
22645
|
return true;
|
|
22648
22646
|
}
|
|
@@ -23005,7 +23003,7 @@ const SplitToColumnsInteractiveContent = {
|
|
|
23005
23003
|
};
|
|
23006
23004
|
function interactiveSplitToColumns(env, separator, addNewColumns) {
|
|
23007
23005
|
let result = env.model.dispatch("SPLIT_TEXT_INTO_COLUMNS", { separator, addNewColumns });
|
|
23008
|
-
if (result.isCancelledBecause(
|
|
23006
|
+
if (result.isCancelledBecause(92 /* CommandResult.SplitWillOverwriteContent */)) {
|
|
23009
23007
|
env.askConfirmation(SplitToColumnsInteractiveContent.SplitIsDestructive, () => {
|
|
23010
23008
|
result = env.model.dispatch("SPLIT_TEXT_INTO_COLUMNS", {
|
|
23011
23009
|
separator,
|
|
@@ -23069,8 +23067,8 @@ class SplitIntoColumnsPanel extends owl.Component {
|
|
|
23069
23067
|
const errors = new Set();
|
|
23070
23068
|
for (const reason of cancelledReasons) {
|
|
23071
23069
|
switch (reason) {
|
|
23072
|
-
case
|
|
23073
|
-
case
|
|
23070
|
+
case 92 /* CommandResult.SplitWillOverwriteContent */:
|
|
23071
|
+
case 91 /* CommandResult.EmptySplitSeparator */:
|
|
23074
23072
|
break;
|
|
23075
23073
|
default:
|
|
23076
23074
|
errors.add(SplitToColumnsTerms.Errors[reason] || SplitToColumnsTerms.Errors.Unexpected);
|
|
@@ -23085,8 +23083,8 @@ class SplitIntoColumnsPanel extends owl.Component {
|
|
|
23085
23083
|
addNewColumns: this.state.addNewColumns,
|
|
23086
23084
|
force: false,
|
|
23087
23085
|
}).reasons;
|
|
23088
|
-
if (cancelledReasons.includes(
|
|
23089
|
-
warnings.push(SplitToColumnsTerms.Errors[
|
|
23086
|
+
if (cancelledReasons.includes(92 /* CommandResult.SplitWillOverwriteContent */)) {
|
|
23087
|
+
warnings.push(SplitToColumnsTerms.Errors[92 /* CommandResult.SplitWillOverwriteContent */]);
|
|
23090
23088
|
}
|
|
23091
23089
|
return warnings;
|
|
23092
23090
|
}
|
|
@@ -32320,13 +32318,13 @@ class ChartPlugin extends CorePlugin {
|
|
|
32320
32318
|
}
|
|
32321
32319
|
checkChartDuplicate(cmd) {
|
|
32322
32320
|
return this.getters.getFigureSheetId(cmd.id)
|
|
32323
|
-
?
|
|
32321
|
+
? 86 /* CommandResult.DuplicatedChartId */
|
|
32324
32322
|
: 0 /* CommandResult.Success */;
|
|
32325
32323
|
}
|
|
32326
32324
|
checkChartExists(cmd) {
|
|
32327
32325
|
return this.getters.getFigureSheetId(cmd.id)
|
|
32328
32326
|
? 0 /* CommandResult.Success */
|
|
32329
|
-
:
|
|
32327
|
+
: 87 /* CommandResult.ChartDoesNotExist */;
|
|
32330
32328
|
}
|
|
32331
32329
|
}
|
|
32332
32330
|
|
|
@@ -32538,10 +32536,10 @@ class ConditionalFormatPlugin extends CorePlugin {
|
|
|
32538
32536
|
return 28 /* CommandResult.InvalidSheetId */;
|
|
32539
32537
|
const ruleIndex = this.cfRules[sheetId].findIndex((cf) => cf.id === cfId);
|
|
32540
32538
|
if (ruleIndex === -1)
|
|
32541
|
-
return
|
|
32539
|
+
return 73 /* CommandResult.InvalidConditionalFormatId */;
|
|
32542
32540
|
const cfIndex2 = direction === "up" ? ruleIndex - 1 : ruleIndex + 1;
|
|
32543
32541
|
if (cfIndex2 < 0 || cfIndex2 >= this.cfRules[sheetId].length) {
|
|
32544
|
-
return
|
|
32542
|
+
return 73 /* CommandResult.InvalidConditionalFormatId */;
|
|
32545
32543
|
}
|
|
32546
32544
|
return 0 /* CommandResult.Success */;
|
|
32547
32545
|
}
|
|
@@ -32582,10 +32580,10 @@ class ConditionalFormatPlugin extends CorePlugin {
|
|
|
32582
32580
|
const errors = [];
|
|
32583
32581
|
const isEmpty = (value) => value === undefined || value === "";
|
|
32584
32582
|
if (expectedNumber >= 1 && isEmpty(rule.values[0])) {
|
|
32585
|
-
errors.push(
|
|
32583
|
+
errors.push(53 /* CommandResult.FirstArgMissing */);
|
|
32586
32584
|
}
|
|
32587
32585
|
if (expectedNumber >= 2 && isEmpty(rule.values[1])) {
|
|
32588
|
-
errors.push(
|
|
32586
|
+
errors.push(54 /* CommandResult.SecondArgMissing */);
|
|
32589
32587
|
}
|
|
32590
32588
|
return errors.length ? errors : 0 /* CommandResult.Success */;
|
|
32591
32589
|
}
|
|
@@ -32597,15 +32595,15 @@ class ConditionalFormatPlugin extends CorePlugin {
|
|
|
32597
32595
|
(threshold.value === "" || isNaN(threshold.value))) {
|
|
32598
32596
|
switch (thresholdName) {
|
|
32599
32597
|
case "min":
|
|
32600
|
-
return
|
|
32598
|
+
return 55 /* CommandResult.MinNaN */;
|
|
32601
32599
|
case "max":
|
|
32602
|
-
return
|
|
32600
|
+
return 57 /* CommandResult.MaxNaN */;
|
|
32603
32601
|
case "mid":
|
|
32604
|
-
return
|
|
32602
|
+
return 56 /* CommandResult.MidNaN */;
|
|
32605
32603
|
case "upperInflectionPoint":
|
|
32606
|
-
return
|
|
32604
|
+
return 58 /* CommandResult.ValueUpperInflectionNaN */;
|
|
32607
32605
|
case "lowerInflectionPoint":
|
|
32608
|
-
return
|
|
32606
|
+
return 59 /* CommandResult.ValueLowerInflectionNaN */;
|
|
32609
32607
|
}
|
|
32610
32608
|
}
|
|
32611
32609
|
return 0 /* CommandResult.Success */;
|
|
@@ -32619,15 +32617,15 @@ class ConditionalFormatPlugin extends CorePlugin {
|
|
|
32619
32617
|
catch (error) {
|
|
32620
32618
|
switch (thresholdName) {
|
|
32621
32619
|
case "min":
|
|
32622
|
-
return
|
|
32620
|
+
return 60 /* CommandResult.MinInvalidFormula */;
|
|
32623
32621
|
case "max":
|
|
32624
|
-
return
|
|
32622
|
+
return 62 /* CommandResult.MaxInvalidFormula */;
|
|
32625
32623
|
case "mid":
|
|
32626
|
-
return
|
|
32624
|
+
return 61 /* CommandResult.MidInvalidFormula */;
|
|
32627
32625
|
case "upperInflectionPoint":
|
|
32628
|
-
return
|
|
32626
|
+
return 63 /* CommandResult.ValueUpperInvalidFormula */;
|
|
32629
32627
|
case "lowerInflectionPoint":
|
|
32630
|
-
return
|
|
32628
|
+
return 64 /* CommandResult.ValueLowerInvalidFormula */;
|
|
32631
32629
|
}
|
|
32632
32630
|
}
|
|
32633
32631
|
return 0 /* CommandResult.Success */;
|
|
@@ -32644,7 +32642,7 @@ class ConditionalFormatPlugin extends CorePlugin {
|
|
|
32644
32642
|
if (["number", "percentage", "percentile"].includes(rule.lowerInflectionPoint.type) &&
|
|
32645
32643
|
rule.lowerInflectionPoint.type === rule.upperInflectionPoint.type &&
|
|
32646
32644
|
Number(minValue) > Number(maxValue)) {
|
|
32647
|
-
return
|
|
32645
|
+
return 50 /* CommandResult.LowerBiggerThanUpper */;
|
|
32648
32646
|
}
|
|
32649
32647
|
return 0 /* CommandResult.Success */;
|
|
32650
32648
|
}
|
|
@@ -32654,7 +32652,7 @@ class ConditionalFormatPlugin extends CorePlugin {
|
|
|
32654
32652
|
if (["number", "percentage", "percentile"].includes(rule.minimum.type) &&
|
|
32655
32653
|
rule.minimum.type === rule.maximum.type &&
|
|
32656
32654
|
stringToNumber(minValue) >= stringToNumber(maxValue)) {
|
|
32657
|
-
return
|
|
32655
|
+
return 49 /* CommandResult.MinBiggerThanMax */;
|
|
32658
32656
|
}
|
|
32659
32657
|
return 0 /* CommandResult.Success */;
|
|
32660
32658
|
}
|
|
@@ -32665,7 +32663,7 @@ class ConditionalFormatPlugin extends CorePlugin {
|
|
|
32665
32663
|
["number", "percentage", "percentile"].includes(rule.midpoint.type) &&
|
|
32666
32664
|
rule.midpoint.type === rule.maximum.type &&
|
|
32667
32665
|
stringToNumber(midValue) >= stringToNumber(maxValue)) {
|
|
32668
|
-
return
|
|
32666
|
+
return 51 /* CommandResult.MidBiggerThanMax */;
|
|
32669
32667
|
}
|
|
32670
32668
|
return 0 /* CommandResult.Success */;
|
|
32671
32669
|
}
|
|
@@ -32676,7 +32674,7 @@ class ConditionalFormatPlugin extends CorePlugin {
|
|
|
32676
32674
|
["number", "percentage", "percentile"].includes(rule.midpoint.type) &&
|
|
32677
32675
|
rule.minimum.type === rule.midpoint.type &&
|
|
32678
32676
|
stringToNumber(minValue) >= stringToNumber(midValue)) {
|
|
32679
|
-
return
|
|
32677
|
+
return 52 /* CommandResult.MinBiggerThanMid */;
|
|
32680
32678
|
}
|
|
32681
32679
|
return 0 /* CommandResult.Success */;
|
|
32682
32680
|
}
|
|
@@ -32808,13 +32806,13 @@ class FigurePlugin extends CorePlugin {
|
|
|
32808
32806
|
}
|
|
32809
32807
|
checkFigureExists(sheetId, figureId) {
|
|
32810
32808
|
if (this.figures[sheetId]?.[figureId] === undefined) {
|
|
32811
|
-
return
|
|
32809
|
+
return 72 /* CommandResult.FigureDoesNotExist */;
|
|
32812
32810
|
}
|
|
32813
32811
|
return 0 /* CommandResult.Success */;
|
|
32814
32812
|
}
|
|
32815
32813
|
checkFigureDuplicate(figureId) {
|
|
32816
32814
|
if (Object.values(this.figures).find((sheet) => sheet?.[figureId])) {
|
|
32817
|
-
return
|
|
32815
|
+
return 84 /* CommandResult.DuplicatedFigureId */;
|
|
32818
32816
|
}
|
|
32819
32817
|
return 0 /* CommandResult.Success */;
|
|
32820
32818
|
}
|
|
@@ -32926,12 +32924,12 @@ class FiltersPlugin extends CorePlugin {
|
|
|
32926
32924
|
switch (cmd.type) {
|
|
32927
32925
|
case "CREATE_FILTER_TABLE":
|
|
32928
32926
|
if (!areZonesContinuous(...cmd.target)) {
|
|
32929
|
-
return
|
|
32927
|
+
return 83 /* CommandResult.NonContinuousTargets */;
|
|
32930
32928
|
}
|
|
32931
32929
|
const zone = union(...cmd.target);
|
|
32932
32930
|
const checkFilterOverlap = () => {
|
|
32933
32931
|
if (this.getFilterTables(cmd.sheetId).some((filter) => overlap(filter.zone, zone))) {
|
|
32934
|
-
return
|
|
32932
|
+
return 80 /* CommandResult.FilterOverlap */;
|
|
32935
32933
|
}
|
|
32936
32934
|
return 0 /* CommandResult.Success */;
|
|
32937
32935
|
};
|
|
@@ -32939,7 +32937,7 @@ class FiltersPlugin extends CorePlugin {
|
|
|
32939
32937
|
const mergesInTarget = this.getters.getMergesInZone(cmd.sheetId, zone);
|
|
32940
32938
|
for (let merge of mergesInTarget) {
|
|
32941
32939
|
if (overlap(zone, merge)) {
|
|
32942
|
-
return
|
|
32940
|
+
return 82 /* CommandResult.MergeInFilter */;
|
|
32943
32941
|
}
|
|
32944
32942
|
}
|
|
32945
32943
|
return 0 /* CommandResult.Success */;
|
|
@@ -32949,7 +32947,7 @@ class FiltersPlugin extends CorePlugin {
|
|
|
32949
32947
|
for (let merge of cmd.target) {
|
|
32950
32948
|
for (let filterTable of this.getFilterTables(cmd.sheetId)) {
|
|
32951
32949
|
if (overlap(filterTable.zone, merge)) {
|
|
32952
|
-
return
|
|
32950
|
+
return 82 /* CommandResult.MergeInFilter */;
|
|
32953
32951
|
}
|
|
32954
32952
|
}
|
|
32955
32953
|
}
|
|
@@ -33311,10 +33309,10 @@ class HeaderVisibilityPlugin extends CorePlugin {
|
|
|
33311
33309
|
: this.getters.getNumberRows(cmd.sheetId);
|
|
33312
33310
|
const hiddenElements = new Set((hiddenGroup || []).flat().concat(cmd.elements));
|
|
33313
33311
|
if (hiddenElements.size >= elements) {
|
|
33314
|
-
return
|
|
33312
|
+
return 68 /* CommandResult.TooManyHiddenElements */;
|
|
33315
33313
|
}
|
|
33316
33314
|
else if (Math.min(...cmd.elements) < 0 || Math.max(...cmd.elements) > elements) {
|
|
33317
|
-
return
|
|
33315
|
+
return 88 /* CommandResult.InvalidHeaderIndex */;
|
|
33318
33316
|
}
|
|
33319
33317
|
else {
|
|
33320
33318
|
return 0 /* CommandResult.Success */;
|
|
@@ -33878,7 +33876,7 @@ class MergePlugin extends CorePlugin {
|
|
|
33878
33876
|
for (const zone of target) {
|
|
33879
33877
|
for (const zone2 of target) {
|
|
33880
33878
|
if (zone !== zone2 && overlap(zone, zone2)) {
|
|
33881
|
-
return
|
|
33879
|
+
return 67 /* CommandResult.MergeOverlap */;
|
|
33882
33880
|
}
|
|
33883
33881
|
}
|
|
33884
33882
|
}
|
|
@@ -33892,7 +33890,7 @@ class MergePlugin extends CorePlugin {
|
|
|
33892
33890
|
for (const zone of target) {
|
|
33893
33891
|
if ((zone.left < xSplit && zone.right >= xSplit) ||
|
|
33894
33892
|
(zone.top < ySplit && zone.bottom >= ySplit)) {
|
|
33895
|
-
return
|
|
33893
|
+
return 77 /* CommandResult.FrozenPaneOverlap */;
|
|
33896
33894
|
}
|
|
33897
33895
|
}
|
|
33898
33896
|
return 0 /* CommandResult.Success */;
|
|
@@ -34525,10 +34523,10 @@ class SheetPlugin extends CorePlugin {
|
|
|
34525
34523
|
? this.getNumberCols(cmd.sheetId)
|
|
34526
34524
|
: this.getNumberRows(cmd.sheetId);
|
|
34527
34525
|
if (cmd.base < 0 || cmd.base > elements) {
|
|
34528
|
-
return
|
|
34526
|
+
return 88 /* CommandResult.InvalidHeaderIndex */;
|
|
34529
34527
|
}
|
|
34530
34528
|
else if (cmd.quantity <= 0) {
|
|
34531
|
-
return
|
|
34529
|
+
return 89 /* CommandResult.InvalidQuantity */;
|
|
34532
34530
|
}
|
|
34533
34531
|
return 0 /* CommandResult.Success */;
|
|
34534
34532
|
case "REMOVE_COLUMNS_ROWS": {
|
|
@@ -34536,7 +34534,7 @@ class SheetPlugin extends CorePlugin {
|
|
|
34536
34534
|
? this.getNumberCols(cmd.sheetId)
|
|
34537
34535
|
: this.getNumberRows(cmd.sheetId);
|
|
34538
34536
|
if (Math.min(...cmd.elements) < 0 || Math.max(...cmd.elements) > elements) {
|
|
34539
|
-
return
|
|
34537
|
+
return 88 /* CommandResult.InvalidHeaderIndex */;
|
|
34540
34538
|
}
|
|
34541
34539
|
else if (this.checkElementsIncludeAllNonFrozenHeaders(cmd.sheetId, cmd.dimension, cmd.elements)) {
|
|
34542
34540
|
return 8 /* CommandResult.NotEnoughElements */;
|
|
@@ -35016,18 +35014,18 @@ class SheetPlugin extends CorePlugin {
|
|
|
35016
35014
|
checkRowFreezeQuantity(cmd) {
|
|
35017
35015
|
return cmd.quantity >= 1 && cmd.quantity < this.getNumberRows(cmd.sheetId)
|
|
35018
35016
|
? 0 /* CommandResult.Success */
|
|
35019
|
-
:
|
|
35017
|
+
: 76 /* CommandResult.InvalidFreezeQuantity */;
|
|
35020
35018
|
}
|
|
35021
35019
|
checkColFreezeQuantity(cmd) {
|
|
35022
35020
|
return cmd.quantity >= 1 && cmd.quantity < this.getNumberCols(cmd.sheetId)
|
|
35023
35021
|
? 0 /* CommandResult.Success */
|
|
35024
|
-
:
|
|
35022
|
+
: 76 /* CommandResult.InvalidFreezeQuantity */;
|
|
35025
35023
|
}
|
|
35026
35024
|
checkRowFreezeOverlapMerge(cmd) {
|
|
35027
35025
|
const merges = this.getters.getMerges(cmd.sheetId);
|
|
35028
35026
|
for (let merge of merges) {
|
|
35029
35027
|
if (merge.top < cmd.quantity && cmd.quantity <= merge.bottom) {
|
|
35030
|
-
return
|
|
35028
|
+
return 67 /* CommandResult.MergeOverlap */;
|
|
35031
35029
|
}
|
|
35032
35030
|
}
|
|
35033
35031
|
return 0 /* CommandResult.Success */;
|
|
@@ -35036,7 +35034,7 @@ class SheetPlugin extends CorePlugin {
|
|
|
35036
35034
|
const merges = this.getters.getMerges(cmd.sheetId);
|
|
35037
35035
|
for (let merge of merges) {
|
|
35038
35036
|
if (merge.left < cmd.quantity && cmd.quantity <= merge.right) {
|
|
35039
|
-
return
|
|
35037
|
+
return 67 /* CommandResult.MergeOverlap */;
|
|
35040
35038
|
}
|
|
35041
35039
|
}
|
|
35042
35040
|
return 0 /* CommandResult.Success */;
|
|
@@ -35371,7 +35369,7 @@ class SettingsPlugin extends CorePlugin {
|
|
|
35371
35369
|
allowDispatch(cmd) {
|
|
35372
35370
|
switch (cmd.type) {
|
|
35373
35371
|
case "UPDATE_LOCALE":
|
|
35374
|
-
return isValidLocale(cmd.locale) ? 0 /* CommandResult.Success */ :
|
|
35372
|
+
return isValidLocale(cmd.locale) ? 0 /* CommandResult.Success */ : 95 /* CommandResult.InvalidLocale */;
|
|
35375
35373
|
}
|
|
35376
35374
|
return 0 /* CommandResult.Success */;
|
|
35377
35375
|
}
|
|
@@ -35597,9 +35595,9 @@ class FormulaDependencyGraph {
|
|
|
35597
35595
|
*/
|
|
35598
35596
|
getCellsDependingOn(positionIds) {
|
|
35599
35597
|
const visited = new JetSet();
|
|
35600
|
-
const queue = Array.from(positionIds);
|
|
35598
|
+
const queue = Array.from(positionIds).reverse();
|
|
35601
35599
|
while (queue.length > 0) {
|
|
35602
|
-
const node = queue.
|
|
35600
|
+
const node = queue.pop();
|
|
35603
35601
|
visited.add(node);
|
|
35604
35602
|
const adjacentNodes = this.inverseDependencies.get(node) || new Set();
|
|
35605
35603
|
for (const adjacentNode of adjacentNodes) {
|
|
@@ -35814,9 +35812,6 @@ class Evaluator {
|
|
|
35814
35812
|
}
|
|
35815
35813
|
}
|
|
35816
35814
|
setEvaluatedCell(positionId, evaluatedCell) {
|
|
35817
|
-
if (this.nextPositionsToUpdate.has(positionId)) {
|
|
35818
|
-
this.nextPositionsToUpdate.delete(positionId);
|
|
35819
|
-
}
|
|
35820
35815
|
this.evaluatedCells.set(positionId, evaluatedCell);
|
|
35821
35816
|
}
|
|
35822
35817
|
computeCell(positionId) {
|
|
@@ -37119,7 +37114,7 @@ class AutofillPlugin extends UIPlugin {
|
|
|
37119
37114
|
if (this.lastCellSelected.col !== undefined && this.lastCellSelected.row !== undefined) {
|
|
37120
37115
|
return 0 /* CommandResult.Success */;
|
|
37121
37116
|
}
|
|
37122
|
-
return
|
|
37117
|
+
return 47 /* CommandResult.InvalidAutofillSelection */;
|
|
37123
37118
|
case "AUTOFILL_AUTO":
|
|
37124
37119
|
const zone = this.getters.getSelectedZone();
|
|
37125
37120
|
return zone.top === zone.bottom
|
|
@@ -37736,7 +37731,7 @@ class CellPopoverPlugin extends UIPlugin {
|
|
|
37736
37731
|
cellPopoverRegistry.get(cmd.popoverType);
|
|
37737
37732
|
}
|
|
37738
37733
|
catch (error) {
|
|
37739
|
-
return
|
|
37734
|
+
return 74 /* CommandResult.InvalidCellPopover */;
|
|
37740
37735
|
}
|
|
37741
37736
|
return 0 /* CommandResult.Success */;
|
|
37742
37737
|
default:
|
|
@@ -39884,6 +39879,11 @@ class SelectionInputPlugin extends UIPlugin {
|
|
|
39884
39879
|
return 31 /* CommandResult.MaximumRangesReached */;
|
|
39885
39880
|
}
|
|
39886
39881
|
break;
|
|
39882
|
+
case "REMOVE_RANGE":
|
|
39883
|
+
if (this.ranges.length === 1) {
|
|
39884
|
+
return 32 /* CommandResult.MinimumRangesReached */;
|
|
39885
|
+
}
|
|
39886
|
+
break;
|
|
39887
39887
|
case "CHANGE_RANGE":
|
|
39888
39888
|
if (this.inputHasSingleRange && cmd.value.split(",").length > 1) {
|
|
39889
39889
|
return 31 /* CommandResult.MaximumRangesReached */;
|
|
@@ -40247,7 +40247,7 @@ class SortPlugin extends UIPlugin {
|
|
|
40247
40247
|
/*Test the presence of single cells*/
|
|
40248
40248
|
const singleCells = positions(zone).some(({ col, row }) => !this.getters.isInMerge({ sheetId, col, row }));
|
|
40249
40249
|
if (singleCells) {
|
|
40250
|
-
return
|
|
40250
|
+
return 65 /* CommandResult.InvalidSortZone */;
|
|
40251
40251
|
}
|
|
40252
40252
|
return 0 /* CommandResult.Success */;
|
|
40253
40253
|
}
|
|
@@ -40266,7 +40266,7 @@ class SortPlugin extends UIPlugin {
|
|
|
40266
40266
|
];
|
|
40267
40267
|
return widthCurrent === widthFirst && heightCurrent === heightFirst;
|
|
40268
40268
|
})) {
|
|
40269
|
-
return
|
|
40269
|
+
return 65 /* CommandResult.InvalidSortZone */;
|
|
40270
40270
|
}
|
|
40271
40271
|
return 0 /* CommandResult.Success */;
|
|
40272
40272
|
}
|
|
@@ -40704,7 +40704,7 @@ class SheetUIPlugin extends UIPlugin {
|
|
|
40704
40704
|
const sheetId = "sheetId" in cmd ? cmd.sheetId : this.getters.tryGetActiveSheetId();
|
|
40705
40705
|
const zones = this.getters.getCommandZones(cmd);
|
|
40706
40706
|
if (!sheetId && zones.length > 0) {
|
|
40707
|
-
return
|
|
40707
|
+
return 94 /* CommandResult.NoActiveSheet */;
|
|
40708
40708
|
}
|
|
40709
40709
|
if (sheetId && zones.length > 0) {
|
|
40710
40710
|
return this.getters.checkZonesExistInSheet(sheetId, zones);
|
|
@@ -41186,13 +41186,13 @@ class SplitToColumnsPlugin extends UIPlugin {
|
|
|
41186
41186
|
}
|
|
41187
41187
|
checkSingleColSelected() {
|
|
41188
41188
|
if (!this.getters.isSingleColSelected()) {
|
|
41189
|
-
return
|
|
41189
|
+
return 90 /* CommandResult.MoreThanOneColumnSelected */;
|
|
41190
41190
|
}
|
|
41191
41191
|
return 0 /* CommandResult.Success */;
|
|
41192
41192
|
}
|
|
41193
41193
|
checkNonEmptySelector(cmd) {
|
|
41194
41194
|
if (cmd.separator === "") {
|
|
41195
|
-
return
|
|
41195
|
+
return 91 /* CommandResult.EmptySplitSeparator */;
|
|
41196
41196
|
}
|
|
41197
41197
|
return 0 /* CommandResult.Success */;
|
|
41198
41198
|
}
|
|
@@ -41203,7 +41203,7 @@ class SplitToColumnsPlugin extends UIPlugin {
|
|
|
41203
41203
|
const selection = this.getters.getSelectedZones()[0];
|
|
41204
41204
|
const splitted = this.getSplittedCols(selection, cmd.separator);
|
|
41205
41205
|
if (this.willSplittedColsOverwriteContent(selection, splitted)) {
|
|
41206
|
-
return
|
|
41206
|
+
return 92 /* CommandResult.SplitWillOverwriteContent */;
|
|
41207
41207
|
}
|
|
41208
41208
|
return 0 /* CommandResult.Success */;
|
|
41209
41209
|
}
|
|
@@ -41214,7 +41214,7 @@ class SplitToColumnsPlugin extends UIPlugin {
|
|
|
41214
41214
|
return 0 /* CommandResult.Success */;
|
|
41215
41215
|
}
|
|
41216
41216
|
}
|
|
41217
|
-
return
|
|
41217
|
+
return 93 /* CommandResult.NoSplitSeparatorInSelection */;
|
|
41218
41218
|
}
|
|
41219
41219
|
}
|
|
41220
41220
|
|
|
@@ -41362,7 +41362,7 @@ class ClipboardCellsState extends ClipboardCellsAbstractState {
|
|
|
41362
41362
|
for (const zone of this.getPasteZones(target)) {
|
|
41363
41363
|
if ((zone.left < xSplit && zone.right >= xSplit) ||
|
|
41364
41364
|
(zone.top < ySplit && zone.bottom >= ySplit)) {
|
|
41365
|
-
return
|
|
41365
|
+
return 77 /* CommandResult.FrozenPaneOverlap */;
|
|
41366
41366
|
}
|
|
41367
41367
|
}
|
|
41368
41368
|
return 0 /* CommandResult.Success */;
|
|
@@ -41814,7 +41814,7 @@ class ClipboardFigureState {
|
|
|
41814
41814
|
}
|
|
41815
41815
|
isPasteAllowed(target, option) {
|
|
41816
41816
|
if (target.length === 0) {
|
|
41817
|
-
return
|
|
41817
|
+
return 75 /* CommandResult.EmptyTarget */;
|
|
41818
41818
|
}
|
|
41819
41819
|
if (option?.pasteOption !== undefined) {
|
|
41820
41820
|
return 23 /* CommandResult.WrongFigurePasteOption */;
|
|
@@ -42047,7 +42047,7 @@ class ClipboardPlugin extends UIPlugin {
|
|
|
42047
42047
|
}
|
|
42048
42048
|
case "ACTIVATE_PAINT_FORMAT": {
|
|
42049
42049
|
if (this.paintFormatStatus !== "inactive") {
|
|
42050
|
-
return
|
|
42050
|
+
return 96 /* CommandResult.AlreadyInPaintingFormatMode */;
|
|
42051
42051
|
}
|
|
42052
42052
|
}
|
|
42053
42053
|
}
|
|
@@ -42621,7 +42621,7 @@ class EditionPlugin extends UIPlugin {
|
|
|
42621
42621
|
validateSelection(length, start, end) {
|
|
42622
42622
|
return start >= 0 && start <= length && end >= 0 && end <= length
|
|
42623
42623
|
? 0 /* CommandResult.Success */
|
|
42624
|
-
:
|
|
42624
|
+
: 48 /* CommandResult.WrongComposerSelection */;
|
|
42625
42625
|
}
|
|
42626
42626
|
onColumnsRemoved(cmd) {
|
|
42627
42627
|
if (cmd.elements.includes(this.col) && this.mode !== "inactive") {
|
|
@@ -43002,7 +43002,7 @@ class FilterEvaluationPlugin extends UIPlugin {
|
|
|
43002
43002
|
switch (cmd.type) {
|
|
43003
43003
|
case "UPDATE_FILTER":
|
|
43004
43004
|
if (!this.getters.getFilterId(cmd)) {
|
|
43005
|
-
return
|
|
43005
|
+
return 81 /* CommandResult.FilterNotFound */;
|
|
43006
43006
|
}
|
|
43007
43007
|
break;
|
|
43008
43008
|
}
|
|
@@ -44605,7 +44605,7 @@ class SheetViewPlugin extends UIPlugin {
|
|
|
44605
44605
|
}
|
|
44606
44606
|
checkPositiveDimension(cmd) {
|
|
44607
44607
|
if (cmd.width < 0 || cmd.height < 0) {
|
|
44608
|
-
return
|
|
44608
|
+
return 70 /* CommandResult.InvalidViewportSize */;
|
|
44609
44609
|
}
|
|
44610
44610
|
return 0 /* CommandResult.Success */;
|
|
44611
44611
|
}
|
|
@@ -44615,7 +44615,7 @@ class SheetViewPlugin extends UIPlugin {
|
|
|
44615
44615
|
cmd.gridOffsetY === this.gridOffsetY &&
|
|
44616
44616
|
cmd.width === width &&
|
|
44617
44617
|
cmd.height === height) {
|
|
44618
|
-
return
|
|
44618
|
+
return 78 /* CommandResult.ValuesNotChanged */;
|
|
44619
44619
|
}
|
|
44620
44620
|
return 0 /* CommandResult.Success */;
|
|
44621
44621
|
}
|
|
@@ -44623,7 +44623,7 @@ class SheetViewPlugin extends UIPlugin {
|
|
|
44623
44623
|
const pane = this.getMainInternalViewport(this.getters.getActiveSheetId());
|
|
44624
44624
|
if ((!pane.canScrollHorizontally && offsetX > 0) ||
|
|
44625
44625
|
(!pane.canScrollVertically && offsetY > 0)) {
|
|
44626
|
-
return
|
|
44626
|
+
return 71 /* CommandResult.InvalidScrollingDirection */;
|
|
44627
44627
|
}
|
|
44628
44628
|
return 0 /* CommandResult.Success */;
|
|
44629
44629
|
}
|
|
@@ -46517,6 +46517,7 @@ css /* scss */ `
|
|
|
46517
46517
|
line-height: 1.2;
|
|
46518
46518
|
font-size: 13px;
|
|
46519
46519
|
font-weight: 500;
|
|
46520
|
+
background-color: #fff;
|
|
46520
46521
|
|
|
46521
46522
|
.o-topbar-top {
|
|
46522
46523
|
border-bottom: 1px solid ${SEPARATOR_COLOR};
|
|
@@ -48081,7 +48082,7 @@ class SelectionStreamProcessorImpl {
|
|
|
48081
48082
|
*/
|
|
48082
48083
|
moveAnchorCell(direction, step = 1) {
|
|
48083
48084
|
if (step !== "end" && step <= 0) {
|
|
48084
|
-
return new DispatchResult(
|
|
48085
|
+
return new DispatchResult(85 /* CommandResult.InvalidSelectionStep */);
|
|
48085
48086
|
}
|
|
48086
48087
|
const { col, row } = this.getNextAvailablePosition(direction, step);
|
|
48087
48088
|
return this.selectCell(col, row);
|
|
@@ -48127,7 +48128,7 @@ class SelectionStreamProcessorImpl {
|
|
|
48127
48128
|
*/
|
|
48128
48129
|
resizeAnchorZone(direction, step = 1) {
|
|
48129
48130
|
if (step !== "end" && step <= 0) {
|
|
48130
|
-
return new DispatchResult(
|
|
48131
|
+
return new DispatchResult(85 /* CommandResult.InvalidSelectionStep */);
|
|
48131
48132
|
}
|
|
48132
48133
|
const sheetId = this.getters.getActiveSheetId();
|
|
48133
48134
|
const anchor = this.anchor;
|
|
@@ -49368,14 +49369,14 @@ function convertFigureData(figure, sheet) {
|
|
|
49368
49369
|
*/
|
|
49369
49370
|
function figureCoordinates(headers, position) {
|
|
49370
49371
|
let currentPosition = 0;
|
|
49371
|
-
for (const [headerIndex, header] of
|
|
49372
|
+
for (const [headerIndex, header] of headers.entries()) {
|
|
49372
49373
|
if (currentPosition <= position && position < currentPosition + header.size) {
|
|
49373
49374
|
return {
|
|
49374
|
-
index:
|
|
49375
|
+
index: headerIndex,
|
|
49375
49376
|
offset: convertDotValueToEMU(position - currentPosition + FIGURE_BORDER_WIDTH),
|
|
49376
49377
|
};
|
|
49377
49378
|
}
|
|
49378
|
-
else {
|
|
49379
|
+
else if (headerIndex < headers.length - 1) {
|
|
49379
49380
|
currentPosition += header.size;
|
|
49380
49381
|
}
|
|
49381
49382
|
}
|
|
@@ -50481,10 +50482,10 @@ class Model extends EventBus {
|
|
|
50481
50482
|
const command = createCommand(type, payload);
|
|
50482
50483
|
let status = this.status;
|
|
50483
50484
|
if (this.getters.isReadonly() && !canExecuteInReadonly(command)) {
|
|
50484
|
-
return new DispatchResult(
|
|
50485
|
+
return new DispatchResult(69 /* CommandResult.Readonly */);
|
|
50485
50486
|
}
|
|
50486
50487
|
if (!this.session.canApplyOptimisticUpdate()) {
|
|
50487
|
-
return new DispatchResult(
|
|
50488
|
+
return new DispatchResult(66 /* CommandResult.WaitingSessionConfirmation */);
|
|
50488
50489
|
}
|
|
50489
50490
|
switch (status) {
|
|
50490
50491
|
case 0 /* Status.Ready */:
|
|
@@ -50771,6 +50772,6 @@ exports.setTranslationMethod = setTranslationMethod;
|
|
|
50771
50772
|
exports.tokenize = tokenize;
|
|
50772
50773
|
|
|
50773
50774
|
|
|
50774
|
-
__info__.version = '16.4.
|
|
50775
|
-
__info__.date = '2023-
|
|
50776
|
-
__info__.hash = '
|
|
50775
|
+
__info__.version = '16.4.13';
|
|
50776
|
+
__info__.date = '2023-11-03T12:21:08.124Z';
|
|
50777
|
+
__info__.hash = '001985e';
|