cnhis-design-vue 3.1.54 → 3.1.55-alpha.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 (432) hide show
  1. package/es/components/annotation-edit/index.d.ts +1 -1
  2. package/es/components/annotation-edit/src/AnnotationEdit.d.ts +1 -1
  3. package/es/components/audio-sdk/index.d.ts +2 -0
  4. package/es/components/audio-sdk/index.js +1 -0
  5. package/es/components/audio-sdk/src/audioSDK.d.ts +28 -0
  6. package/es/components/audio-sdk/src/audioSDK.js +1 -0
  7. package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +27 -0
  8. package/es/components/audio-sdk/src/components/recordingDialog.vue.js +1 -0
  9. package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -0
  10. package/es/components/audio-sdk/src/utils/recordingDialog.d.ts +8 -0
  11. package/es/components/audio-sdk/src/utils/recordingDialog.js +1 -0
  12. package/es/components/audio-sdk/style/index.css +1 -0
  13. package/es/components/base-search/index.d.ts +1 -1
  14. package/es/components/base-search/src/index.vue.d.ts +4 -4
  15. package/es/components/base-search/src/index.vue2.js +1 -1
  16. package/es/components/big-table/index.d.ts +22 -22
  17. package/es/components/big-table/src/BigTable.vue.d.ts +2 -2
  18. package/es/components/big-table/src/bigTableProps.d.ts +1 -1
  19. package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +5 -5
  20. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +1 -1
  21. package/es/components/big-table/src/components/separate.vue.d.ts +1 -1
  22. package/es/components/big-table/src/constants/index.d.ts +1 -1
  23. package/es/components/big-table/src/hooks/useAnnotation.d.ts +1 -1
  24. package/es/components/big-table/src/hooks/useFormat.d.ts +1 -1
  25. package/es/components/big-table/src/hooks/useSeparateRow.d.ts +1 -1
  26. package/es/components/big-table/src/utils.d.ts +1 -1
  27. package/es/components/{multi-chat → biunique-chat}/index.d.ts +16 -16
  28. package/es/components/biunique-chat/index.js +1 -0
  29. package/es/components/{multi-chat/src/MultiChat.vue.d.ts → biunique-chat/src/BiuniqueChat.vue.d.ts} +1 -1
  30. package/es/components/biunique-chat/src/BiuniqueChat.vue.js +1 -0
  31. package/es/components/biunique-chat/src/BiuniqueChat.vue2.js +1 -0
  32. package/es/components/{multi-chat → biunique-chat}/src/api/index.d.ts +1 -1
  33. package/es/components/{multi-chat → biunique-chat}/src/components/ChatFooter.vue.d.ts +1 -1
  34. package/es/components/{multi-chat → biunique-chat}/src/components/ChatHeader.vue.d.ts +1 -1
  35. package/es/components/{multi-chat → biunique-chat}/src/components/ChatMain.vue.d.ts +1 -1
  36. package/es/components/{multi-chat → biunique-chat}/src/components/SiderList.vue.d.ts +1 -1
  37. package/es/components/{multi-chat → biunique-chat}/src/utils/chatSock.d.ts +1 -1
  38. package/es/components/body-select/index.d.ts +5 -5
  39. package/es/components/body-select/src/hooks/renderCanvas.d.ts +2 -2
  40. package/es/components/body-select/src/hooks/renderCanvas.js +1 -1
  41. package/es/components/body-select/src/index.vue.d.ts +1 -1
  42. package/es/components/body-select/src/index.vue2.js +1 -1
  43. package/es/components/bpmn-workflow/index.d.ts +1 -1
  44. package/es/components/button-print/index.d.ts +34 -21
  45. package/es/components/button-print/src/ButtonPrint.vue.d.ts +14 -1
  46. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  47. package/es/components/button-print/src/api.d.ts +1 -1
  48. package/es/components/button-print/src/components/EditFormat.vue.d.ts +1 -1
  49. package/es/components/button-print/src/utils/dialog.d.ts +1 -1
  50. package/es/components/button-print/src/utils/print.d.ts +2 -2
  51. package/es/components/callback/index.d.ts +1 -1
  52. package/es/components/callback/src/components/dialog/drawer.vue.d.ts +1 -1
  53. package/es/components/callback/src/components/dialog/modal.vue.d.ts +1 -1
  54. package/es/components/callback/src/components/render/popupMaps.d.ts +72 -52
  55. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +1 -1
  56. package/es/components/card-reader-sdk/src/components/readCardDialog.vue.d.ts +1 -1
  57. package/es/components/card-reader-sdk/src/constants/index.d.ts +1 -1
  58. package/es/components/card-reader-sdk/src/insuranceSDK.d.ts +1 -1
  59. package/es/components/card-reader-sdk/src/types/index.d.ts +2 -2
  60. package/es/components/card-reader-sdk/src/utils/readHealthCard.d.ts +1 -1
  61. package/es/components/classification/index.d.ts +505 -20
  62. package/es/components/classification/src/components/search-filter/index.vue.d.ts +473 -1
  63. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  64. package/es/components/classification/src/components/set-classification/index.vue.d.ts +480 -8
  65. package/es/components/classification/src/components/table-modal/index.vue.d.ts +1 -1
  66. package/es/components/classification/src/index.vue.d.ts +493 -8
  67. package/es/components/classification/src/index.vue2.js +1 -1
  68. package/es/components/classification/style/index.css +1 -1
  69. package/es/components/config-provider/index.d.ts +1 -1
  70. package/es/components/date-picker/index.d.ts +2 -2
  71. package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
  72. package/es/components/editor/index.d.ts +1 -1
  73. package/es/components/expand-field/index.d.ts +29 -29
  74. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +2 -2
  75. package/es/components/expand-field/src/components/form.vue.d.ts +2 -2
  76. package/es/components/expand-field/src/constants/index.d.ts +1 -1
  77. package/es/components/expand-field/src/index.vue.d.ts +2 -2
  78. package/es/components/fabric-chart/index.d.ts +7 -6
  79. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -1
  80. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  81. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +1 -1
  82. package/es/components/fabric-chart/src/constants/index.d.ts +4 -0
  83. package/es/components/fabric-chart/src/constants/index.js +1 -1
  84. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +3 -3
  85. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  86. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +3 -3
  87. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +2 -2
  88. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
  89. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +2 -2
  90. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  91. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +9 -3
  92. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  93. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.d.ts +2 -2
  94. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +3 -3
  95. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  96. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.d.ts +3 -3
  97. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +3 -3
  98. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +3 -3
  99. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +3 -3
  100. package/es/components/fabric-chart/src/hooks/temperature/useBottom.d.ts +2 -2
  101. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +4 -4
  102. package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +3 -3
  103. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +2 -2
  104. package/es/components/fabric-chart/src/hooks/temperature/useRight.d.ts +2 -2
  105. package/es/components/fabric-chart/src/hooks/temperature/useShadow.d.ts +1 -1
  106. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +3 -3
  107. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  108. package/es/components/fabric-chart/src/hooks/temperature/useTop.d.ts +2 -2
  109. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +2 -2
  110. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +4 -4
  111. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  112. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +2 -2
  113. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
  114. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +2 -2
  115. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +2 -2
  116. package/es/components/fabric-chart/src/interface.d.ts +2 -2
  117. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  118. package/es/components/field-set/index.d.ts +15 -15
  119. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
  120. package/es/components/field-set/src/components/Row.vue.d.ts +2 -2
  121. package/es/components/field-set/src/types/index.d.ts +1 -1
  122. package/es/components/field-set/src/utils/index.d.ts +3 -3
  123. package/es/components/form-config/index.d.ts +349 -302
  124. package/es/components/form-config/src/FormConfig.vue.d.ts +473 -426
  125. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +38 -18
  126. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +1 -1
  127. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +219 -196
  128. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +7 -7
  129. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +1 -1
  130. package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +1 -1
  131. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +2 -2
  132. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +2 -2
  133. package/es/components/form-config/src/constants/index.d.ts +2 -2
  134. package/es/components/form-config/src/hooks/useConfigurationField.d.ts +3 -3
  135. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
  136. package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +1 -1
  137. package/es/components/form-config/src/types/index.d.ts +2 -2
  138. package/es/components/form-config/src/utils/index.d.ts +3 -3
  139. package/es/components/form-render/index.d.ts +72 -52
  140. package/es/components/form-render/index.js +1 -1
  141. package/es/components/form-render/src/FormRender.vue.d.ts +36 -16
  142. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  143. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +95 -75
  144. package/es/components/form-render/src/components/renderer/combination/combination.d.ts +1 -1
  145. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +1 -1
  146. package/es/components/form-render/src/components/renderer/combination/hooks/useDeepValidate.d.ts +1 -1
  147. package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +1 -1
  148. package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +2 -2
  149. package/es/components/form-render/src/components/renderer/complex.js +1 -1
  150. package/es/components/form-render/src/components/renderer/date.js +1 -1
  151. package/es/components/form-render/src/components/renderer/formItem.d.ts +1 -1
  152. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  153. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +1 -1
  154. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +1 -1
  155. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +2 -2
  156. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -1
  157. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  158. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  159. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +2 -2
  160. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  161. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +2 -2
  162. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  163. package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
  164. package/es/components/form-render/src/components/renderer/select.js +1 -1
  165. package/es/components/form-render/src/components/renderer/simpleComponent.d.ts +1 -1
  166. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  167. package/es/components/form-render/src/components/renderer/textarea.js +1 -1
  168. package/es/components/form-render/src/constants/index.d.ts +5 -6
  169. package/es/components/form-render/src/constants/index.js +1 -1
  170. package/es/components/form-render/src/hooks/index.d.ts +20 -9
  171. package/es/components/form-render/src/hooks/index.js +1 -1
  172. package/es/components/form-render/src/hooks/useAnchor.d.ts +2 -2
  173. package/es/components/form-render/src/hooks/useAnchor.js +1 -1
  174. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +2 -2
  175. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  176. package/es/components/form-render/src/hooks/useCommonInjection.d.ts +1 -1
  177. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +2 -2
  178. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  179. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +19 -19
  180. package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -1
  181. package/es/components/form-render/src/hooks/useFormContext.d.ts +6 -6
  182. package/es/components/form-render/src/hooks/useFormEvent.d.ts +15 -4
  183. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  184. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +6 -6
  185. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
  186. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +8 -8
  187. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +17 -12
  188. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  189. package/es/components/form-render/src/hooks/useFormValidator.d.ts +1 -1
  190. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  191. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  192. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +4 -3
  193. package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
  194. package/es/components/form-render/src/hooks/usePresetScope.js +1 -1
  195. package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +14 -5
  196. package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -1
  197. package/es/components/form-render/src/types/fieldItem.d.ts +4 -3
  198. package/es/components/form-render/src/types/index.d.ts +13 -8
  199. package/es/components/form-render/src/utils/business.d.ts +2 -2
  200. package/es/components/form-render/src/utils/dom.d.ts +1 -1
  201. package/es/components/form-render/src/utils/index.d.ts +4 -17
  202. package/es/components/form-render/src/utils/index.js +1 -1
  203. package/es/components/form-render/src/utils/schema.d.ts +2 -2
  204. package/es/components/grid/index.d.ts +1 -1
  205. package/es/components/guide/src/renderer.d.ts +1 -1
  206. package/es/components/guide/src/types/index.d.ts +1 -1
  207. package/es/components/guide/src/useGuide.d.ts +1 -1
  208. package/es/components/guide/src/utils/index.d.ts +1 -1
  209. package/es/components/iho-table/index.d.ts +39 -39
  210. package/es/components/iho-table/src/IhoTable.vue.d.ts +27 -27
  211. package/es/components/iho-table/src/constants/index.d.ts +5 -5
  212. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +9 -9
  213. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +21 -21
  214. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +10 -10
  215. package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.d.ts +4 -4
  216. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +65 -65
  217. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +4 -4
  218. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +7 -7
  219. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +3 -3
  220. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.d.ts +1 -1
  221. package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +2 -2
  222. package/es/components/iho-table/src/plugins/anchorPlugin/index.d.ts +1 -1
  223. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +1 -1
  224. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.d.ts +1 -1
  225. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.js +1 -1
  226. package/es/components/iho-table/src/plugins/colorAndIconPlugin.d.ts +1 -0
  227. package/es/components/iho-table/src/plugins/colorAndIconPlugin.js +1 -0
  228. package/es/components/iho-table/src/plugins/copyPastePlugin.d.ts +1 -1
  229. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.d.ts +1 -1
  230. package/es/components/iho-table/src/plugins/defaultValuePlugin.d.ts +1 -1
  231. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +2 -2
  232. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.d.ts +1 -1
  233. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -1
  234. package/es/components/iho-table/src/plugins/filterVisibleEventPlugin.d.ts +1 -1
  235. package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.d.ts +1 -1
  236. package/es/components/iho-table/src/plugins/headerPlugin.d.ts +1 -1
  237. package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -1
  238. package/es/components/iho-table/src/plugins/index.d.ts +1 -1
  239. package/es/components/iho-table/src/plugins/index.js +1 -1
  240. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +1 -1
  241. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.d.ts +1 -1
  242. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -1
  243. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -1
  244. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -1
  245. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -2
  246. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +1 -1
  247. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +1 -1
  248. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +1 -1
  249. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +1 -1
  250. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.d.ts +1 -1
  251. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -1
  252. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +7 -7
  253. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.d.ts +1 -1
  254. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  255. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/radioRendererPlugin.d.ts +1 -1
  256. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +8 -2
  257. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  258. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +1 -1
  259. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  260. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -2
  261. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
  262. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.d.ts +1 -1
  263. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  264. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +2 -2
  265. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +9 -5
  266. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  267. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.d.ts +1 -1
  268. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.d.ts +1 -1
  269. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.d.ts +1 -1
  270. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.d.ts +1 -1
  271. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  272. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.d.ts +1 -1
  273. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.js +1 -1
  274. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.d.ts +1 -1
  275. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
  276. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +1 -1
  277. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.d.ts +1 -1
  278. package/es/components/iho-table/src/plugins/rowClickPlugin/index.d.ts +1 -1
  279. package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +1 -1
  280. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +1 -1
  281. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +2 -2
  282. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -1
  283. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.d.ts +1 -1
  284. package/es/components/iho-table/src/plugins/wordbookSettingPlugin.d.ts +1 -1
  285. package/es/components/iho-table/src/types/index.d.ts +5 -3
  286. package/es/components/iho-table/src/types/pluginType.d.ts +2 -2
  287. package/es/components/iho-table/src/utils/index.d.ts +4 -4
  288. package/es/components/iho-table/src/utils/index.js +1 -1
  289. package/es/components/iho-table/src/utils/separateMap.d.ts +2 -2
  290. package/es/components/iho-table/style/index.css +1 -1
  291. package/es/components/index.css +1 -1
  292. package/es/components/index.d.ts +6 -5
  293. package/es/components/index.js +1 -1
  294. package/es/components/info-header/index.d.ts +199 -159
  295. package/es/components/info-header/src/InfoHeader.vue.d.ts +213 -173
  296. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +6 -6
  297. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +9 -9
  298. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +118 -98
  299. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +39 -19
  300. package/es/components/info-header/src/constants/index.d.ts +1 -1
  301. package/es/components/info-header/src/types/index.d.ts +1 -1
  302. package/es/components/keyboard/index.d.ts +1 -1
  303. package/es/components/map/index.d.ts +1 -1
  304. package/es/components/map/src/Map.vue.d.ts +1 -1
  305. package/es/components/picture-clipper/index.d.ts +1 -1
  306. package/es/components/picture-clipper/src/PictureClipper.vue.d.ts +1 -1
  307. package/es/components/quick-search/index.d.ts +1 -1
  308. package/es/components/quick-search/src/index.vue.d.ts +4 -4
  309. package/es/components/quick-search/style/index.css +1 -1
  310. package/es/components/recommend-search/index.d.ts +25 -25
  311. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +7 -7
  312. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -3
  313. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +2 -2
  314. package/es/components/scale-view/index.d.ts +1 -1
  315. package/es/components/scale-view/src/hooks/use-component.d.ts +33 -33
  316. package/es/components/scale-view/src/types/index.d.ts +1 -1
  317. package/es/components/search-cascader/index.d.ts +34 -34
  318. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +1 -1
  319. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  320. package/es/components/search-cascader/src/constants/index.d.ts +1 -1
  321. package/es/components/search-cascader/src/utils/index.d.ts +1 -1
  322. package/es/components/select-label/index.d.ts +1 -1
  323. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
  324. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  325. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +3 -3
  326. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +3 -3
  327. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.d.ts +1 -1
  328. package/es/components/select-label/src/index.vue.d.ts +19 -19
  329. package/es/components/select-person/index.d.ts +22 -22
  330. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  331. package/es/components/shortcut-provider/index.d.ts +1 -1
  332. package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -2
  333. package/es/components/shortcut-provider/src/constants/index.d.ts +1 -1
  334. package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +1 -1
  335. package/es/components/shortcut-provider/src/types/index.d.ts +1 -1
  336. package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
  337. package/es/components/shortcut-setter/index.d.ts +93 -72
  338. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +125 -104
  339. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +2 -2
  340. package/es/components/shortcut-setter/src/types/index.d.ts +1 -1
  341. package/es/components/slider-tree/index.d.ts +1 -1
  342. package/es/components/steps-wheel/index.d.ts +1 -1
  343. package/es/components/table-export-field/index.d.ts +3 -3
  344. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +1 -1
  345. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +1 -1
  346. package/es/components/table-export-field/src/constants/index.d.ts +1 -1
  347. package/es/components/table-export-field/src/index.vue.d.ts +1 -1
  348. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +320 -0
  349. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.js +1 -0
  350. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +1 -0
  351. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +127 -0
  352. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.js +1 -0
  353. package/es/components/table-filter/src/components/bi-filter/components/Date.vue2.js +1 -0
  354. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.d.ts +41 -0
  355. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.js +1 -0
  356. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue2.js +1 -0
  357. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.d.ts +28 -0
  358. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.js +1 -0
  359. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue2.js +1 -0
  360. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +51 -0
  361. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.js +1 -0
  362. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue2.js +1 -0
  363. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +244 -0
  364. package/es/components/table-filter/src/components/bi-filter/components/index.js +1 -0
  365. package/es/components/table-filter/src/components/bi-filter/helpers/options.d.ts +14 -0
  366. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -0
  367. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +13 -0
  368. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.js +1 -0
  369. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +474 -0
  370. package/es/components/table-filter/src/components/bi-filter/index.vue.js +1 -0
  371. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +1 -0
  372. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +1 -1
  373. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -1
  374. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +2 -2
  375. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  376. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +2 -2
  377. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +2 -2
  378. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
  379. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +2 -2
  380. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +2 -2
  381. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +1 -1
  382. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +2 -2
  383. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +1 -1
  384. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +1 -1
  385. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +1 -1
  386. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +9 -9
  387. package/es/components/table-filter/src/constants/index.d.ts +2 -1
  388. package/es/components/table-filter/src/constants/index.js +1 -1
  389. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -2
  390. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -1
  391. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +1 -1
  392. package/es/components/table-filter/src/tool/transformData.d.ts +1 -1
  393. package/es/components/time-line/index.d.ts +1 -1
  394. package/es/components/time-picker/index.d.ts +2 -2
  395. package/es/components/time-picker/src/TimePicker.vue.d.ts +1 -1
  396. package/es/components/vod-chunk-upload/index.d.ts +1 -1
  397. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +5 -3
  398. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  399. package/es/shared/components/SelectPage/SelectPage.vue.d.ts +1 -1
  400. package/es/shared/components/SlotRender/SlotRender.d.ts +1 -1
  401. package/es/shared/hooks/selectHooks/useOptionFiltered.d.ts +1 -1
  402. package/es/shared/hooks/selectHooks/useSearchContent.d.ts +1 -1
  403. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
  404. package/es/shared/hooks/selectHooks/useSelectAllowModify.d.ts +1 -1
  405. package/es/shared/hooks/selectHooks/useSelectRenders.d.ts +1 -1
  406. package/es/shared/hooks/useAsyncQueue/types.d.ts +1 -1
  407. package/es/shared/hooks/useDateTime.d.ts +1 -1
  408. package/es/shared/hooks/useFormRequest/index.d.ts +2 -2
  409. package/es/shared/hooks/useFormRequest/types.d.ts +2 -2
  410. package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -2
  411. package/es/shared/hooks/useTheme.d.ts +1 -1
  412. package/es/shared/package.json.js +1 -1
  413. package/es/shared/types/business.d.ts +1 -1
  414. package/es/shared/utils/business.d.ts +2 -1
  415. package/es/shared/utils/business.js +1 -1
  416. package/es/shared/utils/index.d.ts +1 -1
  417. package/es/shared/utils/index.js +1 -1
  418. package/package.json +3 -2
  419. package/es/components/multi-chat/index.js +0 -1
  420. package/es/components/multi-chat/src/MultiChat.vue.js +0 -1
  421. package/es/components/multi-chat/src/MultiChat.vue2.js +0 -1
  422. /package/es/components/{multi-chat → biunique-chat}/src/api/index.js +0 -0
  423. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatFooter.vue.js +0 -0
  424. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatFooter.vue2.js +0 -0
  425. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatHeader.vue.js +0 -0
  426. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatHeader.vue2.js +0 -0
  427. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatMain.vue.js +0 -0
  428. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatMain.vue2.js +0 -0
  429. /package/es/components/{multi-chat → biunique-chat}/src/components/SiderList.vue.js +0 -0
  430. /package/es/components/{multi-chat → biunique-chat}/src/components/SiderList.vue2.js +0 -0
  431. /package/es/components/{multi-chat → biunique-chat}/src/utils/chatSock.js +0 -0
  432. /package/es/components/{multi-chat → biunique-chat}/style/index.css +0 -0
@@ -1 +1 @@
1
- import{fabric as e}from"../../../../../../shared/utils/fabricjs/index.js";import{range as t}from"lodash-es";import{defaultStyle as n}from"../../useDraw.js";import{useElectrocardiogramCumputedPoint as o}from"../../useCumputedPoint.js";import"../../useEvent.js";import"vue";import"date-fns";import"../../temperature/useShadow.js";import"naive-ui";import"@vueuse/core";function r(r,i){const{scale:l,beforeEvent:s,endY:u,endX:a,showScaleText:f,showNumberText:p,detailRadius:c,points:y,lineStartIndex:d,xCellWidth:h,yCellHeight:m,grid:w={subLineStyle:{},mainLineStyle:{x:{},y:{}}}}=i;let x=null;const{computedX:g,cumputedY:v,getYValue:b}=o(i);function S(e){return g(e)*l}function k(e){return v(e)*l}function L(e){return b(e/l)}const j=h*l,G=m*l;function T(){var e;x&&(null==(e=r.canvas)||e.remove(x)),x=null}r.on("mousedown",(async o=>{var i,h;if(await(null==s?void 0:s()),1!==o.button||!o.target||!o.pointer)return;const m=o.target;if(!m.points)return;const{x:g,y:v}=o.pointer,b=Math.floor((g-m.left)/m.width*m.points.length)+d;let M=b-c,C=b+c;M<=0?(M=0,C=Math.min(2*c,y.length-1)):C>=y.length-1&&(C=y.length-1,M=Math.max(y.length-2*c,0));const W=y.slice(M,C).map(((e,t)=>({x:M+S(t),y:k(e)}))),Y=b-M;let $=0,E=0;W.forEach(((e,t)=>{e.y>W[$].y&&($=t),e.y<W[E].y&&(E=t)}));const X=S(2*c-1),z=W[$].y-W[E].y-1,A=z+30+70,D={x:a-g<=X?g-X:g,y:u-v<=A?v-A:v};T(),x=new e.Group;const P=[new e.Rect({...n,left:D.x,top:D.y,width:X,height:A,stroke:"transparent",fill:"#fff",shadow:new e.Shadow({color:"rgba(0, 0, 0, 0.3)",blur:15,offsetX:8,offsetY:8})}),function(){const n=e=>e%5?w.subLineStyle:null,o=Math.ceil(A/G*5),r=new e.Group(t(o).map((t=>{const o=t*G/5;return new e.Line([0,o,X,o],{...w.mainLineStyle.y,...n(t)})}))),i=Math.ceil(X/j*5),l=new e.Group(t(i).map((t=>{const o=t*j/5;return new e.Line([o,0,o,A],{...w.mainLineStyle.x,...n(t)})})));return new e.Group([l,r],{left:D.x,top:D.y})}(),(I=W.map((({x:e,y:t})=>({x:e,y:-t}))),new e.Polyline(I,{...n,fill:"transparent",stroke:"red",strokeWidth:1,left:D.x,top:D.y+30})),function(t,o){const r={strokeDashArray:[3,4],width:3,top:D.y},i=new e.Line(u(t[$]),{...n,...r,left:D.x+$/t.length*X,stroke:"red"}),l=new e.Line(u(t[E]),{...n,...r,stroke:"blue",left:D.x+E/t.length*X}),s=new e.Line(u(t[o]),{...n,...r,stroke:"green",left:D.x+o/t.length*X});return new e.Group([i,l,s]);function u(e){return[e.x,e.y,e.x,e.y-A]}}(W,Y),(R=W,H=Y,new e.Circle({...n,radius:5,fill:"transparent",stroke:"green",strokeWidth:1,left:D.x+H/R.length*X-5,top:D.y+(R[H].y-R[$].y)/(R[E].y-R[$].y)*z-5+30}))];var R,H,I;f&&P.push(new e.Text(`x${l}`,{...n,fill:"black",fontSize:20,left:D.x+10,top:D.y+A-30})),p&&P.push(function(t,o){const r={fontSize:16,left:D.x+X/2+10},i=new e.Text(`最大: ${L(t[$].y)} mv`,{...n,...r,fill:"red",top:D.y+A-20}),l=new e.Text(`最小: ${L(t[E].y)} mv`,{...n,...r,fill:"blue",top:D.y+A-40}),s=new e.Text(`当前: ${L(t[o].y)} mv`,{...n,...r,fill:"green",top:D.y+A-60});return new e.Group([i,l,s])}(W,Y)),x.add(...P).addWithUpdate(),null==(i=r.canvas)||i.add(x),null==(h=r.canvas)||h.discardActiveObject()})),r.on("mouseup",(async e=>{await(null==s?void 0:s()),1===e.button&&T()}))}export{r as useDetailEvent};
1
+ import{fabric as e}from"../../../../../../shared/utils/fabricjs/index.js";import{range as t}from"lodash-es";import{defaultStyle as n}from"../../useDraw.js";import{useElectrocardiogramCumputedPoint as o}from"../../useCumputedPoint.js";import"../../useEvent.js";import"vue";import"date-fns";import"../../temperature/useShadow.js";import"naive-ui";import"@vueuse/core";function r(r,i){const{scale:l,beforeEvent:a,endY:s,endX:u,showScaleText:c,showNumberText:y,detailRadius:f,points:p,lineStartIndex:h,xCellWidth:d,yCellHeight:m,grid:x={subLineStyle:{},mainLineStyle:{x:{},y:{}}}}=i;let w=null;const{computedX:g,computedY:v,getYValue:b}=o(i);function S(e){return g(e)*l}function L(e){return v(e)*l}function k(e){return b(e/l)}const M=m*l;function j(){var e;w&&(null==(e=r.canvas)||e.remove(w)),w=null}r.on("mousedown",(async o=>{var i,d;if(await(null==a?void 0:a()),1!==o.button||!o.target||!o.pointer)return;const m=o.target;if(!m.points)return;const{x:g,y:v}=o.pointer,b=Math.floor((g-m.left)/m.width*m.points.length)+h;let G=b-f,T=b+f;G<=0?(G=0,T=Math.min(2*f,p.length-1)):T>=p.length-1&&(T=p.length-1,G=Math.max(p.length-2*f,0));const C=p.slice(G,T).map(((e,t)=>({x:G+S(t),y:L(e)}))),W=b-G;let Y=0,$=0;C.forEach(((e,t)=>{e.y>C[Y].y&&(Y=t),e.y<C[$].y&&($=t)}));const E=S(2*f-1),X=C[Y].y-C[$].y-1,z=X+30+70,A={x:u-g<=E?g-E:g,y:s-v<=z?v-z:v};j(),w=new e.Group;const D=[new e.Rect({...n,left:A.x,top:A.y,width:E,height:z,stroke:"transparent",fill:"#fff",shadow:new e.Shadow({color:"rgba(0, 0, 0, 0.3)",blur:15,offsetX:8,offsetY:8})}),function(n,o){const r=e=>e%5?x.subLineStyle:null,i=M/5,l=30+n[Y].y/Math.abs(n[Y].y-n[$].y)*X,a=Math.ceil(l/i),s=Math.ceil((z-l)/i);function u(t,n){return new e.Line([A.x,A.y+t,A.x+E,A.y+t],{...x.mainLineStyle.x,...r(n)})}const c=new e.Group([...t(s).map((e=>u(e*i+l,e))),...t(a).map((e=>u(-e*i+l,e)))]),y=o/n.length*E,f=Math.ceil(y/i),p=Math.ceil((E-y)/i);function h(t,n){return new e.Line([A.x+t,A.y,A.x+t,A.y+z],{...x.mainLineStyle.y,...0===n?x.subLineStyle:r(n)})}const d=new e.Group([...t(p).map((e=>h(e*i+y,e))),...t(f).map((e=>h(-e*i+y,e)))]);return new e.Group([d,c])}(C,W),(H=C.map((({x:e,y:t})=>({x:e,y:-t}))),new e.Polyline(H,{...n,fill:"transparent",stroke:"red",strokeWidth:1,left:A.x,top:A.y+30})),function(t,o){const r={strokeDashArray:[3,4],width:3,top:A.y},i=new e.Line(s(t[Y]),{...n,...r,left:A.x+Y/t.length*E,stroke:"red"}),l=new e.Line(s(t[$]),{...n,...r,stroke:"blue",left:A.x+$/t.length*E}),a=new e.Line(s(t[o]),{...n,...r,stroke:"green",left:A.x+o/t.length*E});return new e.Group([i,l,a]);function s(e){return[e.x,e.y,e.x,e.y-z]}}(C,W),(P=C,R=W,new e.Circle({...n,radius:5,fill:"transparent",stroke:"green",strokeWidth:1,left:A.x+R/P.length*E-5,top:A.y+30+(P[Y].y-P[R].y)/Math.abs(P[Y].y-P[$].y)*X-5}))];var P,R,H;c&&D.push(new e.Text(`x${l}`,{...n,fill:"black",fontSize:20,left:A.x+10,top:A.y+z-30})),y&&D.push(function(t,o){const r={fontSize:16,left:A.x+E/2+10},i=new e.Text(`最大: ${k(t[Y].y)} mv`,{...n,...r,fill:"red",top:A.y+z-20}),l=new e.Text(`最小: ${k(t[$].y)} mv`,{...n,...r,fill:"blue",top:A.y+z-40}),a=new e.Text(`当前: ${k(t[o].y)} mv`,{...n,...r,fill:"green",top:A.y+z-60});return new e.Group([i,l,a])}(C,W)),w.add(...D).addWithUpdate(),null==(i=r.canvas)||i.add(w),null==(d=r.canvas)||d.discardActiveObject()})),r.on("mouseup",(async e=>{await(null==a?void 0:a()),1===e.button&&j()}))}export{r as useDetailEvent};
@@ -1,5 +1,5 @@
1
- import { AnyObject } from '../../../../../../es/shared/types';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
1
+ import { AnyObject } from '../../../../../shared/types';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
3
  import { type Ref } from 'vue';
4
4
  export declare function useElectrocardiogram(canvas: Ref<fabric.Canvas>, propItems: AnyObject, flag: Ref<boolean>): {
5
5
  updatePolyline: (value: number) => void;
@@ -1 +1 @@
1
- import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useThrottleFn as t}from"@vueuse/core";import{range as r}from"lodash-es";import{useDetailEvent as o}from"./hooks/useDetailEvent.js";import{defaultTextStyle as n,drawLine as i}from"../useDraw.js";import{useGrid as a}from"../useGrid.js";import{useElectrocardiogramCumputedPoint as s}from"../useCumputedPoint.js";import"../useEvent.js";import"vue";import"date-fns";import"../temperature/useShadow.js";import"naive-ui";function l(l,u,d){const{computedX:c,cumputedY:m}=s(u),{borderStyle:h,originX:f,originY:g,xCellWidth:p,yCellHeight:v,canvasWidth:x,canvasHeight:b,dataList:j,columnNumber:w,gridYNumber:C,gridXNumber:k}=u,y=new Set,S=new Set;function E(t=0){j.forEach(((r,o)=>{if(o===j.length-1&&arguments.length)return;const{x:i,y:a}=r.origin,s=~~(r.data.length/w),l=r.data.reduce(((e,r,n)=>{const i=o<12&&n>=t&&n<=t+s||12===o?[{x:c(e.length+1),y:m(-+r)}]:[];return e.concat(i)}),[]),h=new e.Polyline(l,{fill:"transparent",stroke:"red",strokeWidth:1,left:i,top:a,hasControls:!1,hasBorders:!1,hoverCursor:"default",lockMovementX:!0,lockMovementY:!0,objectCaching:!0});if(N(h,{...u.config,...u,lineStartIndex:t,points:r.data,scale:4,showScaleText:!0,showNumberText:!0,detailRadius:370,beforeEvent:()=>d.value&&Promise.reject()}),h.startIdx=t,o<j.length-1?y.add(h):S.add(h),arguments.length)return;const f=new e.Text(String(r.title),{...n,left:i+p,top:a});S.add(f)}));const r=arguments.length?[...y]:[...y,...S];l.value.add(...r)}function N(e,t){o(e,t)}a(l,{...u,gridXNumber:5*k,gridYNumber:5*C,xCellWidth:p/5,yCellHeight:v/5,grid:{...u.grid,subXCell:5,subYCell:5}}),function(){const{strokeWidth:t}=h,r=new e.Rect({...h,width:x-t,height:b-t,left:f,top:g,fill:"transparent"});l.value.add(r)}(),function(){const e=x/w,t=[];r(w).forEach((r=>{if(r+1>=w)return;const o=(r+1)*e,n=i([o,0,o,b],{stroke:"#000"});t.push(n)})),l.value.add(...t)}(),E();return{updatePolyline:t((t=>{if(1===w)return;const r=j[j.length-1].data.length,o=~~(r/w),n=t/100*r-o/2,i=n+o>r?r-o:Math.max(0,n);e.util.requestAnimFrame((()=>{if(y.size){const[e]=[...y];if(e.startIdx===i)return;[...y].forEach((e=>l.value.remove(e))),y.clear()}E(i)}))}),150)}}export{l as useElectrocardiogram};
1
+ import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useThrottleFn as t}from"@vueuse/core";import{range as r}from"lodash-es";import{useDetailEvent as o}from"./hooks/useDetailEvent.js";import{defaultTextStyle as i,drawLine as n}from"../useDraw.js";import{useGrid as s}from"../useGrid.js";import{useElectrocardiogramCumputedPoint as a}from"../useCumputedPoint.js";import"../useEvent.js";import"vue";import"date-fns";import"../temperature/useShadow.js";import{ECG as l}from"../../constants/index.js";import"naive-ui";function d(d,u,m){const{computedX:c,computedY:h}=a(u),{borderStyle:f,originX:g,originY:p,xCellWidth:L,yCellHeight:E,canvasWidth:M,canvasHeight:v,dataList:N,columnNumber:C,gridYNumber:x,gridXNumber:b,rowNumber:S}=u,w=new Set,j=new Set;function R(t=0){N.forEach(((r,o)=>{if(o===N.length-1&&arguments.length)return;const{x:n,y:s,rowIdx:a}=r.origin,d=~~(r.data.length/C),f=r.data.reduce(((e,r,i)=>{const n=o<l.MAXLINENUMBER-1&&i>=t&&i<=t+d||o===l.MAXLINENUMBER-1?[{x:c(e.length+1),y:h(-+r)}]:[];return e.concat(n)}),[]),g=new e.Polyline(f,{fill:"transparent",stroke:"red",strokeWidth:1,left:n,top:s,hasControls:!1,hasBorders:!1,hoverCursor:"default",lockMovementX:!0,lockMovementY:!0,objectCaching:!0});if(A(g,{...u.config,...u,lineStartIndex:t,points:r.data,scale:4,showScaleText:!0,showNumberText:!0,detailRadius:370,beforeEvent:()=>m.value&&Promise.reject()}),g.startIdx=t,o<N.length-1?w.add(g):j.add(g),arguments.length)return;const p=new e.Text(String(r.title),{...i,left:n+L,top:s,originX:"left",originY:"top"});j.add(p)}));const r=arguments.length?[...w]:[...w,...j];d.value.add(...r)}function A(e,t){o(e,t)}s(d,{...u,gridXNumber:b*l.SMALLCELLNUMBER,gridYNumber:x*l.SMALLCELLNUMBER,xCellWidth:L/l.SMALLCELLNUMBER,yCellHeight:E/l.SMALLCELLNUMBER,grid:{...u.grid,subXCell:l.SMALLCELLNUMBER,subYCell:l.SMALLCELLNUMBER}}),function(){const{strokeWidth:t}=f,r=new e.Rect({...f,width:M-t,height:v-t,left:g,top:p,fill:"transparent"});d.value.add(r)}(),function(){const e=M/C,t=[];r(C).forEach((r=>{if(r+1>=C)return;const o=(r+1)*e,i=n([o,0,o,v],{stroke:"#000"});t.push(i)})),d.value.add(...t)}(),R();return{updatePolyline:t((t=>{if(1===C)return;const r=N[N.length-1].data.length,o=~~(r/C),i=t/100*r-o/2,n=i+o>r?r-o:Math.max(0,i);e.util.requestAnimFrame((()=>{if(w.size){const[e]=[...w];if(e.startIdx===n)return;[...w].forEach((e=>d.value.remove(e))),w.clear()}R(n)}))}),150)}}export{d as useElectrocardiogram};
@@ -1,11 +1,17 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../../es/shared/types';
4
- import { IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../shared/types';
4
+ import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
5
+ import { ECG } from '../../../../../components/fabric-chart/src/constants';
5
6
  export declare function useElectrocardiogramChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
6
7
  propItems: any;
7
8
  updatePolyline: Ref<any>;
8
9
  useMeasureRuler: Ref<any>;
9
10
  useCaliper: Ref<any>;
10
11
  useCaliperRuler: Ref<any>;
12
+ getGridInfo: () => {
13
+ cellWidth: number;
14
+ cellHeight: number;
15
+ smallCellNumber: ECG;
16
+ };
11
17
  };
@@ -1 +1 @@
1
- import{ref as e,computed as a,reactive as t,unref as u,watch as r}from"vue";import{defaultBorderStyle as l}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import"date-fns";import"lodash-es";import"../useEvent.js";import"../temperature/useShadow.js";import"naive-ui";import"@vueuse/core";import{useElectrocardiogram as i}from"./useElectrocardiogram.js";import{useMeasureInstrument as n}from"./useMeasureInstrument.js";function o(o,d,s,m,v,c){const g=e(),h=e(),p=e(),f=e(),b=a((()=>d.data.width)),C=a((()=>d.data.height)),M=a((()=>(b.value-0)/j.value)),N=a((()=>(C.value-0)/w.value)),j=a((()=>{const{dataList:e,config:a}=d.data,t=e[e.length-1].data.length/a.hz;return Math.ceil(t/a.mainXCellValue)})),w=a((()=>{const{config:e}=d.data;return Math.ceil((13*y.value+2*e.mainYCellValue)/e.mainYCellValue)})),y=a((()=>{const{dataList:e,config:a}=d.data,t=e[e.length-1].data,u=Math.max(...t)-Math.min(...t);return"uv"===a.valueUnit?.001*u:"v"===a.valueUnit?1e3*u:u})),Y=a((()=>{var e;return(null==(e=d.data.grid)?void 0:e.event)||{selectable:!0,evented:!0}})),x=a((()=>{const{mode:e="2-6"}=d.data,[a,t]=e.split("-").map((e=>+e));return{columnNumber:a,rowNumber:t}})),L=a((()=>{const{dataList:e,width:a,config:t}=d.data,{columnNumber:u,rowNumber:r}=x.value,l=a/u,i=y.value/t.mainYCellValue*N.value+N.value,n=N.value;return e.map(((a,t)=>{const u=t===e.length-1?r:t%r;return{...a,origin:{x:(t===e.length-1?0:Math.floor(t/r))*l,y:u*i+n}}}))})),R=t({canvasWidth:d.data.width,canvasHeight:d.data.height,borderStyle:{...l,...d.data.borderStyle||{}},grid:d.data.grid,originX:0,endX:b.value,originY:0,endY:C.value,xCellWidth:M.value,yCellHeight:N.value,gridXNumber:j.value,gridYNumber:w.value,event:Y.value,dataList:L.value,columnNumber:u(x).columnNumber,config:d.data.config});return r((()=>o.value),(e=>{e&&function(){const{useMeasureRuler:e,flag:a,useCaliper:t,useCaliperRuler:u}=n(o,R),{updatePolyline:r}=i(o,R,a);h.value=e,p.value=t,f.value=u,g.value=r}()}),{immediate:!0}),{propItems:R,updatePolyline:g,useMeasureRuler:h,useCaliper:p,useCaliperRuler:f}}export{o as useElectrocardiogramChart};
1
+ import{ref as e,computed as a,reactive as t,unref as r,watch as u}from"vue";import{defaultBorderStyle as l}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import"date-fns";import"lodash-es";import"../useEvent.js";import"../temperature/useShadow.js";import{ECG as i}from"../../constants/index.js";import"naive-ui";import"@vueuse/core";import{useElectrocardiogram as n}from"./useElectrocardiogram.js";import{useMeasureInstrument as o}from"./useMeasureInstrument.js";function d(d,s,m,v,c,g){const h=e(),p=e(),f=e(),N=e(),b=a((()=>s.data.width)),M=a((()=>s.data.height)),C=a((()=>(b.value-0)/L.value)),w=a((()=>(M.value-0)/j.value)),L=a((()=>{const{dataList:e,config:a}=s.data,t=e[e.length-1].data.length/a.hz;return Math.ceil(t/a.mainXCellValue)})),j=a((()=>{const{config:e}=s.data;return Math.ceil(26*E.value/e.mainYCellValue)})),E=a((()=>{const{dataList:e,config:a}=s.data,t=e[e.length-1].data,r=Math.max(...t)-Math.min(...t);return"uv"===a.valueUnit?.001*r:"v"===a.valueUnit?1e3*r:r})),x=a((()=>{var e;return(null==(e=s.data.grid)?void 0:e.event)||{selectable:!0,evented:!0}})),R=a((()=>{const{mode:e="2-6"}=s.data,[a,t]=e.split("-").map((e=>+e));return{columnNumber:a,rowNumber:t}})),y=a((()=>{const{dataList:e,width:a,config:t}=s.data,{columnNumber:r,rowNumber:u}=R.value,l=a/r,n=E.value/t.mainYCellValue*w.value+w.value,o=w.value,d=e.length;return e.map(((e,a)=>{const t=i.MAXLINENUMBER===d&&a===d-1?u:a%u;return{...e,origin:{x:(i.MAXLINENUMBER===d&&a===d-1?0:Math.floor(a/u))*l,y:t*n+o,rowIdx:t}}}))})),I=t({canvasWidth:s.data.width,canvasHeight:s.data.height,borderStyle:{...l,...s.data.borderStyle||{}},grid:s.data.grid,originX:0,endX:b.value,originY:0,endY:M.value,xCellWidth:C.value,yCellHeight:w.value,gridXNumber:L.value,gridYNumber:j.value,event:x.value,dataList:y.value,columnNumber:r(R).columnNumber,rowNumber:r(R).rowNumber,config:s.data.config});return u((()=>d.value),(e=>{e&&function(){const{useMeasureRuler:e,flag:a,useCaliper:t,useCaliperRuler:r}=o(d,I),{updatePolyline:u}=n(d,I,a);p.value=e,f.value=t,N.value=r,h.value=u}()}),{immediate:!0}),{propItems:I,updatePolyline:h,useMeasureRuler:p,useCaliper:f,useCaliperRuler:N,getGridInfo:function(){return{cellWidth:C.value,cellHeight:w.value,smallCellNumber:i.SMALLCELLNUMBER}}}}export{d as useElectrocardiogramChart};
@@ -1,6 +1,6 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../../es/shared/types';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../shared/types';
4
4
  export declare function useMeasureInstrument(canvas: Ref<fabric.Canvas>, propItems: AnyObject): {
5
5
  flag: Ref<boolean>;
6
6
  useMeasureRuler: () => void;
@@ -1,7 +1,7 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../../es/shared/types';
4
- import { IObject, IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../shared/types';
4
+ import { IObject, IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
5
5
  export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
6
6
  redrawPoints: (ItemObj?: AnyObject) => void;
7
7
  clickMenu: ({ item, target }: {
@@ -1 +1 @@
1
- import{onUnmounted as e}from"vue";import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{defaultStyle as n,drawLine as i,drawPoint as o}from"../useDraw.js";import{useGrid as l}from"../useGrid.js";import{useBirthProcessCumputedPoint as r}from"../useCumputedPoint.js";import{bus as a}from"../useEvent.js";import{useCommon as s}from"../useCommon.js";import{getPointRange as f,getIndex as c,isEffectiveNode as u,getTime as d}from"../../utils/index.js";import{cloneDeep as p,omit as m}from"lodash-es";import"date-fns";import"../temperature/useShadow.js";import"naive-ui";import{useIntervalFn as v}from"@vueuse/core";function g(g,y,h,k,x){const{computedX:L,cumputedY:P,getXValue:b,getYValue:w}=r(y),{xCellWidth:A,pointSelectionStyle:I,originX:C,endX:K,originY:j,endY:E,event:X,scaleValues:M,xAxis:T,startTime:V,timeXCell:Y,itemList:S,dialog:$}=y,F=new Map,O=new Set,D=p(M);let _=[],z=null;const N=new Set;l(g,y);const{getEqualXTypes:G,handleAddPrevent:J,setPrevAndNextPoint:q}=s(g,h,y),{pause:R,resume:W}=v((()=>{!function(){if(!N.size)return;for(const e of N)e.set("opacity",1===e.opacity?.5:1);g.value.renderAll()}()}),800);function B(){D.forEach((e=>{e.dataList.forEach(((t,n)=>{t.show&&(!function(e,t){const{max:n={},min:o={}}=e.panicValue||{},{max:l={},min:r={}}=e.diffValue||{};function a({show:e=!1,value:n,name:o,lineStyle:l}){if(!e||!n)return;const r=P(t.type,t.range,n),a=i([C,r,K,r],{...l,evented:!0,lockMovementX:!0,lockMovementY:!0,hoverCursor:"pointer"});X.hovered&&o&&(a.on("mousemove",(({pointer:e})=>{k.point={...e||{x:a.left,y:a.top}},k.list=[`${o} ${n}${t.unit||""}`],k.show=!0})),a.on("mouseout",(()=>{k.show=!1}))),g.value.add(a)}a(n),a(o),a(l),a(r)}(t,e),Z(t,n,e))}))}))}function H(e=[]){if(!(null==z?void 0:z.areaPos))return[];const{startPos:t,endPos:n}=z.areaPos,[i,o]=[t.x,n.x].sort(((e,t)=>e-t)),[l,r]=[t.y,n.y].sort(((e,t)=>e-t));return(e.length?e:se()).filter((e=>e.left>=i&&e.left<=o&&e.top>=l&&e.top<=r))}function Q(e){$.warning({maskClosable:!1,closeOnEsc:!1,title:"警告",content:"确认删除当前选中的节点?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{e(),U()},onNegativeClick:()=>U(),onClose:()=>U()})}function U(){z&&g.value.remove(z),z=null}function Z(e,t,n){var l;const{type:r,unit:a,dataList:s=[]}=n,f=[];F.set(e.key,[]),function(e,t){N.size&&[...N].forEach((n=>{const{dataIndex:i,type:o}=n.origin;i===t&&o===e&&N.delete(n)}))}(r,t),null==(l=e.list)||l.forEach(((l,c)=>{!function(e,l,c,u){var d;let p,v,x=u;l.key&&(x=s.find((e=>e.key===l.key)));const{pointAttr:L={},lineAttr:P={},title:I="",key:C,type:K="circle"}=x,j=ae(u.list[c+1],n);e&&j&&!l.breakpoint&&e[0]!==j[0]&&(v=i([...e,...j],P));const E=f[c-1],M={origin:{data:l,title:I,key:u.key,selfKey:C,unit:a,type:r,dataIndex:t,index:c,lineAttr:P},__type:"main",leftLine:E,rightLine:v,...L,...y.event.hovered?y.event.evented?{selectable:!0}:{selectable:!0,lockMovementX:!0,lockMovementY:!0}:y.event};E?p=o(K,{left:E.get("x2"),top:E.get("y2"),...M}):e&&(M.leftLine=null,p=o(K,{left:e[0],top:e[1],...M}));f.push(v),p&&(p.originLeft=p.left,p.originTop=p.top,function(e){X.hovered&&(e.on("mouseover",(()=>{le(e,"hover")})),e.on("mouseout",(()=>{k.show=!1})));if(e.lockMovementX&&e.lockMovementY)return;e.on("moving",(()=>{re(e),function(e){var t,n;null==(t=e.leftLine)||t.setCoords().set({x2:e.left,y2:e.top}),null==(n=e.rightLine)||n.setCoords().set({x1:e.left,y1:e.top})}(e),X.hovered&&le(e),function(e){var t,n,i,o;const{originLeft:l,originTop:r,left:a,top:s,origin:f}=e,c=~~((a-l)/A);if(a>l+A){if(0===_.length){te(e,[...e.leftLine?[e.leftLine.x1,e.leftLine.y1]:[l,r],l,r]),null==(n=null==(t=e.leftLine)?void 0:t.set)||n.call(t,"stroke","transparent"),null==(o=null==(i=e.rightLine)?void 0:i.set)||o.call(i,"stroke","transparent")}const u=l+A*c;if(_.every((e=>e.left!==u))){const t=b(u),n=w(f.type,s);_.push({data:{time:t,value:n,...f.selfKey!==f.key?{key:f.selfKey}:{}},left:u,top:s}),te(e,[...e.prevPointer,u,s])}if(_.length<c&&function(e,t){const{originLeft:n,originTop:i,origin:o}=e;let l=1;for(;l<=t;){const t=n+A*l,r=_.some((e=>Math.abs(e.left-t)<=1));if(!r){let l=0;const r=_.find(((e,n)=>(e.left>t&&(l=n),e.left>t)));if(r){const a=JSON.parse(JSON.stringify(r)),s=_[l-1]||{left:n,top:i},f=~~((r.left-(t-A))/A),c=(r.top-s.top)/f;a.top=s.top+c,a.left=t,a.data={time:b(t),value:w(o.type,a.top),...o.selfKey!==o.key?{key:o.selfKey}:{}},_.splice(l,0,a),te(e,[s.left,s.top,a.left,a.top])}}l++}}(e,c),e.nextPoint){const t=F.get(f.key);!function(e,t){const{left:n,top:i,origin:o}=t,l=A/2,r=e.findIndex((e=>Math.abs(n-e.left)<l&&Math.abs(i-e.top)<l&&o.index!==e.origin.index));r>-1?(t.set({scaleX:2.5,scaleY:2.5}),t.coincidePoint=e[r]):t.set({scaleX:t.scale,scaleY:t.scale})}(t,e),null==t||t.forEach((e=>{e.left<=l||f.index===e.origin.index||(e.left<a?ee(e,"#999"):ee(e,e.origin.lineAttr.stroke))}))}}!function(e){var t,n;const{left:i}=e;if(_.length>0&&i<_[_.length-1].left){for(const e of O)e.left>i&&(e.leftLine&&g.value.remove(e.leftLine),g.value.remove(e));if(_=_.filter((e=>e.left<=i)),0===_.length){null==(n=null==(t=e.leftLine)?void 0:t.set)||n.call(t,e.origin.lineAttr);for(const e of O)e.leftLine&&g.value.remove(e.leftLine),g.value.remove(e)}if(_.length>0){const t=_.at(-1);e.prevPointer=[t.left,t.top]}}}(e)}(e)})),e.on("mouseup",(t=>{if(k.show=!1,1===t.button){const{type:t,selfKey:n,dataIndex:i}=e.origin,o={...e.origin,data:{...e.origin.data,time:b(e.left),value:w(t,e.top)}};if(g.value.discardActiveObject(),_.length>0){const l=D.find((e=>e.type===t));let r=-1;const a=_.map((e=>e.data));if(e.nextPoint){if(2.5!==e.scaleX)return void ie({dataIndex:i,scaleValue:l});const t=e.coincidePoint.origin,n=t.data;r=t.index;const o=a.findIndex((e=>e.time===n.time));o>-1?a[o].value=n.value:a.push({...a.at(-1),time:n.time,value:n.value})}const s=l.dataList.findIndex((e=>e.key===n));h("add",{...m(o,["index","selfKey","lineAttr"]),dataIndex:s,key:n,data:a}),ne({...o,data:a,coincideIndex:r})}else h("change",{...m(o,["selfKey","lineAttr"]),key:n}),ne(o,"change")}}))}(p),null==(d=F.get(u.key))||d.push(p))}(ae(l,n),l,c,e)})),Promise.all(F.get(e.key)).then((t=>{const n=f.filter((e=>e));q(t),g.value.add(...n,...t),function(e,t){const{max:n={},min:i={}}=t.panicValue||{},{max:o={},min:l={}}=t.diffValue||{};function r({show:t=!1,value:n,flickerable:i},o){!t&&n&&i&&e.forEach((e=>{const t=e.origin.data.value;"max"===o&&t<n||"min"===o&&t>n||N.add(e)}))}r(n,"max"),r(i,"min"),r(o,"max"),r(l,"min")}(t,e)}))}function ee(e,t){["stroke","fill"].forEach((n=>{const i=e[n];i&&!["transparent","#fff","#ffffff","#FFFFFF"].includes(i)&&i!==t&&e.set(n,t)})),e.rightLine&&e.rightLine.stroke!==t&&e.rightLine.set("stroke",t)}function te(e,t){const[,,n,o]=t;e.clone((l=>{l.set({left:n,top:o,scaleX:1,scaleY:1}),e.prevPointer=[n,o];const r=i(t,e.origin.lineAttr);l.leftLine=r,O.add(l),g.value.add(r,l)}))}function ne(e,t="add",n=1){const{data:i,index:o,key:l,type:r,coincideIndex:a}=e;let{dataIndex:s}=e;const f=D.find((e=>e.type===r)),u=f.dataList.find(((e,t)=>(s=t,e.key===l)));switch(t){case"remove":u.list.splice(o,n),u.list[o-1]&&(u.list[o-1].breakpoint=!0);break;case"change":u.list[o]=i;break;default:{const e=Array.isArray(i)?i[0].time:i.time,t=c(e,u.list),n=Array.isArray(i)?i:[i];u.list.splice(t,a>-1?a-t+1:0,...n);break}}ie({dataIndex:s,scaleValue:f})}function ie(e){var t,n,i;if(O.size&&(null==(t=g.value)||t.remove(...oe([...O]))),O.clear(),_=[],e){const{dataIndex:t,scaleValue:i}=e,o=i.dataList[t];null==(n=g.value)||n.remove(...oe(F.get(o.key))),F.delete(o.key),Z(o,t,i)}else F.size&&(null==(i=g.value)||i.remove(...oe(se()))),F.clear(),B()}function oe(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)})),t}function le(e,t="moving"){const{title:n,type:i,data:o,unit:l}=e.origin;k.point={x:e.left,y:e.top};const r=`${"hover"===t?o.value:w(i,e.top)}`;k.list=[`${n} ${r}${l||""}`,`时间 ${b(e.left).slice(-5)}`],k.show=!0}function re(e){e.setCoords();const t=6e4/Y,n=e.prevPoint?e.prevPoint.left+t:C,i=K;e.top<j&&e.set("top",j),e.top>E&&e.set("top",E),e.left<n&&e.set("left",n),e.left>i&&e.set("left",i)}function ae(e,t){if(u(e)&&function(e){const t=Date.parse(T.list.at(-1)),n=d(e);return n>=V&&n<=t}(e.time)){const n=L(e.time),i=P(t.type,t.range,e.value);return[n,i<j?j:i>E?E:i]}}function se(){return Array.from(F.values()).flat()}return e((()=>{R()})),B(),function(){if(!X.evented)return;let e=!1,i={x:0,y:0};g.value.on("mouse:up",(t=>{if(3===t.button&&function(e){const{x:t=0,y:n=0}=e.pointer||{};if(t>=C&&t<=K&&n>=j&&n<=E)if(e.target){if("main"!==e.target.__type)return;i(e.pointer,e.target,["删除节点"]);const{minLeft:t,maxLeft:n,minTop:o,maxTop:l}=f(e.target);se().forEach((i=>{"main"===i.__type&&i.left>t&&i.left<n&&i.top>o&&i.top<l&&x.list.push({renderItem:()=>i.origin.title,origin:{...i.origin},mode:"remove",pointer:e.pointer})})),1===x.list.length&&(x.show=!1,console.log("当前时间段内无可删除节点"))}else i(e.pointer,null,["新增节点"]),S.forEach((n=>{G(se(),t,"key",2*A).includes(n.linkKey||n.key)||x.list.push({renderItem:()=>n.title,origin:{title:n.title,unit:n.unit,type:n.bigType,dataIndex:n.dataIndex,key:n.key,linkKey:n.linkKey},pointer:e.pointer})})),1===x.list.length&&(x.show=!1,J("repeat"),console.log("当前时间段内无可新增节点"));function i(e,t,n){Object.assign(x,{point:e,show:!0,target:t,list:n})}}(t),1===t.button&&e){e=!1;const t=H();t.length>0?Q((()=>{const e=function(e){const t=e.reduce(((e,t)=>{const{key:n}=t.origin;return e[n]=e[n]?e[n].concat(t.origin):[t.origin],e}),{});return Object.keys(t).map((e=>{const n=t[e].sort(((e,t)=>Date.parse(e.data.time)-Date.parse(t.data.time)));return ne(n[0],"remove",n.length),n.map((e=>({...m(e,["selfKey","lineAttr"]),key:e.selfKey})))}))}(t);h("remove",e)})):a.emit(z)}})),g.value.on("mouse:down",(t=>{1!==t.button||t.target||(e=!0,i=t.pointer)})),g.value.on("mouse:move",(o=>{if(!e)return;const{x:l,y:r}=i,{x:a,y:s}=o.pointer;z&&g.value.remove(z),z=new t.Rect({...n,fill:"#CAF982",opacity:.4,...I,left:l,top:r,width:a-l,height:s-r,objectCaching:!0}),z.areaPos={startPos:i,endPos:o.pointer},g.value.add(z)}))}(),{redrawPoints:ie,clickMenu:function({item:e,target:t}){const n={...e.origin};"remove"===e.mode?(h("remove",n),ne(n,"remove")):(Object.assign(n,{data:{time:b(e.pointer.x),value:w(e.origin.type,e.pointer.y),...e.origin.linkKey?{key:e.origin.key}:{}}}),h("add",n),ne({...n,key:e.origin.linkKey||e.origin.key}))},moveLimit:re,setPopup:le,updateData:ne,getGridPoints:se,getContainPoints:H,showDialog:Q,removeCurrentSelection:U}}export{g as useCenter};
1
+ import{onUnmounted as e}from"vue";import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{defaultStyle as n,drawLine as i,drawPoint as o}from"../useDraw.js";import{useGrid as l}from"../useGrid.js";import{useBirthProcessCumputedPoint as r}from"../useCumputedPoint.js";import{bus as a}from"../useEvent.js";import{useCommon as s}from"../useCommon.js";import{getPointRange as f,getIndex as c,isEffectiveNode as u,getTime as d}from"../../utils/index.js";import{cloneDeep as p,omit as m}from"lodash-es";import"date-fns";import"../temperature/useShadow.js";import"naive-ui";import{useIntervalFn as v}from"@vueuse/core";function g(g,y,h,k,x){const{computedX:L,computedY:P,getXValue:b,getYValue:w}=r(y),{xCellWidth:A,pointSelectionStyle:I,originX:C,endX:K,originY:j,endY:E,event:X,scaleValues:M,xAxis:T,startTime:V,timeXCell:Y,itemList:S,dialog:$}=y,F=new Map,O=new Set,D=p(M);let _=[],z=null;const N=new Set;l(g,y);const{getEqualXTypes:G,handleAddPrevent:J,setPrevAndNextPoint:q}=s(g,h,y),{pause:R,resume:W}=v((()=>{!function(){if(!N.size)return;for(const e of N)e.set("opacity",1===e.opacity?.5:1);g.value.renderAll()}()}),800);function B(){D.forEach((e=>{e.dataList.forEach(((t,n)=>{t.show&&(!function(e,t){const{max:n={},min:o={}}=e.panicValue||{},{max:l={},min:r={}}=e.diffValue||{};function a({show:e=!1,value:n,name:o,lineStyle:l}){if(!e||!n)return;const r=P(t.type,t.range,n),a=i([C,r,K,r],{...l,evented:!0,lockMovementX:!0,lockMovementY:!0,hoverCursor:"pointer"});X.hovered&&o&&(a.on("mousemove",(({pointer:e})=>{k.point={...e||{x:a.left,y:a.top}},k.list=[`${o} ${n}${t.unit||""}`],k.show=!0})),a.on("mouseout",(()=>{k.show=!1}))),g.value.add(a)}a(n),a(o),a(l),a(r)}(t,e),Z(t,n,e))}))}))}function H(e=[]){if(!(null==z?void 0:z.areaPos))return[];const{startPos:t,endPos:n}=z.areaPos,[i,o]=[t.x,n.x].sort(((e,t)=>e-t)),[l,r]=[t.y,n.y].sort(((e,t)=>e-t));return(e.length?e:se()).filter((e=>e.left>=i&&e.left<=o&&e.top>=l&&e.top<=r))}function Q(e){$.warning({maskClosable:!1,closeOnEsc:!1,title:"警告",content:"确认删除当前选中的节点?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{e(),U()},onNegativeClick:()=>U(),onClose:()=>U()})}function U(){z&&g.value.remove(z),z=null}function Z(e,t,n){var l;const{type:r,unit:a,dataList:s=[]}=n,f=[];F.set(e.key,[]),function(e,t){N.size&&[...N].forEach((n=>{const{dataIndex:i,type:o}=n.origin;i===t&&o===e&&N.delete(n)}))}(r,t),null==(l=e.list)||l.forEach(((l,c)=>{!function(e,l,c,u){var d;let p,v,x=u;l.key&&(x=s.find((e=>e.key===l.key)));const{pointAttr:L={},lineAttr:P={},title:I="",key:C,type:K="circle"}=x,j=ae(u.list[c+1],n);e&&j&&!l.breakpoint&&e[0]!==j[0]&&(v=i([...e,...j],P));const E=f[c-1],M={origin:{data:l,title:I,key:u.key,selfKey:C,unit:a,type:r,dataIndex:t,index:c,lineAttr:P},__type:"main",leftLine:E,rightLine:v,...L,...y.event.hovered?y.event.evented?{selectable:!0}:{selectable:!0,lockMovementX:!0,lockMovementY:!0}:y.event};E?p=o(K,{left:E.get("x2"),top:E.get("y2"),...M}):e&&(M.leftLine=null,p=o(K,{left:e[0],top:e[1],...M}));f.push(v),p&&(p.originLeft=p.left,p.originTop=p.top,function(e){X.hovered&&(e.on("mouseover",(()=>{le(e,"hover")})),e.on("mouseout",(()=>{k.show=!1})));if(e.lockMovementX&&e.lockMovementY)return;e.on("moving",(()=>{re(e),function(e){var t,n;null==(t=e.leftLine)||t.setCoords().set({x2:e.left,y2:e.top}),null==(n=e.rightLine)||n.setCoords().set({x1:e.left,y1:e.top})}(e),X.hovered&&le(e),function(e){var t,n,i,o;const{originLeft:l,originTop:r,left:a,top:s,origin:f}=e,c=~~((a-l)/A);if(a>l+A){if(0===_.length){te(e,[...e.leftLine?[e.leftLine.x1,e.leftLine.y1]:[l,r],l,r]),null==(n=null==(t=e.leftLine)?void 0:t.set)||n.call(t,"stroke","transparent"),null==(o=null==(i=e.rightLine)?void 0:i.set)||o.call(i,"stroke","transparent")}const u=l+A*c;if(_.every((e=>e.left!==u))){const t=b(u),n=w(f.type,s);_.push({data:{time:t,value:n,...f.selfKey!==f.key?{key:f.selfKey}:{}},left:u,top:s}),te(e,[...e.prevPointer,u,s])}if(_.length<c&&function(e,t){const{originLeft:n,originTop:i,origin:o}=e;let l=1;for(;l<=t;){const t=n+A*l,r=_.some((e=>Math.abs(e.left-t)<=1));if(!r){let l=0;const r=_.find(((e,n)=>(e.left>t&&(l=n),e.left>t)));if(r){const a=JSON.parse(JSON.stringify(r)),s=_[l-1]||{left:n,top:i},f=~~((r.left-(t-A))/A),c=(r.top-s.top)/f;a.top=s.top+c,a.left=t,a.data={time:b(t),value:w(o.type,a.top),...o.selfKey!==o.key?{key:o.selfKey}:{}},_.splice(l,0,a),te(e,[s.left,s.top,a.left,a.top])}}l++}}(e,c),e.nextPoint){const t=F.get(f.key);!function(e,t){const{left:n,top:i,origin:o}=t,l=A/2,r=e.findIndex((e=>Math.abs(n-e.left)<l&&Math.abs(i-e.top)<l&&o.index!==e.origin.index));r>-1?(t.set({scaleX:2.5,scaleY:2.5}),t.coincidePoint=e[r]):t.set({scaleX:t.scale,scaleY:t.scale})}(t,e),null==t||t.forEach((e=>{e.left<=l||f.index===e.origin.index||(e.left<a?ee(e,"#999"):ee(e,e.origin.lineAttr.stroke))}))}}!function(e){var t,n;const{left:i}=e;if(_.length>0&&i<_[_.length-1].left){for(const e of O)e.left>i&&(e.leftLine&&g.value.remove(e.leftLine),g.value.remove(e));if(_=_.filter((e=>e.left<=i)),0===_.length){null==(n=null==(t=e.leftLine)?void 0:t.set)||n.call(t,e.origin.lineAttr);for(const e of O)e.leftLine&&g.value.remove(e.leftLine),g.value.remove(e)}if(_.length>0){const t=_.at(-1);e.prevPointer=[t.left,t.top]}}}(e)}(e)})),e.on("mouseup",(t=>{if(k.show=!1,1===t.button){const{type:t,selfKey:n,dataIndex:i}=e.origin,o={...e.origin,data:{...e.origin.data,time:b(e.left),value:w(t,e.top)}};if(g.value.discardActiveObject(),_.length>0){const l=D.find((e=>e.type===t));let r=-1;const a=_.map((e=>e.data));if(e.nextPoint){if(2.5!==e.scaleX)return void ie({dataIndex:i,scaleValue:l});const t=e.coincidePoint.origin,n=t.data;r=t.index;const o=a.findIndex((e=>e.time===n.time));o>-1?a[o].value=n.value:a.push({...a.at(-1),time:n.time,value:n.value})}const s=l.dataList.findIndex((e=>e.key===n));h("add",{...m(o,["index","selfKey","lineAttr"]),dataIndex:s,key:n,data:a}),ne({...o,data:a,coincideIndex:r})}else h("change",{...m(o,["selfKey","lineAttr"]),key:n}),ne(o,"change")}}))}(p),null==(d=F.get(u.key))||d.push(p))}(ae(l,n),l,c,e)})),Promise.all(F.get(e.key)).then((t=>{const n=f.filter((e=>e));q(t),g.value.add(...n,...t),function(e,t){const{max:n={},min:i={}}=t.panicValue||{},{max:o={},min:l={}}=t.diffValue||{};function r({show:t=!1,value:n,flickerable:i},o){!t&&n&&i&&e.forEach((e=>{const t=e.origin.data.value;"max"===o&&t<n||"min"===o&&t>n||N.add(e)}))}r(n,"max"),r(i,"min"),r(o,"max"),r(l,"min")}(t,e)}))}function ee(e,t){["stroke","fill"].forEach((n=>{const i=e[n];i&&!["transparent","#fff","#ffffff","#FFFFFF"].includes(i)&&i!==t&&e.set(n,t)})),e.rightLine&&e.rightLine.stroke!==t&&e.rightLine.set("stroke",t)}function te(e,t){const[,,n,o]=t;e.clone((l=>{l.set({left:n,top:o,scaleX:1,scaleY:1}),e.prevPointer=[n,o];const r=i(t,e.origin.lineAttr);l.leftLine=r,O.add(l),g.value.add(r,l)}))}function ne(e,t="add",n=1){const{data:i,index:o,key:l,type:r,coincideIndex:a}=e;let{dataIndex:s}=e;const f=D.find((e=>e.type===r)),u=f.dataList.find(((e,t)=>(s=t,e.key===l)));switch(t){case"remove":u.list.splice(o,n),u.list[o-1]&&(u.list[o-1].breakpoint=!0);break;case"change":u.list[o]=i;break;default:{const e=Array.isArray(i)?i[0].time:i.time,t=c(e,u.list),n=Array.isArray(i)?i:[i];u.list.splice(t,a>-1?a-t+1:0,...n);break}}ie({dataIndex:s,scaleValue:f})}function ie(e){var t,n,i;if(O.size&&(null==(t=g.value)||t.remove(...oe([...O]))),O.clear(),_=[],e){const{dataIndex:t,scaleValue:i}=e,o=i.dataList[t];null==(n=g.value)||n.remove(...oe(F.get(o.key))),F.delete(o.key),Z(o,t,i)}else F.size&&(null==(i=g.value)||i.remove(...oe(se()))),F.clear(),B()}function oe(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)})),t}function le(e,t="moving"){const{title:n,type:i,data:o,unit:l}=e.origin;k.point={x:e.left,y:e.top};const r=`${"hover"===t?o.value:w(i,e.top)}`;k.list=[`${n} ${r}${l||""}`,`时间 ${b(e.left).slice(-5)}`],k.show=!0}function re(e){e.setCoords();const t=6e4/Y,n=e.prevPoint?e.prevPoint.left+t:C,i=K;e.top<j&&e.set("top",j),e.top>E&&e.set("top",E),e.left<n&&e.set("left",n),e.left>i&&e.set("left",i)}function ae(e,t){if(u(e)&&function(e){const t=Date.parse(T.list.at(-1)),n=d(e);return n>=V&&n<=t}(e.time)){const n=L(e.time),i=P(t.type,t.range,e.value);return[n,i<j?j:i>E?E:i]}}function se(){return Array.from(F.values()).flat()}return e((()=>{R()})),B(),function(){if(!X.evented)return;let e=!1,i={x:0,y:0};g.value.on("mouse:up",(t=>{if(3===t.button&&function(e){const{x:t=0,y:n=0}=e.pointer||{};if(t>=C&&t<=K&&n>=j&&n<=E)if(e.target){if("main"!==e.target.__type)return;i(e.pointer,e.target,["删除节点"]);const{minLeft:t,maxLeft:n,minTop:o,maxTop:l}=f(e.target);se().forEach((i=>{"main"===i.__type&&i.left>t&&i.left<n&&i.top>o&&i.top<l&&x.list.push({renderItem:()=>i.origin.title,origin:{...i.origin},mode:"remove",pointer:e.pointer})})),1===x.list.length&&(x.show=!1,console.log("当前时间段内无可删除节点"))}else i(e.pointer,null,["新增节点"]),S.forEach((n=>{G(se(),t,"key",2*A).includes(n.linkKey||n.key)||x.list.push({renderItem:()=>n.title,origin:{title:n.title,unit:n.unit,type:n.bigType,dataIndex:n.dataIndex,key:n.key,linkKey:n.linkKey},pointer:e.pointer})})),1===x.list.length&&(x.show=!1,J("repeat"),console.log("当前时间段内无可新增节点"));function i(e,t,n){Object.assign(x,{point:e,show:!0,target:t,list:n})}}(t),1===t.button&&e){e=!1;const t=H();t.length>0?Q((()=>{const e=function(e){const t=e.reduce(((e,t)=>{const{key:n}=t.origin;return e[n]=e[n]?e[n].concat(t.origin):[t.origin],e}),{});return Object.keys(t).map((e=>{const n=t[e].sort(((e,t)=>Date.parse(e.data.time)-Date.parse(t.data.time)));return ne(n[0],"remove",n.length),n.map((e=>({...m(e,["selfKey","lineAttr"]),key:e.selfKey})))}))}(t);h("remove",e)})):a.emit(z)}})),g.value.on("mouse:down",(t=>{1!==t.button||t.target||(e=!0,i=t.pointer)})),g.value.on("mouse:move",(o=>{if(!e)return;const{x:l,y:r}=i,{x:a,y:s}=o.pointer;z&&g.value.remove(z),z=new t.Rect({...n,fill:"#CAF982",opacity:.4,...I,left:l,top:r,width:a-l,height:s-r,objectCaching:!0}),z.areaPos={startPos:i,endPos:o.pointer},g.value.add(z)}))}(),{redrawPoints:ie,clickMenu:function({item:e,target:t}){const n={...e.origin};"remove"===e.mode?(h("remove",n),ne(n,"remove")):(Object.assign(n,{data:{time:b(e.pointer.x),value:w(e.origin.type,e.pointer.y),...e.origin.linkKey?{key:e.origin.key}:{}}}),h("add",n),ne({...n,key:e.origin.linkKey||e.origin.key}))},moveLimit:re,setPopup:le,updateData:ne,getGridPoints:se,getContainPoints:H,showDialog:Q,removeCurrentSelection:U}}export{g as useCenter};
@@ -1,5 +1,5 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../../es/shared/types';
4
- import { IPointTipProps } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../shared/types';
4
+ import { IPointTipProps } from '../../../../../components/fabric-chart/src/interface';
5
5
  export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, moveLimit: Function, setPopup: Function, updateData: Function, getGridPoints: Function): void;
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
4
- import { AnyObject } from '../../../../../../es/shared/types';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
4
+ import { AnyObject } from '../../../../../shared/types';
5
5
  export declare function useOther(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps, moveLimit: Function, getContainPoints: Function, showDialog: Function, removeCurrentSelection: Function): {
6
6
  clickMenu: ({ item, target }: {
7
7
  item: AnyObject;
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../../es/shared/types';
4
- import { IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../shared/types';
4
+ import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
5
5
  export declare function useSurgicalAnesthesiaChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
6
6
  propItems: any;
7
7
  redrawPoints: Ref<any>;
@@ -1,5 +1,5 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../../es/shared/types';
4
- import { IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../shared/types';
4
+ import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
5
5
  export declare function useTop(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): void;
@@ -1,4 +1,4 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IPropItems } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IPropItems } from '../../../../../components/fabric-chart/src/interface';
4
4
  export declare function useBottom(canvas: Ref<fabric.Canvas>, propItems: IPropItems): void;
@@ -1,8 +1,8 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IObject, IPropItems, IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
4
- import { AnyObject } from '../../../../../../es/shared/types';
5
- export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, computedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, addRenderItem: Function | undefined, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IObject, IPropItems, IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
4
+ import { AnyObject } from '../../../../../shared/types';
5
+ export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, computedX: Function, computedY: Function, getXValue: Function, getYValue: Function, addRenderItem: Function | undefined, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
6
6
  clickMenu: ({ item, target }: {
7
7
  item: any;
8
8
  target: any;
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IPropItems, IPointTipProps, IObject } from '../../../../../../es/components/fabric-chart/src/interface';
4
- export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, setPopup: Function, pointTipProps: IPointTipProps, computedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, isAddPoint: Function, updateData: Function, gridPoints: Set<IObject>): {
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IPropItems, IPointTipProps, IObject } from '../../../../../components/fabric-chart/src/interface';
4
+ export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, setPopup: Function, pointTipProps: IPointTipProps, computedX: Function, computedY: Function, getXValue: Function, getYValue: Function, isAddPoint: Function, updateData: Function, gridPoints: Set<IObject>): {
5
5
  drawScaleValue: (yScaleValueList: any[]) => void;
6
6
  };
@@ -1,4 +1,4 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IPropItems } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IPropItems } from '../../../../../components/fabric-chart/src/interface';
4
4
  export declare function useOther(canvas: Ref<fabric.Canvas>, propItems: IPropItems, computedX: Function): void;
@@ -1,4 +1,4 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IPropItems } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IPropItems } from '../../../../../components/fabric-chart/src/interface';
4
4
  export declare function useRight(canvas: Ref<fabric.Canvas>, propItems: IPropItems, drawScaleValue: Function): void;
@@ -1,4 +1,4 @@
1
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
1
+ import { fabric } from '../../../../../shared/utils/fabricjs';
2
2
  declare type Point = [number, number];
3
3
  export declare function useShadow(): {
4
4
  createShadowLines: (coordinates: Point[], angle?: number, space?: number) => fabric.Line[];
@@ -1,7 +1,7 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
4
- import { AnyObject } from '../../../../../../es/shared/types';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
4
+ import { AnyObject } from '../../../../../shared/types';
5
5
  export declare function useTemperatureChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
6
6
  propItems: any;
7
7
  redrawPoints: Ref<any>;
@@ -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,cumputedY: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 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,4 +1,4 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IPropItems } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IPropItems } from '../../../../../components/fabric-chart/src/interface';
4
4
  export declare function useTop(canvas: Ref<fabric.Canvas>, propItems: IPropItems): void;
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../es/shared/utils/fabricjs';
2
+ import { fabric } from '../../../../shared/utils/fabricjs';
3
3
  import { IObject } from '../interface';
4
- import { AnyObject } from '../../../../../es/shared/types';
4
+ import { AnyObject } from '../../../../shared/types';
5
5
  export declare function useCommon(canvas: Ref<fabric.Canvas>, emits: Function, propItems: AnyObject): {
6
6
  getEqualXTypes: (points: any[], pointX: number, field: string, range?: any) => string[];
7
7
  handleAddPrevent: (type: 'repeat' | 'exceedMax' | 'exceedMin') => void;
@@ -1,20 +1,20 @@
1
1
  import { IPointType } from '../interface';
2
- import { AnyObject } from '../../../../../es/shared/types';
2
+ import { AnyObject } from '../../../../shared/types';
3
3
  export declare function useCumputedPoint(propItems: AnyObject): {
4
4
  computedX: (value: number | string, setAllCenter?: boolean) => any;
5
- cumputedY: (type: IPointType, scaleValueList: number[], value: number | string) => number;
5
+ computedY: (type: IPointType, scaleValueList: number[], value: number | string) => number;
6
6
  getXValue: (pointX: number) => string | undefined;
7
7
  getYValue: (type: IPointType, pointY: number) => number;
8
8
  };
9
9
  export declare function useBirthProcessCumputedPoint(propItems: AnyObject): {
10
10
  computedX: (value: number | string) => any;
11
- cumputedY: (key: string, range: [number, number], value: number | string) => number;
11
+ computedY: (key: string, range: [number, number], value: number | string) => number;
12
12
  getXValue: (pointX: number) => string;
13
13
  getYValue: (key: string, pointY: number) => number;
14
14
  };
15
15
  export declare function useElectrocardiogramCumputedPoint(propItems: AnyObject): {
16
16
  computedX: (index: number) => number;
17
- cumputedY: (value: number) => number;
17
+ computedY: (value: number) => number;
18
18
  getXValue: (pointX: number) => number;
19
19
  getYValue: (pointY: number) => number;
20
20
  };
@@ -1 +1 @@
1
- import{format as n}from"date-fns";import{getTime as t,getFloorNumber as e}from"../utils/index.js";function i(i){const{xScaleList:u,xCellWidth:l,left:r,vitalSignsOriginY:c,painOriginY:o,canvasWidth:a}=i;return{computedX:function(n,e=!1){const i=t(n),[l]=u,r=u.at(-1);if(i<l.start)return 0;if(i>r.end)return a;const c=u.findIndex((n=>n.end>=i));if(c>-1){return u[c].center}},cumputedY:function(n,t,e){const u=i[`${n}YCell`],l=+e-Math.min(...t);return("pain"===n?o.endY:c.endY)-u*l},getXValue:function(t){const e=u.findIndex((n=>n.left+l>=t));if(e>-1){const i=u[e],l=t-i.left,r=i.scaleCell*l,c=i.start+r;return n(new Date(c),"yyyy-MM-dd HH:mm")}},getYValue:function(n,t){var u;const l=i[`${n}YCell`],a=(null==(u=r.yScaleValue.find((t=>t.type===n)))?void 0:u.list)||[],d=a.length?Math.min(...a):0,f="pain"===n?o.endY:c.endY;return e((f-t)/l+d)}}}function u(i){const{xAxis:u,originX:l,originY:r,xCellWidth:c,endY:o,timeXCell:a,startTime:d,scaleValues:f}=i;return{computedX:function(n){return(t(n)-d)/a+l},cumputedY:function(n,t,e){const[u]=t;return o-(+e-u)*i[`${n}YCell`]},getXValue:function(t){return n(new Date((t-l)*a+d),"yyyy-MM-dd HH:mm")},getYValue:function(n,t){const u=f.find((t=>[t.key,t.type||""].includes(n))),[l]=(null==u?void 0:u.range)||[0],r=(o-t)/i[`${n}YCell`]+l;return e(r)}}}function l(n){const{config:t,xCellWidth:i,yCellHeight:u}=n,{hz:l,mainXCellValue:r,valueUnit:c,mainYCellValue:o}=t;return{computedX:function(n){return n/l/r*i},cumputedY:function(n){return("uv"===c?.001*n:"v"===c?1e3*n:n)/o*u},getXValue:function(n){return e(r/i*n)},getYValue:function(n){return e(o/u*n)}}}export{u as useBirthProcessCumputedPoint,i as useCumputedPoint,l as useElectrocardiogramCumputedPoint};
1
+ import{format as n}from"date-fns";import{getTime as t,getFloorNumber as e}from"../utils/index.js";function i(i){const{xScaleList:u,xCellWidth:l,left:r,vitalSignsOriginY:o,painOriginY:c,canvasWidth:a}=i;return{computedX:function(n,e=!1){const i=t(n),[l]=u,r=u.at(-1);if(i<l.start)return 0;if(i>r.end)return a;const o=u.findIndex((n=>n.end>=i));if(o>-1){return u[o].center}},computedY:function(n,t,e){const u=i[`${n}YCell`],l=+e-Math.min(...t);return("pain"===n?c.endY:o.endY)-u*l},getXValue:function(t){const e=u.findIndex((n=>n.left+l>=t));if(e>-1){const i=u[e],l=t-i.left,r=i.scaleCell*l,o=i.start+r;return n(new Date(o),"yyyy-MM-dd HH:mm")}},getYValue:function(n,t){var u;const l=i[`${n}YCell`],a=(null==(u=r.yScaleValue.find((t=>t.type===n)))?void 0:u.list)||[],d=a.length?Math.min(...a):0,f="pain"===n?c.endY:o.endY;return e((f-t)/l+d)}}}function u(i){const{xAxis:u,originX:l,originY:r,xCellWidth:o,endY:c,timeXCell:a,startTime:d,scaleValues:f}=i;return{computedX:function(n){return(t(n)-d)/a+l},computedY:function(n,t,e){const[u]=t;return c-(+e-u)*i[`${n}YCell`]},getXValue:function(t){return n(new Date((t-l)*a+d),"yyyy-MM-dd HH:mm")},getYValue:function(n,t){const u=f.find((t=>[t.key,t.type||""].includes(n))),[l]=(null==u?void 0:u.range)||[0],r=(c-t)/i[`${n}YCell`]+l;return e(r)}}}function l(n){const{config:t,xCellWidth:i,yCellHeight:u}=n,{hz:l,mainXCellValue:r,valueUnit:o,mainYCellValue:c}=t;return{computedX:function(n){return n/l/r*i},computedY:function(n){return("uv"===o?.001*n:"v"===o?1e3*n:n)/c*u},getXValue:function(n){return e(r/i*n)},getYValue:function(n){return e(c/u*n)}}}export{u as useBirthProcessCumputedPoint,i as useCumputedPoint,l as useElectrocardiogramCumputedPoint};
@@ -1,6 +1,6 @@
1
- import { fabric } from '../../../../../es/shared/utils/fabricjs';
1
+ import { fabric } from '../../../../shared/utils/fabricjs';
2
2
  import { ILineOptions, ITextOptions } from '../interface';
3
- import { AnyObject } from '../../../../../es/shared/types';
3
+ import { AnyObject } from '../../../../shared/types';
4
4
  export declare const defaultStyle: {
5
5
  evented: boolean;
6
6
  selectable: boolean;
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../es/shared/utils/fabricjs';
2
+ import { fabric } from '../../../../shared/utils/fabricjs';
3
3
  import { IPropItems } from '../interface';
4
4
  export declare const bus: import("@vueuse/core").UseEventBusReturn<string, any>;
5
5
  export declare function useCanvasEvent(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any): {
@@ -1,4 +1,4 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../es/shared/types';
2
+ import { fabric } from '../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../shared/types';
4
4
  export declare function useGrid(canvas: Ref<fabric.Canvas>, propItems: AnyObject): void;
@@ -1,5 +1,5 @@
1
- import { fabric } from '../../../../../es/shared/utils/fabricjs';
2
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { fabric } from '../../../../shared/utils/fabricjs';
2
+ import { AnyObject } from '../../../../shared/types';
3
3
  /**
4
4
  * @description 获取一些刻度坐标信息
5
5
  * @param position {'left'|'center'|'right'} 刻度位置
@@ -1,6 +1,6 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../es/shared/types';
2
+ import { fabric } from '../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../shared/types';
4
4
  export declare type IType = 'temperature' | 'birthProcess' | 'surgicalAnesthesia' | 'electrocardiogram' | undefined;
5
5
  interface IEvent {
6
6
  selectable: boolean;
@@ -1,5 +1,5 @@
1
1
  import { IPoint, ITreeItem } from '../interface';
2
- import { AnyObject } from '../../../../../es/shared/types';
2
+ import { AnyObject } from '../../../../shared/types';
3
3
  export declare function isEffectiveNode(node: IPoint): string | number | boolean;
4
4
  export declare function deleteProperty(data: AnyObject, list: AnyObject[]): {};
5
5
  export declare function getIndex(time: string, list: AnyObject[]): number;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="lodash" />
2
- import { SFCWithInstall } from '../../../es/shared/types';
2
+ import { SFCWithInstall } from '../../shared/types';
3
3
  export * from './src/types';
4
4
  declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
5
5
  fields: {
@@ -139,7 +139,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
139
139
  rowHeight: number;
140
140
  keyword: import("vue").Ref<string>;
141
141
  tableBodyRef: import("vue").Ref<HTMLDivElement | undefined>;
142
- newFields: import("vue").Ref<import("../../../es/shared/types").AnyObject[]>;
142
+ newFields: import("vue").Ref<import("../../shared/types").AnyObject[]>;
143
143
  columns: import("vue").Ref<{
144
144
  [x: string]: any;
145
145
  title: string;
@@ -149,11 +149,11 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
149
149
  disabledAll?: boolean | undefined;
150
150
  isHeadCheckHide?: boolean | undefined;
151
151
  isShow?: boolean | undefined;
152
- contentRender?: ((column: import("../../../es/shared/types").AnyObject, row: import("../../../es/shared/types").AnyObject) => String | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
152
+ contentRender?: ((column: import("../../shared/types").AnyObject, row: import("../../shared/types").AnyObject) => String | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
153
153
  [key: string]: any;
154
154
  }>) | undefined;
155
155
  }[]>;
156
- fieldList: import("vue").ComputedRef<import("../../../es/shared/types").AnyObject[]>;
156
+ fieldList: import("vue").ComputedRef<import("../../shared/types").AnyObject[]>;
157
157
  rowProps: {
158
158
  columns: {
159
159
  [x: string]: any;
@@ -164,14 +164,14 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
164
164
  disabledAll?: boolean | undefined;
165
165
  isHeadCheckHide?: boolean | undefined;
166
166
  isShow?: boolean | undefined;
167
- contentRender?: ((column: import("../../../es/shared/types").AnyObject, row: import("../../../es/shared/types").AnyObject) => String | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
167
+ contentRender?: ((column: import("../../shared/types").AnyObject, row: import("../../shared/types").AnyObject) => String | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
168
168
  [key: string]: any;
169
169
  }>) | undefined;
170
170
  }[];
171
- fieldList: import("../../../es/shared/types").AnyObject[];
171
+ fieldList: import("../../shared/types").AnyObject[];
172
172
  onUpdateChecked: ({ checked, column }: {
173
173
  checked: boolean;
174
- column: import("../../../es/shared/types").AnyObject;
174
+ column: import("../../shared/types").AnyObject;
175
175
  }) => void;
176
176
  };
177
177
  searchData: {
@@ -182,9 +182,9 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
182
182
  handleFieldSave: () => void;
183
183
  onCancle: () => void;
184
184
  reset: () => void;
185
- getShowColumn: (column: import("../../../es/shared/types").AnyObject) => boolean;
186
- initFields: () => import("../../../es/shared/types").AnyObject[];
187
- handleGroup: (fields: import("../../../es/shared/types").AnyObject[]) => import("../../../es/shared/types").AnyObject[];
185
+ getShowColumn: (column: import("../../shared/types").AnyObject) => boolean;
186
+ initFields: () => import("../../shared/types").AnyObject[];
187
+ handleGroup: (fields: import("../../shared/types").AnyObject[]) => import("../../shared/types").AnyObject[];
188
188
  getTableFields: () => import("lodash").Omit<never, "uuid">[];
189
189
  handleSearch: () => void;
190
190
  isHighlight: (element: Partial<{
@@ -208,7 +208,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
208
208
  handleAllCheck: (checked: boolean, field: string) => void;
209
209
  handleCheck: ({ checked, column }: {
210
210
  checked: boolean;
211
- column: import("../../../es/shared/types").AnyObject;
211
+ column: import("../../shared/types").AnyObject;
212
212
  }) => void;
213
213
  initColumns: () => void;
214
214
  isNoAllCheck: (field: string) => boolean;
@@ -435,16 +435,16 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
435
435
  label: string;
436
436
  value: number;
437
437
  }[];
438
- getOptions: (column: import("../../../es/shared/types").AnyObject) => {
438
+ getOptions: (column: import("../../shared/types").AnyObject) => {
439
439
  label: string;
440
440
  value: string;
441
441
  }[] | {
442
442
  label: string;
443
443
  value: number;
444
444
  }[];
445
- setDisabled: (column: import("../../../es/shared/types").AnyObject) => any;
446
- onUpdateChecked: (checked: boolean, column: import("../../../es/shared/types").AnyObject) => void;
447
- handleUpdateSelect: (value: string, column: import("../../../es/shared/types").AnyObject) => void;
445
+ setDisabled: (column: import("../../shared/types").AnyObject) => any;
446
+ onUpdateChecked: (checked: boolean, column: import("../../shared/types").AnyObject) => void;
447
+ handleUpdateSelect: (value: string, column: import("../../shared/types").AnyObject) => void;
448
448
  NCheckbox: any;
449
449
  NSelect: any;
450
450
  NInput: any;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="lodash" />
2
2
  import { PropType } from 'vue';
3
3
  import { setStyle, isDraggableItem } from './utils';
4
- import { FieldSetItem, FieldSetColumnName, FieldSetColumnItem } from '../../../../es/components/field-set/src/types';
5
- import { AnyObject } from '../../../../es/shared/types';
4
+ import { FieldSetItem, FieldSetColumnName, FieldSetColumnItem } from '../../../components/field-set/src/types';
5
+ import { AnyObject } from '../../../shared/types';
6
6
  declare const _default: import("vue").DefineComponent<{
7
7
  fields: {
8
8
  type: PropType<Partial<{
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  type: PropType<FieldSetColumnName[]>;
42
42
  };
43
43
  groupSetting: {
44
- type: PropType<Partial<Record<"firstRowGroup" | "secondRowGroup" | "thirdRowGroup" | "fourthRowGroup" | "fifthRowGroup" | "sixthRowGroup" | "seventhRowGroup" | "eighthRowGroup" | "ninthRowGroup" | "tenthRowGroup", import("../../../../es/components/iho-table").IhoTableRowGroupItem[]>> | undefined>;
44
+ type: PropType<Partial<Record<"firstRowGroup" | "secondRowGroup" | "thirdRowGroup" | "fourthRowGroup" | "fifthRowGroup" | "sixthRowGroup" | "seventhRowGroup" | "eighthRowGroup" | "ninthRowGroup" | "tenthRowGroup", import("../../../components/iho-table").IhoTableRowGroupItem[]>> | undefined>;
45
45
  };
46
46
  customColumns: {
47
47
  type: PropType<FieldSetColumnItem[]>;
@@ -106,7 +106,7 @@ declare const _default: import("vue").DefineComponent<{
106
106
  type: PropType<FieldSetColumnName[]>;
107
107
  };
108
108
  groupSetting: {
109
- type: PropType<Partial<Record<"firstRowGroup" | "secondRowGroup" | "thirdRowGroup" | "fourthRowGroup" | "fifthRowGroup" | "sixthRowGroup" | "seventhRowGroup" | "eighthRowGroup" | "ninthRowGroup" | "tenthRowGroup", import("../../../../es/components/iho-table").IhoTableRowGroupItem[]>> | undefined>;
109
+ type: PropType<Partial<Record<"firstRowGroup" | "secondRowGroup" | "thirdRowGroup" | "fourthRowGroup" | "fifthRowGroup" | "sixthRowGroup" | "seventhRowGroup" | "eighthRowGroup" | "ninthRowGroup" | "tenthRowGroup", import("../../../components/iho-table").IhoTableRowGroupItem[]>> | undefined>;
110
110
  };
111
111
  customColumns: {
112
112
  type: PropType<FieldSetColumnItem[]>;
@@ -581,7 +581,7 @@ declare const _default: import("vue").DefineComponent<{
581
581
  type: PropType<FieldSetColumnName[]>;
582
582
  };
583
583
  groupSetting: {
584
- type: PropType<Partial<Record<"firstRowGroup" | "secondRowGroup" | "thirdRowGroup" | "fourthRowGroup" | "fifthRowGroup" | "sixthRowGroup" | "seventhRowGroup" | "eighthRowGroup" | "ninthRowGroup" | "tenthRowGroup", import("../../../../es/components/iho-table").IhoTableRowGroupItem[]>> | undefined>;
584
+ type: PropType<Partial<Record<"firstRowGroup" | "secondRowGroup" | "thirdRowGroup" | "fourthRowGroup" | "fifthRowGroup" | "sixthRowGroup" | "seventhRowGroup" | "eighthRowGroup" | "ninthRowGroup" | "tenthRowGroup", import("../../../components/iho-table").IhoTableRowGroupItem[]>> | undefined>;
585
585
  };
586
586
  customColumns: {
587
587
  type: PropType<FieldSetColumnItem[]>;