ooxml-ui 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.
Files changed (118) hide show
  1. package/dist/{chunk-SNV6YKPC.js → chunk-HZSYGNNB.js} +2 -1
  2. package/dist/{chunk-SKYBYVYH.js → chunk-IXLJNVUD.js} +1 -1
  3. package/dist/{chunk-PH7IBZOZ.js → chunk-WMGMZIMM.js} +1 -1
  4. package/dist/docx/print-border-width.d.ts +2 -0
  5. package/dist/docx/print-table.d.ts +1 -1
  6. package/dist/docx.js +93 -8
  7. package/dist/index.js +3 -3
  8. package/dist/pptx/ai/index.cjs +2 -2
  9. package/dist/pptx/ai/index.mjs +1 -1
  10. package/dist/pptx/{chunk-F7BBPOVJ.mjs → chunk-5AD3V3PA.mjs} +1 -0
  11. package/dist/pptx/{chunk-BPAA5FSB.mjs → chunk-6B3UUVRS.mjs} +1 -1
  12. package/dist/pptx/{chunk-KBCKCW5M.mjs → chunk-6NFW2AQA.mjs} +682 -481
  13. package/dist/pptx/chunk-EYPNQ3FG.cjs +59 -0
  14. package/dist/pptx/chunk-FFIYFHBO.mjs +55 -0
  15. package/dist/pptx/{chunk-HWW2UVUP.cjs → chunk-JRCK6CFI.cjs} +19 -9
  16. package/dist/pptx/{chunk-MKVKISFW.mjs → chunk-OBRLAW6C.mjs} +1 -1
  17. package/dist/pptx/{chunk-BFZDO2DY.cjs → chunk-OCNECNJS.cjs} +785 -550
  18. package/dist/pptx/{chunk-Y4LTLCQP.cjs → chunk-OJFD3SHS.cjs} +26 -47
  19. package/dist/pptx/{chunk-7KPDES3X.mjs → chunk-PMURSMHH.mjs} +6 -35
  20. package/dist/pptx/{chunk-PKDISDDZ.cjs → chunk-TSSWTBJQ.cjs} +2 -2
  21. package/dist/pptx/{chunk-SABFKDRM.mjs → chunk-WFEN6SHA.mjs} +19 -10
  22. package/dist/pptx/{chunk-UEF4BFW4.cjs → chunk-XFQ2RD4I.cjs} +7 -7
  23. package/dist/pptx/{chunk-QVYJB7G2.cjs → chunk-Y7CDPPMZ.cjs} +1 -0
  24. package/dist/pptx/dom/elements/text-shape.d.ts.map +1 -1
  25. package/dist/pptx/dom/index.cjs +228 -218
  26. package/dist/pptx/dom/index.mjs +29 -19
  27. package/dist/pptx/dom/load-presentation.d.ts +1 -0
  28. package/dist/pptx/dom/load-presentation.d.ts.map +1 -1
  29. package/dist/pptx/i18n/index.cjs +6 -6
  30. package/dist/pptx/i18n/index.mjs +1 -1
  31. package/dist/pptx/i18n/translations-en-galleries.d.ts.map +1 -1
  32. package/dist/pptx/index.cjs +2889 -2825
  33. package/dist/pptx/index.mjs +7 -7
  34. package/dist/pptx/render/animation-after-effect-authoring.d.ts +1 -38
  35. package/dist/pptx/render/animation-after-effect-authoring.d.ts.map +1 -1
  36. package/dist/pptx/render/animation-after-effect.d.ts +2 -2
  37. package/dist/pptx/render/animation-after-effect.d.ts.map +1 -1
  38. package/dist/pptx/render/animation-authoring.cjs +39 -39
  39. package/dist/pptx/render/animation-authoring.d.ts +2 -11
  40. package/dist/pptx/render/animation-authoring.d.ts.map +1 -1
  41. package/dist/pptx/render/animation-authoring.mjs +1 -1
  42. package/dist/pptx/render/animation-opacity-playback.d.ts +9 -0
  43. package/dist/pptx/render/animation-opacity-playback.d.ts.map +1 -0
  44. package/dist/pptx/render/animation-opacity-style.d.ts +6 -0
  45. package/dist/pptx/render/animation-opacity-style.d.ts.map +1 -0
  46. package/dist/pptx/render/animation-playback-engine.d.ts +1 -1
  47. package/dist/pptx/render/animation-playback-engine.d.ts.map +1 -1
  48. package/dist/pptx/render/animation-playback-seek.d.ts.map +1 -1
  49. package/dist/pptx/render/animation-playback-steps.d.ts.map +1 -1
  50. package/dist/pptx/render/animation-timeline-engine.d.ts +4 -0
  51. package/dist/pptx/render/animation-timeline-engine.d.ts.map +1 -1
  52. package/dist/pptx/render/animation-timeline-group.d.ts +2 -0
  53. package/dist/pptx/render/animation-timeline-group.d.ts.map +1 -1
  54. package/dist/pptx/render/animation-timeline-regular-step.d.ts.map +1 -1
  55. package/dist/pptx/render/animation-timeline-rows.d.ts.map +1 -1
  56. package/dist/pptx/render/animation-timeline-sequence-builder.d.ts.map +1 -1
  57. package/dist/pptx/render/animation-timeline-step-effect.d.ts +2 -1
  58. package/dist/pptx/render/animation-timeline-step-effect.d.ts.map +1 -1
  59. package/dist/pptx/render/animation-timeline-step.d.ts +3 -1
  60. package/dist/pptx/render/animation-timeline-step.d.ts.map +1 -1
  61. package/dist/pptx/render/background-animation-layers.d.ts +12 -0
  62. package/dist/pptx/render/background-animation-layers.d.ts.map +1 -0
  63. package/dist/pptx/render/customization/customization-resolve-ribbon.d.ts.map +1 -1
  64. package/dist/pptx/render/customization/ribbon-control-catalog-tail.d.ts +6 -0
  65. package/dist/pptx/render/customization/ribbon-control-catalog-tail.d.ts.map +1 -1
  66. package/dist/pptx/render/customization/ribbon-control-catalog.d.ts +6 -0
  67. package/dist/pptx/render/customization/ribbon-control-catalog.d.ts.map +1 -1
  68. package/dist/pptx/render/field-context.d.ts +2 -0
  69. package/dist/pptx/render/field-context.d.ts.map +1 -1
  70. package/dist/pptx/render/font-family-update.d.ts +45 -0
  71. package/dist/pptx/render/font-family-update.d.ts.map +1 -0
  72. package/dist/pptx/render/format-painter.cjs +6 -6
  73. package/dist/pptx/render/format-painter.mjs +3 -3
  74. package/dist/pptx/render/index.d.ts +3 -0
  75. package/dist/pptx/render/index.d.ts.map +1 -1
  76. package/dist/pptx/render/inline-selection-utils.d.ts +2 -1
  77. package/dist/pptx/render/inline-selection-utils.d.ts.map +1 -1
  78. package/dist/pptx/render/inspector-helpers.cjs +17 -13
  79. package/dist/pptx/render/inspector-helpers.d.ts +8 -0
  80. package/dist/pptx/render/inspector-helpers.d.ts.map +1 -1
  81. package/dist/pptx/render/inspector-helpers.mjs +2 -2
  82. package/dist/pptx/render/picture-frame.d.ts +20 -0
  83. package/dist/pptx/render/picture-frame.d.ts.map +1 -1
  84. package/dist/pptx/render/ribbon-animations-state.cjs +6 -6
  85. package/dist/pptx/render/ribbon-animations-state.mjs +2 -2
  86. package/dist/pptx/render/ribbon-galleries/gallery-placements.d.ts +3 -3
  87. package/dist/pptx/render/ribbon-galleries/gallery-placements.d.ts.map +1 -1
  88. package/dist/pptx/render/ribbon-galleries/table-style-tile-svg.d.ts +21 -6
  89. package/dist/pptx/render/ribbon-galleries/table-style-tile-svg.d.ts.map +1 -1
  90. package/dist/pptx/render/ribbon-galleries/table-styles-gallery.d.ts +3 -1
  91. package/dist/pptx/render/ribbon-galleries/table-styles-gallery.d.ts.map +1 -1
  92. package/dist/pptx/render/ribbon-home-crop.d.ts +37 -0
  93. package/dist/pptx/render/ribbon-home-crop.d.ts.map +1 -0
  94. package/dist/pptx/render/ribbon-home-families-objects.d.ts +5 -2
  95. package/dist/pptx/render/ribbon-home-families-objects.d.ts.map +1 -1
  96. package/dist/pptx/render/ribbon-home-spec.d.ts +1 -1
  97. package/dist/pptx/render/ribbon-home-spec.d.ts.map +1 -1
  98. package/dist/pptx/render/ribbon-home-state-extras.d.ts.map +1 -1
  99. package/dist/pptx/render/ribbon-home-state.d.ts +1 -0
  100. package/dist/pptx/render/ribbon-home-state.d.ts.map +1 -1
  101. package/dist/pptx/render/text-block-style.d.ts.map +1 -1
  102. package/dist/pptx/render/text-field-substitution.d.ts +12 -0
  103. package/dist/pptx/render/text-field-substitution.d.ts.map +1 -1
  104. package/dist/pptx/render/text-style-update.d.ts.map +1 -1
  105. package/dist/pptx/render/update-text-segment-style.d.ts +7 -1
  106. package/dist/pptx/render/update-text-segment-style.d.ts.map +1 -1
  107. package/dist/pptx/web-components/index.d.ts.map +1 -1
  108. package/dist/pptx/web-components/ribbon-home-styles.d.ts +1 -1
  109. package/dist/pptx/web-components/ribbon-home-styles.d.ts.map +1 -1
  110. package/dist/pptx/web-components/ribbon-home.d.ts +2 -0
  111. package/dist/pptx/web-components/ribbon-home.d.ts.map +1 -1
  112. package/dist/{presentation-preview-HF3GZ2VD.js → presentation-preview-VIIU7E2S.js} +1 -1
  113. package/dist/teams.js +2 -2
  114. package/dist/xlsx/dialogs/pivot-values.d.ts +10 -0
  115. package/dist/xlsx.js +147 -12
  116. package/package.json +2 -2
  117. package/dist/pptx/chunk-CENGE3TZ.mjs +0 -10
  118. package/dist/pptx/chunk-OGJRSAGH.cjs +0 -12
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ var pptx = require('ooxml-core/pptx');
4
+
3
5
  // src/pptx/render/animation-direction-options.ts
4
6
  var DIRECTION_VALUES = [
5
7
  "fromTop",
@@ -51,8 +53,6 @@ function directionValuesFor(slideAnimations, elementId) {
51
53
  const entrance = directionValuesForPreset(entry.entrance);
52
54
  return entrance.length > 0 ? entrance : directionValuesForPreset(entry.exit);
53
55
  }
54
-
55
- // src/pptx/render/animation-authoring.ts
56
56
  var ENTRANCE_PRESET_VALUES = [
57
57
  "appear",
58
58
  "fadeIn",
@@ -115,42 +115,12 @@ var SEQUENCE_VALUES = [
115
115
  "byWord",
116
116
  "byLetter"
117
117
  ];
118
- var DEFAULT_DURATION_MS = 500;
119
- var DEFAULT_TRIGGER = "onClick";
120
- function animationFor(slideAnimations, elementId) {
121
- return slideAnimations.find((a) => a.elementId === elementId);
122
- }
123
- function hasAnimation(slideAnimations, elementId) {
124
- const entry = animationFor(slideAnimations, elementId);
125
- return Boolean(entry && (entry.entrance || entry.exit || entry.emphasis || entry.motionPath));
126
- }
127
118
  function showDirectionPicker(slideAnimations, elementId) {
128
119
  return directionValuesFor(slideAnimations, elementId).length > 0;
129
120
  }
130
- function upsert(anims, elementId, updater) {
131
- const idx = anims.findIndex((a) => a.elementId === elementId);
132
- if (idx >= 0) {
133
- const updated2 = updater({ ...anims[idx] });
134
- if (updated2 === null) {
135
- return anims.filter((a) => a.elementId !== elementId);
136
- }
137
- return anims.map((a, i) => i === idx ? updated2 : a);
138
- }
139
- const created = {
140
- elementId,
141
- durationMs: DEFAULT_DURATION_MS,
142
- order: anims.length,
143
- trigger: DEFAULT_TRIGGER
144
- };
145
- const updated = updater(created);
146
- if (updated === null) {
147
- return [...anims];
148
- }
149
- return [...anims, updated];
150
- }
151
121
  function setEffect(anims, elementId, group, preset) {
152
122
  const value = preset === "none" ? void 0 : preset;
153
- return upsert(anims, elementId, (cur) => {
123
+ return pptx.upsert(anims, elementId, (cur) => {
154
124
  const next = { ...cur, [group]: value };
155
125
  if (!next.entrance && !next.exit && !next.emphasis && !next.motionPath) {
156
126
  return null;
@@ -168,7 +138,7 @@ function setAnimationEmphasis(anims, elementId, preset) {
168
138
  return setEffect(anims, elementId, "emphasis", preset);
169
139
  }
170
140
  function setTrigger(anims, elementId, trigger) {
171
- return upsert(anims, elementId, (cur) => ({ ...cur, ...triggerChangePatch(cur, trigger) }));
141
+ return pptx.upsert(anims, elementId, (cur) => ({ ...cur, ...triggerChangePatch(cur, trigger) }));
172
142
  }
173
143
  function triggerChangePatch(current, trigger) {
174
144
  const keepsTarget = trigger === current?.trigger && (trigger === "onShapeClick" || trigger === "onMediaBookmark");
@@ -179,32 +149,32 @@ function triggerChangePatch(current, trigger) {
179
149
  } : { trigger, triggerShapeId: void 0, triggerBookmark: void 0 };
180
150
  }
181
151
  function setTriggerShapeId(anims, elementId, triggerShapeId) {
182
- return upsert(anims, elementId, (cur) => ({ ...cur, triggerShapeId }));
152
+ return pptx.upsert(anims, elementId, (cur) => ({ ...cur, triggerShapeId }));
183
153
  }
184
154
  function setDuration(anims, elementId, durationMs) {
185
155
  const clamped = Math.max(100, Math.min(1e4, durationMs));
186
- return upsert(anims, elementId, (cur) => ({ ...cur, durationMs: clamped }));
156
+ return pptx.upsert(anims, elementId, (cur) => ({ ...cur, durationMs: clamped }));
187
157
  }
188
158
  function setDelay(anims, elementId, delayMs) {
189
159
  const clamped = Math.max(0, Math.min(1e4, delayMs));
190
- return upsert(anims, elementId, (cur) => ({ ...cur, delayMs: clamped }));
160
+ return pptx.upsert(anims, elementId, (cur) => ({ ...cur, delayMs: clamped }));
191
161
  }
192
162
  function setTimingCurve(anims, elementId, timingCurve) {
193
- return upsert(anims, elementId, (cur) => ({ ...cur, timingCurve }));
163
+ return pptx.upsert(anims, elementId, (cur) => ({ ...cur, timingCurve }));
194
164
  }
195
165
  function setDirection(anims, elementId, direction) {
196
- return upsert(anims, elementId, (cur) => ({ ...cur, direction }));
166
+ return pptx.upsert(anims, elementId, (cur) => ({ ...cur, direction }));
197
167
  }
198
168
  function setSequence(anims, elementId, sequence) {
199
- return upsert(anims, elementId, (cur) => ({ ...cur, sequence }));
169
+ return pptx.upsert(anims, elementId, (cur) => ({ ...cur, sequence }));
200
170
  }
201
171
  function setRepeatCount(anims, elementId, repeatCount) {
202
172
  const clamped = Math.max(1, Math.min(100, repeatCount));
203
- return upsert(anims, elementId, (cur) => ({ ...cur, repeatCount: clamped }));
173
+ return pptx.upsert(anims, elementId, (cur) => ({ ...cur, repeatCount: clamped }));
204
174
  }
205
175
  function setRepeatMode(anims, elementId, repeatMode) {
206
176
  const value = repeatMode === "none" ? void 0 : repeatMode;
207
- return upsert(anims, elementId, (cur) => ({ ...cur, repeatMode: value }));
177
+ return pptx.upsert(anims, elementId, (cur) => ({ ...cur, repeatMode: value }));
208
178
  }
209
179
  function removeAnimation(anims, elementId) {
210
180
  const idx = anims.findIndex((a) => a.elementId === elementId);
@@ -240,9 +210,9 @@ function applyAnimationPreset(animations, elementId, group, preset) {
240
210
  {
241
211
  elementId,
242
212
  [group]: preset,
243
- durationMs: DEFAULT_DURATION_MS,
213
+ durationMs: pptx.DEFAULT_ANIMATION_DURATION_MS,
244
214
  order: animations.length,
245
- trigger: DEFAULT_TRIGGER
215
+ trigger: pptx.DEFAULT_ANIMATION_TRIGGER
246
216
  }
247
217
  ];
248
218
  }
@@ -284,6 +254,18 @@ function reindexOrder(anims) {
284
254
  return anims.map((a, i) => ({ ...a, order: i }));
285
255
  }
286
256
 
257
+ Object.defineProperty(exports, "animationFor", {
258
+ enumerable: true,
259
+ get: function () { return pptx.animationFor; }
260
+ });
261
+ Object.defineProperty(exports, "hasAnimation", {
262
+ enumerable: true,
263
+ get: function () { return pptx.hasAnimation; }
264
+ });
265
+ Object.defineProperty(exports, "upsert", {
266
+ enumerable: true,
267
+ get: function () { return pptx.upsert; }
268
+ });
287
269
  exports.ANIMATION_DIRECTION_LABEL_KEYS = ANIMATION_DIRECTION_LABEL_KEYS;
288
270
  exports.DIRECTIONAL_PRESETS = DIRECTIONAL_PRESETS;
289
271
  exports.DIRECTION_VALUES = DIRECTION_VALUES;
@@ -295,13 +277,11 @@ exports.SEQUENCE_VALUES = SEQUENCE_VALUES;
295
277
  exports.TIMING_CURVE_VALUES = TIMING_CURVE_VALUES;
296
278
  exports.TRIGGER_OPTIONS = TRIGGER_OPTIONS;
297
279
  exports.TRIGGER_VALUES = TRIGGER_VALUES;
298
- exports.animationFor = animationFor;
299
280
  exports.applyAnimationPreset = applyAnimationPreset;
300
281
  exports.buildAnimationTimelineBars = buildAnimationTimelineBars;
301
282
  exports.directionValuesFor = directionValuesFor;
302
283
  exports.directionValuesForPreset = directionValuesForPreset;
303
284
  exports.effectiveDirection = effectiveDirection;
304
- exports.hasAnimation = hasAnimation;
305
285
  exports.removeAnimation = removeAnimation;
306
286
  exports.removeElementAnimation = removeElementAnimation;
307
287
  exports.reorderAnimationDown = reorderAnimationDown;
@@ -321,4 +301,3 @@ exports.setTrigger = setTrigger;
321
301
  exports.setTriggerShapeId = setTriggerShapeId;
322
302
  exports.showDirectionPicker = showDirectionPicker;
323
303
  exports.triggerChangePatch = triggerChangePatch;
324
- exports.upsert = upsert;
@@ -1,3 +1,6 @@
1
+ import { upsert, DEFAULT_ANIMATION_TRIGGER, DEFAULT_ANIMATION_DURATION_MS } from 'ooxml-core/pptx';
2
+ export { animationFor, hasAnimation, upsert } from 'ooxml-core/pptx';
3
+
1
4
  // src/pptx/render/animation-direction-options.ts
2
5
  var DIRECTION_VALUES = [
3
6
  "fromTop",
@@ -49,8 +52,6 @@ function directionValuesFor(slideAnimations, elementId) {
49
52
  const entrance = directionValuesForPreset(entry.entrance);
50
53
  return entrance.length > 0 ? entrance : directionValuesForPreset(entry.exit);
51
54
  }
52
-
53
- // src/pptx/render/animation-authoring.ts
54
55
  var ENTRANCE_PRESET_VALUES = [
55
56
  "appear",
56
57
  "fadeIn",
@@ -113,39 +114,9 @@ var SEQUENCE_VALUES = [
113
114
  "byWord",
114
115
  "byLetter"
115
116
  ];
116
- var DEFAULT_DURATION_MS = 500;
117
- var DEFAULT_TRIGGER = "onClick";
118
- function animationFor(slideAnimations, elementId) {
119
- return slideAnimations.find((a) => a.elementId === elementId);
120
- }
121
- function hasAnimation(slideAnimations, elementId) {
122
- const entry = animationFor(slideAnimations, elementId);
123
- return Boolean(entry && (entry.entrance || entry.exit || entry.emphasis || entry.motionPath));
124
- }
125
117
  function showDirectionPicker(slideAnimations, elementId) {
126
118
  return directionValuesFor(slideAnimations, elementId).length > 0;
127
119
  }
128
- function upsert(anims, elementId, updater) {
129
- const idx = anims.findIndex((a) => a.elementId === elementId);
130
- if (idx >= 0) {
131
- const updated2 = updater({ ...anims[idx] });
132
- if (updated2 === null) {
133
- return anims.filter((a) => a.elementId !== elementId);
134
- }
135
- return anims.map((a, i) => i === idx ? updated2 : a);
136
- }
137
- const created = {
138
- elementId,
139
- durationMs: DEFAULT_DURATION_MS,
140
- order: anims.length,
141
- trigger: DEFAULT_TRIGGER
142
- };
143
- const updated = updater(created);
144
- if (updated === null) {
145
- return [...anims];
146
- }
147
- return [...anims, updated];
148
- }
149
120
  function setEffect(anims, elementId, group, preset) {
150
121
  const value = preset === "none" ? void 0 : preset;
151
122
  return upsert(anims, elementId, (cur) => {
@@ -238,9 +209,9 @@ function applyAnimationPreset(animations, elementId, group, preset) {
238
209
  {
239
210
  elementId,
240
211
  [group]: preset,
241
- durationMs: DEFAULT_DURATION_MS,
212
+ durationMs: DEFAULT_ANIMATION_DURATION_MS,
242
213
  order: animations.length,
243
- trigger: DEFAULT_TRIGGER
214
+ trigger: DEFAULT_ANIMATION_TRIGGER
244
215
  }
245
216
  ];
246
217
  }
@@ -282,4 +253,4 @@ function reindexOrder(anims) {
282
253
  return anims.map((a, i) => ({ ...a, order: i }));
283
254
  }
284
255
 
285
- export { ANIMATION_DIRECTION_LABEL_KEYS, DIRECTIONAL_PRESETS, DIRECTION_VALUES, EMPHASIS_PRESET_VALUES, ENTRANCE_PRESET_VALUES, EXIT_PRESET_VALUES, REPEAT_MODE_VALUES, SEQUENCE_VALUES, TIMING_CURVE_VALUES, TRIGGER_OPTIONS, TRIGGER_VALUES, animationFor, applyAnimationPreset, buildAnimationTimelineBars, directionValuesFor, directionValuesForPreset, effectiveDirection, hasAnimation, removeAnimation, removeElementAnimation, reorderAnimationDown, reorderAnimationTo, reorderAnimationUp, setAnimationEmphasis, setAnimationEntrance, setAnimationExit, setDelay, setDirection, setDuration, setRepeatCount, setRepeatMode, setSequence, setTimingCurve, setTrigger, setTriggerShapeId, showDirectionPicker, triggerChangePatch, upsert };
256
+ export { ANIMATION_DIRECTION_LABEL_KEYS, DIRECTIONAL_PRESETS, DIRECTION_VALUES, EMPHASIS_PRESET_VALUES, ENTRANCE_PRESET_VALUES, EXIT_PRESET_VALUES, REPEAT_MODE_VALUES, SEQUENCE_VALUES, TIMING_CURVE_VALUES, TRIGGER_OPTIONS, TRIGGER_VALUES, applyAnimationPreset, buildAnimationTimelineBars, directionValuesFor, directionValuesForPreset, effectiveDirection, removeAnimation, removeElementAnimation, reorderAnimationDown, reorderAnimationTo, reorderAnimationUp, setAnimationEmphasis, setAnimationEntrance, setAnimationExit, setDelay, setDirection, setDuration, setRepeatCount, setRepeatMode, setSequence, setTimingCurve, setTrigger, setTriggerShapeId, showDirectionPicker, triggerChangePatch };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkHWW2UVUP_cjs = require('./chunk-HWW2UVUP.cjs');
3
+ var chunkJRCK6CFI_cjs = require('./chunk-JRCK6CFI.cjs');
4
4
  var pptx = require('ooxml-core/pptx');
5
5
 
6
6
  function copyFormatFromElement(element) {
@@ -77,7 +77,7 @@ function applyFormatToElement(element, format) {
77
77
  if (format.textStyle && pptx.hasTextProperties(updated)) {
78
78
  updated = {
79
79
  ...updated,
80
- ...chunkHWW2UVUP_cjs.textStylePatch(updated, definedEntries(format.textStyle))
80
+ ...chunkJRCK6CFI_cjs.textStylePatch(updated, definedEntries(format.textStyle))
81
81
  };
82
82
  }
83
83
  return updated;
@@ -1,5 +1,5 @@
1
1
  import { textFontSizePxToPt } from './chunk-SMSCEGAE.mjs';
2
- import { updateTextSegmentStyle } from './chunk-CENGE3TZ.mjs';
2
+ import { mergeTextStyleUpdate, updateTextSegmentStyle } from './chunk-FFIYFHBO.mjs';
3
3
  import { hasTextProperties, hasShapeProperties } from 'ooxml-core/pptx';
4
4
  import { isBulletMarkerSegment } from 'ooxml-core/pptx/editor/render/bullet-toggle';
5
5
  export { DEFAULT_AUTONUM_TYPE, DEFAULT_BULLET_CHAR, bulletInfoForKind, elementBulletKind, isBulletMarkerSegment, paragraphBulletKind, paragraphsBulletKind, resolveBulletSegments, setElementBullets, splitBulletParagraphs, toggleElementBullets, toggleParagraphBullet, withoutListType } from 'ooxml-core/pptx/editor/render/bullet-toggle';
@@ -263,24 +263,33 @@ function textStylePatch(el, changes) {
263
263
  ...paragraphs,
264
264
  ...segments?.some((segment) => segment.paragraphInsertionStyle) ? {
265
265
  textSegments: segments.map(
266
- (segment) => updateTextSegmentStyle(segment, exclusive, { updateBodyStyle: false })
266
+ (segment) => updateTextSegmentStyle(segment, exclusive, {
267
+ updateBodyStyle: false,
268
+ inherited: base
269
+ })
267
270
  )
268
271
  } : {},
269
- textStyle: {
270
- ...base,
271
- ...exclusive
272
- }
272
+ textStyle: mergeTextStyleUpdate(base, exclusive)
273
273
  };
274
274
  }
275
- function textFontSizePatch(el, fontSize) {
276
- const patch = textStylePatch(el, { fontSize });
275
+ function textRunsPatch(el, updates) {
276
+ const patch = textStylePatch(el, updates);
277
277
  if (!hasTextProperties(el) || !el.textSegments) {
278
278
  return patch;
279
279
  }
280
+ const inherited = el.textStyle;
280
281
  return {
281
282
  ...patch,
282
- textSegments: el.textSegments.map((segment) => updateTextSegmentStyle(segment, { fontSize }))
283
+ textSegments: el.textSegments.map(
284
+ (segment) => updateTextSegmentStyle(segment, updates, { inherited })
285
+ )
283
286
  };
284
287
  }
288
+ function textFontSizePatch(el, fontSize) {
289
+ return textRunsPatch(el, { fontSize });
290
+ }
291
+ function textFontFamilyPatch(el, fontFamily) {
292
+ return textRunsPatch(el, { fontFamily });
293
+ }
285
294
 
286
- export { BODY_TEXT_STYLE_KEYS, DEFAULT_FONT_SIZE, TEXT_DECORATION_FLAGS, contentSegmentsInSelection, fillColorOf, fontSizeOf, getSelectionTextStyleFlags, isBodyTextStyleKey, isBold, isContentSegment, isItalic, isUnderline, nextToggleValue, overrideParagraphIndents, overrideParagraphProperties, paragraphOverridePatch, reconcileDecorationFlags, shapeStylePatch, splitTextStyleUpdate, strokeColorOf, textColorOf, textFontSizePatch, textStyleFlagsOf, textStylePatch, withExclusiveLineSpacing };
295
+ export { BODY_TEXT_STYLE_KEYS, DEFAULT_FONT_SIZE, TEXT_DECORATION_FLAGS, contentSegmentsInSelection, fillColorOf, fontSizeOf, getSelectionTextStyleFlags, isBodyTextStyleKey, isBold, isContentSegment, isItalic, isUnderline, nextToggleValue, overrideParagraphIndents, overrideParagraphProperties, paragraphOverridePatch, reconcileDecorationFlags, shapeStylePatch, splitTextStyleUpdate, strokeColorOf, textColorOf, textFontFamilyPatch, textFontSizePatch, textStyleFlagsOf, textStylePatch, withExclusiveLineSpacing };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkY4LTLCQP_cjs = require('./chunk-Y4LTLCQP.cjs');
3
+ var chunkOJFD3SHS_cjs = require('./chunk-OJFD3SHS.cjs');
4
4
 
5
5
  // src/pptx/render/motion-path-presets.ts
6
6
  var K = 0.5523;
@@ -126,19 +126,19 @@ var ANIMATION_RIBBON_CATEGORIES = [
126
126
  group: "entrance",
127
127
  labelKey: "pptx.animation.entrance",
128
128
  fallback: "Entrance",
129
- presets: chunkY4LTLCQP_cjs.ENTRANCE_PRESET_VALUES
129
+ presets: chunkOJFD3SHS_cjs.ENTRANCE_PRESET_VALUES
130
130
  },
131
131
  {
132
132
  group: "emphasis",
133
133
  labelKey: "pptx.animation.emphasis",
134
134
  fallback: "Emphasis",
135
- presets: chunkY4LTLCQP_cjs.EMPHASIS_PRESET_VALUES
135
+ presets: chunkOJFD3SHS_cjs.EMPHASIS_PRESET_VALUES
136
136
  },
137
137
  {
138
138
  group: "exit",
139
139
  labelKey: "pptx.animation.exit",
140
140
  fallback: "Exit",
141
- presets: chunkY4LTLCQP_cjs.EXIT_PRESET_VALUES
141
+ presets: chunkOJFD3SHS_cjs.EXIT_PRESET_VALUES
142
142
  }
143
143
  ];
144
144
  function animationsLabel(state, key, fallback) {
@@ -149,9 +149,9 @@ function animationsGated(state) {
149
149
  return !state.editable || !state.hasSelection;
150
150
  }
151
151
  var BUCKETS = {
152
- entrance: chunkY4LTLCQP_cjs.ENTRANCE_PRESET_VALUES,
153
- emphasis: chunkY4LTLCQP_cjs.EMPHASIS_PRESET_VALUES,
154
- exit: chunkY4LTLCQP_cjs.EXIT_PRESET_VALUES
152
+ entrance: chunkOJFD3SHS_cjs.ENTRANCE_PRESET_VALUES,
153
+ emphasis: chunkOJFD3SHS_cjs.EMPHASIS_PRESET_VALUES,
154
+ exit: chunkOJFD3SHS_cjs.EXIT_PRESET_VALUES
155
155
  };
156
156
  function canRequestAnimations(state, intent) {
157
157
  if (intent.kind === "command") {
@@ -243,6 +243,7 @@ var galleryTranslationsEn = {
243
243
  "pptx.ribbon.tab.smartArtDesign": "SmartArt Design",
244
244
  "pptx.ribbon.groupWordArtStyles": "WordArt Styles",
245
245
  "pptx.ribbon.groupPictureStyles": "Picture Styles",
246
+ "pptx.ribbon.groupSize": "Size",
246
247
  "pptx.ribbon.groupTableStyles": "Table Styles",
247
248
  "pptx.ribbon.groupChartLayouts": "Chart Layouts",
248
249
  "pptx.ribbon.groupChartStyles": "Chart Styles",
@@ -1 +1 @@
1
- {"version":3,"file":"text-shape.d.ts","sourceRoot":"","sources":["../../../../src/pptx/dom/elements/text-shape.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAchD;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,eAiHpC,CAAC"}
1
+ {"version":3,"file":"text-shape.d.ts","sourceRoot":"","sources":["../../../../src/pptx/dom/elements/text-shape.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAchD;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,eA0HpC,CAAC"}