cnhis-design-vue 3.1.55-release.1 → 3.1.56-beta.7

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 (374) hide show
  1. package/es/components/annotation-edit/index.d.ts +19 -1
  2. package/es/components/annotation-edit/src/AnnotationEdit.d.ts +19 -1
  3. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  4. package/es/components/annotation-edit/src/type.d.ts +4 -0
  5. package/es/components/audio-sdk/src/audioSDK.d.ts +21 -7
  6. package/es/components/audio-sdk/src/audioSDK.js +1 -1
  7. package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +14 -0
  8. package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -1
  9. package/es/components/audio-sdk/src/utils/recordingDialog.d.ts +5 -2
  10. package/es/components/audio-sdk/src/utils/recordingDialog.js +1 -1
  11. package/es/components/audio-sdk/style/index.css +1 -1
  12. package/es/components/base-search/index.d.ts +15 -1
  13. package/es/components/base-search/src/index.vue.d.ts +18 -4
  14. package/es/components/base-search/src/index.vue2.js +1 -1
  15. package/es/components/base-search/style/index.css +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/biunique-chat/index.d.ts +14 -14
  28. package/es/components/biunique-chat/src/BiuniqueChat.vue.d.ts +1 -1
  29. package/es/components/biunique-chat/src/api/index.d.ts +1 -1
  30. package/es/components/biunique-chat/src/components/ChatFooter.vue.d.ts +1 -1
  31. package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +1 -1
  32. package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +1 -1
  33. package/es/components/biunique-chat/src/components/SiderList.vue.d.ts +1 -1
  34. package/es/components/biunique-chat/src/utils/chatSock.d.ts +1 -1
  35. package/es/components/body-select/index.d.ts +5 -5
  36. package/es/components/body-select/src/hooks/renderCanvas.d.ts +2 -2
  37. package/es/components/body-select/src/index.vue.d.ts +1 -1
  38. package/es/components/bpmn-workflow/index.d.ts +1 -1
  39. package/es/components/button-print/index.d.ts +21 -21
  40. package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -1
  41. package/es/components/button-print/src/api.d.ts +1 -1
  42. package/es/components/button-print/src/components/EditFormat.vue.d.ts +1 -1
  43. package/es/components/button-print/src/utils/dialog.d.ts +1 -1
  44. package/es/components/button-print/src/utils/print.d.ts +5 -2
  45. package/es/components/button-print/src/utils/print.js +1 -1
  46. package/es/components/callback/index.d.ts +1 -1
  47. package/es/components/callback/src/components/dialog/drawer.vue.d.ts +1 -1
  48. package/es/components/callback/src/components/dialog/modal.vue.d.ts +1 -1
  49. package/es/components/callback/src/components/render/popupMaps.d.ts +74 -166
  50. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +1 -1
  51. package/es/components/card-reader-sdk/src/components/readCardDialog.vue.d.ts +1 -1
  52. package/es/components/card-reader-sdk/src/constants/index.d.ts +1 -1
  53. package/es/components/card-reader-sdk/src/insuranceSDK.d.ts +1 -1
  54. package/es/components/card-reader-sdk/src/types/index.d.ts +2 -2
  55. package/es/components/card-reader-sdk/src/utils/readHealthCard.d.ts +1 -1
  56. package/es/components/classification/index.d.ts +40 -42
  57. package/es/components/classification/src/components/search-filter/index.vue.d.ts +14 -0
  58. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  59. package/es/components/classification/src/components/set-classification/index.vue.d.ts +33 -35
  60. package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
  61. package/es/components/classification/src/components/table-modal/index.vue.d.ts +10 -21
  62. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
  63. package/es/components/classification/src/index.vue.d.ts +33 -35
  64. package/es/components/classification/src/index.vue2.js +1 -1
  65. package/es/components/config-provider/index.d.ts +1 -1
  66. package/es/components/date-picker/index.d.ts +2 -2
  67. package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
  68. package/es/components/editor/index.d.ts +1 -1
  69. package/es/components/expand-field/index.d.ts +29 -29
  70. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +2 -2
  71. package/es/components/expand-field/src/components/form.vue.d.ts +2 -2
  72. package/es/components/expand-field/src/constants/index.d.ts +1 -1
  73. package/es/components/expand-field/src/index.vue.d.ts +2 -2
  74. package/es/components/fabric-chart/index.d.ts +10 -8
  75. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -3
  76. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  77. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +1 -1
  78. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +3 -3
  79. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  80. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +3 -3
  81. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  82. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +2 -2
  83. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +2 -2
  84. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  85. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +4 -4
  86. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  87. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.d.ts +2 -2
  88. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
  89. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +3 -3
  90. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  91. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.d.ts +3 -3
  92. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +3 -3
  93. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  94. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +3 -3
  95. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  96. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +3 -3
  97. package/es/components/fabric-chart/src/hooks/temperature/useBottom.d.ts +2 -2
  98. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +3 -3
  99. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  100. package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +2 -2
  101. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +2 -2
  102. package/es/components/fabric-chart/src/hooks/temperature/useRight.d.ts +2 -2
  103. package/es/components/fabric-chart/src/hooks/temperature/useShadow.d.ts +1 -1
  104. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +3 -3
  105. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  106. package/es/components/fabric-chart/src/hooks/temperature/useTop.d.ts +2 -2
  107. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  108. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +2 -2
  109. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +1 -1
  110. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +2 -2
  111. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
  112. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +2 -2
  113. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +2 -2
  114. package/es/components/fabric-chart/src/interface.d.ts +2 -2
  115. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  116. package/es/components/field-set/index.d.ts +15 -15
  117. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
  118. package/es/components/field-set/src/components/Row.vue.d.ts +2 -2
  119. package/es/components/field-set/src/types/index.d.ts +1 -1
  120. package/es/components/field-set/src/utils/index.d.ts +3 -3
  121. package/es/components/form-config/index.d.ts +322 -475
  122. package/es/components/form-config/src/FormConfig.vue.d.ts +448 -601
  123. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +40 -132
  124. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +1 -1
  125. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +214 -291
  126. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +2 -2
  127. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +1 -1
  128. package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +1 -1
  129. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +2 -2
  130. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +2 -2
  131. package/es/components/form-config/src/constants/index.d.ts +2 -2
  132. package/es/components/form-config/src/hooks/useConfigurationField.d.ts +3 -3
  133. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
  134. package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +1 -1
  135. package/es/components/form-config/src/types/index.d.ts +2 -2
  136. package/es/components/form-config/src/utils/index.d.ts +3 -3
  137. package/es/components/form-render/index.d.ts +69 -161
  138. package/es/components/form-render/src/FormRender.vue.d.ts +39 -131
  139. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  140. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +92 -184
  141. package/es/components/form-render/src/components/renderer/combination/combination.d.ts +1 -1
  142. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +1 -1
  143. package/es/components/form-render/src/components/renderer/combination/hooks/useDeepValidate.d.ts +1 -1
  144. package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +1 -1
  145. package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +2 -2
  146. package/es/components/form-render/src/components/renderer/formItem.d.ts +1 -1
  147. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  148. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +1 -1
  149. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +1 -1
  150. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  151. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -1
  152. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  153. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +2 -2
  154. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +2 -2
  155. package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
  156. package/es/components/form-render/src/components/renderer/simpleComponent.d.ts +1 -1
  157. package/es/components/form-render/src/constants/index.d.ts +6 -5
  158. package/es/components/form-render/src/constants/index.js +1 -1
  159. package/es/components/form-render/src/hooks/useAnchor.d.ts +2 -2
  160. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
  161. package/es/components/form-render/src/hooks/useCommonInjection.d.ts +1 -1
  162. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +3 -3
  163. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  164. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  165. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +27 -19
  166. package/es/components/form-render/src/hooks/useFormContext.d.ts +6 -6
  167. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  168. package/es/components/form-render/src/hooks/useFormEvent.d.ts +4 -25
  169. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  170. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +3 -3
  171. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
  172. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +8 -8
  173. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -4
  174. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  175. package/es/components/form-render/src/hooks/useFormValidator.d.ts +1 -1
  176. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  177. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +1 -1
  178. package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +2 -2
  179. package/es/components/form-render/src/types/fieldItem.d.ts +3 -3
  180. package/es/components/form-render/src/types/index.d.ts +18 -16
  181. package/es/components/form-render/src/utils/business.d.ts +2 -2
  182. package/es/components/form-render/src/utils/dom.d.ts +1 -1
  183. package/es/components/form-render/src/utils/index.d.ts +1 -1
  184. package/es/components/form-render/src/utils/schema.d.ts +3 -3
  185. package/es/components/form-render/src/utils/schema.js +1 -1
  186. package/es/components/grid/index.d.ts +1 -1
  187. package/es/components/guide/src/renderer.d.ts +1 -1
  188. package/es/components/guide/src/types/index.d.ts +1 -1
  189. package/es/components/guide/src/useGuide.d.ts +1 -1
  190. package/es/components/guide/src/utils/index.d.ts +1 -1
  191. package/es/components/iho-table/index.d.ts +39 -39
  192. package/es/components/iho-table/src/IhoTable.vue.d.ts +27 -27
  193. package/es/components/iho-table/src/constants/index.d.ts +5 -5
  194. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +9 -9
  195. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +21 -21
  196. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +10 -10
  197. package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.d.ts +4 -4
  198. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +65 -65
  199. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +4 -4
  200. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +7 -7
  201. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +3 -3
  202. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.d.ts +1 -1
  203. package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +2 -2
  204. package/es/components/iho-table/src/plugins/anchorPlugin/index.d.ts +1 -1
  205. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +1 -1
  206. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.d.ts +1 -1
  207. package/es/components/iho-table/src/plugins/colorAndIconPlugin.d.ts +1 -1
  208. package/es/components/iho-table/src/plugins/copyPastePlugin.d.ts +1 -1
  209. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.d.ts +1 -1
  210. package/es/components/iho-table/src/plugins/defaultValuePlugin.d.ts +1 -1
  211. package/es/components/iho-table/src/plugins/defaultValuePlugin.js +1 -1
  212. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +2 -2
  213. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.d.ts +1 -1
  214. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -1
  215. package/es/components/iho-table/src/plugins/filterVisibleEventPlugin.d.ts +1 -1
  216. package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.d.ts +1 -1
  217. package/es/components/iho-table/src/plugins/headerPlugin.d.ts +1 -1
  218. package/es/components/iho-table/src/plugins/headerPlugin.js +1 -1
  219. package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -1
  220. package/es/components/iho-table/src/plugins/index.d.ts +1 -1
  221. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +1 -1
  222. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.d.ts +1 -1
  223. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -1
  224. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -1
  225. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -2
  226. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +1 -1
  227. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +1 -1
  228. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +1 -1
  229. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +1 -1
  230. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.d.ts +1 -1
  231. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +7 -7
  232. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.d.ts +1 -1
  233. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  234. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/radioRendererPlugin.d.ts +1 -1
  235. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +8 -2
  236. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  237. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +1 -1
  238. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  239. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -2
  240. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
  241. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.d.ts +1 -1
  242. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +2 -2
  243. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +2 -2
  244. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.d.ts +1 -1
  245. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.d.ts +1 -1
  246. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.d.ts +1 -1
  247. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.d.ts +1 -1
  248. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.d.ts +1 -1
  249. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.d.ts +1 -1
  250. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +1 -1
  251. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.d.ts +1 -1
  252. package/es/components/iho-table/src/plugins/rowClickPlugin/index.d.ts +1 -1
  253. package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +1 -1
  254. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +1 -1
  255. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +2 -2
  256. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -1
  257. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.d.ts +1 -1
  258. package/es/components/iho-table/src/plugins/wordbookSettingPlugin.d.ts +1 -1
  259. package/es/components/iho-table/src/types/index.d.ts +3 -3
  260. package/es/components/iho-table/src/types/pluginType.d.ts +2 -2
  261. package/es/components/iho-table/src/utils/index.d.ts +3 -3
  262. package/es/components/iho-table/src/utils/separateMap.d.ts +2 -2
  263. package/es/components/index.css +1 -1
  264. package/es/components/index.d.ts +3 -3
  265. package/es/components/info-header/index.d.ts +213 -377
  266. package/es/components/info-header/src/InfoHeader.vue.d.ts +242 -406
  267. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +11 -7
  268. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +13 -9
  269. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +119 -207
  270. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +41 -133
  271. package/es/components/info-header/src/constants/index.d.ts +1 -1
  272. package/es/components/info-header/src/types/index.d.ts +1 -1
  273. package/es/components/keyboard/index.d.ts +1 -1
  274. package/es/components/map/index.d.ts +1 -1
  275. package/es/components/map/src/Map.vue.d.ts +1 -1
  276. package/es/components/picture-clipper/index.d.ts +1 -1
  277. package/es/components/picture-clipper/src/PictureClipper.vue.d.ts +1 -1
  278. package/es/components/quick-search/index.d.ts +1 -1
  279. package/es/components/quick-search/src/index.vue.d.ts +4 -4
  280. package/es/components/recommend-search/index.d.ts +33 -33
  281. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +15 -15
  282. package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
  283. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +6 -6
  284. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +5 -5
  285. package/es/components/scale-view/index.d.ts +1 -1
  286. package/es/components/scale-view/src/hooks/use-component.d.ts +33 -33
  287. package/es/components/scale-view/src/types/index.d.ts +1 -1
  288. package/es/components/search-cascader/index.d.ts +34 -34
  289. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +1 -1
  290. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  291. package/es/components/search-cascader/src/constants/index.d.ts +1 -1
  292. package/es/components/search-cascader/src/utils/index.d.ts +1 -1
  293. package/es/components/select-label/index.d.ts +1 -1
  294. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
  295. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  296. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +3 -3
  297. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +3 -3
  298. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.d.ts +1 -1
  299. package/es/components/select-label/src/index.vue.d.ts +19 -19
  300. package/es/components/select-person/index.d.ts +22 -22
  301. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  302. package/es/components/shortcut-provider/index.d.ts +1 -1
  303. package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -2
  304. package/es/components/shortcut-provider/src/constants/index.d.ts +1 -1
  305. package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +1 -1
  306. package/es/components/shortcut-provider/src/types/index.d.ts +1 -1
  307. package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
  308. package/es/components/shortcut-setter/index.d.ts +85 -176
  309. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +118 -209
  310. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +2 -2
  311. package/es/components/shortcut-setter/src/types/index.d.ts +1 -1
  312. package/es/components/slider-tree/index.d.ts +1 -1
  313. package/es/components/steps-wheel/index.d.ts +1 -1
  314. package/es/components/table-export-field/index.d.ts +3 -3
  315. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +1 -1
  316. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +1 -1
  317. package/es/components/table-export-field/src/constants/index.d.ts +1 -1
  318. package/es/components/table-export-field/src/index.vue.d.ts +1 -1
  319. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +1 -1
  320. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +2 -2
  321. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +14 -0
  322. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +14 -0
  323. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +14 -0
  324. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +1 -1
  325. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -1
  326. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +16 -2
  327. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  328. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +2 -2
  329. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +2 -2
  330. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
  331. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +2 -2
  332. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +2 -2
  333. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +1 -1
  334. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +2 -2
  335. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +1 -1
  336. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +19 -0
  337. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  338. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +15 -1
  339. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  340. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +19 -0
  341. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +1 -1
  342. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +28 -9
  343. package/es/components/table-filter/src/constants/index.d.ts +1 -1
  344. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -2
  345. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -1
  346. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +1 -1
  347. package/es/components/table-filter/src/tool/transformData.d.ts +1 -1
  348. package/es/components/table-filter/src/types/index.d.ts +1 -0
  349. package/es/components/time-line/index.d.ts +1 -1
  350. package/es/components/time-picker/index.d.ts +2 -2
  351. package/es/components/time-picker/src/TimePicker.vue.d.ts +1 -1
  352. package/es/components/vod-chunk-upload/index.d.ts +1 -1
  353. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +5 -3
  354. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  355. package/es/shared/components/SelectPage/SelectPage.vue.d.ts +1 -1
  356. package/es/shared/components/SlotRender/SlotRender.d.ts +1 -1
  357. package/es/shared/hooks/selectHooks/useOptionFiltered.d.ts +1 -1
  358. package/es/shared/hooks/selectHooks/useSearchContent.d.ts +1 -1
  359. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
  360. package/es/shared/hooks/selectHooks/useSelectAllowModify.d.ts +1 -1
  361. package/es/shared/hooks/selectHooks/useSelectRenders.d.ts +2 -2
  362. package/es/shared/hooks/selectHooks/useSelectRenders.js +1 -1
  363. package/es/shared/hooks/useAsyncQueue/types.d.ts +1 -1
  364. package/es/shared/hooks/useDateTime.d.ts +1 -1
  365. package/es/shared/hooks/useFormRequest/index.d.ts +2 -2
  366. package/es/shared/hooks/useFormRequest/types.d.ts +2 -2
  367. package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -2
  368. package/es/shared/hooks/useTheme.d.ts +1 -1
  369. package/es/shared/package.json.js +1 -1
  370. package/es/shared/types/business.d.ts +1 -1
  371. package/es/shared/utils/business.d.ts +1 -1
  372. package/es/shared/utils/business.js +1 -1
  373. package/es/shared/utils/index.d.ts +1 -1
  374. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { SFCWithInstall } from '../../../es/shared/types';
1
+ import { SFCWithInstall } from '../../shared/types';
2
2
  declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
3
3
  id: {
4
4
  type: StringConstructor;
@@ -188,7 +188,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
188
188
  height: string;
189
189
  }>;
190
190
  saveOrUpdateExtendField: (params: any, filterApiConfig: any) => Promise<any>;
191
- expandFieldApiConfig: import("../../../es/shared/types").AnyObject;
191
+ expandFieldApiConfig: import("../../shared/types").AnyObject;
192
192
  formRef: import("vue").Ref<null>;
193
193
  defaultData: import("vue").Ref<{
194
194
  name: undefined;
@@ -292,7 +292,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
292
292
  message: string;
293
293
  };
294
294
  handleSave: () => void;
295
- isCandidateVariable: (str: string, saveOjb: import("../../../es/shared/types").AnyObject) => true | "error" | undefined;
295
+ isCandidateVariable: (str: string, saveOjb: import("../../shared/types").AnyObject) => true | "error" | undefined;
296
296
  setCandidateError: (saveOjb: any, message: string) => void;
297
297
  validateCandidate: (saveOjb: any) => boolean;
298
298
  handleSubmit: (params?: {}) => Promise<void>;
@@ -727,7 +727,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
727
727
  };
728
728
  }, {
729
729
  findAllDeptEmpByOrg: (params: any, filterApiConfig: any) => Promise<any>;
730
- expandFieldApiConfig: import("../../../es/shared/types").AnyObject;
730
+ expandFieldApiConfig: import("../../shared/types").AnyObject;
731
731
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
732
732
  defaultValue: {
733
733
  type: (ArrayConstructor | StringConstructor)[];
@@ -779,7 +779,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
779
779
  default: () => never[];
780
780
  };
781
781
  treeData: {
782
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
782
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
783
783
  default: () => never[];
784
784
  };
785
785
  }, {
@@ -793,7 +793,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
793
793
  default: () => never[];
794
794
  };
795
795
  treeData: {
796
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
796
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
797
797
  default: () => never[];
798
798
  };
799
799
  }>> & {
@@ -834,7 +834,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
834
834
  data: {
835
835
  type: import("vue").PropType<(import("naive-ui/es/tree/src/interface").TreeOptionBase & {
836
836
  [k: string]: unknown;
837
- } & import("../../../es/shared/types").AnyObject)[]>;
837
+ } & import("../../shared/types").AnyObject)[]>;
838
838
  default: () => never[];
839
839
  };
840
840
  searchPlaceholder: {
@@ -879,21 +879,21 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
879
879
  default: boolean;
880
880
  };
881
881
  searchFilter: {
882
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
882
+ type: import("vue").PropType<import("../../shared/types").AnyObject>;
883
883
  default: () => {};
884
884
  };
885
885
  treeSetting: {
886
886
  type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
887
887
  [k: string]: unknown;
888
- } & import("../../../es/shared/types").AnyObject>;
888
+ } & import("../../shared/types").AnyObject>;
889
889
  default: () => {};
890
890
  };
891
891
  queryLoadChildData: {
892
- type: import("vue").PropType<(node: import("naive-ui").TreeOption) => Promise<import("../../../es/shared/types").AnyObject>>;
892
+ type: import("vue").PropType<(node: import("naive-ui").TreeOption) => Promise<import("../../shared/types").AnyObject>>;
893
893
  default: undefined;
894
894
  };
895
895
  queryTreeSearch: {
896
- type: import("vue").PropType<(keyWork: string) => Promise<import("../../../es/shared/types").AnyObject[]>>;
896
+ type: import("vue").PropType<(keyWork: string) => Promise<import("../../shared/types").AnyObject[]>>;
897
897
  default: () => Promise<never[]>;
898
898
  };
899
899
  }, {
@@ -915,7 +915,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
915
915
  data: {
916
916
  type: import("vue").PropType<(import("naive-ui/es/tree/src/interface").TreeOptionBase & {
917
917
  [k: string]: unknown;
918
- } & import("../../../es/shared/types").AnyObject)[]>;
918
+ } & import("../../shared/types").AnyObject)[]>;
919
919
  default: () => never[];
920
920
  };
921
921
  searchPlaceholder: {
@@ -960,21 +960,21 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
960
960
  default: boolean;
961
961
  };
962
962
  searchFilter: {
963
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
963
+ type: import("vue").PropType<import("../../shared/types").AnyObject>;
964
964
  default: () => {};
965
965
  };
966
966
  treeSetting: {
967
967
  type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
968
968
  [k: string]: unknown;
969
- } & import("../../../es/shared/types").AnyObject>;
969
+ } & import("../../shared/types").AnyObject>;
970
970
  default: () => {};
971
971
  };
972
972
  queryLoadChildData: {
973
- type: import("vue").PropType<(node: import("naive-ui").TreeOption) => Promise<import("../../../es/shared/types").AnyObject>>;
973
+ type: import("vue").PropType<(node: import("naive-ui").TreeOption) => Promise<import("../../shared/types").AnyObject>>;
974
974
  default: undefined;
975
975
  };
976
976
  queryTreeSearch: {
977
- type: import("vue").PropType<(keyWork: string) => Promise<import("../../../es/shared/types").AnyObject[]>>;
977
+ type: import("vue").PropType<(keyWork: string) => Promise<import("../../shared/types").AnyObject[]>>;
978
978
  default: () => Promise<never[]>;
979
979
  };
980
980
  }>> & {
@@ -1024,7 +1024,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1024
1024
  init: () => void;
1025
1025
  getallCheckedKeysWithChild: (item: import("naive-ui").TreeOption) => void;
1026
1026
  getallCheckedKeysWithParent: (item: import("naive-ui").TreeOption) => void;
1027
- queryLoadChildNode: (node: import("naive-ui").TreeOption) => Promise<import("../../../es/shared/types").AnyObject>;
1027
+ queryLoadChildNode: (node: import("naive-ui").TreeOption) => Promise<import("../../shared/types").AnyObject>;
1028
1028
  setDisabled: (data: import("naive-ui").TreeOption) => void;
1029
1029
  renderLabel: ({ option }: {
1030
1030
  option: import("naive-ui").TreeOption;
@@ -1411,7 +1411,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1411
1411
  data: {
1412
1412
  type: import("vue").PropType<(import("naive-ui/es/tree/src/interface").TreeOptionBase & {
1413
1413
  [k: string]: unknown;
1414
- } & import("../../../es/shared/types").AnyObject)[]>;
1414
+ } & import("../../shared/types").AnyObject)[]>;
1415
1415
  default: () => never[];
1416
1416
  };
1417
1417
  searchPlaceholder: {
@@ -1456,21 +1456,21 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1456
1456
  default: boolean;
1457
1457
  };
1458
1458
  searchFilter: {
1459
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
1459
+ type: import("vue").PropType<import("../../shared/types").AnyObject>;
1460
1460
  default: () => {};
1461
1461
  };
1462
1462
  treeSetting: {
1463
1463
  type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
1464
1464
  [k: string]: unknown;
1465
- } & import("../../../es/shared/types").AnyObject>;
1465
+ } & import("../../shared/types").AnyObject>;
1466
1466
  default: () => {};
1467
1467
  };
1468
1468
  queryLoadChildData: {
1469
- type: import("vue").PropType<(node: import("naive-ui").TreeOption) => Promise<import("../../../es/shared/types").AnyObject>>;
1469
+ type: import("vue").PropType<(node: import("naive-ui").TreeOption) => Promise<import("../../shared/types").AnyObject>>;
1470
1470
  default: undefined;
1471
1471
  };
1472
1472
  queryTreeSearch: {
1473
- type: import("vue").PropType<(keyWork: string) => Promise<import("../../../es/shared/types").AnyObject[]>>;
1473
+ type: import("vue").PropType<(keyWork: string) => Promise<import("../../shared/types").AnyObject[]>>;
1474
1474
  default: () => Promise<never[]>;
1475
1475
  };
1476
1476
  }>> & {
@@ -1479,7 +1479,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1479
1479
  }, {
1480
1480
  data: (import("naive-ui/es/tree/src/interface").TreeOptionBase & {
1481
1481
  [k: string]: unknown;
1482
- } & import("../../../es/shared/types").AnyObject)[];
1482
+ } & import("../../shared/types").AnyObject)[];
1483
1483
  defaultList: ((string | number) | {
1484
1484
  [key: string]: any;
1485
1485
  key: string | number;
@@ -1502,12 +1502,12 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1502
1502
  showClear: boolean;
1503
1503
  multiple: boolean;
1504
1504
  searchInner: boolean;
1505
- searchFilter: import("../../../es/shared/types").AnyObject;
1505
+ searchFilter: import("../../shared/types").AnyObject;
1506
1506
  treeSetting: import("naive-ui/es/tree/src/interface").TreeOptionBase & {
1507
1507
  [k: string]: unknown;
1508
- } & import("../../../es/shared/types").AnyObject;
1509
- queryLoadChildData: (node: import("naive-ui").TreeOption) => Promise<import("../../../es/shared/types").AnyObject>;
1510
- queryTreeSearch: (keyWork: string) => Promise<import("../../../es/shared/types").AnyObject[]>;
1508
+ } & import("../../shared/types").AnyObject;
1509
+ queryLoadChildData: (node: import("naive-ui").TreeOption) => Promise<import("../../shared/types").AnyObject>;
1510
+ queryTreeSearch: (keyWork: string) => Promise<import("../../shared/types").AnyObject[]>;
1511
1511
  }>>;
1512
1512
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "changeModalVisible")[], "check" | "changeModalVisible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1513
1513
  visible: {
@@ -1519,7 +1519,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1519
1519
  default: () => never[];
1520
1520
  };
1521
1521
  treeData: {
1522
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
1522
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1523
1523
  default: () => never[];
1524
1524
  };
1525
1525
  }>> & {
@@ -1528,7 +1528,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1528
1528
  }, {
1529
1529
  visible: boolean;
1530
1530
  defaultList: string[];
1531
- treeData: import("../../../es/shared/types").AnyObject[];
1531
+ treeData: import("../../shared/types").AnyObject[];
1532
1532
  }>;
1533
1533
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "checkPerson"[], "checkPerson", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1534
1534
  defaultValue: {
@@ -1,5 +1,5 @@
1
1
  import { ref, PropType } from 'vue';
2
- import { AnyObject } from '../../../../../es/shared/types';
2
+ import { AnyObject } from '../../../../shared/types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  visible: {
5
5
  type: BooleanConstructor;
@@ -53,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
53
53
  NModal: any;
54
54
  NCard: any;
55
55
  NButton: any;
56
- CSelectPerson: import("../../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{
56
+ CSelectPerson: import("../../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
57
57
  defaultList: {
58
58
  type: PropType<((string | number) | {
59
59
  [key: string]: any;
@@ -1,7 +1,7 @@
1
1
  import { ref } from 'vue';
2
2
  import { FormItemRule, FormRules } from 'naive-ui';
3
3
  import { isTextarea, isNumber, isDate, isShowOptions, isCandidate } from '../utils';
4
- import { AnyObject } from '../../../../../es/shared/types';
4
+ import { AnyObject } from '../../../../shared/types';
5
5
  declare const _default: import("vue").DefineComponent<{
6
6
  visible: {
7
7
  type: BooleanConstructor;
@@ -717,7 +717,7 @@ declare const _default: import("vue").DefineComponent<{
717
717
  NModal: any;
718
718
  NCard: any;
719
719
  NButton: any;
720
- CSelectPerson: import("../../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{
720
+ CSelectPerson: import("../../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
721
721
  defaultList: {
722
722
  type: import("vue").PropType<((string | number) | {
723
723
  [key: string]: any;
@@ -1,3 +1,3 @@
1
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../shared/types';
2
2
  import { InjectionKey } from 'vue';
3
3
  export declare const InjectionExpandFieldApiConfig: InjectionKey<AnyObject>;
@@ -1,5 +1,5 @@
1
1
  import { ref, PropType } from 'vue';
2
- import { AnyObject } from '../../../../es/shared/types';
2
+ import { AnyObject } from '../../../shared/types';
3
3
  import { IExpandFieldItemType } from './types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  id: {
@@ -824,7 +824,7 @@ declare const _default: import("vue").DefineComponent<{
824
824
  NModal: any;
825
825
  NCard: any;
826
826
  NButton: any;
827
- CSelectPerson: import("../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{
827
+ CSelectPerson: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
828
828
  defaultList: {
829
829
  type: PropType<((string | number) | {
830
830
  [key: string]: any;
@@ -1,11 +1,11 @@
1
- import { SFCWithInstall } from '../../../es/shared/types';
1
+ import { SFCWithInstall } from '../../shared/types';
2
2
  declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
3
3
  type: {
4
4
  type: import("vue").PropType<import("./src/interface").IType>;
5
5
  default: string;
6
6
  };
7
7
  data: {
8
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
8
+ type: import("vue").PropType<import("../../shared/types").AnyObject>;
9
9
  required: true;
10
10
  };
11
11
  addRenderItem: {
@@ -18,7 +18,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
18
18
  default: string;
19
19
  };
20
20
  data: {
21
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
21
+ type: import("vue").PropType<import("../../shared/types").AnyObject>;
22
22
  required: true;
23
23
  };
24
24
  addRenderItem: {
@@ -30,8 +30,9 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
30
30
  onAdd?: ((...args: any[]) => any) | undefined;
31
31
  onRemove?: ((...args: any[]) => any) | undefined;
32
32
  "onAdd:prevent"?: ((...args: any[]) => any) | undefined;
33
+ "onClick:grid"?: ((...args: any[]) => any) | undefined;
33
34
  }>>;
34
- emits: (event: "select" | "add" | "change" | "remove" | "add:prevent", ...args: any[]) => void;
35
+ emits: (event: "select" | "add" | "change" | "remove" | "add:prevent" | "click:grid", ...args: any[]) => void;
35
36
  canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
36
37
  canvas: import("vue").Ref<any>;
37
38
  pointTipProps: {
@@ -65,7 +66,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
65
66
  useCaliperRuler: any;
66
67
  updatePolyline: any;
67
68
  getGridInfo: any;
68
- init: () => import("../../../es/shared/types").AnyObject;
69
+ init: () => import("../../shared/types").AnyObject;
69
70
  PopupTip: import("vue").DefineComponent<{
70
71
  show: {
71
72
  type: BooleanConstructor;
@@ -90,7 +91,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
90
91
  show: boolean;
91
92
  point: import("./src/interface").ICoordinateValue;
92
93
  list: string[];
93
- propItems: import("../../../es/shared/types").AnyObject;
94
+ propItems: import("../../shared/types").AnyObject;
94
95
  };
95
96
  pointStyle: import("vue").ComputedRef<{
96
97
  top: string;
@@ -164,13 +165,13 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
164
165
  show: boolean;
165
166
  list: unknown[];
166
167
  }>;
167
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "change" | "remove" | "add:prevent")[], "remove" | "select" | "add" | "change" | "add:prevent", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
168
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "change" | "remove" | "add:prevent" | "click:grid")[], "remove" | "select" | "add" | "change" | "add:prevent" | "click:grid", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
168
169
  type: {
169
170
  type: import("vue").PropType<import("./src/interface").IType>;
170
171
  default: string;
171
172
  };
172
173
  data: {
173
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
174
+ type: import("vue").PropType<import("../../shared/types").AnyObject>;
174
175
  required: true;
175
176
  };
176
177
  addRenderItem: {
@@ -182,6 +183,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
182
183
  onAdd?: ((...args: any[]) => any) | undefined;
183
184
  onRemove?: ((...args: any[]) => any) | undefined;
184
185
  "onAdd:prevent"?: ((...args: any[]) => any) | undefined;
186
+ "onClick:grid"?: ((...args: any[]) => any) | undefined;
185
187
  }, {
186
188
  type: import("./src/interface").IType;
187
189
  }>>;
@@ -1,6 +1,6 @@
1
1
  import { type PropType } from 'vue';
2
2
  import { IType } from './interface';
3
- import { AnyObject } from '../../../../es/shared/types';
3
+ import { AnyObject } from '../../../shared/types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  type: {
6
6
  type: PropType<IType>;
@@ -32,8 +32,9 @@ declare const _default: import("vue").DefineComponent<{
32
32
  onAdd?: ((...args: any[]) => any) | undefined;
33
33
  onRemove?: ((...args: any[]) => any) | undefined;
34
34
  "onAdd:prevent"?: ((...args: any[]) => any) | undefined;
35
+ "onClick:grid"?: ((...args: any[]) => any) | undefined;
35
36
  }>>;
36
- emits: (event: "select" | "add" | "change" | "remove" | "add:prevent", ...args: any[]) => void;
37
+ emits: (event: "select" | "add" | "change" | "remove" | "add:prevent" | "click:grid", ...args: any[]) => void;
37
38
  canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
38
39
  canvas: import("vue").Ref<any>;
39
40
  pointTipProps: {
@@ -166,7 +167,7 @@ declare const _default: import("vue").DefineComponent<{
166
167
  show: boolean;
167
168
  list: unknown[];
168
169
  }>;
169
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "change" | "remove" | "add:prevent")[], "remove" | "select" | "add" | "change" | "add:prevent", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
170
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "change" | "remove" | "add:prevent" | "click:grid")[], "remove" | "select" | "add" | "change" | "add:prevent" | "click:grid", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
170
171
  type: {
171
172
  type: PropType<IType>;
172
173
  default: string;
@@ -184,6 +185,7 @@ declare const _default: import("vue").DefineComponent<{
184
185
  onAdd?: ((...args: any[]) => any) | undefined;
185
186
  onRemove?: ((...args: any[]) => any) | undefined;
186
187
  "onAdd:prevent"?: ((...args: any[]) => any) | undefined;
188
+ "onClick:grid"?: ((...args: any[]) => any) | undefined;
187
189
  }, {
188
190
  type: IType;
189
191
  }>;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as r,reactive as t,computed as o,onMounted as s,onBeforeUnmount as a,openBlock as i,createElementBlock as l,normalizeStyle as u,unref as n,createElementVNode as p,Fragment as c,createVNode as h,mergeProps as m,createCommentVNode as d}from"vue";import{fabric as f}from"../../../shared/utils/fabricjs/index.js";import v from"./components/PopupTip.vue.js";import g from"./components/PopupMenu.js";import"./hooks/useDraw.js";import"date-fns";import"lodash-es";import"./hooks/useEvent.js";import{useBirthProcessChart as w}from"./hooks/birthProcess/useBirthProcessChart.js";import{useTemperatureChart as C}from"./hooks/temperature/useTemperatureChart.js";import{useSurgicalAnesthesiaChart as k}from"./hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js";import{useElectrocardiogramChart as y}from"./hooks/electrocardiogram/useElectrocardiogramChart.js";var j=e({__name:"FabricChart",props:{type:{type:String,default:"temperature"},data:{type:Object,required:!0},addRenderItem:{type:Function}},emits:["change","add","remove","select","add:prevent"],setup(e,{expose:j,emit:P}){const x=e,I=r(null),b=r(),M=t({show:!1,point:{x:0,y:0},list:[]}),R=t({show:!1,point:{x:0,y:0},list:[],target:null}),A=o((()=>{var e;return null==(e=b.value)?void 0:e.wrapperEl})),E=o((()=>({width:`${x.data.width||800}px`,height:`${x.data.height||500}px`}))),{propItems:S,redrawPoints:T,select:_,clickMenu:F,useMeasureRuler:G,useCaliper:$,useCaliperRuler:q,updatePolyline:B,getGridInfo:D}=function(){const e=[b,x,P,I,M,R];switch(x.type){case"birthProcess":return w(...e);case"surgicalAnesthesia":return k(...e);case"electrocardiogram":return y(...e);default:return C(...e)}}();return s((()=>{b.value=new f.Canvas(I.value,{width:S.canvasWidth,height:S.canvasHeight,backgroundColor:"#fff",selection:!1,stopContextMenu:!0,fireRightClick:!0,allowTouchScrolling:!0})})),a((()=>{var e,r,t,o;null==(r=null==(e=b.value)?void 0:e.off)||r.call(e),null==(o=null==(t=b.value)?void 0:t.clear)||o.call(t)})),j({redrawPoints:T,select:_,canvas:b,useMeasureRuler:G,useCaliper:$,useCaliperRuler:q,updatePolyline:B,getGridInfo:D}),(e,r)=>(i(),l("div",{class:"c-fabric-chart",style:u(n(E))},[p("canvas",{ref_key:"canvasRef",ref:I},null,512),n(A)?(i(),l(c,{key:0},[h(v,m({propItems:n(S)},M),null,16,["propItems"]),h(n(g),m({propItems:n(S)},R,{show:R.show,"onUpdate:show":r[0]||(r[0]=e=>R.show=e),onClickMenu:n(F)}),null,16,["propItems","show","onClickMenu"])],64)):d("v-if",!0)],4))}});export{j as default};
1
+ import{defineComponent as e,ref as r,reactive as t,computed as o,onMounted as s,onBeforeUnmount as a,openBlock as i,createElementBlock as l,normalizeStyle as u,unref as n,createElementVNode as p,Fragment as c,createVNode as h,mergeProps as d,createCommentVNode as m}from"vue";import{fabric as f}from"../../../shared/utils/fabricjs/index.js";import v from"./components/PopupTip.vue.js";import g from"./components/PopupMenu.js";import"./hooks/useDraw.js";import"date-fns";import"lodash-es";import"./hooks/useEvent.js";import{useBirthProcessChart as w}from"./hooks/birthProcess/useBirthProcessChart.js";import{useTemperatureChart as C}from"./hooks/temperature/useTemperatureChart.js";import{useSurgicalAnesthesiaChart as k}from"./hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js";import{useElectrocardiogramChart as y}from"./hooks/electrocardiogram/useElectrocardiogramChart.js";var j=e({__name:"FabricChart",props:{type:{type:String,default:"temperature"},data:{type:Object,required:!0},addRenderItem:{type:Function}},emits:["change","add","remove","select","add:prevent","click:grid"],setup(e,{expose:j,emit:P}){const x=e,I=r(null),b=r(),M=t({show:!1,point:{x:0,y:0},list:[]}),R=t({show:!1,point:{x:0,y:0},list:[],target:null}),A=o((()=>{var e;return null==(e=b.value)?void 0:e.wrapperEl})),E=o((()=>({width:`${x.data.width||800}px`,height:`${x.data.height||500}px`}))),{propItems:S,redrawPoints:T,select:_,clickMenu:F,useMeasureRuler:G,useCaliper:$,useCaliperRuler:q,updatePolyline:B,getGridInfo:D}=function(){const e=[b,x,P,I,M,R];switch(x.type){case"birthProcess":return w(...e);case"surgicalAnesthesia":return k(...e);case"electrocardiogram":return y(...e);default:return C(...e)}}();return s((()=>{b.value=new f.Canvas(I.value,{width:S.canvasWidth,height:S.canvasHeight,backgroundColor:"#fff",selection:!1,stopContextMenu:!0,fireRightClick:!0,allowTouchScrolling:!0})})),a((()=>{var e,r,t,o;null==(r=null==(e=b.value)?void 0:e.off)||r.call(e),null==(o=null==(t=b.value)?void 0:t.clear)||o.call(t)})),j({redrawPoints:T,select:_,canvas:b,useMeasureRuler:G,useCaliper:$,useCaliperRuler:q,updatePolyline:B,getGridInfo:D}),(e,r)=>(i(),l("div",{class:"c-fabric-chart",style:u(n(E))},[p("canvas",{ref_key:"canvasRef",ref:I},null,512),n(A)?(i(),l(c,{key:0},[h(v,d({propItems:n(S)},M),null,16,["propItems"]),h(n(g),d({propItems:n(S)},R,{show:R.show,"onUpdate:show":r[0]||(r[0]=e=>R.show=e),onClickMenu:n(F)}),null,16,["propItems","show","onClickMenu"])],64)):m("v-if",!0)],4))}});export{j as default};
@@ -1,5 +1,5 @@
1
1
  import { ICoordinateValue } from '../interface';
2
- import { AnyObject } from '../../../../../es/shared/types';
2
+ import { AnyObject } from '../../../../shared/types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  show: {
5
5
  type: BooleanConstructor;
@@ -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 { 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 useBirthProcess(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
6
6
  clickMenu: ({ item, target }: {
7
7
  item: any;
@@ -1 +1 @@
1
- import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{drawLine as t,drawArrow as o,drawText as n,defaultTextStyle as i,drawPoint as r,drawTextAndIconGroup as l,defaultStyle as s,defaultRectStyle as a}from"../useDraw.js";import{useGrid as u}from"../useGrid.js";import{useBirthProcessCumputedPoint as c}from"../useCumputedPoint.js";import"../useEvent.js";import{getScaleInfo as d,drawScaleNumber as f,drawScaleLine as p}from"../useScaleColumn.js";import{useCommon as h}from"../useCommon.js";import"vue";import{getIndex as g,isEffectiveNode as v,getTime as m,getScaleNumberList as y}from"../../utils/index.js";import"../temperature/useShadow.js";import{cloneDeep as k}from"lodash-es";import{format as w}from"date-fns";import"naive-ui";import"@vueuse/core";function x(x,b,j,C,P){const{computedX:S,computedY:E,getXValue:G,getYValue:M}=c(b),{getEqualXTypes:T,handleAddPrevent:Y,isGridLimit:L,setPrevAndNextPoint:X}=h(x,j,b),{xAxis:A,grid:I,originX:H,originY:W,xCellWidth:N,endY:O,startTime:V,leftAddAreaWidth:D,leftScales:R,rightScales:$,yCellHeight:B,endX:F,scaleValues:q,canvasWidth:z,borderStyle:J,rightAddAreaWidth:K,event:Q,originYCervix:U,other:Z,canvasHeight:_}=b,ee=k(q),te=new Set;function oe(){ee.filter((e=>e.show)).forEach(((e,l)=>{var s;const a=[],u=[],c=[];null==(s=e.data)||s.forEach(((s,d)=>{!function(s,d,f){let p,h;const{pointAttr:g={},lineAttr:v={},title:m="",key:y,type:k="circle",childbirthStyle:w={}}=e,P=e.data[f+1],S=se(P,e);if(s&&S&&!d.breakpoint)h=t([...s,...S],{...v});else if(s&&!S&&!d.breakpoint){const o=se(P,e);h=o?t([...s,...o],{...v}):null}let E,T;if(d.childbirth){const e=s[1]+B;E=o([s[0],s[1],e],w),c.push(E),T=n([s[0]+N/2,e-B/2],{value:String(d.childbirth),...i,originX:"left",originY:"center",...w}),c.push(T)}const Y=u[f-1],L={origin:{data:d,title:m,key:y||"",dataIndex:l,index:f},leftLine:Y,rightLine:h,arrowGroup:E,arrowGroupText:T,...g,...b.event.hovered?b.event.evented?{selectable:!0}:{selectable:!0,lockMovementX:!0,lockMovementY:!0}:b.event};Y?p=r(k,{left:Y.get("x2"),top:Y.get("y2"),...L}):s&&(L.leftLine=null,p=r(k,{left:s[0],top:s[1],...L}));u.push(h),p&&(!function(e){Q.hovered&&(e.on("mouseover",(()=>{le(e,"hover")})),e.on("mouseout",(()=>{C.show=!1})));if(e.lockMovementX&&e.lockMovementY)return;e.on("moving",(()=>{re(e),function(e){var t,o,n,i;null==(t=e.leftLine)||t.setCoords().set({x2:e.left,y2:e.top}),null==(o=e.rightLine)||o.setCoords().set({x1:e.left,y1:e.top}),null==(n=e.arrowGroup)||n.setCoords().set({left:e.left,top:e.top}),null==(i=e.arrowGroupText)||i.setCoords().set({left:e.left+N/2,top:e.top+B/2})}(e),Q.hovered&&le(e)})),e.on("mouseup",(t=>{if(C.show=!1,1===t.button){const{key:t}=e.origin,o={...e.origin,data:{...e.origin.data,time:G(e.left),value:M(t,e.top)}};x.value.discardActiveObject(),j("change",o),ne(o,"change")}}))}(p),a.push(p),te.add(p))}(se(s,e),s,d)})),Promise.all(a).then((e=>{const t=u.filter((e=>e));X(e),Promise.all(c).then((o=>{x.value.add(...t,...e,...o),e.forEach((e=>{null==e||e.bringToFront()}))}))}))}))}function ne(e,t="add"){const{dataIndex:o,data:n,index:i,key:r}=e,l=ee.find((e=>e.key===r));switch(t){case"remove":l.data.splice(i,1);break;case"change":l.data[i]=n;break;default:{const e=g(n.time,l.data);l.data.splice(e,0,n);break}}ie()}function ie(){var e;te.size&&(null==(e=x.value)||e.remove(...function(e){const t=[];return e.forEach((e=>{e&&t.push(e),(null==e?void 0:e.leftLine)&&t.push(null==e?void 0:e.leftLine),(null==e?void 0:e.rightLine)&&t.push(null==e?void 0:e.rightLine),(null==e?void 0:e.arrowGroup)&&t.push(null==e?void 0:e.arrowGroup),(null==e?void 0:e.arrowGroupText)&&t.push(null==e?void 0:e.arrowGroupText)})),t}([...te]))),te.clear(),oe()}function re(e){const t=e.prevPoint?e.prevPoint.left:H,o=e.nextPoint?e.nextPoint.left:F;e.setCoords(),["cervix","fetalPresentation"].includes(e.origin.key)&&e.top<U&&e.set("top",U),e.top<W&&e.set("top",W),e.top>O&&e.set("top",O),e.left<t&&e.set("left",t),e.left>o&&e.set("left",o)}function le(e,t="moving"){const{title:o,key:n,data:i}=e.origin;C.point={x:e.left,y:e.top},C.list=[`${o} ${"hover"===t?i.value:M(n,e.top)}`,`时间 ${G(e.left).slice(-5)}`],C.show=!0}function se(e,t){if(v(e)&&function(e){const t=V+864e5,o=m(e);return o>=V&&o<=t}(e.time)){const o=S(e.time),n=E(t.key,t.range,e.value);return[o,n<W?W:n>O?O:n]}}function ae(e,t){return e+1>t[1]?t[0]:e+1}return u(x,b),function(){const t=new e.Rect({...J,width:z-D-K-1,height:O-1,left:D,top:0,fill:"transparent"});x.value.add(t)}(),function(){function t(t,o="left"){let r="left"===o?D:F;t.forEach(((t,o)=>{const{range:l,spaceValue:u,width:c,title:h,titleStyle:g,key:v,position:m="center",spaceGridNumber:k=1,showNumber:w,showMaxMinNumber:b}=t,j=[],C=[],P=r+c/2,S=y(l,u),E=S.length;S.forEach(((e,o)=>{const{lineXMain:n,lineXSub:i,textLeft:l}=d(m,r,c),s=O-o*B*k,a=0===o?O-8:o!==S.length-1||W||U&&"FHR"!==v?s:W+8;!w||(0===o||o===E-1)&&!b||j.push(f(String(e),t,l,a)),C.push(...p(t,o,n,i,s,B,W,E))}));const G=new e.Rect({...a,strokeWidth:.5,width:c,height:O,left:P,top:O/2}),M=n([P,W>0?W-B/2:B/2],{value:String(h),...i,...g}),T=new e.Group([...C,...j,G,...M?[M]:[]],{objectCaching:!1,...s});x.value.add(T),T.sendToBack(),r+=c}))}t(R),t($,"right")}(),function(){const{show:t,startTime:o,range:r=[0,23],position:l="top",style:a}=A.time,{show:u,range:c=[0,23],position:d,style:f}=A.processTime;if(t||u){const p=[],h=[],g=[],v=[],m=H+N/2,y=B/2;for(let e=0;e<I.mainXCell;e++){if(t){const t=0===e?+o.slice(11,13):ae(p.at(-1),r);p.push(t);const s="top"===l?W-y:O+y;g.push(n([m+e*N,s],{value:String(t),...i,...a||{}}))}if(u){const t=0===e?c[0]:h.at(-1)+1;h.push(t);const o="top"===d?y:_-y;v.push(n([m+e*N,o],{value:String(t),...i,...f||{}}))}}const k=new e.Group([...g,...v],{objectCaching:!1,...s});x.value.add(k),x.value.sendToBack(k)}}(),function(){var e;const o=Object.values(Z),n=[],i={},r=ee.find((e=>"cervix"===e.key&&e.show)),l=null==(e=null==r?void 0:r.data)?void 0:e.find((e=>3==+e.value));function s(e,t){const{key:o,range:n}=r||{},i=E(o,n,10),l=[0,t],s=[-t/e,0],a=[(O-i-t)/e,O-i],u=[F-H,e*(F-H)+t];let c=[],d=[];function f([o,n]){return Math.abs(n-e*o-t)<=1}function p([e,t]){const[o,n]=[...h([e,t])];return o>=H&&o<=F&&n>=i&&n<=O}function h([e,t]){return[H+e,O-t]}return f(l)&&p(l)&&(c=h(l)),f(s)&&p(s)&&(c=h(s)),f(a)&&p(a)&&(d=h(a)),f(u)&&p(u)&&(d=h(u)),[...c,...d]}o.forEach((e=>{if(!e.show)return;const{key:o}=e;switch(o){case"fetalPresentation":{const{range:i,show:r}=ee.find((e=>e.key===o));if(r){const r=E(o,i,0);n.push(t([H,r,F,r],{...e}))}break}case"alert":if(l){const{key:o,range:a}=r||{},u=216e5,c={time:w(new Date(m(l.time)+u),"yyyy-MM-dd HH:mm"),value:10},[d,f]=[S(l.time)-H,O-E(o,a,l.value)],[p,h]=[S(c.time)-H,O-E(o,a,c.value)],g=(h-f)/(p-d),v=f-d*g,y=s(g,v);y.length>0&&(n.push(t(y,{...e})),Object.assign(i,{k:g,b:v}))}break;case"handling":if(l){const{k:o,b:r}=i,a=144e5,u=s(o,r-(S(w(new Date(m(l.time)+a),"yyyy-MM-dd HH:mm"))-S(l.time))*o);u.length>0&&n.push(t(u,{...e}))}}})),x.value.add(...n)}(),oe(),function(){function e(e,t){const o=ee.findIndex((t=>t.key===e.key));return{renderItem:()=>e.title,origin:{title:e.title,unit:e.unit,dataIndex:o,key:e.key},pointer:t}}b.event.evented&&x.value.on("mouse:up",(t=>{if(3===t.button){const{x:o=0,y:n=0}=t.pointer||{};o>=H&&o<=F&&n>=W&&n<=O&&(P.point={x:o,y:n},P.show=!0,t.target?(P.target=t.target,P.list=["删除节点"],[...te].forEach((e=>{e.origin&&e.left===t.target.left&&e.top===t.target.top&&P.list.push({renderItem:()=>e.origin.title,origin:{...e.origin},mode:"remove",pointer:t.pointer})}))):(P.target=null,P.list=["新增节点"],ee.filter((e=>e.show)).forEach((i=>{if(!T([...te],o,"key").includes(i.key)){if(["cervix","fetalPresentation"].includes(i.key)&&n<U)return;P.list.push(e(i,t.pointer))}})),1===P.list.length&&(P.show=!1,Y("repeat"),console.log("当前时间段内无可新增节点"))))}}))}(),function(){const e=z-K/2;function t(e,t){if(!e.length)return;let n=W;const i=[];e.forEach((e=>{const o=e.title.split("").join("\n"),r=q.findIndex((t=>t.key===e.key)),{text:s,icon:a}=l(o,e,{text:{originY:"top",left:t,top:n},icon:{left:t,topY:n,originY:"top",origin:{type:e.type,dataIndex:r},...b.event}},"vertical");var u;n+=s.height+a.height+15,(u=a).on("moving",(()=>{u.set("originY","center"),L(u)?(re(u),le(u)):C.show=!1})),u.on("mouseup:before",(e=>{if(C.show=!1,0===e.e.button&&L(u))if(T([...te],u.left,"key").includes(u.origin.key))Y("repeat");else{const e={data:{time:G(u.left),value:M(u.origin.key,u.top)},...u.origin};j("add",e),ne(e)}!function(e){e.setCoords().set({originY:"top",left:e.originLeft,top:e.originTop})}(u)})),i.push(s,a)})),o(i),x.value.add(...i)}function o(e){const t=e.at(-1),o=(O-W)/2,n=(t.height+t.top-W)/2;e.forEach((e=>{const t=e.top+o-n;e.set({top:t,originTop:t})}))}t(R,D/2),t($,e)}(),{clickMenu:function({item:e,target:t}){const o={...e.origin};"remove"===e.mode?(j("remove",o),ne(o,"remove")):(Object.assign(o,{data:{time:G(e.pointer.x),value:M(e.origin.key,e.pointer.y)}}),j("add",o),ne(o))},redrawPoints:ie}}export{x as useBirthProcess};
1
+ import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{drawLine as t,drawArrow as o,drawText as n,defaultTextStyle as i,drawPoint as r,drawTextAndIconGroup as l,defaultStyle as s,defaultRectStyle as a}from"../useDraw.js";import{useGrid as u}from"../useGrid.js";import{useBirthProcessCumputedPoint as c}from"../useCumputedPoint.js";import"../useEvent.js";import{getScaleInfo as d,drawScaleNumber as f,drawScaleLine as p}from"../useScaleColumn.js";import{useCommon as h}from"../useCommon.js";import"vue";import{getIndex as g,isEffectiveNode as v,getTime as m,getScaleNumberList as y}from"../../utils/index.js";import{cloneDeep as k}from"lodash-es";import"../temperature/useShadow.js";import{format as w}from"date-fns";import"naive-ui";import"@vueuse/core";function x(x,b,j,C,P){const{computedX:S,computedY:E,getXValue:G,getYValue:M}=c(b),{getEqualXTypes:T,handleAddPrevent:Y,isGridLimit:L,setPrevAndNextPoint:X}=h(x,j,b),{xAxis:A,grid:I,originX:H,originY:W,xCellWidth:N,endY:O,startTime:V,leftAddAreaWidth:D,leftScales:R,rightScales:$,yCellHeight:B,endX:F,scaleValues:q,canvasWidth:z,borderStyle:J,rightAddAreaWidth:K,event:Q,originYCervix:U,other:Z,canvasHeight:_}=b,ee=k(q),te=new Set;function oe(){ee.filter((e=>e.show)).forEach(((e,l)=>{var s;const a=[],u=[],c=[];null==(s=e.data)||s.forEach(((s,d)=>{!function(s,d,f){let p,h;const{pointAttr:g={},lineAttr:v={},title:m="",key:y,type:k="circle",childbirthStyle:w={}}=e,P=e.data[f+1],S=se(P,e);if(s&&S&&!d.breakpoint)h=t([...s,...S],{...v});else if(s&&!S&&!d.breakpoint){const o=se(P,e);h=o?t([...s,...o],{...v}):null}let E,T;if(d.childbirth){const e=s[1]+B;E=o([s[0],s[1],e],w),c.push(E),T=n([s[0]+N/2,e-B/2],{value:String(d.childbirth),...i,originX:"left",originY:"center",...w}),c.push(T)}const Y=u[f-1],L={origin:{data:d,title:m,key:y||"",dataIndex:l,index:f},leftLine:Y,rightLine:h,arrowGroup:E,arrowGroupText:T,...g,...b.event.hovered?b.event.evented?{selectable:!0}:{selectable:!0,lockMovementX:!0,lockMovementY:!0}:b.event};Y?p=r(k,{left:Y.get("x2"),top:Y.get("y2"),...L}):s&&(L.leftLine=null,p=r(k,{left:s[0],top:s[1],...L}));u.push(h),p&&(!function(e){Q.hovered&&(e.on("mouseover",(()=>{le(e,"hover")})),e.on("mouseout",(()=>{C.show=!1})));if(e.lockMovementX&&e.lockMovementY)return;e.on("moving",(()=>{re(e),function(e){var t,o,n,i;null==(t=e.leftLine)||t.setCoords().set({x2:e.left,y2:e.top}),null==(o=e.rightLine)||o.setCoords().set({x1:e.left,y1:e.top}),null==(n=e.arrowGroup)||n.setCoords().set({left:e.left,top:e.top}),null==(i=e.arrowGroupText)||i.setCoords().set({left:e.left+N/2,top:e.top+B/2})}(e),Q.hovered&&le(e)})),e.on("mouseup",(t=>{if(C.show=!1,1===t.button){const{key:t}=e.origin,o={...e.origin,data:{...e.origin.data,time:G(e.left),value:M(t,e.top)}};x.value.discardActiveObject(),j("change",o),ne(o,"change")}}))}(p),a.push(p),te.add(p))}(se(s,e),s,d)})),Promise.all(a).then((e=>{const t=u.filter((e=>e));X(e),Promise.all(c).then((o=>{x.value.add(...t,...e,...o),e.forEach((e=>{null==e||e.bringToFront()}))}))}))}))}function ne(e,t="add"){const{dataIndex:o,data:n,index:i,key:r}=e,l=ee.find((e=>e.key===r));switch(t){case"remove":l.data.splice(i,1);break;case"change":l.data[i]=n;break;default:{const e=g(n.time,l.data);l.data.splice(e,0,n);break}}ie()}function ie(){var e;te.size&&(null==(e=x.value)||e.remove(...function(e){const t=[];return e.forEach((e=>{e&&t.push(e),(null==e?void 0:e.leftLine)&&t.push(null==e?void 0:e.leftLine),(null==e?void 0:e.rightLine)&&t.push(null==e?void 0:e.rightLine),(null==e?void 0:e.arrowGroup)&&t.push(null==e?void 0:e.arrowGroup),(null==e?void 0:e.arrowGroupText)&&t.push(null==e?void 0:e.arrowGroupText)})),t}([...te]))),te.clear(),oe()}function re(e){const t=e.prevPoint?e.prevPoint.left:H,o=e.nextPoint?e.nextPoint.left:F;e.setCoords(),["cervix","fetalPresentation"].includes(e.origin.key)&&e.top<U&&e.set("top",U),e.top<W&&e.set("top",W),e.top>O&&e.set("top",O),e.left<t&&e.set("left",t),e.left>o&&e.set("left",o)}function le(e,t="moving"){const{title:o,key:n,data:i}=e.origin;C.point={x:e.left,y:e.top},C.list=[`${o} ${"hover"===t?i.value:M(n,e.top)}`,`时间 ${G(e.left).slice(-5)}`],C.show=!0}function se(e,t){if(v(e)&&function(e){const t=V+864e5,o=m(e);return o>=V&&o<=t}(e.time)){const o=S(e.time),n=E(t.key,t.range,e.value);return[o,n<W?W:n>O?O:n]}}function ae(e,t){return e+1>t[1]?t[0]:e+1}return u(x,b),function(){const t=new e.Rect({...J,width:z-D-K-1,height:O-1,left:D,top:0,fill:"transparent"});x.value.add(t)}(),function(){function t(t,o="left"){let r="left"===o?D:F;t.forEach(((t,o)=>{const{range:l,spaceValue:u,width:c,title:h,titleStyle:g,key:v,position:m="center",spaceGridNumber:k=1,showNumber:w,showMaxMinNumber:b}=t,j=[],C=[],P=r+c/2,S=y(l,u),E=S.length;S.forEach(((e,o)=>{const{lineXMain:n,lineXSub:i,textLeft:l}=d(m,r,c),s=O-o*B*k,a=0===o?O-8:o!==S.length-1||W||U&&"FHR"!==v?s:W+8;!w||(0===o||o===E-1)&&!b||j.push(f(String(e),t,l,a)),C.push(...p(t,o,n,i,s,B,W,E))}));const G=new e.Rect({...a,strokeWidth:.5,width:c,height:O,left:P,top:O/2}),M=n([P,W>0?W-B/2:B/2],{value:String(h),...i,...g}),T=new e.Group([...C,...j,G,...M?[M]:[]],{objectCaching:!1,...s});x.value.add(T),T.sendToBack(),r+=c}))}t(R),t($,"right")}(),function(){const{show:t,startTime:o,range:r=[0,23],position:l="top",style:a}=A.time,{show:u,range:c=[0,23],position:d,style:f}=A.processTime;if(t||u){const p=[],h=[],g=[],v=[],m=H+N/2,y=B/2;for(let e=0;e<I.mainXCell;e++){if(t){const t=0===e?+o.slice(11,13):ae(p.at(-1),r);p.push(t);const s="top"===l?W-y:O+y;g.push(n([m+e*N,s],{value:String(t),...i,...a||{}}))}if(u){const t=0===e?c[0]:h.at(-1)+1;h.push(t);const o="top"===d?y:_-y;v.push(n([m+e*N,o],{value:String(t),...i,...f||{}}))}}const k=new e.Group([...g,...v],{objectCaching:!1,...s});x.value.add(k),x.value.sendToBack(k)}}(),function(){var e;const o=Object.values(Z),n=[],i={},r=ee.find((e=>"cervix"===e.key&&e.show)),l=null==(e=null==r?void 0:r.data)?void 0:e.find((e=>3==+e.value));function s(e,t){const{key:o,range:n}=r||{},i=E(o,n,10),l=[0,t],s=[-t/e,0],a=[(O-i-t)/e,O-i],u=[F-H,e*(F-H)+t];let c=[],d=[];function f([o,n]){return Math.abs(n-e*o-t)<=1}function p([e,t]){const[o,n]=[...h([e,t])];return o>=H&&o<=F&&n>=i&&n<=O}function h([e,t]){return[H+e,O-t]}return f(l)&&p(l)&&(c=h(l)),f(s)&&p(s)&&(c=h(s)),f(a)&&p(a)&&(d=h(a)),f(u)&&p(u)&&(d=h(u)),[...c,...d]}o.forEach((e=>{if(!e.show)return;const{key:o}=e;switch(o){case"fetalPresentation":{const{range:i,show:r}=ee.find((e=>e.key===o));if(r){const r=E(o,i,0);n.push(t([H,r,F,r],{...e}))}break}case"alert":if(l){const{key:o,range:a}=r||{},u=216e5,c={time:w(new Date(m(l.time)+u),"yyyy-MM-dd HH:mm"),value:10},[d,f]=[S(l.time)-H,O-E(o,a,l.value)],[p,h]=[S(c.time)-H,O-E(o,a,c.value)],g=(h-f)/(p-d),v=f-d*g,y=s(g,v);y.length>0&&(n.push(t(y,{...e})),Object.assign(i,{k:g,b:v}))}break;case"handling":if(l){const{k:o,b:r}=i,a=144e5,u=s(o,r-(S(w(new Date(m(l.time)+a),"yyyy-MM-dd HH:mm"))-S(l.time))*o);u.length>0&&n.push(t(u,{...e}))}}})),x.value.add(...n)}(),oe(),function(){function e(e,t){const o=ee.findIndex((t=>t.key===e.key));return{renderItem:()=>e.title,origin:{title:e.title,unit:e.unit,dataIndex:o,key:e.key},pointer:t}}b.event.evented&&x.value.on("mouse:up",(t=>{if(3===t.button){const{x:o=0,y:n=0}=t.pointer||{};o>=H&&o<=F&&n>=W&&n<=O&&(P.point={x:o,y:n},P.show=!0,t.target?(P.target=t.target,P.list=["删除节点"],[...te].forEach((e=>{e.origin&&e.left===t.target.left&&e.top===t.target.top&&P.list.push({renderItem:()=>e.origin.title,origin:{...e.origin},mode:"remove",pointer:t.pointer})}))):(P.target=null,P.list=["新增节点"],ee.filter((e=>e.show)).forEach((i=>{if(!T([...te],o,"key").includes(i.key)){if(["cervix","fetalPresentation"].includes(i.key)&&n<U)return;P.list.push(e(i,t.pointer))}})),1===P.list.length&&(P.show=!1,Y("repeat"),console.log("当前时间段内无可新增节点"))))}}))}(),function(){const e=z-K/2;function t(e,t){if(!e.length)return;let n=W;const i=[];e.forEach((e=>{const o=e.title.split("").join("\n"),r=q.findIndex((t=>t.key===e.key)),{text:s,icon:a}=l(o,e,{text:{originY:"top",left:t,top:n},icon:{left:t,topY:n,originY:"top",origin:{type:e.type,dataIndex:r},...b.event}},"vertical");var u;n+=s.height+a.height+15,(u=a).on("moving",(()=>{u.set("originY","center"),L(u)?(re(u),le(u)):C.show=!1})),u.on("mouseup:before",(e=>{if(C.show=!1,0===e.e.button&&L(u))if(T([...te],u.left,"key").includes(u.origin.key))Y("repeat");else{const e={data:{time:G(u.left),value:M(u.origin.key,u.top)},...u.origin};j("add",e),ne(e)}!function(e){e.setCoords().set({originY:"top",left:e.originLeft,top:e.originTop})}(u)})),i.push(s,a)})),o(i),x.value.add(...i)}function o(e){const t=e.at(-1),o=(O-W)/2,n=(t.height+t.top-W)/2;e.forEach((e=>{const t=e.top+o-n;e.set({top:t,originTop:t})}))}t(R,D/2),t($,e)}(),{clickMenu:function({item:e,target:t}){const o={...e.origin};"remove"===e.mode?(j("remove",o),ne(o,"remove")):(Object.assign(o,{data:{time:G(e.pointer.x),value:M(e.origin.key,e.pointer.y)}}),j("add",o),ne(o))},redrawPoints:ie}}export{x as useBirthProcess};
@@ -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 useBirthProcessChart(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 a,reactive as t,watch as l}from"vue";import{defaultBorderStyle as u}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import"date-fns";import{getTime as r}from"../../utils/index.js";import{useCanvasEvent as i}from"../useEvent.js";import"../temperature/useShadow.js";import"lodash-es";import"naive-ui";import"@vueuse/core";import{useBirthProcess as s}from"./useBirthProcess.js";function d(d,n,o,v,c,h){const m=e(),f=e(),p=e(),g=a((()=>n.data.scaleValues.filter((e=>"left"===e.layout&&e.show)))),x=a((()=>n.data.scaleValues.filter((e=>"right"===e.layout&&e.show)))),w=a((()=>{var e;return(null==(e=x.value)?void 0:e.length)?30:0})),y=a((()=>{var e;return 30+(null==(e=g.value)?void 0:e.reduce(((e,a)=>e+=a.width),0))})),V=a((()=>{var e;const{width:a}=n.data,t=null==(e=x.value)?void 0:e.reduce(((e,a)=>e+=a.width),0);return a-w.value-t})),b=a((()=>n.data.grid.mainXCell)),j=a((()=>{const e=n.data.grid.mainYCell||14;return n.data.scaleValues.find((e=>e.show&&"FHR"===e.key))||14!==e?e:10})),A=a((()=>(V.value-y.value)/b.value)),C=a((()=>{const{xAxis:e,height:a}=n.data,t=Object.values(e).reduce(((e,a)=>(a.show&&e++,e)),0);return a/(j.value+t)})),k=a((()=>{const{xAxis:e}=n.data,a=Object.values(e).reduce(((e,a)=>(a.show&&"top"===a.position&&e++,e)),0);return C.value*a})),Y=a((()=>{var e;const{scaleValues:a}=n.data;if(!(null==(e=a.find((e=>"FHR"===e.key)))?void 0:e.show)&&!k.value)return k.value;const t=a.find((e=>"cervix"===e.key)),[,l]=(null==t?void 0:t.range)||[0,10],u=(null==t?void 0:t.spaceValue)||1;return S.value-l*u*C.value})),S=a((()=>{const{xAxis:e,height:a}=n.data,t=Object.values(e).reduce(((e,a)=>(a.show&&"bottom"===a.position&&e++,e)),0);return a-C.value*t})),H=a((()=>r(n.data.xAxis.time.startTime))),P=a((()=>36e5/A.value)),X=a((()=>{const{scaleValues:e}=n.data,a=e.find((e=>"cervix"===e.key));return C.value/((null==a?void 0:a.spaceValue)||1)})),F=a((()=>{const{scaleValues:e}=n.data,a=e.find((e=>"FHR"===e.key));return C.value/((null==a?void 0:a.spaceValue)||10)})),R=a((()=>{const{scaleValues:e}=n.data,a=e.find((e=>"fetalPresentation"===e.key));return C.value/((null==a?void 0:a.spaceValue)||1)})),W=a((()=>{var e;return(null==(e=n.data.grid)?void 0:e.event)||{selectable:!0,evented:!0,hovered:!0}})),O=t({canvasWidth:n.data.width,canvasHeight:n.data.height,borderStyle:{...u,...n.data.borderStyle||{}},selectionStyle:n.data.selectionStyle||{},grid:n.data.grid,other:n.data.other,originX:y.value,endX:V.value,originY:k.value,endY:S.value,xCellWidth:A.value,yCellHeight:C.value,gridXNumber:b.value,gridYNumber:j.value,xAxis:n.data.xAxis,leftScales:g.value,rightScales:x.value,leftAddAreaWidth:30,rightAddAreaWidth:w.value,startTime:H.value,timeXCell:P.value,cervixYCell:X.value,FHRYCell:F.value,fetalPresentationYCell:R.value,scaleValues:n.data.scaleValues,event:W.value,originYCervix:Y.value});return l((()=>d.value),(e=>{e&&function(){const{clickMenu:e,redrawPoints:a}=s(d,O,o,c,h);f.value=a,p.value=e;const{select:t}=i(d,O,o);m.value=t}()}),{immediate:!0}),{propItems:O,redrawPoints:f,select:m,clickMenu:p}}export{d as useBirthProcessChart};
1
+ import{ref as e,computed as a,reactive as t,watch as l}from"vue";import{defaultBorderStyle as u}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import"date-fns";import{getTime as r}from"../../utils/index.js";import{useCanvasEvent as i}from"../useEvent.js";import"lodash-es";import"../temperature/useShadow.js";import"naive-ui";import"@vueuse/core";import{useBirthProcess as s}from"./useBirthProcess.js";function d(d,n,o,v,c,h){const m=e(),f=e(),p=e(),g=a((()=>n.data.scaleValues.filter((e=>"left"===e.layout&&e.show)))),x=a((()=>n.data.scaleValues.filter((e=>"right"===e.layout&&e.show)))),w=a((()=>{var e;return(null==(e=x.value)?void 0:e.length)?30:0})),y=a((()=>{var e;return 30+(null==(e=g.value)?void 0:e.reduce(((e,a)=>e+=a.width),0))})),V=a((()=>{var e;const{width:a}=n.data,t=null==(e=x.value)?void 0:e.reduce(((e,a)=>e+=a.width),0);return a-w.value-t})),b=a((()=>n.data.grid.mainXCell)),j=a((()=>{const e=n.data.grid.mainYCell||14;return n.data.scaleValues.find((e=>e.show&&"FHR"===e.key))||14!==e?e:10})),A=a((()=>(V.value-y.value)/b.value)),C=a((()=>{const{xAxis:e,height:a}=n.data,t=Object.values(e).reduce(((e,a)=>(a.show&&e++,e)),0);return a/(j.value+t)})),k=a((()=>{const{xAxis:e}=n.data,a=Object.values(e).reduce(((e,a)=>(a.show&&"top"===a.position&&e++,e)),0);return C.value*a})),Y=a((()=>{var e;const{scaleValues:a}=n.data;if(!(null==(e=a.find((e=>"FHR"===e.key)))?void 0:e.show)&&!k.value)return k.value;const t=a.find((e=>"cervix"===e.key)),[,l]=(null==t?void 0:t.range)||[0,10],u=(null==t?void 0:t.spaceValue)||1;return S.value-l*u*C.value})),S=a((()=>{const{xAxis:e,height:a}=n.data,t=Object.values(e).reduce(((e,a)=>(a.show&&"bottom"===a.position&&e++,e)),0);return a-C.value*t})),H=a((()=>r(n.data.xAxis.time.startTime))),P=a((()=>36e5/A.value)),X=a((()=>{const{scaleValues:e}=n.data,a=e.find((e=>"cervix"===e.key));return C.value/((null==a?void 0:a.spaceValue)||1)})),F=a((()=>{const{scaleValues:e}=n.data,a=e.find((e=>"FHR"===e.key));return C.value/((null==a?void 0:a.spaceValue)||10)})),R=a((()=>{const{scaleValues:e}=n.data,a=e.find((e=>"fetalPresentation"===e.key));return C.value/((null==a?void 0:a.spaceValue)||1)})),W=a((()=>{var e;return(null==(e=n.data.grid)?void 0:e.event)||{selectable:!0,evented:!0,hovered:!0}})),O=t({canvasWidth:n.data.width,canvasHeight:n.data.height,borderStyle:{...u,...n.data.borderStyle||{}},selectionStyle:n.data.selectionStyle||{},grid:n.data.grid,other:n.data.other,originX:y.value,endX:V.value,originY:k.value,endY:S.value,xCellWidth:A.value,yCellHeight:C.value,gridXNumber:b.value,gridYNumber:j.value,xAxis:n.data.xAxis,leftScales:g.value,rightScales:x.value,leftAddAreaWidth:30,rightAddAreaWidth:w.value,startTime:H.value,timeXCell:P.value,cervixYCell:X.value,FHRYCell:F.value,fetalPresentationYCell:R.value,scaleValues:n.data.scaleValues,event:W.value,originYCervix:Y.value});return l((()=>d.value),(e=>{e&&function(){const{clickMenu:e,redrawPoints:a}=s(d,O,o,c,h);f.value=a,p.value=e;const{select:t}=i(d,O,o);m.value=t}()}),{immediate:!0}),{propItems:O,redrawPoints:f,select:m,clickMenu:p}}export{d as useBirthProcessChart};
@@ -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
  declare type DetailEventOptions = {
4
4
  points: number[];
5
5
  lineStartIndex: number;
@@ -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 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
+ 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{drawLine as i}from"../useDraw.js";import{useGrid as n}from"../useGrid.js";import{useElectrocardiogramCumputedPoint as s}from"../useCumputedPoint.js";import"../useEvent.js";import"vue";import"date-fns";import"../temperature/useShadow.js";import{ECG as a}from"../../constants/index.js";import"naive-ui";function l(l,d,u){const{computedX:c,computedY:m}=s(d),{borderStyle:h,originX:f,originY:g,xCellWidth:p,yCellHeight:L,canvasWidth:E,canvasHeight:M,dataList:v,columnNumber:N,gridYNumber:C,gridXNumber:x,rowNumber:S,lineStyle:b,titleStyle:w}=d,j=new Set,R=new Set;function y(t=0){v.forEach(((r,o)=>{if(o===v.length-1&&arguments.length)return;const{x:i,y:n,rowIdx:s}=r.origin,l=~~(r.data.length/N),h=r.data.reduce(((e,r,i)=>{const n=o<a.MAXLINENUMBER-1&&i>=t&&i<=t+l||o===a.MAXLINENUMBER-1?[{x:c(e.length+1),y:m(-+r)}]:[];return e.concat(n)}),[]),f=new e.Polyline(h,{...b,fill:"transparent",strokeWidth:1,left:i,top:n,hasControls:!1,hasBorders:!1,hoverCursor:"default",lockMovementX:!0,lockMovementY:!0,objectCaching:!0,evented:!0,selectable:!0});if(A(f,{...d.config,...d,lineStartIndex:t,points:r.data,scale:4,showScaleText:!0,showNumberText:!0,detailRadius:370,beforeEvent:()=>u.value&&Promise.reject()}),f.startIdx=t,o<v.length-1?j.add(f):R.add(f),arguments.length)return;const g=new e.Text(String(r.title),{...w,left:i+p,top:n,originX:"left",originY:"top"});R.add(g)}));const r=arguments.length?[...j]:[...j,...R];l.value.add(...r)}function A(e,t){o(e,t)}n(l,{...d,gridXNumber:x*a.SMALLCELLNUMBER,gridYNumber:C*a.SMALLCELLNUMBER,xCellWidth:p/a.SMALLCELLNUMBER,yCellHeight:L/a.SMALLCELLNUMBER,grid:{...d.grid,subXCell:a.SMALLCELLNUMBER,subYCell:a.SMALLCELLNUMBER}}),function(){const{strokeWidth:t}=h,r=new e.Rect({...h,width:E-t,height:M-t,left:f,top:g,fill:"transparent"});l.value.add(r)}(),function(){const e=E/N,t=[];r(N).forEach((r=>{if(r+1>=N)return;const o=(r+1)*e,n=i([o,0,o,M],{stroke:"#000"});t.push(n)})),l.value.add(...t)}(),y();return{updatePolyline:t((t=>{if(1===N)return;const r=v[v.length-1].data.length,o=~~(r/N),i=t/100*r-o/2,n=i+o>r?r-o:Math.max(0,i);e.util.requestAnimFrame((()=>{if(j.size){const[e]=[...j];if(e.startIdx===n)return;[...j].forEach((e=>l.value.remove(e))),j.clear()}y(n)}))}),150)}}export{l as useElectrocardiogram};
@@ -1,8 +1,8 @@
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';
5
- import { ECG } from '../../../../../../es/components/fabric-chart/src/constants';
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';
6
6
  export declare function useElectrocardiogramChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
7
7
  propItems: any;
8
8
  updatePolyline: Ref<any>;
@@ -1 +1 @@
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
+ import{ref as e,computed as a,reactive as t,unref as l,watch as r}from"vue";import{defaultBorderStyle as u,defaultLineStyle as i,defaultTextStyle as n}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 o}from"../../constants/index.js";import"naive-ui";import"@vueuse/core";import{useElectrocardiogram as d}from"./useElectrocardiogram.js";import{useMeasureInstrument as s}from"./useMeasureInstrument.js";function m(m,v,c,g,h,p){const f=e(),N=e(),b=e(),y=e(),M=a((()=>v.data.width)),L=a((()=>v.data.height)),S=a((()=>(M.value-0)/w.value)),C=a((()=>(L.value-0)/x.value)),w=a((()=>{const{dataList:e,config:a}=v.data,t=e[e.length-1].data.length/a.hz;return Math.ceil(t/a.mainXCellValue)})),x=a((()=>{const{config:e}=v.data;return Math.ceil(26*j.value/e.mainYCellValue)})),j=a((()=>{const{dataList:e,config:a}=v.data,t=e[e.length-1].data,l=Math.max(...t)-Math.min(...t);return"uv"===a.valueUnit?.001*l:"v"===a.valueUnit?1e3*l:l})),E=a((()=>{var e;return(null==(e=v.data.grid)?void 0:e.event)||{selectable:!0,evented:!0}})),R=a((()=>{const{mode:e="2-6"}=v.data,[a,t]=e.split("-").map((e=>+e));return{columnNumber:a,rowNumber:t}})),I=a((()=>{const{dataList:e,width:a,config:t}=v.data,{columnNumber:l,rowNumber:r}=R.value,u=a/l,i=j.value/t.mainYCellValue*C.value+C.value,n=C.value,d=e.length;return e.map(((e,a)=>{const t=o.MAXLINENUMBER===d&&a===d-1?r:a%r;return{...e,origin:{x:(o.MAXLINENUMBER===d&&a===d-1?0:Math.floor(a/r))*u,y:t*i+n,rowIdx:t}}}))})),X=t({canvasWidth:v.data.width,canvasHeight:v.data.height,borderStyle:{...u,...v.data.borderStyle},lineStyle:{...i,...v.data.lineStyle},titleStyle:{...n,...v.data.titleStyle},measureLineStyle:{...i,...v.data.measureLineStyle},measureTextStyle:{...n,...v.data.measureTextStyle},grid:v.data.grid,originX:0,endX:M.value,originY:0,endY:L.value,xCellWidth:S.value,yCellHeight:C.value,gridXNumber:w.value,gridYNumber:x.value,event:E.value,dataList:I.value,columnNumber:l(R).columnNumber,rowNumber:l(R).rowNumber,config:v.data.config});return r((()=>m.value),(e=>{e&&function(){const{useMeasureRuler:e,flag:a,useCaliper:t,useCaliperRuler:l}=s(m,X),{updatePolyline:r}=d(m,X,a);N.value=e,b.value=t,y.value=l,f.value=r}()}),{immediate:!0}),{propItems:X,updatePolyline:f,useMeasureRuler:N,useCaliper:b,useCaliperRuler:y,getGridInfo:function(){return{cellWidth:S.value,cellHeight:C.value,smallCellNumber:o.SMALLCELLNUMBER}}}}export{m 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;