ooxml-ui 1.49.0 → 1.49.1

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.
Files changed (33) hide show
  1. package/dist/building-block-styles.d.ts +1 -0
  2. package/dist/chart/format-pane-effects.d.ts +1 -0
  3. package/dist/chart/format-pane-options.d.ts.map +1 -1
  4. package/dist/chart/format-pane-space.d.ts.map +1 -1
  5. package/dist/chart/format-pane-targets.d.ts +1 -0
  6. package/dist/chart/format-pane-view.d.ts +5 -0
  7. package/dist/chart/format-pane-view.d.ts.map +1 -1
  8. package/dist/chrome/find-replace-fields.d.ts +1 -0
  9. package/dist/{chunk-ZTLP52FH.js → chunk-2JHM6UO3.js} +1 -1
  10. package/dist/{chunk-J3ROBM74.js → chunk-3WJUMM5D.js} +2 -2
  11. package/dist/{chunk-G5CALQUW.js → chunk-IHZK4NPQ.js} +1 -1
  12. package/dist/{chunk-UEFVC6V4.js → chunk-SRYBCJC2.js} +8 -2
  13. package/dist/{chunk-MUY444GW.js → chunk-XWGWPYG5.js} +1 -1
  14. package/dist/controls.js +1 -1
  15. package/dist/docx.js +4 -4
  16. package/dist/image-native-size.d.ts +0 -1
  17. package/dist/index.js +4 -4
  18. package/dist/pptx/{chunk-JOQIMYHE.cjs → chunk-PJQNDNOH.cjs} +15 -5
  19. package/dist/pptx/{chunk-Q6YXUH4R.cjs → chunk-URAPHGDB.cjs} +42 -42
  20. package/dist/pptx/{chunk-4OM7WS6M.mjs → chunk-ZFZNX62I.mjs} +1 -1
  21. package/dist/pptx/{chunk-JJP24O2L.mjs → chunk-ZZJ7KTSD.mjs} +15 -5
  22. package/dist/pptx/dom/index.cjs +371 -371
  23. package/dist/pptx/dom/index.mjs +4 -4
  24. package/dist/pptx/index.cjs +3071 -3071
  25. package/dist/pptx/index.mjs +1 -1
  26. package/dist/pptx/render/chart-format/chart-format-source.d.ts.map +1 -1
  27. package/dist/pptx/{smartart-insert-preview-KQJPGRDR.mjs → smartart-insert-preview-WXVMLDH4.mjs} +2 -2
  28. package/dist/pptx/{smartart-insert-preview-I6S2OSWU.cjs → smartart-insert-preview-WYVZOCHF.cjs} +3 -3
  29. package/dist/teams.js +2 -2
  30. package/dist/theme.d.ts +0 -1
  31. package/dist/visio.js +4 -4
  32. package/dist/xlsx.js +7 -7
  33. package/package.json +2 -2
@@ -25,7 +25,7 @@ import { resolveTableCellImageUrls, resolveTextFillBlipUrls, collectMediaElement
25
25
  import { CHART_FORMAT_STRINGS, CHART_FORMAT_LOCALES, translationsEn } from './chunk-2P6TH4ZE.mjs';
26
26
  import { createControllerStore } from './chunk-PM2SOLK3.mjs';
27
27
  import { updateTextSegmentStyle } from './chunk-PEDGPFLR.mjs';
28
- import { addSmartArtNode, addSmartArtNodeBefore, addSmartArtNodeAbove, addSmartArtNodeAsChild, evaluatePresetShape, flattenNodes, updateMergeAttrsInRawXml, chartDataToSheet, chartDataApplySheetEdits, chartSupportsSecondaryAxis, isChartSeriesOnSecondaryAxis, readChartElementFormat, setSmartArtNodeStyle, updateSmartArtNodeText, THEME_COLOR_SCHEME_KEYS, parseChartFormatTargetKey, withChartSeriesOnSecondaryAxis, withChartSeriesOptions, withChartAxisOptions, withChartLegendOptions, withChartDataLabelOptions, withChartElementFormat, reflowSmartArtPictures, applySmartArtQuickStyle3d, reorderSmartArtNode, demoteSmartArtNode, promoteSmartArtNode, removeSmartArtNode, createChartElement, interpretSmartArtLayout, styleStroke, strokeFor, nodeTextStyle, fitFontSize, truncate, nodeOpacity, nodeStroke, nodeFill, styleShadow, gearPoints, buildTree, treeWidth, treeDepth, MIN_ELEMENT_SIZE, makeStoreAwareId, hasShapeProperties, getElementTextContent, hasTextProperties, isImageLikeElement, applyDrawingColorTransforms as applyDrawingColorTransforms$1, hslToRgb as hslToRgb$1, PRESET_COLOR_MAP, getSubstituteFontFamily, evaluateGuides, deobfuscateFont, chartDataChangeType, resetChartElementFormat, isNativeAfterAnimationOnly, resolveThemeColorRef, resolveOoxmlPresetMapping, getCapturedPreset, resolveDirectionSubtype, capturedPresetNativeAnimation, timingCurveToAccelDecel, applyAfterAnimationFromEditorList, parsePanoseString, EMU_PER_PX as EMU_PER_PX$1, DEFAULT_POWERPOINT_TABLE_STYLE_ID, DEFAULT_SCHEME_COLOR_MAP as DEFAULT_SCHEME_COLOR_MAP$1, ELEMENT_PARAGRAPH_GEOMETRY_KEYS, createAutoNumberSequence, nextAutoNumber, breakAutoNumberRun, getLinkedTextBoxSegments, deriveSlideTitle, svgPathToPolygons, createBuiltinVariables, resolveCoordinate, getPresetConnectionSites, getConnectorPathGeometry, getShapeType, detectFontFormat, getPptxLoadLimitViolation, createEditorId, reassignDescendantIds, checkMissingAltText, checkMissingSlideTitle, checkLowContrast, checkComplexTables, checkBlankSlide, checkDuplicateTitles, rebaseCommentMentions, renameSlideMaster, deleteSlideMaster, duplicateSlideMaster, insertSlideMaster, renameLayout, deleteLayout, duplicateLayout, insertLayout, switchSmartArtLayout, buildThemeColorMap, resolveModifyVerifierAlgorithmName, verifyModifyPassword, evaluateCustomGeometryPaths, cloneElement, SLIDE_PACKAGE_CLIPBOARD_MIME, deserializeSlidePackageClipboard, importSlidePackage, PptxHandler, createSlideClipboardPackage, serializeSlidePackageClipboard, serializePptxToJson, PPTX_JSON_MIME_TYPE, douglasPeucker, resolveEffectTiming, lookupPresetShape, normalizeStShapeType, resolveCustomGeometryGuideContext, smartArtQuickStyleHas3d, relayoutSmartArt, customGeometryPathsToSvgSubpaths, BACKGROUND_STYLE_PRESETS, THEME_EFFECT_SCHEMES, findThemeEffectSchemeByName, SWITCHABLE_LAYOUT_TYPES, reResolveSlideFonts, reResolveSlideColors, reResolveElementColors, reResolveElementFonts, resolveOpacitySet, resolveTableBackgroundFillRef, resolveTableBackgroundEffectRef, getRoundRectRadiusPx, resolveCustomGeometryToken, formatSchemeKey, cropShapeForPresetGeometry, resolveVisibilitySetTiming, resolveTableStyleLineRef, backgroundStylePreset, ooxmlGradientAngleToCssDegrees, themeColorRefFromColorChoice } from 'ooxml-core/pptx';
28
+ import { addSmartArtNode, addSmartArtNodeBefore, addSmartArtNodeAbove, addSmartArtNodeAsChild, evaluatePresetShape, flattenNodes, updateMergeAttrsInRawXml, chartDataToSheet, chartDataApplySheetEdits, chartModelLabelPositions, chartSupportsSecondaryAxis, isChartSeriesOnSecondaryAxis, readChartElementFormat, setSmartArtNodeStyle, updateSmartArtNodeText, THEME_COLOR_SCHEME_KEYS, parseChartFormatTargetKey, withChartSeriesOnSecondaryAxis, withChartSeriesOptions, withChartAxisOptions, withChartLegendOptions, withChartDataLabelOptions, withChartElementFormat, reflowSmartArtPictures, applySmartArtQuickStyle3d, reorderSmartArtNode, demoteSmartArtNode, promoteSmartArtNode, removeSmartArtNode, createChartElement, interpretSmartArtLayout, styleStroke, strokeFor, nodeTextStyle, fitFontSize, truncate, nodeOpacity, nodeStroke, nodeFill, styleShadow, gearPoints, buildTree, treeWidth, treeDepth, MIN_ELEMENT_SIZE, makeStoreAwareId, hasShapeProperties, getElementTextContent, hasTextProperties, isImageLikeElement, applyDrawingColorTransforms as applyDrawingColorTransforms$1, hslToRgb as hslToRgb$1, PRESET_COLOR_MAP, getSubstituteFontFamily, evaluateGuides, deobfuscateFont, chartDataChangeType, resetChartElementFormat, isNativeAfterAnimationOnly, resolveThemeColorRef, resolveOoxmlPresetMapping, getCapturedPreset, resolveDirectionSubtype, capturedPresetNativeAnimation, timingCurveToAccelDecel, applyAfterAnimationFromEditorList, parsePanoseString, EMU_PER_PX as EMU_PER_PX$1, DEFAULT_POWERPOINT_TABLE_STYLE_ID, DEFAULT_SCHEME_COLOR_MAP as DEFAULT_SCHEME_COLOR_MAP$1, ELEMENT_PARAGRAPH_GEOMETRY_KEYS, createAutoNumberSequence, nextAutoNumber, breakAutoNumberRun, getLinkedTextBoxSegments, deriveSlideTitle, svgPathToPolygons, createBuiltinVariables, resolveCoordinate, getPresetConnectionSites, getConnectorPathGeometry, getShapeType, detectFontFormat, getPptxLoadLimitViolation, createEditorId, reassignDescendantIds, checkMissingAltText, checkMissingSlideTitle, checkLowContrast, checkComplexTables, checkBlankSlide, checkDuplicateTitles, rebaseCommentMentions, renameSlideMaster, deleteSlideMaster, duplicateSlideMaster, insertSlideMaster, renameLayout, deleteLayout, duplicateLayout, insertLayout, switchSmartArtLayout, buildThemeColorMap, resolveModifyVerifierAlgorithmName, verifyModifyPassword, evaluateCustomGeometryPaths, cloneElement, SLIDE_PACKAGE_CLIPBOARD_MIME, deserializeSlidePackageClipboard, importSlidePackage, PptxHandler, createSlideClipboardPackage, serializeSlidePackageClipboard, serializePptxToJson, PPTX_JSON_MIME_TYPE, douglasPeucker, resolveEffectTiming, lookupPresetShape, normalizeStShapeType, resolveCustomGeometryGuideContext, smartArtQuickStyleHas3d, relayoutSmartArt, customGeometryPathsToSvgSubpaths, BACKGROUND_STYLE_PRESETS, THEME_EFFECT_SCHEMES, findThemeEffectSchemeByName, SWITCHABLE_LAYOUT_TYPES, reResolveSlideFonts, reResolveSlideColors, reResolveElementColors, reResolveElementFonts, resolveOpacitySet, resolveTableBackgroundFillRef, resolveTableBackgroundEffectRef, getRoundRectRadiusPx, resolveCustomGeometryToken, formatSchemeKey, cropShapeForPresetGeometry, resolveVisibilitySetTiming, resolveTableStyleLineRef, backgroundStylePreset, ooxmlGradientAngleToCssDegrees, themeColorRefFromColorChoice } from 'ooxml-core/pptx';
29
29
  export { AFTER_ANIMATION_VALUES, DEFAULT_AFTER_ANIMATION_DIM_COLOR, algorithmParam, applySpeedToDuration, buildTree, chartGridAddCategory, chartGridAddSeries, chartGridRemoveCategory, chartGridRemoveSeries, chartGridSetCategoryLabel, chartGridSetCellValue, chevronPoints, colour, discoverArrangement, findConstraint, fitFontSize, flattenNodes, gearPoints, getAfterAnimation, getAfterAnimationState, interpretSmartArtLayout, isNativeAfterAnimationOnly, itemNode, nodeFill, nodeOpacity, nodeStroke, nodeTextStyle, numericParam, ratioConstraint, reassignDescendantIds, resolveEffectTiming, resolveFlowDirection, resolveIterationCount, setAfterAnimation, setAfterAnimationColor, shouldHoldEndState, strokeFor, styleShadow, styleStroke, treeDepth, treeWidth, truncate } from 'ooxml-core/pptx';
30
30
  import { SHAPE_GALLERY_CATEGORIES, shapeGalleryCategoryKey, shapeGalleryNameKey, RESIZE_HANDLE_GEOMETRY, computeSnap, snapToGridStep, routeOrthogonalConnector, waypointsToPathD, elbowSegmentCount, curvedElbowPathD, arrowKeyDelta, flattenSvgPath, applyDragDelta, computeSnapToShape, applyResize, lockResizeAspect, createRotationDrag, boxCenter, snapAngle, imageRectFromCrop, cropUpdateFromRects, resolveRotateHandlePlacement, pictureTileAlignment, elbowWaypoints as elbowWaypoints$1, pictureFillCounterTransform, pictureTileGeometry } from 'ooxml-core/geometry';
31
31
  export { CANVAS_SENTINEL, PADDING_DEFAULT, RESIZE_HANDLES, RESIZE_HANDLE_GEOMETRY, ROTATE_STEM_PX, ROUTING_PADDING_DEFAULT, SNAP_THRESHOLD, aStarOrthogonal, alignElements, applyDragDelta, applyResize, boxCenter, buildGraphNodes, computeAlign, computeDistribute, computeRotation, computeSnap, computeSnapToShape, createRotationDrag, cropUpdateFromRects, directPathClear, distributeElements, heuristic, imageRectFromCrop, inflateRect, isCornerHandle, lockResizeAspect, pointInRect, pointKey, resolveAlignReferenceBox, rotateDelta, routeConnector, routeOrthogonalConnector, segmentIntersectsRect, simplifyPath, snapAngle, snapBox, snapToGridStep, snapValue, usesSlideReference, waypointsToPathD, waypointsToPathData } from 'ooxml-core/geometry';
@@ -37,7 +37,7 @@ import { isParagraphSeparatorSegment } from 'ooxml-core/pptx/editor/render/text-
37
37
  export { isParagraphSeparatorSegment } from 'ooxml-core/pptx/editor/render/text-segment-paragraph-break';
38
38
  import { convertLatexToOmml, convertOmmlToMathMl } from 'ooxml-core/math';
39
39
  export { convertLatexToOmml, convertOmmlToLatex, convertOmmlToMathMl, ommlToMathml } from 'ooxml-core/math';
40
- import { applyChartDataSheetEdits, chartDataSheetCellEdit, chartDataSheetPasteEdits, chartSeriesEntries, chartGroupPaintsLine, chartTargetShape, chartSeriesSecondaryAxisSupported, chartTargetHasText, chartFormatTargetKey, chartDrawingColorFromHex, chartSeriesOnSecondaryAxis, chartSeriesMarkersSupported, chartSeriesAnalysisSupported, resolveChartGradient, chartTargetEffects, chartTargetTextFormatting, CHART_MARKER_SYMBOLS, chartPointsToEmu, chartEffectEditsFromAppearance, chartThreeDFromAppearance, chartDrawingGradientFrom, chartTargetThreeD, fitChartTrendline, findChartStylePreset, CHART_STYLE_PRESETS, sameChartColors, resolveChart3DProjection, sortGradientStops, removeGradientStop, updateGradientStop, CHART_QUICK_LAYOUTS, findChartColorPalette, niceValueAxisBounds, axisTargetIntervals, chartPaletteColors, CHART_COLOR_PALETTES, CHART_QUICK_LAYOUT_AXIS_TITLE } from 'ooxml-core/chart';
40
+ import { applyChartDataSheetEdits, chartDataSheetCellEdit, chartDataSheetPasteEdits, chartSeriesEntries, chartLabelPositions, chartGroupPaintsLine, chartTargetShape, chartSeriesSecondaryAxisSupported, chartTargetHasText, chartFormatTargetKey, chartDrawingColorFromHex, chartSeriesOnSecondaryAxis, chartSeriesMarkersSupported, chartSeriesAnalysisSupported, resolveChartGradient, chartTargetEffects, chartTargetTextFormatting, CHART_MARKER_SYMBOLS, chartPointsToEmu, chartEffectEditsFromAppearance, chartThreeDFromAppearance, chartDrawingGradientFrom, chartTargetThreeD, fitChartTrendline, findChartStylePreset, CHART_STYLE_PRESETS, sameChartColors, resolveChart3DProjection, sortGradientStops, removeGradientStop, updateGradientStop, CHART_QUICK_LAYOUTS, findChartColorPalette, niceValueAxisBounds, axisTargetIntervals, chartPaletteColors, CHART_COLOR_PALETTES, CHART_QUICK_LAYOUT_AXIS_TITLE } from 'ooxml-core/chart';
41
41
  import { ARROWHEAD_LABEL_KEYS, ARROW_SIZE_LABEL_KEYS, SMARTART_LAYOUT_LABEL_KEYS } from 'ooxml-core/pptx/editor/render/schema-label-keys';
42
42
  export { ARROWHEAD_LABEL_KEYS, ARROW_SIZE_LABEL_KEYS, SMARTART_COLOR_SCHEME_LABEL_KEYS, SMARTART_LAYOUT_LABEL_KEYS, SMARTART_STYLE_LABEL_KEYS, THEME_COLOR_SLOT_LABEL_KEYS, schemaLabel } from 'ooxml-core/pptx/editor/render/schema-label-keys';
43
43
  export { createDefaultChartUserShape, listChartUserShapeDescriptors, pixelRectToAbsAnchor, pixelRectToRelAnchor, validateChartUserShapeAnchor, withChartUserShapeAdded, withChartUserShapeRemoved, withChartUserShapeUpdated } from 'ooxml-core/pptx/editor/render/chart-user-shape-edit';
@@ -7926,7 +7926,10 @@ function labelOptions(labels) {
7926
7926
  fields.push(check("labels.showPercent", "labelPercentage", "Percentage", labels.showPercent));
7927
7927
  }
7928
7928
  fields.push(check("labels.showLegendKey", "labelLegendKey", "Legend key", labels.showLegendKey));
7929
- const positions2 = labelPositions(type);
7929
+ const accepted = labels.positions;
7930
+ const positions2 = labelPositions(type).filter(
7931
+ ([value]) => accepted === void 0 || accepted.includes(value)
7932
+ );
7930
7933
  if (positions2.length > 0) {
7931
7934
  fields.push({
7932
7935
  id: "labels.position",
@@ -8228,11 +8231,15 @@ function pptxChartFormatSource(data) {
8228
8231
  showValue: labels.showValue,
8229
8232
  showPercent: labels.showPercent,
8230
8233
  showLegendKey: labels.showLegendKey,
8231
- position: labels.position
8234
+ position: labels.position,
8235
+ ...positionsOf(chartModelLabelPositions(data, seriesIndex))
8232
8236
  };
8233
8237
  }
8234
8238
  };
8235
8239
  }
8240
+ function positionsOf(positions2) {
8241
+ return positions2 ? { positions: positions2 } : {};
8242
+ }
8236
8243
 
8237
8244
  // src/pptx/render/chart-format/chart-format-pane-model.ts
8238
8245
  function chartFormatTabs(data, targetKey, mode = "chart") {
@@ -83353,6 +83360,9 @@ function chartSpaceFormatSource(space, options = {}) {
83353
83360
  set("showPercent", pick("showPercent"));
83354
83361
  set("showLegendKey", pick("showLegendKey"));
83355
83362
  set("position", pick("position"));
83363
+ const edited = entry6 ? [entry6.group] : space.plotArea.groups.filter((item4) => item4.kind !== "surface");
83364
+ if (edited.length > 0)
83365
+ view2.positions = edited.map((item4) => chartLabelPositions(item4.element, item4.grouping)).reduce((all, own2) => all.filter((value) => own2.includes(value)));
83356
83366
  return view2;
83357
83367
  };
83358
83368
  return {
@@ -88512,7 +88522,7 @@ function definePptxInsertSmartArtDialog(registry2) {
88512
88522
  if (this.#live || this.#draw) {
88513
88523
  return;
88514
88524
  }
88515
- this.#live = import('./smartart-insert-preview-KQJPGRDR.mjs').then((module) => {
88525
+ this.#live = import('./smartart-insert-preview-WXVMLDH4.mjs').then((module) => {
88516
88526
  if (this.#draw || !this.#picker) {
88517
88527
  return;
88518
88528
  }