pptx-vanilla-viewer 3.0.0 → 3.1.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.
@@ -1,4 +1,4 @@
1
- 'use strict';var chunk3JOXWH72_cjs=require('./chunk-3JOXWH72.cjs');var R="data-pptx-text-style-override";function z(n,o,r){chunk3JOXWH72_cjs.Jr(n.ownerDocument,o,r?.textStyle);let a=chunk3JOXWH72_cjs.fd(o,r?.textStyle),e=n.querySelector(`:scope > style[${R}]`);if(!a){e?.remove();return}e||(e=n.ownerDocument.createElement("style"),e.setAttribute(R,""),n.prepend(e)),e.textContent=a;}var w="pptx-vanilla-presentation-keyframes",k="pptx-vanilla-slide-keyframes";function K(n){if(n.getElementById(w))return;let o=n.createElement("style");o.id=w,o.textContent=`${chunk3JOXWH72_cjs.yc}
2
- ${chunk3JOXWH72_cjs.Mh}
3
- ${chunk3JOXWH72_cjs.fm}`,(n.head??n.documentElement).appendChild(o);}function X(n,o){let r=n.getElementById(k);if(!o){r?.remove();return}r||(r=n.createElement("style"),r.id=k,(n.head??n.documentElement).appendChild(r)),r.textContent=o;}function Z(n,o,r,a){n.querySelectorAll("[data-element-id]").forEach(e=>{let t=e.dataset.elementId;if(!t)return;let i=o.get(t);e.style.animation=i?.cssAnimation??"",e.style.visibility=i?.visible===false?"hidden":"",e.style.cursor=r.has(t)||a.has(t)?"pointer":"",z(e,t,i);}),n.querySelectorAll("[data-anim-id]").forEach(e=>{let t=e.dataset.animId;if(!t)return;let i=o.get(t);e.style.animation=i?.cssAnimation??"",e.style.visibility=i?.visible===false?"hidden":"";});}function M(n,o,r,a,e){let t=n.createElement("div");t.className="pptxv-transition-layer",t.dataset.pptxTransitionLayer=e,t.dataset.pptxTransitionFragments=r.keyframesName,t.style.position="absolute",t.style.inset="0",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex=String(a);for(let i of r.fragments)t.appendChild(B(n,o,r,i));return t}function B(n,o,r,a){let e=n.createElement("div");e.dataset.pptxTransitionFragment=a.id,e.style.position="absolute",e.style.inset="0",e.style.clipPath=a.clipPath,e.style.transformOrigin=a.transformOrigin,e.style.animationName=r.keyframesName,e.style.animationDuration=`${r.durationMs}ms`,e.style.animationTimingFunction=r.easing,e.style.animationDelay=`${a.delayMs}ms`,e.style.animationFillMode="forwards",e.style.willChange="transform, opacity";for(let[t,i]of Object.entries(a.vars))e.style.setProperty(t,i);return e.appendChild(o.cloneNode(true)),e}function u(n,o,r,a,e){let t=n.createElement("div");return t.className="pptxv-transition-layer",t.dataset.pptxTransitionLayer=e,t.style.position="absolute",t.style.inset="0",t.style.overflow="hidden",t.style.zIndex=String(r),t.style.willChange="transform, opacity, clip-path, filter",a!=="none"&&(t.style.animation=a),t.appendChild(o),t}function T(n,o){n.style.background="none",n.style.backgroundColor="transparent";let r=new Set(o),a=new Set;for(let e of n.querySelectorAll("[data-element-id]")){let t=e.dataset.elementId;if(!(t===void 0||!r.has(t))){for(let i=e;i&&i!==n;)a.add(i),i=i.parentElement;for(let i of e.querySelectorAll("[data-element-id]"))a.add(i);}}for(let e of [...n.querySelectorAll("[data-element-id]")])a.has(e)||e.remove();return n}function q(n,o,r,a){return (a?.crossfadeGroups??[]).map((e,t)=>{let i=n.createElement("div");i.dataset.pptxMorphCrossfade=e.incoming.id,i.style.cssText=chunk3JOXWH72_cjs.ig,i.style.zIndex=String(4+t);let m=(p,l,s,y,g)=>{let d=u(n,T(p,[l]),y,g??"none",s);return s==="outgoing"?d.dataset.pptxMorphOutgoing="true":d.dataset.pptxMorphLifted="true",d.style.mixBlendMode=chunk3JOXWH72_cjs.jg,d};return i.append(m(o.cloneNode(true),e.outgoing.id,"outgoing",0,e.outgoingAnimation),m(r.cloneNode(true),e.incoming.id,"lifted",1,e.incomingAnimation)),i})}function se(n){let{doc:o,stageWrap:r,outgoing:a,incoming:e,transition:t}=n;K(o);let i=chunk3JOXWH72_cjs.Ph(t),m=chunk3JOXWH72_cjs.Qh(t),p=chunk3JOXWH72_cjs.Kh(t.type,m,t.direction,t.spokes,t.pattern),l=o.createElement("div");l.className="pptxv-transition-overlay",l.dataset.pptxTransitionOverlay="",l.dataset.pptxTransitionOverlay="",l.style.position="absolute",l.style.inset="0",l.style.overflow="hidden",l.style.pointerEvents="none",l.style.zIndex="30";let s=t.type==="morph"?chunk3JOXWH72_cjs.lg(n.outgoingSlide,n.incomingSlide,m,chunk3JOXWH72_cjs.kg(t.morphOption)):void 0,y=s||i.outgoingOnTop?2:1,g=s||i.outgoingOnTop?1:2,d=!s&&p?.outgoing?M(o,a,p.outgoing,y,"outgoing"):u(o,a,y,s?"none":i.outgoing,"outgoing"),x=!s&&p?.incoming?M(o,e,p.incoming,g,"incoming"):u(o,e,g,s?"none":i.incoming,"incoming"),S=s&&s.overlayIncomingElements.length>0?T(e.cloneNode(true),s.overlayIncomingElements.map(c=>c.id)):void 0,f=S?u(o,S,3,"none","lifted"):void 0,$=q(o,a,e,s);if(s){x.dataset.pptxMorphIncoming="true",d.dataset.pptxMorphOutgoing="true",T(a,s.outgoingElements.map(Y=>Y.id)),f&&(f.dataset.pptxMorphLifted="true");let c=o.createElement("style");c.textContent=[chunk3JOXWH72_cjs.mg(s,"data-pptx-morph-incoming","incoming"),chunk3JOXWH72_cjs.mg(s,"data-pptx-morph-outgoing","outgoing"),chunk3JOXWH72_cjs.mg(s,"data-pptx-morph-lifted","lifted")].join(`
1
+ 'use strict';var chunkNVO6GK3B_cjs=require('./chunk-NVO6GK3B.cjs');var R="data-pptx-text-style-override";function z(n,o,r){chunkNVO6GK3B_cjs.Qr(n.ownerDocument,o,r?.textStyle);let a=chunkNVO6GK3B_cjs.fd(o,r?.textStyle),e=n.querySelector(`:scope > style[${R}]`);if(!a){e?.remove();return}e||(e=n.ownerDocument.createElement("style"),e.setAttribute(R,""),n.prepend(e)),e.textContent=a;}var w="pptx-vanilla-presentation-keyframes",k="pptx-vanilla-slide-keyframes";function K(n){if(n.getElementById(w))return;let o=n.createElement("style");o.id=w,o.textContent=`${chunkNVO6GK3B_cjs.yc}
2
+ ${chunkNVO6GK3B_cjs.Sh}
3
+ ${chunkNVO6GK3B_cjs.nm}`,(n.head??n.documentElement).appendChild(o);}function X(n,o){let r=n.getElementById(k);if(!o){r?.remove();return}r||(r=n.createElement("style"),r.id=k,(n.head??n.documentElement).appendChild(r)),r.textContent=o;}function Z(n,o,r,a){n.querySelectorAll("[data-element-id]").forEach(e=>{let t=e.dataset.elementId;if(!t)return;let i=o.get(t);e.style.animation=i?.cssAnimation??"",e.style.visibility=i?.visible===false?"hidden":"",e.style.cursor=r.has(t)||a.has(t)?"pointer":"",z(e,t,i);}),n.querySelectorAll("[data-anim-id]").forEach(e=>{let t=e.dataset.animId;if(!t)return;let i=o.get(t);e.style.animation=i?.cssAnimation??"",e.style.visibility=i?.visible===false?"hidden":"";});}function M(n,o,r,a,e){let t=n.createElement("div");t.className="pptxv-transition-layer",t.dataset.pptxTransitionLayer=e,t.dataset.pptxTransitionFragments=r.keyframesName,t.style.position="absolute",t.style.inset="0",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex=String(a);for(let i of r.fragments)t.appendChild(B(n,o,r,i));return t}function B(n,o,r,a){let e=n.createElement("div");e.dataset.pptxTransitionFragment=a.id,e.style.position="absolute",e.style.inset="0",e.style.clipPath=a.clipPath,e.style.transformOrigin=a.transformOrigin,e.style.animationName=r.keyframesName,e.style.animationDuration=`${r.durationMs}ms`,e.style.animationTimingFunction=r.easing,e.style.animationDelay=`${a.delayMs}ms`,e.style.animationFillMode="forwards",e.style.willChange="transform, opacity";for(let[t,i]of Object.entries(a.vars))e.style.setProperty(t,i);return e.appendChild(o.cloneNode(true)),e}function u(n,o,r,a,e){let t=n.createElement("div");return t.className="pptxv-transition-layer",t.dataset.pptxTransitionLayer=e,t.style.position="absolute",t.style.inset="0",t.style.overflow="hidden",t.style.zIndex=String(r),t.style.willChange="transform, opacity, clip-path, filter",a!=="none"&&(t.style.animation=a),t.appendChild(o),t}function T(n,o){n.style.background="none",n.style.backgroundColor="transparent";let r=new Set(o),a=new Set;for(let e of n.querySelectorAll("[data-element-id]")){let t=e.dataset.elementId;if(!(t===void 0||!r.has(t))){for(let i=e;i&&i!==n;)a.add(i),i=i.parentElement;for(let i of e.querySelectorAll("[data-element-id]"))a.add(i);}}for(let e of [...n.querySelectorAll("[data-element-id]")])a.has(e)||e.remove();return n}function q(n,o,r,a){return (a?.crossfadeGroups??[]).map((e,t)=>{let i=n.createElement("div");i.dataset.pptxMorphCrossfade=e.incoming.id,i.style.cssText=chunkNVO6GK3B_cjs.ig,i.style.zIndex=String(4+t);let m=(p,l,s,y,g)=>{let d=u(n,T(p,[l]),y,g??"none",s);return s==="outgoing"?d.dataset.pptxMorphOutgoing="true":d.dataset.pptxMorphLifted="true",d.style.mixBlendMode=chunkNVO6GK3B_cjs.jg,d};return i.append(m(o.cloneNode(true),e.outgoing.id,"outgoing",0,e.outgoingAnimation),m(r.cloneNode(true),e.incoming.id,"lifted",1,e.incomingAnimation)),i})}function se(n){let{doc:o,stageWrap:r,outgoing:a,incoming:e,transition:t}=n;K(o);let i=chunkNVO6GK3B_cjs.Vh(t),m=chunkNVO6GK3B_cjs.Wh(t),p=chunkNVO6GK3B_cjs.Qh(t.type,m,t.direction,t.spokes,t.pattern),l=o.createElement("div");l.className="pptxv-transition-overlay",l.dataset.pptxTransitionOverlay="",l.dataset.pptxTransitionOverlay="",l.style.position="absolute",l.style.inset="0",l.style.overflow="hidden",l.style.pointerEvents="none",l.style.zIndex="30";let s=t.type==="morph"?chunkNVO6GK3B_cjs.lg(n.outgoingSlide,n.incomingSlide,m,chunkNVO6GK3B_cjs.kg(t.morphOption)):void 0,y=s||i.outgoingOnTop?2:1,g=s||i.outgoingOnTop?1:2,d=!s&&p?.outgoing?M(o,a,p.outgoing,y,"outgoing"):u(o,a,y,s?"none":i.outgoing,"outgoing"),x=!s&&p?.incoming?M(o,e,p.incoming,g,"incoming"):u(o,e,g,s?"none":i.incoming,"incoming"),S=s&&s.overlayIncomingElements.length>0?T(e.cloneNode(true),s.overlayIncomingElements.map(c=>c.id)):void 0,f=S?u(o,S,3,"none","lifted"):void 0,$=q(o,a,e,s);if(s){x.dataset.pptxMorphIncoming="true",d.dataset.pptxMorphOutgoing="true",T(a,s.outgoingElements.map(Y=>Y.id)),f&&(f.dataset.pptxMorphLifted="true");let c=o.createElement("style");c.textContent=[chunkNVO6GK3B_cjs.mg(s,"data-pptx-morph-incoming","incoming"),chunkNVO6GK3B_cjs.mg(s,"data-pptx-morph-outgoing","outgoing"),chunkNVO6GK3B_cjs.mg(s,"data-pptx-morph-lifted","lifted")].join(`
4
4
  `),l.appendChild(c);}l.append(d,x),f&&l.appendChild(f);for(let c of $)l.appendChild(c);r.appendChild(l);let h=false,v=()=>{h||(h=true,clearTimeout(G),l.remove(),n.onDone());},G=setTimeout(v,Math.max(0,m)+50);return v}exports.a=K;exports.b=X;exports.c=Z;exports.d=se;
package/dist/i18n/de.cjs CHANGED
@@ -1367,6 +1367,8 @@ var translations8 = {
1367
1367
  "pptx.collaboration.userCount": "{{count}} Nutzer",
1368
1368
  "pptx.collaboration.youLabel": "{{name}} (Sie)",
1369
1369
  "pptx.collaboration.usersConnected": "{{count}} verbundener Nutzer",
1370
+ "pptx.collaboration.editable": "Bearbeitbar",
1371
+ "pptx.collaboration.shellStatusLabel": "Status der Zusammenarbeit",
1370
1372
  "pptx.collaboration.moreUsers": "{{count}} weitere Nutzer",
1371
1373
  "pptx.collaboration.onePersonHere": "1 Person hier",
1372
1374
  "pptx.collaboration.peopleHere": "{{count}} Leute hier",
package/dist/i18n/de.mjs CHANGED
@@ -1341,6 +1341,8 @@ var translations8 = {
1341
1341
  "pptx.collaboration.userCount": "{{count}} Nutzer",
1342
1342
  "pptx.collaboration.youLabel": "{{name}} (Sie)",
1343
1343
  "pptx.collaboration.usersConnected": "{{count}} verbundener Nutzer",
1344
+ "pptx.collaboration.editable": "Bearbeitbar",
1345
+ "pptx.collaboration.shellStatusLabel": "Status der Zusammenarbeit",
1344
1346
  "pptx.collaboration.moreUsers": "{{count}} weitere Nutzer",
1345
1347
  "pptx.collaboration.onePersonHere": "1 Person hier",
1346
1348
  "pptx.collaboration.peopleHere": "{{count}} Leute hier",
package/dist/i18n/es.cjs CHANGED
@@ -1367,6 +1367,8 @@ var translations8 = {
1367
1367
  "pptx.collaboration.userCount": "{{count}} usuario(s)",
1368
1368
  "pptx.collaboration.youLabel": "{{name}} (t\xFA)",
1369
1369
  "pptx.collaboration.usersConnected": "{{count}} usuario(s) conectado(s)",
1370
+ "pptx.collaboration.editable": "Editable",
1371
+ "pptx.collaboration.shellStatusLabel": "Estado de la colaboraci\xF3n",
1370
1372
  "pptx.collaboration.moreUsers": "{{count}} usuario(s) m\xE1s",
1371
1373
  "pptx.collaboration.onePersonHere": "1 persona aqu\xED",
1372
1374
  "pptx.collaboration.peopleHere": "{{count}} gente aqu\xED",
package/dist/i18n/es.mjs CHANGED
@@ -1341,6 +1341,8 @@ var translations8 = {
1341
1341
  "pptx.collaboration.userCount": "{{count}} usuario(s)",
1342
1342
  "pptx.collaboration.youLabel": "{{name}} (t\xFA)",
1343
1343
  "pptx.collaboration.usersConnected": "{{count}} usuario(s) conectado(s)",
1344
+ "pptx.collaboration.editable": "Editable",
1345
+ "pptx.collaboration.shellStatusLabel": "Estado de la colaboraci\xF3n",
1344
1346
  "pptx.collaboration.moreUsers": "{{count}} usuario(s) m\xE1s",
1345
1347
  "pptx.collaboration.onePersonHere": "1 persona aqu\xED",
1346
1348
  "pptx.collaboration.peopleHere": "{{count}} gente aqu\xED",
package/dist/i18n/fr.cjs CHANGED
@@ -1367,6 +1367,8 @@ var translations8 = {
1367
1367
  "pptx.collaboration.userCount": "{{count}} utilisateur(s)",
1368
1368
  "pptx.collaboration.youLabel": "{{name}} (vous)",
1369
1369
  "pptx.collaboration.usersConnected": "{{count}} utilisateur(s) connect\xE9(s)",
1370
+ "pptx.collaboration.editable": "Modifiable",
1371
+ "pptx.collaboration.shellStatusLabel": "\xC9tat de la collaboration",
1370
1372
  "pptx.collaboration.moreUsers": "{{count}} utilisateur(s) suppl\xE9mentaire(s)",
1371
1373
  "pptx.collaboration.onePersonHere": "1 personne ici",
1372
1374
  "pptx.collaboration.peopleHere": "Personnes {{count}} ici",
package/dist/i18n/fr.mjs CHANGED
@@ -1341,6 +1341,8 @@ var translations8 = {
1341
1341
  "pptx.collaboration.userCount": "{{count}} utilisateur(s)",
1342
1342
  "pptx.collaboration.youLabel": "{{name}} (vous)",
1343
1343
  "pptx.collaboration.usersConnected": "{{count}} utilisateur(s) connect\xE9(s)",
1344
+ "pptx.collaboration.editable": "Modifiable",
1345
+ "pptx.collaboration.shellStatusLabel": "\xC9tat de la collaboration",
1344
1346
  "pptx.collaboration.moreUsers": "{{count}} utilisateur(s) suppl\xE9mentaire(s)",
1345
1347
  "pptx.collaboration.onePersonHere": "1 personne ici",
1346
1348
  "pptx.collaboration.peopleHere": "Personnes {{count}} ici",
@@ -1411,6 +1411,8 @@ var translations11 = {
1411
1411
  "pptx.collaboration.userCount": "{{count}} \u4F4D\u7528\u6237",
1412
1412
  "pptx.collaboration.youLabel": "{{name}}\uFF08\u4F60\uFF09",
1413
1413
  "pptx.collaboration.usersConnected": "\u5DF2\u8FDE\u63A5 {{count}} \u4F4D\u7528\u6237",
1414
+ "pptx.collaboration.editable": "\u53EF\u7F16\u8F91",
1415
+ "pptx.collaboration.shellStatusLabel": "\u534F\u4F5C\u72B6\u6001",
1414
1416
  "pptx.collaboration.moreUsers": "\u8FD8\u6709 {{count}} \u4F4D\u7528\u6237",
1415
1417
  "pptx.collaboration.onePersonHere": "\u8FD9\u91CC\u6709 1 \u4EBA",
1416
1418
  "pptx.collaboration.peopleHere": "\u8FD9\u91CC\u6709 {{count}} \u4EBA",
@@ -1385,6 +1385,8 @@ var translations11 = {
1385
1385
  "pptx.collaboration.userCount": "{{count}} \u4F4D\u7528\u6237",
1386
1386
  "pptx.collaboration.youLabel": "{{name}}\uFF08\u4F60\uFF09",
1387
1387
  "pptx.collaboration.usersConnected": "\u5DF2\u8FDE\u63A5 {{count}} \u4F4D\u7528\u6237",
1388
+ "pptx.collaboration.editable": "\u53EF\u7F16\u8F91",
1389
+ "pptx.collaboration.shellStatusLabel": "\u534F\u4F5C\u72B6\u6001",
1388
1390
  "pptx.collaboration.moreUsers": "\u8FD8\u6709 {{count}} \u4F4D\u7528\u6237",
1389
1391
  "pptx.collaboration.onePersonHere": "\u8FD9\u91CC\u6709 1 \u4EBA",
1390
1392
  "pptx.collaboration.peopleHere": "\u8FD9\u91CC\u6709 {{count}} \u4EBA",