cnhis-design-vue 3.1.44 → 3.1.45-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/es/components/base-search/src/index.vue.js +1 -1
  2. package/es/components/big-table/src/BigTable.vue.js +1 -1
  3. package/es/components/big-table/src/components/NoData.vue.js +1 -1
  4. package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -1
  5. package/es/components/big-table/src/components/input-button.vue.js +1 -1
  6. package/es/components/big-table/src/components/separate.vue.js +1 -1
  7. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
  8. package/es/components/button-print/src/ButtonPrint.vue.js +1 -1
  9. package/es/components/button-print/src/components/EditFormat.vue.js +1 -1
  10. package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -1
  11. package/es/components/button-print/src/components/Preview.vue.js +1 -1
  12. package/es/components/classification/src/components/search-filter/index.vue.js +1 -1
  13. package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
  14. package/es/components/classification/src/components/table-modal/index.vue.js +1 -1
  15. package/es/components/classification/src/index.vue.js +1 -1
  16. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  17. package/es/components/fabric-chart/index.d.ts +5 -41
  18. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -41
  19. package/es/components/fabric-chart/src/FabricChart.vue.js +1 -1
  20. package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/{useBirthProcess.d.ts → birthProcess/useBirthProcess.d.ts} +2 -2
  22. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -0
  23. package/es/components/fabric-chart/src/hooks/{useBirthProcessChart.d.ts → birthProcess/useBirthProcessChart.d.ts} +3 -3
  24. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -0
  25. package/es/components/fabric-chart/src/hooks/index.d.ts +5 -7
  26. package/es/components/fabric-chart/src/hooks/index.js +1 -1
  27. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +6 -0
  28. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -0
  29. package/es/components/fabric-chart/src/hooks/temperature/index.d.ts +6 -0
  30. package/es/components/fabric-chart/src/hooks/temperature/index.js +1 -0
  31. package/es/components/fabric-chart/src/hooks/temperature/useBottom.d.ts +4 -0
  32. package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -0
  33. package/es/components/fabric-chart/src/hooks/{useCenter.d.ts → temperature/useCenter.d.ts} +3 -3
  34. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -0
  35. package/es/components/fabric-chart/src/hooks/{useLeft.d.ts → temperature/useLeft.d.ts} +3 -3
  36. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -0
  37. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +4 -0
  38. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -0
  39. package/es/components/fabric-chart/src/hooks/temperature/useRight.d.ts +4 -0
  40. package/es/components/fabric-chart/src/hooks/temperature/useRight.js +1 -0
  41. package/es/components/fabric-chart/src/hooks/{useShadow.d.ts → temperature/useShadow.d.ts} +1 -1
  42. package/es/components/fabric-chart/src/hooks/temperature/useShadow.js +1 -0
  43. package/es/components/fabric-chart/src/hooks/{useTemperatureChart.d.ts → temperature/useTemperatureChart.d.ts} +3 -3
  44. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -0
  45. package/es/components/fabric-chart/src/hooks/temperature/useTop.d.ts +4 -0
  46. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -0
  47. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +1 -1
  48. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
  49. package/es/components/fabric-chart/src/interface.d.ts +1 -1
  50. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  51. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  52. package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -1
  53. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
  54. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  55. package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -1
  56. package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -1
  57. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  58. package/es/components/form-render/src/FormRender.vue.js +1 -1
  59. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  60. package/es/components/form-render/src/components/renderer/combination.js +1 -1
  61. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +77 -0
  62. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +93 -0
  63. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  64. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  65. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -1
  66. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  67. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  68. package/es/components/form-render/src/components/renderer/select.js +1 -1
  69. package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -1
  70. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  71. package/es/components/guide/src/renderer.js +1 -1
  72. package/es/components/iho-select-label/src/LabelFormContent.vue.js +1 -1
  73. package/es/components/iho-select-label/src/SelectLabel.vue.js +1 -1
  74. package/es/components/iho-select-label/src/components/label-classify.vue.js +1 -1
  75. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  76. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +3 -0
  77. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +1 -1
  78. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +3 -0
  79. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  80. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +3 -0
  81. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  82. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  83. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -1
  84. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  85. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +3 -0
  86. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +3 -0
  87. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
  88. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +3 -0
  89. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  90. package/es/components/iho-table/src/utils/dist/index.d.ts +44 -0
  91. package/es/components/iho-table/src/utils/index.js +1 -1
  92. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  93. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -1
  94. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -1
  95. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
  96. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
  97. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  98. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  99. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  100. package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
  101. package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -1
  102. package/es/components/map/src/Map.vue.js +1 -1
  103. package/es/components/picture-clipper/src/PictureClipper.vue.js +1 -1
  104. package/es/components/quick-search/src/index.vue.js +1 -1
  105. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
  106. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
  107. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
  108. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
  109. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  110. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -1
  111. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
  112. package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -1
  113. package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -1
  114. package/es/components/scale-view/src/components/NoData.vue.js +1 -1
  115. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +36 -0
  116. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +36 -0
  117. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +82 -0
  118. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -1
  119. package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
  120. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +57 -0
  121. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +57 -0
  122. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  123. package/es/components/select-label/src/SelectLabel.vue.js +1 -1
  124. package/es/components/select-label/src/components/label-classify.vue.js +1 -1
  125. package/es/components/select-person/src/SearchMultiple.vue.js +1 -1
  126. package/es/components/select-person/src/SelectPerson.vue.js +1 -1
  127. package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -1
  128. package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -1
  129. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -1
  130. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  131. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
  132. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.js +1 -1
  133. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.js +1 -1
  134. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.js +1 -1
  135. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.js +1 -1
  136. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.js +1 -1
  137. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.js +1 -1
  138. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.js +1 -1
  139. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.js +1 -1
  140. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  141. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -1
  142. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -1
  143. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.js +1 -1
  144. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.js +1 -1
  145. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -1
  146. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.js +1 -1
  147. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.js +1 -1
  148. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
  149. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  150. package/es/components/table-filter/src/directive/resize.js +1 -1
  151. package/es/components/time-line/src/TimeLine.vue.js +1 -1
  152. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  153. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -1
  154. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
  155. package/es/shared/components/SelectPage/SelectPage.vue.js +1 -1
  156. package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -1
  157. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
  158. package/es/shared/components/no-data/NoData.vue.js +1 -1
  159. package/es/shared/package.json.js +1 -1
  160. package/package.json +2 -2
  161. package/es/components/base-search/src/index.vue2.js +0 -1
  162. package/es/components/big-table/src/components/NoData.vue2.js +0 -1
  163. package/es/components/big-table/src/components/edit-form/edit-separate.vue2.js +0 -1
  164. package/es/components/big-table/src/components/input-button.vue2.js +0 -1
  165. package/es/components/big-table/src/components/separate.vue2.js +0 -1
  166. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue2.js +0 -1
  167. package/es/components/button-print/src/components/EditFormat.vue2.js +0 -1
  168. package/es/components/button-print/src/components/IdentityVerification.vue2.js +0 -1
  169. package/es/components/classification/src/components/search-filter/index.vue2.js +0 -1
  170. package/es/components/classification/src/components/set-classification/index.vue2.js +0 -1
  171. package/es/components/classification/src/components/table-modal/index.vue2.js +0 -1
  172. package/es/components/classification/src/index.vue2.js +0 -1
  173. package/es/components/date-picker/src/DatePicker.vue2.js +0 -1
  174. package/es/components/fabric-chart/src/FabricChart.vue2.js +0 -1
  175. package/es/components/fabric-chart/src/components/PopupTip.vue2.js +0 -1
  176. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +0 -1
  177. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +0 -1
  178. package/es/components/fabric-chart/src/hooks/useBottom.d.ts +0 -4
  179. package/es/components/fabric-chart/src/hooks/useBottom.js +0 -1
  180. package/es/components/fabric-chart/src/hooks/useCenter.js +0 -1
  181. package/es/components/fabric-chart/src/hooks/useLeft.js +0 -1
  182. package/es/components/fabric-chart/src/hooks/useOther.d.ts +0 -4
  183. package/es/components/fabric-chart/src/hooks/useOther.js +0 -1
  184. package/es/components/fabric-chart/src/hooks/useRight.d.ts +0 -4
  185. package/es/components/fabric-chart/src/hooks/useRight.js +0 -1
  186. package/es/components/fabric-chart/src/hooks/useShadow.js +0 -1
  187. package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +0 -1
  188. package/es/components/fabric-chart/src/hooks/useTop.d.ts +0 -4
  189. package/es/components/fabric-chart/src/hooks/useTop.js +0 -1
  190. package/es/components/field-set/src/FieldSet.vue2.js +0 -1
  191. package/es/components/form-config/src/FormConfig.vue2.js +0 -1
  192. package/es/components/form-config/src/components/FormConfigCreator.vue2.js +0 -1
  193. package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +0 -1
  194. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +0 -1
  195. package/es/components/form-config/src/components/renderer/CloseButton.vue2.js +0 -1
  196. package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +0 -1
  197. package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +0 -1
  198. package/es/components/form-render/src/FormRender.vue2.js +0 -1
  199. package/es/components/form-render/src/FormRenderWrapper.vue2.js +0 -1
  200. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +0 -1
  201. package/es/components/form-render/src/components/tooltipMessage.vue2.js +0 -1
  202. package/es/components/iho-select-label/src/LabelFormContent.vue2.js +0 -1
  203. package/es/components/iho-select-label/src/SelectLabel.vue2.js +0 -1
  204. package/es/components/iho-select-label/src/components/label-classify.vue2.js +0 -1
  205. package/es/components/iho-table/src/IhoTable.vue2.js +0 -1
  206. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +0 -1
  207. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +0 -1
  208. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +0 -1
  209. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +0 -1
  210. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +0 -1
  211. package/es/components/info-header/src/InfoHeader.vue2.js +0 -1
  212. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +0 -1
  213. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +0 -1
  214. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue2.js +0 -1
  215. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +0 -1
  216. package/es/components/info-header/src/components/infoDescription/index.vue2.js +0 -1
  217. package/es/components/info-header/src/components/patientInfo/index.vue2.js +0 -1
  218. package/es/components/keyboard/src/Keyboard.vue2.js +0 -1
  219. package/es/components/keyboard/src/components/InputNumber.vue2.js +0 -1
  220. package/es/components/keyboard/src/components/NumberPanel.vue2.js +0 -1
  221. package/es/components/map/src/Map.vue2.js +0 -1
  222. package/es/components/picture-clipper/src/PictureClipper.vue2.js +0 -1
  223. package/es/components/quick-search/src/index.vue2.js +0 -1
  224. package/es/components/recommend-search/src/RecommendSearch.vue2.js +0 -1
  225. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +0 -1
  226. package/es/components/recommend-search/src/components/RecommendMenu.vue2.js +0 -1
  227. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +0 -1
  228. package/es/components/scale-view/src/ScaleView.vue2.js +0 -1
  229. package/es/components/scale-view/src/components/AnswerParse.vue2.js +0 -1
  230. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +0 -1
  231. package/es/components/scale-view/src/components/EvaluatePage.vue2.js +0 -1
  232. package/es/components/scale-view/src/components/NoData.vue2.js +0 -1
  233. package/es/components/search-cascader/src/SearchCascader.vue2.js +0 -1
  234. package/es/components/select-label/src/LabelFormContent.vue2.js +0 -1
  235. package/es/components/select-label/src/components/label-classify.vue2.js +0 -1
  236. package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +0 -1
  237. package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +0 -1
  238. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue2.js +0 -1
  239. package/es/components/steps-wheel/src/StepsWheel.vue2.js +0 -1
  240. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +0 -1
  241. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +0 -1
  242. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +0 -1
  243. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +0 -1
  244. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue2.js +0 -1
  245. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +0 -1
  246. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +0 -1
  247. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +0 -1
  248. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +0 -1
  249. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +0 -1
  250. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue2.js +0 -1
  251. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +0 -1
  252. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +0 -1
  253. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +0 -1
  254. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +0 -1
  255. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +0 -1
  256. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +0 -1
  257. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +0 -1
  258. package/es/components/time-line/src/TimeLine.vue2.js +0 -1
  259. package/es/components/time-picker/src/TimePicker.vue2.js +0 -1
  260. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +0 -1
  261. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +0 -1
  262. package/es/shared/components/SelectPage/SelectPage.vue2.js +0 -1
  263. package/es/shared/components/SvgIcon/SvgIcon.vue2.js +0 -1
  264. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue2.js +0 -1
  265. package/es/shared/components/no-data/NoData.vue2.js +0 -1
  266. /package/es/_virtual/{_plugin-vue_export-helper.js → plugin-vue_export-helper.js} +0 -0
  267. /package/es/components/fabric-chart/src/{hooks/constant.d.ts → constants/index.d.ts} +0 -0
  268. /package/es/components/fabric-chart/src/{hooks/constant.js → constants/index.js} +0 -0
@@ -1 +1 @@
1
- import e from"./index.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
1
+ import{defineComponent as e,ref as t,provide as i,computed as l,watch as a,openBlock as n,createElementBlock as r,createElementVNode as s,createCommentVNode as o,renderSlot as u,unref as c,createVNode as f,withCtx as d,createTextVNode as h,toDisplayString as m,Fragment as p,renderList as v}from"vue";import b from"../../table-filter/src/components/render-widget/index.vue.js";import g from"../../table-filter/src/hooks/useMixins.js";import y from"../../table-filter/src/hooks/useAdvanced.js";import C from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as k,NIcon as S}from"naive-ui";import{Search as j}from"@vicons/ionicons5";import{cloneDeep as x}from"lodash-es";import{InjectionFilterApiConfig as q}from"../../table-filter/src/constants/index.js";import R from"../../../_virtual/plugin-vue_export-helper.js";const _={class:"base-search-block"},O={class:"base-container"},F={class:"bease-left"},A={class:"base-ul"},I={key:0,class:"baseli showQuickBtn"},Q=s("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),V={key:0,class:"qqConObjCount"},w={key:1,class:"baseli"},B={key:2,class:"baseli"},E=s("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var D=R(e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0,hideResetBtn:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0},filterApiConfig:{type:Object}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{expose:R,emit:D}){const L=e,{outQuickSearchFn:N}=g(),{isRender:P,getRenderSearchConObj:W,isExistDefValByRenderWidget:U,resetRenderWidgetValue:$}=C(),{transformData:z,transformParams:M}=y(),T=t([]),G=t(!1),H=t([]);i(q,L.filterApiConfig);const J=l((()=>X("hideQuickSearch"))),K=l((()=>X("hideResetBtn")));function X(e){return 0==L.showSettings[e]}function Y(){D("foldQuickSearch",!0)}function Z(e={}){const t=te()||[];!function(e,t,i=!1,l={}){let a=[];H.value.length>0&&(a=x(H.value));D("onFilterSearch",e,t,i,a,l)}(t,M(t),!0,e)}function ee(e,t){H.value.forEach((i=>{i._frontId===e&&(i.widgetCfg.isInit=t)}))}function te(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let i=0;i<e.length;i++){let l=e[i];const a=W(l);a&&t.push(a)}return t.filter((e=>e.value))}(H.value)}function ie(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{$(e)})),N.handlerInitSearchItem(e)}(H.value),D("handleReset",{targetType:"outQuickSearchReset"})}return a((()=>L.searchFieldList),(e=>{e&&e.length>0&&function(){H.value=[];let e=x(z(L.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));H.value=e,N.handlerInitSearchItem(H.value),H.value.some((e=>P(e)?U(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),a((()=>L.qqConObjCount),(e=>{const t=T.value.length||0;G.value=t+Number(e)>0&&K.value}),{immediate:!0}),a((()=>H),(()=>{T.value=te()||[];const e=M(T.value);G.value=T.value.length+Number(L.qqConObjCount)>0&&K.value,D("getFilterParam",T.value,e)}),{immediate:!0,deep:!0}),R({handleReset:ie}),(t,i)=>(n(),r("div",_,[s("div",O,[s("div",F,[s("ul",A,[o(" 筛选分类插槽 "),u(t.$slots,"classification"),c(J)?(n(),r("li",I,[f(c(k),{class:"search-default",type:"default",onClick:Y},{default:d((()=>[Q,h(" 筛选"),e.qqConObjCount?(n(),r("span",V,"("+m(e.qqConObjCount)+")",1)):o("v-if",!0)])),_:1})])):o("v-if",!0),o(" start--筛选外显--start "),(n(!0),r(p,null,v(H.value,(e=>(n(),r(p,null,[e.isRender?(n(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[f(b,{cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:Z,onChangeInit:ee},null,8,["cfg","modelValue","onUpdate:modelValue"])])):o("v-if",!0)],64)))),256)),o(" end--筛选外显--end "),o(" 查询按钮 "),H.value&&H.value.length>0?(n(),r("li",w,[f(c(k),{type:"primary",onClick:Z},{default:d((()=>[f(c(S),{component:c(j),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),h(" 查询 ")])),_:1})])):o("v-if",!0),o(" 重置按钮 "),G.value?(n(),r("li",B,[f(c(k),{onClick:ie},{default:d((()=>[E,h(" 重置 ")])),_:1})])):o("v-if",!0),o(" 业务按钮插槽 "),u(t.$slots,"buttons")])])])]))}}),[["__file","index.vue"]]);export{D as default};
@@ -1 +1 @@
1
- import e from"./BigTable.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","BigTable.vue"]]);export{i as default};
1
+ import e from"./BigTable.vue2.js";import r from"../../../_virtual/plugin-vue_export-helper.js";var i=r(e,[["__file","BigTable.vue"]]);export{i as default};
@@ -1 +1 @@
1
- import e from"./NoData.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var a=r(e,[["__file","NoData.vue"]]);export{a as default};
1
+ import{defineComponent as a,computed as e,openBlock as t,createElementBlock as s,unref as r,createCommentVNode as o,createElementVNode as n,toDisplayString as i}from"vue";import p from"../../../../shared/assets/img/nodata.png.js";import m from"../../../../shared/assets/img/no-permission.png.js";import l from"../../../../shared/assets/img/failure.png.js";import u from"../../../../shared/assets/img/notfound.png.js";import f from"../../../../_virtual/plugin-vue_export-helper.js";const g={class:"no-data-tip NoData-page"},d=["src"],c={key:1};var h=f(a({__name:"NoData",props:{noDataTip:{type:String,default:"暂无数据"},noDataImg:{type:String,default:"nodata"},showImg:{type:Boolean,default:!0}},setup(a){const f=a,h=e((()=>{let a=null;switch(f.noDataImg){case"no-permission":a=m;break;case"failure":a=l;break;case"nodata":a=p;break;default:a=u}return a})),v=e((()=>{let a="";switch(f.noDataImg){case"no-permission":a="请联系管理员";break;case"failure":a="请稍后再试"}return a}));return(e,p)=>(t(),s("div",g,[a.showImg?(t(),s("img",{key:0,src:r(h),alt:""},null,8,d)):o("v-if",!0),n("p",null,i(a.noDataTip),1),r(v)?(t(),s("span",c,i(r(v)),1)):o("v-if",!0)]))}}),[["__file","NoData.vue"]]);export{h as default};
@@ -1 +1 @@
1
- import e from"./edit-separate.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","edit-separate.vue"]]);export{t as default};
1
+ import{defineComponent as e,ref as o,watch as r,onDeactivated as a,openBlock as t,createBlock as l,unref as u,withCtx as n,createVNode as i,withModifiers as p}from"vue";import s from"../../../../../shared/components/SlotRender/SlotRender.js";import{cloneDeep as v,isObject as c,isArray as d}from"lodash-es";import{NPopover as f,NInput as m}from"naive-ui";import{useSeparateMap as w}from"../../hooks/useSeparateRow.js";import h from"../separate.vue.js";import x from"../../../../../_virtual/plugin-vue_export-helper.js";var y=x(e({__name:"edit-separate",props:{col:{type:Object,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0}},emits:["formChange"],setup(e,{emit:x}){const y=e,g=o(),_=o(!1);function b(e){_.value=e}r(_,(function(e){e?async function(e){var o;if(!e)return;j.value=v(e.row[y.col.field]),await new Promise((e=>setTimeout(e))),null==(o=g.value)||o.syncPosition()}(k(y.row)):R(k(y.row))}));const j=o(),{getRowData:k}=w();async function R(e){if(!e)return;const o=e.row[y.col.field];(c(j.value)||d(j.value)||o!==j.value)&&x("formChange",{value:j.value,row:y.row,column:y.col,index:e.index})}const S={border:"1px solid #f5f5f5",padding:"4px 0 4px 4px",background:"white","border-radius":"4px"};return a((()=>{R(k(y.row))})),(o,r)=>(t(),l(u(f),{ref_key:"popoverRef",ref:g,trigger:"manual",show:_.value,"onUpdate:show":r[3]||(r[3]=e=>_.value=e),"show-arrow":!1},{trigger:n((()=>[i(h,{onClick:r[0]||(r[0]=p((e=>_.value=!_.value),["stop"])),style:S,col:e.col,row:e.row},null,8,["col","row"])])),default:n((()=>[e.col.separateSlot?(t(),l(u(s),{key:0,renderer:e.col.separateSlot,value:j.value,"onUpdate:value":r[1]||(r[1]=e=>j.value=e),"onUpdate:show":b,col:e.col,row:e.row},null,8,["renderer","value","col","row"])):(t(),l(u(m),{key:1,value:j.value,"onUpdate:value":r[2]||(r[2]=e=>j.value=e),type:"textarea"},null,8,["value"]))])),_:1},8,["show"]))}}),[["__file","edit-separate.vue"]]);export{y as default};
@@ -1 +1 @@
1
- import t from"./input-button.vue2.js";import u from"../../../../_virtual/_plugin-vue_export-helper.js";var e=u(t,[["__file","input-button.vue"]]);export{e as default};
1
+ import{defineComponent as e,ref as t,openBlock as u,createBlock as r,unref as i,withKeys as a,withCtx as n,createVNode as o,createTextVNode as l}from"vue";import{NInput as p,NButton as v}from"naive-ui";import f from"../../../../_virtual/plugin-vue_export-helper.js";var m=f(e({__name:"input-button",emits:["trigger"],setup(e,{emit:f}){const m=t("");function s(){f("trigger",m.value)}return(e,t)=>(u(),r(i(p),{value:m.value,"onUpdate:value":t[0]||(t[0]=e=>m.value=e),placeholder:"字段搜索",class:"check-seach-input",onKeyup:a(s,["enter"])},{suffix:n((()=>[o(i(v),{text:"",onClick:s},{default:n((()=>[l("搜索")])),_:1})])),_:1},8,["value","onKeyup"]))}}),[["__file","input-button.vue"]]);export{m as default};
@@ -1 +1 @@
1
- import e from"./separate.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var a=r(e,[["__file","separate.vue"]]);export{a as default};
1
+ import{defineComponent as e,computed as a,openBlock as r,createElementBlock as t,createTextVNode as p,toDisplayString as s,unref as o,createElementVNode as l}from"vue";import{useSeparateMap as u}from"../hooks/useSeparateRow.js";import i from"../../../../_virtual/plugin-vue_export-helper.js";const c={class:"big-table__separate"},_=l("span",{class:"big-table__separatePlaceholder"},s(" "),-1);var n=i(e({__name:"separate",props:{col:{type:Object,required:!0},row:{type:Object,required:!0}},setup(e){const l=e,{separateDataMap:i}=u(),n=a((()=>{const e=i.value.get(l.row);return e?e.separateData[l.col.field]:""}));return(e,a)=>(r(),t("div",c,[p(s(o(n))+" ",1),_]))}}),[["__file","separate.vue"]]);export{n as default};
@@ -1 +1 @@
1
- import r from"./BpmnWorkflow.vue2.js";import o from"../../../_virtual/_plugin-vue_export-helper.js";var e=o(r,[["__file","BpmnWorkflow.vue"]]);export{e as default};
1
+ import{defineComponent as e,ref as t,reactive as n,onMounted as o,openBlock as r,createElementBlock as i,createCommentVNode as s,createElementVNode as l}from"vue";import"bpmn-js/dist/assets/diagram-js.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";import{attr as a}from"tiny-svg";import{useMessage as d}from"naive-ui";import p from"axios";import m from"moment";import c from"bpmn-js/lib/Viewer";import u from"./custom/customOtherModule/zoomScroll.js";import v from"bpmn-js/lib/features/modeling";import f from"diagram-js/lib/navigation/movecanvas";import b from"./custom/customOtherModule/customViewerRenderer.js";import y from"../../../_virtual/plugin-vue_export-helper.js";const g={class:"containers"};var h=y(e({__name:"BpmnWorkflow",props:{flowType:{type:String,default:"workflow"},processId:String,instanceId:String,token:String,getBpmnXml:{type:Function,default:()=>Promise.resolve({})},getInstanceHistory:{type:Function,default:()=>Promise.resolve({})},getNodeApprovaler:{type:Function,default:()=>Promise.resolve({})}},setup(e){const y=e;d();const h=t(null),w=n({nodeMenu:[],currentCanvasXml:null,eventType:["element.click","element.hover","element.out"]});p.create({withCredentials:!0,timeout:5e3,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"bearer "+y.token},baseURL:"/"}),o((()=>{console.log("生成bpmnModeler,展示画布"),x(y.processId,y.instanceId)}));const x=async(e,t)=>{"function"==typeof y.getBpmnXml&&(w.currentCanvasXml=await y.getBpmnXml(e),k(e,t))},k=async(e,t)=>{w.bpmnModeler&&w.bpmnModeler.destroy(),w.bpmnModeler=new c({container:h.value,additionalModules:[v,f,u,b,{bendpoints:["value",{}]}]});try{const{err:n}=await w.bpmnModeler.importXML(w.currentCanvasXml);if(n&&n.length)return console.error(n);w.bpmnModeler.get("canvas").zoom("fit-viewport","auto"),I(),j(e,t)}catch(e){console.error(`[Process Designer Warn]: ${(null==e?void 0:e.message)||e}`)}},I=()=>{let e=w.bpmnModeler.get("eventBus"),t=w.bpmnModeler.get("overlays"),n=w.bpmnModeler.get("selection");w.eventType.forEach((o=>{e.on(o,(e=>{let{element:r}=e;if(r.parent){if(!e||"bpmn:Process"===r.type)return!1;switch(o){case"element.hover":(async(e,t)=>{var n;let o="",{id:r,type:i}=e;if(!["label","bpmn:SequenceFlow"].includes(e.type)){const t=w.bpmnModeler.get("selection");t.select(null),t.select(e,!0)}if("bpmn:UserTask"==i){let e=w.nodeMenu.find((e=>e.key==r));(null==(n=null==e?void 0:e.auditor)?void 0:n.length)&&(o=`审核人:${e.auditor.map((e=>e.name)).join("、")}`,t.add(r,"tip",{position:{top:0,right:-12},html:`<div style="position: absolute;\n top: calc(50% - 5px);\n left: -10px;\n width: 0px;\n height: 0px;\n border:5px solid rgba(0, 0, 0, 0.75);\n border-top: 5px solid transparent;\n border-left: 5px solid transparent;\n border-bottom: 5px solid transparent;">\n </div>\n <div class="diagram-note"\n style="background-color: rgba(0, 0, 0, 0.75);\n color: #fff;\n font-size: 14px;\n text-align:left;\n width: 200px;\n max-height: 71px;\n padding: 5px;\n border-radius: 4px;\n word-break: break-word;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;">\n ${o}\n </div>`}))}})(r,t);break;case"element.out":n.select(null),t.clear()}}}))}))},M=(e,t)=>{const n=w.bpmnModeler.get("modeling");e.renderPathColor=t,n.setColor(e,{stroke:t})},j=async(e,t)=>{if("function"!=typeof y.getInstanceHistory)return;const n=w.bpmnModeler.get("elementRegistry");let o=n.filter((e=>!["label","bpmn:Process","bpmn:SequenceFlow"].includes(e.type))),r=await y.getInstanceHistory(e,t),i={},s=[],l=[];var d,p,c;r.historyActivity.map((e=>{-1!=e.activityId.indexOf("#multiInstanceBody")&&(s.push(e.activityId.replace("#multiInstanceBody","")),l.push(e))})),(d=r.historyActivity,p="activityId",c={},d.reduce((function(e,t){return!c[t[p]]&&(c[t[p]]=e.push(t)),e}),[])).filter((e=>![...new Set(s)].includes(e.activityId)&&"StartEvent_1"!=e.activityId&&!e.activityId.startsWith("Event_"))).map((e=>{let t=e.activityId.replace("#multiInstanceBody",""),n=e,o=l.filter((t=>e.activityId==t.activityId));(null==o?void 0:o.length)&&(n=o.reduce(((e,t)=>m(e.endTime).isBefore(t.endTime)?t:e))),i[t]=n.activityState}));let u=[];await Promise.all(o.map((async t=>{var o;if(Object.keys(i).includes(t.id)){let r=n.getGraphics(t.id).childNodes[2];a(r,{rx:10,ry:10,strokeWidth:3,strokeDasharray:0});let s=n.get(t.id);4==i[t.id]&&M(s,"#5aa36a"),2==i[t.id]&&M(s,"#d14141");let l={};if("bpmn:UserTask"==t.type){if("function"!=typeof y.getNodeApprovaler)return;l=await y.getNodeApprovaler(e,t.id),u.push({key:t.id,value:null==(o=null==t?void 0:t.businessObject)?void 0:o.name,auditor:null==l?void 0:l.auditor})}}}))),w.nodeMenu=u};return(e,t)=>(r(),i("div",g,[s(" 流程画布部分 "),l("div",{class:"canvas",ref_key:"canva",ref:h},null,512)]))}}),[["__file","BpmnWorkflow.vue"]]);export{h as default};
@@ -1 +1 @@
1
- import t from"./ButtonPrint.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var e=r(t,[["__file","ButtonPrint.vue"]]);export{e as default};
1
+ import t from"./ButtonPrint.vue2.js";import r from"../../../_virtual/plugin-vue_export-helper.js";var e=r(t,[["__file","ButtonPrint.vue"]]);export{e as default};
@@ -1 +1 @@
1
- import r from"./EditFormat.vue2.js";import t from"../../../../_virtual/_plugin-vue_export-helper.js";var e=t(r,[["__file","EditFormat.vue"]]);export{e as default};
1
+ import{defineComponent as e,ref as t,openBlock as o,createBlock as l,unref as n,withCtx as r,createVNode as i,createElementVNode as a,createTextVNode as u}from"vue";import{useMessage as s,NForm as p,NFormItem as d,NSpace as f,NUpload as m,NUploadDragger as c,NIcon as v,NText as h,NP as w}from"naive-ui";import{Archive as _}from"@vicons/ionicons5";import g from"axios";import x from"../../../../_virtual/plugin-vue_export-helper.js";const $={style:{"margin-bottom":"12px"}};var S=x(e({__name:"EditFormat",props:{formatId:null,token:null},setup(e,{expose:x}){const S=e,E=`${window.location.protocol}//${window.location.host}/bi-api`,C=`${E}/reprot/print/open/client/saveIReportFormat`,j=`${E}/reprot/print/open/client/getIReportFiles`,y=`${E}/reprot/print/open/client/delIReportFiles`,I=g.create({}),b=s(),F=t([]);var z;function R(e){return new Promise(((t,o)=>{var l;I.get(`${y}?formatId=${null==(l=S.formatId)?void 0:l.split("_")[1]}&authorizationKey=${S.token}&fileName=${e.file.name}`).then((({data:e})=>{"SUCCESS"!==(null==e?void 0:e.result)?(b.error((null==e?void 0:e.resultMsg)||"删除文件失败,请重试!"),o()):(b.success("删除文件成功!"),t("SUCCESS"))}))}))}return I.get(`${j}?formatId=${null==(z=S.formatId)?void 0:z.split("_")[1]}&authorizationKey=${S.token}`).then((({data:e})=>{(e.list||[]).forEach((e=>{F.value.push({id:Date.now().toString(),name:e,status:"finished"})}))})),x({submit:function(e){return new Promise(((t,o)=>{if(!function(){if(F.value.length<2)return!1;let e=!1,t=!1;const o=/\.([^.]+)$/;return F.value.forEach((l=>{var n;const r=(null==(n=l.file)?void 0:n.name)||l.name||"",i=o.exec(r)?RegExp.$1.toLowerCase():"";i&&".jrxml".includes(i)&&(e=!0),i&&".jasper".includes(i)&&(t=!0)})),!(!e||!t)}())return void b.warning("请至少上传一个jrxml文件和一个jasper文件!");if(0===F.value.filter((e=>e.file)).length)return void b.warning("本次无新文件增加,请先添加新文件!");const l=new FormData;Object.keys(e).forEach((t=>{l.append(t,e[t])})),F.value.forEach((e=>{e.file&&l.append("files",e.file)})),I.post(C,l,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((({data:e})=>{"SUCCESS"!==(null==e?void 0:e.result)?(b.error((null==e?void 0:e.resultMsg)||"上传文件失败,请重试!"),o()):t("SUCCESS")}))}))}}),(e,t)=>(o(),l(n(p),{"label-placement":"left","label-width":75},{default:r((()=>[i(n(d),{label:"格式文件:",path:"file"},{default:r((()=>[i(n(f),{vertical:""},{default:r((()=>[i(n(m),{multiple:"","directory-dnd":"","file-list":F.value,"onUpdate:file-list":t[0]||(t[0]=e=>F.value=e),onRemove:R},{default:r((()=>[i(n(c),null,{default:r((()=>[a("div",$,[i(n(v),{size:"36",depth:3,component:n(_)},null,8,["component"])]),i(n(h),{style:{"font-size":"12px"}},{default:r((()=>[u("点击或者拖动文件到该区域来上传")])),_:1}),i(n(w),{depth:"3",style:{margin:"5px 0 0 0","font-size":"13px"}},{default:r((()=>[u("至少包含一个jxml文件和一个jasper文件")])),_:1})])),_:1})])),_:1},8,["file-list"])])),_:1})])),_:1})])),_:1}))}}),[["__file","EditFormat.vue"]]);export{S as default};
@@ -1 +1 @@
1
- import e from"./IdentityVerification.vue2.js";import i from"../../../../_virtual/_plugin-vue_export-helper.js";var t=i(e,[["__file","IdentityVerification.vue"]]);export{t as default};
1
+ import{defineComponent as e,ref as t,reactive as a,watch as l,openBlock as o,createBlock as i,unref as u,normalizeStyle as r,withCtx as s,createElementVNode as n,mergeProps as d,createVNode as p,createTextVNode as c}from"vue";import{useMessage as m,NModal as v,NForm as f,NFormItem as y,NInput as w,NButton as _}from"naive-ui";import g from"./EditFormat.vue.js";import"../utils/print.js";import{isIReport as h}from"../utils/browserPrint.js";import I from"../../../../_virtual/plugin-vue_export-helper.js";const k={class:"content"};var V=I(e({__name:"IdentityVerification",props:{verifyUser:{type:Function,default:()=>Promise.resolve()},identityVerificationTitle:{default:"打印服务身份校验"},modelValue:{type:Boolean},formatId:null,templateId:null},emits:["update:modelValue","success","close"],setup(e,{emit:I}){const V=e,x=m(),b={account:"",password:""},C=t(null),j=t(!1),U=t("");let S=a({...b});const F={account:{required:!0,message:"请输入账号"},password:{required:!0,message:"请输入密码"}},P="416px",q=t(null),E=()=>{I("update:modelValue",!1),I("close")},N=t(!1),R=()=>{var e;null==(e=q.value)||e.validate((e=>{if(e)return console.log(e),!1;(async()=>{var e,t;try{N.value=!0;const{data:a={}}=await V.verifyUser(S)||{};if("SUCCESS"!==a.result)return x.error(a.resultMsg||"身份校验失败,请重试!"),!1;h(V.formatId||"")?(j.value=!0,U.value=null==(e=a.map)?void 0:e.token):I("success",null==(t=a.map)?void 0:t.token)}finally{N.value=!1}})()}))},T=async()=>{var e,t;try{N.value=!0;if(!await(null==(t=C.value)?void 0:t.submit({authorizationKey:U.value,id:null==(e=V.formatId)?void 0:e.split("_")[1],templateId:V.templateId,datasourceName:null,dataSourceId:null})))return!1;I("success",U.value)}finally{N.value=!1}};return l((()=>V.modelValue),(e=>{e||Object.assign(S,b)})),(t,a)=>(o(),i(u(v),{preset:"dialog",title:j.value?"编辑":e.identityVerificationTitle,class:"standard-modal standard-modal-white authentication-modal c-button-print-modal",show:e.modelValue,"close-on-esc":!1,"show-icon":!1,style:r({width:P,overflowY:"auto"}),"positive-text":j.value?"确认":"","negative-text":j.value?"取消":"",onClose:E,onNegativeClick:E,onPositiveClick:T},{default:s((()=>[n("div",k,[j.value?(o(),i(g,d({key:0,ref_key:"editFormRef",ref:C},t.$attrs,{formatId:e.formatId,token:U.value}),null,16,["formatId","token"])):(o(),i(u(f),{key:1,class:"login-form-button-print",ref_key:"formRef",ref:q,model:u(S),rules:F},{default:s((()=>[p(u(y),{path:"account"},{default:s((()=>[p(u(w),{value:u(S).account,"onUpdate:value":a[0]||(a[0]=e=>u(S).account=e),placeholder:"请输入账号"},null,8,["value"])])),_:1}),p(u(y),{path:"password"},{default:s((()=>[p(u(w),{type:"password","input-props":{autocomplete:"on",name:"password"},value:u(S).password,"onUpdate:value":a[1]||(a[1]=e=>u(S).password=e),placeholder:"请输入密码"},null,8,["value"])])),_:1}),p(u(y),null,{default:s((()=>[p(u(_),{loading:N.value,type:"primary",class:"login-form-button",onClick:R},{default:s((()=>[c("登录")])),_:1},8,["loading"])])),_:1})])),_:1},8,["model"]))])])),_:1},8,["title","show","style","positive-text","negative-text"]))}}),[["__file","IdentityVerification.vue"]]);export{V as default};
@@ -1 +1 @@
1
- import e from"./Preview.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","Preview.vue"]]);export{i as default};
1
+ import e from"./Preview.vue2.js";import r from"../../../../_virtual/plugin-vue_export-helper.js";var i=r(e,[["__file","Preview.vue"]]);export{i as default};
@@ -1 +1 @@
1
- import e from"./index.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
1
+ import{defineComponent as e,ref as i,onBeforeUnmount as t,watch as l,openBlock as a,createBlock as o,unref as n,normalizeClass as u,withCtx as s,createVNode as d,normalizeStyle as c,createElementVNode as r,createTextVNode as v,mergeProps as h}from"vue";import{NModal as f,NCard as p,NButton as m}from"naive-ui";import x from"../../../../table-filter/src/components/classify-filter/index.vue.js";import g from"../../../../../_virtual/plugin-vue_export-helper.js";const b={class:"svg-wrap"},y={class:"flex_right"};var _=g(e({__name:"index",props:{visible:{type:Boolean,default:!1},modalTitle:{type:String,default:"设置分类"},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]}},emits:["cancelSaveAdd"],setup(e,{expose:g,emit:_}){const w=e,k=i(w.visible),z=i(!1),A=i("860px");let C=i({maxHeight:"496px",height:"496px",overflowY:"auto"}),L=i(null),S=null;function H(){F(),S=setTimeout((()=>{L&&L.value.handleInitConditions()}),30)}function F(){S&&clearTimeout(S)}function T(){L&&L.value.saveAdd()}function $(){k.value=!1,_("cancelSaveAdd"),A.value="860px",C.value={height:"496px",maxHeight:"496px",overflowY:"auto"},z.value=!1,L&&L.value.cancelSaveAdd()}function j(){z.value=!z.value;let e=document.body.clientHeight;"860px"===A.value?(A.value="100%",C.value.maxHeight=`${e}px`,C.value.height=`${e}px`):(A.value="860px",C.value.maxHeight="496px",C.value.height="")}return t((()=>{F()})),l((()=>w.visible),(e=>{k.value=e,e&&H()})),g({cancelSaveAdd:$}),(e,i)=>(a(),o(n(f),{class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":z.value}]),show:k.value,"onUpdate:show":i[0]||(i[0]=e=>k.value=e),maskClosable:!1,width:A.value,bodyStyle:n(C),closable:!1,centered:"",onPositiveClick:T,onNegativeClick:$},{default:s((()=>[d(n(p),{style:c({width:A.value,...n(C)}),title:w.modalTitle,bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":s((()=>[r("div",b,[r("i",{onClick:j,class:u(["iconfont-table-filter",z.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),r("i",{onClick:$,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:s((()=>[r("div",y,[d(n(m),{onClick:$},{default:s((()=>[v("取消")])),_:1}),d(n(m),{type:"info",onClick:T},{default:s((()=>[v("保存")])),_:1})])])),default:s((()=>[d(x,h(e.$attrs,{ref_key:"conditionApiRef",ref:L,searchFieldList:w.searchFieldList,conditionList:w.conditionList}),null,16,["searchFieldList","conditionList"])])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}}),[["__file","index.vue"]]);export{_ as default};
@@ -1 +1 @@
1
- import e from"./index.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
1
+ import{defineComponent as e,ref as t,inject as i,useAttrs as a,computed as n,watch as o,openBlock as l,createElementBlock as s,createVNode as c,mergeProps as r,unref as d,withCtx as u,createTextVNode as f}from"vue";import{useMessage as v,NButton as p}from"naive-ui";import m from"../table-modal/index.vue.js";import y from"../search-filter/index.vue.js";import b from"../../../../table-filter/src/hooks/useMixins.js";import{InjectionFilterApiConfig as h}from"../../../../table-filter/src/constants/index.js";import g from"../../../../../_virtual/plugin-vue_export-helper.js";const C={class:"search"};var L=g(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:g}){const L=e,I=v(),{handleGetConfigApi:T}=b();let S=t(L.conditionList),_=t(),j=t(!1),x=t({}),A=t([]),O=t(!1);const F=t(null),k=i(h),w=a();async function G(e){try{let t=Object.assign(e,{id:L.settingId,tableId:w.tableId});await T(t,"requestSaveTableCondiTionSetting",{},k)&&(g("CondiTionListInit"),$(!1))}catch(e){console.log(e)}}function M(){$(!1),S.value.forEach((e=>{e.checked=!1}))}function q(){j.value=!0}function R(e){j.value=!0,x.value=Object.assign(e,{from:"edit"})}function D(e){j.value=!0,x.value=Object.assign(e,{from:"copy"})}async function E(e){try{if(Object.assign(e,{tableId:w.tableId,conditionList:JSON.stringify(S.value)}),O.value=!0,!await T(e,"requestSaveTableCondiTion",{},k))return;F.value&&F.value.cancelSaveAdd(),g("saveGetTableCondiTionList"),j.value=!1}catch(e){console.log(e)}finally{O.value=!1}}function H(){j.value=!1,x.value={}}function K(e,t){S.value=e,_.value=t}async function N(e){if(e)try{let t={id:e.sid};if(!await T(t,"requestDeleteTableCondiTion",{},k))return;I.success("删除成功"),g("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else I.info("请选择行")}function $(e){g("setClassifyModal",e)}async function B(){try{let e={id:L.settingId,tableId:w.tableId,type:"SEARCH_CATEGORY"};await T(e,"requestResetDefaultSetting",{},k)&&(g("CondiTionListInit"),$(!1))}catch(e){console.log(e)}}let J=n((()=>L.classifyModal));return o((()=>w.searchKey),(()=>{w.selectKeys=[w.searchKey||"all"]})),o((()=>L.searchFieldList),(e=>{e&&e.length>0&&(A.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),o((()=>L.conditionList),(e=>{S.value=e}),{immediate:!0,deep:!0}),o((()=>j),(e=>{e||(x.value={})})),(e,t)=>(l(),s("div",C,[c(m,r({dataSource:d(S),visibleIn:d(J)},e.$attrs,{onHandleOk:G,onClose:M,onChangeData:K,onResetPopconfirm:B,edit:R,copy:D,delItem:N,type:"search"}),{add:u((()=>[c(d(p),{type:"info",onClick:q},{default:u((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn"]),c(y,r({ref_key:"searchFilter",ref:F},e.$attrs,{visible:d(j),loading:d(O),conditionList:d(S),actionList_prop:d(x),searchFieldList:d(A),isInSearch:!0,isCnHis:!0,showCompareField:!0,onSaveAdd:E,onCancelSaveAdd:H}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList"])]))}}),[["__file","index.vue"]]);export{L as default};
@@ -1 +1 @@
1
- import e from"./index.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
1
+ import{defineComponent as e,useAttrs as t,computed as i,ref as l,inject as n,watch as a,openBlock as o,createBlock as s,unref as r,normalizeClass as u,withCtx as c,createVNode as d,normalizeStyle as p,createSlots as m,createElementVNode as v,createElementBlock as h,createCommentVNode as f,withDirectives as g,vShow as y,createTextVNode as C,toDisplayString as w,withModifiers as k,renderSlot as x}from"vue";import{useMessage as b,useDialog as z,NModal as S,NCard as _,NTooltip as D,NIcon as E,NSwitch as M,NPopconfirm as P,NButton as I}from"naive-ui";import{ReorderTwo as U,Brush as N,DocumentOutline as V}from"@vicons/ionicons5";import O from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as F}from"../../const/index.js";import B from"axios";import j from"../../../../../_virtual/plugin-vue_export-helper.js";const A={class:"svg-wrap"},H={class:"flex_between"},R={key:0},$={class:"table-modal-list"},J={class:"list-title"},T=v("span",{class:"list-title-item",style:{width:"6%"}},null,-1),Y=v("span",{class:"list-title-item"}," 名称 ",-1),q=v("span",{class:"list-title-item"}," 父类名称 ",-1),G=v("span",{class:"list-title-item"}," 是否显示 ",-1),K=v("span",{class:"list-title-item"}," 设置为默认 ",-1),L={class:"list-title-item"},Q=v("span",{class:"list-title-item"}," 操作 ",-1),W=["onClick"],X={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},Z=["title"],ee=["title"],te={class:"list-content-item list-content-switch"},ie={class:"list-content-item list-content-radio"},le={class:"list-content-item"},ne={class:"list-content-item"},ae={key:0},oe=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),se={key:1},re=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var ue=j(e({__name:"index",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>({})},copy:{type:Function,defdault:()=>({})},delItem:{type:Function,defdault:()=>({})},dataSource:{type:Array,default:()=>[]},type:{type:String},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","changeData","resetPopconfirm","finishSubmit"],setup(e,{emit:j}){const ue=e,ce=B.create({}),de=t(),pe=b(),me=z(),ve=i((()=>(null==de?void 0:de.isOrgAdmin)||!1)),he=l(ue.dataSource),fe=l(ue.visibleIn),ge=l(!1),ye=l("other"==ue.type?"100%":"860px"),Ce=l("654px"),we=n(F);function ke(){ue.type&&(ze(),j("handleOk",function(e){if("search"==e||"other"==e)return{id:"",tableId:"",setting:JSON.stringify(he.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))};if("mananger"==e){let e={};return he.value.forEach(((t,i)=>{const l=(null==t?void 0:t.id)||"";e[l]={id:l,index:i,default:t.isDefault?1:0,isHide:t.isShow?0:1}})),{type:"HOMEPAGE",tableId:"10001",setting:JSON.stringify({pageConfig:e})}}return}(ue.type)))}function xe(){be()}function be(){fe.value=!1,ze(),j("close")}function ze(){ye.value="860px",Ce.value="654px",ge.value=!1}function Se(){j("changeData",he.value)}function _e(){ge.value=!ge.value;let e=document.body.clientHeight;ye.value="860px"===ye.value?"100%":"860px",Ce.value="654px"===Ce.value?`${e}px`:"654px"}function De(e){j("resetPopconfirm",e)}function Ee(e,t,i){const l=ue[e];l&&l(t,i)}return a((()=>ue.visibleIn),(e=>{fe.value=e})),a((()=>ue.dataSource),(e=>{he.value=e}),{immediate:!0,deep:!0}),(t,i)=>(o(),s(r(S),{show:fe.value,bodyStyle:{height:Ce.value,overflowY:"auto"},width:ye.value,maskClosable:!1,class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":ge.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",onPositiveClick:ke,onNegativeClick:be},{default:c((()=>[d(r(_),{style:p({width:ye.value,height:Ce.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},m({"header-extra":c((()=>[v("div",A,[v("i",{onClick:_e,class:u(["iconfont-table-filter",ge.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),v("i",{onClick:be,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),default:c((()=>[r(ve)&&"mananger"==e.type?(o(),h("p",R,[v("span",{onClick:xe}," 添加首页 ")])):f("v-if",!0),v("div",$,[v("div",J,[T,Y,q,G,K,g(v("span",L," 设置公共首页 ",512),[[y,r(ve)&&"mananger"==e.type]]),Q]),d(r(O),{class:"list-content",tag:"ul",list:he.value,"item-key":"sid",onEnd:Se,animation:"300"},{item:c((({element:t})=>[g(v("li",{class:u({checked:t.checked}),onClick:e=>{return i=t,he.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1})),void j("changeData",he.value,i);var i}},[v("span",X,[d(r(D),{mouseEnterDelay:1},{trigger:c((()=>[d(r(E),{component:r(U),size:"24"},null,8,["component"])])),default:c((()=>[C(" 拖拽调整顺序 ")])),_:1})]),v("span",{title:t.displayCategory,class:"list-content-item"},w(t.name),9,Z),v("span",{title:t.name,class:"list-content-item"},w(t.displayCategory),9,ee),v("span",te,[d(r(M),{"onUpdate:value":e=>{return i=t,void he.value.forEach((e=>{e.sid==i.sid&&(e.isShow=!e.isShow,e.isShow||(i.isDefault=!1))}));var i},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),v("span",ie,[d(r(M),{"onUpdate:value":e=>{var i;(i=t).isShow&&he.value.forEach((e=>{e.sid==i.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),g(v("span",le,[d(r(M),{"onUpdate:value":e=>function(e){function t(e){let t="";for(const i in e)t+=encodeURIComponent(i)+"="+encodeURIComponent(e[i])+"&";return t=t.slice(0,-1),t}me.warning({title:`是否确定${e.isCommon?"取消":"设置"}公共首页?`,positiveText:"确定",negativeText:"取消",maskClosable:!1,onPositiveClick:()=>{let i={id:e.id,setCommon:!e.isCommon};ce({url:"homePage/updateCommon",method:"post",data:i,transformRequest:[t]}).then((t=>{"SUCCESS"===t.data.result?(pe.success(t.data.resultMsg),e.isCommon=!e.isCommon,j("finishSubmit")):pe.error(t.data.resultMsg)})).catch((e=>{console.log(e)}))},onNegativeClick:()=>({})})}(t),size:"small",value:t.isCommon},null,8,["onUpdate:value","value"])],512),[[y,r(ve)&&"mananger"==e.type]]),v("span",ne,["mananger"==e.type&&r(ve)?(o(),h("span",ae,[d(r(P),{onPositiveClick:e=>Ee("confirm",t)},{trigger:c((()=>[d(r(E),null,{default:c((()=>[oe])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0),f(" 编辑 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(E),{component:r(N),onClick:k((e=>Ee("edit",t,"编辑")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 编辑 ")])),_:2},1024)],512),[[y,"other"==e.type||"search"==e.type&&t.isEdit||"mananger"==e.type&&r(ve)]]),f(" 复制 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(E),{component:r(V),onClick:k((e=>Ee("copy",t,"复制")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 复制 ")])),_:2},1024)],512),[[y,"search"==e.type||"other"==e.type]]),f(" 删除 "),t.isEdit?(o(),h("span",se,[d(r(P),{onPositiveClick:e=>Ee("delItem",t,"删除")},{trigger:c((()=>[d(r(E),null,{default:c((()=>[re])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,W),[[y,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:c((()=>[v("div",H,[v("div",null,[r(we)?(o(),s(r(P),{key:0,placement:"top-start","positive-text":"确认","negative-text":"取消",onPositiveClick:De},{trigger:c((()=>[d(r(I),null,{default:c((()=>[C("恢复默认设置")])),_:1})])),default:c((()=>[C(" 确认要恢复系统默认设置吗? ")])),_:1})):f("v-if",!0)]),v("div",null,[d(r(I),{onClick:be},{default:c((()=>[C("取消")])),_:1}),x(t.$slots,"add"),d(r(I),{type:"info",onClick:ke},{default:c((()=>[C("保存")])),_:1})])])])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}}),[["__file","index.vue"]]);export{ue as default};
@@ -1 +1 @@
1
- import e from"./index.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
1
+ import{defineComponent as e,useAttrs as i,ref as n,provide as l,computed as t,onMounted as a,nextTick as o,watch as s,openBlock as d,createElementBlock as c,normalizeClass as r,unref as h,normalizeStyle as u,withDirectives as f,createVNode as p,createTextVNode as m,toDisplayString as g,createCommentVNode as v,createElementVNode as C,Fragment as y,renderList as k,createBlock as S,withCtx as b}from"vue";import{useMessage as x,NIcon as O,NTooltip as _}from"naive-ui";import{Repeat as w,SettingsOutline as I,ChevronDown as L,ChevronForward as N,Checkmark as j,Close as z,ChevronUp as B}from"@vicons/ionicons5";import P from"./components/set-classification/index.vue.js";import J from"./directive/flexibleResize.js";import{InjectionFilterApiConfig as M}from"../../table-filter/src/constants/index.js";import{root_isShowResetButton as A}from"./const/index.js";import E from"../../table-filter/src/hooks/useMixins.js";import T from"../../table-filter/src/hooks/useAdvanced.js";import R from"../../../_virtual/plugin-vue_export-helper.js";const F={key:0,class:"header"},W={class:"tree"},q=["onClick"],G=["onClick"],Q=["onClick"],$={class:"child-item-name"},D={key:1,class:"tree-type-footer"},V={class:"selected-num"},H=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),K={key:0,class:"tile-type classify-1"},U={key:0,class:"header"},X={class:"right-setting"},Y=["onClick"],Z={class:"parent ellips"},ee={class:"children"},ie=["onClick"],ne={key:1,class:"selected-list"},le={class:"selected-num"},te=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),ae={class:"name"},oe={class:"name"},se={key:0,class:"main-wrapper"},de=["onClick"],ce={class:"tree-footer"},re=["onClick"],he=["onClick"],ue={key:0,class:"select-type-footer"},fe={class:"selected-num"},pe=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1);var me=R(e({__name:"index",props:{tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},conditionMap:{type:Object,default:()=>({})},conditionSid:{type:Array,default:()=>["all_data"]},curClassificationIndex:{type:Number,default:0},curClassificationWidth:{type:Number},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:1},isShowResetButton:{type:Boolean,default:!0},filterApiConfig:{type:Object,default:()=>({})}},emits:["changeSearch","setClassificationIndex","getQuickSearchListObj"],setup(e,{emit:R}){const me=e,{handleGetConfigApi:ge}=E(),{transformClassifyChild:ve}=T(),Ce=i(),ye=x(),ke=n(null);let Se=n(150),be=n(!1),xe=n([]),Oe=n([]),_e=n([]),we=n(2),Ie=n({name:"全部数据",sid:"all_data"}),Le=n([]),Ne=n(""),je=n(!1),ze=n("全部数据");l(A,me.isShowResetButton),l(M,me.filterApiConfig);let Be=t((()=>0===we.value?{marginRight:"8px"}:2===we.value?{display:"inline-block"}:{})),Pe=t((()=>{let e=Oe.value.filter((e=>-1!==me.conditionSid.indexOf(e.sid)));if(-1!==me.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Je=t((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:l}=e;return Ue(n,l)+i}));function Me(e){e.open?e.open=!1:e.open=!0}function Ae(e,i,n){ze.value=e.name;let l=function(e){let i=[];return xe.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(function(e,i,n){let l=JSON.parse(JSON.stringify(i));l="all_data"===e||-1!==l.indexOf(e)?["all_data"]:[e];return l}(e.sid,me.conditionSid));We(!1);const t=ve(null==e?void 0:e.conObj);R("changeSearch",Boolean("all_data"===e.sid),e,t,n,l)}function Ee(){let e="";if(2===we.value)e=0;else{let i=we.value;e=++i}Se.value=150,Te(e)}async function Te(e,i){let n={tableId:me.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await ge(n,"requestSaveListPersonaSetting",{},me.filterApiConfig)&&R("setClassificationIndex",e)}catch(e){console.log(e)}}function Re(){je.value=!0,We(!1)}function Fe(e){je.value=e}function We(e){be.value=void 0===e?!be.value:e}function qe(){if(!me.tableId)return ye.warning("请传入tableId");xe.value=[];let{displayCategoryList:e=[],conditionList:i=[]}=me.conditionMap;Le.value=JSON.parse(JSON.stringify(e))||[],_e.value=JSON.parse(JSON.stringify(i)),Oe.value=JSON.parse(JSON.stringify([{name:"全部数据",sid:"all_data"},...i]));let n=[];var l;0===Le.value.length&&(Le.value=["未分类"]),Le.value.forEach((e=>{let i={name:e,children:[]};Oe.value.forEach((n=>{if(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid){if(-1!==me.conditionSid.indexOf(n.sid)){n.selected=!0,i.open=!0;const e=ve(null==n?void 0:n.conObj);R("changeSearch",!1,n,e)}n.isShow&&i.children.push(n)}})),i.children.length>0&&n.push(i)})),n.unshift({name:"全部数据",sid:"all_data"}),xe.value=n,0===we.value&&(l=!0,xe.value.forEach((e=>{e.children&&e.children.length&&(e.open=l)})))}function Ge({distance:e}){const i=Se.value+e;Se.value=Math.min(Math.max(i,50),650)}function Qe(){Te(we.value,Se.value)}async function $e(){await Ke(me.tableId),Ve()}async function De(e){await Ke(me.tableId),He()}function Ve(e){He(e).then((e=>({})))}function He(e,i={}){if(!me.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:JSON.parse(JSON.stringify(me.conditionMap));return new Promise(((i,l)=>{var t,a,o,s,d,c;if(Object.keys(n).length>0){_e.value=n.conditionList||[],Le.value=n.displayCategoryList||[];let l={conditionList:_e.value,displayCategoryList:Le.value};R("getQuickSearchListObj",l),Ne.value=n.settingId;const r=_e.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(a=null==(t=Ce.tableOptions)?void 0:t.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(s=null==(o=Ce.tableOptions)?void 0:o.filterCondition)?void 0:s.name,sid:null==(c=null==(d=Ce.tableOptions)?void 0:d.filterCondition)?void 0:c.displayCategory}),i(r)}else i({})}))}async function Ke(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await ge(i,"requestTableCondiTionList",{},me.filterApiConfig);return Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function Ue(e,i){return i&&e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{document.addEventListener("click",(e=>{o((()=>{let i=e.composedPath&&e.composedPath();ke.value&&i.includes(ke.value)||We(!1)}))}))})),s((()=>me.tableId),(e=>{e&&Ve(!0)}),{immediate:!0,deep:!0}),s((()=>me.curClassificationIndex),(e=>{void 0!==e&&(we.value=e)}),{immediate:!0,deep:!0}),s((()=>me.curClassificationWidth),(e=>{e&&(Se.value=Number(e)||150)}),{immediate:!0}),s((()=>me.conditionMap),(e=>{!async function(){try{await qe()}catch(e){console.log(e)}}()}),{immediate:!0,deep:!0}),(i,n)=>(d(),c("div",{class:r(["classification-block","classificationIndex-"+h(we)]),style:u(h(Be))},[0===h(we)?f((d(),c("div",{key:0,class:"tree-type classify-0",style:u({width:h(Se)+"px",paddingBottom:1!=e.hideClearConditionChange?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",F,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"header-1",onClick:Ee},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"header-1",onClick:Re},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])):v("v-if",!0),C("ul",W,[(d(!0),c(y,null,k(h(xe),((i,n)=>(d(),c(y,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(y,{key:1},[C("span",{class:r(["parent",{open:i.open}]),onClick:e=>Me(i)},[C("span",null,g(i.name),1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,G),i.open?(d(!0),c(y,{key:0},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{key:n,class:"children",onClick:n=>Ae(e,0,i)},[e.isShow?(d(),S(h(_),{key:0,trigger:"hover",placement:"right"},{trigger:b((()=>[C("span",{class:r(["child-item",{selected:e.selected}])},[C("span",$,g(Ue(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(j),size:"20"},null,8,["component"])):v("v-if",!0)],2)])),default:b((()=>[C("span",null,g(h(Je)(e)),1)])),_:2},1024)):v("v-if",!0)],8,Q)))),128)):v("v-if",!0)],64)):(d(),c("span",{key:0,class:r(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Ae(i)},g(i.name),11,q))],2)):v("v-if",!0)],64)))),256))]),1!=e.hideClearConditionChange?(d(),c("div",D,[C("div",V,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),C("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>Ae({sid:"all_data",name:"全部数据",digital:h(Ie).digital}))},[H,m(" 清空筛选 ")])])):v("v-if",!0)],4)),[[h(J),{mode:"VR",onMove:Ge,onEnd:Qe}]]):v("v-if",!0),1===h(we)?(d(),c(y,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||h(_e).filter((e=>e.isShow)).length>0?(d(),c("div",K,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",U,[C("span",{class:r(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>Ae({sid:"all_data",name:"全部数据",digital:h(Ie).digital}))},[m(" 全部数据 "),h(Ie).digital||0===h(Ie).digital?(d(),c(y,{key:0},[m(" ("+g(h(Ie).digital||0)+") ",1)],64)):v("v-if",!0)],2),C("div",X,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"setting-1",onClick:Ee,style:{"margin-right":"30px"}},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"setting-1",onClick:Re},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])])):v("v-if",!0),C("ul",{class:"tile",style:u({borderBottom:1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(d(!0),c(y,null,k(h(xe).slice(1),((e,i)=>(d(),c(y,null,[e.children&&e.children.length>0?(d(),c("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(d(),c(y,{key:1},[C("span",Z,g(e.name),1),C("div",ee,[(d(!0),c(y,null,k(e.children,((i,n)=>(d(),c(y,null,[i.isShow?(d(),c("span",{key:n,class:r(["child-item",{selected:i.selected}]),onClick:n=>Ae(i,0,e)},g(Ue(i.name,null==i?void 0:i.isPublic)),11,ie)):v("v-if",!0)],64)))),256))])],64)):(d(),c("span",{key:0,class:r(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>Ae(e)},g(e.name)+" "+g(e.digital),11,Y))])):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",ne,[C("div",le,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(d(!0),c(y,null,k(h(xe).slice(1),(e=>(d(),c(y,null,[e.children&&0!==e.children.length?(d(!0),c(y,{key:1},k(e.children,((i,n)=>(d(),c(y,null,[i.selected?(d(),c("div",{class:"selected-item",key:i.sid},[m(g(i.name)+" ",1),p(h(O),{component:h(z),onClick:n=>Ae(i,0,e)},null,8,["component","onClick"])])):v("v-if",!0)],64)))),256)):(d(),c("div",{class:"selected-item",key:e.sid},[m(g(e.name)+" ",1),p(h(O),{component:h(z),onClick:i=>Ae(e)},null,8,["component","onClick"])]))],64)))),256)),C("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>Ae({sid:"all_data",name:"全部数据",digital:h(Ie).digital}))},[te,m(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],64)):v("v-if",!0),2===h(we)?(d(),c("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:ke},[C("span",{class:"title",onClick:n[3]||(n[3]=()=>We())},[p(h(_),{trigger:"hover",placement:"top"},{trigger:b((()=>[C("span",ae,g(h(Pe)),1)])),default:b((()=>[C("span",oe,g(h(Pe)),1)])),_:1}),p(h(O),{component:h(be)?h(B):h(L)},null,8,["component"])]),h(be)?(d(),c("div",se,[C("ul",{class:"tree",style:u({padding:1!=e.hideClearConditionChange?"40px 0":"40px 0 0"})},[(d(!0),c(y,null,k(h(xe),((i,n)=>(d(),c(y,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(y,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(d(),c("span",{key:0,class:r(["parent",{open:i.open}]),onClick:e=>Me(i)},[m(g(i.name)+g(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,re)):v("v-if",!0),i.open?(d(!0),c(y,{key:1},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{key:n,class:"children",onClick:n=>Ae(e,0,i)},[e.isShow?(d(),S(h(_),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:b((()=>[C("span",{class:r(["child-item",{selected:e.selected}])},[C("span",null,g(Ue(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(j),size:"20"},null,8,["component"])):v("v-if",!0)],2)])),default:b((()=>[C("span",null,g(h(Je)(e)),1)])),_:2},1024)):v("v-if",!0)],8,he)))),128)):v("v-if",!0)],64)):(d(),c(y,{key:0},[C("span",{class:r(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Ae(i)},g(i.name),11,de),C("div",ce,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"tree-footer-icon",onClick:Ee},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"tree-footer-icon",onClick:Re},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])],64))],2)):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",ue,[C("div",fe,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),C("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>Ae({sid:"all_data",name:"全部数据",digital:h(Ie).digital}))},[pe,m(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],512)):v("v-if",!0),v(" 弹出弹窗 "),p(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:h(_e),displayCategoryList:h(Le),settingId:h(Ne),tableId:e.tableId,classifyModal:h(je),onSaveGetTableCondiTionList:De,onCondiTionListInit:$e,onSetClassifyModal:Fe},null,8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal"])],6))}}),[["__file","index.vue"]]);export{me as default};
@@ -1 +1 @@
1
- import e from"./DatePicker.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","DatePicker.vue"]]);export{t as default};
1
+ import{defineComponent as e,useAttrs as t,ref as n,computed as l,openBlock as u,createBlock as a,unref as o,mergeProps as r,createSlots as i,renderList as s,withCtx as p,renderSlot as v,nextTick as d}from"vue";import{NDatePicker as f}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as c}from"../../../shared/hooks/useDateTime.js";import{format as m}from"date-fns";import y from"../../../_virtual/plugin-vue_export-helper.js";var h=y(e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function}},setup(e,{expose:y}){const h=e,g=t(),_=n(null),k=n(null),M=l((()=>{const e=Reflect.get(g,"type")||"";return["datetime","datetimerange"].includes(e)})),R=l((()=>{if(Reflect.get(g,"format"))return g.format;const e=g.type||"";return M.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),$=l((()=>M.value?R.value.split(" "):"")),{focus:w,blur:x}=c(_,R,g);function D(e){e&&M.value&&d((()=>{var e;k.value=null==(e=_.value)?void 0:e.panelInstRef,c(k,$,g)}))}function E(...e){var t,n,l,u,a;null==(t=h.onConfirm)||t.call(h,...e);const o=Reflect.get(g,"type")||"",r=null==(a=null==(u=null==(l=null==(n=_.value)?void 0:n.inputInstRef)?void 0:l.$el)?void 0:u.querySelector)?void 0:a.call(u,"input");if(!(null==r?void 0:r.value)||!h.updateUnchangedValue||o.includes("range"))return;const i=r.value;r.value=m(new Date,R.value),r.dispatchEvent(new InputEvent("input")),r.value=i,r.dispatchEvent(new InputEvent("input"))}return y({$datePicker:_,focus:w,blur:x}),(e,t)=>(u(),a(o(f),r({ref_key:"datePickerRef",ref:_},e.$attrs,{"onUpdate:show":D,onConfirm:E}),i({_:2},[s(e.$slots,((t,n)=>({name:n,fn:p((()=>[v(e.$slots,n)]))})))]),1040))}}),[["__file","DatePicker.vue"]]);export{h as default};
@@ -32,52 +32,16 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
32
32
  "onAdd:prevent"?: ((...args: any[]) => any) | undefined;
33
33
  }>>;
34
34
  emits: (event: "select" | "add" | "change" | "remove" | "add:prevent", ...args: any[]) => void;
35
- isTemperature: import("vue").ComputedRef<boolean>;
36
35
  canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
37
36
  canvas: import("vue").Ref<any>;
38
37
  propItems: any;
39
- redrawPoints: import("vue").Ref<any>;
40
- select: import("vue").Ref<any>;
41
- pointTipProps: {
42
- show: boolean;
43
- point: {
44
- x: number;
45
- y: number;
46
- };
47
- list: string[];
48
- };
49
- pointMenuProps: {
50
- show: boolean;
51
- point: {
52
- x: number;
53
- y: number;
54
- };
55
- list: any[];
56
- target: any;
57
- };
58
- clickMenu: import("vue").Ref<any>;
38
+ redrawPoints: any;
39
+ select: any;
40
+ pointTipProps: any;
41
+ pointMenuProps: any;
42
+ clickMenu: any;
59
43
  init: () => {
60
44
  propItems: any;
61
- redrawPoints: import("vue").Ref<any>;
62
- select: import("vue").Ref<any>;
63
- pointTipProps: {
64
- show: boolean;
65
- point: {
66
- x: number;
67
- y: number;
68
- };
69
- list: string[];
70
- };
71
- pointMenuProps: {
72
- show: boolean;
73
- point: {
74
- x: number;
75
- y: number;
76
- };
77
- list: any[];
78
- target: any;
79
- };
80
- clickMenu: import("vue").Ref<any>;
81
45
  };
82
46
  PopupTip: import("vue").DefineComponent<{
83
47
  show: {
@@ -34,52 +34,16 @@ declare const _default: import("vue").DefineComponent<{
34
34
  "onAdd:prevent"?: ((...args: any[]) => any) | undefined;
35
35
  }>>;
36
36
  emits: (event: "select" | "add" | "change" | "remove" | "add:prevent", ...args: any[]) => void;
37
- isTemperature: import("vue").ComputedRef<boolean>;
38
37
  canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
39
38
  canvas: import("vue").Ref<any>;
40
39
  propItems: any;
41
- redrawPoints: import("vue").Ref<any>;
42
- select: import("vue").Ref<any>;
43
- pointTipProps: {
44
- show: boolean;
45
- point: {
46
- x: number;
47
- y: number;
48
- };
49
- list: string[];
50
- };
51
- pointMenuProps: {
52
- show: boolean;
53
- point: {
54
- x: number;
55
- y: number;
56
- };
57
- list: any[];
58
- target: any;
59
- };
60
- clickMenu: import("vue").Ref<any>;
40
+ redrawPoints: any;
41
+ select: any;
42
+ pointTipProps: any;
43
+ pointMenuProps: any;
44
+ clickMenu: any;
61
45
  init: () => {
62
46
  propItems: any;
63
- redrawPoints: import("vue").Ref<any>;
64
- select: import("vue").Ref<any>;
65
- pointTipProps: {
66
- show: boolean;
67
- point: {
68
- x: number;
69
- y: number;
70
- };
71
- list: string[];
72
- };
73
- pointMenuProps: {
74
- show: boolean;
75
- point: {
76
- x: number;
77
- y: number;
78
- };
79
- list: any[];
80
- target: any;
81
- };
82
- clickMenu: import("vue").Ref<any>;
83
47
  };
84
48
  PopupTip: import("vue").DefineComponent<{
85
49
  show: {
@@ -1 +1 @@
1
- import r from"./FabricChart.vue2.js";import e from"../../../_virtual/_plugin-vue_export-helper.js";var a=e(r,[["__file","FabricChart.vue"]]);export{a as default};
1
+ import{defineComponent as e,ref as r,onMounted as t,onBeforeUnmount as s,openBlock as o,createElementBlock as a,Fragment as i,createElementVNode as n,createBlock as p,mergeProps as u,unref as c,createCommentVNode as l}from"vue";import{fabric as m}from"../../../shared/utils/fabricjs/index.js";import h from"./components/PopupTip.vue.js";import f from"./components/PopupMenu.js";import"./hooks/useDraw.js";import"date-fns";import"lodash-es";import"@vueuse/core";import{useBirthProcessChart as v}from"./hooks/birthProcess/useBirthProcessChart.js";import{useTemperatureChart as d}from"./hooks/temperature/useTemperatureChart.js";import{useSurgicalAnesthesiaChart as k}from"./hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js";import w from"../../../_virtual/plugin-vue_export-helper.js";var C=w(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:w,emit:C}){const g=e,j=r(null),P=r(),{propItems:b,redrawPoints:y,select:_,pointTipProps:I,pointMenuProps:M,clickMenu:x}=function(){const e=[P,g,C,j];switch(g.type){case"birthProcess":return v(...e);case"surgicalAnesthesia":return k(...e);default:return d(...e)}}();return t((()=>{P.value=new m.Canvas(j.value,{width:b.canvasWidth,height:b.canvasHeight,backgroundColor:"#fff",selection:!1,containerClass:"c-fabric-chart",fireRightClick:!0})})),s((()=>{P.value.off(),P.value.clear()})),w({redrawPoints:y,select:_,canvas:P}),(e,r)=>(o(),a(i,null,[n("canvas",{ref_key:"canvasRef",ref:j},null,512),P.value?(o(),p(h,u({key:0,propItems:c(b)},c(I)),null,16,["propItems"])):l("v-if",!0),P.value?(o(),p(c(f),u({key:1,propItems:c(b)},c(M),{show:c(M).show,"onUpdate:show":r[0]||(r[0]=e=>c(M).show=e),onClickMenu:c(x)}),null,16,["propItems","show","onClickMenu"])):l("v-if",!0)],64))}}),[["__file","FabricChart.vue"]]);export{C as default};
@@ -1 +1 @@
1
- import p from"./PopupTip.vue2.js";import e from"../../../../_virtual/_plugin-vue_export-helper.js";var r=e(p,[["__file","PopupTip.vue"]]);export{r as default};
1
+ import{defineComponent as p,openBlock as t,createBlock as e,Teleport as l,withDirectives as o,createElementVNode as r,normalizeStyle as u,unref as i,createElementBlock as s,Fragment as a,renderList as f,toDisplayString as n,vShow as c}from"vue";import m from"./useStyle.js";import _ from"../../../../_virtual/plugin-vue_export-helper.js";var h=_(p({__name:"PopupTip",props:{show:{type:Boolean,default:!1},point:null,list:{default:()=>[]},propItems:null},setup(p){const _=m(p);return(m,h)=>(t(),e(l,{to:".c-fabric-chart"},[o(r("ul",{class:"c-fabric-chart-popup-tip",style:u(i(_))},[(t(!0),s(a,null,f(p.list,(p=>(t(),s("li",{key:p},n(p),1)))),128))],4),[[c,p.show]])]))}}),[["__file","PopupTip.vue"]]);export{h as default};
@@ -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 '../../../../../../es/shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../../es/shared/types';
4
4
  export declare function useBirthProcess(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: AnyObject, pointMenuProps: AnyObject): {
5
5
  clickMenu: ({ item, target }: {
6
6
  item: any;
@@ -0,0 +1 @@
1
+ import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{drawLine as t,drawArrow as n,drawText as o,defaultTextStyle as i,drawPoint as r,defaultStyle as l,defaultRectStyle as s}from"../useDraw.js";import{useGrid as a}from"../useGrid.js";import{useBirthProcessCumputedPoint as u}from"../useCumputedPoint.js";import"@vueuse/core";import{getScaleInfo as c,drawScaleNumber as f,drawScaleLine as d}from"../useScaleColumn.js";import{useCommon as p}from"../useCommon.js";import"vue";import{getIndex as h,isEffectiveNode as g}from"../../utils/index.js";import"../temperature/useShadow.js";import{cloneDeep as m}from"lodash-es";import{format as v}from"date-fns";function y(y,k,w,x,b){const{cumputedX:T,cumputedY:j,getXValue:S,getYValue:C}=u(k),{getEqualXTypes:M,handleAddPrevent:P}=p(y,w),{xAxis:E,grid:G,originX:L,originY:Y,xCellWidth:X,endY:A,startTime:H,leftAddAreaWidth:I,leftScales:D,rightScales:O,yCellHeight:W,endX:V,scaleValues:N,canvasWidth:R,borderStyle:$,rightAddAreaWidth:B,event:F,originYCervix:q,other:z,canvasHeight:J}=k,K=m(N),Q=new Set;function U(){K.filter((e=>e.show)).forEach(((e,l)=>{var s;const a=[],u=[],c=[];null==(s=e.data)||s.forEach(((s,f)=>{!function(s,f,d){let p,h;const{pointAttr:g={},lineAttr:m={},title:v="",key:b,type:T="circle",childbirthStyle:j={}}=e,M=e.data[d+1],P=ne(M,e);if(s&&P&&!f.breakpoint)h=t([...s,...P],{...m});else if(s&&!P&&!f.breakpoint){const n=ne(M,e);h=n?t([...s,...n],{...m}):null}let E,G;if(f.childbirth){const e=s[1]+W;E=n([s[0],s[1],e],j),c.push(E),G=o([s[0]+X/2,e-W/2],{value:String(f.childbirth),...i,originX:"left",originY:"center",...j}),c.push(G)}const L=u[d-1],Y={origin:{data:f,title:v,key:b||"",dataIndex:l,index:d},leftLine:L,rightLine:h,arrowGroup:E,arrowGroupText:G,...g,...k.event.hovered?k.event.evented?{selectable:!0}:{selectable:!0,lockMovementX:!0,lockMovementY:!0}:k.event};L?p=r(T,{left:L.get("x2"),top:L.get("y2"),...Y}):s&&(Y.leftLine=null,p=r(T,{left:s[0],top:s[1],...Y}));u.push(h),p&&(!function(e){F.hovered&&(e.on("mouseover",(()=>{te(e,"hover")})),e.on("mouseout",(()=>{x.show=!1})));if(e.lockMovementX&&e.lockMovementY)return;e.on("moving",(()=>{ee(e),function(e){var t,n,o,i;null==(t=e.leftLine)||t.setCoords().set({x2:e.left,y2:e.top}),null==(n=e.rightLine)||n.setCoords().set({x1:e.left,y1:e.top}),null==(o=e.arrowGroup)||o.setCoords().set({left:e.left,top:e.top}),null==(i=e.arrowGroupText)||i.setCoords().set({left:e.left+X/2,top:e.top+W/2})}(e),F.hovered&&te(e)})),e.on("mouseup",(t=>{if(x.show=!1,1===t.button){const{key:t}=e.origin,n={...e.origin,data:{...e.origin.data,time:S(e.left),value:C(t,e.top)}};y.value.discardActiveObject(),w("change",n),Z(n,"change")}}))}(p),a.push(p),Q.add(p))}(ne(s,e),s,f)})),Promise.all(a).then((e=>{const t=u.filter((e=>e));let n=null;e=e.filter((e=>(e&&n&&(n.nextPoint=e,e.prevPoint=n),n=e||n,e))),Promise.all(c).then((n=>{y.value.add(...t,...e,...n),e.forEach((e=>{null==e||e.bringToFront()}))}))}))}))}function Z(e,t="add"){const{dataIndex:n,data:o,index:i,key:r}=e,l=K.find((e=>e.key===r));switch(t){case"remove":l.data.splice(i,1);break;case"change":l.data[i]=o;break;default:{const e=h(o.time,l.data);l.data.splice(e,0,o);break}}_()}function _(){var e;Q.size&&(null==(e=y.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}([...Q]))),Q.clear(),U()}function ee(e){const t=e.prevPoint?e.prevPoint.left:L,n=e.nextPoint?e.nextPoint.left:V;e.setCoords(),["cervix","fetalPresentation"].includes(e.origin.key)&&e.top<q&&e.set("top",q),e.top<Y&&e.set("top",Y),e.top>A&&e.set("top",A),e.left<t&&e.set("left",t),e.left>n&&e.set("left",n)}function te(e,t="moving"){const{title:n,key:o,data:i}=e.origin;x.point={x:e.left,y:e.top},x.list=[`${n} ${"hover"===t?i.value:C(o,e.top)}`,`时间 ${S(e.left).slice(-5)}`],x.show=!0}function ne(e,t){if(g(e)&&function(e){const t=H+864e5,n=new Date(e).getTime();return n>=H&&n<=t}(e.time)){const n=T(e.time),o=j(t.key,t.range,e.value);return[n,o<Y?Y:o>A?A:o]}}function oe(e,t){return e+1>t[1]?t[0]:e+1}return a(y,k,!0),function(){const t=new e.Rect({...$,width:R-I-B-1,height:A-1,left:I,top:0,fill:"transparent"});y.value.add(t)}(),function(){function t(t,n="left"){let r="left"===n?I:V;t.forEach(((t,n)=>{const{range:a,spaceValue:u,width:p,title:h,titleStyle:g,key:m,position:v="center",spaceGridNumber:k=1,showNumber:w,showMaxMinNumber:x}=t,b=[],T=[],j=r+p/2,S=function(e,t){const n=[],[o,i]=e;for(let e=o;t>0?e<=i:e>=i;e+=t)n.push(e);return n}(a,u),C=S.length;S.forEach(((e,n)=>{const{lineXMain:o,lineXSub:i,textLeft:l}=c(v,r,p),s=A-n*W*k,a=0===n?A-8:n!==S.length-1||Y||q&&"FHR"!==m?s:Y+8;!w||(0===n||n===C-1)&&!x||b.push(f(String(e),t,l,a)),T.push(...d(t,n,o,i,s,W,Y,C))}));const M=new e.Rect({...s,strokeWidth:.5,width:p,height:A,left:j,top:A/2}),P=o([j,Y>0?Y-W/2:W/2],{value:String(h),...i,...g}),E=new e.Group([...T,...b,M,...P?[P]:[]],{objectCaching:!1,...l});y.value.add(E),E.sendToBack(),r+=p}))}t(D),t(O,"right")}(),function(){const{show:t,startTime:n,range:r=[0,23],position:s="top",style:a}=E.time,{show:u,range:c=[0,23],position:f,style:d}=E.processTime;if(t||u){const p=[],h=[],g=[],m=[],v=L+X/2,k=W/2;for(let e=0;e<G.mainXCell;e++){if(t){const t=0===e?+n.slice(11,13):oe(p.at(-1),r);p.push(t);const l="top"===s?Y-k:A+k;g.push(o([v+e*X,l],{value:String(t),...i,...a||{}}))}if(u){const t=0===e?c[0]:h.at(-1)+1;h.push(t);const n="top"===f?k:J-k;m.push(o([v+e*X,n],{value:String(t),...i,...d||{}}))}}const w=new e.Group([...g,...m],{objectCaching:!1,...l});y.value.add(w),y.value.sendToBack(w)}}(),function(){var e;const n=Object.values(z),o=[],i={},r=K.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:n,range:o}=r||{},i=j(n,o,10),l=[0,t],s=[-t/e,0],a=[(A-i-t)/e,A-i],u=[V-L,e*(V-L)+t];let c=[],f=[];function d([n,o]){return Math.abs(o-e*n-t)<=1}function p([e,t]){const[n,o]=[...h([e,t])];return n>=L&&n<=V&&o>=i&&o<=A}function h([e,t]){return[L+e,A-t]}return d(l)&&p(l)&&(c=h(l)),d(s)&&p(s)&&(c=h(s)),d(a)&&p(a)&&(f=h(a)),d(u)&&p(u)&&(f=h(u)),[...c,...f]}n.forEach((e=>{if(!e.show)return;const{key:n}=e;switch(n){case"fetalPresentation":{const{range:i,show:r}=K.find((e=>e.key===n));if(r){const r=j(n,i,0);o.push(t([L,r,V,r],{...e}))}break}case"alert":if(l){const{key:n,range:a}=r||{},u=216e5,c={time:v(new Date(new Date(l.time).getTime()+u),"yyyy-MM-dd HH:mm"),value:10},[f,d]=[T(l.time)-L,A-j(n,a,l.value)],[p,h]=[T(c.time)-L,A-j(n,a,c.value)],g=(h-d)/(p-f),m=d-f*g,y=s(g,m);y.length>0&&(o.push(t(y,{...e})),Object.assign(i,{k:g,b:m}))}break;case"handling":if(l){const{k:n,b:r}=i,a=144e5,u=s(n,r-(T(v(new Date(new Date(l.time).getTime()+a),"yyyy-MM-dd HH:mm"))-T(l.time))*n);u.length>0&&o.push(t(u,{...e}))}}})),y.value.add(...o)}(),U(),function(){function e(e,t){const n=K.findIndex((t=>t.key===e.key));return{renderItem:()=>e.title,origin:{title:e.title,unit:e.unit,dataIndex:n,key:e.key},pointer:t}}k.event.evented&&y.value.on("mouse:up",(t=>{if(3===t.button){const{x:n=0,y:o=0}=t.pointer||{};n>=L&&n<=V&&o>=Y&&o<=A&&(b.point={x:n,y:o},b.show=!0,t.target?(b.target=t.target,b.list=["删除节点"],y.value.forEachObject((e=>{e.origin&&e.left===t.target.left&&e.top===t.target.top&&b.list.push({renderItem:()=>e.origin.title,origin:{...e.origin},mode:"remove",pointer:t.pointer})}))):(b.target=null,b.list=["新增节点"],K.filter((e=>e.show)).forEach((i=>{if(!M(n,"key",X).includes(i.key)){if(["cervix","fetalPresentation"].includes(i.key)&&o<q)return;b.list.push(e(i,t.pointer))}})),1===b.list.length&&(b.show=!1,P("repeat"),console.log("当前时间段内无可新增节点"))))}}))}(),function(){const t=R-B/2;function n(t,n){if(!t.length)return;let l=Y;const s=[];t.forEach((t=>{const o=t.title.split("").join("\n"),a=N.findIndex((e=>e.key===t.key)),u=new e.Text(String(o),{...i,...t.titleStyle||{},originY:"top",left:n,top:l,lineHeight:1}),c=r(t.type,{left:n,top:l+u.height+3,...t.pointAttr,originY:"top",origin:{title:t.title,unit:t.unit,type:t.type,dataIndex:a,key:t.key,isMenu:!0},originLeft:n,originTop:l+u.height+3,...k.event});l+=u.height+c.height+15,function(e){function t(e){const{left:t,top:n}=e;return t>=L&&t<=V&&n>=Y&&n<=A}e.on("moving",(()=>{e.set("originY","center"),t(e)?(ee(e),te(e)):x.show=!1})),e.on("mouseup:before",(n=>{if(x.show=!1,0===n.e.button&&t(e))if(M(e.left,"key",X).includes(e.origin.key))P("repeat");else{const t={data:{time:S(e.left),value:C(e.origin.key,e.top)},...e.origin};w("add",t),Z(t)}!function(e){e.setCoords().set({originY:"top",left:e.originLeft,top:e.originTop})}(e)}))}(c),s.push(u,c)})),o(s),y.value.add(...s)}function o(e){const t=e.at(-1),n=(A-Y)/2,o=(t.height+t.top-Y)/2;e.forEach((e=>{const t=e.top+n-o;e.set({top:t,originTop:t})}))}n(D,I/2),n(O,t)}(),{clickMenu:function({item:e,target:t}){const n={...e.origin};"remove"===e.mode?(w("remove",n),Z(n,"remove")):(Object.assign(n,{data:{time:S(e.pointer.x),value:C(e.origin.key,e.pointer.y)}}),w("add",n),Z(n))},redrawPoints:_}}export{y 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
- export default function useBirthProcessChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>): {
2
+ import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../../es/shared/types';
4
+ export declare function useBirthProcessChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>): {
5
5
  propItems: any;
6
6
  redrawPoints: Ref<any>;
7
7
  select: Ref<any>;
@@ -0,0 +1 @@
1
+ import{ref as e,reactive as a,computed as t,onMounted as l,nextTick as r}from"vue";import{defaultBorderStyle as u}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import"date-fns";import"lodash-es";import{useEvent as i,useCanvasEvent as s}from"../useEvent.js";import"../temperature/useShadow.js";import{useBirthProcess as n}from"./useBirthProcess.js";function o(o,d,v,c){const h=e(),p=e(),m=e(),g=a({show:!1,point:{x:0,y:0},list:[]}),f=a({show:!1,point:{x:0,y:0},list:[],target:null}),x=t((()=>d.data.scaleValues.filter((e=>"left"===e.layout&&e.show)))),w=t((()=>d.data.scaleValues.filter((e=>"right"===e.layout&&e.show)))),y=t((()=>{var e;return(null==(e=w.value)?void 0:e.length)?30:0})),V=t((()=>{var e;return 30+(null==(e=x.value)?void 0:e.reduce(((e,a)=>e+=a.width),0))})),b=t((()=>{var e;const{width:a}=d.data,t=null==(e=w.value)?void 0:e.reduce(((e,a)=>e+=a.width),0);return a-y.value-t})),A=t((()=>d.data.grid.mainXCell)),j=t((()=>{const e=d.data.grid.mainYCell||14;return d.data.scaleValues.find((e=>e.show&&"FHR"===e.key))||14!==e?e:10})),C=t((()=>(b.value-V.value)/A.value)),k=t((()=>{const{xAxis:e,height:a}=d.data,t=Object.values(e).reduce(((e,a)=>(a.show&&e++,e)),0);return a/(j.value+t)})),Y=t((()=>{const{xAxis:e}=d.data,a=Object.values(e).reduce(((e,a)=>(a.show&&"top"===a.position&&e++,e)),0);return k.value*a})),P=t((()=>{var e;const{scaleValues:a}=d.data;if(!(null==(e=a.find((e=>"FHR"===e.key)))?void 0:e.show)&&!Y.value)return Y.value;const t=a.find((e=>"cervix"===e.key)),[,l]=(null==t?void 0:t.range)||[0,10],r=(null==t?void 0:t.spaceValue)||1;return S.value-l*r*k.value})),S=t((()=>{const{xAxis:e,height:a}=d.data,t=Object.values(e).reduce(((e,a)=>(a.show&&"bottom"===a.position&&e++,e)),0);return a-k.value*t})),H=t((()=>new Date(d.data.xAxis.time.startTime).getTime())),X=t((()=>36e5/C.value)),F=t((()=>{const{scaleValues:e}=d.data,a=e.find((e=>"cervix"===e.key));return((null==a?void 0:a.spaceValue)||1)/k.value})),R=t((()=>{const{scaleValues:e}=d.data,a=e.find((e=>"FHR"===e.key));return((null==a?void 0:a.spaceValue)||10)/k.value})),T=t((()=>{const{scaleValues:e}=d.data,a=e.find((e=>"fetalPresentation"===e.key));return((null==a?void 0:a.spaceValue)||1)/k.value})),W=t((()=>{var e;return(null==(e=d.data.grid)?void 0:e.event)||{selectable:!0,evented:!0,hovered:!0}})),M=a({canvasWidth:d.data.width,canvasHeight:d.data.height,borderStyle:{...u,...d.data.borderStyle||{}},selectionStyle:d.data.selectionStyle||{},grid:d.data.grid,other:d.data.other,originX:V.value,endX:b.value,originY:Y.value,endY:S.value,xCellWidth:C.value,yCellHeight:k.value,gridXNumber:A.value,gridYNumber:j.value,xAxis:d.data.xAxis,leftScales:x.value,rightScales:w.value,leftAddAreaWidth:30,rightAddAreaWidth:y.value,startTime:H.value,timeXCell:X.value,cervixYCell:F.value,FHRYCell:R.value,fetalPresentationYCell:T.value,scaleValues:d.data.scaleValues,event:W.value,originYCervix:P.value});return l((()=>{r((()=>{const{clickMenu:e,redrawPoints:a}=n(o,M,v,g,f);p.value=a,m.value=e,i(c.value);const{select:t}=s(o,M,v);h.value=t}))})),{propItems:M,redrawPoints:p,select:h,pointTipProps:g,pointMenuProps:f,clickMenu:m}}export{o as useBirthProcessChart};
@@ -1,11 +1,9 @@
1
1
  export * from './useDraw';
2
+ export * from './useGrid';
2
3
  export * from './useCumputedPoint';
3
- export * from './useTop';
4
- export * from './useLeft';
5
- export * from './useRight';
6
- export * from './useCenter';
7
- export * from './useBottom';
8
- export * from './useOther';
9
4
  export * from './useEvent';
10
- export * from './useBirthProcess';
5
+ export * from './useScaleColumn';
11
6
  export * from './useCommon';
7
+ export * from './birthProcess/useBirthProcessChart';
8
+ export * from './temperature/useTemperatureChart';
9
+ export * from './surgicalAnesthesia/useSurgicalAnesthesiaChart';
@@ -1 +1 @@
1
- export{defaultBorderStyle,defaultLineStyle,defaultRectStyle,defaultStyle,defaultTextStyle,drawArrow,drawLine,drawPoint,drawText,drawTextGroup}from"./useDraw.js";export{useBirthProcessCumputedPoint,useCumputedPoint}from"./useCumputedPoint.js";export{useTop}from"./useTop.js";export{useLeft}from"./useLeft.js";export{useRight}from"./useRight.js";export{useCenter}from"./useCenter.js";export{useBottom}from"./useBottom.js";export{useOther}from"./useOther.js";export{useCanvasEvent,useEvent}from"./useEvent.js";export{useBirthProcess}from"./useBirthProcess.js";export{useCommon}from"./useCommon.js";
1
+ export{defaultBorderStyle,defaultLineStyle,defaultRectStyle,defaultStyle,defaultTextStyle,drawArrow,drawLine,drawPoint,drawText,drawTextGroup}from"./useDraw.js";export{useGrid}from"./useGrid.js";export{useBirthProcessCumputedPoint,useCumputedPoint}from"./useCumputedPoint.js";export{useCanvasEvent,useEvent}from"./useEvent.js";export{drawScaleLine,drawScaleNumber,getScaleInfo}from"./useScaleColumn.js";export{useCommon}from"./useCommon.js";export{useBirthProcessChart}from"./birthProcess/useBirthProcessChart.js";export{useTemperatureChart}from"./temperature/useTemperatureChart.js";export{useSurgicalAnesthesiaChart}from"./surgicalAnesthesia/useSurgicalAnesthesiaChart.js";
@@ -0,0 +1,6 @@
1
+ import { Ref } from 'vue';
2
+ import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../../es/shared/types';
4
+ export declare function useSurgicalAnesthesiaChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>): {
5
+ propItems: any;
6
+ };
@@ -0,0 +1 @@
1
+ import{ref as t,reactive as r}from"vue";import{defaultBorderStyle as e}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import"date-fns";import"lodash-es";import"@vueuse/core";import"../temperature/useShadow.js";function o(o,a,i,s){t(),t(),t(),r({show:!1,point:{x:0,y:0},list:[]}),r({show:!1,point:{x:0,y:0},list:[],target:null});return{propItems:r({canvasWidth:a.data.width,canvasHeight:a.data.height,borderStyle:{...e,...a.data.borderStyle||{}},grid:a.data.grid,other:a.data.other})}}export{o as useSurgicalAnesthesiaChart};
@@ -0,0 +1,6 @@
1
+ export * from './useTop';
2
+ export * from './useLeft';
3
+ export * from './useRight';
4
+ export * from './useCenter';
5
+ export * from './useBottom';
6
+ export * from './useOther';
@@ -0,0 +1 @@
1
+ export{useTop}from"./useTop.js";export{useLeft}from"./useLeft.js";export{useRight}from"./useRight.js";export{useCenter}from"./useCenter.js";export{useBottom}from"./useBottom.js";export{useOther}from"./useOther.js";
@@ -0,0 +1,4 @@
1
+ import { Ref } from 'vue';
2
+ import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
+ import { IPropItems } from '../../../../../../es/components/fabric-chart/src/interface';
4
+ export declare function useBottom(canvas: Ref<fabric.Canvas>, propItems: IPropItems): void;
@@ -0,0 +1 @@
1
+ import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{drawTextGroup as e,defaultTextStyle as i,defaultStyle as n}from"../useDraw.js";import"date-fns";import"lodash-es";import"@vueuse/core";import"vue";import"./useShadow.js";function o(o,s){const{xScaleList:r,originX:a,endX:l,endY:c,xCellWidth:h,canvasWidth:d,canvasHeight:u,bottom:p,breathingHeight:g,iconsWidth:f,borderStyle:m}=s;!function(){var s,d,u;if(!g||!p){const e=new t.Line([f,c-1,l,c-1],m);return o.value.add(e),e.sendToBack(),!1}const v=g,b=(null==(s=p.breathing)?void 0:s.list)||[],w=[];let x=!0;r.forEach(((t,n)=>{const o=a+n*h;let s="";b.forEach(((e,i)=>{const n=new Date(e.time).getTime();n>=t&&n<+t+t.scaleCell&&(s=e.value)}));const r=x?{top:-(v/2-10)}:{top:v/2-10};s&&(x=!x);const l=e({width:h,height:v,...m},Object.assign({},{text:String(s),...i},s?r:{}),{left:o,top:c});w.push(l)}));const j=e({width:l,height:v,...m},{text:String((null==(d=p.breathing)?void 0:d.title)+(null==(u=p.breathing)?void 0:u.unit)),...i,left:-(l-a)/2},{left:0,top:c});w.push(j);const S=w.length>0?new t.Group([...w],{...n}):null;S&&S.sendToBack(),S&&o.value.add(S)}()}export{o as useBottom};
@@ -1,7 +1,7 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../es/shared/utils/fabricjs';
3
- import { IPropItems } from '../interface';
4
- import { AnyObject } from '../../../../../es/shared/types';
2
+ import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
+ import { IPropItems } from '../../../../../../es/components/fabric-chart/src/interface';
4
+ import { AnyObject } from '../../../../../../es/shared/types';
5
5
  export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, addRenderItem: Function | undefined, pointTipProps: AnyObject, pointMenuProps: AnyObject): {
6
6
  pointTipProps: AnyObject;
7
7
  pointMenuProps: AnyObject;
@@ -0,0 +1 @@
1
+ import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useShadow as t}from"./useShadow.js";import{drawLine as i,defaultStyle as n,drawPoint as o,drawText as l,drawArrow as s}from"../useDraw.js";import{useGrid as r}from"../useGrid.js";import"date-fns";import{isOneLine as a,getType as u,isOverlapPoint as c,isValidValue as p,setOtherType as d,isEffectiveNode as f,getIndex as h,deleteProperty as v}from"../../utils/index.js";import"@vueuse/core";import{useCommon as g}from"../useCommon.js";import"vue";import{cloneDeep as y}from"lodash-es";import{TEMPERATURE_MENU as m,PAIN_MENU as x,OVERLAP as b}from"../../constants/index.js";function w(w,j,L,k,Y,S,E,$,M,T){r(w,j);const{getEqualXTypes:P,handleAddPrevent:O}=g(w,L),{createShadowLines:A}=t(),{left:I,xScaleList:C,xCellWidth:D,yCellHeight:R,originX:X,endX:z,originY:V,endY:F,itemList:_,event:G,vitalSignsOriginY:H,painOriginY:q,hospitalizationDate:W,config:B,canvasHeight:J}=j,K=new Set,N=["xinmai","mai"],Q=new Map,U=new Set,Z=new Set,ee=new Set,te=y(I.yScaleValue);function ie(t){var i;const o=te.find((e=>"pulse"===e.type));if(o&&(null==(i=o.dataList)?void 0:i.length)&&(K.size&&w.value.remove(...K),K.clear(),Q.size>1)){if(t){const{type:e,key:i}=t.origin||{};if("pulse"===e){const e=Q.get(i),n=null==e?void 0:e.findIndex((e=>e[0]===t.left));e.splice(n,1,[t.left,t.top])}}(function(){const e=[],t=[],i=[];for(const e of Q)t.push(e[1]),e[0]===N[0]&&e[1].forEach((e=>{(Q.get(N[1])||[]).findIndex((t=>t[0]===e[0]))>-1&&i.push(e[0])}));const[n,o]=t;let l=[],s=[];return i.forEach((t=>{const i=n.findIndex((e=>e[0]===t)),r=o.findIndex((e=>e[0]===t)),a=n[i],u=o[r],c=n[i-1],p=n[i+1],d=o[r-1],f=o[r+1];if(c&&d){if(c[0]!==d[0]){const e=Math.max(c[0],d[0]);l.push([c,d].find((t=>t[0]===e)))}}else c?l.push(c):d&&s.push(d);const h=Math.min(a[1],u[1]);l.push([a,u].find((e=>e[1]===h)));const v=Math.max(a[1],u[1]);s.push([a,u].find((e=>e[1]===v)));const g=()=>{const t=[...l,...s.reverse()],[i]=t,n=t.at(-1);i[0]===n[0]&&i[1]===n[1]&&t.splice(-1,1),e.push(t),l=[],s=[]};if(p&&f){if(p[0]!==f[0]){const e=Math.min(p[0],f[0]);l.push([p,f].find((t=>t[0]===e))),g()}}else p?(l.push(p),g()):f?(s.push(f),g()):g()})),e})().forEach((t=>{var i,l,s,r,a,u;const c=t.map((e=>({x:e[0],y:e[1]}))),p=new e.Polygon(c,{...n,...(null==(i=o.shadow)?void 0:i.style)||{}});if("slash"==(null==(l=o.shadow)?void 0:l.mode)){p.set({fill:"transparent",stroke:(null==(r=null==(s=o.shadow)?void 0:s.style)?void 0:r.stroke)||"#f00"});const e=A(t,null==(a=o.shadow)?void 0:a.style._angle,null==(u=o.shadow)?void 0:u.style.space);e.forEach((e=>{var t;Object.assign(e,{...n,...(null==(t=o.shadow)?void 0:t.style)||{}}),K.add(e)})),w.value.add(...e)}K.add(p),w.value.add(p)}))}}function ne(){var e;const t=te.find((e=>"pulse"===e.type));if(!t||!(null==(e=t.dataList)?void 0:e.length))return;if(!t.dataList.some((e=>e.title.includes("脉搏"))))return;const i=Object.assign({},b,I.overlap||{}),l=[];U.size&&[...U].forEach((e=>{[...Z].forEach((t=>{if(t.origin&&c(e,t)){const e=t.origin.key;if(e){const s={left:t.left,top:t.top,...n,hoverCursor:"default"};let r="koumai";"yemai"===e&&(r=e),"humai"===e&&(r="circle"),l.push(o(r,{...i[e]||{},...s}))}}}))})),setTimeout((()=>{w.value.add(...l),l.forEach((e=>{null==e||e.bringToFront(),ee.add(e)}))}))}function oe(e,t,r){var u;const{type:c,riseStyle:f={},noRiseStyle:h={},verifiedStyle:v={},reduceStyle:g={},pacemaker:y={},upArrowStyle:m={},limitValueStyle:x={},nonePainPointStyle:b={},dataList:k=[]}=r,S=[],$=[],T=[];null==(u=e.list)||u.forEach(((u,P)=>{const O=a(c)?k.find((e=>e.key===u.key)):e,A=re(u,r),I={};I.value=function(e,t,i){if(!(null==e?void 0:e.length)||!B.showValue)return;const{lineAttr:n={}}=i,o=e[1]<=H.originY+R?e[1]+R:e[1]-R,s=l([e[0],o],{value:t.value,originX:"center",originY:"center",fill:n.stroke||"#000"});return T.push(s),{obj:s,top:-R}}(A,u,O),function(e,t,a,u){var d,y;if(!(null==e?void 0:e.length)||!["temperature","pain"].includes(c))return;const{lineAttr:m={}}=a,{value:x}=u;let b,w,j,L,k,S;if(t.noRise&&h.show)if(h.text)j=l([e[0],e[1]+5],{value:h.text.split("").join("\n"),originY:"top",...h.style||{}}),T.push(j);else{const t=e[1]+2*R;L=s([e[0],e[1],t],h.style||{}),T.push(L)}t.rise&&f.show&&f.text&&(k=l([e[0],e[1]-(x?R:0)-5],{value:f.text.split("").join("\n"),originY:"bottom",...f.style||{}}),T.push(k));t.verified&&(S=l([e[0],e[1]-(x?R:0)-5],{value:"v",originX:"center",originY:"bottom",...v}),T.push(S));if(p(t.physicsReduce)||p(t.drugReduce)){const l=Y(c,r.list,null!=(d=t.physicsReduce)?d:t.drugReduce);b=i([...e,e[0],l],{...m,...g.line,...n}),w=o((null==(y=null==g?void 0:g.point)?void 0:y.type)||"circle",{left:e[0],top:l,...g.point,...n,originY:l===J?"bottom":"center"}),b&&T.push(b),w&&T.push(w)}Object.assign(u,{reduceLine:{obj:b,type:"line"},noRiseText:{obj:j,top:5},arrowGroup:{obj:L,top:2*R},riseText:{obj:k,top:(x?-R:0)-5},verifiedText:{obj:S,top:(x?-R:0)-5},reducePoint:{obj:w,type:"reduce"}})}(A,u,O,I),function(e,t,i,n){if(!(null==e?void 0:e.length)||!["pulse"].includes(c))return;let o,a;const{upArrowShow:u=!1,limitValueShow:p=!1}=i;if(u&&+t.value>180){let t=e[1]-2.5*R,i=[e[1]-R/2,t];t<H.originY&&(t=e[1]+2.5*R,i=[t,e[1]+R/2]),o=s([e[0],i[0],i[1]],m,"up"),T.push(o)}if(p){const i={value:t.value,originX:"center",originY:"center",...x};if(+t.value>Math.max(...r.list)){const t=o?e[1]+R/2+o.height:e[1]+R;a=l([e[0],t],i),T.push(a)}+t.value<Math.min(...r.list)&&(a=l([e[0],e[1]-R],i),T.push(a))}Object.assign(n,{upArrow:{obj:o},limitValue:{obj:a,top:-R}})}(A,u,O,I),function(n,l,s,a,u){let p,f;const{pointAttr:h={},lineAttr:v={},title:g="",key:m,type:x="circle"}=a,k=e.list[s+1],Y=re(k,r),T=le(c,e.list[s].value),P=Y&&le(c,k.value);!n||!Y||l.breakpoint||T||P||n[0]===Y[0]||(f=i([...n,...Y],{...v}));const O=l.pacemakerShow&&"pulse"==c?y.value:T?0:x,A=$[s-1],I={origin:{data:l,title:g,key:m||"",unit:r.unit,type:c,_type:d(g,c),dataIndex:t,index:s},leftLine:A,rightLine:f,otherObj:u,lockMovementX:!0,...l.pacemakerShow&&"pulse"==c?y.style:h,...j.event.hovered?j.event.evented?{selectable:!0}:{selectable:!0,lockMovementY:!0}:j.event,...T?{selectable:!1,evented:!1,...b}:{}};if(A){const e=A.get("y2");p=o(O,{left:A.get("x2"),top:T?e-5:e,...I})}else n&&(I.leftLine=null,p=o(O,{left:n[0],top:T?n[1]-5:n[1],...I}));$.push(f),p&&(g.includes("脉搏")?U.add(p):Z.add(p),function(e){G.hovered&&(e.on("mouseover",(()=>{se(e,"hover")})),e.on("mouseout",(()=>{M.show=!1})));if(e.lockMovementX&&e.lockMovementY)return;e.on("moving",(()=>{!function(e){e.setCoords();const t="pain"===e.origin.type?q:H;e.top<t.originY&&e.set("top",t.originY);e.top>t.endY&&e.set("top",t.endY)}(e),function(e){var t,i;null==(t=e.leftLine)||t.setCoords().set({x2:e.left,y2:e.top}),null==(i=e.rightLine)||i.setCoords().set({x1:e.left,y1:e.top}),Object.values(e.otherObj).forEach((t=>{const{obj:i,type:n="",top:o=0}=t||{};"reduce"!==n&&("line"===n?null==i||i.setCoords().set({x1:e.left,y1:e.top}):null==i||i.setCoords().set({left:e.left,top:e.top+o}))})),ie(e)}(e),G.hovered&&se(e)})),e.on("mouseup",(t=>{if(M.show=!1,1===t.button){const{type:t}=e.origin,i=E(t,e.top),n={...e.origin,data:{...e.origin.data,value:i}};w.value.discardActiveObject(),L("change",n),ue(n,"change")}}))}(p),S.push(p),ee.add(p))}(A,u,P,O,I)})),"pulse"===c&&N.forEach((e=>{Q.set(e,S.filter((t=>{var i;return(null==(i=t.origin)?void 0:i.key)===e})).map((e=>[e.left,e.top])))})),Promise.all(S).then((e=>{const t=$.filter((e=>e));let i=null;e=e.map((e=>(e&&i&&(i.nextPoint=e,e.prevPoint=i),i=e||i,e))),Promise.all(T).then((i=>{w.value.add(...t,...e,...i),e.forEach((t=>{null==t||t.bringToFront(),function(e,t){if("pulse"===e.origin.type){t.filter((t=>t.left===e.left&&"pulse"===t.origin.type)).length>1&&(e.leftLine&&w.value.remove(e.leftLine),e.rightLine&&w.value.remove(e.rightLine))}}(t,e)}))}))}))}function le(e,t){return"pain"===e&&0==t}function se(e,t="moving"){const{title:i,unit:n,type:o,data:l}=e.origin;M.point={x:e.left,y:e.top},M.list=[function(){const{drugReduce:s,physicsReduce:r}=l||{},a="hover"===t?l.value:E(o,e.top);if(p(s))return`药物降${"pain"==o?"痛":"温"} ${a}—>${s}${n||""}`;if(p(r))return`物理降${"pain"==o?"痛":"温"} ${a}—>${r}${n||""}`;return`${i} ${a}${n||""}`}(),`时间 ${((null==l?void 0:l.time)||S(e.left)).slice(-5)}`],M.show=!0}function re(e,t){const i="pain"===t.type?q:H;if(f(e)&&function(e){const[t]=C,i=C.at(-1),n=t.start,o=i.end,l=new Date(e).getTime();return l>=n&&l<=o}(e.time)){const n=k(e.time),o=Y(t.type,t.list,e.value);return[n,o<i.originY?i.originY:o>i.endY?i.endY:o]}}function ae(e){const t=new Date,i=`00${t.getMonth()+1}`.slice(-2),n=`00${t.getDate()}`.slice(-2),o=new Date(`${t.getFullYear()}-${i}-${n} 23:59:59`).getTime(),l=new Date(`${S(e)}:00`).getTime();return W&&l<new Date(W).getTime()?(O("exceedMin"),!1):!(l>o)||(O("exceedMax"),!1)}function ue(e,t="add"){const{type:i,dataIndex:n,index:o,data:l,key:s}=e,r=te.find((e=>e.type===i));if("add"===t){const e=a(i)?r.dataList.find((e=>e.enable)):r.dataList[n],t=h(l.time,e.list);e.list.splice(t,0,l)}else r.dataList[n].list[o]=l;ce()}function ce(){var e;ee.size&&(null==(e=w.value)||e.remove(...function(e){const t=[];return e.forEach((e=>{e&&t.push(e),(null==e?void 0:e.leftLine)&&t.push(null==e?void 0:e.leftLine),(null==e?void 0:e.rightLine)&&t.push(null==e?void 0:e.rightLine),Object.values((null==e?void 0:e.otherObj)||{}).forEach((e=>{(null==e?void 0:e.obj)&&t.push(null==e?void 0:e.obj)}))})),t}([...ee]))),Q.clear(),ee.clear(),U.clear(),Z.clear(),te.forEach((e=>{e.dataList.forEach(((t,i)=>{a(e.type)&&!t.enable||oe(t,i,e)}))})),ie(),ne()}return Q.clear(),U.clear(),Z.clear(),te.forEach((e=>{!function(e){if("temperature"!==e.type||!e.positionLine)return;const t=Y(e.type,e.list,e.positionLine.value),n=i([X,t,z,t],e.positionLine);w.value.add(n)}(e),e.dataList.forEach(((t,i)=>{a(e.type)&&!t.enable||oe(t,i,e)}))})),ie(),ne(),j.event.evented&&w.value.on("mouse:up",(e=>{var t;if(3===e.button){const{x:i=0,y:n=0}=e.pointer||{};if(i>=X&&i<=z&&n>=V&&n<=F){T.point={x:i,y:n},T.show=!0;const{type:o}=(null==(t=e.target)?void 0:t.origin)||{};if(e.target&&["temperature","pain"].includes(o))"temperature"===o&&(T.list=[...m]),"pain"===o&&(T.list=[...x]),T.target=e.target;else{T.target=null,T.list=["新增节点"],_.forEach((t=>{if(!P(i,"_type",D).includes(t.bigType)){const i=["pain"].includes(t.bigType)?q:H;n>=i.originY&&n<=i.endY&&T.list.push({renderItem:$?$(t):()=>t.title,origin:{title:t.title,unit:t.unit,type:u(t.bigType),dataIndex:t.dataIndex,key:t.key},pointer:e.pointer})}}));const t=ae(i);t&&1!==T.list.length||(T.show=!1,1===T.list.length&&t&&O("repeat"))}}}})),{pointTipProps:M,pointMenuProps:T,clickMenu:function({item:e,target:t}){if(t){const{data:i,type:n,dataIndex:o,index:l}=t.origin,s=v(i,[...m,...x]);s[`${e.type}`]=e.value,a(n)&&(s.key=t.origin.key);const r={...t.origin,data:s};L("change",r),ue(r,"change")}else{const t={data:{time:S(e.pointer.x),value:E(e.origin.type,e.pointer.y),...a(e.origin.type)?{key:e.origin.key}:{}},...e.origin};L("add",t),ue(t)}},setPopup:se,isAddPoint:ae,updateData:ue,redrawPoints:ce}}export{w as useCenter};
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../es/shared/utils/fabricjs';
3
- import { IPropItems } from '../interface';
4
- import { AnyObject } from '../../../../../es/shared/types';
2
+ import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
+ import { IPropItems } from '../../../../../../es/components/fabric-chart/src/interface';
4
+ import { AnyObject } from '../../../../../../es/shared/types';
5
5
  export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, setPopup: Function, pointTipProps: AnyObject, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, isAddPoint: Function, updateData: Function): {
6
6
  drawScaleValue: (yScaleValueList: any[]) => void;
7
7
  };
@@ -0,0 +1 @@
1
+ import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{defaultTextStyle as e,defaultStyle as i,drawPoint as n,drawTextGroup as o}from"../useDraw.js";import"date-fns";import{getType as l,isOneLine as r}from"../../utils/index.js";import"@vueuse/core";import{getScaleInfo as s,drawScaleNumber as a,drawScaleLine as u}from"../useScaleColumn.js";import{useCommon as h}from"../useCommon.js";import"vue";import"lodash-es";import"./useShadow.js";function g(g,p,c,d,f,y,m,v,w,S,b){var Y,x;const{getEqualXTypes:j,handleAddPrevent:T}=h(g,c),{originY:X,endY:C,originX:N,endX:V,xCellWidth:L,yCellHeight:M,left:k,vitalSignsOriginY:E,painOriginY:I,painHeight:A,iconsWidth:G,itemList:H,painIndex:O,right:W,canvasWidth:R,canvasHeight:_,getRightInfo:B,borderStyle:J}=p;function $(n){var l;if(!(null==n?void 0:n.length))return;const{layout:r}=n[0];let h=G,p=N;"right"===r&&(h=V,p=V+(null!=(l=null==W?void 0:W.width)?l:0));const c=[],d=A&&"right"!==r?n.length-1:n.length,f=(p-h)/d,y=f+(p-h)%d;n.forEach(((n,l)=>{if("pain"===n.type)return void function(i){const{list:n=[],spaceGridNumber:l=5,showScale:r,showNumber:u,position:h,showMaxMinNumber:p,style:c,title:d}=i,f=o({width:N-G,height:A,...J},{value:`${d}`,...e,...c||{}},{left:G,top:I.originY}),y=[];if(r||u){const{lineXMain:e,textLeft:o}=s(h,G,N-G),g=n.length;n.forEach(((n,s)=>{let h=I.endY-s*M*l;if(0===s&&(h=C-5),!u||(0===s||s===g-1)&&!p||y.push(a(n,i,o,h)),r&&0!==s){const[i,n]=e,o=new t.Line([i,h,n,h],{...J,...c});y.push(o)}}))}g.value.add(f,...y),f.sendToBack()}(n);const p=[],d=0===l?y:f,m=0===l?h:y+h+(l-1)*f,v="right"===r?0:E.originY,w="right"===r?_:E.endY,S=l>0?new t.Line([m,v,m,w],{...J}):null;S&&p.push(S);const b=m+d/2,{list:Y=[],spaceGridNumber:x=5,showScale:j,showNumber:T,position:X,showMaxMinNumber:V}=n;if(j||T){const{lineXMain:t,lineXSub:e,textLeft:i}=s(X,m,d),o=Y.length;Y.forEach(((l,r)=>{const s=E.endY-r*M*x;if(T&&(!(0===r||r===o-1)||V)){const t=0==r?s-5:s,e=a(l,n,i,t),o=E.originY+e.height/2;t<o&&e.set({top:o}),p.push(e)}p.push(...u(n,r,t,e,s,M,E.originY))}))}let L=n.title||"";n.unit&&(L+="\n"+n.unit),L&&p.push(new t.Text(String(L),{...e,left:b,top:E.originY+M*x/2,textAlign:"center",...n.style}));const k=new t.Group(p,{...i,objectCaching:!1});c.push(k)}));const m=c.length>0?new t.Group([...c],{...i,objectCaching:!1}):null;m&&g.value.add(m),m&&m.sendToBack()}function q(t){return t.left>=N&&t.left<V&&t.top>=X&&t.top<=C}G&&function(){const e=JSON.parse(JSON.stringify(H));let o=C;const s=G-k.icons.marginRight;e.reverse().forEach((e=>{o-=10;let a=e.title.replace(/(.{2})/g,"$1\n");a.endsWith("\n")&&(a=a.slice(0,a.length-1));const u=new t.Text(String(a),{...i,objectCaching:!1,...e.titleStyle||{},originX:"right",originY:"bottom",left:s-(e.pointAttr.width||10)-5,top:o,lineHeight:1,fontSize:12}),h=n(e.type,{left:s,top:o-(u.height||30)/2-1,...e.pointAttr,originY:"center",originX:"right",origin:{title:e.title,unit:e.unit,type:l(e.bigType),_type:e.bigType,dataIndex:e.dataIndex,key:e.key,isMenu:!0},originLeft:s,originTop:o-(u.height||30)/2-1,...p.event});var y;o-=u.height||30,(y=h).on("moving",(()=>{y.set("originX","center"),function(t){if(t.left>=N&&t.left<=V){t.setCoords();const e="pain"===t.origin.type?I:E;t.top<e.originY&&t.set("top",e.originY),t.top>e.endY&&t.set("top",e.endY)}}(y),q(y)?d(y):f.show=!1})),y.on("mouseup:before",(t=>{if(f.show=!1,0===t.e.button&&q(y)){const t=j(y.left,"_type",L).includes(y.origin._type),e=S(y.left);if(!e||t)t&&e&&T("repeat");else{const t={data:{time:v(y.left),value:w(y.origin.type,y.top),...r(y.origin.type)?{key:y.origin.key}:{}},...y.origin};c("add",t),b(t)}}!function(t){t.setCoords().set({originX:"right",left:t.originLeft,top:t.originTop})}(y)})),g.value.add(u,h)}))}();const z=k.yScaleValue.filter((t=>"left"===t.layout&&"pain"!==t.type&&t.show));if((null==W?void 0:W.width)&&"left"===(null==(Y=null==W?void 0:W.yScaleValue)?void 0:Y.layout)&&(null==(x=null==W?void 0:W.yScaleValue)?void 0:x.show)&&z.push(B),O>0&&k.yScaleValue[O].show){const t=k.yScaleValue[O];0===O&&k.yScaleValue.length>1&&z.unshift(t),O==k.yScaleValue.length-1&&z.push(t)}const D=z.findIndex((t=>"pulse"===t.type&&t.show&&t.doubleShow)),P=z[D];return D>-1&&z.splice(D,0,{...P,title:(null==P?void 0:P.doubleTitle)||(null==P?void 0:P.title)}),$(z),g.value.add(new t.Rect({left:G,top:0,width:R-G-1,height:_-1,fill:"transparent",...J})),{drawScaleValue:$}}export{g as useLeft};
@@ -0,0 +1,4 @@
1
+ import { Ref } from 'vue';
2
+ import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
+ import { IPropItems } from '../../../../../../es/components/fabric-chart/src/interface';
4
+ export declare function useOther(canvas: Ref<fabric.Canvas>, propItems: IPropItems, cumputedX: Function): void;
@@ -0,0 +1 @@
1
+ import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{defaultStyle as e}from"../useDraw.js";import"date-fns";import"lodash-es";import"@vueuse/core";import"vue";import"./useShadow.js";function i(i,n,o){const{other:r,vitalSignsOriginY:l,xCellWidth:s,yCellHeight:a,endX:c}=n;let u=0;function h(i,n,o){const r=[];String(i.value).split("").forEach(((n,o)=>{const l=new t.Text(n,{left:0,top:a*o,originX:"center",...e,objectCaching:!1,...i.style||{}});u=(a-(l.height||0))/2,r.push(l)}));const l={originX:"center",left:n,top:o+u,baseTop:(i.baseTop||0)*a,trueLeft:n,trueHeight:r.length*a,objectCaching:!1};return new t.Group(r,l)}!function(){if(!(null==r?void 0:r.list))return!1;const n=[],u=[];r.list.forEach(((t,e)=>{const i=0===e?"vertical":t.align||"vertical",n=o(t.time,!0);if(n>c)return;const r=u.find((t=>t.left==n));if(r)r[i].push(t);else{const e={left:n,vertical:[],horizontal:[]};e[i].push(t),u.push(e)}})),u.forEach((t=>{let e=l.originY,i=t.left;t.vertical.forEach(((o,r)=>{var c,u;const f=(o.baseTop||0)*a,g=(null==(c=n.at(-1))?void 0:c.left)||0;0===r&&t.left<=g&&(i=g+s);if(n.filter((t=>t.trueLeft===i)).length){const t=String(o.value).length*a,r=(null==(u=n.at(-1))?void 0:u.trueHeight)||0;e+=r,e+t+f>l.endY&&(e=l.originY,i+=s)}e+=f,String(o.value).length&&n.push(h(o,i,e))})),t.horizontal.forEach(((e,o)=>{var r;const c=l.originY+(e.baseTop||0)*a,u=(null==(r=n.at(-1))?void 0:r.left)||0;t.left<=u&&(i=u+s),String(e.value).length&&n.push(h(e,i,c))}))}));const f=n.length>0?new t.Group([...n],{...e,objectCaching:!1}):null;f&&i.value.add(f)}()}export{i as useOther};
@@ -0,0 +1,4 @@
1
+ import { Ref } from 'vue';
2
+ import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
+ import { IPropItems } from '../../../../../../es/components/fabric-chart/src/interface';
4
+ export declare function useRight(canvas: Ref<fabric.Canvas>, propItems: IPropItems, drawScaleValue: Function): void;
@@ -0,0 +1 @@
1
+ import{fabric as l}from"../../../../../shared/utils/fabricjs/index.js";function e(e,i,t){var o,n;const{left:d,right:u,getRightInfo:a,canvasWidth:s,endY:h,endX:r,originY:f,borderStyle:v}=i,c=d.yScaleValue.filter((l=>"right"===l.layout&&l.show));(null==u?void 0:u.width)&&"right"===(null==(o=null==u?void 0:u.yScaleValue)?void 0:o.layout)&&(null==(n=null==u?void 0:u.yScaleValue)?void 0:n.show)&&c.push(a);const w=c.findIndex((l=>"pulse"===l.type&&l.show&&l.doubleShow)),g=c[w];if(w>-1&&c.splice(w,0,{...g,title:(null==g?void 0:g.doubleTitle)||(null==g?void 0:g.title)}),(null==u?void 0:u.width)||c.length>0){const i=new l.Line([s-1,0,s-1,h],v),t=new l.Line([r+1,f,s-1,f],{...v,stroke:"#fff"});e.value.add(i,t)}t(c)}export{e as useRight};
@@ -1,4 +1,4 @@
1
- import { fabric } from '../../../../../es/shared/utils/fabricjs';
1
+ import { fabric } from '../../../../../../es/shared/utils/fabricjs';
2
2
  declare type Point = [number, number];
3
3
  export declare function useShadow(): {
4
4
  createShadowLines: (coordinates: Point[], angle?: number, space?: number) => fabric.Line[];
@@ -0,0 +1 @@
1
+ import{useMemoize as t}from"@vueuse/core";import{fabric as n}from"../../../../../shared/utils/fabricjs/index.js";const r=t((t=>+Math.tan(t*Math.PI/180)));function e(){return{createShadowLines:function(e,o=45,u=10){const a=[];var c;if(c=o,0===(o=c=(c=(c%=360)<0?180-c:c)>=180?c-180:c))return a;const i=Math.min(...e.map((([t])=>t))),s=Math.max(...e.map((([t])=>t))),h=Math.min(...e.map((([,t])=>t))),f=Math.max(...e.map((([,t])=>t))),m=(f-h)/r(o);let p=i,M=s;return o>0&&o<90||o>180&&o<270?M+=m:p+=m,function(t,n){const r=[l([t,h])];for(;t<n;)t+=u,r.push(l([t,h]));return r}(p,M).forEach((r=>{let o=[];var u,c,i,s,h,f;if((u=e,u.reduce(((t,n,r)=>{const e=u[r+1]||u[0];return t.push([n,e]),t}),[])).forEach((n=>{const e=function(n,r,e,o){const u=(r[1]-n[1])*(o[0]-e[0])-(n[0]-r[0])*(e[1]-o[1]);if(0===u)return!1;const a=((r[0]-n[0])*(o[0]-e[0])*(e[1]-n[1])+(r[1]-n[1])*(o[0]-e[0])*n[0]-(o[1]-e[1])*(r[0]-n[0])*e[0])/u,c=-((r[1]-n[1])*(o[1]-e[1])*(e[0]-n[0])+(r[0]-n[0])*(o[1]-e[1])*n[1]-(o[0]-e[0])*(r[1]-n[1])*e[1])/u;if(((a-n[0])*(a-r[0])<0||t(a,n[0])||t(a,r[0]))&&((c-n[1])*(c-r[1])<0||t(c,n[1])||t(c,r[1]))&&((a-e[0])*(a-o[0])<0||t(a,e[0])||t(a,o[0]))&&((c-e[1])*(c-o[1])<0||t(c,e[1])||t(c,o[1])))return[a,c];return!1}(r[0],r[1],n[0],n[1]);e&&o.push(e)})),c=function(n){return n.reduce(((t,n)=>(r(t,n)||t.push(n),t)),[]);function r(n,r){return n.some((n=>t(n[0],r[0])&&t(n[1],r[1])))}}(o),o=c.sort(((t,n)=>t[1]-n[1])),o.length>=2)for(let t=0;t<o.length;t++)o[t+1]&&(h=o[t],f=o[t+1],function(t,n){let r,e,o,u=0;const a=n.length;e=n[0];for(let c=1;c<=a;c++)o=n[c%a],t[0]>Math.min(e[0],o[0])&&t[0]<=Math.max(e[0],o[0])&&t[1]<=Math.max(e[1],o[1])&&e[0]!=o[0]&&(r=(t[0]-e[0])*(o[1]-e[1])/(o[0]-e[0])+e[1],(e[1]==o[1]||t[1]<=r)&&u++),e=o;return u%2!=0}([(h[0]+f[0])/2,(h[1]+f[1])/2],e))&&a.push((i=o[t],s=o[t+1],new n.Line([i[0],i[1],s[0],s[1]])))})),a;function l(t){return[t,[t[0]-m,f]]}}};function t(t,n){return Math.abs(t-n)<=1e-4}}export{e as useShadow};