cnhis-design-vue 3.1.56-release.0 → 3.1.56-release.2

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 (135) 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/big-table/index.js +1 -1
  18. package/es/components/callback/src/components/render/popupMaps.d.ts +26 -4
  19. package/es/components/classification/index.d.ts +20 -7
  20. package/es/components/classification/src/components/search-filter/index.vue.d.ts +14 -0
  21. package/es/components/classification/src/components/set-classification/index.vue.d.ts +20 -7
  22. package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
  23. package/es/components/classification/src/components/table-modal/index.vue.d.ts +6 -5
  24. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
  25. package/es/components/classification/src/index.vue.d.ts +20 -7
  26. package/es/components/classification/src/index.vue2.js +1 -1
  27. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  28. package/es/components/fabric-chart/index.d.ts +4 -2
  29. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +4 -2
  30. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  31. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  32. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  33. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  35. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  36. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  37. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  38. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  39. package/es/components/form-config/index.d.ts +82 -14
  40. package/es/components/form-config/src/FormConfig.vue.d.ts +82 -14
  41. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +26 -4
  42. package/es/components/form-config/src/components/FormConfigCreator.vue2.js +1 -1
  43. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +41 -7
  44. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
  45. package/es/components/form-render/index.d.ts +26 -4
  46. package/es/components/form-render/src/FormRender.vue.d.ts +27 -4
  47. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  48. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +26 -4
  49. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  50. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  51. package/es/components/form-render/src/components/renderer/select.js +1 -1
  52. package/es/components/form-render/src/constants/index.d.ts +1 -0
  53. package/es/components/form-render/src/constants/index.js +1 -1
  54. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +10 -2
  55. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  56. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  57. package/es/components/form-render/src/types/index.d.ts +3 -1
  58. package/es/components/iho-table/index.js +1 -1
  59. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -1
  60. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
  61. package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +1 -1
  62. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -1
  63. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -1
  64. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +1 -1
  65. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
  66. package/es/components/iho-table/src/plugins/defaultValuePlugin.js +1 -1
  67. package/es/components/iho-table/src/plugins/headerPlugin.js +1 -1
  68. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  69. package/es/components/iho-table/src/utils/index.js +1 -1
  70. package/es/components/index.css +1 -1
  71. package/es/components/index.js +1 -1
  72. package/es/components/info-header/index.d.ts +77 -13
  73. package/es/components/info-header/src/InfoHeader.vue.d.ts +77 -13
  74. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +5 -1
  75. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +5 -1
  76. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +31 -5
  77. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +26 -4
  78. package/es/components/recommend-search/index.d.ts +8 -8
  79. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +8 -8
  80. package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
  81. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -3
  82. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +3 -3
  83. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  84. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  85. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  86. package/es/components/shortcut-setter/index.d.ts +26 -4
  87. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +26 -4
  88. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
  89. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +14 -0
  90. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +14 -0
  91. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +14 -0
  92. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +14 -0
  93. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +15 -0
  94. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  95. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +14 -0
  96. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  97. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +15 -0
  98. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +15 -0
  99. package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +1 -1
  100. package/es/env.d.ts +25 -25
  101. package/es/shared/assets/img/failure.png.js +1 -1
  102. package/es/shared/assets/img/no-permission.png.js +1 -1
  103. package/es/shared/assets/img/nodata.png.js +1 -1
  104. package/es/shared/assets/img/notfound.png.js +1 -1
  105. package/es/shared/assets/img/qr.png.js +1 -1
  106. package/es/shared/assets/img/success.png.js +1 -1
  107. package/es/shared/assets/img/video.png.js +1 -1
  108. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  109. package/es/shared/assets/img/xb_big.png.js +1 -1
  110. package/es/shared/assets/img/xb_small.png.js +1 -1
  111. package/es/shared/components/CancelRadio/index.js +1 -1
  112. package/es/shared/components/InputNumberSlash/index.js +1 -1
  113. package/es/shared/components/SelectPage/index.js +1 -1
  114. package/es/shared/components/SlotRender/index.js +1 -1
  115. package/es/shared/components/SvgIcon/index.js +1 -1
  116. package/es/shared/components/TextOverTooltip/index.js +1 -1
  117. package/es/shared/components/VueDraggable/index.js +1 -1
  118. package/es/shared/components/no-data/index.js +1 -1
  119. package/es/shared/package.json.js +1 -1
  120. package/es/shared/utils/business.js +1 -1
  121. package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -0
  122. package/es/shared/utils/tapable/AsyncSeriesBailHook.js +1 -0
  123. package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +1 -0
  124. package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +1 -0
  125. package/es/shared/utils/tapable/SyncBailHook.js +1 -0
  126. package/es/shared/utils/tapable/SyncLoopHook.js +1 -0
  127. package/es/shared/utils/vexutils.js +1 -1
  128. package/package.json +2 -2
  129. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  130. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  131. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  132. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  133. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  134. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  135. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -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;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as i,openBlock as t,createBlock as r,unref as o,withCtx as s,createVNode as d,createTextVNode as n}from"vue";import{pick as a}from"lodash-es";import{NButtonGroup as m,NPopconfirm as l,NButton as p}from"naive-ui";import{EditAbleField as c}from"../constants/index.js";import{useConfigurationField as u}from"../hooks/useConfigurationField.js";import"../../../grid/index.js";import"../../../big-table/index.js";import"../../../field-set/index.js";import"../../../button-print/index.js";import"../../../select-person/index.js";import"../../../select-label/index.js";import"../../../map/index.js";import"../../../vod-chunk-upload/index.js";import"../../../scale-view/index.js";import"../../../info-header/index.js";import"../../../time-line/index.js";import"../../../base-search/index.js";import"../../../quick-search/index.js";import"../../../classification/index.js";import"../../../bpmn-workflow/index.js";import"../../../steps-wheel/index.js";import"../../../editor/index.js";import x from"../../../form-render/index.js";import"../../../fabric-chart/index.js";import"../../../shortcut-provider/index.js";import"../../../shortcut-setter/index.js";import"../../index.js";import"../../../iho-table/index.js";import"../../../keyboard/index.js";import"../../../search-cascader/index.js";import"../../../recommend-search/index.js";import"../../../date-picker/index.js";import"../../../time-picker/index.js";import"../../../config-provider/index.js";import"../../../picture-clipper/index.js";import"../../../table-export-field/index.js";import"../../../expand-field/index.js";import"../../../biunique-chat/index.js";import"../../../callback/index.js";import"../../../slider-tree/index.js";import"../../../body-select/index.js";import"../../../../shared/utils/index.js";import"axios";import"../../../card-reader-sdk/src/utils/index.js";import"../../../card-reader-sdk/src/cardReaderSDK.js";import"../../../table-filter/src/components/render-widget/helpers/presetValToTimestamp.js";import"../../../table-filter/src/components/render-widget/enums.js";import"@vueuse/core";import"date-fns";import"@vue/shared";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"../../../audio-sdk/src/audioSDK.js";var j=e({__name:"FormConfigCreator",emits:{submit:e=>e},setup(e,{emit:j}){const f=u().generateFieldListByKeys([c.NAME,c.LAYOUT_WIDTH_ENUM,c.NOTES,c.DEFAULT_EXPAND,c.FOLD]),h=i(),b=i(),k={defaultExpand:!0,fold:!0,layoutWidthEnum:"ALL_LINE"};async function w(e,i,t){if(!t)return;await t.validate();const r=t.getFormValues();j("submit",{layoutWidthEnum:"ALL_LINE",...r,type:e,key:r.name,...i,__new:!0})}return(e,i)=>(t(),r(o(m),{size:"small"},{default:s((()=>[d(o(l),{width:"200px","show-icon":!1,"show-arrow":!1,onPositiveClick:i[0]||(i[0]=e=>w("NEWLINE",{},b.value))},{trigger:s((()=>[d(o(p),null,{default:s((()=>[n("新建分行符")])),_:1})])),default:s((()=>[d(o(x),{column:12,ref_key:"lineBreakFormRef",ref:b,"initial-data":o(a)(k,["layoutWidthEnum"]),size:"small","label-width":"auto","label-placement":"left",fieldList:o(f).slice(0,2)},null,8,["initial-data","fieldList"])])),_:1}),d(o(l),{width:"300px","show-icon":!1,"show-arrow":!1,onPositiveClick:i[1]||(i[1]=e=>w("LINE_BAR",{children:[]},h.value))},{trigger:s((()=>[d(o(p),null,{default:s((()=>[n("新建分线栏")])),_:1})])),default:s((()=>[d(o(x),{column:12,ref_key:"linebarFormRef",ref:h,"initial-data":k,size:"small","label-width":"auto","label-placement":"left",fieldList:o(f)},null,8,["fieldList"])])),_:1})])),_:1}))}});export{j as default};
1
+ import{defineComponent as e,ref as i,openBlock as t,createBlock as l,unref as a,withCtx as o,createVNode as r,createTextVNode as n}from"vue";import{pick as s}from"lodash-es";import{NButtonGroup as m,NPopconfirm as u,NButton as d}from"naive-ui";import{EditAbleField as f}from"../constants/index.js";import{useConfigurationField as _}from"../hooks/useConfigurationField.js";import"../../../index.js";import L from"../../../form-render/index.js";var c=e({__name:"FormConfigCreator",emits:{submit:e=>e},setup(e,{emit:c}){const p=_().generateFieldListByKeys([f.NAME,f.LAYOUT_WIDTH_ENUM,f.NOTES,f.DEFAULT_EXPAND,f.FOLD]),h=i(),E=i(),w={defaultExpand:!0,fold:!0,layoutWidthEnum:"ALL_LINE"};async function y(e,i,t){if(!t)return;await t.validate();const l=t.getFormValues();c("submit",{layoutWidthEnum:"ALL_LINE",...l,type:e,key:l.name,...i,__new:!0})}return(e,i)=>(t(),l(a(m),{size:"small"},{default:o((()=>[r(a(u),{width:"200px","show-icon":!1,"show-arrow":!1,onPositiveClick:i[0]||(i[0]=e=>y("NEWLINE",{},E.value))},{trigger:o((()=>[r(a(d),null,{default:o((()=>[n("新建分行符")])),_:1})])),default:o((()=>[r(a(L),{column:12,ref_key:"lineBreakFormRef",ref:E,"initial-data":a(s)(w,["layoutWidthEnum"]),size:"small","label-width":"auto","label-placement":"left",fieldList:a(p).slice(0,2)},null,8,["initial-data","fieldList"])])),_:1}),r(a(u),{width:"300px","show-icon":!1,"show-arrow":!1,onPositiveClick:i[1]||(i[1]=e=>y("LINE_BAR",{children:[]},h.value))},{trigger:o((()=>[r(a(d),null,{default:o((()=>[n("新建分线栏")])),_:1})])),default:o((()=>[r(a(L),{column:12,ref_key:"linebarFormRef",ref:h,"initial-data":w,size:"small","label-width":"auto","label-placement":"left",fieldList:a(p)},null,8,["fieldList"])])),_:1})])),_:1}))}});export{c as default};
@@ -77,7 +77,11 @@ declare const _default: import("vue").DefineComponent<{
77
77
  }>;
78
78
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
79
79
  scope: import("../../../../shared/types").AnyObject;
80
- annotation: import("../../../../shared/types").AnyObject;
80
+ annotation: Record<string, import("../../../annotation-edit/src/type").AnnotationItem>;
81
+ annotationShortcuts: (string | {
82
+ label: string;
83
+ value: string;
84
+ })[] | undefined;
81
85
  consumer: boolean;
82
86
  uuid: string;
83
87
  lifeCycle: Partial<{
@@ -179,7 +183,11 @@ declare const _default: import("vue").DefineComponent<{
179
183
  }>;
180
184
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
181
185
  scope: import("../../../../shared/types").AnyObject;
182
- annotation: import("../../../../shared/types").AnyObject;
186
+ annotation: Record<string, import("../../../annotation-edit/src/type").AnnotationItem>;
187
+ annotationShortcuts: (string | {
188
+ label: string;
189
+ value: string;
190
+ })[] | undefined;
183
191
  consumer: boolean;
184
192
  uuid: string;
185
193
  lifeCycle: Partial<{
@@ -5547,7 +5555,13 @@ declare const _default: import("vue").DefineComponent<{
5547
5555
  default: () => {};
5548
5556
  };
5549
5557
  annotation: {
5550
- type: PropType<import("../../../../shared/types").AnyObject>;
5558
+ type: PropType<Record<string, import("../../../annotation-edit/src/type").AnnotationItem>>;
5559
+ };
5560
+ annotationShortcuts: {
5561
+ type: PropType<(string | {
5562
+ label: string;
5563
+ value: string;
5564
+ })[] | undefined>;
5551
5565
  };
5552
5566
  consumer: {
5553
5567
  type: BooleanConstructor;
@@ -5703,7 +5717,13 @@ declare const _default: import("vue").DefineComponent<{
5703
5717
  default: () => {};
5704
5718
  };
5705
5719
  annotation: {
5706
- type: PropType<import("../../../../shared/types").AnyObject>;
5720
+ type: PropType<Record<string, import("../../../annotation-edit/src/type").AnnotationItem>>;
5721
+ };
5722
+ annotationShortcuts: {
5723
+ type: PropType<(string | {
5724
+ label: string;
5725
+ value: string;
5726
+ })[] | undefined>;
5707
5727
  };
5708
5728
  consumer: {
5709
5729
  type: BooleanConstructor;
@@ -5897,7 +5917,11 @@ declare const _default: import("vue").DefineComponent<{
5897
5917
  }>;
5898
5918
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
5899
5919
  scope: import("../../../../shared/types").AnyObject;
5900
- annotation: import("../../../../shared/types").AnyObject;
5920
+ annotation: Record<string, import("../../../annotation-edit/src/type").AnnotationItem>;
5921
+ annotationShortcuts: (string | {
5922
+ label: string;
5923
+ value: string;
5924
+ })[] | undefined;
5901
5925
  consumer: boolean;
5902
5926
  uuid: string;
5903
5927
  lifeCycle: Partial<{
@@ -6195,7 +6219,13 @@ declare const _default: import("vue").DefineComponent<{
6195
6219
  default: () => {};
6196
6220
  };
6197
6221
  annotation: {
6198
- type: PropType<import("../../../../shared/types").AnyObject>;
6222
+ type: PropType<Record<string, import("../../../annotation-edit/src/type").AnnotationItem>>;
6223
+ };
6224
+ annotationShortcuts: {
6225
+ type: PropType<(string | {
6226
+ label: string;
6227
+ value: string;
6228
+ })[] | undefined>;
6199
6229
  };
6200
6230
  consumer: {
6201
6231
  type: BooleanConstructor;
@@ -6350,7 +6380,11 @@ declare const _default: import("vue").DefineComponent<{
6350
6380
  }>;
6351
6381
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
6352
6382
  scope: import("../../../../shared/types").AnyObject;
6353
- annotation: import("../../../../shared/types").AnyObject;
6383
+ annotation: Record<string, import("../../../annotation-edit/src/type").AnnotationItem>;
6384
+ annotationShortcuts: (string | {
6385
+ label: string;
6386
+ value: string;
6387
+ })[] | undefined;
6354
6388
  consumer: boolean;
6355
6389
  uuid: string;
6356
6390
  lifeCycle: Partial<{