ooxml-ui 1.39.0 → 1.39.2

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 (34) hide show
  1. package/dist/building-block-styles.d.ts +1 -0
  2. package/dist/chart/format-pane-model.d.ts +1 -0
  3. package/dist/chart/format-pane-options.d.ts +1 -0
  4. package/dist/chart/format-pane-targets.d.ts +1 -0
  5. package/dist/chart/format-pane-text.d.ts +1 -0
  6. package/dist/chrome/account.d.ts +2 -1
  7. package/dist/chrome/find-replace-fields.d.ts +1 -0
  8. package/dist/chrome/ruler.d.ts +2 -1
  9. package/dist/chrome/tab-drag.d.ts +1 -0
  10. package/dist/dialog/dialog-session.d.ts +1 -0
  11. package/dist/form/checkable.d.ts +1 -0
  12. package/dist/form/radio.d.ts +2 -1
  13. package/dist/form/range-control.d.ts +1 -0
  14. package/dist/image-native-size.d.ts +1 -0
  15. package/dist/picture-artistic-filters.d.ts +1 -0
  16. package/dist/pptx/{chunk-SI7GQYSL.cjs → chunk-DA6JZCRR.cjs} +42 -42
  17. package/dist/pptx/{chunk-6JJD3LFT.cjs → chunk-IPXWY64E.cjs} +8 -4
  18. package/dist/pptx/{chunk-4RSRCNRM.mjs → chunk-KF6KKC5I.mjs} +8 -4
  19. package/dist/pptx/{chunk-KNCCSPAV.mjs → chunk-NSVQAKLJ.mjs} +1 -1
  20. package/dist/pptx/dom/index.cjs +381 -381
  21. package/dist/pptx/dom/index.mjs +4 -4
  22. package/dist/pptx/index.cjs +3033 -3033
  23. package/dist/pptx/index.mjs +1 -1
  24. package/dist/pptx/render/animation-playback-steps.d.ts.map +1 -1
  25. package/dist/pptx/{smartart-insert-preview-JH5TXECK.mjs → smartart-insert-preview-K3ZQBMZB.mjs} +2 -2
  26. package/dist/pptx/{smartart-insert-preview-QWROEVZL.cjs → smartart-insert-preview-O27AX6EK.cjs} +3 -3
  27. package/dist/registry.d.ts +1 -0
  28. package/dist/render-cache.d.ts +1 -0
  29. package/dist/ribbon/ribbon-stack.d.ts +2 -1
  30. package/dist/styles.d.ts +1 -0
  31. package/dist/theme-bridge.d.ts +1 -0
  32. package/dist/theme.d.ts +1 -0
  33. package/dist/tokens.d.ts +1 -0
  34. package/package.json +8 -8
@@ -2,3 +2,4 @@ export type OfficeUiBlockKind = 'toolbar' | 'formula-bar' | 'tabs' | 'inspector'
2
2
  export type OfficeUiProduct = 'docx' | 'xlsx' | 'visio' | 'pptx';
3
3
  /** Opt-in styles for native framework controls. They never target host-owned controls implicitly. */
4
4
  export declare const BUILDING_BLOCKS_CSS: string;
5
+ //# sourceMappingURL=building-block-styles.d.ts.map
@@ -20,3 +20,4 @@ export declare function chartFormatSourceTabs(source: ChartFormatSource, target:
20
20
  * the mode's first tab. A `flat` source gets every chart section on one page.
21
21
  */
22
22
  export declare function buildChartFormatModel(source: ChartFormatSource, targetKey: string | undefined, tab?: ChartFormatTabId, mode?: ChartFormatPaneMode): ChartFormatPaneModel;
23
+ //# sourceMappingURL=format-pane-model.d.ts.map
@@ -11,3 +11,4 @@ type OptionsSource = Pick<ChartFormatSource, 'seriesOptions' | 'axisOptions' | '
11
11
  /** The Options tab's sections for `target`, or `undefined` when the target has no options. */
12
12
  export declare function optionsSections(source: OptionsSource, target: ChartFormatTarget): ChartFormatSection[] | undefined;
13
13
  export {};
14
+ //# sourceMappingURL=format-pane-options.d.ts.map
@@ -22,3 +22,4 @@ export declare function chartFormatPaneTitle(target: ChartFormatTarget): ChartFo
22
22
  export declare function chartFormatTargetOptions(targets: readonly ChartFormatTarget[], describe: ChartFormatDescribe): ChartFormatTargetOption[];
23
23
  /** The chart area entry, what a stale or missing key falls back to. */
24
24
  export declare const CHART_AREA_TARGET: ChartFormatTargetOption;
25
+ //# sourceMappingURL=format-pane-targets.d.ts.map
@@ -4,3 +4,4 @@ import type { ChartFormatTextView } from './format-pane-view.js';
4
4
  export declare function chartTextTabs(): ChartFormatTab[];
5
5
  /** The sections of Text Options tab `tab`. */
6
6
  export declare function textOptionsSections(text: ChartFormatTextView, tab: 'textFill' | 'textEffects' | 'textBox'): ChartFormatSection[];
7
+ //# sourceMappingURL=format-pane-text.d.ts.map
@@ -14,4 +14,5 @@ export declare class OfficeUiAccount extends OfficeElement {
14
14
  private onSwatchKey;
15
15
  protected render(): import("lit").TemplateResult<1>;
16
16
  }
17
- export declare const defineAccount: import("../index.js").Definer;
17
+ export declare const defineAccount: import("../registry.js").Definer;
18
+ //# sourceMappingURL=account.d.ts.map
@@ -18,3 +18,4 @@ export interface FindReplaceFields {
18
18
  }
19
19
  /** Optional product-neutral Replace controls; matching, scopes and transactions belong to core. */
20
20
  export declare function findReplaceFields(state: FindReplaceFields): import("lit").TemplateResult<1>;
21
+ //# sourceMappingURL=find-replace-fields.d.ts.map
@@ -104,4 +104,5 @@ export declare class OfficeUiRuler extends OfficeElement {
104
104
  private draw;
105
105
  protected render(): import("lit").TemplateResult<1>;
106
106
  }
107
- export declare const defineRuler: import("../index.js").Definer;
107
+ export declare const defineRuler: import("../registry.js").Definer;
108
+ //# sourceMappingURL=ruler.d.ts.map
@@ -24,3 +24,4 @@ export interface TabDragHost {
24
24
  }
25
25
  /** Wires pointer dragging on `host.area`; returns a disposer. */
26
26
  export declare function wireTabDrag(host: TabDragHost): () => void;
27
+ //# sourceMappingURL=tab-drag.d.ts.map
@@ -16,3 +16,4 @@ export declare function createDialogSession<T>(options: DialogSessionOptions<T>)
16
16
  close: (value?: T) => void;
17
17
  dispose: () => void;
18
18
  };
19
+ //# sourceMappingURL=dialog-session.d.ts.map
@@ -47,3 +47,4 @@ export declare abstract class OfficeUiCheckable extends OfficeElement {
47
47
  /** The tick, shown through CSS when `checked`. */
48
48
  protected renderCheck(): import("lit").TemplateResult<1>;
49
49
  }
50
+ //# sourceMappingURL=checkable.d.ts.map
@@ -65,4 +65,5 @@ export declare class OfficeUiRadio extends OfficeElement {
65
65
  protected willUpdate(): void;
66
66
  protected render(): import("lit").TemplateResult<1>;
67
67
  }
68
- export declare const defineRadio: import("../index.js").Definer;
68
+ export declare const defineRadio: import("../registry.js").Definer;
69
+ //# sourceMappingURL=radio.d.ts.map
@@ -11,3 +11,4 @@ export interface RangeControlOptions {
11
11
  }
12
12
  /** Native keyboard, pointer and accessibility behavior shared by Office range controls. */
13
13
  export declare function rangeControl(options: RangeControlOptions): import("lit").TemplateResult<1>;
14
+ //# sourceMappingURL=range-control.d.ts.map
@@ -40,3 +40,4 @@ export declare function probeNativeImageSize(src: string): Promise<NativeImageSi
40
40
  export declare function clearNativeImageSizeCache(): void;
41
41
  /** Test-only compatibility alias. */
42
42
  export declare function _resetNativeImageSizeCacheForTests(): void;
43
+ //# sourceMappingURL=image-native-size.d.ts.map
@@ -6,3 +6,4 @@
6
6
  export declare function buildArtisticFilterMarkup(effectName: string, radius: number): string | undefined;
7
7
  export declare function buildSimpleArtisticCss(effect: string, radius: number): string;
8
8
  export declare const ARTISTIC_PREVIEW_EFFECTS: Set<string>;
9
+ //# sourceMappingURL=picture-artistic-filters.d.ts.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk6JJD3LFT_cjs = require('./chunk-6JJD3LFT.cjs');
3
+ var chunkIPXWY64E_cjs = require('./chunk-IPXWY64E.cjs');
4
4
  var chunkCWWL7MCL_cjs = require('./chunk-CWWL7MCL.cjs');
5
5
  var chunkKJICUZXM_cjs = require('./chunk-KJICUZXM.cjs');
6
6
  var chunkFROIGMTI_cjs = require('./chunk-FROIGMTI.cjs');
@@ -145,13 +145,13 @@ function wireChartThreeViewEvents(view, element, context, badgeHost) {
145
145
  const listeners = new AbortController();
146
146
  chartViewListeners.set(view, listeners);
147
147
  view.addEventListener(
148
- chunk6JJD3LFT_cjs.THREE_VIEW_EVENTS.select,
149
- (event) => chunk6JJD3LFT_cjs.applyChart3DSelect(bridge, event.detail.part),
148
+ chunkIPXWY64E_cjs.THREE_VIEW_EVENTS.select,
149
+ (event) => chunkIPXWY64E_cjs.applyChart3DSelect(bridge, event.detail.part),
150
150
  { signal: listeners.signal }
151
151
  );
152
152
  view.addEventListener(
153
- chunk6JJD3LFT_cjs.THREE_VIEW_EVENTS.drag,
154
- (event) => chunk6JJD3LFT_cjs.applyChart3DDrag(bridge, event.detail),
153
+ chunkIPXWY64E_cjs.THREE_VIEW_EVENTS.drag,
154
+ (event) => chunkIPXWY64E_cjs.applyChart3DDrag(bridge, event.detail),
155
155
  { signal: listeners.signal }
156
156
  );
157
157
  }
@@ -165,7 +165,7 @@ function applyThreeViewTextStyle(el, style) {
165
165
  // src/pptx/dom/elements/smartart-3d.ts
166
166
  var renderSmartArt3DElement = (element, zIndex, context) => {
167
167
  const wrapper = renderSmartArtSvg(element, zIndex, context);
168
- const spec = wrapper ? chunk6JJD3LFT_cjs.resolveSmartArtThreeViewSpec(element, context.smartArt3D) : null;
168
+ const spec = wrapper ? chunkIPXWY64E_cjs.resolveSmartArtThreeViewSpec(element, context.smartArt3D) : null;
169
169
  if (!wrapper || !spec) {
170
170
  return wrapper;
171
171
  }
@@ -175,18 +175,18 @@ var renderSmartArt3DElement = (element, zIndex, context) => {
175
175
  textStyle: context.presentationStates?.get(element.id)?.textStyle
176
176
  });
177
177
  if (context.onSmartArtNodeTextChange && context.interactive && !context.presenting) {
178
- const layer = renderSmartArtSvg(chunk6JJD3LFT_cjs.elementInLocalFrame(element), 0, context);
178
+ const layer = renderSmartArtSvg(chunkIPXWY64E_cjs.elementInLocalFrame(element), 0, context);
179
179
  if (layer) {
180
180
  layer.classList.add("pptxv-smartart-3d-edit-layer");
181
- layer.setAttribute(chunk6JJD3LFT_cjs.SMARTART_3D_EDIT_LAYER_ATTRIBUTE, "true");
182
- chunk6JJD3LFT_cjs.stripEditLayerMarkers(layer);
181
+ layer.setAttribute(chunkIPXWY64E_cjs.SMARTART_3D_EDIT_LAYER_ATTRIBUTE, "true");
182
+ chunkIPXWY64E_cjs.stripEditLayerMarkers(layer);
183
183
  layer.setAttribute("aria-hidden", "true");
184
184
  Object.assign(layer.style, { position: "absolute", inset: "0", zIndex: "1" });
185
185
  for (const svg of layer.querySelectorAll("svg")) {
186
186
  svg.style.opacity = "0";
187
187
  }
188
188
  wrapper.appendChild(layer);
189
- chunk6JJD3LFT_cjs.routeEditLayerPointerToNodes(layer);
189
+ chunkIPXWY64E_cjs.routeEditLayerPointerToNodes(layer);
190
190
  }
191
191
  }
192
192
  return wrapper;
@@ -206,7 +206,7 @@ function enableSmartArtEditing(chrome, element, context) {
206
206
  let swatches = null;
207
207
  let hideTimer;
208
208
  const cancelHide = () => clearTimeout(hideTimer);
209
- const ignoredHover = (event) => chrome.closest(`[${chunk6JJD3LFT_cjs.SMARTART_3D_EDIT_LAYER_ATTRIBUTE}]`) !== null && !chunk6JJD3LFT_cjs.isForwardedEditLayerEvent(event);
209
+ const ignoredHover = (event) => chrome.closest(`[${chunkIPXWY64E_cjs.SMARTART_3D_EDIT_LAYER_ATTRIBUTE}]`) !== null && !chunkIPXWY64E_cjs.isForwardedEditLayerEvent(event);
210
210
  const closeEditor = (input = editor) => {
211
211
  if (!input || input !== editor) {
212
212
  return;
@@ -222,8 +222,8 @@ function enableSmartArtEditing(chrome, element, context) {
222
222
  }
223
223
  event.stopPropagation();
224
224
  const textNode = target.querySelector("text");
225
- const textRect = textNode ? chunk6JJD3LFT_cjs.measureSvgViewportRect(textNode) : null;
226
- const rect = textRect && textRect.width > 0 ? textRect : chunk6JJD3LFT_cjs.measureSvgViewportRect(target);
225
+ const textRect = textNode ? chunkIPXWY64E_cjs.measureSvgViewportRect(textNode) : null;
226
+ const rect = textRect && textRect.width > 0 ? textRect : chunkIPXWY64E_cjs.measureSvgViewportRect(target);
227
227
  if (!rect) {
228
228
  return;
229
229
  }
@@ -247,7 +247,7 @@ function enableSmartArtEditing(chrome, element, context) {
247
247
  textAlign: "center"
248
248
  });
249
249
  editor = input;
250
- input.value = chunk6JJD3LFT_cjs.findSmartArtNodeText(data, nodeId) ?? "";
250
+ input.value = chunkIPXWY64E_cjs.findSmartArtNodeText(data, nodeId) ?? "";
251
251
  const commit = () => {
252
252
  if (input !== editor) {
253
253
  return;
@@ -282,7 +282,7 @@ function enableSmartArtEditing(chrome, element, context) {
282
282
  }
283
283
  cancelHide();
284
284
  swatches?.remove();
285
- const rect = chunk6JJD3LFT_cjs.measureSvgViewportRect(target);
285
+ const rect = chunkIPXWY64E_cjs.measureSvgViewportRect(target);
286
286
  if (!rect) {
287
287
  return;
288
288
  }
@@ -301,7 +301,7 @@ function enableSmartArtEditing(chrome, element, context) {
301
301
  });
302
302
  swatches.setAttribute("role", "group");
303
303
  swatches.setAttribute("aria-label", context.t("pptx.smartArt.fillColor"));
304
- for (const color of chunk6JJD3LFT_cjs.resolvePalette(data).slice(0, 6)) {
304
+ for (const color of chunkIPXWY64E_cjs.resolvePalette(data).slice(0, 6)) {
305
305
  const button = createEl(chrome.ownerDocument, "button", "", {
306
306
  width: "18px",
307
307
  height: "18px",
@@ -403,7 +403,7 @@ function buildSmartArtFallbackSvg(doc, layout, a11yNodes = [], nodeIds = []) {
403
403
  svg.setAttribute("class", "pptxv-smartart-svg");
404
404
  svg.setAttribute("style", SMARTART_SVG_STYLE);
405
405
  for (const conn of layout.connectors) {
406
- const paint = chunk6JJD3LFT_cjs.smartArtConnectorPaint(conn);
406
+ const paint = chunkIPXWY64E_cjs.smartArtConnectorPaint(conn);
407
407
  svg.appendChild(
408
408
  createSvgEl(doc, "path", {
409
409
  d: paint.d,
@@ -462,7 +462,7 @@ function buildFallbackNode(doc, node, shadowFilter, a11yLabel, nodeId) {
462
462
  })
463
463
  );
464
464
  }
465
- const label = chunk6JJD3LFT_cjs.smartArtNodeLabel(node);
465
+ const label = chunkIPXWY64E_cjs.smartArtNodeLabel(node);
466
466
  if (label.visible) {
467
467
  appendSvgTextLines(doc, g, {
468
468
  lines: label.lines,
@@ -498,41 +498,41 @@ var renderSmartArtSvg = (element, zIndex, context) => {
498
498
  doc,
499
499
  "div",
500
500
  "pptxv-element pptxv-smartart",
501
- chunk6JJD3LFT_cjs.getContainerStyle(element, zIndex)
501
+ chunkIPXWY64E_cjs.getContainerStyle(element, zIndex)
502
502
  );
503
503
  wrapper.dataset.elementId = element.id;
504
504
  wrapper.dataset.testid = `smartart-${data?.layout ?? "diagram"}`;
505
- const chrome = createEl(doc, "div", "pptxv-smartart-chrome", chunk6JJD3LFT_cjs.buildChromeStyle(data?.chrome));
505
+ const chrome = createEl(doc, "div", "pptxv-smartart-chrome", chunkIPXWY64E_cjs.buildChromeStyle(data?.chrome));
506
506
  chrome.style.position = "relative";
507
507
  wrapper.appendChild(chrome);
508
508
  if (data) {
509
- const a11y = chunk6JJD3LFT_cjs.buildSmartArtA11y(data);
509
+ const a11y = chunkIPXWY64E_cjs.buildSmartArtA11y(data);
510
510
  chrome.setAttribute("role", "img");
511
511
  chrome.setAttribute("aria-label", a11y.label);
512
512
  }
513
513
  const nodes = data?.nodes ?? [];
514
514
  const drawingShapes = data?.drawingShapes ?? [];
515
515
  const animationState = context.presentationStates?.get(element.id);
516
- const { nodes: revealedNodesFull } = chunk6JJD3LFT_cjs.resolveRevealedSmartArtNodes(
516
+ const { nodes: revealedNodesFull } = chunkIPXWY64E_cjs.resolveRevealedSmartArtNodes(
517
517
  nodes,
518
518
  animationState,
519
519
  data?.presLayoutVars
520
520
  );
521
521
  if (data && drawingShapes.length > 0) {
522
- const revealedShapes = chunk6JJD3LFT_cjs.resolveRevealedDrawingShapes(drawingShapes, nodes, animationState);
522
+ const revealedShapes = chunkIPXWY64E_cjs.resolveRevealedDrawingShapes(drawingShapes, nodes, animationState);
523
523
  chrome.appendChild(
524
- buildDrawingShapesSvg(doc, element.id, data, chunk6JJD3LFT_cjs.buildSmartArtA11y(data).nodes, revealedShapes)
524
+ buildDrawingShapesSvg(doc, element.id, data, chunkIPXWY64E_cjs.buildSmartArtA11y(data).nodes, revealedShapes)
525
525
  );
526
526
  enableSmartArtEditing(chrome, element, context);
527
527
  return wrapper;
528
528
  }
529
529
  if (data && nodes.length > 0) {
530
530
  const revealedNodes = revealedNodesFull;
531
- const layout = chunk6JJD3LFT_cjs.computeSmartArtElementLayout(
531
+ const layout = chunkIPXWY64E_cjs.computeSmartArtElementLayout(
532
532
  data,
533
533
  revealedNodes,
534
534
  { width: element.width, height: element.height },
535
- chunk6JJD3LFT_cjs.resolvePalette(data),
535
+ chunkIPXWY64E_cjs.resolvePalette(data),
536
536
  data.style ?? "flat",
537
537
  element.id
538
538
  );
@@ -540,8 +540,8 @@ var renderSmartArtSvg = (element, zIndex, context) => {
540
540
  buildSmartArtFallbackSvg(
541
541
  doc,
542
542
  layout,
543
- chunk6JJD3LFT_cjs.buildSmartArtA11y(data).nodes,
544
- chunk6JJD3LFT_cjs.flattenNodes(revealedNodes).map((node) => node.id)
543
+ chunkIPXWY64E_cjs.buildSmartArtA11y(data).nodes,
544
+ chunkIPXWY64E_cjs.flattenNodes(revealedNodes).map((node) => node.id)
545
545
  )
546
546
  );
547
547
  enableSmartArtEditing(chrome, element, context);
@@ -564,17 +564,17 @@ var renderSmartArtSvg = (element, zIndex, context) => {
564
564
  function buildDrawingShapesSvg(doc, elementId, data, a11yNodes, revealedShapes) {
565
565
  const allShapes = data.drawingShapes ?? [];
566
566
  const style = data.style ?? "flat";
567
- const viewBox = chunk6JJD3LFT_cjs.computeDrawingViewBox(allShapes);
568
- const rendered = chunk6JJD3LFT_cjs.projectDrawingShapes(
567
+ const viewBox = chunkIPXWY64E_cjs.computeDrawingViewBox(allShapes);
568
+ const rendered = chunkIPXWY64E_cjs.projectDrawingShapes(
569
569
  elementId,
570
570
  revealedShapes,
571
571
  viewBox,
572
- chunk6JJD3LFT_cjs.resolvePalette(data),
572
+ chunkIPXWY64E_cjs.resolvePalette(data),
573
573
  style
574
574
  );
575
- const shadow = chunk6JJD3LFT_cjs.styleShadowFilter(style);
575
+ const shadow = chunkIPXWY64E_cjs.styleShadowFilter(style);
576
576
  const labelsById = new Map(a11yNodes.map((node) => [node.id, node.label]));
577
- const nodeIds = chunk6JJD3LFT_cjs.resolveRevealedDrawingShapeNodeIds(allShapes, revealedShapes, data.nodes);
577
+ const nodeIds = chunkIPXWY64E_cjs.resolveRevealedDrawingShapeNodeIds(allShapes, revealedShapes, data.nodes);
578
578
  const svg = createSvgEl(doc, "svg", {
579
579
  viewBox: `0 0 ${viewBox.width} ${viewBox.height}`,
580
580
  preserveAspectRatio: "xMidYMid meet"
@@ -615,7 +615,7 @@ function buildDrawingShapesSvg(doc, elementId, data, a11yNodes, revealedShapes)
615
615
  image.setAttribute("href", shape.imageUrl ?? "");
616
616
  image.addEventListener(
617
617
  "load",
618
- (event) => chunk6JJD3LFT_cjs.refreshSmartArtPictureImage(event, shape.pictureSource)
618
+ (event) => chunkIPXWY64E_cjs.refreshSmartArtPictureImage(event, shape.pictureSource)
619
619
  );
620
620
  g.appendChild(image);
621
621
  } else if (shape.kind === "ellipse") {
@@ -707,26 +707,26 @@ function createElementRendererRegistry() {
707
707
  // src/pptx/dom/smartart-insert-preview.ts
708
708
  function buildSmartArtInsertPreview(doc, t, layout, size) {
709
709
  const scale = Math.min(
710
- size.width / chunk6JJD3LFT_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH,
711
- size.height / chunk6JJD3LFT_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT
710
+ size.width / chunkIPXWY64E_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH,
711
+ size.height / chunkIPXWY64E_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT
712
712
  );
713
713
  const box = createEl(doc, "div", "pptxv-smartart-option-preview", {
714
- width: `${Math.round(chunk6JJD3LFT_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH * scale)}px`,
715
- height: `${Math.round(chunk6JJD3LFT_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT * scale)}px`,
714
+ width: `${Math.round(chunkIPXWY64E_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH * scale)}px`,
715
+ height: `${Math.round(chunkIPXWY64E_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT * scale)}px`,
716
716
  overflow: "hidden",
717
717
  pointerEvents: "none",
718
718
  position: "relative"
719
719
  });
720
720
  box.setAttribute("aria-hidden", "true");
721
721
  const stage = createEl(doc, "div", void 0, {
722
- width: `${chunk6JJD3LFT_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH}px`,
723
- height: `${chunk6JJD3LFT_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT}px`,
722
+ width: `${chunkIPXWY64E_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH}px`,
723
+ height: `${chunkIPXWY64E_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT}px`,
724
724
  transform: `scale(${scale})`,
725
725
  transformOrigin: "top left",
726
726
  position: "relative"
727
727
  });
728
728
  box.appendChild(stage);
729
- const element = chunk6JJD3LFT_cjs.buildSmartArtPreviewElement(layout);
729
+ const element = chunkIPXWY64E_cjs.buildSmartArtPreviewElement(layout);
730
730
  const slide = {
731
731
  id: "smartart-preview",
732
732
  rId: "smartart-preview",
@@ -736,7 +736,7 @@ function buildSmartArtInsertPreview(doc, t, layout, size) {
736
736
  const context = {
737
737
  document: doc,
738
738
  slide,
739
- canvasSize: { width: chunk6JJD3LFT_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH, height: chunk6JJD3LFT_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT },
739
+ canvasSize: { width: chunkIPXWY64E_cjs.SMARTART_PREVIEW_ELEMENT_WIDTH, height: chunkIPXWY64E_cjs.SMARTART_PREVIEW_ELEMENT_HEIGHT },
740
740
  scale: 1,
741
741
  mediaDataUrls: /* @__PURE__ */ new Map(),
742
742
  t,
@@ -68821,6 +68821,7 @@ function applyAnimationGroupSteps(group, ctx) {
68821
68821
  wireMediaEndedSteps(group, ctx);
68822
68822
  wireMediaBookmarkSteps(group, ctx);
68823
68823
  const ownedAnimations = /* @__PURE__ */ new Map();
68824
+ const componentsByElement = /* @__PURE__ */ new Map();
68824
68825
  const owner = /* @__PURE__ */ Symbol("animation group");
68825
68826
  const owners = playbackOwners.get(ctx.setStates) ?? /* @__PURE__ */ new Map();
68826
68827
  playbackOwners.set(ctx.setStates, owners);
@@ -68864,7 +68865,6 @@ function applyAnimationGroupSteps(group, ctx) {
68864
68865
  }
68865
68866
  ctx.setStates((previous) => {
68866
68867
  const next = new Map(previous);
68867
- const componentsByElement = /* @__PURE__ */ new Map();
68868
68868
  for (const step2 of group.steps) {
68869
68869
  if (step2.command || !step2.elementId || step2.opacitySet) {
68870
68870
  continue;
@@ -68936,8 +68936,12 @@ function applyAnimationGroupSteps(group, ctx) {
68936
68936
  ...carried,
68937
68937
  visible: visibleAfter,
68938
68938
  cssAnimation: remaining.join(", ") || void 0,
68939
- animatesFill: step2.colorTargets ? void 0 : current?.animatesFill,
68940
- animatesStroke: step2.colorTargets ? void 0 : current?.animatesStroke,
68939
+ animatesFill: componentsByElement.get(step2.elementId)?.some(
68940
+ (component2) => remaining.includes(component2.animation) && component2.colorTargets?.includes("fill")
68941
+ ) || void 0,
68942
+ animatesStroke: componentsByElement.get(step2.elementId)?.some(
68943
+ (component2) => remaining.includes(component2.animation) && component2.colorTargets?.includes("stroke")
68944
+ ) || void 0,
68941
68945
  textStyle: resolveTextStyleOnCleanup(
68942
68946
  carried.textStyle,
68943
68947
  step2.textStyle,
@@ -84780,7 +84784,7 @@ function definePptxInsertSmartArtDialog(registry2) {
84780
84784
  if (this.#live || this.#draw) {
84781
84785
  return;
84782
84786
  }
84783
- this.#live = import('./smartart-insert-preview-QWROEVZL.cjs').then((module) => {
84787
+ this.#live = import('./smartart-insert-preview-O27AX6EK.cjs').then((module) => {
84784
84788
  if (this.#draw || !this.#picker) {
84785
84789
  return;
84786
84790
  }
@@ -68858,6 +68858,7 @@ function applyAnimationGroupSteps(group, ctx) {
68858
68858
  wireMediaEndedSteps(group, ctx);
68859
68859
  wireMediaBookmarkSteps(group, ctx);
68860
68860
  const ownedAnimations = /* @__PURE__ */ new Map();
68861
+ const componentsByElement = /* @__PURE__ */ new Map();
68861
68862
  const owner = /* @__PURE__ */ Symbol("animation group");
68862
68863
  const owners = playbackOwners.get(ctx.setStates) ?? /* @__PURE__ */ new Map();
68863
68864
  playbackOwners.set(ctx.setStates, owners);
@@ -68901,7 +68902,6 @@ function applyAnimationGroupSteps(group, ctx) {
68901
68902
  }
68902
68903
  ctx.setStates((previous) => {
68903
68904
  const next = new Map(previous);
68904
- const componentsByElement = /* @__PURE__ */ new Map();
68905
68905
  for (const step2 of group.steps) {
68906
68906
  if (step2.command || !step2.elementId || step2.opacitySet) {
68907
68907
  continue;
@@ -68973,8 +68973,12 @@ function applyAnimationGroupSteps(group, ctx) {
68973
68973
  ...carried,
68974
68974
  visible: visibleAfter,
68975
68975
  cssAnimation: remaining.join(", ") || void 0,
68976
- animatesFill: step2.colorTargets ? void 0 : current?.animatesFill,
68977
- animatesStroke: step2.colorTargets ? void 0 : current?.animatesStroke,
68976
+ animatesFill: componentsByElement.get(step2.elementId)?.some(
68977
+ (component2) => remaining.includes(component2.animation) && component2.colorTargets?.includes("fill")
68978
+ ) || void 0,
68979
+ animatesStroke: componentsByElement.get(step2.elementId)?.some(
68980
+ (component2) => remaining.includes(component2.animation) && component2.colorTargets?.includes("stroke")
68981
+ ) || void 0,
68978
68982
  textStyle: resolveTextStyleOnCleanup(
68979
68983
  carried.textStyle,
68980
68984
  step2.textStyle,
@@ -84817,7 +84821,7 @@ function definePptxInsertSmartArtDialog(registry2) {
84817
84821
  if (this.#live || this.#draw) {
84818
84822
  return;
84819
84823
  }
84820
- this.#live = import('./smartart-insert-preview-JH5TXECK.mjs').then((module) => {
84824
+ this.#live = import('./smartart-insert-preview-K3ZQBMZB.mjs').then((module) => {
84821
84825
  if (this.#draw || !this.#picker) {
84822
84826
  return;
84823
84827
  }
@@ -1,4 +1,4 @@
1
- import { THREE_VIEW_EVENTS, applyChart3DSelect, applyChart3DDrag, resolveSmartArtThreeViewSpec, elementInLocalFrame, SMARTART_3D_EDIT_LAYER_ATTRIBUTE, stripEditLayerMarkers, routeEditLayerPointerToNodes, measureSvgViewportRect, findSmartArtNodeText, resolvePalette, smartArtConnectorPaint, smartArtNodeLabel, getContainerStyle, buildChromeStyle, buildSmartArtA11y, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, computeSmartArtElementLayout, flattenNodes, computeDrawingViewBox, projectDrawingShapes, styleShadowFilter, resolveRevealedDrawingShapeNodeIds, refreshSmartArtPictureImage, SMARTART_PREVIEW_ELEMENT_WIDTH, SMARTART_PREVIEW_ELEMENT_HEIGHT, buildSmartArtPreviewElement, isForwardedEditLayerEvent } from './chunk-4RSRCNRM.mjs';
1
+ import { THREE_VIEW_EVENTS, applyChart3DSelect, applyChart3DDrag, resolveSmartArtThreeViewSpec, elementInLocalFrame, SMARTART_3D_EDIT_LAYER_ATTRIBUTE, stripEditLayerMarkers, routeEditLayerPointerToNodes, measureSvgViewportRect, findSmartArtNodeText, resolvePalette, smartArtConnectorPaint, smartArtNodeLabel, getContainerStyle, buildChromeStyle, buildSmartArtA11y, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, computeSmartArtElementLayout, flattenNodes, computeDrawingViewBox, projectDrawingShapes, styleShadowFilter, resolveRevealedDrawingShapeNodeIds, refreshSmartArtPictureImage, SMARTART_PREVIEW_ELEMENT_WIDTH, SMARTART_PREVIEW_ELEMENT_HEIGHT, buildSmartArtPreviewElement, isForwardedEditLayerEvent } from './chunk-KF6KKC5I.mjs';
2
2
  import { canDrillDown } from './chunk-FUKVYJPM.mjs';
3
3
  import { formatAxisValue } from './chunk-QK6LJT3K.mjs';
4
4
  import { THREE_VIEW_TAG, defineThreeViewElement } from './chunk-UHDWWRTX.mjs';