ooxml-core 1.35.0 → 1.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PptxHandler-2JSQ22VD.cjs +14 -0
- package/dist/{PptxHandler-XCYX5DVX.mjs → PptxHandler-3T5DTNKA.mjs} +2 -2
- package/dist/PptxHandler-7T7ZS7IK.mjs +5 -0
- package/dist/{PresentationBuilder-JBTNOIL7.mjs → PresentationBuilder-D6ZICJWN.mjs} +3 -3
- package/dist/{PresentationBuilder-HA56ZY23.cjs → PresentationBuilder-HCMXZQDK.cjs} +6 -6
- package/dist/{PresentationBuilder-IVLUEB4K.mjs → PresentationBuilder-XHKNDJMD.mjs} +2 -2
- package/dist/automation/index.cjs +20529 -17975
- package/dist/automation/index.mjs +20510 -17975
- package/dist/chart/index.cjs +1 -1
- package/dist/chart/index.mjs +1 -1
- package/dist/chart/region-map/index.cjs +1 -1
- package/dist/chart/region-map/index.mjs +1 -1
- package/dist/{chunk-UQMAPY6D.mjs → chunk-2TQJHNVU.mjs} +1 -1
- package/dist/{chunk-RI56PFGL.mjs → chunk-4YBSHQ76.mjs} +5 -5
- package/dist/{chunk-XF6ZRA2D.cjs → chunk-AFALJ5TA.cjs} +3 -3
- package/dist/{chunk-MK2IBZU6.mjs → chunk-CNIKTXAV.mjs} +1 -1
- package/dist/{chunk-PA5ADSTX.cjs → chunk-GZOYXHDF.cjs} +1269 -1269
- package/dist/{chunk-LSO5SSFX.mjs → chunk-H2Q42P6P.mjs} +1 -1
- package/dist/{chunk-EGBNPVBA.mjs → chunk-J43V3QOA.mjs} +2 -2
- package/dist/{chunk-TJXK4D4U.mjs → chunk-M2DFN3SP.mjs} +4 -4
- package/dist/{chunk-RPJHMPEL.mjs → chunk-OEM2ECAJ.mjs} +1 -1
- package/dist/{chunk-GNGL4BO7.mjs → chunk-RHQQS6LJ.mjs} +4 -4
- package/dist/{chunk-A27O7M5X.cjs → chunk-SNID2FDY.cjs} +1 -1
- package/dist/{chunk-EDRS3OSM.mjs → chunk-WNAPUUAT.mjs} +1 -0
- package/dist/color/theme-palette.d.ts +1 -1
- package/dist/color/theme-palette.d.ts.map +1 -1
- package/dist/crypto/index.cjs +1 -1
- package/dist/crypto/index.mjs +1 -1
- package/dist/diagram/index.cjs +1 -1
- package/dist/diagram/index.mjs +1 -1
- package/dist/docx/block-parser.d.ts.map +1 -1
- package/dist/docx/comment-parts.d.ts +33 -0
- package/dist/docx/comment-parts.d.ts.map +1 -0
- package/dist/docx/comments.d.ts +5 -2
- package/dist/docx/comments.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +15231 -14731
- package/dist/docx/embedded.mjs +15231 -14731
- package/dist/docx/glossary.d.ts.map +1 -1
- package/dist/docx/index.cjs +10771 -10329
- package/dist/docx/index.mjs +10771 -10329
- package/dist/docx/layout/index.cjs +81 -73
- package/dist/docx/layout/index.mjs +81 -73
- package/dist/docx/load/index.cjs +16891 -16391
- package/dist/docx/load/index.mjs +16891 -16391
- package/dist/docx/page-background.d.ts +4 -3
- package/dist/docx/page-background.d.ts.map +1 -1
- package/dist/docx/paragraph-text.d.ts +5 -0
- package/dist/docx/paragraph-text.d.ts.map +1 -0
- package/dist/docx/parse.d.ts.map +1 -1
- package/dist/docx/save.d.ts.map +1 -1
- package/dist/docx/special-characters.d.ts +2 -0
- package/dist/docx/special-characters.d.ts.map +1 -1
- package/dist/docx/theme-color.d.ts.map +1 -1
- package/dist/docx/ui/index.cjs +135 -135
- package/dist/docx/ui/index.mjs +135 -135
- package/dist/docx/write-comment-identities.d.ts +8 -0
- package/dist/docx/write-comment-identities.d.ts.map +1 -0
- package/dist/docx/write-comment-metadata.d.ts +12 -0
- package/dist/docx/write-comment-metadata.d.ts.map +1 -0
- package/dist/docx/write-comment-text.d.ts +3 -0
- package/dist/docx/write-comment-text.d.ts.map +1 -0
- package/dist/docx/write-comments.d.ts +1 -4
- package/dist/docx/write-comments.d.ts.map +1 -1
- package/dist/drawingml/index.cjs +1 -1
- package/dist/drawingml/index.mjs +1 -1
- package/dist/index.cjs +110 -6
- package/dist/index.mjs +91 -6
- package/dist/math/index.cjs +1 -1
- package/dist/math/index.mjs +1 -1
- package/dist/opc/index.cjs +78 -3
- package/dist/opc/index.mjs +78 -3
- package/dist/opc/signature/index.d.ts +1 -0
- package/dist/opc/signature/index.d.ts.map +1 -1
- package/dist/opc/signature/package.d.ts +12 -0
- package/dist/opc/signature/package.d.ts.map +1 -0
- package/dist/pptx/automation/index.cjs +21 -4
- package/dist/pptx/automation/index.d.ts +1 -0
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +16 -6
- package/dist/pptx/automation/schemas/index.cjs +1 -0
- package/dist/pptx/automation/schemas/index.mjs +1 -1
- package/dist/pptx/automation/schemas/presentation-schemas.cjs +1 -0
- package/dist/pptx/automation/schemas/presentation-schemas.d.ts +1 -0
- package/dist/pptx/automation/schemas/presentation-schemas.d.ts.map +1 -1
- package/dist/pptx/automation/schemas/presentation-schemas.mjs +1 -1
- package/dist/pptx/cli/index.cjs +10 -4
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.cjs +7 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +15 -15
- package/dist/pptx/editor/render/find-replace.mjs +2 -2
- package/dist/pptx/editor/render/slide-operations.cjs +9 -9
- package/dist/pptx/editor/render/slide-operations.mjs +3 -3
- package/dist/pptx/index.cjs +10 -4
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/ui/index.d.ts +1 -1
- package/dist/teams/index.cjs +812 -95
- package/dist/teams/index.mjs +811 -95
- package/dist/visio/bevel-3d.d.ts +37 -14
- package/dist/visio/bevel-3d.d.ts.map +1 -1
- package/dist/visio/bevel-shading.d.ts +72 -0
- package/dist/visio/bevel-shading.d.ts.map +1 -0
- package/dist/visio/cff-author.d.ts +14 -0
- package/dist/visio/cff-author.d.ts.map +1 -0
- package/dist/visio/cff-masters.d.ts +11 -0
- package/dist/visio/cff-masters.d.ts.map +1 -1
- package/dist/visio/cff-recalc.d.ts.map +1 -1
- package/dist/visio/collab/index.cjs +1 -1
- package/dist/visio/collab/index.mjs +1 -1
- package/dist/visio/data-graphic-instance.d.ts +44 -0
- package/dist/visio/data-graphic-instance.d.ts.map +1 -0
- package/dist/visio/data-graphic-masters.d.ts +38 -0
- package/dist/visio/data-graphic-masters.d.ts.map +1 -0
- package/dist/visio/data-graphic-place.d.ts +34 -0
- package/dist/visio/data-graphic-place.d.ts.map +1 -0
- package/dist/visio/edit-commands.d.ts +10 -1
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-data-graphic-guard.d.ts +13 -0
- package/dist/visio/edit-data-graphic-guard.d.ts.map +1 -0
- package/dist/visio/edit-data-graphic-owner.d.ts +9 -0
- package/dist/visio/edit-data-graphic-owner.d.ts.map +1 -0
- package/dist/visio/edit-data-graphic-refresh.d.ts +14 -0
- package/dist/visio/edit-data-graphic-refresh.d.ts.map +1 -0
- package/dist/visio/edit-data-graphic.d.ts +33 -0
- package/dist/visio/edit-data-graphic.d.ts.map +1 -0
- package/dist/visio/edit-formatting-commands.d.ts +6 -0
- package/dist/visio/edit-formatting-commands.d.ts.map +1 -1
- package/dist/visio/edit-formatting-paint.d.ts.map +1 -1
- package/dist/visio/edit-formatting-text-commands.d.ts +8 -0
- package/dist/visio/edit-formatting-text-commands.d.ts.map +1 -1
- package/dist/visio/edit-formatting-text-extra.d.ts +14 -0
- package/dist/visio/edit-formatting-text-extra.d.ts.map +1 -1
- package/dist/visio/edit-formatting-text.d.ts.map +1 -1
- package/dist/visio/edit-formatting.d.ts.map +1 -1
- package/dist/visio/edit-instance-geometry.d.ts.map +1 -1
- package/dist/visio/edit-instance-recalculate.d.ts +6 -1
- package/dist/visio/edit-instance-recalculate.d.ts.map +1 -1
- package/dist/visio/edit-shape-create.d.ts.map +1 -1
- package/dist/visio/edit-shape-data.d.ts.map +1 -1
- package/dist/visio/edit-stencil-connector.d.ts.map +1 -1
- package/dist/visio/edit-swimlane-cff.d.ts +28 -0
- package/dist/visio/edit-swimlane-cff.d.ts.map +1 -0
- package/dist/visio/edit-swimlane-clone.d.ts +8 -4
- package/dist/visio/edit-swimlane-clone.d.ts.map +1 -1
- package/dist/visio/edit-swimlane-layout.d.ts +6 -1
- package/dist/visio/edit-swimlane-layout.d.ts.map +1 -1
- package/dist/visio/edit-swimlane-ops.d.ts.map +1 -1
- package/dist/visio/edit-swimlane-stamp.d.ts +22 -0
- package/dist/visio/edit-swimlane-stamp.d.ts.map +1 -0
- package/dist/visio/edit.d.ts.map +1 -1
- package/dist/visio/formula-analyze.d.ts.map +1 -1
- package/dist/visio/formula-evaluate.d.ts.map +1 -1
- package/dist/visio/formula.d.ts.map +1 -1
- package/dist/visio/index.cjs +4279 -2236
- package/dist/visio/index.d.ts +4 -1
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +4262 -2237
- package/dist/visio/master-list.d.ts +3 -3
- package/dist/visio/master-list.d.ts.map +1 -1
- package/dist/visio/model.d.ts +12 -3
- package/dist/visio/model.d.ts.map +1 -1
- package/dist/visio/path-segments.d.ts +25 -0
- package/dist/visio/path-segments.d.ts.map +1 -0
- package/dist/visio/rotation-presets.d.ts +25 -0
- package/dist/visio/rotation-presets.d.ts.map +1 -0
- package/dist/visio/shape-sections.d.ts +4 -3
- package/dist/visio/shape-sections.d.ts.map +1 -1
- package/dist/visio/shape-structure.d.ts.map +1 -1
- package/dist/visio/shapes.d.ts +2 -0
- package/dist/visio/shapes.d.ts.map +1 -1
- package/dist/visio/solid-3d.d.ts +64 -0
- package/dist/visio/solid-3d.d.ts.map +1 -0
- package/dist/visio/style.d.ts.map +1 -1
- package/dist/visio/theme-solid.d.ts +21 -0
- package/dist/visio/theme-solid.d.ts.map +1 -0
- package/dist/visio/ui/data-graphic-config.d.ts +4 -19
- package/dist/visio/ui/data-graphic-config.d.ts.map +1 -1
- package/dist/visio/ui/data-graphic-items.d.ts.map +1 -1
- package/dist/visio/ui/data-graphic-native.d.ts +20 -0
- package/dist/visio/ui/data-graphic-native.d.ts.map +1 -0
- package/dist/visio/ui/data-graphics.d.ts.map +1 -1
- package/dist/visio/ui/data-visualizer-edits.d.ts +1 -0
- package/dist/visio/ui/data-visualizer-edits.d.ts.map +1 -1
- package/dist/visio/ui/edit-commands.d.ts.map +1 -1
- package/dist/visio/ui/index.cjs +4273 -2347
- package/dist/visio/ui/index.mjs +4270 -2348
- package/dist/visio/ui/org-chart-belt.d.ts +20 -0
- package/dist/visio/ui/org-chart-belt.d.ts.map +1 -0
- package/dist/visio/ui/org-chart-edit.d.ts +8 -1
- package/dist/visio/ui/org-chart-edit.d.ts.map +1 -1
- package/dist/visio/ui/org-chart-import.d.ts.map +1 -1
- package/dist/visio/ui/scene-validation.d.ts.map +1 -1
- package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
- package/dist/visio/ui/swimlane.d.ts.map +1 -1
- package/dist/visio/ui/text-dialog.d.ts +12 -0
- package/dist/visio/ui/text-dialog.d.ts.map +1 -1
- package/dist/xlsx/collab/index.cjs +45 -2
- package/dist/xlsx/collab/index.mjs +45 -2
- package/dist/xlsx/collab/part-specs.d.ts.map +1 -1
- package/dist/xlsx/collab/sheets.d.ts +1 -0
- package/dist/xlsx/collab/sheets.d.ts.map +1 -1
- package/dist/xlsx/edit/annotations.d.ts +4 -0
- package/dist/xlsx/edit/annotations.d.ts.map +1 -1
- package/dist/xlsx/edit/clipboard-annotations.d.ts.map +1 -1
- package/dist/xlsx/edit/comment-identities.d.ts +4 -0
- package/dist/xlsx/edit/comment-identities.d.ts.map +1 -0
- package/dist/xlsx/edit/session.d.ts.map +1 -1
- package/dist/xlsx/edit/sheets.d.ts.map +1 -1
- package/dist/xlsx/edit/types.d.ts +3 -0
- package/dist/xlsx/edit/types.d.ts.map +1 -1
- package/dist/xlsx/formula/functions/filterxml.d.ts +2 -0
- package/dist/xlsx/formula/functions/filterxml.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/registry.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +1007 -285
- package/dist/xlsx/index.mjs +988 -285
- package/dist/xlsx/layout/split.d.ts +3 -1
- package/dist/xlsx/layout/split.d.ts.map +1 -1
- package/dist/xlsx/load/index.cjs +809 -126
- package/dist/xlsx/load/index.mjs +790 -126
- package/dist/xlsx/model.d.ts +19 -7
- package/dist/xlsx/model.d.ts.map +1 -1
- package/dist/xlsx/read/comments.d.ts +3 -1
- package/dist/xlsx/read/comments.d.ts.map +1 -1
- package/dist/xlsx/read/conditional.d.ts +2 -2
- package/dist/xlsx/read/conditional.d.ts.map +1 -1
- package/dist/xlsx/read/data-validations.d.ts +7 -0
- package/dist/xlsx/read/data-validations.d.ts.map +1 -0
- package/dist/xlsx/read/sheet-props.d.ts.map +1 -1
- package/dist/xlsx/read/worksheet.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/messages.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -1
- package/dist/xlsx/ui/grid/geometry.d.ts +3 -0
- package/dist/xlsx/ui/grid/geometry.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +952 -168
- package/dist/xlsx/ui/index.mjs +933 -169
- package/dist/xlsx/ui/selection.d.ts +3 -0
- package/dist/xlsx/ui/selection.d.ts.map +1 -1
- package/dist/xlsx/validation-extensions.d.ts +6 -0
- package/dist/xlsx/validation-extensions.d.ts.map +1 -0
- package/dist/xlsx/write/comment-ids.d.ts +14 -0
- package/dist/xlsx/write/comment-ids.d.ts.map +1 -0
- package/dist/xlsx/write/comment-mentions.d.ts +6 -0
- package/dist/xlsx/write/comment-mentions.d.ts.map +1 -0
- package/dist/xlsx/write/comment-persons.d.ts +16 -0
- package/dist/xlsx/write/comment-persons.d.ts.map +1 -0
- package/dist/xlsx/write/comments.d.ts +5 -11
- package/dist/xlsx/write/comments.d.ts.map +1 -1
- package/dist/xlsx/write/conditional.d.ts +2 -2
- package/dist/xlsx/write/conditional.d.ts.map +1 -1
- package/dist/xlsx/write/data-validations.d.ts +6 -0
- package/dist/xlsx/write/data-validations.d.ts.map +1 -0
- package/dist/xlsx/write/save.d.ts.map +1 -1
- package/dist/xlsx/write/sheet-parts.d.ts +4 -0
- package/dist/xlsx/write/sheet-parts.d.ts.map +1 -1
- package/dist/xlsx/write/sheet-props.d.ts.map +1 -1
- package/dist/xlsx/write/threaded-comments.d.ts +19 -0
- package/dist/xlsx/write/threaded-comments.d.ts.map +1 -0
- package/dist/xlsx/write/worksheet.d.ts.map +1 -1
- package/dist/xml/index.cjs +31 -1
- package/dist/xml/index.d.ts +1 -0
- package/dist/xml/index.d.ts.map +1 -1
- package/dist/xml/index.mjs +11 -2
- package/dist/xml/xml.d.ts +2 -0
- package/dist/xml/xml.d.ts.map +1 -1
- package/dist/xml/xpath.d.ts +9 -0
- package/dist/xml/xpath.d.ts.map +1 -0
- package/package.json +2 -1
- package/dist/PptxHandler-5UDSMCBG.cjs +0 -14
- package/dist/PptxHandler-TTRTAQAR.mjs +0 -5
package/dist/xlsx/ui/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { XMLSerializer, DOMParser } from '@xmldom/xmldom';
|
|
2
|
+
import * as xpath from 'xpath';
|
|
2
3
|
import JSZip2 from 'jszip';
|
|
3
4
|
import { Inflate } from 'fflate';
|
|
4
5
|
|
|
@@ -1789,7 +1790,7 @@ function parseXml(xml, options7 = {}) {
|
|
|
1789
1790
|
try {
|
|
1790
1791
|
parsed = new DOMParser({
|
|
1791
1792
|
onError: (level4, message) => {
|
|
1792
|
-
if (level4 !== "warning") parseError = message;
|
|
1793
|
+
if (level4 !== "warning" || options7.warningsAsErrors) parseError = message;
|
|
1793
1794
|
}
|
|
1794
1795
|
}).parseFromString(xml, "application/xml");
|
|
1795
1796
|
} catch (error) {
|
|
@@ -2027,6 +2028,14 @@ function startTag(source3, from, namespaces) {
|
|
|
2027
2028
|
if (i2 < n2 && !isSpace2(after) && after !== 62 && after !== 47) return void 0;
|
|
2028
2029
|
}
|
|
2029
2030
|
}
|
|
2031
|
+
var compiler = xpath;
|
|
2032
|
+
function selectXmlNodes(expression, node2, options7 = {}) {
|
|
2033
|
+
return compiler.parse(expression).select({
|
|
2034
|
+
node: node2,
|
|
2035
|
+
...options7.namespaces ? { namespaces: options7.namespaces } : {},
|
|
2036
|
+
allowAnyNamespaceForNoPrefix: options7.matchDefaultNamespace ?? false
|
|
2037
|
+
});
|
|
2038
|
+
}
|
|
2030
2039
|
|
|
2031
2040
|
// color/color-primitives.ts
|
|
2032
2041
|
function clampUnitInterval(value3) {
|
|
@@ -18254,6 +18263,83 @@ var TEXT_EXTRA_FUNCTIONS = [
|
|
|
18254
18263
|
)
|
|
18255
18264
|
];
|
|
18256
18265
|
|
|
18266
|
+
// xlsx/formula/functions/filterxml.ts
|
|
18267
|
+
var XML = "http://www.w3.org/XML/1998/namespace";
|
|
18268
|
+
var XMLNS = "http://www.w3.org/2000/xmlns/";
|
|
18269
|
+
function preservesSpace(node2) {
|
|
18270
|
+
for (let current = node2; current; current = current.parentNode) {
|
|
18271
|
+
if (current.nodeType !== 1) continue;
|
|
18272
|
+
const value3 = current.getAttributeNS(XML, "space");
|
|
18273
|
+
if (value3) return value3 === "preserve";
|
|
18274
|
+
}
|
|
18275
|
+
return false;
|
|
18276
|
+
}
|
|
18277
|
+
function prepare(root) {
|
|
18278
|
+
const namespaces = /* @__PURE__ */ Object.create(null);
|
|
18279
|
+
const visit2 = (element3) => {
|
|
18280
|
+
for (const attr3 of Array.from(element3.attributes)) {
|
|
18281
|
+
if (attr3.namespaceURI !== XMLNS || attr3.localName === "xmlns") continue;
|
|
18282
|
+
const prior = namespaces[attr3.localName];
|
|
18283
|
+
if (prior !== void 0 && prior !== attr3.value) throw new Error("Conflicting namespaces");
|
|
18284
|
+
namespaces[attr3.localName] = attr3.value;
|
|
18285
|
+
}
|
|
18286
|
+
for (const child6 of Array.from(element3.childNodes)) {
|
|
18287
|
+
if (child6.nodeType === 1) visit2(child6);
|
|
18288
|
+
else if (child6.nodeType === 3 && !child6.nodeValue?.trim() && !preservesSpace(element3))
|
|
18289
|
+
element3.removeChild(child6);
|
|
18290
|
+
}
|
|
18291
|
+
};
|
|
18292
|
+
visit2(root);
|
|
18293
|
+
return namespaces;
|
|
18294
|
+
}
|
|
18295
|
+
function nodeValue(node2) {
|
|
18296
|
+
let text3;
|
|
18297
|
+
if (node2.nodeType === 2) text3 = (node2.nodeValue ?? "").trim();
|
|
18298
|
+
else if (node2.nodeType === 1) {
|
|
18299
|
+
const preserve = preservesSpace(node2);
|
|
18300
|
+
text3 = Array.from(node2.childNodes).filter((child6) => child6.nodeType === 3 || child6.nodeType === 4).map((child6) => {
|
|
18301
|
+
const value3 = child6.nodeValue ?? "";
|
|
18302
|
+
return preserve || child6.nodeType === 4 ? value3 : value3.trim();
|
|
18303
|
+
}).join("");
|
|
18304
|
+
} else return ERR.VALUE;
|
|
18305
|
+
if (!text3) return ERR.VALUE;
|
|
18306
|
+
if (/^(true|false)$/i.test(text3)) return text3.toLowerCase() === "true";
|
|
18307
|
+
const date = /^(\d{1,4})[-/](\d{1,2})[-/](\d{1,4})(.*)$/.exec(text3.trim());
|
|
18308
|
+
let numberText = text3;
|
|
18309
|
+
if (date) {
|
|
18310
|
+
let year = Number(date[1]);
|
|
18311
|
+
if (year < 100) year += year < 30 ? 2e3 : 1900;
|
|
18312
|
+
numberText = `${year}-${date[2]}-${date[3]}${date[4]?.replace(/^T/, " ") ?? ""}`;
|
|
18313
|
+
}
|
|
18314
|
+
return parseNumberText(numberText) ?? text3;
|
|
18315
|
+
}
|
|
18316
|
+
var FILTERXML = spec(
|
|
18317
|
+
"FILTERXML",
|
|
18318
|
+
"Web",
|
|
18319
|
+
"FILTERXML(xml, xpath)",
|
|
18320
|
+
"Returns XML element or attribute values selected by XPath, as a column.",
|
|
18321
|
+
2,
|
|
18322
|
+
2,
|
|
18323
|
+
(args) => {
|
|
18324
|
+
const xml = str(args[0]);
|
|
18325
|
+
const expression = str(args[1]);
|
|
18326
|
+
if (xml.length > 32767 || expression.length > 32767) return ERR.VALUE;
|
|
18327
|
+
let nodes;
|
|
18328
|
+
try {
|
|
18329
|
+
const doc = parseXml(xml, { warningsAsErrors: true, label: "FILTERXML" });
|
|
18330
|
+
nodes = selectXmlNodes(expression, doc, {
|
|
18331
|
+
namespaces: prepare(doc.documentElement),
|
|
18332
|
+
matchDefaultNamespace: true
|
|
18333
|
+
});
|
|
18334
|
+
} catch {
|
|
18335
|
+
return ERR.VALUE;
|
|
18336
|
+
}
|
|
18337
|
+
if (!nodes.length) return ERR.VALUE;
|
|
18338
|
+
chargeArrayCells(nodes.length);
|
|
18339
|
+
return new Matrix(nodes.map((node2) => [nodeValue(node2)]));
|
|
18340
|
+
}
|
|
18341
|
+
);
|
|
18342
|
+
|
|
18257
18343
|
// xlsx/formula/functions/registry.ts
|
|
18258
18344
|
var ALL = [
|
|
18259
18345
|
...MATH_FUNCTIONS,
|
|
@@ -18263,6 +18349,7 @@ var ALL = [
|
|
|
18263
18349
|
...LOGICAL_FUNCTIONS,
|
|
18264
18350
|
...TEXT_FUNCTIONS,
|
|
18265
18351
|
...TEXT_EXTRA_FUNCTIONS,
|
|
18352
|
+
FILTERXML,
|
|
18266
18353
|
BAHTTEXT,
|
|
18267
18354
|
GETPIVOTDATA,
|
|
18268
18355
|
...GROUPBY_FUNCTIONS,
|
|
@@ -20804,7 +20891,7 @@ var PROPERTY_CONTENT_TYPES = {
|
|
|
20804
20891
|
};
|
|
20805
20892
|
|
|
20806
20893
|
// opc/properties/patch.ts
|
|
20807
|
-
var
|
|
20894
|
+
var XMLNS2 = "http://www.w3.org/2000/xmlns/";
|
|
20808
20895
|
function tagEnd(xml, from) {
|
|
20809
20896
|
let quote2 = "";
|
|
20810
20897
|
for (let i2 = from + 1; i2 < xml.length; i2++) {
|
|
@@ -20886,7 +20973,7 @@ var PartPatch = class {
|
|
|
20886
20973
|
this.root = root;
|
|
20887
20974
|
for (const attribute2 of Array.from(rootElement.attributes)) {
|
|
20888
20975
|
if (attribute2.name === "xmlns") this.defaultNs = attribute2.value;
|
|
20889
|
-
else if (attribute2.namespaceURI ===
|
|
20976
|
+
else if (attribute2.namespaceURI === XMLNS2 || attribute2.name.startsWith("xmlns:"))
|
|
20890
20977
|
this.prefixes.set(attribute2.value, attribute2.localName);
|
|
20891
20978
|
}
|
|
20892
20979
|
}
|
|
@@ -22729,31 +22816,90 @@ function parsePersons(xml) {
|
|
|
22729
22816
|
}
|
|
22730
22817
|
return persons;
|
|
22731
22818
|
}
|
|
22732
|
-
function parseThreadedComments(xml, persons) {
|
|
22819
|
+
function parseThreadedComments(xml, persons, personsXml) {
|
|
22733
22820
|
if (!xml) return [];
|
|
22734
22821
|
const root = parseXml(xml, { label: "XLSX threaded comments" }).documentElement;
|
|
22735
22822
|
const roots = /* @__PURE__ */ new Map();
|
|
22823
|
+
const personNames = new Map([...persons].map(([id, name]) => [id.toUpperCase(), name]));
|
|
22736
22824
|
const order = [];
|
|
22737
|
-
|
|
22738
|
-
|
|
22825
|
+
const nodes = children(root, "threadedComment", NS.tc);
|
|
22826
|
+
const byId2 = new Map(nodes.map((node2) => [(att(node2, "id") ?? "").toUpperCase(), node2]));
|
|
22827
|
+
const parentRoot = (parent) => {
|
|
22828
|
+
const seen = /* @__PURE__ */ new Set();
|
|
22829
|
+
while (parent) {
|
|
22830
|
+
parent = parent.toUpperCase();
|
|
22831
|
+
if (seen.has(parent)) break;
|
|
22832
|
+
if (roots.has(parent)) return roots.get(parent);
|
|
22833
|
+
seen.add(parent);
|
|
22834
|
+
parent = att(byId2.get(parent), "parentId");
|
|
22835
|
+
}
|
|
22836
|
+
return void 0;
|
|
22837
|
+
};
|
|
22838
|
+
for (const node2 of [
|
|
22839
|
+
...nodes.filter((n2) => !att(n2, "parentId")),
|
|
22840
|
+
...nodes.filter((n2) => att(n2, "parentId"))
|
|
22841
|
+
]) {
|
|
22842
|
+
const parentComment = parentRoot(att(node2, "parentId"));
|
|
22843
|
+
const address2 = parseAddress(att(node2, "ref") ?? "") ?? parentComment?.address;
|
|
22739
22844
|
if (!address2) continue;
|
|
22740
|
-
const author =
|
|
22845
|
+
const author = personNames.get((att(node2, "personId") ?? "").toUpperCase()) ?? "";
|
|
22741
22846
|
const text3 = xText(children(node2, "text", NS.tc)[0]);
|
|
22742
22847
|
const date = att(node2, "dT");
|
|
22743
|
-
const parent = att(node2, "parentId");
|
|
22744
|
-
const parentComment = parent ? roots.get(parent) : void 0;
|
|
22745
22848
|
if (parentComment) {
|
|
22746
|
-
const reply = { author, text: text3 };
|
|
22849
|
+
const reply = { author, text: text3, threadedXml: selfContainedXml(node2) };
|
|
22747
22850
|
if (date) reply.date = date;
|
|
22748
22851
|
(parentComment.replies ??= []).push(reply);
|
|
22749
22852
|
continue;
|
|
22750
22853
|
}
|
|
22751
|
-
const comment = {
|
|
22752
|
-
|
|
22854
|
+
const comment = {
|
|
22855
|
+
address: address2,
|
|
22856
|
+
author,
|
|
22857
|
+
text: text3,
|
|
22858
|
+
replies: [],
|
|
22859
|
+
threadedXml: selfContainedXml(node2)
|
|
22860
|
+
};
|
|
22861
|
+
if (date) comment.date = date;
|
|
22862
|
+
const resolved = boolAttr(node2, "done");
|
|
22863
|
+
if (resolved !== void 0) comment.resolved = resolved;
|
|
22864
|
+
roots.set((att(node2, "id") ?? `${order.length}`).toUpperCase(), comment);
|
|
22753
22865
|
order.push(comment);
|
|
22754
22866
|
}
|
|
22867
|
+
for (const comment of order)
|
|
22868
|
+
comment.replies?.sort((a2, b) => {
|
|
22869
|
+
const aDate = a2.date ? Date.parse(a2.date) : NaN;
|
|
22870
|
+
const bDate = b.date ? Date.parse(b.date) : NaN;
|
|
22871
|
+
return Number.isFinite(aDate) && Number.isFinite(bDate) ? aDate - bDate : 0;
|
|
22872
|
+
});
|
|
22873
|
+
if (personsXml) {
|
|
22874
|
+
const records = /* @__PURE__ */ new Map();
|
|
22875
|
+
for (const person of children(parseXml(personsXml).documentElement, "person", NS.tc)) {
|
|
22876
|
+
const id = att(person, "id") ?? "";
|
|
22877
|
+
records.set(id.toUpperCase(), [id, selfContainedXml(person)]);
|
|
22878
|
+
}
|
|
22879
|
+
for (const comment of order) {
|
|
22880
|
+
const ids = /* @__PURE__ */ new Set();
|
|
22881
|
+
for (const message of [comment, ...comment.replies ?? []]) {
|
|
22882
|
+
const node2 = parseXml(message.threadedXml).documentElement;
|
|
22883
|
+
ids.add((att(node2, "personId") ?? "").toUpperCase());
|
|
22884
|
+
const mentions = first(node2, "mentions", NS.tc);
|
|
22885
|
+
if (mentions)
|
|
22886
|
+
for (const mention of children(mentions, "mention", NS.tc))
|
|
22887
|
+
ids.add((att(mention, "mentionpersonId") ?? "").toUpperCase());
|
|
22888
|
+
}
|
|
22889
|
+
const kept = [...ids].flatMap((id) => records.has(id) ? [records.get(id)] : []);
|
|
22890
|
+
if (kept.length) comment.threadedPersons = Object.fromEntries(kept);
|
|
22891
|
+
}
|
|
22892
|
+
}
|
|
22755
22893
|
return order;
|
|
22756
22894
|
}
|
|
22895
|
+
function threadedCommentEnvelope(xml) {
|
|
22896
|
+
if (!xml) return void 0;
|
|
22897
|
+
const doc = parseXml(xml);
|
|
22898
|
+
for (const node2 of children(doc.documentElement, "threadedComment", NS.tc)) {
|
|
22899
|
+
doc.documentElement.removeChild(node2);
|
|
22900
|
+
}
|
|
22901
|
+
return buildXml(doc);
|
|
22902
|
+
}
|
|
22757
22903
|
function mergeComments(legacy, threaded) {
|
|
22758
22904
|
if (!threaded.length) return legacy;
|
|
22759
22905
|
const key = (c2) => `${c2.address.row}:${c2.address.col}`;
|
|
@@ -23588,7 +23734,7 @@ function readSheetView(sheetViews) {
|
|
|
23588
23734
|
const cols = Math.max(0, Math.round(numAttr(pane, "xSplit") ?? 0));
|
|
23589
23735
|
if (rows3 || cols) view.freeze = { rows: rows3, cols };
|
|
23590
23736
|
}
|
|
23591
|
-
const split2 = pane && state === "split";
|
|
23737
|
+
const split2 = pane && (state === void 0 || state === "split");
|
|
23592
23738
|
if (split2) {
|
|
23593
23739
|
const x = Math.max(0, Math.round(numAttr(pane, "xSplit") ?? 0));
|
|
23594
23740
|
const y = Math.max(0, Math.round(numAttr(pane, "ySplit") ?? 0));
|
|
@@ -23596,9 +23742,8 @@ function readSheetView(sheetViews) {
|
|
|
23596
23742
|
view.split = { x, y };
|
|
23597
23743
|
const first2 = parseAddress(att(node2, "topLeftCell") ?? "");
|
|
23598
23744
|
if (first2) view.split.topLeft = first2;
|
|
23599
|
-
const active = att(pane, "activePane");
|
|
23600
|
-
if (
|
|
23601
|
-
view.split.activePane = active;
|
|
23745
|
+
const active = att(pane, "activePane") ?? "topLeft";
|
|
23746
|
+
if (PANES.has(active)) view.split.activePane = active;
|
|
23602
23747
|
}
|
|
23603
23748
|
}
|
|
23604
23749
|
const topLeft = parseAddress(
|
|
@@ -43900,6 +44045,49 @@ var WORKSHEET_CHILD_ORDER = [
|
|
|
43900
44045
|
"extLst"
|
|
43901
44046
|
];
|
|
43902
44047
|
|
|
44048
|
+
// xlsx/read/data-validations.ts
|
|
44049
|
+
var VALIDATION_XM = "http://schemas.microsoft.com/office/excel/2006/main";
|
|
44050
|
+
var TYPES = /* @__PURE__ */ new Set(["none", "whole", "decimal", "list", "date", "time", "textLength", "custom"]);
|
|
44051
|
+
var ERROR_STYLES = /* @__PURE__ */ new Set(["stop", "warning", "information"]);
|
|
44052
|
+
function readDataValidation(dv) {
|
|
44053
|
+
const extended = dv.namespaceURI === NS.x14;
|
|
44054
|
+
const ns = extended ? NS.x14 : NS.x;
|
|
44055
|
+
const ranges = parseSqref(
|
|
44056
|
+
extended ? first(dv, "sqref", VALIDATION_XM)?.textContent ?? "" : att(dv, "sqref")
|
|
44057
|
+
);
|
|
44058
|
+
if (!ranges.length) return void 0;
|
|
44059
|
+
const type = att(dv, "type") ?? "none";
|
|
44060
|
+
const validation = {
|
|
44061
|
+
ranges,
|
|
44062
|
+
type: TYPES.has(type) ? type : "none"
|
|
44063
|
+
};
|
|
44064
|
+
const operator = att(dv, "operator");
|
|
44065
|
+
if (operator) validation.operator = operator;
|
|
44066
|
+
for (const key of ["formula1", "formula2"]) {
|
|
44067
|
+
const container = first(dv, key, ns);
|
|
44068
|
+
const formula2 = extended ? first(container, "f", VALIDATION_XM) : container;
|
|
44069
|
+
if (formula2) validation[key] = stripFuturePrefixes(formula2.textContent ?? "");
|
|
44070
|
+
}
|
|
44071
|
+
if (boolAttr(dv, "allowBlank")) validation.allowBlank = true;
|
|
44072
|
+
const hideDropDown = boolAttr(dv, "showDropDown");
|
|
44073
|
+
if (validation.type === "list") validation.showDropDown = !hideDropDown;
|
|
44074
|
+
else if (hideDropDown) validation.showDropDown = false;
|
|
44075
|
+
if (boolAttr(dv, "showErrorMessage")) validation.showErrorMessage = true;
|
|
44076
|
+
if (boolAttr(dv, "showInputMessage")) validation.showInputMessage = true;
|
|
44077
|
+
const errorStyle = att(dv, "errorStyle");
|
|
44078
|
+
if (errorStyle && ERROR_STYLES.has(errorStyle))
|
|
44079
|
+
validation.errorStyle = errorStyle;
|
|
44080
|
+
for (const key of ["errorTitle", "error", "promptTitle", "prompt"]) {
|
|
44081
|
+
const value3 = att(dv, key);
|
|
44082
|
+
if (value3 !== void 0) validation[key] = value3;
|
|
44083
|
+
}
|
|
44084
|
+
if (extended) validation.extensionXml = selfContainedXml(dv);
|
|
44085
|
+
return validation;
|
|
44086
|
+
}
|
|
44087
|
+
function readDataValidations(node2) {
|
|
44088
|
+
return node2 ? children(node2, "dataValidation", NS.x).flatMap((dv) => readDataValidation(dv) ?? []) : [];
|
|
44089
|
+
}
|
|
44090
|
+
|
|
43903
44091
|
// xlsx/read/conditional.ts
|
|
43904
44092
|
var CFVO_TYPES = /* @__PURE__ */ new Set(["min", "max", "num", "percent", "percentile", "formula"]);
|
|
43905
44093
|
function cfvo(node2) {
|
|
@@ -44026,55 +44214,151 @@ function readConditionalFormats(blocks, dxfs, palette, warn) {
|
|
|
44026
44214
|
}
|
|
44027
44215
|
return out;
|
|
44028
44216
|
}
|
|
44029
|
-
|
|
44030
|
-
|
|
44031
|
-
|
|
44032
|
-
|
|
44033
|
-
|
|
44034
|
-
|
|
44035
|
-
|
|
44036
|
-
|
|
44037
|
-
|
|
44038
|
-
|
|
44039
|
-
|
|
44040
|
-
|
|
44041
|
-
|
|
44042
|
-
|
|
44043
|
-
|
|
44044
|
-
|
|
44045
|
-
|
|
44046
|
-
|
|
44047
|
-
|
|
44048
|
-
|
|
44049
|
-
|
|
44050
|
-
|
|
44051
|
-
|
|
44052
|
-
|
|
44053
|
-
|
|
44054
|
-
|
|
44055
|
-
|
|
44056
|
-
|
|
44057
|
-
|
|
44058
|
-
|
|
44059
|
-
|
|
44060
|
-
|
|
44061
|
-
|
|
44062
|
-
|
|
44063
|
-
const
|
|
44064
|
-
|
|
44065
|
-
validation.errorStyle = errorStyle;
|
|
44066
|
-
for (const key of ["errorTitle", "error", "promptTitle", "prompt"]) {
|
|
44067
|
-
const value3 = att(dv, key);
|
|
44068
|
-
if (value3 !== void 0) validation[key] = value3;
|
|
44069
|
-
}
|
|
44070
|
-
out.push(validation);
|
|
44217
|
+
|
|
44218
|
+
// xlsx/write/data-validations.ts
|
|
44219
|
+
function usesValidationExtension(dv) {
|
|
44220
|
+
if (dv.extensionXml) return true;
|
|
44221
|
+
return [dv.formula1, dv.formula2].some((formula2) => {
|
|
44222
|
+
if (!formula2) return false;
|
|
44223
|
+
try {
|
|
44224
|
+
return tokenize(formula2).some((token2) => token2.prefix !== void 0);
|
|
44225
|
+
} catch {
|
|
44226
|
+
return false;
|
|
44227
|
+
}
|
|
44228
|
+
});
|
|
44229
|
+
}
|
|
44230
|
+
function validationAttributes(dv) {
|
|
44231
|
+
return {
|
|
44232
|
+
type: dv.type === "none" ? void 0 : dv.type,
|
|
44233
|
+
errorStyle: dv.errorStyle,
|
|
44234
|
+
operator: dv.operator,
|
|
44235
|
+
allowBlank: dv.allowBlank || void 0,
|
|
44236
|
+
showDropDown: dv.showDropDown === false ? true : void 0,
|
|
44237
|
+
showInputMessage: dv.showInputMessage || void 0,
|
|
44238
|
+
showErrorMessage: dv.showErrorMessage || void 0,
|
|
44239
|
+
errorTitle: dv.errorTitle,
|
|
44240
|
+
error: dv.error,
|
|
44241
|
+
promptTitle: dv.promptTitle,
|
|
44242
|
+
prompt: dv.prompt
|
|
44243
|
+
};
|
|
44244
|
+
}
|
|
44245
|
+
function dataValidationXml(dv, extended) {
|
|
44246
|
+
const sqref2 = dv.ranges.map(formatRange).join(" ");
|
|
44247
|
+
if (!extended) {
|
|
44248
|
+
const formulas = ["formula1", "formula2"].map(
|
|
44249
|
+
(key) => dv[key] === void 0 ? "" : `<${key}>${escapeText(addFuturePrefixes(dv[key]))}</${key}>`
|
|
44250
|
+
).join("");
|
|
44251
|
+
const values2 = attrs2({ ...validationAttributes(dv), sqref: sqref2 });
|
|
44252
|
+
return formulas ? `<dataValidation${values2}>${formulas}</dataValidation>` : `<dataValidation${values2}/>`;
|
|
44071
44253
|
}
|
|
44072
|
-
|
|
44254
|
+
const doc = parseXml(
|
|
44255
|
+
dv.extensionXml || `<x14:dataValidation xmlns:x14="${NS.x14}" xmlns:xm="${VALIDATION_XM}"/>`
|
|
44256
|
+
);
|
|
44257
|
+
const node2 = doc.documentElement;
|
|
44258
|
+
for (const [key, value3] of Object.entries(validationAttributes(dv))) {
|
|
44259
|
+
if (value3 === void 0) node2.removeAttribute(key);
|
|
44260
|
+
else node2.setAttribute(key, typeof value3 === "boolean" ? "1" : value3);
|
|
44261
|
+
}
|
|
44262
|
+
for (const key of ["formula1", "formula2"]) {
|
|
44263
|
+
let container = first(node2, key, NS.x14);
|
|
44264
|
+
if (dv[key] === void 0) {
|
|
44265
|
+
if (container) node2.removeChild(container);
|
|
44266
|
+
continue;
|
|
44267
|
+
}
|
|
44268
|
+
if (!container) {
|
|
44269
|
+
container = doc.createElementNS(NS.x14, `x14:${key}`);
|
|
44270
|
+
const next = key === "formula1" ? first(node2, "formula2", NS.x14) : void 0;
|
|
44271
|
+
node2.insertBefore(container, next ?? first(node2, "sqref", VALIDATION_XM) ?? null);
|
|
44272
|
+
}
|
|
44273
|
+
let formula2 = first(container, "f", VALIDATION_XM);
|
|
44274
|
+
if (!formula2) {
|
|
44275
|
+
formula2 = doc.createElementNS(VALIDATION_XM, "xm:f");
|
|
44276
|
+
container.appendChild(formula2);
|
|
44277
|
+
}
|
|
44278
|
+
formula2.textContent = addFuturePrefixes(dv[key]);
|
|
44279
|
+
}
|
|
44280
|
+
let ranges = first(node2, "sqref", VALIDATION_XM);
|
|
44281
|
+
if (!ranges) {
|
|
44282
|
+
ranges = doc.createElementNS(VALIDATION_XM, "xm:sqref");
|
|
44283
|
+
node2.appendChild(ranges);
|
|
44284
|
+
}
|
|
44285
|
+
ranges.textContent = sqref2;
|
|
44286
|
+
return buildXml(doc);
|
|
44287
|
+
}
|
|
44288
|
+
function dataValidationsXml(validations) {
|
|
44289
|
+
const items = validations.filter((dv) => dv.ranges.length && !usesValidationExtension(dv)).map((dv) => dataValidationXml(dv, false));
|
|
44290
|
+
return items.length ? `<dataValidations count="${items.length}">${items.join("")}</dataValidations>` : "";
|
|
44291
|
+
}
|
|
44292
|
+
|
|
44293
|
+
// xlsx/validation-extensions.ts
|
|
44294
|
+
var URI = "{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}";
|
|
44295
|
+
function readValidationExtensions(sheet) {
|
|
44296
|
+
const kept = [];
|
|
44297
|
+
for (const xml of sheet.preserved.get("extLst") ?? []) {
|
|
44298
|
+
const doc = parseXml(xml);
|
|
44299
|
+
let changed = false;
|
|
44300
|
+
for (const ext of children(doc.documentElement, "ext", NS.x)) {
|
|
44301
|
+
if (ext.getAttribute("uri")?.toUpperCase() !== URI.toUpperCase()) continue;
|
|
44302
|
+
const collection = first(ext, "dataValidations", NS.x14);
|
|
44303
|
+
if (!collection) continue;
|
|
44304
|
+
for (const node2 of children(collection, "dataValidation", NS.x14)) {
|
|
44305
|
+
const rule = readDataValidation(node2);
|
|
44306
|
+
if (!rule) continue;
|
|
44307
|
+
sheet.dataValidations.push(rule);
|
|
44308
|
+
collection.removeChild(node2);
|
|
44309
|
+
changed = true;
|
|
44310
|
+
}
|
|
44311
|
+
collection.setAttribute(
|
|
44312
|
+
"count",
|
|
44313
|
+
String(children(collection, "dataValidation", NS.x14).length)
|
|
44314
|
+
);
|
|
44315
|
+
}
|
|
44316
|
+
if (!changed) kept.push(xml);
|
|
44317
|
+
else if (elements(doc.documentElement).length) kept.push(buildXml(doc));
|
|
44318
|
+
}
|
|
44319
|
+
if (kept.length) sheet.preserved.set("extLst", kept);
|
|
44320
|
+
else sheet.preserved.delete("extLst");
|
|
44321
|
+
}
|
|
44322
|
+
function validationExtensionsXml(sheet, extensions, ids = /* @__PURE__ */ new Set()) {
|
|
44323
|
+
const rules = sheet.dataValidations.filter(
|
|
44324
|
+
(dv) => dv.ranges.length && usesValidationExtension(dv)
|
|
44325
|
+
);
|
|
44326
|
+
const doc = parseXml(extensions || `<extLst xmlns="${NS.x}"/>`);
|
|
44327
|
+
let ext = elements(doc.documentElement).find(
|
|
44328
|
+
(node2) => node2.getAttribute("uri")?.toUpperCase() === URI.toUpperCase()
|
|
44329
|
+
);
|
|
44330
|
+
if (!rules.length) {
|
|
44331
|
+
const collection2 = first(ext, "dataValidations", NS.x14);
|
|
44332
|
+
if (ext && collection2 && !elements(collection2).length) {
|
|
44333
|
+
ext.removeChild(collection2);
|
|
44334
|
+
if (!elements(ext).length) doc.documentElement.removeChild(ext);
|
|
44335
|
+
}
|
|
44336
|
+
return elements(doc.documentElement).length ? inlineFragment(buildXml(doc)) : "";
|
|
44337
|
+
}
|
|
44338
|
+
if (!ext) {
|
|
44339
|
+
ext = doc.createElementNS(NS.x, "ext");
|
|
44340
|
+
ext.setAttribute("uri", URI);
|
|
44341
|
+
doc.documentElement.appendChild(ext);
|
|
44342
|
+
}
|
|
44343
|
+
let collection = first(ext, "dataValidations", NS.x14);
|
|
44344
|
+
if (!collection) {
|
|
44345
|
+
collection = doc.createElementNS(NS.x14, "x14:dataValidations");
|
|
44346
|
+
ext.appendChild(collection);
|
|
44347
|
+
}
|
|
44348
|
+
for (const rule of rules) {
|
|
44349
|
+
const node2 = doc.importNode(parseXml(dataValidationXml(rule, true)).documentElement, true);
|
|
44350
|
+
const id = node2.getAttributeNS(NS.xr, "uid");
|
|
44351
|
+
if (id && ids.has(id)) node2.removeAttributeNS(NS.xr, "uid");
|
|
44352
|
+
else if (id) ids.add(id);
|
|
44353
|
+
collection.appendChild(node2);
|
|
44354
|
+
}
|
|
44355
|
+
collection.setAttribute("count", String(children(collection, "dataValidation", NS.x14).length));
|
|
44356
|
+
return inlineFragment(buildXml(doc));
|
|
44073
44357
|
}
|
|
44074
44358
|
|
|
44075
44359
|
// xlsx/conditional-extensions.ts
|
|
44076
44360
|
var XM = "http://schemas.microsoft.com/office/excel/2006/main";
|
|
44077
|
-
var
|
|
44361
|
+
var URI2 = "{78C0D931-6437-407d-A8EE-F0AAD7539E65}";
|
|
44078
44362
|
function writeSettings(node2, rule) {
|
|
44079
44363
|
const bar = first(node2, "dataBar", NS.x14);
|
|
44080
44364
|
if (!bar) return;
|
|
@@ -44168,14 +44452,14 @@ function conditionalExtensionsXml(sheet) {
|
|
|
44168
44452
|
for (const xml of preserved.slice(1))
|
|
44169
44453
|
for (const node2 of elements(parseXml(xml).documentElement))
|
|
44170
44454
|
doc.documentElement.appendChild(doc.importNode(node2, true));
|
|
44171
|
-
let ext = elements(doc.documentElement).find((e) => e.getAttribute("uri") ===
|
|
44455
|
+
let ext = elements(doc.documentElement).find((e) => e.getAttribute("uri") === URI2);
|
|
44172
44456
|
let collection = first(ext, "conditionalFormattings", NS.x14);
|
|
44173
44457
|
for (const format of sheet.conditionalFormats)
|
|
44174
44458
|
for (const rule of format.rules) {
|
|
44175
44459
|
if (rule.type !== "dataBar" || !rule.extensionXml || !rule.extensionId) continue;
|
|
44176
44460
|
if (!ext) {
|
|
44177
44461
|
ext = doc.createElementNS(NS.x, "ext");
|
|
44178
|
-
ext.setAttribute("uri",
|
|
44462
|
+
ext.setAttribute("uri", URI2);
|
|
44179
44463
|
doc.documentElement.appendChild(ext);
|
|
44180
44464
|
}
|
|
44181
44465
|
if (!collection) {
|
|
@@ -48125,7 +48409,7 @@ function slicerFrameXml(kind, name, id, anchor, box2) {
|
|
|
48125
48409
|
}
|
|
48126
48410
|
|
|
48127
48411
|
// xlsx/read/form-control.ts
|
|
48128
|
-
var
|
|
48412
|
+
var TYPES2 = {
|
|
48129
48413
|
checkbox: "checkbox",
|
|
48130
48414
|
radio: "radio",
|
|
48131
48415
|
drop: "dropdown",
|
|
@@ -48167,7 +48451,7 @@ var num4 = (value3) => {
|
|
|
48167
48451
|
};
|
|
48168
48452
|
function readProps(control, xml) {
|
|
48169
48453
|
const props = parseXml(xml, { label: "XLSX form control" }).documentElement;
|
|
48170
|
-
control.controlType =
|
|
48454
|
+
control.controlType = TYPES2[(att(props, "objectType") ?? "").toLowerCase()] ?? "other";
|
|
48171
48455
|
const link = att(props, "fmlaLink");
|
|
48172
48456
|
if (link) control.linkedCell = link;
|
|
48173
48457
|
const range2 = att(props, "fmlaRange");
|
|
@@ -48942,12 +49226,21 @@ function readTables(ctx, partName, node2, sheet) {
|
|
|
48942
49226
|
function readComments(ctx, partName, sheet) {
|
|
48943
49227
|
const legacyPart = ctx.source.targetOfType(partName, RELATIONSHIP_TYPES.comments);
|
|
48944
49228
|
const threadedPart = ctx.source.targetOfType(partName, RELATIONSHIP_TYPES.threadedComment);
|
|
49229
|
+
const personsPart = ctx.source.targetOfType(
|
|
49230
|
+
ctx.source.workbookPart() ?? "",
|
|
49231
|
+
RELATIONSHIP_TYPES.person
|
|
49232
|
+
);
|
|
48945
49233
|
const legacy = parseLegacyComments(legacyPart ? ctx.source.text(legacyPart) : void 0);
|
|
48946
49234
|
const threaded = parseThreadedComments(
|
|
48947
49235
|
threadedPart ? ctx.source.text(threadedPart) : void 0,
|
|
48948
|
-
ctx.persons
|
|
49236
|
+
ctx.persons,
|
|
49237
|
+
personsPart ? ctx.source.text(personsPart) : void 0
|
|
48949
49238
|
);
|
|
48950
49239
|
sheet.comments = mergeComments(legacy, threaded);
|
|
49240
|
+
const envelope = threadedCommentEnvelope(
|
|
49241
|
+
threadedPart ? ctx.source.text(threadedPart) : void 0
|
|
49242
|
+
);
|
|
49243
|
+
if (envelope) sheet.threadedCommentsXml = envelope;
|
|
48951
49244
|
}
|
|
48952
49245
|
function parseWorksheet(ctx, partName, name, sheetId) {
|
|
48953
49246
|
const xml = ctx.source.text(partName);
|
|
@@ -49018,6 +49311,7 @@ function readWorksheet(ctx, partName, name, sheetId, xml, rows3) {
|
|
|
49018
49311
|
const scenarios = readScenarios(byName.get("scenarios"));
|
|
49019
49312
|
if (scenarios) sheet.scenarios = scenarios;
|
|
49020
49313
|
sheet.dataValidations = readDataValidations(byName.get("dataValidations"));
|
|
49314
|
+
readValidationExtensions(sheet);
|
|
49021
49315
|
readConditionalExtensions(sheet);
|
|
49022
49316
|
sheet.hyperlinks = readHyperlinks(ctx, partName, byName.get("hyperlinks"));
|
|
49023
49317
|
const page2 = readPageSetup(
|
|
@@ -49179,7 +49473,7 @@ function readProperties(core, app, custom, warn) {
|
|
|
49179
49473
|
|
|
49180
49474
|
// xlsx/read/sparklines.ts
|
|
49181
49475
|
var XM2 = "http://schemas.microsoft.com/office/excel/2006/main";
|
|
49182
|
-
var
|
|
49476
|
+
var TYPES3 = ["line", "column", "stacked"];
|
|
49183
49477
|
var EMPTY = ["gap", "zero", "span"];
|
|
49184
49478
|
var AXES = ["individual", "group", "custom"];
|
|
49185
49479
|
var COLORS = [
|
|
@@ -49202,7 +49496,7 @@ var text = (element3) => {
|
|
|
49202
49496
|
function readSparklineGroup(node2) {
|
|
49203
49497
|
const attr3 = (name) => node2.hasAttribute(name) ? node2.getAttribute(name) : null;
|
|
49204
49498
|
const group2 = {
|
|
49205
|
-
type: pick2(attr3("type"),
|
|
49499
|
+
type: pick2(attr3("type"), TYPES3, "line"),
|
|
49206
49500
|
lineWeight: numAttr(node2, "lineWeight") ?? 0.75,
|
|
49207
49501
|
dateAxis: boolAttr(node2, "dateAxis", false),
|
|
49208
49502
|
markers: boolAttr(node2, "markers", false),
|
|
@@ -49263,7 +49557,7 @@ function sheetSparklineGroups(sheet) {
|
|
|
49263
49557
|
return groups;
|
|
49264
49558
|
}
|
|
49265
49559
|
|
|
49266
|
-
// xlsx/write/
|
|
49560
|
+
// xlsx/write/comment-ids.ts
|
|
49267
49561
|
function guidFrom(seed) {
|
|
49268
49562
|
let h1 = 2166136261;
|
|
49269
49563
|
let h2 = 16777619;
|
|
@@ -49279,32 +49573,406 @@ function guidFrom(seed) {
|
|
|
49279
49573
|
const s = hex2.join("");
|
|
49280
49574
|
return `{${s.slice(0, 8)}-${s.slice(8, 12)}-4${s.slice(13, 16)}-8${s.slice(17, 20)}-${s.slice(20, 32)}}`;
|
|
49281
49575
|
}
|
|
49282
|
-
var
|
|
49576
|
+
var validGuid = (id) => /^\{[\da-f]{8}(?:-[\da-f]{4}){3}-[\da-f]{12}\}$/i.test(id);
|
|
49577
|
+
var CommentIds = class {
|
|
49578
|
+
reserved = /* @__PURE__ */ new Map();
|
|
49579
|
+
used = /* @__PURE__ */ new Set();
|
|
49580
|
+
mentions = /* @__PURE__ */ new WeakMap();
|
|
49581
|
+
constructor(workbook) {
|
|
49582
|
+
for (const matching2 of [true, false])
|
|
49583
|
+
for (const sheet of workbook?.sheets ?? []) {
|
|
49584
|
+
for (const comment of sheet.comments)
|
|
49585
|
+
for (const message of [comment, ...comment.replies ?? []]) {
|
|
49586
|
+
if (comment.regenerateThreadIds) continue;
|
|
49587
|
+
if (!message.threadedXml) continue;
|
|
49588
|
+
const node2 = parseXml(message.threadedXml).documentElement;
|
|
49589
|
+
if (node2.getAttribute("ref") === formatAddress(comment.address) !== matching2)
|
|
49590
|
+
continue;
|
|
49591
|
+
this.reserve(node2.getAttribute("id") ?? "", message);
|
|
49592
|
+
const mentions = first(node2, "mentions", NS.tc);
|
|
49593
|
+
if (mentions)
|
|
49594
|
+
children(mentions, "mention", NS.tc).forEach((mention, index3) => {
|
|
49595
|
+
this.reserve(
|
|
49596
|
+
mention.getAttribute("mentionId") ?? "",
|
|
49597
|
+
this.mentionOwner(message, index3)
|
|
49598
|
+
);
|
|
49599
|
+
});
|
|
49600
|
+
}
|
|
49601
|
+
}
|
|
49602
|
+
}
|
|
49603
|
+
reserve(id, owner) {
|
|
49604
|
+
const key = id.toUpperCase();
|
|
49605
|
+
if (validGuid(id) && !this.reserved.has(key)) this.reserved.set(key, owner);
|
|
49606
|
+
}
|
|
49607
|
+
mentionOwner(message, index3) {
|
|
49608
|
+
let owners = this.mentions.get(message);
|
|
49609
|
+
if (!owners) this.mentions.set(message, owners = []);
|
|
49610
|
+
return owners[index3] ??= {};
|
|
49611
|
+
}
|
|
49612
|
+
claim(source3, seed, owner, preserve = true) {
|
|
49613
|
+
const key = source3.toUpperCase();
|
|
49614
|
+
if (preserve && validGuid(source3) && !this.used.has(key) && (!this.reserved.has(key) || this.reserved.get(key) === owner)) {
|
|
49615
|
+
this.used.add(key);
|
|
49616
|
+
return source3;
|
|
49617
|
+
}
|
|
49618
|
+
let index3 = 0;
|
|
49619
|
+
let id = guidFrom(seed);
|
|
49620
|
+
while (this.used.has(id) || this.reserved.has(id)) id = guidFrom(`${seed}:${++index3}`);
|
|
49621
|
+
this.used.add(id);
|
|
49622
|
+
return id;
|
|
49623
|
+
}
|
|
49624
|
+
};
|
|
49625
|
+
|
|
49626
|
+
// text/text-diff.ts
|
|
49627
|
+
var isLowSurrogate = (text3, at2) => {
|
|
49628
|
+
const code = text3.charCodeAt(at2);
|
|
49629
|
+
return code >= 56320 && code <= 57343;
|
|
49630
|
+
};
|
|
49631
|
+
function shortestEdit(n2, m, same12, maxEdits) {
|
|
49632
|
+
const max = Math.min(n2 + m, maxEdits);
|
|
49633
|
+
const offset2 = max + 1;
|
|
49634
|
+
const v = new Int32Array(2 * max + 3);
|
|
49635
|
+
const trace2 = [];
|
|
49636
|
+
for (let d = 0; d <= max; d++) {
|
|
49637
|
+
for (let k = -d; k <= d; k += 2) {
|
|
49638
|
+
const down = k === -d || k !== d && v[offset2 + k - 1] < v[offset2 + k + 1];
|
|
49639
|
+
let x = down ? v[offset2 + k + 1] : v[offset2 + k - 1] + 1;
|
|
49640
|
+
let y = x - k;
|
|
49641
|
+
while (x < n2 && y < m && same12(x, y)) {
|
|
49642
|
+
x++;
|
|
49643
|
+
y++;
|
|
49644
|
+
}
|
|
49645
|
+
v[offset2 + k] = x;
|
|
49646
|
+
if (x >= n2 && y >= m) return backtrack(trace2, n2, m, d);
|
|
49647
|
+
}
|
|
49648
|
+
trace2.push(v.slice(offset2 - d, offset2 + d + 1));
|
|
49649
|
+
}
|
|
49650
|
+
return void 0;
|
|
49651
|
+
}
|
|
49652
|
+
function backtrack(trace2, n2, m, d) {
|
|
49653
|
+
const edits = [];
|
|
49654
|
+
let x = n2;
|
|
49655
|
+
let y = m;
|
|
49656
|
+
for (let step = d; step > 0; step--) {
|
|
49657
|
+
const previous = trace2[step - 1];
|
|
49658
|
+
const at2 = (k2) => previous[k2 + step - 1];
|
|
49659
|
+
const k = x - y;
|
|
49660
|
+
const down = k === -step || k !== step && at2(k - 1) < at2(k + 1);
|
|
49661
|
+
const before = down ? k + 1 : k - 1;
|
|
49662
|
+
const startX = at2(before);
|
|
49663
|
+
const startY = startX - before;
|
|
49664
|
+
edits.push(down ? [startX, startY, true] : [startX, startY, false]);
|
|
49665
|
+
x = startX;
|
|
49666
|
+
y = startY;
|
|
49667
|
+
}
|
|
49668
|
+
return edits.reverse();
|
|
49669
|
+
}
|
|
49670
|
+
function changesOf(edits) {
|
|
49671
|
+
const changes = [];
|
|
49672
|
+
for (const [x, y, inserts] of edits) {
|
|
49673
|
+
const last = changes.at(-1);
|
|
49674
|
+
if (last && last.fromEnd === x && last.toEnd === y) {
|
|
49675
|
+
if (inserts) last.toEnd++;
|
|
49676
|
+
else last.fromEnd++;
|
|
49677
|
+
} else
|
|
49678
|
+
changes.push({
|
|
49679
|
+
fromStart: x,
|
|
49680
|
+
fromEnd: inserts ? x : x + 1,
|
|
49681
|
+
toStart: y,
|
|
49682
|
+
toEnd: inserts ? y + 1 : y
|
|
49683
|
+
});
|
|
49684
|
+
}
|
|
49685
|
+
return changes;
|
|
49686
|
+
}
|
|
49687
|
+
function characterChanges(a2, b, maxEdits) {
|
|
49688
|
+
const edits = shortestEdit(
|
|
49689
|
+
a2.length,
|
|
49690
|
+
b.length,
|
|
49691
|
+
(x, y) => a2.charCodeAt(x) === b.charCodeAt(y),
|
|
49692
|
+
maxEdits
|
|
49693
|
+
);
|
|
49694
|
+
return edits && changesOf(edits);
|
|
49695
|
+
}
|
|
49696
|
+
var TOKEN = /[\p{L}\p{N}\p{M}]+|\s+|[\s\S]/gu;
|
|
49697
|
+
function tokensOf(text3, ids) {
|
|
49698
|
+
const tokens2 = [];
|
|
49699
|
+
const starts = [];
|
|
49700
|
+
for (const match2 of text3.matchAll(TOKEN)) {
|
|
49701
|
+
let id = ids.get(match2[0]);
|
|
49702
|
+
if (id === void 0) ids.set(match2[0], id = ids.size);
|
|
49703
|
+
tokens2.push(id);
|
|
49704
|
+
starts.push(match2.index);
|
|
49705
|
+
}
|
|
49706
|
+
starts.push(text3.length);
|
|
49707
|
+
return { tokens: tokens2, starts };
|
|
49708
|
+
}
|
|
49709
|
+
function tokenChanges(a2, b, maxEdits) {
|
|
49710
|
+
const ids = /* @__PURE__ */ new Map();
|
|
49711
|
+
const from = tokensOf(a2, ids);
|
|
49712
|
+
const to = tokensOf(b, ids);
|
|
49713
|
+
const edits = shortestEdit(
|
|
49714
|
+
from.tokens.length,
|
|
49715
|
+
to.tokens.length,
|
|
49716
|
+
(x, y) => from.tokens[x] === to.tokens[y],
|
|
49717
|
+
maxEdits
|
|
49718
|
+
);
|
|
49719
|
+
if (!edits) return void 0;
|
|
49720
|
+
let budget2 = maxEdits;
|
|
49721
|
+
return changesOf(edits).flatMap((stretch) => {
|
|
49722
|
+
const change = {
|
|
49723
|
+
fromStart: from.starts[stretch.fromStart],
|
|
49724
|
+
fromEnd: from.starts[stretch.fromEnd],
|
|
49725
|
+
toStart: to.starts[stretch.toStart],
|
|
49726
|
+
toEnd: to.starts[stretch.toEnd]
|
|
49727
|
+
};
|
|
49728
|
+
const inner2 = change.fromEnd > change.fromStart && change.toEnd > change.toStart ? characterChanges(
|
|
49729
|
+
a2.slice(change.fromStart, change.fromEnd),
|
|
49730
|
+
b.slice(change.toStart, change.toEnd),
|
|
49731
|
+
budget2
|
|
49732
|
+
) : void 0;
|
|
49733
|
+
if (!inner2) return [change];
|
|
49734
|
+
for (const found of inner2)
|
|
49735
|
+
budget2 -= found.fromEnd - found.fromStart + found.toEnd - found.toStart;
|
|
49736
|
+
return inner2.map((found) => ({
|
|
49737
|
+
fromStart: found.fromStart + change.fromStart,
|
|
49738
|
+
fromEnd: found.fromEnd + change.fromStart,
|
|
49739
|
+
toStart: found.toStart + change.toStart,
|
|
49740
|
+
toEnd: found.toEnd + change.toStart
|
|
49741
|
+
}));
|
|
49742
|
+
});
|
|
49743
|
+
}
|
|
49744
|
+
function diffText(from, to, maxEdits = 500) {
|
|
49745
|
+
let start = 0;
|
|
49746
|
+
while (start < from.length && start < to.length && from.charCodeAt(start) === to.charCodeAt(start))
|
|
49747
|
+
start++;
|
|
49748
|
+
let end = 0;
|
|
49749
|
+
while (end < from.length - start && end < to.length - start && from.charCodeAt(from.length - 1 - end) === to.charCodeAt(to.length - 1 - end))
|
|
49750
|
+
end++;
|
|
49751
|
+
const a2 = from.slice(start, from.length - end);
|
|
49752
|
+
const b = to.slice(start, to.length - end);
|
|
49753
|
+
if (!a2.length && !b.length) return [];
|
|
49754
|
+
const found = a2.length && b.length ? characterChanges(a2, b, maxEdits) ?? tokenChanges(a2, b, maxEdits) : void 0;
|
|
49755
|
+
const changes = found ?? [{ fromStart: 0, fromEnd: a2.length, toStart: 0, toEnd: b.length }];
|
|
49756
|
+
const result2 = [];
|
|
49757
|
+
for (const change of changes) {
|
|
49758
|
+
const placed = {
|
|
49759
|
+
fromStart: change.fromStart + start,
|
|
49760
|
+
fromEnd: change.fromEnd + start,
|
|
49761
|
+
toStart: change.toStart + start,
|
|
49762
|
+
toEnd: change.toEnd + start
|
|
49763
|
+
};
|
|
49764
|
+
if (placed.fromStart > 0 && placed.toStart > 0 && (isLowSurrogate(from, placed.fromStart) || isLowSurrogate(to, placed.toStart))) {
|
|
49765
|
+
placed.fromStart--;
|
|
49766
|
+
placed.toStart--;
|
|
49767
|
+
}
|
|
49768
|
+
if (isLowSurrogate(from, placed.fromEnd) || isLowSurrogate(to, placed.toEnd)) {
|
|
49769
|
+
placed.fromEnd++;
|
|
49770
|
+
placed.toEnd++;
|
|
49771
|
+
}
|
|
49772
|
+
const last = result2.at(-1);
|
|
49773
|
+
if (last && placed.fromStart <= last.fromEnd) {
|
|
49774
|
+
last.fromEnd = Math.max(last.fromEnd, placed.fromEnd);
|
|
49775
|
+
last.toEnd = Math.max(last.toEnd, placed.toEnd);
|
|
49776
|
+
} else result2.push(placed);
|
|
49777
|
+
}
|
|
49778
|
+
return result2;
|
|
49779
|
+
}
|
|
49780
|
+
|
|
49781
|
+
// xlsx/write/comment-mentions.ts
|
|
49782
|
+
function patchCommentMentions(node2, before, message, ids, commentId, preserveIds) {
|
|
49783
|
+
const container = first(node2, "mentions", NS.tc);
|
|
49784
|
+
if (!container) return;
|
|
49785
|
+
const changes = diffText(before, message.text);
|
|
49786
|
+
children(container, "mention", NS.tc).forEach((mention, index3) => {
|
|
49787
|
+
const start = Number(mention.getAttribute("startIndex"));
|
|
49788
|
+
const length = Number(mention.getAttribute("length"));
|
|
49789
|
+
const end = start + length;
|
|
49790
|
+
let shift3 = 0;
|
|
49791
|
+
let intact = Number.isInteger(start) && start >= 0 && Number.isInteger(length) && length > 0 && end <= before.length;
|
|
49792
|
+
for (const change of changes) {
|
|
49793
|
+
if (change.fromEnd <= start)
|
|
49794
|
+
shift3 += change.toEnd - change.toStart - (change.fromEnd - change.fromStart);
|
|
49795
|
+
else if (change.fromStart < end) intact = false;
|
|
49796
|
+
}
|
|
49797
|
+
if (!intact) {
|
|
49798
|
+
container.removeChild(mention);
|
|
49799
|
+
return;
|
|
49800
|
+
}
|
|
49801
|
+
mention.setAttribute("startIndex", String(start + shift3));
|
|
49802
|
+
mention.setAttribute(
|
|
49803
|
+
"mentionId",
|
|
49804
|
+
ids.claim(
|
|
49805
|
+
mention.getAttribute("mentionId") ?? "",
|
|
49806
|
+
`${commentId}:mention:${index3}`,
|
|
49807
|
+
ids.mentionOwner(message, index3),
|
|
49808
|
+
preserveIds
|
|
49809
|
+
)
|
|
49810
|
+
);
|
|
49811
|
+
});
|
|
49812
|
+
if (!children(container, "mention", NS.tc).length) node2.removeChild(container);
|
|
49813
|
+
}
|
|
49814
|
+
|
|
49815
|
+
// xlsx/write/threaded-comments.ts
|
|
49816
|
+
var ThreadedCommentsWriter = class {
|
|
49817
|
+
constructor(persons, options7 = {}) {
|
|
49818
|
+
this.persons = persons;
|
|
49819
|
+
this.doc = parseXml(
|
|
49820
|
+
options7.envelope ?? `${XML_HEADER}<ThreadedComments xmlns="${NS.tc}" xmlns:x="${NS.x}"/>`
|
|
49821
|
+
);
|
|
49822
|
+
for (const node2 of children(this.doc.documentElement, "threadedComment", NS.tc))
|
|
49823
|
+
this.doc.documentElement.removeChild(node2);
|
|
49824
|
+
this.ids = options7.ids ?? new CommentIds();
|
|
49825
|
+
}
|
|
49826
|
+
persons;
|
|
49827
|
+
doc;
|
|
49828
|
+
ids;
|
|
49829
|
+
count = 0;
|
|
49830
|
+
add(comment, ref, sheetName) {
|
|
49831
|
+
this.persons.retain(comment.threadedPersons);
|
|
49832
|
+
const preserve = !comment.regenerateThreadIds;
|
|
49833
|
+
const prepare2 = (message, seed) => {
|
|
49834
|
+
const source3 = parseXml(message.threadedXml ?? `<threadedComment xmlns="${NS.tc}"/>`);
|
|
49835
|
+
const priorId = source3.documentElement.getAttribute("id") ?? "";
|
|
49836
|
+
const id = this.ids.claim(priorId, seed, message, preserve);
|
|
49837
|
+
return { message, source: source3, priorId, id };
|
|
49838
|
+
};
|
|
49839
|
+
const root = prepare2(comment, `${sheetName}!${ref}:${comment.text}`);
|
|
49840
|
+
const replies = (comment.replies ?? []).map(
|
|
49841
|
+
(reply, index3) => prepare2(reply, `${root.id}:reply:${index3}:${reply.text}`)
|
|
49842
|
+
);
|
|
49843
|
+
const identities = new Map(
|
|
49844
|
+
[root, ...replies].filter((item2) => item2.priorId).map((item2) => [item2.priorId.toUpperCase(), item2.id])
|
|
49845
|
+
);
|
|
49846
|
+
this.message(comment, ref, root.source, root.id, preserve, void 0, comment.resolved);
|
|
49847
|
+
for (const reply of replies)
|
|
49848
|
+
this.message(
|
|
49849
|
+
reply.message,
|
|
49850
|
+
ref,
|
|
49851
|
+
reply.source,
|
|
49852
|
+
reply.id,
|
|
49853
|
+
preserve,
|
|
49854
|
+
identities.get(
|
|
49855
|
+
(reply.source.documentElement.getAttribute("parentId") ?? "").toUpperCase()
|
|
49856
|
+
) ?? root.id
|
|
49857
|
+
);
|
|
49858
|
+
return root.id;
|
|
49859
|
+
}
|
|
49860
|
+
message(message, ref, source3, id, preserve, parent, resolved) {
|
|
49861
|
+
const node2 = source3.documentElement;
|
|
49862
|
+
const personId = this.persons.id(message.author, node2.getAttribute("personId") ?? void 0);
|
|
49863
|
+
for (const [key, value3] of Object.entries({
|
|
49864
|
+
id,
|
|
49865
|
+
ref,
|
|
49866
|
+
personId,
|
|
49867
|
+
dT: message.date,
|
|
49868
|
+
parentId: parent
|
|
49869
|
+
})) {
|
|
49870
|
+
if (value3 === void 0) node2.removeAttribute(key);
|
|
49871
|
+
else node2.setAttribute(key, value3);
|
|
49872
|
+
}
|
|
49873
|
+
if (!parent) {
|
|
49874
|
+
if (resolved === void 0) node2.removeAttribute("done");
|
|
49875
|
+
else node2.setAttribute("done", resolved ? "1" : "0");
|
|
49876
|
+
}
|
|
49877
|
+
let text3 = first(node2, "text", NS.tc);
|
|
49878
|
+
patchCommentMentions(node2, text3?.textContent ?? "", message, this.ids, id, preserve);
|
|
49879
|
+
if (!text3) {
|
|
49880
|
+
text3 = source3.createElementNS(NS.tc, node2.prefix ? `${node2.prefix}:text` : "text");
|
|
49881
|
+
node2.insertBefore(text3, node2.firstChild);
|
|
49882
|
+
}
|
|
49883
|
+
text3.textContent = message.text;
|
|
49884
|
+
const root = this.doc.documentElement;
|
|
49885
|
+
root.insertBefore(this.doc.importNode(node2, true), first(root, "extLst", NS.tc) ?? null);
|
|
49886
|
+
this.count++;
|
|
49887
|
+
}
|
|
49888
|
+
xml() {
|
|
49889
|
+
return this.count ? buildXml(this.doc) : void 0;
|
|
49890
|
+
}
|
|
49891
|
+
};
|
|
49892
|
+
|
|
49893
|
+
// xlsx/write/comment-persons.ts
|
|
49283
49894
|
var PersonRegistry = class {
|
|
49895
|
+
constructor(existing, source3) {
|
|
49896
|
+
this.source = source3;
|
|
49897
|
+
for (const [id, name] of existing ?? []) {
|
|
49898
|
+
this.names.set(id, name);
|
|
49899
|
+
this.identities.set(id.toUpperCase(), id);
|
|
49900
|
+
if (!this.byName.has(name)) this.byName.set(name, id);
|
|
49901
|
+
}
|
|
49902
|
+
}
|
|
49903
|
+
source;
|
|
49284
49904
|
names = /* @__PURE__ */ new Map();
|
|
49285
49905
|
byName = /* @__PURE__ */ new Map();
|
|
49286
|
-
|
|
49287
|
-
|
|
49906
|
+
identities = /* @__PURE__ */ new Map();
|
|
49907
|
+
added = /* @__PURE__ */ new Map();
|
|
49908
|
+
retained = /* @__PURE__ */ new Map();
|
|
49909
|
+
get changed() {
|
|
49910
|
+
return this.added.size > 0;
|
|
49911
|
+
}
|
|
49912
|
+
/** Bring referenced account records along with a thread copied from another workbook. */
|
|
49913
|
+
retain(records) {
|
|
49914
|
+
for (const [sourceId, xml] of Object.entries(records ?? {})) {
|
|
49915
|
+
const known = this.identities.get(sourceId.toUpperCase());
|
|
49916
|
+
if (known && (this.source || this.retained.has(known))) continue;
|
|
49917
|
+
const node2 = parseXml(xml).documentElement;
|
|
49918
|
+
if (node2.localName !== "person" || node2.namespaceURI !== NS.tc || node2.getAttribute("id")?.toUpperCase() !== sourceId.toUpperCase())
|
|
49919
|
+
continue;
|
|
49920
|
+
const name = node2.getAttribute("displayName") ?? "";
|
|
49921
|
+
const id = known ?? node2.getAttribute("id");
|
|
49922
|
+
this.retained.set(id, xml);
|
|
49288
49923
|
this.names.set(id, name);
|
|
49924
|
+
this.identities.set(id.toUpperCase(), id);
|
|
49925
|
+
this.added.set(id, name);
|
|
49289
49926
|
if (!this.byName.has(name)) this.byName.set(name, id);
|
|
49290
49927
|
}
|
|
49291
49928
|
}
|
|
49292
|
-
id(name) {
|
|
49929
|
+
id(name, preferred) {
|
|
49930
|
+
const preferredId = preferred ? this.identities.get(preferred.toUpperCase()) : void 0;
|
|
49931
|
+
if (preferredId && this.names.get(preferredId) === name) return preferredId;
|
|
49293
49932
|
let id = this.byName.get(name);
|
|
49294
49933
|
if (!id) {
|
|
49934
|
+
let index3 = 0;
|
|
49295
49935
|
id = guidFrom(`person:${name}`);
|
|
49936
|
+
while (this.identities.has(id.toUpperCase())) id = guidFrom(`person:${name}:${++index3}`);
|
|
49296
49937
|
this.byName.set(name, id);
|
|
49297
49938
|
this.names.set(id, name);
|
|
49939
|
+
this.identities.set(id.toUpperCase(), id);
|
|
49940
|
+
this.added.set(id, name);
|
|
49298
49941
|
}
|
|
49299
49942
|
return id;
|
|
49300
49943
|
}
|
|
49301
49944
|
xml() {
|
|
49302
|
-
|
|
49303
|
-
|
|
49304
|
-
|
|
49305
|
-
|
|
49945
|
+
if (this.source && !this.changed) return this.source;
|
|
49946
|
+
const doc = parseXml(
|
|
49947
|
+
this.source ?? `${XML_HEADER}<personList xmlns="${NS.tc}" xmlns:x="${NS.x}"/>`
|
|
49948
|
+
);
|
|
49949
|
+
const root = doc.documentElement;
|
|
49950
|
+
for (const [id, name] of this.source ? this.added : this.names) {
|
|
49951
|
+
const retained = this.retained.get(id);
|
|
49952
|
+
if (retained) {
|
|
49953
|
+
root.insertBefore(
|
|
49954
|
+
doc.importNode(parseXml(retained).documentElement, true),
|
|
49955
|
+
first(root, "extLst", NS.tc) ?? null
|
|
49956
|
+
);
|
|
49957
|
+
continue;
|
|
49958
|
+
}
|
|
49959
|
+
const person = doc.createElementNS(NS.tc, root.prefix ? `${root.prefix}:person` : "person");
|
|
49960
|
+
for (const [key, value3] of Object.entries({
|
|
49961
|
+
id,
|
|
49962
|
+
displayName: name,
|
|
49963
|
+
userId: name,
|
|
49964
|
+
providerId: "None"
|
|
49965
|
+
})) {
|
|
49966
|
+
person.setAttribute(key, value3);
|
|
49967
|
+
}
|
|
49968
|
+
root.insertBefore(person, first(root, "extLst", NS.tc) ?? null);
|
|
49969
|
+
}
|
|
49970
|
+
return buildXml(doc);
|
|
49306
49971
|
}
|
|
49307
49972
|
};
|
|
49973
|
+
|
|
49974
|
+
// xlsx/write/comments.ts
|
|
49975
|
+
var THREADED_NOTE = "[Threaded comment]\n\nYour version of Excel allows you to read this threaded comment; however, any edits to it will get removed if the file is opened in a newer version of Excel. Learn more: https://go.microsoft.com/fwlink/?linkid=870924\n\nComment:\n ";
|
|
49308
49976
|
function vmlShape(comment, index3, id) {
|
|
49309
49977
|
const { row: row2, col } = comment.address;
|
|
49310
49978
|
const anchor = `${col + 1}, 15, ${Math.max(0, row2 - 1)}, 10, ${col + 3}, 15, ${row2 + 3}, 4`;
|
|
@@ -49326,7 +49994,7 @@ function vmlXml(comments, layout2) {
|
|
|
49326
49994
|
}
|
|
49327
49995
|
return `<xml xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel"><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="${data}"/></o:shapelayout>` + NOTE_SHAPETYPE + shapes + "</xml>";
|
|
49328
49996
|
}
|
|
49329
|
-
function commentParts(comments, sheetNumber, persons, sheetName, layout2) {
|
|
49997
|
+
function commentParts(comments, sheetNumber, persons, sheetName, layout2, threadOptions) {
|
|
49330
49998
|
const authors = [];
|
|
49331
49999
|
const authorId = (name) => {
|
|
49332
50000
|
let id = authors.indexOf(name);
|
|
@@ -49336,18 +50004,11 @@ function commentParts(comments, sheetNumber, persons, sheetName, layout2) {
|
|
|
49336
50004
|
const sorted2 = [...comments].sort(
|
|
49337
50005
|
(a2, b) => a2.address.row - b.address.row || a2.address.col - b.address.col
|
|
49338
50006
|
);
|
|
49339
|
-
|
|
50007
|
+
const threads = new ThreadedCommentsWriter(persons, threadOptions);
|
|
49340
50008
|
const list2 = sorted2.map((comment) => {
|
|
49341
50009
|
const ref = formatAddress(comment.address);
|
|
49342
50010
|
if (comment.replies) {
|
|
49343
|
-
const id =
|
|
49344
|
-
const personId = persons.id(comment.author);
|
|
49345
|
-
threaded += `<threadedComment ref="${ref}" personId="${personId}" id="${id}"><text>${escapeText(comment.text)}</text></threadedComment>`;
|
|
49346
|
-
comment.replies.forEach((reply, index3) => {
|
|
49347
|
-
const replyId = guidFrom(`${id}:reply:${index3}:${reply.text}`);
|
|
49348
|
-
const dT = reply.date ? ` dT="${escapeAttr(reply.date)}"` : "";
|
|
49349
|
-
threaded += `<threadedComment ref="${ref}"${dT} personId="${persons.id(reply.author)}" id="${replyId}" parentId="${id}"><text>${escapeText(reply.text)}</text></threadedComment>`;
|
|
49350
|
-
});
|
|
50011
|
+
const id = threads.add(comment, ref, sheetName);
|
|
49351
50012
|
const fallback = `${THREADED_NOTE}${comment.text}${comment.replies.map((r) => `
|
|
49352
50013
|
Reply:
|
|
49353
50014
|
${r.text}`).join("")}`;
|
|
@@ -49365,8 +50026,8 @@ Reply:
|
|
|
49365
50026
|
}
|
|
49366
50027
|
);
|
|
49367
50028
|
const parts = { comments: commentsXml, vml };
|
|
49368
|
-
|
|
49369
|
-
|
|
50029
|
+
const threaded = threads.xml();
|
|
50030
|
+
if (threaded) parts.threaded = threaded;
|
|
49370
50031
|
return parts;
|
|
49371
50032
|
}
|
|
49372
50033
|
|
|
@@ -52355,6 +53016,40 @@ function pageXml(sheet) {
|
|
|
52355
53016
|
return result2;
|
|
52356
53017
|
}
|
|
52357
53018
|
|
|
53019
|
+
// xlsx/layout/split.ts
|
|
53020
|
+
function splitActivePane(split2) {
|
|
53021
|
+
const valid = split2.x > 0 && split2.y > 0 ? ["topLeft", "topRight", "bottomLeft", "bottomRight"] : split2.y > 0 ? ["topLeft", "bottomLeft"] : ["topLeft", "topRight"];
|
|
53022
|
+
return split2.activePane && valid.includes(split2.activePane) ? split2.activePane : valid[valid.length - 1];
|
|
53023
|
+
}
|
|
53024
|
+
function revealInSplit(metrics, layout2, row2, col) {
|
|
53025
|
+
const axis = (start, size, paneStart, paneSize, mainStart, mainSize) => {
|
|
53026
|
+
const inPane = paneSize > 0 && start >= paneStart && start + size <= paneStart + paneSize;
|
|
53027
|
+
if (inPane) return mainStart;
|
|
53028
|
+
if (start < mainStart) return start;
|
|
53029
|
+
if (start + size > mainStart + mainSize)
|
|
53030
|
+
return Math.max(0, Math.min(start, start + size - mainSize));
|
|
53031
|
+
return mainStart;
|
|
53032
|
+
};
|
|
53033
|
+
return {
|
|
53034
|
+
left: axis(
|
|
53035
|
+
metrics.colLeft(col),
|
|
53036
|
+
metrics.colWidth(col),
|
|
53037
|
+
layout2.left,
|
|
53038
|
+
layout2.x,
|
|
53039
|
+
layout2.mainLeft,
|
|
53040
|
+
Math.max(0, layout2.width - layout2.x)
|
|
53041
|
+
),
|
|
53042
|
+
top: axis(
|
|
53043
|
+
metrics.rowTop(row2),
|
|
53044
|
+
metrics.rowHeight(row2),
|
|
53045
|
+
layout2.top,
|
|
53046
|
+
layout2.y,
|
|
53047
|
+
layout2.mainTop,
|
|
53048
|
+
Math.max(0, layout2.height - layout2.y)
|
|
53049
|
+
)
|
|
53050
|
+
};
|
|
53051
|
+
}
|
|
53052
|
+
|
|
52358
53053
|
// xlsx/write/filter-columns.ts
|
|
52359
53054
|
function criteriaOf(column2) {
|
|
52360
53055
|
const { values: values2, blank, dateGroups, custom, top10, dynamic, color: color2, icon: icon2, hiddenButton } = column2;
|
|
@@ -52516,16 +53211,14 @@ function dimensionXml(sheet) {
|
|
|
52516
53211
|
const used = usedRange(sheet);
|
|
52517
53212
|
return `<dimension ref="${used ? formatRange(used) : "A1"}"/>`;
|
|
52518
53213
|
}
|
|
52519
|
-
function splitActivePane(split2) {
|
|
52520
|
-
const both = split2.x > 0 && split2.y > 0;
|
|
52521
|
-
const valid = both ? ["topLeft", "topRight", "bottomLeft", "bottomRight"] : split2.y > 0 ? ["topLeft", "bottomLeft"] : ["topLeft", "topRight"];
|
|
52522
|
-
if (split2.activePane && valid.includes(split2.activePane)) return split2.activePane;
|
|
52523
|
-
return both ? "bottomRight" : split2.y > 0 ? "bottomLeft" : "topRight";
|
|
52524
|
-
}
|
|
52525
53214
|
function selectionXml(selection, pane) {
|
|
53215
|
+
const activeCellId = selection.ranges.findIndex(
|
|
53216
|
+
(range2) => rangeContains(range2, selection.active)
|
|
53217
|
+
);
|
|
52526
53218
|
return el("selection", {
|
|
52527
53219
|
pane,
|
|
52528
53220
|
activeCell: formatAddress(selection.active),
|
|
53221
|
+
activeCellId: activeCellId > 0 ? activeCellId : void 0,
|
|
52529
53222
|
sqref: sqref(selection.ranges) || formatAddress(selection.active)
|
|
52530
53223
|
});
|
|
52531
53224
|
}
|
|
@@ -53111,28 +53804,6 @@ function conditionalFormatsXml(formats, styles) {
|
|
|
53111
53804
|
return `<conditionalFormatting sqref="${format.ranges.map((r) => formatRange(r)).join(" ")}">${rules}</conditionalFormatting>`;
|
|
53112
53805
|
}).join("");
|
|
53113
53806
|
}
|
|
53114
|
-
function dataValidationsXml(validations) {
|
|
53115
|
-
const items = validations.filter((dv) => dv.ranges.length).map((dv) => {
|
|
53116
|
-
const hideDropDown = dv.showDropDown === false ? true : void 0;
|
|
53117
|
-
const values2 = attrs2({
|
|
53118
|
-
type: dv.type === "none" ? void 0 : dv.type,
|
|
53119
|
-
errorStyle: dv.errorStyle,
|
|
53120
|
-
operator: dv.operator,
|
|
53121
|
-
allowBlank: dv.allowBlank || void 0,
|
|
53122
|
-
showDropDown: hideDropDown,
|
|
53123
|
-
showInputMessage: dv.showInputMessage || void 0,
|
|
53124
|
-
showErrorMessage: dv.showErrorMessage || void 0,
|
|
53125
|
-
errorTitle: dv.errorTitle,
|
|
53126
|
-
error: dv.error,
|
|
53127
|
-
promptTitle: dv.promptTitle,
|
|
53128
|
-
prompt: dv.prompt,
|
|
53129
|
-
sqref: dv.ranges.map((r) => formatRange(r)).join(" ")
|
|
53130
|
-
});
|
|
53131
|
-
const formulas = (dv.formula1 !== void 0 ? formulaXml2(dv.formula1, "formula1") : "") + (dv.formula2 !== void 0 ? formulaXml2(dv.formula2, "formula2") : "");
|
|
53132
|
-
return formulas ? `<dataValidation${values2}>${formulas}</dataValidation>` : `<dataValidation${values2}/>`;
|
|
53133
|
-
});
|
|
53134
|
-
return items.length ? `<dataValidations count="${items.length}">${items.join("")}</dataValidations>` : "";
|
|
53135
|
-
}
|
|
53136
53807
|
|
|
53137
53808
|
// xlsx/write/sheet-data.ts
|
|
53138
53809
|
var MAX_CELL_TEXT = 32767;
|
|
@@ -54280,6 +54951,8 @@ function writeComments(ctx, sheet, index3, partName, rels) {
|
|
|
54280
54951
|
const { writer, source: source3 } = ctx;
|
|
54281
54952
|
const name = (pattern) => writer.uniqueName(pattern, ctx.reserved);
|
|
54282
54953
|
const fromSource = source3 && sheet.partName && source3.has(sheet.partName);
|
|
54954
|
+
const sourceThreaded = fromSource ? source3.targetOfType(sheet.partName ?? "", RELATIONSHIP_TYPES.threadedComment) : void 0;
|
|
54955
|
+
const threadEnvelope = sheet.threadedCommentsXml ?? threadedCommentEnvelope(sourceThreaded ? source3?.text(sourceThreaded) : void 0);
|
|
54283
54956
|
const sourceVml = fromSource ? sourceVmlPart(source3, sheet.partName ?? "") : void 0;
|
|
54284
54957
|
const kept = source3 && sourceVml && !writer.has(sourceVml) ? stripNoteShapes(source3.text(sourceVml) ?? "") : void 0;
|
|
54285
54958
|
const base = kept && kept.kept > 0 ? kept.xml : void 0;
|
|
@@ -54304,11 +54977,13 @@ function writeComments(ctx, sheet, index3, partName, rels) {
|
|
|
54304
54977
|
parseLegacyComments(legacyPart ? source3.text(legacyPart) : void 0),
|
|
54305
54978
|
parseThreadedComments(
|
|
54306
54979
|
threadedPart ? source3.text(threadedPart) : void 0,
|
|
54307
|
-
parsePersons(personsPart ? source3.text(personsPart) : void 0)
|
|
54980
|
+
parsePersons(personsPart ? source3.text(personsPart) : void 0),
|
|
54981
|
+
personsPart ? source3.text(personsPart) : void 0
|
|
54308
54982
|
)
|
|
54309
54983
|
);
|
|
54310
54984
|
const free = [legacyPart, threadedPart, vmlPart].every((p) => !p || !writer.has(p));
|
|
54311
|
-
|
|
54985
|
+
const envelope = threadedCommentEnvelope(threadedPart ? source3.text(threadedPart) : void 0);
|
|
54986
|
+
if (legacyPart && vmlPart && free && sameModel(before, sheet.comments) && (sheet.threadedCommentsXml === void 0 || sheet.threadedCommentsXml === envelope)) {
|
|
54312
54987
|
writer.carry(legacyPart);
|
|
54313
54988
|
writer.carry(vmlPart);
|
|
54314
54989
|
rels.add(RELATIONSHIP_TYPES.comments, relativeTarget(partName, legacyPart));
|
|
@@ -54322,10 +54997,20 @@ function writeComments(ctx, sheet, index3, partName, rels) {
|
|
|
54322
54997
|
}
|
|
54323
54998
|
const own = base ? vmlIdmapBlocks(base) : [];
|
|
54324
54999
|
const layout2 = vmlAllocatorFor(ctx, source3).allocate(sheet.comments.length, index3 + 1, own);
|
|
54325
|
-
const parts = commentParts(
|
|
54326
|
-
|
|
54327
|
-
|
|
54328
|
-
|
|
55000
|
+
const parts = commentParts(
|
|
55001
|
+
sheet.comments,
|
|
55002
|
+
index3 + 1,
|
|
55003
|
+
ctx.persons,
|
|
55004
|
+
sheet.name,
|
|
55005
|
+
{
|
|
55006
|
+
...layout2,
|
|
55007
|
+
...base ? { base } : {}
|
|
55008
|
+
},
|
|
55009
|
+
{
|
|
55010
|
+
...threadEnvelope ? { envelope: threadEnvelope } : {},
|
|
55011
|
+
ids: ctx.commentIds ??= new CommentIds(ctx.workbook)
|
|
55012
|
+
}
|
|
55013
|
+
);
|
|
54329
55014
|
const commentsPart = name((n2) => `xl/comments${n2}.xml`);
|
|
54330
55015
|
writer.add(commentsPart, parts.comments, CONTENT_TYPES.comments);
|
|
54331
55016
|
rels.add(RELATIONSHIP_TYPES.comments, relativeTarget(partName, commentsPart));
|
|
@@ -54516,13 +55201,17 @@ function writeWorksheet(ctx, sheet, index3, partName) {
|
|
|
54516
55201
|
blocks.set("legacyDrawing", writeComments(ctx, sheet, index3, partName, rels));
|
|
54517
55202
|
blocks.set("tableParts", tableParts);
|
|
54518
55203
|
ctx.pivots?.writeSheet(writer, sheet, partName, rels);
|
|
54519
|
-
const extensions =
|
|
55204
|
+
const extensions = validationExtensionsXml(
|
|
55205
|
+
sheet,
|
|
55206
|
+
conditionalExtensionsXml(sheet),
|
|
55207
|
+
ctx.validationIds ??= /* @__PURE__ */ new Set()
|
|
55208
|
+
);
|
|
54520
55209
|
blocks.set(
|
|
54521
55210
|
"extLst",
|
|
54522
55211
|
ctx.slicers?.active ? ctx.slicers.writeSheet(sheet, partName, rels, extensions) : extensions
|
|
54523
55212
|
);
|
|
54524
55213
|
for (const [key, list2] of sheet.preserved) {
|
|
54525
|
-
if (key.startsWith("source:") || !WORKSHEET_CHILD_ORDER.includes(key) || (blocks.get(key) ?? "") !== "" || key === "extLst"
|
|
55214
|
+
if (key.startsWith("source:") || !WORKSHEET_CHILD_ORDER.includes(key) || (blocks.get(key) ?? "") !== "" || key === "extLst")
|
|
54526
55215
|
continue;
|
|
54527
55216
|
const valid = list2.filter(
|
|
54528
55217
|
(xml) => [...xml.matchAll(/\br:(?:id|embed|link|pict)="([^"]*)"/g)].every(
|
|
@@ -54798,7 +55487,7 @@ function dateFilterXml(pivot, filter2) {
|
|
|
54798
55487
|
}
|
|
54799
55488
|
|
|
54800
55489
|
// xlsx/pivot/write.ts
|
|
54801
|
-
var
|
|
55490
|
+
var TYPES4 = {
|
|
54802
55491
|
table: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml",
|
|
54803
55492
|
definition: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml",
|
|
54804
55493
|
records: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml"
|
|
@@ -54864,14 +55553,14 @@ var PivotWritePlan = class {
|
|
|
54864
55553
|
`${NS.r}/pivotCacheRecords`,
|
|
54865
55554
|
relativeTarget(definition, records)
|
|
54866
55555
|
);
|
|
54867
|
-
writer.add(records, pivotCacheRecordsXml(pivot, cache3),
|
|
55556
|
+
writer.add(records, pivotCacheRecordsXml(pivot, cache3), TYPES4.records);
|
|
54868
55557
|
writer.add(
|
|
54869
55558
|
definition,
|
|
54870
55559
|
pivotCacheDefinitionXml(pivot, workbook, cache3, recordRel),
|
|
54871
|
-
|
|
55560
|
+
TYPES4.definition
|
|
54872
55561
|
);
|
|
54873
55562
|
writer.rels(definition, cacheRels);
|
|
54874
|
-
writer.add(table3, pivotTableXml(pivot, cacheId, cache3),
|
|
55563
|
+
writer.add(table3, pivotTableXml(pivot, cacheId, cache3), TYPES4.table);
|
|
54875
55564
|
const tableRels = new RelationshipSet();
|
|
54876
55565
|
tableRels.add(RELATIONSHIP_TYPES.pivotCacheDefinition, relativeTarget(table3, definition));
|
|
54877
55566
|
writer.rels(table3, tableRels);
|
|
@@ -56194,7 +56883,8 @@ async function saveXlsx(workbook) {
|
|
|
56194
56883
|
styles: new StyleWriter(workbook, stylesPart ? source3?.text(stylesPart) : void 0),
|
|
56195
56884
|
strings: new SharedStringTable(),
|
|
56196
56885
|
persons: new PersonRegistry(
|
|
56197
|
-
parsePersons(personsSource ? source3?.text(personsSource) : void 0)
|
|
56886
|
+
parsePersons(personsSource ? source3?.text(personsSource) : void 0),
|
|
56887
|
+
personsSource ? source3?.text(personsSource) : void 0
|
|
56198
56888
|
),
|
|
56199
56889
|
reserved,
|
|
56200
56890
|
tableIds: /* @__PURE__ */ new Set(),
|
|
@@ -56269,7 +56959,9 @@ async function saveXlsx(workbook) {
|
|
|
56269
56959
|
rels.add(RELATIONSHIP_TYPES.theme, relativeTarget(bookPart, outTheme));
|
|
56270
56960
|
if (ctx.threaded.used) {
|
|
56271
56961
|
const personsPart = personsSource ?? "xl/persons/person.xml";
|
|
56272
|
-
|
|
56962
|
+
if (personsSource) writer.carry(personsSource);
|
|
56963
|
+
if (!personsSource || ctx.persons.changed)
|
|
56964
|
+
writer.add(personsPart, ctx.persons.xml(), CONTENT_TYPES.persons);
|
|
56273
56965
|
rels.add(RELATIONSHIP_TYPES.person, relativeTarget(bookPart, personsPart));
|
|
56274
56966
|
}
|
|
56275
56967
|
writeMetadataPart(
|
|
@@ -57390,6 +58082,37 @@ function setComment(ctx, s, at2, text3, author) {
|
|
|
57390
58082
|
{ sheet: s, ranges: [{ start: at2, end: at2 }] }
|
|
57391
58083
|
);
|
|
57392
58084
|
}
|
|
58085
|
+
function setCommentReply(ctx, s, at2, replyIndex, text3) {
|
|
58086
|
+
const sheet = sheetAt(ctx.workbook, s);
|
|
58087
|
+
const comment = sheet.comments.find((c2) => c2.address.row === at2.row && c2.address.col === at2.col);
|
|
58088
|
+
const reply = Number.isInteger(replyIndex) ? comment?.replies?.[replyIndex] : void 0;
|
|
58089
|
+
if (!reply) throw new RangeError("Comment reply not found.");
|
|
58090
|
+
if (reply.text === text3) return;
|
|
58091
|
+
ctx.run(
|
|
58092
|
+
"Edit comment",
|
|
58093
|
+
"annotations",
|
|
58094
|
+
[{ kind: "sheet", sheet: s }],
|
|
58095
|
+
() => {
|
|
58096
|
+
reply.text = text3;
|
|
58097
|
+
},
|
|
58098
|
+
{ sheet: s, ranges: [{ start: at2, end: at2 }] }
|
|
58099
|
+
);
|
|
58100
|
+
}
|
|
58101
|
+
function setCommentResolved(ctx, s, at2, resolved) {
|
|
58102
|
+
const sheet = sheetAt(ctx.workbook, s);
|
|
58103
|
+
const comment = sheet.comments.find((c2) => c2.address.row === at2.row && c2.address.col === at2.col);
|
|
58104
|
+
if (!comment?.replies) throw new RangeError("Threaded comment not found.");
|
|
58105
|
+
if ((comment.resolved ?? false) === resolved) return;
|
|
58106
|
+
ctx.run(
|
|
58107
|
+
"Edit comment",
|
|
58108
|
+
"annotations",
|
|
58109
|
+
[{ kind: "sheet", sheet: s }],
|
|
58110
|
+
() => {
|
|
58111
|
+
comment.resolved = resolved;
|
|
58112
|
+
},
|
|
58113
|
+
{ sheet: s, ranges: [{ start: at2, end: at2 }] }
|
|
58114
|
+
);
|
|
58115
|
+
}
|
|
57393
58116
|
function setHyperlink(ctx, s, range2, link) {
|
|
57394
58117
|
const sheet = sheetAt(ctx.workbook, s);
|
|
57395
58118
|
const r = normalizeRange(range2);
|
|
@@ -58733,6 +59456,11 @@ function pasteWidths(ctx, s, selection, cells, transpose2, cut) {
|
|
|
58733
59456
|
return dest;
|
|
58734
59457
|
}
|
|
58735
59458
|
|
|
59459
|
+
// xlsx/edit/comment-identities.ts
|
|
59460
|
+
function resetCommentIdentities(comment) {
|
|
59461
|
+
if (comment.replies) comment.regenerateThreadIds = true;
|
|
59462
|
+
}
|
|
59463
|
+
|
|
58736
59464
|
// xlsx/edit/clipboard-annotations.ts
|
|
58737
59465
|
function copyAnnotations(sheet, area) {
|
|
58738
59466
|
const relative = (at2) => ({
|
|
@@ -58774,7 +59502,9 @@ function pasteAnnotations(sheet, dest, cells, mode, transpose2, skipBlanks, cutF
|
|
|
58774
59502
|
for (const comment of cells.comments) {
|
|
58775
59503
|
const address2 = point2(comment.address);
|
|
58776
59504
|
comments.delete(key(address2));
|
|
58777
|
-
|
|
59505
|
+
const pasted = { ...structuredClone(comment), address: address2 };
|
|
59506
|
+
if (!cutFormula) resetCommentIdentities(pasted);
|
|
59507
|
+
comments.set(key(address2), pasted);
|
|
58778
59508
|
}
|
|
58779
59509
|
sheet.comments = [...comments.values()];
|
|
58780
59510
|
}
|
|
@@ -60737,7 +61467,7 @@ function applyPrint(workbook, sheet, index3, saved) {
|
|
|
60737
61467
|
|
|
60738
61468
|
// xlsx/edit/sparkline-xml.ts
|
|
60739
61469
|
var XM4 = "http://schemas.microsoft.com/office/excel/2006/main";
|
|
60740
|
-
var
|
|
61470
|
+
var URI3 = "{05C60535-1F16-4fd2-B633-F4F36F0B64E0}";
|
|
60741
61471
|
var COLORS2 = [
|
|
60742
61472
|
"colorSeries",
|
|
60743
61473
|
"colorNegative",
|
|
@@ -60823,15 +61553,15 @@ function appendSparklineXml(sheet, groupXml3) {
|
|
|
60823
61553
|
const doc = parseXml(source3[index3] ?? `<extLst xmlns="${NS.x}"/>`);
|
|
60824
61554
|
const root = doc.documentElement;
|
|
60825
61555
|
let ext = children(root, "ext", NS.x).find(
|
|
60826
|
-
(node2) => node2.getAttribute("uri")?.toUpperCase() ===
|
|
61556
|
+
(node2) => node2.getAttribute("uri")?.toUpperCase() === URI3.toUpperCase()
|
|
60827
61557
|
);
|
|
60828
61558
|
if (!ext) {
|
|
60829
61559
|
ext = doc.createElementNS(NS.x, "ext");
|
|
60830
|
-
ext.setAttribute("uri",
|
|
61560
|
+
ext.setAttribute("uri", URI3);
|
|
60831
61561
|
ext.setAttribute("xmlns:x14", NS.x14);
|
|
60832
61562
|
root.appendChild(ext);
|
|
60833
61563
|
}
|
|
60834
|
-
ext.setAttribute("uri",
|
|
61564
|
+
ext.setAttribute("uri", URI3);
|
|
60835
61565
|
let groups = first(ext, "sparklineGroups", NS.x14);
|
|
60836
61566
|
if (!groups) {
|
|
60837
61567
|
groups = doc.createElementNS(NS.x14, "x14:sparklineGroups");
|
|
@@ -62037,7 +62767,7 @@ function admitted(space, seriesIndex) {
|
|
|
62037
62767
|
if (!chartSeriesAnalysisSupported(space, seriesIndex))
|
|
62038
62768
|
throw new RangeError("This chart family does not support series analysis editing");
|
|
62039
62769
|
}
|
|
62040
|
-
var
|
|
62770
|
+
var TYPES5 = /* @__PURE__ */ new Set(["linear", "exp", "log", "poly", "power", "movingAvg"]);
|
|
62041
62771
|
function setChartTrendline(space, seriesIndex, index3, edit) {
|
|
62042
62772
|
admitted(space, seriesIndex);
|
|
62043
62773
|
return editChartSpace(space, (draft) => {
|
|
@@ -62051,7 +62781,7 @@ function setChartTrendline(space, seriesIndex, index3, edit) {
|
|
|
62051
62781
|
}
|
|
62052
62782
|
const next = { ...list2[index3] ?? { trendlineType: "linear" } };
|
|
62053
62783
|
if (edit.type !== void 0) {
|
|
62054
|
-
if (!
|
|
62784
|
+
if (!TYPES5.has(edit.type)) throw new RangeError("Unsupported trendline type");
|
|
62055
62785
|
next.trendlineType = edit.type;
|
|
62056
62786
|
if (edit.type !== "poly") delete next.order;
|
|
62057
62787
|
if (edit.type !== "movingAvg") delete next.period;
|
|
@@ -72750,6 +73480,7 @@ function duplicateSheet(ctx, index3) {
|
|
|
72750
73480
|
copy2.name = copyName(workbook, sheet.name);
|
|
72751
73481
|
copy2.sheetId = nextSheetId(workbook);
|
|
72752
73482
|
delete copy2.partName;
|
|
73483
|
+
for (const comment of copy2.comments) resetCommentIdentities(comment);
|
|
72753
73484
|
const pivotNames = reservedPivotNames(workbook);
|
|
72754
73485
|
for (const pivot of copy2.pivotTables ?? []) {
|
|
72755
73486
|
let suffix = 2;
|
|
@@ -73230,6 +73961,8 @@ function createEditSession(workbook, options7 = {}) {
|
|
|
73230
73961
|
setFreeze: (s, freeze) => setFreeze(ctx, s, freeze),
|
|
73231
73962
|
setSplit: (s, split2, topLeft) => setSplit(ctx, s, split2, topLeft),
|
|
73232
73963
|
setComment: (s, at2, text3, author) => setComment(ctx, s, at2, text3, author),
|
|
73964
|
+
setCommentReply: (s, at2, index3, text3) => setCommentReply(ctx, s, at2, index3, text3),
|
|
73965
|
+
setCommentResolved: (s, at2, resolved) => setCommentResolved(ctx, s, at2, resolved),
|
|
73233
73966
|
setHyperlink: (s, range2, link) => setHyperlink(ctx, s, range2, link),
|
|
73234
73967
|
addConditionalFormat: (s, cf) => addConditionalFormat(ctx, s, cf),
|
|
73235
73968
|
clearConditionalFormats: (s, range2) => clearConditionalFormats(ctx, s, range2),
|
|
@@ -73422,36 +74155,6 @@ function chartQuickLayoutPatch(chart, n2) {
|
|
|
73422
74155
|
return patch2;
|
|
73423
74156
|
}
|
|
73424
74157
|
|
|
73425
|
-
// xlsx/layout/split.ts
|
|
73426
|
-
function revealInSplit(metrics, layout2, row2, col) {
|
|
73427
|
-
const axis = (start, size, paneStart, paneSize, mainStart, mainSize) => {
|
|
73428
|
-
const inPane = paneSize > 0 && start >= paneStart && start + size <= paneStart + paneSize;
|
|
73429
|
-
if (inPane) return mainStart;
|
|
73430
|
-
if (start < mainStart) return start;
|
|
73431
|
-
if (start + size > mainStart + mainSize)
|
|
73432
|
-
return Math.max(0, Math.min(start, start + size - mainSize));
|
|
73433
|
-
return mainStart;
|
|
73434
|
-
};
|
|
73435
|
-
return {
|
|
73436
|
-
left: axis(
|
|
73437
|
-
metrics.colLeft(col),
|
|
73438
|
-
metrics.colWidth(col),
|
|
73439
|
-
layout2.left,
|
|
73440
|
-
layout2.x,
|
|
73441
|
-
layout2.mainLeft,
|
|
73442
|
-
Math.max(0, layout2.width - layout2.x)
|
|
73443
|
-
),
|
|
73444
|
-
top: axis(
|
|
73445
|
-
metrics.rowTop(row2),
|
|
73446
|
-
metrics.rowHeight(row2),
|
|
73447
|
-
layout2.top,
|
|
73448
|
-
layout2.y,
|
|
73449
|
-
layout2.mainTop,
|
|
73450
|
-
Math.max(0, layout2.height - layout2.y)
|
|
73451
|
-
)
|
|
73452
|
-
};
|
|
73453
|
-
}
|
|
73454
|
-
|
|
73455
74158
|
// xlsx/layout/sheet-queries.ts
|
|
73456
74159
|
function isOverflowTarget(sheet, row2, col) {
|
|
73457
74160
|
const cell = getCell(sheet, row2, col);
|
|
@@ -75891,6 +76594,19 @@ var MESSAGE_STRINGS = {
|
|
|
75891
76594
|
"Escriba primero un comentario.",
|
|
75892
76595
|
"\u8BF7\u5148\u952E\u5165\u6279\u6CE8\u3002"
|
|
75893
76596
|
],
|
|
76597
|
+
"Reply {number} ({author})": [
|
|
76598
|
+
"R\xE9ponse {number} ({author})",
|
|
76599
|
+
"Antwort {number} ({author})",
|
|
76600
|
+
"Respuesta {number} ({author})",
|
|
76601
|
+
"\u56DE\u590D {number}\uFF08{author}\uFF09"
|
|
76602
|
+
],
|
|
76603
|
+
Resolved: ["R\xE9solu", "Erledigt", "Resuelto", "\u5DF2\u89E3\u51B3"],
|
|
76604
|
+
"The comment changed. Reopen it and try again.": [
|
|
76605
|
+
"Le commentaire a chang\xE9. Rouvrez-le et r\xE9essayez.",
|
|
76606
|
+
"Der Kommentar wurde ge\xE4ndert. \xD6ffnen Sie ihn erneut und versuchen Sie es noch einmal.",
|
|
76607
|
+
"El comentario ha cambiado. Vuelva a abrirlo e int\xE9ntelo de nuevo.",
|
|
76608
|
+
"\u6279\u6CE8\u5DF2\u66F4\u6539\u3002\u8BF7\u91CD\u65B0\u6253\u5F00\u540E\u91CD\u8BD5\u3002"
|
|
76609
|
+
],
|
|
75894
76610
|
Unhide: ["Afficher", "Einblenden", "Mostrar", "\u53D6\u6D88\u9690\u85CF"],
|
|
75895
76611
|
"Unhide sheet:": [
|
|
75896
76612
|
"Afficher la feuille :",
|
|
@@ -76030,6 +76746,19 @@ var MESSAGE_STRINGS = {
|
|
|
76030
76746
|
|
|
76031
76747
|
// xlsx/ui/commands/i18n/navigation.ts
|
|
76032
76748
|
var NAVIGATION_STRINGS = {
|
|
76749
|
+
Web: ["Web", "Web", "Web", "\u7F51\u7EDC"],
|
|
76750
|
+
"Returns XML element or attribute values selected by XPath, as a column.": [
|
|
76751
|
+
"Renvoie dans une colonne les valeurs des \xE9l\xE9ments ou attributs XML s\xE9lectionn\xE9s par XPath.",
|
|
76752
|
+
"Gibt die mit XPath ausgew\xE4hlten XML-Element- oder Attributwerte als Spalte zur\xFCck.",
|
|
76753
|
+
"Devuelve en una columna los valores de elementos o atributos XML seleccionados mediante XPath.",
|
|
76754
|
+
"\u5C06 XPath \u9009\u4E2D\u7684 XML \u5143\u7D20\u6216\u5C5E\u6027\u503C\u8FD4\u56DE\u4E3A\u4E00\u5217\u3002"
|
|
76755
|
+
],
|
|
76756
|
+
"External formula services: CUBE*, WEBSERVICE, STOCKHISTORY, RTD, IMAGE, COPILOT, TRANSLATE and DETECTLANGUAGE": [
|
|
76757
|
+
"Services de formules externes : CUBE*, WEBSERVICE, STOCKHISTORY, RTD, IMAGE, COPILOT, TRANSLATE et DETECTLANGUAGE",
|
|
76758
|
+
"Externe Formeldienste: CUBE*, WEBSERVICE, STOCKHISTORY, RTD, IMAGE, COPILOT, TRANSLATE und DETECTLANGUAGE",
|
|
76759
|
+
"Servicios de f\xF3rmulas externos: CUBE*, WEBSERVICE, STOCKHISTORY, RTD, IMAGE, COPILOT, TRANSLATE y DETECTLANGUAGE",
|
|
76760
|
+
"\u5916\u90E8\u516C\u5F0F\u670D\u52A1\uFF1ACUBE*\u3001WEBSERVICE\u3001STOCKHISTORY\u3001RTD\u3001IMAGE\u3001COPILOT\u3001TRANSLATE \u548C DETECTLANGUAGE"
|
|
76761
|
+
],
|
|
76033
76762
|
"Sparklines (create, format and clear)": [
|
|
76034
76763
|
"Graphiques sparkline (cr\xE9ation, mise en forme et suppression)",
|
|
76035
76764
|
"Sparklines (erstellen, formatieren und l\xF6schen)",
|
|
@@ -76450,6 +77179,18 @@ var NAVIGATION_STRINGS = {
|
|
|
76450
77179
|
"Edici\xF3n de respuestas de comentarios en hilo",
|
|
76451
77180
|
"\u7F16\u8F91\u7EBF\u7A0B\u6279\u6CE8\u56DE\u590D"
|
|
76452
77181
|
],
|
|
77182
|
+
"Creating @mentions": [
|
|
77183
|
+
"Cr\xE9ation de @mentions",
|
|
77184
|
+
"Erstellen von @Erw\xE4hnungen",
|
|
77185
|
+
"Creaci\xF3n de @menciones",
|
|
77186
|
+
"\u521B\u5EFA @\u63D0\u53CA"
|
|
77187
|
+
],
|
|
77188
|
+
"Resolving and reopening comments": [
|
|
77189
|
+
"R\xE9solution et r\xE9ouverture des commentaires",
|
|
77190
|
+
"Erledigen und erneutes \xD6ffnen von Kommentaren",
|
|
77191
|
+
"Resolver y reabrir comentarios",
|
|
77192
|
+
"\u89E3\u51B3\u548C\u91CD\u65B0\u6253\u5F00\u6279\u6CE8"
|
|
77193
|
+
],
|
|
76453
77194
|
"Macros (VBA is kept in the file but never run)": [
|
|
76454
77195
|
"Macros (le code VBA est conserv\xE9 dans le fichier mais jamais ex\xE9cut\xE9)",
|
|
76455
77196
|
"Makros (VBA bleibt in der Datei erhalten, wird aber nie ausgef\xFChrt)",
|
|
@@ -85928,6 +86669,13 @@ var GridGeometry = class {
|
|
|
85928
86669
|
if (inHeaderX) return { area: "row-header", row: this.rowAtY(y), col: -1 };
|
|
85929
86670
|
return { area: "cell", row: this.rowAtY(y), col: this.colAtX(x) };
|
|
85930
86671
|
}
|
|
86672
|
+
/** Pane under the pointer, including frozen panes; independent of overlapping split cells. */
|
|
86673
|
+
paneAt(x, y) {
|
|
86674
|
+
if (this.mode === "none") return void 0;
|
|
86675
|
+
const right2 = this.frozenW > 0 && x >= this.headerW + this.frozenW;
|
|
86676
|
+
const bottom = this.frozenH > 0 && y >= this.headerH + this.frozenH;
|
|
86677
|
+
return bottom ? right2 ? "bottomRight" : "bottomLeft" : right2 ? "topRight" : "topLeft";
|
|
86678
|
+
}
|
|
85931
86679
|
/**
|
|
85932
86680
|
* A column border near `x` in the column header (for resizing): the column whose right edge
|
|
85933
86681
|
* is within `slop` pixels, or undefined.
|
|
@@ -86157,7 +86905,13 @@ function createSelectionModel(initial = initialSelection(0)) {
|
|
|
86157
86905
|
var SheetSelections = class {
|
|
86158
86906
|
saved = /* @__PURE__ */ new WeakMap();
|
|
86159
86907
|
remember(sheet, selection) {
|
|
86160
|
-
if (sheet)
|
|
86908
|
+
if (sheet) {
|
|
86909
|
+
this.saved.set(sheet, selection);
|
|
86910
|
+
sheet.view.selection = structuredClone({
|
|
86911
|
+
active: selection.active,
|
|
86912
|
+
ranges: selection.ranges
|
|
86913
|
+
});
|
|
86914
|
+
}
|
|
86161
86915
|
}
|
|
86162
86916
|
/** The remembered selection of a sheet, else the one saved in the file, else A1. */
|
|
86163
86917
|
restore(index3, workbook) {
|
|
@@ -86168,6 +86922,16 @@ var SheetSelections = class {
|
|
|
86168
86922
|
return { ...cells, sheet: index3 };
|
|
86169
86923
|
}
|
|
86170
86924
|
};
|
|
86925
|
+
function setSelectionPane(sheet, pane) {
|
|
86926
|
+
const view = sheet?.view;
|
|
86927
|
+
const window = view?.split;
|
|
86928
|
+
if (!view || !window || !pane) return;
|
|
86929
|
+
const previous = splitActivePane(window);
|
|
86930
|
+
if (previous === pane) return;
|
|
86931
|
+
if (view.selection) (window.paneSelections ??= {})[previous] = structuredClone(view.selection);
|
|
86932
|
+
delete window.paneSelections?.[pane];
|
|
86933
|
+
window.activePane = pane;
|
|
86934
|
+
}
|
|
86171
86935
|
var isWholeRows2 = (range2) => range2.start.col === 0 && range2.end.col === MAX_COL;
|
|
86172
86936
|
var isWholeCols = (range2) => range2.start.row === 0 && range2.end.row === MAX_ROW;
|
|
86173
86937
|
var columnPart = (address2) => formatAddress(address2).replace(/\d{1,10}$/u, "");
|
|
@@ -86929,4 +87693,4 @@ function selectionFormatting(workbook, sheetIndex2, ranges) {
|
|
|
86929
87693
|
};
|
|
86930
87694
|
}
|
|
86931
87695
|
|
|
86932
|
-
export { ACCOUNTING_FORMATS, ALL_RANGE, AUTOSUM_FUNCTIONS, BORDER_PRESETS, CATEGORIES, COLOR_SCALES, COMMAND_TABLES, CORE_FEATURE_STRINGS, CellViewCache, DATA_BAR_COLORS, DATE_CODES, DEFAULT_OPTIONS, DirtyState, EDITOR_LOCALES, EDITOR_THEME_MODES, EMBED_ASPECT, EXCEL_CAPABILITY_BACKSTAGE_PAGES, EXCEL_CAPABILITY_COMMANDS, EXCEL_CAPABILITY_IDS, FONT_NAMES, FONT_SIZES, FORECAST_AGGREGATIONS, FORMAT_CELLS_STRINGS, FRACTION_CODES, FUNCTION_MENUS, ForecastError, GROUPED_CHART_TYPES, GridGeometry, HIGHLIGHT_STYLES, ICON_ACCENTS, ICON_PATHS, ICON_SETS, INSERT_CHART_TYPES, MARGIN_PRESETS, MAX_GRID_COLS, MAX_GRID_ROWS, MESSAGE_STRINGS, MORE_FUNCTION_CATEGORIES, NAVIGATION_STRINGS, ORIENTATIONS2 as ORIENTATIONS, PAPER_SIZES, QUADRANTS, RIBBON_HOME_STRINGS, RIBBON_TAB_STRINGS, RULES_STRINGS, SHEET_ICONS, SPECIAL_CODES, STRINGS2 as STRINGS, SYMBOLS, ScenarioSummaryError, SheetSelections, TABLE_STYLES, TEMPLATES, THEME_KEYS, TIME_CODES, TOOLS_STRINGS, UNSET, absoluteReference, activeChart, activeRef, activeSlicer, activeSmartArt, activeStyle, activeTable, activeTimeline, addRange, addWatch, alignItems, alignmentCommands, applyThemeColors, auditState, autoSumRange, buildChart, buildCode, buildItems, cellCommands, cellMenu, cellRange3 as cellRange, cellStyleItems, chartGridText, clampAddress, clipState, clipboardCommands, colSelected, colorScaleRule, colsOf, colsRange, columnHeaderHeight, columnHeaderMenu, commandStrings, contextualCommands, createCommandRegistry, createDialogRegistry, createEditBridge, createForecastSheet, createScenarioSummary, createSelectionModel, createTemplateWorkbook, cssFont2 as cssFont, cssFontFamily, darkTheme, dataBarRule, dataCommands, detectCategory, diagonalSvg, dxfCss, edgeCss, editBridge, editChart2 as editChart, editing, editingCommands, evaluateRef, expandForMerges, extendSelection, fillPaint, fillSource, fillTemplate, findDefinedName2 as findDefinedName, findSpecial, fitNumber2 as fitNumber, fontCommands, forecastMessage, formatNumber2 as formatNumber, formulaCommands, functionsIn, gridChart, gridChartSvg, gridChartWorkbook, guessHeader, hasBorders, hasWorkbook, hashes, helpTab, historyOf, icon, iconCount, iconSetRule, iconSvg, iconThresholds, initialSelection, insertFunctionCall, installFormatPainter, isBlankView, isMenuSeparator, isSingleCell, isTabHidden, isWholeCols, isWholeRows2 as isWholeRows, justify, lightTheme, measure4 as measure, moveWithinSelection, movingEnd, nameForRange, negativeCodes, normalizeEditorLocale, normalizeThemeMode, noteFunctionUse, numberCommands, numberFormatOptions, onAuditChange, onRibbonTabsChange, pageBreakCommands, pageLayoutCommands, parseBorderArg, parseChartGrid, parseSelectionRef, parseSheetReference, pasteWith, patternImage, pickColor, rangeRef, readEmbeddedChart, recentFunctions, refresh, regionOf, registerRibbonTabs, removeWatch, repeatToFill, resetRibbonTabs, resolveNameBox, reviewTab, ribbonTabs, rowHeaderMenu, rowHeaderWidth, rowSelected, rowsOf2 as rowsOf, rowsRange, scrollToReveal, searchCommands, selectCell, selectSpecial, selectTab, selectionCellCount, selectionFormatting, selectionRef, setErrorRules, setTabHidden, setTraceArrows, setWatchWindowOpen, sheetBaseName, sheetLocked, slicerSourceAt, sortCommands, span4 as span, spanRange, stepFontSize, structureLocked, style2 as style, styleCssFont, suggestForecastEnd, tabButton, tabMenu, tableAt, tableStyleColor, tableStylePreview, target, textAlign, textDecoration, themePaletteItems, themeToCssVars, timelineSourceAt, translate, translator, viewTab, viewing, whatIfCommands, wholeColumns, wholeRows, withTarget };
|
|
87696
|
+
export { ACCOUNTING_FORMATS, ALL_RANGE, AUTOSUM_FUNCTIONS, BORDER_PRESETS, CATEGORIES, COLOR_SCALES, COMMAND_TABLES, CORE_FEATURE_STRINGS, CellViewCache, DATA_BAR_COLORS, DATE_CODES, DEFAULT_OPTIONS, DirtyState, EDITOR_LOCALES, EDITOR_THEME_MODES, EMBED_ASPECT, EXCEL_CAPABILITY_BACKSTAGE_PAGES, EXCEL_CAPABILITY_COMMANDS, EXCEL_CAPABILITY_IDS, FONT_NAMES, FONT_SIZES, FORECAST_AGGREGATIONS, FORMAT_CELLS_STRINGS, FRACTION_CODES, FUNCTION_MENUS, ForecastError, GROUPED_CHART_TYPES, GridGeometry, HIGHLIGHT_STYLES, ICON_ACCENTS, ICON_PATHS, ICON_SETS, INSERT_CHART_TYPES, MARGIN_PRESETS, MAX_GRID_COLS, MAX_GRID_ROWS, MESSAGE_STRINGS, MORE_FUNCTION_CATEGORIES, NAVIGATION_STRINGS, ORIENTATIONS2 as ORIENTATIONS, PAPER_SIZES, QUADRANTS, RIBBON_HOME_STRINGS, RIBBON_TAB_STRINGS, RULES_STRINGS, SHEET_ICONS, SPECIAL_CODES, STRINGS2 as STRINGS, SYMBOLS, ScenarioSummaryError, SheetSelections, TABLE_STYLES, TEMPLATES, THEME_KEYS, TIME_CODES, TOOLS_STRINGS, UNSET, absoluteReference, activeChart, activeRef, activeSlicer, activeSmartArt, activeStyle, activeTable, activeTimeline, addRange, addWatch, alignItems, alignmentCommands, applyThemeColors, auditState, autoSumRange, buildChart, buildCode, buildItems, cellCommands, cellMenu, cellRange3 as cellRange, cellStyleItems, chartGridText, clampAddress, clipState, clipboardCommands, colSelected, colorScaleRule, colsOf, colsRange, columnHeaderHeight, columnHeaderMenu, commandStrings, contextualCommands, createCommandRegistry, createDialogRegistry, createEditBridge, createForecastSheet, createScenarioSummary, createSelectionModel, createTemplateWorkbook, cssFont2 as cssFont, cssFontFamily, darkTheme, dataBarRule, dataCommands, detectCategory, diagonalSvg, dxfCss, edgeCss, editBridge, editChart2 as editChart, editing, editingCommands, evaluateRef, expandForMerges, extendSelection, fillPaint, fillSource, fillTemplate, findDefinedName2 as findDefinedName, findSpecial, fitNumber2 as fitNumber, fontCommands, forecastMessage, formatNumber2 as formatNumber, formulaCommands, functionsIn, gridChart, gridChartSvg, gridChartWorkbook, guessHeader, hasBorders, hasWorkbook, hashes, helpTab, historyOf, icon, iconCount, iconSetRule, iconSvg, iconThresholds, initialSelection, insertFunctionCall, installFormatPainter, isBlankView, isMenuSeparator, isSingleCell, isTabHidden, isWholeCols, isWholeRows2 as isWholeRows, justify, lightTheme, measure4 as measure, moveWithinSelection, movingEnd, nameForRange, negativeCodes, normalizeEditorLocale, normalizeThemeMode, noteFunctionUse, numberCommands, numberFormatOptions, onAuditChange, onRibbonTabsChange, pageBreakCommands, pageLayoutCommands, parseBorderArg, parseChartGrid, parseSelectionRef, parseSheetReference, pasteWith, patternImage, pickColor, rangeRef, readEmbeddedChart, recentFunctions, refresh, regionOf, registerRibbonTabs, removeWatch, repeatToFill, resetRibbonTabs, resolveNameBox, reviewTab, ribbonTabs, rowHeaderMenu, rowHeaderWidth, rowSelected, rowsOf2 as rowsOf, rowsRange, scrollToReveal, searchCommands, selectCell, selectSpecial, selectTab, selectionCellCount, selectionFormatting, selectionRef, setErrorRules, setSelectionPane, setTabHidden, setTraceArrows, setWatchWindowOpen, sheetBaseName, sheetLocked, slicerSourceAt, sortCommands, span4 as span, spanRange, stepFontSize, structureLocked, style2 as style, styleCssFont, suggestForecastEnd, tabButton, tabMenu, tableAt, tableStyleColor, tableStylePreview, target, textAlign, textDecoration, themePaletteItems, themeToCssVars, timelineSourceAt, translate, translator, viewTab, viewing, whatIfCommands, wholeColumns, wholeRows, withTarget };
|