ooxml-core 1.9.0 → 1.10.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-5UURGJEV.mjs +2 -0
- package/dist/{PptxHandler-EX4WBIQQ.mjs → PptxHandler-ADEFY476.mjs} +2 -2
- package/dist/PptxHandler-U5XB2HUE.cjs +11 -0
- package/dist/automation/index.cjs +744 -192
- package/dist/automation/index.mjs +744 -192
- package/dist/{chunk-SWF7KVL5.cjs → chunk-3N6XMMTT.cjs} +1365 -1062
- package/dist/{chunk-FIELY5PI.mjs → chunk-5NVJN4E6.mjs} +30 -2
- package/dist/{chunk-IGOA57LE.mjs → chunk-A6P7G3UK.mjs} +1 -1
- package/dist/{chunk-CPKNMQLX.cjs → chunk-AWIDASUW.cjs} +25 -2
- package/dist/{chunk-SVQZXP3F.mjs → chunk-CBNKBVX5.mjs} +25 -2
- package/dist/{chunk-OXHMZS7B.mjs → chunk-CCHYFCPD.mjs} +649 -172
- package/dist/{chunk-OB277ZGE.mjs → chunk-R6KSBNKX.mjs} +27 -1
- package/dist/{chunk-AT66SA5M.cjs → chunk-S6DOCMQC.cjs} +28 -0
- package/dist/{chunk-WSO4T2LJ.mjs → chunk-WUE5ZHU3.mjs} +26 -3
- package/dist/{chunk-LCS3J3QI.mjs → chunk-ZE53K7DH.mjs} +474 -171
- package/dist/{chunk-M76PHYRR.mjs → chunk-ZOUGMAZG.mjs} +1 -1
- package/dist/docx/layout/adapt-table.d.ts +2 -2
- package/dist/docx/layout/adapt-table.d.ts.map +1 -1
- package/dist/docx/layout/flow-table.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +477 -75
- package/dist/docx/layout/index.mjs +477 -76
- package/dist/docx/layout/nested-frame-profile.d.ts +9 -0
- package/dist/docx/layout/nested-frame-profile.d.ts.map +1 -0
- package/dist/docx/layout/page-cursor.d.ts +2 -0
- package/dist/docx/layout/page-cursor.d.ts.map +1 -1
- package/dist/docx/layout/result.d.ts +13 -0
- package/dist/docx/layout/result.d.ts.map +1 -1
- package/dist/docx/layout/table-border-layout.d.ts +16 -0
- package/dist/docx/layout/table-border-layout.d.ts.map +1 -0
- package/dist/docx/layout/table-cell-layout.d.ts +2 -1
- package/dist/docx/layout/table-cell-layout.d.ts.map +1 -1
- package/dist/docx/layout/table-content.d.ts +4 -0
- package/dist/docx/layout/table-content.d.ts.map +1 -0
- package/dist/docx/layout/table-footnotes.d.ts +5 -0
- package/dist/docx/layout/table-footnotes.d.ts.map +1 -1
- package/dist/docx/layout/table-frames.d.ts +4 -0
- package/dist/docx/layout/table-frames.d.ts.map +1 -0
- package/dist/docx/layout/table-layout.d.ts +8 -3
- package/dist/docx/layout/table-layout.d.ts.map +1 -1
- package/dist/docx/layout/table-note-completion.d.ts +5 -0
- package/dist/docx/layout/table-note-completion.d.ts.map +1 -0
- package/dist/docx/layout/table-note-stories.d.ts +6 -0
- package/dist/docx/layout/table-note-stories.d.ts.map +1 -0
- package/dist/pptx/automation/index.cjs +535 -182
- package/dist/pptx/automation/index.d.ts +4 -4
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/chunks/{index-BZh-IMkN.d.ts → index-Cuxtr76Y.d.ts} +17 -3
- package/dist/pptx/chunks/index-Cuxtr76Y.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-B4cnSPNz.d.ts → index-DUCGeZh7.d.ts} +65 -5
- package/dist/pptx/chunks/index-DUCGeZh7.d.ts.map +1 -0
- package/dist/pptx/chunks/{smart-art-Q2kZQtHh.d.ts → smart-art-D-sXa_Nb.d.ts} +11 -1
- package/dist/pptx/chunks/smart-art-D-sXa_Nb.d.ts.map +1 -0
- package/dist/pptx/chunks/{text-operations-BLodkuXE.d.ts → text-operations-BqHmLaLA.d.ts} +26 -2
- package/dist/pptx/chunks/text-operations-BqHmLaLA.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +535 -182
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.cjs +1 -0
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/collaboration-live-patch-target.cjs +2 -2
- package/dist/pptx/editor/render/collaboration-live-patch-target.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +18 -18
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +2 -2
- package/dist/pptx/editor/render/remap-text.cjs +2 -2
- package/dist/pptx/editor/render/remap-text.d.ts.map +1 -1
- package/dist/pptx/editor/render/remap-text.mjs +1 -1
- package/dist/pptx/editor/render/slide-operations.cjs +8 -8
- package/dist/pptx/editor/render/slide-operations.mjs +2 -2
- package/dist/pptx/index.cjs +762 -182
- package/dist/pptx/index.d.ts +5 -5
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/smartart-layouts/index.d.ts +1 -1
- package/dist/teams/index.cjs +486 -114
- package/dist/teams/index.mjs +486 -114
- package/dist/visio/date-cache.d.ts +3 -0
- package/dist/visio/date-cache.d.ts.map +1 -0
- package/dist/visio/edit-text-field.d.ts.map +1 -1
- package/dist/visio/index.cjs +131 -22
- package/dist/visio/index.mjs +131 -22
- package/dist/visio/shape-metadata.d.ts.map +1 -1
- package/dist/visio/text-field-display.d.ts.map +1 -1
- package/dist/visio/text-field-fraction.d.ts +3 -0
- package/dist/visio/text-field-fraction.d.ts.map +1 -0
- package/dist/visio/text-field-numeric.d.ts +1 -1
- package/dist/visio/text-field-numeric.d.ts.map +1 -1
- package/dist/visio/text-field-system-date.d.ts +4 -0
- package/dist/visio/text-field-system-date.d.ts.map +1 -0
- package/dist/visio/text-fields.d.ts +1 -0
- package/dist/visio/text-fields.d.ts.map +1 -1
- package/dist/visio/ui/index.cjs +132 -22
- package/dist/visio/ui/index.mjs +132 -22
- package/dist/visio/ui/text-field-catalog.d.ts.map +1 -1
- package/dist/xlsx/edit/pivots.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +614 -170
- package/dist/xlsx/index.mjs +614 -170
- package/dist/xlsx/load/index.cjs +575 -163
- package/dist/xlsx/load/index.mjs +575 -163
- package/dist/xlsx/model-pivots.d.ts +23 -2
- package/dist/xlsx/model-pivots.d.ts.map +1 -1
- package/dist/xlsx/pivot/admission.d.ts.map +1 -1
- package/dist/xlsx/pivot/aggregate.d.ts +3 -1
- package/dist/xlsx/pivot/aggregate.d.ts.map +1 -1
- package/dist/xlsx/pivot/data.d.ts +1 -1
- package/dist/xlsx/pivot/data.d.ts.map +1 -1
- package/dist/xlsx/pivot/hierarchy-first.d.ts +21 -0
- package/dist/xlsx/pivot/hierarchy-first.d.ts.map +1 -0
- package/dist/xlsx/pivot/hierarchy.d.ts +2 -4
- package/dist/xlsx/pivot/hierarchy.d.ts.map +1 -1
- package/dist/xlsx/pivot/measures.d.ts +13 -0
- package/dist/xlsx/pivot/measures.d.ts.map +1 -0
- package/dist/xlsx/pivot/read.d.ts.map +1 -1
- package/dist/xlsx/pivot/table-xml.d.ts.map +1 -1
- package/dist/xlsx/pivot/values-axis.d.ts +9 -0
- package/dist/xlsx/pivot/values-axis.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/i18n/pivots.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +547 -127
- package/dist/xlsx/ui/index.mjs +547 -127
- package/package.json +1 -1
- package/dist/PptxHandler-AT7FVG5Q.mjs +0 -2
- package/dist/PptxHandler-VFSCECPL.cjs +0 -11
- package/dist/pptx/chunks/index-B4cnSPNz.d.ts.map +0 -1
- package/dist/pptx/chunks/index-BZh-IMkN.d.ts.map +0 -1
- package/dist/pptx/chunks/smart-art-Q2kZQtHh.d.ts.map +0 -1
- package/dist/pptx/chunks/text-operations-BLodkuXE.d.ts.map +0 -1
|
@@ -18337,6 +18337,32 @@ function inheritCustomGeometryCommandOrder(target, ...sources) {
|
|
|
18337
18337
|
}
|
|
18338
18338
|
}
|
|
18339
18339
|
}
|
|
18340
|
+
function pathListPaths(pathLst) {
|
|
18341
|
+
if (!pathLst || typeof pathLst !== "object") {
|
|
18342
|
+
return [];
|
|
18343
|
+
}
|
|
18344
|
+
return ensureArrayLocal(childByLocalName(pathLst, "path")).filter(
|
|
18345
|
+
(path) => Boolean(path) && typeof path === "object"
|
|
18346
|
+
);
|
|
18347
|
+
}
|
|
18348
|
+
function readPathListCommandOrder(pathLst) {
|
|
18349
|
+
const orders = pathListPaths(pathLst).map((path) => [...commandOrder.get(path) ?? []]);
|
|
18350
|
+
return orders.some((order) => order.length > 0) ? orders : void 0;
|
|
18351
|
+
}
|
|
18352
|
+
function restorePathListCommandOrder(pathLst, orders) {
|
|
18353
|
+
if (!orders || orders.length === 0) {
|
|
18354
|
+
return;
|
|
18355
|
+
}
|
|
18356
|
+
pathListPaths(pathLst).forEach((path, index) => {
|
|
18357
|
+
const order = orders[index];
|
|
18358
|
+
if (!order || order.length === 0 || commandOrder.has(path)) {
|
|
18359
|
+
return;
|
|
18360
|
+
}
|
|
18361
|
+
if (orderSignature([...order]) === pathSignature(path)) {
|
|
18362
|
+
commandOrder.set(path, [...order]);
|
|
18363
|
+
}
|
|
18364
|
+
});
|
|
18365
|
+
}
|
|
18340
18366
|
function orderedXmlKey(baseName, order) {
|
|
18341
18367
|
return `${baseName}${ORDER_SUFFIX}${order}`;
|
|
18342
18368
|
}
|
|
@@ -44104,4 +44130,4 @@ function updateCellTextInRawXml(element, rowIndex, colIndex, text2) {
|
|
|
44104
44130
|
return newRawXml;
|
|
44105
44131
|
}
|
|
44106
44132
|
|
|
44107
|
-
export { BLIP_FILL_ORDER, COLOR_MAP_ALIAS_KEYS, DEFAULT_CHART_GRADIENT_ANGLE, DEFAULT_COLOR_MAP, DEFAULT_FONT_ADVANCE_TABLE, DEFAULT_ROW_HEIGHT_EMU, DGM_XMLNS, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, EMU_PER_PIXEL, EMU_PER_POINT, EMU_PER_PX, ENTRY_TYPE_ROOT, EncryptedFileError, FONT_ADVANCE_TABLES, IncorrectPasswordError, MAX_SHAPE_ID, OOXML_PERCENT_UNITS, P14_DIR_IS_ORIENTATION_TYPE, P14_GUIDE_URI, P14_TRANSITION_TYPES, P15_GUIDE_URI, PRESENTATION_CHILD_ORDER, PRESET_COLOR_MAP, RC4_ALG_ID, SHAPE_STYLE_ORDER, SHAPE_TREE_ELEMENT_TAGS, SMART_ART_DEFINITION_PARTS, SP_PR_ORDER2 as SP_PR_ORDER, STYLE_MATRIX_EFFECT_KEYS, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, SYSTEM_COLOR_MAP, TC_PR_BORDERS_ORDER, VML_SHAPE_TAGS, XML_PROLOG, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, applyActiveXControlsToSlide, applyBubbleChartOptions, applyChartAxisDisplayUnitsToXml, applyChartAxisLabelFormatting, applyChartAxisScaling, applyChartDateAxisUnits, applyChartGradientToSpPr, applyChartLayouts, applyChartManualLayout, applyChartUpDownBars, applyCustomShows, applyDataLabelsRangeToDLbls, applyDiagramRelationshipIds, applyDrawingColorTransforms, applyDrawingLineDash, applyDrawingMediaReference, applyKinsokuToXml, applySections, applySeriesDataPointsToXml, applySeriesMarkerToXml, applySeriesPictureOptionsToXml, applySmartArtLayoutDefinition, applyTextBodySp3d, applyThemeToData, base64Decode, blendColorOntoWhite, buildChartGradFillXml, buildChartMarkerXml, buildChartUniqueIdExtLst, buildClrMapOverrideXml, buildDefRPrTextProperties, buildEffectDagTreeFromXml, buildFabricatedDiagramDataXml, buildFabricatedDrawingXml, buildGuideListExtension, buildInkMlContent, buildNodeGuidMap, buildOle2, buildPointFromParagraphs, buildPointFromRuns, buildPointText, buildPresentationGuidMap, buildSmartArtColorLists, buildSmartArtColorRoleMap, buildSrgbColorChoice, buildTrendlineLabel, captureStyleBaseline, chartColorChoiceValue, chartColorHex, chartGradientsEqual, cloneElement, cloneSlide, cloneXmlObject, collectAllText, colorsEqual, concatArrays, containsConvertibleStrictNamespaceAttribute, convertMetafileToDataUrl, convertXmlToStrict, createBuiltinVariables, createDefaultXmlCell, createLineStyleGate, createOfficeGuid, cropShapeForPresetGeometry, customGeometryPathsToXml, decodeXmlEntities, decryptPptx, deobfuscateFont, deriveSlideTitles, detectDigitalSignatures, detectFileFormat, detectFontFormat, detectOleObjectType, detectStrictConformance, effectChild, encodeCompressedPng, encodePasswordUtf16LE, encodeXmlAttributeValue, encodeXmlTextValue, encryptPptx, ensureArray7 as ensureArray, ensureArrayValue, ensureXmlChild, ensureXmlChildOrCreate, ensureXmlChildren, estimateMediaDurationMs, evaluateGuides, extractColorChoiceXml, extractGuidFromPartName, extractStyleReferenceColorXml, fetchUrlToBytes, fillIsPurelyStyleMatrix, findChartExtByUri, findChildByLocalName, findKey6 as findKey, firstParagraphRuns, flattenCellTxBodyText, formatAutoNumberMarker, generateFontGuid, getSignaturePathsToStrip, getTblFromRawXml, hasShapeProperties, hasTextProperties, hash, hslToRgb, inferOleExtensionFromTarget, inheritCustomGeometryCommandOrder, inheritedPlaceholderFieldType, inkElementToStrokes, insertAt2 as insertAt, isAlternateContentChoiceSupported, isAlternateContentChoiceXmlSupported, isContentPoint, isHeaderFooterPlaceholder, isOle2CompoundFile, isTemplateElementId, isXmlNode, lookupPresetShape, measureTextWidth, mergeAttributeEffectNode, mergeEffectNode, mergeSmartArtConnectionXml, mergeSmartArtPointXml, mimeTypeForOleFile, newSmartArtGuid, normalizeNamespaceUri, normalizeStShapeType, normalizeStrictXml, obfuscateFont, oleBytesToDataUrl, ooxmlArcToSvg, ooxmlGradientAngleToCssDegrees, orderedPathCommandEntries, orderedXmlKey, parseActiveXControlsFromSlide, parseAdjustmentValues, parseAlignmentAttr, parseBodyPrBooleanAttrs, parseBubbleChartOptions, parseBulletSizePercent, parseChart3DSurfaces, parseChartAxes, parseChartDataLabelOptions, parseChartDataPointPicture, parseChartDataPointPictureBlipRel, parseChartLayouts, parseChartUniqueId, parseChartUpDownBars, parseChartUserShapesDrawing, parseChartWideTextStyle, parseCustomShows, parseCxChartSeries, parseDataTable, parseDataUrlToBytes, parseDefRPrTextStyle, parseDiagramRelationshipIds, parseDrawingFraction, parseDrawingHueDegrees, parseDrawingLineDash, parseDrawingMediaReference, parseEmbeddedXlsx, parseEncryptionInfo, parseGuideDefinitions, parseImplicitBlipPictureFill, parseInkMlContent, parseKinsoku, parseLineSpacingExactPt, parseLineSpacingMultiplier, parseLineStyle, parseMarker, parseModel3DScene, parseOle2, parseOoxmlPercent, parseP14DirectChild, parseP14FromExtLst, parseParagraphExtraAttributes, parseParagraphLevel, parseParagraphMargins, parseParagraphRtl, parseParagraphSpacingPx, parsePresentationDrawingGuides, parsePresentationSmartTags, parseSeriesDataLabels, parseSeriesDataPoints, parseSeriesErrBars, parseSeriesTrendlines, parseShapeId, parseShapeProps, parseSlideDrawingGuides, parseSmartArtColorStyleLabels, parseSmartArtConnection, parseSmartArtDefinitionMetadata, parseSmartArtLayoutDefinition, parseSmartArtPresLayoutVars, parseSmartArtQuickStyleLabels, parseSmartArtStyleLabelRefs, parseSmartArtTextParagraphs, parseTabStops, parseVmlElement, parseVmlElements, positiveFixedAngleAttribute, pptxActionToElementAction, preservesSpreadsheetXmlWhitespace, preservesXmlWhitespace, prismFamilyFlags, prismFamilyTypeForFlags, prismFamilyTypeOfNode, projectSmartArtNodeText, readChartManualLayoutValues, reapplyAlternateContentToTree, reconcileSmartArtTextParagraphs, regenerateClonedUniqueId, regenerateSmartArtDrawingShapes, relayoutSmartArt, remapElementShapeIds, remapShapeIdReferences, reorderObjectKeys, reorderObjectKeysByLocalName, replaceFirstText, replaceOleEmbedding, resetSpPrFormattingForStyleMatrix, resolveCoordinate, resolveLayoutDisplayName, resolveParagraphAlignment, resolveSmartArtEffectIntensity, resolveSmartArtNodeCoherent3DOff, resolveSmartArtNodeStyleRoles, resolveTxPrDefRPr, roundCoordinate, safeResolveZipPath, scaleVectorToIntegers, scrgbLinearToSrgb8, selectAlternateContentBranch, serializeColorChoice, serializeColorChoiceWithRef, serializeTabStop, setAutoTitleDeleted, shadowOffsetToDistanceAndDirection, shouldRebuildFromParagraphs, shouldRebuildFromRuns, smartArtParagraphsText, stripParentDirSegments, stripXmlOrderMarkers, stripXmlOrderSuffix, supportsChartGradientFill, svgToCustomGeometryPaths, syncPictureShapeTypeWithCropShape, tableCellTextBodyMatches, themeColorRefFromColorChoice, themeColorRefFromSchemeClr, themeColorRefToSolidFillWithOpacity, themeColorRefToXml, uint32LE, unwrapAlternateContent, unwrapOleEmbedding, updateCellTextInRawXml, updateSmartArtNodeText, upsertChartAxisChild, withThemePlaceholderColor, writeBodyPrBooleanAttrs, writeChartColorChoice, writeChartShapeProps, writeShapeEffects, xmlAttr, xmlAttrNumber, xmlChild, xmlChildren, xmlEscape, xmlHasChild, xmlPath, xmlText, zlibStore };
|
|
44133
|
+
export { BLIP_FILL_ORDER, COLOR_MAP_ALIAS_KEYS, DEFAULT_CHART_GRADIENT_ANGLE, DEFAULT_COLOR_MAP, DEFAULT_FONT_ADVANCE_TABLE, DEFAULT_ROW_HEIGHT_EMU, DGM_XMLNS, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, EMU_PER_PIXEL, EMU_PER_POINT, EMU_PER_PX, ENTRY_TYPE_ROOT, EncryptedFileError, FONT_ADVANCE_TABLES, IncorrectPasswordError, MAX_SHAPE_ID, OOXML_PERCENT_UNITS, P14_DIR_IS_ORIENTATION_TYPE, P14_GUIDE_URI, P14_TRANSITION_TYPES, P15_GUIDE_URI, PRESENTATION_CHILD_ORDER, PRESET_COLOR_MAP, RC4_ALG_ID, SHAPE_STYLE_ORDER, SHAPE_TREE_ELEMENT_TAGS, SMART_ART_DEFINITION_PARTS, SP_PR_ORDER2 as SP_PR_ORDER, STYLE_MATRIX_EFFECT_KEYS, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, SYSTEM_COLOR_MAP, TC_PR_BORDERS_ORDER, VML_SHAPE_TAGS, XML_PROLOG, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, applyActiveXControlsToSlide, applyBubbleChartOptions, applyChartAxisDisplayUnitsToXml, applyChartAxisLabelFormatting, applyChartAxisScaling, applyChartDateAxisUnits, applyChartGradientToSpPr, applyChartLayouts, applyChartManualLayout, applyChartUpDownBars, applyCustomShows, applyDataLabelsRangeToDLbls, applyDiagramRelationshipIds, applyDrawingColorTransforms, applyDrawingLineDash, applyDrawingMediaReference, applyKinsokuToXml, applySections, applySeriesDataPointsToXml, applySeriesMarkerToXml, applySeriesPictureOptionsToXml, applySmartArtLayoutDefinition, applyTextBodySp3d, applyThemeToData, base64Decode, blendColorOntoWhite, buildChartGradFillXml, buildChartMarkerXml, buildChartUniqueIdExtLst, buildClrMapOverrideXml, buildDefRPrTextProperties, buildEffectDagTreeFromXml, buildFabricatedDiagramDataXml, buildFabricatedDrawingXml, buildGuideListExtension, buildInkMlContent, buildNodeGuidMap, buildOle2, buildPointFromParagraphs, buildPointFromRuns, buildPointText, buildPresentationGuidMap, buildSmartArtColorLists, buildSmartArtColorRoleMap, buildSrgbColorChoice, buildTrendlineLabel, captureStyleBaseline, chartColorChoiceValue, chartColorHex, chartGradientsEqual, cloneElement, cloneSlide, cloneXmlObject, collectAllText, colorsEqual, concatArrays, containsConvertibleStrictNamespaceAttribute, convertMetafileToDataUrl, convertXmlToStrict, createBuiltinVariables, createDefaultXmlCell, createLineStyleGate, createOfficeGuid, cropShapeForPresetGeometry, customGeometryPathsToXml, decodeXmlEntities, decryptPptx, deobfuscateFont, deriveSlideTitles, detectDigitalSignatures, detectFileFormat, detectFontFormat, detectOleObjectType, detectStrictConformance, effectChild, encodeCompressedPng, encodePasswordUtf16LE, encodeXmlAttributeValue, encodeXmlTextValue, encryptPptx, ensureArray7 as ensureArray, ensureArrayValue, ensureXmlChild, ensureXmlChildOrCreate, ensureXmlChildren, estimateMediaDurationMs, evaluateGuides, extractColorChoiceXml, extractGuidFromPartName, extractStyleReferenceColorXml, fetchUrlToBytes, fillIsPurelyStyleMatrix, findChartExtByUri, findChildByLocalName, findKey6 as findKey, firstParagraphRuns, flattenCellTxBodyText, formatAutoNumberMarker, generateFontGuid, getSignaturePathsToStrip, getTblFromRawXml, hasShapeProperties, hasTextProperties, hash, hslToRgb, inferOleExtensionFromTarget, inheritCustomGeometryCommandOrder, inheritedPlaceholderFieldType, inkElementToStrokes, insertAt2 as insertAt, isAlternateContentChoiceSupported, isAlternateContentChoiceXmlSupported, isContentPoint, isHeaderFooterPlaceholder, isOle2CompoundFile, isTemplateElementId, isXmlNode, lookupPresetShape, measureTextWidth, mergeAttributeEffectNode, mergeEffectNode, mergeSmartArtConnectionXml, mergeSmartArtPointXml, mimeTypeForOleFile, newSmartArtGuid, normalizeNamespaceUri, normalizeStShapeType, normalizeStrictXml, obfuscateFont, oleBytesToDataUrl, ooxmlArcToSvg, ooxmlGradientAngleToCssDegrees, orderedPathCommandEntries, orderedXmlKey, parseActiveXControlsFromSlide, parseAdjustmentValues, parseAlignmentAttr, parseBodyPrBooleanAttrs, parseBubbleChartOptions, parseBulletSizePercent, parseChart3DSurfaces, parseChartAxes, parseChartDataLabelOptions, parseChartDataPointPicture, parseChartDataPointPictureBlipRel, parseChartLayouts, parseChartUniqueId, parseChartUpDownBars, parseChartUserShapesDrawing, parseChartWideTextStyle, parseCustomShows, parseCxChartSeries, parseDataTable, parseDataUrlToBytes, parseDefRPrTextStyle, parseDiagramRelationshipIds, parseDrawingFraction, parseDrawingHueDegrees, parseDrawingLineDash, parseDrawingMediaReference, parseEmbeddedXlsx, parseEncryptionInfo, parseGuideDefinitions, parseImplicitBlipPictureFill, parseInkMlContent, parseKinsoku, parseLineSpacingExactPt, parseLineSpacingMultiplier, parseLineStyle, parseMarker, parseModel3DScene, parseOle2, parseOoxmlPercent, parseP14DirectChild, parseP14FromExtLst, parseParagraphExtraAttributes, parseParagraphLevel, parseParagraphMargins, parseParagraphRtl, parseParagraphSpacingPx, parsePresentationDrawingGuides, parsePresentationSmartTags, parseSeriesDataLabels, parseSeriesDataPoints, parseSeriesErrBars, parseSeriesTrendlines, parseShapeId, parseShapeProps, parseSlideDrawingGuides, parseSmartArtColorStyleLabels, parseSmartArtConnection, parseSmartArtDefinitionMetadata, parseSmartArtLayoutDefinition, parseSmartArtPresLayoutVars, parseSmartArtQuickStyleLabels, parseSmartArtStyleLabelRefs, parseSmartArtTextParagraphs, parseTabStops, parseVmlElement, parseVmlElements, positiveFixedAngleAttribute, pptxActionToElementAction, preservesSpreadsheetXmlWhitespace, preservesXmlWhitespace, prismFamilyFlags, prismFamilyTypeForFlags, prismFamilyTypeOfNode, projectSmartArtNodeText, readChartManualLayoutValues, readPathListCommandOrder, reapplyAlternateContentToTree, reconcileSmartArtTextParagraphs, regenerateClonedUniqueId, regenerateSmartArtDrawingShapes, relayoutSmartArt, remapElementShapeIds, remapShapeIdReferences, reorderObjectKeys, reorderObjectKeysByLocalName, replaceFirstText, replaceOleEmbedding, resetSpPrFormattingForStyleMatrix, resolveCoordinate, resolveLayoutDisplayName, resolveParagraphAlignment, resolveSmartArtEffectIntensity, resolveSmartArtNodeCoherent3DOff, resolveSmartArtNodeStyleRoles, resolveTxPrDefRPr, restorePathListCommandOrder, roundCoordinate, safeResolveZipPath, scaleVectorToIntegers, scrgbLinearToSrgb8, selectAlternateContentBranch, serializeColorChoice, serializeColorChoiceWithRef, serializeTabStop, setAutoTitleDeleted, shadowOffsetToDistanceAndDirection, shouldRebuildFromParagraphs, shouldRebuildFromRuns, smartArtParagraphsText, stripParentDirSegments, stripXmlOrderMarkers, stripXmlOrderSuffix, supportsChartGradientFill, svgToCustomGeometryPaths, syncPictureShapeTypeWithCropShape, tableCellTextBodyMatches, themeColorRefFromColorChoice, themeColorRefFromSchemeClr, themeColorRefToSolidFillWithOpacity, themeColorRefToXml, uint32LE, unwrapAlternateContent, unwrapOleEmbedding, updateCellTextInRawXml, updateSmartArtNodeText, upsertChartAxisChild, withThemePlaceholderColor, writeBodyPrBooleanAttrs, writeChartColorChoice, writeChartShapeProps, writeShapeEffects, xmlAttr, xmlAttrNumber, xmlChild, xmlChildren, xmlEscape, xmlHasChild, xmlPath, xmlText, zlibStore };
|
|
@@ -18343,6 +18343,32 @@ function inheritCustomGeometryCommandOrder(target, ...sources) {
|
|
|
18343
18343
|
}
|
|
18344
18344
|
}
|
|
18345
18345
|
}
|
|
18346
|
+
function pathListPaths(pathLst) {
|
|
18347
|
+
if (!pathLst || typeof pathLst !== "object") {
|
|
18348
|
+
return [];
|
|
18349
|
+
}
|
|
18350
|
+
return ensureArrayLocal(childByLocalName(pathLst, "path")).filter(
|
|
18351
|
+
(path) => Boolean(path) && typeof path === "object"
|
|
18352
|
+
);
|
|
18353
|
+
}
|
|
18354
|
+
function readPathListCommandOrder(pathLst) {
|
|
18355
|
+
const orders = pathListPaths(pathLst).map((path) => [...commandOrder.get(path) ?? []]);
|
|
18356
|
+
return orders.some((order) => order.length > 0) ? orders : void 0;
|
|
18357
|
+
}
|
|
18358
|
+
function restorePathListCommandOrder(pathLst, orders) {
|
|
18359
|
+
if (!orders || orders.length === 0) {
|
|
18360
|
+
return;
|
|
18361
|
+
}
|
|
18362
|
+
pathListPaths(pathLst).forEach((path, index) => {
|
|
18363
|
+
const order = orders[index];
|
|
18364
|
+
if (!order || order.length === 0 || commandOrder.has(path)) {
|
|
18365
|
+
return;
|
|
18366
|
+
}
|
|
18367
|
+
if (orderSignature([...order]) === pathSignature(path)) {
|
|
18368
|
+
commandOrder.set(path, [...order]);
|
|
18369
|
+
}
|
|
18370
|
+
});
|
|
18371
|
+
}
|
|
18346
18372
|
function orderedXmlKey(baseName, order) {
|
|
18347
18373
|
return `${baseName}${ORDER_SUFFIX}${order}`;
|
|
18348
18374
|
}
|
|
@@ -44358,6 +44384,7 @@ exports.prismFamilyTypeForFlags = prismFamilyTypeForFlags;
|
|
|
44358
44384
|
exports.prismFamilyTypeOfNode = prismFamilyTypeOfNode;
|
|
44359
44385
|
exports.projectSmartArtNodeText = projectSmartArtNodeText;
|
|
44360
44386
|
exports.readChartManualLayoutValues = readChartManualLayoutValues;
|
|
44387
|
+
exports.readPathListCommandOrder = readPathListCommandOrder;
|
|
44361
44388
|
exports.reapplyAlternateContentToTree = reapplyAlternateContentToTree;
|
|
44362
44389
|
exports.reconcileSmartArtTextParagraphs = reconcileSmartArtTextParagraphs;
|
|
44363
44390
|
exports.regenerateClonedUniqueId = regenerateClonedUniqueId;
|
|
@@ -44377,6 +44404,7 @@ exports.resolveSmartArtEffectIntensity = resolveSmartArtEffectIntensity;
|
|
|
44377
44404
|
exports.resolveSmartArtNodeCoherent3DOff = resolveSmartArtNodeCoherent3DOff;
|
|
44378
44405
|
exports.resolveSmartArtNodeStyleRoles = resolveSmartArtNodeStyleRoles;
|
|
44379
44406
|
exports.resolveTxPrDefRPr = resolveTxPrDefRPr;
|
|
44407
|
+
exports.restorePathListCommandOrder = restorePathListCommandOrder;
|
|
44380
44408
|
exports.roundCoordinate = roundCoordinate;
|
|
44381
44409
|
exports.safeResolveZipPath = safeResolveZipPath;
|
|
44382
44410
|
exports.scaleVectorToIntegers = scaleVectorToIntegers;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { findText, replaceText, replaceTextInSlide, mergePresentation } from './chunk-
|
|
2
|
-
import { PresentationBuilder, PptxHandler, SlideBuilder, validateSeriesIndex, removeEmptyDataPoint, ensureDataPoint, ensureChartData, assertChartGradientSupported, toChartGradientFill, STANDARD_LAYOUTS, createTextElement, createShapeElement, createImageElement, createTableElement, createChartElement, createConnectorElement, createMediaElement, createGroupElement, parseXml, first, relationshipsPartFor, parseRelationships, resolvePartPath, elements, clonePartGraph, buildXml, buildRelationshipsXml, buildBlankPresentationArchive, nextRelationshipId, relativePartTarget, PptxXmlBuilder } from './chunk-
|
|
3
|
-
import { escAttr, EMU_PER_PIXEL, EMU_PER_INCH, bytesToBase64, base64ToBytes, hasTextProperties } from './chunk-
|
|
1
|
+
import { findText, replaceText, replaceTextInSlide, mergePresentation } from './chunk-A6P7G3UK.mjs';
|
|
2
|
+
import { PresentationBuilder, PptxHandler, SlideBuilder, validateSeriesIndex, removeEmptyDataPoint, ensureDataPoint, ensureChartData, assertChartGradientSupported, toChartGradientFill, STANDARD_LAYOUTS, createTextElement, createShapeElement, createImageElement, createTableElement, createChartElement, createConnectorElement, createMediaElement, createGroupElement, parseXml, first, relationshipsPartFor, parseRelationships, resolvePartPath, elements, clonePartGraph, buildXml, buildRelationshipsXml, buildBlankPresentationArchive, nextRelationshipId, relativePartTarget, PptxXmlBuilder } from './chunk-CCHYFCPD.mjs';
|
|
3
|
+
import { escAttr, EMU_PER_PIXEL, EMU_PER_INCH, bytesToBase64, base64ToBytes, hasTextProperties } from './chunk-5NVJN4E6.mjs';
|
|
4
4
|
import { cloneSlide, cloneElement } from './chunk-54S5A5PZ.mjs';
|
|
5
5
|
import JSZip3 from 'jszip';
|
|
6
6
|
|
|
@@ -9051,6 +9051,29 @@ assign25(["presentation:attribute:embedTrueTypeFonts"], {
|
|
|
9051
9051
|
)
|
|
9052
9052
|
]
|
|
9053
9053
|
});
|
|
9054
|
+
assign25(["presentation:attribute:firstSlideNum"], {
|
|
9055
|
+
parse: "native",
|
|
9056
|
+
preserve: "native",
|
|
9057
|
+
edit: "unassessed",
|
|
9058
|
+
serialize: "unassessed",
|
|
9059
|
+
note: "`p:presentation/@firstSlideNum` is parsed onto `PptxData.firstSlideNumber` (absent or non-integer stays `undefined`, spec default 1) and the shared field substitution shows `firstSlideNumber + index` for `slidenum` fields. A save keeps the attribute because the loaded presentation.xml object is rewritten in place; there is no save option to change it.",
|
|
9060
|
+
evidence: [
|
|
9061
|
+
testEvidence(
|
|
9062
|
+
"src/__tests__/integration/presentation-first-slide-number.test.ts",
|
|
9063
|
+
[
|
|
9064
|
+
"is undefined (spec default: 1) when the attribute is absent",
|
|
9065
|
+
"parses an explicit @firstSlideNum onto the typed model",
|
|
9066
|
+
"accepts zero and ignores a value that is not an integer"
|
|
9067
|
+
],
|
|
9068
|
+
["parse"]
|
|
9069
|
+
),
|
|
9070
|
+
testEvidence(
|
|
9071
|
+
"src/__tests__/integration/presentation-first-slide-number.test.ts",
|
|
9072
|
+
["survives a save that rewrites presentation.xml and reloads as the same value"],
|
|
9073
|
+
["preserve"]
|
|
9074
|
+
)
|
|
9075
|
+
]
|
|
9076
|
+
});
|
|
9054
9077
|
assign25(["presentation:element:smartTags", "presentation:complexType:CT_SmartTags"], {
|
|
9055
9078
|
parse: "native",
|
|
9056
9079
|
preserve: "native",
|