ooxml-core 1.9.0 → 1.11.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-DNZHAHUY.cjs +12 -0
- package/dist/PptxHandler-E44KDHMQ.mjs +3 -0
- package/dist/{PptxHandler-EX4WBIQQ.mjs → PptxHandler-NROFYT2N.mjs} +2 -2
- package/dist/automation/index.cjs +3236 -2258
- package/dist/automation/index.mjs +3236 -2258
- package/dist/{chunk-SWF7KVL5.cjs → chunk-2UVH6RHI.cjs} +1608 -1163
- package/dist/{chunk-M76PHYRR.mjs → chunk-7DSZI7S6.mjs} +1 -1
- package/dist/{chunk-AT66SA5M.cjs → chunk-7QZGRB3T.cjs} +28 -10
- package/dist/chunk-ANZ4Q6I3.cjs +21 -0
- package/dist/{chunk-CPKNMQLX.cjs → chunk-AWIDASUW.cjs} +25 -2
- package/dist/{chunk-SVQZXP3F.mjs → chunk-CBNKBVX5.mjs} +25 -2
- package/dist/{chunk-FIELY5PI.mjs → chunk-EC2W2MDY.mjs} +30 -2
- package/dist/chunk-EGTRL3QJ.mjs +19 -0
- package/dist/chunk-GXHKNSZX.mjs +9 -0
- package/dist/{chunk-OXHMZS7B.mjs → chunk-HCXUI5UC.mjs} +943 -273
- package/dist/chunk-HDQXPSHY.cjs +17 -0
- package/dist/chunk-KTYBFGEY.mjs +14 -0
- package/dist/chunk-QOO36KG4.cjs +42 -0
- package/dist/chunk-R2KZXD6U.mjs +39 -0
- package/dist/{chunk-IGOA57LE.mjs → chunk-U2DF3EGK.mjs} +1 -1
- package/dist/{chunk-OB277ZGE.mjs → chunk-UAY26XOI.mjs} +27 -9
- package/dist/{chunk-WSO4T2LJ.mjs → chunk-W5ARCUJB.mjs} +26 -3
- package/dist/chunk-XZPZHXV4.cjs +12 -0
- package/dist/{chunk-LCS3J3QI.mjs → chunk-YB5SRNFS.mjs} +717 -272
- 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 +554 -83
- package/dist/docx/layout/index.mjs +554 -84
- package/dist/docx/layout/nested-fragment-edges.d.ts +9 -0
- package/dist/docx/layout/nested-fragment-edges.d.ts.map +1 -0
- 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 +20 -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 +3 -2
- 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 +801 -296
- package/dist/pptx/automation/index.d.ts +5 -4
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/chunks/{text-operations-BLodkuXE.d.ts → elements-DD3UGOMd.d.ts} +27 -3248
- package/dist/pptx/chunks/elements-DD3UGOMd.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-B4cnSPNz.d.ts → index-BZrFyNtU.d.ts} +113 -5
- package/dist/pptx/chunks/index-BZrFyNtU.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-BZh-IMkN.d.ts → index-DdX02BSm.d.ts} +19 -3
- package/dist/pptx/chunks/index-DdX02BSm.d.ts.map +1 -0
- package/dist/pptx/chunks/smart-art-ENMMEbmW.d.ts +1512 -0
- package/dist/pptx/chunks/smart-art-ENMMEbmW.d.ts.map +1 -0
- package/dist/pptx/chunks/text-D49FKllA.d.ts +1473 -0
- package/dist/pptx/chunks/text-D49FKllA.d.ts.map +1 -0
- package/dist/pptx/chunks/text-operations-CyMTMfID.d.ts +3261 -0
- package/dist/pptx/chunks/text-operations-CyMTMfID.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +801 -296
- 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 +19 -18
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +3 -2
- package/dist/pptx/editor/render/font-family-update.cjs +14 -0
- package/dist/pptx/editor/render/font-family-update.d.ts +17 -0
- package/dist/pptx/editor/render/font-family-update.d.ts.map +1 -0
- package/dist/pptx/editor/render/font-family-update.mjs +1 -0
- package/dist/pptx/editor/render/paragraph-geometry-overrides.cjs +14 -0
- package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +17 -0
- package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts.map +1 -0
- package/dist/pptx/editor/render/paragraph-geometry-overrides.mjs +12 -0
- 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 +9 -8
- package/dist/pptx/editor/render/slide-operations.mjs +3 -2
- package/dist/pptx/editor/render/table-data-grid-ops.cjs +1 -1
- package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
- package/dist/pptx/editor/render/text-content-style.cjs +18 -0
- package/dist/pptx/editor/render/text-content-style.d.ts +9 -0
- package/dist/pptx/editor/render/text-content-style.d.ts.map +1 -0
- package/dist/pptx/editor/render/text-content-style.mjs +5 -0
- package/dist/pptx/editor/render/text-runs-style-patch.cjs +17 -0
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +7 -0
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts.map +1 -0
- package/dist/pptx/editor/render/text-runs-style-patch.mjs +15 -0
- package/dist/pptx/editor/render/text-style-scope.cjs +173 -0
- package/dist/pptx/editor/render/text-style-scope.d.ts +76 -0
- package/dist/pptx/editor/render/text-style-scope.d.ts.map +1 -0
- package/dist/pptx/editor/render/text-style-scope.mjs +164 -0
- package/dist/pptx/editor/render/theme-editor-model.cjs +1 -1
- package/dist/pptx/editor/render/theme-editor-model.mjs +1 -1
- package/dist/pptx/editor/render/update-text-segment-style.cjs +11 -0
- package/dist/pptx/editor/render/update-text-segment-style.d.ts +14 -0
- package/dist/pptx/editor/render/update-text-segment-style.d.ts.map +1 -0
- package/dist/pptx/editor/render/update-text-segment-style.mjs +2 -0
- package/dist/pptx/index.cjs +1091 -296
- package/dist/pptx/index.d.ts +7 -5
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/smartart-layouts/index.d.ts +1 -1
- package/dist/teams/index.cjs +590 -122
- package/dist/teams/index.mjs +590 -122
- package/dist/visio/date-cache.d.ts +3 -0
- package/dist/visio/date-cache.d.ts.map +1 -0
- package/dist/visio/edit-commands.d.ts +3 -3
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-formatting-scope.d.ts.map +1 -1
- package/dist/visio/edit-recalculate-index.d.ts.map +1 -1
- package/dist/visio/edit-text-field-commands.d.ts +15 -0
- package/dist/visio/edit-text-field-commands.d.ts.map +1 -1
- package/dist/visio/edit-text-field.d.ts +2 -2
- package/dist/visio/edit-text-field.d.ts.map +1 -1
- package/dist/visio/edit.d.ts +1 -1
- package/dist/visio/edit.d.ts.map +1 -1
- package/dist/visio/index.cjs +501 -220
- package/dist/visio/index.d.ts +1 -1
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +501 -220
- package/dist/visio/model.d.ts +6 -0
- package/dist/visio/model.d.ts.map +1 -1
- package/dist/visio/shape-metadata.d.ts.map +1 -1
- package/dist/visio/shapes.d.ts.map +1 -1
- package/dist/visio/style.d.ts +1 -1
- package/dist/visio/style.d.ts.map +1 -1
- package/dist/visio/text-field-display.d.ts +3 -0
- package/dist/visio/text-field-display.d.ts.map +1 -1
- package/dist/visio/text-field-editability.d.ts +6 -0
- package/dist/visio/text-field-editability.d.ts.map +1 -0
- 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-independent.d.ts +4 -0
- package/dist/visio/text-field-independent.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-source.d.ts +6 -0
- package/dist/visio/text-field-source.d.ts.map +1 -0
- 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/edit-commands.d.ts.map +1 -1
- package/dist/visio/ui/index.cjs +514 -221
- package/dist/visio/ui/index.mjs +514 -221
- package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
- 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 +1362 -659
- package/dist/xlsx/index.mjs +1361 -660
- package/dist/xlsx/load/index.cjs +1091 -430
- package/dist/xlsx/load/index.mjs +1091 -430
- package/dist/xlsx/model-pivots.d.ts +31 -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 +2 -2
- 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/index.d.ts +2 -0
- package/dist/xlsx/pivot/index.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/page-filter-admission.d.ts +5 -0
- package/dist/xlsx/pivot/page-filter-admission.d.ts.map +1 -0
- package/dist/xlsx/pivot/page-filter.d.ts +11 -0
- package/dist/xlsx/pivot/page-filter.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 +12 -0
- package/dist/xlsx/pivot/values-axis.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/pivots.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +640 -137
- package/dist/xlsx/ui/index.mjs +640 -137
- package/package.json +2 -2
- 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 +0 -2970
- package/dist/pptx/chunks/smart-art-Q2kZQtHh.d.ts.map +0 -1
- package/dist/pptx/chunks/text-operations-BLodkuXE.d.ts.map +0 -1
package/dist/pptx/cli/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as MergeOptions, t as FindResult } from "../chunks/text-operations-
|
|
1
|
+
import { a as MergeOptions, t as FindResult } from "../chunks/text-operations-CyMTMfID.js";
|
|
2
2
|
//#region pptx/cli/commands.d.ts
|
|
3
3
|
/** Result from the `info` command. */
|
|
4
4
|
interface InfoResult {
|
package/dist/pptx/cli/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { replaceText, findText, mergePresentation } from '../../chunk-
|
|
3
|
-
import { PptxMarkdownConverter } from '../../chunk-
|
|
4
|
-
import { PptxHandler } from '../../chunk-
|
|
5
|
-
import { SvgExporter, isImageLikeElement, blobUrlToDataUrl } from '../../chunk-
|
|
2
|
+
import { replaceText, findText, mergePresentation } from '../../chunk-U2DF3EGK.mjs';
|
|
3
|
+
import { PptxMarkdownConverter } from '../../chunk-7DSZI7S6.mjs';
|
|
4
|
+
import { PptxHandler } from '../../chunk-HCXUI5UC.mjs';
|
|
5
|
+
import { SvgExporter, isImageLikeElement, blobUrlToDataUrl } from '../../chunk-EC2W2MDY.mjs';
|
|
6
6
|
import '../../chunk-KBIJI6P5.mjs';
|
|
7
7
|
import '../../chunk-3GXV5MPC.mjs';
|
|
8
8
|
import '../../chunk-54S5A5PZ.mjs';
|
|
@@ -28542,6 +28542,7 @@ var init_presentation_field_keys = __esm({
|
|
|
28542
28542
|
modernCommentAuthors: true,
|
|
28543
28543
|
conformance: true,
|
|
28544
28544
|
embedTrueTypeFonts: true,
|
|
28545
|
+
firstSlideNumber: true,
|
|
28545
28546
|
defaultTextStyle: true
|
|
28546
28547
|
};
|
|
28547
28548
|
exports.PRESENTATION_FIELD_NAMES = Object.keys(exports.PRESENTATION_FIELD_KEYS);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as SlideProcessor, B as generateMediaFilename, C as PptxJsonAssetStats, D as SvgExportOptions, E as isPptxJsonText, F as deriveOutputPath, H as ConversionResult, I as getDirectory, L as normalizePath, M as PptxConverterOptions, N as PptxMarkdownConverter, O as SvgExporter, P as DocumentConverter, R as MediaContext, S as PPTX_JSON_VERSION, T as decodePptxJsonText, U as FileSystemAdapter, V as ConversionOptions, _ as decodeJsonValue, a as deserializePptxFromJson, b as PPTX_JSON_FORMAT, c as pptxDataFromJsonDocument, d as serializePptxToJson, f as PRESENTATION_FIELD_KEYS, g as bytesToBase64, h as base64ToBytes, i as PptxJsonFormatError, j as SlideProcessorOptions, k as SlideMetadataRenderer, l as PptxJsonSerializeOptions, m as JsonAssetAccumulator, n as PptxJsonConverterOptions, o as parsePptxJson, p as PRESENTATION_FIELD_NAMES, r as applyImportedPptxData, s as parsePptxJsonDocument, t as PptxJsonConverter, u as buildPptxJsonDocument, v as encodeJsonValue, w as PptxJsonDocument, x as PPTX_JSON_MIME_TYPE, y as PPTX_JSON_FILE_EXTENSION, z as dataUrlToMediaBytes } from "../chunks/index-
|
|
1
|
+
import { A as SlideProcessor, B as generateMediaFilename, C as PptxJsonAssetStats, D as SvgExportOptions, E as isPptxJsonText, F as deriveOutputPath, H as ConversionResult, I as getDirectory, L as normalizePath, M as PptxConverterOptions, N as PptxMarkdownConverter, O as SvgExporter, P as DocumentConverter, R as MediaContext, S as PPTX_JSON_VERSION, T as decodePptxJsonText, U as FileSystemAdapter, V as ConversionOptions, _ as decodeJsonValue, a as deserializePptxFromJson, b as PPTX_JSON_FORMAT, c as pptxDataFromJsonDocument, d as serializePptxToJson, f as PRESENTATION_FIELD_KEYS, g as bytesToBase64, h as base64ToBytes, i as PptxJsonFormatError, j as SlideProcessorOptions, k as SlideMetadataRenderer, l as PptxJsonSerializeOptions, m as JsonAssetAccumulator, n as PptxJsonConverterOptions, o as parsePptxJson, p as PRESENTATION_FIELD_NAMES, r as applyImportedPptxData, s as parsePptxJsonDocument, t as PptxJsonConverter, u as buildPptxJsonDocument, v as encodeJsonValue, w as PptxJsonDocument, x as PPTX_JSON_MIME_TYPE, y as PPTX_JSON_FILE_EXTENSION, z as dataUrlToMediaBytes } from "../chunks/index-DdX02BSm.js";
|
|
2
2
|
export { type ConversionOptions, type ConversionResult, DocumentConverter, type FileSystemAdapter, type JsonAssetAccumulator, MediaContext, PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, type PptxConverterOptions, type PptxJsonAssetStats, PptxJsonConverter, type PptxJsonConverterOptions, type PptxJsonDocument, PptxJsonFormatError, type PptxJsonSerializeOptions, PptxMarkdownConverter, SlideMetadataRenderer, SlideProcessor, type SlideProcessorOptions, type SvgExportOptions, SvgExporter, applyImportedPptxData, base64ToBytes, buildPptxJsonDocument, bytesToBase64, dataUrlToMediaBytes, decodeJsonValue, decodePptxJsonText, deriveOutputPath, deserializePptxFromJson, encodeJsonValue, generateMediaFilename, getDirectory, isPptxJsonText, normalizePath, parsePptxJson, parsePptxJsonDocument, pptxDataFromJsonDocument, serializePptxToJson };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../chunk-6Q7TP72Y.mjs';
|
|
2
|
-
export { DocumentConverter, MediaContext, PptxMarkdownConverter, SlideMetadataRenderer, SlideProcessor, dataUrlToMediaBytes, deriveOutputPath, generateMediaFilename, getDirectory, normalizePath } from '../../chunk-
|
|
3
|
-
export { PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, PptxJsonConverter, PptxJsonFormatError, SvgExporter, applyImportedPptxData, base64ToBytes, buildPptxJsonDocument, bytesToBase64, decodeJsonValue, decodePptxJsonText, deserializePptxFromJson, encodeJsonValue, isPptxJsonText, parsePptxJson, parsePptxJsonDocument, pptxDataFromJsonDocument, serializePptxToJson } from '../../chunk-
|
|
2
|
+
export { DocumentConverter, MediaContext, PptxMarkdownConverter, SlideMetadataRenderer, SlideProcessor, dataUrlToMediaBytes, deriveOutputPath, generateMediaFilename, getDirectory, normalizePath } from '../../chunk-7DSZI7S6.mjs';
|
|
3
|
+
export { PPTX_JSON_FILE_EXTENSION, PPTX_JSON_FORMAT, PPTX_JSON_MIME_TYPE, PPTX_JSON_VERSION, PRESENTATION_FIELD_KEYS, PRESENTATION_FIELD_NAMES, PptxJsonConverter, PptxJsonFormatError, SvgExporter, applyImportedPptxData, base64ToBytes, buildPptxJsonDocument, bytesToBase64, decodeJsonValue, decodePptxJsonText, deserializePptxFromJson, encodeJsonValue, isPptxJsonText, parsePptxJson, parsePptxJsonDocument, pptxDataFromJsonDocument, serializePptxToJson } from '../../chunk-EC2W2MDY.mjs';
|
|
4
4
|
import '../../chunk-KBIJI6P5.mjs';
|
|
5
5
|
import '../../chunk-54S5A5PZ.mjs';
|
|
6
6
|
import '../../chunk-KII4AAYH.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAWIDASUW_cjs = require('../../../chunk-AWIDASUW.cjs');
|
|
4
4
|
require('../../../chunk-7IUNOWFJ.cjs');
|
|
5
5
|
require('../../../chunk-Y6665UXH.cjs');
|
|
6
6
|
require('../../../chunk-RGLJ6BCK.cjs');
|
|
@@ -62,7 +62,7 @@ function applyLivePatch(doc, factories, patch, textPatchLimit) {
|
|
|
62
62
|
if (ymap.get("text") !== value) {
|
|
63
63
|
ymap.set("text", value);
|
|
64
64
|
}
|
|
65
|
-
const segments =
|
|
65
|
+
const segments = chunkAWIDASUW_cjs.remapTextToSegments(value, source.textSegments, source.textStyle);
|
|
66
66
|
chunkPC4MTLG4_cjs.reconcileElementTextBody(ymap, { textSegments: segments }, factories);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk7QZGRB3T_cjs = require('../../../chunk-7QZGRB3T.cjs');
|
|
4
|
+
var chunkXZPZHXV4_cjs = require('../../../chunk-XZPZHXV4.cjs');
|
|
5
|
+
var chunkAWIDASUW_cjs = require('../../../chunk-AWIDASUW.cjs');
|
|
5
6
|
require('../../../chunk-7IUNOWFJ.cjs');
|
|
6
7
|
require('../../../chunk-Y6665UXH.cjs');
|
|
7
8
|
require('../../../chunk-RGLJ6BCK.cjs');
|
|
@@ -83,7 +84,7 @@ function* findTextTargets(element, elementId = element.id, path = [], includeCha
|
|
|
83
84
|
includeChartTitles,
|
|
84
85
|
includeChartData
|
|
85
86
|
);
|
|
86
|
-
} else if (
|
|
87
|
+
} else if (chunkXZPZHXV4_cjs.hasTextProperties(element)) {
|
|
87
88
|
const runs = element.textSegments?.length ? element.textSegments : element.text ? [{ text: element.text, style: element.textStyle ?? {} }] : [];
|
|
88
89
|
yield { ...location, runs };
|
|
89
90
|
} else if (element.type === "table" && element.tableData) {
|
|
@@ -143,10 +144,10 @@ function* findSlideTextTargets(slide, includeNotes = false, includeChartTitles =
|
|
|
143
144
|
function patchTableXml(element, rowIndex, colIndex, original, runs) {
|
|
144
145
|
if (!element.rawXml) return void 0;
|
|
145
146
|
const rawXml = structuredClone(element.rawXml);
|
|
146
|
-
const table =
|
|
147
|
-
const row =
|
|
148
|
-
const cell =
|
|
149
|
-
const paragraphs =
|
|
147
|
+
const table = chunk7QZGRB3T_cjs.getTblFromRawXml(rawXml);
|
|
148
|
+
const row = chunk7QZGRB3T_cjs.ensureArray(table?.["a:tr"])[rowIndex];
|
|
149
|
+
const cell = chunk7QZGRB3T_cjs.ensureArray(row?.["a:tc"])[colIndex];
|
|
150
|
+
const paragraphs = chunk7QZGRB3T_cjs.ensureArray(
|
|
150
151
|
cell?.["a:txBody"]?.["a:p"]
|
|
151
152
|
);
|
|
152
153
|
let paragraphIndex = 0, runIndex = 0, fieldIndex = 0;
|
|
@@ -161,7 +162,7 @@ function patchTableXml(element, rowIndex, colIndex, original, runs) {
|
|
|
161
162
|
if (previous.isLineBreak) continue;
|
|
162
163
|
const paragraph = paragraphs[paragraphIndex];
|
|
163
164
|
const key = previous.isField ? "a:fld" : "a:r";
|
|
164
|
-
const xmlRun =
|
|
165
|
+
const xmlRun = chunk7QZGRB3T_cjs.ensureArray(paragraph?.[key])[previous.isField ? fieldIndex++ : runIndex++];
|
|
165
166
|
if (!xmlRun) return void 0;
|
|
166
167
|
if (previous.text !== runs[index].text) xmlRun["a:t"] = runs[index].text;
|
|
167
168
|
}
|
|
@@ -171,7 +172,7 @@ function updateNode(nodes, nodeId, text) {
|
|
|
171
172
|
return nodes.map((node) => {
|
|
172
173
|
if (node.id === nodeId) {
|
|
173
174
|
const originalParagraphs = node.paragraphs ?? (node.runs?.length ? [{ items: node.runs.map((run) => ({ kind: "run", run })) }] : void 0);
|
|
174
|
-
const paragraphs = originalParagraphs ?
|
|
175
|
+
const paragraphs = originalParagraphs ? chunk7QZGRB3T_cjs.reconcileSmartArtTextParagraphs(originalParagraphs, text) : void 0;
|
|
175
176
|
return { ...node, text, ...paragraphs ? { paragraphs } : {} };
|
|
176
177
|
}
|
|
177
178
|
if (!node.children) return node;
|
|
@@ -250,14 +251,14 @@ function replaceLeaf(element, match, replacement) {
|
|
|
250
251
|
);
|
|
251
252
|
if (!runs) return element;
|
|
252
253
|
let text = runs.map((run) => run.isParagraphBreak ? "\n" : run.isLineBreak ? "" : run.text).join("");
|
|
253
|
-
let rawXml = cell.textRuns?.length ? patchTableXml(element, rowIndex, colIndex, original2, runs) :
|
|
254
|
+
let rawXml = cell.textRuns?.length ? patchTableXml(element, rowIndex, colIndex, original2, runs) : chunk7QZGRB3T_cjs.updateCellTextInRawXml(element, rowIndex, colIndex, text);
|
|
254
255
|
if (rawXml) {
|
|
255
|
-
const table =
|
|
256
|
-
const xmlRow =
|
|
257
|
-
const xmlCell =
|
|
258
|
-
text =
|
|
256
|
+
const table = chunk7QZGRB3T_cjs.getTblFromRawXml(rawXml);
|
|
257
|
+
const xmlRow = chunk7QZGRB3T_cjs.ensureArray(table?.["a:tr"])[rowIndex];
|
|
258
|
+
const xmlCell = chunk7QZGRB3T_cjs.ensureArray(xmlRow?.["a:tc"])[colIndex];
|
|
259
|
+
text = chunk7QZGRB3T_cjs.flattenCellTxBodyText(
|
|
259
260
|
xmlCell?.["a:txBody"],
|
|
260
|
-
(value) =>
|
|
261
|
+
(value) => chunk7QZGRB3T_cjs.ensureArray(value)
|
|
261
262
|
);
|
|
262
263
|
}
|
|
263
264
|
const rows = [...element.tableData.rows], cells = [...row.cells];
|
|
@@ -271,12 +272,12 @@ function replaceLeaf(element, match, replacement) {
|
|
|
271
272
|
if (!node || match.startOffset < 0 || match.startOffset + match.length > node.text.length)
|
|
272
273
|
return element;
|
|
273
274
|
const text = node.text.slice(0, match.startOffset) + replacement + node.text.slice(match.startOffset + match.length);
|
|
274
|
-
const next =
|
|
275
|
+
const next = chunk7QZGRB3T_cjs.updateSmartArtNodeText({ ...data, nodes }, node.id, text);
|
|
275
276
|
const drawingShapes = next.drawingShapes?.map((shape, index) => {
|
|
276
277
|
if (shape === data.drawingShapes?.[index] || !shape.textSegments) return shape;
|
|
277
278
|
return {
|
|
278
279
|
...shape,
|
|
279
|
-
textSegments:
|
|
280
|
+
textSegments: chunkAWIDASUW_cjs.remapTextToSegments(text, shape.textSegments, { fontSize: shape.fontSize })
|
|
280
281
|
};
|
|
281
282
|
});
|
|
282
283
|
return {
|
|
@@ -284,7 +285,7 @@ function replaceLeaf(element, match, replacement) {
|
|
|
284
285
|
smartArtData: { ...next, drawingShapes, nodes: updateNode(data.nodes, node.id, text) }
|
|
285
286
|
};
|
|
286
287
|
}
|
|
287
|
-
if (!
|
|
288
|
+
if (!chunkXZPZHXV4_cjs.hasTextProperties(element)) return element;
|
|
288
289
|
const original = element.textSegments?.length ? element.textSegments : element.text ? [{ text: element.text, style: element.textStyle ?? {} }] : [];
|
|
289
290
|
const segments = replaceFindRuns(
|
|
290
291
|
original,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../../chunks/
|
|
1
|
+
import "../../chunks/index-BZrFyNtU.js";
|
|
2
|
+
import { C as PptxSlide } from "../../chunks/text-operations-CyMTMfID.js";
|
|
3
3
|
//#region pptx/editor/render/find-replace.d.ts
|
|
4
4
|
/** Identifies a single match of the find query at segment-level precision. */
|
|
5
5
|
export interface FindResult {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { updateCellTextInRawXml, getTblFromRawXml, ensureArray, flattenCellTxBodyText, updateSmartArtNodeText, reconcileSmartArtTextParagraphs } from '../../../chunk-UAY26XOI.mjs';
|
|
2
|
+
import { hasTextProperties } from '../../../chunk-GXHKNSZX.mjs';
|
|
3
|
+
import { remapTextToSegments } from '../../../chunk-CBNKBVX5.mjs';
|
|
3
4
|
import '../../../chunk-F4TB6B32.mjs';
|
|
4
5
|
import '../../../chunk-3E6KBUG5.mjs';
|
|
5
6
|
import '../../../chunk-3GAQLUP6.mjs';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkQOO36KG4_cjs = require('../../../chunk-QOO36KG4.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "fontFamilyStyleUpdates", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkQOO36KG4_cjs.fontFamilyStyleUpdates; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "mergeTextStyleUpdate", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkQOO36KG4_cjs.mergeTextStyleUpdate; }
|
|
14
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { i as TextStyle } from "../../chunks/text-D49FKllA.js";
|
|
2
|
+
//#region pptx/editor/render/font-family-update.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Expand a style update for `style`: when it sets a concrete `fontFamily`,
|
|
5
|
+
* carry the change to the script faces that were the same face as the old
|
|
6
|
+
* effective Latin one (the run's own, else `inherited`'s) and drop the theme tokens of the faces it replaces. Any other
|
|
7
|
+
* update comes back unchanged, and a script face the update names itself is
|
|
8
|
+
* kept as given.
|
|
9
|
+
*/
|
|
10
|
+
export declare function fontFamilyStyleUpdates(style: TextStyle | undefined, updates: Partial<TextStyle>, inherited?: TextStyle): Partial<TextStyle>;
|
|
11
|
+
/**
|
|
12
|
+
* Merge `updates` over `style`, applying {@link fontFamilyStyleUpdates}.
|
|
13
|
+
* `inherited` is the style a run without its own Latin face inherits from.
|
|
14
|
+
*/
|
|
15
|
+
export declare function mergeTextStyleUpdate(style: TextStyle | undefined, updates: Partial<TextStyle>, inherited?: TextStyle): TextStyle;
|
|
16
|
+
//#endregion
|
|
17
|
+
//# sourceMappingURL=font-family-update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font-family-update.d.ts","names":[],"sources":["../../../../pptx/editor/render/font-family-update.ts"],"mappings":";;;;;;;;;wBAgDgB,uBACf,OAAO,uBACP,SAAS,QAAQ,YACjB,YAAY,YACV,QAAQ;;;;;wBAmCK,qBACf,OAAO,uBACP,SAAS,QAAQ,YACjB,YAAY,YACV"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { fontFamilyStyleUpdates, mergeTextStyleUpdate } from '../../../chunk-R2KZXD6U.mjs';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// pptx/editor/render/paragraph-geometry-overrides.ts
|
|
4
|
+
function resolveParagraphGeometryOverrides(paraProps, bodyStyle) {
|
|
5
|
+
return {
|
|
6
|
+
eaLineBreak: paraProps?.eaLineBreak ?? bodyStyle?.eaLineBreak,
|
|
7
|
+
latinLineBreak: paraProps?.latinLineBreak ?? bodyStyle?.latinLineBreak,
|
|
8
|
+
hangingPunctuation: paraProps?.hangingPunctuation ?? bodyStyle?.hangingPunctuation,
|
|
9
|
+
fontAlignment: paraProps?.fontAlignment ?? bodyStyle?.fontAlignment,
|
|
10
|
+
defaultTabSize: paraProps?.defaultTabSize ?? bodyStyle?.defaultTabSize
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.resolveParagraphGeometryOverrides = resolveParagraphGeometryOverrides;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { i as TextStyle } from "../../chunks/text-D49FKllA.js";
|
|
2
|
+
//#region pptx/editor/render/paragraph-geometry-overrides.d.ts
|
|
3
|
+
/** The geometry keys a paragraph may override independently of the body. */
|
|
4
|
+
export type ParagraphGeometryOverrides = Pick<TextStyle, 'eaLineBreak' | 'latinLineBreak' | 'hangingPunctuation' | 'fontAlignment' | 'defaultTabSize'>;
|
|
5
|
+
/**
|
|
6
|
+
* Resolve this paragraph's own kinsoku / font-alignment / tab-default
|
|
7
|
+
* geometry, falling back to the text body's resolved value for any field the
|
|
8
|
+
* paragraph does not author itself.
|
|
9
|
+
*
|
|
10
|
+
* @param paraProps This paragraph's own `a:pPr` geometry snapshot
|
|
11
|
+
* (`TextSegment.paragraphProperties`, from its first
|
|
12
|
+
* segment), or `undefined` for a paragraph that authors none.
|
|
13
|
+
* @param bodyStyle The element's resolved text style, used as the fallback.
|
|
14
|
+
*/
|
|
15
|
+
export declare function resolveParagraphGeometryOverrides(paraProps: TextStyle | undefined, bodyStyle: TextStyle | undefined): ParagraphGeometryOverrides;
|
|
16
|
+
//#endregion
|
|
17
|
+
//# sourceMappingURL=paragraph-geometry-overrides.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paragraph-geometry-overrides.d.ts","names":[],"sources":["../../../../pptx/editor/render/paragraph-geometry-overrides.ts"],"mappings":";;;YAuBY,6BAA6B,KACxC;;;;;;;;;;;wBAce,kCACf,WAAW,uBACX,WAAW,wBACT"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// pptx/editor/render/paragraph-geometry-overrides.ts
|
|
2
|
+
function resolveParagraphGeometryOverrides(paraProps, bodyStyle) {
|
|
3
|
+
return {
|
|
4
|
+
eaLineBreak: paraProps?.eaLineBreak ?? bodyStyle?.eaLineBreak,
|
|
5
|
+
latinLineBreak: paraProps?.latinLineBreak ?? bodyStyle?.latinLineBreak,
|
|
6
|
+
hangingPunctuation: paraProps?.hangingPunctuation ?? bodyStyle?.hangingPunctuation,
|
|
7
|
+
fontAlignment: paraProps?.fontAlignment ?? bodyStyle?.fontAlignment,
|
|
8
|
+
defaultTabSize: paraProps?.defaultTabSize ?? bodyStyle?.defaultTabSize
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { resolveParagraphGeometryOverrides };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAWIDASUW_cjs = require('../../../chunk-AWIDASUW.cjs');
|
|
4
4
|
require('../../../chunk-7IUNOWFJ.cjs');
|
|
5
5
|
require('../../../chunk-Y6665UXH.cjs');
|
|
6
6
|
require('../../../chunk-RGLJ6BCK.cjs');
|
|
@@ -13,5 +13,5 @@ require('../../../chunk-V33BRBWQ.cjs');
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "remapTextToSegments", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkAWIDASUW_cjs.remapTextToSegments; }
|
|
17
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remap-text.d.ts","names":[],"sources":["../../../../pptx/editor/render/remap-text.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"remap-text.d.ts","names":[],"sources":["../../../../pptx/editor/render/remap-text.ts"],"mappings":";;;;;;;;;wBAiFgB,oBACf,iBACA,kBAAkB,2BAClB,kBAAkB,wBAChB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../../../chunk-
|
|
4
|
-
var
|
|
3
|
+
require('../../../chunk-2UVH6RHI.cjs');
|
|
4
|
+
var chunk7QZGRB3T_cjs = require('../../../chunk-7QZGRB3T.cjs');
|
|
5
|
+
require('../../../chunk-XZPZHXV4.cjs');
|
|
5
6
|
|
|
6
7
|
// pptx/core/builders/sdk/slide-operations.ts
|
|
7
8
|
var cloneIdCounter = 0;
|
|
@@ -18,7 +19,7 @@ function reassignElementId(element) {
|
|
|
18
19
|
return newElement;
|
|
19
20
|
}
|
|
20
21
|
function duplicateSlide(slide, newSlideNumber) {
|
|
21
|
-
const cloned =
|
|
22
|
+
const cloned = chunk7QZGRB3T_cjs.cloneSlide(slide);
|
|
22
23
|
cloned.sourceSlideId = slide.id.startsWith("ppt/slides/") ? slide.id : slide.sourceSlideId ?? slide.id;
|
|
23
24
|
cloned.id = `slide${newSlideNumber}`;
|
|
24
25
|
cloned.rId = `rId${newSlideNumber + 1}`;
|
|
@@ -48,7 +49,7 @@ function duplicateSlide(slide, newSlideNumber) {
|
|
|
48
49
|
function captureSlideClipboard(slides, ids) {
|
|
49
50
|
return ids.flatMap((id) => {
|
|
50
51
|
const slide = slides.find((candidate) => candidate.id === id);
|
|
51
|
-
return slide ? [
|
|
52
|
+
return slide ? [chunk7QZGRB3T_cjs.cloneSlide(slide)] : [];
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
55
|
function createSlidePaste(clipboard, insertAt, templates = {}) {
|
|
@@ -59,14 +60,14 @@ function createSlidePaste(clipboard, insertAt, templates = {}) {
|
|
|
59
60
|
})),
|
|
60
61
|
sourceIds: clipboard.map((slide) => slide.id),
|
|
61
62
|
insertAt,
|
|
62
|
-
templateElements: clipboard.map((slide) => (templates[slide.id] ?? []).map(
|
|
63
|
+
templateElements: clipboard.map((slide) => (templates[slide.id] ?? []).map(chunk7QZGRB3T_cjs.cloneElement))
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
function insertSlidePaste(slides, request) {
|
|
66
67
|
const index = Math.max(0, Math.min(slides.length, request.insertAt));
|
|
67
68
|
const next = [
|
|
68
69
|
...slides.slice(0, index),
|
|
69
|
-
...request.copies.map(
|
|
70
|
+
...request.copies.map(chunk7QZGRB3T_cjs.cloneSlide),
|
|
70
71
|
...slides.slice(index)
|
|
71
72
|
];
|
|
72
73
|
return next.map(
|
|
@@ -76,12 +77,12 @@ function insertSlidePaste(slides, request) {
|
|
|
76
77
|
function applySlidePasteTemplates(mapping, request) {
|
|
77
78
|
const next = { ...mapping };
|
|
78
79
|
request.copies.forEach((copy, index) => {
|
|
79
|
-
next[copy.id] = (request.templateElements[index] ?? []).map(
|
|
80
|
+
next[copy.id] = (request.templateElements[index] ?? []).map(chunk7QZGRB3T_cjs.cloneElement);
|
|
80
81
|
});
|
|
81
82
|
return next;
|
|
82
83
|
}
|
|
83
84
|
function captureSlideClipboardTemplates(mapping, ids) {
|
|
84
|
-
return Object.fromEntries(ids.map((id) => [id, (mapping[id] ?? []).map(
|
|
85
|
+
return Object.fromEntries(ids.map((id) => [id, (mapping[id] ?? []).map(chunk7QZGRB3T_cjs.cloneElement)]));
|
|
85
86
|
}
|
|
86
87
|
function makeSlideId(idGenerator) {
|
|
87
88
|
if (idGenerator) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import '../../../chunk-
|
|
2
|
-
import { cloneSlide, cloneElement } from '../../../chunk-
|
|
1
|
+
import '../../../chunk-YB5SRNFS.mjs';
|
|
2
|
+
import { cloneSlide, cloneElement } from '../../../chunk-UAY26XOI.mjs';
|
|
3
|
+
import '../../../chunk-GXHKNSZX.mjs';
|
|
3
4
|
|
|
4
5
|
// pptx/core/builders/sdk/slide-operations.ts
|
|
5
6
|
var cloneIdCounter = 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkFRUB573B_cjs = require('../../../chunk-FRUB573B.cjs');
|
|
4
3
|
var chunkXROY25LN_cjs = require('../../../chunk-XROY25LN.cjs');
|
|
4
|
+
var chunkFRUB573B_cjs = require('../../../chunk-FRUB573B.cjs');
|
|
5
5
|
var pptx = require('ooxml-core/pptx');
|
|
6
6
|
|
|
7
7
|
function withTableData(element, transform, edit) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { insertTableRow, deleteTableRow, insertTableColumn, deleteTableColumn } from '../../../chunk-3IT6ZD7K.mjs';
|
|
2
1
|
import { setCellText } from '../../../chunk-3UMDVJRN.mjs';
|
|
2
|
+
import { insertTableRow, deleteTableRow, insertTableColumn, deleteTableColumn } from '../../../chunk-3IT6ZD7K.mjs';
|
|
3
3
|
import { updateCellTextInRawXml, rebuildTableStructureInRawXml } from 'ooxml-core/pptx';
|
|
4
4
|
|
|
5
5
|
function withTableData(element, transform, edit) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkHDQXPSHY_cjs = require('../../../chunk-HDQXPSHY.cjs');
|
|
4
|
+
require('../../../chunk-R6Z5C4DA.cjs');
|
|
5
|
+
require('../../../chunk-AT2NLO2F.cjs');
|
|
6
|
+
require('../../../chunk-57KYGHFF.cjs');
|
|
7
|
+
require('../../../chunk-V33BRBWQ.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "TEXT_DECORATION_FLAGS", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkHDQXPSHY_cjs.TEXT_DECORATION_FLAGS; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "isContentSegment", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkHDQXPSHY_cjs.isContentSegment; }
|
|
18
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { r as TextSegment } from "../../chunks/text-D49FKllA.js";
|
|
2
|
+
//#region pptx/editor/render/text-content-style.d.ts
|
|
3
|
+
/** The boolean run decorations the ribbon toggles. */
|
|
4
|
+
export type TextDecorationFlag = 'bold' | 'italic' | 'underline' | 'strikethrough';
|
|
5
|
+
export declare const TEXT_DECORATION_FLAGS: readonly TextDecorationFlag[];
|
|
6
|
+
/** A run that carries text: not a paragraph break, not a display-only bullet marker. */
|
|
7
|
+
export declare function isContentSegment(segment: TextSegment): boolean;
|
|
8
|
+
//#endregion
|
|
9
|
+
//# sourceMappingURL=text-content-style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-content-style.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-content-style.ts"],"mappings":";;;YAIY;qBAEC,gCAAgC;;wBAQ7B,iBAAiB,SAAS"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkANZ4Q6I3_cjs = require('../../../chunk-ANZ4Q6I3.cjs');
|
|
4
|
+
var chunkQOO36KG4_cjs = require('../../../chunk-QOO36KG4.cjs');
|
|
5
|
+
var chunkXZPZHXV4_cjs = require('../../../chunk-XZPZHXV4.cjs');
|
|
6
|
+
|
|
7
|
+
// pptx/editor/render/text-runs-style-patch.ts
|
|
8
|
+
function textRunsStylePatch(element, updates) {
|
|
9
|
+
if (!chunkXZPZHXV4_cjs.hasTextProperties(element)) return {};
|
|
10
|
+
const textStyle = chunkQOO36KG4_cjs.mergeTextStyleUpdate(element.textStyle, updates);
|
|
11
|
+
const textSegments = element.textSegments?.map(
|
|
12
|
+
(segment) => chunkANZ4Q6I3_cjs.updateTextSegmentStyle(segment, updates, { inherited: element.textStyle })
|
|
13
|
+
);
|
|
14
|
+
return { textStyle, ...textSegments ? { textSegments } : {} };
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.textRunsStylePatch = textRunsStylePatch;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { i as TextStyle } from "../../chunks/text-D49FKllA.js";
|
|
2
|
+
import { _ as PptxElementWithText, m as PptxElement } from "../../chunks/elements-DD3UGOMd.js";
|
|
3
|
+
//#region pptx/editor/render/text-runs-style-patch.d.ts
|
|
4
|
+
/** Immutable whole-text edit, using the pre-edit body style for run inheritance. */
|
|
5
|
+
export declare function textRunsStylePatch(element: PptxElement, updates: Partial<TextStyle>): Pick<Partial<PptxElementWithText>, 'textStyle' | 'textSegments'>;
|
|
6
|
+
//#endregion
|
|
7
|
+
//# sourceMappingURL=text-runs-style-patch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-runs-style-patch.d.ts","names":[],"sources":["../../../../pptx/editor/render/text-runs-style-patch.ts"],"mappings":";;;;wBAMgB,mBACf,SAAS,aACT,SAAS,QAAQ,aACf,KAAK,QAAQ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { updateTextSegmentStyle } from '../../../chunk-EGTRL3QJ.mjs';
|
|
2
|
+
import { mergeTextStyleUpdate } from '../../../chunk-R2KZXD6U.mjs';
|
|
3
|
+
import { hasTextProperties } from '../../../chunk-GXHKNSZX.mjs';
|
|
4
|
+
|
|
5
|
+
// pptx/editor/render/text-runs-style-patch.ts
|
|
6
|
+
function textRunsStylePatch(element, updates) {
|
|
7
|
+
if (!hasTextProperties(element)) return {};
|
|
8
|
+
const textStyle = mergeTextStyleUpdate(element.textStyle, updates);
|
|
9
|
+
const textSegments = element.textSegments?.map(
|
|
10
|
+
(segment) => updateTextSegmentStyle(segment, updates, { inherited: element.textStyle })
|
|
11
|
+
);
|
|
12
|
+
return { textStyle, ...textSegments ? { textSegments } : {} };
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { textRunsStylePatch };
|