@aitmed/aitmed-document-template 1.43.0 → 1.44.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
|
-
(function(yt,Nn){typeof exports=="object"&&typeof module<"u"?Nn(exports,require("pinia"),require("vue")):typeof define=="function"&&define.amd?define(["exports","pinia","vue"],Nn):(yt=typeof globalThis<"u"?globalThis:yt||self,Nn(yt.MyComponentLibrary={},yt.Pinia,yt.Vue))})(this,function(yt,Nn,t){"use strict";var Ss;(function(e){e.provider="provider",e.patient="patient",e.attorney="attorney"})(Ss||(Ss={}));const Vt=Ss;var xs;(function(e){e["Provider Note"]="provider",e["Patient Form"]="patient",e["Attorney Note"]="attorney"})(xs||(xs={}));const gu=xs,vr=t.reactive({data:{},ecos:{},role:Vt.provider,docType:gu["Provider Note"],info:{providerSignatureInfo:{eid:"",vid:"",fid:""},patientSignatureInfo:{eid:"",vid:"",fid:""},rootNotebookID:"",facilityId:"",locationIds:[],patientId:""},relatedDom:null}),zg=e=>{vr.data=e},Br=Nn.defineStore("documentTempalte",()=>({setDocumentTemplate:({ecos:o,role:a,docType:l,info:c,relatedDom:u})=>{o!==void 0&&(vr.ecos=o),a!==void 0&&(vr.role=a),l!==void 0&&(vr.docType=l),c!==void 0&&(vr.info=c),u&&(vr.relatedDom=u)},getDocumentTemplate:()=>vr})),_s=Nn.defineStore("calendarPicker",()=>{const e=t.reactive({status:!1,options:{dataKey:"",formData:{}},open(o){this.status=!0,this.options=o},close(){this.status=!1}});return{getCalendarPciker:()=>e}}),Is=Nn.defineStore("signaturePad",()=>{const e=t.reactive({status:!1,options:{dataKey:"",type:Vt.provider,isGuardian:!1,formData:{},timeKey:""},confirm:async(o,a,l,c)=>{},open(o){this.status=!0,this.options=o},close(){this.status=!1}});return{getSignaturePad:()=>e}}),ks=Nn.defineStore("imageEditor",()=>{const e=t.reactive({status:!1,options:{dataKey:"",formData:{},src:""},confirm:async(o,a,l)=>{},open(o){this.status=!0,this.options=o},close(){this.status=!1}});return{getImageEditor:()=>e}}),Ms=Nn.defineStore("recommendDiagnosis",()=>{const e=t.reactive({status:!1,cache:{hasCache:!1,list:[]},options:{formData:{}},open(o){this.status=!0,this.options=o},close(){this.status=!1}});return{getRecommendDiagnosis:()=>e}}),Pg='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',$g=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,yu=e=>Array.from(e.querySelectorAll(Pg)).filter(r=>Fg(r)&&$g(r)),Fg=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},jn=(e,r,{checkForDefaultPrevented:o=!0}={})=>l=>{const c=e==null?void 0:e(l);if(o===!1||!c)return r==null?void 0:r(l)};var bu;const ht=typeof window<"u",jg=e=>typeof e=="string",wu=()=>{},Ug=ht&&((bu=window==null?void 0:window.navigator)==null?void 0:bu.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Eu(e){return typeof e=="function"?e():t.unref(e)}function Wg(e){return e}function Li(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function Hg(e,r=!0){t.getCurrentInstance()?t.onMounted(e):r?e():t.nextTick(e)}function Un(e){var r;const o=Eu(e);return(r=o==null?void 0:o.$el)!=null?r:o}const Oi=ht?window:void 0;function Dr(...e){let r,o,a,l;if(jg(e[0])||Array.isArray(e[0])?([o,a,l]=e,r=Oi):[r,o,a,l]=e,!r)return wu;Array.isArray(o)||(o=[o]),Array.isArray(a)||(a=[a]);const c=[],u=()=>{c.forEach(g=>g()),c.length=0},f=(g,w,b,M)=>(g.addEventListener(w,b,M),()=>g.removeEventListener(w,b,M)),m=t.watch(()=>[Un(r),Eu(l)],([g,w])=>{u(),g&&c.push(...o.flatMap(b=>a.map(M=>f(g,b,M,w))))},{immediate:!0,flush:"post"}),y=()=>{m(),u()};return Li(y),y}let Cu=!1;function Yg(e,r,o={}){const{window:a=Oi,ignore:l=[],capture:c=!0,detectIframe:u=!1}=o;if(!a)return;Ug&&!Cu&&(Cu=!0,Array.from(a.document.body.children).forEach(b=>b.addEventListener("click",wu)));let f=!0;const m=b=>l.some(M=>{if(typeof M=="string")return Array.from(a.document.querySelectorAll(M)).some(E=>E===b.target||b.composedPath().includes(E));{const E=Un(M);return E&&(b.target===E||b.composedPath().includes(E))}}),g=[Dr(a,"click",b=>{const M=Un(e);if(!(!M||M===b.target||b.composedPath().includes(M))){if(b.detail===0&&(f=!m(b)),!f){f=!0;return}r(b)}},{passive:!0,capture:c}),Dr(a,"pointerdown",b=>{const M=Un(e);M&&(f=!b.composedPath().includes(M)&&!m(b))},{passive:!0}),u&&Dr(a,"blur",b=>{var M;const E=Un(e);((M=a.document.activeElement)==null?void 0:M.tagName)==="IFRAME"&&!(E!=null&&E.contains(a.document.activeElement))&&r(b)})].filter(Boolean);return()=>g.forEach(b=>b())}function Su(e,r=!1){const o=t.ref(),a=()=>o.value=!!e();return a(),Hg(a,r),o}const xu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_u="__vueuse_ssr_handlers__";xu[_u]=xu[_u]||{};var Iu=Object.getOwnPropertySymbols,Gg=Object.prototype.hasOwnProperty,Kg=Object.prototype.propertyIsEnumerable,qg=(e,r)=>{var o={};for(var a in e)Gg.call(e,a)&&r.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&Iu)for(var a of Iu(e))r.indexOf(a)<0&&Kg.call(e,a)&&(o[a]=e[a]);return o};function Wn(e,r,o={}){const a=o,{window:l=Oi}=a,c=qg(a,["window"]);let u;const f=Su(()=>l&&"ResizeObserver"in l),m=()=>{u&&(u.disconnect(),u=void 0)},y=t.watch(()=>Un(e),w=>{m(),f.value&&l&&w&&(u=new ResizeObserver(r),u.observe(w,c))},{immediate:!0,flush:"post"}),g=()=>{m(),y()};return Li(g),{isSupported:f,stop:g}}var ku=Object.getOwnPropertySymbols,Qg=Object.prototype.hasOwnProperty,Zg=Object.prototype.propertyIsEnumerable,Xg=(e,r)=>{var o={};for(var a in e)Qg.call(e,a)&&r.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&ku)for(var a of ku(e))r.indexOf(a)<0&&Zg.call(e,a)&&(o[a]=e[a]);return o};function Jg(e,r,o={}){const a=o,{window:l=Oi}=a,c=Xg(a,["window"]);let u;const f=Su(()=>l&&"MutationObserver"in l),m=()=>{u&&(u.disconnect(),u=void 0)},y=t.watch(()=>Un(e),w=>{m(),f.value&&l&&w&&(u=new MutationObserver(r),u.observe(w,c))},{immediate:!0}),g=()=>{m(),y()};return Li(g),{isSupported:f,stop:g}}var Mu;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Mu||(Mu={}));var e0=Object.defineProperty,Au=Object.getOwnPropertySymbols,t0=Object.prototype.hasOwnProperty,n0=Object.prototype.propertyIsEnumerable,Tu=(e,r,o)=>r in e?e0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,r0=(e,r)=>{for(var o in r||(r={}))t0.call(r,o)&&Tu(e,o,r[o]);if(Au)for(var o of Au(r))n0.call(r,o)&&Tu(e,o,r[o]);return e};r0({linear:Wg},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const o0=()=>ht&&/firefox/i.test(window.navigator.userAgent);/**
|
|
1
|
+
(function(yt,Nn){typeof exports=="object"&&typeof module<"u"?Nn(exports,require("pinia"),require("vue")):typeof define=="function"&&define.amd?define(["exports","pinia","vue"],Nn):(yt=typeof globalThis<"u"?globalThis:yt||self,Nn(yt.MyComponentLibrary={},yt.Pinia,yt.Vue))})(this,function(yt,Nn,t){"use strict";var Ss;(function(e){e.provider="provider",e.patient="patient",e.attorney="attorney"})(Ss||(Ss={}));const Vt=Ss;var xs;(function(e){e["Provider Note"]="provider",e["Patient Form"]="patient",e["Attorney Note"]="attorney"})(xs||(xs={}));const gu=xs,vr=t.reactive({data:{},ecos:{},role:Vt.provider,docType:gu["Provider Note"],info:{providerSignatureInfo:{eid:"",vid:"",fid:""},patientSignatureInfo:{eid:"",vid:"",fid:""},attorneySignatureInfo:{eid:"",vid:"",fid:""},rootNotebookID:"",facilityId:"",locationIds:[],patientId:""},relatedDom:null}),zg=e=>{vr.data=e},Br=Nn.defineStore("documentTempalte",()=>({setDocumentTemplate:({ecos:o,role:a,docType:l,info:c,relatedDom:u})=>{o!==void 0&&(vr.ecos=o),a!==void 0&&(vr.role=a),l!==void 0&&(vr.docType=l),c!==void 0&&(vr.info=c),u&&(vr.relatedDom=u)},getDocumentTemplate:()=>vr})),_s=Nn.defineStore("calendarPicker",()=>{const e=t.reactive({status:!1,options:{dataKey:"",formData:{}},open(o){this.status=!0,this.options=o},close(){this.status=!1}});return{getCalendarPciker:()=>e}}),Is=Nn.defineStore("signaturePad",()=>{const e=t.reactive({status:!1,options:{dataKey:"",type:Vt.provider,isGuardian:!1,formData:{},timeKey:""},confirm:async(o,a,l,c)=>{},open(o){this.status=!0,this.options=o},close(){this.status=!1}});return{getSignaturePad:()=>e}}),ks=Nn.defineStore("imageEditor",()=>{const e=t.reactive({status:!1,options:{dataKey:"",formData:{},src:""},confirm:async(o,a,l)=>{},open(o){this.status=!0,this.options=o},close(){this.status=!1}});return{getImageEditor:()=>e}}),Ms=Nn.defineStore("recommendDiagnosis",()=>{const e=t.reactive({status:!1,cache:{hasCache:!1,list:[]},options:{formData:{}},open(o){this.status=!0,this.options=o},close(){this.status=!1}});return{getRecommendDiagnosis:()=>e}}),Pg='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',$g=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,yu=e=>Array.from(e.querySelectorAll(Pg)).filter(r=>Fg(r)&&$g(r)),Fg=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},jn=(e,r,{checkForDefaultPrevented:o=!0}={})=>l=>{const c=e==null?void 0:e(l);if(o===!1||!c)return r==null?void 0:r(l)};var bu;const ht=typeof window<"u",jg=e=>typeof e=="string",wu=()=>{},Ug=ht&&((bu=window==null?void 0:window.navigator)==null?void 0:bu.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Eu(e){return typeof e=="function"?e():t.unref(e)}function Wg(e){return e}function Li(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function Hg(e,r=!0){t.getCurrentInstance()?t.onMounted(e):r?e():t.nextTick(e)}function Un(e){var r;const o=Eu(e);return(r=o==null?void 0:o.$el)!=null?r:o}const Oi=ht?window:void 0;function Dr(...e){let r,o,a,l;if(jg(e[0])||Array.isArray(e[0])?([o,a,l]=e,r=Oi):[r,o,a,l]=e,!r)return wu;Array.isArray(o)||(o=[o]),Array.isArray(a)||(a=[a]);const c=[],u=()=>{c.forEach(g=>g()),c.length=0},f=(g,w,b,M)=>(g.addEventListener(w,b,M),()=>g.removeEventListener(w,b,M)),m=t.watch(()=>[Un(r),Eu(l)],([g,w])=>{u(),g&&c.push(...o.flatMap(b=>a.map(M=>f(g,b,M,w))))},{immediate:!0,flush:"post"}),y=()=>{m(),u()};return Li(y),y}let Cu=!1;function Yg(e,r,o={}){const{window:a=Oi,ignore:l=[],capture:c=!0,detectIframe:u=!1}=o;if(!a)return;Ug&&!Cu&&(Cu=!0,Array.from(a.document.body.children).forEach(b=>b.addEventListener("click",wu)));let f=!0;const m=b=>l.some(M=>{if(typeof M=="string")return Array.from(a.document.querySelectorAll(M)).some(E=>E===b.target||b.composedPath().includes(E));{const E=Un(M);return E&&(b.target===E||b.composedPath().includes(E))}}),g=[Dr(a,"click",b=>{const M=Un(e);if(!(!M||M===b.target||b.composedPath().includes(M))){if(b.detail===0&&(f=!m(b)),!f){f=!0;return}r(b)}},{passive:!0,capture:c}),Dr(a,"pointerdown",b=>{const M=Un(e);M&&(f=!b.composedPath().includes(M)&&!m(b))},{passive:!0}),u&&Dr(a,"blur",b=>{var M;const E=Un(e);((M=a.document.activeElement)==null?void 0:M.tagName)==="IFRAME"&&!(E!=null&&E.contains(a.document.activeElement))&&r(b)})].filter(Boolean);return()=>g.forEach(b=>b())}function Su(e,r=!1){const o=t.ref(),a=()=>o.value=!!e();return a(),Hg(a,r),o}const xu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_u="__vueuse_ssr_handlers__";xu[_u]=xu[_u]||{};var Iu=Object.getOwnPropertySymbols,Gg=Object.prototype.hasOwnProperty,Kg=Object.prototype.propertyIsEnumerable,qg=(e,r)=>{var o={};for(var a in e)Gg.call(e,a)&&r.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&Iu)for(var a of Iu(e))r.indexOf(a)<0&&Kg.call(e,a)&&(o[a]=e[a]);return o};function Wn(e,r,o={}){const a=o,{window:l=Oi}=a,c=qg(a,["window"]);let u;const f=Su(()=>l&&"ResizeObserver"in l),m=()=>{u&&(u.disconnect(),u=void 0)},y=t.watch(()=>Un(e),w=>{m(),f.value&&l&&w&&(u=new ResizeObserver(r),u.observe(w,c))},{immediate:!0,flush:"post"}),g=()=>{m(),y()};return Li(g),{isSupported:f,stop:g}}var ku=Object.getOwnPropertySymbols,Qg=Object.prototype.hasOwnProperty,Zg=Object.prototype.propertyIsEnumerable,Xg=(e,r)=>{var o={};for(var a in e)Qg.call(e,a)&&r.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&ku)for(var a of ku(e))r.indexOf(a)<0&&Zg.call(e,a)&&(o[a]=e[a]);return o};function Jg(e,r,o={}){const a=o,{window:l=Oi}=a,c=Xg(a,["window"]);let u;const f=Su(()=>l&&"MutationObserver"in l),m=()=>{u&&(u.disconnect(),u=void 0)},y=t.watch(()=>Un(e),w=>{m(),f.value&&l&&w&&(u=new MutationObserver(r),u.observe(w,c))},{immediate:!0}),g=()=>{m(),y()};return Li(g),{isSupported:f,stop:g}}var Mu;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Mu||(Mu={}));var e0=Object.defineProperty,Au=Object.getOwnPropertySymbols,t0=Object.prototype.hasOwnProperty,n0=Object.prototype.propertyIsEnumerable,Tu=(e,r,o)=>r in e?e0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,r0=(e,r)=>{for(var o in r||(r={}))t0.call(r,o)&&Tu(e,o,r[o]);if(Au)for(var o of Au(r))n0.call(r,o)&&Tu(e,o,r[o]);return e};r0({linear:Wg},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const o0=()=>ht&&/firefox/i.test(window.navigator.userAgent);/**
|
|
2
2
|
* @vue/shared v3.4.27
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|