@odoo/o-spreadsheet 16.0.28 → 16.0.30
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 +337 -278
- package/dist/o-spreadsheet.d.ts +63 -62
- package/dist/o-spreadsheet.esm.js +337 -278
- package/dist/o-spreadsheet.iife.js +337 -278
- package/dist/o-spreadsheet.iife.min.js +245 -252
- package/dist/o_spreadsheet.xml +3 -3
- package/package.json +1 -1
|
@@ -1562,6 +1562,31 @@
|
|
|
1562
1562
|
//from https://stackoverflow.com/questions/721304/insert-commas-into-number-string @Thomas/Alan Moore
|
|
1563
1563
|
const thousandsGroupsRegexp = /(\d+?)(?=(\d{3})+(?!\d)|$)/g;
|
|
1564
1564
|
const zeroRegexp = /0/g;
|
|
1565
|
+
// TODO in the future : remove these constants MONTHS/DAYS, and use a library such as luxon to handle it
|
|
1566
|
+
// + possibly handle automatic translation of day/month
|
|
1567
|
+
const MONTHS = {
|
|
1568
|
+
0: _lt("January"),
|
|
1569
|
+
1: _lt("February"),
|
|
1570
|
+
2: _lt("March"),
|
|
1571
|
+
3: _lt("April"),
|
|
1572
|
+
4: _lt("May"),
|
|
1573
|
+
5: _lt("June"),
|
|
1574
|
+
6: _lt("July"),
|
|
1575
|
+
7: _lt("August"),
|
|
1576
|
+
8: _lt("September"),
|
|
1577
|
+
9: _lt("October"),
|
|
1578
|
+
10: _lt("November"),
|
|
1579
|
+
11: _lt("December"),
|
|
1580
|
+
};
|
|
1581
|
+
const DAYS$1 = {
|
|
1582
|
+
0: _lt("Sunday"),
|
|
1583
|
+
1: _lt("Monday"),
|
|
1584
|
+
2: _lt("Tuesday"),
|
|
1585
|
+
3: _lt("Wednesday"),
|
|
1586
|
+
4: _lt("Thursday"),
|
|
1587
|
+
5: _lt("Friday"),
|
|
1588
|
+
6: _lt("Saturday"),
|
|
1589
|
+
};
|
|
1565
1590
|
// -----------------------------------------------------------------------------
|
|
1566
1591
|
// FORMAT REPRESENTATION CACHE
|
|
1567
1592
|
// -----------------------------------------------------------------------------
|
|
@@ -1794,8 +1819,9 @@
|
|
|
1794
1819
|
return strDate + (strDate && strTime ? " " : "") + strTime;
|
|
1795
1820
|
}
|
|
1796
1821
|
function formatJSDate(jsDate, format) {
|
|
1797
|
-
|
|
1798
|
-
const
|
|
1822
|
+
var _a;
|
|
1823
|
+
const sep = (_a = format.match(/\/|-|\s/)) === null || _a === void 0 ? void 0 : _a[0];
|
|
1824
|
+
const parts = sep ? format.split(sep) : [format];
|
|
1799
1825
|
return parts
|
|
1800
1826
|
.map((p) => {
|
|
1801
1827
|
switch (p) {
|
|
@@ -1803,10 +1829,23 @@
|
|
|
1803
1829
|
return jsDate.getDate();
|
|
1804
1830
|
case "dd":
|
|
1805
1831
|
return jsDate.getDate().toString().padStart(2, "0");
|
|
1832
|
+
case "ddd":
|
|
1833
|
+
return DAYS$1[jsDate.getDay()].slice(0, 3);
|
|
1834
|
+
case "dddd":
|
|
1835
|
+
return DAYS$1[jsDate.getDay()];
|
|
1806
1836
|
case "m":
|
|
1807
1837
|
return jsDate.getMonth() + 1;
|
|
1808
1838
|
case "mm":
|
|
1809
1839
|
return String(jsDate.getMonth() + 1).padStart(2, "0");
|
|
1840
|
+
case "mmm":
|
|
1841
|
+
return MONTHS[jsDate.getMonth()].slice(0, 3);
|
|
1842
|
+
case "mmmm":
|
|
1843
|
+
return MONTHS[jsDate.getMonth()];
|
|
1844
|
+
case "mmmmm":
|
|
1845
|
+
return MONTHS[jsDate.getMonth()].slice(0, 1);
|
|
1846
|
+
case "yy":
|
|
1847
|
+
const fullYear = String(jsDate.getFullYear()).replace("-", "").padStart(2, "0");
|
|
1848
|
+
return fullYear.slice(fullYear.length - 2);
|
|
1810
1849
|
case "yyyy":
|
|
1811
1850
|
return jsDate.getFullYear();
|
|
1812
1851
|
default:
|
|
@@ -1853,27 +1892,30 @@
|
|
|
1853
1892
|
}
|
|
1854
1893
|
function createLargeNumberFormat(format, magnitude, postFix) {
|
|
1855
1894
|
const internalFormat = parseFormat(format || "#,##0");
|
|
1856
|
-
const largeNumberFormat =
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
format: {
|
|
1863
|
-
...formatPart.format,
|
|
1864
|
-
magnitude,
|
|
1865
|
-
decimalPart: undefined,
|
|
1866
|
-
},
|
|
1867
|
-
},
|
|
1868
|
-
{
|
|
1869
|
-
type: "STRING",
|
|
1870
|
-
format: postFix,
|
|
1871
|
-
},
|
|
1872
|
-
];
|
|
1895
|
+
const largeNumberFormat = [];
|
|
1896
|
+
for (let i = 0; i < internalFormat.length; i++) {
|
|
1897
|
+
const formatPart = internalFormat[i];
|
|
1898
|
+
if (formatPart.type !== "NUMBER") {
|
|
1899
|
+
largeNumberFormat.push(formatPart);
|
|
1900
|
+
continue;
|
|
1873
1901
|
}
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1902
|
+
largeNumberFormat.push({
|
|
1903
|
+
...formatPart,
|
|
1904
|
+
format: {
|
|
1905
|
+
...formatPart.format,
|
|
1906
|
+
magnitude,
|
|
1907
|
+
decimalPart: undefined,
|
|
1908
|
+
},
|
|
1909
|
+
});
|
|
1910
|
+
largeNumberFormat.push({
|
|
1911
|
+
type: "STRING",
|
|
1912
|
+
format: postFix,
|
|
1913
|
+
});
|
|
1914
|
+
const nextFormatPart = internalFormat[i + 1];
|
|
1915
|
+
if ((nextFormatPart === null || nextFormatPart === void 0 ? void 0 : nextFormatPart.type) === "STRING" && ["k", "m", "b"].includes(nextFormatPart.format)) {
|
|
1916
|
+
i++;
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1877
1919
|
return convertInternalFormatToFormat(largeNumberFormat);
|
|
1878
1920
|
}
|
|
1879
1921
|
function changeDecimalPlaces(format, step) {
|
|
@@ -3312,64 +3354,65 @@
|
|
|
3312
3354
|
CommandResult[CommandResult["InvalidSheetId"] = 27] = "InvalidSheetId";
|
|
3313
3355
|
CommandResult[CommandResult["InputAlreadyFocused"] = 28] = "InputAlreadyFocused";
|
|
3314
3356
|
CommandResult[CommandResult["MaximumRangesReached"] = 29] = "MaximumRangesReached";
|
|
3315
|
-
CommandResult[CommandResult["
|
|
3316
|
-
CommandResult[CommandResult["
|
|
3317
|
-
CommandResult[CommandResult["
|
|
3318
|
-
CommandResult[CommandResult["
|
|
3319
|
-
CommandResult[CommandResult["
|
|
3320
|
-
CommandResult[CommandResult["
|
|
3321
|
-
CommandResult[CommandResult["
|
|
3322
|
-
CommandResult[CommandResult["
|
|
3323
|
-
CommandResult[CommandResult["
|
|
3324
|
-
CommandResult[CommandResult["
|
|
3325
|
-
CommandResult[CommandResult["
|
|
3326
|
-
CommandResult[CommandResult["
|
|
3327
|
-
CommandResult[CommandResult["
|
|
3328
|
-
CommandResult[CommandResult["
|
|
3329
|
-
CommandResult[CommandResult["
|
|
3330
|
-
CommandResult[CommandResult["
|
|
3331
|
-
CommandResult[CommandResult["
|
|
3332
|
-
CommandResult[CommandResult["
|
|
3333
|
-
CommandResult[CommandResult["
|
|
3334
|
-
CommandResult[CommandResult["
|
|
3335
|
-
CommandResult[CommandResult["
|
|
3336
|
-
CommandResult[CommandResult["
|
|
3337
|
-
CommandResult[CommandResult["
|
|
3338
|
-
CommandResult[CommandResult["
|
|
3339
|
-
CommandResult[CommandResult["
|
|
3340
|
-
CommandResult[CommandResult["
|
|
3341
|
-
CommandResult[CommandResult["
|
|
3342
|
-
CommandResult[CommandResult["
|
|
3343
|
-
CommandResult[CommandResult["
|
|
3344
|
-
CommandResult[CommandResult["
|
|
3345
|
-
CommandResult[CommandResult["
|
|
3346
|
-
CommandResult[CommandResult["
|
|
3347
|
-
CommandResult[CommandResult["
|
|
3348
|
-
CommandResult[CommandResult["
|
|
3349
|
-
CommandResult[CommandResult["
|
|
3350
|
-
CommandResult[CommandResult["
|
|
3351
|
-
CommandResult[CommandResult["
|
|
3352
|
-
CommandResult[CommandResult["
|
|
3353
|
-
CommandResult[CommandResult["
|
|
3354
|
-
CommandResult[CommandResult["
|
|
3355
|
-
CommandResult[CommandResult["
|
|
3356
|
-
CommandResult[CommandResult["
|
|
3357
|
-
CommandResult[CommandResult["
|
|
3358
|
-
CommandResult[CommandResult["
|
|
3359
|
-
CommandResult[CommandResult["
|
|
3360
|
-
CommandResult[CommandResult["
|
|
3361
|
-
CommandResult[CommandResult["
|
|
3362
|
-
CommandResult[CommandResult["
|
|
3363
|
-
CommandResult[CommandResult["
|
|
3364
|
-
CommandResult[CommandResult["
|
|
3365
|
-
CommandResult[CommandResult["
|
|
3366
|
-
CommandResult[CommandResult["
|
|
3367
|
-
CommandResult[CommandResult["
|
|
3368
|
-
CommandResult[CommandResult["
|
|
3369
|
-
CommandResult[CommandResult["
|
|
3370
|
-
CommandResult[CommandResult["
|
|
3371
|
-
CommandResult[CommandResult["
|
|
3372
|
-
CommandResult[CommandResult["
|
|
3357
|
+
CommandResult[CommandResult["InvalidInputId"] = 30] = "InvalidInputId";
|
|
3358
|
+
CommandResult[CommandResult["InvalidChartDefinition"] = 31] = "InvalidChartDefinition";
|
|
3359
|
+
CommandResult[CommandResult["InvalidDataSet"] = 32] = "InvalidDataSet";
|
|
3360
|
+
CommandResult[CommandResult["InvalidLabelRange"] = 33] = "InvalidLabelRange";
|
|
3361
|
+
CommandResult[CommandResult["InvalidScorecardKeyValue"] = 34] = "InvalidScorecardKeyValue";
|
|
3362
|
+
CommandResult[CommandResult["InvalidScorecardBaseline"] = 35] = "InvalidScorecardBaseline";
|
|
3363
|
+
CommandResult[CommandResult["InvalidGaugeDataRange"] = 36] = "InvalidGaugeDataRange";
|
|
3364
|
+
CommandResult[CommandResult["EmptyGaugeRangeMin"] = 37] = "EmptyGaugeRangeMin";
|
|
3365
|
+
CommandResult[CommandResult["GaugeRangeMinNaN"] = 38] = "GaugeRangeMinNaN";
|
|
3366
|
+
CommandResult[CommandResult["EmptyGaugeRangeMax"] = 39] = "EmptyGaugeRangeMax";
|
|
3367
|
+
CommandResult[CommandResult["GaugeRangeMaxNaN"] = 40] = "GaugeRangeMaxNaN";
|
|
3368
|
+
CommandResult[CommandResult["GaugeRangeMinBiggerThanRangeMax"] = 41] = "GaugeRangeMinBiggerThanRangeMax";
|
|
3369
|
+
CommandResult[CommandResult["GaugeLowerInflectionPointNaN"] = 42] = "GaugeLowerInflectionPointNaN";
|
|
3370
|
+
CommandResult[CommandResult["GaugeUpperInflectionPointNaN"] = 43] = "GaugeUpperInflectionPointNaN";
|
|
3371
|
+
CommandResult[CommandResult["GaugeLowerBiggerThanUpper"] = 44] = "GaugeLowerBiggerThanUpper";
|
|
3372
|
+
CommandResult[CommandResult["InvalidAutofillSelection"] = 45] = "InvalidAutofillSelection";
|
|
3373
|
+
CommandResult[CommandResult["WrongComposerSelection"] = 46] = "WrongComposerSelection";
|
|
3374
|
+
CommandResult[CommandResult["MinBiggerThanMax"] = 47] = "MinBiggerThanMax";
|
|
3375
|
+
CommandResult[CommandResult["LowerBiggerThanUpper"] = 48] = "LowerBiggerThanUpper";
|
|
3376
|
+
CommandResult[CommandResult["MidBiggerThanMax"] = 49] = "MidBiggerThanMax";
|
|
3377
|
+
CommandResult[CommandResult["MinBiggerThanMid"] = 50] = "MinBiggerThanMid";
|
|
3378
|
+
CommandResult[CommandResult["FirstArgMissing"] = 51] = "FirstArgMissing";
|
|
3379
|
+
CommandResult[CommandResult["SecondArgMissing"] = 52] = "SecondArgMissing";
|
|
3380
|
+
CommandResult[CommandResult["MinNaN"] = 53] = "MinNaN";
|
|
3381
|
+
CommandResult[CommandResult["MidNaN"] = 54] = "MidNaN";
|
|
3382
|
+
CommandResult[CommandResult["MaxNaN"] = 55] = "MaxNaN";
|
|
3383
|
+
CommandResult[CommandResult["ValueUpperInflectionNaN"] = 56] = "ValueUpperInflectionNaN";
|
|
3384
|
+
CommandResult[CommandResult["ValueLowerInflectionNaN"] = 57] = "ValueLowerInflectionNaN";
|
|
3385
|
+
CommandResult[CommandResult["MinInvalidFormula"] = 58] = "MinInvalidFormula";
|
|
3386
|
+
CommandResult[CommandResult["MidInvalidFormula"] = 59] = "MidInvalidFormula";
|
|
3387
|
+
CommandResult[CommandResult["MaxInvalidFormula"] = 60] = "MaxInvalidFormula";
|
|
3388
|
+
CommandResult[CommandResult["ValueUpperInvalidFormula"] = 61] = "ValueUpperInvalidFormula";
|
|
3389
|
+
CommandResult[CommandResult["ValueLowerInvalidFormula"] = 62] = "ValueLowerInvalidFormula";
|
|
3390
|
+
CommandResult[CommandResult["InvalidSortZone"] = 63] = "InvalidSortZone";
|
|
3391
|
+
CommandResult[CommandResult["WaitingSessionConfirmation"] = 64] = "WaitingSessionConfirmation";
|
|
3392
|
+
CommandResult[CommandResult["MergeOverlap"] = 65] = "MergeOverlap";
|
|
3393
|
+
CommandResult[CommandResult["TooManyHiddenElements"] = 66] = "TooManyHiddenElements";
|
|
3394
|
+
CommandResult[CommandResult["Readonly"] = 67] = "Readonly";
|
|
3395
|
+
CommandResult[CommandResult["InvalidViewportSize"] = 68] = "InvalidViewportSize";
|
|
3396
|
+
CommandResult[CommandResult["InvalidScrollingDirection"] = 69] = "InvalidScrollingDirection";
|
|
3397
|
+
CommandResult[CommandResult["FigureDoesNotExist"] = 70] = "FigureDoesNotExist";
|
|
3398
|
+
CommandResult[CommandResult["InvalidConditionalFormatId"] = 71] = "InvalidConditionalFormatId";
|
|
3399
|
+
CommandResult[CommandResult["InvalidCellPopover"] = 72] = "InvalidCellPopover";
|
|
3400
|
+
CommandResult[CommandResult["EmptyTarget"] = 73] = "EmptyTarget";
|
|
3401
|
+
CommandResult[CommandResult["InvalidFreezeQuantity"] = 74] = "InvalidFreezeQuantity";
|
|
3402
|
+
CommandResult[CommandResult["FrozenPaneOverlap"] = 75] = "FrozenPaneOverlap";
|
|
3403
|
+
CommandResult[CommandResult["ValuesNotChanged"] = 76] = "ValuesNotChanged";
|
|
3404
|
+
CommandResult[CommandResult["InvalidFilterZone"] = 77] = "InvalidFilterZone";
|
|
3405
|
+
CommandResult[CommandResult["FilterOverlap"] = 78] = "FilterOverlap";
|
|
3406
|
+
CommandResult[CommandResult["FilterNotFound"] = 79] = "FilterNotFound";
|
|
3407
|
+
CommandResult[CommandResult["MergeInFilter"] = 80] = "MergeInFilter";
|
|
3408
|
+
CommandResult[CommandResult["NonContinuousTargets"] = 81] = "NonContinuousTargets";
|
|
3409
|
+
CommandResult[CommandResult["DuplicatedFigureId"] = 82] = "DuplicatedFigureId";
|
|
3410
|
+
CommandResult[CommandResult["InvalidSelectionStep"] = 83] = "InvalidSelectionStep";
|
|
3411
|
+
CommandResult[CommandResult["DuplicatedChartId"] = 84] = "DuplicatedChartId";
|
|
3412
|
+
CommandResult[CommandResult["ChartDoesNotExist"] = 85] = "ChartDoesNotExist";
|
|
3413
|
+
CommandResult[CommandResult["InvalidHeaderIndex"] = 86] = "InvalidHeaderIndex";
|
|
3414
|
+
CommandResult[CommandResult["InvalidQuantity"] = 87] = "InvalidQuantity";
|
|
3415
|
+
CommandResult[CommandResult["NoChanges"] = 88] = "NoChanges";
|
|
3373
3416
|
})(exports.CommandResult || (exports.CommandResult = {}));
|
|
3374
3417
|
|
|
3375
3418
|
function isMatrix(x) {
|
|
@@ -4870,7 +4913,7 @@
|
|
|
4870
4913
|
});
|
|
4871
4914
|
}
|
|
4872
4915
|
}
|
|
4873
|
-
if (result.isCancelledBecause(
|
|
4916
|
+
if (result.isCancelledBecause(63 /* CommandResult.InvalidSortZone */)) {
|
|
4874
4917
|
const { col, row } = anchor;
|
|
4875
4918
|
env.model.selection.selectZone({ cell: { col, row }, zone });
|
|
4876
4919
|
env.raiseError(_lt("Cannot sort. To sort, select only cells or only merges that have the same size."));
|
|
@@ -4893,13 +4936,13 @@
|
|
|
4893
4936
|
};
|
|
4894
4937
|
function interactiveAddFilter(env, sheetId, target) {
|
|
4895
4938
|
const result = env.model.dispatch("CREATE_FILTER_TABLE", { target, sheetId });
|
|
4896
|
-
if (result.isCancelledBecause(
|
|
4939
|
+
if (result.isCancelledBecause(78 /* CommandResult.FilterOverlap */)) {
|
|
4897
4940
|
env.raiseError(AddFilterInteractiveContent.filterOverlap);
|
|
4898
4941
|
}
|
|
4899
|
-
else if (result.isCancelledBecause(
|
|
4942
|
+
else if (result.isCancelledBecause(80 /* CommandResult.MergeInFilter */)) {
|
|
4900
4943
|
env.raiseError(AddFilterInteractiveContent.mergeInFilter);
|
|
4901
4944
|
}
|
|
4902
|
-
else if (result.isCancelledBecause(
|
|
4945
|
+
else if (result.isCancelledBecause(81 /* CommandResult.NonContinuousTargets */)) {
|
|
4903
4946
|
env.raiseError(AddFilterInteractiveContent.nonContinuousTargets);
|
|
4904
4947
|
}
|
|
4905
4948
|
}
|
|
@@ -4921,7 +4964,7 @@
|
|
|
4921
4964
|
else if (result.reasons.includes(22 /* CommandResult.WrongFigurePasteOption */)) {
|
|
4922
4965
|
env.raiseError(PasteInteractiveContent.wrongFigurePasteOption);
|
|
4923
4966
|
}
|
|
4924
|
-
else if (result.reasons.includes(
|
|
4967
|
+
else if (result.reasons.includes(75 /* CommandResult.FrozenPaneOverlap */)) {
|
|
4925
4968
|
env.raiseError(PasteInteractiveContent.frozenPaneOverlap);
|
|
4926
4969
|
}
|
|
4927
4970
|
}
|
|
@@ -5963,22 +6006,22 @@
|
|
|
5963
6006
|
const CfTerms = {
|
|
5964
6007
|
Errors: {
|
|
5965
6008
|
[25 /* CommandResult.InvalidRange */]: _lt("The range is invalid"),
|
|
5966
|
-
[
|
|
5967
|
-
[
|
|
5968
|
-
[
|
|
5969
|
-
[
|
|
5970
|
-
[
|
|
5971
|
-
[
|
|
5972
|
-
[
|
|
5973
|
-
[
|
|
5974
|
-
[
|
|
5975
|
-
[
|
|
5976
|
-
[
|
|
5977
|
-
[
|
|
5978
|
-
[
|
|
5979
|
-
[
|
|
5980
|
-
[
|
|
5981
|
-
[
|
|
6009
|
+
[51 /* CommandResult.FirstArgMissing */]: _lt("The argument is missing. Please provide a value"),
|
|
6010
|
+
[52 /* CommandResult.SecondArgMissing */]: _lt("The second argument is missing. Please provide a value"),
|
|
6011
|
+
[53 /* CommandResult.MinNaN */]: _lt("The minpoint must be a number"),
|
|
6012
|
+
[54 /* CommandResult.MidNaN */]: _lt("The midpoint must be a number"),
|
|
6013
|
+
[55 /* CommandResult.MaxNaN */]: _lt("The maxpoint must be a number"),
|
|
6014
|
+
[56 /* CommandResult.ValueUpperInflectionNaN */]: _lt("The first value must be a number"),
|
|
6015
|
+
[57 /* CommandResult.ValueLowerInflectionNaN */]: _lt("The second value must be a number"),
|
|
6016
|
+
[47 /* CommandResult.MinBiggerThanMax */]: _lt("Minimum must be smaller then Maximum"),
|
|
6017
|
+
[50 /* CommandResult.MinBiggerThanMid */]: _lt("Minimum must be smaller then Midpoint"),
|
|
6018
|
+
[49 /* CommandResult.MidBiggerThanMax */]: _lt("Midpoint must be smaller then Maximum"),
|
|
6019
|
+
[48 /* CommandResult.LowerBiggerThanUpper */]: _lt("Lower inflection point must be smaller than upper inflection point"),
|
|
6020
|
+
[58 /* CommandResult.MinInvalidFormula */]: _lt("Invalid Minpoint formula"),
|
|
6021
|
+
[60 /* CommandResult.MaxInvalidFormula */]: _lt("Invalid Maxpoint formula"),
|
|
6022
|
+
[59 /* CommandResult.MidInvalidFormula */]: _lt("Invalid Midpoint formula"),
|
|
6023
|
+
[61 /* CommandResult.ValueUpperInvalidFormula */]: _lt("Invalid upper inflection point formula"),
|
|
6024
|
+
[62 /* CommandResult.ValueLowerInvalidFormula */]: _lt("Invalid lower inflection point formula"),
|
|
5982
6025
|
[24 /* CommandResult.EmptyRange */]: _lt("A range needs to be defined"),
|
|
5983
6026
|
Unexpected: _lt("The rule is invalid for an unknown reason"),
|
|
5984
6027
|
},
|
|
@@ -6006,20 +6049,20 @@
|
|
|
6006
6049
|
Errors: {
|
|
6007
6050
|
Unexpected: _lt("The chart definition is invalid for an unknown reason"),
|
|
6008
6051
|
// BASIC CHART ERRORS (LINE | BAR | PIE)
|
|
6009
|
-
[
|
|
6010
|
-
[
|
|
6052
|
+
[32 /* CommandResult.InvalidDataSet */]: _lt("The dataset is invalid"),
|
|
6053
|
+
[33 /* CommandResult.InvalidLabelRange */]: _lt("Labels are invalid"),
|
|
6011
6054
|
// SCORECARD CHART ERRORS
|
|
6012
|
-
[
|
|
6013
|
-
[
|
|
6055
|
+
[34 /* CommandResult.InvalidScorecardKeyValue */]: _lt("The key value is invalid"),
|
|
6056
|
+
[35 /* CommandResult.InvalidScorecardBaseline */]: _lt("The baseline value is invalid"),
|
|
6014
6057
|
// GAUGE CHART ERRORS
|
|
6015
|
-
[
|
|
6016
|
-
[
|
|
6017
|
-
[
|
|
6018
|
-
[
|
|
6019
|
-
[
|
|
6020
|
-
[
|
|
6021
|
-
[
|
|
6022
|
-
[
|
|
6058
|
+
[36 /* CommandResult.InvalidGaugeDataRange */]: _lt("The data range is invalid"),
|
|
6059
|
+
[37 /* CommandResult.EmptyGaugeRangeMin */]: _lt("A minimum range limit value is needed"),
|
|
6060
|
+
[38 /* CommandResult.GaugeRangeMinNaN */]: _lt("The minimum range limit value must be a number"),
|
|
6061
|
+
[39 /* CommandResult.EmptyGaugeRangeMax */]: _lt("A maximum range limit value is needed"),
|
|
6062
|
+
[40 /* CommandResult.GaugeRangeMaxNaN */]: _lt("The maximum range limit value must be a number"),
|
|
6063
|
+
[41 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */]: _lt("Minimum range limit must be smaller than maximum range limit"),
|
|
6064
|
+
[42 /* CommandResult.GaugeLowerInflectionPointNaN */]: _lt("The lower inflection point value must be a number"),
|
|
6065
|
+
[43 /* CommandResult.GaugeUpperInflectionPointNaN */]: _lt("The upper inflection point value must be a number"),
|
|
6023
6066
|
},
|
|
6024
6067
|
};
|
|
6025
6068
|
const NumberFormatTerms = {
|
|
@@ -6043,7 +6086,7 @@
|
|
|
6043
6086
|
const sheetId = env.model.getters.getActiveSheetId();
|
|
6044
6087
|
const cmd = dimension === "COL" ? "FREEZE_COLUMNS" : "FREEZE_ROWS";
|
|
6045
6088
|
const result = env.model.dispatch(cmd, { sheetId, quantity: base });
|
|
6046
|
-
if (result.isCancelledBecause(
|
|
6089
|
+
if (result.isCancelledBecause(65 /* CommandResult.MergeOverlap */)) {
|
|
6047
6090
|
env.raiseError(MergeErrorMessage);
|
|
6048
6091
|
}
|
|
6049
6092
|
}
|
|
@@ -6689,11 +6732,11 @@
|
|
|
6689
6732
|
}
|
|
6690
6733
|
get isDatasetInvalid() {
|
|
6691
6734
|
var _a;
|
|
6692
|
-
return !!((_a = this.state.datasetDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(
|
|
6735
|
+
return !!((_a = this.state.datasetDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(32 /* CommandResult.InvalidDataSet */));
|
|
6693
6736
|
}
|
|
6694
6737
|
get isLabelInvalid() {
|
|
6695
6738
|
var _a;
|
|
6696
|
-
return !!((_a = this.state.labelsDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(
|
|
6739
|
+
return !!((_a = this.state.labelsDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(33 /* CommandResult.InvalidLabelRange */));
|
|
6697
6740
|
}
|
|
6698
6741
|
onUpdateDataSetsHaveTitle(ev) {
|
|
6699
6742
|
this.props.updateChart(this.props.figureId, {
|
|
@@ -6914,14 +6957,8 @@
|
|
|
6914
6957
|
: undefined));
|
|
6915
6958
|
}
|
|
6916
6959
|
}
|
|
6917
|
-
else if (zone.left === zone.right && zone.top === zone.bottom) {
|
|
6918
|
-
// A single cell. If it's only the title, the dataset is not added.
|
|
6919
|
-
if (!dataSetsHaveTitle) {
|
|
6920
|
-
dataSets.push(createDataSet(getters, dataSetSheetId, zone, undefined));
|
|
6921
|
-
}
|
|
6922
|
-
}
|
|
6923
6960
|
else {
|
|
6924
|
-
/* 1 row or 1 column */
|
|
6961
|
+
/* 1 cell, 1 row or 1 column */
|
|
6925
6962
|
dataSets.push(createDataSet(getters, dataSetSheetId, zone, dataSetsHaveTitle
|
|
6926
6963
|
? {
|
|
6927
6964
|
top: zone.top,
|
|
@@ -6971,8 +7008,10 @@
|
|
|
6971
7008
|
}
|
|
6972
7009
|
const dataRange = ds.dataRange.clone({ zone: dataZone });
|
|
6973
7010
|
return {
|
|
6974
|
-
label: ds.labelCell
|
|
6975
|
-
|
|
7011
|
+
label: ds.labelCell
|
|
7012
|
+
? getters.getRangeString(ds.labelCell, "forceSheetReference", true)
|
|
7013
|
+
: undefined,
|
|
7014
|
+
range: getters.getRangeString(dataRange, "forceSheetReference", true),
|
|
6976
7015
|
};
|
|
6977
7016
|
}
|
|
6978
7017
|
/**
|
|
@@ -7041,11 +7080,11 @@
|
|
|
7041
7080
|
if (definition.dataSets) {
|
|
7042
7081
|
const invalidRanges = definition.dataSets.find((range) => !rangeReference.test(range)) !== undefined;
|
|
7043
7082
|
if (invalidRanges) {
|
|
7044
|
-
return
|
|
7083
|
+
return 32 /* CommandResult.InvalidDataSet */;
|
|
7045
7084
|
}
|
|
7046
7085
|
const zones = definition.dataSets.map(toUnboundedZone);
|
|
7047
7086
|
if (zones.some((zone) => zone.top !== zone.bottom && isFullRow(zone))) {
|
|
7048
|
-
return
|
|
7087
|
+
return 32 /* CommandResult.InvalidDataSet */;
|
|
7049
7088
|
}
|
|
7050
7089
|
}
|
|
7051
7090
|
return 0 /* CommandResult.Success */;
|
|
@@ -7054,7 +7093,7 @@
|
|
|
7054
7093
|
if (definition.labelRange) {
|
|
7055
7094
|
const invalidLabels = !rangeReference.test(definition.labelRange || "");
|
|
7056
7095
|
if (invalidLabels) {
|
|
7057
|
-
return
|
|
7096
|
+
return 33 /* CommandResult.InvalidLabelRange */;
|
|
7058
7097
|
}
|
|
7059
7098
|
}
|
|
7060
7099
|
return 0 /* CommandResult.Success */;
|
|
@@ -7355,6 +7394,9 @@
|
|
|
7355
7394
|
.filter((ds) => ds.range !== ""); // && range !== INCORRECT_RANGE_STRING ? show incorrect #ref ?
|
|
7356
7395
|
return {
|
|
7357
7396
|
...this.getDefinition(),
|
|
7397
|
+
labelRange: this.labelRange
|
|
7398
|
+
? this.getters.getRangeString(this.labelRange, this.sheetId, true)
|
|
7399
|
+
: undefined,
|
|
7358
7400
|
backgroundColor: toXlsxHexColor(this.background || BACKGROUND_CHART_COLOR),
|
|
7359
7401
|
fontColor: toXlsxHexColor(chartFontColor(this.background)),
|
|
7360
7402
|
dataSets,
|
|
@@ -7512,7 +7554,7 @@
|
|
|
7512
7554
|
});
|
|
7513
7555
|
function isDataRangeValid(definition) {
|
|
7514
7556
|
return definition.dataRange && !rangeReference.test(definition.dataRange)
|
|
7515
|
-
?
|
|
7557
|
+
? 36 /* CommandResult.InvalidGaugeDataRange */
|
|
7516
7558
|
: 0 /* CommandResult.Success */;
|
|
7517
7559
|
}
|
|
7518
7560
|
function checkRangeLimits(check, batchValidations) {
|
|
@@ -7544,7 +7586,7 @@
|
|
|
7544
7586
|
function checkRangeMinBiggerThanRangeMax(definition) {
|
|
7545
7587
|
if (definition.sectionRule) {
|
|
7546
7588
|
if (Number(definition.sectionRule.rangeMin) >= Number(definition.sectionRule.rangeMax)) {
|
|
7547
|
-
return
|
|
7589
|
+
return 41 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */;
|
|
7548
7590
|
}
|
|
7549
7591
|
}
|
|
7550
7592
|
return 0 /* CommandResult.Success */;
|
|
@@ -7553,9 +7595,9 @@
|
|
|
7553
7595
|
if (value === "") {
|
|
7554
7596
|
switch (valueName) {
|
|
7555
7597
|
case "rangeMin":
|
|
7556
|
-
return
|
|
7598
|
+
return 37 /* CommandResult.EmptyGaugeRangeMin */;
|
|
7557
7599
|
case "rangeMax":
|
|
7558
|
-
return
|
|
7600
|
+
return 39 /* CommandResult.EmptyGaugeRangeMax */;
|
|
7559
7601
|
}
|
|
7560
7602
|
}
|
|
7561
7603
|
return 0 /* CommandResult.Success */;
|
|
@@ -7564,13 +7606,13 @@
|
|
|
7564
7606
|
if (isNaN(value)) {
|
|
7565
7607
|
switch (valueName) {
|
|
7566
7608
|
case "rangeMin":
|
|
7567
|
-
return
|
|
7609
|
+
return 38 /* CommandResult.GaugeRangeMinNaN */;
|
|
7568
7610
|
case "rangeMax":
|
|
7569
|
-
return
|
|
7611
|
+
return 40 /* CommandResult.GaugeRangeMaxNaN */;
|
|
7570
7612
|
case "lowerInflectionPointValue":
|
|
7571
|
-
return
|
|
7613
|
+
return 42 /* CommandResult.GaugeLowerInflectionPointNaN */;
|
|
7572
7614
|
case "upperInflectionPointValue":
|
|
7573
|
-
return
|
|
7615
|
+
return 43 /* CommandResult.GaugeUpperInflectionPointNaN */;
|
|
7574
7616
|
}
|
|
7575
7617
|
}
|
|
7576
7618
|
return 0 /* CommandResult.Success */;
|
|
@@ -7983,6 +8025,9 @@
|
|
|
7983
8025
|
.filter((ds) => ds.range !== ""); // && range !== INCORRECT_RANGE_STRING ? show incorrect #ref ?
|
|
7984
8026
|
return {
|
|
7985
8027
|
...this.getDefinition(),
|
|
8028
|
+
labelRange: this.labelRange
|
|
8029
|
+
? this.getters.getRangeString(this.labelRange, this.sheetId, true)
|
|
8030
|
+
: undefined,
|
|
7986
8031
|
backgroundColor: toXlsxHexColor(this.background || BACKGROUND_CHART_COLOR),
|
|
7987
8032
|
fontColor: toXlsxHexColor(chartFontColor(this.background)),
|
|
7988
8033
|
dataSets,
|
|
@@ -8243,6 +8288,9 @@
|
|
|
8243
8288
|
.filter((ds) => ds.range !== ""); // && range !== INCORRECT_RANGE_STRING ? show incorrect #ref ?
|
|
8244
8289
|
return {
|
|
8245
8290
|
...this.getDefinition(),
|
|
8291
|
+
labelRange: this.labelRange
|
|
8292
|
+
? this.getters.getRangeString(this.labelRange, this.sheetId, true)
|
|
8293
|
+
: undefined,
|
|
8246
8294
|
backgroundColor: toXlsxHexColor(this.background || BACKGROUND_CHART_COLOR),
|
|
8247
8295
|
fontColor: toXlsxHexColor(chartFontColor(this.background)),
|
|
8248
8296
|
verticalAxisPosition: "left",
|
|
@@ -8323,12 +8371,12 @@
|
|
|
8323
8371
|
});
|
|
8324
8372
|
function checkKeyValue(definition) {
|
|
8325
8373
|
return definition.keyValue && !rangeReference.test(definition.keyValue)
|
|
8326
|
-
?
|
|
8374
|
+
? 34 /* CommandResult.InvalidScorecardKeyValue */
|
|
8327
8375
|
: 0 /* CommandResult.Success */;
|
|
8328
8376
|
}
|
|
8329
8377
|
function checkBaseline(definition) {
|
|
8330
8378
|
return definition.baseline && !rangeReference.test(definition.baseline)
|
|
8331
|
-
?
|
|
8379
|
+
? 35 /* CommandResult.InvalidScorecardBaseline */
|
|
8332
8380
|
: 0 /* CommandResult.Success */;
|
|
8333
8381
|
}
|
|
8334
8382
|
class ScorecardChart$1 extends AbstractChart {
|
|
@@ -8757,7 +8805,7 @@
|
|
|
8757
8805
|
}
|
|
8758
8806
|
get isDataRangeInvalid() {
|
|
8759
8807
|
var _a;
|
|
8760
|
-
return !!((_a = this.state.dataRangeDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(
|
|
8808
|
+
return !!((_a = this.state.dataRangeDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(36 /* CommandResult.InvalidGaugeDataRange */));
|
|
8761
8809
|
}
|
|
8762
8810
|
onDataRangeChanged(ranges) {
|
|
8763
8811
|
this.dataRange = ranges[0];
|
|
@@ -8844,28 +8892,28 @@
|
|
|
8844
8892
|
}
|
|
8845
8893
|
isRangeMinInvalid() {
|
|
8846
8894
|
var _a, _b, _c;
|
|
8847
|
-
return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(
|
|
8848
|
-
((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(
|
|
8849
|
-
((_c = this.state.sectionRuleDispatchResult) === null || _c === void 0 ? void 0 : _c.isCancelledBecause(
|
|
8895
|
+
return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(37 /* CommandResult.EmptyGaugeRangeMin */)) ||
|
|
8896
|
+
((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(38 /* CommandResult.GaugeRangeMinNaN */)) ||
|
|
8897
|
+
((_c = this.state.sectionRuleDispatchResult) === null || _c === void 0 ? void 0 : _c.isCancelledBecause(41 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */)));
|
|
8850
8898
|
}
|
|
8851
8899
|
isRangeMaxInvalid() {
|
|
8852
8900
|
var _a, _b, _c;
|
|
8853
|
-
return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(
|
|
8854
|
-
((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(
|
|
8855
|
-
((_c = this.state.sectionRuleDispatchResult) === null || _c === void 0 ? void 0 : _c.isCancelledBecause(
|
|
8901
|
+
return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(39 /* CommandResult.EmptyGaugeRangeMax */)) ||
|
|
8902
|
+
((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(40 /* CommandResult.GaugeRangeMaxNaN */)) ||
|
|
8903
|
+
((_c = this.state.sectionRuleDispatchResult) === null || _c === void 0 ? void 0 : _c.isCancelledBecause(41 /* CommandResult.GaugeRangeMinBiggerThanRangeMax */)));
|
|
8856
8904
|
}
|
|
8857
8905
|
// ---------------------------------------------------------------------------
|
|
8858
8906
|
// COLOR_SECTION_TEMPLATE
|
|
8859
8907
|
// ---------------------------------------------------------------------------
|
|
8860
8908
|
get isLowerInflectionPointInvalid() {
|
|
8861
8909
|
var _a, _b;
|
|
8862
|
-
return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(
|
|
8863
|
-
((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(
|
|
8910
|
+
return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(42 /* CommandResult.GaugeLowerInflectionPointNaN */)) ||
|
|
8911
|
+
((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(44 /* CommandResult.GaugeLowerBiggerThanUpper */)));
|
|
8864
8912
|
}
|
|
8865
8913
|
get isUpperInflectionPointInvalid() {
|
|
8866
8914
|
var _a, _b;
|
|
8867
|
-
return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(
|
|
8868
|
-
((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(
|
|
8915
|
+
return !!(((_a = this.state.sectionRuleDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(43 /* CommandResult.GaugeUpperInflectionPointNaN */)) ||
|
|
8916
|
+
((_b = this.state.sectionRuleDispatchResult) === null || _b === void 0 ? void 0 : _b.isCancelledBecause(44 /* CommandResult.GaugeLowerBiggerThanUpper */)));
|
|
8869
8917
|
}
|
|
8870
8918
|
updateInflectionPointValue(attr, ev) {
|
|
8871
8919
|
const sectionRule = deepCopy(this.props.definition.sectionRule);
|
|
@@ -8968,11 +9016,11 @@
|
|
|
8968
9016
|
}
|
|
8969
9017
|
get isKeyValueInvalid() {
|
|
8970
9018
|
var _a;
|
|
8971
|
-
return !!((_a = this.state.keyValueDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(
|
|
9019
|
+
return !!((_a = this.state.keyValueDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(34 /* CommandResult.InvalidScorecardKeyValue */));
|
|
8972
9020
|
}
|
|
8973
9021
|
get isBaselineInvalid() {
|
|
8974
9022
|
var _a;
|
|
8975
|
-
return !!((_a = this.state.keyValueDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(
|
|
9023
|
+
return !!((_a = this.state.keyValueDispatchResult) === null || _a === void 0 ? void 0 : _a.isCancelledBecause(35 /* CommandResult.InvalidScorecardBaseline */));
|
|
8976
9024
|
}
|
|
8977
9025
|
onKeyValueRangeChanged(ranges) {
|
|
8978
9026
|
this.keyValue = ranges[0];
|
|
@@ -9812,11 +9860,11 @@
|
|
|
9812
9860
|
****************************************************************************/
|
|
9813
9861
|
get isValue1Invalid() {
|
|
9814
9862
|
var _a;
|
|
9815
|
-
return !!((_a = this.state.errors) === null || _a === void 0 ? void 0 : _a.includes(
|
|
9863
|
+
return !!((_a = this.state.errors) === null || _a === void 0 ? void 0 : _a.includes(51 /* CommandResult.FirstArgMissing */));
|
|
9816
9864
|
}
|
|
9817
9865
|
get isValue2Invalid() {
|
|
9818
9866
|
var _a;
|
|
9819
|
-
return !!((_a = this.state.errors) === null || _a === void 0 ? void 0 : _a.includes(
|
|
9867
|
+
return !!((_a = this.state.errors) === null || _a === void 0 ? void 0 : _a.includes(52 /* CommandResult.SecondArgMissing */));
|
|
9820
9868
|
}
|
|
9821
9869
|
toggleStyle(tool) {
|
|
9822
9870
|
const style = this.state.rules.cellIs.style;
|
|
@@ -9833,17 +9881,17 @@
|
|
|
9833
9881
|
isValueInvalid(threshold) {
|
|
9834
9882
|
switch (threshold) {
|
|
9835
9883
|
case "minimum":
|
|
9836
|
-
return (this.state.errors.includes(
|
|
9837
|
-
this.state.errors.includes(
|
|
9838
|
-
this.state.errors.includes(
|
|
9839
|
-
this.state.errors.includes(
|
|
9884
|
+
return (this.state.errors.includes(58 /* CommandResult.MinInvalidFormula */) ||
|
|
9885
|
+
this.state.errors.includes(50 /* CommandResult.MinBiggerThanMid */) ||
|
|
9886
|
+
this.state.errors.includes(47 /* CommandResult.MinBiggerThanMax */) ||
|
|
9887
|
+
this.state.errors.includes(53 /* CommandResult.MinNaN */));
|
|
9840
9888
|
case "midpoint":
|
|
9841
|
-
return (this.state.errors.includes(
|
|
9842
|
-
this.state.errors.includes(
|
|
9843
|
-
this.state.errors.includes(
|
|
9889
|
+
return (this.state.errors.includes(59 /* CommandResult.MidInvalidFormula */) ||
|
|
9890
|
+
this.state.errors.includes(54 /* CommandResult.MidNaN */) ||
|
|
9891
|
+
this.state.errors.includes(49 /* CommandResult.MidBiggerThanMax */));
|
|
9844
9892
|
case "maximum":
|
|
9845
|
-
return (this.state.errors.includes(
|
|
9846
|
-
this.state.errors.includes(
|
|
9893
|
+
return (this.state.errors.includes(60 /* CommandResult.MaxInvalidFormula */) ||
|
|
9894
|
+
this.state.errors.includes(55 /* CommandResult.MaxNaN */));
|
|
9847
9895
|
default:
|
|
9848
9896
|
return false;
|
|
9849
9897
|
}
|
|
@@ -9892,13 +9940,13 @@
|
|
|
9892
9940
|
isInflectionPointInvalid(inflectionPoint) {
|
|
9893
9941
|
switch (inflectionPoint) {
|
|
9894
9942
|
case "lowerInflectionPoint":
|
|
9895
|
-
return (this.state.errors.includes(
|
|
9896
|
-
this.state.errors.includes(
|
|
9897
|
-
this.state.errors.includes(
|
|
9943
|
+
return (this.state.errors.includes(57 /* CommandResult.ValueLowerInflectionNaN */) ||
|
|
9944
|
+
this.state.errors.includes(62 /* CommandResult.ValueLowerInvalidFormula */) ||
|
|
9945
|
+
this.state.errors.includes(48 /* CommandResult.LowerBiggerThanUpper */));
|
|
9898
9946
|
case "upperInflectionPoint":
|
|
9899
|
-
return (this.state.errors.includes(
|
|
9900
|
-
this.state.errors.includes(
|
|
9901
|
-
this.state.errors.includes(
|
|
9947
|
+
return (this.state.errors.includes(56 /* CommandResult.ValueUpperInflectionNaN */) ||
|
|
9948
|
+
this.state.errors.includes(61 /* CommandResult.ValueUpperInvalidFormula */) ||
|
|
9949
|
+
this.state.errors.includes(48 /* CommandResult.LowerBiggerThanUpper */));
|
|
9902
9950
|
default:
|
|
9903
9951
|
return true;
|
|
9904
9952
|
}
|
|
@@ -19543,7 +19591,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
19543
19591
|
validateSelection(length, start, end) {
|
|
19544
19592
|
return start >= 0 && start <= length && end >= 0 && end <= length
|
|
19545
19593
|
? 0 /* CommandResult.Success */
|
|
19546
|
-
:
|
|
19594
|
+
: 46 /* CommandResult.WrongComposerSelection */;
|
|
19547
19595
|
}
|
|
19548
19596
|
onColumnsRemoved(cmd) {
|
|
19549
19597
|
if (cmd.elements.includes(this.col) && this.mode !== "inactive") {
|
|
@@ -19827,9 +19875,10 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
19827
19875
|
*/
|
|
19828
19876
|
getReferencedRanges() {
|
|
19829
19877
|
const editionSheetId = this.getters.getEditionSheet();
|
|
19830
|
-
|
|
19878
|
+
const referenceRanges = this.currentTokens
|
|
19831
19879
|
.filter((token) => token.type === "REFERENCE")
|
|
19832
19880
|
.map((token) => this.getters.getRangeFromSheetXC(editionSheetId, token.value));
|
|
19881
|
+
return referenceRanges.filter((range) => !range.invalidSheetName && !range.invalidXc);
|
|
19833
19882
|
}
|
|
19834
19883
|
/**
|
|
19835
19884
|
* Function used to determine when composer selection can start.
|
|
@@ -27600,7 +27649,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
27600
27649
|
const currentBorder = this.getCellBorder(cmd.sheetId, cmd.col, cmd.row);
|
|
27601
27650
|
const areAllNewBordersUndefined = !((_a = cmd.border) === null || _a === void 0 ? void 0 : _a.bottom) && !((_b = cmd.border) === null || _b === void 0 ? void 0 : _b.left) && !((_c = cmd.border) === null || _c === void 0 ? void 0 : _c.right) && !((_d = cmd.border) === null || _d === void 0 ? void 0 : _d.top);
|
|
27602
27651
|
if ((!currentBorder && areAllNewBordersUndefined) || deepEquals(currentBorder, cmd.border)) {
|
|
27603
|
-
return
|
|
27652
|
+
return 88 /* CommandResult.NoChanges */;
|
|
27604
27653
|
}
|
|
27605
27654
|
return 0 /* CommandResult.Success */;
|
|
27606
27655
|
}
|
|
@@ -27842,6 +27891,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
27842
27891
|
format: cell.format ? getItemId(cell.format, formats) : undefined,
|
|
27843
27892
|
content: cell.content || undefined,
|
|
27844
27893
|
};
|
|
27894
|
+
if (cell.isFormula()) {
|
|
27895
|
+
cells[xc].content = this.buildFormulaContent(_sheet.id, cell, cell.dependencies, true);
|
|
27896
|
+
}
|
|
27845
27897
|
}
|
|
27846
27898
|
_sheet.cells = cells;
|
|
27847
27899
|
}
|
|
@@ -27889,13 +27941,13 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
27889
27941
|
/*
|
|
27890
27942
|
* Reconstructs the original formula string based on a normalized form and its dependencies
|
|
27891
27943
|
*/
|
|
27892
|
-
buildFormulaContent(sheetId, cell, dependencies) {
|
|
27944
|
+
buildFormulaContent(sheetId, cell, dependencies, useFixedZone = false) {
|
|
27893
27945
|
const ranges = dependencies || cell.dependencies;
|
|
27894
27946
|
let rangeIndex = 0;
|
|
27895
27947
|
return concat(cell.compiledFormula.tokens.map((token) => {
|
|
27896
27948
|
if (token.type === "REFERENCE") {
|
|
27897
27949
|
const range = ranges[rangeIndex++];
|
|
27898
|
-
return this.getters.getRangeString(range, sheetId);
|
|
27950
|
+
return this.getters.getRangeString(range, sheetId, useFixedZone);
|
|
27899
27951
|
}
|
|
27900
27952
|
return token.value;
|
|
27901
27953
|
}));
|
|
@@ -28060,9 +28112,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28060
28112
|
checkUselessClearCell(cmd) {
|
|
28061
28113
|
const cell = this.getters.getCell(cmd.sheetId, cmd.col, cmd.row);
|
|
28062
28114
|
if (!cell)
|
|
28063
|
-
return
|
|
28115
|
+
return 88 /* CommandResult.NoChanges */;
|
|
28064
28116
|
if (!cell.content && !cell.style && !cell.format) {
|
|
28065
|
-
return
|
|
28117
|
+
return 88 /* CommandResult.NoChanges */;
|
|
28066
28118
|
}
|
|
28067
28119
|
return 0 /* CommandResult.Success */;
|
|
28068
28120
|
}
|
|
@@ -28271,13 +28323,13 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28271
28323
|
}
|
|
28272
28324
|
checkChartDuplicate(cmd) {
|
|
28273
28325
|
return this.getters.getFigureSheetId(cmd.id)
|
|
28274
|
-
?
|
|
28326
|
+
? 84 /* CommandResult.DuplicatedChartId */
|
|
28275
28327
|
: 0 /* CommandResult.Success */;
|
|
28276
28328
|
}
|
|
28277
28329
|
checkChartExists(cmd) {
|
|
28278
28330
|
return this.getters.getFigureSheetId(cmd.id)
|
|
28279
28331
|
? 0 /* CommandResult.Success */
|
|
28280
|
-
:
|
|
28332
|
+
: 85 /* CommandResult.ChartDoesNotExist */;
|
|
28281
28333
|
}
|
|
28282
28334
|
}
|
|
28283
28335
|
ChartPlugin.getters = [
|
|
@@ -28392,7 +28444,13 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28392
28444
|
}
|
|
28393
28445
|
}
|
|
28394
28446
|
exportForExcel(data) {
|
|
28395
|
-
|
|
28447
|
+
if (data.sheets) {
|
|
28448
|
+
for (let sheet of data.sheets) {
|
|
28449
|
+
if (this.cfRules[sheet.id]) {
|
|
28450
|
+
sheet.conditionalFormats = this.cfRules[sheet.id].map((rule) => this.mapToConditionalFormat(sheet.id, rule, { useFixedReference: true }));
|
|
28451
|
+
}
|
|
28452
|
+
}
|
|
28453
|
+
}
|
|
28396
28454
|
}
|
|
28397
28455
|
// ---------------------------------------------------------------------------
|
|
28398
28456
|
// Getters
|
|
@@ -28442,11 +28500,11 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28442
28500
|
// ---------------------------------------------------------------------------
|
|
28443
28501
|
// Private
|
|
28444
28502
|
// ---------------------------------------------------------------------------
|
|
28445
|
-
mapToConditionalFormat(sheetId, cf) {
|
|
28503
|
+
mapToConditionalFormat(sheetId, cf, options = { useFixedReference: false }) {
|
|
28446
28504
|
return {
|
|
28447
28505
|
...cf,
|
|
28448
28506
|
ranges: cf.ranges.map((range) => {
|
|
28449
|
-
return this.getters.getRangeString(range, sheetId);
|
|
28507
|
+
return this.getters.getRangeString(range, sheetId, options.useFixedReference);
|
|
28450
28508
|
}),
|
|
28451
28509
|
};
|
|
28452
28510
|
}
|
|
@@ -28479,10 +28537,10 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28479
28537
|
return 27 /* CommandResult.InvalidSheetId */;
|
|
28480
28538
|
const ruleIndex = this.cfRules[sheetId].findIndex((cf) => cf.id === cfId);
|
|
28481
28539
|
if (ruleIndex === -1)
|
|
28482
|
-
return
|
|
28540
|
+
return 71 /* CommandResult.InvalidConditionalFormatId */;
|
|
28483
28541
|
const cfIndex2 = direction === "up" ? ruleIndex - 1 : ruleIndex + 1;
|
|
28484
28542
|
if (cfIndex2 < 0 || cfIndex2 >= this.cfRules[sheetId].length) {
|
|
28485
|
-
return
|
|
28543
|
+
return 71 /* CommandResult.InvalidConditionalFormatId */;
|
|
28486
28544
|
}
|
|
28487
28545
|
return 0 /* CommandResult.Success */;
|
|
28488
28546
|
}
|
|
@@ -28523,10 +28581,10 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28523
28581
|
const errors = [];
|
|
28524
28582
|
const isEmpty = (value) => value === undefined || value === "";
|
|
28525
28583
|
if (expectedNumber >= 1 && isEmpty(rule.values[0])) {
|
|
28526
|
-
errors.push(
|
|
28584
|
+
errors.push(51 /* CommandResult.FirstArgMissing */);
|
|
28527
28585
|
}
|
|
28528
28586
|
if (expectedNumber >= 2 && isEmpty(rule.values[1])) {
|
|
28529
|
-
errors.push(
|
|
28587
|
+
errors.push(52 /* CommandResult.SecondArgMissing */);
|
|
28530
28588
|
}
|
|
28531
28589
|
return errors.length ? errors : 0 /* CommandResult.Success */;
|
|
28532
28590
|
}
|
|
@@ -28538,15 +28596,15 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28538
28596
|
(threshold.value === "" || isNaN(threshold.value))) {
|
|
28539
28597
|
switch (thresholdName) {
|
|
28540
28598
|
case "min":
|
|
28541
|
-
return
|
|
28599
|
+
return 53 /* CommandResult.MinNaN */;
|
|
28542
28600
|
case "max":
|
|
28543
|
-
return
|
|
28601
|
+
return 55 /* CommandResult.MaxNaN */;
|
|
28544
28602
|
case "mid":
|
|
28545
|
-
return
|
|
28603
|
+
return 54 /* CommandResult.MidNaN */;
|
|
28546
28604
|
case "upperInflectionPoint":
|
|
28547
|
-
return
|
|
28605
|
+
return 56 /* CommandResult.ValueUpperInflectionNaN */;
|
|
28548
28606
|
case "lowerInflectionPoint":
|
|
28549
|
-
return
|
|
28607
|
+
return 57 /* CommandResult.ValueLowerInflectionNaN */;
|
|
28550
28608
|
}
|
|
28551
28609
|
}
|
|
28552
28610
|
return 0 /* CommandResult.Success */;
|
|
@@ -28560,15 +28618,15 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28560
28618
|
catch (error) {
|
|
28561
28619
|
switch (thresholdName) {
|
|
28562
28620
|
case "min":
|
|
28563
|
-
return
|
|
28621
|
+
return 58 /* CommandResult.MinInvalidFormula */;
|
|
28564
28622
|
case "max":
|
|
28565
|
-
return
|
|
28623
|
+
return 60 /* CommandResult.MaxInvalidFormula */;
|
|
28566
28624
|
case "mid":
|
|
28567
|
-
return
|
|
28625
|
+
return 59 /* CommandResult.MidInvalidFormula */;
|
|
28568
28626
|
case "upperInflectionPoint":
|
|
28569
|
-
return
|
|
28627
|
+
return 61 /* CommandResult.ValueUpperInvalidFormula */;
|
|
28570
28628
|
case "lowerInflectionPoint":
|
|
28571
|
-
return
|
|
28629
|
+
return 62 /* CommandResult.ValueLowerInvalidFormula */;
|
|
28572
28630
|
}
|
|
28573
28631
|
}
|
|
28574
28632
|
return 0 /* CommandResult.Success */;
|
|
@@ -28585,7 +28643,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28585
28643
|
if (["number", "percentage", "percentile"].includes(rule.lowerInflectionPoint.type) &&
|
|
28586
28644
|
rule.lowerInflectionPoint.type === rule.upperInflectionPoint.type &&
|
|
28587
28645
|
Number(minValue) > Number(maxValue)) {
|
|
28588
|
-
return
|
|
28646
|
+
return 48 /* CommandResult.LowerBiggerThanUpper */;
|
|
28589
28647
|
}
|
|
28590
28648
|
return 0 /* CommandResult.Success */;
|
|
28591
28649
|
}
|
|
@@ -28595,7 +28653,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28595
28653
|
if (["number", "percentage", "percentile"].includes(rule.minimum.type) &&
|
|
28596
28654
|
rule.minimum.type === rule.maximum.type &&
|
|
28597
28655
|
stringToNumber(minValue) >= stringToNumber(maxValue)) {
|
|
28598
|
-
return
|
|
28656
|
+
return 47 /* CommandResult.MinBiggerThanMax */;
|
|
28599
28657
|
}
|
|
28600
28658
|
return 0 /* CommandResult.Success */;
|
|
28601
28659
|
}
|
|
@@ -28607,7 +28665,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28607
28665
|
["number", "percentage", "percentile"].includes(rule.midpoint.type) &&
|
|
28608
28666
|
rule.midpoint.type === rule.maximum.type &&
|
|
28609
28667
|
stringToNumber(midValue) >= stringToNumber(maxValue)) {
|
|
28610
|
-
return
|
|
28668
|
+
return 49 /* CommandResult.MidBiggerThanMax */;
|
|
28611
28669
|
}
|
|
28612
28670
|
return 0 /* CommandResult.Success */;
|
|
28613
28671
|
}
|
|
@@ -28619,7 +28677,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28619
28677
|
["number", "percentage", "percentile"].includes(rule.midpoint.type) &&
|
|
28620
28678
|
rule.minimum.type === rule.midpoint.type &&
|
|
28621
28679
|
stringToNumber(minValue) >= stringToNumber(midValue)) {
|
|
28622
|
-
return
|
|
28680
|
+
return 50 /* CommandResult.MinBiggerThanMid */;
|
|
28623
28681
|
}
|
|
28624
28682
|
return 0 /* CommandResult.Success */;
|
|
28625
28683
|
}
|
|
@@ -28720,13 +28778,13 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28720
28778
|
checkFigureExists(sheetId, figureId) {
|
|
28721
28779
|
var _a;
|
|
28722
28780
|
if (((_a = this.figures[sheetId]) === null || _a === void 0 ? void 0 : _a[figureId]) === undefined) {
|
|
28723
|
-
return
|
|
28781
|
+
return 70 /* CommandResult.FigureDoesNotExist */;
|
|
28724
28782
|
}
|
|
28725
28783
|
return 0 /* CommandResult.Success */;
|
|
28726
28784
|
}
|
|
28727
28785
|
checkFigureDuplicate(figureId) {
|
|
28728
28786
|
if (Object.values(this.figures).find((sheet) => sheet === null || sheet === void 0 ? void 0 : sheet[figureId])) {
|
|
28729
|
-
return
|
|
28787
|
+
return 82 /* CommandResult.DuplicatedFigureId */;
|
|
28730
28788
|
}
|
|
28731
28789
|
return 0 /* CommandResult.Success */;
|
|
28732
28790
|
}
|
|
@@ -28828,12 +28886,12 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28828
28886
|
switch (cmd.type) {
|
|
28829
28887
|
case "CREATE_FILTER_TABLE":
|
|
28830
28888
|
if (!areZonesContinuous(...cmd.target)) {
|
|
28831
|
-
return
|
|
28889
|
+
return 81 /* CommandResult.NonContinuousTargets */;
|
|
28832
28890
|
}
|
|
28833
28891
|
const zone = union(...cmd.target);
|
|
28834
28892
|
const checkFilterOverlap = () => {
|
|
28835
28893
|
if (this.getFilterTables(cmd.sheetId).some((filter) => overlap(filter.zone, zone))) {
|
|
28836
|
-
return
|
|
28894
|
+
return 78 /* CommandResult.FilterOverlap */;
|
|
28837
28895
|
}
|
|
28838
28896
|
return 0 /* CommandResult.Success */;
|
|
28839
28897
|
};
|
|
@@ -28841,7 +28899,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28841
28899
|
const mergesInTarget = this.getters.getMergesInZone(cmd.sheetId, zone);
|
|
28842
28900
|
for (let merge of mergesInTarget) {
|
|
28843
28901
|
if (overlap(zone, merge)) {
|
|
28844
|
-
return
|
|
28902
|
+
return 80 /* CommandResult.MergeInFilter */;
|
|
28845
28903
|
}
|
|
28846
28904
|
}
|
|
28847
28905
|
return 0 /* CommandResult.Success */;
|
|
@@ -28851,7 +28909,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28851
28909
|
for (let merge of cmd.target) {
|
|
28852
28910
|
for (let filterTable of this.getFilterTables(cmd.sheetId)) {
|
|
28853
28911
|
if (overlap(filterTable.zone, merge)) {
|
|
28854
|
-
return
|
|
28912
|
+
return 80 /* CommandResult.MergeInFilter */;
|
|
28855
28913
|
}
|
|
28856
28914
|
}
|
|
28857
28915
|
}
|
|
@@ -29351,10 +29409,10 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
29351
29409
|
: this.getters.getNumberRows(cmd.sheetId);
|
|
29352
29410
|
const hiddenElements = new Set((hiddenGroup || []).flat().concat(cmd.elements));
|
|
29353
29411
|
if (hiddenElements.size >= elements) {
|
|
29354
|
-
return
|
|
29412
|
+
return 66 /* CommandResult.TooManyHiddenElements */;
|
|
29355
29413
|
}
|
|
29356
29414
|
else if (Math.min(...cmd.elements) < 0 || Math.max(...cmd.elements) > elements) {
|
|
29357
|
-
return
|
|
29415
|
+
return 86 /* CommandResult.InvalidHeaderIndex */;
|
|
29358
29416
|
}
|
|
29359
29417
|
else {
|
|
29360
29418
|
return 0 /* CommandResult.Success */;
|
|
@@ -29757,7 +29815,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
29757
29815
|
for (const zone of target) {
|
|
29758
29816
|
for (const zone2 of target) {
|
|
29759
29817
|
if (zone !== zone2 && overlap(zone, zone2)) {
|
|
29760
|
-
return
|
|
29818
|
+
return 65 /* CommandResult.MergeOverlap */;
|
|
29761
29819
|
}
|
|
29762
29820
|
}
|
|
29763
29821
|
}
|
|
@@ -29771,7 +29829,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
29771
29829
|
for (const zone of target) {
|
|
29772
29830
|
if ((zone.left < xSplit && zone.right >= xSplit) ||
|
|
29773
29831
|
(zone.top < ySplit && zone.bottom >= ySplit)) {
|
|
29774
|
-
return
|
|
29832
|
+
return 75 /* CommandResult.FrozenPaneOverlap */;
|
|
29775
29833
|
}
|
|
29776
29834
|
}
|
|
29777
29835
|
return 0 /* CommandResult.Success */;
|
|
@@ -30018,10 +30076,10 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
30018
30076
|
? this.getNumberCols(cmd.sheetId)
|
|
30019
30077
|
: this.getNumberRows(cmd.sheetId);
|
|
30020
30078
|
if (cmd.base < 0 || cmd.base >= elements) {
|
|
30021
|
-
return
|
|
30079
|
+
return 86 /* CommandResult.InvalidHeaderIndex */;
|
|
30022
30080
|
}
|
|
30023
30081
|
else if (cmd.quantity <= 0) {
|
|
30024
|
-
return
|
|
30082
|
+
return 87 /* CommandResult.InvalidQuantity */;
|
|
30025
30083
|
}
|
|
30026
30084
|
return 0 /* CommandResult.Success */;
|
|
30027
30085
|
case "REMOVE_COLUMNS_ROWS": {
|
|
@@ -30029,7 +30087,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
30029
30087
|
? this.getNumberCols(cmd.sheetId)
|
|
30030
30088
|
: this.getNumberRows(cmd.sheetId);
|
|
30031
30089
|
if (Math.min(...cmd.elements) < 0 || Math.max(...cmd.elements) > elements) {
|
|
30032
|
-
return
|
|
30090
|
+
return 86 /* CommandResult.InvalidHeaderIndex */;
|
|
30033
30091
|
}
|
|
30034
30092
|
else if (this.checkElementsIncludeAllNonFrozenHeaders(cmd.sheetId, cmd.dimension, cmd.elements)) {
|
|
30035
30093
|
return 8 /* CommandResult.NotEnoughElements */;
|
|
@@ -30486,18 +30544,18 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
30486
30544
|
checkRowFreezeQuantity(cmd) {
|
|
30487
30545
|
return cmd.quantity >= 1 && cmd.quantity < this.getNumberRows(cmd.sheetId)
|
|
30488
30546
|
? 0 /* CommandResult.Success */
|
|
30489
|
-
:
|
|
30547
|
+
: 74 /* CommandResult.InvalidFreezeQuantity */;
|
|
30490
30548
|
}
|
|
30491
30549
|
checkColFreezeQuantity(cmd) {
|
|
30492
30550
|
return cmd.quantity >= 1 && cmd.quantity < this.getNumberCols(cmd.sheetId)
|
|
30493
30551
|
? 0 /* CommandResult.Success */
|
|
30494
|
-
:
|
|
30552
|
+
: 74 /* CommandResult.InvalidFreezeQuantity */;
|
|
30495
30553
|
}
|
|
30496
30554
|
checkRowFreezeOverlapMerge(cmd) {
|
|
30497
30555
|
const merges = this.getters.getMerges(cmd.sheetId);
|
|
30498
30556
|
for (let merge of merges) {
|
|
30499
30557
|
if (merge.top < cmd.quantity && cmd.quantity <= merge.bottom) {
|
|
30500
|
-
return
|
|
30558
|
+
return 65 /* CommandResult.MergeOverlap */;
|
|
30501
30559
|
}
|
|
30502
30560
|
}
|
|
30503
30561
|
return 0 /* CommandResult.Success */;
|
|
@@ -30506,7 +30564,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
30506
30564
|
const merges = this.getters.getMerges(cmd.sheetId);
|
|
30507
30565
|
for (let merge of merges) {
|
|
30508
30566
|
if (merge.left < cmd.quantity && cmd.quantity <= merge.right) {
|
|
30509
|
-
return
|
|
30567
|
+
return 65 /* CommandResult.MergeOverlap */;
|
|
30510
30568
|
}
|
|
30511
30569
|
}
|
|
30512
30570
|
return 0 /* CommandResult.Success */;
|
|
@@ -30947,7 +31005,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
30947
31005
|
if (this.lastCellSelected.col !== undefined && this.lastCellSelected.row !== undefined) {
|
|
30948
31006
|
return 0 /* CommandResult.Success */;
|
|
30949
31007
|
}
|
|
30950
|
-
return
|
|
31008
|
+
return 45 /* CommandResult.InvalidAutofillSelection */;
|
|
30951
31009
|
case "AUTOFILL_AUTO":
|
|
30952
31010
|
const zone = this.getters.getSelectedZone();
|
|
30953
31011
|
return zone.top === zone.bottom
|
|
@@ -31547,7 +31605,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
31547
31605
|
cellPopoverRegistry.get(cmd.popoverType);
|
|
31548
31606
|
}
|
|
31549
31607
|
catch (error) {
|
|
31550
|
-
return
|
|
31608
|
+
return 72 /* CommandResult.InvalidCellPopover */;
|
|
31551
31609
|
}
|
|
31552
31610
|
return 0 /* CommandResult.Success */;
|
|
31553
31611
|
default:
|
|
@@ -31771,7 +31829,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
31771
31829
|
for (const zone of this.getPasteZones(target)) {
|
|
31772
31830
|
if ((zone.left < xSplit && zone.right >= xSplit) ||
|
|
31773
31831
|
(zone.top < ySplit && zone.bottom >= ySplit)) {
|
|
31774
|
-
return
|
|
31832
|
+
return 75 /* CommandResult.FrozenPaneOverlap */;
|
|
31775
31833
|
}
|
|
31776
31834
|
}
|
|
31777
31835
|
return 0 /* CommandResult.Success */;
|
|
@@ -32131,7 +32189,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
32131
32189
|
}
|
|
32132
32190
|
isPasteAllowed(target, option) {
|
|
32133
32191
|
if (target.length === 0) {
|
|
32134
|
-
return
|
|
32192
|
+
return 73 /* CommandResult.EmptyTarget */;
|
|
32135
32193
|
}
|
|
32136
32194
|
if ((option === null || option === void 0 ? void 0 : option.pasteOption) !== undefined) {
|
|
32137
32195
|
return 22 /* CommandResult.WrongFigurePasteOption */;
|
|
@@ -32775,10 +32833,8 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
32775
32833
|
* that are actually present in the grid.
|
|
32776
32834
|
*/
|
|
32777
32835
|
function range(range) {
|
|
32836
|
+
assertRangeValid(range);
|
|
32778
32837
|
const sheetId = range.sheetId;
|
|
32779
|
-
if (!isZoneValid(range.zone)) {
|
|
32780
|
-
throw new InvalidReferenceError();
|
|
32781
|
-
}
|
|
32782
32838
|
// Performance issue: Avoid fetching data on positions that are out of the spreadsheet
|
|
32783
32839
|
// e.g. A1:ZZZ9999 in a sheet with 10 cols and 10 rows should ignore everything past J10 and return a 10x10 array
|
|
32784
32840
|
const sheetZone = getters.getSheetZone(sheetId);
|
|
@@ -32813,23 +32869,26 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
32813
32869
|
* The `compute` of the formula's function must process it completely
|
|
32814
32870
|
*/
|
|
32815
32871
|
function refFn(range, isMeta, functionName, paramNumber) {
|
|
32872
|
+
assertRangeValid(range);
|
|
32816
32873
|
if (isMeta) {
|
|
32817
32874
|
// Use zoneToXc of zone instead of getRangeString to avoid sending unbounded ranges
|
|
32818
32875
|
return { value: zoneToXc(range.zone) };
|
|
32819
32876
|
}
|
|
32820
|
-
if (!isZoneValid(range.zone)) {
|
|
32821
|
-
throw new InvalidReferenceError();
|
|
32822
|
-
}
|
|
32823
32877
|
// if the formula definition could have accepted a range, we would pass through the _range function and not here
|
|
32824
32878
|
if (range.zone.bottom !== range.zone.top || range.zone.left !== range.zone.right) {
|
|
32825
32879
|
throw new Error(paramNumber
|
|
32826
32880
|
? _lt("Function %s expects the parameter %s to be a single value or a single cell reference, not a range.", functionName.toString(), paramNumber.toString())
|
|
32827
32881
|
: _lt("Function %s expects its parameters to be single values or single cell references, not ranges.", functionName.toString()));
|
|
32828
32882
|
}
|
|
32883
|
+
return readCell(range);
|
|
32884
|
+
}
|
|
32885
|
+
function assertRangeValid(range) {
|
|
32886
|
+
if (!isZoneValid(range.zone)) {
|
|
32887
|
+
throw new InvalidReferenceError();
|
|
32888
|
+
}
|
|
32829
32889
|
if (range.invalidSheetName) {
|
|
32830
32890
|
throw new Error(_lt("Invalid sheet name: %s", range.invalidSheetName));
|
|
32831
32891
|
}
|
|
32832
|
-
return readCell(range);
|
|
32833
32892
|
}
|
|
32834
32893
|
return [refFn, range, evalContext];
|
|
32835
32894
|
}
|
|
@@ -33293,7 +33352,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
33293
33352
|
switch (cmd.type) {
|
|
33294
33353
|
case "UPDATE_FILTER":
|
|
33295
33354
|
if (!this.getters.getFilterId(cmd.sheetId, cmd.col, cmd.row)) {
|
|
33296
|
-
return
|
|
33355
|
+
return 79 /* CommandResult.FilterNotFound */;
|
|
33297
33356
|
}
|
|
33298
33357
|
break;
|
|
33299
33358
|
}
|
|
@@ -35113,7 +35172,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
35113
35172
|
const headers = [cmd.base, ...cmd.elements];
|
|
35114
35173
|
const maxHeaderValue = isCol ? this.getters.getNumberCols(id) : this.getters.getNumberRows(id);
|
|
35115
35174
|
if (headers.some((h) => h < 0 || h >= maxHeaderValue)) {
|
|
35116
|
-
return
|
|
35175
|
+
return 86 /* CommandResult.InvalidHeaderIndex */;
|
|
35117
35176
|
}
|
|
35118
35177
|
return 0 /* CommandResult.Success */;
|
|
35119
35178
|
}
|
|
@@ -35244,21 +35303,6 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
35244
35303
|
// ---------------------------------------------------------------------------
|
|
35245
35304
|
// Command Handling
|
|
35246
35305
|
// ---------------------------------------------------------------------------
|
|
35247
|
-
allowDispatch(cmd) {
|
|
35248
|
-
switch (cmd.type) {
|
|
35249
|
-
case "ADD_EMPTY_RANGE":
|
|
35250
|
-
if (this.inputHasSingleRange && this.ranges.length === 1) {
|
|
35251
|
-
return 29 /* CommandResult.MaximumRangesReached */;
|
|
35252
|
-
}
|
|
35253
|
-
break;
|
|
35254
|
-
case "CHANGE_RANGE":
|
|
35255
|
-
if (this.inputHasSingleRange && cmd.value.split(",").length > 1) {
|
|
35256
|
-
return 29 /* CommandResult.MaximumRangesReached */;
|
|
35257
|
-
}
|
|
35258
|
-
break;
|
|
35259
|
-
}
|
|
35260
|
-
return 0 /* CommandResult.Success */;
|
|
35261
|
-
}
|
|
35262
35306
|
handleEvent(event) {
|
|
35263
35307
|
const xc = zoneToXc(event.anchor.zone);
|
|
35264
35308
|
const inputSheetId = this.activeSheet;
|
|
@@ -35468,6 +35512,15 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
35468
35512
|
// ---------------------------------------------------------------------------
|
|
35469
35513
|
allowDispatch(cmd) {
|
|
35470
35514
|
var _a, _b;
|
|
35515
|
+
switch (cmd.type) {
|
|
35516
|
+
case "FOCUS_RANGE":
|
|
35517
|
+
case "CHANGE_RANGE":
|
|
35518
|
+
case "ADD_EMPTY_RANGE":
|
|
35519
|
+
case "REMOVE_RANGE":
|
|
35520
|
+
if (!this.inputs[cmd.id]) {
|
|
35521
|
+
return 30 /* CommandResult.InvalidInputId */;
|
|
35522
|
+
}
|
|
35523
|
+
}
|
|
35471
35524
|
switch (cmd.type) {
|
|
35472
35525
|
case "FOCUS_RANGE":
|
|
35473
35526
|
const index = (_a = this.currentInput) === null || _a === void 0 ? void 0 : _a.getIndex(cmd.rangeId);
|
|
@@ -35475,9 +35528,19 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
35475
35528
|
return 28 /* CommandResult.InputAlreadyFocused */;
|
|
35476
35529
|
}
|
|
35477
35530
|
break;
|
|
35478
|
-
|
|
35479
|
-
|
|
35480
|
-
|
|
35531
|
+
case "ADD_EMPTY_RANGE":
|
|
35532
|
+
const input = this.inputs[cmd.id];
|
|
35533
|
+
if (input.inputHasSingleRange && input.ranges.length === 1) {
|
|
35534
|
+
return 29 /* CommandResult.MaximumRangesReached */;
|
|
35535
|
+
}
|
|
35536
|
+
break;
|
|
35537
|
+
case "CHANGE_RANGE": {
|
|
35538
|
+
const input = this.inputs[cmd.id];
|
|
35539
|
+
if (input.inputHasSingleRange && cmd.value.split(",").length > 1) {
|
|
35540
|
+
return 29 /* CommandResult.MaximumRangesReached */;
|
|
35541
|
+
}
|
|
35542
|
+
break;
|
|
35543
|
+
}
|
|
35481
35544
|
}
|
|
35482
35545
|
return 0 /* CommandResult.Success */;
|
|
35483
35546
|
}
|
|
@@ -37132,7 +37195,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
37132
37195
|
}
|
|
37133
37196
|
checkPositiveDimension(cmd) {
|
|
37134
37197
|
if (cmd.width < 0 || cmd.height < 0) {
|
|
37135
|
-
return
|
|
37198
|
+
return 68 /* CommandResult.InvalidViewportSize */;
|
|
37136
37199
|
}
|
|
37137
37200
|
return 0 /* CommandResult.Success */;
|
|
37138
37201
|
}
|
|
@@ -37142,7 +37205,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
37142
37205
|
cmd.gridOffsetY === this.gridOffsetY &&
|
|
37143
37206
|
cmd.width === width &&
|
|
37144
37207
|
cmd.height === height) {
|
|
37145
|
-
return
|
|
37208
|
+
return 76 /* CommandResult.ValuesNotChanged */;
|
|
37146
37209
|
}
|
|
37147
37210
|
return 0 /* CommandResult.Success */;
|
|
37148
37211
|
}
|
|
@@ -37150,7 +37213,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
37150
37213
|
const pane = this.getMainInternalViewport(this.getters.getActiveSheetId());
|
|
37151
37214
|
if ((!pane.canScrollHorizontally && offsetX > 0) ||
|
|
37152
37215
|
(!pane.canScrollVertically && offsetY > 0)) {
|
|
37153
|
-
return
|
|
37216
|
+
return 69 /* CommandResult.InvalidScrollingDirection */;
|
|
37154
37217
|
}
|
|
37155
37218
|
return 0 /* CommandResult.Success */;
|
|
37156
37219
|
}
|
|
@@ -37352,7 +37415,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
37352
37415
|
for (let row = zone.top; row <= zone.bottom; row++) {
|
|
37353
37416
|
for (let col = zone.left; col <= zone.right; col++) {
|
|
37354
37417
|
if (!this.getters.isInMerge(sheetId, col, row)) {
|
|
37355
|
-
return
|
|
37418
|
+
return 63 /* CommandResult.InvalidSortZone */;
|
|
37356
37419
|
}
|
|
37357
37420
|
}
|
|
37358
37421
|
}
|
|
@@ -37373,7 +37436,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
37373
37436
|
];
|
|
37374
37437
|
return widthCurrent === widthFirst && heightCurrent === heightFirst;
|
|
37375
37438
|
})) {
|
|
37376
|
-
return
|
|
37439
|
+
return 63 /* CommandResult.InvalidSortZone */;
|
|
37377
37440
|
}
|
|
37378
37441
|
return 0 /* CommandResult.Success */;
|
|
37379
37442
|
}
|
|
@@ -38517,7 +38580,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
38517
38580
|
};
|
|
38518
38581
|
function interactiveAddMerge(env, sheetId, target) {
|
|
38519
38582
|
const result = env.model.dispatch("ADD_MERGE", { sheetId, target });
|
|
38520
|
-
if (result.isCancelledBecause(
|
|
38583
|
+
if (result.isCancelledBecause(80 /* CommandResult.MergeInFilter */)) {
|
|
38521
38584
|
env.raiseError(AddMergeInteractiveContent.MergeInFilter);
|
|
38522
38585
|
}
|
|
38523
38586
|
else if (result.isCancelledBecause(3 /* CommandResult.MergeIsDestructive */)) {
|
|
@@ -40416,8 +40479,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
40416
40479
|
*
|
|
40417
40480
|
* @param range the range (received from getRangeFromXC or getRangeFromZone)
|
|
40418
40481
|
* @param forSheetId the id of the sheet where the range string is supposed to be used.
|
|
40482
|
+
* @param [useFixedZone=false] if true, the range will be returned with fixed row and column
|
|
40419
40483
|
*/
|
|
40420
|
-
getRangeString(range, forSheetId) {
|
|
40484
|
+
getRangeString(range, forSheetId, useFixedZone = false) {
|
|
40421
40485
|
if (!range) {
|
|
40422
40486
|
return INCORRECT_RANGE_STRING;
|
|
40423
40487
|
}
|
|
@@ -40444,7 +40508,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
40444
40508
|
if (prefixSheet && !sheetName) {
|
|
40445
40509
|
return INCORRECT_RANGE_STRING;
|
|
40446
40510
|
}
|
|
40447
|
-
let rangeString = this.getRangePartString(rangeImpl, 0);
|
|
40511
|
+
let rangeString = this.getRangePartString(rangeImpl, 0, useFixedZone);
|
|
40448
40512
|
if (rangeImpl.parts && rangeImpl.parts.length === 2) {
|
|
40449
40513
|
// this if converts A2:A2 into A2 except if any part of the original range had fixed row or column (with $)
|
|
40450
40514
|
if (rangeImpl.zone.top !== rangeImpl.zone.bottom ||
|
|
@@ -40454,7 +40518,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
40454
40518
|
rangeImpl.parts[1].rowFixed ||
|
|
40455
40519
|
rangeImpl.parts[1].colFixed) {
|
|
40456
40520
|
rangeString += ":";
|
|
40457
|
-
rangeString += this.getRangePartString(rangeImpl, 1);
|
|
40521
|
+
rangeString += this.getRangePartString(rangeImpl, 1, useFixedZone);
|
|
40458
40522
|
}
|
|
40459
40523
|
}
|
|
40460
40524
|
return `${prefixSheet ? sheetName + "!" : ""}${rangeString}`;
|
|
@@ -40484,13 +40548,14 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
40484
40548
|
/**
|
|
40485
40549
|
* Get a Xc string that represent a part of a range
|
|
40486
40550
|
*/
|
|
40487
|
-
getRangePartString(range, part) {
|
|
40488
|
-
|
|
40551
|
+
getRangePartString(range, part, useFixedZone = false) {
|
|
40552
|
+
var _a, _b;
|
|
40553
|
+
const colFixed = range.parts && ((_a = range.parts[part]) === null || _a === void 0 ? void 0 : _a.colFixed) ? "$" : "";
|
|
40489
40554
|
const col = part === 0 ? numberToLetters(range.zone.left) : numberToLetters(range.zone.right);
|
|
40490
|
-
const rowFixed = range.parts && range.parts[part].rowFixed ? "$" : "";
|
|
40555
|
+
const rowFixed = range.parts && ((_b = range.parts[part]) === null || _b === void 0 ? void 0 : _b.rowFixed) ? "$" : "";
|
|
40491
40556
|
const row = part === 0 ? String(range.zone.top + 1) : String(range.zone.bottom + 1);
|
|
40492
40557
|
let str = "";
|
|
40493
|
-
if (range.isFullCol) {
|
|
40558
|
+
if (range.isFullCol && !useFixedZone) {
|
|
40494
40559
|
if (part === 0 && range.unboundedZone.hasHeader) {
|
|
40495
40560
|
str = colFixed + col + rowFixed + row;
|
|
40496
40561
|
}
|
|
@@ -40498,7 +40563,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
40498
40563
|
str = colFixed + col;
|
|
40499
40564
|
}
|
|
40500
40565
|
}
|
|
40501
|
-
else if (range.isFullRow) {
|
|
40566
|
+
else if (range.isFullRow && !useFixedZone) {
|
|
40502
40567
|
if (part === 0 && range.unboundedZone.hasHeader) {
|
|
40503
40568
|
str = colFixed + col + rowFixed + row;
|
|
40504
40569
|
}
|
|
@@ -40699,7 +40764,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
40699
40764
|
*/
|
|
40700
40765
|
moveAnchorCell(direction, step = 1) {
|
|
40701
40766
|
if (step !== "end" && step <= 0) {
|
|
40702
|
-
return new DispatchResult(
|
|
40767
|
+
return new DispatchResult(83 /* CommandResult.InvalidSelectionStep */);
|
|
40703
40768
|
}
|
|
40704
40769
|
const { col, row } = this.getNextAvailablePosition(direction, step);
|
|
40705
40770
|
return this.selectCell(col, row);
|
|
@@ -40745,7 +40810,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
40745
40810
|
*/
|
|
40746
40811
|
resizeAnchorZone(direction, step = 1) {
|
|
40747
40812
|
if (step !== "end" && step <= 0) {
|
|
40748
|
-
return new DispatchResult(
|
|
40813
|
+
return new DispatchResult(83 /* CommandResult.InvalidSelectionStep */);
|
|
40749
40814
|
}
|
|
40750
40815
|
const sheetId = this.getters.getActiveSheetId();
|
|
40751
40816
|
const anchor = this.anchor;
|
|
@@ -41556,12 +41621,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
41556
41621
|
attrs.push(["t", "str"]);
|
|
41557
41622
|
cycle = escapeXml /*xml*/ `<v>${cell.value}</v>`;
|
|
41558
41623
|
}
|
|
41559
|
-
node = escapeXml /*xml*/
|
|
41560
|
-
<f>
|
|
41561
|
-
${XlsxFormula}
|
|
41562
|
-
</f>
|
|
41563
|
-
${cycle}
|
|
41564
|
-
`;
|
|
41624
|
+
node = escapeXml /*xml*/ `<f> ${XlsxFormula} </f> ${cycle}`;
|
|
41565
41625
|
return { attrs, node };
|
|
41566
41626
|
}
|
|
41567
41627
|
else {
|
|
@@ -42302,11 +42362,10 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
42302
42362
|
({ attrs: additionalAttrs, node: cellNode } = addContent(cell.content, construct.sharedStrings, isTableHeader));
|
|
42303
42363
|
}
|
|
42304
42364
|
attributes.push(...additionalAttrs);
|
|
42305
|
-
|
|
42306
|
-
|
|
42307
|
-
|
|
42308
|
-
|
|
42309
|
-
`);
|
|
42365
|
+
// prettier-ignore
|
|
42366
|
+
cellNodes.push(escapeXml /*xml*/ `<c ${formatAttributes(attributes)}>
|
|
42367
|
+
${cellNode}
|
|
42368
|
+
</c>`);
|
|
42310
42369
|
}
|
|
42311
42370
|
}
|
|
42312
42371
|
if (cellNodes.length || row.size !== DEFAULT_CELL_HEIGHT || row.isHidden) {
|
|
@@ -42685,10 +42744,10 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
42685
42744
|
const command = { type, ...payload };
|
|
42686
42745
|
let status = this.status;
|
|
42687
42746
|
if (this.getters.isReadonly() && !canExecuteInReadonly(command)) {
|
|
42688
|
-
return new DispatchResult(
|
|
42747
|
+
return new DispatchResult(67 /* CommandResult.Readonly */);
|
|
42689
42748
|
}
|
|
42690
42749
|
if (!this.session.canApplyOptimisticUpdate()) {
|
|
42691
|
-
return new DispatchResult(
|
|
42750
|
+
return new DispatchResult(64 /* CommandResult.WaitingSessionConfirmation */);
|
|
42692
42751
|
}
|
|
42693
42752
|
switch (status) {
|
|
42694
42753
|
case 0 /* Status.Ready */:
|
|
@@ -43130,9 +43189,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
43130
43189
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
43131
43190
|
|
|
43132
43191
|
|
|
43133
|
-
__info__.version = '16.0.
|
|
43134
|
-
__info__.date = '2024-01-
|
|
43135
|
-
__info__.hash = '
|
|
43192
|
+
__info__.version = '16.0.30';
|
|
43193
|
+
__info__.date = '2024-01-29T13:49:32.243Z';
|
|
43194
|
+
__info__.hash = '49966d6';
|
|
43136
43195
|
|
|
43137
43196
|
|
|
43138
43197
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|