pptx-vue-viewer 2.17.2 → 2.17.3
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/CHANGELOG.md +2 -0
- package/dist/{AiChatPanel-DGSZNMwm.js → AiChatPanel-BtA49POe.js} +2 -2
- package/dist/AiChatPanel-BtA49POe.js.br +0 -0
- package/dist/AiChatPanel-BtA49POe.js.gz +0 -0
- package/dist/{AiChatPanel-ZT454CC-.cjs → AiChatPanel-EbvAnB-f.cjs} +1 -1
- package/dist/AiChatPanel-EbvAnB-f.cjs.br +0 -0
- package/dist/AiChatPanel-EbvAnB-f.cjs.gz +0 -0
- package/dist/gif-encoder-C2XHLczL.js +2 -0
- package/dist/gif-encoder-C2XHLczL.js.br +0 -0
- package/dist/gif-encoder-C2XHLczL.js.gz +0 -0
- package/dist/gif-encoder-m8H8dSBe.cjs +2 -0
- package/dist/gif-encoder-m8H8dSBe.cjs.br +0 -0
- package/dist/gif-encoder-m8H8dSBe.cjs.gz +0 -0
- package/dist/{i18n-Bm1FdvTe.cjs → i18n-BnYMAeJt.cjs} +1 -0
- package/dist/i18n-BnYMAeJt.cjs.br +0 -0
- package/dist/i18n-BnYMAeJt.cjs.gz +0 -0
- package/dist/{i18n-vGMsvpN1.js → i18n-sJZNWGp6.js} +1 -0
- package/dist/i18n-sJZNWGp6.js.br +0 -0
- package/dist/i18n-sJZNWGp6.js.gz +0 -0
- package/dist/i18n.cjs +1 -1
- package/dist/i18n.cjs.br +0 -0
- package/dist/i18n.cjs.gz +0 -0
- package/dist/i18n.js +1 -1
- package/dist/i18n.js.br +0 -0
- package/dist/i18n.js.gz +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.js +2 -2
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/internals.cjs +1 -1
- package/dist/internals.cjs.br +0 -0
- package/dist/internals.cjs.gz +0 -0
- package/dist/internals.js +1 -1
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/{useViewerSettingsDialog-BOUxiopA.js → useViewerSettingsDialog-B3BWwDSW.js} +3 -2
- package/dist/useViewerSettingsDialog-B3BWwDSW.js.br +0 -0
- package/dist/useViewerSettingsDialog-B3BWwDSW.js.gz +0 -0
- package/dist/{useViewerSettingsDialog-DcPDeh0x.cjs → useViewerSettingsDialog-BqgLhQyF.cjs} +3 -2
- package/dist/useViewerSettingsDialog-BqgLhQyF.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-BqgLhQyF.cjs.gz +0 -0
- package/dist/viewer/components/ElementImageBox.vue.d.ts.map +1 -1
- package/dist/viewer/components/ElementMediaBox.vue.d.ts.map +1 -1
- package/dist/viewer/components/ElementRenderer.vue.d.ts.map +1 -1
- package/dist/viewer/components/SmartArtRenderer.vue.d.ts.map +1 -1
- package/dist/viewer/components/TableRenderer.vue.d.ts.map +1 -1
- package/dist/viewer/index.cjs +1 -1
- package/dist/viewer/index.cjs.br +0 -0
- package/dist/viewer/index.cjs.gz +0 -0
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-BQ1S9vlK.cjs → viewer-BWlp7vxz.cjs} +169 -169
- package/dist/viewer-BWlp7vxz.cjs.br +0 -0
- package/dist/viewer-BWlp7vxz.cjs.gz +0 -0
- package/dist/{viewer-V75petIl.js → viewer-DFQI_K9F.js} +173 -173
- package/dist/viewer-DFQI_K9F.js.br +0 -0
- package/dist/viewer-DFQI_K9F.js.gz +0 -0
- package/package.json +8 -8
- package/dist/AiChatPanel-DGSZNMwm.js.br +0 -0
- package/dist/AiChatPanel-DGSZNMwm.js.gz +0 -0
- package/dist/AiChatPanel-ZT454CC-.cjs.br +0 -0
- package/dist/AiChatPanel-ZT454CC-.cjs.gz +0 -0
- package/dist/gif-encoder-CRiBfHey.cjs +0 -2
- package/dist/gif-encoder-CRiBfHey.cjs.br +0 -0
- package/dist/gif-encoder-CRiBfHey.cjs.gz +0 -0
- package/dist/gif-encoder-VMF-AQBs.js +0 -2
- package/dist/gif-encoder-VMF-AQBs.js.br +0 -0
- package/dist/gif-encoder-VMF-AQBs.js.gz +0 -0
- package/dist/i18n-Bm1FdvTe.cjs.br +0 -0
- package/dist/i18n-Bm1FdvTe.cjs.gz +0 -0
- package/dist/i18n-vGMsvpN1.js.br +0 -0
- package/dist/i18n-vGMsvpN1.js.gz +0 -0
- package/dist/useViewerSettingsDialog-BOUxiopA.js.br +0 -0
- package/dist/useViewerSettingsDialog-BOUxiopA.js.gz +0 -0
- package/dist/useViewerSettingsDialog-DcPDeh0x.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-DcPDeh0x.cjs.gz +0 -0
- package/dist/viewer-BQ1S9vlK.cjs.br +0 -0
- package/dist/viewer-BQ1S9vlK.cjs.gz +0 -0
- package/dist/viewer-V75petIl.js.br +0 -0
- package/dist/viewer-V75petIl.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = require("./rolldown-runtime-DoYlGkYw.cjs"), t = require("./dist-CibSWF8c.cjs"), n = require("./useViewerSettingsDialog-
|
|
1
|
+
const e = require("./rolldown-runtime-DoYlGkYw.cjs"), t = require("./dist-CibSWF8c.cjs"), n = require("./useViewerSettingsDialog-BqgLhQyF.cjs"), o = require("./i18n-BnYMAeJt.cjs");
|
|
2
2
|
require("./i18n.cjs");
|
|
3
3
|
let a = require("vue"), r = require("lucide-vue-next"), l = require("clsx"), i = require("tailwind-merge");
|
|
4
4
|
var s = Symbol("pptx-viewer-theme");
|
|
@@ -340,7 +340,7 @@ var u = ["aria-label"], m = ["aria-label"], f = (0, a.defineComponent)({
|
|
|
340
340
|
"aria-pressed",
|
|
341
341
|
"data-testid",
|
|
342
342
|
"onClick"
|
|
343
|
-
], ee = { class: "pptx-vue-handout-master-panel__card" }, te = { class: "pptx-vue-handout-master-panel__heading" }, ne = ["value"], oe = {
|
|
343
|
+
], ee = { class: "pptx-vue-handout-master-panel__card" }, te = { class: "pptx-vue-handout-master-panel__heading" }, ne = ["aria-label", "value"], oe = {
|
|
344
344
|
key: 0,
|
|
345
345
|
class: "pptx-vue-handout-master-panel__card"
|
|
346
346
|
}, ae = { class: "pptx-vue-handout-master-panel__heading" }, re = { class: "pptx-vue-handout-master-panel__list" }, le = Z((0, a.defineComponent)({
|
|
@@ -370,7 +370,7 @@ var u = ["aria-label"], m = ["aria-label"], f = (0, a.defineComponent)({
|
|
|
370
370
|
}, (0, a.toDisplayString)(t), 11, Q)), 64))])]),
|
|
371
371
|
(0, a.createElementVNode)("section", ee, [(0, a.createElementVNode)("div", te, (0, a.toDisplayString)((0, a.unref)(r)("pptx.master.handoutBackground")), 1), (0, a.createElementVNode)("input", {
|
|
372
372
|
type: "color",
|
|
373
|
-
"aria-label":
|
|
373
|
+
"aria-label": (0, a.unref)(r)("pptx.master.backgroundColorLabel"),
|
|
374
374
|
class: "pptx-vue-handout-master-panel__swatch",
|
|
375
375
|
"data-testid": "handout-master-bg-swatch",
|
|
376
376
|
value: e.handoutMaster.backgroundColor ?? "#ffffff",
|
|
@@ -383,14 +383,14 @@ var u = ["aria-label"], m = ["aria-label"], f = (0, a.defineComponent)({
|
|
|
383
383
|
}, [n[1] || (n[1] = (0, a.createElementVNode)("span", { class: "pptx-vue-handout-master-panel__dot" }, null, -1)), (0, a.createTextVNode)(" " + (0, a.toDisplayString)(e.type), 1)]))), 128))])])) : (0, a.createCommentVNode)("", !0)
|
|
384
384
|
])) : ((0, a.openBlock)(), (0, a.createElementBlock)("div", G, (0, a.toDisplayString)((0, a.unref)(r)("pptx.master.noHandoutMaster")), 1));
|
|
385
385
|
}
|
|
386
|
-
}), [["__scopeId", "data-v-
|
|
386
|
+
}), [["__scopeId", "data-v-4ff26ddc"]]), ie = {
|
|
387
387
|
key: 0,
|
|
388
388
|
class: "pptx-vue-notes-master-panel__empty",
|
|
389
389
|
"data-testid": "notes-master-panel-empty"
|
|
390
390
|
}, se = {
|
|
391
391
|
key: 1,
|
|
392
392
|
class: "pptx-vue-notes-master-panel"
|
|
393
|
-
}, ce = { class: "pptx-vue-notes-master-panel__card" }, de = { class: "pptx-vue-notes-master-panel__heading" }, pe = ["value"], ue = { class: "pptx-vue-notes-master-panel__card" }, me = { class: "pptx-vue-notes-master-panel__heading" }, fe = {
|
|
393
|
+
}, ce = { class: "pptx-vue-notes-master-panel__card" }, de = { class: "pptx-vue-notes-master-panel__heading" }, pe = ["aria-label", "value"], ue = { class: "pptx-vue-notes-master-panel__card" }, me = { class: "pptx-vue-notes-master-panel__heading" }, fe = {
|
|
394
394
|
key: 0,
|
|
395
395
|
class: "pptx-vue-notes-master-panel__list"
|
|
396
396
|
}, ve = {
|
|
@@ -418,7 +418,7 @@ var u = ["aria-label"], m = ["aria-label"], f = (0, a.defineComponent)({
|
|
|
418
418
|
});
|
|
419
419
|
return (t, n) => e.notesMaster ? ((0, a.openBlock)(), (0, a.createElementBlock)("div", se, [(0, a.createElementVNode)("section", ce, [(0, a.createElementVNode)("div", de, (0, a.toDisplayString)((0, a.unref)(l)("pptx.notesMaster.background")), 1), (0, a.createElementVNode)("input", {
|
|
420
420
|
type: "color",
|
|
421
|
-
"aria-label":
|
|
421
|
+
"aria-label": (0, a.unref)(l)("pptx.master.backgroundColorLabel"),
|
|
422
422
|
class: "pptx-vue-notes-master-panel__swatch",
|
|
423
423
|
"data-testid": "notes-master-bg-swatch",
|
|
424
424
|
value: e.notesMaster.backgroundColor ?? "#ffffff",
|
|
@@ -429,7 +429,7 @@ var u = ["aria-label"], m = ["aria-label"], f = (0, a.defineComponent)({
|
|
|
429
429
|
"data-testid": "notes-master-placeholder"
|
|
430
430
|
}, [n[1] || (n[1] = (0, a.createElementVNode)("span", { class: "pptx-vue-notes-master-panel__dot pptx-vue-notes-master-panel__dot--notes" }, null, -1)), (0, a.createTextVNode)(" " + (0, a.toDisplayString)(e.label), 1)]))), 128))])) : ((0, a.openBlock)(), (0, a.createElementBlock)("div", ve, (0, a.toDisplayString)((0, a.unref)(l)("pptx.notesMaster.noPlaceholders")), 1))])])) : ((0, a.openBlock)(), (0, a.createElementBlock)("div", ie, (0, a.toDisplayString)((0, a.unref)(l)("pptx.notesMaster.empty")), 1));
|
|
431
431
|
}
|
|
432
|
-
}), [["__scopeId", "data-v-
|
|
432
|
+
}), [["__scopeId", "data-v-e175feb0"]]), xe = Symbol("pptx-vue-field-context");
|
|
433
433
|
function he() {
|
|
434
434
|
return (0, a.inject)(xe, void 0);
|
|
435
435
|
}
|
|
@@ -2497,10 +2497,10 @@ var at = { class: "pptx-vue-chart-chrome" }, rt = ["x"], lt = [
|
|
|
2497
2497
|
}), { displaySrc: d } = n.useColorChangeImage({
|
|
2498
2498
|
src: l,
|
|
2499
2499
|
clrChange: c
|
|
2500
|
-
});
|
|
2500
|
+
}), p = (0, a.computed)(() => t.interactive ? null : { pointerEvents: "none" });
|
|
2501
2501
|
return (t, n) => ((0, a.openBlock)(), (0, a.createElementBlock)("div", {
|
|
2502
2502
|
class: "pptx-vue-element pptx-vue-image",
|
|
2503
|
-
style: (0, a.normalizeStyle)(o.value),
|
|
2503
|
+
style: (0, a.normalizeStyle)([o.value, p.value]),
|
|
2504
2504
|
"data-element-id": e.element.id,
|
|
2505
2505
|
"data-pptx-element": e.interactive || e.marked ? "true" : void 0
|
|
2506
2506
|
}, [
|
|
@@ -2607,10 +2607,10 @@ var Gn = ["data-element-id", "data-pptx-element"], qn = [
|
|
|
2607
2607
|
})), x = (0, a.computed)(() => n.mediaFallbackVisual(v.value, {
|
|
2608
2608
|
hasPoster: Boolean(u.value),
|
|
2609
2609
|
missing: "media" === t.element.type && !0 === t.element.mediaMissing
|
|
2610
|
-
})), h = (0, a.computed)(() => n.mediaFallbackIcon(x.value, p.value)), y = (0, a.computed)(() => n.mediaFallbackLabelKey(x.value, p.value));
|
|
2610
|
+
})), h = (0, a.computed)(() => n.mediaFallbackIcon(x.value, p.value)), y = (0, a.computed)(() => n.mediaFallbackLabelKey(x.value, p.value)), b = (0, a.computed)(() => t.interactive ? null : { pointerEvents: "none" });
|
|
2611
2611
|
return (t, n) => ((0, a.openBlock)(), (0, a.createElementBlock)("div", {
|
|
2612
2612
|
class: "pptx-vue-element pptx-vue-media",
|
|
2613
|
-
style: (0, a.normalizeStyle)(s.value),
|
|
2613
|
+
style: (0, a.normalizeStyle)([s.value, b.value]),
|
|
2614
2614
|
"data-element-id": e.element.id,
|
|
2615
2615
|
"data-pptx-element": e.interactive || e.marked ? "true" : void 0
|
|
2616
2616
|
}, [d.value && "video" === p.value ? ((0, a.openBlock)(), (0, a.createElementBlock)("video", {
|
|
@@ -2670,7 +2670,7 @@ var Gn = ["data-element-id", "data-pptx-element"], qn = [
|
|
|
2670
2670
|
d: e
|
|
2671
2671
|
}, null, 8, ao))), 128))])) : (0, a.createCommentVNode)("", !0), y.value ? ((0, a.openBlock)(), (0, a.createElementBlock)("span", ro, (0, a.toDisplayString)((0, a.unref)(o)(y.value)), 1)) : (0, a.createCommentVNode)("", !0)], 8, no)) : (0, a.createCommentVNode)("", !0)], 12, Gn));
|
|
2672
2672
|
}
|
|
2673
|
-
}), [["__scopeId", "data-v-
|
|
2673
|
+
}), [["__scopeId", "data-v-94779499"]]), io = ["data-element-id"], so = {
|
|
2674
2674
|
key: 0,
|
|
2675
2675
|
class: "pptx-vue-equation-numbered"
|
|
2676
2676
|
}, co = {
|
|
@@ -3648,21 +3648,21 @@ var Gn = ["data-element-id", "data-pptx-element"], qn = [
|
|
|
3648
3648
|
if (!e) return i;
|
|
3649
3649
|
const t = e.colorTransform?.fillColors;
|
|
3650
3650
|
return t && t.length > 0 ? t : l[e.colorScheme ?? "colorful1"] ?? i;
|
|
3651
|
-
}), v = (0, a.computed)(() => c.value?.style ?? "flat"), g = (0, a.computed)(() => c.value?.chrome), x = (0, a.computed)(() => ke(o.element, o.zIndex)), h = (0, a.computed)(() => {
|
|
3651
|
+
}), v = (0, a.computed)(() => c.value?.style ?? "flat"), g = (0, a.computed)(() => c.value?.chrome), x = (0, a.computed)(() => ke(o.element, o.zIndex)), h = (0, a.computed)(() => o.interactive ? null : { pointerEvents: "none" }), y = (0, a.computed)(() => {
|
|
3652
3652
|
const e = g.value, t = {
|
|
3653
3653
|
width: "100%",
|
|
3654
3654
|
height: "100%"
|
|
3655
3655
|
};
|
|
3656
3656
|
return e ? (e.backgroundColor && (t.backgroundColor = e.backgroundColor), e.outlineColor && (t.border = `${e.outlineWidth ?? 1}px solid ${e.outlineColor}`), t) : t;
|
|
3657
|
-
}),
|
|
3657
|
+
}), b = (0, a.computed)(() => c.value?.drawingShapes ?? []), k = (0, a.computed)(() => b.value.length > 0), E = (0, a.computed)(() => {
|
|
3658
3658
|
const e = o.animationState?.build;
|
|
3659
3659
|
return "diagram" === e?.kind ? e : void 0;
|
|
3660
|
-
}),
|
|
3661
|
-
if (!
|
|
3662
|
-
const e = Math.ceil(
|
|
3663
|
-
return
|
|
3664
|
-
}),
|
|
3665
|
-
const e =
|
|
3660
|
+
}), S = (0, a.computed)(() => E.value ? n.revealedSmartArtNodeCount(d.value, E.value) : d.value.length), w = (0, a.computed)(() => void 0 !== E.value && S.value < d.value.length), C = (0, a.computed)(() => w.value ? d.value.slice(0, S.value) : d.value), B = (0, a.computed)(() => {
|
|
3661
|
+
if (!w.value || 0 === b.value.length) return b.value;
|
|
3662
|
+
const e = Math.ceil(S.value / Math.max(d.value.length, 1) * b.value.length);
|
|
3663
|
+
return b.value.slice(0, e);
|
|
3664
|
+
}), N = (0, a.computed)(() => {
|
|
3665
|
+
const e = b.value;
|
|
3666
3666
|
let t = Infinity, n = Infinity, o = -Infinity, a = -Infinity;
|
|
3667
3667
|
for (const r of e) r.x < t && (t = r.x), r.y < n && (n = r.y), r.x + r.width > o && (o = r.x + r.width), r.y + r.height > a && (a = r.y + r.height);
|
|
3668
3668
|
return Number.isFinite(t) || (t = 0, n = 0, o = 1, a = 1), {
|
|
@@ -3671,8 +3671,8 @@ var Gn = ["data-element-id", "data-pptx-element"], qn = [
|
|
|
3671
3671
|
width: o - t || 1,
|
|
3672
3672
|
height: a - n || 1
|
|
3673
3673
|
};
|
|
3674
|
-
}),
|
|
3675
|
-
const e =
|
|
3674
|
+
}), V = (0, a.computed)(() => {
|
|
3675
|
+
const e = B.value, { minX: t, minY: a } = N.value, r = function(e) {
|
|
3676
3676
|
return "intense" === e ? 2 : "moderate" === e ? 1.5 : 0;
|
|
3677
3677
|
}(v.value), l = f.value, i = n.textNodeIdsInRenderOrder(d.value);
|
|
3678
3678
|
let s = 0;
|
|
@@ -3703,21 +3703,21 @@ var Gn = ["data-element-id", "data-pptx-element"], qn = [
|
|
|
3703
3703
|
};
|
|
3704
3704
|
var y, b;
|
|
3705
3705
|
});
|
|
3706
|
-
}),
|
|
3706
|
+
}), D = (0, a.computed)(() => function(e) {
|
|
3707
3707
|
return "intense" === e ? "drop-shadow(0 2px 6px rgba(0,0,0,0.35))" : "moderate" === e ? "drop-shadow(0 1px 3px rgba(0,0,0,0.2))" : void 0;
|
|
3708
|
-
}(v.value)),
|
|
3709
|
-
if (
|
|
3708
|
+
}(v.value)), T = (0, a.computed)(() => {
|
|
3709
|
+
if (k.value || 0 === d.value.length) return;
|
|
3710
3710
|
const e = c.value;
|
|
3711
|
-
return n.computeSmartArtLayout(
|
|
3711
|
+
return n.computeSmartArtLayout(C.value, {
|
|
3712
3712
|
width: o.element.width,
|
|
3713
3713
|
height: o.element.height
|
|
3714
3714
|
}, f.value, v.value, o.element.id, e?.resolvedLayoutType, e?.layout, void 0, e?.layoutDefinition, e?.presLayoutVars);
|
|
3715
|
-
}),
|
|
3716
|
-
function
|
|
3717
|
-
|
|
3715
|
+
}), I = (0, a.computed)(() => 0 === d.value.length && !k.value), _ = n.injectSmartArtNodeEdit(), z = (0, a.computed)(() => Boolean(_?.canEdit())), P = (0, a.computed)(() => T.value ? n.nodeIdsInRenderOrder(d.value) : []), F = n.useSmartArtInlineEditState(), A = (0, a.ref)(null), M = (0, a.ref)(null), O = (0, a.ref)(null), { hoveredNodeId: L, hoveredNodeRect: R, onMouseMove: $, onMouseLeave: U } = n.useSmartArtHoverRect(A);
|
|
3716
|
+
function j(e) {
|
|
3717
|
+
$(e, O.value);
|
|
3718
3718
|
}
|
|
3719
|
-
const
|
|
3720
|
-
const e =
|
|
3719
|
+
const K = (0, a.computed)(() => {
|
|
3720
|
+
const e = R.value, t = A.value;
|
|
3721
3721
|
if (!e || !t) return;
|
|
3722
3722
|
const n = Math.max(0, t.clientWidth - 168), o = Math.max(0, t.clientHeight - 40);
|
|
3723
3723
|
return {
|
|
@@ -3727,55 +3727,55 @@ var Gn = ["data-element-id", "data-pptx-element"], qn = [
|
|
|
3727
3727
|
zIndex: 25
|
|
3728
3728
|
};
|
|
3729
3729
|
});
|
|
3730
|
-
function
|
|
3731
|
-
if (!
|
|
3732
|
-
const r = o.currentTarget, l =
|
|
3730
|
+
function H(e, t, o) {
|
|
3731
|
+
if (!z.value || !e) return;
|
|
3732
|
+
const r = o.currentTarget, l = A.value;
|
|
3733
3733
|
if (!r || !l) return;
|
|
3734
3734
|
const i = n.inlineEditorRect(r.getBoundingClientRect(), l.getBoundingClientRect());
|
|
3735
|
-
|
|
3736
|
-
|
|
3735
|
+
F.begin(e, t, i), (0, a.nextTick)(() => {
|
|
3736
|
+
M.value?.focus(), M.value?.select();
|
|
3737
3737
|
});
|
|
3738
3738
|
}
|
|
3739
|
-
function
|
|
3740
|
-
const e =
|
|
3741
|
-
e && t &&
|
|
3739
|
+
function Z() {
|
|
3740
|
+
const e = F.editingNodeId.value, t = c.value;
|
|
3741
|
+
e && t && _ && n.shouldCommitSmartArtNodeText(t, e, F.draft.value) && _.commit(o.element.id, e, F.draft.value), F.cancel();
|
|
3742
3742
|
}
|
|
3743
|
-
function
|
|
3744
|
-
e.stopPropagation(), "Enter" !== e.key || e.shiftKey ? "Escape" === e.key && (e.preventDefault(),
|
|
3743
|
+
function W(e) {
|
|
3744
|
+
e.stopPropagation(), "Enter" !== e.key || e.shiftKey ? "Escape" === e.key && (e.preventDefault(), F.cancel()) : (e.preventDefault(), Z());
|
|
3745
3745
|
}
|
|
3746
3746
|
return (n, l) => ((0, a.openBlock)(), (0, a.createElementBlock)("div", {
|
|
3747
3747
|
class: "pptx-vue-element pptx-vue-smartart",
|
|
3748
|
-
style: (0, a.normalizeStyle)(x.value),
|
|
3748
|
+
style: (0, a.normalizeStyle)([x.value, h.value]),
|
|
3749
3749
|
"data-element-id": e.element.id,
|
|
3750
3750
|
"data-pptx-element": o.interactive || o.marked ? "true" : void 0,
|
|
3751
3751
|
"aria-roledescription": "diagram"
|
|
3752
3752
|
}, [(0, a.createElementVNode)("div", {
|
|
3753
3753
|
ref_key: "rootEl",
|
|
3754
|
-
ref:
|
|
3754
|
+
ref: A,
|
|
3755
3755
|
class: "pptx-vue-smartart-chrome",
|
|
3756
|
-
style: (0, a.normalizeStyle)(
|
|
3756
|
+
style: (0, a.normalizeStyle)(y.value),
|
|
3757
3757
|
role: p.value ? "img" : void 0,
|
|
3758
3758
|
"aria-label": p.value?.label,
|
|
3759
|
-
onMousemove:
|
|
3760
|
-
onMouseleave: l[5] || (l[5] = (...e) => (0, a.unref)(
|
|
3759
|
+
onMousemove: j,
|
|
3760
|
+
onMouseleave: l[5] || (l[5] = (...e) => (0, a.unref)(U) && (0, a.unref)(U)(...e))
|
|
3761
3761
|
}, [
|
|
3762
|
-
|
|
3762
|
+
I.value ? ((0, a.openBlock)(), (0, a.createElementBlock)("div", La, (0, a.toDisplayString)((0, a.unref)(r)("pptx.smartArt.placeholder")), 1)) : k.value ? ((0, a.openBlock)(), (0, a.createElementBlock)("svg", {
|
|
3763
3763
|
key: 1,
|
|
3764
3764
|
class: "pptx-vue-smartart-svg",
|
|
3765
3765
|
"data-testid": o.interactive ? "smartart-drawing-shapes" : void 0,
|
|
3766
|
-
viewBox: `0 0 ${
|
|
3766
|
+
viewBox: `0 0 ${N.value.width} ${N.value.height}`,
|
|
3767
3767
|
preserveAspectRatio: "xMidYMid meet"
|
|
3768
|
-
}, [((0, a.openBlock)(!0), (0, a.createElementBlock)(a.Fragment, null, (0, a.renderList)(
|
|
3768
|
+
}, [((0, a.openBlock)(!0), (0, a.createElementBlock)(a.Fragment, null, (0, a.renderList)(V.value, (e) => ((0, a.openBlock)(), (0, a.createElementBlock)("g", {
|
|
3769
3769
|
key: e.key,
|
|
3770
|
-
class: (0, a.normalizeClass)({ "pptx-vue-smartart-editable":
|
|
3770
|
+
class: (0, a.normalizeClass)({ "pptx-vue-smartart-editable": z.value && e.nodeId }),
|
|
3771
3771
|
"data-node-id": e.nodeId,
|
|
3772
3772
|
"data-smartart-node-id": e.nodeId || void 0,
|
|
3773
|
-
tabindex:
|
|
3773
|
+
tabindex: z.value && e.nodeId ? 0 : void 0,
|
|
3774
3774
|
role: m(e.nodeId) ? "img" : void 0,
|
|
3775
3775
|
"aria-label": m(e.nodeId),
|
|
3776
|
-
style: (0, a.normalizeStyle)(
|
|
3777
|
-
onDblclick: (t) =>
|
|
3778
|
-
onKeydown: (0, a.withKeys)((0, a.withModifiers)((t) =>
|
|
3776
|
+
style: (0, a.normalizeStyle)(D.value ? { filter: D.value } : void 0),
|
|
3777
|
+
onDblclick: (t) => H(e.nodeId, e.text ?? "", t),
|
|
3778
|
+
onKeydown: (0, a.withKeys)((0, a.withModifiers)((t) => H(e.nodeId, e.text ?? "", t), ["prevent"]), ["enter"])
|
|
3779
3779
|
}, [
|
|
3780
3780
|
m(e.nodeId) ? ((0, a.openBlock)(), (0, a.createElementBlock)("title", Ua, (0, a.toDisplayString)(m(e.nodeId)), 1)) : (0, a.createCommentVNode)("", !0),
|
|
3781
3781
|
e.isEllipse ? ((0, a.openBlock)(), (0, a.createElementBlock)("ellipse", {
|
|
@@ -3812,32 +3812,32 @@ var Gn = ["data-element-id", "data-pptx-element"], qn = [
|
|
|
3812
3812
|
x: e.textX,
|
|
3813
3813
|
y: e.textY + t.y
|
|
3814
3814
|
}, (0, a.toDisplayString)(t.text), 9, Za))), 128))], 8, Ha)) : (0, a.createCommentVNode)("", !0)
|
|
3815
|
-
], 46, $a))), 128))], 8, Ra)) :
|
|
3815
|
+
], 46, $a))), 128))], 8, Ra)) : T.value ? ((0, a.openBlock)(), (0, a.createElementBlock)("svg", {
|
|
3816
3816
|
key: 2,
|
|
3817
3817
|
class: "pptx-vue-smartart-svg",
|
|
3818
|
-
viewBox:
|
|
3818
|
+
viewBox: T.value.viewBox,
|
|
3819
3819
|
preserveAspectRatio: "xMidYMid meet",
|
|
3820
|
-
"data-testid": o.interactive ? `smartart-${
|
|
3821
|
-
"data-layout-family":
|
|
3822
|
-
}, [((0, a.openBlock)(!0), (0, a.createElementBlock)(a.Fragment, null, (0, a.renderList)(
|
|
3820
|
+
"data-testid": o.interactive ? `smartart-${T.value.family}` : void 0,
|
|
3821
|
+
"data-layout-family": T.value.family
|
|
3822
|
+
}, [((0, a.openBlock)(!0), (0, a.createElementBlock)(a.Fragment, null, (0, a.renderList)(T.value.connectors, (e) => ((0, a.openBlock)(), (0, a.createElementBlock)("path", {
|
|
3823
3823
|
key: e.key,
|
|
3824
3824
|
d: e.d,
|
|
3825
3825
|
fill: "none",
|
|
3826
3826
|
stroke: "#94a3b8",
|
|
3827
3827
|
"stroke-width": "1.5",
|
|
3828
3828
|
opacity: "0.5"
|
|
3829
|
-
}, null, 8, Ga))), 128)), ((0, a.openBlock)(!0), (0, a.createElementBlock)(a.Fragment, null, (0, a.renderList)(
|
|
3829
|
+
}, null, 8, Ga))), 128)), ((0, a.openBlock)(!0), (0, a.createElementBlock)(a.Fragment, null, (0, a.renderList)(T.value.nodes, (e, t) => ((0, a.openBlock)(), (0, a.createElementBlock)("g", {
|
|
3830
3830
|
key: e.key,
|
|
3831
|
-
class: (0, a.normalizeClass)({ "pptx-vue-smartart-editable":
|
|
3832
|
-
"data-node-id":
|
|
3833
|
-
"data-smartart-node-id":
|
|
3834
|
-
tabindex:
|
|
3835
|
-
role: m(
|
|
3836
|
-
"aria-label": m(
|
|
3837
|
-
style: (0, a.normalizeStyle)(
|
|
3838
|
-
onDblclick: (n) =>
|
|
3839
|
-
onKeydown: (0, a.withKeys)((0, a.withModifiers)((n) =>
|
|
3840
|
-
}, [m(
|
|
3831
|
+
class: (0, a.normalizeClass)({ "pptx-vue-smartart-editable": z.value && P.value[t] }),
|
|
3832
|
+
"data-node-id": P.value[t],
|
|
3833
|
+
"data-smartart-node-id": P.value[t] || void 0,
|
|
3834
|
+
tabindex: z.value && P.value[t] ? 0 : void 0,
|
|
3835
|
+
role: m(P.value[t]) ? "img" : void 0,
|
|
3836
|
+
"aria-label": m(P.value[t]),
|
|
3837
|
+
style: (0, a.normalizeStyle)(T.value.shadowFilter ? { filter: T.value.shadowFilter } : void 0),
|
|
3838
|
+
onDblclick: (n) => H(P.value[t], e.text, n),
|
|
3839
|
+
onKeydown: (0, a.withKeys)((0, a.withModifiers)((n) => H(P.value[t], e.text, n), ["prevent"]), ["enter"])
|
|
3840
|
+
}, [m(P.value[t]) ? ((0, a.openBlock)(), (0, a.createElementBlock)("title", Xa, (0, a.toDisplayString)(m(P.value[t])), 1)) : (0, a.createCommentVNode)("", !0), "circle" === e.kind ? ((0, a.openBlock)(), (0, a.createElementBlock)(a.Fragment, { key: 1 }, [(0, a.createElementVNode)("circle", {
|
|
3841
3841
|
cx: e.cx,
|
|
3842
3842
|
cy: e.cy,
|
|
3843
3843
|
r: e.r,
|
|
@@ -3892,43 +3892,43 @@ var Gn = ["data-element-id", "data-pptx-element"], qn = [
|
|
|
3892
3892
|
x: e.textX,
|
|
3893
3893
|
y: e.textY + t.y
|
|
3894
3894
|
}, (0, a.toDisplayString)(t.text), 9, rr))), 128))], 8, ar)], 64))], 46, qa))), 128))], 8, Wa)) : (0, a.createCommentVNode)("", !0),
|
|
3895
|
-
|
|
3895
|
+
z.value && (0, a.unref)(L) && !(0, a.unref)(F).isEditing.value && (0, a.unref)(R) ? ((0, a.openBlock)(), (0, a.createElementBlock)("div", {
|
|
3896
3896
|
key: 3,
|
|
3897
3897
|
ref_key: "styleBarEl",
|
|
3898
|
-
ref:
|
|
3899
|
-
style: (0, a.normalizeStyle)(
|
|
3898
|
+
ref: O,
|
|
3899
|
+
style: (0, a.normalizeStyle)(K.value)
|
|
3900
3900
|
}, [(0, a.createVNode)(Aa, {
|
|
3901
3901
|
palette: f.value,
|
|
3902
3902
|
onPickFill: l[0] || (l[0] = (e) => function(e, n) {
|
|
3903
3903
|
const a = c.value;
|
|
3904
|
-
if (!a || !
|
|
3904
|
+
if (!a || !_) return;
|
|
3905
3905
|
const r = t.setSmartArtNodeStyle(a, e, { fillColor: n });
|
|
3906
|
-
r !== a &&
|
|
3907
|
-
}((0, a.unref)(
|
|
3906
|
+
r !== a && _.commitStyle?.(o.element.id, { smartArtData: r });
|
|
3907
|
+
}((0, a.unref)(L), e))
|
|
3908
3908
|
}, null, 8, ["palette"])], 4)) : (0, a.createCommentVNode)("", !0),
|
|
3909
|
-
(0, a.unref)(
|
|
3909
|
+
(0, a.unref)(F).isEditing.value && (0, a.unref)(F).rect.value ? (0, a.withDirectives)(((0, a.openBlock)(), (0, a.createElementBlock)("textarea", {
|
|
3910
3910
|
key: 4,
|
|
3911
3911
|
ref_key: "editorEl",
|
|
3912
|
-
ref:
|
|
3913
|
-
"onUpdate:modelValue": l[1] || (l[1] = (e) => (0, a.unref)(
|
|
3912
|
+
ref: M,
|
|
3913
|
+
"onUpdate:modelValue": l[1] || (l[1] = (e) => (0, a.unref)(F).draft.value = e),
|
|
3914
3914
|
class: "pptx-vue-smartart-node-editor",
|
|
3915
3915
|
spellcheck: "false",
|
|
3916
3916
|
"aria-label": (0, a.unref)(r)("pptx.smartArt.editNodeText"),
|
|
3917
3917
|
style: (0, a.normalizeStyle)({
|
|
3918
|
-
left: `${(0, a.unref)(
|
|
3919
|
-
top: `${(0, a.unref)(
|
|
3920
|
-
width: `${(0, a.unref)(
|
|
3921
|
-
height: `${(0, a.unref)(
|
|
3918
|
+
left: `${(0, a.unref)(F).rect.value.left}px`,
|
|
3919
|
+
top: `${(0, a.unref)(F).rect.value.top}px`,
|
|
3920
|
+
width: `${(0, a.unref)(F).rect.value.width}px`,
|
|
3921
|
+
height: `${(0, a.unref)(F).rect.value.height}px`
|
|
3922
3922
|
}),
|
|
3923
|
-
onKeydown:
|
|
3923
|
+
onKeydown: W,
|
|
3924
3924
|
onMousedown: l[2] || (l[2] = (0, a.withModifiers)(() => {}, ["stop"])),
|
|
3925
3925
|
onClick: l[3] || (l[3] = (0, a.withModifiers)(() => {}, ["stop"])),
|
|
3926
3926
|
onDblclick: l[4] || (l[4] = (0, a.withModifiers)(() => {}, ["stop"])),
|
|
3927
|
-
onBlur:
|
|
3928
|
-
}, null, 44, lr)), [[a.vModelText, (0, a.unref)(
|
|
3927
|
+
onBlur: Z
|
|
3928
|
+
}, null, 44, lr)), [[a.vModelText, (0, a.unref)(F).draft.value]]) : (0, a.createCommentVNode)("", !0)
|
|
3929
3929
|
], 44, Oa)], 12, Ma));
|
|
3930
3930
|
}
|
|
3931
|
-
}), [["__scopeId", "data-v-
|
|
3931
|
+
}), [["__scopeId", "data-v-30172818"]]), cr = (0, a.defineComponent)({
|
|
3932
3932
|
__name: "SmartArtHitTestWrapper",
|
|
3933
3933
|
props: {
|
|
3934
3934
|
element: {},
|
|
@@ -4219,16 +4219,16 @@ var vr = Z((0, a.defineComponent)({
|
|
|
4219
4219
|
tableStyleMap: {}
|
|
4220
4220
|
},
|
|
4221
4221
|
setup(e) {
|
|
4222
|
-
const t = e, o = (0, a.computed)(() => ke(t.element, t.zIndex)), r = (0, a.inject)(mr, void 0),
|
|
4222
|
+
const t = e, o = (0, a.computed)(() => ke(t.element, t.zIndex)), r = (0, a.computed)(() => t.interactive ? null : { pointerEvents: "none" }), l = (0, a.inject)(mr, void 0), i = (0, a.computed)(() => {
|
|
4223
4223
|
const e = t.element;
|
|
4224
4224
|
if ("table" !== e.type) return;
|
|
4225
4225
|
const n = e.tableData;
|
|
4226
4226
|
return n && n.rows.length > 0 ? n : void 0;
|
|
4227
|
-
}),
|
|
4228
|
-
const
|
|
4229
|
-
const e =
|
|
4227
|
+
}), s = (0, a.computed)(() => i.value?.rows.length ?? 0), c = (0, a.computed)(() => i.value?.columnWidths.length ?? 0), d = (0, a.computed)(() => (i.value?.columnWidths ?? []).map((e) => `${(100 * e).toFixed(2)}%`));
|
|
4228
|
+
const p = (0, a.computed)(() => {
|
|
4229
|
+
const e = i.value;
|
|
4230
4230
|
if (!e) return [];
|
|
4231
|
-
const o = t.element.id,
|
|
4231
|
+
const o = t.element.id, r = s.value, d = c.value, p = (u = l) ? (0, a.toValue)(u) : void 0;
|
|
4232
4232
|
var u;
|
|
4233
4233
|
const m = t.colorScheme ?? p?.colorScheme, f = t.tableStyleMap ?? p?.tableStyleMap, v = p?.fontScheme, g = m || f || v ? {
|
|
4234
4234
|
colorScheme: m,
|
|
@@ -4236,137 +4236,137 @@ var vr = Z((0, a.defineComponent)({
|
|
|
4236
4236
|
fontScheme: v
|
|
4237
4237
|
} : void 0;
|
|
4238
4238
|
return e.rows.map((t, a) => {
|
|
4239
|
-
const
|
|
4240
|
-
return t.cells.forEach((t,
|
|
4239
|
+
const l = [];
|
|
4240
|
+
return t.cells.forEach((t, i) => {
|
|
4241
4241
|
if (t.hMerge || t.vMerge) return;
|
|
4242
|
-
const
|
|
4243
|
-
...n.getTableCellBandStyle(e, a,
|
|
4242
|
+
const s = t.gridSpan && t.gridSpan > 1 ? t.gridSpan : void 0, c = t.rowSpan && t.rowSpan > 1 ? t.rowSpan : void 0, p = {
|
|
4243
|
+
...n.getTableCellBandStyle(e, a, i, r, d, g),
|
|
4244
4244
|
...n.cellStyleToCss(t.style)
|
|
4245
4245
|
};
|
|
4246
4246
|
void 0 === p.color && (p.color = n.DEFAULT_TEXT_COLOR);
|
|
4247
4247
|
const u = t.style ? function(e) {
|
|
4248
4248
|
return n.cellPatternFillCss(e);
|
|
4249
4249
|
}(t.style) : null, m = t, f = m.textRuns && m.textRuns.length > 0 ? m.textRuns : null;
|
|
4250
|
-
|
|
4251
|
-
key: `${o}-cell-${a}-${
|
|
4250
|
+
l.push({
|
|
4251
|
+
key: `${o}-cell-${a}-${i}`,
|
|
4252
4252
|
rowIndex: a,
|
|
4253
|
-
colIndex:
|
|
4254
|
-
colSpan:
|
|
4255
|
-
rowSpan:
|
|
4253
|
+
colIndex: i,
|
|
4254
|
+
colSpan: s,
|
|
4255
|
+
rowSpan: c,
|
|
4256
4256
|
style: p,
|
|
4257
4257
|
patternFill: u,
|
|
4258
4258
|
textRuns: f,
|
|
4259
4259
|
text: t.text || "\xA0",
|
|
4260
4260
|
diagonals: n.getCellDiagonalBorders(t.style, e, {
|
|
4261
4261
|
rowIndex: a,
|
|
4262
|
-
cellIndex:
|
|
4263
|
-
rowCount:
|
|
4262
|
+
cellIndex: i,
|
|
4263
|
+
rowCount: r,
|
|
4264
4264
|
columnCount: d
|
|
4265
4265
|
}, g)
|
|
4266
4266
|
});
|
|
4267
4267
|
}), {
|
|
4268
4268
|
key: `${o}-row-${a}`,
|
|
4269
4269
|
height: t.height && t.height > 0 ? t.height : void 0,
|
|
4270
|
-
cells:
|
|
4270
|
+
cells: l
|
|
4271
4271
|
};
|
|
4272
4272
|
});
|
|
4273
4273
|
});
|
|
4274
|
-
function
|
|
4274
|
+
function u(e) {
|
|
4275
4275
|
if (!e.patternFill) return e.style;
|
|
4276
4276
|
const t = { ...e.style };
|
|
4277
4277
|
return delete t.backgroundColor, delete t.background, e.patternFill.backgroundImage && (t.backgroundImage = e.patternFill.backgroundImage), e.patternFill.backgroundColor && (t.backgroundColor = e.patternFill.backgroundColor), t;
|
|
4278
4278
|
}
|
|
4279
|
-
function
|
|
4279
|
+
function m(e) {
|
|
4280
4280
|
return n.cellRunStyle(e);
|
|
4281
4281
|
}
|
|
4282
|
-
const
|
|
4283
|
-
function
|
|
4284
|
-
|
|
4282
|
+
const f = n.injectTableCellEdit(), v = n.injectTableSelection(), g = n.useTableCellSelection(() => t.element.id, () => i.value);
|
|
4283
|
+
function x(e) {
|
|
4284
|
+
v?.resizeColumns(t.element.id, e);
|
|
4285
4285
|
}
|
|
4286
|
-
function
|
|
4287
|
-
|
|
4286
|
+
function h(e, n) {
|
|
4287
|
+
v?.resizeRow(t.element.id, e, n);
|
|
4288
4288
|
}
|
|
4289
|
-
const
|
|
4290
|
-
function
|
|
4291
|
-
|
|
4289
|
+
const y = (0, a.ref)(null), b = (0, a.ref)(""), k = (0, a.ref)(null);
|
|
4290
|
+
function E(e) {
|
|
4291
|
+
k.value = e instanceof HTMLInputElement ? e : null;
|
|
4292
4292
|
}
|
|
4293
|
-
const
|
|
4294
|
-
function
|
|
4295
|
-
const t =
|
|
4293
|
+
const S = (0, a.computed)(() => t.interactive && (f?.canEdit() ?? !1));
|
|
4294
|
+
function w(e) {
|
|
4295
|
+
const t = y.value;
|
|
4296
4296
|
return null !== t && t.rowIndex === e.rowIndex && t.colIndex === e.colIndex;
|
|
4297
4297
|
}
|
|
4298
|
-
const
|
|
4299
|
-
function
|
|
4300
|
-
|
|
4298
|
+
const C = (0, a.ref)(null);
|
|
4299
|
+
function B(e) {
|
|
4300
|
+
b.value = " " === e.text ? "" : e.text, y.value = {
|
|
4301
4301
|
rowIndex: e.rowIndex,
|
|
4302
4302
|
colIndex: e.colIndex
|
|
4303
4303
|
};
|
|
4304
4304
|
}
|
|
4305
|
-
function
|
|
4306
|
-
const e =
|
|
4307
|
-
e && (
|
|
4305
|
+
function N() {
|
|
4306
|
+
const e = y.value;
|
|
4307
|
+
e && (y.value = null, f?.commit(t.element.id, e.rowIndex, e.colIndex, b.value));
|
|
4308
4308
|
}
|
|
4309
|
-
function
|
|
4310
|
-
e.stopPropagation(), "Enter" === e.key || "Tab" === e.key ? (e.preventDefault(),
|
|
4309
|
+
function V(e) {
|
|
4310
|
+
e.stopPropagation(), "Enter" === e.key || "Tab" === e.key ? (e.preventDefault(), N()) : "Escape" === e.key && (e.preventDefault(), y.value = null);
|
|
4311
4311
|
}
|
|
4312
|
-
let
|
|
4313
|
-
return (0, a.watch)(
|
|
4312
|
+
let D = null;
|
|
4313
|
+
return (0, a.watch)(y, (e) => {
|
|
4314
4314
|
e ? ((0, a.nextTick)(() => {
|
|
4315
|
-
const e =
|
|
4315
|
+
const e = k.value;
|
|
4316
4316
|
e && (e.focus(), e.select());
|
|
4317
|
-
}),
|
|
4317
|
+
}), D || (D = (e) => {
|
|
4318
4318
|
if ("mouse" === e.pointerType) return;
|
|
4319
|
-
const t =
|
|
4319
|
+
const t = k.value;
|
|
4320
4320
|
t && !t.contains(e.target) && t.blur();
|
|
4321
|
-
}, document.addEventListener("pointerdown",
|
|
4321
|
+
}, document.addEventListener("pointerdown", D, !0))) : D && (document.removeEventListener("pointerdown", D, !0), D = null);
|
|
4322
4322
|
}), (0, a.onBeforeUnmount)(() => {
|
|
4323
|
-
|
|
4324
|
-
}), (t,
|
|
4323
|
+
D && (document.removeEventListener("pointerdown", D, !0), D = null);
|
|
4324
|
+
}), (t, l) => i.value ? ((0, a.openBlock)(), (0, a.createElementBlock)("div", {
|
|
4325
4325
|
key: 0,
|
|
4326
4326
|
class: "pptx-vue-element pptx-vue-table",
|
|
4327
|
-
style: (0, a.normalizeStyle)(o.value),
|
|
4327
|
+
style: (0, a.normalizeStyle)([o.value, r.value]),
|
|
4328
4328
|
"data-element-id": e.element.id,
|
|
4329
4329
|
"data-pptx-element": e.interactive || e.marked ? "true" : void 0
|
|
4330
4330
|
}, [(0, a.createVNode)(vr, {
|
|
4331
|
-
"column-widths":
|
|
4332
|
-
editable:
|
|
4333
|
-
onResizeColumns:
|
|
4334
|
-
onResizeRow:
|
|
4331
|
+
"column-widths": i.value.columnWidths,
|
|
4332
|
+
editable: S.value,
|
|
4333
|
+
onResizeColumns: x,
|
|
4334
|
+
onResizeRow: h
|
|
4335
4335
|
}, {
|
|
4336
4336
|
default: (0, a.withCtx)(() => [(0, a.createElementVNode)("table", {
|
|
4337
4337
|
class: "pptx-vue-table__grid",
|
|
4338
4338
|
style: (0, a.normalizeStyle)({ fontFamily: (0, a.unref)(n.DEFAULT_FONT_FAMILY) })
|
|
4339
|
-
}, [
|
|
4339
|
+
}, [d.value.length > 0 ? ((0, a.openBlock)(), (0, a.createElementBlock)("colgroup", xr, [((0, a.openBlock)(!0), (0, a.createElementBlock)(a.Fragment, null, (0, a.renderList)(d.value, (t, n) => ((0, a.openBlock)(), (0, a.createElementBlock)("col", {
|
|
4340
4340
|
key: `${e.element.id}-col-${n}`,
|
|
4341
4341
|
style: (0, a.normalizeStyle)({ width: t })
|
|
4342
|
-
}, null, 4))), 128))])) : (0, a.createCommentVNode)("", !0), (0, a.createElementVNode)("tbody", null, [((0, a.openBlock)(!0), (0, a.createElementBlock)(a.Fragment, null, (0, a.renderList)(
|
|
4342
|
+
}, null, 4))), 128))])) : (0, a.createCommentVNode)("", !0), (0, a.createElementVNode)("tbody", null, [((0, a.openBlock)(!0), (0, a.createElementBlock)(a.Fragment, null, (0, a.renderList)(p.value, (e) => ((0, a.openBlock)(), (0, a.createElementBlock)("tr", {
|
|
4343
4343
|
key: e.key,
|
|
4344
4344
|
style: (0, a.normalizeStyle)(e.height ? { height: `${e.height}px` } : void 0)
|
|
4345
4345
|
}, [((0, a.openBlock)(!0), (0, a.createElementBlock)(a.Fragment, null, (0, a.renderList)(e.cells, (e) => ((0, a.openBlock)(), (0, a.createElementBlock)("td", {
|
|
4346
4346
|
key: e.key,
|
|
4347
4347
|
class: (0, a.normalizeClass)(["pptx-vue-table__cell", {
|
|
4348
|
-
"pptx-vue-table__cell--selected": (0, a.unref)(
|
|
4349
|
-
"pptx-vue-table__cell--in-selection": (0, a.unref)(
|
|
4350
|
-
"pptx-vue-table__cell--editable":
|
|
4348
|
+
"pptx-vue-table__cell--selected": (0, a.unref)(g).isCellSelected(e.rowIndex, e.colIndex),
|
|
4349
|
+
"pptx-vue-table__cell--in-selection": (0, a.unref)(g).isCellInSelection(e.rowIndex, e.colIndex) && !(0, a.unref)(g).isCellSelected(e.rowIndex, e.colIndex),
|
|
4350
|
+
"pptx-vue-table__cell--editable": S.value
|
|
4351
4351
|
}]),
|
|
4352
4352
|
colspan: e.colSpan,
|
|
4353
4353
|
rowspan: e.rowSpan,
|
|
4354
|
-
style: (0, a.normalizeStyle)(
|
|
4354
|
+
style: (0, a.normalizeStyle)(u(e)),
|
|
4355
4355
|
onPointerdown: (t) => function(e, t) {
|
|
4356
|
-
if ("mouse" === e.pointerType || !
|
|
4357
|
-
const n = e.timeStamp || Date.now(), o =
|
|
4358
|
-
if (o && o.rowIndex === t.rowIndex && o.colIndex === t.colIndex && n - o.time < 400) return
|
|
4359
|
-
|
|
4356
|
+
if ("mouse" === e.pointerType || !S.value) return;
|
|
4357
|
+
const n = e.timeStamp || Date.now(), o = C.value;
|
|
4358
|
+
if (o && o.rowIndex === t.rowIndex && o.colIndex === t.colIndex && n - o.time < 400) return C.value = null, e.stopPropagation(), void B(t);
|
|
4359
|
+
C.value = {
|
|
4360
4360
|
rowIndex: t.rowIndex,
|
|
4361
4361
|
colIndex: t.colIndex,
|
|
4362
4362
|
time: n
|
|
4363
4363
|
};
|
|
4364
4364
|
}(t, e),
|
|
4365
4365
|
onClick: (t) => function(e, t) {
|
|
4366
|
-
|
|
4366
|
+
S.value && (e.stopPropagation(), g.selectCell(t.rowIndex, t.colIndex, e.shiftKey));
|
|
4367
4367
|
}(t, e),
|
|
4368
4368
|
onDblclick: (t) => function(e, t) {
|
|
4369
|
-
|
|
4369
|
+
S.value && (e.stopPropagation(), B(t));
|
|
4370
4370
|
}(t, e)
|
|
4371
4371
|
}, [e.diagonals ? ((0, a.openBlock)(), (0, a.createElementBlock)("svg", yr, [e.diagonals.diagDownColor && e.diagonals.diagDownWidth ? ((0, a.openBlock)(), (0, a.createElementBlock)("line", {
|
|
4372
4372
|
key: 0,
|
|
@@ -4384,28 +4384,28 @@ var vr = Z((0, a.defineComponent)({
|
|
|
4384
4384
|
y2: "0",
|
|
4385
4385
|
stroke: e.diagonals.diagUpColor,
|
|
4386
4386
|
"stroke-width": e.diagonals.diagUpWidth
|
|
4387
|
-
}, null, 8, kr)) : (0, a.createCommentVNode)("", !0)])) : (0, a.createCommentVNode)("", !0),
|
|
4387
|
+
}, null, 8, kr)) : (0, a.createCommentVNode)("", !0)])) : (0, a.createCommentVNode)("", !0), w(e) ? (0, a.withDirectives)(((0, a.openBlock)(), (0, a.createElementBlock)("input", {
|
|
4388
4388
|
key: 1,
|
|
4389
4389
|
ref_for: !0,
|
|
4390
|
-
ref:
|
|
4391
|
-
"onUpdate:modelValue":
|
|
4390
|
+
ref: E,
|
|
4391
|
+
"onUpdate:modelValue": l[0] || (l[0] = (e) => b.value = e),
|
|
4392
4392
|
type: "text",
|
|
4393
4393
|
class: "pptx-vue-table__cell-input",
|
|
4394
|
-
onPointerdown:
|
|
4395
|
-
onMousedown:
|
|
4396
|
-
onClick:
|
|
4397
|
-
onDblclick:
|
|
4398
|
-
onBlur:
|
|
4399
|
-
onKeydown:
|
|
4400
|
-
}, null, 544)), [[a.vModelText,
|
|
4394
|
+
onPointerdown: l[1] || (l[1] = (0, a.withModifiers)(() => {}, ["stop"])),
|
|
4395
|
+
onMousedown: l[2] || (l[2] = (0, a.withModifiers)(() => {}, ["stop"])),
|
|
4396
|
+
onClick: l[3] || (l[3] = (0, a.withModifiers)(() => {}, ["stop"])),
|
|
4397
|
+
onDblclick: l[4] || (l[4] = (0, a.withModifiers)(() => {}, ["stop"])),
|
|
4398
|
+
onBlur: N,
|
|
4399
|
+
onKeydown: V
|
|
4400
|
+
}, null, 544)), [[a.vModelText, b.value]]) : e.textRuns ? ((0, a.openBlock)(!0), (0, a.createElementBlock)(a.Fragment, { key: 2 }, (0, a.renderList)(e.textRuns, (t, n) => ((0, a.openBlock)(), (0, a.createElementBlock)(a.Fragment, { key: `${e.key}-run-${n}` }, [t.isParagraphBreak ? ((0, a.openBlock)(), (0, a.createElementBlock)("div", Er)) : t.isLineBreak ? ((0, a.openBlock)(), (0, a.createElementBlock)("br", Sr)) : ((0, a.openBlock)(), (0, a.createElementBlock)("span", {
|
|
4401
4401
|
key: 2,
|
|
4402
4402
|
class: "pptx-vue-table__run",
|
|
4403
|
-
style: (0, a.normalizeStyle)(
|
|
4403
|
+
style: (0, a.normalizeStyle)(m(t))
|
|
4404
4404
|
}, (0, a.toDisplayString)(t.text), 5))], 64))), 128)) : ((0, a.openBlock)(), (0, a.createElementBlock)("span", wr, (0, a.toDisplayString)(e.text), 1))], 46, hr))), 128))], 4))), 128))])], 4)]),
|
|
4405
4405
|
_: 1
|
|
4406
4406
|
}, 8, ["column-widths", "editable"])], 12, gr)) : (0, a.createCommentVNode)("", !0);
|
|
4407
4407
|
}
|
|
4408
|
-
}), [["__scopeId", "data-v-
|
|
4408
|
+
}), [["__scopeId", "data-v-5d79a985"]]), Nr = [
|
|
4409
4409
|
"width",
|
|
4410
4410
|
"height",
|
|
4411
4411
|
"viewBox"
|
|
@@ -4673,13 +4673,13 @@ var Mr = [
|
|
|
4673
4673
|
}), g = (0, a.computed)(() => "text" === o.element.type || "shape" === o.element.type), x = (0, a.computed)(() => "picture" === o.element.type || "image" === o.element.type), h = (0, a.computed)(() => t.hasTextProperties(o.element) && (o.element.textSegments ?? []).some((e) => e.equationXml)), y = (0, a.computed)(() => n.hasTextWarp(o.element)), b = (0, a.computed)(() => {
|
|
4674
4674
|
return n.getOverflowSegments(o.element, (e = i) ? (0, a.toValue)(e) : void 0);
|
|
4675
4675
|
var e;
|
|
4676
|
-
}), k = (0, a.computed)(() => n.buildParagraphs(o.element, ye(l), b.value)), E = (0, a.computed)(() => k.value.some((e) => e.runs.length > 0 || void 0 !== e.bulletMarker)), S = (0, a.computed)(() => o.templateEditing ? "pptx-vue-template-editing" : null), w = (0, a.computed)(() => o.interactive || o.marked ? "true" : void 0), C = (0, a.computed)(() => n.isElementRendered(o.element));
|
|
4676
|
+
}), k = (0, a.computed)(() => n.buildParagraphs(o.element, ye(l), b.value)), E = (0, a.computed)(() => k.value.some((e) => e.runs.length > 0 || void 0 !== e.bulletMarker)), S = (0, a.computed)(() => o.templateEditing ? "pptx-vue-template-editing" : null), w = (0, a.computed)(() => o.interactive || o.marked ? "true" : void 0), C = (0, a.computed)(() => o.interactive ? null : { pointerEvents: "none" }), B = (0, a.computed)(() => n.isElementRendered(o.element));
|
|
4677
4677
|
return (t, n) => {
|
|
4678
4678
|
const o = (0, a.resolveComponent)("ElementRenderer", !0);
|
|
4679
|
-
return
|
|
4679
|
+
return B.value ? "group" === e.element.type ? ((0, a.openBlock)(), (0, a.createElementBlock)("div", {
|
|
4680
4680
|
key: 1,
|
|
4681
4681
|
class: (0, a.normalizeClass)(["pptx-vue-element pptx-vue-group", S.value]),
|
|
4682
|
-
style: (0, a.normalizeStyle)(d.value),
|
|
4682
|
+
style: (0, a.normalizeStyle)([d.value, C.value]),
|
|
4683
4683
|
"data-element-id": e.element.id,
|
|
4684
4684
|
"data-pptx-element": w.value
|
|
4685
4685
|
}, [((0, a.openBlock)(!0), (0, a.createElementBlock)(a.Fragment, null, (0, a.renderList)(e.element.children ?? [], (t, n) => ((0, a.openBlock)(), (0, a.createBlock)(o, {
|
|
@@ -4858,7 +4858,7 @@ var Mr = [
|
|
|
4858
4858
|
])) : g.value ? ((0, a.openBlock)(), (0, a.createElementBlock)("div", {
|
|
4859
4859
|
key: 14,
|
|
4860
4860
|
class: (0, a.normalizeClass)(["pptx-vue-element pptx-vue-shape", S.value]),
|
|
4861
|
-
style: (0, a.normalizeStyle)(m.value),
|
|
4861
|
+
style: (0, a.normalizeStyle)([m.value, C.value]),
|
|
4862
4862
|
"data-element-id": e.element.id,
|
|
4863
4863
|
"data-pptx-element": w.value
|
|
4864
4864
|
}, [
|
|
@@ -4888,7 +4888,7 @@ var Mr = [
|
|
|
4888
4888
|
], 14, Wr)) : ((0, a.openBlock)(), (0, a.createElementBlock)("div", {
|
|
4889
4889
|
key: 15,
|
|
4890
4890
|
class: (0, a.normalizeClass)(["pptx-vue-element pptx-vue-unsupported", S.value]),
|
|
4891
|
-
style: (0, a.normalizeStyle)(d.value),
|
|
4891
|
+
style: (0, a.normalizeStyle)([d.value, C.value]),
|
|
4892
4892
|
"data-element-id": e.element.id,
|
|
4893
4893
|
"data-pptx-element": w.value
|
|
4894
4894
|
}, [(0, a.createElementVNode)("div", qr, (0, a.toDisplayString)(e.element.type), 1)], 14, Gr)) : ((0, a.openBlock)(), (0, a.createElementBlock)(a.Fragment, { key: 0 }, [], 64));
|
|
@@ -6192,7 +6192,7 @@ var Hi = ["disabled", "title"], Zi = ["disabled", "title"], Wi = ["title"], Gi =
|
|
|
6192
6192
|
(0, a.createElementVNode)("span", ns, (0, a.toDisplayString)(t.drawingWidth), 1)
|
|
6193
6193
|
], 8, es)])], 64));
|
|
6194
6194
|
}
|
|
6195
|
-
}), as = "2.17.
|
|
6195
|
+
}), as = "2.17.2", rs = Symbol("pptx-account-auth");
|
|
6196
6196
|
var ls = { class: "pptx-vue-account mt-8 flex max-w-[760px] flex-col gap-6" }, is = { class: "pptx-vue-account-section border border-border bg-card p-6 text-card-foreground" }, ss = { class: "text-base font-semibold" }, cs = { class: "mt-4 flex items-center gap-4" }, ds = { class: "min-w-0 flex-1" }, ps = { class: "block text-xs font-medium text-muted-foreground" }, us = ["value", "placeholder"], ms = { class: "mt-4" }, fs = { class: "block text-xs font-medium text-muted-foreground" }, vs = { class: "mt-2 flex gap-2" }, gs = [
|
|
6197
6197
|
"aria-pressed",
|
|
6198
6198
|
"aria-label",
|
|
@@ -33559,7 +33559,7 @@ var I4 = Z((0, a.defineComponent)({
|
|
|
33559
33559
|
var o;
|
|
33560
33560
|
}), 128))])], 8, E3))), 128))])) : ((0, a.openBlock)(), (0, a.createElementBlock)("div", h3, [(0, a.createElementVNode)("p", y3, (0, a.toDisplayString)((0, a.unref)(l)("pptx.accessibility.noIssuesFound")), 1), (0, a.createElementVNode)("p", b3, (0, a.toDisplayString)((0, a.unref)(l)("pptx.accessibility.noIssuesHint")), 1)]))], 8, f3));
|
|
33561
33561
|
}
|
|
33562
|
-
}), _3 = (0, a.defineAsyncComponent)(() => Promise.resolve().then(() => require("./AiChatPanel-
|
|
33562
|
+
}), _3 = (0, a.defineAsyncComponent)(() => Promise.resolve().then(() => require("./AiChatPanel-EbvAnB-f.cjs"))), z3 = { class: "pptx-vue-custom-shows flex flex-col gap-2 p-2.5 text-xs text-foreground" }, P3 = { class: "pptx-vue-cs-header flex items-center" }, F3 = { class: "pptx-vue-cs-title m-0 text-[13px] font-semibold" }, A3 = { class: "pptx-vue-cs-list-row flex items-center gap-1.5" }, M3 = ["aria-label", "value"], O3 = {
|
|
33563
33563
|
key: 0,
|
|
33564
33564
|
value: "",
|
|
33565
33565
|
disabled: ""
|