@aitmed/aitmed-document-template 1.48.0 → 1.49.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.
@@ -44,13 +44,13 @@ const r_ = Zu, ui = oa("documentTempalte", () => {
44
44
  l !== void 0 && (e.ecos = l), u !== void 0 && (e.role = u), c !== void 0 && (e.docType = c), h !== void 0 && (e.info = h), v && (e.relatedDom = v);
45
45
  },
46
46
  getDocumentTemplate: () => ({
47
- data: n,
47
+ data: n.value,
48
48
  ...e
49
49
  }),
50
50
  setFormData: (l) => {
51
51
  n.value = l;
52
52
  },
53
- data: n
53
+ documentTemplateData: n
54
54
  };
55
55
  }), Ec = oa("calendarPicker", () => {
56
56
  const e = ut({
@@ -1,4 +1,4 @@
1
- (function(gt,Nn){typeof exports=="object"&&typeof module<"u"?Nn(exports,require("pinia"),require("vue")):typeof define=="function"&&define.amd?define(["exports","pinia","vue"],Nn):(gt=typeof globalThis<"u"?globalThis:gt||self,Nn(gt.MyComponentLibrary={},gt.Pinia,gt.Vue))})(this,function(gt,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 mu=xs,vr=Nn.defineStore("documentTempalte",()=>{const e=t.reactive({ecos:{},role:Vt.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:m,relatedDom:y})=>{c!==void 0&&(e.ecos=c),u!==void 0&&(e.role=u),f!==void 0&&(e.docType=f),m!==void 0&&(e.info=m),y&&(e.relatedDom=y)},getDocumentTemplate:()=>({data:r,...e}),setFormData:c=>{r.value=c},data: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}}),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}}),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}},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 yu;const pt=typeof window<"u",$g=e=>typeof e=="string",bu=()=>{},Fg=pt&&((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 jg(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 Un(e){var r;const o=wu(e);return(r=o==null?void 0:o.$el)!=null?r:o}const Oi=pt?window:void 0;function Br(...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(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),wu(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 Eu=!1;function Wg(e,r,o={}){const{window:a=Oi,ignore:l=[],capture:c=!0,detectIframe:u=!1}=o;if(!a)return;Fg&&!Eu&&(Eu=!0,Array.from(a.document.body.children).forEach(b=>b.addEventListener("click",bu)));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=[Br(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}),Br(a,"pointerdown",b=>{const M=Un(e);M&&(f=!b.composedPath().includes(M)&&!m(b))},{passive:!0}),u&&Br(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 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,Hg=Object.prototype.hasOwnProperty,Yg=Object.prototype.propertyIsEnumerable,Gg=(e,r)=>{var o={};for(var a in e)Hg.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),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 Iu=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&&Iu)for(var a of Iu(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),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 ku;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ku||(ku={}));var Xg=Object.defineProperty,Mu=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(Mu)for(var o of Mu(r))e0.call(r,o)&&Au(e,o,r[o]);return e};t0({linear:jg},{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=()=>pt&&/firefox/i.test(window.navigator.userAgent);/**
1
+ (function(gt,Nn){typeof exports=="object"&&typeof module<"u"?Nn(exports,require("pinia"),require("vue")):typeof define=="function"&&define.amd?define(["exports","pinia","vue"],Nn):(gt=typeof globalThis<"u"?globalThis:gt||self,Nn(gt.MyComponentLibrary={},gt.Pinia,gt.Vue))})(this,function(gt,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 mu=xs,vr=Nn.defineStore("documentTempalte",()=>{const e=t.reactive({ecos:{},role:Vt.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:m,relatedDom:y})=>{c!==void 0&&(e.ecos=c),u!==void 0&&(e.role=u),f!==void 0&&(e.docType=f),m!==void 0&&(e.info=m),y&&(e.relatedDom=y)},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}}),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}}),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}},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 yu;const pt=typeof window<"u",$g=e=>typeof e=="string",bu=()=>{},Fg=pt&&((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 jg(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 Un(e){var r;const o=wu(e);return(r=o==null?void 0:o.$el)!=null?r:o}const Oi=pt?window:void 0;function Br(...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(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),wu(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 Eu=!1;function Wg(e,r,o={}){const{window:a=Oi,ignore:l=[],capture:c=!0,detectIframe:u=!1}=o;if(!a)return;Fg&&!Eu&&(Eu=!0,Array.from(a.document.body.children).forEach(b=>b.addEventListener("click",bu)));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=[Br(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}),Br(a,"pointerdown",b=>{const M=Un(e);M&&(f=!b.composedPath().includes(M)&&!m(b))},{passive:!0}),u&&Br(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 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,Hg=Object.prototype.hasOwnProperty,Yg=Object.prototype.propertyIsEnumerable,Gg=(e,r)=>{var o={};for(var a in e)Hg.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),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 Iu=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&&Iu)for(var a of Iu(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),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 ku;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ku||(ku={}));var Xg=Object.defineProperty,Mu=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(Mu)for(var o of Mu(r))e0.call(r,o)&&Au(e,o,r[o]);return e};t0({linear:jg},{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=()=>pt&&/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
@@ -85,11 +85,11 @@ export declare const useDocumentTemplateStore: import("pinia").StoreDefinition<"
85
85
  patientId: string;
86
86
  } | undefined;
87
87
  relatedDom?: HTMLElement | null | undefined;
88
- data: Ref<Record<string, any>>;
88
+ data: Record<string, any>;
89
89
  };
90
90
  setFormData: (newData: Record<string, any>) => void;
91
- data: Ref<Record<string, any>>;
92
- }, "data">>, Pick<{
91
+ documentTemplateData: Ref<Record<string, any>>;
92
+ }, "documentTemplateData">>, Pick<{
93
93
  setDocumentTemplate: ({ ecos, role, docType, info, relatedDom }: Omit<DOCUMENT_OPTONS, "data">) => void;
94
94
  getDocumentTemplate: () => {
95
95
  ecos?: any;
@@ -117,10 +117,10 @@ export declare const useDocumentTemplateStore: import("pinia").StoreDefinition<"
117
117
  patientId: string;
118
118
  } | undefined;
119
119
  relatedDom?: HTMLElement | null | undefined;
120
- data: Ref<Record<string, any>>;
120
+ data: Record<string, any>;
121
121
  };
122
122
  setFormData: (newData: Record<string, any>) => void;
123
- data: Ref<Record<string, any>>;
123
+ documentTemplateData: Ref<Record<string, any>>;
124
124
  }, never>, Pick<{
125
125
  setDocumentTemplate: ({ ecos, role, docType, info, relatedDom }: Omit<DOCUMENT_OPTONS, "data">) => void;
126
126
  getDocumentTemplate: () => {
@@ -149,10 +149,10 @@ export declare const useDocumentTemplateStore: import("pinia").StoreDefinition<"
149
149
  patientId: string;
150
150
  } | undefined;
151
151
  relatedDom?: HTMLElement | null | undefined;
152
- data: Ref<Record<string, any>>;
152
+ data: Record<string, any>;
153
153
  };
154
154
  setFormData: (newData: Record<string, any>) => void;
155
- data: Ref<Record<string, any>>;
155
+ documentTemplateData: Ref<Record<string, any>>;
156
156
  }, "setDocumentTemplate" | "getDocumentTemplate" | "setFormData">>;
157
157
  export declare const useCalendarPickerStore: import("pinia").StoreDefinition<"calendarPicker", import("pinia")._UnwrapAll<Pick<{
158
158
  getCalendarPciker: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aitmed/aitmed-document-template",
3
- "version": "1.48.0",
3
+ "version": "1.49.0",
4
4
  "main": "./dist/my-component-library.umd.js",
5
5
  "module": "./dist/my-component-library.es.js",
6
6
  "types": "./dist/index.d.ts",