cnhis-design-vue 3.1.55-beta.2 → 3.1.55-beta.20

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 (383) hide show
  1. package/README.md +87 -87
  2. package/es/components/annotation-edit/index.d.ts +1 -1
  3. package/es/components/annotation-edit/src/AnnotationEdit.d.ts +1 -1
  4. package/es/components/audio-sdk/src/audioSDK.d.ts +7 -3
  5. package/es/components/audio-sdk/src/audioSDK.js +1 -1
  6. package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +1 -0
  7. package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -1
  8. package/es/components/audio-sdk/style/index.css +1 -1
  9. package/es/components/base-search/index.d.ts +1 -1
  10. package/es/components/base-search/src/index.vue.d.ts +4 -4
  11. package/es/components/base-search/src/index.vue2.js +1 -1
  12. package/es/components/big-table/index.d.ts +22 -22
  13. package/es/components/big-table/src/BigTable.vue.d.ts +2 -2
  14. package/es/components/big-table/src/bigTableProps.d.ts +1 -1
  15. package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +5 -5
  16. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +1 -1
  17. package/es/components/big-table/src/components/separate.vue.d.ts +1 -1
  18. package/es/components/big-table/src/constants/index.d.ts +1 -1
  19. package/es/components/big-table/src/hooks/useAnnotation.d.ts +1 -1
  20. package/es/components/big-table/src/hooks/useFormat.d.ts +1 -1
  21. package/es/components/big-table/src/hooks/useSeparateRow.d.ts +1 -1
  22. package/es/components/big-table/src/utils.d.ts +1 -1
  23. package/es/components/biunique-chat/index.d.ts +14 -14
  24. package/es/components/biunique-chat/src/BiuniqueChat.vue.d.ts +1 -1
  25. package/es/components/biunique-chat/src/api/index.d.ts +1 -1
  26. package/es/components/biunique-chat/src/components/ChatFooter.vue.d.ts +1 -1
  27. package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +1 -1
  28. package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +1 -1
  29. package/es/components/biunique-chat/src/components/SiderList.vue.d.ts +1 -1
  30. package/es/components/biunique-chat/src/utils/chatSock.d.ts +1 -1
  31. package/es/components/body-select/index.d.ts +5 -5
  32. package/es/components/body-select/src/hooks/renderCanvas.d.ts +2 -2
  33. package/es/components/body-select/src/index.vue.d.ts +1 -1
  34. package/es/components/bpmn-workflow/index.d.ts +1 -1
  35. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  36. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  37. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  38. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  39. package/es/components/button-print/index.d.ts +21 -21
  40. package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -1
  41. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  42. package/es/components/button-print/src/api.d.ts +1 -1
  43. package/es/components/button-print/src/components/EditFormat.vue.d.ts +1 -1
  44. package/es/components/button-print/src/utils/dialog.d.ts +1 -1
  45. package/es/components/button-print/src/utils/print.d.ts +2 -2
  46. package/es/components/callback/index.d.ts +1 -1
  47. package/es/components/callback/src/components/dialog/drawer.vue.d.ts +1 -1
  48. package/es/components/callback/src/components/dialog/modal.vue.d.ts +1 -1
  49. package/es/components/callback/src/components/render/popupMaps.d.ts +61 -162
  50. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +1 -1
  51. package/es/components/card-reader-sdk/src/components/readCardDialog.vue.d.ts +1 -1
  52. package/es/components/card-reader-sdk/src/constants/index.d.ts +1 -1
  53. package/es/components/card-reader-sdk/src/insuranceSDK.d.ts +1 -1
  54. package/es/components/card-reader-sdk/src/types/index.d.ts +2 -2
  55. package/es/components/card-reader-sdk/src/utils/readHealthCard.d.ts +1 -1
  56. package/es/components/classification/index.d.ts +20 -20
  57. package/es/components/classification/src/components/set-classification/index.vue.d.ts +13 -13
  58. package/es/components/classification/src/components/table-modal/index.vue.d.ts +1 -1
  59. package/es/components/classification/src/index.vue.d.ts +13 -13
  60. package/es/components/config-provider/index.d.ts +1 -1
  61. package/es/components/date-picker/index.d.ts +2 -2
  62. package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
  63. package/es/components/editor/index.d.ts +1 -1
  64. package/es/components/expand-field/index.d.ts +29 -29
  65. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +2 -2
  66. package/es/components/expand-field/src/components/form.vue.d.ts +2 -2
  67. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  68. package/es/components/expand-field/src/constants/index.d.ts +1 -1
  69. package/es/components/expand-field/src/index.vue.d.ts +2 -2
  70. package/es/components/fabric-chart/index.d.ts +6 -6
  71. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +1 -1
  72. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +1 -1
  73. package/es/components/fabric-chart/src/constants/index.d.ts +4 -1
  74. package/es/components/fabric-chart/src/constants/index.js +1 -1
  75. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +3 -3
  76. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +3 -3
  77. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +2 -2
  78. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +2 -2
  79. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  80. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +5 -4
  81. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  82. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.d.ts +2 -2
  83. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +3 -3
  84. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.d.ts +3 -3
  85. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +3 -3
  86. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +3 -3
  87. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +3 -3
  88. package/es/components/fabric-chart/src/hooks/temperature/useBottom.d.ts +2 -2
  89. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +3 -3
  90. package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +2 -2
  91. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +2 -2
  92. package/es/components/fabric-chart/src/hooks/temperature/useRight.d.ts +2 -2
  93. package/es/components/fabric-chart/src/hooks/temperature/useShadow.d.ts +1 -1
  94. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +3 -3
  95. package/es/components/fabric-chart/src/hooks/temperature/useTop.d.ts +2 -2
  96. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +2 -2
  97. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +1 -1
  98. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +2 -2
  99. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
  100. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +2 -2
  101. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +2 -2
  102. package/es/components/fabric-chart/src/interface.d.ts +2 -2
  103. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  104. package/es/components/field-set/index.d.ts +15 -15
  105. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
  106. package/es/components/field-set/src/components/Row.vue.d.ts +2 -2
  107. package/es/components/field-set/src/types/index.d.ts +1 -1
  108. package/es/components/field-set/src/utils/index.d.ts +3 -3
  109. package/es/components/form-config/index.d.ts +280 -475
  110. package/es/components/form-config/src/FormConfig.vue.d.ts +406 -601
  111. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +27 -128
  112. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +1 -1
  113. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +193 -291
  114. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +2 -2
  115. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +1 -1
  116. package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +1 -1
  117. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +2 -2
  118. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +2 -2
  119. package/es/components/form-config/src/constants/index.d.ts +2 -2
  120. package/es/components/form-config/src/hooks/useConfigurationField.d.ts +3 -3
  121. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
  122. package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +1 -1
  123. package/es/components/form-config/src/types/index.d.ts +2 -2
  124. package/es/components/form-config/src/utils/index.d.ts +3 -3
  125. package/es/components/form-render/index.d.ts +60 -161
  126. package/es/components/form-render/index.js +1 -1
  127. package/es/components/form-render/src/FormRender.vue.d.ts +25 -127
  128. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  129. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +83 -184
  130. package/es/components/form-render/src/components/renderer/combination/combination.d.ts +1 -1
  131. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +1 -1
  132. package/es/components/form-render/src/components/renderer/combination/hooks/useDeepValidate.d.ts +1 -1
  133. package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +1 -1
  134. package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +2 -2
  135. package/es/components/form-render/src/components/renderer/complex.js +1 -1
  136. package/es/components/form-render/src/components/renderer/date.js +1 -1
  137. package/es/components/form-render/src/components/renderer/formItem.d.ts +1 -1
  138. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +1 -1
  139. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +1 -1
  140. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +2 -2
  141. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -1
  142. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  143. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  144. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +2 -2
  145. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  146. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +2 -2
  147. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  148. package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
  149. package/es/components/form-render/src/components/renderer/select.js +1 -1
  150. package/es/components/form-render/src/components/renderer/simpleComponent.d.ts +1 -1
  151. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  152. package/es/components/form-render/src/components/renderer/textarea.js +1 -1
  153. package/es/components/form-render/src/constants/index.d.ts +5 -6
  154. package/es/components/form-render/src/constants/index.js +1 -1
  155. package/es/components/form-render/src/hooks/useAnchor.d.ts +2 -2
  156. package/es/components/form-render/src/hooks/useAnchor.js +1 -1
  157. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
  158. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  159. package/es/components/form-render/src/hooks/useCommonInjection.d.ts +1 -1
  160. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +2 -2
  161. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  162. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +19 -19
  163. package/es/components/form-render/src/hooks/useFormContext.d.ts +6 -6
  164. package/es/components/form-render/src/hooks/useFormEvent.d.ts +4 -25
  165. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  166. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +5 -5
  167. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
  168. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +8 -8
  169. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +16 -12
  170. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  171. package/es/components/form-render/src/hooks/useFormValidator.d.ts +1 -1
  172. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  173. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  174. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +1 -1
  175. package/es/components/form-render/src/hooks/usePresetScope.js +1 -1
  176. package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +2 -2
  177. package/es/components/form-render/src/types/fieldItem.d.ts +3 -3
  178. package/es/components/form-render/src/types/index.d.ts +15 -15
  179. package/es/components/form-render/src/utils/business.d.ts +2 -2
  180. package/es/components/form-render/src/utils/dom.d.ts +1 -1
  181. package/es/components/form-render/src/utils/index.d.ts +4 -18
  182. package/es/components/form-render/src/utils/index.js +1 -1
  183. package/es/components/form-render/src/utils/schema.d.ts +3 -3
  184. package/es/components/form-render/src/utils/schema.js +1 -1
  185. package/es/components/grid/index.d.ts +1 -1
  186. package/es/components/guide/src/renderer.d.ts +1 -1
  187. package/es/components/guide/src/types/index.d.ts +1 -1
  188. package/es/components/guide/src/useGuide.d.ts +1 -1
  189. package/es/components/guide/src/utils/index.d.ts +1 -1
  190. package/es/components/iho-table/index.d.ts +39 -39
  191. package/es/components/iho-table/src/IhoTable.vue.d.ts +27 -27
  192. package/es/components/iho-table/src/constants/index.d.ts +5 -5
  193. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +9 -9
  194. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +21 -21
  195. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +10 -10
  196. package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.d.ts +4 -4
  197. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +65 -65
  198. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +4 -4
  199. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +7 -7
  200. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +3 -3
  201. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.d.ts +1 -1
  202. package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +2 -2
  203. package/es/components/iho-table/src/plugins/anchorPlugin/index.d.ts +1 -1
  204. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +1 -1
  205. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.d.ts +1 -1
  206. package/es/components/iho-table/src/plugins/colorAndIconPlugin.d.ts +1 -1
  207. package/es/components/iho-table/src/plugins/copyPastePlugin.d.ts +1 -1
  208. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.d.ts +1 -1
  209. package/es/components/iho-table/src/plugins/defaultValuePlugin.d.ts +1 -1
  210. package/es/components/iho-table/src/plugins/defaultValuePlugin.js +1 -1
  211. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +2 -2
  212. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.d.ts +1 -1
  213. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -1
  214. package/es/components/iho-table/src/plugins/filterVisibleEventPlugin.d.ts +1 -1
  215. package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.d.ts +1 -1
  216. package/es/components/iho-table/src/plugins/headerPlugin.d.ts +1 -1
  217. package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -1
  218. package/es/components/iho-table/src/plugins/index.d.ts +1 -1
  219. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +1 -1
  220. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.d.ts +1 -1
  221. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -1
  222. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -1
  223. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -2
  224. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +1 -1
  225. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +1 -1
  226. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +1 -1
  227. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +1 -1
  228. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.d.ts +1 -1
  229. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +7 -7
  230. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.d.ts +1 -1
  231. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  232. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/radioRendererPlugin.d.ts +1 -1
  233. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +8 -2
  234. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  235. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +1 -1
  236. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -2
  237. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
  238. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.d.ts +1 -1
  239. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +2 -2
  240. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +2 -2
  241. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.d.ts +1 -1
  242. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.d.ts +1 -1
  243. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.d.ts +1 -1
  244. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.d.ts +1 -1
  245. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.d.ts +1 -1
  246. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.d.ts +1 -1
  247. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +1 -1
  248. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.d.ts +1 -1
  249. package/es/components/iho-table/src/plugins/rowClickPlugin/index.d.ts +1 -1
  250. package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +1 -1
  251. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +1 -1
  252. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +2 -2
  253. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -1
  254. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.d.ts +1 -1
  255. package/es/components/iho-table/src/plugins/wordbookSettingPlugin.d.ts +1 -1
  256. package/es/components/iho-table/src/types/index.d.ts +3 -3
  257. package/es/components/iho-table/src/types/pluginType.d.ts +2 -2
  258. package/es/components/iho-table/src/utils/index.d.ts +3 -3
  259. package/es/components/iho-table/src/utils/separateMap.d.ts +2 -2
  260. package/es/components/index.css +1 -1
  261. package/es/components/index.d.ts +3 -3
  262. package/es/components/index.js +1 -1
  263. package/es/components/info-header/index.d.ts +175 -377
  264. package/es/components/info-header/src/InfoHeader.vue.d.ts +191 -393
  265. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +6 -6
  266. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +9 -9
  267. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +106 -207
  268. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +28 -129
  269. package/es/components/info-header/src/constants/index.d.ts +1 -1
  270. package/es/components/info-header/src/types/index.d.ts +1 -1
  271. package/es/components/keyboard/index.d.ts +1 -1
  272. package/es/components/map/index.d.ts +1 -1
  273. package/es/components/map/src/Map.vue.d.ts +1 -1
  274. package/es/components/picture-clipper/index.d.ts +1 -1
  275. package/es/components/picture-clipper/src/PictureClipper.vue.d.ts +1 -1
  276. package/es/components/quick-search/index.d.ts +1 -1
  277. package/es/components/quick-search/src/index.vue.d.ts +4 -4
  278. package/es/components/recommend-search/index.d.ts +25 -25
  279. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +7 -7
  280. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -3
  281. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +2 -2
  282. package/es/components/scale-view/index.d.ts +1 -1
  283. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  284. package/es/components/scale-view/src/hooks/use-component.d.ts +33 -33
  285. package/es/components/scale-view/src/types/index.d.ts +1 -1
  286. package/es/components/search-cascader/index.d.ts +34 -34
  287. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +1 -1
  288. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  289. package/es/components/search-cascader/src/constants/index.d.ts +1 -1
  290. package/es/components/search-cascader/src/utils/index.d.ts +1 -1
  291. package/es/components/select-label/index.d.ts +1 -1
  292. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
  293. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  294. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  295. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +3 -3
  296. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +3 -3
  297. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.d.ts +1 -1
  298. package/es/components/select-label/src/index.vue.d.ts +19 -19
  299. package/es/components/select-person/index.d.ts +22 -22
  300. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  301. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  302. package/es/components/shortcut-provider/index.d.ts +1 -1
  303. package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -2
  304. package/es/components/shortcut-provider/src/constants/index.d.ts +1 -1
  305. package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +1 -1
  306. package/es/components/shortcut-provider/src/types/index.d.ts +1 -1
  307. package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
  308. package/es/components/shortcut-setter/index.d.ts +76 -176
  309. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +109 -209
  310. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +2 -2
  311. package/es/components/shortcut-setter/src/types/index.d.ts +1 -1
  312. package/es/components/slider-tree/index.d.ts +1 -1
  313. package/es/components/steps-wheel/index.d.ts +1 -1
  314. package/es/components/table-export-field/index.d.ts +3 -3
  315. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +4 -1
  316. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +1 -1
  317. package/es/components/table-export-field/src/constants/index.d.ts +1 -1
  318. package/es/components/table-export-field/src/index.vue.d.ts +1 -1
  319. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +1 -1
  320. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +2 -2
  321. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +1 -1
  322. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -1
  323. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +2 -2
  324. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  325. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +2 -2
  326. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +2 -2
  327. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
  328. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +2 -2
  329. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +2 -2
  330. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +1 -1
  331. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +2 -2
  332. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +1 -1
  333. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +4 -0
  334. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  335. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +1 -1
  336. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +4 -0
  337. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +1 -1
  338. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +13 -9
  339. package/es/components/table-filter/src/constants/index.d.ts +1 -1
  340. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -2
  341. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -1
  342. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +1 -1
  343. package/es/components/table-filter/src/tool/transformData.d.ts +1 -1
  344. package/es/components/table-filter/src/types/index.d.ts +1 -0
  345. package/es/components/time-line/index.d.ts +1 -1
  346. package/es/components/time-picker/index.d.ts +2 -2
  347. package/es/components/time-picker/src/TimePicker.vue.d.ts +1 -1
  348. package/es/components/vod-chunk-upload/index.d.ts +1 -1
  349. package/es/env.d.ts +25 -25
  350. package/es/shared/assets/img/failure.png.js +1 -1
  351. package/es/shared/assets/img/no-permission.png.js +1 -1
  352. package/es/shared/assets/img/nodata.png.js +1 -1
  353. package/es/shared/assets/img/notfound.png.js +1 -1
  354. package/es/shared/assets/img/qr.png.js +1 -1
  355. package/es/shared/assets/img/success.png.js +1 -1
  356. package/es/shared/assets/img/video.png.js +1 -1
  357. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  358. package/es/shared/assets/img/xb_big.png.js +1 -1
  359. package/es/shared/assets/img/xb_small.png.js +1 -1
  360. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +5 -3
  361. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  362. package/es/shared/components/SelectPage/SelectPage.vue.d.ts +1 -1
  363. package/es/shared/components/SlotRender/SlotRender.d.ts +1 -1
  364. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  365. package/es/shared/hooks/selectHooks/useOptionFiltered.d.ts +1 -1
  366. package/es/shared/hooks/selectHooks/useSearchContent.d.ts +1 -1
  367. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
  368. package/es/shared/hooks/selectHooks/useSelectAllowModify.d.ts +1 -1
  369. package/es/shared/hooks/selectHooks/useSelectRenders.d.ts +1 -1
  370. package/es/shared/hooks/useAsyncQueue/types.d.ts +1 -1
  371. package/es/shared/hooks/useDateTime.d.ts +1 -1
  372. package/es/shared/hooks/useFormRequest/index.d.ts +2 -2
  373. package/es/shared/hooks/useFormRequest/types.d.ts +2 -2
  374. package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -2
  375. package/es/shared/hooks/useTheme.d.ts +1 -1
  376. package/es/shared/package.json.js +1 -1
  377. package/es/shared/types/business.d.ts +1 -1
  378. package/es/shared/utils/business.d.ts +1 -1
  379. package/es/shared/utils/business.js +1 -1
  380. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  381. package/es/shared/utils/index.d.ts +1 -1
  382. package/es/shared/utils/tapable/index.d.ts +139 -0
  383. package/package.json +2 -2
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,inject as a,computed as t,watch as u,openBlock as n,createBlock as i,unref as o,normalizeClass as v,isRef as d,withCtx as r,createVNode as s,normalizeStyle as p,createElementVNode as f,createTextVNode as m,createCommentVNode as c,createElementBlock as y,Fragment as h,renderList as _,withDirectives as g,withKeys as b,withModifiers as x,vShow as k,toDisplayString as M}from"vue";import{useMessage as w,NModal as H,NCard as C,NButton as U,NForm as S,NFormItem as j,NInput as O,NTooltip as I,NSelect as z,NGrid as T,NGridItem as N,NIcon as Y,NInputNumber as $,NPopover as L,NDatePicker as V,NTimePicker as B,NSwitch as D}from"naive-ui";import{isMulti as F,isShowOptions as P,isNumber as q,isDate as A,isCandidate as E,isTextarea as J}from"../utils/index.js";import K from"moment";import{InjectionExpandFieldApiConfig as R}from"../constants/index.js";import W from"../hooks/useAsyncData.js";import{HtmlTypeList as X}from"../utils/constant.js";import{isJSON as G,isValidDate as Q}from"../utils/tool.js";import Z from"./FormBatchOptionsModal.vue.js";import ee from"./FormItemPerson.vue.js";const le={class:"svg-wrap"},ae={class:"flex_right"},te={class:"options-title"},ue=f("span",null,"字段键名",-1),ne=f("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),ie={class:"options-title"},oe=f("span",null,"字段问号提示",-1),ve=f("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),de={class:"options-title"},re=f("span",null,"选项值",-1),se=f("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[f("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),f("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),f("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),f("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),pe={class:"options-title"},fe=f("span",null,"默认值",-1),me=f("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),ce={style:{display:"flex","align-items":"center"}},ye=f("span",null,"选择",-1),he={style:{width:"100%"}},_e={key:0,class:"validate_tip"};var ge=e({__name:"form",props:{visible:{type:Boolean,default:!1},formOntype:{type:String,default:"add"},formItemData:{type:Object,default:()=>({})},id:{type:String,default:""},orgId:{type:String,default:""},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]}},emits:["cancelModal"],setup(e,{emit:ge}){const be=e,xe=w(),ke="请输入默认值",Me={name:[{required:!0,message:"请输入字段标题",trigger:["input","blur"]}],html_type:[{required:!0,message:"请选择字段类型",trigger:["input","blur"]}]},we=[{value:"yyyy-MM-dd HH:mm:ss",label:"年-月-日 时:分:秒"},{value:"yyyy-MM-dd HH:mm",label:"年-月-日 时:分"},{value:"yyyy-MM-dd",label:"年-月-日"},{value:"yyyy-MM",label:"年-月"},{value:"MM-dd HH:mm",label:"月-日 时:分"},{value:"MM-dd",label:"月-日"},{value:"HH:mm:ss",label:"时:分:秒"},{value:"HH:mm",label:"时:分"}],He=[{value:"12",label:"整行"},{value:"6",label:"半行"},{value:"4",label:"1/3行"},{value:"8",label:"2/3行"},{value:"3",label:"1/4行"},{value:"9",label:"3/4行"},{value:"2",label:"1/6行"},{value:"10",label:"5/6行"},{value:"1.5",label:"1/8行"},{value:"10.5",label:"7/8行"}],Ce=l(!1),Ue=l("860px");let Se=l({maxHeight:"496px",height:"496px"});const{saveOrUpdateExtendField:je}=W(),Oe=a(R),Ie=l(null),ze=l({name:void 0,remark:void 0,is_edit:"1",is_null:"1",is_show:"1",key:"",val_key:void 0,validate:{},html_type:"INPUT",name_i18n:void 0,elem_width:"12",default_val:void 0,label_type:void 0,isMultiSelect:"0",decimal_length:void 0,date_format:""}),Te=l([{text:void 0,value:void 0}]),Ne=l({format:"yyyy-MM-dd HH:mm:ss",dateType:"date",mode:"date",value:null,showTime:!0,open:!1,componentType:"datetime"}),Ye=l({obj_type:"",vali_obj:"",event_obj:"",max_length:"",min_length:"",min_value:"",max_value:""}),$e=l({value_key:"",levelSetting:[],search_key:[],level_num:void 0,render_key:[],name:"",level_key:"",id:"",type:"",primary_key:"",sqlExpression:"",conObj:"",add_btn:"",setting:{cascading:[]}}),Le=l(!1),Ve=l(!1),Be=l(void 0),De=l(!1),Fe=l(!1);l(!1);const Pe=l(!1),qe=l(""),Ae=t((()=>"edit"===be.formOntype)),Ee=t((()=>ze.value.html_type||""));t((()=>"TEXTAREA"===Ee.value?1e3:255));const Je=t((()=>Te.value.filter((e=>e.value&&e.text)))),Ke=t((()=>F(Ee.value))),Re=t((()=>"date"===Ne.value.dateType));function We(e){Pe.value=e}function Xe(e){let l=e;"string"!=typeof e&&(l=JSON.stringify(e)),ze.value.default_val=l}function Ge(e){Ne.value.value=null,ze.value.default_val=void 0,il(e)}function Qe(){Ce.value=!Ce.value;let e=document.body.clientHeight;"860px"===Ue.value?(Ue.value="100%",Se.value.maxHeight=`${e}px`,Se.value.height=`${e}px`):(Ue.value="860px",Se.value.maxHeight="496px",Se.value.height="")}function Ze(e){return["HH:mm:ss","HH:mm"].includes(e)}function el(e,l){switch(e){case"isNull":Le.value=l,ze.value.is_null=l?"0":"1";break;case"isMultiSelect":Ve.value=l,ze.value.isMultiSelect=l?"1":"0"}}function ll(){if("add"===be.formOntype)return;let e=Object.assign({},be.formItemData),l=e.setting;l&&G(l)&&(l=JSON.parse(l),delete e.setting,Object.assign(e,{...l})),e.key=e.code,delete e.code,A(e.html_type)&&function(e){il(e.date_format);let l=e.default_val;l&&!l.startsWith("${")&&(Ze(e.date_format)&&(l=`${K().format("YYYY-MM-dd")} ${l}`),Q(new Date(l))&&(Ne.value.value=K(l)))}(e),F(e.html_type)&&(e.default_val=function(e){let l=e.default_val;return l?l.split(",").filter(Boolean):[]}(e)),Le.value="0"==e.is_null,Ve.value="1"==e.isMultiSelect,Ye.value=Object.assign(Ye.value,e.validate||{}),$e.value=Object.assign($e.value,e.wordbook||{}),ze.value=Object.assign(ze.value,e||{}),P(e.html_type)&&function(e){let l=(null==e?void 0:e.optionValue)||[];l.length||l.push({text:void 0,value:void 0}),Te.value=[...l],delete e.optionValue}(e)}function al(e){ze.value.html_type=e,Te.value=[{text:void 0,value:void 0}];let l=function(){if(F(Ee.value))return[]}();ze.value.default_val=l,A(e)?ze.value.date_format="yyyy-MM-dd HH:mm:ss":ze.value.date_format=""}function tl(){Te.value.push({value:"",text:""})}function ul(e){let l=e;(e<0||0===e)&&(l=0),e>5&&(l=5),Be.value=0===l?l:l||void 0}function nl(e){Te.value=e}function il(e){let l=e||"yyyy-MM-dd HH:mm:ss",a=Ze(l)?"time":"date",t="yyyy-MM"===l?"month":"date";let u=function(e){return["yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","MM-dd HH:mm"].includes(e)}(l),n="";["yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","MM-dd HH:mm"].includes(e)&&(n="datetime"),["yyyy-MM-dd","MM-dd"].includes(e)&&(n="date"),Object.assign(Ne.value,{format:l,dateType:a,mode:t,showTime:u,componentType:n})}function ol(e,l){if(e)return l&&(l.includes("yyyy")&&(l=l.replace("yyyy","YYYY")),l.includes("dd")&&(l=l.replace("dd","DD"))),K(e).format(l)}function vl(){Ne.value.open=!Ne.value.open}function dl(e){let l=ol(e,Ne.value.format);ze.value.default_val=l}function rl(e){let l=ol(e,Ne.value.format);ze.value.default_val=l,Ne.value.format.includes("HH:mm")||vl()}function sl(e){let l=ol(e,Ne.value.format);ze.value.default_val=l}function pl(){ge("cancelModal"),Ue.value="860px",Se.value={height:"496px",maxHeight:"496px"},Ce.value=!1,ze.value={name:void 0,remark:void 0,is_edit:"1",is_null:"1",is_show:"1",key:"",val_key:void 0,validate:{},html_type:"INPUT",name_i18n:void 0,elem_width:"12",default_val:void 0,label_type:void 0,isMultiSelect:"0",decimal_length:void 0,date_format:""}}function fl(){var e;null==(e=Ie.value)||e.validate((async e=>{if(e)return;let l=Object.assign({},ze.value);if(l.validate={...Ye.value},l.extendId=be.id,P(Ee.value)){let e=function(){let e={validate:!1,message:"请完善选项配置"};if(!Te.value||!Te.value.length)return e;let l,a,t,u=0,n=Te.value.length,i=!1;for(;u<n;u++){if(l=Te.value[u],a=l.value?l.value.trim():l.value,t=l.text?l.text.trim():l.text,!a||!t){i=!0;break}l.value=a,l.text=t}return[...new Set(Te.value.map((e=>e.value)))].length!==Te.value.length?(e.message="选项值不能重复",e):(!i&&(e.validate=!0),e)}();if(!e.validate)return De.value=!0,void xe.warning(e.message);De.value=!1,l.option=[...Te.value]}if(q(Ee.value)?l.default_val=function(e){let l=e.default_val;if(void 0===Be.value)return l;if(!l)return l;let a=String(l).split(".")[1];return a&&a.length!==Be.value?Number(l.toFixed(Be.value)):l}(l):F(Ee.value)&&(l.default_val=l.default_val.join(",")),!E(Ee.value)||function(e){let{default_val:l}=e;qe.value="",l&&G(l)&&(l=JSON.parse(l));let a=function(e,l){if(!e)return;if("string"!=typeof e)return;if(!(e=e.trim()))return!0;if(!e.startsWith("${"))return ml(l,"请输入有效系统变量"),"error";let a=/\${sys.(.*?)\}/g.exec(e);if(!a||!a[1])return ml(l,"请输入有效系统变量"),"error";return!0}(l,e);if(a)return"error"!==a;if(console.log("saveOjb.isMultiSelect>>>",e.isMultiSelect),console.log("default_val?.length>>>",null==l?void 0:l.length),"0"===e.isMultiSelect&&(null==l?void 0:l.length)>1)return console.log("进入到判断里面了>>>>>"),ml(e,"选人组件为单选"),!1;return!0}(l)){for(let e in l){let a=l[e];"string"==typeof a&&(l[e]=null==a?void 0:a.trim())}console.log("saveOjb>>>",l),await async function(e={}){Fe.value=!0;try{const l=await je(e,Oe);if(Fe.value=!1,"SUCCESS"!==(null==l?void 0:l.result))return void xe.error((null==l?void 0:l.resultMsg)||"保存失败");pl()}catch(e){Fe.value=!1}}(l)}}))}function ml(e,l){qe.value=l}return u((()=>be.visible),(e=>{e&&ll()})),(l,a)=>(n(),i(o(H),{class:v(["expand-field-modal-block",{"modal-screen":Ce.value}]),show:e.visible,"onUpdate:show":a[22]||(a[22]=e=>d(visible)?visible.value=e:null),maskClosable:!1,width:Ue.value,bodyStyle:o(Se),closable:!1,centered:"",onPositiveClick:fl,onNegativeClick:pl},{default:r((()=>[s(o(C),{style:p({width:Ue.value,...o(Se)}),title:"add"===be.formOntype?"新增拓展字段":"编辑拓展字段",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":r((()=>[f("div",le,[f("i",{onClick:Qe,class:v(["iconfont-expand-field",Ce.value?"icon-expand-field-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-expand-field-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),f("i",{onClick:pl,class:"iconfont-expand-field icon-expand-field-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:r((()=>[f("div",ae,[s(o(U),{onClick:pl},{default:r((()=>[m("取消")])),_:1}),s(o(U),{type:"info",onClick:fl},{default:r((()=>[m("保存")])),_:1})])])),default:r((()=>[s(o(S),{ref_key:"formRef",ref:Ie,model:ze.value,rules:Me},{default:r((()=>[s(o(j),{path:"name",label:"字段标题","require-mark-placement":"left"},{default:r((()=>[s(o(O),{value:ze.value.name,"onUpdate:value":a[0]||(a[0]=e=>ze.value.name=e),maxlength:100,clearable:"",placeholder:"请输入"},null,8,["value"])])),_:1}),s(o(j),{path:"key"},{label:r((()=>[f("div",te,[ue,s(o(I),{duration:0},{trigger:r((()=>[ne])),default:r((()=>[m(" 数据库字段键名,不填写时由系统生成,填写则以填写为准 ")])),_:1})])])),default:r((()=>[s(o(O),{value:ze.value.key,"onUpdate:value":a[1]||(a[1]=e=>ze.value.key=e),maxlength:32,disabled:o(Ae),clearable:"",placeholder:"数据库字段键名,不填写时由系统生成,填写则以填写为准"},null,8,["value","disabled"])])),_:1}),s(o(j),{path:"html_type",label:"字段类型","require-mark-placement":"left"},{default:r((()=>[s(o(z),{value:ze.value.html_type,"onUpdate:value":[a[2]||(a[2]=e=>ze.value.html_type=e),al],placeholder:"请选择字段类型",clearable:"",filterable:"",options:o(X)},null,8,["value","options"])])),_:1}),s(o(j),{path:"remark",label:"字段问号提示"},{label:r((()=>[f("div",ie,[oe,s(o(I),{duration:0},{trigger:r((()=>[ve])),default:r((()=>[m(" 设置后该字段旁会有问号图标,鼠标悬浮展示“问号提示”内容,常用于告诉用户该字段的含义 ")])),_:1})])])),default:r((()=>[s(o(O),{value:ze.value.remark,"onUpdate:value":a[3]||(a[3]=e=>ze.value.remark=e),placeholder:"请输入",type:"textarea",clearable:"",maxlength:255,rows:3},null,8,["value"])])),_:1}),c(" 选项值>>>>>类型对应关系 "),o(P)(o(Ee))?(n(),i(o(j),{key:0},{label:r((()=>[f("div",de,[re,f("span",{class:"batch-span",onClick:tl},"添加选项"),f("span",{class:"batch-span",onClick:a[4]||(a[4]=()=>We(!0))},"批量编辑")])])),default:r((()=>[f("div",{class:v(["options-item",{"options-item-err":De.value}])},[(n(!0),y(h,null,_(Te.value,((e,l)=>(n(),i(o(T),{class:"mgb-10",key:l,cols:24,"x-gap":8,"y-gap":8},{default:r((()=>[s(o(N),{span:11},{default:r((()=>[s(o(O),{value:e.value,"onUpdate:value":l=>e.value=l,maxLength:100,allowClear:"",placeholder:"选项值"},null,8,["value","onUpdate:value"])])),_:2},1024),s(o(N),{span:11},{default:r((()=>[s(o(O),{value:e.text,"onUpdate:value":l=>e.text=l,maxLength:100,allowClear:"",placeholder:"选项文本"},null,8,["value","onUpdate:value"])])),_:2},1024),s(o(N),{span:2,class:"flex-center"},{default:r((()=>[Te.value.length>1?(n(),i(o(Y),{key:0,onClick:a=>function(e,l){Te.value.splice(l,1);let a=ze.value.default_val;if(F(Ee.value)){if(!a||!a.length)return;let l=a.findIndex((l=>l===e.value));l||a.splice(l,1)}else{if(!a)return;a===e.value&&(a=void 0)}ze.value.default_val=a}(e,l)},{default:r((()=>[se])),_:2},1032,["onClick"])):c("v-if",!0)])),_:2},1024)])),_:2},1024)))),128))],2)])),_:1})):c("v-if",!0),o(q)(o(Ee))?(n(),i(o(j),{key:1,path:"decimal_length",label:"小数位"},{default:r((()=>[s(o($),{style:{width:"100%"},min:0,max:5,placeholder:"请输入",precision:0,clearable:"",value:ze.value.decimal_length,"onUpdate:value":[a[5]||(a[5]=e=>ze.value.decimal_length=e),ul]},null,8,["value"])])),_:1})):c("v-if",!0),o(A)(o(Ee))?(n(),i(o(j),{key:2,path:"date_format",label:"日期格式"},{default:r((()=>[s(o(z),{style:{width:"100%"},value:ze.value.date_format,"onUpdate:value":[a[6]||(a[6]=e=>ze.value.date_format=e),Ge],placeholder:"请选择",options:we},null,8,["value"])])),_:1})):c("v-if",!0),c(" 默认值>>>>>类型对应关系 "),s(o(j),{path:"default_val",label:"默认值"},{label:r((()=>[f("div",pe,[fe,o(E)(o(Ee))?(n(),i(o(I),{key:0,duration:0},{trigger:r((()=>[me])),default:r((()=>[m(" 支持输入系统变量当前操作人${sys.userId},也支持选择一个人 ")])),_:1})):c("v-if",!0)])])),default:r((()=>[o(J)(o(Ee))?(n(),i(o(O),{key:0,value:ze.value.default_val,"onUpdate:value":a[7]||(a[7]=e=>ze.value.default_val=e),placeholder:ke,type:"textarea",clearable:"",maxlength:1e3,rows:3},null,8,["value"])):o(q)(o(Ee))?(n(),y(h,{key:1},[c(" 数字框 "),s(o($),{style:{width:"100%"},clearable:"",placeholder:ke,precision:Be.value,value:ze.value.default_val,"onUpdate:value":a[8]||(a[8]=e=>ze.value.default_val=e)},null,8,["precision","value"])],2112)):o(P)(o(Ee))?(n(),y(h,{key:2},[c(" 下拉框、横向单选、纵向单选、横向多选、纵向多选、下拉多选框 "),s(o(z),{style:{width:"100%"},multiple:o(Ke),clearable:"",value:ze.value.default_val,"onUpdate:value":a[9]||(a[9]=e=>ze.value.default_val=e),"label-field":"text",placeholder:ke,options:o(Je)},null,8,["multiple","value","options"])],2112)):o(A)(o(Ee))?(n(),y(h,{key:3},[c(" 日期 "),f("div",ce,[s(o(O),{clearable:"",maxLength:255,value:ze.value.default_val,"onUpdate:value":a[10]||(a[10]=e=>ze.value.default_val=e),placeholder:ke},null,8,["value"]),o(Re)?(n(),y(h,{key:0},["month"===Ne.value.mode?(n(),i(o(L),{key:0,trigger:"click",show:Ne.value.open},{trigger:r((()=>[s(o(U),{type:"info",onClick:vl},{default:r((()=>[m("选择")])),_:1})])),default:r((()=>[s(o(V),{panel:"",value:Ne.value.value,"onUpdate:value":[a[11]||(a[11]=e=>Ne.value.value=e),dl],type:"month","input-readonly":"",clearable:"",onConfirm:vl},null,8,["value"])])),_:1},8,["show"])):(n(),i(o(L),{key:1,trigger:"click",show:Ne.value.open},{trigger:r((()=>[s(o(U),{type:"info",onClick:vl},{default:r((()=>[m("选择")])),_:1})])),default:r((()=>[s(o(V),{panel:"",value:Ne.value.value,"onUpdate:value":[a[12]||(a[12]=e=>Ne.value.value=e),rl],format:Ne.value.format,type:Ne.value.componentType,"input-readonly":"",clearable:"",onConfirm:vl},null,8,["value","format","type"])])),_:1},8,["show"]))],64)):(n(),y(h,{key:1},[c(' <n-input\r\n allowClear\r\n :maxLength="255"\r\n v-model:value="dateInfo.value"\r\n @keydown.enter.prevent\r\n :placeholder="defaultPlaceholder"\r\n /> '),s(o(U),{type:"info",class:"date-time-button"},{default:r((()=>[ye,s(o(B),{value:Ne.value.value,"onUpdate:value":[a[13]||(a[13]=e=>Ne.value.value=e),sl],format:Ne.value.format,"input-readonly":"",clearable:""},null,8,["value","format"])])),_:1}),c(' <n-popover trigger="click">\r\n <template #trigger>\r\n <n-button type="info">选择</n-button>\r\n </template>\r\n <n-time-picker\r\n panel\r\n v-model:value="dateInfo.value"\r\n :format="dateInfo.format"\r\n input-readonly\r\n clearable\r\n @update:value="timeChange"\r\n >\r\n <template v-slot:icon>111</template>\r\n\r\n </n-time-picker>\r\n </n-popover> ')],64))])],2112)):o(E)(o(Ee))?(n(),y(h,{key:4},[c(" 选人组件(增加一个选人组件) "),f("div",he,[g(s(o(O),{allowClear:"",maxLength:255,value:ze.value.default_val,"onUpdate:value":a[14]||(a[14]=e=>ze.value.default_val=e),onKeydown:a[15]||(a[15]=b(x((()=>{}),["prevent"]),["enter"])),placeholder:ke},null,8,["value"]),[[k,!1]]),c(' 点击弹出选人组件弹窗 :mainForm="this" '),s(ee,{orgId:e.orgId,defaultValue:ze.value.default_val,onCheckPerson:Xe},null,8,["orgId","defaultValue"]),qe.value?(n(),y("span",_e,M(qe.value),1)):c("v-if",!0),c(' <n-button type="info">选择</n-button> ')])],2112)):(n(),y(h,{key:5},[c(" 其他 "),s(o(O),{value:ze.value.default_val,"onUpdate:value":a[16]||(a[16]=e=>ze.value.default_val=e),onKeydown:a[17]||(a[17]=b(x((()=>{}),["prevent"]),["enter"])),placeholder:"请输入默认值"},null,8,["value"])],2112))])),_:1}),s(o(j),{path:"elem_width",label:"宽度"},{default:r((()=>[s(o(z),{value:ze.value.elem_width,"onUpdate:value":a[18]||(a[18]=e=>ze.value.elem_width=e),placeholder:"请选择宽度",options:He},null,8,["value"])])),_:1}),s(o(j),{path:"isNull",label:"是否必填","label-placement":"left"},{default:r((()=>[s(o(D),{value:Le.value,"onUpdate:value":[a[19]||(a[19]=e=>Le.value=e),a[20]||(a[20]=e=>el("isNull",e))]},null,8,["value"])])),_:1}),o(E)(o(Ee))?(n(),i(o(j),{key:3,"label-placement":"left",path:"isMultiSelect",label:"是否多选"},{default:r((()=>[s(o(D),{value:Ve.value,"onUpdate:value":a[21]||(a[21]=e=>el("isMultiSelect",e))},null,8,["value"])])),_:1})):c("v-if",!0)])),_:1},8,["model"]),s(Z,{visible:Pe.value,options:Te.value,onHandleSaveBatch:nl,onTriggerBatch:We},null,8,["visible","options"])])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}});export{ge as default};
1
+ import{defineComponent as e,ref as l,inject as a,computed as t,watch as u,openBlock as n,createBlock as i,unref as o,normalizeClass as v,isRef as d,withCtx as r,createVNode as s,normalizeStyle as p,createElementVNode as f,createTextVNode as m,createCommentVNode as c,createElementBlock as y,Fragment as h,renderList as _,withDirectives as g,withKeys as b,withModifiers as x,vShow as k,toDisplayString as M}from"vue";import{useMessage as w,NModal as H,NCard as C,NButton as U,NForm as S,NFormItem as j,NInput as O,NTooltip as I,NSelect as z,NGrid as T,NGridItem as N,NIcon as Y,NInputNumber as $,NPopover as L,NDatePicker as V,NTimePicker as B,NSwitch as D}from"naive-ui";import{isMulti as F,isShowOptions as P,isNumber as q,isDate as A,isCandidate as E,isTextarea as J}from"../utils/index.js";import K from"moment";import{InjectionExpandFieldApiConfig as R}from"../constants/index.js";import W from"../hooks/useAsyncData.js";import{HtmlTypeList as X}from"../utils/constant.js";import{isJSON as G,isValidDate as Q}from"../utils/tool.js";import Z from"./FormBatchOptionsModal.vue.js";import ee from"./FormItemPerson.vue.js";const le={class:"svg-wrap"},ae={class:"flex_right"},te={class:"options-title"},ue=f("span",null,"字段键名",-1),ne=f("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),ie={class:"options-title"},oe=f("span",null,"字段问号提示",-1),ve=f("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),de={class:"options-title"},re=f("span",null,"选项值",-1),se=f("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[f("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),f("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),f("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),f("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),pe={class:"options-title"},fe=f("span",null,"默认值",-1),me=f("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),ce={style:{display:"flex","align-items":"center"}},ye=f("span",null,"选择",-1),he={style:{width:"100%"}},_e={key:0,class:"validate_tip"};var ge=e({__name:"form",props:{visible:{type:Boolean,default:!1},formOntype:{type:String,default:"add"},formItemData:{type:Object,default:()=>({})},id:{type:String,default:""},orgId:{type:String,default:""},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]}},emits:["cancelModal"],setup(e,{emit:ge}){const be=e,xe=w(),ke="请输入默认值",Me={name:[{required:!0,message:"请输入字段标题",trigger:["input","blur"]}],html_type:[{required:!0,message:"请选择字段类型",trigger:["input","blur"]}]},we=[{value:"yyyy-MM-dd HH:mm:ss",label:"年-月-日 时:分:秒"},{value:"yyyy-MM-dd HH:mm",label:"年-月-日 时:分"},{value:"yyyy-MM-dd",label:"年-月-日"},{value:"yyyy-MM",label:"年-月"},{value:"MM-dd HH:mm",label:"月-日 时:分"},{value:"MM-dd",label:"月-日"},{value:"HH:mm:ss",label:"时:分:秒"},{value:"HH:mm",label:"时:分"}],He=[{value:"12",label:"整行"},{value:"6",label:"半行"},{value:"4",label:"1/3行"},{value:"8",label:"2/3行"},{value:"3",label:"1/4行"},{value:"9",label:"3/4行"},{value:"2",label:"1/6行"},{value:"10",label:"5/6行"},{value:"1.5",label:"1/8行"},{value:"10.5",label:"7/8行"}],Ce=l(!1),Ue=l("860px");let Se=l({maxHeight:"496px",height:"496px"});const{saveOrUpdateExtendField:je}=W(),Oe=a(R),Ie=l(null),ze=l({name:void 0,remark:void 0,is_edit:"1",is_null:"1",is_show:"1",key:"",val_key:void 0,validate:{},html_type:"INPUT",name_i18n:void 0,elem_width:"12",default_val:void 0,label_type:void 0,isMultiSelect:"0",decimal_length:void 0,date_format:""}),Te=l([{text:void 0,value:void 0}]),Ne=l({format:"yyyy-MM-dd HH:mm:ss",dateType:"date",mode:"date",value:null,showTime:!0,open:!1,componentType:"datetime"}),Ye=l({obj_type:"",vali_obj:"",event_obj:"",max_length:"",min_length:"",min_value:"",max_value:""}),$e=l({value_key:"",levelSetting:[],search_key:[],level_num:void 0,render_key:[],name:"",level_key:"",id:"",type:"",primary_key:"",sqlExpression:"",conObj:"",add_btn:"",setting:{cascading:[]}}),Le=l(!1),Ve=l(!1),Be=l(void 0),De=l(!1),Fe=l(!1);l(!1);const Pe=l(!1),qe=l(""),Ae=t((()=>"edit"===be.formOntype)),Ee=t((()=>ze.value.html_type||""));t((()=>"TEXTAREA"===Ee.value?1e3:255));const Je=t((()=>Te.value.filter((e=>e.value&&e.text)))),Ke=t((()=>F(Ee.value))),Re=t((()=>"date"===Ne.value.dateType));function We(e){Pe.value=e}function Xe(e){let l=e;"string"!=typeof e&&(l=JSON.stringify(e)),ze.value.default_val=l}function Ge(e){Ne.value.value=null,ze.value.default_val=void 0,il(e)}function Qe(){Ce.value=!Ce.value;let e=document.body.clientHeight;"860px"===Ue.value?(Ue.value="100%",Se.value.maxHeight=`${e}px`,Se.value.height=`${e}px`):(Ue.value="860px",Se.value.maxHeight="496px",Se.value.height="")}function Ze(e){return["HH:mm:ss","HH:mm"].includes(e)}function el(e,l){switch(e){case"isNull":Le.value=l,ze.value.is_null=l?"0":"1";break;case"isMultiSelect":Ve.value=l,ze.value.isMultiSelect=l?"1":"0"}}function ll(){if("add"===be.formOntype)return;let e=Object.assign({},be.formItemData),l=e.setting;l&&G(l)&&(l=JSON.parse(l),delete e.setting,Object.assign(e,{...l})),e.key=e.code,delete e.code,A(e.html_type)&&function(e){il(e.date_format);let l=e.default_val;l&&!l.startsWith("${")&&(Ze(e.date_format)&&(l=`${K().format("YYYY-MM-dd")} ${l}`),Q(new Date(l))&&(Ne.value.value=K(l)))}(e),F(e.html_type)&&(e.default_val=function(e){let l=e.default_val;return l?l.split(",").filter(Boolean):[]}(e)),Le.value="0"==e.is_null,Ve.value="1"==e.isMultiSelect,Ye.value=Object.assign(Ye.value,e.validate||{}),$e.value=Object.assign($e.value,e.wordbook||{}),ze.value=Object.assign(ze.value,e||{}),P(e.html_type)&&function(e){let l=(null==e?void 0:e.optionValue)||[];l.length||l.push({text:void 0,value:void 0}),Te.value=[...l],delete e.optionValue}(e)}function al(e){ze.value.html_type=e,Te.value=[{text:void 0,value:void 0}];let l=function(){if(F(Ee.value))return[]}();ze.value.default_val=l,A(e)?ze.value.date_format="yyyy-MM-dd HH:mm:ss":ze.value.date_format=""}function tl(){Te.value.push({value:"",text:""})}function ul(e){let l=e;(e<0||0===e)&&(l=0),e>5&&(l=5),Be.value=0===l?l:l||void 0}function nl(e){Te.value=e}function il(e){let l=e||"yyyy-MM-dd HH:mm:ss",a=Ze(l)?"time":"date",t="yyyy-MM"===l?"month":"date";let u=function(e){return["yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","MM-dd HH:mm"].includes(e)}(l),n="";["yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","MM-dd HH:mm"].includes(e)&&(n="datetime"),["yyyy-MM-dd","MM-dd"].includes(e)&&(n="date"),Object.assign(Ne.value,{format:l,dateType:a,mode:t,showTime:u,componentType:n})}function ol(e,l){if(e)return l&&(l.includes("yyyy")&&(l=l.replace("yyyy","YYYY")),l.includes("dd")&&(l=l.replace("dd","DD"))),K(e).format(l)}function vl(){Ne.value.open=!Ne.value.open}function dl(e){let l=ol(e,Ne.value.format);ze.value.default_val=l}function rl(e){let l=ol(e,Ne.value.format);ze.value.default_val=l,Ne.value.format.includes("HH:mm")||vl()}function sl(e){let l=ol(e,Ne.value.format);ze.value.default_val=l}function pl(){ge("cancelModal"),Ue.value="860px",Se.value={height:"496px",maxHeight:"496px"},Ce.value=!1,ze.value={name:void 0,remark:void 0,is_edit:"1",is_null:"1",is_show:"1",key:"",val_key:void 0,validate:{},html_type:"INPUT",name_i18n:void 0,elem_width:"12",default_val:void 0,label_type:void 0,isMultiSelect:"0",decimal_length:void 0,date_format:""}}function fl(){var e;null==(e=Ie.value)||e.validate((async e=>{if(e)return;let l=Object.assign({},ze.value);if(l.validate={...Ye.value},l.extendId=be.id,P(Ee.value)){let e=function(){let e={validate:!1,message:"请完善选项配置"};if(!Te.value||!Te.value.length)return e;let l,a,t,u=0,n=Te.value.length,i=!1;for(;u<n;u++){if(l=Te.value[u],a=l.value?l.value.trim():l.value,t=l.text?l.text.trim():l.text,!a||!t){i=!0;break}l.value=a,l.text=t}return[...new Set(Te.value.map((e=>e.value)))].length!==Te.value.length?(e.message="选项值不能重复",e):(!i&&(e.validate=!0),e)}();if(!e.validate)return De.value=!0,void xe.warning(e.message);De.value=!1,l.option=[...Te.value]}if(q(Ee.value)?l.default_val=function(e){let l=e.default_val;if(void 0===Be.value)return l;if(!l)return l;let a=String(l).split(".")[1];return a&&a.length!==Be.value?Number(l.toFixed(Be.value)):l}(l):F(Ee.value)&&(l.default_val=l.default_val.join(",")),!E(Ee.value)||function(e){let{default_val:l}=e;qe.value="",l&&G(l)&&(l=JSON.parse(l));let a=function(e,l){if(!e)return;if("string"!=typeof e)return;if(!(e=e.trim()))return!0;if(!e.startsWith("${"))return ml(l,"请输入有效系统变量"),"error";let a=/\${sys.(.*?)\}/g.exec(e);if(!a||!a[1])return ml(l,"请输入有效系统变量"),"error";return!0}(l,e);if(a)return"error"!==a;if(console.log("saveOjb.isMultiSelect>>>",e.isMultiSelect),console.log("default_val?.length>>>",null==l?void 0:l.length),"0"===e.isMultiSelect&&(null==l?void 0:l.length)>1)return console.log("进入到判断里面了>>>>>"),ml(e,"选人组件为单选"),!1;return!0}(l)){for(let e in l){let a=l[e];"string"==typeof a&&(l[e]=null==a?void 0:a.trim())}console.log("saveOjb>>>",l),await async function(e={}){Fe.value=!0;try{const l=await je(e,Oe);if(Fe.value=!1,"SUCCESS"!==(null==l?void 0:l.result))return void xe.error((null==l?void 0:l.resultMsg)||"保存失败");pl()}catch(e){Fe.value=!1}}(l)}}))}function ml(e,l){qe.value=l}return u((()=>be.visible),(e=>{e&&ll()})),(l,a)=>(n(),i(o(H),{class:v(["expand-field-modal-block",{"modal-screen":Ce.value}]),show:e.visible,"onUpdate:show":a[22]||(a[22]=e=>d(visible)?visible.value=e:null),maskClosable:!1,width:Ue.value,bodyStyle:o(Se),closable:!1,centered:"",onPositiveClick:fl,onNegativeClick:pl},{default:r((()=>[s(o(C),{style:p({width:Ue.value,...o(Se)}),title:"add"===be.formOntype?"新增拓展字段":"编辑拓展字段",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":r((()=>[f("div",le,[f("i",{onClick:Qe,class:v(["iconfont-expand-field",Ce.value?"icon-expand-field-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-expand-field-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),f("i",{onClick:pl,class:"iconfont-expand-field icon-expand-field-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:r((()=>[f("div",ae,[s(o(U),{onClick:pl},{default:r((()=>[m("取消")])),_:1}),s(o(U),{type:"info",onClick:fl},{default:r((()=>[m("保存")])),_:1})])])),default:r((()=>[s(o(S),{ref_key:"formRef",ref:Ie,model:ze.value,rules:Me},{default:r((()=>[s(o(j),{path:"name",label:"字段标题","require-mark-placement":"left"},{default:r((()=>[s(o(O),{value:ze.value.name,"onUpdate:value":a[0]||(a[0]=e=>ze.value.name=e),maxlength:100,clearable:"",placeholder:"请输入"},null,8,["value"])])),_:1}),s(o(j),{path:"key"},{label:r((()=>[f("div",te,[ue,s(o(I),{duration:0},{trigger:r((()=>[ne])),default:r((()=>[m(" 数据库字段键名,不填写时由系统生成,填写则以填写为准 ")])),_:1})])])),default:r((()=>[s(o(O),{value:ze.value.key,"onUpdate:value":a[1]||(a[1]=e=>ze.value.key=e),maxlength:32,disabled:o(Ae),clearable:"",placeholder:"数据库字段键名,不填写时由系统生成,填写则以填写为准"},null,8,["value","disabled"])])),_:1}),s(o(j),{path:"html_type",label:"字段类型","require-mark-placement":"left"},{default:r((()=>[s(o(z),{value:ze.value.html_type,"onUpdate:value":[a[2]||(a[2]=e=>ze.value.html_type=e),al],placeholder:"请选择字段类型",clearable:"",filterable:"",options:o(X)},null,8,["value","options"])])),_:1}),s(o(j),{path:"remark",label:"字段问号提示"},{label:r((()=>[f("div",ie,[oe,s(o(I),{duration:0},{trigger:r((()=>[ve])),default:r((()=>[m(" 设置后该字段旁会有问号图标,鼠标悬浮展示“问号提示”内容,常用于告诉用户该字段的含义 ")])),_:1})])])),default:r((()=>[s(o(O),{value:ze.value.remark,"onUpdate:value":a[3]||(a[3]=e=>ze.value.remark=e),placeholder:"请输入",type:"textarea",clearable:"",maxlength:255,rows:3},null,8,["value"])])),_:1}),c(" 选项值>>>>>类型对应关系 "),o(P)(o(Ee))?(n(),i(o(j),{key:0},{label:r((()=>[f("div",de,[re,f("span",{class:"batch-span",onClick:tl},"添加选项"),f("span",{class:"batch-span",onClick:a[4]||(a[4]=()=>We(!0))},"批量编辑")])])),default:r((()=>[f("div",{class:v(["options-item",{"options-item-err":De.value}])},[(n(!0),y(h,null,_(Te.value,((e,l)=>(n(),i(o(T),{class:"mgb-10",key:l,cols:24,"x-gap":8,"y-gap":8},{default:r((()=>[s(o(N),{span:11},{default:r((()=>[s(o(O),{value:e.value,"onUpdate:value":l=>e.value=l,maxLength:100,allowClear:"",placeholder:"选项值"},null,8,["value","onUpdate:value"])])),_:2},1024),s(o(N),{span:11},{default:r((()=>[s(o(O),{value:e.text,"onUpdate:value":l=>e.text=l,maxLength:100,allowClear:"",placeholder:"选项文本"},null,8,["value","onUpdate:value"])])),_:2},1024),s(o(N),{span:2,class:"flex-center"},{default:r((()=>[Te.value.length>1?(n(),i(o(Y),{key:0,onClick:a=>function(e,l){Te.value.splice(l,1);let a=ze.value.default_val;if(F(Ee.value)){if(!a||!a.length)return;let l=a.findIndex((l=>l===e.value));l||a.splice(l,1)}else{if(!a)return;a===e.value&&(a=void 0)}ze.value.default_val=a}(e,l)},{default:r((()=>[se])),_:2},1032,["onClick"])):c("v-if",!0)])),_:2},1024)])),_:2},1024)))),128))],2)])),_:1})):c("v-if",!0),o(q)(o(Ee))?(n(),i(o(j),{key:1,path:"decimal_length",label:"小数位"},{default:r((()=>[s(o($),{style:{width:"100%"},min:0,max:5,placeholder:"请输入",precision:0,clearable:"",value:ze.value.decimal_length,"onUpdate:value":[a[5]||(a[5]=e=>ze.value.decimal_length=e),ul]},null,8,["value"])])),_:1})):c("v-if",!0),o(A)(o(Ee))?(n(),i(o(j),{key:2,path:"date_format",label:"日期格式"},{default:r((()=>[s(o(z),{style:{width:"100%"},value:ze.value.date_format,"onUpdate:value":[a[6]||(a[6]=e=>ze.value.date_format=e),Ge],placeholder:"请选择",options:we},null,8,["value"])])),_:1})):c("v-if",!0),c(" 默认值>>>>>类型对应关系 "),s(o(j),{path:"default_val",label:"默认值"},{label:r((()=>[f("div",pe,[fe,o(E)(o(Ee))?(n(),i(o(I),{key:0,duration:0},{trigger:r((()=>[me])),default:r((()=>[m(" 支持输入系统变量当前操作人${sys.userId},也支持选择一个人 ")])),_:1})):c("v-if",!0)])])),default:r((()=>[o(J)(o(Ee))?(n(),i(o(O),{key:0,value:ze.value.default_val,"onUpdate:value":a[7]||(a[7]=e=>ze.value.default_val=e),placeholder:ke,type:"textarea",clearable:"",maxlength:1e3,rows:3},null,8,["value"])):o(q)(o(Ee))?(n(),y(h,{key:1},[c(" 数字框 "),s(o($),{style:{width:"100%"},clearable:"",placeholder:ke,precision:Be.value,value:ze.value.default_val,"onUpdate:value":a[8]||(a[8]=e=>ze.value.default_val=e)},null,8,["precision","value"])],2112)):o(P)(o(Ee))?(n(),y(h,{key:2},[c(" 下拉框、横向单选、纵向单选、横向多选、纵向多选、下拉多选框 "),s(o(z),{style:{width:"100%"},multiple:o(Ke),clearable:"",value:ze.value.default_val,"onUpdate:value":a[9]||(a[9]=e=>ze.value.default_val=e),"label-field":"text",placeholder:ke,options:o(Je)},null,8,["multiple","value","options"])],2112)):o(A)(o(Ee))?(n(),y(h,{key:3},[c(" 日期 "),f("div",ce,[s(o(O),{clearable:"",maxLength:255,value:ze.value.default_val,"onUpdate:value":a[10]||(a[10]=e=>ze.value.default_val=e),placeholder:ke},null,8,["value"]),o(Re)?(n(),y(h,{key:0},["month"===Ne.value.mode?(n(),i(o(L),{key:0,trigger:"click",show:Ne.value.open},{trigger:r((()=>[s(o(U),{type:"info",onClick:vl},{default:r((()=>[m("选择")])),_:1})])),default:r((()=>[s(o(V),{panel:"",value:Ne.value.value,"onUpdate:value":[a[11]||(a[11]=e=>Ne.value.value=e),dl],type:"month","input-readonly":"",clearable:"",onConfirm:vl},null,8,["value"])])),_:1},8,["show"])):(n(),i(o(L),{key:1,trigger:"click",show:Ne.value.open},{trigger:r((()=>[s(o(U),{type:"info",onClick:vl},{default:r((()=>[m("选择")])),_:1})])),default:r((()=>[s(o(V),{panel:"",value:Ne.value.value,"onUpdate:value":[a[12]||(a[12]=e=>Ne.value.value=e),rl],format:Ne.value.format,type:Ne.value.componentType,"input-readonly":"",clearable:"",onConfirm:vl},null,8,["value","format","type"])])),_:1},8,["show"]))],64)):(n(),y(h,{key:1},[c(' <n-input\n allowClear\n :maxLength="255"\n v-model:value="dateInfo.value"\n @keydown.enter.prevent\n :placeholder="defaultPlaceholder"\n /> '),s(o(U),{type:"info",class:"date-time-button"},{default:r((()=>[ye,s(o(B),{value:Ne.value.value,"onUpdate:value":[a[13]||(a[13]=e=>Ne.value.value=e),sl],format:Ne.value.format,"input-readonly":"",clearable:""},null,8,["value","format"])])),_:1}),c(' <n-popover trigger="click">\n <template #trigger>\n <n-button type="info">选择</n-button>\n </template>\n <n-time-picker\n panel\n v-model:value="dateInfo.value"\n :format="dateInfo.format"\n input-readonly\n clearable\n @update:value="timeChange"\n >\n <template v-slot:icon>111</template>\n\n </n-time-picker>\n </n-popover> ')],64))])],2112)):o(E)(o(Ee))?(n(),y(h,{key:4},[c(" 选人组件(增加一个选人组件) "),f("div",he,[g(s(o(O),{allowClear:"",maxLength:255,value:ze.value.default_val,"onUpdate:value":a[14]||(a[14]=e=>ze.value.default_val=e),onKeydown:a[15]||(a[15]=b(x((()=>{}),["prevent"]),["enter"])),placeholder:ke},null,8,["value"]),[[k,!1]]),c(' 点击弹出选人组件弹窗 :mainForm="this" '),s(ee,{orgId:e.orgId,defaultValue:ze.value.default_val,onCheckPerson:Xe},null,8,["orgId","defaultValue"]),qe.value?(n(),y("span",_e,M(qe.value),1)):c("v-if",!0),c(' <n-button type="info">选择</n-button> ')])],2112)):(n(),y(h,{key:5},[c(" 其他 "),s(o(O),{value:ze.value.default_val,"onUpdate:value":a[16]||(a[16]=e=>ze.value.default_val=e),onKeydown:a[17]||(a[17]=b(x((()=>{}),["prevent"]),["enter"])),placeholder:"请输入默认值"},null,8,["value"])],2112))])),_:1}),s(o(j),{path:"elem_width",label:"宽度"},{default:r((()=>[s(o(z),{value:ze.value.elem_width,"onUpdate:value":a[18]||(a[18]=e=>ze.value.elem_width=e),placeholder:"请选择宽度",options:He},null,8,["value"])])),_:1}),s(o(j),{path:"isNull",label:"是否必填","label-placement":"left"},{default:r((()=>[s(o(D),{value:Le.value,"onUpdate:value":[a[19]||(a[19]=e=>Le.value=e),a[20]||(a[20]=e=>el("isNull",e))]},null,8,["value"])])),_:1}),o(E)(o(Ee))?(n(),i(o(j),{key:3,"label-placement":"left",path:"isMultiSelect",label:"是否多选"},{default:r((()=>[s(o(D),{value:Ve.value,"onUpdate:value":a[21]||(a[21]=e=>el("isMultiSelect",e))},null,8,["value"])])),_:1})):c("v-if",!0)])),_:1},8,["model"]),s(Z,{visible:Pe.value,options:Te.value,onHandleSaveBatch:nl,onTriggerBatch:We},null,8,["visible","options"])])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}});export{ge as default};
@@ -1,3 +1,3 @@
1
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../shared/types';
2
2
  import { InjectionKey } from 'vue';
3
3
  export declare const InjectionExpandFieldApiConfig: InjectionKey<AnyObject>;
@@ -1,5 +1,5 @@
1
1
  import { ref, PropType } from 'vue';
2
- import { AnyObject } from '../../../../es/shared/types';
2
+ import { AnyObject } from '../../../shared/types';
3
3
  import { IExpandFieldItemType } from './types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  id: {
@@ -824,7 +824,7 @@ declare const _default: import("vue").DefineComponent<{
824
824
  NModal: any;
825
825
  NCard: any;
826
826
  NButton: any;
827
- CSelectPerson: import("../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{
827
+ CSelectPerson: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
828
828
  defaultList: {
829
829
  type: PropType<((string | number) | {
830
830
  [key: string]: any;
@@ -1,11 +1,11 @@
1
- import { SFCWithInstall } from '../../../es/shared/types';
1
+ import { SFCWithInstall } from '../../shared/types';
2
2
  declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
3
3
  type: {
4
4
  type: import("vue").PropType<import("./src/interface").IType>;
5
5
  default: string;
6
6
  };
7
7
  data: {
8
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
8
+ type: import("vue").PropType<import("../../shared/types").AnyObject>;
9
9
  required: true;
10
10
  };
11
11
  addRenderItem: {
@@ -18,7 +18,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
18
18
  default: string;
19
19
  };
20
20
  data: {
21
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
21
+ type: import("vue").PropType<import("../../shared/types").AnyObject>;
22
22
  required: true;
23
23
  };
24
24
  addRenderItem: {
@@ -65,7 +65,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
65
65
  useCaliperRuler: any;
66
66
  updatePolyline: any;
67
67
  getGridInfo: any;
68
- init: () => import("../../../es/shared/types").AnyObject;
68
+ init: () => import("../../shared/types").AnyObject;
69
69
  PopupTip: import("vue").DefineComponent<{
70
70
  show: {
71
71
  type: BooleanConstructor;
@@ -90,7 +90,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
90
90
  show: boolean;
91
91
  point: import("./src/interface").ICoordinateValue;
92
92
  list: string[];
93
- propItems: import("../../../es/shared/types").AnyObject;
93
+ propItems: import("../../shared/types").AnyObject;
94
94
  };
95
95
  pointStyle: import("vue").ComputedRef<{
96
96
  top: string;
@@ -170,7 +170,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
170
170
  default: string;
171
171
  };
172
172
  data: {
173
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
173
+ type: import("vue").PropType<import("../../shared/types").AnyObject>;
174
174
  required: true;
175
175
  };
176
176
  addRenderItem: {
@@ -1,6 +1,6 @@
1
1
  import { type PropType } from 'vue';
2
2
  import { IType } from './interface';
3
- import { AnyObject } from '../../../../es/shared/types';
3
+ import { AnyObject } from '../../../shared/types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  type: {
6
6
  type: PropType<IType>;
@@ -1,5 +1,5 @@
1
1
  import { ICoordinateValue } from '../interface';
2
- import { AnyObject } from '../../../../../es/shared/types';
2
+ import { AnyObject } from '../../../../shared/types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  show: {
5
5
  type: BooleanConstructor;
@@ -56,4 +56,7 @@ export declare const OVERLAP: {
56
56
  fillCircle: string;
57
57
  };
58
58
  };
59
- export declare const SMALLCELLNUMBER = 5;
59
+ export declare enum ECG {
60
+ SMALLCELLNUMBER = 5,
61
+ MAXLINENUMBER = 13
62
+ }
@@ -1 +1 @@
1
- const e=[{label:"升温",value:!0,type:"rise"},{label:"药物降温",value:void 0,type:"drugReduce"},{label:"物理降温",value:void 0,type:"physicsReduce"},{label:"不升",value:!0,type:"noRise"}],i=[{label:"药物降痛",value:void 0,type:"drugReduce"},{label:"物理降痛",value:void 0,type:"physicsReduce"}],l=[{label:"修改",type:"change"},{label:"删除",type:"remove"}],r="#2563F4",a="#FF1818",s={yemai:{stroke:a,strokeX:r,strokeWidth:1,strokeWidthX:1,radius:6,angle:45},koumai:{stroke:a,strokeWidth:1,radius:6,radiusCircle:3,fillCircle:r},gangmai:{radius:6,radiusCircle:3,stroke:r,fillCircle:a},xinmai:{radius:6,radiusCircle:3,stroke:a,fillCircle:a},humai:{radius:6,fill:"green"},ermai:{stroke:a,strokeWidth:1,radius:6,radiusCircle:3,fillCircle:r}},d=5;export{l as OTHER_MENU,s as OVERLAP,i as PAIN_MENU,d as SMALLCELLNUMBER,e as TEMPERATURE_MENU};
1
+ const e=[{label:"升温",value:!0,type:"rise"},{label:"药物降温",value:void 0,type:"drugReduce"},{label:"物理降温",value:void 0,type:"physicsReduce"},{label:"不升",value:!0,type:"noRise"}],i=[{label:"药物降痛",value:void 0,type:"drugReduce"},{label:"物理降痛",value:void 0,type:"physicsReduce"}],l=[{label:"修改",type:"change"},{label:"删除",type:"remove"}],r="#2563F4",a="#FF1818",s={yemai:{stroke:a,strokeX:r,strokeWidth:1,strokeWidthX:1,radius:6,angle:45},koumai:{stroke:a,strokeWidth:1,radius:6,radiusCircle:3,fillCircle:r},gangmai:{radius:6,radiusCircle:3,stroke:r,fillCircle:a},xinmai:{radius:6,radiusCircle:3,stroke:a,fillCircle:a},humai:{radius:6,fill:"green"},ermai:{stroke:a,strokeWidth:1,radius:6,radiusCircle:3,fillCircle:r}};var d=(e=>(e[e.SMALLCELLNUMBER=5]="SMALLCELLNUMBER",e[e.MAXLINENUMBER=13]="MAXLINENUMBER",e))(d||{});export{d as ECG,l as OTHER_MENU,s as OVERLAP,i as PAIN_MENU,e as TEMPERATURE_MENU};
@@ -1,7 +1,7 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../../es/shared/types';
4
- import { IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../shared/types';
4
+ import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
5
5
  export declare function useBirthProcess(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
6
6
  clickMenu: ({ item, target }: {
7
7
  item: any;
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../../es/shared/types';
4
- import { IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../shared/types';
4
+ import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
5
5
  export declare function useBirthProcessChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
6
6
  propItems: any;
7
7
  redrawPoints: Ref<any>;
@@ -1,5 +1,5 @@
1
- import { AnyObject } from '../../../../../../../es/shared/types';
2
- import { fabric } from '../../../../../../../es/shared/utils/fabricjs';
1
+ import { AnyObject } from '../../../../../../shared/types';
2
+ import { fabric } from '../../../../../../shared/utils/fabricjs';
3
3
  declare type DetailEventOptions = {
4
4
  points: number[];
5
5
  lineStartIndex: number;
@@ -1,5 +1,5 @@
1
- import { AnyObject } from '../../../../../../es/shared/types';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
1
+ import { AnyObject } from '../../../../../shared/types';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
3
  import { type Ref } from 'vue';
4
4
  export declare function useElectrocardiogram(canvas: Ref<fabric.Canvas>, propItems: AnyObject, flag: Ref<boolean>): {
5
5
  updatePolyline: (value: number) => void;
@@ -1 +1 @@
1
- import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useThrottleFn as t}from"@vueuse/core";import{range as r}from"lodash-es";import{useDetailEvent as o}from"./hooks/useDetailEvent.js";import{defaultTextStyle as n,drawLine as i}from"../useDraw.js";import{useGrid as s}from"../useGrid.js";import{useElectrocardiogramCumputedPoint as a}from"../useCumputedPoint.js";import"../useEvent.js";import"vue";import"date-fns";import"../temperature/useShadow.js";import{SMALLCELLNUMBER as l}from"../../constants/index.js";import"naive-ui";function d(d,u,c){const{computedX:m,computedY:h}=a(u),{borderStyle:f,originX:p,originY:g,xCellWidth:v,yCellHeight:x,canvasWidth:b,canvasHeight:j,dataList:w,columnNumber:C,gridYNumber:k,gridXNumber:y}=u,S=new Set,E=new Set;function N(t=0){w.forEach(((r,o)=>{if(o===w.length-1&&arguments.length)return;const{x:i,y:s}=r.origin,a=~~(r.data.length/C),l=r.data.reduce(((e,r,n)=>{const i=o<12&&n>=t&&n<=t+a||12===o?[{x:m(e.length+1),y:h(-+r)}]:[];return e.concat(i)}),[]),d=new e.Polyline(l,{fill:"transparent",stroke:"red",strokeWidth:1,left:i,top:s,hasControls:!1,hasBorders:!1,hoverCursor:"default",lockMovementX:!0,lockMovementY:!0,objectCaching:!0});if(X(d,{...u.config,...u,lineStartIndex:t,points:r.data,scale:4,showScaleText:!0,showNumberText:!0,detailRadius:370,beforeEvent:()=>c.value&&Promise.reject()}),d.startIdx=t,o<w.length-1?S.add(d):E.add(d),arguments.length)return;const f=new e.Text(String(r.title),{...n,left:i+v,top:s});E.add(f)}));const r=arguments.length?[...S]:[...S,...E];d.value.add(...r)}function X(e,t){o(e,t)}s(d,{...u,gridXNumber:y*l,gridYNumber:k*l,xCellWidth:v/l,yCellHeight:x/l,grid:{...u.grid,subXCell:l,subYCell:l}}),function(){const{strokeWidth:t}=f,r=new e.Rect({...f,width:b-t,height:j-t,left:p,top:g,fill:"transparent"});d.value.add(r)}(),function(){const e=b/C,t=[];r(C).forEach((r=>{if(r+1>=C)return;const o=(r+1)*e,n=i([o,0,o,j],{stroke:"#000"});t.push(n)})),d.value.add(...t)}(),N();return{updatePolyline:t((t=>{if(1===C)return;const r=w[w.length-1].data.length,o=~~(r/C),n=t/100*r-o/2,i=n+o>r?r-o:Math.max(0,n);e.util.requestAnimFrame((()=>{if(S.size){const[e]=[...S];if(e.startIdx===i)return;[...S].forEach((e=>d.value.remove(e))),S.clear()}N(i)}))}),150)}}export{d as useElectrocardiogram};
1
+ import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useThrottleFn as t}from"@vueuse/core";import{range as r}from"lodash-es";import{useDetailEvent as o}from"./hooks/useDetailEvent.js";import{defaultTextStyle as i,drawLine as n}from"../useDraw.js";import{useGrid as s}from"../useGrid.js";import{useElectrocardiogramCumputedPoint as a}from"../useCumputedPoint.js";import"../useEvent.js";import"vue";import"date-fns";import"../temperature/useShadow.js";import{ECG as l}from"../../constants/index.js";import"naive-ui";function d(d,u,m){const{computedX:c,computedY:h}=a(u),{borderStyle:f,originX:g,originY:p,xCellWidth:L,yCellHeight:E,canvasWidth:M,canvasHeight:v,dataList:N,columnNumber:C,gridYNumber:x,gridXNumber:b,rowNumber:S}=u,w=new Set,j=new Set;function R(t=0){N.forEach(((r,o)=>{if(o===N.length-1&&arguments.length)return;const{x:n,y:s,rowIdx:a}=r.origin,d=~~(r.data.length/C),f=r.data.reduce(((e,r,i)=>{const n=o<l.MAXLINENUMBER-1&&i>=t&&i<=t+d||o===l.MAXLINENUMBER-1?[{x:c(e.length+1),y:h(-+r)}]:[];return e.concat(n)}),[]),g=new e.Polyline(f,{fill:"transparent",stroke:"red",strokeWidth:1,left:n,top:s,hasControls:!1,hasBorders:!1,hoverCursor:"default",lockMovementX:!0,lockMovementY:!0,objectCaching:!0});if(A(g,{...u.config,...u,lineStartIndex:t,points:r.data,scale:4,showScaleText:!0,showNumberText:!0,detailRadius:370,beforeEvent:()=>m.value&&Promise.reject()}),g.startIdx=t,o<N.length-1?w.add(g):j.add(g),arguments.length)return;const p=new e.Text(String(r.title),{...i,left:n+L,top:s,originX:"left",originY:"top"});j.add(p)}));const r=arguments.length?[...w]:[...w,...j];d.value.add(...r)}function A(e,t){o(e,t)}s(d,{...u,gridXNumber:b*l.SMALLCELLNUMBER,gridYNumber:x*l.SMALLCELLNUMBER,xCellWidth:L/l.SMALLCELLNUMBER,yCellHeight:E/l.SMALLCELLNUMBER,grid:{...u.grid,subXCell:l.SMALLCELLNUMBER,subYCell:l.SMALLCELLNUMBER}}),function(){const{strokeWidth:t}=f,r=new e.Rect({...f,width:M-t,height:v-t,left:g,top:p,fill:"transparent"});d.value.add(r)}(),function(){const e=M/C,t=[];r(C).forEach((r=>{if(r+1>=C)return;const o=(r+1)*e,i=n([o,0,o,v],{stroke:"#000"});t.push(i)})),d.value.add(...t)}(),R();return{updatePolyline:t((t=>{if(1===C)return;const r=N[N.length-1].data.length,o=~~(r/C),i=t/100*r-o/2,n=i+o>r?r-o:Math.max(0,i);e.util.requestAnimFrame((()=>{if(w.size){const[e]=[...w];if(e.startIdx===n)return;[...w].forEach((e=>d.value.remove(e))),w.clear()}R(n)}))}),150)}}export{d as useElectrocardiogram};
@@ -1,7 +1,8 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../../es/shared/types';
4
- import { IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../shared/types';
4
+ import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
5
+ import { ECG } from '../../../../../components/fabric-chart/src/constants';
5
6
  export declare function useElectrocardiogramChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
6
7
  propItems: any;
7
8
  updatePolyline: Ref<any>;
@@ -11,6 +12,6 @@ export declare function useElectrocardiogramChart(canvas: Ref<fabric.Canvas>, pr
11
12
  getGridInfo: () => {
12
13
  cellWidth: number;
13
14
  cellHeight: number;
14
- smallCellNumber: number;
15
+ smallCellNumber: ECG;
15
16
  };
16
17
  };
@@ -1 +1 @@
1
- import{ref as e,computed as a,reactive as t,unref as l,watch as u}from"vue";import{defaultBorderStyle as r}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import"date-fns";import"lodash-es";import"../useEvent.js";import"../temperature/useShadow.js";import{SMALLCELLNUMBER as i}from"../../constants/index.js";import"naive-ui";import"@vueuse/core";import{useElectrocardiogram as n}from"./useElectrocardiogram.js";import{useMeasureInstrument as o}from"./useMeasureInstrument.js";function s(s,d,m,v,c,g){const h=e(),p=e(),f=e(),b=e(),C=a((()=>d.data.width)),N=a((()=>d.data.height)),j=a((()=>(C.value-0)/w.value)),M=a((()=>(N.value-0)/x.value)),w=a((()=>{const{dataList:e,config:a}=d.data,t=e[e.length-1].data.length/a.hz;return Math.ceil(t/a.mainXCellValue)})),x=a((()=>{const{config:e}=d.data;return Math.ceil((13*y.value+2*e.mainYCellValue)/e.mainYCellValue)})),y=a((()=>{const{dataList:e,config:a}=d.data,t=e[e.length-1].data,l=Math.max(...t)-Math.min(...t);return"uv"===a.valueUnit?.001*l:"v"===a.valueUnit?1e3*l:l})),Y=a((()=>{var e;return(null==(e=d.data.grid)?void 0:e.event)||{selectable:!0,evented:!0}})),L=a((()=>{const{mode:e="2-6"}=d.data,[a,t]=e.split("-").map((e=>+e));return{columnNumber:a,rowNumber:t}})),R=a((()=>{const{dataList:e,width:a,config:t}=d.data,{columnNumber:l,rowNumber:u}=L.value,r=a/l,i=y.value/t.mainYCellValue*M.value+M.value,n=M.value;return e.map(((a,t)=>{const l=t===e.length-1?u:t%u;return{...a,origin:{x:(t===e.length-1?0:Math.floor(t/u))*r,y:l*i+n}}}))})),V=t({canvasWidth:d.data.width,canvasHeight:d.data.height,borderStyle:{...r,...d.data.borderStyle||{}},grid:d.data.grid,originX:0,endX:C.value,originY:0,endY:N.value,xCellWidth:j.value,yCellHeight:M.value,gridXNumber:w.value,gridYNumber:x.value,event:Y.value,dataList:R.value,columnNumber:l(L).columnNumber,config:d.data.config});return u((()=>s.value),(e=>{e&&function(){const{useMeasureRuler:e,flag:a,useCaliper:t,useCaliperRuler:l}=o(s,V),{updatePolyline:u}=n(s,V,a);p.value=e,f.value=t,b.value=l,h.value=u}()}),{immediate:!0}),{propItems:V,updatePolyline:h,useMeasureRuler:p,useCaliper:f,useCaliperRuler:b,getGridInfo:function(){return{cellWidth:j.value,cellHeight:M.value,smallCellNumber:i}}}}export{s as useElectrocardiogramChart};
1
+ import{ref as e,computed as a,reactive as t,unref as r,watch as u}from"vue";import{defaultBorderStyle as l}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import"date-fns";import"lodash-es";import"../useEvent.js";import"../temperature/useShadow.js";import{ECG as i}from"../../constants/index.js";import"naive-ui";import"@vueuse/core";import{useElectrocardiogram as n}from"./useElectrocardiogram.js";import{useMeasureInstrument as o}from"./useMeasureInstrument.js";function d(d,s,m,v,c,g){const h=e(),p=e(),f=e(),N=e(),b=a((()=>s.data.width)),M=a((()=>s.data.height)),C=a((()=>(b.value-0)/L.value)),w=a((()=>(M.value-0)/j.value)),L=a((()=>{const{dataList:e,config:a}=s.data,t=e[e.length-1].data.length/a.hz;return Math.ceil(t/a.mainXCellValue)})),j=a((()=>{const{config:e}=s.data;return Math.ceil(26*E.value/e.mainYCellValue)})),E=a((()=>{const{dataList:e,config:a}=s.data,t=e[e.length-1].data,r=Math.max(...t)-Math.min(...t);return"uv"===a.valueUnit?.001*r:"v"===a.valueUnit?1e3*r:r})),x=a((()=>{var e;return(null==(e=s.data.grid)?void 0:e.event)||{selectable:!0,evented:!0}})),R=a((()=>{const{mode:e="2-6"}=s.data,[a,t]=e.split("-").map((e=>+e));return{columnNumber:a,rowNumber:t}})),y=a((()=>{const{dataList:e,width:a,config:t}=s.data,{columnNumber:r,rowNumber:u}=R.value,l=a/r,n=E.value/t.mainYCellValue*w.value+w.value,o=w.value,d=e.length;return e.map(((e,a)=>{const t=i.MAXLINENUMBER===d&&a===d-1?u:a%u;return{...e,origin:{x:(i.MAXLINENUMBER===d&&a===d-1?0:Math.floor(a/u))*l,y:t*n+o,rowIdx:t}}}))})),I=t({canvasWidth:s.data.width,canvasHeight:s.data.height,borderStyle:{...l,...s.data.borderStyle||{}},grid:s.data.grid,originX:0,endX:b.value,originY:0,endY:M.value,xCellWidth:C.value,yCellHeight:w.value,gridXNumber:L.value,gridYNumber:j.value,event:x.value,dataList:y.value,columnNumber:r(R).columnNumber,rowNumber:r(R).rowNumber,config:s.data.config});return u((()=>d.value),(e=>{e&&function(){const{useMeasureRuler:e,flag:a,useCaliper:t,useCaliperRuler:r}=o(d,I),{updatePolyline:u}=n(d,I,a);p.value=e,f.value=t,N.value=r,h.value=u}()}),{immediate:!0}),{propItems:I,updatePolyline:h,useMeasureRuler:p,useCaliper:f,useCaliperRuler:N,getGridInfo:function(){return{cellWidth:C.value,cellHeight:w.value,smallCellNumber:i.SMALLCELLNUMBER}}}}export{d as useElectrocardiogramChart};
@@ -1,6 +1,6 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../../es/shared/types';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../shared/types';
4
4
  export declare function useMeasureInstrument(canvas: Ref<fabric.Canvas>, propItems: AnyObject): {
5
5
  flag: Ref<boolean>;
6
6
  useMeasureRuler: () => void;
@@ -1,7 +1,7 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../../es/shared/types';
4
- import { IObject, IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../shared/types';
4
+ import { IObject, IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
5
5
  export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
6
6
  redrawPoints: (ItemObj?: AnyObject) => void;
7
7
  clickMenu: ({ item, target }: {
@@ -1,5 +1,5 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../../es/shared/types';
4
- import { IPointTipProps } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../shared/types';
4
+ import { IPointTipProps } from '../../../../../components/fabric-chart/src/interface';
5
5
  export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, moveLimit: Function, setPopup: Function, updateData: Function, getGridPoints: Function): void;
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
4
- import { AnyObject } from '../../../../../../es/shared/types';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
4
+ import { AnyObject } from '../../../../../shared/types';
5
5
  export declare function useOther(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps, moveLimit: Function, getContainPoints: Function, showDialog: Function, removeCurrentSelection: Function): {
6
6
  clickMenu: ({ item, target }: {
7
7
  item: AnyObject;
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../../es/shared/types';
4
- import { IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../shared/types';
4
+ import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
5
5
  export declare function useSurgicalAnesthesiaChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
6
6
  propItems: any;
7
7
  redrawPoints: Ref<any>;
@@ -1,5 +1,5 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../../es/shared/types';
4
- import { IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../../shared/types';
4
+ import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
5
5
  export declare function useTop(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): void;
@@ -1,4 +1,4 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IPropItems } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IPropItems } from '../../../../../components/fabric-chart/src/interface';
4
4
  export declare function useBottom(canvas: Ref<fabric.Canvas>, propItems: IPropItems): void;
@@ -1,7 +1,7 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IObject, IPropItems, IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
4
- import { AnyObject } from '../../../../../../es/shared/types';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IObject, IPropItems, IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
4
+ import { AnyObject } from '../../../../../shared/types';
5
5
  export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, computedX: Function, computedY: Function, getXValue: Function, getYValue: Function, addRenderItem: Function | undefined, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
6
6
  clickMenu: ({ item, target }: {
7
7
  item: any;
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IPropItems, IPointTipProps, IObject } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IPropItems, IPointTipProps, IObject } from '../../../../../components/fabric-chart/src/interface';
4
4
  export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, setPopup: Function, pointTipProps: IPointTipProps, computedX: Function, computedY: Function, getXValue: Function, getYValue: Function, isAddPoint: Function, updateData: Function, gridPoints: Set<IObject>): {
5
5
  drawScaleValue: (yScaleValueList: any[]) => void;
6
6
  };
@@ -1,4 +1,4 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IPropItems } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IPropItems } from '../../../../../components/fabric-chart/src/interface';
4
4
  export declare function useOther(canvas: Ref<fabric.Canvas>, propItems: IPropItems, computedX: Function): void;
@@ -1,4 +1,4 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IPropItems } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IPropItems } from '../../../../../components/fabric-chart/src/interface';
4
4
  export declare function useRight(canvas: Ref<fabric.Canvas>, propItems: IPropItems, drawScaleValue: Function): void;
@@ -1,4 +1,4 @@
1
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
1
+ import { fabric } from '../../../../../shared/utils/fabricjs';
2
2
  declare type Point = [number, number];
3
3
  export declare function useShadow(): {
4
4
  createShadowLines: (coordinates: Point[], angle?: number, space?: number) => fabric.Line[];
@@ -1,7 +1,7 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IPointTipProps, IPointMenuProps } from '../../../../../../es/components/fabric-chart/src/interface';
4
- import { AnyObject } from '../../../../../../es/shared/types';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
4
+ import { AnyObject } from '../../../../../shared/types';
5
5
  export declare function useTemperatureChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
6
6
  propItems: any;
7
7
  redrawPoints: Ref<any>;
@@ -1,4 +1,4 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../../../es/shared/utils/fabricjs';
3
- import { IPropItems } from '../../../../../../es/components/fabric-chart/src/interface';
2
+ import { fabric } from '../../../../../shared/utils/fabricjs';
3
+ import { IPropItems } from '../../../../../components/fabric-chart/src/interface';
4
4
  export declare function useTop(canvas: Ref<fabric.Canvas>, propItems: IPropItems): void;
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../es/shared/utils/fabricjs';
2
+ import { fabric } from '../../../../shared/utils/fabricjs';
3
3
  import { IObject } from '../interface';
4
- import { AnyObject } from '../../../../../es/shared/types';
4
+ import { AnyObject } from '../../../../shared/types';
5
5
  export declare function useCommon(canvas: Ref<fabric.Canvas>, emits: Function, propItems: AnyObject): {
6
6
  getEqualXTypes: (points: any[], pointX: number, field: string, range?: any) => string[];
7
7
  handleAddPrevent: (type: 'repeat' | 'exceedMax' | 'exceedMin') => void;
@@ -1,5 +1,5 @@
1
1
  import { IPointType } from '../interface';
2
- import { AnyObject } from '../../../../../es/shared/types';
2
+ import { AnyObject } from '../../../../shared/types';
3
3
  export declare function useCumputedPoint(propItems: AnyObject): {
4
4
  computedX: (value: number | string, setAllCenter?: boolean) => any;
5
5
  computedY: (type: IPointType, scaleValueList: number[], value: number | string) => number;
@@ -1,6 +1,6 @@
1
- import { fabric } from '../../../../../es/shared/utils/fabricjs';
1
+ import { fabric } from '../../../../shared/utils/fabricjs';
2
2
  import { ILineOptions, ITextOptions } from '../interface';
3
- import { AnyObject } from '../../../../../es/shared/types';
3
+ import { AnyObject } from '../../../../shared/types';
4
4
  export declare const defaultStyle: {
5
5
  evented: boolean;
6
6
  selectable: boolean;
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../es/shared/utils/fabricjs';
2
+ import { fabric } from '../../../../shared/utils/fabricjs';
3
3
  import { IPropItems } from '../interface';
4
4
  export declare const bus: import("@vueuse/core").UseEventBusReturn<string, any>;
5
5
  export declare function useCanvasEvent(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any): {
@@ -1,4 +1,4 @@
1
1
  import { Ref } from 'vue';
2
- import { fabric } from '../../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../../es/shared/types';
2
+ import { fabric } from '../../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../../shared/types';
4
4
  export declare function useGrid(canvas: Ref<fabric.Canvas>, propItems: AnyObject): void;
@@ -1,5 +1,5 @@
1
- import { fabric } from '../../../../../es/shared/utils/fabricjs';
2
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { fabric } from '../../../../shared/utils/fabricjs';
2
+ import { AnyObject } from '../../../../shared/types';
3
3
  /**
4
4
  * @description 获取一些刻度坐标信息
5
5
  * @param position {'left'|'center'|'right'} 刻度位置
@@ -1,6 +1,6 @@
1
1
  import { type Ref } from 'vue';
2
- import { fabric } from '../../../../es/shared/utils/fabricjs';
3
- import { AnyObject } from '../../../../es/shared/types';
2
+ import { fabric } from '../../../shared/utils/fabricjs';
3
+ import { AnyObject } from '../../../shared/types';
4
4
  export declare type IType = 'temperature' | 'birthProcess' | 'surgicalAnesthesia' | 'electrocardiogram' | undefined;
5
5
  interface IEvent {
6
6
  selectable: boolean;
@@ -1,5 +1,5 @@
1
1
  import { IPoint, ITreeItem } from '../interface';
2
- import { AnyObject } from '../../../../../es/shared/types';
2
+ import { AnyObject } from '../../../../shared/types';
3
3
  export declare function isEffectiveNode(node: IPoint): string | number | boolean;
4
4
  export declare function deleteProperty(data: AnyObject, list: AnyObject[]): {};
5
5
  export declare function getIndex(time: string, list: AnyObject[]): number;