cnhis-design-vue 3.1.51-beta.0 → 3.1.51-release.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +8 -14
  3. package/es/components/base-search/src/index.vue.d.ts +8 -14
  4. package/es/components/base-search/src/index.vue2.js +1 -1
  5. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  6. package/es/components/expand-field/src/index.vue2.js +1 -1
  7. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  8. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  9. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  10. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  11. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  12. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +0 -1
  13. package/es/components/fabric-chart/src/hooks/useCommon.js +1 -1
  14. package/es/components/form-config/index.d.ts +25 -174
  15. package/es/components/form-config/src/FormConfig.vue.d.ts +26 -175
  16. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  17. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -4
  18. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +10 -13
  19. package/es/components/form-config/src/constants/index.d.ts +1 -19
  20. package/es/components/form-config/src/constants/index.js +1 -1
  21. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
  22. package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
  23. package/es/components/form-config/src/types/index.d.ts +3 -7
  24. package/es/components/form-config/style/index.css +1 -1
  25. package/es/components/form-render/index.d.ts +4 -4
  26. package/es/components/form-render/src/FormRender.vue.d.ts +2 -2
  27. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -4
  28. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  29. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
  30. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  31. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  32. package/es/components/form-render/src/types/fieldItem.d.ts +1 -2
  33. package/es/components/form-render/src/types/index.d.ts +19 -1
  34. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  35. package/es/components/iho-table/src/types/index.d.ts +1 -2
  36. package/es/components/index.css +1 -1
  37. package/es/components/info-header/index.d.ts +13 -13
  38. package/es/components/info-header/src/InfoHeader.vue.d.ts +13 -13
  39. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -1
  40. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -1
  41. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +5 -5
  42. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -4
  43. package/es/components/quick-search/index.d.ts +8 -13
  44. package/es/components/quick-search/src/index.vue.d.ts +8 -13
  45. package/es/components/quick-search/src/index.vue2.js +1 -1
  46. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  47. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  48. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  49. package/es/components/shortcut-setter/index.d.ts +5 -6
  50. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +5 -6
  51. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
  52. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +1 -56
  53. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  54. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +1 -4
  55. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  56. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -55
  57. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  58. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +0 -2
  59. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  60. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +7 -1
  61. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  62. package/es/components/table-filter/src/types/index.d.ts +0 -6
  63. package/es/env.d.ts +25 -25
  64. package/es/shared/assets/img/failure.png.js +1 -1
  65. package/es/shared/assets/img/no-permission.png.js +1 -1
  66. package/es/shared/assets/img/nodata.png.js +1 -1
  67. package/es/shared/assets/img/notfound.png.js +1 -1
  68. package/es/shared/assets/img/qr.png.js +1 -1
  69. package/es/shared/assets/img/success.png.js +1 -1
  70. package/es/shared/assets/img/video.png.js +1 -1
  71. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  72. package/es/shared/assets/img/xb_big.png.js +1 -1
  73. package/es/shared/assets/img/xb_small.png.js +1 -1
  74. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +1 -19
  75. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  76. package/es/shared/package.json.js +1 -1
  77. package/es/shared/types/business.d.ts +0 -20
  78. package/es/shared/utils/business.d.ts +2 -1
  79. package/es/shared/utils/index.d.ts +3 -3
  80. package/package.json +2 -2
  81. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  82. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  83. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  84. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  85. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +0 -121
  86. package/es/components/form-config/src/components/FormConfigEventSetting.vue.js +0 -1
  87. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +0 -1
  88. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +0 -58
  89. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.js +0 -1
  90. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +0 -1
  91. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  92. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  93. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1 +1 @@
1
- import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{drawPoint as e,drawText as i}from"../useDraw.js";import{useBirthProcessCumputedPoint as o}from"../useCumputedPoint.js";import{bus as n}from"../useEvent.js";import{useCommon as r}from"../useCommon.js";import"vue";import{getIndex as a}from"../../utils/index.js";import{cloneDeep as l}from"lodash-es";import"date-fns";import"../temperature/useShadow.js";import{OTHER_MENU as s}from"../../constants/index.js";import"naive-ui";function d(d,c,f,u,h,m,g,p,v){const{cumputedX:x,getXValue:k}=o(c),{getEqualXTypes:y,handleAddPrevent:X,isGridLimit:b}=r(d,f,c),{other:P,yCellHeight:w,xCellWidth:j,endX:C,originX:E,originY:z,endY:A,markHeight:L,event:S,topGridYCellHeight:I}=c,H=new Map,M=l(P);function T(){var o;if(!(null==(o=null==M?void 0:M.horizontal)?void 0:o.length))return;const n="horizontal";H.set(n,[]);const{horizontal:r}=M;let a=z+w/2;r.forEach(((o,r)=>{const{title:l,type:s,pointAttr:c={},textStyle:f={},data:u}=o;let h=null;u.forEach(((o,u)=>{const{time:m,value:g}=o,p=x(m);if(!B(p))return;const v=e(s,{...c,left:p,top:a}),k=p+v.width/2+2,y=i([k,a],{value:g,...f,originX:"left"}),X=new t.Group([v,y],{lockMovementY:!0,objectCaching:!1,hasControls:!1,hasBorders:!1,hoverCursor:"pointer"});Object.assign(X,{originLeft:p,iconHalfWidth:v.width/2,origin:{type:"other",key:n,dataIndex:r,index:u,data:o,title:l},limitX:{x1:E,x2:C-X.width}}),h&&(X.limitX.x1=h.left,h.limitX.x2=X.left,X.prevPoint=h,h.nextPoint=X),h=X,O(X),H.get(n).push(X),d.value.add(X)})),a+=w}))}function W(){var t;if(!(null==(t=null==M?void 0:M.vertical)?void 0:t.length))return;const i="vertical";H.set(i,[]);const{vertical:o}=M;o.forEach(((t,o)=>{const{textStyle:n={},data:r,time:a}=t,l=x(a);if(!B(l))return;let s=z+w/2;r.forEach(((t,r)=>{const a=e(String(t),{...n,lockMovementY:!0,left:l,originX:"left",top:s,origin:{type:"other",key:i,dataIndex:o,index:r,data:{value:t}}});s+=w,O(a),H.get(i).push(a),d.value.add(a)}));const c=H.get(i).filter((t=>t.origin.dataIndex===o)),f=Math.max(...c.map((t=>t.width))),u=l>C-f;c.forEach(((t,e,i)=>{t.siblingPoints=i.filter((e=>e.origin.index!==t.origin.index)),t.maxTextWidth=f,u&&t.setCoords().set("originX","right")}))}))}function Y(t,e="add"){const{dataIndex:i,data:o,index:n,key:r}=t,l=M[r],s=["mark"].includes(r)?l.dataList[i]:l[i];switch(e){case"remove":s.data.splice(n,1);break;case"change":s.data[n]=o;break;default:{const t=Array.isArray(o)?o[0].time:o.time,e=a(t,s.data),i=Array.isArray(o)?o:[o];s.data.splice(e,0,...i);break}}V(t)}function V(t){var e;const{key:i}=t;switch(null==(e=d.value)||e.remove(...H.get(i)),H.delete(i),i){case"horizontal":T();break;case"vertical":W();break;case"mark":G()}}function G(){if(!(null==P?void 0:P.mark)||!L)return;const{title:t,titleStyle:o,pointAttr:n,dataList:r}=P.mark,a=i([E-5,A+L/2],{value:t,...o,originX:"right"});d.value.add(a);const l=A+L,s=[];r.forEach((t=>{const{time:i,list:o=[]}=t,r=x(i);if(!B(r))return;let a=A;o.forEach((t=>{let i=!1;const o=e("circleAndText",{...n,text:t.text,left:r,top:a,origin:{data:t,key:"mark",type:"other"}}),c=o.height;a+c<=l&&a>=A?(o.set("top",a+c/2),a+=c):(i||(a=A,i=!0),o.set("top",a-c/2),a-=c),s.push(o),O(o),d.value.add(o)}))})),function(t){const e=t=>{var e,i;return null==(i=null==(e=t.origin)?void 0:e.data)?void 0:i.isStart},i=t.find((t=>e(t))),o=t.find((t=>!e(t)&&t.left>i.left)),n=t.filter((t=>!e(t)));t.forEach((t=>{const r={x1:E,x2:C};e(t)?(r.x2=o.left,t.otherPoints=n):(r.x1=i.left,t.startPoint=i),t.limitX=r}))}(s)}function O(t){if(S.hovered&&(t.on("mouseover",(()=>{q(t)})),t.on("mouseout",(()=>{u.show=!1}))),!S.evented)return;const{key:e}=t.origin,i=["mark","horizontal"].includes(e),o=["mark","vertical"].includes(e);t.on("moving",(()=>{i?function(t){t.setCoords(),t.left<t.limitX.x1&&t.set("left",t.limitX.x1);t.left>t.limitX.x2&&t.set("left",t.limitX.x2);if("mark"===t.origin.key){t.top<z&&t.set("top",z);const e=A+L-t.height/2;t.top>e&&t.set("top",e)}t.originLeft&&t.iconHalfWidth&&(t.originLeft=t.left+t.iconHalfWidth)}(t):(m(t),function(t){const e=t.left+t.maxTextWidth>C?"right":"left";t.setCoords().set({originX:e}),t.siblingPoints.forEach((i=>i.setCoords().set({originX:e,left:t.left})))}(t)),S.hovered&&q(t)})),t.on("mouseup",(n=>{var r;if(u.show=!1,1===n.button){i&&function(t){var e,i;if("mark"===t.origin.key){if((null==(i=null==(e=t.origin)?void 0:e.data)?void 0:i.isStart)&&t.otherPoints)t.otherPoints.forEach((e=>{e.limitX.x1=t.left}));else{const e=t.startPoint.otherPoints.map((t=>t.left)),i=Math.min(...e);t.startPoint.limitX.x2=i}return}t.prevPoint&&(t.prevPoint.limitX.x2=t.left);t.nextPoint&&(t.nextPoint.limitX.x1=t.left)}(t);const e=k(null!=(r=t.originLeft)?r:t.left),n={...t.origin,...o?{time:e}:{data:{...t.origin.data,time:e}}};d.value.discardActiveObject(),f("change",n)}3===n.button&&["horizontal","vertical"].includes(e)&&(h.point={x:t.left,y:t.top},h.show=!0,h.target=t,h.list=s.map((t=>({...t,renderItem:()=>t.label}))))}))}function q(t){var e;u.point={x:t.left,y:"mark"===t.origin.key?t.top:t.top+I/2},u.list=[`时间 ${k(null!=(e=t.originLeft)?e:t.left).slice(-5)}`],"mark"===t.origin.key&&u.list.unshift(t.origin.data.name+" "),u.show=!0}function B(t){return t>=E&&t<=C}return function(){var t;if(!(null==(t=null==M?void 0:M.horizontal)?void 0:t.length))return;const{horizontal:i}=M,o=E-5;let n=z+w/2;i.forEach(((t,i)=>{const{title:r,titleStyle:a={},defaultAddValue:l}=t,s=r&&e(r,{...a,originX:"right",left:o,top:n,origin:{defaultAddValue:l,dataIndex:i,type:"other",key:"horizontal",title:r},originLeft:o,originTop:n});var c;(c=s).on("moving",(()=>{c.set("originX","center"),b(c)?q(c):u.show=!1})),c.on("mouseup:before",(t=>{if(u.show=!1,0===t.e.button&&b(c))if(y(H.get("horizontal"),c.left,"key",j).includes(c.origin.key))X("repeat");else{const t={data:{time:k(c.left),value:c.origin.defaultAddValue},...c.origin};f("add",t),Y(t)}!function(t){t.setCoords().set({originX:"right",left:t.originLeft,top:t.originTop})}(c)})),d.value.add(s),n+=w}))}(),T(),W(),G(),n.on((()=>{const t="horizontal",e=g(H.get(t));e.length>0?p((()=>{const i=function(t){const e=t.reduce(((t,e)=>{const{dataIndex:i}=e.origin;return t[i]=t[i]?t[i].concat(e.origin):[e.origin],t}),{});return Object.keys(e).map((t=>{const i=e[t];return M.horizontal[t].data.splice(i[0].index,i.length),i})).flat()}(e);V({key:t}),f("remove",i)})):v()})),{clickMenu:function({item:t,target:e}){if(!e)return;const{type:i}=t,o={...e.origin,type:"other"};f(i,o),"remove"===i&&Y(o,i)}}}export{d as useOther};
1
+ import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{drawPoint as e,drawText as i}from"../useDraw.js";import{useBirthProcessCumputedPoint as o}from"../useCumputedPoint.js";import{bus as n}from"../useEvent.js";import{useCommon as r}from"../useCommon.js";import"vue";import{getIndex as a}from"../../utils/index.js";import{cloneDeep as l}from"lodash-es";import"date-fns";import"../temperature/useShadow.js";import{OTHER_MENU as s}from"../../constants/index.js";import"naive-ui";function d(d,u,c,f,h,m,g,p,v){const{cumputedX:x,getXValue:k}=o(u),{getEqualXTypes:y,handleAddPrevent:X,isGridLimit:b}=r(d,c,u),{other:P,yCellHeight:w,xCellWidth:j,endX:E,originX:z,originY:A,endY:C,markHeight:L,event:S,topGridYCellHeight:I}=u,H=new Map,M=l(P);function Y(){var o;if(!(null==(o=null==M?void 0:M.horizontal)?void 0:o.length))return;const n="horizontal";H.set(n,[]);const{horizontal:r}=M;let a=A+w/2;r.forEach(((o,r)=>{const{title:l,type:s,pointAttr:u={},textStyle:c={},data:f}=o;let h=null;f.forEach(((o,f)=>{const{time:m,value:g}=o,p=x(m);if(!B(p))return;const v=e(s,{...u,left:p,top:a}),k=p+v.width/2+2,y=i([k,a],{value:g,...c,originX:"left"}),X=new t.Group([v,y],{lockMovementY:!0,objectCaching:!1,hasControls:!1,hasBorders:!1,hoverCursor:"pointer"});Object.assign(X,{originLeft:p,iconHalfWidth:v.width/2,origin:{type:"other",key:n,dataIndex:r,index:f,data:o,title:l},limitX:{x1:z,x2:E-X.width}}),h&&(X.limitX.x1=h.left,h.limitX.x2=X.left,X.prevPoint=h,h.nextPoint=X),h=X,O(X),H.get(n).push(X),d.value.add(X)})),a+=w}))}function T(){var t;if(!(null==(t=null==M?void 0:M.vertical)?void 0:t.length))return;const i="vertical";H.set(i,[]);const{vertical:o}=M;o.forEach(((t,o)=>{const{textStyle:n={},data:r,time:a}=t,l=x(a);if(!B(l))return;let s=A+w/2;r.forEach(((t,r)=>{const a=e(String(t),{...n,lockMovementY:!0,left:l,originX:"left",top:s,origin:{type:"other",key:i,dataIndex:o,index:r,data:{value:t}}});s+=w,O(a),H.get(i).push(a),d.value.add(a)})),H.get(i).filter((t=>t.origin.dataIndex===o)).forEach(((t,e,i)=>{t.siblingPoints=i.filter((e=>e.origin.index!==t.origin.index))}))}))}function V(t,e="add"){const{dataIndex:i,data:o,index:n,key:r}=t,l=M[r],s=["mark"].includes(r)?l.dataList[i]:l[i];switch(e){case"remove":s.data.splice(n,1);break;case"change":s.data[n]=o;break;default:{const t=Array.isArray(o)?o[0].time:o.time,e=a(t,s.data),i=Array.isArray(o)?o:[o];s.data.splice(e,0,...i);break}}W(t)}function W(t){var e;const{key:i}=t;switch(null==(e=d.value)||e.remove(...H.get(i)),H.delete(i),i){case"horizontal":Y();break;case"vertical":T();break;case"mark":G()}}function G(){if(!(null==P?void 0:P.mark)||!L)return;const{title:t,titleStyle:o,pointAttr:n,dataList:r}=P.mark,a=i([z-5,C+L/2],{value:t,...o,originX:"right"});d.value.add(a);const l=C+L,s=[];r.forEach((t=>{const{time:i,list:o=[]}=t,r=x(i);if(!B(r))return;let a=C;o.forEach((t=>{let i=!1;const o=e("circleAndText",{...n,text:t.text,left:r,top:a,origin:{data:t,key:"mark",type:"other"}}),u=o.height;a+u<=l&&a>=C?(o.set("top",a+u/2),a+=u):(i||(a=C,i=!0),o.set("top",a-u/2),a-=u),s.push(o),O(o),d.value.add(o)}))})),function(t){const e=t=>{var e,i;return null==(i=null==(e=t.origin)?void 0:e.data)?void 0:i.isStart},i=t.find((t=>e(t))),o=t.find((t=>!e(t)&&t.left>i.left)),n=t.filter((t=>!e(t)));t.forEach((t=>{const r={x1:z,x2:E};e(t)?(r.x2=o.left,t.otherPoints=n):(r.x1=i.left,t.startPoint=i),t.limitX=r}))}(s)}function O(t){if(S.hovered&&(t.on("mouseover",(()=>{q(t)})),t.on("mouseout",(()=>{f.show=!1}))),!S.evented)return;const{key:e}=t.origin,i=["mark","horizontal"].includes(e),o=["mark","vertical"].includes(e);t.on("moving",(()=>{i?function(t){t.setCoords(),t.left<t.limitX.x1&&t.set("left",t.limitX.x1);t.left>t.limitX.x2&&t.set("left",t.limitX.x2);if("mark"===t.origin.key){t.top<A&&t.set("top",A);const e=C+L-t.height/2;t.top>e&&t.set("top",e)}t.originLeft&&t.iconHalfWidth&&(t.originLeft=t.left+t.iconHalfWidth)}(t):(m(t),function(t){var e;if(!(null==(e=t.siblingPoints)?void 0:e.length))return;t.siblingPoints.forEach((e=>e.setCoords().set("left",t.left)))}(t)),S.hovered&&q(t)})),t.on("mouseup",(n=>{var r;if(f.show=!1,1===n.button){i&&function(t){var e,i;if("mark"===t.origin.key){if((null==(i=null==(e=t.origin)?void 0:e.data)?void 0:i.isStart)&&t.otherPoints)t.otherPoints.forEach((e=>{e.limitX.x1=t.left}));else{const e=t.startPoint.otherPoints.map((t=>t.left)),i=Math.min(...e);t.startPoint.limitX.x2=i}return}t.prevPoint&&(t.prevPoint.limitX.x2=t.left);t.nextPoint&&(t.nextPoint.limitX.x1=t.left)}(t);const e=k(null!=(r=t.originLeft)?r:t.left),n={...t.origin,...o?{time:e}:{data:{...t.origin.data,time:e}}};d.value.discardActiveObject(),c("change",n)}3===n.button&&["horizontal","vertical"].includes(e)&&(h.point={x:t.left,y:t.top},h.show=!0,h.target=t,h.list=s.map((t=>({...t,renderItem:()=>t.label}))))}))}function q(t){var e;f.point={x:t.left,y:"mark"===t.origin.key?t.top:t.top+I/2},f.list=[`时间 ${k(null!=(e=t.originLeft)?e:t.left).slice(-5)}`],"mark"===t.origin.key&&f.list.unshift(t.origin.data.name+" "),f.show=!0}function B(t){return t>=z&&t<=E}return function(){var t;if(!(null==(t=null==M?void 0:M.horizontal)?void 0:t.length))return;const{horizontal:i}=M,o=z-5;let n=A+w/2;i.forEach(((t,i)=>{const{title:r,titleStyle:a={},defaultAddValue:l}=t,s=r&&e(r,{...a,originX:"right",left:o,top:n,origin:{defaultAddValue:l,dataIndex:i,type:"other",key:"horizontal",title:r},originLeft:o,originTop:n});var u;(u=s).on("moving",(()=>{u.set("originX","center"),b(u)?q(u):f.show=!1})),u.on("mouseup:before",(t=>{if(f.show=!1,0===t.e.button&&b(u))if(y(H.get("horizontal"),u.left,"key",j).includes(u.origin.key))X("repeat");else{const t={data:{time:k(u.left),value:u.origin.defaultAddValue},...u.origin};c("add",t),V(t)}!function(t){t.setCoords().set({originX:"right",left:t.originLeft,top:t.originTop})}(u)})),d.value.add(s),n+=w}))}(),Y(),T(),G(),n.on((()=>{const t="horizontal",e=g(H.get(t));e.length>0?p((()=>{const i=function(t){const e=t.reduce(((t,e)=>{const{dataIndex:i}=e.origin;return t[i]=t[i]?t[i].concat(e.origin):[e.origin],t}),{});return Object.keys(e).map((t=>{const i=e[t];return M.horizontal[t].data.splice(i[0].index,i.length),i})).flat()}(e);W({key:t}),c("remove",i)})):v()})),{clickMenu:function({item:t,target:e}){if(!e)return;const{type:i}=t,o={...e.origin,type:"other"};c(i,o),"remove"===i&&V(o,i)}}}export{d as useOther};
@@ -1 +1 @@
1
- import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{drawText as e,defaultStyle as i,defaultRectStyle as n,drawTextGroup as o,drawLine as l,drawPoint as r}from"../useDraw.js";import{useGrid as s}from"../useGrid.js";import{useBirthProcessCumputedPoint as a}from"../useCumputedPoint.js";import"../useEvent.js";import"vue";import{cloneDeep as f}from"lodash-es";import"date-fns";import"../temperature/useShadow.js";import"naive-ui";function c(c,d,u,m,h){const{cumputedX:p,getXValue:v}=a(d),{originX:g,endX:x,xCellWidth:L,originYXAxis:X,top:C,canvasWidth:w,borderStyle:Y,treeData:y,xAxis:S,topGridYNumber:j,topGridOriginY:b,topGridYCellHeight:k,topGridEndY:G,event:I}=d,z=new Set;function A(t,e,i){let n;const{content:o}=t.value||{};if(o){const{textStyle:l}=C.data||{},{startLine:s,endLine:a}=e;n=r(o,{fontSize:12,...l,backgroundColor:"#fff",lockMovementX:!0,lockMovementY:!0});const f=E(n,e,i);n&&(n.set(f),n.origin={data:t},$(n),s&&(s.text=n),a&&(a.text=n))}return n}function E(t,e,i){const n=t.width+1,{startLine:o,centerLine:l,endLine:r}=e,s={top:i,originX:"center",originY:"center"};return l&&n<=l.width?s.left=l.x1+l.width/2:r&&n<=r.limitX.x2-r.left?(s.originX="left",s.left=r.left+1):o&&!r&&n<=o.limitX.x2-o.left?(s.originX="left",s.left=o.left+(o.isCustomIcon?5:1)):o&&n<=o.left-o.limitX.x1?(s.originX="right",s.left=o.left-(o.isCustomIcon?5:1)):l?(s.originY="top",s.left=l.x1+l.width/2,s.top=i+1,s.fontSize=10):o&&(s.originX="left",s.originY="top",s.fontSize=10,s.left=o.left,s.top=i+1),s}function M(e,{isCustomIcon:i,isContinue:n,isLeft:o}){const{x:s,y1:a,y2:f,halfY:c}=e;if(!s||s<g||s>x)return;const{lineStyle:d}=C.data||{};let u;const m={left:s,top:c};u=i?r("circle",{fill:d.stroke,...m}):n?r(">",{fill:d.stroke,...m,fontSize:18}):l([s,a,s,c],d);const h=new t.Rect({width:L,height:k,fill:"transparent",left:s-L/2,top:a}),p=new t.Group([u,h],{originX:"center",originY:"center",hasControls:!1,hasBorders:!1,objectCaching:!1,hoverCursor:"pointer",lockMovementY:!0});return p.isLeft=o,p.isCustomIcon=i,$(p),p}function $(t){I.hovered&&(t.on("mouseover",(()=>{W(t,"hover")})),t.on("mouseout",(()=>{m.show=!1}))),t.lockMovementX&&t.lockMovementY||(t.on("moving",(()=>{!function(t){t.setCoords(),t.left<t.limitX.x1&&t.set("left",t.limitX.x1);t.left>t.limitX.x2&&t.set("left",t.limitX.x2)}(t),function(t){if(t.centerLine){const e=t.isLeft?{x1:t.left}:{x2:t.left};t.centerLine.setCoords().set(e)}if(t.text){const e=E(t.text,{startLine:t.isLeft?t:t.nearLine,centerLine:t.centerLine,endLine:t.isLeft?t.nearLine:t},t.top);t.text.setCoords().set(e)}}(t),I.hovered&&W(t)})),t.on("mouseup",(e=>{if(1===e.button){!function(t){t.isLeft?(t.prevLine&&(t.prevLine.limitX.x2=t.left),t.nearLine&&(t.nearLine.limitX.x1=t.left)):(t.nextLine&&(t.nextLine.limitX.x1=t.left),t.nearLine&&(t.nearLine.limitX.x2=t.left))}(t);const e={type:"tree",...t.origin};u("change",e)}})))}function W(t,e="moving"){var i,n,o;const{data:l}=t.origin;m.point={x:t.left,y:t.top};let[r="",s=""]=l.time||[];if("moving"===e){const e=v(t.left);t.isLeft?r=e:s=e,l.time=[r,s],t.text&&(t.text.origin.data.time=[r,s])}m.list=[`开始时间 ${r}`,`结束时间 ${s}`,`流速 ${(null==(i=l.value)?void 0:i.currentSpeed)||""}`,`浓度 ${(null==(n=l.value)?void 0:n.consistence)||""}`,`总量 ${(null==(o=l.value)?void 0:o.total)||""}`],m.show=!0}s(c,{...d,gridYNumber:j,originY:b,yCellHeight:k,endY:G}),function(){var o;const{height:l,list:r,left:s,spaceValue:a}=S;if(!l)return;const f=[],d=X+l/2;r.forEach(((t,i)=>{const n=s+i*L*a;f.push(e([n,d],{value:t.slice(11,16)}))}));const u=f.length>0?new t.Group([...f],{...i,objectCaching:!1}):null;u&&c.value.add(u);const m=new t.Rect({width:w,height:l,left:0,top:X,...n,originX:"left",originY:"top",...Y}),h=e([x+(w-x)/2,d],{value:"总量",...null==(o=C.data)?void 0:o.totalStyle});c.value.add(m,h)}(),function(){var n;const r=(null==(n=null==C?void 0:C.tree)?void 0:n.textStyle)||{},s=[];!function t(i){i.forEach((i=>{var n;const{width:a,height:d,left:u,top:m,title:h=""}=i,v={value:h,...r};(null==(n=i.children)?void 0:n.length)?(v.value=h.split("").join("\n"),t(i.children)):(v.textAlign="left",function(t){if(!(null==t?void 0:t.data)||!Array.isArray(t.data))return;const{lineStyle:e}=C.data||{},i=t.top,n=i+k,o=n-k/2,r={y1:i,y2:n,halfY:o};let s=null;const a=f(t);delete a.data,t.data.forEach(((t,i,n)=>{const{time:f,continue:c}=t,[d,u]=f,m=d&&p(d),h=u&&p(u),v=M({...r,x:m},{isCustomIcon:!h&&!c,isContinue:!1,isLeft:!0}),L=M({...r,x:h},{isCustomIcon:!1,isContinue:!!c});let X;if((v||m<g)&&(L||h>x)){X=l([v?m:g,o,L?h:x,o],e)}const C={startLine:v,centerLine:X,endLine:L};let w,Y;!function(t,e,i){const{startLine:n,centerLine:o,endLine:l}=e,{startLine:r,endLine:s}=t||{};if(n){n.origin=i;const t={x1:g,x2:l?l.left:x};s?(t.x1=s.left,s.limitX.x2=n.left,n.prevLine=s,s.nextLine=n):r&&(t.x1=r.left,r.limitX.x2=n.left,n.prevLine=r,r.nextLine=n),n.limitX=t,o&&(n.centerLine=o)}if(l){l.origin=i;const t={x1:n?n.left:g,x2:x};l.limitX=t,o&&(l.centerLine=o)}n&&l&&(n.nearLine=l,l.nearLine=n)}(s,C,Object.assign({},a,{data:t,index:i})),s&&(w=A(n[i-1],s,o)),i===n.length-1&&(Y=A(t,C,o)),s=C,X&&z.add(X),v&&z.add(v),L&&z.add(L),w&&z.add(w),Y&&z.add(Y)}))}(i),function(t){var i;if(!(null==t?void 0:t.total))return;const n=t.top+k/2,o=x+(w-x)/2,l=e([o,n],{value:t.total,...null==(i=C.data)?void 0:i.totalStyle}),r=w-Y.strokeWidth;o+l.width>r&&l.set({originX:"right",left:r});l&&c.value.add(l)}(i)),s.push(o({width:a,height:d,...Y},v,{left:u,top:m},!0))}))}(y);const a=s.length>0?new t.Group([...s],{...i,objectCaching:!1}):null;a&&c.value.add(a),z.size&&c.value.add(...z)}()}export{c as useTop};
1
+ import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{drawText as e,defaultStyle as i,defaultRectStyle as n,drawTextGroup as o,drawLine as l,drawPoint as r}from"../useDraw.js";import{useGrid as s}from"../useGrid.js";import{useBirthProcessCumputedPoint as a}from"../useCumputedPoint.js";import"../useEvent.js";import"vue";import{cloneDeep as f}from"lodash-es";import"date-fns";import"../temperature/useShadow.js";import"naive-ui";function c(c,u,d,m,h){const{cumputedX:p,getXValue:v}=a(u),{originX:x,endX:g,xCellWidth:L,originYXAxis:X,top:C,canvasWidth:w,borderStyle:Y,treeData:y,xAxis:S,topGridYNumber:j,topGridOriginY:b,topGridYCellHeight:k,topGridEndY:G,event:I}=u,z=new Set;function A(t,e,i){let n;const{content:o}=t.value||{};if(o){const{textStyle:l}=C.data||{},{startLine:s,endLine:a}=e;n=r(o,{fontSize:12,...l,backgroundColor:"#fff",lockMovementX:!0,lockMovementY:!0});const f=E(n,e,i);n&&(n.set(f),n.origin={data:t},$(n),s&&(s.text=n),a&&(a.text=n))}return n}function E(t,e,i){const n=t.width+1,{startLine:o,centerLine:l,endLine:r}=e,s={top:i,originX:"center",originY:"center"};return l&&n<=l.width?s.left=l.x1+l.width/2:r&&n<=r.limitX.x2-r.left?(s.originX="left",s.left=r.left+1):o&&!r&&n<=o.limitX.x2-o.left?(s.originX="left",s.left=o.left+(o.isCustomIcon?5:1)):o&&n<=o.left-o.limitX.x1?(s.originX="right",s.left=o.left-(o.isCustomIcon?5:1)):l?(s.originY="top",s.left=l.x1+l.width/2,s.top=i+1,s.fontSize=10):o&&(s.originX="left",s.originY="top",s.fontSize=10,s.left=o.left,s.top=i+1),s}function M(e,{isCustomIcon:i,isContinue:n,isLeft:o}){const{x:s,y1:a,y2:f,halfY:c}=e;if(!s||s<x||s>g)return;const{lineStyle:u}=C.data||{};let d;const m={left:s,top:c};d=i?r("circle",{fill:u.stroke,...m}):n?r(">",{fill:u.stroke,...m,fontSize:18}):l([s,a,s,c],u);const h=new t.Rect({width:L,height:k,fill:"transparent",left:s-L/2,top:a}),p=new t.Group([d,h],{originX:"center",originY:"center",hasControls:!1,hasBorders:!1,objectCaching:!1,hoverCursor:"pointer",lockMovementY:!0});return p.isLeft=o,p.isCustomIcon=i,$(p),p}function $(t){I.hovered&&(t.on("mouseover",(()=>{D(t,"hover")})),t.on("mouseout",(()=>{m.show=!1}))),t.lockMovementX&&t.lockMovementY||(t.on("moving",(()=>{!function(t){t.setCoords(),t.left<t.limitX.x1&&t.set("left",t.limitX.x1);t.left>t.limitX.x2&&t.set("left",t.limitX.x2)}(t),function(t){if(t.centerLine){const e=t.isLeft?{x1:t.left}:{x2:t.left};t.centerLine.setCoords().set(e)}if(t.text){const e=E(t.text,{startLine:t.isLeft?t:t.nearLine,centerLine:t.centerLine,endLine:t.isLeft?t.nearLine:t},t.top);t.text.setCoords().set(e)}}(t),I.hovered&&D(t)})),t.on("mouseup",(e=>{if(1===e.button){!function(t){t.isLeft?(t.prevLine&&(t.prevLine.limitX.x2=t.left),t.nearLine&&(t.nearLine.limitX.x1=t.left)):(t.nextLine&&(t.nextLine.limitX.x1=t.left),t.nearLine&&(t.nearLine.limitX.x2=t.left))}(t);const e={type:"tree",...t.origin};d("change",e)}})))}function D(t,e="moving"){var i,n,o;const{data:l}=t.origin;m.point={x:t.left,y:t.top};let[r="",s=""]=l.time||[];if("moving"===e){const e=v(t.left);t.isLeft?r=e:s=e,l.time=[r,s],t.text&&(t.text.origin.data.time=[r,s])}m.list=[`开始时间 ${r}`,`结束时间 ${s}`,`流速 ${(null==(i=l.value)?void 0:i.currentSpeed)||""}`,`浓度 ${(null==(n=l.value)?void 0:n.consistence)||""}`,`总量 ${(null==(o=l.value)?void 0:o.total)||""}`],m.show=!0}s(c,{...u,gridYNumber:j,originY:b,yCellHeight:k,endY:G}),function(){var o;const{height:l,list:r,left:s,spaceValue:a}=S;if(!l)return;const f=[],u=X+l/2;r.forEach(((t,i)=>{const n=s+i*L*a;f.push(e([n,u],{value:t.slice(11,16)}))}));const d=f.length>0?new t.Group([...f],{...i,objectCaching:!1}):null;d&&c.value.add(d);const m=new t.Rect({width:w,height:l,left:0,top:X,...n,originX:"left",originY:"top",...Y}),h=e([g+(w-g)/2,u],{value:"总量",...null==(o=C.data)?void 0:o.totalStyle});c.value.add(m,h)}(),function(){var n;const r=(null==(n=null==C?void 0:C.tree)?void 0:n.textStyle)||{},s=[];!function t(i){i.forEach((i=>{var n;const{width:a,height:u,left:d,top:m,title:h=""}=i,v={value:h,...r};(null==(n=i.children)?void 0:n.length)?(v.value=h.split("").join("\n"),t(i.children)):(v.textAlign="left",function(t){if(!(null==t?void 0:t.data)||!Array.isArray(t.data))return;const{lineStyle:e}=C.data||{},i=t.top,n=i+k,o=n-k/2,r={y1:i,y2:n,halfY:o};let s=null;const a=f(t);delete a.data,t.data.forEach(((t,i,n)=>{const{time:f,continue:c}=t,[u,d]=f,m=u&&p(u),h=d&&p(d),v=M({...r,x:m},{isCustomIcon:!h&&!c,isContinue:!1,isLeft:!0}),L=M({...r,x:h},{isCustomIcon:!1,isContinue:!!c});let X;if((v||m<x)&&(L||h>g)){X=l([v?m:x,o,L?h:g,o],e)}const C={startLine:v,centerLine:X,endLine:L};let w,Y;!function(t,e,i){const{startLine:n,centerLine:o,endLine:l}=e,{startLine:r,endLine:s}=t||{};if(n){n.origin=i;const t={x1:x,x2:l?l.left:g};s?(t.x1=s.left,s.limitX.x2=n.left,n.prevLine=s,s.nextLine=n):r&&(t.x1=r.left,r.limitX.x2=n.left,n.prevLine=r,r.nextLine=n),n.limitX=t,o&&(n.centerLine=o)}if(l){l.origin=i;const t={x1:n?n.left:x,x2:g};l.limitX=t,o&&(l.centerLine=o)}n&&l&&(n.nearLine=l,l.nearLine=n)}(s,C,Object.assign({},a,{data:t,index:i})),s&&(w=A(n[i-1],s,o)),i===n.length-1&&(Y=A(t,C,o)),s=C,X&&z.add(X),v&&z.add(v),L&&z.add(L),w&&z.add(w),Y&&z.add(Y)}))}(i),function(t){var i;if(!(null==t?void 0:t.total))return;const n=t.top+k/2,o=e([g+(w-g)/2,n],{value:t.total,...null==(i=C.data)?void 0:i.totalStyle});o&&c.value.add(o)}(i)),s.push(o({width:a,height:u,...Y},v,{left:d,top:m},!0))}))}(y);const a=s.length>0?new t.Group([...s],{...i,objectCaching:!1}):null;a&&c.value.add(a),z.size&&c.value.add(...z)}()}export{c as useTop};
@@ -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 g,deleteProperty as v}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{TEMPERATURE_MENU as x,PAIN_MENU as b,OVERLAP as j}from"../../constants/index.js";function L(L,k,S,Y,E,M,$,O,P,A){r(L,k);const{getEqualXTypes:C,handleAddPrevent:I}=y(L,S,k),{createShadowLines:T}=t(),{left:R,xScaleList:X,xCellWidth:F,yCellHeight:z,originX:D,endX:V,originY:_,endY:G,itemList:H,event:W,vitalSignsOriginY:q,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&&L.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 g=Math.max(a[1],u[1]);s.push([a,u].find((e=>e[1]===g)));const v=()=>{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))),v()}}else p?(l.push(p),v()):f?(s.push(f),v()):v()})),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)}))}L.value.add(...e)}Q.add(l),L.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((()=>{L.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:g={},reduceStyle:v={},pacemaker:y={},upArrowStyle:m={},limitValueStyle:x={},nonePainPointStyle:b={},dataList:j=[]}=r,{type:Y,textStyle:M,showConnectLine:O=!1}=b,A=[],C=[],I=[];null==(u=e.list)||u.forEach(((u,b)=>{const T=a(c)?j.find((e=>e.key===u.key)):e,R=ue(u,r),X={};X.value=function(e,t,i){if(!(null==e?void 0:e.length)||!K.showValue)return;const{lineAttr:n={}}=i,o=e[1]<=q.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 I.push(s),{obj:s,top:-z}}(R,u,T),function(e,t,r,a,u){var d,y;if(!(null==e?void 0:e.length)||!["temperature","pain"].includes(c))return;const{lineAttr:m={}}=r,{value:x}=a;let b,j,L,k,S,Y;if(t.noRise&&h.show){const t=w(h)?E(u.type,u.list,35):e[1];if(h.text)L=l([e[0],w(h)?t:t+5],{value:h.text.split("").join("\n"),originY:"top",...h.style||{}}),I.push(L);else{const i=t+2*z;k=s([e[0],t,i],h.style||{}),I.push(k)}}t.rise&&f.show&&f.text&&(S=l([e[0],e[1]-(x?z:0)-5],{value:f.text.split("").join("\n"),originY:"bottom",...f.style||{}}),I.push(S));t.verified&&(Y=l([e[0],e[1]-(x?z:0)-5],{value:"v",originX:"center",originY:"bottom",...g}),I.push(Y));if(p(t.physicsReduce)||p(t.drugReduce)){const l=E(c,u.list,null!=(d=t.physicsReduce)?d:t.drugReduce);b=i([...e,e[0],l],{...m,...v.line,...n}),j=o((null==(y=null==v?void 0:v.point)?void 0:y.type)||"circle",{left:e[0],top:l,...v.point,...n,originY:l===N?"bottom":"center"}),b&&I.push(b),j&&I.push(j)}Object.assign(a,{reduceLine:{obj:b,type:"line"},noRiseText:{obj:L,top:5,isFixed:w(h)},arrowGroup:{obj:k,top:2*z,isFixed:w(h)},riseText:{obj:S,top:(x?-z:0)-5},verifiedText:{obj:Y,top:(x?-z:0)-5},reducePoint:{obj:j,type:"reduce"}})}(R,u,T,X,r),function(e,t,i,n){if(!(null==e?void 0:e.length)||!["pulse"].includes(c))return;let o,a;const{upArrowShow:u=!1,limitValueShow:p=!1}=i;if(u&&+t.value>180){let t=e[1]-2.5*z,i=[e[1]-z/2,t];t<q.originY&&(t=e[1]+2.5*z,i=[t,e[1]+z/2]),o=s([e[0],i[0],i[1]],m,"up"),I.push(o)}if(p){const i={value:t.value,originX:"center",originY:"center",...x};if(+t.value>Math.max(...r.list)){const t=o?e[1]+z/2+o.height:e[1]+z;a=l([e[0],t],i),I.push(a)}+t.value<Math.min(...r.list)&&(a=l([e[0],e[1]-z],i),I.push(a))}Object.assign(n,{upArrow:{obj:o},limitValue:{obj:a,top:-z}})}(R,u,T,X),function(n,l,s,a,u){let p,f;const{pointAttr:h={},lineAttr:g={},title:v="",key:m,type:x="circle"}=a,b=e.list[s+1],j=ue(b,r),w=re(c,e.list[s].value),E=j&&re(c,b.value);n&&j&&!l.breakpoint&&(!w&&!E||O)&&n[0]!==j[0]&&(f=i([...n,...j],{...g}));const I=l.pacemakerShow&&"pulse"==c?y.value:w&&"number"===Y?0:x,T=C[s-1],R={origin:{data:l,title:v,key:m||"",unit:r.unit,type:c,_type:d(v,c),dataIndex:t,index:s},leftLine:T,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,...w?{selectable:!1,evented:!1,..."number"===Y?M:{}}:{}};if(T){const e=T.get("y2");p=o(I,{left:T.get("x2"),top:w?e-5:e,...R})}else n&&(R.leftLine=null,p=o(I,{left:n[0],top:w?n[1]-5:n[1],...R}));C.push(f),p&&(v.includes("脉搏")?ee.add(p):te.add(p),function(e){W.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:q;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}=t||{};"reduce"!==n&&("line"===n?null==i||i.setCoords().set({x1:e.left,y1:e.top}):!l&&(null==i||i.setCoords().set({left:e.left,top:e.top+o})))})),oe(e)}(e),W.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}};L.value.discardActiveObject(),S("change",n),pe(n,"change")}}))}(p),A.push(p),ie.add(p))}(R,u,b,T,X)})),"pulse"===c&&U.forEach((e=>{Z.set(e,A.filter((t=>{var i;return(null==(i=t.origin)?void 0:i.key)===e})).map((e=>[e.left,e.top])))})),Promise.all(A).then((e=>{const t=C.filter((e=>e));Promise.all(I).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 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:q;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=g(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=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}([...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,V,t],e.positionLine);L.value.add(n)}(e),e.dataList.forEach(((t,i)=>{a(e.type)&&!t.enable||se(t,i,e)}))})),oe(),le(),k.event.evented&&L.value.on("mouse:up",(e=>{var t;if(3===e.button){const{x:i=0,y:n=0}=e.pointer||{};if(i>=D&&i<=V&&n>=_&&n<=G){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=["新增节点"],H.forEach((t=>{if(!C([...ie],i,"_type").includes(t.bigType)){const i=["pain"].includes(t.bigType)?B:q;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=v(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 w(e){return"fixed"===e.position}export{L 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 r}from"../useDraw.js";import{useGrid as s}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{TEMPERATURE_MENU as x,PAIN_MENU as b,OVERLAP as j}from"../../constants/index.js";function L(L,k,S,Y,E,M,$,O,P,A){s(L,k);const{getEqualXTypes:C,handleAddPrevent:I}=y(L,S,k),{createShadowLines:T}=t(),{left:R,xScaleList:X,xCellWidth:F,yCellHeight:z,originX:D,endX:V,originY:_,endY:G,itemList:H,event:W,vitalSignsOriginY:q,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&&L.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=[],r=[];return i.forEach((t=>{const i=n.findIndex((e=>e[0]===t)),s=o.findIndex((e=>e[0]===t)),a=n[i],u=o[s],c=n[i-1],p=n[i+1],d=o[s-1],f=o[s+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&&r.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]);r.push([a,u].find((e=>e[1]===v)));const g=()=>{const t=[...l,...r.reverse()],[i]=t,n=t.at(-1);i[0]===n[0]&&i[1]===n[1]&&t.splice(-1,1),e.push(t),l=[],r=[]};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?(r.push(f),g()):g()})),e}(),{mode:r,style:s={}}=l.shadow||{};o.forEach((t=>{const o=t.map((e=>({x:e[0],y:e[1]}))),l=new e.Polygon(o,{...n,...s,strokeWidth:1});if(["slash","line"].includes(r)){l.set({fill:"transparent",stroke:s.stroke||"#f00"});const e=[];if(["slash"].includes(r))e.push(...T(t,s._angle,s.space)),e.forEach((e=>{Object.assign(e,{...n,...s}),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()],{...s,originX:"center"});e.push(n),Q.add(n)}))}L.value.add(...e)}Q.add(l),L.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 r={left:t.left,top:t.top,...n,hoverCursor:"default"};let s="koumai";"yemai"===e&&(s=e),"humai"===e&&(s="circle"),l.push(o(s,{...i[e]||{},...r}))}}}))})),setTimeout((()=>{L.value.add(...l),l.forEach((e=>{null==e||e.bringToFront(),ie.add(e)}))}))}function re(e,t,s){var u;const{type:c,riseStyle:f={},noRiseStyle:h={},verifiedStyle:v={},reduceStyle:g={},pacemaker:y={},upArrowStyle:m={},limitValueStyle:x={},nonePainPointStyle:b={},dataList:j=[]}=s,{type:Y,textStyle:M,showConnectLine:O=!1}=b,A=[],C=[],I=[];null==(u=e.list)||u.forEach(((u,b)=>{const T=a(c)?j.find((e=>e.key===u.key)):e,R=ue(u,s),X={};X.value=function(e,t,i){if(!(null==e?void 0:e.length)||!K.showValue)return;const{lineAttr:n={}}=i,o=e[1]<=q.originY+z?e[1]+z:e[1]-z,r=l([e[0],o],{value:t.value,originX:"center",originY:"center",fill:n.stroke||"#000"});return I.push(r),{obj:r,top:-z}}(R,u,T),function(e,t,s,a,u){var d,y;if(!(null==e?void 0:e.length)||!["temperature","pain"].includes(c))return;const{lineAttr:m={}}=s,{value:x}=a;let b,j,L,k,S,Y;if(t.noRise&&h.show){const t=w(h)?E(u.type,u.list,35):e[1];if(h.text)L=l([e[0],w(h)?t:t+5],{value:h.text.split("").join("\n"),originY:"top",...h.style||{}}),I.push(L);else{const i=t+2*z;k=r([e[0],t,i],h.style||{}),I.push(k)}}t.rise&&f.show&&f.text&&(S=l([e[0],e[1]-(x?z:0)-5],{value:f.text.split("").join("\n"),originY:"bottom",...f.style||{}}),I.push(S));t.verified&&(Y=l([e[0],e[1]-(x?z:0)-5],{value:"v",originX:"center",originY:"bottom",...v}),I.push(Y));if(p(t.physicsReduce)||p(t.drugReduce)){const l=E(c,u.list,null!=(d=t.physicsReduce)?d:t.drugReduce);b=i([...e,e[0],l],{...m,...g.line,...n}),j=o((null==(y=null==g?void 0:g.point)?void 0:y.type)||"circle",{left:e[0],top:l,...g.point,...n,originY:l===N?"bottom":"center"}),b&&I.push(b),j&&I.push(j)}Object.assign(a,{reduceLine:{obj:b,type:"line"},noRiseText:{obj:L,top:5,isFixed:w(h)},arrowGroup:{obj:k,top:2*z,isFixed:w(h)},riseText:{obj:S,top:(x?-z:0)-5},verifiedText:{obj:Y,top:(x?-z:0)-5},reducePoint:{obj:j,type:"reduce"}})}(R,u,T,X,s),function(e,t,i,n){if(!(null==e?void 0:e.length)||!["pulse"].includes(c))return;let o,a;const{upArrowShow:u=!1,limitValueShow:p=!1}=i;if(u&&+t.value>180){let t=e[1]-2.5*z,i=[e[1]-z/2,t];t<q.originY&&(t=e[1]+2.5*z,i=[t,e[1]+z/2]),o=r([e[0],i[0],i[1]],m,"up"),I.push(o)}if(p){const i={value:t.value,originX:"center",originY:"center",...x};if(+t.value>Math.max(...s.list)){const t=o?e[1]+z/2+o.height:e[1]+z;a=l([e[0],t],i),I.push(a)}+t.value<Math.min(...s.list)&&(a=l([e[0],e[1]-z],i),I.push(a))}Object.assign(n,{upArrow:{obj:o},limitValue:{obj:a,top:-z}})}(R,u,T,X),function(n,l,r,a,u){let p,f;const{pointAttr:h={},lineAttr:v={},title:g="",key:m,type:x="circle"}=a,b=e.list[r+1],j=ue(b,s),w=se(c,e.list[r].value),E=j&&se(c,b.value);n&&j&&!l.breakpoint&&(!w&&!E||O)&&n[0]!==j[0]&&(f=i([...n,...j],{...v}));const I=l.pacemakerShow&&"pulse"==c?y.value:w&&"number"===Y?0:x,T=C[r-1],R={origin:{data:l,title:g,key:m||"",unit:s.unit,type:c,_type:d(g,c),dataIndex:t,index:r},leftLine:T,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,...w?{selectable:!1,evented:!1,..."number"===Y?M:{}}:{}};if(T){const e=T.get("y2");p=o(I,{left:T.get("x2"),top:w?e-5:e,...R})}else n&&(R.leftLine=null,p=o(I,{left:n[0],top:w?n[1]-5:n[1],...R}));C.push(f),p&&(g.includes("脉搏")?ee.add(p):te.add(p),function(e){W.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:q;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}=t||{};"reduce"!==n&&("line"===n?null==i||i.setCoords().set({x1:e.left,y1:e.top}):!l&&(null==i||i.setCoords().set({left:e.left,top:e.top+o})))})),oe(e)}(e),W.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}};L.value.discardActiveObject(),S("change",n),pe(n,"change")}}))}(p),A.push(p),ie.add(p))}(R,u,b,T,X)})),"pulse"===c&&U.forEach((e=>{Z.set(e,A.filter((t=>{var i;return(null==(i=t.origin)?void 0:i.key)===e})).map((e=>[e.left,e.top])))})),Promise.all(A).then((e=>{const t=C.filter((e=>e));let i=null;e=e.map((e=>(e&&i&&(i.nextPoint=e,e.prevPoint=i),i=e||i,e))),Promise.all(I).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 se(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:r,physicsReduce:s}=l||{},a="hover"===t?l.value:$(o,e.top);if(p(r))return`药物降${"pain"==o?"痛":"温"} ${a}—>${r}${n||""}`;if(p(s))return`物理降${"pain"==o?"痛":"温"} ${a}—>${s}${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:q;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:r}=e,s=ne.find((e=>e.type===i));if("add"===t){const e=a(i)?s.dataList.find((e=>e.enable)):s.dataList[n],t=v(l.time,e.list);e.list.splice(t,0,l)}else s.dataList[n].list[o]=l;de()}function de(){var e;ie.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}([...ie]))),Z.clear(),ie.clear(),ee.clear(),te.clear(),ne.forEach((e=>{e.dataList.forEach(((t,i)=>{a(e.type)&&!t.enable||re(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,V,t],e.positionLine);L.value.add(n)}(e),e.dataList.forEach(((t,i)=>{a(e.type)&&!t.enable||re(t,i,e)}))})),oe(),le(),k.event.evented&&L.value.on("mouse:up",(e=>{var t;if(3===e.button){const{x:i=0,y:n=0}=e.pointer||{};if(i>=D&&i<=V&&n>=_&&n<=G){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=["新增节点"],H.forEach((t=>{if(!C([...ie],i,"_type").includes(t.bigType)){const i=["pain"].includes(t.bigType)?B:q;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,r=g(i,[...x,...b]);r[`${e.type}`]=e.value,a(n)&&(r.key=t.origin.key);const s={...t.origin,data:r};S("change",s),pe(s,"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 w(e){return"fixed"===e.position}export{L as useCenter};
@@ -6,5 +6,4 @@ export declare function useCommon(canvas: Ref<fabric.Canvas>, emits: Function, p
6
6
  getEqualXTypes: (points: any[], pointX: number, field: string, range?: any) => string[];
7
7
  handleAddPrevent: (type: 'repeat' | 'exceedMax' | 'exceedMin') => void;
8
8
  isGridLimit: (point: IObject) => boolean;
9
- setPrevAndNextPoint: (pointList: any[]) => void;
10
9
  };
@@ -1 +1 @@
1
- const e={repeat:"该时段已存在数值不能新增",exceedMax:"未来时间不允许录入",exceedMin:"不允许小于入院时间"};function n(n,t,i){return{getEqualXTypes:function(e,n,t,r=i.xCellWidth){const o=[],d=r/2;return e.forEach((e=>{e.origin&&!e.origin.isMenu&&Math.abs(n-e.left)<=d&&o.push(e.origin[t])})),[...new Set(o)]},handleAddPrevent:function(n){t("add:prevent",{type:n,message:e[n]})},isGridLimit:function(e){const{left:n,top:t}=e,{originX:r,endX:o,originY:d,endY:u}=i;return n>=r&&n<=o&&t>=d&&t<=u},setPrevAndNextPoint:function(e){e.reduce(((e,n)=>e&&n?(n.prevPoint=e,e.nextPoint=n,n):n||e),null)}}}export{n as useCommon};
1
+ const e={repeat:"该时段已存在数值不能新增",exceedMax:"未来时间不允许录入",exceedMin:"不允许小于入院时间"};function n(n,t,i){return{getEqualXTypes:function(e,n,t,r=i.xCellWidth){const o=[],d=r/2;return e.forEach((e=>{e.origin&&!e.origin.isMenu&&Math.abs(n-e.left)<=d&&o.push(e.origin[t])})),[...new Set(o)]},handleAddPrevent:function(n){t("add:prevent",{type:n,message:e[n]})},isGridLimit:function(e){const{left:n,top:t}=e,{originX:r,endX:o,originY:d,endY:c}=i;return n>=r&&n<=o&&t>=d&&t<=c}}}export{n as useCommon};
@@ -17,7 +17,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
17
17
  extraMaterialList: {
18
18
  type: import("vue").PropType<import("./src/types").FormConfigItem[] | (() => import("./src/types").FormConfigItem[] | Promise<import("./src/types").FormConfigItem[]>)>;
19
19
  };
20
- showLowCodeReactions: BooleanConstructor;
21
20
  formProps: {
22
21
  type: import("vue").PropType<Partial<Partial<{
23
22
  fieldList: import("..").FieldItem[];
@@ -98,7 +97,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
98
97
  businessFormatter: import("..").FormBusinessFormatter;
99
98
  requestInstance: import("..").RequestInstance;
100
99
  enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
101
- lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
100
+ lowCodeReactions: import("..").FormLowCodeReactions.Config[];
102
101
  linebarAutoHidden: boolean;
103
102
  bordered: string | boolean;
104
103
  uniqueCacheData: boolean;
@@ -124,7 +123,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
124
123
  extraMaterialList: {
125
124
  type: import("vue").PropType<import("./src/types").FormConfigItem[] | (() => import("./src/types").FormConfigItem[] | Promise<import("./src/types").FormConfigItem[]>)>;
126
125
  };
127
- showLowCodeReactions: BooleanConstructor;
128
126
  formProps: {
129
127
  type: import("vue").PropType<Partial<Partial<{
130
128
  fieldList: import("..").FieldItem[];
@@ -205,7 +203,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
205
203
  businessFormatter: import("..").FormBusinessFormatter;
206
204
  requestInstance: import("..").RequestInstance;
207
205
  enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
208
- lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
206
+ lowCodeReactions: import("..").FormLowCodeReactions.Config[];
209
207
  linebarAutoHidden: boolean;
210
208
  bordered: string | boolean;
211
209
  uniqueCacheData: boolean;
@@ -217,9 +215,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
217
215
  }>> & {
218
216
  onAddItem?: ((...args: any[]) => any) | undefined;
219
217
  onRemoveItem?: ((...args: any[]) => any) | undefined;
220
- onReactionsValidateFailure?: ((...args: any[]) => any) | undefined;
221
218
  }>>;
222
- emit: (event: "addItem" | "removeItem" | "reactionsValidateFailure", ...args: any[]) => void;
219
+ emit: (event: "addItem" | "removeItem", ...args: any[]) => void;
223
220
  uuid: string;
224
221
  cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
225
222
  getCommonConfig: (formConfig?: import("./src/types").FormConfigItem | undefined) => {
@@ -385,10 +382,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
385
382
  allow_check_mid_level?: "1" | "2" | "3" | "4" | undefined;
386
383
  prefix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
387
384
  suffix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
388
- allowSlash?: string | boolean | undefined;
385
+ allowSlash?: boolean | undefined;
389
386
  allowModify?: "0" | "1" | undefined;
390
387
  show_key?: string | undefined;
391
- whiteList?: string[] | undefined;
392
388
  bordered?: string | boolean | undefined;
393
389
  fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
394
390
  content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
@@ -2119,10 +2115,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
2119
2115
  allow_check_mid_level?: "1" | "2" | "3" | "4" | undefined;
2120
2116
  prefix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
2121
2117
  suffix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
2122
- allowSlash?: string | boolean | undefined;
2118
+ allowSlash?: boolean | undefined;
2123
2119
  allowModify?: "0" | "1" | undefined;
2124
2120
  show_key?: string | undefined;
2125
- whiteList?: string[] | undefined;
2126
2121
  bordered?: string | boolean | undefined;
2127
2122
  fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
2128
2123
  content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
@@ -3700,22 +3695,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
3700
3695
  __isCombinationChild?: boolean | undefined;
3701
3696
  __extra?: boolean | undefined;
3702
3697
  }[]>;
3703
- lowCodeReactionsRef: import("vue").Ref<{
3704
- conObj: {
3705
- con: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION;
3706
- field_key: string;
3707
- value: unknown;
3708
- }[];
3709
- sqlExpression?: string | undefined;
3710
- showField?: string[] | undefined;
3711
- hideField?: string[] | undefined;
3712
- requiredField?: string[] | undefined;
3713
- notRequiredField?: string[] | undefined;
3714
- enabledField?: string[] | undefined;
3715
- disabledField?: string[] | undefined;
3716
- __oppositeBindField?: any | undefined;
3717
- __oppositeTargetField?: any | undefined;
3718
- }[]>;
3719
3698
  addItem: (formConfigItem: import("./src/types").FormConfigItem) => void;
3720
3699
  parsedTextFormatter: import("./src/types").FormConfigTextFormatter;
3721
3700
  currentEditField: import("vue").Ref<import("./src/types").FormConfigItem | undefined>;
@@ -3723,7 +3702,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
3723
3702
  validate: import("../../../es/shared/types").Func<any[], any>;
3724
3703
  } | undefined>;
3725
3704
  transform: (fieldList: import("./src/types").FormConfigItem[]) => import("./src/types").FormConfigItem[];
3726
- inverseTransform: (fieldList: import("./src/types").FormConfigItem[], withOriginalSetting: boolean, otherConfig?: Partial<import("./src/types").FormConfigItem> | undefined) => import("./src/types").FormConfigItem[];
3705
+ inverseTransform: (fieldList: import("./src/types").FormConfigItem[], withOriginalSetting: boolean) => import("./src/types").FormConfigItem[];
3727
3706
  extraValueRef: import("vue").WritableComputedRef<any>;
3728
3707
  _extraOptions: import("vue").Ref<{
3729
3708
  key: string;
@@ -3878,10 +3857,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
3878
3857
  allow_check_mid_level?: "1" | "2" | "3" | "4" | undefined;
3879
3858
  prefix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
3880
3859
  suffix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
3881
- allowSlash?: string | boolean | undefined;
3860
+ allowSlash?: boolean | undefined;
3882
3861
  allowModify?: "0" | "1" | undefined;
3883
3862
  show_key?: string | undefined;
3884
- whiteList?: string[] | undefined;
3885
3863
  bordered?: string | boolean | undefined;
3886
3864
  fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
3887
3865
  content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
@@ -5612,10 +5590,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
5612
5590
  allow_check_mid_level?: "1" | "2" | "3" | "4" | undefined;
5613
5591
  prefix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
5614
5592
  suffix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
5615
- allowSlash?: string | boolean | undefined;
5593
+ allowSlash?: boolean | undefined;
5616
5594
  allowModify?: "0" | "1" | undefined;
5617
5595
  show_key?: string | undefined;
5618
- whiteList?: string[] | undefined;
5619
5596
  bordered?: string | boolean | undefined;
5620
5597
  fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
5621
5598
  content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
@@ -7410,7 +7387,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7410
7387
  default: boolean;
7411
7388
  };
7412
7389
  lowCodeReactions: {
7413
- type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
7390
+ type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
7414
7391
  };
7415
7392
  operationalForm: {
7416
7393
  type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
@@ -7555,7 +7532,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7555
7532
  default: boolean;
7556
7533
  };
7557
7534
  lowCodeReactions: {
7558
- type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
7535
+ type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
7559
7536
  };
7560
7537
  operationalForm: {
7561
7538
  type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
@@ -7714,7 +7691,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7714
7691
  businessFormatter: import("..").FormBusinessFormatter;
7715
7692
  requestInstance: import("..").RequestInstance;
7716
7693
  enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
7717
- lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
7694
+ lowCodeReactions: import("..").FormLowCodeReactions.Config[];
7718
7695
  linebarAutoHidden: boolean;
7719
7696
  bordered: string | boolean;
7720
7697
  uniqueCacheData: boolean;
@@ -8125,7 +8102,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
8125
8102
  default: boolean;
8126
8103
  };
8127
8104
  lowCodeReactions: {
8128
- type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
8105
+ type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
8129
8106
  };
8130
8107
  operationalForm: {
8131
8108
  type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
@@ -8365,7 +8342,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
8365
8342
  businessFormatter: import("..").FormBusinessFormatter;
8366
8343
  requestInstance: import("..").RequestInstance;
8367
8344
  enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
8368
- lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
8345
+ lowCodeReactions: import("..").FormLowCodeReactions.Config[];
8369
8346
  linebarAutoHidden: boolean;
8370
8347
  bordered: string | boolean;
8371
8348
  uniqueCacheData: boolean;
@@ -8463,7 +8440,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
8463
8440
  businessFormatter: import("..").FormBusinessFormatter;
8464
8441
  requestInstance: import("..").RequestInstance;
8465
8442
  enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
8466
- lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
8443
+ lowCodeReactions: import("..").FormLowCodeReactions.Config[];
8467
8444
  linebarAutoHidden: boolean;
8468
8445
  bordered: string | boolean;
8469
8446
  uniqueCacheData: boolean;
@@ -8613,10 +8590,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
8613
8590
  allow_check_mid_level?: "1" | "2" | "3" | "4" | undefined;
8614
8591
  prefix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
8615
8592
  suffix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
8616
- allowSlash?: string | boolean | undefined;
8593
+ allowSlash?: boolean | undefined;
8617
8594
  allowModify?: "0" | "1" | undefined;
8618
8595
  show_key?: string | undefined;
8619
- whiteList?: string[] | undefined;
8620
8596
  bordered?: string | boolean | undefined;
8621
8597
  fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
8622
8598
  content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
@@ -10358,10 +10334,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
10358
10334
  allow_check_mid_level?: "1" | "2" | "3" | "4" | undefined;
10359
10335
  prefix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
10360
10336
  suffix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
10361
- allowSlash?: string | boolean | undefined;
10337
+ allowSlash?: boolean | undefined;
10362
10338
  allowModify?: "0" | "1" | undefined;
10363
10339
  show_key?: string | undefined;
10364
- whiteList?: string[] | undefined;
10365
10340
  bordered?: string | boolean | undefined;
10366
10341
  fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
10367
10342
  content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
@@ -12076,10 +12051,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
12076
12051
  allow_check_mid_level?: "1" | "2" | "3" | "4" | undefined;
12077
12052
  prefix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
12078
12053
  suffix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
12079
- allowSlash?: string | boolean | undefined;
12054
+ allowSlash?: boolean | undefined;
12080
12055
  allowModify?: "0" | "1" | undefined;
12081
12056
  show_key?: string | undefined;
12082
- whiteList?: string[] | undefined;
12083
12057
  bordered?: string | boolean | undefined;
12084
12058
  fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
12085
12059
  content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
@@ -13792,7 +13766,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
13792
13766
  default: boolean;
13793
13767
  };
13794
13768
  lowCodeReactions: {
13795
- type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
13769
+ type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
13796
13770
  };
13797
13771
  operationalForm: {
13798
13772
  type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
@@ -13937,7 +13911,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
13937
13911
  default: boolean;
13938
13912
  };
13939
13913
  lowCodeReactions: {
13940
- type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
13914
+ type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
13941
13915
  };
13942
13916
  operationalForm: {
13943
13917
  type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
@@ -14096,7 +14070,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14096
14070
  businessFormatter: import("..").FormBusinessFormatter;
14097
14071
  requestInstance: import("..").RequestInstance;
14098
14072
  enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
14099
- lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
14073
+ lowCodeReactions: import("..").FormLowCodeReactions.Config[];
14100
14074
  linebarAutoHidden: boolean;
14101
14075
  bordered: string | boolean;
14102
14076
  uniqueCacheData: boolean;
@@ -14507,7 +14481,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14507
14481
  default: boolean;
14508
14482
  };
14509
14483
  lowCodeReactions: {
14510
- type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
14484
+ type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
14511
14485
  };
14512
14486
  operationalForm: {
14513
14487
  type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
@@ -14637,7 +14611,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14637
14611
  businessFormatter: import("..").FormBusinessFormatter;
14638
14612
  requestInstance: import("..").RequestInstance;
14639
14613
  enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
14640
- lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
14614
+ lowCodeReactions: import("..").FormLowCodeReactions.Config[];
14641
14615
  linebarAutoHidden: boolean;
14642
14616
  bordered: string | boolean;
14643
14617
  uniqueCacheData: boolean;
@@ -14647,124 +14621,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14647
14621
  }>>>;
14648
14622
  };
14649
14623
  }>>, {}>;
14650
- FormConfigEventSetting: import("vue").DefineComponent<{
14651
- modelValue: {
14652
- type: ArrayConstructor;
14653
- required: true;
14654
- default: () => never[];
14655
- };
14656
- }, {
14657
- props: {
14658
- modelValue: import("../../../es/shared/types").FormLowCodeReactions.Config[];
14659
- };
14660
- emit: (event: "update:modelValue" | "validateFailure", ...args: any[]) => void;
14661
- cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
14662
- valueRef: import("vue").Ref<{
14663
- conObj: {
14664
- con: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION;
14665
- field_key: string;
14666
- value: unknown;
14667
- }[];
14668
- sqlExpression?: string | undefined;
14669
- showField?: string[] | undefined;
14670
- hideField?: string[] | undefined;
14671
- requiredField?: string[] | undefined;
14672
- notRequiredField?: string[] | undefined;
14673
- enabledField?: string[] | undefined;
14674
- disabledField?: string[] | undefined;
14675
- __oppositeBindField?: any | undefined;
14676
- __oppositeTargetField?: any | undefined;
14677
- }[]>;
14678
- expandedName: import("vue").Ref<string>;
14679
- addConnection: () => void;
14680
- removeConnection: (index: number) => void;
14681
- getOppositeBtnText: (item: import("../../../es/shared/types").FormLowCodeReactions.Config) => string | undefined;
14682
- unBindOpposite: (item: import("../../../es/shared/types").FormLowCodeReactions.Config) => void;
14683
- addOppositeCondition: (item: import("../../../es/shared/types").FormLowCodeReactions.Config) => void;
14684
- getOppositeSqlExpression: (expression?: string | undefined) => string | undefined;
14685
- createOppositeCondition: (config: import("../../../es/shared/types").FormLowCodeReactions.Config) => import("../../../es/shared/types").FormLowCodeReactions.Config;
14686
- isOppositeConfig: (c1: import("../../../es/shared/types").FormLowCodeReactions.Config, c2: import("../../../es/shared/types").FormLowCodeReactions.Config) => boolean;
14687
- onUpdateExpandedNames: (value: string[]) => void;
14688
- getBinderFieldDesc: (index: number) => string;
14689
- addCondition: (config: import("../../../es/shared/types").FormLowCodeReactions.Config) => void;
14690
- removeCondition: (config: import("../../../es/shared/types").FormLowCodeReactions.Config, index: number) => void;
14691
- onUpdateConditionType: (condition: import("../../../es/shared/types").FormLowCodeReactions.ConObj, type: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION) => void;
14692
- showRef: import("vue").Ref<boolean>;
14693
- fieldListRef: import("vue").Ref<import("./src/types").FormConfigItem[]>;
14694
- fieldOptions: import("vue").ComputedRef<import("./src/types").FormConfigItem[]>;
14695
- currentTypeList: string[];
14696
- dialog: import("naive-ui").DialogApi;
14697
- onNegativeClick: () => Promise<void>;
14698
- onPositiveClick: () => Promise<void>;
14699
- configValidate: () => Promise<void>;
14700
- HelpCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
14701
- NButton: any;
14702
- NModal: any;
14703
- NSpace: any;
14704
- NScrollbar: any;
14705
- NThing: any;
14706
- NInputGroup: import("vue").DefineComponent<{
14707
- [x: string]: never;
14708
- [x: number]: never;
14709
- [x: symbol]: never;
14710
- }, {
14711
- mergedClsPrefix: import("vue").ComputedRef<string>;
14712
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14713
- [x: string]: never;
14714
- [x: number]: never;
14715
- [x: symbol]: never;
14716
- }>>, {}>;
14717
- NSelect: any;
14718
- NInput: any;
14719
- NCollapse: any;
14720
- NCollapseItem: import("vue").DefineComponent<{
14721
- readonly title: StringConstructor;
14722
- readonly name: import("vue").PropType<string | number>;
14723
- readonly disabled: BooleanConstructor;
14724
- readonly displayDirective: import("vue").PropType<"if" | "show">;
14725
- }, {
14726
- rtlEnabled: import("vue").Ref<import("naive-ui/es/config-provider/src/internal-interface").RtlItem | undefined> | undefined;
14727
- collapseSlots: Readonly<{
14728
- [name: string]: import("vue").Slot | undefined;
14729
- }>;
14730
- randomName: string;
14731
- mergedClsPrefix: import("vue").Ref<string>;
14732
- collapsed: import("vue").ComputedRef<boolean>;
14733
- mergedDisplayDirective: import("vue").ComputedRef<"if" | "show">;
14734
- arrowPlacement: import("vue").ComputedRef<"left" | "right">;
14735
- handleClick(e: MouseEvent): void;
14736
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14737
- readonly title: StringConstructor;
14738
- readonly name: import("vue").PropType<string | number>;
14739
- readonly disabled: BooleanConstructor;
14740
- readonly displayDirective: import("vue").PropType<"if" | "show">;
14741
- }>>, {
14742
- readonly disabled: boolean;
14743
- }>;
14744
- NEllipsis: any;
14745
- NEmpty: any;
14746
- NTooltip: any;
14747
- NIcon: any;
14748
- conditionTypeOptions: {
14749
- value: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION;
14750
- label: string;
14751
- }[];
14752
- connectionTypeOptions: {
14753
- value: string;
14754
- label: string;
14755
- }[];
14756
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "validateFailure")[], "update:modelValue" | "validateFailure", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14757
- modelValue: {
14758
- type: ArrayConstructor;
14759
- required: true;
14760
- default: () => never[];
14761
- };
14762
- }>> & {
14763
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
14764
- onValidateFailure?: ((...args: any[]) => any) | undefined;
14765
- }, {
14766
- modelValue: unknown[];
14767
- }>;
14768
14624
  FormConfigMaterialItem: import("vue").DefineComponent<{
14769
14625
  formConfigItem: {
14770
14626
  type: import("vue").PropType<import("./src/types").FormConfigItem>;
@@ -14796,8 +14652,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14796
14652
  }>;
14797
14653
  FORM_CONFIG_GROUP: string;
14798
14654
  NSelect: any;
14799
- NSpace: any;
14800
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("addItem" | "removeItem" | "reactionsValidateFailure")[], "addItem" | "removeItem" | "reactionsValidateFailure", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14655
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("addItem" | "removeItem")[], "addItem" | "removeItem", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14801
14656
  maxHeight: {
14802
14657
  type: StringConstructor;
14803
14658
  };
@@ -14813,7 +14668,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14813
14668
  extraMaterialList: {
14814
14669
  type: import("vue").PropType<import("./src/types").FormConfigItem[] | (() => import("./src/types").FormConfigItem[] | Promise<import("./src/types").FormConfigItem[]>)>;
14815
14670
  };
14816
- showLowCodeReactions: BooleanConstructor;
14817
14671
  formProps: {
14818
14672
  type: import("vue").PropType<Partial<Partial<{
14819
14673
  fieldList: import("..").FieldItem[];
@@ -14894,7 +14748,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14894
14748
  businessFormatter: import("..").FormBusinessFormatter;
14895
14749
  requestInstance: import("..").RequestInstance;
14896
14750
  enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
14897
- lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
14751
+ lowCodeReactions: import("..").FormLowCodeReactions.Config[];
14898
14752
  linebarAutoHidden: boolean;
14899
14753
  bordered: string | boolean;
14900
14754
  uniqueCacheData: boolean;
@@ -14906,8 +14760,5 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14906
14760
  }>> & {
14907
14761
  onAddItem?: ((...args: any[]) => any) | undefined;
14908
14762
  onRemoveItem?: ((...args: any[]) => any) | undefined;
14909
- onReactionsValidateFailure?: ((...args: any[]) => any) | undefined;
14910
- }, {
14911
- showLowCodeReactions: boolean;
14912
- }>>;
14763
+ }, {}>>;
14913
14764
  export default FormConfig;