cnhis-design-vue 3.2.5 → 3.2.6-beta.1

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 (357) hide show
  1. package/README.md +87 -87
  2. package/es/components/annotation-edit/src/type.d.ts +1 -1
  3. package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +1 -1
  4. package/es/components/big-table/index.d.ts +6 -56
  5. package/es/components/big-table/src/BigTable.vue.d.ts +6 -56
  6. package/es/components/big-table/src/components/edit-form/edit-select.d.ts +1 -1
  7. package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +4 -4
  8. package/es/components/big-table/src/hooks/useEdit.d.ts +27 -27
  9. package/es/components/big-table/src/hooks/useSeparateRow.d.ts +1 -1
  10. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.d.ts +1 -1
  11. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.d.ts +1 -1
  12. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.d.ts +1 -1
  13. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.d.ts +1 -1
  14. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.d.ts +1 -1
  15. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/index.d.ts +13 -13
  16. package/es/components/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.d.ts +2 -2
  17. package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.d.ts +9 -9
  18. package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.d.ts +2 -2
  19. package/es/components/button-print/index.d.ts +43 -2917
  20. package/es/components/button-print/src/ButtonPrint.vue.d.ts +43 -2917
  21. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  22. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -1162
  23. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +6 -1458
  24. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +5 -1457
  25. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +18 -1457
  26. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
  27. package/es/components/calendar/index.d.ts +4 -4
  28. package/es/components/calendar/src/Calendar.vue.d.ts +4 -4
  29. package/es/components/calendar/src/types/index.d.ts +1 -1
  30. package/es/components/callback/src/components/dialog/drawer.vue.d.ts +2 -179
  31. package/es/components/callback/src/components/dialog/modal.vue.d.ts +1 -1
  32. package/es/components/callback/src/components/render/popupMaps.d.ts +120 -1701
  33. package/es/components/callback/src/types/index.d.ts +1 -1
  34. package/es/components/card-reader-sdk/src/components/readCardDialog.vue.d.ts +2 -2
  35. package/es/components/card-reader-sdk/src/constants/index.d.ts +56 -56
  36. package/es/components/card-reader-sdk/src/utils/ensureUID2IdCard.d.ts +1 -1
  37. package/es/components/classification/index.d.ts +4 -14
  38. package/es/components/classification/src/components/search-filter/index.vue.d.ts +24 -34
  39. package/es/components/classification/src/components/set-classification/index.vue.d.ts +26 -36
  40. package/es/components/classification/src/components/table-modal/index.vue.d.ts +1 -1
  41. package/es/components/classification/src/index.vue.d.ts +4 -14
  42. package/es/components/config-provider/src/interface.d.ts +2 -2
  43. package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
  44. package/es/components/drag-scroll/src/types.d.ts +2 -2
  45. package/es/components/expand-field/index.d.ts +41 -575
  46. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +56 -198
  47. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +36 -168
  48. package/es/components/expand-field/src/components/form.vue.d.ts +41 -526
  49. package/es/components/expand-field/src/index.vue.d.ts +41 -575
  50. package/es/components/expand-field/src/types/index.d.ts +1 -1
  51. package/es/components/fabric-chart/index.d.ts +10 -10
  52. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +10 -10
  53. package/es/components/fabric-chart/src/components/PopupMenu.d.ts +3 -3
  54. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +1 -1
  55. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +1 -1
  56. package/es/components/fabric-chart/src/hooks/temperature/useShadow.d.ts +1 -1
  57. package/es/components/fabric-chart/src/interface.d.ts +9 -9
  58. package/es/components/field-set/index.d.ts +5 -52
  59. package/es/components/field-set/src/FieldColor.vue.d.ts +14 -606
  60. package/es/components/field-set/src/FieldColor.vue2.js +1 -1
  61. package/es/components/field-set/src/FieldFilter.vue.d.ts +7 -20
  62. package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
  63. package/es/components/field-set/src/FieldSet.vue.d.ts +9 -10
  64. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  65. package/es/components/field-set/src/Index.vue.d.ts +6 -53
  66. package/es/components/field-set/src/Index.vue2.js +1 -1
  67. package/es/components/field-set/src/components/Row.vue.d.ts +2 -2
  68. package/es/components/field-set/src/components/condition.vue.d.ts +2 -2
  69. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +11 -589
  70. package/es/components/field-set/src/components/edit-filter.vue.d.ts +3 -3
  71. package/es/components/field-set/src/constants/index.d.ts +1 -1
  72. package/es/components/field-set/src/types/index.d.ts +8 -8
  73. package/es/components/field-set/style/index.css +1 -1
  74. package/es/components/form-config/index.d.ts +62 -4785
  75. package/es/components/form-config/src/FormConfig.vue.d.ts +41 -4764
  76. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +37 -98
  77. package/es/components/form-config/src/components/FormConfigCreator.vue2.js +1 -1
  78. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +2 -2
  79. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +22 -4651
  80. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +3 -36
  81. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +3 -3
  82. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +1 -1
  83. package/es/components/form-config/src/hooks/usePresetRenderer.d.ts +1 -1
  84. package/es/components/form-config/src/types/index.d.ts +8 -8
  85. package/es/components/form-render/index.d.ts +15 -75
  86. package/es/components/form-render/src/FormRender.vue.d.ts +10 -70
  87. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +15 -75
  88. package/es/components/form-render/src/components/renderer/combination/combination.d.ts +2 -2
  89. package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +2 -2
  90. package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +1 -1
  91. package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
  92. package/es/components/form-render/src/components/renderer/date.d.ts +2 -2
  93. package/es/components/form-render/src/components/renderer/index.d.ts +1 -1
  94. package/es/components/form-render/src/components/renderer/inputGroup.d.ts +1 -11
  95. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +4 -4
  96. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +9 -0
  97. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +1 -1
  98. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +10 -10
  99. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +15 -15
  100. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  101. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +2 -2
  102. package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
  103. package/es/components/form-render/src/hooks/useChangeContext.d.ts +1 -1
  104. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -4
  105. package/es/components/form-render/src/hooks/useFormContext.d.ts +1 -11
  106. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +1 -19
  107. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +1 -1
  108. package/es/components/form-render/src/types/fieldItem.d.ts +10 -10
  109. package/es/components/form-render/src/types/index.d.ts +13 -13
  110. package/es/components/form-render/src/utils/index.d.ts +1 -1
  111. package/es/components/iho-chat/index.d.ts +719 -0
  112. package/es/components/iho-chat/index.js +1 -0
  113. package/es/components/iho-chat/src/Index.vue.d.ts +723 -0
  114. package/es/components/iho-chat/src/Index.vue2.js +1 -0
  115. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +64 -0
  116. package/es/components/{biunique-chat → iho-chat}/src/components/ChatFile.vue2.js +1 -1
  117. package/es/components/{biunique-chat → iho-chat}/src/components/ChatFooter.vue.d.ts +24 -11
  118. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -0
  119. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +333 -0
  120. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -0
  121. package/es/components/{biunique-chat → iho-chat}/src/components/ChatMain.vue.d.ts +21 -209
  122. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -0
  123. package/es/components/{biunique-chat → iho-chat}/src/components/ChatRecord.vue.d.ts +1 -11
  124. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -0
  125. package/es/components/{biunique-chat → iho-chat}/src/components/ChatSearch.vue.d.ts +2 -2
  126. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +73 -0
  127. package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -0
  128. package/es/components/iho-chat/src/components/ContextMenu.d.ts +17 -0
  129. package/es/components/iho-chat/src/components/ContextMenu.js +1 -0
  130. package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +1 -0
  131. package/es/components/{biunique-chat → iho-chat}/src/components/PersonProfile.vue.d.ts +1 -9
  132. package/es/components/iho-chat/src/components/Video.vue.d.ts +37 -0
  133. package/es/components/{biunique-chat → iho-chat}/src/constants/index.d.ts +13 -1
  134. package/es/components/iho-chat/src/constants/index.js +1 -0
  135. package/es/components/iho-chat/src/hooks/useSession.js +1 -0
  136. package/es/components/{biunique-chat → iho-chat}/src/types/index.d.ts +2 -2
  137. package/es/components/{biunique-chat → iho-chat}/src/utils/index.d.ts +2 -0
  138. package/es/components/{biunique-chat → iho-chat}/src/utils/index.js +1 -1
  139. package/es/components/iho-chat/style/index.css +1 -0
  140. package/es/components/iho-table/index.d.ts +46 -1567
  141. package/es/components/iho-table/src/IhoTable.vue.d.ts +40 -1561
  142. package/es/components/iho-table/src/constants/index.d.ts +2 -2
  143. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +4 -4
  144. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +18 -18
  145. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +61 -61
  146. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +1 -1
  147. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
  148. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.d.ts +1 -1
  149. package/es/components/iho-table/src/hooks/useTableContext.d.ts +1 -1
  150. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +2 -335
  151. package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.js +1 -1
  152. package/es/components/iho-table/src/plugins/pagerScrollPlugin/types.d.ts +1 -1
  153. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +18 -17
  154. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +1 -1
  155. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  156. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +2 -2
  157. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +1 -1
  158. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +1 -1
  159. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.d.ts +1 -1
  160. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/types.d.ts +1 -1
  161. package/es/components/iho-table/src/types/index.d.ts +17 -17
  162. package/es/components/iho-table/src/types/pluginType.d.ts +13 -13
  163. package/es/components/iho-table/style/index.css +1 -1
  164. package/es/components/index.css +1 -1
  165. package/es/components/index.d.ts +2 -2
  166. package/es/components/index.js +1 -1
  167. package/es/components/info-header/index.d.ts +65 -1723
  168. package/es/components/info-header/src/InfoHeader.vue.d.ts +42 -1700
  169. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +27 -1547
  170. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +16 -1554
  171. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +31 -1629
  172. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +59 -119
  173. package/es/components/info-header/src/types/index.d.ts +4 -3
  174. package/es/components/keyboard/index.d.ts +1 -1
  175. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  176. package/es/components/map/src/types/index.d.ts +2 -2
  177. package/es/components/quick-search/index.d.ts +1 -295
  178. package/es/components/quick-search/src/index.vue.d.ts +1 -295
  179. package/es/components/recommend-search/index.d.ts +28 -28
  180. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +28 -28
  181. package/es/components/recommend-search/src/components/BaseSearch.d.ts +4 -4
  182. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +10 -10
  183. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +11 -11
  184. package/es/components/recommend-search/src/types/index.d.ts +2 -2
  185. package/es/components/scale-view/index.d.ts +6 -300
  186. package/es/components/scale-view/src/ScaleView.vue.d.ts +6 -300
  187. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  188. package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +2 -2
  189. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +2 -2
  190. package/es/components/scale-view/src/hooks/use-component.d.ts +3 -15
  191. package/es/components/scale-view/src/types/index.d.ts +1 -1
  192. package/es/components/search-cascader/index.d.ts +15 -14
  193. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +16 -15
  194. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  195. package/es/components/search-cascader/src/components/SearchMenu.d.ts +3 -3
  196. package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
  197. package/es/components/select-label/index.d.ts +3 -21
  198. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -7
  199. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  200. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -7
  201. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +1 -7
  202. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +1 -7
  203. package/es/components/select-label/src/index.vue.d.ts +2 -14
  204. package/es/components/select-label/src/types/index.d.ts +3 -3
  205. package/es/components/select-person/index.d.ts +36 -168
  206. package/es/components/select-person/src/SearchMultiple.vue.d.ts +3 -52
  207. package/es/components/select-person/src/SearchOrgAndStaff.vue.d.ts +2 -2
  208. package/es/components/select-person/src/SelectPerson.vue.d.ts +9 -117
  209. package/es/components/shortcut-provider/index.d.ts +1 -1
  210. package/es/components/shortcut-provider/src/types/index.d.ts +1 -1
  211. package/es/components/shortcut-setter/index.d.ts +23 -1606
  212. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +14 -1597
  213. package/es/components/step-notice/index.d.ts +94 -1615
  214. package/es/components/step-notice/src/StepNotice.vue.d.ts +79 -1600
  215. package/es/components/step-notice/src/components/NoticeItem.vue.d.ts +22 -22
  216. package/es/components/step-notice/src/components/NoticeItemAside.vue.d.ts +2 -2
  217. package/es/components/step-notice/src/components/NoticeOperationList.vue.d.ts +16 -16
  218. package/es/components/step-notice/src/hooks/useTheme.d.ts +1 -1
  219. package/es/components/step-notice/src/utils.d.ts +1 -1
  220. package/es/components/steps-wheel/index.d.ts +1 -1
  221. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
  222. package/es/components/table-export-field/index.d.ts +3 -630
  223. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +2 -51
  224. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +3 -581
  225. package/es/components/table-export-field/src/index.vue.d.ts +5 -632
  226. package/es/components/table-export-field/src/types/index.d.ts +1 -1
  227. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +2 -2
  228. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +2 -2
  229. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +2 -2
  230. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +2 -2
  231. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +22 -32
  232. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +2 -2
  233. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +2 -2
  234. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.d.ts +1 -11
  235. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +15 -15
  236. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +1 -1
  237. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +22 -32
  238. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +22 -32
  239. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -50
  240. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +3 -3
  241. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
  242. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
  243. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +4 -4
  244. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +1 -1
  245. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +2 -2
  246. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.d.ts +1 -11
  247. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +16 -16
  248. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +1 -1
  249. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +60 -119
  250. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +59 -108
  251. package/es/components/table-filter/src/types/index.d.ts +25 -25
  252. package/es/components/time-line/index.d.ts +1 -48
  253. package/es/components/time-line/src/TimeLine.vue.d.ts +4 -51
  254. package/es/components/tooth-bitmap/index.d.ts +3 -3
  255. package/es/components/tooth-bitmap/src/ToothBitmap.vue.d.ts +1 -1
  256. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  257. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  258. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  259. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  260. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  261. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  262. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  263. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  264. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  265. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  266. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  267. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  268. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  269. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  270. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  271. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  272. package/es/shared/assets/img/failure.png.js +1 -1
  273. package/es/shared/assets/img/no-permission.png.js +1 -1
  274. package/es/shared/assets/img/nodata.png.js +1 -1
  275. package/es/shared/assets/img/notfound.png.js +1 -1
  276. package/es/shared/assets/img/qr.png.js +1 -1
  277. package/es/shared/assets/img/success.png.js +1 -1
  278. package/es/shared/assets/img/table_style_2.png.js +1 -1
  279. package/es/shared/assets/img/video.png.js +1 -1
  280. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  281. package/es/shared/assets/img/xb_big.png.js +1 -1
  282. package/es/shared/assets/img/xb_small.png.js +1 -1
  283. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +3 -3
  284. package/es/shared/components/SlotRender/SlotRender.d.ts +4 -4
  285. package/es/shared/components/VueDraggable/src/core/renderHelper.d.ts +1 -1
  286. package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -1
  287. package/es/shared/hooks/useLevelSearchCascader.js +1 -1
  288. package/es/shared/hooks/useTheme.d.ts +2 -2
  289. package/es/shared/package.json.js +1 -1
  290. package/es/shared/types/business.d.ts +1 -1
  291. package/es/shared/types/index.d.ts +15 -15
  292. package/es/shared/utils/tapable/AsyncParallelBailHook.d.ts +1 -1
  293. package/es/shared/utils/tapable/AsyncParallelHook.d.ts +1 -1
  294. package/es/shared/utils/tapable/AsyncSeriesBailHook.d.ts +1 -1
  295. package/es/shared/utils/tapable/AsyncSeriesHook.d.ts +1 -1
  296. package/es/shared/utils/tapable/AsyncSeriesLoopHook.d.ts +1 -1
  297. package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.d.ts +1 -1
  298. package/es/shared/utils/tapable/SyncBailHook.d.ts +1 -1
  299. package/es/shared/utils/tapable/SyncHook.d.ts +1 -1
  300. package/es/shared/utils/tapable/SyncLoopHook.d.ts +1 -1
  301. package/es/shared/utils/tapable/SyncWaterfallHook.d.ts +1 -1
  302. package/es/shared/utils/vexutils.d.ts +2 -2
  303. package/package.json +6 -5
  304. package/es/components/biunique-chat/index.d.ts +0 -1692
  305. package/es/components/biunique-chat/index.js +0 -1
  306. package/es/components/biunique-chat/src/Index.vue.d.ts +0 -1695
  307. package/es/components/biunique-chat/src/Index.vue2.js +0 -1
  308. package/es/components/biunique-chat/src/components/ChatFile.vue.d.ts +0 -263
  309. package/es/components/biunique-chat/src/components/ChatFooter.vue2.js +0 -1
  310. package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +0 -733
  311. package/es/components/biunique-chat/src/components/ChatHeader.vue2.js +0 -1
  312. package/es/components/biunique-chat/src/components/ChatMain.vue2.js +0 -1
  313. package/es/components/biunique-chat/src/components/ChatRecord.vue2.js +0 -1
  314. package/es/components/biunique-chat/src/components/ChatSet.vue.d.ts +0 -258
  315. package/es/components/biunique-chat/src/components/ChatSet.vue2.js +0 -1
  316. package/es/components/biunique-chat/src/components/MessageTemplate.vue2.js +0 -1
  317. package/es/components/biunique-chat/src/constants/index.js +0 -1
  318. package/es/components/biunique-chat/src/hooks/useSession.js +0 -1
  319. package/es/components/biunique-chat/style/index.css +0 -1
  320. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  321. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  322. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  323. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  324. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  325. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  326. package/es/shared/utils/tapable/index.d.ts +0 -139
  327. /package/es/components/{biunique-chat → iho-chat}/src/Index.vue.js +0 -0
  328. /package/es/components/{biunique-chat → iho-chat}/src/api/index.d.ts +0 -0
  329. /package/es/components/{biunique-chat → iho-chat}/src/api/index.js +0 -0
  330. /package/es/components/{biunique-chat → iho-chat}/src/components/ChatFile.vue.js +0 -0
  331. /package/es/components/{biunique-chat → iho-chat}/src/components/ChatFooter.vue.js +0 -0
  332. /package/es/components/{biunique-chat → iho-chat}/src/components/ChatHeader.vue.js +0 -0
  333. /package/es/components/{biunique-chat → iho-chat}/src/components/ChatMain.vue.js +0 -0
  334. /package/es/components/{biunique-chat → iho-chat}/src/components/ChatRecord.vue.js +0 -0
  335. /package/es/components/{biunique-chat → iho-chat}/src/components/ChatSearch.vue.js +0 -0
  336. /package/es/components/{biunique-chat → iho-chat}/src/components/ChatSearch.vue2.js +0 -0
  337. /package/es/components/{biunique-chat → iho-chat}/src/components/ChatSet.vue.js +0 -0
  338. /package/es/components/{biunique-chat → iho-chat}/src/components/MessageTemplate.vue.d.ts +0 -0
  339. /package/es/components/{biunique-chat → iho-chat}/src/components/MessageTemplate.vue.js +0 -0
  340. /package/es/components/{biunique-chat → iho-chat}/src/components/PersonProfile.vue.js +0 -0
  341. /package/es/components/{biunique-chat → iho-chat}/src/components/PersonProfile.vue2.js +0 -0
  342. /package/es/components/{biunique-chat → iho-chat}/src/components/SiderList.vue.d.ts +0 -0
  343. /package/es/components/{biunique-chat → iho-chat}/src/components/SiderList.vue.js +0 -0
  344. /package/es/components/{biunique-chat → iho-chat}/src/components/SiderList.vue2.js +0 -0
  345. /package/es/components/{biunique-chat → iho-chat}/src/hooks/index.d.ts +0 -0
  346. /package/es/components/{biunique-chat → iho-chat}/src/hooks/index.js +0 -0
  347. /package/es/components/{biunique-chat → iho-chat}/src/hooks/useScrollLoading.d.ts +0 -0
  348. /package/es/components/{biunique-chat → iho-chat}/src/hooks/useScrollLoading.js +0 -0
  349. /package/es/components/{biunique-chat → iho-chat}/src/hooks/useSession.d.ts +0 -0
  350. /package/es/components/{biunique-chat → iho-chat}/src/hooks/useState.d.ts +0 -0
  351. /package/es/components/{biunique-chat → iho-chat}/src/hooks/useState.js +0 -0
  352. /package/es/components/{biunique-chat → iho-chat}/src/types/index.js +0 -0
  353. /package/es/components/{biunique-chat → iho-chat}/src/utils/chatSock.d.ts +0 -0
  354. /package/es/components/{biunique-chat → iho-chat}/src/utils/chatSock.js +0 -0
  355. /package/es/components/{biunique-chat → iho-chat}/src/utils/emoji.d.ts +0 -0
  356. /package/es/components/{biunique-chat → iho-chat}/src/utils/emoji.js +0 -0
  357. /package/es/components/{biunique-chat → iho-chat}/style/iconfont.ttf +0 -0
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as s,reactive as o,provide as t,onBeforeUnmount as r,openBlock as n,createElementBlock as i,normalizeStyle as a,unref as c,createVNode as u,withCtx as d,createBlock as m,Fragment as p,createElementVNode as l,renderSlot as h}from"vue";import{NConfigProvider as f,NSpin as v,NLayout as S,NLayoutContent as g}from"naive-ui";import b from"./components/SiderList.vue.js";import I from"./components/ChatHeader.vue.js";import y from"./components/ChatMain.vue.js";import k from"./components/ChatFooter.vue.js";import j from"./components/ChatSearch.vue.js";import{ChatSock as _}from"./utils/chatSock.js";import{instanceAxios as C,readMessageApi as L}from"./api/index.js";import{useTheme as N}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isNumber as x}from"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{SUBSCRIBE_MESSAGE_TYPE as M}from"./constants/index.js";import{InjectionIChatState as U,InjectionIChatStompClient as T,InjectionIChatEmits as w}from"./types/index.js";import{isAudioOrVideo as A}from"./utils/index.js";import{useSession as E}from"./hooks/useSession.js";const O={class:"iho-chat__header"},R={class:"toolbar"};var V=e({__name:"Index",props:{token:{type:String,required:!0},orgId:{type:[String,Number],required:!0},userId:{type:String,required:!0},baseURL:{type:String,default:"/fdp-chat"}},emits:["template-click","unread-message-update"],setup(e,{expose:V,emit:q}){const J=e;C.defaults.baseURL=J.baseURL,C.defaults.headers.Authorization="bearer "+J.token;const F=N(),G=s(!1),H=s(),$=s(!1),z=o({orgId:J.orgId,currentSessionItem:{},id:"",userInfo:{id:J.userId,sdkAppId:1600034888},msgList:[],currentMsg:{},isAppendMsg:!1,sessionList:[],isChangeSession:!1,updateSessionItem:{},isUpdateSession:!1,currentReferenceMsg:null});t(U,z),t(T,H),t(w,q);const{openSession:D,closeSession:W,getCurrentSession:B,setSessionList:K,setUpdateSessionItem:P}=E(z);function Q(){const e={headers:{AccessToken:J.token,UserId:J.userId},heartbeatFn(){try{H.value.send("test")}catch(e){H.value.disconnect(),Q()}},connectCb(){console.log("连接成功"),H.value.subscribe("/user/topic/single",(async({body:e})=>{try{console.log(JSON.parse(e),"订阅新增消息");const s=JSON.parse(e),{messageVo:o,sessionVo:t}=s;switch(s.event){case M.MESSAGE:{if(s.messageVo.sender===z.userInfo.id)return;const e={receiver:o.sender,lastMessageSendTime:o.sendTime,sortTime:o.sendTime,lastMessage:o.content};o.sender===z.currentSessionItem.receiver&&(z.currentMsg=o,A(o.content)||(z.isAppendMsg=!0,await L({chatType:"SINGLE",messageIdSet:o.id,receiver:z.userInfo.id,sender:o.sender})),e.unreadNum=0),P(e),A(o.content)&&($.value=!0);break}case M.NEW_SESSION:P(t)}}catch(e){console.log(e)}})),H.value.subscribe("/app/sessionList",(({body:e})=>{try{const s=JSON.parse(e),{currentUser:o,sessionVos:t}=s;if(console.log("body",s),Object.assign(z.userInfo,o),!(null==t?void 0:t.length))return;K(t)}catch(e){console.log(e)}}))},errorCb(e,s){console.log("断线了,正在重连...")}};H.value=new _("/fdp-chat/websocket",e)}return async function(){Q()}(),r((()=>{var e;null==(e=H.value)||e.disconnect()})),V({getUnreadData:function(){return z.sessionList.filter((e=>x(e.unreadNum)&&e.unreadNum>0))},openSession:D,closeSession:W,getCurrentSession:B}),(e,s)=>(n(),i("div",{class:"iho-chat",style:a(c(F))},[u(c(f),{abstract:"",namespace:"iho-chat__popover"},{default:d((()=>[G.value?(n(),m(c(v),{key:0,stroke:"#5585f5"})):(n(),i(p,{key:1},[l("div",O,[u(j),l("div",R,[h(e.$slots,"toolbar")])]),u(c(S),{class:"iho-chat__body","has-sider":""},{default:d((()=>[u(b),u(c(g),{class:"chat-content"},{default:d((()=>[u(I),u(y),u(k,{"show-av":$.value},null,8,["show-av"])])),_:1}),h(e.$slots,"external")])),_:3})],64))])),_:3})],4))}});export{V as default};
@@ -0,0 +1,64 @@
1
+ import { AnyObject } from '../../../../shared/types';
2
+ import { downloadFile } from '../utils';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ type: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ visible: {
9
+ type: BooleanConstructor;
10
+ };
11
+ }, {
12
+ cssVars: import("vue").ComputedRef<AnyObject>;
13
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
14
+ type: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ visible: {
19
+ type: BooleanConstructor;
20
+ };
21
+ }>> & {}>>;
22
+ state: import("../types").IState;
23
+ imageList: import("vue").Ref<AnyObject[]>;
24
+ fileList: import("vue").Ref<AnyObject[]>;
25
+ imageRef: import("vue").Ref<any>;
26
+ fileRef: import("vue").Ref<any>;
27
+ keyword: import("vue").Ref<any>;
28
+ handleInput: () => void;
29
+ currentInfo: {
30
+ page: number;
31
+ hasMore: boolean;
32
+ lastSendTime: string;
33
+ };
34
+ handleSearch: () => Promise<void>;
35
+ formatImageList: (data: AnyObject[]) => {
36
+ label: string;
37
+ list: unknown;
38
+ }[];
39
+ resetAndSearch: () => void;
40
+ title: import("vue").ComputedRef<"聊天图片" | "聊天文件">;
41
+ getDetail: (item: AnyObject) => string;
42
+ getFileType: (item: AnyObject) => any;
43
+ NModal: any;
44
+ NImageGroup: any;
45
+ NImage: any;
46
+ NInput: any;
47
+ NIcon: any;
48
+ SearchOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
49
+ OpenOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
50
+ DownloadOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
51
+ downloadFile: typeof downloadFile;
52
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
53
+ type: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ visible: {
58
+ type: BooleanConstructor;
59
+ };
60
+ }>>, {
61
+ type: string;
62
+ visible: boolean;
63
+ }>;
64
+ export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as s,watch as a,openBlock as o,createBlock as n,unref as i,withCtx as l,withDirectives as r,createElementVNode as c,createVNode as m,createElementBlock as p,Fragment as d,renderList as u,toDisplayString as y,vShow as f,normalizeStyle as g}from"vue";import{NModal as v,NImageGroup as h,NImage as w,NInput as b,NIcon as M}from"naive-ui";import{SearchOutline as k,OpenOutline as T,DownloadOutline as I}from"@vicons/ionicons5";import{searchChatRecordApi as S}from"../api/index.js";import{useScrollLoading as _}from"../hooks/useScrollLoading.js";import{format as x,isSameWeek as j,isSameMonth as A}from"date-fns";import{useState as H}from"../hooks/useState.js";import{getFileSize as D,downloadFile as C}from"../utils/index.js";import{last as z}from"lodash-es";import{useDebounceFn as L}from"@vueuse/core";import{useTheme as U}from"../../../../shared/hooks/useTheme.js";import"@vue/shared";import"../../../../shared/utils/index.js";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";const E={class:"label"},O={class:"image-box"},$={class:"file-type"},F={class:"text"},K={class:"name"},P={class:"detail"},R={class:"opt-box"};var B=e({__name:"ChatFile",props:{type:{type:String,default:"image"},visible:{type:Boolean}},setup(e){const B=e,G=U(),{state:N}=H(),q=t([]),J=t([]),Q=t(),V=t(),W=t(),X=L(ee,500),Y={page:0,hasMore:!0,lastSendTime:x(new Date,"yyyy-MM-dd HH:mm:ss")};async function Z(){var e;try{if(!Y.hasMore)return;Y.page++;const t=await S({orgId:N.orgId,keyword:W.value,endTime:"",startTime:"",lastSendTime:Y.lastSendTime,memberIdSet:[],page:Y.page,recordType:"image"===B.type?"IMAGE":"FILE",sessionKey:N.currentSessionItem.sessionKey,userId:N.userInfo.id});Array.isArray(t)&&0!==t.length&&Array.isArray(t[0].recordList)||(Y.hasMore=!1,console.log("接口返回不是一个数组,或者没有更多消息了"));let s=t||[];if(Array.isArray(t)&&t.length>0&&(s=t[0].recordList),Y.lastSendTime=null==(e=z(s))?void 0:e.sendTime,"image"===B.type){const e=function(e){const t={};e.forEach((e=>{const s=new Date(e.sendTime);let a=x(s,"yyyy年MM月");j(s,new Date)?a="本周":A(s,new Date)&&(a="本月"),t[a]||(t[a]=[]),t[a].push(e.content.msg)}));return Object.entries(t).map((([e,t])=>({label:e,list:t})))}(s);q.value=Y.page>1?q.value.concat(e):e}else{const e=s.map((e=>new Promise((async t=>{const s=await D(e.content.fileUrl);t({...e,size:s})})))),t=await Promise.all(e);J.value=Y.page>1?J.value.concat(t):t}}catch(e){console.log(e)}}function ee(){Object.assign(Y,{page:0,hasMore:!0,lastSendTime:x(new Date,"yyyy-MM-dd HH:mm:ss")}),Z()}_(Q,(()=>{Z()})),_(V,(()=>{Z()}));const te=s((()=>"image"===B.type?"聊天图片":"聊天文件"));function se(e){const{size:t,sendTime:s,senderName:a}=e;return`${t} · ${x(new Date(s),"yyyy/MM/dd HH:mm")} ${a}`}function ae(e){var t;const s=(null==(t=e.content)?void 0:t.msg)||"",a=s.lastIndexOf(".");if(-1!==a){return s.charAt(a+1).toUpperCase()}return"?"}return a((()=>B.visible),(e=>{e?ee():W.value=""})),(t,s)=>(o(),n(i(v),{preset:"dialog",title:i(te),"show-icon":!1,"auto-focus":!1,class:"c-chat-dialog"},{default:l((()=>[r(c("div",{class:"c-chat-dialog__content c-chat-image-wrapper",ref_key:"imageRef",ref:Q},[m(i(h),{"show-toolbar-tooltip":""},{default:l((()=>[(o(!0),p(d,null,u(q.value,(e=>(o(),p("div",{class:"image-item",key:e.label},[c("span",E,y(e.label),1),c("div",O,[(o(!0),p(d,null,u(e.list,(e=>(o(),n(i(w),{key:e,width:"80",height:"80",src:e},null,8,["src"])))),128))])])))),128))])),_:1})],512),[[f,"image"===e.type]]),r(c("div",{class:"c-chat-dialog__content c-chat-file-wrapper",style:g(i(G))},[m(i(b),{clearable:"",placeholder:"搜索文件",value:W.value,"onUpdate:value":s[0]||(s[0]=e=>W.value=e),valueModifiers:{trim:!0},onInput:i(X)},{prefix:l((()=>[m(i(M),{component:i(k)},null,8,["component"])])),_:1},8,["value","onInput"]),c("div",{class:"file-list-box",ref_key:"fileRef",ref:V},[(o(!0),p(d,null,u(J.value,((e,t)=>(o(),p("div",{class:"file-item",key:t},[c("span",$,y(ae(e)),1),c("div",F,[c("span",K,y(e.content.msg),1),c("span",P,y(se(e)),1)]),c("div",R,[m(i(M),{size:16,component:i(T)},null,8,["component"]),m(i(M),{size:16,component:i(I),onClick:()=>i(C)(e.content.fileUr,e.content.msg)},null,8,["component","onClick"])])])))),128))],512)],4),[[f,"image"!==e.type]])])),_:1},8,["title"]))}});export{B as default};
1
+ import{defineComponent as e,ref as t,computed as s,watch as o,openBlock as a,createBlock as i,unref as n,withCtx as l,withDirectives as r,createElementVNode as c,createVNode as m,createElementBlock as p,Fragment as d,renderList as u,toDisplayString as y,vShow as f,normalizeStyle as h}from"vue";import{NModal as g,NImageGroup as v,NImage as w,NInput as b,NIcon as M}from"naive-ui";import{SearchOutline as k,OpenOutline as T,DownloadOutline as I}from"@vicons/ionicons5";import{searchChatRecordApi as S}from"../api/index.js";import{useScrollLoading as _}from"../hooks/useScrollLoading.js";import{format as x,isSameWeek as j,isSameMonth as A}from"date-fns";import{useState as H}from"../hooks/useState.js";import{getFileSize as D,downloadFile as C}from"../utils/index.js";import{last as z}from"lodash-es";import{useDebounceFn as L}from"@vueuse/core";import{useTheme as U}from"../../../../shared/hooks/useTheme.js";import"@vue/shared";import"../../../../shared/utils/index.js";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";const E={class:"label"},O={class:"image-box"},$={class:"file-type"},F={class:"text"},K={class:"name"},P={class:"detail"},R={class:"opt-box"};var B=e({__name:"ChatFile",props:{type:{type:String,default:"image"},visible:{type:Boolean}},setup(e){const B=e,G=U(),{state:N}=H(),q=t([]),J=t([]),Q=t(),V=t(),W=t(),X=L(ee,500),Y={page:0,hasMore:!0,lastSendTime:x(new Date,"yyyy-MM-dd HH:mm:ss")};async function Z(){var e;try{if(!Y.hasMore)return;Y.page++;const t=await S({orgId:N.orgId,keyword:W.value,endTime:"",startTime:"",lastSendTime:Y.lastSendTime,memberIdSet:[],page:Y.page,recordType:"image"===B.type?"IMAGE":"FILE",sessionKey:N.currentSessionItem.sessionKey,userId:N.userInfo.id});Array.isArray(t)&&0!==t.length&&Array.isArray(t[0].recordList)||(Y.hasMore=!1,console.log("接口返回不是一个数组,或者没有更多消息了"));let s=t||[];if(Array.isArray(t)&&t.length>0&&(s=t[0].recordList),Y.lastSendTime=null==(e=z(s))?void 0:e.sendTime,"image"===B.type){const e=function(e){const t={};e.forEach((e=>{const s=new Date(e.sendTime);let o=x(s,"yyyy年MM月");j(s,new Date)?o="本周":A(s,new Date)&&(o="本月"),t[o]||(t[o]=[]),t[o].push(e.content.msg)}));return Object.entries(t).map((([e,t])=>({label:e,list:t})))}(s);q.value=Y.page>1?q.value.concat(e):e}else{const e=s.map((e=>new Promise((async t=>{const s=await D(e.content.fileUrl);t({...e,size:s})})))),t=await Promise.all(e);J.value=Y.page>1?J.value.concat(t):t}}catch(e){console.log(e)}}function ee(){Object.assign(Y,{page:0,hasMore:!0,lastSendTime:x(new Date,"yyyy-MM-dd HH:mm:ss")}),Z()}_(Q,(()=>{Z()})),_(V,(()=>{Z()}));const te=s((()=>"image"===B.type?"聊天图片":"聊天文件"));function se(e){const{size:t,sendTime:s,senderName:o}=e;return`${t} · ${x(new Date(s),"yyyy/MM/dd HH:mm")} ${o}`}function oe(e){var t;const s=(null==(t=e.content)?void 0:t.msg)||"",o=s.lastIndexOf(".");if(-1!==o){return s.charAt(o+1).toUpperCase()}return"?"}return o((()=>B.visible),(e=>{e?ee():W.value=""})),(t,s)=>(a(),i(n(g),{preset:"dialog",title:n(te),"show-icon":!1,"auto-focus":!1,class:"iho-chat-dialog"},{default:l((()=>[r(c("div",{class:"iho-chat-dialog__content iho-chat-image-wrapper",ref_key:"imageRef",ref:Q},[m(n(v),{"show-toolbar-tooltip":""},{default:l((()=>[(a(!0),p(d,null,u(q.value,(e=>(a(),p("div",{class:"image-item",key:e.label},[c("span",E,y(e.label),1),c("div",O,[(a(!0),p(d,null,u(e.list,(e=>(a(),i(n(w),{key:e,width:"80",height:"80",src:e},null,8,["src"])))),128))])])))),128))])),_:1})],512),[[f,"image"===e.type]]),r(c("div",{class:"iho-chat-dialog__content iho-chat-file-wrapper",style:h(n(G))},[m(n(b),{clearable:"",placeholder:"搜索文件",value:W.value,"onUpdate:value":s[0]||(s[0]=e=>W.value=e),valueModifiers:{trim:!0},onInput:n(X)},{prefix:l((()=>[m(n(M),{component:n(k)},null,8,["component"])])),_:1},8,["value","onInput"]),c("div",{class:"file-list-box",ref_key:"fileRef",ref:V},[(a(!0),p(d,null,u(J.value,((e,t)=>(a(),p("div",{class:"file-item",key:t},[c("span",$,y(oe(e)),1),c("div",F,[c("span",K,y(e.content.msg),1),c("span",P,y(se(e)),1)]),c("div",R,[m(n(M),{size:16,component:n(T)},null,8,["component"]),m(n(M),{size:16,component:n(I),onClick:()=>n(C)(e.content.fileUr,e.content.msg)},null,8,["component","onClick"])])])))),128))],512)],4),[[f,"image"!==e.type]])])),_:1},8,["title"]))}});export{B as default};
@@ -2,13 +2,27 @@ import { UploadFileInfo } from 'naive-ui';
2
2
  import { AnyObject } from '../../../../shared/types';
3
3
  import { MESSAGE_TYPE } from '../constants';
4
4
  import { simplifyMessage } from '../utils';
5
- declare const _default: import("vue").DefineComponent<{}, {
5
+ declare const _default: import("vue").DefineComponent<{
6
+ showAv: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ }, {
11
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
12
+ showAv: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ }>> & {}>>;
6
17
  inputRef: import("vue").Ref<HTMLDivElement | undefined>;
7
18
  content: import("vue").Ref<string>;
8
19
  state: import("../types").IState;
9
20
  stompClient: import("vue").Ref<import("../utils/chatSock").ChatSock>;
10
21
  setCurrentSessionItem: (item: AnyObject) => void;
11
22
  showEmoji: import("vue").Ref<boolean>;
23
+ showVideo: import("vue").Ref<boolean>;
24
+ callMode: import("vue").Ref<string>;
25
+ handleCall: (chatMessageType: string) => void;
12
26
  handleKeyDown: (event: KeyboardEvent) => void;
13
27
  isWrap: (event: KeyboardEvent) => boolean;
14
28
  handleInput: () => void;
@@ -23,15 +37,7 @@ declare const _default: import("vue").DefineComponent<{}, {
23
37
  NPopover: any;
24
38
  NTooltip: any;
25
39
  NUpload: any;
26
- NUploadTrigger: import("vue").DefineComponent<{
27
- abstract: BooleanConstructor;
28
- }, () => JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
- [key: string]: any;
30
- }>[] | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
- abstract: BooleanConstructor;
32
- }>>, {
33
- abstract: boolean;
34
- }>;
40
+ NUploadTrigger: any;
35
41
  NIcon: any;
36
42
  emojis: {
37
43
  default: string[][];
@@ -40,5 +46,12 @@ declare const _default: import("vue").DefineComponent<{}, {
40
46
  MESSAGE_TYPE: typeof MESSAGE_TYPE;
41
47
  CloseCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
42
48
  simplifyMessage: typeof simplifyMessage;
43
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
49
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
50
+ showAv: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ }>>, {
55
+ showAv: boolean;
56
+ }>;
44
57
  export default _default;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,watch as n,withDirectives as i,openBlock as o,createElementBlock as s,normalizeStyle as a,unref as r,createElementVNode as l,toDisplayString as c,createVNode as u,createCommentVNode as d,withCtx as f,Fragment as m,renderList as p,createBlock as g,createTextVNode as v,vShow as y}from"vue";import{NIcon as h,NPopover as M,NButton as k,NTooltip as E,NUpload as C,NUploadTrigger as b}from"naive-ui";import{format as T}from"date-fns";import{useState as x}from"../hooks/useState.js";import{useSession as I}from"../hooks/useSession.js";import{emojis as w}from"../utils/emoji.js";import{MESSAGE_TYPE as _}from"../constants/index.js";import{uploadFileApi as S}from"../api/index.js";import{CloseCircleOutline as z}from"@vicons/ionicons5";import{cloneDeep as A}from"lodash-es";import{simplifyMessage as O}from"../utils/index.js";const R={key:0,class:"reference-content-box"},j={class:"reference-content"},D=["innerHTML"],L={class:"tool-box"},q=l("i",{class:"chat--iconfont chat--icon-face"},null,-1),F={class:"emoji-box"},H=l("span",null,"默认表情",-1),K={class:"list-box"},N=["src"],V=l("i",{class:"chat--iconfont chat--icon-good"},null,-1),G=l("i",{class:"chat--iconfont chat--icon-image"},null,-1),U=l("i",{class:"chat--iconfont chat--icon-folder"},null,-1),J={class:"btn-box"},B=l("span",{class:"tip"},"Enter 发送, Shift + Enter 换行",-1);var P=e({__name:"ChatFooter",props:{showAv:{type:Boolean,default:!1}},setup(e){const P=e,X=t(),Y=t(""),{state:Q,stompClient:W}=x(),{setCurrentSessionItem:Z}=I(Q),$=t(!1),ee=t(!1);function te(e){["Enter"].includes(e.key)&&(function(e){return e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}(e)||(e.preventDefault(),oe()))}function ne(){var e,t;Y.value=(null==(t=null==(e=X.value)?void 0:e.innerText)?void 0:t.trim())||""}async function ie(e,t){const{file:n,name:i}=e.file,o=new FormData;o.append("sender",Q.userInfo.id),o.append("file",n);const s=await S(o);if(!s)return console.log("上传失败");se({chatMessageType:t,msg:t===_.FILE?i:s,url:s})}function oe(){if(!(Y.value.length>2e3))return Y.value?void se({msg:Y.value}):console.log("请输入内容");console.log("请控制在2000字以内")}async function se(e){const{chatMessageType:t=_.TEXT,msg:n,url:i}=e,o={msg:n,chatMessageType:t};t===_.FILE&&(o.fileUrl=i),[_.TEXT,_.BLEND].includes(t)&&(X.value.innerHTML="",Y.value=""),Q.currentReferenceMsg&&(o.referenceContent=A(Q.currentReferenceMsg),Q.currentReferenceMsg=null);const s=T(new Date,"yyyy-MM-dd HH:mm:ss");Q.currentMsg={content:o,sender:Q.userInfo.id,senderName:Q.userInfo.name,senderAvatar:Q.userInfo.avatar,id:"",sendTime:s,sending:!0,fail:!1},[_.AUDIO,_.VIDEO].includes(t)||(Q.isAppendMsg=!0),Z({lastMessageSendTime:s,lastMessage:o,sortTime:s});try{W.value.send("/app/chat/send",{},JSON.stringify({chatType:"SINGLE",content:o,receiver:Q.currentSessionItem.receiver})),Q.currentMsg={...Q.currentMsg,fail:!1}}catch(e){Q.currentMsg={...Q.currentMsg,fail:!0}}finally{Q.currentMsg={...Q.currentMsg,sending:!1}}}return t(""),n((()=>Q.currentReferenceMsg),(e=>{var t;e&&(null==(t=X.value)||t.focus())})),n((()=>P.showAv),(e=>{e&&(ee.value=!0)})),(e,t)=>i((o(),s("section",{class:"chat-footer",style:a({cursor:r(Q).id?"default":"not-allowed"})},[r(Q).currentReferenceMsg?(o(),s("div",R,[l("div",j,[l("span",null,c(r(Q).currentReferenceMsg.senderName)+":",1),l("pre",{innerHTML:r(O)(r(Q).currentReferenceMsg.content)},null,8,D)]),u(r(h),{component:r(z),onClick:t[0]||(t[0]=()=>r(Q).currentReferenceMsg=null)},null,8,["component"])])):d("v-if",!0),l("div",L,[u(r(M),{show:$.value,"onUpdate:show":t[1]||(t[1]=e=>$.value=e),placement:"top",trigger:"click","show-arrow":!1,"display-directive":"show",delay:0},{trigger:f((()=>[u(r(k),{quaternary:"",size:"tiny"},{icon:f((()=>[q])),_:1})])),default:f((()=>[l("div",F,[d(' <span>最近使用</span>\n\t\t\t\t\t<div class="list-box">\n\t\t\t\t\t\t<template v-for="(img, index) in images" :key="index">\n\t\t\t\t\t\t\t<i>\n\t\t\t\t\t\t\t\t<img :src="img" />\n\t\t\t\t\t\t\t</i>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</div> '),H,l("div",K,[(o(!0),s(m,null,p(r(w).default,(([e,t])=>(o(),g(r(E),{key:e,"show-arrow":!1,trigger:"hover"},{trigger:f((()=>[u(r(k),{quaternary:"",size:"tiny",onClick:()=>function(e){$.value=!1,se({chatMessageType:_.EMOJI,msg:e})}(e)},{icon:f((()=>[l("img",{src:t},null,8,N)])),_:2},1032,["onClick"])])),default:f((()=>[v(" "+c(e),1)])),_:2},1024)))),128))])])])),_:1},8,["show"]),u(r(k),{quaternary:"",size:"tiny",onClick:t[2]||(t[2]=()=>se({chatMessageType:r(_).EMOJI,msg:0}))},{icon:f((()=>[V])),_:1}),u(r(C),{abstract:"",multiple:"",accept:"image/*",onChange:t[3]||(t[3]=e=>ie(e,r(_).IMAGE))},{default:f((()=>[u(r(b),{abstract:""},{default:f((({handleClick:e})=>[u(r(k),{quaternary:"",size:"tiny",onClick:e},{icon:f((()=>[G])),_:2},1032,["onClick"])])),_:1})])),_:1}),u(r(C),{abstract:"",multiple:"",accept:"video/*,.pdf,.doc.docx,,.zip,.xlsx,.txt",onChange:t[4]||(t[4]=e=>ie(e,r(_).FILE))},{default:f((()=>[u(r(b),{abstract:""},{default:f((({handleClick:e})=>[u(r(k),{quaternary:"",size:"tiny",onClick:e},{icon:f((()=>[U])),_:2},1032,["onClick"])])),_:1})])),_:1}),d(' <n-button quaternary size="tiny" @click="() => handleCall(MESSAGE_TYPE.AUDIO)">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<n-icon size="18" :component="CallOutline" />\n\t\t\t\t</template>\n\t\t\t</n-button>\n\t\t\t<n-button quaternary size="tiny" @click="() => handleCall(MESSAGE_TYPE.VIDEO)">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<n-icon size="20" :component="VideocamOutline" />\n\t\t\t\t</template>\n\t\t\t</n-button> ')]),i(l("div",{ref_key:"inputRef",ref:X,class:"input-box",contenteditable:"",onKeydown:te,onInput:ne},null,544),[[y,r(Q).id]]),l("div",J,[B,u(r(k),{type:"primary",round:"",disabled:!Y.value,onClick:oe},{default:f((()=>[v("发送")])),_:1},8,["disabled"])]),d(' <Video v-model:show="showVideo" :call-mode="callMode" /> ')],4)),[[y,r(Q).id]])}});export{P as default};
@@ -0,0 +1,333 @@
1
+ import { AnyObject } from '../../../../shared/types';
2
+ declare const _default: import("vue").DefineComponent<{}, {
3
+ state: import("../types").IState;
4
+ showChatSet: import("vue").Ref<boolean>;
5
+ showChatFile: import("vue").Ref<boolean>;
6
+ chatFileType: import("vue").Ref<string>;
7
+ showChatRecord: import("vue").Ref<boolean>;
8
+ handleOpenChatFile: (type: string) => void;
9
+ NAvatar: any;
10
+ NButton: any;
11
+ PersonProfile: import("vue").DefineComponent<{
12
+ userId: {
13
+ type: StringConstructor;
14
+ required: true;
15
+ };
16
+ }, {
17
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
18
+ userId: {
19
+ type: StringConstructor;
20
+ required: true;
21
+ };
22
+ }>> & {
23
+ onClose?: ((...args: any[]) => any) | undefined;
24
+ }>>;
25
+ emit: (event: "close", ...args: any[]) => void;
26
+ state: import("../types").IState;
27
+ openSession: (item: AnyObject) => Promise<void>;
28
+ showUserDetail: import("vue").Ref<boolean>;
29
+ showLargeAvatar: import("vue").Ref<boolean>;
30
+ showPhone: import("vue").Ref<boolean>;
31
+ userDetail: AnyObject;
32
+ info: {
33
+ label: string;
34
+ value: string;
35
+ key: string;
36
+ }[];
37
+ personInfo: import("vue").ComputedRef<{
38
+ label: string;
39
+ value: string;
40
+ key: string;
41
+ }[]>;
42
+ toOpenSession: () => Promise<void>;
43
+ updateShow: (value: boolean) => Promise<void>;
44
+ getContent: (info: AnyObject) => any;
45
+ onChange: (options: {
46
+ file: import("naive-ui").UploadFileInfo;
47
+ }) => Promise<void>;
48
+ NAvatar: any;
49
+ NPopover: any;
50
+ NButton: any;
51
+ NIcon: any;
52
+ NUpload: any;
53
+ NUploadTrigger: any;
54
+ ChatbubbleEllipses: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
55
+ Close: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
56
+ Camera: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
57
+ EyeOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
58
+ EyeOffOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
59
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
60
+ userId: {
61
+ type: StringConstructor;
62
+ required: true;
63
+ };
64
+ }>> & {
65
+ onClose?: ((...args: any[]) => any) | undefined;
66
+ }, {}>;
67
+ ChatSet: import("vue").DefineComponent<{}, {
68
+ attrs: {
69
+ [x: string]: unknown;
70
+ };
71
+ state: import("../types").IState;
72
+ setCurrentSessionItem: (item: AnyObject) => void;
73
+ handleTopping: (value: boolean) => Promise<void>;
74
+ closeUserDetail: () => void;
75
+ NDrawer: any;
76
+ NDrawerContent: any;
77
+ NAvatar: any;
78
+ NIcon: any;
79
+ NSwitch: any;
80
+ ChevronForwardOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
81
+ PersonProfile: import("vue").DefineComponent<{
82
+ userId: {
83
+ type: StringConstructor;
84
+ required: true;
85
+ };
86
+ }, {
87
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
88
+ userId: {
89
+ type: StringConstructor;
90
+ required: true;
91
+ };
92
+ }>> & {
93
+ onClose?: ((...args: any[]) => any) | undefined;
94
+ }>>;
95
+ emit: (event: "close", ...args: any[]) => void;
96
+ state: import("../types").IState;
97
+ openSession: (item: AnyObject) => Promise<void>;
98
+ showUserDetail: import("vue").Ref<boolean>;
99
+ showLargeAvatar: import("vue").Ref<boolean>;
100
+ showPhone: import("vue").Ref<boolean>;
101
+ userDetail: AnyObject;
102
+ info: {
103
+ label: string;
104
+ value: string;
105
+ key: string;
106
+ }[];
107
+ personInfo: import("vue").ComputedRef<{
108
+ label: string;
109
+ value: string;
110
+ key: string;
111
+ }[]>;
112
+ toOpenSession: () => Promise<void>;
113
+ updateShow: (value: boolean) => Promise<void>;
114
+ getContent: (info: AnyObject) => any;
115
+ onChange: (options: {
116
+ file: import("naive-ui").UploadFileInfo;
117
+ }) => Promise<void>;
118
+ NAvatar: any;
119
+ NPopover: any;
120
+ NButton: any;
121
+ NIcon: any;
122
+ NUpload: any;
123
+ NUploadTrigger: any;
124
+ ChatbubbleEllipses: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
125
+ Close: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
126
+ Camera: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
127
+ EyeOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
128
+ EyeOffOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
129
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
130
+ userId: {
131
+ type: StringConstructor;
132
+ required: true;
133
+ };
134
+ }>> & {
135
+ onClose?: ((...args: any[]) => any) | undefined;
136
+ }, {}>;
137
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
138
+ ChatFile: import("vue").DefineComponent<{
139
+ type: {
140
+ type: StringConstructor;
141
+ default: string;
142
+ };
143
+ visible: {
144
+ type: BooleanConstructor;
145
+ };
146
+ }, {
147
+ cssVars: import("vue").ComputedRef<AnyObject>;
148
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
149
+ type: {
150
+ type: StringConstructor;
151
+ default: string;
152
+ };
153
+ visible: {
154
+ type: BooleanConstructor;
155
+ };
156
+ }>> & {}>>;
157
+ state: import("../types").IState;
158
+ imageList: import("vue").Ref<AnyObject[]>;
159
+ fileList: import("vue").Ref<AnyObject[]>;
160
+ imageRef: import("vue").Ref<any>;
161
+ fileRef: import("vue").Ref<any>;
162
+ keyword: import("vue").Ref<any>;
163
+ handleInput: () => void;
164
+ currentInfo: {
165
+ page: number;
166
+ hasMore: boolean;
167
+ lastSendTime: string;
168
+ };
169
+ handleSearch: () => Promise<void>;
170
+ formatImageList: (data: AnyObject[]) => {
171
+ label: string;
172
+ list: unknown;
173
+ }[];
174
+ resetAndSearch: () => void;
175
+ title: import("vue").ComputedRef<"聊天图片" | "聊天文件">;
176
+ getDetail: (item: AnyObject) => string;
177
+ getFileType: (item: AnyObject) => any;
178
+ NModal: any;
179
+ NImageGroup: any;
180
+ NImage: any;
181
+ NInput: any;
182
+ NIcon: any;
183
+ SearchOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
184
+ OpenOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
185
+ DownloadOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
186
+ downloadFile: typeof import("../utils").downloadFile;
187
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
188
+ type: {
189
+ type: StringConstructor;
190
+ default: string;
191
+ };
192
+ visible: {
193
+ type: BooleanConstructor;
194
+ };
195
+ }>>, {
196
+ type: string;
197
+ visible: boolean;
198
+ }>;
199
+ ChatRecord: import("vue").DefineComponent<{
200
+ visible: {
201
+ type: BooleanConstructor;
202
+ };
203
+ }, {
204
+ tagColor: {
205
+ color: string;
206
+ textColor: string;
207
+ };
208
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
209
+ visible: {
210
+ type: BooleanConstructor;
211
+ };
212
+ }>> & {}>>;
213
+ state: import("../types").IState;
214
+ recordRef: import("vue").Ref<any>;
215
+ recordList: import("vue").Ref<AnyObject[]>;
216
+ keyword: import("vue").Ref<any>;
217
+ memberList: import("vue").Ref<never[]>;
218
+ startTime: import("vue").Ref<any>;
219
+ endTime: import("vue").Ref<any>;
220
+ handleInput: () => void;
221
+ currentInfo: {
222
+ page: number;
223
+ hasMore: boolean;
224
+ lastSendTime: string;
225
+ };
226
+ handleSearch: () => Promise<void>;
227
+ options: import("vue").ComputedRef<AnyObject[]>;
228
+ resetAndSearch: () => void;
229
+ startDateDisabled: (ts: number) => boolean;
230
+ endDateDisabled: (ts: number) => boolean;
231
+ resetInfo: () => void;
232
+ handleCloseTag: (type: "start" | "end" | "member") => void;
233
+ getPrefixCondition: () => (JSX.Element | null)[];
234
+ renderLabel: (option: AnyObject) => JSX.Element;
235
+ NModal: any;
236
+ NTag: any;
237
+ NInput: any;
238
+ NSelect: any;
239
+ NAvatar: any;
240
+ NPopover: any;
241
+ NInputGroup: any;
242
+ DatePicker: import("../../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
243
+ updateUnchangedValue: {
244
+ type: BooleanConstructor;
245
+ };
246
+ onConfirm: {
247
+ type: FunctionConstructor;
248
+ };
249
+ formattedValue: {
250
+ type: import("vue").PropType<(string | [string, string]) | null | undefined>;
251
+ };
252
+ placeholder: {
253
+ type: StringConstructor;
254
+ };
255
+ allowedInvalidValue: {
256
+ type: StringConstructor;
257
+ };
258
+ }, {
259
+ attrs: {
260
+ [x: string]: unknown;
261
+ };
262
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
263
+ updateUnchangedValue: {
264
+ type: BooleanConstructor;
265
+ };
266
+ onConfirm: {
267
+ type: FunctionConstructor;
268
+ };
269
+ formattedValue: {
270
+ type: import("vue").PropType<(string | [string, string]) | null | undefined>;
271
+ };
272
+ placeholder: {
273
+ type: StringConstructor;
274
+ };
275
+ allowedInvalidValue: {
276
+ type: StringConstructor;
277
+ };
278
+ }>> & {
279
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
280
+ }>>;
281
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
282
+ datePickerRef: import("vue").Ref<AnyObject | null>;
283
+ panelInstRef: import("vue").Ref<null>;
284
+ placeholderRef: import("vue").Ref<any>;
285
+ oldValue: string;
286
+ currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
287
+ isDateTime: import("vue").ComputedRef<boolean>;
288
+ formatRef: import("vue").ComputedRef<string>;
289
+ panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
290
+ focus: () => any;
291
+ blur: () => any;
292
+ handleConfirm: (target: HTMLInputElement) => void;
293
+ onUpdateShow: (show: boolean) => Promise<void>;
294
+ onConfirm: (...args: any[]) => Promise<void>;
295
+ isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
296
+ setShortcutValue: (type: "month" | "week") => Promise<void>;
297
+ NDatePicker: any;
298
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
299
+ updateUnchangedValue: {
300
+ type: BooleanConstructor;
301
+ };
302
+ onConfirm: {
303
+ type: FunctionConstructor;
304
+ };
305
+ formattedValue: {
306
+ type: import("vue").PropType<(string | [string, string]) | null | undefined>;
307
+ };
308
+ placeholder: {
309
+ type: StringConstructor;
310
+ };
311
+ allowedInvalidValue: {
312
+ type: StringConstructor;
313
+ };
314
+ }>> & {
315
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
316
+ }, {
317
+ updateUnchangedValue: boolean;
318
+ }>>;
319
+ formatTime: typeof import("../utils").formatTime;
320
+ MESSAGE_TYPE: typeof import("../constants").MESSAGE_TYPE;
321
+ emojis: {
322
+ default: string[][];
323
+ findEmoji(name: string): any;
324
+ };
325
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
326
+ visible: {
327
+ type: BooleanConstructor;
328
+ };
329
+ }>>, {
330
+ visible: boolean;
331
+ }>;
332
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
333
+ export default _default;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,openBlock as a,createElementBlock as i,Fragment as o,unref as s,createElementVNode as n,createVNode as c,withCtx as l,toDisplayString as r,createCommentVNode as u}from"vue";import{NAvatar as h,NButton as v}from"naive-ui";import{useState as f}from"../hooks/useState.js";import m from"./PersonProfile.vue.js";import d from"./ChatSet.vue.js";import p from"./ChatFile.vue.js";import w from"./ChatRecord.vue.js";const y={key:0,class:"chat-header box-shadow"},C={class:"chat-header__left"},_={class:"name"},k={class:"chat-header__right"},g=n("i",{class:"chat--iconfont chat--icon-image"},null,-1),S=n("i",{class:"chat--iconfont chat--icon-folder"},null,-1),b=n("i",{class:"chat--iconfont chat--icon-list-search"},null,-1),j=n("i",{class:"chat--iconfont chat--icon-set"},null,-1);var z=e({__name:"ChatHeader",setup(e){const{state:z}=f(),q=t(!1),I=t(!1),U=t("image"),x=t(!1);function F(e){U.value=e,I.value=!0}return(e,t)=>(a(),i(o,null,[s(z).id?(a(),i("section",y,[n("div",C,[c(m,{"user-id":s(z).currentSessionItem.receiver},{trigger:l((()=>[c(s(h),{round:"",size:30,src:s(z).currentSessionItem.avatar},null,8,["src"])])),_:1},8,["user-id"]),n("span",_,r(s(z).currentSessionItem.name),1)]),n("div",k,[c(s(v),{quaternary:"",size:"tiny",onClick:t[0]||(t[0]=()=>F("image"))},{icon:l((()=>[g])),_:1}),c(s(v),{quaternary:"",size:"tiny",onClick:t[1]||(t[1]=()=>F("file"))},{icon:l((()=>[S])),_:1}),c(s(v),{quaternary:"",size:"tiny",onClick:t[2]||(t[2]=()=>x.value=!0)},{icon:l((()=>[b])),_:1}),c(s(v),{quaternary:"",size:"tiny",onClick:t[3]||(t[3]=()=>q.value=!0)},{icon:l((()=>[j])),_:1}),u(' <i class="chat--iconfont chat--icon-folder" @click="() => handleOpenChatFile(\'file\')" />\n\t\t\t<i class="chat--iconfont chat--icon-list-search" @click="showChatRecord = true" />\n\t\t\t<i class="chat--iconfont chat--icon-set" @click="showChatSet = true" /> ')])])):u("v-if",!0),c(d,{show:q.value,"onUpdate:show":t[4]||(t[4]=e=>q.value=e)},null,8,["show"]),c(p,{show:I.value,"onUpdate:show":t[5]||(t[5]=e=>I.value=e),type:U.value,visible:I.value},null,8,["show","type","visible"]),c(w,{show:x.value,"onUpdate:show":t[6]||(t[6]=e=>x.value=e),visible:x.value},null,8,["show","visible"])],64))}});export{z as default};