@aitmed/aitmed-document-template 1.20.0 → 1.21.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.
|
@@ -15109,10 +15109,10 @@ const il = (e) => (Ns("data-v-a68be4db"), e = e(), Us(), e), fk = { class: "Recu
|
|
|
15109
15109
|
__name: "CalendarPicker",
|
|
15110
15110
|
setup(e) {
|
|
15111
15111
|
ra((k) => ({
|
|
15112
|
-
"
|
|
15113
|
-
|
|
15114
|
-
"
|
|
15115
|
-
"
|
|
15112
|
+
"0ea9945d": w.width,
|
|
15113
|
+
a68c0520: w.height,
|
|
15114
|
+
"3bf3e1ac": w.top,
|
|
15115
|
+
"42848a90": w.left
|
|
15116
15116
|
}));
|
|
15117
15117
|
const n = pe(pa()), r = pe(null), i = pe(), l = mc().getCalendarPciker(), u = (k) => {
|
|
15118
15118
|
i.value && i.value.selectDate(k);
|
|
@@ -15155,14 +15155,14 @@ const il = (e) => (Ns("data-v-a68be4db"), e = e(), Us(), e), fk = { class: "Recu
|
|
|
15155
15155
|
}
|
|
15156
15156
|
}
|
|
15157
15157
|
const T = ii().getDocumentTemplate();
|
|
15158
|
-
n.value ? (w.top = "
|
|
15158
|
+
n.value ? (w.top = "0", w.left = "0", w.width = "100vw", w.height = "100vh") : T.relatedDom ? (w.top = `${T.relatedDom.offsetTop}px`, w.left = `${T.relatedDom.offsetLeft}px`, w.width = `${T.relatedDom.clientWidth}px`, w.height = `${T.relatedDom.clientHeight}px`) : (w.top = "0", w.left = "0", w.width = "100vw", w.height = "100vh");
|
|
15159
15159
|
}), (k, T) => {
|
|
15160
15160
|
const I = ro, M = Ng, X = rI;
|
|
15161
15161
|
return D(), K("div", null, [
|
|
15162
15162
|
j("div", {
|
|
15163
15163
|
ref_key: "pickerView",
|
|
15164
15164
|
ref: r,
|
|
15165
|
-
class: "calendar_view",
|
|
15165
|
+
class: ne(n.value ? "calendar_view calendar_view-mobile" : "calendar_view calendar_view-ps"),
|
|
15166
15166
|
onClick: g
|
|
15167
15167
|
}, [
|
|
15168
15168
|
j("div", uR, [
|
|
@@ -15268,11 +15268,11 @@ const il = (e) => (Ns("data-v-a68be4db"), e = e(), Us(), e), fk = { class: "Recu
|
|
|
15268
15268
|
})
|
|
15269
15269
|
])
|
|
15270
15270
|
])
|
|
15271
|
-
],
|
|
15271
|
+
], 2)
|
|
15272
15272
|
]);
|
|
15273
15273
|
};
|
|
15274
15274
|
}
|
|
15275
|
-
}), pR = /* @__PURE__ */ ha(dR, [["__scopeId", "data-v-
|
|
15275
|
+
}), pR = /* @__PURE__ */ ha(dR, [["__scopeId", "data-v-f50a4082"]]);
|
|
15276
15276
|
var Ms = { exports: {} };
|
|
15277
15277
|
/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */
|
|
15278
15278
|
Ms.exports;
|
|
@@ -68,7 +68,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
68
68
|
`)},t.toDisplayString(D[H.key][Re][Tt]),5))],6))),256))],6))),256))],6)):t.createCommentVNode("",!0),H.type==="image"?(t.openBlock(),t.createElementBlock("img",{key:5,class:t.normalizeClass(H.type),style:t.normalizeStyle(H.style?`
|
|
69
69
|
width: ${H.style.width};
|
|
70
70
|
height: ${H.style.height};
|
|
71
|
-
`:""),src:e.otherData[H.alt]?e.otherData[H.alt]:H.src,onClick:he=>N(H.alt,e.otherData[H.alt]?e.otherData[H.alt]:H.src,H.href==="markable"||H.href==="markeable")},null,14,vk)):t.createCommentVNode("",!0),H.type==="divider"?(t.openBlock(),t.createElementBlock("hr",{key:6,class:t.normalizeClass(H.type)},null,2)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),"text"in H?(t.openBlock(),t.createElementBlock("div",kk,[H.text?(t.openBlock(),t.createElementBlock("div",Bk,t.toDisplayString(H.text),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]))),256))])}}}),pi=(e,r)=>{const o=e.__vccOpts||e;for(const[a,l]of r)o[a]=l;return o},jl=pi(Tk,[["__scopeId","data-v-a68be4db"]]),rh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%3e%3cpath%20id='calendarCancel'%20d='M28.5,9.615,26.385,7.5,18,15.885,9.615,7.5,7.5,9.615,15.885,18,7.5,26.385,9.615,28.5,18,20.115,26.385,28.5,28.5,26.385,20.115,18Z'%20transform='translate(-7.5%20-7.5)'/%3e%3c/svg%3e",Ak={class:"calendar_box"},Ik={class:"date"},Ok={class:"calendar_chioce"},Nk=pi(t.defineComponent({__name:"CalendarPicker",setup(e){t.useCssVars(I=>({"
|
|
71
|
+
`:""),src:e.otherData[H.alt]?e.otherData[H.alt]:H.src,onClick:he=>N(H.alt,e.otherData[H.alt]?e.otherData[H.alt]:H.src,H.href==="markable"||H.href==="markeable")},null,14,vk)):t.createCommentVNode("",!0),H.type==="divider"?(t.openBlock(),t.createElementBlock("hr",{key:6,class:t.normalizeClass(H.type)},null,2)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),"text"in H?(t.openBlock(),t.createElementBlock("div",kk,[H.text?(t.openBlock(),t.createElementBlock("div",Bk,t.toDisplayString(H.text),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]))),256))])}}}),pi=(e,r)=>{const o=e.__vccOpts||e;for(const[a,l]of r)o[a]=l;return o},jl=pi(Tk,[["__scopeId","data-v-a68be4db"]]),rh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%3e%3cpath%20id='calendarCancel'%20d='M28.5,9.615,26.385,7.5,18,15.885,9.615,7.5,7.5,9.615,15.885,18,7.5,26.385,9.615,28.5,18,20.115,26.385,28.5,28.5,26.385,20.115,18Z'%20transform='translate(-7.5%20-7.5)'/%3e%3c/svg%3e",Ak={class:"calendar_box"},Ik={class:"date"},Ok={class:"calendar_chioce"},Nk=pi(t.defineComponent({__name:"CalendarPicker",setup(e){t.useCssVars(I=>({"0ea9945d":C.width,a68c0520:C.height,"3bf3e1ac":C.top,"42848a90":C.left}));const r=t.ref(di()),o=t.ref(null),a=t.ref(),c=Cs().getCalendarPciker(),u=I=>{a.value&&a.value.selectDate(I)},f=t.reactive({status:!1,value:new Date}),m=I=>I.startsWith("0")?parseInt(I).toString():I,y=()=>{c.close()},g=I=>{I.target===o.value&&c.close()},b=I=>{const k=I.getMonth()+1,T=I.getDate(),L=I.getFullYear(),K=k>10?`${k}`:`0${k}`,D=T>10?`${T}`:`0${T}`;return`${K}/${D}/${L}`},x=I=>{if(/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])\/[0-9]{4}/.test(I)){const k=I.split("/"),T=parseInt(k[0])-1,L=parseInt(k[1]),K=parseInt(k[2]);return new Date(K,T,L)}else throw Error("The string format error!")},_=()=>{$n.set(c.options.formData,c.options.dataKey,b(f.value)),y()},w=()=>{y()},C=t.reactive({top:"",left:"",width:"",height:""});return t.onMounted(()=>{if(a.value){const T=$n.get(c.options.formData,c.options.dataKey);if(T){const L=x(T);f.value=L}}const k=Ar().getDocumentTemplate();r.value?(C.top="0",C.left="0",C.width="100vw",C.height="100vh"):k.relatedDom?(C.top=`${k.relatedDom.offsetTop}px`,C.left=`${k.relatedDom.offsetLeft}px`,C.width=`${k.relatedDom.clientWidth}px`,C.height=`${k.relatedDom.clientHeight}px`):(C.top="0",C.left="0",C.width="100vw",C.height="100vh")}),(I,k)=>{const T=gr,L=Kd,K=I_;return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{ref_key:"pickerView",ref:o,class:t.normalizeClass(r.value?"calendar_view calendar_view-mobile":"calendar_view calendar_view-ps"),onClick:g},[t.createElementVNode("div",Ak,[t.createElementVNode("div",{class:"calendar_close"},[t.createElementVNode("img",{class:"image-editor-close_icon",src:rh,onClick:y})]),t.createVNode(K,{ref_key:"calendar",ref:a,modelValue:f.value,"onUpdate:modelValue":k[5]||(k[5]=D=>f.value=D),class:"calendar"},{header:t.withCtx(({date:D})=>[t.createVNode(L,null,{default:t.withCtx(()=>[t.createVNode(T,{size:"small",onClick:k[0]||(k[0]=G=>u("prev-year"))},{default:t.withCtx(()=>[t.createTextVNode(" << ")]),_:1}),t.createVNode(T,{size:"small",onClick:k[1]||(k[1]=G=>u("prev-month"))},{default:t.withCtx(()=>[t.createTextVNode(" < ")]),_:1})]),_:1}),t.createElementVNode("span",null,t.toDisplayString(D),1),t.createVNode(L,null,{default:t.withCtx(()=>[t.createVNode(T,{size:"small",onClick:k[2]||(k[2]=G=>u("today"))},{default:t.withCtx(()=>[t.createTextVNode("Today")]),_:1}),t.createVNode(T,{size:"small",onClick:k[3]||(k[3]=G=>u("next-month"))},{default:t.withCtx(()=>[t.createTextVNode(" > ")]),_:1}),t.createVNode(T,{size:"small",onClick:k[4]||(k[4]=G=>u("next-year"))},{default:t.withCtx(()=>[t.createTextVNode(" >> ")]),_:1})]),_:1})]),"date-cell":t.withCtx(({data:D})=>[t.createElementVNode("div",Ik,[t.createElementVNode("p",{class:t.normalizeClass(D.isSelected?"is-selected":"")},t.toDisplayString(m(D.day.split("-")[2])),3)])]),_:1},8,["modelValue"]),t.createElementVNode("div",Ok,[t.createVNode(T,{class:"calendar_chioce_button calendar_cancel",onClick:w},{default:t.withCtx(()=>[t.createTextVNode("Cancel")]),_:1}),t.createVNode(T,{class:"calendar_chioce_button calendar_confirm",onClick:_},{default:t.withCtx(()=>[t.createTextVNode("Confirm")]),_:1})])])],2)])}}}),[["__scopeId","data-v-f50a4082"]]);var _a={exports:{}};/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */_a.exports,function(e,r){(function(o){var a=r,l=e&&e.exports==a&&e,c=typeof Dn=="object"&&Dn;(c.global===c||c.window===c)&&(o=c);var u=function(w){this.message=w};u.prototype=new Error,u.prototype.name="InvalidCharacterError";var f=function(w){throw new u(w)},m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=/[\t\n\f\r ]/g,g=function(w){w=String(w).replace(y,"");var C=w.length;C%4==0&&(w=w.replace(/==?$/,""),C=w.length),(C%4==1||/[^+a-zA-Z0-9/]/.test(w))&&f("Invalid character: the string to be decoded is not correctly encoded.");for(var I=0,k,T,L="",K=-1;++K<C;)T=m.indexOf(w.charAt(K)),k=I%4?k*64+T:T,I++%4&&(L+=String.fromCharCode(255&k>>(-2*I&6)));return L},b=function(w){w=String(w),/[^\0-\xFF]/.test(w)&&f("The string to be encoded contains characters outside of the Latin1 range.");for(var C=w.length%3,I="",k=-1,T,L,K,D,G=w.length-C;++k<G;)T=w.charCodeAt(k)<<16,L=w.charCodeAt(++k)<<8,K=w.charCodeAt(++k),D=T+L+K,I+=m.charAt(D>>18&63)+m.charAt(D>>12&63)+m.charAt(D>>6&63)+m.charAt(D&63);return C==2?(T=w.charCodeAt(k)<<8,L=w.charCodeAt(++k),D=T+L,I+=m.charAt(D>>10)+m.charAt(D>>4&63)+m.charAt(D<<2&63)+"="):C==1&&(D=w.charCodeAt(k),I+=m.charAt(D>>2)+m.charAt(D<<4&63)+"=="),I},x={encode:b,decode:g,version:"1.0.0"};if(a&&!a.nodeType)if(l)l.exports=x;else for(var _ in x)x.hasOwnProperty(_)&&(a[_]=x[_]);else o.base64=x})(Dn)}(_a,_a.exports),_a.exports;var oh={},Sa={};Sa.byteLength=$k,Sa.toByteArray=Mk,Sa.fromByteArray=Fk;for(var Ln=[],sn=[],Rk=typeof Uint8Array<"u"?Uint8Array:Array,Kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vo=0,Dk=Kl.length;vo<Dk;++vo)Ln[vo]=Kl[vo],sn[Kl.charCodeAt(vo)]=vo;sn[45]=62,sn[95]=63;function ih(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("=");o===-1&&(o=r);var a=o===r?0:4-o%4;return[o,a]}function $k(e){var r=ih(e),o=r[0],a=r[1];return(o+a)*3/4-a}function Lk(e,r,o){return(r+o)*3/4-o}function Mk(e){var r,o=ih(e),a=o[0],l=o[1],c=new Rk(Lk(e,a,l)),u=0,f=l>0?a-4:a,m;for(m=0;m<f;m+=4)r=sn[e.charCodeAt(m)]<<18|sn[e.charCodeAt(m+1)]<<12|sn[e.charCodeAt(m+2)]<<6|sn[e.charCodeAt(m+3)],c[u++]=r>>16&255,c[u++]=r>>8&255,c[u++]=r&255;return l===2&&(r=sn[e.charCodeAt(m)]<<2|sn[e.charCodeAt(m+1)]>>4,c[u++]=r&255),l===1&&(r=sn[e.charCodeAt(m)]<<10|sn[e.charCodeAt(m+1)]<<4|sn[e.charCodeAt(m+2)]>>2,c[u++]=r>>8&255,c[u++]=r&255),c}function Pk(e){return Ln[e>>18&63]+Ln[e>>12&63]+Ln[e>>6&63]+Ln[e&63]}function Vk(e,r,o){for(var a,l=[],c=r;c<o;c+=3)a=(e[c]<<16&16711680)+(e[c+1]<<8&65280)+(e[c+2]&255),l.push(Pk(a));return l.join("")}function Fk(e){for(var r,o=e.length,a=o%3,l=[],c=16383,u=0,f=o-a;u<f;u+=c)l.push(Vk(e,u,u+c>f?f:u+c));return a===1?(r=e[o-1],l.push(Ln[r>>2]+Ln[r<<4&63]+"==")):a===2&&(r=(e[o-2]<<8)+e[o-1],l.push(Ln[r>>10]+Ln[r>>4&63]+Ln[r<<2&63]+"=")),l.join("")}var Gl={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Gl.read=function(e,r,o,a,l){var c,u,f=l*8-a-1,m=(1<<f)-1,y=m>>1,g=-7,b=o?l-1:0,x=o?-1:1,_=e[r+b];for(b+=x,c=_&(1<<-g)-1,_>>=-g,g+=f;g>0;c=c*256+e[r+b],b+=x,g-=8);for(u=c&(1<<-g)-1,c>>=-g,g+=a;g>0;u=u*256+e[r+b],b+=x,g-=8);if(c===0)c=1-y;else{if(c===m)return u?NaN:(_?-1:1)*(1/0);u=u+Math.pow(2,a),c=c-y}return(_?-1:1)*u*Math.pow(2,c-a)},Gl.write=function(e,r,o,a,l,c){var u,f,m,y=c*8-l-1,g=(1<<y)-1,b=g>>1,x=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=a?0:c-1,w=a?1:-1,C=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,u=g):(u=Math.floor(Math.log(r)/Math.LN2),r*(m=Math.pow(2,-u))<1&&(u--,m*=2),u+b>=1?r+=x/m:r+=x*Math.pow(2,1-b),r*m>=2&&(u++,m/=2),u+b>=g?(f=0,u=g):u+b>=1?(f=(r*m-1)*Math.pow(2,l),u=u+b):(f=r*Math.pow(2,b-1)*Math.pow(2,l),u=0));l>=8;e[o+_]=f&255,_+=w,f/=256,l-=8);for(u=u<<l|f,y+=l;y>0;e[o+_]=u&255,_+=w,u/=256,y-=8);e[o+_-w]|=C*128};/*!
|
|
72
72
|
* The buffer module from node.js, for the browser.
|
|
73
73
|
*
|
|
74
74
|
* @author Feross Aboukhadijeh <https://feross.org>
|