cnhis-design-vue 3.1.55-release.2 → 3.1.56-beta.10

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.
Files changed (115) hide show
  1. package/README.md +87 -87
  2. package/es/components/annotation-edit/index.d.ts +18 -0
  3. package/es/components/annotation-edit/src/AnnotationEdit.d.ts +18 -0
  4. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  5. package/es/components/annotation-edit/src/type.d.ts +4 -0
  6. package/es/components/audio-sdk/src/audioSDK.d.ts +20 -6
  7. package/es/components/audio-sdk/src/audioSDK.js +1 -1
  8. package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +14 -0
  9. package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -1
  10. package/es/components/audio-sdk/src/utils/recordingDialog.d.ts +5 -2
  11. package/es/components/audio-sdk/src/utils/recordingDialog.js +1 -1
  12. package/es/components/audio-sdk/style/index.css +1 -1
  13. package/es/components/base-search/index.d.ts +14 -0
  14. package/es/components/base-search/src/index.vue.d.ts +14 -0
  15. package/es/components/base-search/src/index.vue2.js +1 -1
  16. package/es/components/base-search/style/index.css +1 -1
  17. package/es/components/button-print/src/utils/print.d.ts +3 -0
  18. package/es/components/button-print/src/utils/print.js +1 -1
  19. package/es/components/callback/src/components/render/popupMaps.d.ts +26 -4
  20. package/es/components/classification/index.d.ts +39 -23
  21. package/es/components/classification/src/components/search-filter/index.vue.d.ts +14 -0
  22. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  23. package/es/components/classification/src/components/set-classification/index.vue.d.ts +20 -22
  24. package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
  25. package/es/components/classification/src/components/table-modal/index.vue.d.ts +6 -20
  26. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
  27. package/es/components/classification/src/index.vue.d.ts +62 -45
  28. package/es/components/classification/src/index.vue2.js +1 -1
  29. package/es/components/classification/style/index.css +1 -1
  30. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  31. package/es/components/fabric-chart/index.d.ts +4 -2
  32. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +4 -2
  33. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  35. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  36. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  37. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  38. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
  39. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  40. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  41. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  42. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  43. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  44. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  45. package/es/components/form-config/index.d.ts +82 -14
  46. package/es/components/form-config/src/FormConfig.vue.d.ts +82 -14
  47. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +26 -4
  48. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +41 -7
  49. package/es/components/form-render/index.d.ts +26 -4
  50. package/es/components/form-render/src/FormRender.vue.d.ts +27 -4
  51. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  52. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +26 -4
  53. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  54. package/es/components/form-render/src/constants/index.d.ts +1 -0
  55. package/es/components/form-render/src/constants/index.js +1 -1
  56. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +1 -1
  57. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  58. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +10 -2
  59. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  60. package/es/components/form-render/src/types/index.d.ts +3 -1
  61. package/es/components/iho-table/src/plugins/defaultValuePlugin.js +1 -1
  62. package/es/components/iho-table/src/plugins/headerPlugin.js +1 -1
  63. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  64. package/es/components/index.css +1 -1
  65. package/es/components/info-header/index.d.ts +77 -13
  66. package/es/components/info-header/src/InfoHeader.vue.d.ts +77 -13
  67. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +5 -1
  68. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +5 -1
  69. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +31 -5
  70. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +26 -4
  71. package/es/components/recommend-search/index.d.ts +8 -8
  72. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +8 -8
  73. package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
  74. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -3
  75. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +3 -3
  76. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  77. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  78. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  79. package/es/components/shortcut-setter/index.d.ts +26 -4
  80. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +26 -4
  81. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
  82. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +14 -0
  83. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +14 -0
  84. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +14 -0
  85. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +14 -0
  86. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +15 -0
  87. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  88. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +14 -0
  89. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  90. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +15 -0
  91. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +15 -0
  92. package/es/components/table-filter/src/types/index.d.ts +3 -1
  93. package/es/env.d.ts +25 -25
  94. package/es/shared/assets/img/failure.png.js +1 -1
  95. package/es/shared/assets/img/no-permission.png.js +1 -1
  96. package/es/shared/assets/img/nodata.png.js +1 -1
  97. package/es/shared/assets/img/notfound.png.js +1 -1
  98. package/es/shared/assets/img/qr.png.js +1 -1
  99. package/es/shared/assets/img/success.png.js +1 -1
  100. package/es/shared/assets/img/video.png.js +1 -1
  101. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  102. package/es/shared/assets/img/xb_big.png.js +1 -1
  103. package/es/shared/assets/img/xb_small.png.js +1 -1
  104. package/es/shared/hooks/selectHooks/useSelectRenders.d.ts +1 -1
  105. package/es/shared/hooks/selectHooks/useSelectRenders.js +1 -1
  106. package/es/shared/package.json.js +1 -1
  107. package/es/shared/utils/business.js +1 -1
  108. package/package.json +2 -2
  109. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  110. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  111. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  112. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  113. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  114. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  115. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1 +1 @@
1
- import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useShadow as t}from"./useShadow.js";import{drawLine as i,defaultStyle as n,drawPoint as o,drawText as l,drawArrow as s}from"../useDraw.js";import{useGrid as r}from"../useGrid.js";import"date-fns";import{isOneLine as a,getType as u,isOverlapPoint as c,isValidValue as p,setOtherType as d,isEffectiveNode as f,getTime as h,getIndex as v,deleteProperty as g}from"../../utils/index.js";import"../useEvent.js";import{useCommon as y}from"../useCommon.js";import"vue";import{cloneDeep as m}from"lodash-es";import"naive-ui";import"@vueuse/core";import{TEMPERATURE_MENU as x,PAIN_MENU as b,OVERLAP as j}from"../../constants/index.js";function w(w,k,S,Y,E,M,$,O,P,A){r(w,k);const{getEqualXTypes:C,handleAddPrevent:I}=y(w,S,k),{createShadowLines:T}=t(),{left:R,xScaleList:X,xCellWidth:V,yCellHeight:z,originX:D,endX:F,originY:H,endY:_,itemList:W,event:q,vitalSignsOriginY:G,painOriginY:B,hospitalizationDate:J,config:K,canvasHeight:N}=k,Q=new Set,U=["xinmai","mai"],Z=new Map,ee=new Set,te=new Set,ie=new Set,ne=m(R.yScaleValue);function oe(t){var o;const l=ne.find((e=>"pulse"===e.type));if(l&&(null==(o=l.dataList)?void 0:o.length)&&(Q.size&&w.value.remove(...Q),Q.clear(),Z.size>1)){if(t){const{type:e,key:i}=t.origin||{};if("pulse"===e){const e=Z.get(i),n=null==e?void 0:e.findIndex((e=>e[0]===t.left));e.splice(n,1,[t.left,t.top])}}const o=function(){const e=[],t=[],i=[];for(const e of Z)t.push(e[1]),e[0]===U[0]&&e[1].forEach((e=>{(Z.get(U[1])||[]).findIndex((t=>t[0]===e[0]))>-1&&i.push(e[0])}));const[n,o]=t;let l=[],s=[];return i.forEach((t=>{const i=n.findIndex((e=>e[0]===t)),r=o.findIndex((e=>e[0]===t)),a=n[i],u=o[r],c=n[i-1],p=n[i+1],d=o[r-1],f=o[r+1];if(c&&d){if(c[0]!==d[0]){const e=Math.max(c[0],d[0]);l.push([c,d].find((t=>t[0]===e)))}}else c?l.push(c):d&&s.push(d);const h=Math.min(a[1],u[1]);l.push([a,u].find((e=>e[1]===h)));const v=Math.max(a[1],u[1]);s.push([a,u].find((e=>e[1]===v)));const g=()=>{const t=[...l,...s.reverse()],[i]=t,n=t.at(-1);i[0]===n[0]&&i[1]===n[1]&&t.splice(-1,1),e.push(t),l=[],s=[]};if(p&&f){if(p[0]!==f[0]){const e=Math.min(p[0],f[0]);l.push([p,f].find((t=>t[0]===e))),g()}}else p?(l.push(p),g()):f?(s.push(f),g()):g()})),e}(),{mode:s,style:r={}}=l.shadow||{};o.forEach((t=>{const o=t.map((e=>({x:e[0],y:e[1]}))),l=new e.Polygon(o,{...n,...r,strokeWidth:1});if(["slash","line"].includes(s)){l.set({fill:"transparent",stroke:r.stroke||"#f00"});const e=[];if(["slash"].includes(s))e.push(...T(t,r._angle,r.space)),e.forEach((e=>{Object.assign(e,{...n,...r}),Q.add(e)}));else{const n=function(e){const t=e.reduce(((e,t)=>{const i=Math.trunc(t[0]);return e[i]=e[i]?e[i].concat([t]):[t],e}),{}),i=Object.values(t).filter((e=>2===e.length&&Math.trunc(e[0][1])!==Math.trunc(e[1][1])));return i}(t);n.forEach((t=>{const n=i([...t.flat()],{...r,originX:"center"});e.push(n),Q.add(n)}))}w.value.add(...e)}Q.add(l),w.value.add(l)}))}}function le(){var e;const t=ne.find((e=>"pulse"===e.type));if(!t||!(null==(e=t.dataList)?void 0:e.length))return;if(!t.dataList.some((e=>e.title.includes("脉搏"))))return;const i=Object.assign({},j,R.overlap||{}),l=[];ee.size&&[...ee].forEach((e=>{[...te].forEach((t=>{if(t.origin&&c(e,t)){const e=t.origin.key;if(e){const s={left:t.left,top:t.top,...n,hoverCursor:"default"};let r="koumai";"yemai"===e&&(r=e),"humai"===e&&(r="circle"),l.push(o(r,{...i[e]||{},...s}))}}}))})),setTimeout((()=>{w.value.add(...l),l.forEach((e=>{null==e||e.bringToFront(),ie.add(e)}))}))}function se(e,t,r){var u;const{type:c,riseStyle:f={},noRiseStyle:h={},verifiedStyle:v={},reduceStyle:g={},pacemaker:y={},upArrowStyle:m={},limitValueStyle:x={},nonePainPointStyle:b={},belowMinValueStyle:j={},dataList:Y=[],list:M=[]}=r,{type:O,textStyle:A,showConnectLine:C=!1}=b,I=[],T=[],R=[];null==(u=e.list)||u.forEach(((u,b)=>{const X=a(c)?Y.find((e=>e.key===u.key)):e,V=ue(u,r),D={};D.value=function(e,t,i){if(!(null==e?void 0:e.length)||!K.showValue)return;const{lineAttr:n={}}=i,o=e[1]<=G.originY+z?e[1]+z:e[1]-z,s=l([e[0],o],{value:t.value,originX:"center",originY:"center",fill:n.stroke||"#000"});return R.push(s),{obj:s,top:-z}}(V,u,X),function(e,t,r,a){var u,d;if(!(null==e?void 0:e.length)||!["temperature","pain"].includes(c))return;const{lineAttr:y={}}=r,{value:m}=a;let x,b,j,w,k;if(t.noRise&&h.show){const t=L(h)?E(c,M,35):e[1];if(h.text)j=l([e[0],L(h)?t:t+5],{value:h.text.split("").join("\n"),originY:"top",...h.style});else{const i=t+2*z;j=s([e[0],t,i],{...h.style})}R.push(j)}t.rise&&f.show&&f.text&&(w=l([e[0],e[1]-(m?z:0)-5],{value:f.text.split("").join("\n"),originY:"bottom",...f.style}),R.push(w));t.verified&&(k=l([e[0],e[1]-(m?z:0)-5],{value:"v",originX:"center",originY:"bottom",...v}),R.push(k));if(p(t.physicsReduce)||p(t.drugReduce)){const l=E(c,M,null!=(u=t.physicsReduce)?u:t.drugReduce);x=i([...e,e[0],l],{...y,...g.line,...n}),b=o((null==(d=null==g?void 0:g.point)?void 0:d.type)||"circle",{left:e[0],top:l,...g.point,...n,originY:l===N?"bottom":"center"}),x&&R.push(x),b&&R.push(b)}Object.assign(a,{reduceLine:{obj:x,type:"line"},noRiseText:{obj:j,top:h.text?5:2*z,isFixed:L(h)},riseText:{obj:w,top:(m?-z:0)-5},verifiedText:{obj:k,top:(m?-z:0)-5},reducePoint:{obj:b,type:"reduce"}})}(V,u,X,D),function(e,t,i,n){if(!(null==e?void 0:e.length)||!["pulse"].includes(c))return;const o=Math.max(...M),r=Math.min(...M);let a,u,p;const{upArrowShow:d=!1,limitValueShow:f=!1}=i;if(d&&+t.value>180){let t=e[1]-2.5*z,i=[e[1]-z/2,t];t<G.originY&&(t=e[1]+2.5*z,i=[t,e[1]+z/2]),a=s([e[0],i[0],i[1]],m,"up"),R.push(a)}if(f){const i={value:t.value,originX:"center",originY:"center",...x};if(+t.value>o){const t=a?e[1]+z/2+a.height:e[1]+z;u=l([e[0],t],i),R.push(u)}+t.value<r&&(u=l([e[0],e[1]-z],i),R.push(u))}if(j.show&&+t.value<r){const t=e[1];if(j.text)p=l([e[0],e[1]+5],{value:j.text.split("").join("\n"),originY:"top",...j.style});else{const i=t+2*z;p=s([e[0],t,i],{...j.style})}R.push(p)}Object.assign(n,{upArrow:{obj:a},limitValue:{obj:u,top:-z},belowMinValue:{obj:p,top:j.text?5:2*z,moveHide:!0}})}(V,u,X,D),function(n,l,s,a,u){let p,f;const{pointAttr:h={},lineAttr:v={},title:g="",key:m,type:x="circle"}=a,b=e.list[s+1],j=ue(b,r),L=re(c,e.list[s].value),Y=j&&re(c,b.value);n&&j&&!l.breakpoint&&(!L&&!Y||C)&&n[0]!==j[0]&&(f=i([...n,...j],{...v}));const E=l.pacemakerShow&&"pulse"==c?y.value:L&&"number"===O?0:x,M=T[s-1],R={origin:{data:l,title:g,key:m||"",unit:r.unit,type:c,_type:d(g,c),dataIndex:t,index:s},leftLine:M,rightLine:f,otherObj:u,lockMovementX:!0,...l.pacemakerShow&&"pulse"==c?y.style:h,...k.event.hovered?k.event.evented?{selectable:!0}:{selectable:!0,lockMovementY:!0}:k.event,...L?{selectable:!1,evented:!1,..."number"===O?A:{}}:{}};if(M){const e=M.get("y2");p=o(E,{left:M.get("x2"),top:L?e-5:e,...R})}else n&&(R.leftLine=null,p=o(E,{left:n[0],top:L?n[1]-5:n[1],...R}));T.push(f),p&&(g.includes("脉搏")?ee.add(p):te.add(p),function(e){q.hovered&&(e.on("mouseover",(()=>{ae(e,"hover")})),e.on("mouseout",(()=>{P.show=!1})));if(e.lockMovementX&&e.lockMovementY)return;e.on("moving",(()=>{!function(e){e.setCoords();const t="pain"===e.origin.type?B:G;e.top<t.originY&&e.set("top",t.originY);e.top>t.endY&&e.set("top",t.endY)}(e),function(e){var t,i;null==(t=e.leftLine)||t.setCoords().set({x2:e.left,y2:e.top}),null==(i=e.rightLine)||i.setCoords().set({x1:e.left,y1:e.top}),Object.values(e.otherObj).forEach((t=>{const{obj:i,type:n="",top:o=0,isFixed:l,moveHide:s=!1}=t||{};"reduce"!==n&&i&&("line"===n?i.setCoords().set({x1:e.left,y1:e.top}):(l||i.setCoords().set({left:e.left,top:e.top+o}),s&&(w.value.remove(i),delete e.otherObj.obj)))})),oe(e)}(e),q.hovered&&ae(e)})),e.on("mouseup",(t=>{if(P.show=!1,1===t.button){const{type:t}=e.origin,i=$(t,e.top),n={...e.origin,data:{...e.origin.data,value:i}};w.value.discardActiveObject(),S("change",n),pe(n,"change")}}))}(p),I.push(p),ie.add(p))}(V,u,b,X,D)})),"pulse"===c&&U.forEach((e=>{Z.set(e,I.filter((t=>{var i;return(null==(i=t.origin)?void 0:i.key)===e})).map((e=>[e.left,e.top])))})),Promise.all(I).then((e=>{const t=T.filter((e=>e));Promise.all(R).then((i=>{w.value.add(...t,...e,...i),e.forEach((t=>{null==t||t.bringToFront(),function(e,t){if("pulse"===e.origin.type){t.filter((t=>t.left===e.left&&"pulse"===t.origin.type)).length>1&&(e.leftLine&&w.value.remove(e.leftLine),e.rightLine&&w.value.remove(e.rightLine))}}(t,e)}))}))}))}function re(e,t){return"pain"===e&&0==t}function ae(e,t="moving"){const{title:i,unit:n,type:o,data:l}=e.origin;P.point={x:e.left,y:e.top},P.list=[function(){const{drugReduce:s,physicsReduce:r}=l||{},a="hover"===t?l.value:$(o,e.top);if(p(s))return`药物降${"pain"==o?"痛":"温"} ${a}—>${s}${n||""}`;if(p(r))return`物理降${"pain"==o?"痛":"温"} ${a}—>${r}${n||""}`;return`${i} ${a}${n||""}`}(),`时间 ${((null==l?void 0:l.time)||M(e.left)).slice(-5)}`],P.show=!0}function ue(e,t){const i="pain"===t.type?B:G;if(f(e)&&function(e){const[t]=X,i=X.at(-1),n=t.start,o=i.end,l=h(e);return l>=n&&l<=o}(e.time)){const n=Y(e.time),o=E(t.type,t.list,e.value);return[n,o<i.originY?i.originY:o>i.endY?i.endY:o]}}function ce(e){const t=new Date,i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),o=h(`${t.getFullYear()}-${i}-${n} 23:59:59`),l=h(`${M(e)}:00`);return J&&l<h(J)?(I("exceedMin"),!1):!(l>o)||(I("exceedMax"),!1)}function pe(e,t="add"){const{type:i,dataIndex:n,index:o,data:l,key:s}=e,r=ne.find((e=>e.type===i));if("add"===t){const e=a(i)?r.dataList.find((e=>e.enable)):r.dataList[n],t=v(l.time,e.list);e.list.splice(t,0,l)}else r.dataList[n].list[o]=l;de()}function de(){var e;ie.size&&(null==(e=w.value)||e.remove(...function(e){const t=[];return e.forEach((e=>{e&&t.push(e),(null==e?void 0:e.leftLine)&&t.push(null==e?void 0:e.leftLine),(null==e?void 0:e.rightLine)&&t.push(null==e?void 0:e.rightLine),Object.values((null==e?void 0:e.otherObj)||{}).forEach((e=>{(null==e?void 0:e.obj)&&t.push(null==e?void 0:e.obj)}))})),t}([...ie]))),Z.clear(),ie.clear(),ee.clear(),te.clear(),ne.forEach((e=>{e.dataList.forEach(((t,i)=>{a(e.type)&&!t.enable||se(t,i,e)}))})),oe(),le()}return Z.clear(),ee.clear(),te.clear(),ne.forEach((e=>{!function(e){if("temperature"!==e.type||!e.positionLine)return;const t=E(e.type,e.list,e.positionLine.value),n=i([D,t,F,t],e.positionLine);w.value.add(n)}(e),e.dataList.forEach(((t,i)=>{!t.show||a(e.type)&&!t.enable||se(t,i,e)}))})),oe(),le(),k.event.evented&&w.value.on("mouse:up",(e=>{var t;if(3===e.button){const{x:i=0,y:n=0}=e.pointer||{};if(i>=D&&i<=F&&n>=H&&n<=_){A.point={x:i,y:n},A.show=!0;const{type:o}=(null==(t=e.target)?void 0:t.origin)||{};if(e.target&&["temperature","pain"].includes(o))"temperature"===o&&(A.list=[...x]),"pain"===o&&(A.list=[...b]),A.target=e.target;else{A.target=null,A.list=["新增节点"],W.forEach((t=>{if(!C([...ie],i,"_type").includes(t.bigType)){const i=["pain"].includes(t.bigType)?B:G;n>=i.originY&&n<=i.endY&&A.list.push({renderItem:O?O(t):()=>t.title,origin:{title:t.title,unit:t.unit,type:u(t.bigType),dataIndex:t.dataIndex,key:t.key},pointer:e.pointer})}}));const t=ce(i);t&&1!==A.list.length||(A.show=!1,1===A.list.length&&t&&I("repeat"))}}}})),{clickMenu:function({item:e,target:t}){if(t){const{data:i,type:n,dataIndex:o,index:l}=t.origin,s=g(i,[...x,...b]);s[`${e.type}`]=e.value,a(n)&&(s.key=t.origin.key);const r={...t.origin,data:s};S("change",r),pe(r,"change")}else{const t={data:{time:M(e.pointer.x),value:$(e.origin.type,e.pointer.y),...a(e.origin.type)?{key:e.origin.key}:{}},...e.origin};S("add",t),pe(t)}},setPopup:ae,isAddPoint:ce,updateData:pe,redrawPoints:de,gridPoints:ie}}function L(e){return"fixed"===e.position}export{w as useCenter};
1
+ import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useShadow as t}from"./useShadow.js";import{drawLine as i,defaultStyle as n,drawPoint as o,drawText as l,drawArrow as s}from"../useDraw.js";import{useGrid as r}from"../useGrid.js";import"date-fns";import{isOneLine as a,getType as u,isOverlapPoint as c,isValidValue as p,setOtherType as d,isEffectiveNode as f,getTime as h,getIndex as v,deleteProperty as g}from"../../utils/index.js";import"../useEvent.js";import{useCommon as y}from"../useCommon.js";import"vue";import{cloneDeep as m,flatten as x}from"lodash-es";import"naive-ui";import"@vueuse/core";import{TEMPERATURE_MENU as b,PAIN_MENU as j,OVERLAP as w}from"../../constants/index.js";function L(L,S,Y,E,M,$,O,P,A,C){r(L,S);const{getEqualXTypes:I,handleAddPrevent:T}=y(L,Y,S),{createShadowLines:R}=t(),{left:X,xScaleList:V,xCellWidth:z,yCellHeight:D,originX:F,endX:H,originY:_,endY:W,itemList:q,event:G,vitalSignsOriginY:B,painOriginY:J,hospitalizationDate:K,config:N,canvasHeight:Q}=S,U=new Set,Z=["xinmai","mai"],ee=new Map,te=new Set,ie=new Set,ne=new Set,oe=m(X.yScaleValue);function le(t){var o;const l=oe.find((e=>"pulse"===e.type));if(l&&(null==(o=l.dataList)?void 0:o.length)&&(U.size&&L.value.remove(...U),U.clear(),ee.size>1)){if(t){const{type:e,key:i}=t.origin||{};if("pulse"===e){const e=ee.get(i),n=null==e?void 0:e.findIndex((e=>e[0]===t.left));e.splice(n,1,[t.left,t.top])}}const o=function(){const e=[],t=[],i=[];for(const e of ee)t.push(e[1]),e[0]===Z[0]&&e[1].forEach((e=>{(ee.get(Z[1])||[]).findIndex((t=>t[0]===e[0]))>-1&&i.push(e[0])}));const[n,o]=t;let l=[],s=[];return i.forEach((t=>{const i=n.findIndex((e=>e[0]===t)),r=o.findIndex((e=>e[0]===t)),a=n[i],u=o[r],c=n[i-1],p=n[i+1],d=o[r-1],f=o[r+1];if(c&&d){if(c[0]!==d[0]){const e=Math.max(c[0],d[0]);l.push([c,d].find((t=>t[0]===e)))}}else c?l.push(c):d&&s.push(d);const h=Math.min(a[1],u[1]);l.push([a,u].find((e=>e[1]===h)));const v=Math.max(a[1],u[1]);s.push([a,u].find((e=>e[1]===v)));const g=()=>{const t=[...l,...s.reverse()],[i]=t,n=t.at(-1);i[0]===n[0]&&i[1]===n[1]&&t.splice(-1,1),e.push(t),l=[],s=[]};if(p&&f){if(p[0]!==f[0]){const e=Math.min(p[0],f[0]);l.push([p,f].find((t=>t[0]===e))),g()}}else p?(l.push(p),g()):f?(s.push(f),g()):g()})),e}(),{mode:s,style:r={}}=l.shadow||{};o.forEach((t=>{const o=t.map((e=>({x:e[0],y:e[1]}))),l=new e.Polygon(o,{...n,...r,strokeWidth:1});if(["slash","line"].includes(s)){l.set({fill:"transparent",stroke:r.stroke||"#f00"});const e=[];if(["slash"].includes(s))e.push(...R(t,r._angle,r.space)),e.forEach((e=>{Object.assign(e,{...n,...r}),U.add(e)}));else{const n=function(e){const t=e.reduce(((e,t)=>{const i=Math.trunc(t[0]);return e[i]=e[i]?e[i].concat([t]):[t],e}),{}),i=Object.values(t).filter((e=>2===e.length&&Math.trunc(e[0][1])!==Math.trunc(e[1][1])));return i}(t);n.forEach((t=>{const n=i([...x(t)],{...r,originX:"center"});e.push(n),U.add(n)}))}L.value.add(...e)}U.add(l),L.value.add(l)}))}}function se(){var e;const t=oe.find((e=>"pulse"===e.type));if(!t||!(null==(e=t.dataList)?void 0:e.length))return;if(!t.dataList.some((e=>e.title.includes("脉搏"))))return;const i=Object.assign({},w,X.overlap||{}),l=[];te.size&&[...te].forEach((e=>{[...ie].forEach((t=>{if(t.origin&&c(e,t)){const e=t.origin.key;if(e){const s={left:t.left,top:t.top,...n,hoverCursor:"default"};let r="koumai";"yemai"===e&&(r=e),"humai"===e&&(r="circle"),l.push(o(r,{...i[e]||{},...s}))}}}))})),setTimeout((()=>{L.value.add(...l),l.forEach((e=>{null==e||e.bringToFront(),ne.add(e)}))}))}function re(e,t,r){var u;const{type:c,riseStyle:f={},noRiseStyle:h={},verifiedStyle:v={},reduceStyle:g={},pacemaker:y={},upArrowStyle:m={},limitValueStyle:x={},nonePainPointStyle:b={},belowMinValueStyle:j={},dataList:w=[],list:E=[]}=r,{type:$,textStyle:P,showConnectLine:C=!1}=b,I=[],T=[],R=[];null==(u=e.list)||u.forEach(((u,b)=>{const X=a(c)?w.find((e=>e.key===u.key)):e,V=ce(u,r),z={};z.value=function(e,t,i){if(!(null==e?void 0:e.length)||!N.showValue)return;const{lineAttr:n={}}=i,o=e[1]<=B.originY+D?e[1]+D:e[1]-D,s=l([e[0],o],{value:t.value,originX:"center",originY:"center",fill:n.stroke||"#000"});return R.push(s),{obj:s,top:-D}}(V,u,X),function(e,t,r,a){var u,d;if(!(null==e?void 0:e.length)||!["temperature","pain"].includes(c))return;const{lineAttr:y={}}=r,{value:m}=a;let x,b,j,w,L;if(t.noRise&&h.show){const t=k(h)?M(c,E,35):e[1];if(h.text)j=l([e[0],k(h)?t:t+5],{value:h.text.split("").join("\n"),originY:"top",...h.style});else{const i=t+2*D;j=s([e[0],t,i],{...h.style})}R.push(j)}t.rise&&f.show&&f.text&&(w=l([e[0],e[1]-(m?D:0)-5],{value:f.text.split("").join("\n"),originY:"bottom",...f.style}),R.push(w));t.verified&&(L=l([e[0],e[1]-(m?D:0)-5],{value:"v",originX:"center",originY:"bottom",...v}),R.push(L));if(p(t.physicsReduce)||p(t.drugReduce)){const l=M(c,E,null!=(u=t.physicsReduce)?u:t.drugReduce);x=i([...e,e[0],l],{...y,...g.line,...n}),b=o((null==(d=null==g?void 0:g.point)?void 0:d.type)||"circle",{left:e[0],top:l,...g.point,...n,originY:l===Q?"bottom":"center"}),x&&R.push(x),b&&R.push(b)}Object.assign(a,{reduceLine:{obj:x,type:"line"},noRiseText:{obj:j,top:h.text?5:2*D,isFixed:k(h)},riseText:{obj:w,top:(m?-D:0)-5},verifiedText:{obj:L,top:(m?-D:0)-5},reducePoint:{obj:b,type:"reduce"}})}(V,u,X,z),function(e,t,i,n){if(!(null==e?void 0:e.length)||!["pulse"].includes(c))return;const o=Math.max(...E),r=Math.min(...E);let a,u,p;const{upArrowShow:d=!1,limitValueShow:f=!1}=i;if(d&&+t.value>180){let t=e[1]-2.5*D,i=[e[1]-D/2,t];t<B.originY&&(t=e[1]+2.5*D,i=[t,e[1]+D/2]),a=s([e[0],i[0],i[1]],m,"up"),R.push(a)}if(f){const i={value:t.value,originX:"center",originY:"center",...x};if(+t.value>o){const t=a?e[1]+D/2+a.height:e[1]+D;u=l([e[0],t],i),R.push(u)}+t.value<r&&(u=l([e[0],e[1]-D],i),R.push(u))}if(j.show&&+t.value<r){const t=e[1];if(j.text)p=l([e[0],e[1]+5],{value:j.text.split("").join("\n"),originY:"top",...j.style});else{const i=t+2*D;p=s([e[0],t,i],{...j.style})}R.push(p)}Object.assign(n,{upArrow:{obj:a},limitValue:{obj:u,top:-D},belowMinValue:{obj:p,top:j.text?5:2*D,moveHide:!0}})}(V,u,X,z),function(n,l,s,a,u){let p,f;const{pointAttr:h={},lineAttr:v={},title:g="",key:m,type:x="circle"}=a,b=e.list[s+1],j=ce(b,r),w=ae(c,e.list[s].value),k=j&&ae(c,b.value);n&&j&&!l.breakpoint&&(!w&&!k||C)&&n[0]!==j[0]&&(f=i([...n,...j],{...v}));const E=l.pacemakerShow&&"pulse"==c?y.value:w&&"number"===$?0:x,M=T[s-1],R={origin:{data:l,title:g,key:m||"",unit:r.unit,type:c,_type:d(g,c),dataIndex:t,index:s},leftLine:M,rightLine:f,otherObj:u,lockMovementX:!0,...l.pacemakerShow&&"pulse"==c?y.style:h,...S.event.hovered?S.event.evented?{selectable:!0}:{selectable:!0,lockMovementY:!0}:S.event,...w?{selectable:!1,evented:!1,..."number"===$?P:{}}:{}};if(M){const e=M.get("y2");p=o(E,{left:M.get("x2"),top:w?e-5:e,...R})}else n&&(R.leftLine=null,p=o(E,{left:n[0],top:w?n[1]-5:n[1],...R}));T.push(f),p&&(g.includes("脉搏")?te.add(p):ie.add(p),function(e){G.hovered&&(e.on("mouseover",(()=>{ue(e,"hover")})),e.on("mouseout",(()=>{A.show=!1})));if(e.lockMovementX&&e.lockMovementY)return;e.on("moving",(()=>{!function(e){e.setCoords();const t="pain"===e.origin.type?J:B;e.top<t.originY&&e.set("top",t.originY);e.top>t.endY&&e.set("top",t.endY)}(e),function(e){var t,i;null==(t=e.leftLine)||t.setCoords().set({x2:e.left,y2:e.top}),null==(i=e.rightLine)||i.setCoords().set({x1:e.left,y1:e.top}),Object.values(e.otherObj).forEach((t=>{const{obj:i,type:n="",top:o=0,isFixed:l,moveHide:s=!1}=t||{};"reduce"!==n&&i&&("line"===n?i.setCoords().set({x1:e.left,y1:e.top}):(l||i.setCoords().set({left:e.left,top:e.top+o}),s&&(L.value.remove(i),delete e.otherObj.obj)))})),le(e)}(e),G.hovered&&ue(e)})),e.on("mouseup",(t=>{if(A.show=!1,1===t.button){const{type:t}=e.origin,i=O(t,e.top),n={...e.origin,data:{...e.origin.data,value:i}};L.value.discardActiveObject(),Y("change",n),de(n,"change")}}))}(p),I.push(p),ne.add(p))}(V,u,b,X,z)})),"pulse"===c&&Z.forEach((e=>{ee.set(e,I.filter((t=>{var i;return(null==(i=t.origin)?void 0:i.key)===e})).map((e=>[e.left,e.top])))})),Promise.all(I).then((e=>{const t=T.filter((e=>e));Promise.all(R).then((i=>{L.value.add(...t,...e,...i),e.forEach((t=>{null==t||t.bringToFront(),function(e,t){if("pulse"===e.origin.type){t.filter((t=>t.left===e.left&&"pulse"===t.origin.type)).length>1&&(e.leftLine&&L.value.remove(e.leftLine),e.rightLine&&L.value.remove(e.rightLine))}}(t,e)}))}))}))}function ae(e,t){return"pain"===e&&0==t}function ue(e,t="moving"){const{title:i,unit:n,type:o,data:l}=e.origin;A.point={x:e.left,y:e.top},A.list=[function(){const{drugReduce:s,physicsReduce:r}=l||{},a="hover"===t?l.value:O(o,e.top);if(p(s))return`药物降${"pain"==o?"痛":"温"} ${a}—>${s}${n||""}`;if(p(r))return`物理降${"pain"==o?"痛":"温"} ${a}—>${r}${n||""}`;return`${i} ${a}${n||""}`}(),`时间 ${((null==l?void 0:l.time)||$(e.left)).slice(-5)}`],A.show=!0}function ce(e,t){const i="pain"===t.type?J:B;if(f(e)&&function(e){const[t]=V,i=V.at(-1),n=t.start,o=i.end,l=h(e);return l>=n&&l<=o}(e.time)){const n=E(e.time),o=M(t.type,t.list,e.value);return[n,o<i.originY?i.originY:o>i.endY?i.endY:o]}}function pe(e){const t=new Date,i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),o=h(`${t.getFullYear()}-${i}-${n} 23:59:59`),l=h(`${$(e)}:00`);return K&&l<h(K)?(T("exceedMin"),!1):!(l>o)||(T("exceedMax"),!1)}function de(e,t="add"){const{type:i,dataIndex:n,index:o,data:l,key:s}=e,r=oe.find((e=>e.type===i));if("add"===t){const e=a(i)?r.dataList.find((e=>e.enable)):r.dataList[n],t=v(l.time,e.list);e.list.splice(t,0,l)}else r.dataList[n].list[o]=l;fe()}function fe(){var e;ne.size&&(null==(e=L.value)||e.remove(...function(e){const t=[];return e.forEach((e=>{e&&t.push(e),(null==e?void 0:e.leftLine)&&t.push(null==e?void 0:e.leftLine),(null==e?void 0:e.rightLine)&&t.push(null==e?void 0:e.rightLine),Object.values((null==e?void 0:e.otherObj)||{}).forEach((e=>{(null==e?void 0:e.obj)&&t.push(null==e?void 0:e.obj)}))})),t}([...ne]))),ee.clear(),ne.clear(),te.clear(),ie.clear(),oe.forEach((e=>{e.dataList.forEach(((t,i)=>{a(e.type)&&!t.enable||re(t,i,e)}))})),le(),se()}return ee.clear(),te.clear(),ie.clear(),oe.forEach((e=>{!function(e){if("temperature"!==e.type||!e.positionLine)return;const t=M(e.type,e.list,e.positionLine.value),n=i([F,t,H,t],e.positionLine);L.value.add(n)}(e),e.dataList.forEach(((t,i)=>{!t.show||a(e.type)&&!t.enable||re(t,i,e)}))})),le(),se(),L.value.on("mouse:up",(e=>{var t;if(3===e.button){if(!S.event.evented)return;const{x:i=0,y:n=0}=e.pointer||{};if(i>=F&&i<=H&&n>=_&&n<=W){C.point={x:i,y:n},C.show=!0;const{type:o}=(null==(t=e.target)?void 0:t.origin)||{};if(e.target&&["temperature","pain"].includes(o))"temperature"===o&&(C.list=[...b]),"pain"===o&&(C.list=[...j]),C.target=e.target;else{C.target=null,C.list=["新增节点"],q.forEach((t=>{if(!I([...ne],i,"_type").includes(t.bigType)){const i=["pain"].includes(t.bigType)?J:B;n>=i.originY&&n<=i.endY&&C.list.push({renderItem:P?P(t):()=>t.title,origin:{title:t.title,unit:t.unit,type:u(t.bigType),dataIndex:t.dataIndex,key:t.key},pointer:e.pointer})}}));const t=pe(i);t&&1!==C.list.length||(C.show=!1,1===C.list.length&&t&&T("repeat"))}}}if(1===e.button){const{x:t=0,y:i=0}=e.pointer||{};t>=F&&t<=H&&i>0&&i<Q&&Y("click:grid",{x:t,y:i,time:$(t)})}})),{clickMenu:function({item:e,target:t}){if(t){const{data:i,type:n,dataIndex:o,index:l}=t.origin,s=g(i,[...b,...j]);s[`${e.type}`]=e.value,a(n)&&(s.key=t.origin.key);const r={...t.origin,data:s};Y("change",r),de(r,"change")}else{const t={data:{time:$(e.pointer.x),value:O(e.origin.type,e.pointer.y),...a(e.origin.type)?{key:e.origin.key}:{}},...e.origin};Y("add",t),de(t)}},setPopup:ue,isAddPoint:pe,updateData:de,redrawPoints:fe,gridPoints:ne}}function k(e){return"fixed"===e.position}export{L as useCenter};
@@ -1 +1 @@
1
- import{ref as e,computed as t,reactive as a,watch as l}from"vue";import{defaultBorderStyle as u}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import{useCumputedPoint as i}from"../useCumputedPoint.js";import{useCanvasEvent as n}from"../useEvent.js";import{setOtherType as r,getFloorNumber as o}from"../../utils/index.js";import"lodash-es";import{format as s,addDays as d}from"date-fns";import"naive-ui";import"@vueuse/core";import{useTop as v}from"./useTop.js";import{useLeft as c}from"./useLeft.js";import{useRight as h}from"./useRight.js";import{useCenter as p}from"./useCenter.js";import{useBottom as g}from"./useBottom.js";import{useOther as m}from"./useOther.js";function f(f,y,S,b,w,Y){const C=15,x=e(),D=e(),j=e(),V=t((()=>{var e;return(null==(e=y.data.grid)?void 0:e.surplusCell)||[0,0,0,0]})),H=t((()=>{const{top:e}=y.data;return e.date.show&&(e.date.height||C)||0})),X=t((()=>{var e;const{top:t}=y.data;return(null==(e=t.hospitalDays)?void 0:e.show)&&(t.hospitalDays.height||C)||0})),L=t((()=>{var e;const{top:t}=y.data;return(null==(e=t.operationDays)?void 0:e.show)&&(t.operationDays.height||C)||0})),I=t((()=>{var e,t,a;const{top:l}=y.data;return((null==(e=l.xScalevalue)?void 0:e.show)&&(l.xScalevalue.height||C)||0)+((null==(t=l.xScalevalue)?void 0:t.show)&&null!=(a=l.dayHeight)?a:0)})),M=t((()=>{var e;const{bottom:t}=y.data;return(null==(e=null==t?void 0:t.breathing)?void 0:e.show)&&(t.breathing.height||30)||0})),P=t((()=>{const{grid:e}=y.data;return e.mainXCell*e.subXCell+V.value[1]+V.value[3]})),N=t((()=>{const{grid:e}=y.data;return e.mainYCell*e.subYCell+V.value[0]+V.value[2]})),O=t((()=>{var e;const{width:t,right:a=null,top:l}=y.data;if(!a)return t;return t-(null!=(e=a.width)?e:0)})),W=t((()=>O.value-V.value[2]*z.value)),$=t((()=>{const{top:e,left:t}=y.data;return e.titleWidth+A.value})),k=t((()=>{const{bottom:e=null,height:t}=y.data;if(!e)return t;return t-(e.height||30)})),G=t((()=>k.value-V.value[2]*T.value)),R=t((()=>{var e;const{top:t}=y.data,a=t.xScalevalue.show&&(null!=(e=t.dayHeight)?e:0)||0,l=t.xScalevalue.show&&(t.xScalevalue.height||C)||0;return H.value+a+l+X.value+L.value})),q=t((()=>R.value+V.value[0]*T.value)),z=t((()=>(O.value-$.value)/P.value)),T=t((()=>(k.value-R.value)/N.value)),A=t((()=>{var e,t;const{left:a}=y.data;return(null==(e=a.icons)?void 0:e.show)&&((null==(t=a.icons)?void 0:t.width)||100)||0})),B=t((()=>{var e,t;const{top:a,grid:l}=y.data,u=(null==(t=null==(e=a.date.list)?void 0:e.slice)?void 0:t.call(e,0,l.mainXCell))||[],i=a.xScalevalue.times;let n=$.value-z.value;const r=a.date.startDate||s(new Date,"yyyy-MM-dd");return u.reduce(((e,t,a)=>0===a?e.concat(r):e.concat(s(d(new Date(r.replace(/-/g,"/")),a),"yyyy-MM-dd"))),[]).map((e=>i.map((t=>{n+=z.value;const a=Date.parse(`${e} ${t.start}`),l=Date.parse(`${e} ${t.end}`);return{start:a,end:l,left:n,center:n+z.value/2,scaleCell:(l-a)/z.value}})))).flat()})),E=t((()=>ie("breathe"))),F=t((()=>ie("pulse"))),J=t((()=>ie("temperature"))),K=t((()=>ie("pain"))),Q=t((()=>{var e;return(null==(e=y.data.grid)?void 0:e.event)||{selectable:!0,evented:!0,hovered:!0}})),U=t((()=>{const{left:e}=y.data;return e.yScaleValue.map((e=>e.dataList.filter((e=>e.show)).map(((t,a)=>({...t,bigType:r(t.title,e.type),unit:e.unit,dataIndex:a}))))).flat()})),Z=t((()=>{var e,t;const{left:a}=y.data,l=a.yScaleValue.findIndex((e=>"pain"===e.type));return l>-1&&(null==(t=null==(e=a.yScaleValue[l].dataList)?void 0:e[0])?void 0:t.show)?l:-1})),_=t((()=>{const{grid:e}=y.data;return-1===Z.value?0:T.value*e.subYCell})),ee=t((()=>{const{left:e}=y.data,t={originY:q.value,endY:G.value};return 0===Z.value&&e.yScaleValue.length>1?t.endY=q.value+_.value:Z.value===e.yScaleValue.length-1&&(t.originY=G.value-_.value),t})),te=t((()=>{const{left:e}=y.data,t={originY:q.value,endY:G.value};return 0===Z.value&&e.yScaleValue.length>1?t.originY=q.value+_.value:Z.value===e.yScaleValue.length-1&&(t.endY=G.value-_.value),t})),ae=t((()=>{var e,t;const{top:a,grid:l}=y.data,u=[];for(const i in a)a[i].show&&u.push({...a[i],list:(null==(t=null==(e=a[i].list)?void 0:e.slice)?void 0:t.call(e,0,l.mainXCell))||[],key:i});return u.sort(((e,t)=>e.seq-t.seq))})),le=t((()=>{var e;const{left:t,right:a}=y.data,l=t.yScaleValue.find((e=>"temperature"===e.type)),u=(null==a?void 0:a.yScaleValue)||{};if(null==(e=null==l?void 0:l.list)?void 0:e.length){const e=(null==u?void 0:u.showdetailedScale)?l.list.reduce((e=>{const t=e[e.length-1];return t?e.concat([t+1,t+2]):e.concat([92])}),[]):[],t=l.list.map((e=>o(1.8*e+32)));Object.assign(u,{list:t,detailedList:e,spaceGridNumber:l.spaceGridNumber})}return u})),ue=a({canvasWidth:y.data.width,canvasHeight:y.data.height,borderStyle:{...u,...y.data.borderStyle||{}},selectionStyle:y.data.selectionStyle||{},dateHeight:H.value,hospitalDaysHeight:X.value,operationDaysHeight:L.value,xScalevalueHeight:I.value,topList:ae.value,breathingHeight:M.value,hospitalizationDate:y.data.hospitalizationDate,grid:y.data.grid,top:y.data.top,left:y.data.left,right:y.data.right,bottom:y.data.bottom,other:y.data.other,painIndex:Z.value,painHeight:_.value,painOriginY:ee.value,vitalSignsOriginY:te.value,gridXNumber:P.value,gridYNumber:N.value,iconsWidth:A.value,originX:$.value,originY:R.value,originYLimit:q.value,endX:O.value,endXLimit:W.value,endY:k.value,xCellWidth:z.value,yCellHeight:T.value,xScaleList:B.value,breatheYCell:E.value,pulseYCell:F.value,temperatureYCell:J.value,painYCell:K.value,event:Q.value,itemList:U.value,getRightInfo:le.value,config:y.data.config||{},surplusCell:V.value});function ie(e){const{yScaleValue:t}=y.data.left,a=t.find((t=>t.type===e)),l=(null==a?void 0:a.list)||[];return l.length?T.value/((l[1]-l[0])/a.spaceGridNumber):0}const{computedX:ne,computedY:re,getXValue:oe,getYValue:se}=i(ue);return l((()=>f.value),(e=>{e&&function(){v(f,ue);const{setPopup:e,isAddPoint:t,updateData:a,redrawPoints:l,clickMenu:u,gridPoints:i}=p(f,ue,S,ne,re,oe,se,y.addRenderItem,w,Y);D.value=l,j.value=u;const{drawScaleValue:r}=c(f,ue,S,e,w,ne,re,oe,se,t,a,i);h(f,ue,r),g(f,ue),m(f,ue,ne);const{select:o}=n(f,ue,S);x.value=o}()}),{immediate:!0}),{propItems:ue,redrawPoints:D,select:x,clickMenu:j}}export{f as useTemperatureChart};
1
+ import{ref as e,computed as t,reactive as a,watch as l}from"vue";import{defaultBorderStyle as u}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import{useCumputedPoint as i}from"../useCumputedPoint.js";import{useCanvasEvent as r}from"../useEvent.js";import{setOtherType as n,getFloorNumber as o}from"../../utils/index.js";import{flatten as s}from"lodash-es";import{format as d,addDays as v}from"date-fns";import"naive-ui";import"@vueuse/core";import{useTop as c}from"./useTop.js";import{useLeft as h}from"./useLeft.js";import{useRight as p}from"./useRight.js";import{useCenter as g}from"./useCenter.js";import{useBottom as m}from"./useBottom.js";import{useOther as f}from"./useOther.js";function y(y,S,b,w,Y,C){const x=15,D=e(),j=e(),V=e(),H=t((()=>{var e;return(null==(e=S.data.grid)?void 0:e.surplusCell)||[0,0,0,0]})),X=t((()=>{const{top:e}=S.data;return e.date.show&&(e.date.height||x)||0})),L=t((()=>{var e;const{top:t}=S.data;return(null==(e=t.hospitalDays)?void 0:e.show)&&(t.hospitalDays.height||x)||0})),I=t((()=>{var e;const{top:t}=S.data;return(null==(e=t.operationDays)?void 0:e.show)&&(t.operationDays.height||x)||0})),M=t((()=>{var e,t,a;const{top:l}=S.data;return((null==(e=l.xScalevalue)?void 0:e.show)&&(l.xScalevalue.height||x)||0)+((null==(t=l.xScalevalue)?void 0:t.show)&&null!=(a=l.dayHeight)?a:0)})),P=t((()=>{var e;const{bottom:t}=S.data;return(null==(e=null==t?void 0:t.breathing)?void 0:e.show)&&(t.breathing.height||30)||0})),N=t((()=>{const{grid:e}=S.data;return e.mainXCell*e.subXCell+H.value[1]+H.value[3]})),O=t((()=>{const{grid:e}=S.data;return e.mainYCell*e.subYCell+H.value[0]+H.value[2]})),W=t((()=>{var e;const{width:t,right:a=null,top:l}=S.data;if(!a)return t;return t-(null!=(e=a.width)?e:0)})),$=t((()=>W.value-H.value[2]*T.value)),k=t((()=>{const{top:e,left:t}=S.data;return e.titleWidth+B.value})),G=t((()=>{const{bottom:e=null,height:t}=S.data;if(!e)return t;return t-(e.height||30)})),R=t((()=>G.value-H.value[2]*A.value)),q=t((()=>{var e;const{top:t}=S.data,a=t.xScalevalue.show&&(null!=(e=t.dayHeight)?e:0)||0,l=t.xScalevalue.show&&(t.xScalevalue.height||x)||0;return X.value+a+l+L.value+I.value})),z=t((()=>q.value+H.value[0]*A.value)),T=t((()=>(W.value-k.value)/N.value)),A=t((()=>(G.value-q.value)/O.value)),B=t((()=>{var e,t;const{left:a}=S.data;return(null==(e=a.icons)?void 0:e.show)&&((null==(t=a.icons)?void 0:t.width)||100)||0})),E=t((()=>{var e,t;const{top:a,grid:l}=S.data,u=(null==(t=null==(e=a.date.list)?void 0:e.slice)?void 0:t.call(e,0,l.mainXCell))||[],i=a.xScalevalue.times;let r=k.value-T.value;const n=a.date.startDate||d(new Date,"yyyy-MM-dd"),o=u.reduce(((e,t,a)=>0===a?e.concat(n):e.concat(d(v(new Date(n.replace(/-/g,"/")),a),"yyyy-MM-dd"))),[]).map((e=>i.map((t=>{r+=T.value;const a=Date.parse(`${e} ${t.start}`),l=Date.parse(`${e} ${t.end}`);return{start:a,end:l,left:r,center:r+T.value/2,scaleCell:(l-a)/T.value}}))));return s(o)})),F=t((()=>re("breathe"))),J=t((()=>re("pulse"))),K=t((()=>re("temperature"))),Q=t((()=>re("pain"))),U=t((()=>{var e;return(null==(e=S.data.grid)?void 0:e.event)||{selectable:!0,evented:!0,hovered:!0}})),Z=t((()=>{const{left:e}=S.data;return s(e.yScaleValue.map((e=>e.dataList.filter((e=>e.show)).map(((t,a)=>({...t,bigType:n(t.title,e.type),unit:e.unit,dataIndex:a}))))))})),_=t((()=>{var e,t;const{left:a}=S.data,l=a.yScaleValue.findIndex((e=>"pain"===e.type));return l>-1&&(null==(t=null==(e=a.yScaleValue[l].dataList)?void 0:e[0])?void 0:t.show)?l:-1})),ee=t((()=>{const{grid:e}=S.data;return-1===_.value?0:A.value*e.subYCell})),te=t((()=>{const{left:e}=S.data,t={originY:z.value,endY:R.value};return 0===_.value&&e.yScaleValue.length>1?t.endY=z.value+ee.value:_.value===e.yScaleValue.length-1&&(t.originY=R.value-ee.value),t})),ae=t((()=>{const{left:e}=S.data,t={originY:z.value,endY:R.value};return 0===_.value&&e.yScaleValue.length>1?t.originY=z.value+ee.value:_.value===e.yScaleValue.length-1&&(t.endY=R.value-ee.value),t})),le=t((()=>{var e,t;const{top:a,grid:l}=S.data,u=[];for(const i in a)a[i].show&&u.push({...a[i],list:(null==(t=null==(e=a[i].list)?void 0:e.slice)?void 0:t.call(e,0,l.mainXCell))||[],key:i});return u.sort(((e,t)=>e.seq-t.seq))})),ue=t((()=>{var e;const{left:t,right:a}=S.data,l=t.yScaleValue.find((e=>"temperature"===e.type)),u=(null==a?void 0:a.yScaleValue)||{};if(null==(e=null==l?void 0:l.list)?void 0:e.length){const e=(null==u?void 0:u.showdetailedScale)?l.list.reduce((e=>{const t=e[e.length-1];return t?e.concat([t+1,t+2]):e.concat([92])}),[]):[],t=l.list.map((e=>o(1.8*e+32)));Object.assign(u,{list:t,detailedList:e,spaceGridNumber:l.spaceGridNumber})}return u})),ie=a({canvasWidth:S.data.width,canvasHeight:S.data.height,borderStyle:{...u,...S.data.borderStyle||{}},selectionStyle:S.data.selectionStyle||{},dateHeight:X.value,hospitalDaysHeight:L.value,operationDaysHeight:I.value,xScalevalueHeight:M.value,topList:le.value,breathingHeight:P.value,hospitalizationDate:S.data.hospitalizationDate,grid:S.data.grid,top:S.data.top,left:S.data.left,right:S.data.right,bottom:S.data.bottom,other:S.data.other,painIndex:_.value,painHeight:ee.value,painOriginY:te.value,vitalSignsOriginY:ae.value,gridXNumber:N.value,gridYNumber:O.value,iconsWidth:B.value,originX:k.value,originY:q.value,originYLimit:z.value,endX:W.value,endXLimit:$.value,endY:G.value,xCellWidth:T.value,yCellHeight:A.value,xScaleList:E.value,breatheYCell:F.value,pulseYCell:J.value,temperatureYCell:K.value,painYCell:Q.value,event:U.value,itemList:Z.value,getRightInfo:ue.value,config:S.data.config||{},surplusCell:H.value});function re(e){const{yScaleValue:t}=S.data.left,a=t.find((t=>t.type===e)),l=(null==a?void 0:a.list)||[];return l.length?A.value/((l[1]-l[0])/a.spaceGridNumber):0}const{computedX:ne,computedY:oe,getXValue:se,getYValue:de}=i(ie);return l((()=>y.value),(e=>{e&&function(){c(y,ie);const{setPopup:e,isAddPoint:t,updateData:a,redrawPoints:l,clickMenu:u,gridPoints:i}=g(y,ie,b,ne,oe,se,de,S.addRenderItem,Y,C);j.value=l,V.value=u;const{drawScaleValue:n}=h(y,ie,b,e,Y,ne,oe,se,de,t,a,i);p(y,ie,n),m(y,ie),f(y,ie,ne);const{select:o}=r(y,ie,b);D.value=o}()}),{immediate:!0}),{propItems:ie,redrawPoints:j,select:D,clickMenu:V}}export{y as useTemperatureChart};
@@ -1 +1 @@
1
- import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{drawLine as e,defaultStyle as l,drawTextGroup as i,defaultTextStyle as s}from"../useDraw.js";import"date-fns";import"lodash-es";import"../useEvent.js";import"vue";import"./useShadow.js";import"naive-ui";import"@vueuse/core";function o(o,u){const{grid:h,originX:n,endX:a,xCellWidth:c,gridXNumber:r,top:p,xScalevalueHeight:d,iconsWidth:f,topList:v,endXLimit:g,canvasWidth:y,borderStyle:m,surplusCell:S}=u;!function(){const w=[];g&&w.push(new t.Line([g,0,y,0],m));let x=0;v.forEach(((t,l)=>{if(l>0&&(x+=u[`${v[l-1].key}Height`]),"xScalevalue"==t.key)!function(t,l,o){const u=p.dayHeight;if(!u)return;l.push(e([n,o+u,a,o+u],m));const d=c*h.subSecondXCell,f=(r-S[1]-S[3])/h.subSecondXCell;for(let h=0;h<f;h++){const a=n+h*d,c=h%2==0?"上午":"下午",r=i({width:d,height:u,...m},{value:c,...s,...t.style||{}},{left:a,top:o});l.push(r),l.push(e([a+d,o,a+d,o+u],m))}}(t,w,x),function(t,l,o){var u;const r=p.xScalevalue.show&&null!=(u=p.dayHeight)?u:0,v=d-r;if(!v)return;l.push(e([f,o+d,a,o+d],m));const g=i({width:n-f,height:d,...m},{value:p.xScalevalue.title,...s,...t.style||{},...t.titleStyle||{}},{left:f,top:o});l.push(g),l.push(e([n,o,n,o+d],m));const y=[];for(let t=0;t<h.mainXCell;t++)y.push(p.xScalevalue.list);y.flat().forEach(((u,h)=>{const a=n+h*c,p=i({width:c,height:v,...m},{value:u.value,...s,...t.style||{},...u.style||{}},{left:a,top:o+r});l.push(p),l.push(e([a+c,o+r,a+c,o+r+v],m))}))}(t,w,x);else{if(!u[`${t.key}Height`])return;const o=u[`${v[l].key}Height`];!function(t,l,o){const a=u[`${t.key}Height`],r=i({width:n-f,height:a,...m},{value:t.title,...s,...(null==t?void 0:t.style)||{},...t.titleStyle||{}},{left:f,top:o});l.push(r);const p=c*h.subXCell;t.list.forEach(((u,h)=>{const c=n+h*p,r=i({width:p,height:a,...m},{value:u,...s,...(null==t?void 0:t.style)||{}},{left:c,top:o});l.push(e([c+p,o,c+p,o+a],m)),l.push(r)}))}(t,w,x),w.push(e([f,x+o,a,x+o],m)),w.push(e([n,x,n,x+o],m))}}));const X=w.length>0?new t.Group([...w],{...l,objectCaching:!1}):null;X&&X.sendToBack(),X&&o.value.add(X)}()}export{o as useTop};
1
+ import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{drawLine as e,defaultStyle as l,drawTextGroup as i,defaultTextStyle as s}from"../useDraw.js";import"date-fns";import{flatten as o}from"lodash-es";import"../useEvent.js";import"vue";import"./useShadow.js";import"naive-ui";import"@vueuse/core";function u(u,h){const{grid:n,originX:r,endX:a,xCellWidth:c,gridXNumber:p,top:d,xScalevalueHeight:f,iconsWidth:v,topList:g,endXLimit:y,canvasWidth:m,borderStyle:S,surplusCell:w}=h;!function(){const x=[];y&&x.push(new t.Line([y,0,m,0],S));let X=0;g.forEach(((t,l)=>{if(l>0&&(X+=h[`${g[l-1].key}Height`]),"xScalevalue"==t.key)!function(t,l,o){const u=d.dayHeight;if(!u)return;l.push(e([r,o+u,a,o+u],S));const h=c*n.subSecondXCell,f=(p-w[1]-w[3])/n.subSecondXCell;for(let n=0;n<f;n++){const a=r+n*h,c=n%2==0?"上午":"下午",p=i({width:h,height:u,...S},{value:c,...s,...t.style||{}},{left:a,top:o});l.push(p),l.push(e([a+h,o,a+h,o+u],S))}}(t,x,X),function(t,l,u){var h;const p=d.xScalevalue.show&&null!=(h=d.dayHeight)?h:0,g=f-p;if(!g)return;l.push(e([v,u+f,a,u+f],S));const y=i({width:r-v,height:f,...S},{value:d.xScalevalue.title,...s,...t.style||{},...t.titleStyle||{}},{left:v,top:u});l.push(y),l.push(e([r,u,r,u+f],S));const m=[];for(let t=0;t<n.mainXCell;t++)m.push(d.xScalevalue.list);o(m).forEach(((o,h)=>{const n=r+h*c,a=i({width:c,height:g,...S},{value:o.value,...s,...t.style||{},...o.style||{}},{left:n,top:u+p});l.push(a),l.push(e([n+c,u+p,n+c,u+p+g],S))}))}(t,x,X);else{if(!h[`${t.key}Height`])return;const o=h[`${g[l].key}Height`];!function(t,l,o){const u=h[`${t.key}Height`],a=i({width:r-v,height:u,...S},{value:t.title,...s,...(null==t?void 0:t.style)||{},...t.titleStyle||{}},{left:v,top:o});l.push(a);const p=c*n.subXCell;t.list.forEach(((h,n)=>{const a=r+n*p,c=i({width:p,height:u,...S},{value:h,...s,...(null==t?void 0:t.style)||{}},{left:a,top:o});l.push(e([a+p,o,a+p,o+u],S)),l.push(c)}))}(t,x,X),x.push(e([v,X+o,a,X+o],S)),x.push(e([r,X,r,X+o],S))}}));const b=x.length>0?new t.Group([...x],{...l,objectCaching:!1}):null;b&&b.sendToBack(),b&&u.value.add(b)}()}export{u as useTop};
@@ -86,7 +86,11 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
86
86
  }>;
87
87
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
88
88
  scope: import("../../shared/types").AnyObject;
89
- annotation: import("../../shared/types").AnyObject;
89
+ annotation: Record<string, import("../annotation-edit/src/type").AnnotationItem>;
90
+ annotationShortcuts: (string | {
91
+ label: string;
92
+ value: string;
93
+ })[] | undefined;
90
94
  consumer: boolean;
91
95
  uuid: string;
92
96
  lifeCycle: Partial<{
@@ -197,7 +201,11 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
197
201
  }>;
198
202
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
199
203
  scope: import("../../shared/types").AnyObject;
200
- annotation: import("../../shared/types").AnyObject;
204
+ annotation: Record<string, import("../annotation-edit/src/type").AnnotationItem>;
205
+ annotationShortcuts: (string | {
206
+ label: string;
207
+ value: string;
208
+ })[] | undefined;
201
209
  consumer: boolean;
202
210
  uuid: string;
203
211
  lifeCycle: Partial<{
@@ -7470,7 +7478,13 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7470
7478
  default: () => {};
7471
7479
  };
7472
7480
  annotation: {
7473
- type: import("vue").PropType<import("../../shared/types").AnyObject>;
7481
+ type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
7482
+ };
7483
+ annotationShortcuts: {
7484
+ type: import("vue").PropType<(string | {
7485
+ label: string;
7486
+ value: string;
7487
+ })[] | undefined>;
7474
7488
  };
7475
7489
  consumer: {
7476
7490
  type: BooleanConstructor;
@@ -7626,7 +7640,13 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7626
7640
  default: () => {};
7627
7641
  };
7628
7642
  annotation: {
7629
- type: import("vue").PropType<import("../../shared/types").AnyObject>;
7643
+ type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
7644
+ };
7645
+ annotationShortcuts: {
7646
+ type: import("vue").PropType<(string | {
7647
+ label: string;
7648
+ value: string;
7649
+ })[] | undefined>;
7630
7650
  };
7631
7651
  consumer: {
7632
7652
  type: BooleanConstructor;
@@ -7820,7 +7840,11 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7820
7840
  }>;
7821
7841
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
7822
7842
  scope: import("../../shared/types").AnyObject;
7823
- annotation: import("../../shared/types").AnyObject;
7843
+ annotation: Record<string, import("../annotation-edit/src/type").AnnotationItem>;
7844
+ annotationShortcuts: (string | {
7845
+ label: string;
7846
+ value: string;
7847
+ })[] | undefined;
7824
7848
  consumer: boolean;
7825
7849
  uuid: string;
7826
7850
  lifeCycle: Partial<{
@@ -8118,7 +8142,13 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
8118
8142
  default: () => {};
8119
8143
  };
8120
8144
  annotation: {
8121
- type: import("vue").PropType<import("../../shared/types").AnyObject>;
8145
+ type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
8146
+ };
8147
+ annotationShortcuts: {
8148
+ type: import("vue").PropType<(string | {
8149
+ label: string;
8150
+ value: string;
8151
+ })[] | undefined>;
8122
8152
  };
8123
8153
  consumer: {
8124
8154
  type: BooleanConstructor;
@@ -8383,7 +8413,11 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
8383
8413
  }>;
8384
8414
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
8385
8415
  scope: import("../../shared/types").AnyObject;
8386
- annotation: import("../../shared/types").AnyObject;
8416
+ annotation: Record<string, import("../annotation-edit/src/type").AnnotationItem>;
8417
+ annotationShortcuts: (string | {
8418
+ label: string;
8419
+ value: string;
8420
+ })[] | undefined;
8387
8421
  consumer: boolean;
8388
8422
  uuid: string;
8389
8423
  lifeCycle: Partial<{
@@ -8485,7 +8519,11 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
8485
8519
  }>;
8486
8520
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
8487
8521
  scope: import("../../shared/types").AnyObject;
8488
- annotation: import("../../shared/types").AnyObject;
8522
+ annotation: Record<string, import("../annotation-edit/src/type").AnnotationItem>;
8523
+ annotationShortcuts: (string | {
8524
+ label: string;
8525
+ value: string;
8526
+ })[] | undefined;
8489
8527
  consumer: boolean;
8490
8528
  uuid: string;
8491
8529
  lifeCycle: Partial<{
@@ -13853,7 +13891,13 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
13853
13891
  default: () => {};
13854
13892
  };
13855
13893
  annotation: {
13856
- type: import("vue").PropType<import("../../shared/types").AnyObject>;
13894
+ type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
13895
+ };
13896
+ annotationShortcuts: {
13897
+ type: import("vue").PropType<(string | {
13898
+ label: string;
13899
+ value: string;
13900
+ })[] | undefined>;
13857
13901
  };
13858
13902
  consumer: {
13859
13903
  type: BooleanConstructor;
@@ -14009,7 +14053,13 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14009
14053
  default: () => {};
14010
14054
  };
14011
14055
  annotation: {
14012
- type: import("vue").PropType<import("../../shared/types").AnyObject>;
14056
+ type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
14057
+ };
14058
+ annotationShortcuts: {
14059
+ type: import("vue").PropType<(string | {
14060
+ label: string;
14061
+ value: string;
14062
+ })[] | undefined>;
14013
14063
  };
14014
14064
  consumer: {
14015
14065
  type: BooleanConstructor;
@@ -14203,7 +14253,11 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14203
14253
  }>;
14204
14254
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
14205
14255
  scope: import("../../shared/types").AnyObject;
14206
- annotation: import("../../shared/types").AnyObject;
14256
+ annotation: Record<string, import("../annotation-edit/src/type").AnnotationItem>;
14257
+ annotationShortcuts: (string | {
14258
+ label: string;
14259
+ value: string;
14260
+ })[] | undefined;
14207
14261
  consumer: boolean;
14208
14262
  uuid: string;
14209
14263
  lifeCycle: Partial<{
@@ -14501,7 +14555,13 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14501
14555
  default: () => {};
14502
14556
  };
14503
14557
  annotation: {
14504
- type: import("vue").PropType<import("../../shared/types").AnyObject>;
14558
+ type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
14559
+ };
14560
+ annotationShortcuts: {
14561
+ type: import("vue").PropType<(string | {
14562
+ label: string;
14563
+ value: string;
14564
+ })[] | undefined>;
14505
14565
  };
14506
14566
  consumer: {
14507
14567
  type: BooleanConstructor;
@@ -14656,7 +14716,11 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14656
14716
  }>;
14657
14717
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
14658
14718
  scope: import("../../shared/types").AnyObject;
14659
- annotation: import("../../shared/types").AnyObject;
14719
+ annotation: Record<string, import("../annotation-edit/src/type").AnnotationItem>;
14720
+ annotationShortcuts: (string | {
14721
+ label: string;
14722
+ value: string;
14723
+ })[] | undefined;
14660
14724
  consumer: boolean;
14661
14725
  uuid: string;
14662
14726
  lifeCycle: Partial<{
@@ -14929,7 +14993,11 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14929
14993
  }>;
14930
14994
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
14931
14995
  scope: import("../../shared/types").AnyObject;
14932
- annotation: import("../../shared/types").AnyObject;
14996
+ annotation: Record<string, import("../annotation-edit/src/type").AnnotationItem>;
14997
+ annotationShortcuts: (string | {
14998
+ label: string;
14999
+ value: string;
15000
+ })[] | undefined;
14933
15001
  consumer: boolean;
14934
15002
  uuid: string;
14935
15003
  lifeCycle: Partial<{
@@ -89,7 +89,11 @@ declare const _default: import("vue").DefineComponent<{
89
89
  }>;
90
90
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
91
91
  scope: import("../../../shared/types").AnyObject;
92
- annotation: import("../../../shared/types").AnyObject;
92
+ annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
93
+ annotationShortcuts: (string | {
94
+ label: string;
95
+ value: string;
96
+ })[] | undefined;
93
97
  consumer: boolean;
94
98
  uuid: string;
95
99
  lifeCycle: Partial<{
@@ -200,7 +204,11 @@ declare const _default: import("vue").DefineComponent<{
200
204
  }>;
201
205
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
202
206
  scope: import("../../../shared/types").AnyObject;
203
- annotation: import("../../../shared/types").AnyObject;
207
+ annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
208
+ annotationShortcuts: (string | {
209
+ label: string;
210
+ value: string;
211
+ })[] | undefined;
204
212
  consumer: boolean;
205
213
  uuid: string;
206
214
  lifeCycle: Partial<{
@@ -7473,7 +7481,13 @@ declare const _default: import("vue").DefineComponent<{
7473
7481
  default: () => {};
7474
7482
  };
7475
7483
  annotation: {
7476
- type: PropType<import("../../../shared/types").AnyObject>;
7484
+ type: PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
7485
+ };
7486
+ annotationShortcuts: {
7487
+ type: PropType<(string | {
7488
+ label: string;
7489
+ value: string;
7490
+ })[] | undefined>;
7477
7491
  };
7478
7492
  consumer: {
7479
7493
  type: BooleanConstructor;
@@ -7629,7 +7643,13 @@ declare const _default: import("vue").DefineComponent<{
7629
7643
  default: () => {};
7630
7644
  };
7631
7645
  annotation: {
7632
- type: PropType<import("../../../shared/types").AnyObject>;
7646
+ type: PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
7647
+ };
7648
+ annotationShortcuts: {
7649
+ type: PropType<(string | {
7650
+ label: string;
7651
+ value: string;
7652
+ })[] | undefined>;
7633
7653
  };
7634
7654
  consumer: {
7635
7655
  type: BooleanConstructor;
@@ -7823,7 +7843,11 @@ declare const _default: import("vue").DefineComponent<{
7823
7843
  }>;
7824
7844
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
7825
7845
  scope: import("../../../shared/types").AnyObject;
7826
- annotation: import("../../../shared/types").AnyObject;
7846
+ annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
7847
+ annotationShortcuts: (string | {
7848
+ label: string;
7849
+ value: string;
7850
+ })[] | undefined;
7827
7851
  consumer: boolean;
7828
7852
  uuid: string;
7829
7853
  lifeCycle: Partial<{
@@ -8121,7 +8145,13 @@ declare const _default: import("vue").DefineComponent<{
8121
8145
  default: () => {};
8122
8146
  };
8123
8147
  annotation: {
8124
- type: PropType<import("../../../shared/types").AnyObject>;
8148
+ type: PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
8149
+ };
8150
+ annotationShortcuts: {
8151
+ type: PropType<(string | {
8152
+ label: string;
8153
+ value: string;
8154
+ })[] | undefined>;
8125
8155
  };
8126
8156
  consumer: {
8127
8157
  type: BooleanConstructor;
@@ -8386,7 +8416,11 @@ declare const _default: import("vue").DefineComponent<{
8386
8416
  }>;
8387
8417
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
8388
8418
  scope: import("../../../shared/types").AnyObject;
8389
- annotation: import("../../../shared/types").AnyObject;
8419
+ annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
8420
+ annotationShortcuts: (string | {
8421
+ label: string;
8422
+ value: string;
8423
+ })[] | undefined;
8390
8424
  consumer: boolean;
8391
8425
  uuid: string;
8392
8426
  lifeCycle: Partial<{
@@ -8488,7 +8522,11 @@ declare const _default: import("vue").DefineComponent<{
8488
8522
  }>;
8489
8523
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
8490
8524
  scope: import("../../../shared/types").AnyObject;
8491
- annotation: import("../../../shared/types").AnyObject;
8525
+ annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
8526
+ annotationShortcuts: (string | {
8527
+ label: string;
8528
+ value: string;
8529
+ })[] | undefined;
8492
8530
  consumer: boolean;
8493
8531
  uuid: string;
8494
8532
  lifeCycle: Partial<{
@@ -13856,7 +13894,13 @@ declare const _default: import("vue").DefineComponent<{
13856
13894
  default: () => {};
13857
13895
  };
13858
13896
  annotation: {
13859
- type: PropType<import("../../../shared/types").AnyObject>;
13897
+ type: PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
13898
+ };
13899
+ annotationShortcuts: {
13900
+ type: PropType<(string | {
13901
+ label: string;
13902
+ value: string;
13903
+ })[] | undefined>;
13860
13904
  };
13861
13905
  consumer: {
13862
13906
  type: BooleanConstructor;
@@ -14012,7 +14056,13 @@ declare const _default: import("vue").DefineComponent<{
14012
14056
  default: () => {};
14013
14057
  };
14014
14058
  annotation: {
14015
- type: PropType<import("../../../shared/types").AnyObject>;
14059
+ type: PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
14060
+ };
14061
+ annotationShortcuts: {
14062
+ type: PropType<(string | {
14063
+ label: string;
14064
+ value: string;
14065
+ })[] | undefined>;
14016
14066
  };
14017
14067
  consumer: {
14018
14068
  type: BooleanConstructor;
@@ -14206,7 +14256,11 @@ declare const _default: import("vue").DefineComponent<{
14206
14256
  }>;
14207
14257
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
14208
14258
  scope: import("../../../shared/types").AnyObject;
14209
- annotation: import("../../../shared/types").AnyObject;
14259
+ annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
14260
+ annotationShortcuts: (string | {
14261
+ label: string;
14262
+ value: string;
14263
+ })[] | undefined;
14210
14264
  consumer: boolean;
14211
14265
  uuid: string;
14212
14266
  lifeCycle: Partial<{
@@ -14504,7 +14558,13 @@ declare const _default: import("vue").DefineComponent<{
14504
14558
  default: () => {};
14505
14559
  };
14506
14560
  annotation: {
14507
- type: PropType<import("../../../shared/types").AnyObject>;
14561
+ type: PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
14562
+ };
14563
+ annotationShortcuts: {
14564
+ type: PropType<(string | {
14565
+ label: string;
14566
+ value: string;
14567
+ })[] | undefined>;
14508
14568
  };
14509
14569
  consumer: {
14510
14570
  type: BooleanConstructor;
@@ -14659,7 +14719,11 @@ declare const _default: import("vue").DefineComponent<{
14659
14719
  }>;
14660
14720
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
14661
14721
  scope: import("../../../shared/types").AnyObject;
14662
- annotation: import("../../../shared/types").AnyObject;
14722
+ annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
14723
+ annotationShortcuts: (string | {
14724
+ label: string;
14725
+ value: string;
14726
+ })[] | undefined;
14663
14727
  consumer: boolean;
14664
14728
  uuid: string;
14665
14729
  lifeCycle: Partial<{
@@ -14932,7 +14996,11 @@ declare const _default: import("vue").DefineComponent<{
14932
14996
  }>;
14933
14997
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
14934
14998
  scope: import("../../../shared/types").AnyObject;
14935
- annotation: import("../../../shared/types").AnyObject;
14999
+ annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
15000
+ annotationShortcuts: (string | {
15001
+ label: string;
15002
+ value: string;
15003
+ })[] | undefined;
14936
15004
  consumer: boolean;
14937
15005
  uuid: string;
14938
15006
  lifeCycle: Partial<{
@@ -119,7 +119,13 @@ declare const _default: import("vue").DefineComponent<{}, {
119
119
  default: () => {};
120
120
  };
121
121
  annotation: {
122
- type: import("vue").PropType<AnyObject>;
122
+ type: import("vue").PropType<Record<string, import("../../../annotation-edit/src/type").AnnotationItem>>;
123
+ };
124
+ annotationShortcuts: {
125
+ type: import("vue").PropType<(string | {
126
+ label: string;
127
+ value: string;
128
+ })[] | undefined>;
123
129
  };
124
130
  consumer: {
125
131
  type: BooleanConstructor;
@@ -275,7 +281,13 @@ declare const _default: import("vue").DefineComponent<{}, {
275
281
  default: () => {};
276
282
  };
277
283
  annotation: {
278
- type: import("vue").PropType<AnyObject>;
284
+ type: import("vue").PropType<Record<string, import("../../../annotation-edit/src/type").AnnotationItem>>;
285
+ };
286
+ annotationShortcuts: {
287
+ type: import("vue").PropType<(string | {
288
+ label: string;
289
+ value: string;
290
+ })[] | undefined>;
279
291
  };
280
292
  consumer: {
281
293
  type: BooleanConstructor;
@@ -469,7 +481,11 @@ declare const _default: import("vue").DefineComponent<{}, {
469
481
  }>;
470
482
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
471
483
  scope: AnyObject;
472
- annotation: AnyObject;
484
+ annotation: Record<string, import("../../../annotation-edit/src/type").AnnotationItem>;
485
+ annotationShortcuts: (string | {
486
+ label: string;
487
+ value: string;
488
+ })[] | undefined;
473
489
  consumer: boolean;
474
490
  uuid: string;
475
491
  lifeCycle: Partial<{
@@ -767,7 +783,13 @@ declare const _default: import("vue").DefineComponent<{}, {
767
783
  default: () => {};
768
784
  };
769
785
  annotation: {
770
- type: import("vue").PropType<AnyObject>;
786
+ type: import("vue").PropType<Record<string, import("../../../annotation-edit/src/type").AnnotationItem>>;
787
+ };
788
+ annotationShortcuts: {
789
+ type: import("vue").PropType<(string | {
790
+ label: string;
791
+ value: string;
792
+ })[] | undefined>;
771
793
  };
772
794
  consumer: {
773
795
  type: BooleanConstructor;