@evotecit/officeimo 0.1.3 → 0.1.5
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/README.md +20 -4
- package/bundles/officeimo-canopyx.js +726 -274
- package/bundles/officeimo-canopyx.mjs +684 -236
- package/bundles/officeimo-datatables.js +309 -233
- package/bundles/officeimo-datatables.mjs +280 -205
- package/bundles/officeimo-xlsx.js +177 -101
- package/bundles/officeimo-xlsx.mjs +149 -74
- package/bundles/officeimo.js +308 -232
- package/bundles/officeimo.mjs +279 -204
- package/dist/integrations/canopyx/grouping.js +15 -5
- package/dist/integrations/canopyx/index.d.ts +1 -1
- package/dist/integrations/canopyx/index.js +23 -6
- package/dist/integrations/canopyx/pdf-layout.d.ts +5 -0
- package/dist/integrations/canopyx/pdf-layout.js +97 -0
- package/dist/integrations/canopyx/pdf-number.d.ts +3 -0
- package/dist/integrations/canopyx/pdf-number.js +117 -0
- package/dist/integrations/canopyx/pivot.d.ts +15 -0
- package/dist/integrations/canopyx/pivot.js +71 -0
- package/dist/integrations/canopyx/source.js +50 -14
- package/dist/integrations/canopyx/types.d.ts +46 -2
- package/dist/opc/index.js +9 -0
- package/dist/xlsx/index.d.ts +1 -1
- package/dist/xlsx/options.js +1 -1
- package/dist/xlsx/outlines.d.ts +3 -0
- package/dist/xlsx/outlines.js +39 -0
- package/dist/xlsx/types.d.ts +9 -0
- package/dist/xlsx/values.js +11 -2
- package/dist/xlsx/workbook.js +2 -0
- package/dist/xlsx/worksheet.js +14 -6
- package/package.json +2 -2
|
@@ -1000,7 +1000,7 @@ _modules.set("699a019e0c3f317a62bf3a6e59b76b6cf1645908b0f1b1f157c18f4d4f368dfb",
|
|
|
1000
1000
|
return _exports;
|
|
1001
1001
|
})();
|
|
1002
1002
|
|
|
1003
|
-
const _m8 = _modules.get("
|
|
1003
|
+
const _m8 = _modules.get("945379594834125fea38bc00f02ef077409dd15f6ed67279e63e89afe0bb944b") ?? (() => {
|
|
1004
1004
|
|
|
1005
1005
|
|
|
1006
1006
|
|
|
@@ -1078,7 +1078,16 @@ class OpcPackage {
|
|
|
1078
1078
|
throw new OfficeIMOError("INVALID_STATE", "OPC package is finalized."); }
|
|
1079
1079
|
reserve(uri, type) {
|
|
1080
1080
|
this.open();
|
|
1081
|
+
// OPC part names become ZIP entry names. Reject oversized and deeply nested
|
|
1082
|
+
// names before collecting every ancestor prefix.
|
|
1083
|
+
if (typeof uri === "string" && uri.length > 65536)
|
|
1084
|
+
throw new OfficeIMOError("RESOURCE_LIMIT", "OPC part name exceeds the ZIP entry-name limit.");
|
|
1081
1085
|
uri = partUri(uri);
|
|
1086
|
+
let depth = 0;
|
|
1087
|
+
for (let index = 0; index < uri.length; index++) {
|
|
1088
|
+
if (uri[index] === "/" && ++depth > 64)
|
|
1089
|
+
throw new OfficeIMOError("RESOURCE_LIMIT", "OPC part name exceeds the directory-depth limit.");
|
|
1090
|
+
}
|
|
1082
1091
|
if (/\/_rels(?:\/|$)/i.test(uri) || uri.toLowerCase() === "/[content_types].xml")
|
|
1083
1092
|
throw new TypeError("Package metadata part names are reserved.");
|
|
1084
1093
|
const key = uri.toLowerCase();
|
|
@@ -1250,7 +1259,7 @@ class OpcPackage {
|
|
|
1250
1259
|
}
|
|
1251
1260
|
}
|
|
1252
1261
|
const _exports = Object.freeze({ partUri: _m9.partUri, relationshipPartUri: _m9.relationshipPartUri, relativePartTarget: _m9.relativePartTarget, corePropertiesXml: _m10.corePropertiesXml, appPropertiesXml: _m10.appPropertiesXml, relationshipsNamespace: relationshipsNamespace, officeRelationshipsNamespace: officeRelationshipsNamespace, contentTypesNamespace: contentTypesNamespace, relationshipTypes: relationshipTypes, ContentTypes: ContentTypes, OpcPackage: OpcPackage });
|
|
1253
|
-
_modules.set("
|
|
1262
|
+
_modules.set("945379594834125fea38bc00f02ef077409dd15f6ed67279e63e89afe0bb944b", _exports);
|
|
1254
1263
|
return _exports;
|
|
1255
1264
|
})();
|
|
1256
1265
|
|
|
@@ -1812,7 +1821,7 @@ _modules.set("e95bb0e3f342d1379b67a3d541fa808e06361da8460169a6aec152ee7deb69b2",
|
|
|
1812
1821
|
return _exports;
|
|
1813
1822
|
})();
|
|
1814
1823
|
|
|
1815
|
-
const _m19 = _modules.get("
|
|
1824
|
+
const _m19 = _modules.get("e88a83ca79cd099fc2de29689554c913c7d04b17018098f81c43044064fcdfb8") ?? (() => {
|
|
1816
1825
|
const { cleanXml, escapeXml } = _m11;
|
|
1817
1826
|
|
|
1818
1827
|
const { assertExportValue, assertScalar } = _m20;
|
|
@@ -1871,14 +1880,23 @@ function columnName(index) {
|
|
|
1871
1880
|
return name;
|
|
1872
1881
|
}
|
|
1873
1882
|
function clipName(text, length) { return text.slice(0, length).replace(/[\ud800-\udbff]$/, ""); }
|
|
1883
|
+
function trimSheetNameEdges(text) {
|
|
1884
|
+
let start = 0, end = text.length;
|
|
1885
|
+
const removable = (character) => character === "'" || /\s/u.test(character);
|
|
1886
|
+
while (start < end && removable(text[start]))
|
|
1887
|
+
start++;
|
|
1888
|
+
while (end > start && removable(text[end - 1]))
|
|
1889
|
+
end--;
|
|
1890
|
+
return text.slice(start, end);
|
|
1891
|
+
}
|
|
1874
1892
|
function sheetName(requested, names, policy, register = true) {
|
|
1875
1893
|
if (typeof requested !== "string")
|
|
1876
1894
|
throw new TypeError("Sheet name must be a string.");
|
|
1877
1895
|
// Validate and deduplicate the decoded literal value, before ST_Xstring attribute encoding.
|
|
1878
1896
|
// A requested _xHHHH_ token is literal text; the serializer protects its leading underscore.
|
|
1879
|
-
let base = cleanXml(requested, policy).replace(/[\[\]:*?/\\]/g, "_")
|
|
1897
|
+
let base = trimSheetNameEdges(cleanXml(requested, policy).replace(/[\[\]:*?/\\]/g, "_"));
|
|
1880
1898
|
// Clipping can expose an internal apostrophe or the reserved History name.
|
|
1881
|
-
base = clipName(base, 31)
|
|
1899
|
+
base = trimSheetNameEdges(clipName(base, 31));
|
|
1882
1900
|
if (!base)
|
|
1883
1901
|
base = "Sheet";
|
|
1884
1902
|
if (base.toLowerCase() === "history")
|
|
@@ -1905,7 +1923,7 @@ function excelDate(date, mode) {
|
|
|
1905
1923
|
return (time - Date.UTC(1899, 11, 31)) / 86400000 + (time >= Date.UTC(1900, 2, 1) ? 1 : 0);
|
|
1906
1924
|
}
|
|
1907
1925
|
const _exports = Object.freeze({ Cell: Cell, assertXlsxValue: assertXlsxValue, copyValue: copyValue, cellText: cellText, inlineText: inlineText, columnName: columnName, sheetName: sheetName, excelDate: excelDate });
|
|
1908
|
-
_modules.set("
|
|
1926
|
+
_modules.set("e88a83ca79cd099fc2de29689554c913c7d04b17018098f81c43044064fcdfb8", _exports);
|
|
1909
1927
|
return _exports;
|
|
1910
1928
|
})();
|
|
1911
1929
|
|
|
@@ -1996,7 +2014,53 @@ _modules.set("0391fe35ea7d02b25804ab4d0e7543136d6bb615f368f268c74aa135f23aa6bc",
|
|
|
1996
2014
|
return _exports;
|
|
1997
2015
|
})();
|
|
1998
2016
|
|
|
1999
|
-
const _m25 = _modules.get("
|
|
2017
|
+
const _m25 = _modules.get("e92456dbf0c50db97c8b6cf9a09365489ca3a882b4d506ad4dd841805b1146d1") ?? (() => {
|
|
2018
|
+
const { captureFields } = _m7;
|
|
2019
|
+
|
|
2020
|
+
/** Capture bounded disjoint ranges before asynchronous serialization; absent columns stay visible. */
|
|
2021
|
+
function captureColumnOutlines(input, columns) {
|
|
2022
|
+
if (input === undefined)
|
|
2023
|
+
return undefined;
|
|
2024
|
+
if (!Array.isArray(input) || input.length > columns)
|
|
2025
|
+
throw new TypeError("Column outlines must be bounded, non-overlapping ranges.");
|
|
2026
|
+
let end = 0;
|
|
2027
|
+
return Object.freeze(input.map(range => {
|
|
2028
|
+
if (!range || typeof range !== "object")
|
|
2029
|
+
throw new TypeError("Column outlines require range metadata.");
|
|
2030
|
+
return captureFields(range, ["firstColumn", "columnCount", "level", "hidden", "collapsed"]);
|
|
2031
|
+
}).sort((a, b) => a.firstColumn - b.firstColumn).map(range => {
|
|
2032
|
+
const { firstColumn, columnCount, level = 0, hidden, collapsed } = range;
|
|
2033
|
+
if (!Number.isSafeInteger(firstColumn) || firstColumn < end || !Number.isSafeInteger(columnCount) || columnCount < 1 || firstColumn + columnCount > columns)
|
|
2034
|
+
throw new RangeError("Column outline ranges must be disjoint and within the declared columns.");
|
|
2035
|
+
if (!Number.isInteger(level) || level < 0 || level > 7)
|
|
2036
|
+
throw new RangeError("Column outline level must be from zero through seven.");
|
|
2037
|
+
for (const flag of [hidden, collapsed])
|
|
2038
|
+
if (flag !== undefined && typeof flag !== "boolean")
|
|
2039
|
+
throw new TypeError("Column outline flags must be booleans.");
|
|
2040
|
+
end = firstColumn + columnCount;
|
|
2041
|
+
return Object.freeze({ firstColumn, columnCount, level, ...(hidden === undefined ? {} : { hidden }), ...(collapsed === undefined ? {} : { collapsed }) });
|
|
2042
|
+
}));
|
|
2043
|
+
}
|
|
2044
|
+
/** @internal Positions are captured even when a sheet has only column outlines. */
|
|
2045
|
+
function validateOutlinePositions(options) {
|
|
2046
|
+
for (const flag of [options.outlineSummaryBelow, options.outlineSummaryRight])
|
|
2047
|
+
if (flag !== undefined && typeof flag !== "boolean")
|
|
2048
|
+
throw new TypeError("Outline summary positions must be booleans.");
|
|
2049
|
+
}
|
|
2050
|
+
/** @internal Resolve at most 16,384 columns once, without retaining any worksheet body. */
|
|
2051
|
+
function columnOutlineMap(ranges) {
|
|
2052
|
+
const result = new Map();
|
|
2053
|
+
for (const range of ranges ?? [])
|
|
2054
|
+
for (let index = range.firstColumn; index < range.firstColumn + range.columnCount; index++)
|
|
2055
|
+
result.set(index, range);
|
|
2056
|
+
return result;
|
|
2057
|
+
}
|
|
2058
|
+
const _exports = Object.freeze({ captureColumnOutlines: captureColumnOutlines, validateOutlinePositions: validateOutlinePositions, columnOutlineMap: columnOutlineMap });
|
|
2059
|
+
_modules.set("e92456dbf0c50db97c8b6cf9a09365489ca3a882b4d506ad4dd841805b1146d1", _exports);
|
|
2060
|
+
return _exports;
|
|
2061
|
+
})();
|
|
2062
|
+
|
|
2063
|
+
const _m26 = _modules.get("d56b24243cff6f3552a2f7b45521af4491494375ec76117e9ac1ebb047ce02da") ?? (() => {
|
|
2000
2064
|
const { assertExportValue } = _m20;
|
|
2001
2065
|
|
|
2002
2066
|
const { copyExportValue } = _m23;
|
|
@@ -2062,7 +2126,7 @@ _modules.set("d56b24243cff6f3552a2f7b45521af4491494375ec76117e9ac1ebb047ce02da",
|
|
|
2062
2126
|
return _exports;
|
|
2063
2127
|
})();
|
|
2064
2128
|
|
|
2065
|
-
const
|
|
2129
|
+
const _m29 = _modules.get("aaf6808e1812a251687fd513480fe845b5677ffa493bccf519409807fe4d250c") ?? (() => {
|
|
2066
2130
|
const { ChunkedTextSink } = _m5;
|
|
2067
2131
|
|
|
2068
2132
|
const { escapeXml, xmlDeclaration } = _m11;
|
|
@@ -2171,18 +2235,18 @@ async function writeChartXml(chart, destination, policy, signal) {
|
|
|
2171
2235
|
await text.close();
|
|
2172
2236
|
}
|
|
2173
2237
|
const _exports = Object.freeze({ chartNamespace: chartNamespace, chartContentType: chartContentType, chartAnchorXml: chartAnchorXml, writeChartXml: writeChartXml });
|
|
2174
|
-
_modules.set("
|
|
2238
|
+
_modules.set("aaf6808e1812a251687fd513480fe845b5677ffa493bccf519409807fe4d250c", _exports);
|
|
2175
2239
|
return _exports;
|
|
2176
2240
|
})();
|
|
2177
2241
|
|
|
2178
|
-
const
|
|
2242
|
+
const _m28 = _modules.get("d599dca57105b9cc787ba2498051ed0193cbdb1e5f23116e35bc77cd67a233f1") ?? (() => {
|
|
2179
2243
|
const { cleanXml, escapeXml, escapeOoxmlAttribute, xmlDeclaration } = _m11;
|
|
2180
2244
|
|
|
2181
2245
|
const { copyExportLink } = _m21;
|
|
2182
2246
|
|
|
2183
2247
|
const { officeRelationshipsNamespace } = _m8;
|
|
2184
2248
|
|
|
2185
|
-
const { chartAnchorXml } =
|
|
2249
|
+
const { chartAnchorXml } = _m29;
|
|
2186
2250
|
|
|
2187
2251
|
const { captureFields } = _m7;
|
|
2188
2252
|
|
|
@@ -2249,14 +2313,14 @@ function drawingXml(images, policy, charts = []) {
|
|
|
2249
2313
|
}
|
|
2250
2314
|
const drawingContentType = "application/vnd.openxmlformats-officedocument.drawing+xml";
|
|
2251
2315
|
const _exports = Object.freeze({ copyDrawingAnchor: copyDrawingAnchor, cellPosition: cellPosition, copyHyperlink: copyHyperlink, copyImage: copyImage, hyperlinksXml: hyperlinksXml, drawingXml: drawingXml, drawingContentType: drawingContentType });
|
|
2252
|
-
_modules.set("
|
|
2316
|
+
_modules.set("d599dca57105b9cc787ba2498051ed0193cbdb1e5f23116e35bc77cd67a233f1", _exports);
|
|
2253
2317
|
return _exports;
|
|
2254
2318
|
})();
|
|
2255
2319
|
|
|
2256
|
-
const
|
|
2320
|
+
const _m31 = _modules.get("39155eb25a58694b2caf100529b6c13dbe91f583741807b46232a2a567e19ecb") ?? (() => {
|
|
2257
2321
|
const { OfficeIMOError } = _m3;
|
|
2258
2322
|
|
|
2259
|
-
const { cellPosition } =
|
|
2323
|
+
const { cellPosition } = _m28;
|
|
2260
2324
|
|
|
2261
2325
|
function indexRows(regions) {
|
|
2262
2326
|
if (!regions.length)
|
|
@@ -2354,11 +2418,11 @@ class MergeRegions {
|
|
|
2354
2418
|
throw new RangeError("Merged ranges must stay within exported rows."); }
|
|
2355
2419
|
}
|
|
2356
2420
|
const _exports = Object.freeze({ MergeRegions: MergeRegions });
|
|
2357
|
-
_modules.set("
|
|
2421
|
+
_modules.set("39155eb25a58694b2caf100529b6c13dbe91f583741807b46232a2a567e19ecb", _exports);
|
|
2358
2422
|
return _exports;
|
|
2359
2423
|
})();
|
|
2360
2424
|
|
|
2361
|
-
const
|
|
2425
|
+
const _m32 = _modules.get("c9fde2c438e186da56f740105fcd41c265fdfdd855a4f1b811d556a02387479b") ?? (() => {
|
|
2362
2426
|
class NumericAggregate {
|
|
2363
2427
|
operation;
|
|
2364
2428
|
count = 0;
|
|
@@ -2406,10 +2470,10 @@ _modules.set("c9fde2c438e186da56f740105fcd41c265fdfdd855a4f1b811d556a02387479b",
|
|
|
2406
2470
|
return _exports;
|
|
2407
2471
|
})();
|
|
2408
2472
|
|
|
2409
|
-
const
|
|
2473
|
+
const _m33 = _modules.get("2a51a034ac74f5a0656731f46740bb80adee48101e7a4b51253d9399df11d238") ?? (() => {
|
|
2410
2474
|
const { ExportCell } = _m20;
|
|
2411
2475
|
|
|
2412
|
-
const { tableSpans } =
|
|
2476
|
+
const { tableSpans } = _m26;
|
|
2413
2477
|
|
|
2414
2478
|
const { copyValue, columnName } = _m19;
|
|
2415
2479
|
|
|
@@ -2439,11 +2503,11 @@ class StructuredRows {
|
|
|
2439
2503
|
}
|
|
2440
2504
|
}
|
|
2441
2505
|
const _exports = Object.freeze({ StructuredRows: StructuredRows });
|
|
2442
|
-
_modules.set("
|
|
2506
|
+
_modules.set("2a51a034ac74f5a0656731f46740bb80adee48101e7a4b51253d9399df11d238", _exports);
|
|
2443
2507
|
return _exports;
|
|
2444
2508
|
})();
|
|
2445
2509
|
|
|
2446
|
-
const
|
|
2510
|
+
const _m30 = _modules.get("b732883d8635c0adf27cef2a3900f08374d02c9ce1b005d02af6853c8be627cc") ?? (() => {
|
|
2447
2511
|
const { ExportCell } = _m20;
|
|
2448
2512
|
|
|
2449
2513
|
const { isDate } = _m12;
|
|
@@ -2454,13 +2518,13 @@ const { FormulaCell } = _m22;
|
|
|
2454
2518
|
|
|
2455
2519
|
const { escapeOoxmlAttribute } = _m11;
|
|
2456
2520
|
|
|
2457
|
-
const { MergeRegions } =
|
|
2521
|
+
const { MergeRegions } = _m31;
|
|
2458
2522
|
|
|
2459
2523
|
const { OfficeIMOError } = _m3;
|
|
2460
2524
|
|
|
2461
|
-
const { createTotals } =
|
|
2525
|
+
const { createTotals } = _m32;
|
|
2462
2526
|
|
|
2463
|
-
const { StructuredRows } =
|
|
2527
|
+
const { StructuredRows } = _m33;
|
|
2464
2528
|
|
|
2465
2529
|
/** @internal A computed formula with a numeric cache; no public arbitrary-formula input. */
|
|
2466
2530
|
class ComputedTotal {
|
|
@@ -2640,11 +2704,11 @@ function printXml(options, policy) {
|
|
|
2640
2704
|
(options.footer === undefined ? "" : '<oddFooter>' + escapeOoxmlAttribute("&C" + options.footer.replace(/&/g, "&&"), policy) + '</oddFooter>') + '</headerFooter>' : "");
|
|
2641
2705
|
}
|
|
2642
2706
|
const _exports = Object.freeze({ ComputedTotal: ComputedTotal, ReportLayout: ReportLayout, totalFormula: totalFormula, printXml: printXml });
|
|
2643
|
-
_modules.set("
|
|
2707
|
+
_modules.set("b732883d8635c0adf27cef2a3900f08374d02c9ce1b005d02af6853c8be627cc", _exports);
|
|
2644
2708
|
return _exports;
|
|
2645
2709
|
})();
|
|
2646
2710
|
|
|
2647
|
-
const
|
|
2711
|
+
const _m35 = _modules.get("09d589ff8f82302ce4c17411c7b811a87fb034e61e4b3013b7f8b18853a90449") ?? (() => {
|
|
2648
2712
|
const { columnName } = _m19;
|
|
2649
2713
|
|
|
2650
2714
|
/** @internal Data-column selectors use stable keys or one-based worksheet columns. */
|
|
@@ -2671,11 +2735,11 @@ function qualifiedCell(sheetName, column, row) {
|
|
|
2671
2735
|
return qualifiedColumnRange(sheetName, column, row, 1).split(":")[0];
|
|
2672
2736
|
}
|
|
2673
2737
|
const _exports = Object.freeze({ resolveDataColumn: resolveDataColumn, qualifiedColumnRange: qualifiedColumnRange, qualifiedCell: qualifiedCell });
|
|
2674
|
-
_modules.set("
|
|
2738
|
+
_modules.set("09d589ff8f82302ce4c17411c7b811a87fb034e61e4b3013b7f8b18853a90449", _exports);
|
|
2675
2739
|
return _exports;
|
|
2676
2740
|
})();
|
|
2677
2741
|
|
|
2678
|
-
const
|
|
2742
|
+
const _m36 = _modules.get("55a9bd1fb59ea19bf98a03859769a119fdc71a44075e560937e7184720e53514") ?? (() => {
|
|
2679
2743
|
const { OfficeIMOError } = _m3;
|
|
2680
2744
|
|
|
2681
2745
|
const { columnName } = _m19;
|
|
@@ -2718,22 +2782,22 @@ function dataRowReference(firstColumn, lastColumn, headerRows, dataRows, ranges)
|
|
|
2718
2782
|
return reference || undefined;
|
|
2719
2783
|
}
|
|
2720
2784
|
const _exports = Object.freeze({ retainDataRowRanges: retainDataRowRanges, dataRowRanges: dataRowRanges, dataRowCount: dataRowCount, dataRowReference: dataRowReference });
|
|
2721
|
-
_modules.set("
|
|
2785
|
+
_modules.set("55a9bd1fb59ea19bf98a03859769a119fdc71a44075e560937e7184720e53514", _exports);
|
|
2722
2786
|
return _exports;
|
|
2723
2787
|
})();
|
|
2724
2788
|
|
|
2725
|
-
const
|
|
2789
|
+
const _m34 = _modules.get("a1b616256344317787b0b102f35d062009d6a2e9c873b9f106c99c095c92ace3") ?? (() => {
|
|
2726
2790
|
const { cleanXml, escapeXml, escapeOoxmlAttribute } = _m11;
|
|
2727
2791
|
|
|
2728
|
-
const { cellPosition } =
|
|
2792
|
+
const { cellPosition } = _m28;
|
|
2729
2793
|
|
|
2730
2794
|
const { colorArgb } = _m17;
|
|
2731
2795
|
|
|
2732
2796
|
const { fields, optionalBoolean, differentialXml } = _m18;
|
|
2733
2797
|
|
|
2734
|
-
const { resolveDataColumn } =
|
|
2798
|
+
const { resolveDataColumn } = _m35;
|
|
2735
2799
|
|
|
2736
|
-
const { dataRowReference } =
|
|
2800
|
+
const { dataRowReference } = _m36;
|
|
2737
2801
|
|
|
2738
2802
|
function target(range, columns) {
|
|
2739
2803
|
if (typeof range === "string") {
|
|
@@ -2888,11 +2952,11 @@ class ConditionalFormats {
|
|
|
2888
2952
|
}
|
|
2889
2953
|
}
|
|
2890
2954
|
const _exports = Object.freeze({ prepareConditionalFormats: prepareConditionalFormats, ConditionalFormats: ConditionalFormats });
|
|
2891
|
-
_modules.set("
|
|
2955
|
+
_modules.set("a1b616256344317787b0b102f35d062009d6a2e9c873b9f106c99c095c92ace3", _exports);
|
|
2892
2956
|
return _exports;
|
|
2893
2957
|
})();
|
|
2894
2958
|
|
|
2895
|
-
const
|
|
2959
|
+
const _m37 = _modules.get("13fa96d976e4dec7343dd3a392829567f1fcb574324a98f5a5d3a61c9a0dc27d") ?? (() => {
|
|
2896
2960
|
const { OfficeIMOError } = _m3;
|
|
2897
2961
|
|
|
2898
2962
|
const { checkAbort } = _m2;
|
|
@@ -2901,9 +2965,9 @@ const { cleanXml, escapeOoxmlAttribute, escapeXml } = _m11;
|
|
|
2901
2965
|
|
|
2902
2966
|
const { fields, optionalBoolean } = _m18;
|
|
2903
2967
|
|
|
2904
|
-
const { resolveDataColumn } =
|
|
2968
|
+
const { resolveDataColumn } = _m35;
|
|
2905
2969
|
|
|
2906
|
-
const { dataRowReference } =
|
|
2970
|
+
const { dataRowReference } = _m36;
|
|
2907
2971
|
|
|
2908
2972
|
function message(value, maximum, name) {
|
|
2909
2973
|
if (value === undefined)
|
|
@@ -2992,11 +3056,11 @@ function* dataValidationsXml(prepared, headerRows, dataRows, ranges) {
|
|
|
2992
3056
|
yield '</dataValidations>';
|
|
2993
3057
|
}
|
|
2994
3058
|
const _exports = Object.freeze({ prepareDataValidations: prepareDataValidations, dataValidationsXml: dataValidationsXml });
|
|
2995
|
-
_modules.set("
|
|
3059
|
+
_modules.set("13fa96d976e4dec7343dd3a392829567f1fcb574324a98f5a5d3a61c9a0dc27d", _exports);
|
|
2996
3060
|
return _exports;
|
|
2997
3061
|
})();
|
|
2998
3062
|
|
|
2999
|
-
const
|
|
3063
|
+
const _m27 = _modules.get("a61e744201bb537b635b367b1764bd85892101d55e00b8c78faec8be89577376") ?? (() => {
|
|
3000
3064
|
const { checkAbort, consumeRows, inputRows, pause, taskYieldDue } = _m2;
|
|
3001
3065
|
|
|
3002
3066
|
const { ChunkedTextSink, BlobByteSink } = _m5;
|
|
@@ -3017,25 +3081,27 @@ const { Cell, cellText, columnName, inlineText, excelDate, copyValue } = _m19;
|
|
|
3017
3081
|
|
|
3018
3082
|
const { spreadsheetNamespace, colorArgb, validateStylePatch, copyStylePatch } = _m16;
|
|
3019
3083
|
|
|
3020
|
-
const { copyHyperlink, copyImage, hyperlinksXml, cellPosition } =
|
|
3084
|
+
const { copyHyperlink, copyImage, hyperlinksXml, cellPosition } = _m28;
|
|
3021
3085
|
|
|
3022
3086
|
const { ExportCell, assertScalar } = _m20;
|
|
3023
3087
|
|
|
3024
|
-
const { ReportLayout, ComputedTotal, printXml } =
|
|
3088
|
+
const { ReportLayout, ComputedTotal, printXml } = _m30;
|
|
3025
3089
|
|
|
3026
3090
|
const { cleanXml } = _m11;
|
|
3027
3091
|
|
|
3028
|
-
const { ConditionalFormats, prepareConditionalFormats } =
|
|
3092
|
+
const { ConditionalFormats, prepareConditionalFormats } = _m34;
|
|
3029
3093
|
|
|
3030
3094
|
const { isDate } = _m12;
|
|
3031
3095
|
|
|
3032
3096
|
const { FormulaCell, formulaXml, isSubtotalFormula } = _m22;
|
|
3033
3097
|
|
|
3034
|
-
const { prepareDataValidations, dataValidationsXml } =
|
|
3098
|
+
const { prepareDataValidations, dataValidationsXml } = _m37;
|
|
3035
3099
|
|
|
3036
|
-
const { qualifiedCell, qualifiedColumnRange, resolveDataColumn } =
|
|
3100
|
+
const { qualifiedCell, qualifiedColumnRange, resolveDataColumn } = _m35;
|
|
3037
3101
|
|
|
3038
|
-
const { dataRowRanges, dataRowCount } =
|
|
3102
|
+
const { dataRowRanges, dataRowCount } = _m36;
|
|
3103
|
+
|
|
3104
|
+
const { captureColumnOutlines, columnOutlineMap, validateOutlinePositions } = _m25;
|
|
3039
3105
|
|
|
3040
3106
|
const maximumHyperlinks = 65530;
|
|
3041
3107
|
function checkHyperlinkCount(count) {
|
|
@@ -3167,6 +3233,8 @@ class Worksheet {
|
|
|
3167
3233
|
throw new TypeError("Row and style callbacks must be functions.");
|
|
3168
3234
|
if (options.maxOutlineLevel !== undefined && (!Number.isInteger(options.maxOutlineLevel) || options.maxOutlineLevel < 0 || options.maxOutlineLevel > 7))
|
|
3169
3235
|
throw new RangeError("Maximum outline level must be an integer from zero through seven.");
|
|
3236
|
+
validateOutlinePositions(options);
|
|
3237
|
+
captureColumnOutlines(options.columnOutlines, columns.length);
|
|
3170
3238
|
if (options.rowOutline && options.maxOutlineLevel === undefined)
|
|
3171
3239
|
throw new TypeError("A row outline callback requires maxOutlineLevel before streamed rows are written.");
|
|
3172
3240
|
if (!options.rowOutline && options.maxOutlineLevel !== undefined)
|
|
@@ -3451,17 +3519,22 @@ class Worksheet {
|
|
|
3451
3519
|
const buffer = this.buffer = new ChunkedTextSink(this.entry, this.book.settings.signal), opts = this.options;
|
|
3452
3520
|
const x = opts.freezeColumns ?? 0, y = opts.freezeHeader ? this.headerRows : 0;
|
|
3453
3521
|
const pane = x && y ? "bottomRight" : x ? "topRight" : "bottomLeft", cell = columnName(x + 1) + (y + 1);
|
|
3522
|
+
const outlines = columnOutlineMap(opts.columnOutlines), hasOutline = !!opts.rowOutline || outlines.size > 0;
|
|
3523
|
+
const maxColumnLevel = Math.max(0, ...Array.from(outlines.values(), value => value.level ?? 0));
|
|
3454
3524
|
await buffer.write(xmlDeclaration + '<worksheet xmlns="' + spreadsheetNamespace + '" xmlns:r="' + officeRelationshipsNamespace + '">' +
|
|
3455
|
-
(opts.print ||
|
|
3525
|
+
(opts.print || hasOutline ? '<sheetPr>' + (hasOutline ? '<outlinePr summaryBelow="' + (opts.outlineSummaryBelow === false ? "0" : "1") + '"' + (opts.outlineSummaryRight === undefined ? "" : ' summaryRight="' + (opts.outlineSummaryRight ? "1" : "0") + '"') + ' showOutlineSymbols="1"/>' : "") + (opts.print ? '<pageSetUpPr fitToPage="1"/>' : "") + '</sheetPr>' : "") + '<sheetViews><sheetView workbookViewId="0">' +
|
|
3456
3526
|
(x || y ? '<pane' + (x ? ' xSplit="' + x + '"' : "") + (y ? ' ySplit="' + y + '"' : "") + ' topLeftCell="' + cell + '" activePane="' + pane + '" state="frozen"/><selection pane="' + pane + '" activeCell="' + cell + '" sqref="' + cell + '"/>' : "") + '</sheetView></sheetViews>' +
|
|
3457
|
-
(
|
|
3527
|
+
(hasOutline ? '<sheetFormatPr defaultRowHeight="15"' + (opts.rowOutline ? ' outlineLevelRow="' + opts.maxOutlineLevel + '"' : "") + (outlines.size ? ' outlineLevelCol="' + maxColumnLevel + '"' : "") + '/>' : ""));
|
|
3458
3528
|
const defaultWidth = opts.defaultColumnWidth ?? (this.table ? 20 : undefined);
|
|
3459
|
-
if (this.columns.some((_, i) => this.layout.widths[i] !== undefined || defaultWidth !== undefined)) {
|
|
3529
|
+
if (this.columns.some((_, i) => this.layout.widths[i] !== undefined || defaultWidth !== undefined || outlines.has(i))) {
|
|
3460
3530
|
await buffer.write('<cols>');
|
|
3461
3531
|
for (let i = 0; i < this.columns.length; i++) {
|
|
3462
|
-
const width = this.layout.widths[i] ?? defaultWidth;
|
|
3463
|
-
if (width !== undefined)
|
|
3464
|
-
await buffer.write('<col min="' + (i + 1) + '" max="' + (i + 1) + '"
|
|
3532
|
+
const width = this.layout.widths[i] ?? defaultWidth, outline = outlines.get(i);
|
|
3533
|
+
if (width !== undefined || outline)
|
|
3534
|
+
await buffer.write('<col min="' + (i + 1) + '" max="' + (i + 1) + '"' +
|
|
3535
|
+
(width === undefined ? "" : ' width="' + width + '" customWidth="1"') +
|
|
3536
|
+
(outline?.level ? ' outlineLevel="' + outline.level + '"' : "") + (outline?.hidden ? ' hidden="1"' : "") +
|
|
3537
|
+
(outline?.collapsed ? ' collapsed="1"' : "") + '/>');
|
|
3465
3538
|
}
|
|
3466
3539
|
await buffer.write('</cols>');
|
|
3467
3540
|
}
|
|
@@ -3719,11 +3792,11 @@ class Worksheet {
|
|
|
3719
3792
|
async discard(error) { this.failed = true; this.error = error; this.pending = []; this.pendingCharacters = 0; this.prepared = undefined; this.buffer = undefined; this.nativeCharts.length = 0; this.chartSources.length = 0; this.output.discard(); await this.entry?.discard(error); }
|
|
3720
3793
|
}
|
|
3721
3794
|
const _exports = Object.freeze({ Worksheet: Worksheet });
|
|
3722
|
-
_modules.set("
|
|
3795
|
+
_modules.set("a61e744201bb537b635b367b1764bd85892101d55e00b8c78faec8be89577376", _exports);
|
|
3723
3796
|
return _exports;
|
|
3724
3797
|
})();
|
|
3725
3798
|
|
|
3726
|
-
const
|
|
3799
|
+
const _m38 = _modules.get("1b4698baf9a9c9b3505988abac9f83967c32cf37483d70a949ae89c4485532a4") ?? (() => {
|
|
3727
3800
|
const { escapeOoxmlAttribute, escapeXml, xmlDeclaration } = _m11;
|
|
3728
3801
|
|
|
3729
3802
|
const { cellText, columnName } = _m19;
|
|
@@ -3734,7 +3807,7 @@ const { ExportCell } = _m20;
|
|
|
3734
3807
|
|
|
3735
3808
|
const { Cell } = _m19;
|
|
3736
3809
|
|
|
3737
|
-
const { totalFormula } =
|
|
3810
|
+
const { totalFormula } = _m30;
|
|
3738
3811
|
|
|
3739
3812
|
function defineTable(id, options, columns, policy) {
|
|
3740
3813
|
const name = options.name ?? "Table" + id;
|
|
@@ -3766,11 +3839,11 @@ function tableXml(table, rowCount, policy, headerRow = 1, footer) {
|
|
|
3766
3839
|
'" showColumnStripes="' + (options.bandedColumns ? 1 : 0) + '"/></table>';
|
|
3767
3840
|
}
|
|
3768
3841
|
const _exports = Object.freeze({ defineTable: defineTable, tableXml: tableXml });
|
|
3769
|
-
_modules.set("
|
|
3842
|
+
_modules.set("1b4698baf9a9c9b3505988abac9f83967c32cf37483d70a949ae89c4485532a4", _exports);
|
|
3770
3843
|
return _exports;
|
|
3771
3844
|
})();
|
|
3772
3845
|
|
|
3773
|
-
const
|
|
3846
|
+
const _m39 = _modules.get("0c395783b9d7cc62dd39a21adeb698ad4a61e2c89f7b1fc8712e2eb2ccfe9d92") ?? (() => {
|
|
3774
3847
|
const { OfficeIMOError } = _m3;
|
|
3775
3848
|
|
|
3776
3849
|
const { cleanXml } = _m11;
|
|
@@ -3838,13 +3911,13 @@ _modules.set("0c395783b9d7cc62dd39a21adeb698ad4a61e2c89f7b1fc8712e2eb2ccfe9d92",
|
|
|
3838
3911
|
return _exports;
|
|
3839
3912
|
})();
|
|
3840
3913
|
|
|
3841
|
-
const
|
|
3914
|
+
const _m40 = _modules.get("477ff98f49343b8ec4213008254b57a60dd42d07cb9843b3791d5e5f8e295865") ?? (() => {
|
|
3842
3915
|
const { captureFields } = _m7;
|
|
3843
3916
|
|
|
3844
3917
|
/** @internal The workbook owner captures these settings before validation or adapter merging. */
|
|
3845
3918
|
const workbookOptionFields = ["signal", "onProgress", "limits", "sink", "dateMode", "compression", "invalidCharacterPolicy", "appProperties", "cellValueWriters", "oversizedText", "creator", "title", "subject", "description", "created", "modified"];
|
|
3846
3919
|
/** @internal Worksheet settings also used by the portable sheet owner. */
|
|
3847
|
-
const sheetOptionFields = ["columns", "includeHeader", "headerRows", "freezeHeader", "autoFilter", "boldHeader", "headerFill", "headerStyle", "alternatingRowStyle", "rowStyle", "cellStyle", "rowOutline", "maxOutlineLevel", "rowHeight", "headerHeight", "defaultColumnWidth", "freezeColumns", "table", "autoSize", "footer", "print", "title", "mergedCells", "hyperlinks", "conditionalFormats", "dataValidation"];
|
|
3920
|
+
const sheetOptionFields = ["columns", "includeHeader", "headerRows", "freezeHeader", "autoFilter", "boldHeader", "headerFill", "headerStyle", "alternatingRowStyle", "rowStyle", "cellStyle", "rowOutline", "maxOutlineLevel", "outlineSummaryBelow", "outlineSummaryRight", "columnOutlines", "rowHeight", "headerHeight", "defaultColumnWidth", "freezeColumns", "table", "autoSize", "footer", "print", "title", "mergedCells", "hyperlinks", "conditionalFormats", "dataValidation"];
|
|
3848
3921
|
/** @internal Includes inherited format-specific ceilings before a wrapper combines stream settings. */
|
|
3849
3922
|
const workbookLimitFields = ["maxRows", "maxCells", "maxTextCharacters", "maxOutputBytes", "maxStyles", "maxSheets", "maxOverflowCharacters", "maxHyperlinks", "maxImageBytes", "maxBufferedCells", "maxBufferedCharacters", "maxMergedRanges", "maxConditionalFormats", "maxDifferentialStyles", "maxCharts", "maxChartPoints", "maxChartTextCharacters", "maxFormulaCharacters", "maxDataValidations", "maxValidationTextCharacters"];
|
|
3850
3923
|
/** @internal Capture the workbook's known ceilings without dropping supported prototype fields. */
|
|
@@ -3857,11 +3930,11 @@ function captureWorkbookOptions(options) {
|
|
|
3857
3930
|
return { ...captured, ...(captured.limits === undefined ? {} : { limits: captureWorkbookLimits(captured.limits) }) };
|
|
3858
3931
|
}
|
|
3859
3932
|
const _exports = Object.freeze({ workbookOptionFields: workbookOptionFields, sheetOptionFields: sheetOptionFields, workbookLimitFields: workbookLimitFields, captureWorkbookLimits: captureWorkbookLimits, captureWorkbookOptions: captureWorkbookOptions });
|
|
3860
|
-
_modules.set("
|
|
3933
|
+
_modules.set("477ff98f49343b8ec4213008254b57a60dd42d07cb9843b3791d5e5f8e295865", _exports);
|
|
3861
3934
|
return _exports;
|
|
3862
3935
|
})();
|
|
3863
3936
|
|
|
3864
|
-
const
|
|
3937
|
+
const _m42 = _modules.get("35db01801a6b2e3e0c5acd7493e56f04b5b41b1d57afa8be28b8358378ad6494") ?? (() => {
|
|
3865
3938
|
const { checkAbort } = _m2;
|
|
3866
3939
|
|
|
3867
3940
|
const { NotSupportedError, OfficeIMOError } = _m3;
|
|
@@ -3993,18 +4066,18 @@ _modules.set("35db01801a6b2e3e0c5acd7493e56f04b5b41b1d57afa8be28b8358378ad6494",
|
|
|
3993
4066
|
return _exports;
|
|
3994
4067
|
})();
|
|
3995
4068
|
|
|
3996
|
-
const
|
|
4069
|
+
const _m41 = _modules.get("24f1417c3c320a8a41137c28f70b72091256c63010be0c88b684dce85f54950c") ?? (() => {
|
|
3997
4070
|
const { checkAbort } = _m2;
|
|
3998
4071
|
|
|
3999
4072
|
const { NotSupportedError, OfficeIMOError } = _m3;
|
|
4000
4073
|
|
|
4001
4074
|
const { cleanXml } = _m11;
|
|
4002
4075
|
|
|
4003
|
-
const { copyDrawingAnchor } =
|
|
4076
|
+
const { copyDrawingAnchor } = _m28;
|
|
4004
4077
|
|
|
4005
4078
|
const { captureFields } = _m7;
|
|
4006
4079
|
|
|
4007
|
-
const { captureChartRange, prepareChartBinding } =
|
|
4080
|
+
const { captureChartRange, prepareChartBinding } = _m42;
|
|
4008
4081
|
|
|
4009
4082
|
function fields(value, allowed, context) {
|
|
4010
4083
|
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
@@ -4160,11 +4233,11 @@ function prepareChart(input, policy, availablePoints, availableText, signal, res
|
|
|
4160
4233
|
points, textCharacters });
|
|
4161
4234
|
}
|
|
4162
4235
|
const _exports = Object.freeze({ prepareChart: prepareChart });
|
|
4163
|
-
_modules.set("
|
|
4236
|
+
_modules.set("24f1417c3c320a8a41137c28f70b72091256c63010be0c88b684dce85f54950c", _exports);
|
|
4164
4237
|
return _exports;
|
|
4165
4238
|
})();
|
|
4166
4239
|
|
|
4167
|
-
const _m1 = _modules.get("
|
|
4240
|
+
const _m1 = _modules.get("e89ecd2f5e1738c6e88f72ac2bcac70dfaa81b4aa86edf333e9b395cf2212e2a") ?? (() => {
|
|
4168
4241
|
const { beginTask, checkAbort, pause, taskYieldDue } = _m2;
|
|
4169
4242
|
|
|
4170
4243
|
const { OfficeIMOError } = _m3;
|
|
@@ -4187,25 +4260,27 @@ const { copyColumns } = _m24;
|
|
|
4187
4260
|
|
|
4188
4261
|
const { captureFields } = _m7;
|
|
4189
4262
|
|
|
4190
|
-
const {
|
|
4263
|
+
const { captureColumnOutlines } = _m25;
|
|
4264
|
+
|
|
4265
|
+
const { captureTableSpans } = _m26;
|
|
4191
4266
|
|
|
4192
4267
|
const { assertExportValue } = _m20;
|
|
4193
4268
|
|
|
4194
|
-
const { Worksheet } =
|
|
4269
|
+
const { Worksheet } = _m27;
|
|
4195
4270
|
|
|
4196
|
-
const { defineTable, tableXml } =
|
|
4271
|
+
const { defineTable, tableXml } = _m38;
|
|
4197
4272
|
|
|
4198
|
-
const { copyHyperlink, drawingXml, drawingContentType } =
|
|
4273
|
+
const { copyHyperlink, drawingXml, drawingContentType } = _m28;
|
|
4199
4274
|
|
|
4200
|
-
const { TextOverflow } =
|
|
4275
|
+
const { TextOverflow } = _m39;
|
|
4201
4276
|
|
|
4202
|
-
const { captureWorkbookOptions, sheetOptionFields } =
|
|
4277
|
+
const { captureWorkbookOptions, sheetOptionFields } = _m40;
|
|
4203
4278
|
|
|
4204
|
-
const { prepareChart } =
|
|
4279
|
+
const { prepareChart } = _m41;
|
|
4205
4280
|
|
|
4206
|
-
const { qualifiedColumnRange, resolveDataColumn } =
|
|
4281
|
+
const { qualifiedColumnRange, resolveDataColumn } = _m35;
|
|
4207
4282
|
|
|
4208
|
-
const { chartContentType, writeChartXml } =
|
|
4283
|
+
const { chartContentType, writeChartXml } = _m29;
|
|
4209
4284
|
|
|
4210
4285
|
const xlsxMime = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
4211
4286
|
const formatType = (name) => "application/vnd.openxmlformats-officedocument.spreadsheetml." + name + "+xml";
|
|
@@ -4216,6 +4291,7 @@ function captureSheet(options, policy) {
|
|
|
4216
4291
|
const footer = captured.footer && captureFields(captured.footer, ["rows", "values", "totals", "style"]);
|
|
4217
4292
|
const print = captured.print && captureFields(captured.print, ["paper", "orientation", "fitToWidth", "fitToHeight", "repeatHeaders", "margins", "header", "footer"]);
|
|
4218
4293
|
return { ...captured, columns,
|
|
4294
|
+
...(captured.columnOutlines === undefined ? {} : { columnOutlines: captureColumnOutlines(captured.columnOutlines, columns.length) }),
|
|
4219
4295
|
...(captured.headerRows === undefined ? {} : { headerRows: captureTableSpans(captured.headerRows, columns.length) }),
|
|
4220
4296
|
...(footer ? { footer: { ...footer,
|
|
4221
4297
|
...(footer.rows === undefined ? {} : { rows: captureTableSpans(footer.rows, columns.length) }),
|
|
@@ -4642,14 +4718,14 @@ class Workbook {
|
|
|
4642
4718
|
}
|
|
4643
4719
|
}
|
|
4644
4720
|
const _exports = Object.freeze({ Workbook: Workbook });
|
|
4645
|
-
_modules.set("
|
|
4721
|
+
_modules.set("e89ecd2f5e1738c6e88f72ac2bcac70dfaa81b4aa86edf333e9b395cf2212e2a", _exports);
|
|
4646
4722
|
return _exports;
|
|
4647
4723
|
})();
|
|
4648
4724
|
|
|
4649
|
-
const
|
|
4725
|
+
const _m44 = _modules.get("a10003e971cd5ec2cee127bc9b029a0aa06fe3d50112838929d7a04a55e177c0") ?? (() => {
|
|
4650
4726
|
const { ExportCell, assertScalar } = _m20;
|
|
4651
4727
|
|
|
4652
|
-
const { captureWorkbookOptions, sheetOptionFields } =
|
|
4728
|
+
const { captureWorkbookOptions, sheetOptionFields } = _m40;
|
|
4653
4729
|
|
|
4654
4730
|
const { captureFields } = _m7;
|
|
4655
4731
|
|
|
@@ -4695,22 +4771,22 @@ function portableWorkbook(options = {}) {
|
|
|
4695
4771
|
return { ...options, cellValueWriters: wrapped };
|
|
4696
4772
|
}
|
|
4697
4773
|
const _exports = Object.freeze({ portableSheet: portableSheet, portableWorkbook: portableWorkbook });
|
|
4698
|
-
_modules.set("
|
|
4774
|
+
_modules.set("a10003e971cd5ec2cee127bc9b029a0aa06fe3d50112838929d7a04a55e177c0", _exports);
|
|
4699
4775
|
return _exports;
|
|
4700
4776
|
})();
|
|
4701
4777
|
|
|
4702
|
-
const
|
|
4778
|
+
const _m43 = _modules.get("5bfd5c9c5e179305b9bebd6cb0d6a0d75e974b223e119e0fd4fbb773325f1e63") ?? (() => {
|
|
4703
4779
|
const { withDestination } = _m5;
|
|
4704
4780
|
|
|
4705
4781
|
const { copyColumns } = _m24;
|
|
4706
4782
|
|
|
4707
4783
|
const { Workbook } = _m1;
|
|
4708
4784
|
|
|
4709
|
-
const { portableSheet, portableWorkbook } =
|
|
4785
|
+
const { portableSheet, portableWorkbook } = _m44;
|
|
4710
4786
|
|
|
4711
4787
|
const { captureFields } = _m7;
|
|
4712
4788
|
|
|
4713
|
-
const { sheetOptionFields, workbookOptionFields } =
|
|
4789
|
+
const { sheetOptionFields, workbookOptionFields } = _m40;
|
|
4714
4790
|
|
|
4715
4791
|
function prepare(options) {
|
|
4716
4792
|
options = captureFields(options, [...workbookOptionFields, "columns", "sheet"]);
|
|
@@ -4754,11 +4830,11 @@ async function writeXlsxTo(rows, destination, configuration) {
|
|
|
4754
4830
|
});
|
|
4755
4831
|
}
|
|
4756
4832
|
const _exports = Object.freeze({ writeXlsx: writeXlsx, writeXlsxTo: writeXlsxTo });
|
|
4757
|
-
_modules.set("
|
|
4833
|
+
_modules.set("5bfd5c9c5e179305b9bebd6cb0d6a0d75e974b223e119e0fd4fbb773325f1e63", _exports);
|
|
4758
4834
|
return _exports;
|
|
4759
4835
|
})();
|
|
4760
4836
|
|
|
4761
|
-
const
|
|
4837
|
+
const _m46 = _modules.get("046b305cdccf817d847addb75a778131622de23f2840830bbe1c0c26053a68c0") ?? (() => {
|
|
4762
4838
|
const { ExportCell, assertScalar } = _m20;
|
|
4763
4839
|
|
|
4764
4840
|
const { isDate } = _m12;
|
|
@@ -4771,7 +4847,7 @@ const { OfficeIMOError } = _m3;
|
|
|
4771
4847
|
|
|
4772
4848
|
const { copyColumns, createRowProjector } = _m24;
|
|
4773
4849
|
|
|
4774
|
-
const { createTotals } =
|
|
4850
|
+
const { createTotals } = _m32;
|
|
4775
4851
|
|
|
4776
4852
|
const { copyExportValue } = _m23;
|
|
4777
4853
|
|
|
@@ -5024,8 +5100,8 @@ _modules.set("046b305cdccf817d847addb75a778131622de23f2840830bbe1c0c26053a68c0",
|
|
|
5024
5100
|
return _exports;
|
|
5025
5101
|
})();
|
|
5026
5102
|
|
|
5027
|
-
const
|
|
5028
|
-
const { assertGroupedReportSource } =
|
|
5103
|
+
const _m47 = _modules.get("dd34d5fd89869a0f953f3f2b3fd27ac83be29e68f76c9087fae3d33095aeda7c") ?? (() => {
|
|
5104
|
+
const { assertGroupedReportSource } = _m46;
|
|
5029
5105
|
|
|
5030
5106
|
const { captureFields } = _m7;
|
|
5031
5107
|
|
|
@@ -5033,11 +5109,11 @@ const { OfficeIMOError } = _m3;
|
|
|
5033
5109
|
|
|
5034
5110
|
const { fields } = _m18;
|
|
5035
5111
|
|
|
5036
|
-
const { sheetOptionFields } =
|
|
5112
|
+
const { sheetOptionFields } = _m40;
|
|
5037
5113
|
|
|
5038
|
-
const { portableSheet } =
|
|
5114
|
+
const { portableSheet } = _m44;
|
|
5039
5115
|
|
|
5040
|
-
const { resolveDataColumn } =
|
|
5116
|
+
const { resolveDataColumn } = _m35;
|
|
5041
5117
|
|
|
5042
5118
|
const { copyStylePatch } = _m16;
|
|
5043
5119
|
|
|
@@ -5113,12 +5189,12 @@ function prepareGroupedSheet(report, configuration, maxConditionalFormats = 1000
|
|
|
5113
5189
|
...(options.grandTotalStyle ? { grandTotalStyle: copyStylePatch(options.grandTotalStyle) } : {}) };
|
|
5114
5190
|
}
|
|
5115
5191
|
const _exports = Object.freeze({ groupedOptionFields: groupedOptionFields, prepareGroupedSheet: prepareGroupedSheet });
|
|
5116
|
-
_modules.set("
|
|
5192
|
+
_modules.set("dd34d5fd89869a0f953f3f2b3fd27ac83be29e68f76c9087fae3d33095aeda7c", _exports);
|
|
5117
5193
|
return _exports;
|
|
5118
5194
|
})();
|
|
5119
5195
|
|
|
5120
|
-
const
|
|
5121
|
-
const { groupedReportOperation } =
|
|
5196
|
+
const _m45 = _modules.get("2ba62cdf88d559804bb84b20e9816b2de0f232401b7431ac414699a607d554a4") ?? (() => {
|
|
5197
|
+
const { groupedReportOperation } = _m46;
|
|
5122
5198
|
|
|
5123
5199
|
const { checkAbort, withAbort } = _m2;
|
|
5124
5200
|
|
|
@@ -5132,11 +5208,11 @@ const { FormulaCell } = _m22;
|
|
|
5132
5208
|
|
|
5133
5209
|
const { columnName } = _m19;
|
|
5134
5210
|
|
|
5135
|
-
const { captureWorkbookLimits, workbookOptionFields } =
|
|
5211
|
+
const { captureWorkbookLimits, workbookOptionFields } = _m40;
|
|
5136
5212
|
|
|
5137
|
-
const { retainDataRowRanges } =
|
|
5213
|
+
const { retainDataRowRanges } = _m36;
|
|
5138
5214
|
|
|
5139
|
-
const { groupedOptionFields, prepareGroupedSheet } =
|
|
5215
|
+
const { groupedOptionFields, prepareGroupedSheet } = _m47;
|
|
5140
5216
|
|
|
5141
5217
|
const subtotalOperations = { average: 1, count: 2, max: 4, min: 5, sum: 9 };
|
|
5142
5218
|
function label(value) {
|
|
@@ -5290,11 +5366,11 @@ async function writeGroupedXlsxTo(report, destination, options) {
|
|
|
5290
5366
|
return withDestination(destination, async (sink) => (await write(report, prepared, sink)).result);
|
|
5291
5367
|
}
|
|
5292
5368
|
const _exports = Object.freeze({ addGroupedXlsx: addGroupedXlsx, writeGroupedXlsx: writeGroupedXlsx, writeGroupedXlsxTo: writeGroupedXlsxTo });
|
|
5293
|
-
_modules.set("
|
|
5369
|
+
_modules.set("2ba62cdf88d559804bb84b20e9816b2de0f232401b7431ac414699a607d554a4", _exports);
|
|
5294
5370
|
return _exports;
|
|
5295
5371
|
})();
|
|
5296
5372
|
|
|
5297
|
-
const
|
|
5373
|
+
const _m48 = _modules.get("81b3d47c02b7d8443b79e02b3cfb52032d6b73d9a3fb592b777ebe028ad0ef00") ?? (() => {
|
|
5298
5374
|
|
|
5299
5375
|
|
|
5300
5376
|
|
|
@@ -5338,16 +5414,16 @@ function saveBlob(blob, fileName) {
|
|
|
5338
5414
|
setTimeout(() => URL.revokeObjectURL(url), 30000);
|
|
5339
5415
|
}
|
|
5340
5416
|
}
|
|
5341
|
-
const _exports = Object.freeze({ OfficeIMOError: _m3.OfficeIMOError, NotSupportedError: _m3.NotSupportedError, BlobByteSink: _m5.BlobByteSink, ChunkedTextSink: _m5.ChunkedTextSink, writeBytes: _m5.writeBytes, ExportCell: _m20.ExportCell, createGroupedReport:
|
|
5417
|
+
const _exports = Object.freeze({ OfficeIMOError: _m3.OfficeIMOError, NotSupportedError: _m3.NotSupportedError, BlobByteSink: _m5.BlobByteSink, ChunkedTextSink: _m5.ChunkedTextSink, writeBytes: _m5.writeBytes, ExportCell: _m20.ExportCell, createGroupedReport: _m46.createGroupedReport, checkAbort: _m2.checkAbort, withAbort: _m2.withAbort, inputRows: _m2.inputRows, pause: _m2.pause, detectFeatures: detectFeatures, saveBlob: saveBlob });
|
|
5342
5418
|
_modules.set("81b3d47c02b7d8443b79e02b3cfb52032d6b73d9a3fb592b777ebe028ad0ef00", _exports);
|
|
5343
5419
|
return _exports;
|
|
5344
5420
|
})();
|
|
5345
5421
|
|
|
5346
|
-
const _m0 = _modules.get("
|
|
5422
|
+
const _m0 = _modules.get("d6587a933b36ccfdba9a2a252389924ac8461f672b3a500082cceb5e53c8b0b6") ?? (() => {
|
|
5347
5423
|
|
|
5348
|
-
const _exports = Object.freeze({ Workbook: _m1.Workbook, writeXlsx:
|
|
5349
|
-
_modules.set("
|
|
5424
|
+
const _exports = Object.freeze({ Workbook: _m1.Workbook, writeXlsx: _m43.writeXlsx, writeXlsxTo: _m43.writeXlsxTo, writeGroupedXlsx: _m45.writeGroupedXlsx, writeGroupedXlsxTo: _m45.writeGroupedXlsxTo, addGroupedXlsx: _m45.addGroupedXlsx, createGroupedReport: _m46.createGroupedReport, Worksheet: _m27.Worksheet, Cell: _m19.Cell, FormulaCell: _m22.FormulaCell, StyleRegistry: _m16.StyleRegistry, NumberFormats: _m16.NumberFormats, saveBlob: _m48.saveBlob, ExportCell: _m20.ExportCell });
|
|
5425
|
+
_modules.set("d6587a933b36ccfdba9a2a252389924ac8461f672b3a500082cceb5e53c8b0b6", _exports);
|
|
5350
5426
|
return _exports;
|
|
5351
5427
|
})();
|
|
5352
|
-
Object.assign(officeimo, _m0, { core:
|
|
5428
|
+
Object.assign(officeimo, _m0, { core: _m48, zip: _m13, xml: _m11, opc: _m8, xlsx: _m0 });
|
|
5353
5429
|
})(globalThis);
|