@evotecit/officeimo 0.1.2 → 0.1.4
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 +59 -51
- package/bundles/officeimo-canopyx.js +1553 -314
- package/bundles/officeimo-canopyx.mjs +1497 -269
- package/bundles/officeimo-csv.js +18 -15
- package/bundles/officeimo-csv.mjs +16 -13
- package/bundles/officeimo-datatables.js +463 -301
- package/bundles/officeimo-datatables.mjs +420 -259
- package/bundles/officeimo-pdf.js +148 -65
- package/bundles/officeimo-pdf.mjs +124 -41
- package/bundles/officeimo-xlsx.js +177 -101
- package/bundles/officeimo-xlsx.mjs +149 -74
- package/bundles/officeimo.js +461 -299
- package/bundles/officeimo.mjs +419 -258
- package/dist/csv/index.js +16 -13
- package/dist/integrations/canopyx/diagnostics.d.ts +3 -0
- package/dist/integrations/canopyx/diagnostics.js +17 -0
- package/dist/integrations/canopyx/grouping.d.ts +6 -0
- package/dist/integrations/canopyx/grouping.js +198 -0
- package/dist/integrations/canopyx/index.d.ts +2 -2
- package/dist/integrations/canopyx/index.js +89 -15
- package/dist/integrations/canopyx/metadata.d.ts +4 -0
- package/dist/integrations/canopyx/metadata.js +51 -0
- 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 +64 -0
- package/dist/integrations/canopyx/pivot.d.ts +15 -0
- package/dist/integrations/canopyx/pivot.js +67 -0
- package/dist/integrations/canopyx/presentation.d.ts +8 -0
- package/dist/integrations/canopyx/presentation.js +40 -0
- package/dist/integrations/canopyx/rule-predicates.d.ts +3 -0
- package/dist/integrations/canopyx/rule-predicates.js +110 -0
- package/dist/integrations/canopyx/rules.d.ts +6 -0
- package/dist/integrations/canopyx/rules.js +176 -0
- package/dist/integrations/canopyx/source.js +69 -31
- package/dist/integrations/canopyx/types.d.ts +134 -10
- package/dist/integrations/canopyx/workbook.d.ts +6 -0
- package/dist/integrations/canopyx/workbook.js +52 -0
- package/dist/opc/index.js +9 -0
- package/dist/pdf/font-resources.js +33 -14
- package/dist/pdf/pages.js +60 -14
- package/dist/pdf/table-band-flow.js +7 -2
- package/dist/pdf/table-band-plan.js +9 -1
- package/dist/pdf/table-layout.js +6 -2
- package/dist/pdf/table-structure.js +9 -8
- 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
|
@@ -1110,7 +1110,7 @@ _modules.set("f0627ba89e5c8fcb376ebe3ce72dcc8d68c34952981f8703e36b8bb1a9894208",
|
|
|
1110
1110
|
return _exports;
|
|
1111
1111
|
})();
|
|
1112
1112
|
|
|
1113
|
-
const _m15 = _modules.get("
|
|
1113
|
+
const _m15 = _modules.get("b48bcab805d4c75294dd8d8e8dc57f96d9db3f5af31a8f0ddc6562f010f566e4") ?? (() => {
|
|
1114
1114
|
const { beginTask, checkAbort, consumeRows, taskYieldDue, withAbort } = _m4;
|
|
1115
1115
|
|
|
1116
1116
|
const { BlobByteSink, ChunkedTextSink, withDestination } = _m3;
|
|
@@ -1135,29 +1135,32 @@ const { captureCsvOptions } = _m19;
|
|
|
1135
1135
|
|
|
1136
1136
|
|
|
1137
1137
|
|
|
1138
|
-
function csvField(value, delimiter, protect, quote, booleanText
|
|
1139
|
-
|
|
1140
|
-
value = nullValue;
|
|
1138
|
+
function csvField(value, delimiter, protect, quote, booleanText) {
|
|
1139
|
+
const kind = typeof value;
|
|
1141
1140
|
let text;
|
|
1142
1141
|
if (value == null)
|
|
1143
1142
|
text = "";
|
|
1143
|
+
else if (kind === "string")
|
|
1144
|
+
text = value;
|
|
1145
|
+
else if (kind === "number") {
|
|
1146
|
+
text = Number.isFinite(value) ? String(value) : "";
|
|
1147
|
+
// Numeric text has no CSV delimiter, quote or line break to escape.
|
|
1148
|
+
return quote === "all" ? '"' + text + '"' : text;
|
|
1149
|
+
}
|
|
1150
|
+
else if (kind === "boolean")
|
|
1151
|
+
text = booleanText[value ? "true" : "false"];
|
|
1144
1152
|
else if (isDate(value))
|
|
1145
1153
|
text = Number.isFinite(value.getTime()) ? value.toISOString() : "";
|
|
1146
|
-
else if (typeof value === "boolean")
|
|
1147
|
-
text = booleanText[value ? "true" : "false"];
|
|
1148
|
-
else if (typeof value === "number")
|
|
1149
|
-
text = Number.isFinite(value) ? String(value) : "";
|
|
1150
|
-
else if (typeof value === "string")
|
|
1151
|
-
text = value;
|
|
1152
1154
|
else {
|
|
1153
1155
|
if (typeof value.then === "function")
|
|
1154
1156
|
void Promise.resolve(value).catch(() => { });
|
|
1155
1157
|
throw new TypeError("CSV cells and formatter results must be synchronous strings, numbers, booleans, Dates or null.");
|
|
1156
1158
|
}
|
|
1157
|
-
|
|
1159
|
+
// Only ASCII spaces, controls and markers through @ can begin the protected prefix.
|
|
1160
|
+
if (protect && (kind === "string" || kind === "boolean") && text.charCodeAt(0) <= 64 && /^ *[=+\-@\t\r\n]/.test(text))
|
|
1158
1161
|
text = "'" + text;
|
|
1159
|
-
return quote === "all" || (quote === "strings" &&
|
|
1160
|
-
? '"' + text.replace(/"/g, '""') + '"' : text;
|
|
1162
|
+
return quote === "all" || (quote === "strings" && kind === "string") || text.includes(delimiter) || /["\r\n]/.test(text)
|
|
1163
|
+
? '"' + (text.includes('"') ? text.replace(/"/g, '""') : text) + '"' : text;
|
|
1161
1164
|
}
|
|
1162
1165
|
async function writeCsvTo(rows, destination, configuration) {
|
|
1163
1166
|
const options = captureCsvOptions(configuration);
|
|
@@ -1209,7 +1212,7 @@ async function write(rows, sink, options) {
|
|
|
1209
1212
|
value = options.nullValue;
|
|
1210
1213
|
budget.cell(typeof value === "boolean" ? booleanText[value ? "true" : "false"] : value);
|
|
1211
1214
|
checkAbort(signal);
|
|
1212
|
-
text += (i ? delimiter : "") + csvField(value, delimiter, protect, quote, booleanText
|
|
1215
|
+
text += (i ? delimiter : "") + csvField(value, delimiter, protect, quote, booleanText);
|
|
1213
1216
|
if (text.length >= buffer.chunkSize || (i & 127) === 127 && taskYieldDue()) {
|
|
1214
1217
|
if (buffer.append(text))
|
|
1215
1218
|
return buffer.flush().then(() => record(values, header, i + 1, snapshot));
|
|
@@ -1257,7 +1260,7 @@ async function writeCsv(rows, configuration) {
|
|
|
1257
1260
|
}
|
|
1258
1261
|
}
|
|
1259
1262
|
const _exports = Object.freeze({ saveBlob: _m1.saveBlob, ExportCell: _m5.ExportCell, writeCsvTo: writeCsvTo, writeCsv: writeCsv });
|
|
1260
|
-
_modules.set("
|
|
1263
|
+
_modules.set("b48bcab805d4c75294dd8d8e8dc57f96d9db3f5af31a8f0ddc6562f010f566e4", _exports);
|
|
1261
1264
|
return _exports;
|
|
1262
1265
|
})();
|
|
1263
1266
|
|
|
@@ -1832,7 +1835,7 @@ _modules.set("699a019e0c3f317a62bf3a6e59b76b6cf1645908b0f1b1f157c18f4d4f368dfb",
|
|
|
1832
1835
|
return _exports;
|
|
1833
1836
|
})();
|
|
1834
1837
|
|
|
1835
|
-
const _m22 = _modules.get("
|
|
1838
|
+
const _m22 = _modules.get("945379594834125fea38bc00f02ef077409dd15f6ed67279e63e89afe0bb944b") ?? (() => {
|
|
1836
1839
|
|
|
1837
1840
|
|
|
1838
1841
|
|
|
@@ -1910,7 +1913,16 @@ class OpcPackage {
|
|
|
1910
1913
|
throw new OfficeIMOError("INVALID_STATE", "OPC package is finalized."); }
|
|
1911
1914
|
reserve(uri, type) {
|
|
1912
1915
|
this.open();
|
|
1916
|
+
// OPC part names become ZIP entry names. Reject oversized and deeply nested
|
|
1917
|
+
// names before collecting every ancestor prefix.
|
|
1918
|
+
if (typeof uri === "string" && uri.length > 65536)
|
|
1919
|
+
throw new OfficeIMOError("RESOURCE_LIMIT", "OPC part name exceeds the ZIP entry-name limit.");
|
|
1913
1920
|
uri = partUri(uri);
|
|
1921
|
+
let depth = 0;
|
|
1922
|
+
for (let index = 0; index < uri.length; index++) {
|
|
1923
|
+
if (uri[index] === "/" && ++depth > 64)
|
|
1924
|
+
throw new OfficeIMOError("RESOURCE_LIMIT", "OPC part name exceeds the directory-depth limit.");
|
|
1925
|
+
}
|
|
1914
1926
|
if (/\/_rels(?:\/|$)/i.test(uri) || uri.toLowerCase() === "/[content_types].xml")
|
|
1915
1927
|
throw new TypeError("Package metadata part names are reserved.");
|
|
1916
1928
|
const key = uri.toLowerCase();
|
|
@@ -2082,7 +2094,7 @@ class OpcPackage {
|
|
|
2082
2094
|
}
|
|
2083
2095
|
}
|
|
2084
2096
|
const _exports = Object.freeze({ partUri: _m23.partUri, relationshipPartUri: _m23.relationshipPartUri, relativePartTarget: _m23.relativePartTarget, corePropertiesXml: _m24.corePropertiesXml, appPropertiesXml: _m24.appPropertiesXml, relationshipsNamespace: relationshipsNamespace, officeRelationshipsNamespace: officeRelationshipsNamespace, contentTypesNamespace: contentTypesNamespace, relationshipTypes: relationshipTypes, ContentTypes: ContentTypes, OpcPackage: OpcPackage });
|
|
2085
|
-
_modules.set("
|
|
2097
|
+
_modules.set("945379594834125fea38bc00f02ef077409dd15f6ed67279e63e89afe0bb944b", _exports);
|
|
2086
2098
|
return _exports;
|
|
2087
2099
|
})();
|
|
2088
2100
|
|
|
@@ -2535,7 +2547,7 @@ _modules.set("f1de2157d2aefa347a314940eb7f89c16545e11f69923920e605409433742f93",
|
|
|
2535
2547
|
return _exports;
|
|
2536
2548
|
})();
|
|
2537
2549
|
|
|
2538
|
-
const _m32 = _modules.get("
|
|
2550
|
+
const _m32 = _modules.get("e88a83ca79cd099fc2de29689554c913c7d04b17018098f81c43044064fcdfb8") ?? (() => {
|
|
2539
2551
|
const { cleanXml, escapeXml } = _m25;
|
|
2540
2552
|
|
|
2541
2553
|
const { assertExportValue, assertScalar } = _m5;
|
|
@@ -2594,14 +2606,23 @@ function columnName(index) {
|
|
|
2594
2606
|
return name;
|
|
2595
2607
|
}
|
|
2596
2608
|
function clipName(text, length) { return text.slice(0, length).replace(/[\ud800-\udbff]$/, ""); }
|
|
2609
|
+
function trimSheetNameEdges(text) {
|
|
2610
|
+
let start = 0, end = text.length;
|
|
2611
|
+
const removable = (character) => character === "'" || /\s/u.test(character);
|
|
2612
|
+
while (start < end && removable(text[start]))
|
|
2613
|
+
start++;
|
|
2614
|
+
while (end > start && removable(text[end - 1]))
|
|
2615
|
+
end--;
|
|
2616
|
+
return text.slice(start, end);
|
|
2617
|
+
}
|
|
2597
2618
|
function sheetName(requested, names, policy, register = true) {
|
|
2598
2619
|
if (typeof requested !== "string")
|
|
2599
2620
|
throw new TypeError("Sheet name must be a string.");
|
|
2600
2621
|
// Validate and deduplicate the decoded literal value, before ST_Xstring attribute encoding.
|
|
2601
2622
|
// A requested _xHHHH_ token is literal text; the serializer protects its leading underscore.
|
|
2602
|
-
let base = cleanXml(requested, policy).replace(/[\[\]:*?/\\]/g, "_")
|
|
2623
|
+
let base = trimSheetNameEdges(cleanXml(requested, policy).replace(/[\[\]:*?/\\]/g, "_"));
|
|
2603
2624
|
// Clipping can expose an internal apostrophe or the reserved History name.
|
|
2604
|
-
base = clipName(base, 31)
|
|
2625
|
+
base = trimSheetNameEdges(clipName(base, 31));
|
|
2605
2626
|
if (!base)
|
|
2606
2627
|
base = "Sheet";
|
|
2607
2628
|
if (base.toLowerCase() === "history")
|
|
@@ -2628,11 +2649,57 @@ function excelDate(date, mode) {
|
|
|
2628
2649
|
return (time - Date.UTC(1899, 11, 31)) / 86400000 + (time >= Date.UTC(1900, 2, 1) ? 1 : 0);
|
|
2629
2650
|
}
|
|
2630
2651
|
const _exports = Object.freeze({ Cell: Cell, assertXlsxValue: assertXlsxValue, copyValue: copyValue, cellText: cellText, inlineText: inlineText, columnName: columnName, sheetName: sheetName, excelDate: excelDate });
|
|
2631
|
-
_modules.set("
|
|
2652
|
+
_modules.set("e88a83ca79cd099fc2de29689554c913c7d04b17018098f81c43044064fcdfb8", _exports);
|
|
2632
2653
|
return _exports;
|
|
2633
2654
|
})();
|
|
2634
2655
|
|
|
2635
|
-
const
|
|
2656
|
+
const _m34 = _modules.get("e92456dbf0c50db97c8b6cf9a09365489ca3a882b4d506ad4dd841805b1146d1") ?? (() => {
|
|
2657
|
+
const { captureFields } = _m10;
|
|
2658
|
+
|
|
2659
|
+
/** Capture bounded disjoint ranges before asynchronous serialization; absent columns stay visible. */
|
|
2660
|
+
function captureColumnOutlines(input, columns) {
|
|
2661
|
+
if (input === undefined)
|
|
2662
|
+
return undefined;
|
|
2663
|
+
if (!Array.isArray(input) || input.length > columns)
|
|
2664
|
+
throw new TypeError("Column outlines must be bounded, non-overlapping ranges.");
|
|
2665
|
+
let end = 0;
|
|
2666
|
+
return Object.freeze(input.map(range => {
|
|
2667
|
+
if (!range || typeof range !== "object")
|
|
2668
|
+
throw new TypeError("Column outlines require range metadata.");
|
|
2669
|
+
return captureFields(range, ["firstColumn", "columnCount", "level", "hidden", "collapsed"]);
|
|
2670
|
+
}).sort((a, b) => a.firstColumn - b.firstColumn).map(range => {
|
|
2671
|
+
const { firstColumn, columnCount, level = 0, hidden, collapsed } = range;
|
|
2672
|
+
if (!Number.isSafeInteger(firstColumn) || firstColumn < end || !Number.isSafeInteger(columnCount) || columnCount < 1 || firstColumn + columnCount > columns)
|
|
2673
|
+
throw new RangeError("Column outline ranges must be disjoint and within the declared columns.");
|
|
2674
|
+
if (!Number.isInteger(level) || level < 0 || level > 7)
|
|
2675
|
+
throw new RangeError("Column outline level must be from zero through seven.");
|
|
2676
|
+
for (const flag of [hidden, collapsed])
|
|
2677
|
+
if (flag !== undefined && typeof flag !== "boolean")
|
|
2678
|
+
throw new TypeError("Column outline flags must be booleans.");
|
|
2679
|
+
end = firstColumn + columnCount;
|
|
2680
|
+
return Object.freeze({ firstColumn, columnCount, level, ...(hidden === undefined ? {} : { hidden }), ...(collapsed === undefined ? {} : { collapsed }) });
|
|
2681
|
+
}));
|
|
2682
|
+
}
|
|
2683
|
+
/** @internal Positions are captured even when a sheet has only column outlines. */
|
|
2684
|
+
function validateOutlinePositions(options) {
|
|
2685
|
+
for (const flag of [options.outlineSummaryBelow, options.outlineSummaryRight])
|
|
2686
|
+
if (flag !== undefined && typeof flag !== "boolean")
|
|
2687
|
+
throw new TypeError("Outline summary positions must be booleans.");
|
|
2688
|
+
}
|
|
2689
|
+
/** @internal Resolve at most 16,384 columns once, without retaining any worksheet body. */
|
|
2690
|
+
function columnOutlineMap(ranges) {
|
|
2691
|
+
const result = new Map();
|
|
2692
|
+
for (const range of ranges ?? [])
|
|
2693
|
+
for (let index = range.firstColumn; index < range.firstColumn + range.columnCount; index++)
|
|
2694
|
+
result.set(index, range);
|
|
2695
|
+
return result;
|
|
2696
|
+
}
|
|
2697
|
+
const _exports = Object.freeze({ captureColumnOutlines: captureColumnOutlines, validateOutlinePositions: validateOutlinePositions, columnOutlineMap: columnOutlineMap });
|
|
2698
|
+
_modules.set("e92456dbf0c50db97c8b6cf9a09365489ca3a882b4d506ad4dd841805b1146d1", _exports);
|
|
2699
|
+
return _exports;
|
|
2700
|
+
})();
|
|
2701
|
+
|
|
2702
|
+
const _m37 = _modules.get("aaf6808e1812a251687fd513480fe845b5677ffa493bccf519409807fe4d250c") ?? (() => {
|
|
2636
2703
|
const { ChunkedTextSink } = _m3;
|
|
2637
2704
|
|
|
2638
2705
|
const { escapeXml, xmlDeclaration } = _m25;
|
|
@@ -2741,18 +2808,18 @@ async function writeChartXml(chart, destination, policy, signal) {
|
|
|
2741
2808
|
await text.close();
|
|
2742
2809
|
}
|
|
2743
2810
|
const _exports = Object.freeze({ chartNamespace: chartNamespace, chartContentType: chartContentType, chartAnchorXml: chartAnchorXml, writeChartXml: writeChartXml });
|
|
2744
|
-
_modules.set("
|
|
2811
|
+
_modules.set("aaf6808e1812a251687fd513480fe845b5677ffa493bccf519409807fe4d250c", _exports);
|
|
2745
2812
|
return _exports;
|
|
2746
2813
|
})();
|
|
2747
2814
|
|
|
2748
|
-
const
|
|
2815
|
+
const _m36 = _modules.get("d599dca57105b9cc787ba2498051ed0193cbdb1e5f23116e35bc77cd67a233f1") ?? (() => {
|
|
2749
2816
|
const { cleanXml, escapeXml, escapeOoxmlAttribute, xmlDeclaration } = _m25;
|
|
2750
2817
|
|
|
2751
2818
|
const { copyExportLink } = _m7;
|
|
2752
2819
|
|
|
2753
2820
|
const { officeRelationshipsNamespace } = _m22;
|
|
2754
2821
|
|
|
2755
|
-
const { chartAnchorXml } =
|
|
2822
|
+
const { chartAnchorXml } = _m37;
|
|
2756
2823
|
|
|
2757
2824
|
const { captureFields } = _m10;
|
|
2758
2825
|
|
|
@@ -2819,14 +2886,14 @@ function drawingXml(images, policy, charts = []) {
|
|
|
2819
2886
|
}
|
|
2820
2887
|
const drawingContentType = "application/vnd.openxmlformats-officedocument.drawing+xml";
|
|
2821
2888
|
const _exports = Object.freeze({ copyDrawingAnchor: copyDrawingAnchor, cellPosition: cellPosition, copyHyperlink: copyHyperlink, copyImage: copyImage, hyperlinksXml: hyperlinksXml, drawingXml: drawingXml, drawingContentType: drawingContentType });
|
|
2822
|
-
_modules.set("
|
|
2889
|
+
_modules.set("d599dca57105b9cc787ba2498051ed0193cbdb1e5f23116e35bc77cd67a233f1", _exports);
|
|
2823
2890
|
return _exports;
|
|
2824
2891
|
})();
|
|
2825
2892
|
|
|
2826
|
-
const
|
|
2893
|
+
const _m39 = _modules.get("39155eb25a58694b2caf100529b6c13dbe91f583741807b46232a2a567e19ecb") ?? (() => {
|
|
2827
2894
|
const { OfficeIMOError } = _m2;
|
|
2828
2895
|
|
|
2829
|
-
const { cellPosition } =
|
|
2896
|
+
const { cellPosition } = _m36;
|
|
2830
2897
|
|
|
2831
2898
|
function indexRows(regions) {
|
|
2832
2899
|
if (!regions.length)
|
|
@@ -2924,11 +2991,11 @@ class MergeRegions {
|
|
|
2924
2991
|
throw new RangeError("Merged ranges must stay within exported rows."); }
|
|
2925
2992
|
}
|
|
2926
2993
|
const _exports = Object.freeze({ MergeRegions: MergeRegions });
|
|
2927
|
-
_modules.set("
|
|
2994
|
+
_modules.set("39155eb25a58694b2caf100529b6c13dbe91f583741807b46232a2a567e19ecb", _exports);
|
|
2928
2995
|
return _exports;
|
|
2929
2996
|
})();
|
|
2930
2997
|
|
|
2931
|
-
const
|
|
2998
|
+
const _m40 = _modules.get("2a51a034ac74f5a0656731f46740bb80adee48101e7a4b51253d9399df11d238") ?? (() => {
|
|
2932
2999
|
const { ExportCell } = _m5;
|
|
2933
3000
|
|
|
2934
3001
|
const { tableSpans } = _m17;
|
|
@@ -2961,11 +3028,11 @@ class StructuredRows {
|
|
|
2961
3028
|
}
|
|
2962
3029
|
}
|
|
2963
3030
|
const _exports = Object.freeze({ StructuredRows: StructuredRows });
|
|
2964
|
-
_modules.set("
|
|
3031
|
+
_modules.set("2a51a034ac74f5a0656731f46740bb80adee48101e7a4b51253d9399df11d238", _exports);
|
|
2965
3032
|
return _exports;
|
|
2966
3033
|
})();
|
|
2967
3034
|
|
|
2968
|
-
const
|
|
3035
|
+
const _m38 = _modules.get("b732883d8635c0adf27cef2a3900f08374d02c9ce1b005d02af6853c8be627cc") ?? (() => {
|
|
2969
3036
|
const { ExportCell } = _m5;
|
|
2970
3037
|
|
|
2971
3038
|
const { isDate } = _m6;
|
|
@@ -2976,13 +3043,13 @@ const { FormulaCell } = _m33;
|
|
|
2976
3043
|
|
|
2977
3044
|
const { escapeOoxmlAttribute } = _m25;
|
|
2978
3045
|
|
|
2979
|
-
const { MergeRegions } =
|
|
3046
|
+
const { MergeRegions } = _m39;
|
|
2980
3047
|
|
|
2981
3048
|
const { OfficeIMOError } = _m2;
|
|
2982
3049
|
|
|
2983
3050
|
const { createTotals } = _m12;
|
|
2984
3051
|
|
|
2985
|
-
const { StructuredRows } =
|
|
3052
|
+
const { StructuredRows } = _m40;
|
|
2986
3053
|
|
|
2987
3054
|
/** @internal A computed formula with a numeric cache; no public arbitrary-formula input. */
|
|
2988
3055
|
class ComputedTotal {
|
|
@@ -3162,11 +3229,11 @@ function printXml(options, policy) {
|
|
|
3162
3229
|
(options.footer === undefined ? "" : '<oddFooter>' + escapeOoxmlAttribute("&C" + options.footer.replace(/&/g, "&&"), policy) + '</oddFooter>') + '</headerFooter>' : "");
|
|
3163
3230
|
}
|
|
3164
3231
|
const _exports = Object.freeze({ ComputedTotal: ComputedTotal, ReportLayout: ReportLayout, totalFormula: totalFormula, printXml: printXml });
|
|
3165
|
-
_modules.set("
|
|
3232
|
+
_modules.set("b732883d8635c0adf27cef2a3900f08374d02c9ce1b005d02af6853c8be627cc", _exports);
|
|
3166
3233
|
return _exports;
|
|
3167
3234
|
})();
|
|
3168
3235
|
|
|
3169
|
-
const
|
|
3236
|
+
const _m42 = _modules.get("09d589ff8f82302ce4c17411c7b811a87fb034e61e4b3013b7f8b18853a90449") ?? (() => {
|
|
3170
3237
|
const { columnName } = _m32;
|
|
3171
3238
|
|
|
3172
3239
|
/** @internal Data-column selectors use stable keys or one-based worksheet columns. */
|
|
@@ -3193,11 +3260,11 @@ function qualifiedCell(sheetName, column, row) {
|
|
|
3193
3260
|
return qualifiedColumnRange(sheetName, column, row, 1).split(":")[0];
|
|
3194
3261
|
}
|
|
3195
3262
|
const _exports = Object.freeze({ resolveDataColumn: resolveDataColumn, qualifiedColumnRange: qualifiedColumnRange, qualifiedCell: qualifiedCell });
|
|
3196
|
-
_modules.set("
|
|
3263
|
+
_modules.set("09d589ff8f82302ce4c17411c7b811a87fb034e61e4b3013b7f8b18853a90449", _exports);
|
|
3197
3264
|
return _exports;
|
|
3198
3265
|
})();
|
|
3199
3266
|
|
|
3200
|
-
const
|
|
3267
|
+
const _m43 = _modules.get("55a9bd1fb59ea19bf98a03859769a119fdc71a44075e560937e7184720e53514") ?? (() => {
|
|
3201
3268
|
const { OfficeIMOError } = _m2;
|
|
3202
3269
|
|
|
3203
3270
|
const { columnName } = _m32;
|
|
@@ -3240,22 +3307,22 @@ function dataRowReference(firstColumn, lastColumn, headerRows, dataRows, ranges)
|
|
|
3240
3307
|
return reference || undefined;
|
|
3241
3308
|
}
|
|
3242
3309
|
const _exports = Object.freeze({ retainDataRowRanges: retainDataRowRanges, dataRowRanges: dataRowRanges, dataRowCount: dataRowCount, dataRowReference: dataRowReference });
|
|
3243
|
-
_modules.set("
|
|
3310
|
+
_modules.set("55a9bd1fb59ea19bf98a03859769a119fdc71a44075e560937e7184720e53514", _exports);
|
|
3244
3311
|
return _exports;
|
|
3245
3312
|
})();
|
|
3246
3313
|
|
|
3247
|
-
const
|
|
3314
|
+
const _m41 = _modules.get("a1b616256344317787b0b102f35d062009d6a2e9c873b9f106c99c095c92ace3") ?? (() => {
|
|
3248
3315
|
const { cleanXml, escapeXml, escapeOoxmlAttribute } = _m25;
|
|
3249
3316
|
|
|
3250
|
-
const { cellPosition } =
|
|
3317
|
+
const { cellPosition } = _m36;
|
|
3251
3318
|
|
|
3252
3319
|
const { colorArgb } = _m30;
|
|
3253
3320
|
|
|
3254
3321
|
const { fields, optionalBoolean, differentialXml } = _m31;
|
|
3255
3322
|
|
|
3256
|
-
const { resolveDataColumn } =
|
|
3323
|
+
const { resolveDataColumn } = _m42;
|
|
3257
3324
|
|
|
3258
|
-
const { dataRowReference } =
|
|
3325
|
+
const { dataRowReference } = _m43;
|
|
3259
3326
|
|
|
3260
3327
|
function target(range, columns) {
|
|
3261
3328
|
if (typeof range === "string") {
|
|
@@ -3410,11 +3477,11 @@ class ConditionalFormats {
|
|
|
3410
3477
|
}
|
|
3411
3478
|
}
|
|
3412
3479
|
const _exports = Object.freeze({ prepareConditionalFormats: prepareConditionalFormats, ConditionalFormats: ConditionalFormats });
|
|
3413
|
-
_modules.set("
|
|
3480
|
+
_modules.set("a1b616256344317787b0b102f35d062009d6a2e9c873b9f106c99c095c92ace3", _exports);
|
|
3414
3481
|
return _exports;
|
|
3415
3482
|
})();
|
|
3416
3483
|
|
|
3417
|
-
const
|
|
3484
|
+
const _m44 = _modules.get("13fa96d976e4dec7343dd3a392829567f1fcb574324a98f5a5d3a61c9a0dc27d") ?? (() => {
|
|
3418
3485
|
const { OfficeIMOError } = _m2;
|
|
3419
3486
|
|
|
3420
3487
|
const { checkAbort } = _m4;
|
|
@@ -3423,9 +3490,9 @@ const { cleanXml, escapeOoxmlAttribute, escapeXml } = _m25;
|
|
|
3423
3490
|
|
|
3424
3491
|
const { fields, optionalBoolean } = _m31;
|
|
3425
3492
|
|
|
3426
|
-
const { resolveDataColumn } =
|
|
3493
|
+
const { resolveDataColumn } = _m42;
|
|
3427
3494
|
|
|
3428
|
-
const { dataRowReference } =
|
|
3495
|
+
const { dataRowReference } = _m43;
|
|
3429
3496
|
|
|
3430
3497
|
function message(value, maximum, name) {
|
|
3431
3498
|
if (value === undefined)
|
|
@@ -3514,11 +3581,11 @@ function* dataValidationsXml(prepared, headerRows, dataRows, ranges) {
|
|
|
3514
3581
|
yield '</dataValidations>';
|
|
3515
3582
|
}
|
|
3516
3583
|
const _exports = Object.freeze({ prepareDataValidations: prepareDataValidations, dataValidationsXml: dataValidationsXml });
|
|
3517
|
-
_modules.set("
|
|
3584
|
+
_modules.set("13fa96d976e4dec7343dd3a392829567f1fcb574324a98f5a5d3a61c9a0dc27d", _exports);
|
|
3518
3585
|
return _exports;
|
|
3519
3586
|
})();
|
|
3520
3587
|
|
|
3521
|
-
const
|
|
3588
|
+
const _m35 = _modules.get("a61e744201bb537b635b367b1764bd85892101d55e00b8c78faec8be89577376") ?? (() => {
|
|
3522
3589
|
const { checkAbort, consumeRows, inputRows, pause, taskYieldDue } = _m4;
|
|
3523
3590
|
|
|
3524
3591
|
const { ChunkedTextSink, BlobByteSink } = _m3;
|
|
@@ -3539,25 +3606,27 @@ const { Cell, cellText, columnName, inlineText, excelDate, copyValue } = _m32;
|
|
|
3539
3606
|
|
|
3540
3607
|
const { spreadsheetNamespace, colorArgb, validateStylePatch, copyStylePatch } = _m29;
|
|
3541
3608
|
|
|
3542
|
-
const { copyHyperlink, copyImage, hyperlinksXml, cellPosition } =
|
|
3609
|
+
const { copyHyperlink, copyImage, hyperlinksXml, cellPosition } = _m36;
|
|
3543
3610
|
|
|
3544
3611
|
const { ExportCell, assertScalar } = _m5;
|
|
3545
3612
|
|
|
3546
|
-
const { ReportLayout, ComputedTotal, printXml } =
|
|
3613
|
+
const { ReportLayout, ComputedTotal, printXml } = _m38;
|
|
3547
3614
|
|
|
3548
3615
|
const { cleanXml } = _m25;
|
|
3549
3616
|
|
|
3550
|
-
const { ConditionalFormats, prepareConditionalFormats } =
|
|
3617
|
+
const { ConditionalFormats, prepareConditionalFormats } = _m41;
|
|
3551
3618
|
|
|
3552
3619
|
const { isDate } = _m6;
|
|
3553
3620
|
|
|
3554
3621
|
const { FormulaCell, formulaXml, isSubtotalFormula } = _m33;
|
|
3555
3622
|
|
|
3556
|
-
const { prepareDataValidations, dataValidationsXml } =
|
|
3623
|
+
const { prepareDataValidations, dataValidationsXml } = _m44;
|
|
3624
|
+
|
|
3625
|
+
const { qualifiedCell, qualifiedColumnRange, resolveDataColumn } = _m42;
|
|
3557
3626
|
|
|
3558
|
-
const {
|
|
3627
|
+
const { dataRowRanges, dataRowCount } = _m43;
|
|
3559
3628
|
|
|
3560
|
-
const {
|
|
3629
|
+
const { captureColumnOutlines, columnOutlineMap, validateOutlinePositions } = _m34;
|
|
3561
3630
|
|
|
3562
3631
|
const maximumHyperlinks = 65530;
|
|
3563
3632
|
function checkHyperlinkCount(count) {
|
|
@@ -3689,6 +3758,8 @@ class Worksheet {
|
|
|
3689
3758
|
throw new TypeError("Row and style callbacks must be functions.");
|
|
3690
3759
|
if (options.maxOutlineLevel !== undefined && (!Number.isInteger(options.maxOutlineLevel) || options.maxOutlineLevel < 0 || options.maxOutlineLevel > 7))
|
|
3691
3760
|
throw new RangeError("Maximum outline level must be an integer from zero through seven.");
|
|
3761
|
+
validateOutlinePositions(options);
|
|
3762
|
+
captureColumnOutlines(options.columnOutlines, columns.length);
|
|
3692
3763
|
if (options.rowOutline && options.maxOutlineLevel === undefined)
|
|
3693
3764
|
throw new TypeError("A row outline callback requires maxOutlineLevel before streamed rows are written.");
|
|
3694
3765
|
if (!options.rowOutline && options.maxOutlineLevel !== undefined)
|
|
@@ -3973,17 +4044,22 @@ class Worksheet {
|
|
|
3973
4044
|
const buffer = this.buffer = new ChunkedTextSink(this.entry, this.book.settings.signal), opts = this.options;
|
|
3974
4045
|
const x = opts.freezeColumns ?? 0, y = opts.freezeHeader ? this.headerRows : 0;
|
|
3975
4046
|
const pane = x && y ? "bottomRight" : x ? "topRight" : "bottomLeft", cell = columnName(x + 1) + (y + 1);
|
|
4047
|
+
const outlines = columnOutlineMap(opts.columnOutlines), hasOutline = !!opts.rowOutline || outlines.size > 0;
|
|
4048
|
+
const maxColumnLevel = Math.max(0, ...Array.from(outlines.values(), value => value.level ?? 0));
|
|
3976
4049
|
await buffer.write(xmlDeclaration + '<worksheet xmlns="' + spreadsheetNamespace + '" xmlns:r="' + officeRelationshipsNamespace + '">' +
|
|
3977
|
-
(opts.print ||
|
|
4050
|
+
(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">' +
|
|
3978
4051
|
(x || y ? '<pane' + (x ? ' xSplit="' + x + '"' : "") + (y ? ' ySplit="' + y + '"' : "") + ' topLeftCell="' + cell + '" activePane="' + pane + '" state="frozen"/><selection pane="' + pane + '" activeCell="' + cell + '" sqref="' + cell + '"/>' : "") + '</sheetView></sheetViews>' +
|
|
3979
|
-
(
|
|
4052
|
+
(hasOutline ? '<sheetFormatPr defaultRowHeight="15"' + (opts.rowOutline ? ' outlineLevelRow="' + opts.maxOutlineLevel + '"' : "") + (outlines.size ? ' outlineLevelCol="' + maxColumnLevel + '"' : "") + '/>' : ""));
|
|
3980
4053
|
const defaultWidth = opts.defaultColumnWidth ?? (this.table ? 20 : undefined);
|
|
3981
|
-
if (this.columns.some((_, i) => this.layout.widths[i] !== undefined || defaultWidth !== undefined)) {
|
|
4054
|
+
if (this.columns.some((_, i) => this.layout.widths[i] !== undefined || defaultWidth !== undefined || outlines.has(i))) {
|
|
3982
4055
|
await buffer.write('<cols>');
|
|
3983
4056
|
for (let i = 0; i < this.columns.length; i++) {
|
|
3984
|
-
const width = this.layout.widths[i] ?? defaultWidth;
|
|
3985
|
-
if (width !== undefined)
|
|
3986
|
-
await buffer.write('<col min="' + (i + 1) + '" max="' + (i + 1) + '"
|
|
4057
|
+
const width = this.layout.widths[i] ?? defaultWidth, outline = outlines.get(i);
|
|
4058
|
+
if (width !== undefined || outline)
|
|
4059
|
+
await buffer.write('<col min="' + (i + 1) + '" max="' + (i + 1) + '"' +
|
|
4060
|
+
(width === undefined ? "" : ' width="' + width + '" customWidth="1"') +
|
|
4061
|
+
(outline?.level ? ' outlineLevel="' + outline.level + '"' : "") + (outline?.hidden ? ' hidden="1"' : "") +
|
|
4062
|
+
(outline?.collapsed ? ' collapsed="1"' : "") + '/>');
|
|
3987
4063
|
}
|
|
3988
4064
|
await buffer.write('</cols>');
|
|
3989
4065
|
}
|
|
@@ -4241,11 +4317,11 @@ class Worksheet {
|
|
|
4241
4317
|
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); }
|
|
4242
4318
|
}
|
|
4243
4319
|
const _exports = Object.freeze({ Worksheet: Worksheet });
|
|
4244
|
-
_modules.set("
|
|
4320
|
+
_modules.set("a61e744201bb537b635b367b1764bd85892101d55e00b8c78faec8be89577376", _exports);
|
|
4245
4321
|
return _exports;
|
|
4246
4322
|
})();
|
|
4247
4323
|
|
|
4248
|
-
const
|
|
4324
|
+
const _m45 = _modules.get("1b4698baf9a9c9b3505988abac9f83967c32cf37483d70a949ae89c4485532a4") ?? (() => {
|
|
4249
4325
|
const { escapeOoxmlAttribute, escapeXml, xmlDeclaration } = _m25;
|
|
4250
4326
|
|
|
4251
4327
|
const { cellText, columnName } = _m32;
|
|
@@ -4256,7 +4332,7 @@ const { ExportCell } = _m5;
|
|
|
4256
4332
|
|
|
4257
4333
|
const { Cell } = _m32;
|
|
4258
4334
|
|
|
4259
|
-
const { totalFormula } =
|
|
4335
|
+
const { totalFormula } = _m38;
|
|
4260
4336
|
|
|
4261
4337
|
function defineTable(id, options, columns, policy) {
|
|
4262
4338
|
const name = options.name ?? "Table" + id;
|
|
@@ -4288,11 +4364,11 @@ function tableXml(table, rowCount, policy, headerRow = 1, footer) {
|
|
|
4288
4364
|
'" showColumnStripes="' + (options.bandedColumns ? 1 : 0) + '"/></table>';
|
|
4289
4365
|
}
|
|
4290
4366
|
const _exports = Object.freeze({ defineTable: defineTable, tableXml: tableXml });
|
|
4291
|
-
_modules.set("
|
|
4367
|
+
_modules.set("1b4698baf9a9c9b3505988abac9f83967c32cf37483d70a949ae89c4485532a4", _exports);
|
|
4292
4368
|
return _exports;
|
|
4293
4369
|
})();
|
|
4294
4370
|
|
|
4295
|
-
const
|
|
4371
|
+
const _m46 = _modules.get("0c395783b9d7cc62dd39a21adeb698ad4a61e2c89f7b1fc8712e2eb2ccfe9d92") ?? (() => {
|
|
4296
4372
|
const { OfficeIMOError } = _m2;
|
|
4297
4373
|
|
|
4298
4374
|
const { cleanXml } = _m25;
|
|
@@ -4360,13 +4436,13 @@ _modules.set("0c395783b9d7cc62dd39a21adeb698ad4a61e2c89f7b1fc8712e2eb2ccfe9d92",
|
|
|
4360
4436
|
return _exports;
|
|
4361
4437
|
})();
|
|
4362
4438
|
|
|
4363
|
-
const
|
|
4439
|
+
const _m47 = _modules.get("477ff98f49343b8ec4213008254b57a60dd42d07cb9843b3791d5e5f8e295865") ?? (() => {
|
|
4364
4440
|
const { captureFields } = _m10;
|
|
4365
4441
|
|
|
4366
4442
|
/** @internal The workbook owner captures these settings before validation or adapter merging. */
|
|
4367
4443
|
const workbookOptionFields = ["signal", "onProgress", "limits", "sink", "dateMode", "compression", "invalidCharacterPolicy", "appProperties", "cellValueWriters", "oversizedText", "creator", "title", "subject", "description", "created", "modified"];
|
|
4368
4444
|
/** @internal Worksheet settings also used by the portable sheet owner. */
|
|
4369
|
-
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"];
|
|
4445
|
+
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"];
|
|
4370
4446
|
/** @internal Includes inherited format-specific ceilings before a wrapper combines stream settings. */
|
|
4371
4447
|
const workbookLimitFields = ["maxRows", "maxCells", "maxTextCharacters", "maxOutputBytes", "maxStyles", "maxSheets", "maxOverflowCharacters", "maxHyperlinks", "maxImageBytes", "maxBufferedCells", "maxBufferedCharacters", "maxMergedRanges", "maxConditionalFormats", "maxDifferentialStyles", "maxCharts", "maxChartPoints", "maxChartTextCharacters", "maxFormulaCharacters", "maxDataValidations", "maxValidationTextCharacters"];
|
|
4372
4448
|
/** @internal Capture the workbook's known ceilings without dropping supported prototype fields. */
|
|
@@ -4379,11 +4455,11 @@ function captureWorkbookOptions(options) {
|
|
|
4379
4455
|
return { ...captured, ...(captured.limits === undefined ? {} : { limits: captureWorkbookLimits(captured.limits) }) };
|
|
4380
4456
|
}
|
|
4381
4457
|
const _exports = Object.freeze({ workbookOptionFields: workbookOptionFields, sheetOptionFields: sheetOptionFields, workbookLimitFields: workbookLimitFields, captureWorkbookLimits: captureWorkbookLimits, captureWorkbookOptions: captureWorkbookOptions });
|
|
4382
|
-
_modules.set("
|
|
4458
|
+
_modules.set("477ff98f49343b8ec4213008254b57a60dd42d07cb9843b3791d5e5f8e295865", _exports);
|
|
4383
4459
|
return _exports;
|
|
4384
4460
|
})();
|
|
4385
4461
|
|
|
4386
|
-
const
|
|
4462
|
+
const _m49 = _modules.get("35db01801a6b2e3e0c5acd7493e56f04b5b41b1d57afa8be28b8358378ad6494") ?? (() => {
|
|
4387
4463
|
const { checkAbort } = _m4;
|
|
4388
4464
|
|
|
4389
4465
|
const { NotSupportedError, OfficeIMOError } = _m2;
|
|
@@ -4515,18 +4591,18 @@ _modules.set("35db01801a6b2e3e0c5acd7493e56f04b5b41b1d57afa8be28b8358378ad6494",
|
|
|
4515
4591
|
return _exports;
|
|
4516
4592
|
})();
|
|
4517
4593
|
|
|
4518
|
-
const
|
|
4594
|
+
const _m48 = _modules.get("24f1417c3c320a8a41137c28f70b72091256c63010be0c88b684dce85f54950c") ?? (() => {
|
|
4519
4595
|
const { checkAbort } = _m4;
|
|
4520
4596
|
|
|
4521
4597
|
const { NotSupportedError, OfficeIMOError } = _m2;
|
|
4522
4598
|
|
|
4523
4599
|
const { cleanXml } = _m25;
|
|
4524
4600
|
|
|
4525
|
-
const { copyDrawingAnchor } =
|
|
4601
|
+
const { copyDrawingAnchor } = _m36;
|
|
4526
4602
|
|
|
4527
4603
|
const { captureFields } = _m10;
|
|
4528
4604
|
|
|
4529
|
-
const { captureChartRange, prepareChartBinding } =
|
|
4605
|
+
const { captureChartRange, prepareChartBinding } = _m49;
|
|
4530
4606
|
|
|
4531
4607
|
function fields(value, allowed, context) {
|
|
4532
4608
|
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
@@ -4682,11 +4758,11 @@ function prepareChart(input, policy, availablePoints, availableText, signal, res
|
|
|
4682
4758
|
points, textCharacters });
|
|
4683
4759
|
}
|
|
4684
4760
|
const _exports = Object.freeze({ prepareChart: prepareChart });
|
|
4685
|
-
_modules.set("
|
|
4761
|
+
_modules.set("24f1417c3c320a8a41137c28f70b72091256c63010be0c88b684dce85f54950c", _exports);
|
|
4686
4762
|
return _exports;
|
|
4687
4763
|
})();
|
|
4688
4764
|
|
|
4689
|
-
const _m21 = _modules.get("
|
|
4765
|
+
const _m21 = _modules.get("e89ecd2f5e1738c6e88f72ac2bcac70dfaa81b4aa86edf333e9b395cf2212e2a") ?? (() => {
|
|
4690
4766
|
const { beginTask, checkAbort, pause, taskYieldDue } = _m4;
|
|
4691
4767
|
|
|
4692
4768
|
const { OfficeIMOError } = _m2;
|
|
@@ -4709,25 +4785,27 @@ const { copyColumns } = _m11;
|
|
|
4709
4785
|
|
|
4710
4786
|
const { captureFields } = _m10;
|
|
4711
4787
|
|
|
4788
|
+
const { captureColumnOutlines } = _m34;
|
|
4789
|
+
|
|
4712
4790
|
const { captureTableSpans } = _m17;
|
|
4713
4791
|
|
|
4714
4792
|
const { assertExportValue } = _m5;
|
|
4715
4793
|
|
|
4716
|
-
const { Worksheet } =
|
|
4794
|
+
const { Worksheet } = _m35;
|
|
4717
4795
|
|
|
4718
|
-
const { defineTable, tableXml } =
|
|
4796
|
+
const { defineTable, tableXml } = _m45;
|
|
4719
4797
|
|
|
4720
|
-
const { copyHyperlink, drawingXml, drawingContentType } =
|
|
4798
|
+
const { copyHyperlink, drawingXml, drawingContentType } = _m36;
|
|
4721
4799
|
|
|
4722
|
-
const { TextOverflow } =
|
|
4800
|
+
const { TextOverflow } = _m46;
|
|
4723
4801
|
|
|
4724
|
-
const { captureWorkbookOptions, sheetOptionFields } =
|
|
4802
|
+
const { captureWorkbookOptions, sheetOptionFields } = _m47;
|
|
4725
4803
|
|
|
4726
|
-
const { prepareChart } =
|
|
4804
|
+
const { prepareChart } = _m48;
|
|
4727
4805
|
|
|
4728
|
-
const { qualifiedColumnRange, resolveDataColumn } =
|
|
4806
|
+
const { qualifiedColumnRange, resolveDataColumn } = _m42;
|
|
4729
4807
|
|
|
4730
|
-
const { chartContentType, writeChartXml } =
|
|
4808
|
+
const { chartContentType, writeChartXml } = _m37;
|
|
4731
4809
|
|
|
4732
4810
|
const xlsxMime = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
4733
4811
|
const formatType = (name) => "application/vnd.openxmlformats-officedocument.spreadsheetml." + name + "+xml";
|
|
@@ -4738,6 +4816,7 @@ function captureSheet(options, policy) {
|
|
|
4738
4816
|
const footer = captured.footer && captureFields(captured.footer, ["rows", "values", "totals", "style"]);
|
|
4739
4817
|
const print = captured.print && captureFields(captured.print, ["paper", "orientation", "fitToWidth", "fitToHeight", "repeatHeaders", "margins", "header", "footer"]);
|
|
4740
4818
|
return { ...captured, columns,
|
|
4819
|
+
...(captured.columnOutlines === undefined ? {} : { columnOutlines: captureColumnOutlines(captured.columnOutlines, columns.length) }),
|
|
4741
4820
|
...(captured.headerRows === undefined ? {} : { headerRows: captureTableSpans(captured.headerRows, columns.length) }),
|
|
4742
4821
|
...(footer ? { footer: { ...footer,
|
|
4743
4822
|
...(footer.rows === undefined ? {} : { rows: captureTableSpans(footer.rows, columns.length) }),
|
|
@@ -5164,14 +5243,14 @@ class Workbook {
|
|
|
5164
5243
|
}
|
|
5165
5244
|
}
|
|
5166
5245
|
const _exports = Object.freeze({ Workbook: Workbook });
|
|
5167
|
-
_modules.set("
|
|
5246
|
+
_modules.set("e89ecd2f5e1738c6e88f72ac2bcac70dfaa81b4aa86edf333e9b395cf2212e2a", _exports);
|
|
5168
5247
|
return _exports;
|
|
5169
5248
|
})();
|
|
5170
5249
|
|
|
5171
|
-
const
|
|
5250
|
+
const _m51 = _modules.get("a10003e971cd5ec2cee127bc9b029a0aa06fe3d50112838929d7a04a55e177c0") ?? (() => {
|
|
5172
5251
|
const { ExportCell, assertScalar } = _m5;
|
|
5173
5252
|
|
|
5174
|
-
const { captureWorkbookOptions, sheetOptionFields } =
|
|
5253
|
+
const { captureWorkbookOptions, sheetOptionFields } = _m47;
|
|
5175
5254
|
|
|
5176
5255
|
const { captureFields } = _m10;
|
|
5177
5256
|
|
|
@@ -5217,22 +5296,22 @@ function portableWorkbook(options = {}) {
|
|
|
5217
5296
|
return { ...options, cellValueWriters: wrapped };
|
|
5218
5297
|
}
|
|
5219
5298
|
const _exports = Object.freeze({ portableSheet: portableSheet, portableWorkbook: portableWorkbook });
|
|
5220
|
-
_modules.set("
|
|
5299
|
+
_modules.set("a10003e971cd5ec2cee127bc9b029a0aa06fe3d50112838929d7a04a55e177c0", _exports);
|
|
5221
5300
|
return _exports;
|
|
5222
5301
|
})();
|
|
5223
5302
|
|
|
5224
|
-
const
|
|
5303
|
+
const _m50 = _modules.get("5bfd5c9c5e179305b9bebd6cb0d6a0d75e974b223e119e0fd4fbb773325f1e63") ?? (() => {
|
|
5225
5304
|
const { withDestination } = _m3;
|
|
5226
5305
|
|
|
5227
5306
|
const { copyColumns } = _m11;
|
|
5228
5307
|
|
|
5229
5308
|
const { Workbook } = _m21;
|
|
5230
5309
|
|
|
5231
|
-
const { portableSheet, portableWorkbook } =
|
|
5310
|
+
const { portableSheet, portableWorkbook } = _m51;
|
|
5232
5311
|
|
|
5233
5312
|
const { captureFields } = _m10;
|
|
5234
5313
|
|
|
5235
|
-
const { sheetOptionFields, workbookOptionFields } =
|
|
5314
|
+
const { sheetOptionFields, workbookOptionFields } = _m47;
|
|
5236
5315
|
|
|
5237
5316
|
function prepare(options) {
|
|
5238
5317
|
options = captureFields(options, [...workbookOptionFields, "columns", "sheet"]);
|
|
@@ -5276,11 +5355,11 @@ async function writeXlsxTo(rows, destination, configuration) {
|
|
|
5276
5355
|
});
|
|
5277
5356
|
}
|
|
5278
5357
|
const _exports = Object.freeze({ writeXlsx: writeXlsx, writeXlsxTo: writeXlsxTo });
|
|
5279
|
-
_modules.set("
|
|
5358
|
+
_modules.set("5bfd5c9c5e179305b9bebd6cb0d6a0d75e974b223e119e0fd4fbb773325f1e63", _exports);
|
|
5280
5359
|
return _exports;
|
|
5281
5360
|
})();
|
|
5282
5361
|
|
|
5283
|
-
const
|
|
5362
|
+
const _m53 = _modules.get("dd34d5fd89869a0f953f3f2b3fd27ac83be29e68f76c9087fae3d33095aeda7c") ?? (() => {
|
|
5284
5363
|
const { assertGroupedReportSource } = _m8;
|
|
5285
5364
|
|
|
5286
5365
|
const { captureFields } = _m10;
|
|
@@ -5289,11 +5368,11 @@ const { OfficeIMOError } = _m2;
|
|
|
5289
5368
|
|
|
5290
5369
|
const { fields } = _m31;
|
|
5291
5370
|
|
|
5292
|
-
const { sheetOptionFields } =
|
|
5371
|
+
const { sheetOptionFields } = _m47;
|
|
5293
5372
|
|
|
5294
|
-
const { portableSheet } =
|
|
5373
|
+
const { portableSheet } = _m51;
|
|
5295
5374
|
|
|
5296
|
-
const { resolveDataColumn } =
|
|
5375
|
+
const { resolveDataColumn } = _m42;
|
|
5297
5376
|
|
|
5298
5377
|
const { copyStylePatch } = _m29;
|
|
5299
5378
|
|
|
@@ -5369,11 +5448,11 @@ function prepareGroupedSheet(report, configuration, maxConditionalFormats = 1000
|
|
|
5369
5448
|
...(options.grandTotalStyle ? { grandTotalStyle: copyStylePatch(options.grandTotalStyle) } : {}) };
|
|
5370
5449
|
}
|
|
5371
5450
|
const _exports = Object.freeze({ groupedOptionFields: groupedOptionFields, prepareGroupedSheet: prepareGroupedSheet });
|
|
5372
|
-
_modules.set("
|
|
5451
|
+
_modules.set("dd34d5fd89869a0f953f3f2b3fd27ac83be29e68f76c9087fae3d33095aeda7c", _exports);
|
|
5373
5452
|
return _exports;
|
|
5374
5453
|
})();
|
|
5375
5454
|
|
|
5376
|
-
const
|
|
5455
|
+
const _m52 = _modules.get("2ba62cdf88d559804bb84b20e9816b2de0f232401b7431ac414699a607d554a4") ?? (() => {
|
|
5377
5456
|
const { groupedReportOperation } = _m8;
|
|
5378
5457
|
|
|
5379
5458
|
const { checkAbort, withAbort } = _m4;
|
|
@@ -5388,11 +5467,11 @@ const { FormulaCell } = _m33;
|
|
|
5388
5467
|
|
|
5389
5468
|
const { columnName } = _m32;
|
|
5390
5469
|
|
|
5391
|
-
const { captureWorkbookLimits, workbookOptionFields } =
|
|
5470
|
+
const { captureWorkbookLimits, workbookOptionFields } = _m47;
|
|
5392
5471
|
|
|
5393
|
-
const { retainDataRowRanges } =
|
|
5472
|
+
const { retainDataRowRanges } = _m43;
|
|
5394
5473
|
|
|
5395
|
-
const { groupedOptionFields, prepareGroupedSheet } =
|
|
5474
|
+
const { groupedOptionFields, prepareGroupedSheet } = _m53;
|
|
5396
5475
|
|
|
5397
5476
|
const subtotalOperations = { average: 1, count: 2, max: 4, min: 5, sum: 9 };
|
|
5398
5477
|
function label(value) {
|
|
@@ -5546,18 +5625,18 @@ async function writeGroupedXlsxTo(report, destination, options) {
|
|
|
5546
5625
|
return withDestination(destination, async (sink) => (await write(report, prepared, sink)).result);
|
|
5547
5626
|
}
|
|
5548
5627
|
const _exports = Object.freeze({ addGroupedXlsx: addGroupedXlsx, writeGroupedXlsx: writeGroupedXlsx, writeGroupedXlsxTo: writeGroupedXlsxTo });
|
|
5549
|
-
_modules.set("
|
|
5628
|
+
_modules.set("2ba62cdf88d559804bb84b20e9816b2de0f232401b7431ac414699a607d554a4", _exports);
|
|
5550
5629
|
return _exports;
|
|
5551
5630
|
})();
|
|
5552
5631
|
|
|
5553
|
-
const _m20 = _modules.get("
|
|
5632
|
+
const _m20 = _modules.get("d6587a933b36ccfdba9a2a252389924ac8461f672b3a500082cceb5e53c8b0b6") ?? (() => {
|
|
5554
5633
|
|
|
5555
|
-
const _exports = Object.freeze({ Workbook: _m21.Workbook, writeXlsx:
|
|
5556
|
-
_modules.set("
|
|
5634
|
+
const _exports = Object.freeze({ Workbook: _m21.Workbook, writeXlsx: _m50.writeXlsx, writeXlsxTo: _m50.writeXlsxTo, writeGroupedXlsx: _m52.writeGroupedXlsx, writeGroupedXlsxTo: _m52.writeGroupedXlsxTo, addGroupedXlsx: _m52.addGroupedXlsx, createGroupedReport: _m8.createGroupedReport, Worksheet: _m35.Worksheet, Cell: _m32.Cell, FormulaCell: _m33.FormulaCell, StyleRegistry: _m29.StyleRegistry, NumberFormats: _m29.NumberFormats, saveBlob: _m1.saveBlob, ExportCell: _m5.ExportCell });
|
|
5635
|
+
_modules.set("d6587a933b36ccfdba9a2a252389924ac8461f672b3a500082cceb5e53c8b0b6", _exports);
|
|
5557
5636
|
return _exports;
|
|
5558
5637
|
})();
|
|
5559
5638
|
|
|
5560
|
-
const
|
|
5639
|
+
const _m58 = _modules.get("49927994ccf68595c9211828bccb16a874fa149bda2ea904d369d9943e93bc58") ?? (() => {
|
|
5561
5640
|
const { captureFields } = _m10;
|
|
5562
5641
|
|
|
5563
5642
|
/** Pure validation shared by document settings and named paragraph styles. */
|
|
@@ -5592,10 +5671,10 @@ _modules.set("49927994ccf68595c9211828bccb16a874fa149bda2ea904d369d9943e93bc58",
|
|
|
5592
5671
|
return _exports;
|
|
5593
5672
|
})();
|
|
5594
5673
|
|
|
5595
|
-
const
|
|
5674
|
+
const _m57 = _modules.get("278e6adc6a5d4491e688589ef165bd1aa9cc74f557da6f9d6bdf53ecc0c6df47") ?? (() => {
|
|
5596
5675
|
const { OfficeIMOError } = _m2;
|
|
5597
5676
|
|
|
5598
|
-
const { positive, presentation } =
|
|
5677
|
+
const { positive, presentation } = _m58;
|
|
5599
5678
|
|
|
5600
5679
|
const fields = ["fontSize", "presentation", "keepTogether", "keepWithNext", "spaceBefore", "spaceAfter"];
|
|
5601
5680
|
const presentationFields = ["bold", "italic", "color", "alignment"];
|
|
@@ -5666,7 +5745,7 @@ _modules.set("278e6adc6a5d4491e688589ef165bd1aa9cc74f557da6f9d6bdf53ecc0c6df47",
|
|
|
5666
5745
|
return _exports;
|
|
5667
5746
|
})();
|
|
5668
5747
|
|
|
5669
|
-
const
|
|
5748
|
+
const _m56 = _modules.get("4a089607f7cbe50e13d4382d1cc4e5f6ce32c5773bbec2df84178710f54d9a38") ?? (() => {
|
|
5670
5749
|
const { OfficeIMOError } = _m2;
|
|
5671
5750
|
|
|
5672
5751
|
const { ExportBudget } = _m9;
|
|
@@ -5679,11 +5758,11 @@ const { copyExportValue } = _m13;
|
|
|
5679
5758
|
|
|
5680
5759
|
const { captureFields } = _m10;
|
|
5681
5760
|
|
|
5682
|
-
const { captureParagraphStyles } =
|
|
5761
|
+
const { captureParagraphStyles } = _m57;
|
|
5683
5762
|
|
|
5684
5763
|
const { captureBooleanText } = _m18;
|
|
5685
5764
|
|
|
5686
|
-
const { positive, color, presentation } =
|
|
5765
|
+
const { positive, color, presentation } = _m58;
|
|
5687
5766
|
|
|
5688
5767
|
|
|
5689
5768
|
|
|
@@ -5873,12 +5952,12 @@ function settings(input, document = false) {
|
|
|
5873
5952
|
repeatedColumns: document ? Object.freeze([]) : repeatedColumns(options.wideTable, columns),
|
|
5874
5953
|
limits: { ...limits, ...(maxImageWorkingBytes === undefined ? {} : { maxImageWorkingBytes }) }, budget };
|
|
5875
5954
|
}
|
|
5876
|
-
const _exports = Object.freeze({ positive:
|
|
5955
|
+
const _exports = Object.freeze({ positive: _m58.positive, color: _m58.color, presentation: _m58.presentation, pdfOptionFields: pdfOptionFields, pdfLimitFields: pdfLimitFields, capturePdfOptions: capturePdfOptions, capturePdfLimits: capturePdfLimits, captureWideTable: captureWideTable, settings: settings });
|
|
5877
5956
|
_modules.set("4a089607f7cbe50e13d4382d1cc4e5f6ce32c5773bbec2df84178710f54d9a38", _exports);
|
|
5878
5957
|
return _exports;
|
|
5879
5958
|
})();
|
|
5880
5959
|
|
|
5881
|
-
const
|
|
5960
|
+
const _m61 = _modules.get("e3d39f39aebcbaf063fd8221df0d9cb5902ad2545a9d9e474bb59d47f15e2c01") ?? (() => {
|
|
5882
5961
|
/** @internal One type byte, an eight-byte offset/container number and a two-byte generation/index. */
|
|
5883
5962
|
const pdfXrefEntryBytes = 11;
|
|
5884
5963
|
function unsigned(bytes, offset, value, width) {
|
|
@@ -5914,12 +5993,12 @@ _modules.set("e3d39f39aebcbaf063fd8221df0d9cb5902ad2545a9d9e474bb59d47f15e2c01",
|
|
|
5914
5993
|
return _exports;
|
|
5915
5994
|
})();
|
|
5916
5995
|
|
|
5917
|
-
const
|
|
5996
|
+
const _m60 = _modules.get("e716b8b1da464094622f5f671518493c78e63ff22a029d61544d2d193b63ce8f") ?? (() => {
|
|
5918
5997
|
const { checkAbort, withAbort, pause, taskYieldDue } = _m4;
|
|
5919
5998
|
|
|
5920
5999
|
const { OfficeIMOError } = _m2;
|
|
5921
6000
|
|
|
5922
|
-
const { pdfXrefChunks, pdfXrefEntryBytes } =
|
|
6001
|
+
const { pdfXrefChunks, pdfXrefEntryBytes } = _m61;
|
|
5923
6002
|
|
|
5924
6003
|
const compactObjectCount = 256, compactObjectBytes = 32768;
|
|
5925
6004
|
const compactIndexChunkEntries = 4096;
|
|
@@ -6243,7 +6322,7 @@ _modules.set("e716b8b1da464094622f5f671518493c78e63ff22a029d61544d2d193b63ce8f",
|
|
|
6243
6322
|
return _exports;
|
|
6244
6323
|
})();
|
|
6245
6324
|
|
|
6246
|
-
const
|
|
6325
|
+
const _m65 = _modules.get("1e169e6ecdeceff319b5da4bf01f4c653c1a3d9e8ad696b141bf8ac52d9f446c") ?? (() => {
|
|
6247
6326
|
/** @internal Bounded big-endian reader used for caller-provided TrueType programs. */
|
|
6248
6327
|
class FontReader {
|
|
6249
6328
|
bytes;
|
|
@@ -6273,8 +6352,8 @@ _modules.set("1e169e6ecdeceff319b5da4bf01f4c653c1a3d9e8ad696b141bf8ac52d9f446c",
|
|
|
6273
6352
|
return _exports;
|
|
6274
6353
|
})();
|
|
6275
6354
|
|
|
6276
|
-
const
|
|
6277
|
-
const { align4 } =
|
|
6355
|
+
const _m66 = _modules.get("ecf6c6ab2f9c5f747338d0d59d9f2cae0b006d9d2a210bcb1545db1f046eb80c") ?? (() => {
|
|
6356
|
+
const { align4 } = _m65;
|
|
6278
6357
|
|
|
6279
6358
|
const { checkAbort, pause, taskYieldDue } = _m4;
|
|
6280
6359
|
|
|
@@ -6498,12 +6577,12 @@ _modules.set("ecf6c6ab2f9c5f747338d0d59d9f2cae0b006d9d2a210bcb1545db1f046eb80c",
|
|
|
6498
6577
|
return _exports;
|
|
6499
6578
|
})();
|
|
6500
6579
|
|
|
6501
|
-
const
|
|
6580
|
+
const _m64 = _modules.get("2e1fa1582af797386e2e2914c0a27237309b1692a3cc2be688f46590eb74480d") ?? (() => {
|
|
6502
6581
|
const { NotSupportedError } = _m2;
|
|
6503
6582
|
|
|
6504
|
-
const { FontReader } =
|
|
6583
|
+
const { FontReader } = _m65;
|
|
6505
6584
|
|
|
6506
|
-
const { subsetTrueType, subsetTrueTypeCooperatively } =
|
|
6585
|
+
const { subsetTrueType, subsetTrueTypeCooperatively } = _m66;
|
|
6507
6586
|
|
|
6508
6587
|
const { checkAbort, pause, taskYieldDue } = _m4;
|
|
6509
6588
|
|
|
@@ -6743,8 +6822,8 @@ _modules.set("2e1fa1582af797386e2e2914c0a27237309b1692a3cc2be688f46590eb74480d",
|
|
|
6743
6822
|
return _exports;
|
|
6744
6823
|
})();
|
|
6745
6824
|
|
|
6746
|
-
const
|
|
6747
|
-
const { TrueTypeFont } =
|
|
6825
|
+
const _m63 = _modules.get("d9c1509dff0538488752433e47cd0927ece5f93c559ad0e32dc56602dfd44596") ?? (() => {
|
|
6826
|
+
const { TrueTypeFont } = _m64;
|
|
6748
6827
|
|
|
6749
6828
|
const { beginTask, checkAbort } = _m4;
|
|
6750
6829
|
|
|
@@ -6807,7 +6886,7 @@ _modules.set("d9c1509dff0538488752433e47cd0927ece5f93c559ad0e32dc56602dfd44596",
|
|
|
6807
6886
|
return _exports;
|
|
6808
6887
|
})();
|
|
6809
6888
|
|
|
6810
|
-
const
|
|
6889
|
+
const _m68 = _modules.get("1ed4965a6e2963a91190baa8a58ada8ce0edde8fe653bcb6609002e872af0d61") ?? (() => {
|
|
6811
6890
|
// Generated by scripts/pdf-widths.mjs from OfficeIMO.Pdf's Adobe AFM-derived metrics.
|
|
6812
6891
|
const helveticaWidths = new Map([
|
|
6813
6892
|
[32, [278, 278]],
|
|
@@ -7130,12 +7209,12 @@ _modules.set("1ed4965a6e2963a91190baa8a58ada8ce0edde8fe653bcb6609002e872af0d61",
|
|
|
7130
7209
|
return _exports;
|
|
7131
7210
|
})();
|
|
7132
7211
|
|
|
7133
|
-
const
|
|
7212
|
+
const _m67 = _modules.get("59911f0fe023545e9e97521b268551078bdc4c5f303e446a13b7d52f905e8070") ?? (() => {
|
|
7134
7213
|
const { OfficeIMOError } = _m2;
|
|
7135
7214
|
|
|
7136
|
-
const { PdfFont, fontProgram } =
|
|
7215
|
+
const { PdfFont, fontProgram } = _m63;
|
|
7137
7216
|
|
|
7138
|
-
const { helveticaWidths } =
|
|
7217
|
+
const { helveticaWidths } = _m68;
|
|
7139
7218
|
|
|
7140
7219
|
const winAnsiExtras = new Map([0x20ac, 0, 0x201a, 0x192, 0x201e, 0x2026, 0x2020, 0x2021, 0x2c6, 0x2030, 0x160, 0x2039, 0x152, 0, 0x17d, 0, 0, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, 0x2dc, 0x2122, 0x161, 0x203a, 0x153, 0, 0x17e, 0x178].map((cp, i) => [cp, i + 128]));
|
|
7141
7220
|
/** @internal Called after scalar support succeeds when encoding a standard-font run. */
|
|
@@ -7199,18 +7278,19 @@ _modules.set("59911f0fe023545e9e97521b268551078bdc4c5f303e446a13b7d52f905e8070",
|
|
|
7199
7278
|
return _exports;
|
|
7200
7279
|
})();
|
|
7201
7280
|
|
|
7202
|
-
const
|
|
7281
|
+
const _m62 = _modules.get("4d4736e6b8e2aaecc6f6c1b124b7e6bc0a5e141dcc725edf0ad4847d87fca1b3") ?? (() => {
|
|
7203
7282
|
const { NotSupportedError, OfficeIMOError } = _m2;
|
|
7204
7283
|
|
|
7205
|
-
const { fontProgram } =
|
|
7284
|
+
const { fontProgram } = _m63;
|
|
7206
7285
|
|
|
7207
|
-
const { resolveScalar, selectFont, standardCode, validateFonts } =
|
|
7286
|
+
const { resolveScalar, selectFont, standardCode, validateFonts } = _m67;
|
|
7208
7287
|
|
|
7209
|
-
const { pdfNumber, unicodeHex } =
|
|
7288
|
+
const { pdfNumber, unicodeHex } = _m60;
|
|
7210
7289
|
|
|
7211
7290
|
const { checkAbort, pause, taskYieldDue } = _m4;
|
|
7212
7291
|
|
|
7213
|
-
const
|
|
7292
|
+
const hexBytes = Object.freeze(Array.from({ length: 256 }, (_, byte) => byte.toString(16).padStart(2, "0")));
|
|
7293
|
+
function cidHex(cid) { return hexBytes[cid >>> 8] + hexBytes[cid & 255]; }
|
|
7214
7294
|
class PdfFontResource {
|
|
7215
7295
|
index;
|
|
7216
7296
|
bold;
|
|
@@ -7241,12 +7321,16 @@ class PdfFontResource {
|
|
|
7241
7321
|
width(scalar) {
|
|
7242
7322
|
if (this.shared)
|
|
7243
7323
|
return this.shared.width(scalar);
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7324
|
+
if (this.program) {
|
|
7325
|
+
const existing = this.mappings.get(scalar);
|
|
7326
|
+
if (existing)
|
|
7327
|
+
return existing.width;
|
|
7328
|
+
}
|
|
7329
|
+
else {
|
|
7330
|
+
const standard = this.standardWidths.get(scalar);
|
|
7331
|
+
if (standard !== undefined)
|
|
7332
|
+
return standard;
|
|
7333
|
+
}
|
|
7250
7334
|
const resolved = resolveScalar(scalar, this.program, this.bold);
|
|
7251
7335
|
if (!resolved.supported) {
|
|
7252
7336
|
if (resolved.code === "unpaired-surrogate")
|
|
@@ -7259,7 +7343,8 @@ class PdfFontResource {
|
|
|
7259
7343
|
}
|
|
7260
7344
|
if (this.mappings.size >= 65535)
|
|
7261
7345
|
throw new OfficeIMOError("RESOURCE_LIMIT", "A PDF font supports at most 65,535 distinct Unicode scalars.");
|
|
7262
|
-
const
|
|
7346
|
+
const cid = this.mappings.size + 1;
|
|
7347
|
+
const mapping = { cid, hex: cidHex(cid), glyph: resolved.glyph, width: resolved.width, text: String.fromCodePoint(scalar) };
|
|
7263
7348
|
this.mappings.set(scalar, mapping);
|
|
7264
7349
|
return mapping.width;
|
|
7265
7350
|
}
|
|
@@ -7272,8 +7357,20 @@ class PdfFontResource {
|
|
|
7272
7357
|
let hex = "";
|
|
7273
7358
|
for (const char of text) {
|
|
7274
7359
|
const cp = char.codePointAt(0);
|
|
7275
|
-
this.
|
|
7276
|
-
|
|
7360
|
+
if (this.program) {
|
|
7361
|
+
let mapping = this.mappings.get(cp);
|
|
7362
|
+
// Layout normally registered the scalar already; validate only a newly painted scalar.
|
|
7363
|
+
if (!mapping) {
|
|
7364
|
+
this.width(cp);
|
|
7365
|
+
mapping = this.mappings.get(cp);
|
|
7366
|
+
}
|
|
7367
|
+
hex += mapping.hex;
|
|
7368
|
+
}
|
|
7369
|
+
else {
|
|
7370
|
+
if (!this.standardWidths.has(cp))
|
|
7371
|
+
this.width(cp);
|
|
7372
|
+
hex += hexBytes[standardCode(cp)];
|
|
7373
|
+
}
|
|
7277
7374
|
}
|
|
7278
7375
|
return "<" + hex + ">";
|
|
7279
7376
|
}
|
|
@@ -7288,10 +7385,11 @@ class PdfFontResource {
|
|
|
7288
7385
|
if (!mapping) {
|
|
7289
7386
|
if (this.mappings.size >= 65535)
|
|
7290
7387
|
throw new OfficeIMOError("RESOURCE_LIMIT", "A PDF font supports at most 65,535 distinct CID mappings.");
|
|
7291
|
-
|
|
7388
|
+
const cid = this.mappings.size + 1;
|
|
7389
|
+
mapping = { cid, hex: cidHex(cid), glyph, width: this.program.widths[glyph], text };
|
|
7292
7390
|
this.mappings.set(key, mapping);
|
|
7293
7391
|
}
|
|
7294
|
-
return "<" + mapping.
|
|
7392
|
+
return "<" + mapping.hex + ">";
|
|
7295
7393
|
}
|
|
7296
7394
|
async write(objects, compression) {
|
|
7297
7395
|
checkAbort(this.signal);
|
|
@@ -7340,7 +7438,7 @@ class PdfFontResource {
|
|
|
7340
7438
|
const batch = mapped.slice(i, i + 100);
|
|
7341
7439
|
cmap += batch.length + " beginbfchar\n";
|
|
7342
7440
|
for (const [, m] of batch)
|
|
7343
|
-
cmap += "<" + m.
|
|
7441
|
+
cmap += "<" + m.hex + "> <" + unicodeHex(m.text) + ">\n";
|
|
7344
7442
|
cmap += "endbfchar\n";
|
|
7345
7443
|
if (taskYieldDue())
|
|
7346
7444
|
await pause();
|
|
@@ -7391,7 +7489,7 @@ class PdfFontResources {
|
|
|
7391
7489
|
if (!found)
|
|
7392
7490
|
this.explicitSelections.set(explicit, selections);
|
|
7393
7491
|
}
|
|
7394
|
-
const key =
|
|
7492
|
+
const key = (bold ? 2 : 0) | (italic ? 1 : 0), existing = selections.get(key);
|
|
7395
7493
|
if (existing)
|
|
7396
7494
|
return existing;
|
|
7397
7495
|
const { font, syntheticBold, syntheticItalic } = explicit ? { font: explicit, syntheticBold: bold, syntheticItalic: italic } : selectFont(this.fonts, bold, italic);
|
|
@@ -7408,11 +7506,11 @@ class PdfFontResources {
|
|
|
7408
7506
|
dictionary() { return "<< " + this.resources.map(f => "/" + f.name + " " + f.object + " 0 R").join(" ") + " >>"; }
|
|
7409
7507
|
}
|
|
7410
7508
|
const _exports = Object.freeze({ PdfFontResource: PdfFontResource, PdfFontResources: PdfFontResources });
|
|
7411
|
-
_modules.set("
|
|
7509
|
+
_modules.set("4d4736e6b8e2aaecc6f6c1b124b7e6bc0a5e141dcc725edf0ad4847d87fca1b3", _exports);
|
|
7412
7510
|
return _exports;
|
|
7413
7511
|
})();
|
|
7414
7512
|
|
|
7415
|
-
const
|
|
7513
|
+
const _m70 = _modules.get("253db2c0eab1f298fda61fb40a5ddaacbf6ad12a7408ee3d8c12d27f88e7ca27") ?? (() => {
|
|
7416
7514
|
const { OfficeIMOError } = _m2;
|
|
7417
7515
|
|
|
7418
7516
|
const { ExportCell, assertExportValue } = _m5;
|
|
@@ -7524,7 +7622,7 @@ _modules.set("253db2c0eab1f298fda61fb40a5ddaacbf6ad12a7408ee3d8c12d27f88e7ca27",
|
|
|
7524
7622
|
return _exports;
|
|
7525
7623
|
})();
|
|
7526
7624
|
|
|
7527
|
-
const
|
|
7625
|
+
const _m72 = _modules.get("8be3fb029e08d100ce8ffcf50916d5ba7f7bc00d62156cc33815fd58554a9ed6") ?? (() => {
|
|
7528
7626
|
const { NotSupportedError, OfficeIMOError } = _m2;
|
|
7529
7627
|
|
|
7530
7628
|
const { checkAbort, pause, taskYieldDue, withAbort } = _m4;
|
|
@@ -7737,20 +7835,20 @@ _modules.set("8be3fb029e08d100ce8ffcf50916d5ba7f7bc00d62156cc33815fd58554a9ed6",
|
|
|
7737
7835
|
return _exports;
|
|
7738
7836
|
})();
|
|
7739
7837
|
|
|
7740
|
-
const
|
|
7838
|
+
const _m71 = _modules.get("0a1c79b51ac9a164b86197239117df6497f45ca2892b423b1ec77a663ccc1c47") ?? (() => {
|
|
7741
7839
|
const { NotSupportedError, OfficeIMOError } = _m2;
|
|
7742
7840
|
|
|
7743
7841
|
const { copyExportLink } = _m7;
|
|
7744
7842
|
|
|
7745
7843
|
const { checkAbort, pause, taskYieldDue } = _m4;
|
|
7746
7844
|
|
|
7747
|
-
const { presentation, color } =
|
|
7845
|
+
const { presentation, color } = _m56;
|
|
7748
7846
|
|
|
7749
|
-
const { wrapShapedPdfText } =
|
|
7847
|
+
const { wrapShapedPdfText } = _m72;
|
|
7750
7848
|
|
|
7751
|
-
const { PdfFont } =
|
|
7849
|
+
const { PdfFont } = _m63;
|
|
7752
7850
|
|
|
7753
|
-
const { pdfBudgetText } =
|
|
7851
|
+
const { pdfBudgetText } = _m70;
|
|
7754
7852
|
|
|
7755
7853
|
/** @internal Callers supply an owned, validated, frozen base presentation. A run list is a PDF presentation value, never an alternate shared table value model. */
|
|
7756
7854
|
function capturePdfText(value, base, settings, fonts, countEmpty = true, reserveBudget = true) {
|
|
@@ -7933,10 +8031,10 @@ _modules.set("0a1c79b51ac9a164b86197239117df6497f45ca2892b423b1ec77a663ccc1c47",
|
|
|
7933
8031
|
return _exports;
|
|
7934
8032
|
})();
|
|
7935
8033
|
|
|
7936
|
-
const
|
|
8034
|
+
const _m73 = _modules.get("2f40af05ba09102fe440c1d46385b64cecdd233371771796c9ae4e8d523f2cea") ?? (() => {
|
|
7937
8035
|
const { OfficeIMOError } = _m2;
|
|
7938
8036
|
|
|
7939
|
-
const { wrapPdfText } =
|
|
8037
|
+
const { wrapPdfText } = _m71;
|
|
7940
8038
|
|
|
7941
8039
|
/** Plan without opening a source. Exact column widths never shrink in band mode. */
|
|
7942
8040
|
function planTableBands(widths, settings) {
|
|
@@ -7981,6 +8079,14 @@ async function projectBandRows(rows, band, widths, settings, fonts) {
|
|
|
7981
8079
|
for (const row of rows) {
|
|
7982
8080
|
const cells = [];
|
|
7983
8081
|
for (const cell of row.cells) {
|
|
8082
|
+
// Ordinary data and leaf headings keep their captured width and lines in every band.
|
|
8083
|
+
// Look up their physical position without allocating another per-row column index.
|
|
8084
|
+
if (cell.span === 1) {
|
|
8085
|
+
const first = band.columns.indexOf(cell.first);
|
|
8086
|
+
if (first >= 0)
|
|
8087
|
+
cells.push({ ...cell, source: cell.source ?? cell, first });
|
|
8088
|
+
continue;
|
|
8089
|
+
}
|
|
7984
8090
|
for (let first = 0; first < band.columns.length;) {
|
|
7985
8091
|
const source = band.columns[first];
|
|
7986
8092
|
if (source < cell.first || source >= cell.first + cell.span) {
|
|
@@ -7991,7 +8097,7 @@ async function projectBandRows(rows, band, widths, settings, fonts) {
|
|
|
7991
8097
|
while (end < band.columns.length && band.columns[end] === band.columns[end - 1] + 1 && band.columns[end] < cell.first + cell.span)
|
|
7992
8098
|
end++;
|
|
7993
8099
|
const width = band.columns.slice(first, end).reduce((sum, index) => sum + widths[index], 0);
|
|
7994
|
-
const lines =
|
|
8100
|
+
const lines = await wrapPdfText(cell.captured, fonts, settings.fontSize, width - settings.padding * 2, settings, cell.style.wrapText !== false);
|
|
7995
8101
|
cells.push({ ...cell, source: cell.source ?? cell, first, span: end - first, width, lines,
|
|
7996
8102
|
lineHeight: lines.reduce((height, line) => Math.max(height, line.lineHeight), cell.font.lineHeight(settings.fontSize)) });
|
|
7997
8103
|
first = end;
|
|
@@ -8020,11 +8126,11 @@ function alignBandBlocks(bands, settings) {
|
|
|
8020
8126
|
cells: row.cells.map(cell => ({ ...cell, height: heights.slice(index, index + (cell.rowSpan ?? 1)).reduce((sum, value) => sum + value, 0) })) })));
|
|
8021
8127
|
}
|
|
8022
8128
|
const _exports = Object.freeze({ planTableBands: planTableBands, projectBandRows: projectBandRows, alignBandBlocks: alignBandBlocks });
|
|
8023
|
-
_modules.set("
|
|
8129
|
+
_modules.set("2f40af05ba09102fe440c1d46385b64cecdd233371771796c9ae4e8d523f2cea", _exports);
|
|
8024
8130
|
return _exports;
|
|
8025
8131
|
})();
|
|
8026
8132
|
|
|
8027
|
-
const
|
|
8133
|
+
const _m69 = _modules.get("ad81357e627d3100e1068a8ce521aa1c1cd65de5c6c6ab36f807a3e5da50d874") ?? (() => {
|
|
8028
8134
|
const { ExportCell } = _m5;
|
|
8029
8135
|
|
|
8030
8136
|
const { copyExportLink } = _m7;
|
|
@@ -8033,13 +8139,13 @@ const { tableSpans } = _m17;
|
|
|
8033
8139
|
|
|
8034
8140
|
const { createTotals } = _m12;
|
|
8035
8141
|
|
|
8036
|
-
const { presentation, positive } =
|
|
8142
|
+
const { presentation, positive } = _m56;
|
|
8037
8143
|
|
|
8038
|
-
const { displayText, pdfBudgetText } =
|
|
8144
|
+
const { displayText, pdfBudgetText } = _m70;
|
|
8039
8145
|
|
|
8040
|
-
const { capturePdfText, wrapPdfText } =
|
|
8146
|
+
const { capturePdfText, wrapPdfText } = _m71;
|
|
8041
8147
|
|
|
8042
|
-
const { planTableBands, projectBandRows, alignBandBlocks } =
|
|
8148
|
+
const { planTableBands, projectBandRows, alignBandBlocks } = _m73;
|
|
8043
8149
|
|
|
8044
8150
|
class PdfTableLayout {
|
|
8045
8151
|
settings;
|
|
@@ -8144,8 +8250,12 @@ class PdfTableLayout {
|
|
|
8144
8250
|
lines };
|
|
8145
8251
|
}
|
|
8146
8252
|
row(cells) {
|
|
8147
|
-
|
|
8148
|
-
|
|
8253
|
+
let lines = 1, lineHeight = this.lineHeight;
|
|
8254
|
+
for (let index = 0; index < cells.length; index++) {
|
|
8255
|
+
const cell = cells[index];
|
|
8256
|
+
lines = Math.max(lines, cell.lines.length);
|
|
8257
|
+
lineHeight = Math.max(lineHeight, cell.lineHeight);
|
|
8258
|
+
}
|
|
8149
8259
|
return { cells, lines, lineHeight, height: lines * lineHeight + this.settings.padding * 2 };
|
|
8150
8260
|
}
|
|
8151
8261
|
async headers() {
|
|
@@ -8251,11 +8361,11 @@ class PdfTableLayout {
|
|
|
8251
8361
|
}
|
|
8252
8362
|
}
|
|
8253
8363
|
const _exports = Object.freeze({ PdfTableLayout: PdfTableLayout });
|
|
8254
|
-
_modules.set("
|
|
8364
|
+
_modules.set("ad81357e627d3100e1068a8ce521aa1c1cd65de5c6c6ab36f807a3e5da50d874", _exports);
|
|
8255
8365
|
return _exports;
|
|
8256
8366
|
})();
|
|
8257
8367
|
|
|
8258
|
-
const
|
|
8368
|
+
const _m75 = _modules.get("9ea74d93c18250e809a7be745444b886bcd5ec924a78e6ab004d649789db1f72") ?? (() => {
|
|
8259
8369
|
const { OfficeIMOError } = _m2;
|
|
8260
8370
|
|
|
8261
8371
|
const { checkAbort } = _m4;
|
|
@@ -8299,7 +8409,7 @@ class PdfTableBandFlow {
|
|
|
8299
8409
|
await this.flush();
|
|
8300
8410
|
}
|
|
8301
8411
|
async row(row, allowFirstFragment = false) {
|
|
8302
|
-
const { padding, fontSize, options } = this.layout.settings, minimumLines = this.layout.minimumRowLines(row), minimumHeight =
|
|
8412
|
+
const { padding, fontSize, options } = this.layout.settings, minimumLines = this.layout.minimumRowLines(row), minimumHeight = minimumLines * row.lineHeight + padding * 2;
|
|
8303
8413
|
if (minimumHeight > this.painter.firstFullCapacity + .001 || minimumHeight > this.painter.continuationCapacity + .001)
|
|
8304
8414
|
throw new RangeError("Repeated PDF identifiers must fit intact below the first and continued band headings/context.");
|
|
8305
8415
|
// Keep ordinary rows intact when they fit fresh. A kept heading/caption can deliberately
|
|
@@ -8333,9 +8443,14 @@ class PdfTableBandFlow {
|
|
|
8333
8443
|
let remaining = false;
|
|
8334
8444
|
const cells = rows[0].cells.map(cell => {
|
|
8335
8445
|
const source = this.layout.bands[index].columns[cell.first];
|
|
8336
|
-
const repeated = this.layout.repeatedColumn(source),
|
|
8446
|
+
const repeated = this.layout.repeatedColumn(source), reusable = cell.span === 1 && (cell.source?.span ?? 1) === 1 && (cell.rowSpan ?? 1) === 1 &&
|
|
8447
|
+
cell.height === undefined && first === 0 && (repeated || lines >= cell.lines.length);
|
|
8448
|
+
const visible = repeated || reusable ? cell.lines : cell.lines.slice(first, first + lines);
|
|
8337
8449
|
if (!repeated && (visible.length > 0 || cell.link !== undefined))
|
|
8338
8450
|
remaining = true;
|
|
8451
|
+
// A complete first fragment already owns these lines and their maximum font metrics.
|
|
8452
|
+
if (reusable)
|
|
8453
|
+
return cell;
|
|
8339
8454
|
const { height: _height, ...plain } = cell;
|
|
8340
8455
|
return { ...plain, lines: visible,
|
|
8341
8456
|
lineHeight: visible.reduce((value, line) => Math.max(value, line.lineHeight), cell.font.lineHeight(fontSize)),
|
|
@@ -8388,11 +8503,11 @@ class PdfTableBandFlow {
|
|
|
8388
8503
|
}
|
|
8389
8504
|
}
|
|
8390
8505
|
const _exports = Object.freeze({ PdfTableBandFlow: PdfTableBandFlow });
|
|
8391
|
-
_modules.set("
|
|
8506
|
+
_modules.set("9ea74d93c18250e809a7be745444b886bcd5ec924a78e6ab004d649789db1f72", _exports);
|
|
8392
8507
|
return _exports;
|
|
8393
8508
|
})();
|
|
8394
8509
|
|
|
8395
|
-
const
|
|
8510
|
+
const _m76 = _modules.get("9deed79565a5da5009f7a01579df8d6a3f019b78eb7b17d831c7964840e9a6bf") ?? (() => {
|
|
8396
8511
|
/** @internal Source-cell identities survive page fragments and horizontal band projections.
|
|
8397
8512
|
* Only column headers and still-owned row objects remain reachable from this table owner. */
|
|
8398
8513
|
class PdfTableStructure {
|
|
@@ -8444,30 +8559,31 @@ class PdfTableStructure {
|
|
|
8444
8559
|
return row.cells.map(cell => this.cells.get(cell));
|
|
8445
8560
|
const rowId = this.structure.element("TR", parent);
|
|
8446
8561
|
this.rows.set(row, rowId);
|
|
8447
|
-
const headers = row.cells.map((cell, index) => rowHeaderIndex === undefined ? cell.rowHeader === true : index === rowHeaderIndex);
|
|
8448
8562
|
// Allocate in source order, then resolve every row header before associating even earlier data cells.
|
|
8449
8563
|
// Generated summary labels override detail roles so numeric subtotal cells never become row headers.
|
|
8450
8564
|
const ids = row.cells.map((cell, index) => {
|
|
8451
|
-
const
|
|
8565
|
+
const header = rowHeaderIndex === undefined ? cell.rowHeader === true : index === rowHeaderIndex;
|
|
8566
|
+
const id = this.structure.element(header ? "TH" : "TD", rowId);
|
|
8452
8567
|
this.cells.set(cell, id);
|
|
8453
8568
|
return id;
|
|
8454
8569
|
});
|
|
8455
|
-
|
|
8570
|
+
let rowHeaders;
|
|
8456
8571
|
for (let index = 0; index < ids.length; index++)
|
|
8457
|
-
if (
|
|
8458
|
-
rowHeaders.push(await this.structure.identifier(ids[index]));
|
|
8572
|
+
if (rowHeaderIndex === undefined ? row.cells[index].rowHeader === true : index === rowHeaderIndex)
|
|
8573
|
+
(rowHeaders ??= []).push(await this.structure.identifier(ids[index]));
|
|
8459
8574
|
for (let index = 0; index < row.cells.length; index++) {
|
|
8460
8575
|
const cell = row.cells[index];
|
|
8461
|
-
if (!rowHeaders
|
|
8576
|
+
if (!rowHeaders && cell.span === 1 && (cell.rowSpan ?? 1) === 1) {
|
|
8462
8577
|
const attributes = this.ordinaryAttributes[cell.first] ??=
|
|
8463
8578
|
await this.structure.attributeReference(this.attributeDictionary(cell, this.associations(cell)));
|
|
8464
8579
|
this.structure.setAttributes(ids[index], attributes);
|
|
8465
8580
|
continue;
|
|
8466
8581
|
}
|
|
8467
8582
|
const associations = this.associations(cell);
|
|
8468
|
-
|
|
8583
|
+
const header = rowHeaderIndex === undefined ? cell.rowHeader === true : index === rowHeaderIndex;
|
|
8584
|
+
if (!header && rowHeaders)
|
|
8469
8585
|
associations.push(...rowHeaders);
|
|
8470
|
-
this.structure.setAttributes(ids[index], this.attributes(cell, associations,
|
|
8586
|
+
this.structure.setAttributes(ids[index], this.attributes(cell, associations, header ? "Row" : undefined));
|
|
8471
8587
|
}
|
|
8472
8588
|
return ids;
|
|
8473
8589
|
}
|
|
@@ -8502,14 +8618,14 @@ class PdfTableStructure {
|
|
|
8502
8618
|
}
|
|
8503
8619
|
}
|
|
8504
8620
|
const _exports = Object.freeze({ PdfTableStructure: PdfTableStructure });
|
|
8505
|
-
_modules.set("
|
|
8621
|
+
_modules.set("9deed79565a5da5009f7a01579df8d6a3f019b78eb7b17d831c7964840e9a6bf", _exports);
|
|
8506
8622
|
return _exports;
|
|
8507
8623
|
})();
|
|
8508
8624
|
|
|
8509
|
-
const
|
|
8625
|
+
const _m77 = _modules.get("09c712096a1028af340e275d5a273e870546413797e71ed709657ad0482ea170") ?? (() => {
|
|
8510
8626
|
const { OfficeIMOError } = _m2;
|
|
8511
8627
|
|
|
8512
|
-
const { pdfNumber, unicodeHex } =
|
|
8628
|
+
const { pdfNumber, unicodeHex } = _m60;
|
|
8513
8629
|
|
|
8514
8630
|
const encoder = new TextEncoder();
|
|
8515
8631
|
/** @internal URI actions are byte strings; tooltips are Unicode PDF text strings. */
|
|
@@ -8552,10 +8668,10 @@ _modules.set("09c712096a1028af340e275d5a273e870546413797e71ed709657ad0482ea170",
|
|
|
8552
8668
|
return _exports;
|
|
8553
8669
|
})();
|
|
8554
8670
|
|
|
8555
|
-
const
|
|
8671
|
+
const _m78 = _modules.get("c68d18d668366fb9b96d1b53c79dc6305f84cb83c05e4942fcf1cdf96ed1a73f") ?? (() => {
|
|
8556
8672
|
const { OfficeIMOError } = _m2;
|
|
8557
8673
|
|
|
8558
|
-
const { unicodeHex } =
|
|
8674
|
+
const { unicodeHex } = _m60;
|
|
8559
8675
|
|
|
8560
8676
|
const { captureFields } = _m10;
|
|
8561
8677
|
|
|
@@ -8601,8 +8717,8 @@ _modules.set("c68d18d668366fb9b96d1b53c79dc6305f84cb83c05e4942fcf1cdf96ed1a73f",
|
|
|
8601
8717
|
return _exports;
|
|
8602
8718
|
})();
|
|
8603
8719
|
|
|
8604
|
-
const
|
|
8605
|
-
const { settings } =
|
|
8720
|
+
const _m79 = _modules.get("a66257a32f03d958aa57be4de9da7f80b708cebca26b5cc6404de0ee11bfe052") ?? (() => {
|
|
8721
|
+
const { settings } = _m56;
|
|
8606
8722
|
|
|
8607
8723
|
/** @internal Every section derives from captured document defaults, never the preceding section. */
|
|
8608
8724
|
function sectionSettings(base, section) {
|
|
@@ -8620,28 +8736,28 @@ _modules.set("a66257a32f03d958aa57be4de9da7f80b708cebca26b5cc6404de0ee11bfe052",
|
|
|
8620
8736
|
return _exports;
|
|
8621
8737
|
})();
|
|
8622
8738
|
|
|
8623
|
-
const
|
|
8739
|
+
const _m74 = _modules.get("3ed7114181be5a3066742336da574fef7f2fc04ee6dfc5e64211f3bedad4cab9") ?? (() => {
|
|
8624
8740
|
const { OfficeIMOError } = _m2;
|
|
8625
8741
|
|
|
8626
8742
|
const { checkAbort } = _m4;
|
|
8627
8743
|
|
|
8628
|
-
const { pdfNumber } =
|
|
8744
|
+
const { pdfNumber } = _m60;
|
|
8629
8745
|
|
|
8630
|
-
const { color } =
|
|
8746
|
+
const { color } = _m56;
|
|
8631
8747
|
|
|
8632
|
-
const { PdfTableBandFlow } =
|
|
8748
|
+
const { PdfTableBandFlow } = _m75;
|
|
8633
8749
|
|
|
8634
|
-
const { PdfTableStructure } =
|
|
8750
|
+
const { PdfTableStructure } = _m76;
|
|
8635
8751
|
|
|
8636
|
-
const { wrapText, wrapTextCooperatively, synchronousText, pdfBudgetText } =
|
|
8752
|
+
const { wrapText, wrapTextCooperatively, synchronousText, pdfBudgetText } = _m70;
|
|
8637
8753
|
|
|
8638
|
-
const { linkAnnotation } =
|
|
8754
|
+
const { linkAnnotation } = _m77;
|
|
8639
8755
|
|
|
8640
|
-
const { unicodeHex } =
|
|
8756
|
+
const { unicodeHex } = _m60;
|
|
8641
8757
|
|
|
8642
|
-
const { captureSection, captureBookmark } =
|
|
8758
|
+
const { captureSection, captureBookmark } = _m78;
|
|
8643
8759
|
|
|
8644
|
-
const { sectionSettings } =
|
|
8760
|
+
const { sectionSettings } = _m79;
|
|
8645
8761
|
|
|
8646
8762
|
/** @internal One page of drawing commands and O(page count) references, never the complete report body. */
|
|
8647
8763
|
class PdfPages {
|
|
@@ -8655,7 +8771,8 @@ class PdfPages {
|
|
|
8655
8771
|
outlines;
|
|
8656
8772
|
references = [];
|
|
8657
8773
|
current = 0;
|
|
8658
|
-
commands =
|
|
8774
|
+
commands = "";
|
|
8775
|
+
commandParts = [];
|
|
8659
8776
|
commandBytes = 0;
|
|
8660
8777
|
annotations = [];
|
|
8661
8778
|
hyperlinks = 0;
|
|
@@ -8673,6 +8790,12 @@ class PdfPages {
|
|
|
8673
8790
|
pendingBookmarks = [];
|
|
8674
8791
|
pageNumberWidth = 0;
|
|
8675
8792
|
colors = new Map();
|
|
8793
|
+
textFont;
|
|
8794
|
+
textSize = 0;
|
|
8795
|
+
textColor = "";
|
|
8796
|
+
textPrefix = "";
|
|
8797
|
+
rectangleLefts;
|
|
8798
|
+
rectangleColumns = [];
|
|
8676
8799
|
externalObjects = new Map();
|
|
8677
8800
|
bandFlow;
|
|
8678
8801
|
bandCellBudget = false;
|
|
@@ -8739,7 +8862,7 @@ class PdfPages {
|
|
|
8739
8862
|
}
|
|
8740
8863
|
add(command) {
|
|
8741
8864
|
this.retainPageBytes(command.length);
|
|
8742
|
-
this.commands
|
|
8865
|
+
this.commands += command;
|
|
8743
8866
|
}
|
|
8744
8867
|
retainPageBytes(length) {
|
|
8745
8868
|
this.commandBytes += length;
|
|
@@ -8759,9 +8882,17 @@ class PdfPages {
|
|
|
8759
8882
|
return this.structure ? "/Artifact << /Type /" + type + " >> BDC\n" + command + "EMC\n" : command;
|
|
8760
8883
|
}
|
|
8761
8884
|
text(text, font, size, x, baseline, foreground = "111827", element) {
|
|
8762
|
-
const n = pdfNumber
|
|
8763
|
-
|
|
8764
|
-
|
|
8885
|
+
const n = pdfNumber;
|
|
8886
|
+
if (font !== this.textFont || size !== this.textSize || foreground !== this.textColor) {
|
|
8887
|
+
const shear = font.syntheticItalic ? .213 : 0, rgb = this.rgb(foreground);
|
|
8888
|
+
// Keep one prefix, independent of report size. Resource identity includes synthetic styling.
|
|
8889
|
+
this.textPrefix = "q " + rgb + " rg " + rgb + " RG\nBT /" + font.name + " " + n(size) + " Tf " +
|
|
8890
|
+
(font.syntheticBold ? n(size * .025) + " w 2 Tr " : "0 Tr ") + "1 0 " + n(shear) + " 1 ";
|
|
8891
|
+
this.textFont = font;
|
|
8892
|
+
this.textSize = size;
|
|
8893
|
+
this.textColor = foreground;
|
|
8894
|
+
}
|
|
8895
|
+
const command = this.textPrefix + n(x) + " " + n(baseline) + " Tm " + font.encode(text) + " Tj ET Q\n";
|
|
8765
8896
|
this.add(this.structure && element !== undefined ? this.structure.mark(element) + command + "EMC\n" : this.artifact(command, "Pagination"));
|
|
8766
8897
|
}
|
|
8767
8898
|
link(link, x, bottom, width, height, element) {
|
|
@@ -8791,8 +8922,8 @@ class PdfPages {
|
|
|
8791
8922
|
for (const segment of line.segments) {
|
|
8792
8923
|
const registered = marks?.get(segment), owner = registered?.owner ?? (segment.link && this.structure && element !== undefined ? this.structure.link(element, segment.link) : element);
|
|
8793
8924
|
if (segment.glyphs) {
|
|
8794
|
-
const font = segment.font, n = pdfNumber, shear = font.syntheticItalic ? .213 : 0;
|
|
8795
|
-
let cursor = x, command = "q " +
|
|
8925
|
+
const font = segment.font, n = pdfNumber, shear = font.syntheticItalic ? .213 : 0, rgb = this.rgb(segment.color ?? "111827");
|
|
8926
|
+
let cursor = x, command = "q " + rgb + " rg " + rgb + " RG\nBT /" + font.name + " " + n(size) + " Tf " +
|
|
8796
8927
|
(font.syntheticBold ? n(size * .025) + " w 2 Tr " : "0 Tr ");
|
|
8797
8928
|
for (const glyph of segment.glyphs) {
|
|
8798
8929
|
command += "1 0 " + n(shear) + " 1 " + n(cursor + (glyph.xOffset + shear * glyph.yOffset) * size / 1000) + " " + n(baseline + glyph.yOffset * size / 1000) + " Tm " + font.encodeGlyph(glyph.id, glyph.logicalText) + " Tj\n";
|
|
@@ -8840,7 +8971,8 @@ class PdfPages {
|
|
|
8840
8971
|
this.current = this.objects.reserve();
|
|
8841
8972
|
this.references.push(this.current);
|
|
8842
8973
|
}
|
|
8843
|
-
this.commands =
|
|
8974
|
+
this.commands = "";
|
|
8975
|
+
this.commandParts = [];
|
|
8844
8976
|
this.annotations = [];
|
|
8845
8977
|
this.commandBytes = 0;
|
|
8846
8978
|
this.bodyAdded = false;
|
|
@@ -8923,15 +9055,32 @@ class PdfPages {
|
|
|
8923
9055
|
if (!this.layout)
|
|
8924
9056
|
throw new Error("A table layout is required before drawing rows.");
|
|
8925
9057
|
this.bodyAdded = true;
|
|
8926
|
-
const { padding, fontSize } = this.settings, n = pdfNumber, height = lineCount * row.lineHeight + padding * 2;
|
|
9058
|
+
const { padding, fontSize } = this.settings, n = pdfNumber, height = lineCount * row.lineHeight + padding * 2, lefts = this.layout.lefts;
|
|
9059
|
+
// One geometry token per active physical column; table/band changes release the old tokens.
|
|
9060
|
+
if (this.rectangleLefts !== lefts) {
|
|
9061
|
+
this.rectangleLefts = lefts;
|
|
9062
|
+
this.rectangleColumns = [];
|
|
9063
|
+
}
|
|
9064
|
+
let rectangleHeight, rectangleBottom = "", rectangleHeightText = "";
|
|
8927
9065
|
for (const [index, cell] of row.cells.entries()) {
|
|
8928
9066
|
if (this.bandCellBudget)
|
|
8929
9067
|
this.settings.budget.cell(this.settings.budget.limits.maxTextCharacters === undefined ? "" :
|
|
8930
9068
|
(cell.height === undefined ? cell.lines.slice(firstLine, firstLine + lineCount) : cell.lines).map(line => line.text).join(""));
|
|
8931
|
-
const x =
|
|
9069
|
+
const x = lefts[cell.first], cellHeight = cell.height ?? height;
|
|
9070
|
+
if (cellHeight !== rectangleHeight) {
|
|
9071
|
+
rectangleBottom = n(this.y - cellHeight);
|
|
9072
|
+
rectangleHeightText = n(cellHeight);
|
|
9073
|
+
rectangleHeight = cellHeight;
|
|
9074
|
+
}
|
|
9075
|
+
let horizontal = this.rectangleColumns[cell.first];
|
|
9076
|
+
if (!horizontal || horizontal.x !== x || horizontal.width !== cell.width) {
|
|
9077
|
+
horizontal = { x, width: cell.width, left: n(x), widthText: n(cell.width) };
|
|
9078
|
+
this.rectangleColumns[cell.first] = horizontal;
|
|
9079
|
+
}
|
|
9080
|
+
const rectangle = horizontal.left + " " + rectangleBottom + " " + horizontal.widthText + " " + rectangleHeightText;
|
|
8932
9081
|
if (cell.style.background)
|
|
8933
|
-
this.add(this.artifact("q " + this.rgb(cell.style.background) + " rg " +
|
|
8934
|
-
this.add(this.artifact("q 0.82 0.85 0.89 RG 0.4 w " +
|
|
9082
|
+
this.add(this.artifact("q " + this.rgb(cell.style.background) + " rg " + rectangle + " re f Q\n"));
|
|
9083
|
+
this.add(this.artifact("q 0.82 0.85 0.89 RG 0.4 w " + rectangle + " re S Q\n"));
|
|
8935
9084
|
const element = elements?.[index], artifact = cell.semanticArtifact || repeated[index], owner = cell.link && this.structure && element !== undefined ? this.structure.link(element, cell.link) : element;
|
|
8936
9085
|
for (let line = firstLine; line < Math.min(cell.lines.length, cell.height ? cell.lines.length : firstLine + lineCount); line++) {
|
|
8937
9086
|
const text = cell.lines[line], left = cell.style.alignment === "right" ? cell.width - padding - text.width : cell.style.alignment === "center" ? (cell.width - text.width) / 2 : padding;
|
|
@@ -8941,6 +9090,7 @@ class PdfPages {
|
|
|
8941
9090
|
this.link(cell.link, x, this.y - cellHeight, cell.width, cellHeight, owner);
|
|
8942
9091
|
}
|
|
8943
9092
|
this.y -= row.structured ? row.height : height;
|
|
9093
|
+
this.sealCommands();
|
|
8944
9094
|
}
|
|
8945
9095
|
async block(rows) {
|
|
8946
9096
|
if (this.bandFlow)
|
|
@@ -9266,9 +9416,22 @@ class PdfPages {
|
|
|
9266
9416
|
marker: { line: item.marker, gap: item.markerGap, ...(label === undefined ? {} : { owner: label }) } });
|
|
9267
9417
|
await this.structure?.complete(li);
|
|
9268
9418
|
}
|
|
9419
|
+
sealCommands() {
|
|
9420
|
+
if (this.commands) {
|
|
9421
|
+
this.commandParts.push(this.commands);
|
|
9422
|
+
this.commands = "";
|
|
9423
|
+
}
|
|
9424
|
+
}
|
|
9425
|
+
takeCommands() {
|
|
9426
|
+
this.sealCommands();
|
|
9427
|
+
const content = this.commandParts.join("");
|
|
9428
|
+
// Encoding and awaited delivery own the page value; the next page starts independently.
|
|
9429
|
+
this.commandParts = [];
|
|
9430
|
+
return content;
|
|
9431
|
+
}
|
|
9269
9432
|
async finishPage() {
|
|
9270
9433
|
const contents = this.objects.reserve(), { page, options } = this.settings;
|
|
9271
|
-
await this.objects.stream(contents, this.
|
|
9434
|
+
await this.objects.stream(contents, this.takeCommands(), "", options.compression !== false);
|
|
9272
9435
|
const annotations = [];
|
|
9273
9436
|
for (const annotation of this.annotations) {
|
|
9274
9437
|
annotations.push(annotation.id);
|
|
@@ -9280,7 +9443,6 @@ class PdfPages {
|
|
|
9280
9443
|
(annotations.length ? " /Annots [" + annotations.map(id => id + " 0 R").join(" ") + "]" : "") + " >>");
|
|
9281
9444
|
if (this.structure)
|
|
9282
9445
|
await this.structure.finishPage();
|
|
9283
|
-
this.commands = [];
|
|
9284
9446
|
this.annotations = [];
|
|
9285
9447
|
this.commandBytes = 0;
|
|
9286
9448
|
this.current = 0;
|
|
@@ -9312,11 +9474,11 @@ class PdfPages {
|
|
|
9312
9474
|
}
|
|
9313
9475
|
}
|
|
9314
9476
|
const _exports = Object.freeze({ PdfPages: PdfPages });
|
|
9315
|
-
_modules.set("
|
|
9477
|
+
_modules.set("3ed7114181be5a3066742336da574fef7f2fc04ee6dfc5e64211f3bedad4cab9", _exports);
|
|
9316
9478
|
return _exports;
|
|
9317
9479
|
})();
|
|
9318
9480
|
|
|
9319
|
-
const
|
|
9481
|
+
const _m81 = _modules.get("7a58e8ccb5164de51db14e39ca9695af6487c354df909509f0ae6bfac8ae3887") ?? (() => {
|
|
9320
9482
|
/** @internal Incremental PDF number tree: at most 64 entries/children per retained level. */
|
|
9321
9483
|
class PdfParentTree {
|
|
9322
9484
|
objects;
|
|
@@ -9379,14 +9541,14 @@ _modules.set("7a58e8ccb5164de51db14e39ca9695af6487c354df909509f0ae6bfac8ae3887",
|
|
|
9379
9541
|
return _exports;
|
|
9380
9542
|
})();
|
|
9381
9543
|
|
|
9382
|
-
const
|
|
9544
|
+
const _m80 = _modules.get("1c1828a3d6dfc2edda674566203e7aa8e97c984114b7928df13cb373859977d0") ?? (() => {
|
|
9383
9545
|
const { OfficeIMOError } = _m2;
|
|
9384
9546
|
|
|
9385
9547
|
const { checkAbort } = _m4;
|
|
9386
9548
|
|
|
9387
|
-
const { unicodeHex } =
|
|
9549
|
+
const { unicodeHex } = _m60;
|
|
9388
9550
|
|
|
9389
|
-
const { PdfParentTree } =
|
|
9551
|
+
const { PdfParentTree } = _m81;
|
|
9390
9552
|
|
|
9391
9553
|
/** Same-page marked content uses integer K; cross-page MCR and annotation OBJR stay explicit. */
|
|
9392
9554
|
function structureChild(child) {
|
|
@@ -9691,12 +9853,12 @@ _modules.set("1c1828a3d6dfc2edda674566203e7aa8e97c984114b7928df13cb373859977d0",
|
|
|
9691
9853
|
return _exports;
|
|
9692
9854
|
})();
|
|
9693
9855
|
|
|
9694
|
-
const
|
|
9856
|
+
const _m82 = _modules.get("52c78ca6833cee7e5a96b657e2c00172d550176daf2c95e742692f8416977bea") ?? (() => {
|
|
9695
9857
|
const { OfficeIMOError } = _m2;
|
|
9696
9858
|
|
|
9697
9859
|
const { checkAbort } = _m4;
|
|
9698
9860
|
|
|
9699
|
-
const { pdfNumber, unicodeHex } =
|
|
9861
|
+
const { pdfNumber, unicodeHex } = _m60;
|
|
9700
9862
|
|
|
9701
9863
|
/** @internal Bounded native bookmarks; destinations are captured only when their content is painted. */
|
|
9702
9864
|
class PdfOutlines {
|
|
@@ -9755,18 +9917,18 @@ _modules.set("52c78ca6833cee7e5a96b657e2c00172d550176daf2c95e742692f8416977bea",
|
|
|
9755
9917
|
return _exports;
|
|
9756
9918
|
})();
|
|
9757
9919
|
|
|
9758
|
-
const
|
|
9759
|
-
const { PdfObjects, unicodeHex } =
|
|
9920
|
+
const _m59 = _modules.get("afdad27eb363e8de0c3bd69ebf358860eb76f5c6fb29f43a87635807cb7fc273") ?? (() => {
|
|
9921
|
+
const { PdfObjects, unicodeHex } = _m60;
|
|
9760
9922
|
|
|
9761
|
-
const { PdfFontResources } =
|
|
9923
|
+
const { PdfFontResources } = _m62;
|
|
9762
9924
|
|
|
9763
|
-
const { PdfTableLayout } =
|
|
9925
|
+
const { PdfTableLayout } = _m69;
|
|
9764
9926
|
|
|
9765
|
-
const { PdfPages } =
|
|
9927
|
+
const { PdfPages } = _m74;
|
|
9766
9928
|
|
|
9767
|
-
const { PdfStructure } =
|
|
9929
|
+
const { PdfStructure } = _m80;
|
|
9768
9930
|
|
|
9769
|
-
const { PdfOutlines } =
|
|
9931
|
+
const { PdfOutlines } = _m82;
|
|
9770
9932
|
|
|
9771
9933
|
/** One resource/catalog owner shared by table convenience exports and composed documents. */
|
|
9772
9934
|
class PdfWriteSession {
|
|
@@ -9818,11 +9980,11 @@ class PdfWriteSession {
|
|
|
9818
9980
|
}
|
|
9819
9981
|
}
|
|
9820
9982
|
const _exports = Object.freeze({ PdfWriteSession: PdfWriteSession });
|
|
9821
|
-
_modules.set("
|
|
9983
|
+
_modules.set("afdad27eb363e8de0c3bd69ebf358860eb76f5c6fb29f43a87635807cb7fc273", _exports);
|
|
9822
9984
|
return _exports;
|
|
9823
9985
|
})();
|
|
9824
9986
|
|
|
9825
|
-
const
|
|
9987
|
+
const _m55 = _modules.get("45cf9fd6b6293c1a83bc8554e1bcb5cf119f44701fbad7849f39a712cab5074b") ?? (() => {
|
|
9826
9988
|
const { BlobByteSink, withDestination } = _m3;
|
|
9827
9989
|
|
|
9828
9990
|
const { beginTask, checkAbort, consumeRows, pause, taskYieldDue } = _m4;
|
|
@@ -9831,9 +9993,9 @@ const { notifyProgress } = _m14;
|
|
|
9831
9993
|
|
|
9832
9994
|
const { createRowProjector } = _m11;
|
|
9833
9995
|
|
|
9834
|
-
const { settings } =
|
|
9996
|
+
const { settings } = _m56;
|
|
9835
9997
|
|
|
9836
|
-
const { PdfWriteSession } =
|
|
9998
|
+
const { PdfWriteSession } = _m59;
|
|
9837
9999
|
|
|
9838
10000
|
async function writePdf(rows, configuration) {
|
|
9839
10001
|
const sink = new BlobByteSink();
|
|
@@ -9887,11 +10049,11 @@ async function writePdfTo(rows, destination, configuration) {
|
|
|
9887
10049
|
});
|
|
9888
10050
|
}
|
|
9889
10051
|
const _exports = Object.freeze({ writePdf: writePdf, writePdfTo: writePdfTo });
|
|
9890
|
-
_modules.set("
|
|
10052
|
+
_modules.set("45cf9fd6b6293c1a83bc8554e1bcb5cf119f44701fbad7849f39a712cab5074b", _exports);
|
|
9891
10053
|
return _exports;
|
|
9892
10054
|
})();
|
|
9893
10055
|
|
|
9894
|
-
const
|
|
10056
|
+
const _m86 = _modules.get("749d1ec5422c0087787f525ef42e3b8d3a94d2b70eb5e42d2e3723a870777ad6") ?? (() => {
|
|
9895
10057
|
const { NotSupportedError, OfficeIMOError } = _m2;
|
|
9896
10058
|
|
|
9897
10059
|
const { checkAbort, pause, taskYieldDue, withAbort } = _m4;
|
|
@@ -10159,12 +10321,12 @@ _modules.set("749d1ec5422c0087787f525ef42e3b8d3a94d2b70eb5e42d2e3723a870777ad6",
|
|
|
10159
10321
|
return _exports;
|
|
10160
10322
|
})();
|
|
10161
10323
|
|
|
10162
|
-
const
|
|
10324
|
+
const _m85 = _modules.get("7dca2d9ca5c43893abdaf86df5b1bcb1f3de3d5d33532d082fdfe04711999d21") ?? (() => {
|
|
10163
10325
|
const { NotSupportedError, OfficeIMOError } = _m2;
|
|
10164
10326
|
|
|
10165
10327
|
const { checkAbort, pause, taskYieldDue } = _m4;
|
|
10166
10328
|
|
|
10167
|
-
const { pngPixels } =
|
|
10329
|
+
const { pngPixels } = _m86;
|
|
10168
10330
|
|
|
10169
10331
|
/** Shared document image resources; source objects are captured on first consumption. */
|
|
10170
10332
|
class PdfDocumentImages {
|
|
@@ -10293,14 +10455,14 @@ _modules.set("7dca2d9ca5c43893abdaf86df5b1bcb1f3de3d5d33532d082fdfe04711999d21",
|
|
|
10293
10455
|
return _exports;
|
|
10294
10456
|
})();
|
|
10295
10457
|
|
|
10296
|
-
const
|
|
10458
|
+
const _m87 = _modules.get("3290c84fdf80725af802f497d947bc088aa8d93d9db0a33f6f829f9153aa6fd6") ?? (() => {
|
|
10297
10459
|
const { OfficeIMOError } = _m2;
|
|
10298
10460
|
|
|
10299
10461
|
const { checkAbort, pause, taskYieldDue } = _m4;
|
|
10300
10462
|
|
|
10301
|
-
const { color, positive } =
|
|
10463
|
+
const { color, positive } = _m56;
|
|
10302
10464
|
|
|
10303
|
-
const { pdfNumber: n } =
|
|
10465
|
+
const { pdfNumber: n } = _m60;
|
|
10304
10466
|
|
|
10305
10467
|
/** Capture and serialize one bounded display path, with no markup parser or resource loading. */
|
|
10306
10468
|
async function vectorCommands(block, settings, used) {
|
|
@@ -10380,14 +10542,14 @@ _modules.set("3290c84fdf80725af802f497d947bc088aa8d93d9db0a33f6f829f9153aa6fd6",
|
|
|
10380
10542
|
return _exports;
|
|
10381
10543
|
})();
|
|
10382
10544
|
|
|
10383
|
-
const
|
|
10545
|
+
const _m88 = _modules.get("da9ad00f94b9ae28e2e3de796928ff0c4eab1d73382b1441e7d779fad4278ef7") ?? (() => {
|
|
10384
10546
|
const { NotSupportedError, OfficeIMOError } = _m2;
|
|
10385
10547
|
|
|
10386
10548
|
const { checkAbort, pause, taskYieldDue } = _m4;
|
|
10387
10549
|
|
|
10388
|
-
const { color, positive } =
|
|
10550
|
+
const { color, positive } = _m56;
|
|
10389
10551
|
|
|
10390
|
-
const { pdfNumber: n } =
|
|
10552
|
+
const { pdfNumber: n } = _m60;
|
|
10391
10553
|
|
|
10392
10554
|
/** Portable drawings are an exact schema: unsupported data must never be silently discarded. */
|
|
10393
10555
|
function record(value, keys, name) {
|
|
@@ -10627,20 +10789,20 @@ _modules.set("da9ad00f94b9ae28e2e3de796928ff0c4eab1d73382b1441e7d779fad4278ef7",
|
|
|
10627
10789
|
return _exports;
|
|
10628
10790
|
})();
|
|
10629
10791
|
|
|
10630
|
-
const
|
|
10792
|
+
const _m89 = _modules.get("5e4503b77b357ee6d9fad1f52690085b0f0b140cd3b550b63c5100ed95a92f88") ?? (() => {
|
|
10631
10793
|
const { OfficeIMOError } = _m2;
|
|
10632
10794
|
|
|
10633
|
-
const { capturePdfText, wrapPdfText } =
|
|
10795
|
+
const { capturePdfText, wrapPdfText } = _m71;
|
|
10634
10796
|
|
|
10635
|
-
const { positive } =
|
|
10797
|
+
const { positive } = _m56;
|
|
10636
10798
|
|
|
10637
|
-
const { resolveParagraphStyle } =
|
|
10799
|
+
const { resolveParagraphStyle } = _m57;
|
|
10638
10800
|
|
|
10639
|
-
const { captureBookmark } =
|
|
10801
|
+
const { captureBookmark } = _m78;
|
|
10640
10802
|
|
|
10641
10803
|
const { captureFields } = _m10;
|
|
10642
10804
|
|
|
10643
|
-
const { pdfBudgetText } =
|
|
10805
|
+
const { pdfBudgetText } = _m70;
|
|
10644
10806
|
|
|
10645
10807
|
/** @internal Copy public paragraph input before any cooperative layout or source enumeration. */
|
|
10646
10808
|
function captureParagraph(block, settings, fonts, budgetOnPaint = false) {
|
|
@@ -10711,12 +10873,12 @@ _modules.set("5e4503b77b357ee6d9fad1f52690085b0f0b140cd3b550b63c5100ed95a92f88",
|
|
|
10711
10873
|
return _exports;
|
|
10712
10874
|
})();
|
|
10713
10875
|
|
|
10714
|
-
const
|
|
10715
|
-
const { capturePdfText, wrapPdfText } =
|
|
10876
|
+
const _m90 = _modules.get("1d57c429705ae0cbc14d98dcfef4c8a6c2df06f391c8f58e99cacb02f2d1cbc7") ?? (() => {
|
|
10877
|
+
const { capturePdfText, wrapPdfText } = _m71;
|
|
10716
10878
|
|
|
10717
|
-
const { captureParagraph, prepareParagraph } =
|
|
10879
|
+
const { captureParagraph, prepareParagraph } = _m89;
|
|
10718
10880
|
|
|
10719
|
-
const { resolveParagraphStyle } =
|
|
10881
|
+
const { resolveParagraphStyle } = _m57;
|
|
10720
10882
|
|
|
10721
10883
|
function captureListOptions(block, settings) {
|
|
10722
10884
|
const { items, ordered = false, start: inputStart, itemStyle, indent, markerGap } = block;
|
|
@@ -10769,14 +10931,14 @@ _modules.set("1d57c429705ae0cbc14d98dcfef4c8a6c2df06f391c8f58e99cacb02f2d1cbc7",
|
|
|
10769
10931
|
return _exports;
|
|
10770
10932
|
})();
|
|
10771
10933
|
|
|
10772
|
-
const
|
|
10934
|
+
const _m92 = _modules.get("d04686d2c067355dfd215333b83eb5f79f96e9e4be49f942e050f21ac0795343") ?? (() => {
|
|
10773
10935
|
const { assertGroupedReportSource } = _m8;
|
|
10774
10936
|
|
|
10775
10937
|
const { captureFields } = _m10;
|
|
10776
10938
|
|
|
10777
|
-
const { captureWideTable } =
|
|
10939
|
+
const { captureWideTable } = _m56;
|
|
10778
10940
|
|
|
10779
|
-
const { presentation } =
|
|
10941
|
+
const { presentation } = _m58;
|
|
10780
10942
|
|
|
10781
10943
|
/** @internal Capture schemas shared by the block factory and standalone convenience writers. */
|
|
10782
10944
|
const groupedPdfLabelFields = ["labelColumn", "subtotalLabel", "grandTotalLabel", "includeGrandTotal", "continuationLabel", "groupHeadingLevel"];
|
|
@@ -10819,22 +10981,22 @@ _modules.set("d04686d2c067355dfd215333b83eb5f79f96e9e4be49f942e050f21ac0795343",
|
|
|
10819
10981
|
return _exports;
|
|
10820
10982
|
})();
|
|
10821
10983
|
|
|
10822
|
-
const
|
|
10984
|
+
const _m91 = _modules.get("289fa3a052c7fbab2a3ca0fb91fb9974db709d24b7d850f1175810258f0409a0") ?? (() => {
|
|
10823
10985
|
const { assertGroupedReportSource, groupedReportOperation } = _m8;
|
|
10824
10986
|
|
|
10825
10987
|
const { consumeRows } = _m4;
|
|
10826
10988
|
|
|
10827
10989
|
const { ExportCell } = _m5;
|
|
10828
10990
|
|
|
10829
|
-
const { captureGroupedPdfTableOptions } =
|
|
10991
|
+
const { captureGroupedPdfTableOptions } = _m92;
|
|
10830
10992
|
|
|
10831
|
-
const { settings } =
|
|
10993
|
+
const { settings } = _m56;
|
|
10832
10994
|
|
|
10833
|
-
const { PdfTableLayout } =
|
|
10995
|
+
const { PdfTableLayout } = _m69;
|
|
10834
10996
|
|
|
10835
|
-
const { captureCaption, captureParagraph, prepareParagraph } =
|
|
10997
|
+
const { captureCaption, captureParagraph, prepareParagraph } = _m89;
|
|
10836
10998
|
|
|
10837
|
-
const { synchronousText } =
|
|
10999
|
+
const { synchronousText } = _m70;
|
|
10838
11000
|
|
|
10839
11001
|
/** @internal Render one analytical source in the existing document session. Retain one detail row and
|
|
10840
11002
|
* at most four closing subtotals. All captions, rows, pages, bytes and fonts use the document owners. */
|
|
@@ -11073,11 +11235,11 @@ async function renderGroupedPdfTable(block, context) {
|
|
|
11073
11235
|
}
|
|
11074
11236
|
}
|
|
11075
11237
|
const _exports = Object.freeze({ renderGroupedPdfTable: renderGroupedPdfTable });
|
|
11076
|
-
_modules.set("
|
|
11238
|
+
_modules.set("289fa3a052c7fbab2a3ca0fb91fb9974db709d24b7d850f1175810258f0409a0", _exports);
|
|
11077
11239
|
return _exports;
|
|
11078
11240
|
})();
|
|
11079
11241
|
|
|
11080
|
-
const
|
|
11242
|
+
const _m84 = _modules.get("9051bf9fc3168e24b53b16c123a42816198456846003fb49191c03a18cdab904") ?? (() => {
|
|
11081
11243
|
const { BlobByteSink, withDestination } = _m3;
|
|
11082
11244
|
|
|
11083
11245
|
const { OfficeIMOError } = _m2;
|
|
@@ -11090,29 +11252,29 @@ const { copyColumns, createRowProjector } = _m11;
|
|
|
11090
11252
|
|
|
11091
11253
|
const { captureFields } = _m10;
|
|
11092
11254
|
|
|
11093
|
-
const { settings, captureWideTable } =
|
|
11255
|
+
const { settings, captureWideTable } = _m56;
|
|
11094
11256
|
|
|
11095
|
-
const { pdfNumber: n } =
|
|
11257
|
+
const { pdfNumber: n } = _m60;
|
|
11096
11258
|
|
|
11097
|
-
const { PdfTableLayout } =
|
|
11259
|
+
const { PdfTableLayout } = _m69;
|
|
11098
11260
|
|
|
11099
|
-
const { PdfWriteSession } =
|
|
11261
|
+
const { PdfWriteSession } = _m59;
|
|
11100
11262
|
|
|
11101
|
-
const { PdfDocumentImages } =
|
|
11263
|
+
const { PdfDocumentImages } = _m85;
|
|
11102
11264
|
|
|
11103
|
-
const { vectorCommands } =
|
|
11265
|
+
const { vectorCommands } = _m87;
|
|
11104
11266
|
|
|
11105
|
-
const { graphicAlternative } =
|
|
11267
|
+
const { graphicAlternative } = _m80;
|
|
11106
11268
|
|
|
11107
|
-
const { checkDrawingBlock, prepareDrawing } =
|
|
11269
|
+
const { checkDrawingBlock, prepareDrawing } = _m88;
|
|
11108
11270
|
|
|
11109
|
-
const { captureParagraph, captureCaption, prepareParagraph, checkParagraphBuffer, paragraphStartHeight } =
|
|
11271
|
+
const { captureParagraph, captureCaption, prepareParagraph, checkParagraphBuffer, paragraphStartHeight } = _m89;
|
|
11110
11272
|
|
|
11111
|
-
const { captureListOptions, prepareListItem } =
|
|
11273
|
+
const { captureListOptions, prepareListItem } = _m90;
|
|
11112
11274
|
|
|
11113
|
-
const { captureSection } =
|
|
11275
|
+
const { captureSection } = _m78;
|
|
11114
11276
|
|
|
11115
|
-
const { renderGroupedPdfTable } =
|
|
11277
|
+
const { renderGroupedPdfTable } = _m91;
|
|
11116
11278
|
|
|
11117
11279
|
const tableOptionFields = ["columns", "includeHeader", "headerRows", "footer", "headerPresentation", "footerPresentation", "alternateRowColor", "columnWidths", "wideTable", "formatValue", "formatRuns"];
|
|
11118
11280
|
/** Capture typed columns for a single-use table source in a composed document. */
|
|
@@ -11367,22 +11529,22 @@ function captureTableOptions(options) {
|
|
|
11367
11529
|
return { ...captured, ...(captured.wideTable === undefined ? {} : { wideTable: captureWideTable(captured.wideTable) }) };
|
|
11368
11530
|
}
|
|
11369
11531
|
const _exports = Object.freeze({ pdfTable: pdfTable, writePdfDocument: writePdfDocument, writePdfDocumentTo: writePdfDocumentTo });
|
|
11370
|
-
_modules.set("
|
|
11532
|
+
_modules.set("9051bf9fc3168e24b53b16c123a42816198456846003fb49191c03a18cdab904", _exports);
|
|
11371
11533
|
return _exports;
|
|
11372
11534
|
})();
|
|
11373
11535
|
|
|
11374
|
-
const
|
|
11536
|
+
const _m83 = _modules.get("abe76e52ffeed11ab42477c83ddde1d1d7de28b803096436b5b23cb153af58ba") ?? (() => {
|
|
11375
11537
|
const { assertGroupedReportSource } = _m8;
|
|
11376
11538
|
|
|
11377
11539
|
const { BlobByteSink } = _m3;
|
|
11378
11540
|
|
|
11379
|
-
const { writePdfDocumentTo } =
|
|
11541
|
+
const { writePdfDocumentTo } = _m84;
|
|
11380
11542
|
|
|
11381
|
-
const { pdfOptionFields } =
|
|
11543
|
+
const { pdfOptionFields } = _m56;
|
|
11382
11544
|
|
|
11383
11545
|
const { captureFields } = _m10;
|
|
11384
11546
|
|
|
11385
|
-
const { pdfGroupedTable, groupedPdfLabelFields, groupedPdfTableFields } =
|
|
11547
|
+
const { pdfGroupedTable, groupedPdfLabelFields, groupedPdfTableFields } = _m92;
|
|
11386
11548
|
|
|
11387
11549
|
|
|
11388
11550
|
|
|
@@ -11416,15 +11578,15 @@ async function writeGroupedPdfTo(report, destination, configuration) {
|
|
|
11416
11578
|
delete documentOptions.footer;
|
|
11417
11579
|
return writePdfDocumentTo([pdfGroupedTable(report, tableOptions)], destination, documentOptions);
|
|
11418
11580
|
}
|
|
11419
|
-
const _exports = Object.freeze({ pdfGroupedTable:
|
|
11420
|
-
_modules.set("
|
|
11581
|
+
const _exports = Object.freeze({ pdfGroupedTable: _m92.pdfGroupedTable, writeGroupedPdf: writeGroupedPdf, writeGroupedPdfTo: writeGroupedPdfTo });
|
|
11582
|
+
_modules.set("abe76e52ffeed11ab42477c83ddde1d1d7de28b803096436b5b23cb153af58ba", _exports);
|
|
11421
11583
|
return _exports;
|
|
11422
11584
|
})();
|
|
11423
11585
|
|
|
11424
|
-
const
|
|
11425
|
-
const { fontProgram } =
|
|
11586
|
+
const _m93 = _modules.get("3d777096288d1be55a05a80bc015d4674212e587703f25a7e7cf99a8065feb86") ?? (() => {
|
|
11587
|
+
const { fontProgram } = _m63;
|
|
11426
11588
|
|
|
11427
|
-
const { resolveScalar, selectFont, validateFonts } =
|
|
11589
|
+
const { resolveScalar, selectFont, validateFonts } = _m67;
|
|
11428
11590
|
|
|
11429
11591
|
/**
|
|
11430
11592
|
* Check one text run against the writer's selected font and scalar-layout rules.
|
|
@@ -11461,14 +11623,14 @@ _modules.set("3d777096288d1be55a05a80bc015d4674212e587703f25a7e7cf99a8065feb86",
|
|
|
11461
11623
|
return _exports;
|
|
11462
11624
|
})();
|
|
11463
11625
|
|
|
11464
|
-
const
|
|
11626
|
+
const _m54 = _modules.get("027aafa08408056b10d7d717d63d1f7c0ee20ecfc68213aa66feacc75ec525fe") ?? (() => {
|
|
11465
11627
|
|
|
11466
|
-
const _exports = Object.freeze({ writePdf:
|
|
11467
|
-
_modules.set("
|
|
11628
|
+
const _exports = Object.freeze({ writePdf: _m55.writePdf, writePdfTo: _m55.writePdfTo, writeGroupedPdf: _m83.writeGroupedPdf, writeGroupedPdfTo: _m83.writeGroupedPdfTo, pdfGroupedTable: _m83.pdfGroupedTable, createGroupedReport: _m8.createGroupedReport, writePdfDocument: _m84.writePdfDocument, writePdfDocumentTo: _m84.writePdfDocumentTo, pdfTable: _m84.pdfTable, PdfFont: _m63.PdfFont, preflightPdfText: _m93.preflightPdfText, ExportCell: _m5.ExportCell, saveBlob: _m1.saveBlob });
|
|
11629
|
+
_modules.set("027aafa08408056b10d7d717d63d1f7c0ee20ecfc68213aa66feacc75ec525fe", _exports);
|
|
11468
11630
|
return _exports;
|
|
11469
11631
|
})();
|
|
11470
11632
|
|
|
11471
|
-
const
|
|
11633
|
+
const _m94 = _modules.get("e37eb5f0298d8bc9492db790f163f4a1d6d8b4293981cfdacfcd9d9810ec9b7f") ?? (() => {
|
|
11472
11634
|
/** @internal Runtime-checked calls across the optional third-party API boundary. */
|
|
11473
11635
|
function call(owner, name, ...args) {
|
|
11474
11636
|
const fn = member(owner, name);
|
|
@@ -11501,12 +11663,12 @@ _modules.set("e37eb5f0298d8bc9492db790f163f4a1d6d8b4293981cfdacfcd9d9810ec9b7f",
|
|
|
11501
11663
|
return _exports;
|
|
11502
11664
|
})();
|
|
11503
11665
|
|
|
11504
|
-
const
|
|
11666
|
+
const _m95 = _modules.get("0e5ede7759618ed3ec827d34fbd62b205f3a5241650504807c24e5323a2496a5") ?? (() => {
|
|
11505
11667
|
const { ExportCell, assertExportValue } = _m5;
|
|
11506
11668
|
|
|
11507
11669
|
const { tableSpans } = _m17;
|
|
11508
11670
|
|
|
11509
|
-
const { member } =
|
|
11671
|
+
const { member } = _m94;
|
|
11510
11672
|
|
|
11511
11673
|
/** @internal */
|
|
11512
11674
|
function value(input) {
|
|
@@ -11575,7 +11737,7 @@ _modules.set("0e5ede7759618ed3ec827d34fbd62b205f3a5241650504807c24e5323a2496a5",
|
|
|
11575
11737
|
return _exports;
|
|
11576
11738
|
})();
|
|
11577
11739
|
|
|
11578
|
-
const
|
|
11740
|
+
const _m96 = _modules.get("355177890a4e7a43de040650e9c2359a6ccf105705bc6231f51db5975a838d3d") ?? (() => {
|
|
11579
11741
|
const { checkAbort, pause, rowsFromBatches, taskYieldDue } = _m4;
|
|
11580
11742
|
|
|
11581
11743
|
const { ExportBudget } = _m9;
|
|
@@ -11584,9 +11746,9 @@ const { captureFields } = _m10;
|
|
|
11584
11746
|
|
|
11585
11747
|
const { columnOptionFields, copyColumns } = _m11;
|
|
11586
11748
|
|
|
11587
|
-
const { array, call, indexes, member } =
|
|
11749
|
+
const { array, call, indexes, member } = _m94;
|
|
11588
11750
|
|
|
11589
|
-
const { headings, text, value } =
|
|
11751
|
+
const { headings, text, value } = _m95;
|
|
11590
11752
|
|
|
11591
11753
|
function safeOptions(options) {
|
|
11592
11754
|
options = captureFields(options, ["rows", "columns", "modifier", "orthogonal", "stripHtml", "stripNewlines", "decodeEntities", "escapeExcelFormula", "trim", "format", "customizeData"]);
|
|
@@ -11793,16 +11955,16 @@ _modules.set("355177890a4e7a43de040650e9c2359a6ccf105705bc6231f51db5975a838d3d",
|
|
|
11793
11955
|
return _exports;
|
|
11794
11956
|
})();
|
|
11795
11957
|
|
|
11796
|
-
const
|
|
11958
|
+
const _m97 = _modules.get("7b12a415e92cc9ef7212fb3a88007cb6dc37f9f30077165d4897cfa8052f9a3c") ?? (() => {
|
|
11797
11959
|
const { captureFields } = _m10;
|
|
11798
11960
|
|
|
11799
11961
|
const { ExportBudget } = _m9;
|
|
11800
11962
|
|
|
11801
11963
|
const { captureCsvOptions: captureCsv } = _m19;
|
|
11802
11964
|
|
|
11803
|
-
const { capturePdfOptions: capturePdf, capturePdfLimits, pdfLimitFields } =
|
|
11965
|
+
const { capturePdfOptions: capturePdf, capturePdfLimits, pdfLimitFields } = _m56;
|
|
11804
11966
|
|
|
11805
|
-
const { captureWorkbookLimits, workbookLimitFields, workbookOptionFields, sheetOptionFields } =
|
|
11967
|
+
const { captureWorkbookLimits, workbookLimitFields, workbookOptionFields, sheetOptionFields } = _m47;
|
|
11806
11968
|
|
|
11807
11969
|
const limitFields = [...new Set([...workbookLimitFields, ...pdfLimitFields])];
|
|
11808
11970
|
const portableWorkbookFields = workbookOptionFields.filter((key) => key !== "sink");
|
|
@@ -11834,11 +11996,11 @@ function capturePdfOptions(input = {}) {
|
|
|
11834
11996
|
return { ...options, ...(options.limits === undefined ? {} : { limits: capturePdfLimits(options.limits) }) };
|
|
11835
11997
|
}
|
|
11836
11998
|
const _exports = Object.freeze({ captureCommonLimits: captureCommonLimits, mergeAdapterLimits: mergeAdapterLimits, captureXlsxOptions: captureXlsxOptions, captureCsvOptions: captureCsvOptions, capturePdfOptions: capturePdfOptions });
|
|
11837
|
-
_modules.set("
|
|
11999
|
+
_modules.set("7b12a415e92cc9ef7212fb3a88007cb6dc37f9f30077165d4897cfa8052f9a3c", _exports);
|
|
11838
12000
|
return _exports;
|
|
11839
12001
|
})();
|
|
11840
12002
|
|
|
11841
|
-
const _m0 = _modules.get("
|
|
12003
|
+
const _m0 = _modules.get("e1e425a9e0b0395ee93081d272efccecbe05aae4894ad4e46880868003b542ca") ?? (() => {
|
|
11842
12004
|
const { BlobByteSink, checkAbort, saveBlob } = _m1;
|
|
11843
12005
|
|
|
11844
12006
|
const { notifyProgress } = _m14;
|
|
@@ -11847,19 +12009,19 @@ const { writeCsvTo } = _m15;
|
|
|
11847
12009
|
|
|
11848
12010
|
const { writeXlsxTo } = _m20;
|
|
11849
12011
|
|
|
11850
|
-
const { writePdfTo } =
|
|
12012
|
+
const { writePdfTo } = _m54;
|
|
11851
12013
|
|
|
11852
|
-
const { portableSheet, portableWorkbook } =
|
|
12014
|
+
const { portableSheet, portableWorkbook } = _m51;
|
|
11853
12015
|
|
|
11854
|
-
const { call, member } =
|
|
12016
|
+
const { call, member } = _m94;
|
|
11855
12017
|
|
|
11856
|
-
const { value } =
|
|
12018
|
+
const { value } = _m95;
|
|
11857
12019
|
|
|
11858
|
-
const { captureDataTablesExport } =
|
|
12020
|
+
const { captureDataTablesExport } = _m96;
|
|
11859
12021
|
|
|
11860
12022
|
const { captureFields } = _m10;
|
|
11861
12023
|
|
|
11862
|
-
const { captureCommonLimits, captureXlsxOptions, captureCsvOptions, capturePdfOptions, mergeAdapterLimits } =
|
|
12024
|
+
const { captureCommonLimits, captureXlsxOptions, captureCsvOptions, capturePdfOptions, mergeAdapterLimits } = _m97;
|
|
11863
12025
|
|
|
11864
12026
|
|
|
11865
12027
|
|
|
@@ -12020,8 +12182,8 @@ function registerDataTablesButtons(host, options = {}) {
|
|
|
12020
12182
|
};
|
|
12021
12183
|
}
|
|
12022
12184
|
}
|
|
12023
|
-
const _exports = Object.freeze({ createDataTablesExport:
|
|
12024
|
-
_modules.set("
|
|
12185
|
+
const _exports = Object.freeze({ createDataTablesExport: _m96.createDataTablesExport, ExportCell: _m5.ExportCell, PdfFont: _m63.PdfFont, writeDataTableTo: writeDataTableTo, exportDataTable: exportDataTable, registerDataTablesButtons: registerDataTablesButtons });
|
|
12186
|
+
_modules.set("e1e425a9e0b0395ee93081d272efccecbe05aae4894ad4e46880868003b542ca", _exports);
|
|
12025
12187
|
return _exports;
|
|
12026
12188
|
})();
|
|
12027
12189
|
Object.assign(officeimo, _m0);
|