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

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 (375) hide show
  1. package/es/components/annotation-edit/index.d.ts +19 -1
  2. package/es/components/annotation-edit/src/AnnotationEdit.d.ts +19 -1
  3. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  4. package/es/components/annotation-edit/src/type.d.ts +4 -0
  5. package/es/components/audio-sdk/src/audioSDK.d.ts +21 -7
  6. package/es/components/audio-sdk/src/audioSDK.js +1 -1
  7. package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +14 -0
  8. package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -1
  9. package/es/components/audio-sdk/src/utils/recordingDialog.d.ts +5 -2
  10. package/es/components/audio-sdk/src/utils/recordingDialog.js +1 -1
  11. package/es/components/audio-sdk/style/index.css +1 -1
  12. package/es/components/base-search/index.d.ts +15 -1
  13. package/es/components/base-search/src/index.vue.d.ts +18 -4
  14. package/es/components/base-search/src/index.vue2.js +1 -1
  15. package/es/components/base-search/style/index.css +1 -1
  16. package/es/components/big-table/index.d.ts +22 -22
  17. package/es/components/big-table/src/BigTable.vue.d.ts +2 -2
  18. package/es/components/big-table/src/bigTableProps.d.ts +1 -1
  19. package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +5 -5
  20. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +1 -1
  21. package/es/components/big-table/src/components/separate.vue.d.ts +1 -1
  22. package/es/components/big-table/src/constants/index.d.ts +1 -1
  23. package/es/components/big-table/src/hooks/useAnnotation.d.ts +1 -1
  24. package/es/components/big-table/src/hooks/useFormat.d.ts +1 -1
  25. package/es/components/big-table/src/hooks/useSeparateRow.d.ts +1 -1
  26. package/es/components/big-table/src/utils.d.ts +1 -1
  27. package/es/components/biunique-chat/index.d.ts +14 -14
  28. package/es/components/biunique-chat/src/BiuniqueChat.vue.d.ts +1 -1
  29. package/es/components/biunique-chat/src/api/index.d.ts +1 -1
  30. package/es/components/biunique-chat/src/components/ChatFooter.vue.d.ts +1 -1
  31. package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +1 -1
  32. package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +1 -1
  33. package/es/components/biunique-chat/src/components/SiderList.vue.d.ts +1 -1
  34. package/es/components/biunique-chat/src/utils/chatSock.d.ts +1 -1
  35. package/es/components/body-select/index.d.ts +5 -5
  36. package/es/components/body-select/src/hooks/renderCanvas.d.ts +2 -2
  37. package/es/components/body-select/src/index.vue.d.ts +1 -1
  38. package/es/components/bpmn-workflow/index.d.ts +1 -1
  39. package/es/components/button-print/index.d.ts +21 -21
  40. package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -1
  41. package/es/components/button-print/src/api.d.ts +1 -1
  42. package/es/components/button-print/src/components/EditFormat.vue.d.ts +1 -1
  43. package/es/components/button-print/src/utils/dialog.d.ts +1 -1
  44. package/es/components/button-print/src/utils/print.d.ts +5 -2
  45. package/es/components/button-print/src/utils/print.js +1 -1
  46. package/es/components/callback/index.d.ts +1 -1
  47. package/es/components/callback/src/components/dialog/drawer.vue.d.ts +1 -1
  48. package/es/components/callback/src/components/dialog/modal.vue.d.ts +1 -1
  49. package/es/components/callback/src/components/render/popupMaps.d.ts +74 -166
  50. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +1 -1
  51. package/es/components/card-reader-sdk/src/components/readCardDialog.vue.d.ts +1 -1
  52. package/es/components/card-reader-sdk/src/constants/index.d.ts +1 -1
  53. package/es/components/card-reader-sdk/src/insuranceSDK.d.ts +1 -1
  54. package/es/components/card-reader-sdk/src/types/index.d.ts +2 -2
  55. package/es/components/card-reader-sdk/src/utils/readHealthCard.d.ts +1 -1
  56. package/es/components/classification/index.d.ts +59 -43
  57. package/es/components/classification/src/components/search-filter/index.vue.d.ts +14 -0
  58. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  59. package/es/components/classification/src/components/set-classification/index.vue.d.ts +33 -35
  60. package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
  61. package/es/components/classification/src/components/table-modal/index.vue.d.ts +7 -21
  62. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
  63. package/es/components/classification/src/index.vue.d.ts +75 -58
  64. package/es/components/classification/src/index.vue2.js +1 -1
  65. package/es/components/classification/style/index.css +1 -1
  66. package/es/components/config-provider/index.d.ts +1 -1
  67. package/es/components/date-picker/index.d.ts +2 -2
  68. package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
  69. package/es/components/editor/index.d.ts +1 -1
  70. package/es/components/expand-field/index.d.ts +29 -29
  71. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +2 -2
  72. package/es/components/expand-field/src/components/form.vue.d.ts +2 -2
  73. package/es/components/expand-field/src/constants/index.d.ts +1 -1
  74. package/es/components/expand-field/src/index.vue.d.ts +2 -2
  75. package/es/components/fabric-chart/index.d.ts +10 -8
  76. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -3
  77. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  78. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +1 -1
  79. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +3 -3
  80. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  81. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +3 -3
  82. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  83. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +2 -2
  84. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +2 -2
  85. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  86. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +4 -4
  87. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  88. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.d.ts +2 -2
  89. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
  90. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +3 -3
  91. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  92. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.d.ts +3 -3
  93. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +3 -3
  94. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  95. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +3 -3
  96. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  97. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +3 -3
  98. package/es/components/fabric-chart/src/hooks/temperature/useBottom.d.ts +2 -2
  99. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +3 -3
  100. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  101. package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +2 -2
  102. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +2 -2
  103. package/es/components/fabric-chart/src/hooks/temperature/useRight.d.ts +2 -2
  104. package/es/components/fabric-chart/src/hooks/temperature/useShadow.d.ts +1 -1
  105. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +3 -3
  106. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  107. package/es/components/fabric-chart/src/hooks/temperature/useTop.d.ts +2 -2
  108. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  109. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +2 -2
  110. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +1 -1
  111. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +2 -2
  112. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
  113. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +2 -2
  114. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +2 -2
  115. package/es/components/fabric-chart/src/interface.d.ts +2 -2
  116. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  117. package/es/components/field-set/index.d.ts +15 -15
  118. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
  119. package/es/components/field-set/src/components/Row.vue.d.ts +2 -2
  120. package/es/components/field-set/src/types/index.d.ts +1 -1
  121. package/es/components/field-set/src/utils/index.d.ts +3 -3
  122. package/es/components/form-config/index.d.ts +322 -475
  123. package/es/components/form-config/src/FormConfig.vue.d.ts +448 -601
  124. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +40 -132
  125. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +1 -1
  126. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +214 -291
  127. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +2 -2
  128. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +1 -1
  129. package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +1 -1
  130. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +2 -2
  131. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +2 -2
  132. package/es/components/form-config/src/constants/index.d.ts +2 -2
  133. package/es/components/form-config/src/hooks/useConfigurationField.d.ts +3 -3
  134. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
  135. package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +1 -1
  136. package/es/components/form-config/src/types/index.d.ts +2 -2
  137. package/es/components/form-config/src/utils/index.d.ts +3 -3
  138. package/es/components/form-render/index.d.ts +69 -161
  139. package/es/components/form-render/src/FormRender.vue.d.ts +39 -131
  140. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  141. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +92 -184
  142. package/es/components/form-render/src/components/renderer/combination/combination.d.ts +1 -1
  143. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +1 -1
  144. package/es/components/form-render/src/components/renderer/combination/hooks/useDeepValidate.d.ts +1 -1
  145. package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +1 -1
  146. package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +2 -2
  147. package/es/components/form-render/src/components/renderer/formItem.d.ts +1 -1
  148. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  149. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +1 -1
  150. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +1 -1
  151. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  152. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -1
  153. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  154. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +2 -2
  155. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +2 -2
  156. package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
  157. package/es/components/form-render/src/components/renderer/simpleComponent.d.ts +1 -1
  158. package/es/components/form-render/src/constants/index.d.ts +6 -5
  159. package/es/components/form-render/src/constants/index.js +1 -1
  160. package/es/components/form-render/src/hooks/useAnchor.d.ts +2 -2
  161. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
  162. package/es/components/form-render/src/hooks/useCommonInjection.d.ts +1 -1
  163. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +3 -3
  164. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  165. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  166. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +27 -19
  167. package/es/components/form-render/src/hooks/useFormContext.d.ts +6 -6
  168. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  169. package/es/components/form-render/src/hooks/useFormEvent.d.ts +4 -25
  170. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  171. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +3 -3
  172. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
  173. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +8 -8
  174. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -4
  175. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  176. package/es/components/form-render/src/hooks/useFormValidator.d.ts +1 -1
  177. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  178. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +1 -1
  179. package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +2 -2
  180. package/es/components/form-render/src/types/fieldItem.d.ts +3 -3
  181. package/es/components/form-render/src/types/index.d.ts +18 -16
  182. package/es/components/form-render/src/utils/business.d.ts +2 -2
  183. package/es/components/form-render/src/utils/dom.d.ts +1 -1
  184. package/es/components/form-render/src/utils/index.d.ts +1 -1
  185. package/es/components/form-render/src/utils/schema.d.ts +3 -3
  186. package/es/components/form-render/src/utils/schema.js +1 -1
  187. package/es/components/grid/index.d.ts +1 -1
  188. package/es/components/guide/src/renderer.d.ts +1 -1
  189. package/es/components/guide/src/types/index.d.ts +1 -1
  190. package/es/components/guide/src/useGuide.d.ts +1 -1
  191. package/es/components/guide/src/utils/index.d.ts +1 -1
  192. package/es/components/iho-table/index.d.ts +39 -39
  193. package/es/components/iho-table/src/IhoTable.vue.d.ts +27 -27
  194. package/es/components/iho-table/src/constants/index.d.ts +5 -5
  195. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +9 -9
  196. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +21 -21
  197. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +10 -10
  198. package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.d.ts +4 -4
  199. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +65 -65
  200. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +4 -4
  201. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +7 -7
  202. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +3 -3
  203. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.d.ts +1 -1
  204. package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +2 -2
  205. package/es/components/iho-table/src/plugins/anchorPlugin/index.d.ts +1 -1
  206. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +1 -1
  207. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.d.ts +1 -1
  208. package/es/components/iho-table/src/plugins/colorAndIconPlugin.d.ts +1 -1
  209. package/es/components/iho-table/src/plugins/copyPastePlugin.d.ts +1 -1
  210. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.d.ts +1 -1
  211. package/es/components/iho-table/src/plugins/defaultValuePlugin.d.ts +1 -1
  212. package/es/components/iho-table/src/plugins/defaultValuePlugin.js +1 -1
  213. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +2 -2
  214. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.d.ts +1 -1
  215. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -1
  216. package/es/components/iho-table/src/plugins/filterVisibleEventPlugin.d.ts +1 -1
  217. package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.d.ts +1 -1
  218. package/es/components/iho-table/src/plugins/headerPlugin.d.ts +1 -1
  219. package/es/components/iho-table/src/plugins/headerPlugin.js +1 -1
  220. package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -1
  221. package/es/components/iho-table/src/plugins/index.d.ts +1 -1
  222. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +1 -1
  223. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.d.ts +1 -1
  224. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -1
  225. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -1
  226. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -2
  227. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +1 -1
  228. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +1 -1
  229. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +1 -1
  230. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +1 -1
  231. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.d.ts +1 -1
  232. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +7 -7
  233. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.d.ts +1 -1
  234. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  235. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/radioRendererPlugin.d.ts +1 -1
  236. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +8 -2
  237. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  238. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +1 -1
  239. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  240. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -2
  241. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
  242. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.d.ts +1 -1
  243. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +2 -2
  244. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +2 -2
  245. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.d.ts +1 -1
  246. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.d.ts +1 -1
  247. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.d.ts +1 -1
  248. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.d.ts +1 -1
  249. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.d.ts +1 -1
  250. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.d.ts +1 -1
  251. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +1 -1
  252. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.d.ts +1 -1
  253. package/es/components/iho-table/src/plugins/rowClickPlugin/index.d.ts +1 -1
  254. package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +1 -1
  255. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +1 -1
  256. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +2 -2
  257. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -1
  258. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.d.ts +1 -1
  259. package/es/components/iho-table/src/plugins/wordbookSettingPlugin.d.ts +1 -1
  260. package/es/components/iho-table/src/types/index.d.ts +3 -3
  261. package/es/components/iho-table/src/types/pluginType.d.ts +2 -2
  262. package/es/components/iho-table/src/utils/index.d.ts +3 -3
  263. package/es/components/iho-table/src/utils/separateMap.d.ts +2 -2
  264. package/es/components/index.css +1 -1
  265. package/es/components/index.d.ts +3 -3
  266. package/es/components/info-header/index.d.ts +213 -377
  267. package/es/components/info-header/src/InfoHeader.vue.d.ts +242 -406
  268. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +11 -7
  269. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +13 -9
  270. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +119 -207
  271. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +41 -133
  272. package/es/components/info-header/src/constants/index.d.ts +1 -1
  273. package/es/components/info-header/src/types/index.d.ts +1 -1
  274. package/es/components/keyboard/index.d.ts +1 -1
  275. package/es/components/map/index.d.ts +1 -1
  276. package/es/components/map/src/Map.vue.d.ts +1 -1
  277. package/es/components/picture-clipper/index.d.ts +1 -1
  278. package/es/components/picture-clipper/src/PictureClipper.vue.d.ts +1 -1
  279. package/es/components/quick-search/index.d.ts +1 -1
  280. package/es/components/quick-search/src/index.vue.d.ts +4 -4
  281. package/es/components/recommend-search/index.d.ts +33 -33
  282. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +15 -15
  283. package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
  284. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +6 -6
  285. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +5 -5
  286. package/es/components/scale-view/index.d.ts +1 -1
  287. package/es/components/scale-view/src/hooks/use-component.d.ts +33 -33
  288. package/es/components/scale-view/src/types/index.d.ts +1 -1
  289. package/es/components/search-cascader/index.d.ts +34 -34
  290. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +1 -1
  291. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  292. package/es/components/search-cascader/src/constants/index.d.ts +1 -1
  293. package/es/components/search-cascader/src/utils/index.d.ts +1 -1
  294. package/es/components/select-label/index.d.ts +1 -1
  295. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
  296. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  297. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +3 -3
  298. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +3 -3
  299. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.d.ts +1 -1
  300. package/es/components/select-label/src/index.vue.d.ts +19 -19
  301. package/es/components/select-person/index.d.ts +22 -22
  302. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  303. package/es/components/shortcut-provider/index.d.ts +1 -1
  304. package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -2
  305. package/es/components/shortcut-provider/src/constants/index.d.ts +1 -1
  306. package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +1 -1
  307. package/es/components/shortcut-provider/src/types/index.d.ts +1 -1
  308. package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
  309. package/es/components/shortcut-setter/index.d.ts +85 -176
  310. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +118 -209
  311. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +2 -2
  312. package/es/components/shortcut-setter/src/types/index.d.ts +1 -1
  313. package/es/components/slider-tree/index.d.ts +1 -1
  314. package/es/components/steps-wheel/index.d.ts +1 -1
  315. package/es/components/table-export-field/index.d.ts +3 -3
  316. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +1 -1
  317. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +1 -1
  318. package/es/components/table-export-field/src/constants/index.d.ts +1 -1
  319. package/es/components/table-export-field/src/index.vue.d.ts +1 -1
  320. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +1 -1
  321. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +2 -2
  322. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +14 -0
  323. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +14 -0
  324. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +14 -0
  325. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +1 -1
  326. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -1
  327. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +16 -2
  328. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  329. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +2 -2
  330. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +2 -2
  331. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
  332. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +2 -2
  333. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +2 -2
  334. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +1 -1
  335. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +2 -2
  336. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +1 -1
  337. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +19 -0
  338. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  339. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +15 -1
  340. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  341. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +19 -0
  342. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +1 -1
  343. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +28 -9
  344. package/es/components/table-filter/src/constants/index.d.ts +1 -1
  345. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -2
  346. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -1
  347. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +1 -1
  348. package/es/components/table-filter/src/tool/transformData.d.ts +1 -1
  349. package/es/components/table-filter/src/types/index.d.ts +4 -1
  350. package/es/components/time-line/index.d.ts +1 -1
  351. package/es/components/time-picker/index.d.ts +2 -2
  352. package/es/components/time-picker/src/TimePicker.vue.d.ts +1 -1
  353. package/es/components/vod-chunk-upload/index.d.ts +1 -1
  354. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +5 -3
  355. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  356. package/es/shared/components/SelectPage/SelectPage.vue.d.ts +1 -1
  357. package/es/shared/components/SlotRender/SlotRender.d.ts +1 -1
  358. package/es/shared/hooks/selectHooks/useOptionFiltered.d.ts +1 -1
  359. package/es/shared/hooks/selectHooks/useSearchContent.d.ts +1 -1
  360. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
  361. package/es/shared/hooks/selectHooks/useSelectAllowModify.d.ts +1 -1
  362. package/es/shared/hooks/selectHooks/useSelectRenders.d.ts +2 -2
  363. package/es/shared/hooks/selectHooks/useSelectRenders.js +1 -1
  364. package/es/shared/hooks/useAsyncQueue/types.d.ts +1 -1
  365. package/es/shared/hooks/useDateTime.d.ts +1 -1
  366. package/es/shared/hooks/useFormRequest/index.d.ts +2 -2
  367. package/es/shared/hooks/useFormRequest/types.d.ts +2 -2
  368. package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -2
  369. package/es/shared/hooks/useTheme.d.ts +1 -1
  370. package/es/shared/package.json.js +1 -1
  371. package/es/shared/types/business.d.ts +1 -1
  372. package/es/shared/utils/business.d.ts +1 -1
  373. package/es/shared/utils/business.js +1 -1
  374. package/es/shared/utils/index.d.ts +1 -1
  375. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../../shared/types';
2
2
  import { CSSProperties, PropType } from 'vue';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  col: {
@@ -60,19 +60,19 @@ declare const _default: import("vue").DefineComponent<{
60
60
  style: CSSProperties;
61
61
  SlotRender: import("vue").DefineComponent<{
62
62
  renderer: {
63
- type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../../../../es/shared/types").AnyFn<any[], any>>;
63
+ type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../../../shared/types").AnyFn<any[], any>>;
64
64
  required: true;
65
65
  };
66
66
  rootSlots: {
67
- type: PropType<Record<string, import("../../../../../../es/shared/types").AnyFn<any[], any>>>;
67
+ type: PropType<Record<string, import("../../../../../shared/types").AnyFn<any[], any>>>;
68
68
  };
69
69
  }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
70
70
  renderer: {
71
- type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../../../../es/shared/types").AnyFn<any[], any>>;
71
+ type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../../../shared/types").AnyFn<any[], any>>;
72
72
  required: true;
73
73
  };
74
74
  rootSlots: {
75
- type: PropType<Record<string, import("../../../../../../es/shared/types").AnyFn<any[], any>>>;
75
+ type: PropType<Record<string, import("../../../../../shared/types").AnyFn<any[], any>>>;
76
76
  };
77
77
  }>>, {}>;
78
78
  NPopover: any;
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../../shared/types';
2
2
  export declare const useCommon: (props: AnyObject, attrs: AnyObject, isTriggerClick?: boolean) => {
3
3
  formRef: any;
4
4
  isShow: import("vue").Ref<boolean>;
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../shared/types';
2
2
  import { PropType } from 'vue';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  col: {
@@ -1,3 +1,3 @@
1
1
  import { InjectionKey } from 'vue';
2
- import { SeparateHandle } from '../../../../../es/components/big-table/src/hooks/useSeparateRow';
2
+ import { SeparateHandle } from '../../../../components/big-table/src/hooks/useSeparateRow';
3
3
  export declare const InjectionSeparateHandle: InjectionKey<SeparateHandle>;
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../shared/types';
2
2
  export declare function useAnnotation(props: AnyObject): {
3
3
  renderAnnotation: (columnConfig: AnyObject) => JSX.Element | null;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../shared/types';
2
2
  export declare const useFormat: (state: any, attr: AnyObject) => {
3
3
  formatData: (data?: {
4
4
  tableList: any[];
@@ -1,4 +1,4 @@
1
- import { AnyObject, AnyFn } from '../../../../../es/shared/types';
1
+ import { AnyObject, AnyFn } from '../../../../shared/types';
2
2
  import { Ref } from 'vue';
3
3
  import { VxeTableEvents, VxeTableInstance } from 'vxe-table';
4
4
  import { VxeTablePropTypes } from 'vxe-table/types/table';
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../es/shared/types';
1
+ import { AnyObject } from '../../../shared/types';
2
2
  /** 评价组件 */
3
3
  export declare const getEvaluate: (row: any, item: any) => any;
4
4
  export declare const getMapVal: (row: any, item: any) => any;
@@ -1,4 +1,4 @@
1
- import { SFCWithInstall } from '../../../es/shared/types';
1
+ import { SFCWithInstall } from '../../shared/types';
2
2
  declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
3
3
  data: {
4
4
  type: import("vue").PropType<{
@@ -36,7 +36,7 @@ declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
36
36
  collapsed: import("vue").Ref<boolean>;
37
37
  loading: import("vue").Ref<boolean>;
38
38
  stompClient: import("./src/utils/chatSock").ChatSock | null;
39
- state: import("../../../es/shared/types").AnyObject;
39
+ state: import("../../shared/types").AnyObject;
40
40
  init: () => Promise<void>;
41
41
  initWebSocket: () => void;
42
42
  subscribeSession: () => void;
@@ -44,11 +44,11 @@ declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
44
44
  subscribeMessageRecord: () => void;
45
45
  handleAccess: () => Promise<void>;
46
46
  readMessage: () => Promise<void>;
47
- setCurrentSessionItem: (item: import("../../../es/shared/types").AnyObject) => void;
48
- setMsgList: (list?: import("../../../es/shared/types").AnyObject[]) => void;
49
- setCurrentMsg: (msgObj: import("../../../es/shared/types").AnyObject) => void;
47
+ setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
48
+ setMsgList: (list?: import("../../shared/types").AnyObject[]) => void;
49
+ setCurrentMsg: (msgObj: import("../../shared/types").AnyObject) => void;
50
50
  setIsAppendMsg: (isAppendMsg: boolean) => void;
51
- setSessionList: (sessionList: import("../../../es/shared/types").AnyObject[]) => void;
51
+ setSessionList: (sessionList: import("../../shared/types").AnyObject[]) => void;
52
52
  setIsChangeSession: (isChangeSession: boolean) => void;
53
53
  setIsUpdateSession: (isUpdateSession: boolean) => void;
54
54
  onUpdateCollapsed: (_collapsed: boolean) => Promise<void>;
@@ -936,21 +936,21 @@ declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
936
936
  default: boolean;
937
937
  };
938
938
  }>> & {}>>;
939
- state: import("../../../es/shared/types").AnyObject;
939
+ state: import("../../shared/types").AnyObject;
940
940
  setCurrentSessionItem: Function;
941
941
  setSessionList: Function;
942
942
  setIsChangeSession: Function;
943
943
  setIsUpdateSession: Function;
944
944
  listBoxRef: import("vue").Ref<HTMLElement | undefined>;
945
945
  keyword: import("vue").Ref<string>;
946
- sessionList: import("vue").Ref<import("../../../es/shared/types").AnyObject[]>;
946
+ sessionList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
947
947
  loading: import("vue").Ref<boolean>;
948
948
  pageNum: number;
949
949
  init: () => void;
950
950
  handleSearch: () => void;
951
951
  getMySessionList: () => Promise<void>;
952
- entrySession: (item: import("../../../es/shared/types").AnyObject) => void;
953
- sessionChange: (sessionItem: import("../../../es/shared/types").AnyObject) => void;
952
+ entrySession: (item: import("../../shared/types").AnyObject) => void;
953
+ sessionChange: (sessionItem: import("../../shared/types").AnyObject) => void;
954
954
  NSpin: any;
955
955
  NBadge: any;
956
956
  NAvatar: any;
@@ -964,24 +964,24 @@ declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
964
964
  collapsed: boolean;
965
965
  }>;
966
966
  ChatHeader: import("vue").DefineComponent<{}, {
967
- state: import("../../../es/shared/types").AnyObject;
967
+ state: import("../../shared/types").AnyObject;
968
968
  username: import("vue").ComputedRef<any>;
969
969
  NAvatar: any;
970
970
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
971
971
  ChatMain: import("vue").DefineComponent<{}, {
972
- state: import("../../../es/shared/types").AnyObject;
972
+ state: import("../../shared/types").AnyObject;
973
973
  setMsgList: Function;
974
974
  setIsAppendMsg: Function;
975
975
  chatMainRef: import("vue").Ref<HTMLElement | undefined>;
976
976
  getHistoryRecord: () => Promise<void>;
977
977
  accessSession: (lastSessionId: string) => Promise<void>;
978
- isNeedShowTime: (item: import("../../../es/shared/types").AnyObject, index: number) => boolean;
978
+ isNeedShowTime: (item: import("../../shared/types").AnyObject, index: number) => boolean;
979
979
  setScrollToButtom: () => Promise<void>;
980
980
  NAvatar: any;
981
981
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
982
982
  ChatFooter: import("vue").DefineComponent<{}, {
983
983
  inputRef: import("vue").Ref<HTMLDivElement | undefined>;
984
- state: import("../../../es/shared/types").AnyObject;
984
+ state: import("../../shared/types").AnyObject;
985
985
  setCurrentMsg: Function;
986
986
  setIsAppendMsg: Function;
987
987
  setCurrentSessionItem: Function;
@@ -1,6 +1,6 @@
1
1
  import { type PropType } from 'vue';
2
2
  import { ChatSock } from './utils/chatSock';
3
- import { AnyObject } from '../../../../es/shared/types';
3
+ import { AnyObject } from '../../../shared/types';
4
4
  declare type IData = {
5
5
  chatType: number | string;
6
6
  orgId: string;
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../shared/types';
2
2
  export declare function accessApi(params: AnyObject): import("axios").AxiosPromise<any>;
3
3
  export declare function getMySessionListApi(params: AnyObject): import("axios").AxiosPromise<any>;
4
4
  export declare function accessSessionApi(params: AnyObject): import("axios").AxiosPromise<any>;
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../shared/types';
2
2
  declare const _default: import("vue").DefineComponent<{}, {
3
3
  inputRef: import("vue").Ref<HTMLDivElement | undefined>;
4
4
  state: AnyObject;
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../shared/types';
2
2
  declare const _default: import("vue").DefineComponent<{}, {
3
3
  state: AnyObject;
4
4
  username: import("vue").ComputedRef<any>;
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../shared/types';
2
2
  declare const _default: import("vue").DefineComponent<{}, {
3
3
  state: AnyObject;
4
4
  setMsgList: Function;
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../shared/types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  collapsed: {
4
4
  type: BooleanConstructor;
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../shared/types';
2
2
  export declare class ChatSock {
3
3
  private stompClient;
4
4
  private reconnectTimer;
@@ -1,7 +1,7 @@
1
- import { SFCWithInstall } from '../../../es/shared/types';
1
+ import { SFCWithInstall } from '../../shared/types';
2
2
  declare const BodySelect: SFCWithInstall<import("vue").DefineComponent<{
3
3
  setting: {
4
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
4
+ type: import("vue").PropType<import("../../shared/types").AnyObject>;
5
5
  default: () => {};
6
6
  };
7
7
  fillColor: {
@@ -15,7 +15,7 @@ declare const BodySelect: SFCWithInstall<import("vue").DefineComponent<{
15
15
  }, {
16
16
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
17
17
  setting: {
18
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
18
+ type: import("vue").PropType<import("../../shared/types").AnyObject>;
19
19
  default: () => {};
20
20
  };
21
21
  fillColor: {
@@ -41,7 +41,7 @@ declare const BodySelect: SFCWithInstall<import("vue").DefineComponent<{
41
41
  renderBodyModules: (settingObj: any, cb?: any) => void;
42
42
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
43
  setting: {
44
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
44
+ type: import("vue").PropType<import("../../shared/types").AnyObject>;
45
45
  default: () => {};
46
46
  };
47
47
  fillColor: {
@@ -55,7 +55,7 @@ declare const BodySelect: SFCWithInstall<import("vue").DefineComponent<{
55
55
  }>> & {
56
56
  onSelect?: ((...args: any[]) => any) | undefined;
57
57
  }, {
58
- setting: import("../../../es/shared/types").AnyObject;
58
+ setting: import("../../shared/types").AnyObject;
59
59
  fillColor: string;
60
60
  canvasWidth: number;
61
61
  }>>;
@@ -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
  export default function renderCanvas(canvas: fabric.Canvas, renderSetting: AnyObject, scale: number, { props, emits }: any): {
4
4
  canvas: fabric.Canvas;
5
5
  data: any;
@@ -1,5 +1,5 @@
1
1
  import { type PropType } from 'vue';
2
- import { AnyObject } from '../../../../es/shared/types';
2
+ import { AnyObject } from '../../../shared/types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  setting: {
5
5
  type: PropType<AnyObject>;
@@ -1,4 +1,4 @@
1
- import { SFCWithInstall } from '../../../es/shared/types';
1
+ import { SFCWithInstall } from '../../shared/types';
2
2
  declare const BpmnWorkflow: SFCWithInstall<import("vue").DefineComponent<{
3
3
  flowType: {
4
4
  type: StringConstructor;
@@ -1,13 +1,13 @@
1
1
  /// <reference types="node" />
2
- import { SFCWithInstall } from '../../../es/shared/types';
2
+ import { SFCWithInstall } from '../../shared/types';
3
3
  export * from './src/utils';
4
4
  declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
5
5
  printParams: {
6
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
6
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
7
7
  };
8
8
  params: {
9
9
  default: () => never[];
10
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
10
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
11
11
  };
12
12
  btnText: {
13
13
  default: string;
@@ -70,8 +70,8 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
70
70
  };
71
71
  externalOptionConfig: {
72
72
  type: import("vue").PropType<Partial<{
73
- options: import("../../../es/shared/types").AnyObject[];
74
- onSelect: (key: string | number, option: import("../../../es/shared/types").AnyObject) => void;
73
+ options: import("../../shared/types").AnyObject[];
74
+ onSelect: (key: string | number, option: import("../../shared/types").AnyObject) => void;
75
75
  }>>;
76
76
  default: () => {};
77
77
  };
@@ -87,11 +87,11 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
87
87
  printInstance: import("./src/utils").Print | null;
88
88
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
89
89
  printParams: {
90
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
90
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
91
91
  };
92
92
  params: {
93
93
  default: () => never[];
94
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
94
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
95
95
  };
96
96
  btnText: {
97
97
  default: string;
@@ -154,8 +154,8 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
154
154
  };
155
155
  externalOptionConfig: {
156
156
  type: import("vue").PropType<Partial<{
157
- options: import("../../../es/shared/types").AnyObject[];
158
- onSelect: (key: string | number, option: import("../../../es/shared/types").AnyObject) => void;
157
+ options: import("../../shared/types").AnyObject[];
158
+ onSelect: (key: string | number, option: import("../../shared/types").AnyObject) => void;
159
159
  }>>;
160
160
  default: () => {};
161
161
  };
@@ -172,7 +172,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
172
172
  onClickoutside?: ((...args: any[]) => any) | undefined;
173
173
  }>>;
174
174
  emit: (event: "success" | "error" | "clickoutside", ...args: any[]) => void;
175
- defaultFormatInfo: import("../../../es/shared/types").AnyObject;
175
+ defaultFormatInfo: import("../../shared/types").AnyObject;
176
176
  state: {
177
177
  spinning: boolean;
178
178
  visible: boolean;
@@ -187,12 +187,12 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
187
187
  watchPrintParamsReformatFn: null;
188
188
  spinTimer: null;
189
189
  };
190
- options: import("../../../es/shared/types").AnyObject[];
190
+ options: import("../../shared/types").AnyObject[];
191
191
  currentFormatItem: import("vue").ComputedRef<{} | undefined>;
192
192
  formatTitle: import("vue").ComputedRef<any>;
193
193
  getTemplateIdByFormatId: import("vue").ComputedRef<any>;
194
194
  buttonClick: (origin: string) => Promise<false | undefined>;
195
- renderLabel: (option: import("../../../es/shared/types").AnyObject) => JSX.Element;
195
+ renderLabel: (option: import("../../shared/types").AnyObject) => JSX.Element;
196
196
  callLocalServicesSuccessCb: (res: any, type: any) => void;
197
197
  callLocalServicesErrorCb: (res: unknown) => void;
198
198
  prevFnError: (type: string) => void;
@@ -202,7 +202,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
202
202
  handleClickPreview: () => Promise<void>;
203
203
  handleClickPdf: () => Promise<void>;
204
204
  handleClickEdit: () => void;
205
- handleSelect: (key: string, option: import("../../../es/shared/types").AnyObject) => Promise<void>;
205
+ handleSelect: (key: string, option: import("../../shared/types").AnyObject) => Promise<void>;
206
206
  handleClickOutside: () => void;
207
207
  instantiatePrintSDK: () => false | undefined;
208
208
  getDefaultFormatId: (list: any[], key: string | number) => Promise<any>;
@@ -644,7 +644,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
644
644
  file: import("naive-ui").UploadFileInfo;
645
645
  fileList: import("naive-ui").UploadFileInfo[];
646
646
  }) => Promise<unknown>;
647
- submit: (datas: import("../../../es/shared/types").AnyObject) => Promise<unknown>;
647
+ submit: (datas: import("../../shared/types").AnyObject) => Promise<unknown>;
648
648
  validateFormat: () => boolean;
649
649
  NForm: any;
650
650
  NFormItem: import("vue").DefineComponent<{
@@ -1856,11 +1856,11 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1856
1856
  }>;
1857
1857
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "error" | "clickoutside")[], "error" | "success" | "clickoutside", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1858
1858
  printParams: {
1859
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
1859
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1860
1860
  };
1861
1861
  params: {
1862
1862
  default: () => never[];
1863
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
1863
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1864
1864
  };
1865
1865
  btnText: {
1866
1866
  default: string;
@@ -1923,8 +1923,8 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1923
1923
  };
1924
1924
  externalOptionConfig: {
1925
1925
  type: import("vue").PropType<Partial<{
1926
- options: import("../../../es/shared/types").AnyObject[];
1927
- onSelect: (key: string | number, option: import("../../../es/shared/types").AnyObject) => void;
1926
+ options: import("../../shared/types").AnyObject[];
1927
+ onSelect: (key: string | number, option: import("../../shared/types").AnyObject) => void;
1928
1928
  }>>;
1929
1929
  default: () => {};
1930
1930
  };
@@ -1940,7 +1940,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1940
1940
  onSuccess?: ((...args: any[]) => any) | undefined;
1941
1941
  onClickoutside?: ((...args: any[]) => any) | undefined;
1942
1942
  }, {
1943
- params: import("../../../es/shared/types").AnyObject[];
1943
+ params: import("../../shared/types").AnyObject[];
1944
1944
  btnText: string;
1945
1945
  printText: string;
1946
1946
  previewText: string;
@@ -1956,8 +1956,8 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1956
1956
  btnprint: string;
1957
1957
  directPrint: boolean;
1958
1958
  externalOptionConfig: Partial<{
1959
- options: import("../../../es/shared/types").AnyObject[];
1960
- onSelect: (key: string | number, option: import("../../../es/shared/types").AnyObject) => void;
1959
+ options: import("../../shared/types").AnyObject[];
1960
+ onSelect: (key: string | number, option: import("../../shared/types").AnyObject) => void;
1961
1961
  }>;
1962
1962
  showLoading: boolean;
1963
1963
  }>>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { AnyObject } from '../../../../es/shared/types';
2
+ import { AnyObject } from '../../../shared/types';
3
3
  import { PropType } from 'vue';
4
4
  import { Print } from './utils';
5
5
  declare const _default: import("vue").DefineComponent<{
@@ -1,3 +1,3 @@
1
- import { AnyObject } from '../../../../es/shared/types';
1
+ import { AnyObject } from '../../../shared/types';
2
2
  export declare function getPrivateFormatApi(params: AnyObject, headers: AnyObject): Promise<AnyObject>;
3
3
  export declare function savePrivateFormatApi(params: AnyObject, headers: AnyObject): Promise<AnyObject>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { UploadFileInfo } from 'naive-ui';
3
- import { AnyObject } from '../../../../../es/shared/types';
3
+ import { AnyObject } from '../../../../shared/types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  formatId: {
6
6
  type: StringConstructor;
@@ -1,4 +1,4 @@
1
- import { AnyFn } from '../../../../../es/shared/types';
1
+ import { AnyFn } from '../../../../shared/types';
2
2
  import { ComponentInternalInstance } from 'vue';
3
3
  export declare class IdentityVerificationDialog {
4
4
  rendered: boolean;
@@ -1,5 +1,5 @@
1
- import { AnyObject, AnyFn } from '../../../../../es/shared/types';
2
- import { IdentityVerificationDialog, PreviewDialog } from '../../../../../es/components/button-print/src/utils/dialog';
1
+ import { AnyObject, AnyFn } from '../../../../shared/types';
2
+ import { IdentityVerificationDialog, PreviewDialog } from '../../../../components/button-print/src/utils/dialog';
3
3
  export declare class Print {
4
4
  private readonly webview;
5
5
  private currentMessageHandler?;
@@ -10,9 +10,12 @@ export declare class Print {
10
10
  private printOrigin;
11
11
  private isRemote;
12
12
  private CMonitor;
13
+ private queryServicesParams;
13
14
  constructor();
14
15
  private readonly messageHandlerQueue;
15
16
  private messageHandler;
17
+ getPicAndUpload(obj: any): Promise<void>;
18
+ _uploadImageServices(uploadParams: AnyObject): Promise<any>;
16
19
  private postMessage;
17
20
  messageCollect(id: string, data: AnyObject): Promise<unknown>;
18
21
  messageCollectAndNotifyFail(id: string, data: AnyObject, messageTimeout: number): Promise<unknown>;
@@ -1 +1 @@
1
- import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as s}from"./dialog.js";import{getFileUrl as n,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{uuidGenerator as l}from"../../../../shared/utils/index.js";import{format as d}from"date-fns";const h=t.create({timeout:1e3,withCredentials:!1}),c=`${window.location.protocol}//${window.location.host}`,u=`${c}/fdp-api/print/assembly/printIReport`,m=`${c}/bi-api/reprot/print/open/client/getRemote`,p=`${c}/printService/file`;let w=null;class f{constructor(){var t,e,n;if(this.webview=null,this.dialog=new i,this.dialogPreview=new s,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.CMonitor=null,this.messageHandlerQueue=[],w)return w;w=this;const r=window;this.CMonitor=r.$CMonitor;try{this.webview=r.top?null==(t=r.top.chrome)?void 0:t.webview:null==(e=r.chrome)?void 0:e.webview}catch(t){console.log(t),this.webview=null==(n=r.chrome)?void 0:n.webview}if(this.webview){this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler);try{this.webview.postMessage({exec:"config",data:""})}catch(t){const e="当前浏览器版本不支持获取配置接口";this._handleMonitorNotify(e),console.log("非封装浏览器或者"+e)}}}messageHandler(t){var e;if(console.log("打印事件message",t),!t)return this._handleMonitorNotify("接收到空的浏览器事件,"+t),console.log("当前回执",t,"接收到空的浏览器事件");let i;try{i=JSON.parse(t.data||"{}")}catch(e){console.log("解析e.data失败,"+e),this._handleMonitorNotify("解析e.data失败,"+t)}if(["print","pdf"].includes(null==i?void 0:i.cmd)){console.log("打印命令执行了",i);const e=this.messageHandlerQueue.shift();if(!e)return console.log("当前回执",t,"没有可用的handler");const{resolve:s,reject:n}=e;try{s(i.res||"")}catch(t){n(t)}}else"config"===(null==i?void 0:i.exec)&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||"")}async postMessage(t,e=0){if(!this.webview)return Promise.reject();const i=l();return e&&e>0?this.messageCollectAndNotifyFail(i,t,e):this.messageCollect(i,t)}messageCollect(t,e){return new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)}))}messageCollectAndNotifyFail(t,e,i){return Promise.race([new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)})),new Promise(((e,s)=>{setTimeout((()=>{const e=this.messageHandlerQueue.findIndex((e=>e.id===t));e>-1&&this.messageHandlerQueue.splice(e,1),s({type:"timeout"})}),i)}))])}destroy(){}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{h({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}},null==e?void 0:e.messageTimeout):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:s(i)}):h({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[s]}).then((({data:t})=>t));function s(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleMonitorNotify(t){var e,i;null==(i=null==(e=this.CMonitor)?void 0:e.notify)||i.call(e,{name:"custom_info",message:t,businessName:"打印sdk"})}_handleResult(t,e){if(!t){const t="打印命令返回空数据";return this._handleMonitorNotify(""),null==e||e({type:"printError",message:t,result:!1,errinfo:t}),!1}if("success"!==t.result){const i=t.message||t.Message;this._handleMonitorNotify(i);const s={type:"printError",message:i,result:t.result,errinfo:t.errinfo};return null==e||e(s),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,s,n){const r={templateId:t,formatId:e,params:i,cmdid:"7",messageTimeout:s},a=await this._queryServicesPrint(r);return this._handleQueryPrintDataResult(a,e,n)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:s,print:n,signature:r,printdlgshow:a="0",nobillnode:o="1",btnprint:l="1",messageTimeout:h=0}){const c={templateId:t,formatId:e,params:i,cmdid:s,nobillnode:o,printdlgshow:a,btnprint:l,messageTimeout:h,...r?{signature:r}:{}};if(n){try{n=JSON.parse(n)}catch(t){}c.print=n}else if(this.isRemote){const t=d(new Date,"yyyyMMddHHmmss");c.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return await this._queryServicesPrint(c)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:s,messageTimeout:n=0}){const r={};let a={};try{a=Object.assign({},r,JSON.parse(i))}catch(t){a=r}const o={templateId:t,formatId:e,cmdid:"9",token:s,params:JSON.stringify(a),messageTimeout:n};return await this._queryServicesPrint(o)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await h({method:"get",url:m})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=c+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await h({method:"post",url:u,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,s=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),a=s[s.length-2],o=s[s.length-1],l=await n(`${p}/${a}/${o}`),d=r(null,e,l);if("preview"===e)return d}}async preview({templateId:t,formatId:e,params:i="",signature:s,btnprint:n,messageTimeout:l=0},d,h){if(a(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==h?void 0:h("获取文件失败!");const s=r(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,s),void(null==d||d({file:t}))}await this._queryProxyOrigin();const c=await this._testConnection();if(!this._handleResultTest(c,h))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",signature:s,btnprint:n,messageTimeout:l}),a=this._handleResult(r,h);if(!a)return!1;if(this.isRemote){const t=await this._browserPrint(a,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}null==d||d(a)}catch(t){const e="预览失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e}:{message:e};null==h||h(i),this._handleMonitorNotify(i)}}async printSync(t,e,i){const s=t.map((t=>{const e={params:"",printdlgshow:"0",nobillnode:"1",btnprint:"1",...t,cmdid:"7",...t.signature?{signature:t.signature}:{}};if(e.print)try{e.print=JSON.parse(e.print)}catch(t){}return{inputData:e}}));try{const t=l(),n=await this.messageCollect(t,{exec:"printA",data:s});if(n&&Array.isArray(n)){n.some((t=>"success"===t.res.result))?null==e||e(n):(null==i||i(n),this._handleMonitorNotify(n))}else{const t="打印命令返回无效数据";this._handleMonitorNotify(n||""),null==i||i({type:"printError",message:t,result:!1,errinfo:t})}}catch(t){const e={error:t,message:"打印失败"};null==i||i(e),this._handleMonitorNotify(e)}}async printDirect({templateId:t,formatId:e,params:i="",print:s,signature:n,printdlgshow:o,nobillnode:l,isDownloadFile:d=!0,messageTimeout:h=0},c,u,m="printDirect"){if(a(e)){const t=await this._queryPrintFile(e,i);return t?(r(t,m),void(null==c||c({file:t}))):null==u?void 0:u("获取文件失败!")}await this._queryProxyOrigin();const p=await this._testConnection();if(!this._handleResultTest(p,u))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:"7",print:s,signature:n,printdlgshow:o,nobillnode:l,messageTimeout:h}),a=this._handleResult(r,u);if(!a)return!1;d&&["downloadPDF"].includes(m)&&await this._browserPrint(a,m),null==c||c(a)}catch(t){const e="printDirect"===m?"打印失败":"下载失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e}:{message:e};null==u||u(i),this._handleMonitorNotify(i)}}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):h.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}downloadPDF(t,i,s){if(this.webview&&this.downloadPath&&(Reflect.has(t,"print")||Reflect.set(t,"print",{print:"1",type:"1"}),!t.print.filename)){const e=d(new Date,"yyyy-MM-dd"),i=l(),s=d(new Date,"yyyyMMddHHmmss")+i;t.print.filename=`${this.downloadPath}/${e}/${s}/${s}`.replace(/\\/g,"/")}this.printDirect(t,(async n=>{if(n||s(null),a(t.formatId))return i(n);const r=this,o=await async function(t){const i=[],s=JSON.parse(t);if(!e(s))return await r._downloadPDF("");if(1===s.length)return await r._downloadPDF(s[0]||"");for(let t=0,e=s.length;t<e;t++)i.push(await r._downloadPDF(s[t]||""));return i}(n.filedir);i(o,n)}),(t=>s(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i="",messageTimeout:s=0},n,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this.queryPrintData({templateId:t,formatId:e,params:i,messageTimeout:s},void 0,r);if(!o)return!1;const l=this.printFileData({formatId:e,file:o.file,printerName:o.printerName},void 0,r);if(!l)return!1;n&&n(l)}async queryPrintData({templateId:t,formatId:e,params:i="",messageTimeout:s=0},n,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this._handleEventQueryPrintData(t,e,i,s,r);return!!o&&(n&&n(o),o)}async printFileData({formatId:t,file:e,printerName:i="Default"},s,n){const r=await this._testConnection();if(!this._handleResultTest(r,n))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,n);return!!o&&(s&&s(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:n=0},r,a){const o=await this._testConnection();if(!this._handleResultTest(o,a))return!1;const l=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:n}),d=this._handleResult(l,a);if(!d)return!1;r&&r(d)}async addPrintFormat({templateId:t,params:e,token:i},s,n){const r=await this._testConnection();if(!this._handleResultTest(r,n))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,n);if(!o)return!1;s&&s(o)}}export{f as Print};
1
+ import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as s}from"./dialog.js";import{getFileUrl as a,useBrowserPrint as r,isIReport as n}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{uuidGenerator as l}from"../../../../shared/utils/index.js";import{format as d}from"date-fns";const c=t.create({timeout:1e3,withCredentials:!1}),u=`${window.location.protocol}//${window.location.host}`,m=`${u}/fdp-api/print/assembly/printIReport`,h=`${u}/bi-api/reprot/print/open/client/getRemote`,p=`${u}/bi-api/reprot/print/open/client/uploadTemplate`,f=`${u}/printService/file`;let w=null;class g{constructor(){var t,e,a;if(this.webview=null,this.dialog=new i,this.dialogPreview=new s,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.CMonitor=null,this.queryServicesParams=null,this.messageHandlerQueue=[],w)return w;w=this;const r=window;this.CMonitor=r.$CMonitor;try{this.webview=r.top?null==(t=r.top.chrome)?void 0:t.webview:null==(e=r.chrome)?void 0:e.webview}catch(t){console.log(t),this.webview=null==(a=r.chrome)?void 0:a.webview}if(this.webview){this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler);try{this.webview.postMessage({exec:"config",data:""})}catch(t){const e="当前浏览器版本不支持获取配置接口";this._handleMonitorNotify(e),console.log("非封装浏览器或者"+e)}}}messageHandler(t){var e;if(console.log("打印事件message",t),!t)return this._handleMonitorNotify("接收到空的浏览器事件,"+t),console.log("当前回执",t,"接收到空的浏览器事件");let i;try{i=JSON.parse(t.data||"{}")}catch(e){console.log("解析e.data失败,"+e),this._handleMonitorNotify("解析e.data失败,"+t)}if(["print","pdf"].includes(null==i?void 0:i.cmd)){console.log("打印命令执行了",i);const e=this.messageHandlerQueue.shift();if(!e)return console.log("当前回执",t,"没有可用的handler");const{resolve:s,reject:a}=e;try{s(i.res||"")}catch(t){a(t)}}else"config"===(null==i?void 0:i.exec)&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||"")}async getPicAndUpload(t){try{const e=t=>"[object Object]"===Object.prototype.toString.call(t);if("success"===(null==t?void 0:t.result)&&"Y"==(null==t?void 0:t.uploadTemplateFlag)&&!(null==t?void 0:t.filebase64)&&this.queryServicesParams){const t=e(this.queryServicesParams.params)?this.queryServicesParams.params:JSON.parse(this.queryServicesParams.params);t.uploadTemplateFlag="Y",this.queryServicesParams.params=JSON.stringify(t),this.queryServicesParams.cmdid="7",this.queryServicesParams.print={print:1,type:2,callback:1};const i=await this._queryServicesPrint(this.queryServicesParams);if(i&&i.filebase64&&i.key){const t={templateId:this.queryServicesParams.templateId,formatId:this.queryServicesParams.formatId,fileBase64:i.filebase64,authorizationKey:i.key,params:this.queryServicesParams.params},e=await this._uploadImageServices(t);"success"===(null==e?void 0:e.result)&&console.log("图片上传成功")}}}catch(t){console.log(t)}finally{this.queryServicesParams=null}}async _uploadImageServices(t){const e=new FormData;Object.keys(t).forEach((i=>{e.append(i,t[i])}));const{data:i}=await c({method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},url:p,data:e})||{};return i}async postMessage(t,e=0){if(!this.webview)return Promise.reject();const i=l();return e&&e>0?this.messageCollectAndNotifyFail(i,t,e):this.messageCollect(i,t)}messageCollect(t,e){return new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)}))}messageCollectAndNotifyFail(t,e,i){return Promise.race([new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)})),new Promise(((e,s)=>{setTimeout((()=>{const e=this.messageHandlerQueue.findIndex((e=>e.id===t));e>-1&&this.messageHandlerQueue.splice(e,1),s({type:"timeout"})}),i)}))])}destroy(){}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{c({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}},null==e?void 0:e.messageTimeout):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:s(i)}):c({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[s]}).then((({data:t})=>t));function s(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleMonitorNotify(t){var e,i;null==(i=null==(e=this.CMonitor)?void 0:e.notify)||i.call(e,{name:"custom_info",message:t,businessName:"打印sdk"})}_handleResult(t,e){if(!t){const t="打印命令返回空数据";return this._handleMonitorNotify(""),null==e||e({type:"printError",message:t,result:!1,errinfo:t}),!1}if("success"!==t.result){const i=t.message||t.Message;this._handleMonitorNotify(i);const s={type:"printError",message:i,result:t.result,errinfo:t.errinfo};return null==e||e(s),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,s,a){const r={templateId:t,formatId:e,params:i,cmdid:"7",messageTimeout:s},n=await this._queryServicesPrint(r);return this._handleQueryPrintDataResult(n,e,a)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:s,print:a,signature:r,printdlgshow:n="0",nobillnode:o="1",btnprint:l="1",messageTimeout:c=0}){const u={templateId:t,formatId:e,params:i,cmdid:s,nobillnode:o,printdlgshow:n,btnprint:l,messageTimeout:c,...r?{signature:r}:{}};if(a){try{a=JSON.parse(a)}catch(t){}u.print=a}else if(this.isRemote){const t=d(new Date,"yyyyMMddHHmmss");u.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return this.queryServicesParams=u,await this._queryServicesPrint(u)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:s,messageTimeout:a=0}){const r={};let n={};try{n=Object.assign({},r,JSON.parse(i))}catch(t){n=r}const o={templateId:t,formatId:e,cmdid:"9",token:s,params:JSON.stringify(n),messageTimeout:a};return await this._queryServicesPrint(o)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await c({method:"get",url:h})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=u+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await c({method:"post",url:m,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,s=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),n=s[s.length-2],o=s[s.length-1],l=await a(`${f}/${n}/${o}`),d=r(null,e,l);if("preview"===e)return d}}async preview({templateId:t,formatId:e,params:i="",signature:s,btnprint:a,messageTimeout:l=0},d,c){if(n(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==c?void 0:c("获取文件失败!");const s=r(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,s),void(null==d||d({file:t}))}await this._queryProxyOrigin();const u=await this._testConnection();if(!this._handleResultTest(u,c))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",signature:s,btnprint:a,messageTimeout:l}),n=this._handleResult(r,c);if(!n)return!1;if(this.isRemote){const t=await this._browserPrint(n,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}await this.getPicAndUpload(n),null==d||d(n)}catch(t){const e="预览失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e}:{message:e};null==c||c(i),this._handleMonitorNotify(i)}}async printSync(t,e,i){const s=t.map((t=>{const e={params:"",printdlgshow:"0",nobillnode:"1",btnprint:"1",...t,cmdid:"7",...t.signature?{signature:t.signature}:{}};if(e.print)try{e.print=JSON.parse(e.print)}catch(t){}return{inputData:e}}));try{const t=l(),a=await this.messageCollect(t,{exec:"printA",data:s});if(a&&Array.isArray(a)){a.some((t=>"success"===t.res.result))?null==e||e(a):(null==i||i(a),this._handleMonitorNotify(a))}else{const t="打印命令返回无效数据";this._handleMonitorNotify(a||""),null==i||i({type:"printError",message:t,result:!1,errinfo:t})}}catch(t){const e={error:t,message:"打印失败"};null==i||i(e),this._handleMonitorNotify(e)}}async printDirect({templateId:t,formatId:e,params:i="",print:s,signature:a,printdlgshow:o,nobillnode:l,isDownloadFile:d=!0,messageTimeout:c=0},u,m,h="printDirect"){if(n(e)){const t=await this._queryPrintFile(e,i);return t?(r(t,h),void(null==u||u({file:t}))):null==m?void 0:m("获取文件失败!")}await this._queryProxyOrigin();const p=await this._testConnection();if(!this._handleResultTest(p,m))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:"7",print:s,signature:a,printdlgshow:o,nobillnode:l,messageTimeout:c}),n=this._handleResult(r,m);if(!n)return!1;d&&["downloadPDF"].includes(h)&&await this._browserPrint(n,h),null==u||u(n)}catch(t){const e="printDirect"===h?"打印失败":"下载失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e}:{message:e};null==m||m(i),this._handleMonitorNotify(i)}}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):c.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}downloadPDF(t,i,s){if(this.webview&&this.downloadPath&&(Reflect.has(t,"print")||Reflect.set(t,"print",{print:"1",type:"1"}),!t.print.filename)){const e=d(new Date,"yyyy-MM-dd"),i=l(),s=d(new Date,"yyyyMMddHHmmss")+i;t.print.filename=`${this.downloadPath}/${e}/${s}/${s}`.replace(/\\/g,"/")}this.printDirect(t,(async a=>{if(a||s(null),n(t.formatId))return i(a);const r=this,o=await async function(t){const i=[],s=JSON.parse(t);if(!e(s))return await r._downloadPDF("");if(1===s.length)return await r._downloadPDF(s[0]||"");for(let t=0,e=s.length;t<e;t++)i.push(await r._downloadPDF(s[t]||""));return i}(a.filedir);i(o,a)}),(t=>s(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i="",messageTimeout:s=0},a,r){const n=await this._testConnection();if(!this._handleResultTest(n,r))return!1;const o=await this.queryPrintData({templateId:t,formatId:e,params:i,messageTimeout:s},void 0,r);if(!o)return!1;const l=this.printFileData({formatId:e,file:o.file,printerName:o.printerName},void 0,r);if(!l)return!1;a&&a(l)}async queryPrintData({templateId:t,formatId:e,params:i="",messageTimeout:s=0},a,r){const n=await this._testConnection();if(!this._handleResultTest(n,r))return!1;const o=await this._handleEventQueryPrintData(t,e,i,s,r);return!!o&&(a&&a(o),o)}async printFileData({formatId:t,file:e,printerName:i="Default"},s,a){const r=await this._testConnection();if(!this._handleResultTest(r,a))return!1;const n=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(n,a);return!!o&&(s&&s(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:a=0},r,n){const o=await this._testConnection();if(!this._handleResultTest(o,n))return!1;const l=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:a}),d=this._handleResult(l,n);if(!d)return!1;r&&r(d)}async addPrintFormat({templateId:t,params:e,token:i},s,a){const r=await this._testConnection();if(!this._handleResultTest(r,a))return!1;const n=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(n,a);if(!o)return!1;s&&s(o)}}export{g as Print};
@@ -1,4 +1,4 @@
1
- import { SFCWithInstall } from '../../../es/shared/types';
1
+ import { SFCWithInstall } from '../../shared/types';
2
2
  declare const Callback: SFCWithInstall<import("vue").DefineComponent<{
3
3
  config: {
4
4
  type: ObjectConstructor;
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { DrawerPlacement } from 'naive-ui';
3
- import { ICallbackConfigType } from '../../../../../../es/components/callback/src/types';
3
+ import { ICallbackConfigType } from '../../../../../components/callback/src/types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  options: {
6
6
  type: PropType<ICallbackConfigType>;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { ICallbackConfigType } from '../../../../../../es/components/callback/src/types';
2
+ import { ICallbackConfigType } from '../../../../../components/callback/src/types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  options: {
5
5
  type: PropType<ICallbackConfigType>;