cnhis-design-vue 3.1.54-release.4 → 3.1.55-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (432) hide show
  1. package/es/components/annotation-edit/index.d.ts +1 -1
  2. package/es/components/annotation-edit/src/AnnotationEdit.d.ts +1 -1
  3. package/es/components/audio-sdk/index.d.ts +2 -0
  4. package/es/components/audio-sdk/index.js +1 -0
  5. package/es/components/audio-sdk/src/audioSDK.d.ts +28 -0
  6. package/es/components/audio-sdk/src/audioSDK.js +1 -0
  7. package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +27 -0
  8. package/es/components/audio-sdk/src/components/recordingDialog.vue.js +1 -0
  9. package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -0
  10. package/es/components/audio-sdk/src/utils/recordingDialog.d.ts +8 -0
  11. package/es/components/audio-sdk/src/utils/recordingDialog.js +1 -0
  12. package/es/components/audio-sdk/style/index.css +1 -0
  13. package/es/components/base-search/index.d.ts +1 -1
  14. package/es/components/base-search/src/index.vue.d.ts +4 -4
  15. package/es/components/base-search/src/index.vue2.js +1 -1
  16. package/es/components/big-table/index.d.ts +22 -22
  17. package/es/components/big-table/src/BigTable.vue.d.ts +2 -2
  18. package/es/components/big-table/src/bigTableProps.d.ts +1 -1
  19. package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +5 -5
  20. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +1 -1
  21. package/es/components/big-table/src/components/separate.vue.d.ts +1 -1
  22. package/es/components/big-table/src/constants/index.d.ts +1 -1
  23. package/es/components/big-table/src/hooks/useAnnotation.d.ts +1 -1
  24. package/es/components/big-table/src/hooks/useFormat.d.ts +1 -1
  25. package/es/components/big-table/src/hooks/useSeparateRow.d.ts +1 -1
  26. package/es/components/big-table/src/utils.d.ts +1 -1
  27. package/es/components/{multi-chat → biunique-chat}/index.d.ts +16 -16
  28. package/es/components/biunique-chat/index.js +1 -0
  29. package/es/components/{multi-chat/src/MultiChat.vue.d.ts → biunique-chat/src/BiuniqueChat.vue.d.ts} +1 -1
  30. package/es/components/biunique-chat/src/BiuniqueChat.vue.js +1 -0
  31. package/es/components/biunique-chat/src/BiuniqueChat.vue2.js +1 -0
  32. package/es/components/{multi-chat → biunique-chat}/src/api/index.d.ts +1 -1
  33. package/es/components/{multi-chat → biunique-chat}/src/components/ChatFooter.vue.d.ts +1 -1
  34. package/es/components/{multi-chat → biunique-chat}/src/components/ChatHeader.vue.d.ts +1 -1
  35. package/es/components/{multi-chat → biunique-chat}/src/components/ChatMain.vue.d.ts +1 -1
  36. package/es/components/{multi-chat → biunique-chat}/src/components/SiderList.vue.d.ts +1 -1
  37. package/es/components/{multi-chat → biunique-chat}/src/utils/chatSock.d.ts +1 -1
  38. package/es/components/body-select/index.d.ts +5 -5
  39. package/es/components/body-select/src/hooks/renderCanvas.d.ts +2 -2
  40. package/es/components/body-select/src/hooks/renderCanvas.js +1 -1
  41. package/es/components/body-select/src/index.vue.d.ts +1 -1
  42. package/es/components/body-select/src/index.vue2.js +1 -1
  43. package/es/components/bpmn-workflow/index.d.ts +1 -1
  44. package/es/components/button-print/index.d.ts +34 -21
  45. package/es/components/button-print/src/ButtonPrint.vue.d.ts +14 -1
  46. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  47. package/es/components/button-print/src/api.d.ts +1 -1
  48. package/es/components/button-print/src/components/EditFormat.vue.d.ts +1 -1
  49. package/es/components/button-print/src/utils/dialog.d.ts +1 -1
  50. package/es/components/button-print/src/utils/print.d.ts +2 -2
  51. package/es/components/callback/index.d.ts +1 -1
  52. package/es/components/callback/src/components/dialog/drawer.vue.d.ts +1 -1
  53. package/es/components/callback/src/components/dialog/modal.vue.d.ts +1 -1
  54. package/es/components/callback/src/components/render/popupMaps.d.ts +72 -52
  55. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +1 -1
  56. package/es/components/card-reader-sdk/src/components/readCardDialog.vue.d.ts +1 -1
  57. package/es/components/card-reader-sdk/src/constants/index.d.ts +1 -1
  58. package/es/components/card-reader-sdk/src/insuranceSDK.d.ts +1 -1
  59. package/es/components/card-reader-sdk/src/types/index.d.ts +2 -2
  60. package/es/components/card-reader-sdk/src/utils/readHealthCard.d.ts +1 -1
  61. package/es/components/classification/index.d.ts +505 -20
  62. package/es/components/classification/src/components/search-filter/index.vue.d.ts +473 -1
  63. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  64. package/es/components/classification/src/components/set-classification/index.vue.d.ts +480 -8
  65. package/es/components/classification/src/components/table-modal/index.vue.d.ts +1 -1
  66. package/es/components/classification/src/index.vue.d.ts +493 -8
  67. package/es/components/classification/src/index.vue2.js +1 -1
  68. package/es/components/classification/style/index.css +1 -1
  69. package/es/components/config-provider/index.d.ts +1 -1
  70. package/es/components/date-picker/index.d.ts +2 -2
  71. package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
  72. package/es/components/editor/index.d.ts +1 -1
  73. package/es/components/expand-field/index.d.ts +29 -29
  74. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +2 -2
  75. package/es/components/expand-field/src/components/form.vue.d.ts +2 -2
  76. package/es/components/expand-field/src/constants/index.d.ts +1 -1
  77. package/es/components/expand-field/src/index.vue.d.ts +2 -2
  78. package/es/components/fabric-chart/index.d.ts +7 -6
  79. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -1
  80. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  81. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +1 -1
  82. package/es/components/fabric-chart/src/constants/index.d.ts +4 -0
  83. package/es/components/fabric-chart/src/constants/index.js +1 -1
  84. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +3 -3
  85. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  86. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +3 -3
  87. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +2 -2
  88. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
  89. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +2 -2
  90. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  91. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +9 -3
  92. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  93. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.d.ts +2 -2
  94. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +3 -3
  95. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  96. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.d.ts +3 -3
  97. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +3 -3
  98. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +3 -3
  99. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +3 -3
  100. package/es/components/fabric-chart/src/hooks/temperature/useBottom.d.ts +2 -2
  101. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +4 -4
  102. package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +3 -3
  103. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +2 -2
  104. package/es/components/fabric-chart/src/hooks/temperature/useRight.d.ts +2 -2
  105. package/es/components/fabric-chart/src/hooks/temperature/useShadow.d.ts +1 -1
  106. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +3 -3
  107. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  108. package/es/components/fabric-chart/src/hooks/temperature/useTop.d.ts +2 -2
  109. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +2 -2
  110. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +4 -4
  111. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  112. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +2 -2
  113. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
  114. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +2 -2
  115. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +2 -2
  116. package/es/components/fabric-chart/src/interface.d.ts +2 -2
  117. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  118. package/es/components/field-set/index.d.ts +15 -15
  119. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
  120. package/es/components/field-set/src/components/Row.vue.d.ts +2 -2
  121. package/es/components/field-set/src/types/index.d.ts +1 -1
  122. package/es/components/field-set/src/utils/index.d.ts +3 -3
  123. package/es/components/form-config/index.d.ts +349 -302
  124. package/es/components/form-config/src/FormConfig.vue.d.ts +473 -426
  125. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +38 -18
  126. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +1 -1
  127. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +219 -196
  128. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +7 -7
  129. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +1 -1
  130. package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +1 -1
  131. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +2 -2
  132. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +2 -2
  133. package/es/components/form-config/src/constants/index.d.ts +2 -2
  134. package/es/components/form-config/src/hooks/useConfigurationField.d.ts +3 -3
  135. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
  136. package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +1 -1
  137. package/es/components/form-config/src/types/index.d.ts +2 -2
  138. package/es/components/form-config/src/utils/index.d.ts +3 -3
  139. package/es/components/form-render/index.d.ts +72 -52
  140. package/es/components/form-render/index.js +1 -1
  141. package/es/components/form-render/src/FormRender.vue.d.ts +36 -16
  142. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  143. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +95 -75
  144. package/es/components/form-render/src/components/renderer/combination/combination.d.ts +1 -1
  145. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +1 -1
  146. package/es/components/form-render/src/components/renderer/combination/hooks/useDeepValidate.d.ts +1 -1
  147. package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +1 -1
  148. package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +2 -2
  149. package/es/components/form-render/src/components/renderer/complex.js +1 -1
  150. package/es/components/form-render/src/components/renderer/date.js +1 -1
  151. package/es/components/form-render/src/components/renderer/formItem.d.ts +1 -1
  152. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  153. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +1 -1
  154. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +1 -1
  155. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +2 -2
  156. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -1
  157. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  158. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  159. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +2 -2
  160. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  161. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +2 -2
  162. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  163. package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
  164. package/es/components/form-render/src/components/renderer/select.js +1 -1
  165. package/es/components/form-render/src/components/renderer/simpleComponent.d.ts +1 -1
  166. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  167. package/es/components/form-render/src/components/renderer/textarea.js +1 -1
  168. package/es/components/form-render/src/constants/index.d.ts +5 -6
  169. package/es/components/form-render/src/constants/index.js +1 -1
  170. package/es/components/form-render/src/hooks/index.d.ts +20 -9
  171. package/es/components/form-render/src/hooks/index.js +1 -1
  172. package/es/components/form-render/src/hooks/useAnchor.d.ts +2 -2
  173. package/es/components/form-render/src/hooks/useAnchor.js +1 -1
  174. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +2 -2
  175. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  176. package/es/components/form-render/src/hooks/useCommonInjection.d.ts +1 -1
  177. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +2 -2
  178. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  179. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +19 -19
  180. package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -1
  181. package/es/components/form-render/src/hooks/useFormContext.d.ts +6 -6
  182. package/es/components/form-render/src/hooks/useFormEvent.d.ts +15 -4
  183. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  184. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +6 -6
  185. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
  186. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +8 -8
  187. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +17 -12
  188. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  189. package/es/components/form-render/src/hooks/useFormValidator.d.ts +1 -1
  190. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  191. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  192. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +4 -3
  193. package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
  194. package/es/components/form-render/src/hooks/usePresetScope.js +1 -1
  195. package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +14 -5
  196. package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -1
  197. package/es/components/form-render/src/types/fieldItem.d.ts +4 -3
  198. package/es/components/form-render/src/types/index.d.ts +13 -8
  199. package/es/components/form-render/src/utils/business.d.ts +2 -2
  200. package/es/components/form-render/src/utils/dom.d.ts +1 -1
  201. package/es/components/form-render/src/utils/index.d.ts +4 -17
  202. package/es/components/form-render/src/utils/index.js +1 -1
  203. package/es/components/form-render/src/utils/schema.d.ts +2 -2
  204. package/es/components/grid/index.d.ts +1 -1
  205. package/es/components/guide/src/renderer.d.ts +1 -1
  206. package/es/components/guide/src/types/index.d.ts +1 -1
  207. package/es/components/guide/src/useGuide.d.ts +1 -1
  208. package/es/components/guide/src/utils/index.d.ts +1 -1
  209. package/es/components/iho-table/index.d.ts +39 -39
  210. package/es/components/iho-table/src/IhoTable.vue.d.ts +27 -27
  211. package/es/components/iho-table/src/constants/index.d.ts +5 -5
  212. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +9 -9
  213. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +21 -21
  214. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +10 -10
  215. package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.d.ts +4 -4
  216. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +65 -65
  217. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +4 -4
  218. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +7 -7
  219. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +3 -3
  220. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.d.ts +1 -1
  221. package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +2 -2
  222. package/es/components/iho-table/src/plugins/anchorPlugin/index.d.ts +1 -1
  223. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +1 -1
  224. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.d.ts +1 -1
  225. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.js +1 -1
  226. package/es/components/iho-table/src/plugins/colorAndIconPlugin.d.ts +1 -0
  227. package/es/components/iho-table/src/plugins/colorAndIconPlugin.js +1 -0
  228. package/es/components/iho-table/src/plugins/copyPastePlugin.d.ts +1 -1
  229. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.d.ts +1 -1
  230. package/es/components/iho-table/src/plugins/defaultValuePlugin.d.ts +1 -1
  231. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +2 -2
  232. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.d.ts +1 -1
  233. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -1
  234. package/es/components/iho-table/src/plugins/filterVisibleEventPlugin.d.ts +1 -1
  235. package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.d.ts +1 -1
  236. package/es/components/iho-table/src/plugins/headerPlugin.d.ts +1 -1
  237. package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -1
  238. package/es/components/iho-table/src/plugins/index.d.ts +1 -1
  239. package/es/components/iho-table/src/plugins/index.js +1 -1
  240. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +1 -1
  241. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.d.ts +1 -1
  242. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -1
  243. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -1
  244. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -1
  245. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -2
  246. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +1 -1
  247. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +1 -1
  248. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +1 -1
  249. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +1 -1
  250. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.d.ts +1 -1
  251. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -1
  252. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +7 -7
  253. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.d.ts +1 -1
  254. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  255. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/radioRendererPlugin.d.ts +1 -1
  256. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +8 -2
  257. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  258. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +1 -1
  259. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  260. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -2
  261. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
  262. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.d.ts +1 -1
  263. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  264. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +2 -2
  265. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +9 -5
  266. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  267. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.d.ts +1 -1
  268. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.d.ts +1 -1
  269. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.d.ts +1 -1
  270. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.d.ts +1 -1
  271. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  272. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.d.ts +1 -1
  273. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.js +1 -1
  274. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.d.ts +1 -1
  275. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
  276. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +1 -1
  277. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.d.ts +1 -1
  278. package/es/components/iho-table/src/plugins/rowClickPlugin/index.d.ts +1 -1
  279. package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +1 -1
  280. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +1 -1
  281. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +2 -2
  282. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -1
  283. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.d.ts +1 -1
  284. package/es/components/iho-table/src/plugins/wordbookSettingPlugin.d.ts +1 -1
  285. package/es/components/iho-table/src/types/index.d.ts +5 -3
  286. package/es/components/iho-table/src/types/pluginType.d.ts +2 -2
  287. package/es/components/iho-table/src/utils/index.d.ts +4 -4
  288. package/es/components/iho-table/src/utils/index.js +1 -1
  289. package/es/components/iho-table/src/utils/separateMap.d.ts +2 -2
  290. package/es/components/iho-table/style/index.css +1 -1
  291. package/es/components/index.css +1 -1
  292. package/es/components/index.d.ts +6 -5
  293. package/es/components/index.js +1 -1
  294. package/es/components/info-header/index.d.ts +199 -159
  295. package/es/components/info-header/src/InfoHeader.vue.d.ts +213 -173
  296. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +6 -6
  297. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +9 -9
  298. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +118 -98
  299. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +39 -19
  300. package/es/components/info-header/src/constants/index.d.ts +1 -1
  301. package/es/components/info-header/src/types/index.d.ts +1 -1
  302. package/es/components/keyboard/index.d.ts +1 -1
  303. package/es/components/map/index.d.ts +1 -1
  304. package/es/components/map/src/Map.vue.d.ts +1 -1
  305. package/es/components/picture-clipper/index.d.ts +1 -1
  306. package/es/components/picture-clipper/src/PictureClipper.vue.d.ts +1 -1
  307. package/es/components/quick-search/index.d.ts +1 -1
  308. package/es/components/quick-search/src/index.vue.d.ts +4 -4
  309. package/es/components/quick-search/style/index.css +1 -1
  310. package/es/components/recommend-search/index.d.ts +25 -25
  311. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +7 -7
  312. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -3
  313. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +2 -2
  314. package/es/components/scale-view/index.d.ts +1 -1
  315. package/es/components/scale-view/src/hooks/use-component.d.ts +33 -33
  316. package/es/components/scale-view/src/types/index.d.ts +1 -1
  317. package/es/components/search-cascader/index.d.ts +34 -34
  318. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +1 -1
  319. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  320. package/es/components/search-cascader/src/constants/index.d.ts +1 -1
  321. package/es/components/search-cascader/src/utils/index.d.ts +1 -1
  322. package/es/components/select-label/index.d.ts +1 -1
  323. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
  324. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  325. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +3 -3
  326. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +3 -3
  327. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.d.ts +1 -1
  328. package/es/components/select-label/src/index.vue.d.ts +19 -19
  329. package/es/components/select-person/index.d.ts +22 -22
  330. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  331. package/es/components/shortcut-provider/index.d.ts +1 -1
  332. package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -2
  333. package/es/components/shortcut-provider/src/constants/index.d.ts +1 -1
  334. package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +1 -1
  335. package/es/components/shortcut-provider/src/types/index.d.ts +1 -1
  336. package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
  337. package/es/components/shortcut-setter/index.d.ts +93 -72
  338. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +125 -104
  339. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +2 -2
  340. package/es/components/shortcut-setter/src/types/index.d.ts +1 -1
  341. package/es/components/slider-tree/index.d.ts +1 -1
  342. package/es/components/steps-wheel/index.d.ts +1 -1
  343. package/es/components/table-export-field/index.d.ts +3 -3
  344. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +1 -1
  345. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +1 -1
  346. package/es/components/table-export-field/src/constants/index.d.ts +1 -1
  347. package/es/components/table-export-field/src/index.vue.d.ts +1 -1
  348. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +320 -0
  349. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.js +1 -0
  350. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +1 -0
  351. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +127 -0
  352. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.js +1 -0
  353. package/es/components/table-filter/src/components/bi-filter/components/Date.vue2.js +1 -0
  354. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.d.ts +41 -0
  355. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.js +1 -0
  356. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue2.js +1 -0
  357. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.d.ts +28 -0
  358. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.js +1 -0
  359. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue2.js +1 -0
  360. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +51 -0
  361. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.js +1 -0
  362. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue2.js +1 -0
  363. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +244 -0
  364. package/es/components/table-filter/src/components/bi-filter/components/index.js +1 -0
  365. package/es/components/table-filter/src/components/bi-filter/helpers/options.d.ts +14 -0
  366. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -0
  367. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +13 -0
  368. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.js +1 -0
  369. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +474 -0
  370. package/es/components/table-filter/src/components/bi-filter/index.vue.js +1 -0
  371. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +1 -0
  372. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +1 -1
  373. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -1
  374. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +2 -2
  375. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  376. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +2 -2
  377. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +2 -2
  378. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
  379. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +2 -2
  380. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +2 -2
  381. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +1 -1
  382. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +2 -2
  383. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +1 -1
  384. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +1 -1
  385. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +1 -1
  386. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +9 -9
  387. package/es/components/table-filter/src/constants/index.d.ts +2 -1
  388. package/es/components/table-filter/src/constants/index.js +1 -1
  389. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -2
  390. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -1
  391. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +1 -1
  392. package/es/components/table-filter/src/tool/transformData.d.ts +1 -1
  393. package/es/components/time-line/index.d.ts +1 -1
  394. package/es/components/time-picker/index.d.ts +2 -2
  395. package/es/components/time-picker/src/TimePicker.vue.d.ts +1 -1
  396. package/es/components/vod-chunk-upload/index.d.ts +1 -1
  397. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +5 -3
  398. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  399. package/es/shared/components/SelectPage/SelectPage.vue.d.ts +1 -1
  400. package/es/shared/components/SlotRender/SlotRender.d.ts +1 -1
  401. package/es/shared/hooks/selectHooks/useOptionFiltered.d.ts +1 -1
  402. package/es/shared/hooks/selectHooks/useSearchContent.d.ts +1 -1
  403. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
  404. package/es/shared/hooks/selectHooks/useSelectAllowModify.d.ts +1 -1
  405. package/es/shared/hooks/selectHooks/useSelectRenders.d.ts +1 -1
  406. package/es/shared/hooks/useAsyncQueue/types.d.ts +1 -1
  407. package/es/shared/hooks/useDateTime.d.ts +1 -1
  408. package/es/shared/hooks/useFormRequest/index.d.ts +2 -2
  409. package/es/shared/hooks/useFormRequest/types.d.ts +2 -2
  410. package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -2
  411. package/es/shared/hooks/useTheme.d.ts +1 -1
  412. package/es/shared/package.json.js +1 -1
  413. package/es/shared/types/business.d.ts +1 -1
  414. package/es/shared/utils/business.d.ts +2 -1
  415. package/es/shared/utils/business.js +1 -1
  416. package/es/shared/utils/index.d.ts +1 -1
  417. package/es/shared/utils/index.js +1 -1
  418. package/package.json +3 -2
  419. package/es/components/multi-chat/index.js +0 -1
  420. package/es/components/multi-chat/src/MultiChat.vue.js +0 -1
  421. package/es/components/multi-chat/src/MultiChat.vue2.js +0 -1
  422. /package/es/components/{multi-chat → biunique-chat}/src/api/index.js +0 -0
  423. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatFooter.vue.js +0 -0
  424. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatFooter.vue2.js +0 -0
  425. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatHeader.vue.js +0 -0
  426. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatHeader.vue2.js +0 -0
  427. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatMain.vue.js +0 -0
  428. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatMain.vue2.js +0 -0
  429. /package/es/components/{multi-chat → biunique-chat}/src/components/SiderList.vue.js +0 -0
  430. /package/es/components/{multi-chat → biunique-chat}/src/components/SiderList.vue2.js +0 -0
  431. /package/es/components/{multi-chat → biunique-chat}/src/utils/chatSock.js +0 -0
  432. /package/es/components/{multi-chat → biunique-chat}/style/index.css +0 -0
@@ -1,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 +1 @@
1
- import{ref as e}from"vue";import{fabric as t}from"../../../../shared/utils/fabricjs/index.js";function o(o,n,r,{props:l,emits:s}){const c=e({});return function(){if(o){const e=[];Object.keys(n).forEach((o=>{!function(e,o){const n=new t.Path(o,{fill:"",stroke:"#333",strokeWidth:2,hoverCursor:"default",evented:!0,selectable:!1,name:e});n.isSelectMode=!1,c.value[e]=n}(o,n[o]),e.push(c.value[o])}));const u=new t.Group(e,{originX:"left",originY:"top",left:0,scaleX:r,scaleY:r,evented:!0,selectable:!1,hoverCursor:"default",subTargetCheck:!0});return u.forEachObject((e=>{e.on("mouseover",(function(){e.set("fill",l.fillColor),o.renderAll()})),e.on("mouseout",(function(){e.isSelectMode||(e.set("fill",""),o.renderAll())})),e.on("mousedown",(function(){const t=!e.isSelectMode;s("select",e.name,t)}))})),o.add(u),o.centerObject(u),{canvas:o,data:c.value}}return null}()}export{o as default};
1
+ import{ref as e}from"vue";import{fabric as t}from"../../../../shared/utils/fabricjs/index.js";function o(o,l,n,{props:r,emits:s}){const i=e({}),c={};return function(){if(o){const e=[];Object.keys(l).forEach((o=>{!function(e,o){const l=new t.Path(o,{fill:"",stroke:"#333",strokeWidth:2,hoverCursor:"pointer",evented:!0,selectable:!1,name:e});l.isSelectMode=!1,i.value[e]=l}(o,l[o]),e.push(i.value[o])}));const u=new t.Group(e,{originX:"left",originY:"top",left:0,scaleX:n,scaleY:n,evented:!0,selectable:!1,hoverCursor:"pointer",subTargetCheck:!0});return u.forEachObject((e=>{e.on("mouseover",(function(){e.set("fill",r.fillColor),c[e.name]=e,setTimeout((()=>{var t,l;t=c,l=e.name,Object.keys(t).filter((e=>!t[e].isSelectMode&&t[e].name!==l)).forEach((e=>{t[e].set("fill",""),delete t[e]})),o.requestRenderAll()}),10)})),e.on("mouseout",(function(){e.fill&&(e.isSelectMode||(e.set("fill",""),delete c[e.name],o.requestRenderAll()))})),e.on("mousedown",(function(){const t=!e.isSelectMode;s("select",e.name,t)}))})),u.on("mouseout",(function(){Object.keys(c).filter((e=>!c[e].isSelectMode)).forEach((e=>{c[e].fill&&(c[e].set("fill",""),delete c[e])})),o.requestRenderAll()})),o.add(u),o.centerObject(u),{canvas:o,data:i.value}}return null}()}export{o as default};
@@ -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 +1 @@
1
- import{defineComponent as e,ref as a,watch as l,onMounted as s,onBeforeUnmount as t,openBlock as n,createElementBlock as c,createElementVNode as o}from"vue";import{isObject as r}from"lodash-es";import{fabric as i}from"../../../shared/utils/fabricjs/index.js";import{frontCanvasParams as u,palmCanvasParams as v,backCanvasParams as f}from"./config/index.js";import d from"./hooks/renderCanvas.js";const m={class:"c-body-select"},p={class:"canvas-module"},h=o("span",null,"正面",-1),g={class:"canvas-module"},b=o("span",null,"手",-1),k={class:"canvas-module"},j=o("span",null,"背面",-1);var y=e({__name:"index",props:{setting:{type:Object,default:()=>({})},fillColor:{type:String,default:"#E5E5E5"},canvasWidth:{type:Number,default:920}},emits:["select"],setup(e,{emit:y}){const w=e,C=a(null),O=a(),S=a(null),x=a(),E=a(null),_=a(),R=a([]),F=Number((w.canvasWidth/920).toFixed(2));function M(e,a){R.value.forEach((l=>{const s=l.data,t=Object.keys(s),n=Object.keys(e);t.forEach((l=>{a&&a(s,l),s[l].set("fill",""),s[l].set("isSelectMode",!1),n.includes(l)&&e[l]&&(s[l].set("fill",w.fillColor),s[l].set("isSelectMode",!0))})),l.canvas.renderAll()}))}return l((()=>w.setting),(e=>{e&&r(e)&&M(e)}),{deep:!0}),s((async()=>{const e={props:w,emits:y};O.value=new i.Canvas(C.value,{width:360*F,height:700*F,backgroundColor:"#fff",selection:!1,preserveObjectStacking:!0}),_.value=new i.Canvas(E.value,{width:200*F,height:150*F,backgroundColor:"#fff",selection:!1,preserveObjectStacking:!0}),x.value=new i.Canvas(S.value,{width:360*F,height:700*F,backgroundColor:"#fff",selection:!1,preserveObjectStacking:!0});const a=await d(O.value,u,F,e),l=await d(_.value,v,F,e),s=await d(x.value,f,F,e);a&&s&&l&&(R.value=[a,l,s],M(w.setting,((e,a)=>{["1","4","8","22","18"].includes(a)&&e[a].moveTo(100)})))})),t((()=>{O.value.clear(),x.value.clear(),_.value.clear()})),(e,a)=>(n(),c("div",m,[o("div",p,[o("canvas",{ref_key:"canvasFrontRef",ref:C},null,512),h]),o("div",g,[o("canvas",{ref_key:"canvasPalmsRef",ref:E},null,512),b]),o("div",k,[o("canvas",{ref_key:"canvasBackRef",ref:S},null,512),j])]))}});export{y as default};
1
+ import{defineComponent as e,ref as a,watch as l,onMounted as s,onBeforeUnmount as t,openBlock as n,createElementBlock as c,createElementVNode as o}from"vue";import{isObject as r}from"lodash-es";import{fabric as i}from"../../../shared/utils/fabricjs/index.js";import{frontCanvasParams as u,palmCanvasParams as v,backCanvasParams as f}from"./config/index.js";import d from"./hooks/renderCanvas.js";const m={class:"c-body-select"},p={class:"canvas-module"},h=o("span",null,"正面",-1),g={class:"canvas-module"},b=o("span",null,"手",-1),k={class:"canvas-module"},j=o("span",null,"背面",-1);var y=e({__name:"index",props:{setting:{type:Object,default:()=>({})},fillColor:{type:String,default:"#E5E5E5"},canvasWidth:{type:Number,default:920}},emits:["select"],setup(e,{emit:y}){const w=e,C=a(null),O=a(),S=a(null),x=a(),E=a(null),_=a(),R=a([]),F=Number((w.canvasWidth/920).toFixed(2));function M(e,a){R.value.forEach((l=>{const s=l.data,t=Object.keys(s),n=Object.keys(e);t.forEach((l=>{a&&a(s,l),s[l].set("fill",""),s[l].set("isSelectMode",!1),n.includes(l)&&e[l]&&(s[l].set("fill",w.fillColor),s[l].set("isSelectMode",!0))})),l.canvas.requestRenderAll()}))}return l((()=>w.setting),(e=>{e&&r(e)&&M(e)}),{deep:!0}),s((async()=>{const e={props:w,emits:y};O.value=new i.Canvas(C.value,{width:360*F,height:700*F,backgroundColor:"#fff",selection:!1,preserveObjectStacking:!0}),_.value=new i.Canvas(E.value,{width:200*F,height:150*F,backgroundColor:"#fff",selection:!1,preserveObjectStacking:!0}),x.value=new i.Canvas(S.value,{width:360*F,height:700*F,backgroundColor:"#fff",selection:!1,preserveObjectStacking:!0});const a=await d(O.value,u,F,e),l=await d(_.value,v,F,e),s=await d(x.value,f,F,e);a&&s&&l&&(R.value=[a,l,s],M(w.setting,((e,a)=>{["1","4","8","22","18"].includes(a)&&e[a].moveTo(100)})))})),t((()=>{O.value.clear(),x.value.clear(),_.value.clear()})),(e,a)=>(n(),c("div",m,[o("div",p,[o("canvas",{ref_key:"canvasFrontRef",ref:C},null,512),h]),o("div",g,[o("canvas",{ref_key:"canvasPalmsRef",ref:E},null,512),b]),o("div",k,[o("canvas",{ref_key:"canvasBackRef",ref:S},null,512),j])]))}});export{y as default};
@@ -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,24 +70,28 @@ 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
  };
78
78
  signature: {
79
79
  type: StringConstructor;
80
80
  };
81
+ showLoading: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
81
85
  }, {
82
86
  $message: import("naive-ui").MessageApi;
83
87
  printInstance: import("./src/utils").Print | null;
84
88
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
85
89
  printParams: {
86
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
90
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
87
91
  };
88
92
  params: {
89
93
  default: () => never[];
90
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
94
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
91
95
  };
92
96
  btnText: {
93
97
  default: string;
@@ -150,21 +154,25 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
150
154
  };
151
155
  externalOptionConfig: {
152
156
  type: import("vue").PropType<Partial<{
153
- options: import("../../../es/shared/types").AnyObject[];
154
- 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;
155
159
  }>>;
156
160
  default: () => {};
157
161
  };
158
162
  signature: {
159
163
  type: StringConstructor;
160
164
  };
165
+ showLoading: {
166
+ type: BooleanConstructor;
167
+ default: boolean;
168
+ };
161
169
  }>> & {
162
170
  onError?: ((...args: any[]) => any) | undefined;
163
171
  onSuccess?: ((...args: any[]) => any) | undefined;
164
172
  onClickoutside?: ((...args: any[]) => any) | undefined;
165
173
  }>>;
166
174
  emit: (event: "success" | "error" | "clickoutside", ...args: any[]) => void;
167
- defaultFormatInfo: import("../../../es/shared/types").AnyObject;
175
+ defaultFormatInfo: import("../../shared/types").AnyObject;
168
176
  state: {
169
177
  spinning: boolean;
170
178
  visible: boolean;
@@ -179,12 +187,12 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
179
187
  watchPrintParamsReformatFn: null;
180
188
  spinTimer: null;
181
189
  };
182
- options: import("../../../es/shared/types").AnyObject[];
190
+ options: import("../../shared/types").AnyObject[];
183
191
  currentFormatItem: import("vue").ComputedRef<{} | undefined>;
184
192
  formatTitle: import("vue").ComputedRef<any>;
185
193
  getTemplateIdByFormatId: import("vue").ComputedRef<any>;
186
194
  buttonClick: (origin: string) => Promise<false | undefined>;
187
- renderLabel: (option: import("../../../es/shared/types").AnyObject) => JSX.Element;
195
+ renderLabel: (option: import("../../shared/types").AnyObject) => JSX.Element;
188
196
  callLocalServicesSuccessCb: (res: any, type: any) => void;
189
197
  callLocalServicesErrorCb: (res: unknown) => void;
190
198
  prevFnError: (type: string) => void;
@@ -194,7 +202,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
194
202
  handleClickPreview: () => Promise<void>;
195
203
  handleClickPdf: () => Promise<void>;
196
204
  handleClickEdit: () => void;
197
- handleSelect: (key: string, option: import("../../../es/shared/types").AnyObject) => Promise<void>;
205
+ handleSelect: (key: string, option: import("../../shared/types").AnyObject) => Promise<void>;
198
206
  handleClickOutside: () => void;
199
207
  instantiatePrintSDK: () => false | undefined;
200
208
  getDefaultFormatId: (list: any[], key: string | number) => Promise<any>;
@@ -636,7 +644,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
636
644
  file: import("naive-ui").UploadFileInfo;
637
645
  fileList: import("naive-ui").UploadFileInfo[];
638
646
  }) => Promise<unknown>;
639
- submit: (datas: import("../../../es/shared/types").AnyObject) => Promise<unknown>;
647
+ submit: (datas: import("../../shared/types").AnyObject) => Promise<unknown>;
640
648
  validateFormat: () => boolean;
641
649
  NForm: any;
642
650
  NFormItem: import("vue").DefineComponent<{
@@ -1848,11 +1856,11 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1848
1856
  }>;
1849
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<{
1850
1858
  printParams: {
1851
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
1859
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1852
1860
  };
1853
1861
  params: {
1854
1862
  default: () => never[];
1855
- type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
1863
+ type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1856
1864
  };
1857
1865
  btnText: {
1858
1866
  default: string;
@@ -1915,20 +1923,24 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1915
1923
  };
1916
1924
  externalOptionConfig: {
1917
1925
  type: import("vue").PropType<Partial<{
1918
- options: import("../../../es/shared/types").AnyObject[];
1919
- 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;
1920
1928
  }>>;
1921
1929
  default: () => {};
1922
1930
  };
1923
1931
  signature: {
1924
1932
  type: StringConstructor;
1925
1933
  };
1934
+ showLoading: {
1935
+ type: BooleanConstructor;
1936
+ default: boolean;
1937
+ };
1926
1938
  }>> & {
1927
1939
  onError?: ((...args: any[]) => any) | undefined;
1928
1940
  onSuccess?: ((...args: any[]) => any) | undefined;
1929
1941
  onClickoutside?: ((...args: any[]) => any) | undefined;
1930
1942
  }, {
1931
- params: import("../../../es/shared/types").AnyObject[];
1943
+ params: import("../../shared/types").AnyObject[];
1932
1944
  btnText: string;
1933
1945
  printText: string;
1934
1946
  previewText: string;
@@ -1944,8 +1956,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1944
1956
  btnprint: string;
1945
1957
  directPrint: boolean;
1946
1958
  externalOptionConfig: Partial<{
1947
- options: import("../../../es/shared/types").AnyObject[];
1948
- 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;
1949
1961
  }>;
1962
+ showLoading: boolean;
1950
1963
  }>>;
1951
1964
  export default ButtonPrint;
@@ -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<{
@@ -82,6 +82,10 @@ declare const _default: import("vue").DefineComponent<{
82
82
  signature: {
83
83
  type: StringConstructor;
84
84
  };
85
+ showLoading: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
85
89
  }, {
86
90
  $message: import("naive-ui").MessageApi;
87
91
  printInstance: Print | null;
@@ -165,6 +169,10 @@ declare const _default: import("vue").DefineComponent<{
165
169
  signature: {
166
170
  type: StringConstructor;
167
171
  };
172
+ showLoading: {
173
+ type: BooleanConstructor;
174
+ default: boolean;
175
+ };
168
176
  }>> & {
169
177
  onError?: ((...args: any[]) => any) | undefined;
170
178
  onSuccess?: ((...args: any[]) => any) | undefined;
@@ -1933,6 +1941,10 @@ declare const _default: import("vue").DefineComponent<{
1933
1941
  signature: {
1934
1942
  type: StringConstructor;
1935
1943
  };
1944
+ showLoading: {
1945
+ type: BooleanConstructor;
1946
+ default: boolean;
1947
+ };
1936
1948
  }>> & {
1937
1949
  onError?: ((...args: any[]) => any) | undefined;
1938
1950
  onSuccess?: ((...args: any[]) => any) | undefined;
@@ -1957,5 +1969,6 @@ declare const _default: import("vue").DefineComponent<{
1957
1969
  options: AnyObject[];
1958
1970
  onSelect: (key: string | number, option: AnyObject) => void;
1959
1971
  }>;
1972
+ showLoading: boolean;
1960
1973
  }>;
1961
1974
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as t,reactive as e,computed as r,onMounted as a,watch as n,openBlock as i,createElementBlock as s,Fragment as o,createVNode as l,unref as m,withCtx as p,renderSlot as d,withModifiers as u,createTextVNode as c,toDisplayString as f,mergeProps as v}from"vue";import{isObject as y}from"@vue/shared";import{useMessage as b,NDropdown as g,NButton as I,NIcon as P}from"naive-ui";import{ChevronDown as w}from"@vicons/ionicons5";import{Print as h}from"./utils/print.js";import{isIReport as F}from"./utils/browserPrint.js";import k from"./components/IdentityVerification.vue.js";import{format as T}from"date-fns";import{savePrivateFormatApi as x,getPrivateFormatApi as S}from"./api.js";var D=t({__name:"ButtonPrint",props:{printParams:{type:Array},params:{default:()=>[],type:Array},btnText:{default:"打印",type:String},printText:{default:"直接打印",type:String},previewText:{default:"打印预览",type:String},pdfLoadText:{default:"下载pdf",type:String},formatEditText:{default:"格式编辑",type:String},prevFn:{default:()=>Promise.resolve(),type:Function},queryPrintFormatByNumber:{default:()=>Promise.resolve({}),type:Function},queryTemplateParams:{default:()=>Promise.resolve({}),type:Function},strategy:{default:"MULTI",type:String},clickPrevFn:{default:()=>Promise.resolve(!0),type:Function},noDataMsg:{default:"请选中需要打印的数据",type:String},token:{type:String},printdlgshow:{default:"0",type:String},btnprint:{type:String,default:"1"},directPrint:{type:Boolean,default:!1},externalOptionConfig:{type:Object,default:()=>({})},signature:{type:String}},emits:["success","error","clickoutside"],setup(t,{expose:D,emit:O}){var j;const E=t,L=b();let M;const N={},V=e({spinning:!1,visible:!1,formatList:[],templateParams:{},printParams:[],currentFormatId:"",identityVerification:{visible:!1},isInited:!1,watchPrintParamsReformatFn:null,spinTimer:null}),C=e([{label:E.printText,key:"printText"},{label:E.previewText,key:"previewText"},{label:E.pdfLoadText,key:"downloadPdf"},{label:E.formatEditText,key:"formatEditText"},...(null==(j=E.externalOptionConfig)?void 0:j.options)||[]]),Y=r((()=>{if(!V.currentFormatId)return{};let t=V.currentFormatId;return V.formatList.find((e=>e.id===t))})),J=r((()=>{var t;return(null==(t=Y.value)?void 0:t.name)||"格式选择"})),U=r((()=>{let t=V.formatList.find((t=>t.id===V.currentFormatId));return null==t?void 0:t.templateId})),A=async t=>{if(E.directPrint){if(V.spinning)return;return"button"===t?void await nt():et()}return et()},B=t=>l("span",{class:{active:t.key===V.currentFormatId}},[t.label]),q=(t,e)=>{let r={type:e,formatId:V.currentFormatId,templateId:U.value};O("success",t,r)},R=t=>{O("error",t),y(t)&&"notInstalledApp"===t.type&&L.error(t.message)},_=t=>{O("error",{message:"前置条件执行错误",type:t,preExecution:!0})},z=(t=0)=>{var e;const r=(null==(e=E.printParams)?void 0:e.length)?E.printParams[t]:V.printParams[t];return JSON.stringify({...r||{},...E.token?{token:E.token}:{}})},H=()=>{var t,e;let r={},a={};if(null==(t=V.templateParams.customizeDataset)?void 0:t.length){const t=(null==(e=Object.keys(V.printParams[0].datasetData||{}))?void 0:e[0])||"",r=JSON.stringify(V.printParams.map((e=>JSON.parse(e.datasetData[t]))));a={datasetData:{}},a.datasetData[t]=r}else Object.keys(V.printParams[0]).forEach((t=>{a[t]=[],V.printParams.forEach((e=>{a[t].push(e[t])})),a[t]=a[t].join(",")}));return r=Object.assign({},JSON.parse(z(0)),a),JSON.stringify(r)},$=()=>{let t=V.printParams.length;const e=async e=>{try{--t<=0&&q(e,"print")}catch(t){console.log("error",t)}};E.prevFn("print").then((()=>{const t={formatId:V.currentFormatId,templateId:U.value,printdlgshow:E.printdlgshow,signature:E.signature};if("MULTI"===E.strategy)for(let r=0;r<V.printParams.length;r++)r>0&&(t.printdlgshow="0"),M.printDirect({...t,params:z(r)},e,R);else M.printDirect({...t,params:H()},(t=>{q(t,"print")}),R)})).catch((()=>{_("print")})).finally((()=>{V.visible=!1}))},G=async(t,e)=>{var r,a;switch(t){case"printText":$();break;case"previewText":(async()=>{E.prevFn("preview").then((()=>{const t="MULTI"===E.strategy?z():H(),e={formatId:V.currentFormatId,templateId:U.value,params:t,btnprint:E.btnprint,signature:E.signature};M.preview(e,(t=>{q(t,"preview")}),R)})).catch((()=>{_("preview")})).finally((()=>{V.visible=!1}))})();break;case"formatEditText":E.prevFn("edit").then((()=>{V.identityVerification.visible=!0})).catch((()=>{_("edit")})).finally((()=>{V.visible=!1}));break;case"downloadPdf":(async()=>{E.prevFn("download").then((()=>{const t="MULTI"===E.strategy?z():H(),e={formatId:V.currentFormatId,templateId:U.value,print:{print:"1",type:"1"},params:t,signature:E.signature};M.downloadPDF(e,(t=>q(t,"preview")),R)})).catch((()=>{_("download")})).finally((()=>{V.visible=!1}))})();break;default:{V.visible=!1;const n=V.formatList.find((e=>e.id===t))||{};if(Object.keys(n).length>0){V.currentFormatId=t;const[e]=C;e.label=(null==n?void 0:n.name)||e.label,await x({formatForms:[{...n}],name:N.name||n.templateName,number:N.number||n.number,templateId:N.templateId||n.templateId,...N.id?{id:N.id}:{}},{token:E.token})}else null==(a=null==(r=E.externalOptionConfig)?void 0:r.onSelect)||a.call(r,t,e);break}}},K=()=>{V.visible=!1,O("clickoutside")},Q=()=>(V.isInited=!1,V.spinning=!1,setTimeout((()=>{V.visible=!1}),0),!1),W=(t,e,r)=>{const a={};return e.forEach((e=>{let n=((t,e)=>{const r={DATE:"YYYY-MM-DD",DATETIME:"YYYY-MM-DD HH:mm:ss"};let a=e;return Object.keys(r).includes(t.type)&&e&&(a=T(e,r[t.type])),(null==t?void 0:t.defaultValue)||a})(e,t[e[r]]);t[e[r]]&&n&&(a[e[r]]=n)})),a},X=({customizeDataset:t=[],param:e=[]},r=[])=>r.map((r=>{let a={};return t.forEach((t=>{const e=t.dataSetting[0].selectFieldList;a.datasetData={[t.name]:JSON.stringify(W(r,e,"fieldName"))}})),a=Object.assign({},a,W(r,e,"key")),a})),Z=async t=>{var e;if(V.formatList=t?(t=>{let e=[];return t&&t.forEach((t=>{if(!t.format)return!1;e.push(...t.format.map((e=>Object.assign({},e,{templateName:t.name}))))})),e})(t.obj):[],V.currentFormatId=await(async(t,e)=>{var r;if(!(null==t?void 0:t.length))return"";const{data:a}=await S({templateId:t[0].templateId},{token:E.token});if("SUCCESS"===a.result){const{formatForms:e=[]}=a.map||{};Object.assign(N,a.map||{});const n=null==(r=null==e?void 0:e[0])?void 0:r.id;if(n&&t.map((t=>t.id)).includes(n))return n}const n=t.find((t=>1==t[e]));return(null==n?void 0:n.id)||t[0].id})(V.formatList,"defaultFlag"),!V.currentFormatId)return L.error("获取打印格式失败,请联系管理员!"),Q();(()=>{const t=V.formatList.map((t=>({label:t.name,key:t.id})));C.unshift({label:J.value,key:"format",children:t})})();let r=null==(e=await E.queryTemplateParams())?void 0:e.obj;if(!r||!U.value)return L.error("获取打印模板失败,请联系管理员!"),Q();V.templateParams=r,V.printParams=X(V.templateParams,E.params)},tt=async()=>{if(V.isInited)return!0;V.isInited=!0,V.spinning=!0,(()=>{if(M)return!1;M=new h})();const t=await E.queryPrintFormatByNumber();return await Z(t),V.spinning=!1,!0},et=async(t=!0)=>{var e;if(await E.clickPrevFn())if(null==(e=E.params)?void 0:e.length){if(!V.visible){if(!await tt())return!1}t&&(V.visible=!V.visible)}else L.warning(E.noDataMsg)},rt=()=>{V.watchPrintParamsReformatFn&&V.watchPrintParamsReformatFn(),V.isInited?V.printParams=X(V.templateParams,E.params):V.watchPrintParamsReformatFn=()=>n((()=>V.isInited),(t=>{if(!t)return!1;rt()}))},at=t=>{if(V.identityVerification.visible=!1,F(V.currentFormatId))return q(null,"edit");const e={formatId:V.currentFormatId,templateId:U.value,params:z(),token:t};M.editPrintFormat(e,(t=>{q(t,"edit")}),R)};async function nt(){await et(!1),$()}return a((()=>{V.isInited=!1})),n((()=>E.params),(t=>{if(!(null==t?void 0:t.length))return!1;rt()}),{deep:!0}),D({directPrint:nt}),(e,r)=>(i(),s(o,null,[l(m(g),{class:"c-dropdown",placement:"bottom-start",trigger:"click",show:V.visible,onClickoutside:K,options:C,onSelect:G,"render-label":B},{default:p((()=>[d(e.$slots,"button",{handleClickPrintBtn:et,printSpinning:V.spinning,printbtnText:t.btnText,printVisible:V.visible},(()=>[l(m(I),{class:"dropdown-button",onClick:r[1]||(r[1]=u((()=>A("button")),["stop"]))},{default:p((()=>[c(f(t.btnText)+" ",1),l(m(P),{component:m(w),style:{"margin-left":"5px"},onClick:r[0]||(r[0]=u((()=>A("icon")),["stop"]))},null,8,["component"])])),_:1})]))])),_:3},8,["show","options"]),l(k,v(e.$attrs,{modelValue:V.identityVerification.visible,"onUpdate:modelValue":r[2]||(r[2]=t=>V.identityVerification.visible=t),formatId:V.currentFormatId,templateId:m(U),onSuccess:at}),null,16,["modelValue","formatId","templateId"])],64))}});export{D as default};
1
+ import{defineComponent as t,reactive as e,computed as n,onMounted as i,watch as r,openBlock as a,createElementBlock as s,Fragment as o,createVNode as l,unref as p,withCtx as d,renderSlot as m,withModifiers as u,createTextVNode as c,toDisplayString as f,mergeProps as g}from"vue";import{isObject as y}from"@vue/shared";import{useMessage as v,NDropdown as b,NButton as I,NIcon as P}from"naive-ui";import{ChevronDown as h}from"@vicons/ionicons5";import{Print as w}from"./utils/print.js";import{isIReport as F}from"./utils/browserPrint.js";import k from"./components/IdentityVerification.vue.js";import{format as T}from"date-fns";import{savePrivateFormatApi as x,getPrivateFormatApi as S}from"./api.js";var L=t({__name:"ButtonPrint",props:{printParams:{type:Array},params:{default:()=>[],type:Array},btnText:{default:"打印",type:String},printText:{default:"直接打印",type:String},previewText:{default:"打印预览",type:String},pdfLoadText:{default:"下载pdf",type:String},formatEditText:{default:"格式编辑",type:String},prevFn:{default:()=>Promise.resolve(),type:Function},queryPrintFormatByNumber:{default:()=>Promise.resolve({}),type:Function},queryTemplateParams:{default:()=>Promise.resolve({}),type:Function},strategy:{default:"MULTI",type:String},clickPrevFn:{default:()=>Promise.resolve(!0),type:Function},noDataMsg:{default:"请选中需要打印的数据",type:String},token:{type:String},printdlgshow:{default:"0",type:String},btnprint:{type:String,default:"1"},directPrint:{type:Boolean,default:!1},externalOptionConfig:{type:Object,default:()=>({})},signature:{type:String},showLoading:{type:Boolean,default:!0}},emits:["success","error","clickoutside"],setup(t,{expose:L,emit:O}){var j;const D=t,E=v();let M;const N={},V=e({spinning:!1,visible:!1,formatList:[],templateParams:{},printParams:[],currentFormatId:"",identityVerification:{visible:!1},isInited:!1,watchPrintParamsReformatFn:null,spinTimer:null}),C=e([{label:D.printText,key:"printText"},{label:D.previewText,key:"previewText"},{label:D.pdfLoadText,key:"downloadPdf"},{label:D.formatEditText,key:"formatEditText"},...(null==(j=D.externalOptionConfig)?void 0:j.options)||[]]),B=n((()=>{if(!V.currentFormatId)return{};let t=V.currentFormatId;return V.formatList.find((e=>e.id===t))})),J=n((()=>{var t;return(null==(t=B.value)?void 0:t.name)||"格式选择"})),U=n((()=>{let t=V.formatList.find((t=>t.id===V.currentFormatId));return null==t?void 0:t.templateId})),A=async t=>{if(D.directPrint){if(V.spinning)return;return"button"===t?void await rt():et()}return et()},q=t=>l("span",{class:{active:t.key===V.currentFormatId}},[t.label]),R=(t,e)=>{V.spinning=!1;let n={type:e,formatId:V.currentFormatId,templateId:U.value};O("success",t,n)},_=t=>{V.spinning=!1,O("error",t),y(t)&&"notInstalledApp"===t.type&&E.error(t.message)},z=t=>{O("error",{message:"前置条件执行错误",type:t,preExecution:!0})},H=(t=0)=>{var e;const n=(null==(e=D.printParams)?void 0:e.length)?D.printParams[t]:V.printParams[t];return JSON.stringify({...n||{},...D.token?{token:D.token}:{}})},$=()=>{var t,e;let n={},i={};if(null==(t=V.templateParams.customizeDataset)?void 0:t.length){const t=(null==(e=Object.keys(V.printParams[0].datasetData||{}))?void 0:e[0])||"",n=JSON.stringify(V.printParams.map((e=>JSON.parse(e.datasetData[t]))));i={datasetData:{}},i.datasetData[t]=n}else Object.keys(V.printParams[0]).forEach((t=>{i[t]=[],V.printParams.forEach((e=>{i[t].includes(e[t])||i[t].push(e[t])})),i[t]=i[t].join(",")}));return n=Object.assign({},JSON.parse(H(0)),i),JSON.stringify(n)},G=()=>{let t=V.printParams.length;const e=async e=>{try{--t<=0&&R(e,"print")}catch(t){console.log("error",t)}};D.showLoading&&V.spinning||(V.spinning=!0,D.prevFn("print").then((()=>{const t={formatId:V.currentFormatId,templateId:U.value,printdlgshow:D.printdlgshow,signature:D.signature};if("MULTI"===D.strategy)for(let n=0;n<V.printParams.length;n++)n>0&&(t.printdlgshow="0"),M.printDirect({...t,params:H(n)},e,_);else M.printDirect({...t,params:$()},(t=>{R(t,"print")}),_)})).catch((()=>{z("print"),V.spinning=!1})).finally((()=>{V.visible=!1})))},K=async(t,e)=>{var n,i;switch(t){case"printText":G();break;case"previewText":(async()=>{D.showLoading&&V.spinning||(V.spinning=!0,D.prevFn("preview").then((()=>{const t="MULTI"===D.strategy?H():$(),e={formatId:V.currentFormatId,templateId:U.value,params:t,btnprint:D.btnprint,signature:D.signature};M.preview(e,(t=>{R(t,"preview")}),_)})).catch((()=>{z("preview"),V.spinning=!1})).finally((()=>{V.visible=!1})))})();break;case"formatEditText":D.showLoading&&V.spinning||(V.spinning=!0,D.prevFn("edit").then((()=>{V.identityVerification.visible=!0})).catch((()=>{z("edit")})).finally((()=>{V.visible=!1,V.spinning=!1})));break;case"downloadPdf":(async()=>{D.showLoading&&V.spinning||(V.spinning=!0,D.prevFn("download").then((()=>{const t="MULTI"===D.strategy?H():$(),e={formatId:V.currentFormatId,templateId:U.value,print:{print:"1",type:"1"},params:t,signature:D.signature};M.downloadPDF(e,(t=>R(t,"preview")),_)})).catch((()=>{z("download"),V.spinning=!1})).finally((()=>{V.visible=!1})))})();break;default:{V.visible=!1;const r=V.formatList.find((e=>e.id===t))||{};if(Object.keys(r).length>0){V.currentFormatId=t;const[e]=C;e.label=(null==r?void 0:r.name)||e.label,await x({formatForms:[{...r}],name:N.name||r.templateName,number:N.number||r.number,templateId:N.templateId||r.templateId,...N.id?{id:N.id}:{}},{token:D.token})}else null==(i=null==(n=D.externalOptionConfig)?void 0:n.onSelect)||i.call(n,t,e);break}}},Q=()=>{V.visible=!1,O("clickoutside")},W=()=>(V.isInited=!1,V.spinning=!1,setTimeout((()=>{V.visible=!1}),0),!1),X=(t,e,n)=>{const i={};return e.forEach((e=>{let r=((t,e)=>{const n={DATE:"yyyy-MM-dd",DATETIME:"yyyy-MM-dd HH:mm:ss"};let i=e;return Object.keys(n).includes(t.type)&&e&&e instanceof Date&&(i=T(e,n[t.type])),(null==t?void 0:t.defaultValue)||i})(e,t[e[n]]);t[e[n]]&&r&&(i[e[n]]=r)})),i},Y=({customizeDataset:t=[],param:e=[]},n=[])=>n.map((n=>{let i={};return t.forEach((t=>{const e=t.dataSetting[0].selectFieldList;i.datasetData={[t.name]:JSON.stringify(X(n,e,"fieldName"))}})),i=Object.assign({},i,X(n,e,"key")),i})),Z=async t=>{var e;if(V.formatList=t?(t=>{let e=[];return t&&t.forEach((t=>{if(!t.format)return!1;e.push(...t.format.map((e=>Object.assign({},e,{templateName:t.name}))))})),e})(t.obj):[],V.currentFormatId=await(async(t,e)=>{var n;if(!(null==t?void 0:t.length))return"";const{data:i}=await S({templateId:t[0].templateId},{token:D.token});if("SUCCESS"===i.result){const{formatForms:e=[]}=i.map||{};Object.assign(N,i.map||{});const r=null==(n=null==e?void 0:e[0])?void 0:n.id;if(r&&t.map((t=>t.id)).includes(r))return r}const r=t.find((t=>1==t[e]));return(null==r?void 0:r.id)||t[0].id})(V.formatList,"defaultFlag"),!V.currentFormatId)return E.error("获取打印格式失败,请联系管理员!"),W();(()=>{const t=V.formatList.map((t=>({label:t.name,key:t.id})));C.unshift({label:J.value,key:"format",children:t})})();let n=null==(e=await D.queryTemplateParams())?void 0:e.obj;if(!n||!U.value)return E.error("获取打印模板失败,请联系管理员!"),W();V.templateParams=n,V.printParams=Y(V.templateParams,D.params)},tt=async()=>{if(V.isInited)return!0;V.isInited=!0,V.spinning=!0,(()=>{if(M)return!1;M=new w})();const t=await D.queryPrintFormatByNumber();return await Z(t),V.spinning=!1,!0},et=async(t=!0)=>{var e,n;if(await D.clickPrevFn())if((null==(e=D.params)?void 0:e.length)||(null==(n=D.printParams)?void 0:n.length)){if(!V.visible){if(!await tt())return!1}t&&(V.visible=!V.visible)}else E.warning(D.noDataMsg)},nt=()=>{V.watchPrintParamsReformatFn&&V.watchPrintParamsReformatFn(),V.isInited?V.printParams=Y(V.templateParams,D.params):V.watchPrintParamsReformatFn=()=>r((()=>V.isInited),(t=>{if(!t)return!1;nt()}))},it=t=>{if(V.identityVerification.visible=!1,F(V.currentFormatId))return R(null,"edit");const e={formatId:V.currentFormatId,templateId:U.value,params:H(),token:t};M.editPrintFormat(e,(t=>{R(t,"edit")}),_)};async function rt(){await et(!1),G()}return i((()=>{V.isInited=!1})),r((()=>D.params),(t=>{if(!(null==t?void 0:t.length))return!1;nt()}),{deep:!0}),L({directPrint:rt}),(e,n)=>(a(),s(o,null,[l(p(b),{class:"c-dropdown",placement:"bottom-start",trigger:"click",show:V.visible,onClickoutside:Q,options:C,onSelect:K,"render-label":q},{default:d((()=>[m(e.$slots,"button",{handleClickPrintBtn:et,printSpinning:V.spinning,printbtnText:t.btnText,printVisible:V.visible},(()=>[l(p(I),{class:"dropdown-button",loading:t.showLoading&&V.spinning,onClick:n[1]||(n[1]=u((()=>A("button")),["stop"]))},{default:d((()=>[c(f(t.btnText)+" ",1),l(p(P),{component:p(h),style:{"margin-left":"5px"},onClick:n[0]||(n[0]=u((()=>A("icon")),["stop"]))},null,8,["component"])])),_:1},8,["loading"])]))])),_:3},8,["show","options"]),l(k,g(e.$attrs,{modelValue:V.identityVerification.visible,"onUpdate:modelValue":n[2]||(n[2]=t=>V.identityVerification.visible=t),formatId:V.currentFormatId,templateId:p(U),onSuccess:it}),null,16,["modelValue","formatId","templateId"])],64))}});export{L as default};
@@ -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?;
@@ -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>;