@aitmed/aitmed-document-template 1.84.0 → 1.85.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.
|
@@ -2,7 +2,7 @@ import { defineStore as aa, createPinia as WE } from "pinia";
|
|
|
2
2
|
import { reactive as lt, ref as pe, getCurrentScope as HE, onScopeDispose as m0, unref as _, getCurrentInstance as sn, onMounted as $t, nextTick as gt, watch as He, defineComponent as xe, openBlock as N, createElementBlock as W, createElementVNode as V, warn as YE, computed as j, watchEffect as y0, onBeforeUnmount as Yn, inject as it, isRef as Pr, shallowRef as Yi, onBeforeMount as b0, provide as Dn, mergeProps as oo, renderSlot as Ue, toRef as er, onUnmounted as GE, useAttrs as KE, useSlots as Us, createCommentVNode as ae, Fragment as xt, normalizeClass as J, createBlock as Le, withCtx as ye, resolveDynamicComponent as qt, withModifiers as Tt, createVNode as Ce, toDisplayString as Ne, normalizeStyle as Dt, Transition as sa, withDirectives as Vt, vShow as Br, onUpdated as qE, cloneVNode as QE, Text as w0, Comment as ZE, Teleport as XE, readonly as JE, onDeactivated as e_, renderList as Gt, createTextVNode as We, createSlots as ur, normalizeProps as Op, guardReactiveProps as kp, toRaw as Ms, vModelCheckbox as Ts, toRefs as bi, vModelRadio as E0, h as ii, resolveComponent as Tn, resolveDirective as t_, withKeys as Or, vModelText as qu, createApp as n_, isVNode as _0, render as S0, useCssVars as la, pushScopeId as Vs, popScopeId as Ws } from "vue";
|
|
3
3
|
var Qu;
|
|
4
4
|
(function(e) {
|
|
5
|
-
e.provider = "provider", e.patient = "patient", e.attorney = "attorney";
|
|
5
|
+
e.provider = "provider", e.patient = "patient", e.attorney = "attorney", e.facility = "facility";
|
|
6
6
|
})(Qu || (Qu = {}));
|
|
7
7
|
const vn = Qu;
|
|
8
8
|
var Zu;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(pt,Nn){typeof exports=="object"&&typeof module<"u"?Nn(exports,require("pinia"),require("vue")):typeof define=="function"&&define.amd?define(["exports","pinia","vue"],Nn):(pt=typeof globalThis<"u"?globalThis:pt||self,Nn(pt.MyComponentLibrary={},pt.Pinia,pt.Vue))})(this,function(pt,Nn,t){"use strict";var Ss;(function(e){e.provider="provider",e.patient="patient",e.attorney="attorney"})(Ss||(Ss={}));const Rt=Ss;var xs;(function(e){e["Provider Note"]="provider",e["Patient Form"]="patient",e["Attorney Note"]="attorney"})(xs||(xs={}));const mu=xs,Br=Nn.defineStore("documentTempalte",()=>{const e=t.reactive({ecos:{},role:Rt.provider,docType:mu["Provider Note"],info:{providerSignatureInfo:{eid:"",vid:"",fid:""},patientSignatureInfo:{eid:"",vid:"",fid:""},attorneySignatureInfo:{eid:"",vid:"",fid:""},rootNotebookID:"",facilityId:"",locationIds:[],patientId:""},relatedDom:null}),r=t.ref({});return{setDocumentTemplate:({ecos:c,role:u,docType:f,info:g,relatedDom:m})=>{c!==void 0&&(e.ecos=c),u!==void 0&&(e.role=u),f!==void 0&&(e.docType=f),g!==void 0&&(e.info=g),m&&(e.relatedDom=m)},getDocumentTemplate:()=>({data:r.value,...e}),setFormData:c=>{r.value=c},documentTemplateData:r}}),_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}}),ks=Nn.defineStore("signaturePad",()=>{const e=t.reactive({status:!1,options:{dataKey:"",type:Rt.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}}),Is=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}}),Ts=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}}),Vg='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',zg=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,gu=e=>Array.from(e.querySelectorAll(Vg)).filter(r=>Pg(r)&&zg(r)),Pg=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}},Un=(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 yu;const ht=typeof window<"u",$g=e=>typeof e=="string",bu=()=>{},jg=ht&&((yu=window==null?void 0:window.navigator)==null?void 0:yu.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function wu(e){return typeof e=="function"?e():t.unref(e)}function Fg(e){return e}function Li(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function Ug(e,r=!0){t.getCurrentInstance()?t.onMounted(e):r?e():t.nextTick(e)}function Hn(e){var r;const o=wu(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($g(e[0])||Array.isArray(e[0])?([o,a,l]=e,r=Oi):[r,o,a,l]=e,!r)return bu;Array.isArray(o)||(o=[o]),Array.isArray(a)||(a=[a]);const c=[],u=()=>{c.forEach(y=>y()),c.length=0},f=(y,w,b,k)=>(y.addEventListener(w,b,k),()=>y.removeEventListener(w,b,k)),g=t.watch(()=>[Hn(r),wu(l)],([y,w])=>{u(),y&&c.push(...o.flatMap(b=>a.map(k=>f(y,b,k,w))))},{immediate:!0,flush:"post"}),m=()=>{g(),u()};return Li(m),m}let Eu=!1;function Hg(e,r,o={}){const{window:a=Oi,ignore:l=[],capture:c=!0,detectIframe:u=!1}=o;if(!a)return;jg&&!Eu&&(Eu=!0,Array.from(a.document.body.children).forEach(b=>b.addEventListener("click",bu)));let f=!0;const g=b=>l.some(k=>{if(typeof k=="string")return Array.from(a.document.querySelectorAll(k)).some(E=>E===b.target||b.composedPath().includes(E));{const E=Hn(k);return E&&(b.target===E||b.composedPath().includes(E))}}),y=[Dr(a,"click",b=>{const k=Hn(e);if(!(!k||k===b.target||b.composedPath().includes(k))){if(b.detail===0&&(f=!g(b)),!f){f=!0;return}r(b)}},{passive:!0,capture:c}),Dr(a,"pointerdown",b=>{const k=Hn(e);k&&(f=!b.composedPath().includes(k)&&!g(b))},{passive:!0}),u&&Dr(a,"blur",b=>{var k;const E=Hn(e);((k=a.document.activeElement)==null?void 0:k.tagName)==="IFRAME"&&!(E!=null&&E.contains(a.document.activeElement))&&r(b)})].filter(Boolean);return()=>y.forEach(b=>b())}function Cu(e,r=!1){const o=t.ref(),a=()=>o.value=!!e();return a(),Ug(a,r),o}const Su=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xu="__vueuse_ssr_handlers__";Su[xu]=Su[xu]||{};var _u=Object.getOwnPropertySymbols,Wg=Object.prototype.hasOwnProperty,Yg=Object.prototype.propertyIsEnumerable,Gg=(e,r)=>{var o={};for(var a in e)Wg.call(e,a)&&r.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&_u)for(var a of _u(e))r.indexOf(a)<0&&Yg.call(e,a)&&(o[a]=e[a]);return o};function Wn(e,r,o={}){const a=o,{window:l=Oi}=a,c=Gg(a,["window"]);let u;const f=Cu(()=>l&&"ResizeObserver"in l),g=()=>{u&&(u.disconnect(),u=void 0)},m=t.watch(()=>Hn(e),w=>{g(),f.value&&l&&w&&(u=new ResizeObserver(r),u.observe(w,c))},{immediate:!0,flush:"post"}),y=()=>{g(),m()};return Li(y),{isSupported:f,stop:y}}var ku=Object.getOwnPropertySymbols,Kg=Object.prototype.hasOwnProperty,qg=Object.prototype.propertyIsEnumerable,Qg=(e,r)=>{var o={};for(var a in e)Kg.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&&qg.call(e,a)&&(o[a]=e[a]);return o};function Zg(e,r,o={}){const a=o,{window:l=Oi}=a,c=Qg(a,["window"]);let u;const f=Cu(()=>l&&"MutationObserver"in l),g=()=>{u&&(u.disconnect(),u=void 0)},m=t.watch(()=>Hn(e),w=>{g(),f.value&&l&&w&&(u=new MutationObserver(r),u.observe(w,c))},{immediate:!0}),y=()=>{g(),m()};return Li(y),{isSupported:f,stop:y}}var Iu;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Iu||(Iu={}));var Xg=Object.defineProperty,Tu=Object.getOwnPropertySymbols,Jg=Object.prototype.hasOwnProperty,e0=Object.prototype.propertyIsEnumerable,Au=(e,r,o)=>r in e?Xg(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,t0=(e,r)=>{for(var o in r||(r={}))Jg.call(r,o)&&Au(e,o,r[o]);if(Tu)for(var o of Tu(r))e0.call(r,o)&&Au(e,o,r[o]);return e};t0({linear:Fg},{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 n0=()=>ht&&/firefox/i.test(window.navigator.userAgent);/**
|
|
1
|
+
(function(pt,Nn){typeof exports=="object"&&typeof module<"u"?Nn(exports,require("pinia"),require("vue")):typeof define=="function"&&define.amd?define(["exports","pinia","vue"],Nn):(pt=typeof globalThis<"u"?globalThis:pt||self,Nn(pt.MyComponentLibrary={},pt.Pinia,pt.Vue))})(this,function(pt,Nn,t){"use strict";var Ss;(function(e){e.provider="provider",e.patient="patient",e.attorney="attorney",e.facility="facility"})(Ss||(Ss={}));const Rt=Ss;var xs;(function(e){e["Provider Note"]="provider",e["Patient Form"]="patient",e["Attorney Note"]="attorney"})(xs||(xs={}));const mu=xs,Br=Nn.defineStore("documentTempalte",()=>{const e=t.reactive({ecos:{},role:Rt.provider,docType:mu["Provider Note"],info:{providerSignatureInfo:{eid:"",vid:"",fid:""},patientSignatureInfo:{eid:"",vid:"",fid:""},attorneySignatureInfo:{eid:"",vid:"",fid:""},rootNotebookID:"",facilityId:"",locationIds:[],patientId:""},relatedDom:null}),r=t.ref({});return{setDocumentTemplate:({ecos:c,role:u,docType:f,info:g,relatedDom:m})=>{c!==void 0&&(e.ecos=c),u!==void 0&&(e.role=u),f!==void 0&&(e.docType=f),g!==void 0&&(e.info=g),m&&(e.relatedDom=m)},getDocumentTemplate:()=>({data:r.value,...e}),setFormData:c=>{r.value=c},documentTemplateData:r}}),_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}}),ks=Nn.defineStore("signaturePad",()=>{const e=t.reactive({status:!1,options:{dataKey:"",type:Rt.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}}),Is=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}}),Ts=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}}),Vg='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',zg=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,gu=e=>Array.from(e.querySelectorAll(Vg)).filter(r=>Pg(r)&&zg(r)),Pg=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}},Un=(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 yu;const ht=typeof window<"u",$g=e=>typeof e=="string",bu=()=>{},jg=ht&&((yu=window==null?void 0:window.navigator)==null?void 0:yu.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function wu(e){return typeof e=="function"?e():t.unref(e)}function Fg(e){return e}function Li(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function Ug(e,r=!0){t.getCurrentInstance()?t.onMounted(e):r?e():t.nextTick(e)}function Hn(e){var r;const o=wu(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($g(e[0])||Array.isArray(e[0])?([o,a,l]=e,r=Oi):[r,o,a,l]=e,!r)return bu;Array.isArray(o)||(o=[o]),Array.isArray(a)||(a=[a]);const c=[],u=()=>{c.forEach(y=>y()),c.length=0},f=(y,w,b,k)=>(y.addEventListener(w,b,k),()=>y.removeEventListener(w,b,k)),g=t.watch(()=>[Hn(r),wu(l)],([y,w])=>{u(),y&&c.push(...o.flatMap(b=>a.map(k=>f(y,b,k,w))))},{immediate:!0,flush:"post"}),m=()=>{g(),u()};return Li(m),m}let Eu=!1;function Hg(e,r,o={}){const{window:a=Oi,ignore:l=[],capture:c=!0,detectIframe:u=!1}=o;if(!a)return;jg&&!Eu&&(Eu=!0,Array.from(a.document.body.children).forEach(b=>b.addEventListener("click",bu)));let f=!0;const g=b=>l.some(k=>{if(typeof k=="string")return Array.from(a.document.querySelectorAll(k)).some(E=>E===b.target||b.composedPath().includes(E));{const E=Hn(k);return E&&(b.target===E||b.composedPath().includes(E))}}),y=[Dr(a,"click",b=>{const k=Hn(e);if(!(!k||k===b.target||b.composedPath().includes(k))){if(b.detail===0&&(f=!g(b)),!f){f=!0;return}r(b)}},{passive:!0,capture:c}),Dr(a,"pointerdown",b=>{const k=Hn(e);k&&(f=!b.composedPath().includes(k)&&!g(b))},{passive:!0}),u&&Dr(a,"blur",b=>{var k;const E=Hn(e);((k=a.document.activeElement)==null?void 0:k.tagName)==="IFRAME"&&!(E!=null&&E.contains(a.document.activeElement))&&r(b)})].filter(Boolean);return()=>y.forEach(b=>b())}function Cu(e,r=!1){const o=t.ref(),a=()=>o.value=!!e();return a(),Ug(a,r),o}const Su=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xu="__vueuse_ssr_handlers__";Su[xu]=Su[xu]||{};var _u=Object.getOwnPropertySymbols,Wg=Object.prototype.hasOwnProperty,Yg=Object.prototype.propertyIsEnumerable,Gg=(e,r)=>{var o={};for(var a in e)Wg.call(e,a)&&r.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&_u)for(var a of _u(e))r.indexOf(a)<0&&Yg.call(e,a)&&(o[a]=e[a]);return o};function Wn(e,r,o={}){const a=o,{window:l=Oi}=a,c=Gg(a,["window"]);let u;const f=Cu(()=>l&&"ResizeObserver"in l),g=()=>{u&&(u.disconnect(),u=void 0)},m=t.watch(()=>Hn(e),w=>{g(),f.value&&l&&w&&(u=new ResizeObserver(r),u.observe(w,c))},{immediate:!0,flush:"post"}),y=()=>{g(),m()};return Li(y),{isSupported:f,stop:y}}var ku=Object.getOwnPropertySymbols,Kg=Object.prototype.hasOwnProperty,qg=Object.prototype.propertyIsEnumerable,Qg=(e,r)=>{var o={};for(var a in e)Kg.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&&qg.call(e,a)&&(o[a]=e[a]);return o};function Zg(e,r,o={}){const a=o,{window:l=Oi}=a,c=Qg(a,["window"]);let u;const f=Cu(()=>l&&"MutationObserver"in l),g=()=>{u&&(u.disconnect(),u=void 0)},m=t.watch(()=>Hn(e),w=>{g(),f.value&&l&&w&&(u=new MutationObserver(r),u.observe(w,c))},{immediate:!0}),y=()=>{g(),m()};return Li(y),{isSupported:f,stop:y}}var Iu;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Iu||(Iu={}));var Xg=Object.defineProperty,Tu=Object.getOwnPropertySymbols,Jg=Object.prototype.hasOwnProperty,e0=Object.prototype.propertyIsEnumerable,Au=(e,r,o)=>r in e?Xg(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,t0=(e,r)=>{for(var o in r||(r={}))Jg.call(r,o)&&Au(e,o,r[o]);if(Tu)for(var o of Tu(r))e0.call(r,o)&&Au(e,o,r[o]);return e};t0({linear:Fg},{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 n0=()=>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
|