pptx-vue-viewer 4.36.2 → 4.37.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 (89) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{AiChatPanel-t6dL7YP4.js → AiChatPanel-C6b7B9gF.js} +2 -2
  3. package/dist/AiChatPanel-C6b7B9gF.js.br +0 -0
  4. package/dist/AiChatPanel-C6b7B9gF.js.gz +0 -0
  5. package/dist/{AiChatPanel-BeOTgP5C.cjs → AiChatPanel-Ctnnmz7J.cjs} +1 -1
  6. package/dist/AiChatPanel-Ctnnmz7J.cjs.br +0 -0
  7. package/dist/AiChatPanel-Ctnnmz7J.cjs.gz +0 -0
  8. package/dist/i18n/de.cjs +134 -8
  9. package/dist/i18n/de.cjs.br +0 -0
  10. package/dist/i18n/de.cjs.gz +0 -0
  11. package/dist/i18n/de.mjs +134 -8
  12. package/dist/i18n/de.mjs.br +0 -0
  13. package/dist/i18n/de.mjs.gz +0 -0
  14. package/dist/i18n/es.cjs +134 -8
  15. package/dist/i18n/es.cjs.br +0 -0
  16. package/dist/i18n/es.cjs.gz +0 -0
  17. package/dist/i18n/es.mjs +134 -8
  18. package/dist/i18n/es.mjs.br +0 -0
  19. package/dist/i18n/es.mjs.gz +0 -0
  20. package/dist/i18n/fr.cjs +134 -8
  21. package/dist/i18n/fr.cjs.br +0 -0
  22. package/dist/i18n/fr.cjs.gz +0 -0
  23. package/dist/i18n/fr.mjs +134 -8
  24. package/dist/i18n/fr.mjs.br +0 -0
  25. package/dist/i18n/fr.mjs.gz +0 -0
  26. package/dist/i18n/zh-CN.cjs +135 -9
  27. package/dist/i18n/zh-CN.cjs.br +0 -0
  28. package/dist/i18n/zh-CN.cjs.gz +0 -0
  29. package/dist/i18n/zh-CN.mjs +135 -9
  30. package/dist/i18n/zh-CN.mjs.br +0 -0
  31. package/dist/i18n/zh-CN.mjs.gz +0 -0
  32. package/dist/index.cjs +1 -1
  33. package/dist/index.cjs.br +0 -0
  34. package/dist/index.cjs.gz +0 -0
  35. package/dist/index.d.ts +3 -0
  36. package/dist/index.js +2 -2
  37. package/dist/index.js.br +0 -0
  38. package/dist/index.js.gz +0 -0
  39. package/dist/internals.cjs +1 -1
  40. package/dist/internals.cjs.br +0 -0
  41. package/dist/internals.cjs.gz +0 -0
  42. package/dist/internals.d.ts +7 -0
  43. package/dist/internals.js +2 -2
  44. package/dist/internals.js.br +0 -0
  45. package/dist/internals.js.gz +0 -0
  46. package/dist/pptx-vue-viewer.css +11 -11
  47. package/dist/pptx-vue-viewer.css.br +0 -0
  48. package/dist/pptx-vue-viewer.css.gz +0 -0
  49. package/dist/{useViewerSettingsDialog-TAbf4Ixp.cjs → useViewerSettingsDialog-Deo8WA7S.cjs} +459 -423
  50. package/dist/useViewerSettingsDialog-Deo8WA7S.cjs.br +0 -0
  51. package/dist/useViewerSettingsDialog-Deo8WA7S.cjs.gz +0 -0
  52. package/dist/{useViewerSettingsDialog-r1bUiLdb.js → useViewerSettingsDialog-fd8zrghi.js} +348 -317
  53. package/dist/useViewerSettingsDialog-fd8zrghi.js.br +0 -0
  54. package/dist/{useViewerSettingsDialog-r1bUiLdb.js.gz → useViewerSettingsDialog-fd8zrghi.js.gz} +0 -0
  55. package/dist/viewer/index.cjs +1 -1
  56. package/dist/viewer/index.cjs.br +0 -0
  57. package/dist/viewer/index.cjs.gz +0 -0
  58. package/dist/viewer/index.d.ts +3 -0
  59. package/dist/viewer/index.js +3 -3
  60. package/dist/viewer/index.js.br +0 -0
  61. package/dist/viewer/index.js.gz +0 -0
  62. package/dist/{viewer-CDJjPn4g.cjs → viewer-CGm4yC4h.cjs} +69 -37
  63. package/dist/viewer-CGm4yC4h.cjs.br +0 -0
  64. package/dist/viewer-CGm4yC4h.cjs.gz +0 -0
  65. package/dist/{viewer-SxxyChcY.js → viewer-nP5gJuGF.js} +9683 -9651
  66. package/dist/viewer-nP5gJuGF.js.br +0 -0
  67. package/dist/viewer-nP5gJuGF.js.gz +0 -0
  68. package/dist/{y-webrtc-KiXq-fxq.cjs → y-webrtc-DwByYfBA.cjs} +1 -1
  69. package/dist/y-webrtc-DwByYfBA.cjs.br +0 -0
  70. package/dist/y-webrtc-DwByYfBA.cjs.gz +0 -0
  71. package/dist/{y-webrtc-swexTCT2.js → y-webrtc-rRVx0xtd.js} +74 -74
  72. package/dist/y-webrtc-rRVx0xtd.js.br +0 -0
  73. package/dist/y-webrtc-rRVx0xtd.js.gz +0 -0
  74. package/package.json +3 -3
  75. package/dist/AiChatPanel-BeOTgP5C.cjs.br +0 -0
  76. package/dist/AiChatPanel-BeOTgP5C.cjs.gz +0 -0
  77. package/dist/AiChatPanel-t6dL7YP4.js.br +0 -0
  78. package/dist/AiChatPanel-t6dL7YP4.js.gz +0 -0
  79. package/dist/useViewerSettingsDialog-TAbf4Ixp.cjs.br +0 -0
  80. package/dist/useViewerSettingsDialog-TAbf4Ixp.cjs.gz +0 -0
  81. package/dist/useViewerSettingsDialog-r1bUiLdb.js.br +0 -0
  82. package/dist/viewer-CDJjPn4g.cjs.br +0 -0
  83. package/dist/viewer-CDJjPn4g.cjs.gz +0 -0
  84. package/dist/viewer-SxxyChcY.js.br +0 -0
  85. package/dist/viewer-SxxyChcY.js.gz +0 -0
  86. package/dist/y-webrtc-KiXq-fxq.cjs.br +0 -0
  87. package/dist/y-webrtc-KiXq-fxq.cjs.gz +0 -0
  88. package/dist/y-webrtc-swexTCT2.js.br +0 -0
  89. package/dist/y-webrtc-swexTCT2.js.gz +0 -0
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const e = require("../useViewerSettingsDialog-TAbf4Ixp.cjs"), t = require("../viewer-CDJjPn4g.cjs");
2
+ const e = require("../useViewerSettingsDialog-Deo8WA7S.cjs"), t = require("../viewer-CGm4yC4h.cjs");
3
3
  let r = require("ooxml-ui/pptx");
4
4
  Object.defineProperty(exports, "AUDIENCE_HASH", {
5
5
  enumerable: !0,
Binary file
Binary file
@@ -81,6 +81,7 @@ import { PptxThemeOption } from 'ooxml-core/pptx';
81
81
  import { PptxViewProperties } from 'ooxml-core/pptx';
82
82
  import { PublicProps } from 'vue';
83
83
  import { Ref } from 'vue';
84
+ import { ReviewCommentsHost } from 'ooxml-ui/pptx';
84
85
  import { RibbonAddInTab } from 'ooxml-ui/pptx';
85
86
  import { RibbonContextualTabId } from 'ooxml-ui/pptx';
86
87
  import { RulerUnit } from 'ooxml-ui/pptx';
@@ -1579,6 +1580,8 @@ export declare interface RibbonProps {
1579
1580
  isThemeGalleryOpen: boolean;
1580
1581
  isCommentsPanelOpen?: boolean;
1581
1582
  slideCommentCount?: number;
1583
+ /** Review > Comments Previous / Next / Delete over the whole deck. */
1584
+ reviewComments?: ReviewCommentsHost;
1582
1585
  formatPainterActive?: boolean;
1583
1586
  canActivateFormatPainter?: boolean;
1584
1587
  isSelectionPaneOpen?: boolean;
@@ -1,3 +1,3 @@
1
- import { $ as a, Ar as s, Bn as r, C as e, Dr as o, Er as n, Hn as t, Kn as l, L as i, M as d, Mr as R, N as S, Nr as m, Or as C, P as b, Pr as w, S as c, Vn as v, X as u, Yn as f, Z as g, cr as j, dr as p, fr as x, j as y, jr as E, kr as M, lr as O, lt as P, nr as T, vr as A, w as D, x as I, yr as V } from "../useViewerSettingsDialog-r1bUiLdb.js";
2
- import { C as h, S as k, _ as B, a as N, b as Z, c as q, d as F, f as H, g as K, h as L, i as W, m as X, n as Y, o as $, p as _, r as z, s as G, t as J, u as Q, v as U, w as aa, y as sa } from "../viewer-SxxyChcY.js";
3
- export { F as AUDIENCE_HASH, V as ChartRenderer, U as CollaborationCursors, aa as CollaborationStatusIndicator, A as ConnectorRenderer, s as DEFAULT_CANVAS_HEIGHT, E as DEFAULT_CANVAS_WIDTH, R as DEFAULT_FILL_COLOR, m as DEFAULT_STROKE_COLOR, w as DEFAULT_TEXT_COLOR, v as ElementRenderer, x as EquationRenderer, Q as FollowModeBar, p as InkRenderer, h as InlineTextEditor, O as Model3DRenderer, j as OleRenderer, q as PowerPointViewer, B as RemoteSelectionOverlay, Z as RibbonToolbar, k as SelectionOverlay, sa as SlideCanvas, r as SlideStage, T as SmartArtRenderer, f as TableRenderer, l as WordArtText, t as ZoomRenderer, d as buildInitialGuides, H as clearAudienceContent, S as collectImagePaths, b as collectMediaElements, I as exportAllSlidesToSvg, c as exportAllSlidesToSvgBlobs, e as exportSlideToSvg, D as exportSlideToSvgBlob, n as getContainerStyle, o as getImageSrc, Y as getResolvedShapeClipPath, z as getResolvedShapeClipPathFor, C as getShapeFillStrokeStyle, M as getTextBlockStyle, _ as isAudienceTab, X as loadAudienceContent, J as overlayInlineTextSnapshot, L as parseAudienceNonce, K as storeAudienceContent, P as useCollaboration, W as useCollaborativeHistory, N as useCollaborativeState, a as useEditorHistory, g as useEditorOperations, u as useElementDrag, i as useInlineEditing, y as useLoadContent, $ as usePresenceTracking, G as useYjsProvider };
1
+ import { $ as a, Ar as s, Bn as r, C as e, Dr as o, Fr as n, Hn as t, Kn as l, L as i, M as d, Mr as R, N as S, Nr as m, Or as b, P as C, Pr as w, S as u, Vn as c, X as p, Yn as v, Z as f, br as g, fr as j, j as x, jr as y, kr as M, lr as O, lt as P, pr as T, rr as A, ur as D, w as E, x as I, yr as V } from "../useViewerSettingsDialog-fd8zrghi.js";
2
+ import { C as h, S as k, _ as B, a as F, b as N, c as Z, d as q, f as H, g as K, h as L, i as W, m as X, n as Y, o as $, p as _, r as z, s as G, t as J, u as Q, v as U, w as aa, y as sa } from "../viewer-nP5gJuGF.js";
3
+ export { q as AUDIENCE_HASH, g as ChartRenderer, U as CollaborationCursors, aa as CollaborationStatusIndicator, V as ConnectorRenderer, y as DEFAULT_CANVAS_HEIGHT, R as DEFAULT_CANVAS_WIDTH, m as DEFAULT_FILL_COLOR, w as DEFAULT_STROKE_COLOR, n as DEFAULT_TEXT_COLOR, c as ElementRenderer, T as EquationRenderer, Q as FollowModeBar, j as InkRenderer, h as InlineTextEditor, D as Model3DRenderer, O as OleRenderer, Z as PowerPointViewer, B as RemoteSelectionOverlay, N as RibbonToolbar, k as SelectionOverlay, sa as SlideCanvas, r as SlideStage, A as SmartArtRenderer, v as TableRenderer, l as WordArtText, t as ZoomRenderer, d as buildInitialGuides, H as clearAudienceContent, S as collectImagePaths, C as collectMediaElements, I as exportAllSlidesToSvg, u as exportAllSlidesToSvgBlobs, e as exportSlideToSvg, E as exportSlideToSvgBlob, o as getContainerStyle, b as getImageSrc, Y as getResolvedShapeClipPath, z as getResolvedShapeClipPathFor, M as getShapeFillStrokeStyle, s as getTextBlockStyle, _ as isAudienceTab, X as loadAudienceContent, J as overlayInlineTextSnapshot, L as parseAudienceNonce, K as storeAudienceContent, P as useCollaboration, W as useCollaborativeHistory, F as useCollaborativeState, a as useEditorHistory, f as useEditorOperations, p as useElementDrag, i as useInlineEditing, x as useLoadContent, $ as usePresenceTracking, G as useYjsProvider };
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- const e = require("./useViewerSettingsDialog-TAbf4Ixp.cjs");
1
+ const e = require("./useViewerSettingsDialog-Deo8WA7S.cjs");
2
2
  require("./i18n.cjs");
3
3
  let t = require("ooxml-ui/pptx"), n = require("vue"), o = require("lucide-vue-next"), a = require("clsx"), l = require("tailwind-merge"), r = require("ooxml-ui/pptx/ai"), i = require("ooxml-ui/pptx/i18n");
4
4
  var s = Symbol("pptx-viewer-theme");
@@ -2129,7 +2129,7 @@ var Pn = [".state"], In = (0, n.defineComponent)({
2129
2129
  onDrawRequest: i
2130
2130
  }, null, 40, Pn));
2131
2131
  }
2132
- }), _n = "4.36.2", An = Symbol("pptx-account-auth");
2132
+ }), _n = "4.37.0", An = Symbol("pptx-account-auth");
2133
2133
  var zn = { class: "pptx-vue-account mt-8 flex max-w-[760px] flex-col gap-6" }, Mn = { class: "pptx-vue-account-section border border-border bg-card p-6 text-card-foreground" }, On = { class: "text-base font-semibold" }, Rn = { class: "mt-4 flex items-center gap-4" }, Ln = { class: "min-w-0 flex-1" }, Un = { class: "block text-xs font-medium text-muted-foreground" }, Hn = ["value", "placeholder"], Kn = { class: "mt-4" }, Gn = { class: "block text-xs font-medium text-muted-foreground" }, $n = { class: "mt-2 flex gap-2" }, jn = [
2134
2134
  "aria-pressed",
2135
2135
  "aria-label",
@@ -3141,23 +3141,46 @@ var va = { class: "rounded-lg border border-border bg-popover shadow-2xl p-4 w-7
3141
3141
  onToggleComments: { type: Function },
3142
3142
  isCommentsPanelOpen: { type: Boolean },
3143
3143
  slideCommentCount: {},
3144
+ commentsHost: {},
3144
3145
  onCompare: { type: Function },
3145
3146
  onOpenAccessibilityCheck: { type: Function },
3146
3147
  onSetLanguage: { type: Function }
3147
3148
  },
3148
3149
  setup(o) {
3149
- const a = o, { t: l } = e.useI18n(), r = (0, n.computed)(() => (0, t.buildReviewRibbon)(l, {
3150
- editable: a.canEdit,
3151
- spellCheck: a.spellCheckEnabled,
3152
- canAccessibility: Boolean(a.onOpenAccessibilityCheck),
3153
- canLanguage: Boolean(a.onSetLanguage),
3154
- canCompare: Boolean(a.onCompare),
3155
- canComments: Boolean(a.onToggleComments),
3156
- commentsOpen: a.isCommentsPanelOpen,
3157
- commentCount: a.slideCommentCount
3158
- }));
3159
- function i(e) {
3160
- switch (e.detail.id) {
3150
+ const a = o, { t: l } = e.useI18n(), r = (0, n.ref)(null);
3151
+ let i;
3152
+ (0, n.onMounted)(() => {
3153
+ i = (0, t.trackActiveComment)(document, (e) => {
3154
+ r.value = e;
3155
+ });
3156
+ }), (0, n.onBeforeUnmount)(() => i?.());
3157
+ const s = (0, n.computed)(() => {
3158
+ const e = a.commentsHost, n = e?.slides() ?? [], o = (0, t.commentCounts)(n, e?.currentSlide() ?? 0);
3159
+ return (0, t.buildReviewRibbon)(l, {
3160
+ editable: a.canEdit,
3161
+ spellCheck: a.spellCheckEnabled,
3162
+ canAccessibility: Boolean(a.onOpenAccessibilityCheck),
3163
+ canLanguage: Boolean(a.onSetLanguage),
3164
+ canCompare: Boolean(a.onCompare),
3165
+ canComments: Boolean(a.onToggleComments),
3166
+ commentsOpen: a.isCommentsPanelOpen,
3167
+ commentCount: a.slideCommentCount,
3168
+ totalCommentCount: o.total,
3169
+ canNavigateComments: Boolean(e),
3170
+ hasActiveComment: null !== (0, t.findCommentLocation)(n, r.value)
3171
+ });
3172
+ });
3173
+ function c(e) {
3174
+ const n = e.detail.id;
3175
+ if ((0, t.isReviewCommentCommand)(n)) {
3176
+ const e = "review.comments.previous" === n || "review.comments.next" === n;
3177
+ if (a.commentsHost && (e || a.canEdit)) {
3178
+ const e = (0, t.runReviewCommentCommand)(n, a.commentsHost, r.value);
3179
+ void 0 !== e && (r.value = e);
3180
+ }
3181
+ return;
3182
+ }
3183
+ switch (n) {
3161
3184
  case "review.proofing.spelling":
3162
3185
  a.onSetSpellCheckEnabled(!a.spellCheckEnabled);
3163
3186
  break;
@@ -3175,8 +3198,8 @@ var va = { class: "rounded-lg border border-border bg-popover shadow-2xl p-4 w-7
3175
3198
  }
3176
3199
  }
3177
3200
  return (e, t) => ((0, n.openBlock)(), (0, n.createElementBlock)("pptx-ui-ribbon-section", {
3178
- ".groups": r.value,
3179
- onCommandRequest: i
3201
+ ".groups": s.value,
3202
+ onCommandRequest: c
3180
3203
  }, null, 40, Ca));
3181
3204
  }
3182
3205
  }), Na = /* @__PURE__ */ new WeakMap();
@@ -3949,6 +3972,7 @@ var nl = [".state"], ol = (0, n.defineComponent)({
3949
3972
  isThemeGalleryOpen: { type: Boolean },
3950
3973
  isCommentsPanelOpen: { type: Boolean },
3951
3974
  slideCommentCount: {},
3975
+ reviewComments: {},
3952
3976
  formatPainterActive: { type: Boolean },
3953
3977
  canActivateFormatPainter: { type: Boolean },
3954
3978
  isSelectionPaneOpen: { type: Boolean },
@@ -4347,6 +4371,7 @@ var nl = [".state"], ol = (0, n.defineComponent)({
4347
4371
  "on-toggle-comments": l.onToggleComments,
4348
4372
  "is-comments-panel-open": l.isCommentsPanelOpen,
4349
4373
  "slide-comment-count": l.slideCommentCount,
4374
+ "comments-host": l.reviewComments,
4350
4375
  "on-compare": l.onCompare,
4351
4376
  "on-set-language": l.onOpenSettings,
4352
4377
  "on-open-accessibility-check": l.onRunAccessibilityCheck
@@ -4357,6 +4382,7 @@ var nl = [".state"], ol = (0, n.defineComponent)({
4357
4382
  "on-toggle-comments",
4358
4383
  "is-comments-panel-open",
4359
4384
  "slide-comment-count",
4385
+ "comments-host",
4360
4386
  "on-compare",
4361
4387
  "on-set-language",
4362
4388
  "on-open-accessibility-check"
@@ -4522,6 +4548,7 @@ var nl = [".state"], ol = (0, n.defineComponent)({
4522
4548
  isThemeGalleryOpen: { type: Boolean },
4523
4549
  isCommentsPanelOpen: { type: Boolean },
4524
4550
  slideCommentCount: {},
4551
+ reviewComments: {},
4525
4552
  formatPainterActive: { type: Boolean },
4526
4553
  canActivateFormatPainter: { type: Boolean },
4527
4554
  isSelectionPaneOpen: { type: Boolean },
@@ -5372,6 +5399,7 @@ var Gl = {
5372
5399
  isThemeGalleryOpen: { type: Boolean },
5373
5400
  isCommentsPanelOpen: { type: Boolean },
5374
5401
  slideCommentCount: {},
5402
+ reviewComments: {},
5375
5403
  formatPainterActive: { type: Boolean },
5376
5404
  canActivateFormatPainter: { type: Boolean },
5377
5405
  isSelectionPaneOpen: { type: Boolean },
@@ -5545,6 +5573,7 @@ var Gl = {
5545
5573
  "on-toggle-comments": t.onToggleComments,
5546
5574
  "is-comments-panel-open": t.isCommentsPanelOpen,
5547
5575
  "slide-comment-count": t.slideCommentCount,
5576
+ "comments-host": t.reviewComments,
5548
5577
  "on-compare": t.onCompare,
5549
5578
  "on-set-language": t.onOpenSettings,
5550
5579
  "on-open-accessibility-check": t.onRunAccessibilityCheck
@@ -5555,6 +5584,7 @@ var Gl = {
5555
5584
  "on-toggle-comments",
5556
5585
  "is-comments-panel-open",
5557
5586
  "slide-comment-count",
5587
+ "comments-host",
5558
5588
  "on-compare",
5559
5589
  "on-set-language",
5560
5590
  "on-open-accessibility-check"
@@ -5818,6 +5848,7 @@ var Gl = {
5818
5848
  isThemeGalleryOpen: { type: Boolean },
5819
5849
  isCommentsPanelOpen: { type: Boolean },
5820
5850
  slideCommentCount: {},
5851
+ reviewComments: {},
5821
5852
  formatPainterActive: { type: Boolean },
5822
5853
  canActivateFormatPainter: { type: Boolean },
5823
5854
  isSelectionPaneOpen: { type: Boolean },
@@ -6049,6 +6080,7 @@ var Gl = {
6049
6080
  isThemeGalleryOpen: { type: Boolean },
6050
6081
  isCommentsPanelOpen: { type: Boolean },
6051
6082
  slideCommentCount: {},
6083
+ reviewComments: {},
6052
6084
  formatPainterActive: { type: Boolean },
6053
6085
  canActivateFormatPainter: { type: Boolean },
6054
6086
  isSelectionPaneOpen: { type: Boolean },
@@ -6310,6 +6342,7 @@ var Gl = {
6310
6342
  isThemeGalleryOpen: { type: Boolean },
6311
6343
  isCommentsPanelOpen: { type: Boolean },
6312
6344
  slideCommentCount: {},
6345
+ reviewComments: {},
6313
6346
  formatPainterActive: { type: Boolean },
6314
6347
  canActivateFormatPainter: { type: Boolean },
6315
6348
  isSelectionPaneOpen: { type: Boolean },
@@ -16449,26 +16482,26 @@ var Ly = {
16449
16482
  __name: "QuickStylesGallery",
16450
16483
  emits: ["select"],
16451
16484
  setup(o) {
16452
- const { t: a } = e.useI18n(), { viewportWidth: l } = e.useIsMobile(), r = (0, n.computed)(() => `${(0, t.getDensePanelTouchTargetPx)(l.value)}px`);
16453
- function i(e) {
16485
+ const { t: a } = e.useI18n(), l = (e) => (0, t.shapeQuickStyleLabel)(t.SHAPE_QUICK_STYLES[e], (e) => a(e)), { viewportWidth: r } = e.useIsMobile(), i = (0, n.computed)(() => `${(0, t.getDensePanelTouchTargetPx)(r.value)}px`);
16486
+ function s(e) {
16454
16487
  if (!e.shadowColor) return;
16455
16488
  return `${e.shadowOffsetX ?? 2}px ${e.shadowOffsetY ?? 2}px ${e.shadowBlur ?? 4}px ${e.shadowColor}`;
16456
16489
  }
16457
- function s(e) {
16490
+ function c(e) {
16458
16491
  if (e.strokeColor) return `${e.strokeWidth ?? 1}px solid ${e.strokeColor}`;
16459
16492
  }
16460
16493
  return (e, o) => ((0, n.openBlock)(), (0, n.createElementBlock)("div", WV, [(0, n.createElementVNode)("span", qV, (0, n.toDisplayString)((0, n.unref)(a)("pptx.shape.quickStyles")), 1), (0, n.createElementVNode)("div", YV, [((0, n.openBlock)(!0), (0, n.createElementBlock)(n.Fragment, null, (0, n.renderList)((0, n.unref)(t.SHAPE_QUICK_STYLES), (t, o) => {
16461
16494
  return (0, n.openBlock)(), (0, n.createElementBlock)("button", {
16462
16495
  key: o,
16463
16496
  type: "button",
16464
- title: t.name,
16465
- "aria-label": t.name,
16497
+ title: l(o),
16498
+ "aria-label": l(o),
16466
16499
  class: "pptx-vue-quickstyles-swatch w-full rounded border border-border hover:border-primary transition-colors",
16467
16500
  style: (0, n.normalizeStyle)({
16468
16501
  background: (a = t.style, a.fillGradient || a.fillColor || "transparent"),
16469
- boxShadow: i(t.style),
16470
- border: s(t.style),
16471
- minHeight: r.value
16502
+ boxShadow: s(t.style),
16503
+ border: c(t.style),
16504
+ minHeight: i.value
16472
16505
  }),
16473
16506
  onClick: (n) => e.$emit("select", t.style)
16474
16507
  }, null, 12, XV);
@@ -16566,7 +16599,7 @@ var Ly = {
16566
16599
  },
16567
16600
  emits: ["pick"],
16568
16601
  setup(o, { emit: a }) {
16569
- const l = o, r = a, { t: i } = e.useI18n(), s = el(), c = (0, n.computed)(() => (0, t.buildThemeColorSwatchGrid)(s?.value)), d = (0, n.computed)(() => (0, t.themeColorSwatchRows)(c.value)), p = (0, n.computed)(() => (0, t.findSelectedThemeSwatch)(c.value, l.selectedRef, l.selectedHex));
16602
+ const l = o, r = a, { t: i } = e.useI18n(), s = el(), c = (0, n.computed)(() => (0, t.buildThemeColorSwatchGrid)(s?.value, (e, t) => t ? i(e, { ...t }) : i(e))), d = (0, n.computed)(() => (0, t.themeColorSwatchRows)(c.value)), p = (0, n.computed)(() => (0, t.findSelectedThemeSwatch)(c.value, l.selectedRef, l.selectedHex));
16570
16603
  return (e, a) => c.value.length > 0 ? ((0, n.openBlock)(), (0, n.createElementBlock)("div", cT, [(0, n.createElementVNode)("div", dT, (0, n.toDisplayString)((0, n.unref)(i)("pptx.colorPicker.themeColors")), 1), (0, n.createElementVNode)("div", pT, [((0, n.openBlock)(!0), (0, n.createElementBlock)(n.Fragment, null, (0, n.renderList)(d.value, (e, a) => ((0, n.openBlock)(), (0, n.createElementBlock)("div", {
16571
16604
  key: a,
16572
16605
  class: "flex gap-0.5"
@@ -24460,7 +24493,7 @@ var WK = (0, n.defineComponent)({
24460
24493
  var a;
24461
24494
  }), 128))])], 8, LG))), 128))])) : ((0, n.openBlock)(), (0, n.createElementBlock)("div", zG, [(0, n.createElementVNode)("p", MG, (0, n.toDisplayString)((0, n.unref)(i)("pptx.accessibility.noIssuesFound")), 1), (0, n.createElementVNode)("p", OG, (0, n.toDisplayString)((0, n.unref)(i)("pptx.accessibility.noIssuesHint")), 1)]))], 8, PG));
24462
24495
  }
24463
- }), YG = (0, n.defineAsyncComponent)(() => Promise.resolve().then(() => require("./AiChatPanel-BeOTgP5C.cjs"))), XG = { class: "pptx-vue-custom-shows flex flex-col gap-2 p-2.5 text-xs text-foreground" }, ZG = { class: "pptx-vue-cs-header flex items-center" }, QG = { class: "pptx-vue-cs-title m-0 text-[13px] font-semibold" }, JG = { class: "pptx-vue-cs-list-row flex items-center gap-1.5" }, e$ = ["aria-label", "value"], t$ = {
24496
+ }), YG = (0, n.defineAsyncComponent)(() => Promise.resolve().then(() => require("./AiChatPanel-Ctnnmz7J.cjs"))), XG = { class: "pptx-vue-custom-shows flex flex-col gap-2 p-2.5 text-xs text-foreground" }, ZG = { class: "pptx-vue-cs-header flex items-center" }, QG = { class: "pptx-vue-cs-title m-0 text-[13px] font-semibold" }, JG = { class: "pptx-vue-cs-list-row flex items-center gap-1.5" }, e$ = ["aria-label", "value"], t$ = {
24464
24497
  key: 0,
24465
24498
  value: "",
24466
24499
  disabled: ""
@@ -26256,11 +26289,7 @@ var Nj = ["aria-busy", "tabindex"], Vj = {
26256
26289
  }
26257
26290
  };
26258
26291
  }({ warnings: j });
26259
- (0, n.provide)(e.TableThemeKey, () => ({
26260
- colorScheme: ie.value?.colorScheme,
26261
- tableStyleMap: X.value,
26262
- fontScheme: ie.value?.fontScheme
26263
- }));
26292
+ (0, n.provide)(e.TableThemeKey, () => e.tableThemeContextFor(ie.value, X.value));
26264
26293
  const he = function(e) {
26265
26294
  const o = (0, n.ref)((0, t.seedRecentColors)(e.presentationProperties.value));
26266
26295
  return e.loadVersion && (0, n.watch)(e.loadVersion, () => {
@@ -27591,17 +27620,18 @@ var Nj = ["aria-busy", "tabindex"], Vj = {
27591
27620
  n && _o.applyTheme(n, e.fontScheme ?? t?.fontScheme, e.name ?? t?.name ?? "Theme");
27592
27621
  }
27593
27622
  (function(e) {
27594
- const t = (0, n.computed)(() => {
27595
- const t = e.handler.value;
27623
+ const o = (0, n.computed)(() => {
27624
+ const n = e.handler.value;
27596
27625
  return {
27597
27626
  element: e.selectedElement(),
27598
27627
  theme: e.theme.value,
27599
27628
  themeColorMap: e.themeColorMap.value,
27600
- resolveStyleMatrix: t ? (e) => t.resolveStyleMatrixReferences(e) : void 0
27629
+ resolveStyleMatrix: n ? (e) => n.resolveStyleMatrixReferences(e) : void 0,
27630
+ selectedTableCells: (0, t.tableLayoutCells)(e.tableSelection?.())
27601
27631
  };
27602
- }), o = {
27632
+ }), a = {
27603
27633
  editable: (0, n.computed)(e.editable),
27604
- context: t,
27634
+ context: o,
27605
27635
  dispatch: (t) => function(e, t) {
27606
27636
  switch (e.kind) {
27607
27637
  case "element":
@@ -27614,13 +27644,14 @@ var Nj = ["aria-busy", "tabindex"], Vj = {
27614
27644
  }
27615
27645
  }(t, e)
27616
27646
  };
27617
- (0, n.provide)(Sn, o);
27647
+ (0, n.provide)(Sn, a);
27618
27648
  })({
27619
27649
  editable: () => xe.value,
27620
27650
  selectedElement: () => Le.value[0] ?? null,
27621
27651
  theme: ie,
27622
27652
  themeColorMap: se,
27623
27653
  handler: ce,
27654
+ tableSelection: () => ke.value,
27624
27655
  updateElement: (e, t) => Ge.updateElement(e, t),
27625
27656
  applyTheme: Ao
27626
27657
  });
@@ -27865,6 +27896,7 @@ var Nj = ["aria-busy", "tabindex"], Vj = {
27865
27896
  eyedropperActive: Oo.ui.eyedropperActive,
27866
27897
  showComments: Oo.comments.showComments,
27867
27898
  activeComments: Oo.comments.activeComments,
27899
+ reviewComments: Oo.comments.reviewHost,
27868
27900
  formatPainterActive: Oo.editing.formatPainterActive,
27869
27901
  canActivateFormatPainter: Oo.editing.canActivateFormatPainter,
27870
27902
  showSelectionPane: Oo.selectionPane.showSelectionPane,
Binary file
Binary file