@compdfkit_pdf_sdk/webviewer 2.8.3 → 2.9.0-rc.1
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/dist/assets/CustomModal.532fffc2.css +1 -0
- package/dist/assets/CustomModal.ad195af5.js +1 -0
- package/dist/assets/RightPanelPageMode.16c777c6.css +1 -0
- package/dist/assets/RightPanelPageMode.a65d5ade.js +1 -0
- package/dist/assets/StampPanel.02852fd6.js +1 -0
- package/dist/assets/StampPanel.b042b07b.css +1 -0
- package/dist/assets/{browser-ponyfill.b4df6b68.js → browser-ponyfill.c037802e.js} +1 -1
- package/dist/assets/index.7b78a633.js +2716 -0
- package/dist/assets/index.ba0177ff.css +1 -0
- package/dist/example/Quick Start Guide for ComPDFKit Web Demo.pdf +0 -0
- package/dist/index.html +3 -4
- package/dist/lib/ComPDFKit.js +1 -1
- package/dist/lib/ComPDFKit.wasm +0 -0
- package/dist/lib/PDFWorker.js +1 -1
- package/dist/locales/translation-en.json +35 -11
- package/dist/locales/translation-fr.json +35 -10
- package/dist/locales/translation-ja.json +35 -10
- package/dist/locales/translation-th.json +35 -10
- package/dist/locales/translation-zh-CN.json +35 -10
- package/dist/locales/translation-zh-TW.json +35 -10
- package/package.json +1 -1
- package/webviewer.global.js +1 -1
- package/webviewer.js +1 -1
- package/dist/assets/index.4a4a7d76.js +0 -2698
- package/dist/assets/index.e25a79e0.css +0 -1
- package/dist/example/developer_guide_web.pdf +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.CustomModal .dialog-container{padding:0}.CustomModal .dialog-container main{margin:0}.CustomModal .CustomModal-header{padding:20px 15px 15px;border-bottom:1px solid rgb(224,224,224)}.CustomModal .CustomModal-body{padding:15px}.CustomModal .CustomModal-footer{padding:15px;width:100%;border-top:1px solid rgb(224,224,224)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as h,v as V,b as T,w as I,I as x,x as z,J as O,o as s,d as n,f as j,K as F,h as t,g as w,e as B,n as r,L as m,F as i,t as d,z as v,y as E,M as q,A,B as G}from"./index.7b78a633.js";const J=["data-element"],R=["innerHTML"],U={key:0},P=["onClick"],Q=["onClick"],W=["innerHTML"],X={key:0},Y=["onClick"],Z=["onClick"],ee=["innerHTML"],te={key:0},se=["onClick"],ne=["onClick"],oe={__name:"CustomModalItem",props:{modal:{type:Object,required:!0}},setup(H){const C=H,f=h(),k=V(null),{dataElement:l,render:L,header:c,body:o,footer:y,disableBackdropClick:D=!1,disableEscapeKeyDown:g=!1}=C.modal,b=T(()=>f.isElementOpen(l)),p=u=>u?Object.entries(u).map(([_,M])=>Number.isInteger(M)?`${_}:${M}px`:`${_}:${M}`).join(";"):"",K=()=>{D||N()},S=u=>{g||(u.preventDefault(),N())},N=()=>{f.closeElement(l)};I(b,async u=>{if(u&&L&&k.value){await x();const _=L();typeof _=="string"?k.value.textContent=_:_ instanceof Node&&(k.value.innerHTML="",k.value.appendChild(_))}},{immediate:!0});const $=u=>{u.key==="Escape"&&b.value&&!g&&N()};return z(()=>{document.addEventListener("keydown",$)}),O(()=>{document.removeEventListener("keydown",$)}),(u,_)=>{const M=A;return b.value?(s(),n("div",{key:0,class:r(["Modal CustomModal",t(l)]),"data-element":t(l),tabindex:"-1",onClick:K,onKeydown:q(S,["esc"])},[j(M,{show:!0,dialogName:t(l)},F({default:w(()=>[t(o)?(s(),n("div",{key:0,class:r(["CustomModal-body",t(o).className]),style:m(t(o).style)},[t(o).innerHTML?(s(),n("div",{key:0,innerHTML:t(o).innerHTML},null,8,W)):(s(),n(i,{key:1},[t(o).title?(s(),n("p",X,d(t(o).title),1)):v("",!0),(s(!0),n(i,null,E(t(o).children,(e,a)=>(s(),n(i,{key:a},[e.button?(s(),n("button",{key:0,class:r(["Button",e.className,`customEl${a}`]),style:m(p(e.style)),onClick:e.onClick},d(e.title),15,Y)):(s(),n("div",{key:1,class:r([e.className,`customEl${a}`]),style:m(p(e.style)),onClick:e.onClick},d(e.title),15,Z))],64))),128))],64))],6)):v("",!0)]),_:2},[t(c)?{name:"header",fn:w(()=>[B("div",{class:r(["CustomModal-header",t(c).className]),style:m(t(c).style)},[t(c).innerHTML?(s(),n("div",{key:0,innerHTML:t(c).innerHTML},null,8,R)):(s(),n(i,{key:1},[t(c).title?(s(),n("p",U,d(t(c).title),1)):v("",!0),(s(!0),n(i,null,E(t(c).children,(e,a)=>(s(),n(i,{key:a},[e.button?(s(),n("button",{key:0,class:r(["Button",e.className,`customEl${a}`]),style:m(p(e.style)),onClick:e.onClick},d(e.title),15,P)):(s(),n("div",{key:1,class:r([e.className,`customEl${a}`]),style:m(p(e.style)),onClick:e.onClick},d(e.title),15,Q))],64))),128))],64))],6)]),key:"0"}:void 0,t(y)?{name:"footer",fn:w(()=>[B("div",{class:r(["CustomModal-footer",t(y).className]),style:m(t(y).style)},[t(y).innerHTML?(s(),n("div",{key:0,innerHTML:t(y).innerHTML},null,8,ee)):(s(),n(i,{key:1},[t(y).title?(s(),n("p",te,d(t(y).title),1)):v("",!0),(s(!0),n(i,null,E(t(y).children,(e,a)=>(s(),n(i,{key:a},[e.button?(s(),n("button",{key:0,class:r(["Button",e.className,`customEl${a}`]),style:m(p(e.style)),onClick:e.onClick},d(e.title),15,se)):(s(),n("div",{key:1,class:r([e.className,`customEl${a}`]),style:m(p(e.style)),onClick:e.onClick},d(e.title),15,ne))],64))),128))],64))],6)]),key:"1"}:void 0]),1032,["dialogName"])],42,J)):v("",!0)}}},le={__name:"CustomModal",props:["dataElement"],setup(H){const C=h(),f=T(()=>C.getCustomModals);f.value.forEach(l=>C.activeElements[l.dataElement]=!1);const k=T(()=>f.value.filter(l=>!C.isElementDisabled(l.dataElement)));return(l,L)=>{const c=oe;return s(!0),n(i,null,E(k.value,o=>(s(),G(c,{key:o.dataElement,modal:o},null,8,["modal"]))),128)}}};export{le as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.page-mode-panel .sidebar-title{display:flex;justify-content:center;align-items:center;height:40px;font-size:14px;font-weight:700;color:var(--c-right-side-header-text);background-color:var(--c-side-header-bg);border-bottom:1px solid var(--c-side-header-border)}.page-mode-panel .mode-container{padding:0 20px 0 16px}.page-mode-panel .mode-item{padding:26px 0 7px}.page-mode-panel .mode-item+.mode-item{border-top:1px solid var(--c-side-header-border)}.page-mode-panel .mode-item h2{margin:0 0 18px;font-size:14px;line-height:16px}.page-mode-panel .mode-tabs{display:flex;align-items:center}.page-mode-panel .mode-tabs .button{padding:6px 13px;border-radius:6px;color:var(--c-tool-right-page)}.page-mode-panel .mode-tabs .button.active{color:var(--c-tool-right-page-active)}.page-mode-panel.mobile .sidebar-title{height:36px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as D,a as T,b as d,w as y,o as z,d as E,e as s,t as _,f as o,g as i,n as a,h as H,D as A,i as r,_ as B,j as N,T as O,k as R,l as G,m as L,p as j,q,r as F,s as I}from"./index.7b78a633.js";const J={class:"sidebar-title"},K={class:"mode-container"},Q={class:"mode-item"},U={class:"mode-tabs"},W={class:"mode-item"},X={class:"mode-tabs"},Y={class:"mode-item"},Z={class:"mode-tabs"},te={__name:"RightPanelPageMode",setup(x){const l=D(),v=T(),S=d(()=>l.isElementOpen(A.PAGE_MODE_PANEL)),u=d(()=>l.getScrollMode),p=d(()=>l.getPageMode),g=d(()=>l.getTheme),$=d(()=>v.getActiveTool);y(S,e=>{e&&$.value===O.CROP_PAGE&&v.setToolState("")});const M=(e,t)=>{p.value!==0&&e==="Horizontal"&&(r.switchSpreadMode(0),l.setPageMode(0)),l.setScrollMode(e),r.switchScrollMode(t)},m=e=>{u.value==="Horizontal"&&(l.setScrollMode("Vertical"),r.switchScrollMode(0)),r.switchSpreadMode(e),l.setPageMode(e)},h=e=>{e!==g.value&&l.setTheme(e)};return(e,t)=>{const f=R,n=B,w=G,P=L,k=j,b=q,C=F,V=I;return z(),E("div",{class:a(["page-mode-panel",{mobile:H(N)}])},[s("div",J,_(e.$t("toolbar.viewControls.viewSetting")),1),s("div",K,[s("div",Q,[s("h2",null,_(e.$t("panels.pageMode.displayMode.title")),1),s("div",U,[o(n,{class:a({active:p.value===0}),onClick:t[0]||(t[0]=c=>m(0)),title:e.$t("panels.pageMode.displayMode.singlePage")},{default:i(()=>[o(f)]),_:1},8,["class","title"]),o(n,{class:a({active:p.value===1}),onClick:t[1]||(t[1]=c=>m(1)),title:e.$t("panels.pageMode.displayMode.twoPages")},{default:i(()=>[o(w)]),_:1},8,["class","title"]),o(n,{class:a({active:p.value===2}),onClick:t[2]||(t[2]=c=>m(2)),title:e.$t("panels.pageMode.displayMode.coverMode")},{default:i(()=>[o(P)]),_:1},8,["class","title"])])]),s("div",W,[s("h2",null,_(e.$t("panels.pageMode.splitView.title")),1),s("div",X,[o(n,{class:a({active:u.value==="Vertical"}),onClick:t[3]||(t[3]=c=>M("Vertical",0)),title:e.$t("panels.pageMode.splitView.vertical")},{default:i(()=>[o(k)]),_:1},8,["class","title"]),o(n,{class:a({active:u.value==="Horizontal"}),onClick:t[4]||(t[4]=c=>M("Horizontal",1)),title:e.$t("panels.pageMode.splitView.horizontal")},{default:i(()=>[o(b)]),_:1},8,["class","title"])])]),s("div",Y,[s("h2",null,_(e.$t("panels.pageMode.themes")),1),s("div",Z,[o(n,{onClick:t[5]||(t[5]=c=>h("light")),class:a({active:g.value==="light"}),title:e.$t("toolbar.themeSwitcher.light")},{default:i(()=>[o(C)]),_:1},8,["class","title"]),o(n,{onClick:t[6]||(t[6]=c=>h("dark")),class:a({active:g.value==="dark"}),title:e.$t("toolbar.themeSwitcher.dark")},{default:i(()=>[o(V)]),_:1},8,["class","title"])])])])],2)}}};export{te as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as et,a as st,v as N,b as C,x as ot,w as x,i as E,D as u,o as r,d as c,e,t as v,F as A,y as M,f as $,g as U,z as V,n as q,h as S,A as nt,B as at,j,C as F,E as I,T as it,_ as lt,G as rt,H as mt}from"./index.7b78a633.js";const ct=""+new URL("../images/stamp/Approved.png",import.meta.url).href,pt=""+new URL("../images/stamp/NotApproved.png",import.meta.url).href,dt=""+new URL("../images/stamp/Completed.png",import.meta.url).href,ut=""+new URL("../images/stamp/Final.png",import.meta.url).href,gt=""+new URL("../images/stamp/Draft.png",import.meta.url).href,vt=""+new URL("../images/stamp/Confidential.png",import.meta.url).href,ht=""+new URL("../images/stamp/ForPublicRelease.png",import.meta.url).href,_t=""+new URL("../images/stamp/NotForPublicRelease.png",import.meta.url).href,wt=""+new URL("../images/stamp/ForComment.png",import.meta.url).href,St=""+new URL("../images/stamp/Void.png",import.meta.url).href,ft=""+new URL("../images/stamp/PreliminaryResults.png",import.meta.url).href,yt=""+new URL("../images/stamp/InformationOnly.png",import.meta.url).href,kt=""+new URL("../images/stamp/Witness.png",import.meta.url).href,Ct=""+new URL("../images/stamp/InitialHere.png",import.meta.url).href,Et=""+new URL("../images/stamp/SignHere.png",import.meta.url).href,Pt=""+new URL("../images/stamp/revised.png",import.meta.url).href;class bt{updateStampPreview({imgSrc:m,width:g,height:n,stampType:H,contents:f,stampColor:R,time:y}){this.width=g,this.height=n,this.imgSrc=m,this.stampType=H,this.contents=f,this.stampColor=R,this.time=y;const l=this.stampPreviewElement||document.createElement("div");l.innerHTML="",l.className="stamp-preview",this.applyStyles(l,{position:"absolute",border:"1px solid #00A4E4","z-index":85,"pointer-events":"none",left:"-9999px",top:"-9999px",width:g+"px",height:n+"px"}),document.body.appendChild(l);const P=document.createElement("img");this.applyStyles(P,{width:"100%",height:"100%"}),P.src=m,l.appendChild(P);const D=document.querySelector(".document");D.addEventListener("mousemove",this.handleMouseMove.bind(this,l)),D.addEventListener("mouseleave",()=>{l.style.left="-9999px",l.style.top="-9999px"}),this.stampPreviewElement=l}handleMouseMove(m,g){const n=m.getBoundingClientRect();this.applyStyles(m,{left:g.clientX-n.width/2+"px",top:g.clientY-n.height/2+"px"})}handleMouseLeave(m){this.applyStyles(m,{left:-9999,top:-9999})}hidePreview(){const m=this.stampPreviewElement||document.querySelector(".stamp-preview");m&&(m.style.display="none",m.remove(),this.stampPreviewElement=null,this.width=null,this.height=null,this.imgSrc=null,this.stampType=null,this.contents=null,this.stampColor=null,this.time=null)}applyStyles(m,g){Object.keys(g).forEach(n=>{m.style[n]=g[n]})}}const Tt={class:"sidebar-title"},At={class:"sidebar-tabs-header"},Rt={class:"sidebar-content"},Dt={key:0,class:"standard-container"},Lt={class:"block"},Nt={class:"block"},Mt={class:"block"},$t={class:"block"},Ut={class:"block"},Vt={class:"block"},Ft={class:"block"},It={class:"block"},Ht={class:"block"},xt={class:"block"},Bt={class:"block"},Ot={class:"block"},Wt={class:"block"},Yt={class:"block"},zt={class:"block"},qt={class:"block"},jt={key:1,class:"customize-container"},Xt={class:"dynamic-stamp red"},Gt=e("p",{class:"title"},"REVISED",-1),Jt={class:"dynamic-stamp green"},Kt=e("p",{class:"title"},"REVIEWED",-1),Qt={key:2,class:"custom-container"},Zt={key:0,class:"empty-list"},te=["src"],ee={class:"create-container"},se={key:3,class:"custom-container"},oe={key:0,class:"empty-list"},ne={class:"stamps-container"},ae=["src"],ie={key:0,class:"delete-page-popup"},re={__name:"StampPanel",setup(X){const{switchTool:m,switchAnnotationEditorMode:g}=E,n=et(),H=st(),f=N(!1),R=N(0),y=N(null),l=C(()=>n.getActiveElementTab(u.STAMP_PANEL)),P=C(()=>n.isElementOpen(u.STAMP_PANEL)),D=C(()=>H.getActiveTool),b=C(()=>n.getCustomStamps),B=C(()=>n.getStampPanelTabs),O=C(()=>n.getImportStamps),k=N(""),d=new bt,G=()=>{n.openElement("createCustomStampDialog")};ot(()=>{Y(),setInterval(Y,1e3);const s=document.querySelector(".document-container");s&&s.addEventListener("click",K)}),x(b.value,()=>{if(b.value.length){const s=Array.isArray(y.value)?y.value[0]:y.value;s==null||s.scrollTo({top:0,behavior:"smooth"})}});const J=s=>{const t=E.getScrollViewElement();if(!t)return;const p=t.scrollLeft||0,h=t.scrollTop||0,{pageX:_,pageY:w}=s;return{x:_+p,y:w+h}},K=s=>{const t=J(s),h=E.getSelectedPage(t,t).first;if(h<1)return;const _=E.windowToPage(t,h);if(d.stampPreviewElement){const{width:w,height:a}=d,o={stampType:d.stampType,page:h,rect:{x:_.x-w/2,y:_.y-a/2,width:w,height:a}};d.stampType==="dynamic"?(o.stampColor=d.stampColor,o.stampShape=0,o.contents=d.contents,o.time=k.value):d.stampType==="image"?o.imageBase64=d.imgSrc:o.contents=d.contents,E.handleStamp(o),d.hidePreview(),window.innerWidth<=640&&(n.toggleActiveHand(!1),m(0),g(0),n.closeElement(u.STAMP_PANEL))}};x(()=>D.value,(s,t)=>{s!==it.STAMP&&n.closeElement(u.STAMP_PANEL)}),x(()=>P.value,(s,t)=>{s&&W(u.STANDARD)});const W=s=>{n.setActiveElementTab(u.STAMP_PANEL,s)},Y=()=>{const s=new Date;k.value=Q(s)},Q=s=>{const t=s.getFullYear(),p=String(s.getMonth()+1).padStart(2,"0"),h=String(s.getDate()).padStart(2,"0"),_=String(s.getHours()).padStart(2,"0"),w=String(s.getMinutes()).padStart(2,"0"),a=String(s.getSeconds()).padStart(2,"0");return`${h}/${p}/${t} ${_}:${w}:${a}`},z=async(s,t)=>{const p=await E.getDynamicStampPreview({contents:t,time:k.value,stampColor:s,stampShape:0});d.updateStampPreview({imgSrc:p.imgSrc,width:p.width,height:p.height,stampType:"dynamic",stampColor:s,contents:t,stampShape:0,time:k.value})},i=(s,t,p)=>{t==="standard"?d.updateStampPreview({imgSrc:s.target.src,width:s.target.width,height:s.target.height,stampType:"standard",contents:p}):d.updateStampPreview({imgSrc:s.target.src,width:s.target.width,height:s.target.height,stampType:"image",contents:p})},Z=s=>{f.value=!0,R.value=s},tt=()=>{n.removeCustomStamp(R.value),f.value=!1};return(s,t)=>{const p=lt,h=rt,_=mt,w=nt;return r(),c("div",{class:q(["stamp-panel",{mobile:S(j)}])},[e("div",Tt,v(s.$t("toolbar.annotationTools.stamp")),1),e("div",At,[(r(!0),c(A,null,M(B.value,a=>(r(),at(p,{class:q({active:l.value===a.dataElement,mobile:S(j)&&a.dataElement==="CUSTOM"}),isActive:l.value===a.dataElement,"data-element":a.dataElement,onClick:o=>W(a.dataElement)},{default:U(()=>[e("span",null,v(a.text?a.text:s.$t("panels.stamp."+a.dataElement.toLowerCase())),1)]),_:2},1032,["class","isActive","data-element","onClick"]))),256))]),e("div",Rt,[(r(!0),c(A,null,M(B.value,a=>(r(),c(A,null,[a.dataElement===S(u).STANDARD?F((r(),c("div",Dt,[e("div",Lt,[e("img",{onClick:t[0]||(t[0]=o=>i(o,"standard","Approved")),src:ct,alt:"Approved"})]),e("div",Nt,[e("img",{onClick:t[1]||(t[1]=o=>i(o,"standard","Not Approved")),src:pt,alt:"Not Approved"})]),e("div",Mt,[e("img",{onClick:t[2]||(t[2]=o=>i(o,"standard","Completed")),src:dt,alt:"Completed"})]),e("div",$t,[e("img",{onClick:t[3]||(t[3]=o=>i(o,"standard","Final")),src:ut,alt:"Final"})]),e("div",Ut,[e("img",{onClick:t[4]||(t[4]=o=>i(o,"standard","Draft")),src:gt,alt:"Draft"})]),e("div",Vt,[e("img",{onClick:t[5]||(t[5]=o=>i(o,"standard","Confidential")),src:vt,alt:"Confidential"})]),e("div",Ft,[e("img",{onClick:t[6]||(t[6]=o=>i(o,"standard","For Public Release")),src:ht,alt:"For Public Release"})]),e("div",It,[e("img",{onClick:t[7]||(t[7]=o=>i(o,"standard","Not For Public Release")),src:_t,alt:"Not For Public Release"})]),e("div",Ht,[e("img",{onClick:t[8]||(t[8]=o=>i(o,"standard","For Comment")),src:wt,alt:"For Comment"})]),e("div",xt,[e("img",{onClick:t[9]||(t[9]=o=>i(o,"standard","Void")),src:St,alt:"Void"})]),e("div",Bt,[e("img",{onClick:t[10]||(t[10]=o=>i(o,"standard","Preliminary Results")),src:ft,alt:"Preliminary Results"})]),e("div",Ot,[e("img",{onClick:t[11]||(t[11]=o=>i(o,"standard","Information Only")),src:yt,alt:"Information Only"})]),e("div",Wt,[e("img",{onClick:t[12]||(t[12]=o=>i(o,"standard","Witness")),src:kt,alt:"Witness"})]),e("div",Yt,[e("img",{onClick:t[13]||(t[13]=o=>i(o,"standard","Initial Here")),src:Ct,alt:"Initial Here"})]),e("div",zt,[e("img",{onClick:t[14]||(t[14]=o=>i(o,"standard","Sign Here")),src:Et,alt:"Sign Here"})]),e("div",qt,[e("img",{onClick:t[15]||(t[15]=o=>i(o,"standard","revised")),src:Pt,alt:"revised"})])],512)),[[I,l.value===S(u).STANDARD]]):a.dataElement===S(u).DYNAMIC?F((r(),c("div",jt,[e("div",{class:"block",onClick:t[16]||(t[16]=o=>z(1,"REVISED"))},[e("div",Xt,[Gt,e("p",null,v(k.value),1)])]),e("div",{class:"block",onClick:t[17]||(t[17]=o=>z(2,"REVIEWED"))},[e("div",Jt,[Kt,e("p",null,v(k.value),1)])])],512)),[[I,l.value===S(u).DYNAMIC]]):a.dataElement===S(u).CUSTOM?F((r(),c("div",Qt,[b.value&&b.value.length===0?(r(),c("div",Zt,v(s.$t("panels.stamp.createHere")),1)):V("",!0),e("div",{ref_for:!0,ref_key:"stampsRef",ref:y,class:"stamps-container"},[(r(!0),c(A,null,M(b.value,(o,T)=>(r(),c("div",{class:"block",key:T},[e("img",{onClick:t[18]||(t[18]=L=>i(L,"custom","")),src:o},null,8,te),$(p,{class:"close-button",onClick:L=>Z(T)},{default:U(()=>[$(h)]),_:2},1032,["onClick"])]))),128))],512),e("div",ee,[e("div",{class:"create-button",onClick:t[19]||(t[19]=o=>G())},v(s.$t("panels.stamp.create")),1)])],512)),[[I,l.value===S(u).CUSTOM]]):a.type==="custom"?F((r(),c("div",se,[O.value.length===0?(r(),c("div",oe,v(s.$t("panels.stamp.importStamp")),1)):V("",!0),e("div",ne,[(r(!0),c(A,null,M(O.value,(o,T)=>(r(),c("div",{class:"block",key:T},[e("img",{onClick:t[20]||(t[20]=L=>i(L,"custom","")),src:o},null,8,ae)]))),128))])],512)),[[I,l.value===a.dataElement]]):V("",!0)],64))),256))]),f.value?(r(),c("div",ie,[$(w,{show:f.value,dialogName:s.dialogName},{footer:U(()=>[e("div",{class:"rect-button white",onClick:t[21]||(t[21]=a=>f.value=!1)},v(s.$t("common.actions.cancel")),1),e("div",{class:"rect-button blue",onClick:tt},v(s.$t("common.actions.ok")),1)]),default:U(()=>[$(_),e("p",null,v(s.$t("signatures.deleteConfirm")),1)]),_:1},8,["show","dialogName"])])):V("",!0)],2)}}};export{re as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.stamp-panel{height:100%}.stamp-panel .sidebar-tabs-header{display:flex;align-items:center;background-color:var(--c-right-side-header-bg)}.stamp-panel .sidebar-tabs-header .button{flex:1;margin:0;padding:12px 0;border-radius:initial;color:var(--c-right-side-header-text)}.stamp-panel .sidebar-tabs-header .button:not(.disabled):hover{background-color:var(--c-right-side-header-bg)}.stamp-panel .sidebar-tabs-header .button:not(.disabled).active{background-color:var(--c-right-side-header-active);color:var(--c-white)}.stamp-panel .sidebar-tabs-header .button span{font-size:12px;line-height:16px}.stamp-panel .sidebar-tabs-header .mobile{display:none}.stamp-panel .sidebar-tabs-header .divider{margin-right:0}.stamp-panel .sidebar-title{display:flex;justify-content:center;align-items:center;height:36px;font-size:14px;line-height:17px;font-weight:700;color:var(--c-right-side-header-text)}.stamp-panel .sidebar-content{width:100%;height:calc(100% - 76px)}.stamp-panel .sidebar-content .empty-list{display:flex;justify-content:center;align-items:center;height:100%;color:var(--c-text);font-weight:700;font-size:14px}.stamp-panel .sidebar-content .block{position:relative;padding:8px 0;display:flex;align-items:center;justify-content:center}.stamp-panel .sidebar-content .block:hover{background-color:#dde9ff;cursor:pointer}.stamp-panel .sidebar-content img{max-width:190px;max-height:66px}.stamp-panel .sidebar-content .standard-container,.stamp-panel .sidebar-content .customize-container{overflow:auto;height:100%}.stamp-panel .sidebar-content .dynamic-stamp{display:flex;flex-direction:column;justify-content:center;padding:0 16px;width:190px;height:36px;border-radius:6px;text-align:left;font-family:Helvetica;font-size:10px;font-weight:400;line-height:16px}.stamp-panel .sidebar-content .dynamic-stamp .title{font-size:14px}.stamp-panel .sidebar-content .dynamic-stamp.red{color:#9a1c04;border:1px solid #9A1C04;background:var(--c-dynamic-stamp-red-bg)}.stamp-panel .sidebar-content .dynamic-stamp.green{color:#4f7d2a;border:1px solid #A0BA8E;background:var(--c-dynamic-stamp-green-bg)}.stamp-panel .sidebar-content .custom-container{display:flex;flex-direction:column;width:100%;height:100%}.stamp-panel .sidebar-content .custom-container.hidden{display:none}.stamp-panel .sidebar-content .custom-container .stamps-container{flex:1;padding:16px 0;overflow:auto}.stamp-panel .sidebar-content .custom-container .block:hover .close-button{display:flex}.stamp-panel .sidebar-content .close-button{position:absolute;right:10px;display:none;margin:0}.stamp-panel .sidebar-content .close-button:not(.disabled):hover{background-color:var(--c-header-button-hover)}.stamp-panel .sidebar-content .create-container{background-color:var(--c-side-bg);width:100%;display:flex;justify-content:center;align-items:center}.stamp-panel .sidebar-content .create-button{display:flex;justify-content:center;align-items:center;width:200px;margin-bottom:12px;border-radius:8px;font-size:16px;line-height:20px;font-weight:700;padding:14px 0;text-align:center;background-color:var(--c-right-side-header-active);cursor:pointer;color:var(--c-white)}.stamp-panel .sidebar-content .create-button:hover{background-color:var(--c-right-side-header-active-hover)}.stamp-panel.mobile .standard-container{padding-bottom:80px}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as R}from"./index.
|
|
1
|
+
import{c as R}from"./index.7b78a633.js";function G(w,d){for(var b=0;b<d.length;b++){const y=d[b];if(typeof y!="string"&&!Array.isArray(y)){for(const h in y)if(h!=="default"&&!(h in w)){const p=Object.getOwnPropertyDescriptor(y,h);p&&Object.defineProperty(w,h,p.get?p:{enumerable:!0,get:()=>y[h]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var A={exports:{}};(function(w,d){var b=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof R<"u"&&R,y=function(){function p(){this.fetch=!1,this.DOMException=b.DOMException}return p.prototype=b,new p}();(function(p){(function(u){var a=typeof p<"u"&&p||typeof self<"u"&&self||typeof a<"u"&&a,f={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function U(e){return e&&DataView.prototype.isPrototypeOf(e)}if(f.arrayBuffer)var j=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],S=ArrayBuffer.isView||function(e){return e&&j.indexOf(Object.prototype.toString.call(e))>-1};function v(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function E(e){return typeof e!="string"&&(e=String(e)),e}function T(e){var t={next:function(){var r=e.shift();return{done:r===void 0,value:r}}};return f.iterable&&(t[Symbol.iterator]=function(){return t}),t}function s(e){this.map={},e instanceof s?e.forEach(function(t,r){this.append(r,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}s.prototype.append=function(e,t){e=v(e),t=E(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},s.prototype.delete=function(e){delete this.map[v(e)]},s.prototype.get=function(e){return e=v(e),this.has(e)?this.map[e]:null},s.prototype.has=function(e){return this.map.hasOwnProperty(v(e))},s.prototype.set=function(e,t){this.map[v(e)]=E(t)},s.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},s.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),T(e)},s.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),T(e)},s.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),T(e)},f.iterable&&(s.prototype[Symbol.iterator]=s.prototype.entries);function B(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function P(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function F(e){var t=new FileReader,r=P(t);return t.readAsArrayBuffer(e),r}function I(e){var t=new FileReader,r=P(t);return t.readAsText(e),r}function M(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}function D(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function x(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:f.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:f.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:f.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():f.arrayBuffer&&f.blob&&U(e)?(this._bodyArrayBuffer=D(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||S(e))?this._bodyArrayBuffer=D(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):f.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},f.blob&&(this.blob=function(){var e=B(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=B(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(F)}),this.text=function(){var e=B(this);if(e)return e;if(this._bodyBlob)return I(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(M(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},f.formData&&(this.formData=function(){return this.text().then(L)}),this.json=function(){return this.text().then(JSON.parse)},this}var H=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function q(e){var t=e.toUpperCase();return H.indexOf(t)>-1?t:e}function m(e,t){if(!(this instanceof m))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var r=t.body;if(e instanceof m){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new s(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!r&&e._bodyInit!=null&&(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new s(t.headers)),this.method=q(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+new Date().getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})};function L(e){var t=new FormData;return e.trim().split("&").forEach(function(r){if(r){var n=r.split("="),i=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(o))}}),t}function C(e){var t=new s,r=e.replace(/\r?\n[\t ]+/g," ");return r.split("\r").map(function(n){return n.indexOf(`
|
|
2
2
|
`)===0?n.substr(1,n.length):n}).forEach(function(n){var i=n.split(":"),o=i.shift().trim();if(o){var _=i.join(":").trim();t.append(o,_)}}),t}x.call(m.prototype);function l(e,t){if(!(this instanceof l))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new s(t.headers),this.url=t.url||"",this._initBody(e)}x.call(l.prototype),l.prototype.clone=function(){return new l(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},l.error=function(){var e=new l(null,{status:0,statusText:""});return e.type="error",e};var k=[301,302,303,307,308];l.redirect=function(e,t){if(k.indexOf(t)===-1)throw new RangeError("Invalid status code");return new l(null,{status:t,headers:{location:e}})},u.DOMException=a.DOMException;try{new u.DOMException}catch{u.DOMException=function(t,r){this.message=t,this.name=r;var n=Error(t);this.stack=n.stack},u.DOMException.prototype=Object.create(Error.prototype),u.DOMException.prototype.constructor=u.DOMException}function O(e,t){return new Promise(function(r,n){var i=new m(e,t);if(i.signal&&i.signal.aborted)return n(new u.DOMException("Aborted","AbortError"));var o=new XMLHttpRequest;function _(){o.abort()}o.onload=function(){var c={status:o.status,statusText:o.statusText,headers:C(o.getAllResponseHeaders()||"")};c.url="responseURL"in o?o.responseURL:c.headers.get("X-Request-URL");var g="response"in o?o.response:o.responseText;setTimeout(function(){r(new l(g,c))},0)},o.onerror=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){n(new u.DOMException("Aborted","AbortError"))},0)};function N(c){try{return c===""&&a.location.href?a.location.href:c}catch{return c}}o.open(i.method,N(i.url),!0),i.credentials==="include"?o.withCredentials=!0:i.credentials==="omit"&&(o.withCredentials=!1),"responseType"in o&&(f.blob?o.responseType="blob":f.arrayBuffer&&i.headers.get("Content-Type")&&i.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(o.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof s)?Object.getOwnPropertyNames(t.headers).forEach(function(c){o.setRequestHeader(c,E(t.headers[c]))}):i.headers.forEach(function(c,g){o.setRequestHeader(g,c)}),i.signal&&(i.signal.addEventListener("abort",_),o.onreadystatechange=function(){o.readyState===4&&i.signal.removeEventListener("abort",_)}),o.send(typeof i._bodyInit>"u"?null:i._bodyInit)})}return O.polyfill=!0,a.fetch||(a.fetch=O,a.Headers=s,a.Request=m,a.Response=l),u.Headers=s,u.Request=m,u.Response=l,u.fetch=O,u})({})})(y),y.fetch.ponyfill=!0,delete y.fetch.polyfill;var h=b.fetch?b:y;d=h.fetch,d.default=h.fetch,d.fetch=h.fetch,d.Headers=h.Headers,d.Request=h.Request,d.Response=h.Response,w.exports=d})(A,A.exports);const V=A.exports,$=G({__proto__:null,default:V},[A.exports]);export{$ as b};
|