@aitmed/aitmed-document-template 1.27.0 → 1.28.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.
|
@@ -15117,10 +15117,10 @@ const sl = (e) => (zs("data-v-6bdb7acd"), e = e(), Us(), e), hO = { class: "Recu
|
|
|
15117
15117
|
__name: "CalendarPicker",
|
|
15118
15118
|
setup(e) {
|
|
15119
15119
|
ia((D) => ({
|
|
15120
|
-
"
|
|
15121
|
-
|
|
15122
|
-
"
|
|
15123
|
-
"
|
|
15120
|
+
"97c49548": E.width,
|
|
15121
|
+
"946c075e": E.height,
|
|
15122
|
+
"75aa366b": E.top,
|
|
15123
|
+
"3f98cdb1": E.left
|
|
15124
15124
|
}));
|
|
15125
15125
|
const n = he(ga()), r = he(null), i = he(), l = bc().getCalendarPciker(), u = (D) => {
|
|
15126
15126
|
i.value && i.value.selectDate(D);
|
|
@@ -15132,7 +15132,7 @@ const sl = (e) => (zs("data-v-6bdb7acd"), e = e(), Us(), e), hO = { class: "Recu
|
|
|
15132
15132
|
}, g = (D) => {
|
|
15133
15133
|
D.target === r.value && l.close();
|
|
15134
15134
|
}, y = (D) => {
|
|
15135
|
-
const A = D.getMonth() + 1, T = D.getDate(), O = D.getFullYear(), Q = A
|
|
15135
|
+
const A = D.getMonth() + 1, T = D.getDate(), O = D.getFullYear(), Q = A >= 10 ? `${A}` : `0${A}`, B = T >= 10 ? `${T}` : `0${T}`;
|
|
15136
15136
|
return `${Q}/${B}/${O}`;
|
|
15137
15137
|
}, m = (D) => {
|
|
15138
15138
|
if (/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])\/[0-9]{4}/.test(D)) {
|
|
@@ -15280,7 +15280,7 @@ const sl = (e) => (zs("data-v-6bdb7acd"), e = e(), Us(), e), hO = { class: "Recu
|
|
|
15280
15280
|
]);
|
|
15281
15281
|
};
|
|
15282
15282
|
}
|
|
15283
|
-
}), v8 = /* @__PURE__ */ va(g8, [["__scopeId", "data-v-
|
|
15283
|
+
}), v8 = /* @__PURE__ */ va(g8, [["__scopeId", "data-v-31c0f145"]]);
|
|
15284
15284
|
var Fs = { exports: {} };
|
|
15285
15285
|
/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */
|
|
15286
15286
|
Fs.exports;
|
|
@@ -68,7 +68,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
68
68
|
`)},t.toDisplayString(O[H.key][De][kt]),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:pe=>D(H.alt,e.otherData[H.alt]?e.otherData[H.alt]:H.src,H.href==="markable"||H.href==="markeable")},null,14,k4)):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",T4,[H.text?(t.openBlock(),t.createElementBlock("div",v4,t.toDisplayString(H.text),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]))),256))])}}}),mi=(e,r)=>{const o=e.__vccOpts||e;for(const[a,l]of r)o[a]=l;return o},Gl=mi(N4,[["__scopeId","data-v-6bdb7acd"]]),ih="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",B4={class:"calendar_box"},D4={class:"date"},L4={class:"calendar_chioce"},O4=mi(t.defineComponent({__name:"CalendarPicker",setup(e){t.useCssVars(v=>({"
|
|
71
|
+
`:""),src:e.otherData[H.alt]?e.otherData[H.alt]:H.src,onClick:pe=>D(H.alt,e.otherData[H.alt]?e.otherData[H.alt]:H.src,H.href==="markable"||H.href==="markeable")},null,14,k4)):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",T4,[H.text?(t.openBlock(),t.createElementBlock("div",v4,t.toDisplayString(H.text),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]))),256))])}}}),mi=(e,r)=>{const o=e.__vccOpts||e;for(const[a,l]of r)o[a]=l;return o},Gl=mi(N4,[["__scopeId","data-v-6bdb7acd"]]),ih="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",B4={class:"calendar_box"},D4={class:"date"},L4={class:"calendar_chioce"},O4=mi(t.defineComponent({__name:"CalendarPicker",setup(e){t.useCssVars(v=>({"97c49548":S.width,"946c075e":S.height,"75aa366b":S.top,"3f98cdb1":S.left}));const r=t.ref(hi()),o=t.ref(null),a=t.ref(),c=xs().getCalendarPciker(),u=v=>{a.value&&a.value.selectDate(v)},f=t.reactive({status:!1,value:new Date}),m=v=>v.startsWith("0")?parseInt(v).toString():v,y=()=>{c.close()},g=v=>{v.target===o.value&&c.close()},w=v=>{const M=v.getMonth()+1,T=v.getDate(),B=v.getFullYear(),Y=M>=10?`${M}`:`0${M}`,O=T>=10?`${T}`:`0${T}`;return`${Y}/${O}/${B}`},b=v=>{if(/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])\/[0-9]{4}/.test(v)){const M=v.split("/"),T=parseInt(M[0])-1,B=parseInt(M[1]),Y=parseInt(M[2]);return new Date(Y,T,B)}else throw Error("The string format error!")},A=()=>{Rn.set(c.options.formData,c.options.dataKey,w(f.value)),y()},E=()=>{y()},S=t.reactive({top:"",left:"",width:"",height:""});return t.onMounted(()=>{if(a.value){const T=Rn.get(c.options.formData,c.options.dataKey);if(T){const B=b(T);f.value=B}}const M=Nr().getDocumentTemplate();r.value?(S.top="0",S.left="0",S.width="100vw",S.height="100vh"):M.relatedDom?(S.top=`${M.relatedDom.offsetTop}px`,S.left=`${M.relatedDom.offsetLeft}px`,S.width=`${M.relatedDom.clientWidth}px`,S.height=`${M.relatedDom.clientHeight}px`):(S.top="0",S.left="0",S.width="100vw",S.height="100vh")}),(v,M)=>{const T=yr,B=Kd,Y=DS;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",B4,[t.createElementVNode("div",{class:"calendar_close"},[t.createElementVNode("img",{class:"image-editor-close_icon",src:ih,onClick:y})]),t.createVNode(Y,{ref_key:"calendar",ref:a,modelValue:f.value,"onUpdate:modelValue":M[5]||(M[5]=O=>f.value=O),class:"calendar"},{header:t.withCtx(({date:O})=>[t.createVNode(B,null,{default:t.withCtx(()=>[t.createVNode(T,{size:"small",onClick:M[0]||(M[0]=Q=>u("prev-year"))},{default:t.withCtx(()=>[t.createTextVNode(" << ")]),_:1}),t.createVNode(T,{size:"small",onClick:M[1]||(M[1]=Q=>u("prev-month"))},{default:t.withCtx(()=>[t.createTextVNode(" < ")]),_:1})]),_:1}),t.createElementVNode("span",null,t.toDisplayString(O),1),t.createVNode(B,null,{default:t.withCtx(()=>[t.createVNode(T,{size:"small",onClick:M[2]||(M[2]=Q=>u("today"))},{default:t.withCtx(()=>[t.createTextVNode("Today")]),_:1}),t.createVNode(T,{size:"small",onClick:M[3]||(M[3]=Q=>u("next-month"))},{default:t.withCtx(()=>[t.createTextVNode(" > ")]),_:1}),t.createVNode(T,{size:"small",onClick:M[4]||(M[4]=Q=>u("next-year"))},{default:t.withCtx(()=>[t.createTextVNode(" >> ")]),_:1})]),_:1})]),"date-cell":t.withCtx(({data:O})=>[t.createElementVNode("div",D4,[t.createElementVNode("p",{class:t.normalizeClass(O.isSelected?"is-selected":"")},t.toDisplayString(m(O.day.split("-")[2])),3)])]),_:1},8,["modelValue"]),t.createElementVNode("div",L4,[t.createVNode(T,{class:"calendar_chioce_button calendar_cancel",onClick:E},{default:t.withCtx(()=>[t.createTextVNode("Cancel")]),_:1}),t.createVNode(T,{class:"calendar_chioce_button calendar_confirm",onClick:A},{default:t.withCtx(()=>[t.createTextVNode("Confirm")]),_:1})])])],2)])}}}),[["__scopeId","data-v-31c0f145"]]);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 On=="object"&&On;(c.global===c||c.window===c)&&(o=c);var u=function(E){this.message=E};u.prototype=new Error,u.prototype.name="InvalidCharacterError";var f=function(E){throw new u(E)},m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=/[\t\n\f\r ]/g,g=function(E){E=String(E).replace(y,"");var S=E.length;S%4==0&&(E=E.replace(/==?$/,""),S=E.length),(S%4==1||/[^+a-zA-Z0-9/]/.test(E))&&f("Invalid character: the string to be decoded is not correctly encoded.");for(var v=0,M,T,B="",Y=-1;++Y<S;)T=m.indexOf(E.charAt(Y)),M=v%4?M*64+T:T,v++%4&&(B+=String.fromCharCode(255&M>>(-2*v&6)));return B},w=function(E){E=String(E),/[^\0-\xFF]/.test(E)&&f("The string to be encoded contains characters outside of the Latin1 range.");for(var S=E.length%3,v="",M=-1,T,B,Y,O,Q=E.length-S;++M<Q;)T=E.charCodeAt(M)<<16,B=E.charCodeAt(++M)<<8,Y=E.charCodeAt(++M),O=T+B+Y,v+=m.charAt(O>>18&63)+m.charAt(O>>12&63)+m.charAt(O>>6&63)+m.charAt(O&63);return S==2?(T=E.charCodeAt(M)<<8,B=E.charCodeAt(++M),O=T+B,v+=m.charAt(O>>10)+m.charAt(O>>4&63)+m.charAt(O<<2&63)+"="):S==1&&(O=E.charCodeAt(M),v+=m.charAt(O>>2)+m.charAt(O<<4&63)+"=="),v},b={encode:w,decode:g,version:"1.0.0"};if(a&&!a.nodeType)if(l)l.exports=b;else for(var A in b)b.hasOwnProperty(A)&&(a[A]=b[A]);else o.base64=b})(On)}(_a,_a.exports),_a.exports;var ah={},Ia={};Ia.byteLength=P4,Ia.toByteArray=V4,Ia.fromByteArray=U4;for(var zn=[],ln=[],R4=typeof Uint8Array<"u"?Uint8Array:Array,Kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ao=0,z4=Kl.length;Ao<z4;++Ao)zn[Ao]=Kl[Ao],ln[Kl.charCodeAt(Ao)]=Ao;ln[45]=62,ln[95]=63;function sh(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 P4(e){var r=sh(e),o=r[0],a=r[1];return(o+a)*3/4-a}function $4(e,r,o){return(r+o)*3/4-o}function V4(e){var r,o=sh(e),a=o[0],l=o[1],c=new R4($4(e,a,l)),u=0,f=l>0?a-4:a,m;for(m=0;m<f;m+=4)r=ln[e.charCodeAt(m)]<<18|ln[e.charCodeAt(m+1)]<<12|ln[e.charCodeAt(m+2)]<<6|ln[e.charCodeAt(m+3)],c[u++]=r>>16&255,c[u++]=r>>8&255,c[u++]=r&255;return l===2&&(r=ln[e.charCodeAt(m)]<<2|ln[e.charCodeAt(m+1)]>>4,c[u++]=r&255),l===1&&(r=ln[e.charCodeAt(m)]<<10|ln[e.charCodeAt(m+1)]<<4|ln[e.charCodeAt(m+2)]>>2,c[u++]=r>>8&255,c[u++]=r&255),c}function j4(e){return zn[e>>18&63]+zn[e>>12&63]+zn[e>>6&63]+zn[e&63]}function F4(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(j4(a));return l.join("")}function U4(e){for(var r,o=e.length,a=o%3,l=[],c=16383,u=0,f=o-a;u<f;u+=c)l.push(F4(e,u,u+c>f?f:u+c));return a===1?(r=e[o-1],l.push(zn[r>>2]+zn[r<<4&63]+"==")):a===2&&(r=(e[o-2]<<8)+e[o-1],l.push(zn[r>>10]+zn[r>>4&63]+zn[r<<2&63]+"=")),l.join("")}var ql={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ql.read=function(e,r,o,a,l){var c,u,f=l*8-a-1,m=(1<<f)-1,y=m>>1,g=-7,w=o?l-1:0,b=o?-1:1,A=e[r+w];for(w+=b,c=A&(1<<-g)-1,A>>=-g,g+=f;g>0;c=c*256+e[r+w],w+=b,g-=8);for(u=c&(1<<-g)-1,c>>=-g,g+=a;g>0;u=u*256+e[r+w],w+=b,g-=8);if(c===0)c=1-y;else{if(c===m)return u?NaN:(A?-1:1)*(1/0);u=u+Math.pow(2,a),c=c-y}return(A?-1:1)*u*Math.pow(2,c-a)},ql.write=function(e,r,o,a,l,c){var u,f,m,y=c*8-l-1,g=(1<<y)-1,w=g>>1,b=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=a?0:c-1,E=a?1:-1,S=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+w>=1?r+=b/m:r+=b*Math.pow(2,1-w),r*m>=2&&(u++,m/=2),u+w>=g?(f=0,u=g):u+w>=1?(f=(r*m-1)*Math.pow(2,l),u=u+w):(f=r*Math.pow(2,w-1)*Math.pow(2,l),u=0));l>=8;e[o+A]=f&255,A+=E,f/=256,l-=8);for(u=u<<l|f,y+=l;y>0;e[o+A]=u&255,A+=E,u/=256,y-=8);e[o+A-E]|=S*128};/*!
|
|
72
72
|
* The buffer module from node.js, for the browser.
|
|
73
73
|
*
|
|
74
74
|
* @author Feross Aboukhadijeh <https://feross.org>
|