diff --git a/docs/4/js/404.html b/docs/4/js/404.html index 3114408..c99764a 100644 --- a/docs/4/js/404.html +++ b/docs/4/js/404.html @@ -13,7 +13,7 @@ - + diff --git a/docs/4/js/assets/DrawingControls-78149a84.js b/docs/4/js/assets/DrawingControls-7cdb2e41.js similarity index 99% rename from docs/4/js/assets/DrawingControls-78149a84.js rename to docs/4/js/assets/DrawingControls-7cdb2e41.js index e08f6b3..eba9648 100644 --- a/docs/4/js/assets/DrawingControls-78149a84.js +++ b/docs/4/js/assets/DrawingControls-7cdb2e41.js @@ -1,3 +1,3 @@ -import{o as l,f as a,g as e,d as k,i as y,a as M,B as x,s as I,a5 as E,a6 as N,n as B,h as n,_ as D,x as T,R as q,E as r,m as i,a7 as v,p as f,r as F,a8 as w,a9 as _,aa as W,F as P,ab as U,ac as Y,ad as G,ae as J,af as p,ag as g,ah as u,ai as L,aj as $,ak as Q}from"./index-6ce4c14a.js";const X={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},nn=e("path",{fill:"currentColor",d:"M16 2C8.2 2 2 8.2 2 16s6.2 14 14 14s14-6.2 14-14S23.8 2 16 2zm0 26C9.4 28 4 22.6 4 16S9.4 4 16 4s12 5.4 12 12s-5.4 12-12 12z"},null,-1),en=e("path",{fill:"currentColor",d:"M21.4 23L16 17.6L10.6 23L9 21.4l5.4-5.4L9 10.6L10.6 9l5.4 5.4L21.4 9l1.6 1.6l-5.4 5.4l5.4 5.4z"},null,-1),on=[nn,en];function tn(c,s){return l(),a("svg",X,on)}const sn={name:"carbon-close-outline",render:tn},ln={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},an=e("path",{fill:"currentColor",d:"M2 16A14 14 0 1 0 16 2A14 14 0 0 0 2 16Zm23.15 7.75L8.25 6.85a12 12 0 0 1 16.9 16.9ZM8.24 25.16a12 12 0 0 1-1.4-16.89l16.89 16.89a12 12 0 0 1-15.49 0Z"},null,-1),rn=[an];function cn(c,s){return l(),a("svg",ln,rn)}const dn={name:"carbon-error",render:cn},_n={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},un=e("path",{fill:"currentColor",d:"M28.59 13.31L30 11.9L20 2l-1.31 1.42l1.18 1.18l-11.49 9.72l-1.72-1.71L5.25 14l5.66 5.68L2 28.58L3.41 30l8.91-8.91L18 26.75l1.39-1.42l-1.71-1.71l9.72-11.49ZM16.26 22.2L9.8 15.74L21.29 6L26 10.71Z"},null,-1),hn=[un];function vn(c,s){return l(),a("svg",_n,hn)}const mn={name:"carbon-pin",render:vn},pn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},gn=e("path",{fill:"currentColor",d:"M28.586 13.314L30 11.9L20 2l-1.314 1.415l1.186 1.186L8.38 14.322l-1.716-1.715L5.25 14l5.657 5.677L2 28.583L3.41 30l8.911-8.909L18 26.748l1.393-1.414l-1.716-1.716l9.724-11.49Z"},null,-1),bn=[gn];function fn(c,s){return l(),a("svg",pn,bn)}const wn={name:"carbon-pin-filled",render:fn},$n={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Cn=e("path",{fill:"currentColor",d:"M12 12h2v12h-2zm6 0h2v12h-2z"},null,-1),xn=e("path",{fill:"currentColor",d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20zm4-26h8v2h-8z"},null,-1),Ln=[Cn,xn];function kn(c,s){return l(),a("svg",$n,Ln)}const yn={name:"carbon-delete",render:kn},Mn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Bn=e("path",{fill:"currentColor",d:"M12 10h12.185l-3.587-3.586L22 5l6 6l-6 6l-1.402-1.415L24.182 12H12a6 6 0 0 0 0 12h8v2h-8a8 8 0 0 1 0-16Z"},null,-1),Dn=[Bn];function zn(c,s){return l(),a("svg",Mn,Dn)}const Vn={name:"carbon-redo",render:zn},Zn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Sn=e("path",{fill:"currentColor",d:"M20 10H7.815l3.587-3.586L10 5l-6 6l6 6l1.402-1.415L7.818 12H20a6 6 0 0 1 0 12h-8v2h8a8 8 0 0 0 0-16Z"},null,-1),An=[Sn];function Hn(c,s){return l(),a("svg",Zn,An)}const Kn={name:"carbon-undo",render:Hn},On={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Rn=e("path",{fill:"currentColor",d:"M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM6 26V6h20v20Z"},null,-1),jn=[Rn];function In(c,s){return l(),a("svg",On,jn)}const En={name:"carbon-checkbox",render:In},Nn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Tn=e("path",{fill:"currentColor",d:"M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2Zm0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12Z"},null,-1),qn=[Tn];function Fn(c,s){return l(),a("svg",Nn,qn)}const Wn={name:"carbon-radio-button",render:Fn},Pn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Un=e("path",{fill:"currentColor",d:"M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6H10z"},null,-1),Yn=[Un];function Gn(c,s){return l(),a("svg",Pn,Yn)}const Jn={name:"carbon-arrow-up-right",render:Gn},Qn=k({__name:"Draggable",props:{storageKey:{type:String,required:!1},initial:{type:Object,required:!1}},setup(c){const s=c;y(M);const m=x(null),d=s.initial??{x:0,y:0},b=s.storageKey?I(s.storageKey,d):x(d),{style:h}=E(m,{initialValue:b});return(o,C)=>(l(),a("div",{ref_key:"el",ref:m,class:"fixed",style:B(n(h))},[N(o.$slots,"default")],4))}}),Xn=D(Qn,[["__file","/home/mancusoa/WORK/ITI_Agnelli/Materie/slidev/node_modules/@slidev/client/internals/Draggable.vue"]]),ne=e("svg",{width:"1em",height:"1em",class:"-mt-0.5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[e("path",{d:"M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z",fill:"currentColor"})],-1),ee=[ne],oe=["onClick"],te=k({__name:"DrawingControls",setup(c){y(M);function s(){L.undo()}function m(){L.redo()}function d(h){v.value=h,_.value=!0}function b(h){w.color=h,_.value=!0}return(h,o)=>{const C=Q,z=Jn,V=Wn,Z=En,S=Kn,A=Vn,H=yn,K=wn,O=mn,R=dn,j=sn;return l(),T(Xn,{class:r(["flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200",n(_)?"":n(u)?"opacity-40 hover:opacity-90":"opacity-0 pointer-events-none"]),dark:"border border-gray-400 border-opacity-10","storage-key":"slidev-drawing-pos","initial-x":10,"initial-y":10},{default:q(()=>[e("button",{class:r(["slidev-icon-btn",{shallow:n(v)!=="stylus"}]),onClick:o[0]||(o[0]=t=>d("stylus"))},[i(C)],2),e("button",{class:r(["slidev-icon-btn",{shallow:n(v)!=="line"}]),onClick:o[1]||(o[1]=t=>d("line"))},ee,2),e("button",{class:r(["slidev-icon-btn",{shallow:n(v)!=="arrow"}]),onClick:o[2]||(o[2]=t=>d("arrow"))},[i(z)],2),e("button",{class:r(["slidev-icon-btn",{shallow:n(v)!=="ellipse"}]),onClick:o[3]||(o[3]=t=>d("ellipse"))},[i(V)],2),e("button",{class:r(["slidev-icon-btn",{shallow:n(v)!=="rectangle"}]),onClick:o[4]||(o[4]=t=>d("rectangle"))},[i(Z)],2),f(" TODO: not sure why it's not working! "),f(` `),i($),(l(!0),a(P,null,F(n(W),t=>(l(),a("button",{key:t,class:r(["slidev-icon-btn",n(w).color===t?"active":"shallow"]),onClick:se=>b(t)},[e("div",{class:r(["w-6 h-6 transition-all transform border border-gray-400/50",n(w).color!==t?"rounded-1/2 scale-85":"rounded-md"]),style:B(n(_)?{background:t}:{borderColor:t})},null,6)],10,oe))),128)),i($),e("button",{class:r(["slidev-icon-btn",{disabled:!n(U)}]),onClick:o[5]||(o[5]=t=>s())},[i(S)],2),e("button",{class:r(["slidev-icon-btn",{disabled:!n(Y)}]),onClick:o[6]||(o[6]=t=>m())},[i(A)],2),e("button",{class:r(["slidev-icon-btn",{disabled:!n(G)}]),onClick:o[7]||(o[7]=t=>n(J)())},[i(H)],2),i($),e("button",{class:r(["slidev-icon-btn",{shallow:!n(u)}]),onClick:o[8]||(o[8]=t=>u.value=!n(u))},[p(i(K,{class:"transform -rotate-45"},null,512),[[g,n(u)]]),p(i(O,null,null,512),[[g,!n(u)]])],2),n(_)?(l(),a("button",{key:0,class:r(["slidev-icon-btn",{shallow:!n(_)}]),onClick:o[9]||(o[9]=t=>_.value=!n(_))},[p(i(R,null,null,512),[[g,n(u)]]),p(i(j,null,null,512),[[g,!n(u)]])],2)):f("v-if",!0)]),_:1},8,["class"])}}}),ie=D(te,[["__file","/home/mancusoa/WORK/ITI_Agnelli/Materie/slidev/node_modules/@slidev/client/internals/DrawingControls.vue"]]);export{ie as default}; diff --git a/docs/4/js/assets/DrawingLayer-72565e7d.js b/docs/4/js/assets/DrawingLayer-3c57ab76.js similarity index 89% rename from docs/4/js/assets/DrawingLayer-72565e7d.js rename to docs/4/js/assets/DrawingLayer-3c57ab76.js index d9e0e6c..77a4f58 100644 --- a/docs/4/js/assets/DrawingLayer-72565e7d.js +++ b/docs/4/js/assets/DrawingLayer-3c57ab76.js @@ -1 +1 @@ -import{d as r,i as s,a as i,al as c,B as u,M as m,ai as a,Q as d,am as _,an as f,o as p,f as v,E as g,h as o,a9 as t,_ as h}from"./index-6ce4c14a.js";const w=r({__name:"DrawingLayer",setup(x){s(i);const l=s(c),e=u();return m(()=>{a.mount(e.value,e.value.parentElement),d(l,n=>a.options.coordinateScale=1/n,{immediate:!0}),_()}),f(()=>{a.unmount()}),(n,y)=>(p(),v("svg",{ref_key:"svg",ref:e,class:g(["w-full h-full absolute top-0",{"pointer-events-none":!o(t),"touch-none":o(t)}])},null,2))}}),C=h(w,[["__file","/home/mancusoa/WORK/ITI_Agnelli/Materie/slidev/node_modules/@slidev/client/internals/DrawingLayer.vue"]]);export{C as default}; +import{d as r,i as s,a as i,al as c,B as u,M as m,ai as a,Q as d,am as _,an as f,o as p,f as v,E as g,h as o,a9 as t,_ as h}from"./index-7e2ac8f3.js";const w=r({__name:"DrawingLayer",setup(x){s(i);const l=s(c),e=u();return m(()=>{a.mount(e.value,e.value.parentElement),d(l,n=>a.options.coordinateScale=1/n,{immediate:!0}),_()}),f(()=>{a.unmount()}),(n,y)=>(p(),v("svg",{ref_key:"svg",ref:e,class:g(["w-full h-full absolute top-0",{"pointer-events-none":!o(t),"touch-none":o(t)}])},null,2))}}),C=h(w,[["__file","/home/mancusoa/WORK/ITI_Agnelli/Materie/slidev/node_modules/@slidev/client/internals/DrawingLayer.vue"]]);export{C as default}; diff --git a/docs/4/js/assets/NoteDisplay-4ecdad21.js b/docs/4/js/assets/NoteDisplay-38a7b13d.js similarity index 93% rename from docs/4/js/assets/NoteDisplay-4ecdad21.js rename to docs/4/js/assets/NoteDisplay-38a7b13d.js index c3e0feb..951d469 100644 --- a/docs/4/js/assets/NoteDisplay-4ecdad21.js +++ b/docs/4/js/assets/NoteDisplay-38a7b13d.js @@ -1 +1 @@ -import{d as c,i as d,a as u,f as n,E as s,g as a,t as r,o as l,_ as m}from"./index-6ce4c14a.js";const f=["innerHTML"],v=["textContent"],k=["textContent"],y=c({__name:"NoteDisplay",props:{class:{type:String,required:!1},noteHtml:{type:String,required:!1},note:{type:String,required:!1},placeholder:{type:String,required:!1}},emits:["click"],setup(p){const o=p;return d(u),(e,t)=>e.noteHtml?(l(),n("div",{key:0,class:s(["prose overflow-auto outline-none",o.class]),onClick:t[0]||(t[0]=i=>e.$emit("click")),innerHTML:e.noteHtml},null,10,f)):e.note?(l(),n("div",{key:1,class:s(["prose overflow-auto outline-none",o.class]),onClick:t[1]||(t[1]=i=>e.$emit("click"))},[a("p",{textContent:r(e.note)},null,8,v)],2)):(l(),n("div",{key:2,class:s(["prose overflow-auto outline-none opacity-50 italic",o.class]),onClick:t[2]||(t[2]=i=>e.$emit("click"))},[a("p",{textContent:r(o.placeholder||"No notes.")},null,8,k)],2))}}),g=m(y,[["__file","/home/mancusoa/WORK/ITI_Agnelli/Materie/slidev/node_modules/@slidev/client/internals/NoteDisplay.vue"]]);export{g as N}; +import{d as c,i as d,a as u,f as n,E as s,g as a,t as r,o as l,_ as m}from"./index-7e2ac8f3.js";const f=["innerHTML"],v=["textContent"],k=["textContent"],y=c({__name:"NoteDisplay",props:{class:{type:String,required:!1},noteHtml:{type:String,required:!1},note:{type:String,required:!1},placeholder:{type:String,required:!1}},emits:["click"],setup(p){const o=p;return d(u),(e,t)=>e.noteHtml?(l(),n("div",{key:0,class:s(["prose overflow-auto outline-none",o.class]),onClick:t[0]||(t[0]=i=>e.$emit("click")),innerHTML:e.noteHtml},null,10,f)):e.note?(l(),n("div",{key:1,class:s(["prose overflow-auto outline-none",o.class]),onClick:t[1]||(t[1]=i=>e.$emit("click"))},[a("p",{textContent:r(e.note)},null,8,v)],2)):(l(),n("div",{key:2,class:s(["prose overflow-auto outline-none opacity-50 italic",o.class]),onClick:t[2]||(t[2]=i=>e.$emit("click"))},[a("p",{textContent:r(o.placeholder||"No notes.")},null,8,k)],2))}}),g=m(y,[["__file","/home/mancusoa/WORK/ITI_Agnelli/Materie/slidev/node_modules/@slidev/client/internals/NoteDisplay.vue"]]);export{g as N}; diff --git a/docs/4/js/assets/NotesView-ac0ecbd4.js b/docs/4/js/assets/NotesView-296c544a.js similarity index 96% rename from docs/4/js/assets/NotesView-ac0ecbd4.js rename to docs/4/js/assets/NotesView-296c544a.js index 17e3c43..adfaa6d 100644 --- a/docs/4/js/assets/NotesView-ac0ecbd4.js +++ b/docs/4/js/assets/NotesView-296c544a.js @@ -1 +1 @@ -import{o as n,f as i,g as e,d as K,i as O,a as P,c as S,b as U,s as W,v as d,w as u,j as M,n as L,h as o,m as a,p as q,x as V,t as B,F as G,k as F,y as J,z as Q,A as X,_ as Y}from"./index-6ce4c14a.js";import{N as H}from"./NoteDisplay-4ecdad21.js";const ee={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},te=e("path",{fill:"currentColor",d:"M8 12h10v2H8z"},null,-1),oe=e("path",{fill:"currentColor",d:"M21.448 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11a10.856 10.856 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9Z"},null,-1),ne=[te,oe];function se(_,c){return n(),i("svg",ee,ne)}const le={name:"carbon-zoom-out",render:se},ae={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},ie=e("path",{fill:"currentColor",d:"M18 12h-4V8h-2v4H8v2h4v4h2v-4h4v-2z"},null,-1),ce=e("path",{fill:"currentColor",d:"M21.448 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11a10.856 10.856 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9Z"},null,-1),re=[ie,ce];function de(_,c){return n(),i("svg",ae,re)}const ue={name:"carbon-zoom-in",render:de},_e={class:"h-full flex flex-col"},pe={key:0,class:"px-5 py-2 max-h-60 overflow-auto border-t border-gray-400 border-opacity-20"},me={class:"flex-none border-t border-gray-400 border-opacity-20"},ve={class:"flex gap-1 items-center px-6 py-3"},he=e("div",{class:"flex-auto"},null,-1),fe={class:"p2 text-center"},xe=K({__name:"NotesView",setup(_){O(P);const c=S.titleTemplate.replace("%s",S.title||"Slidev");U({title:`Notes - ${c}`});const{isFullscreen:T,toggle:p}=J,s=W("slidev-notes-font-size",18),l=d(()=>{var t;return((t=u.lastUpdate)==null?void 0:t.type)==="viewer"?u.viewerPage:u.page}),m=d(()=>M.find(t=>t.path===`${l.value}`)),r=d(()=>M.find(t=>t.path===`${l.value+1}`));function A(){s.value=s.value+1}function R(){s.value=s.value-1}return(t,v)=>{var h,f,x,g,b,y,z,$,w,N,k,C;const Z=Q,j=X,D=ue,I=le;return n(),i(G,null,[e("div",{class:"fixed top-0 left-0 h-2px bg-teal-500 transition-all duration-500",style:L({width:`${(l.value-1)/o(F)*100}%`})},null,4),e("div",_e,[e("div",{class:"px-5 flex-auto h-full overflow-auto",style:L({fontSize:`${o(s)}px`})},[a(H,{note:(x=(f=(h=m.value)==null?void 0:h.meta)==null?void 0:f.slide)==null?void 0:x.note,"note-html":(y=(b=(g=m.value)==null?void 0:g.meta)==null?void 0:b.slide)==null?void 0:y.noteHTML,placeholder:`No notes for Slide ${l.value}.`},null,8,["note","note-html","placeholder"])],4),r.value?(n(),i("div",pe,[a(H,{class:"opacity-50",note:(w=($=(z=r.value)==null?void 0:z.meta)==null?void 0:$.slide)==null?void 0:w.note,"note-html":(C=(k=(N=r.value)==null?void 0:N.meta)==null?void 0:k.slide)==null?void 0:C.noteHTML,placeholder:"No notes for next slide."},null,8,["note","note-html"])])):q("v-if",!0),e("div",me,[e("div",ve,[e("button",{class:"slidev-icon-btn",onClick:v[0]||(v[0]=(...E)=>o(p)&&o(p)(...E))},[o(T)?(n(),V(Z,{key:0})):(n(),V(j,{key:1}))]),e("button",{class:"slidev-icon-btn",onClick:A},[a(D)]),e("button",{class:"slidev-icon-btn",onClick:R},[a(I)]),he,e("div",fe,B(l.value)+" / "+B(o(F)),1)])])])],64)}}}),ye=Y(xe,[["__file","/home/mancusoa/WORK/ITI_Agnelli/Materie/slidev/node_modules/@slidev/client/internals/NotesView.vue"]]);export{ye as default}; +import{o as n,f as i,g as e,d as K,i as O,a as P,c as S,b as U,s as W,v as d,w as u,j as M,n as L,h as o,m as a,p as q,x as V,t as B,F as G,k as F,y as J,z as Q,A as X,_ as Y}from"./index-7e2ac8f3.js";import{N as H}from"./NoteDisplay-38a7b13d.js";const ee={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},te=e("path",{fill:"currentColor",d:"M8 12h10v2H8z"},null,-1),oe=e("path",{fill:"currentColor",d:"M21.448 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11a10.856 10.856 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9Z"},null,-1),ne=[te,oe];function se(_,c){return n(),i("svg",ee,ne)}const le={name:"carbon-zoom-out",render:se},ae={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},ie=e("path",{fill:"currentColor",d:"M18 12h-4V8h-2v4H8v2h4v4h2v-4h4v-2z"},null,-1),ce=e("path",{fill:"currentColor",d:"M21.448 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11a10.856 10.856 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9Z"},null,-1),re=[ie,ce];function de(_,c){return n(),i("svg",ae,re)}const ue={name:"carbon-zoom-in",render:de},_e={class:"h-full flex flex-col"},pe={key:0,class:"px-5 py-2 max-h-60 overflow-auto border-t border-gray-400 border-opacity-20"},me={class:"flex-none border-t border-gray-400 border-opacity-20"},ve={class:"flex gap-1 items-center px-6 py-3"},he=e("div",{class:"flex-auto"},null,-1),fe={class:"p2 text-center"},xe=K({__name:"NotesView",setup(_){O(P);const c=S.titleTemplate.replace("%s",S.title||"Slidev");U({title:`Notes - ${c}`});const{isFullscreen:T,toggle:p}=J,s=W("slidev-notes-font-size",18),l=d(()=>{var t;return((t=u.lastUpdate)==null?void 0:t.type)==="viewer"?u.viewerPage:u.page}),m=d(()=>M.find(t=>t.path===`${l.value}`)),r=d(()=>M.find(t=>t.path===`${l.value+1}`));function A(){s.value=s.value+1}function R(){s.value=s.value-1}return(t,v)=>{var h,f,x,g,b,y,z,$,w,N,k,C;const Z=Q,j=X,D=ue,I=le;return n(),i(G,null,[e("div",{class:"fixed top-0 left-0 h-2px bg-teal-500 transition-all duration-500",style:L({width:`${(l.value-1)/o(F)*100}%`})},null,4),e("div",_e,[e("div",{class:"px-5 flex-auto h-full overflow-auto",style:L({fontSize:`${o(s)}px`})},[a(H,{note:(x=(f=(h=m.value)==null?void 0:h.meta)==null?void 0:f.slide)==null?void 0:x.note,"note-html":(y=(b=(g=m.value)==null?void 0:g.meta)==null?void 0:b.slide)==null?void 0:y.noteHTML,placeholder:`No notes for Slide ${l.value}.`},null,8,["note","note-html","placeholder"])],4),r.value?(n(),i("div",pe,[a(H,{class:"opacity-50",note:(w=($=(z=r.value)==null?void 0:z.meta)==null?void 0:$.slide)==null?void 0:w.note,"note-html":(C=(k=(N=r.value)==null?void 0:N.meta)==null?void 0:k.slide)==null?void 0:C.noteHTML,placeholder:"No notes for next slide."},null,8,["note","note-html"])])):q("v-if",!0),e("div",me,[e("div",ve,[e("button",{class:"slidev-icon-btn",onClick:v[0]||(v[0]=(...E)=>o(p)&&o(p)(...E))},[o(T)?(n(),V(Z,{key:0})):(n(),V(j,{key:1}))]),e("button",{class:"slidev-icon-btn",onClick:A},[a(D)]),e("button",{class:"slidev-icon-btn",onClick:R},[a(I)]),he,e("div",fe,B(l.value)+" / "+B(o(F)),1)])])])],64)}}}),ye=Y(xe,[["__file","/home/mancusoa/WORK/ITI_Agnelli/Materie/slidev/node_modules/@slidev/client/internals/NotesView.vue"]]);export{ye as default}; diff --git a/docs/4/js/assets/Presenter-8b4a3987.js b/docs/4/js/assets/Presenter-cd612916.js similarity index 97% rename from docs/4/js/assets/Presenter-8b4a3987.js rename to docs/4/js/assets/Presenter-cd612916.js index f818bf6..43046e5 100644 --- a/docs/4/js/assets/Presenter-8b4a3987.js +++ b/docs/4/js/assets/Presenter-cd612916.js @@ -1 +1 @@ -import{o as d,f as k,g as e,B as S,C as R,v as h,d as V,i as I,a as B,D as y,x as p,E as P,_ as H,G as z,H as A,c as b,b as D,I as $,J as O,K as W,L as E,M as L,N as j,O as q,P as F,Q as K,h as i,m as u,t as U,n as x,R as N,S as T,p as Z,T as G,U as w,V as J,F as Q,W as X,X as Y,w as ee,Y as te,Z as se,q as M,$ as oe,a0 as le,a1 as ne,a2 as ae,k as ie,a3 as re,a4 as ce}from"./index-6ce4c14a.js";import{N as ue}from"./NoteDisplay-4ecdad21.js";import de from"./DrawingControls-78149a84.js";const _e={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},ve=e("path",{fill:"currentColor",d:"M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8z"},null,-1),me=[ve];function pe(o,n){return d(),k("svg",_e,me)}const he={name:"carbon-renew",render:pe},fe={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},ge=e("path",{fill:"currentColor",d:"M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14Zm0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4Z"},null,-1),xe=e("path",{fill:"currentColor",d:"M20.59 22L15 16.41V7h2v8.58l5 5.01L20.59 22z"},null,-1),we=[ge,xe];function Se(o,n){return d(),k("svg",fe,we)}const ye={name:"carbon-time",render:Se},ke="/4/js/assets/logo-title-horizontal-96c3c915.png";function Ce(){const o=S(Date.now()),n=R({interval:1e3}),_=h(()=>{const t=(n.value-o.value)/1e3,l=Math.floor(t%60).toString().padStart(2,"0");return`${Math.floor(t/60).toString().padStart(2,"0")}:${l}`});function v(){o.value=n.value}return{timer:_,resetTimer:v}}const be=V({__name:"NoteStatic",props:{class:{type:String,required:!1}},setup(o){const n=o;I(B);const _=h(()=>{var t,l,s;return(s=(l=(t=y.value)==null?void 0:t.meta)==null?void 0:l.slide)==null?void 0:s.note}),v=h(()=>{var t,l,s;return(s=(l=(t=y.value)==null?void 0:t.meta)==null?void 0:l.slide)==null?void 0:s.noteHTML});return(t,l)=>(d(),p(ue,{class:P(n.class),note:_.value,"note-html":v.value},null,8,["class","note","note-html"]))}}),$e=H(be,[["__file","/home/mancusoa/WORK/ITI_Agnelli/Materie/slidev/node_modules/@slidev/client/internals/NoteStatic.vue"]]),f=o=>(X("data-v-574fd206"),o=o(),Y(),o),Ne={class:"bg-main h-full slidev-presenter"},Te={class:"grid-container"},Me={class:"grid-section top flex"},Ve=f(()=>e("img",{src:ke,class:"ml-2 my-auto h-10 py-1 lg:h-14 lg:py-2"},null,-1)),Ie=f(()=>e("div",{class:"flex-auto"},null,-1)),Be={class:"text-2xl pl-2 pr-6 my-auto tabular-nums"},Pe=f(()=>e("div",{class:"context"}," current ",-1)),He=f(()=>e("div",{class:"context"}," next ",-1)),Re={class:"grid-section note overflow-auto"},ze={class:"grid-section bottom"},Ae={class:"progress-bar"},De=V({__name:"Presenter",setup(o){I(B);const n=S();z(),A(n);const _=b.titleTemplate.replace("%s",b.title||"Slidev");D({title:`Presenter - ${_}`});const{timer:v,resetTimer:t}=Ce(),l=S([]),s=h(()=>$.value{const C=n.value.querySelector("#slide-content"),r=j(q()),g=F();K(()=>{if(!g.value||te.value||!se.value)return;const c=C.getBoundingClientRect(),a=(r.x-c.left)/c.width*100,m=(r.y-c.top)/c.height*100;if(!(a<0||a>100||m<0||m>100))return{x:a,y:m}},c=>{ee.cursor=c})}),(C,r)=>{const g=ye,c=he;return d(),k(Q,null,[e("div",Ne,[e("div",Te,[e("div",Me,[Ve,Ie,e("div",{class:"timer-btn my-auto relative w-22px h-22px cursor-pointer text-lg",opacity:"50 hover:100",onClick:r[0]||(r[0]=(...a)=>i(t)&&i(t)(...a))},[u(g,{class:"absolute"}),u(c,{class:"absolute opacity-0"})]),e("div",Be,U(i(v)),1)]),e("div",{ref_key:"main",ref:n,class:"relative grid-section main flex flex-col p-2 lg:p-4",style:x(i(M))},[u(T,{key:"main",class:"h-full w-full"},{default:N(()=>[u(oe,{context:"presenter"})]),_:1}),Pe],4),e("div",{class:"relative grid-section next flex flex-col p-2 lg:p-4",style:x(i(M))},[s.value?(d(),p(T,{key:"next",class:"h-full w-full"},{default:N(()=>{var a;return[u(i(ne),{is:(a=s.value.route)==null?void 0:a.component,"clicks-elements":l.value,"onUpdate:clicksElements":r[1]||(r[1]=m=>l.value=m),clicks:s.value.clicks,"clicks-disabled":!1,class:P(i(le)(s.value.route)),route:s.value.route,context:"previewNext"},null,8,["is","clicks-elements","clicks","class","route"])]}),_:1})):Z("v-if",!0),He],4),e("div",Re,[(d(),p($e,{key:1,class:"w-full h-full overflow-auto p-2 lg:p-4"}))]),e("div",ze,[u(re,{persist:!0})]),(d(),p(de,{key:0}))]),e("div",Ae,[e("div",{class:"progress h-2px bg-primary transition-all",style:x({width:`${(i(ae)-1)/(i(ie)-1)*100}%`})},null,4)])]),u(ce),u(J,{modelValue:i(w),"onUpdate:modelValue":r[2]||(r[2]=a=>G(w)?w.value=a:null)},null,8,["modelValue"])],64)}}});const Le=H(De,[["__scopeId","data-v-574fd206"],["__file","/home/mancusoa/WORK/ITI_Agnelli/Materie/slidev/node_modules/@slidev/client/internals/Presenter.vue"]]);export{Le as default}; +import{o as d,f as k,g as e,B as S,C as R,v as h,d as V,i as I,a as B,D as y,x as p,E as P,_ as H,G as z,H as A,c as b,b as D,I as $,J as O,K as W,L as E,M as L,N as j,O as q,P as F,Q as K,h as i,m as u,t as U,n as x,R as N,S as T,p as Z,T as G,U as w,V as J,F as Q,W as X,X as Y,w as ee,Y as te,Z as se,q as M,$ as oe,a0 as le,a1 as ne,a2 as ae,k as ie,a3 as re,a4 as ce}from"./index-7e2ac8f3.js";import{N as ue}from"./NoteDisplay-38a7b13d.js";import de from"./DrawingControls-7cdb2e41.js";const _e={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},ve=e("path",{fill:"currentColor",d:"M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8z"},null,-1),me=[ve];function pe(o,n){return d(),k("svg",_e,me)}const he={name:"carbon-renew",render:pe},fe={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},ge=e("path",{fill:"currentColor",d:"M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14Zm0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4Z"},null,-1),xe=e("path",{fill:"currentColor",d:"M20.59 22L15 16.41V7h2v8.58l5 5.01L20.59 22z"},null,-1),we=[ge,xe];function Se(o,n){return d(),k("svg",fe,we)}const ye={name:"carbon-time",render:Se},ke="/4/js/assets/logo-title-horizontal-96c3c915.png";function Ce(){const o=S(Date.now()),n=R({interval:1e3}),_=h(()=>{const t=(n.value-o.value)/1e3,l=Math.floor(t%60).toString().padStart(2,"0");return`${Math.floor(t/60).toString().padStart(2,"0")}:${l}`});function v(){o.value=n.value}return{timer:_,resetTimer:v}}const be=V({__name:"NoteStatic",props:{class:{type:String,required:!1}},setup(o){const n=o;I(B);const _=h(()=>{var t,l,s;return(s=(l=(t=y.value)==null?void 0:t.meta)==null?void 0:l.slide)==null?void 0:s.note}),v=h(()=>{var t,l,s;return(s=(l=(t=y.value)==null?void 0:t.meta)==null?void 0:l.slide)==null?void 0:s.noteHTML});return(t,l)=>(d(),p(ue,{class:P(n.class),note:_.value,"note-html":v.value},null,8,["class","note","note-html"]))}}),$e=H(be,[["__file","/home/mancusoa/WORK/ITI_Agnelli/Materie/slidev/node_modules/@slidev/client/internals/NoteStatic.vue"]]),f=o=>(X("data-v-574fd206"),o=o(),Y(),o),Ne={class:"bg-main h-full slidev-presenter"},Te={class:"grid-container"},Me={class:"grid-section top flex"},Ve=f(()=>e("img",{src:ke,class:"ml-2 my-auto h-10 py-1 lg:h-14 lg:py-2"},null,-1)),Ie=f(()=>e("div",{class:"flex-auto"},null,-1)),Be={class:"text-2xl pl-2 pr-6 my-auto tabular-nums"},Pe=f(()=>e("div",{class:"context"}," current ",-1)),He=f(()=>e("div",{class:"context"}," next ",-1)),Re={class:"grid-section note overflow-auto"},ze={class:"grid-section bottom"},Ae={class:"progress-bar"},De=V({__name:"Presenter",setup(o){I(B);const n=S();z(),A(n);const _=b.titleTemplate.replace("%s",b.title||"Slidev");D({title:`Presenter - ${_}`});const{timer:v,resetTimer:t}=Ce(),l=S([]),s=h(()=>$.value{const C=n.value.querySelector("#slide-content"),r=j(q()),g=F();K(()=>{if(!g.value||te.value||!se.value)return;const c=C.getBoundingClientRect(),a=(r.x-c.left)/c.width*100,m=(r.y-c.top)/c.height*100;if(!(a<0||a>100||m<0||m>100))return{x:a,y:m}},c=>{ee.cursor=c})}),(C,r)=>{const g=ye,c=he;return d(),k(Q,null,[e("div",Ne,[e("div",Te,[e("div",Me,[Ve,Ie,e("div",{class:"timer-btn my-auto relative w-22px h-22px cursor-pointer text-lg",opacity:"50 hover:100",onClick:r[0]||(r[0]=(...a)=>i(t)&&i(t)(...a))},[u(g,{class:"absolute"}),u(c,{class:"absolute opacity-0"})]),e("div",Be,U(i(v)),1)]),e("div",{ref_key:"main",ref:n,class:"relative grid-section main flex flex-col p-2 lg:p-4",style:x(i(M))},[u(T,{key:"main",class:"h-full w-full"},{default:N(()=>[u(oe,{context:"presenter"})]),_:1}),Pe],4),e("div",{class:"relative grid-section next flex flex-col p-2 lg:p-4",style:x(i(M))},[s.value?(d(),p(T,{key:"next",class:"h-full w-full"},{default:N(()=>{var a;return[u(i(ne),{is:(a=s.value.route)==null?void 0:a.component,"clicks-elements":l.value,"onUpdate:clicksElements":r[1]||(r[1]=m=>l.value=m),clicks:s.value.clicks,"clicks-disabled":!1,class:P(i(le)(s.value.route)),route:s.value.route,context:"previewNext"},null,8,["is","clicks-elements","clicks","class","route"])]}),_:1})):Z("v-if",!0),He],4),e("div",Re,[(d(),p($e,{key:1,class:"w-full h-full overflow-auto p-2 lg:p-4"}))]),e("div",ze,[u(re,{persist:!0})]),(d(),p(de,{key:0}))]),e("div",Ae,[e("div",{class:"progress h-2px bg-primary transition-all",style:x({width:`${(i(ae)-1)/(i(ie)-1)*100}%`})},null,4)])]),u(ce),u(J,{modelValue:i(w),"onUpdate:modelValue":r[2]||(r[2]=a=>G(w)?w.value=a:null)},null,8,["modelValue"])],64)}}});const Le=H(De,[["__scopeId","data-v-574fd206"],["__file","/home/mancusoa/WORK/ITI_Agnelli/Materie/slidev/node_modules/@slidev/client/internals/Presenter.vue"]]);export{Le as default}; diff --git a/docs/4/js/assets/PresenterPrint-e2780df8.js b/docs/4/js/assets/PresenterPrint-94b2a192.js similarity index 91% rename from docs/4/js/assets/PresenterPrint-e2780df8.js rename to docs/4/js/assets/PresenterPrint-94b2a192.js index 76a36bb..251ec03 100644 --- a/docs/4/js/assets/PresenterPrint-e2780df8.js +++ b/docs/4/js/assets/PresenterPrint-94b2a192.js @@ -1,4 +1,4 @@ -import{d as _,i as d,a as p,u as h,b as u,c as m,e as f,f as n,g as t,t as s,h as a,F as g,r as v,n as x,j as y,o as l,k as b,l as N,m as k,p as P,q as w,_ as S}from"./index-6ce4c14a.js";import{N as T}from"./NoteDisplay-4ecdad21.js";const V={class:"m-4"},j={class:"mb-10"},L={class:"text-4xl font-bold mt-2"},B={class:"opacity-50"},C={class:"text-lg"},D={class:"font-bold flex gap-2"},H={class:"opacity-50"},M=t("div",{class:"flex-auto"},null,-1),z={key:0,class:"border-gray-400/50 mb-8"},A=_({__name:"PresenterPrint",setup(F){d(p),h(` +import{d as _,i as d,a as p,u as h,b as u,c as m,e as f,f as n,g as t,t as s,h as a,F as g,r as v,n as x,j as y,o as l,k as b,l as N,m as k,p as P,q as w,_ as S}from"./index-7e2ac8f3.js";import{N as T}from"./NoteDisplay-38a7b13d.js";const V={class:"m-4"},j={class:"mb-10"},L={class:"text-4xl font-bold mt-2"},B={class:"opacity-50"},C={class:"text-lg"},D={class:"font-bold flex gap-2"},H={class:"opacity-50"},M=t("div",{class:"flex-auto"},null,-1),z={key:0,class:"border-gray-400/50 mb-8"},A=_({__name:"PresenterPrint",setup(F){d(p),h(` @page { size: A4; margin-top: 1.5cm; diff --git a/docs/4/js/assets/index-6ce4c14a.js b/docs/4/js/assets/index-7e2ac8f3.js similarity index 99% rename from docs/4/js/assets/index-6ce4c14a.js rename to docs/4/js/assets/index-7e2ac8f3.js index 24fe2fe..7ba3f30 100644 --- a/docs/4/js/assets/index-6ce4c14a.js +++ b/docs/4/js/assets/index-7e2ac8f3.js @@ -5,7 +5,7 @@ If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";U(`Failed to resolve ${s.slice(0,-1)}: ${t}${p}`)}return c}else U(`resolve${ft(s.slice(0,-1))} can only be used in render() or setup().`)}function dr(s,t){return s&&(s[t]||s[os(t)]||s[ft(os(t))])}function Dt(s,t,a,o){let l;const i=a&&a[o];if(un(s)||qn(s)){l=new Array(s.length);for(let c=0,p=s.length;ct(c,p,void 0,i&&i[p]));else{const c=Object.keys(s);l=new Array(c.length);for(let p=0,u=c.length;p1&&(U("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),i=()=>[]),i&&i._c&&(i._d=!1),m();const c=i&&pd(i(a)),p=g(Cn,{key:a.key||c&&c.key||`_${t}`},c||(o?o():[]),c&&s._===1?64:-2);return!l&&p.scopeId&&(p.slotScopeIds=[p.scopeId+"-s"]),i&&i._c&&(i._d=!0),p}function pd(s){return s.some(t=>Ws(t)?!(t.type===fe||t.type===Cn&&!pd(t.children)):!0)?s:null}const oi=s=>s?wd(s)?ul(s)||s.proxy:oi(s.parent):null,mt=Hn(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>aa(s.props),$attrs:s=>aa(s.attrs),$slots:s=>aa(s.slots),$refs:s=>aa(s.refs),$parent:s=>oi(s.parent),$root:s=>oi(s.root),$emit:s=>s.emit,$options:s=>vc(s),$forceUpdate:s=>s.f||(s.f=()=>al(s.update)),$nextTick:s=>s.n||(s.n=ce.bind(s.proxy)),$watch:s=>Sg.bind(s)}),hc=s=>s==="_"||s==="$",zl=(s,t)=>s!==Wn&&!s.__isScriptSetup&&On(s,t),ud={get({_:s},t){const{ctx:a,setupState:o,data:l,props:i,accessCache:c,type:p,appContext:u}=s;if(t==="__isVue")return!0;let d;if(t[0]!=="$"){const M=c[t];if(M!==void 0)switch(M){case 1:return o[t];case 2:return l[t];case 4:return a[t];case 3:return i[t]}else{if(zl(o,t))return c[t]=1,o[t];if(l!==Wn&&On(l,t))return c[t]=2,l[t];if((d=s.propsOptions[0])&&On(d,t))return c[t]=3,i[t];if(a!==Wn&&On(a,t))return c[t]=4,a[t];li&&(c[t]=0)}}const k=mt[t];let v,w;if(k)return t==="$attrs"?(ue(s,"get",t),Eo()):t==="$slots"&&ue(s,"get",t),k(s);if((v=p.__cssModules)&&(v=v[t]))return v;if(a!==Wn&&On(a,t))return c[t]=4,a[t];if(w=u.config.globalProperties,On(w,t))return w[t];ee&&(!qn(t)||t.indexOf("__v")!==0)&&(l!==Wn&&hc(t[0])&&On(l,t)?U(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):s===ee&&U(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:s},t,a){const{data:o,setupState:l,ctx:i}=s;return zl(l,t)?(l[t]=a,!0):l.__isScriptSetup&&On(l,t)?(U(`Cannot mutate + diff --git a/slides/TPSI_4/js/js_slides.md b/slides/TPSI_4/js/js_slides.md index 557a468..faa2328 100644 --- a/slides/TPSI_4/js/js_slides.md +++ b/slides/TPSI_4/js/js_slides.md @@ -13,7 +13,7 @@ aspectRatio: "16_/9" routerMode: "hash" materia: "TPSI" as: "2024/2025" -version: "2.0.6" +version: "2.0.7" --- # JavaScript @@ -1638,7 +1638,7 @@ modifichiamo una pagina HTML in JS ```html

Questo è un paragrafo di testo in una pagina HTML

- + ```
@@ -1756,7 +1756,7 @@ modifichiamo una pagina HTML in JS

Titolo Dispari

Titolo Pari

Titolo Dispari

- + ```
@@ -2025,8 +2025,8 @@ function studenti_rossi() { Ascoltiamo e gestiamo gli eventi - Una caratteristica della programmazione Web dinamica è la gestione degli `eventi` -- La lammgioranza dei componenti HTML generano una serie di eventi -- Per esempial click del mouse su un oggetto si genera l'evento `onClick` +- La maggioranza dei componenti HTML generano una serie di eventi +- Per esempial click del mouse su un oggetto si genera l'evento `onclick` - Ci sono due elementi fondamentali per la gestione degli eventi 1. `evento name`: nome dell'evento da scoltare