cnhis-design-vue 3.2.5 → 3.2.6-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/annotation-edit/src/type.d.ts +1 -1
- package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +1 -1
- package/es/components/big-table/index.d.ts +6 -56
- package/es/components/big-table/src/BigTable.vue.d.ts +6 -56
- package/es/components/big-table/src/components/edit-form/edit-select.d.ts +1 -1
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +4 -4
- package/es/components/big-table/src/hooks/useEdit.d.ts +27 -27
- package/es/components/big-table/src/hooks/useSeparateRow.d.ts +1 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.d.ts +1 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.d.ts +1 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.d.ts +1 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.d.ts +1 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.d.ts +1 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/index.d.ts +13 -13
- package/es/components/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.d.ts +2 -2
- package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.d.ts +9 -9
- package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.d.ts +2 -2
- package/es/components/button-print/index.d.ts +13 -2917
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +13 -2917
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -1162
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +6 -1458
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +5 -1457
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +5 -1457
- package/es/components/calendar/index.d.ts +4 -4
- package/es/components/calendar/src/Calendar.vue.d.ts +4 -4
- package/es/components/calendar/src/types/index.d.ts +1 -1
- package/es/components/callback/src/components/dialog/drawer.vue.d.ts +2 -179
- package/es/components/callback/src/components/dialog/modal.vue.d.ts +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +120 -1701
- package/es/components/callback/src/types/index.d.ts +1 -1
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue.d.ts +2 -2
- package/es/components/card-reader-sdk/src/constants/index.d.ts +56 -56
- package/es/components/card-reader-sdk/src/utils/ensureUID2IdCard.d.ts +1 -1
- package/es/components/classification/index.d.ts +4 -14
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +24 -34
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +26 -36
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +4 -1
- package/es/components/classification/src/index.vue.d.ts +4 -14
- package/es/components/config-provider/src/interface.d.ts +2 -2
- package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
- package/es/components/drag-scroll/src/types.d.ts +2 -2
- package/es/components/expand-field/index.d.ts +41 -575
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +56 -198
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +36 -168
- package/es/components/expand-field/src/components/form.vue.d.ts +41 -526
- package/es/components/expand-field/src/index.vue.d.ts +41 -575
- package/es/components/expand-field/src/types/index.d.ts +1 -1
- package/es/components/fabric-chart/index.d.ts +10 -10
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +10 -10
- package/es/components/fabric-chart/src/components/PopupMenu.d.ts +3 -3
- package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useShadow.d.ts +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +9 -9
- package/es/components/field-set/index.d.ts +5 -52
- package/es/components/field-set/src/FieldColor.vue.d.ts +14 -606
- package/es/components/field-set/src/FieldColor.vue2.js +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +7 -20
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +9 -10
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/Index.vue.d.ts +6 -53
- package/es/components/field-set/src/Index.vue2.js +1 -1
- package/es/components/field-set/src/components/Row.vue.d.ts +2 -2
- package/es/components/field-set/src/components/condition.vue.d.ts +2 -2
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +11 -589
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +3 -3
- package/es/components/field-set/src/constants/index.d.ts +1 -1
- package/es/components/field-set/src/types/index.d.ts +8 -8
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +62 -4785
- package/es/components/form-config/src/FormConfig.vue.d.ts +41 -4764
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +37 -98
- package/es/components/form-config/src/components/FormConfigCreator.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +22 -4651
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +3 -36
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +3 -3
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +1 -1
- package/es/components/form-config/src/hooks/usePresetRenderer.d.ts +1 -1
- package/es/components/form-config/src/types/index.d.ts +8 -8
- package/es/components/form-render/index.d.ts +15 -75
- package/es/components/form-render/src/FormRender.vue.d.ts +10 -70
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +15 -75
- package/es/components/form-render/src/components/renderer/combination/combination.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/date.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/inputGroup.d.ts +1 -11
- package/es/components/form-render/src/components/renderer/inputNumber.d.ts +4 -4
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +10 -10
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +15 -15
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
- package/es/components/form-render/src/hooks/useChangeContext.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -4
- package/es/components/form-render/src/hooks/useFormContext.d.ts +1 -11
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +1 -19
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +10 -10
- package/es/components/form-render/src/types/index.d.ts +13 -13
- package/es/components/form-render/src/utils/index.d.ts +1 -1
- package/es/components/iho-chat/index.d.ts +719 -0
- package/es/components/iho-chat/index.js +1 -0
- package/es/components/iho-chat/src/Index.vue.d.ts +723 -0
- package/es/components/iho-chat/src/Index.vue2.js +1 -0
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +64 -0
- package/es/components/{biunique-chat → iho-chat}/src/components/ChatFile.vue2.js +1 -1
- package/es/components/{biunique-chat → iho-chat}/src/components/ChatFooter.vue.d.ts +24 -11
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +333 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -0
- package/es/components/{biunique-chat → iho-chat}/src/components/ChatMain.vue.d.ts +21 -209
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -0
- package/es/components/{biunique-chat → iho-chat}/src/components/ChatRecord.vue.d.ts +1 -11
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -0
- package/es/components/{biunique-chat → iho-chat}/src/components/ChatSearch.vue.d.ts +2 -2
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +73 -0
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -0
- package/es/components/iho-chat/src/components/ContextMenu.d.ts +17 -0
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -0
- package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +1 -0
- package/es/components/{biunique-chat → iho-chat}/src/components/PersonProfile.vue.d.ts +1 -9
- package/es/components/iho-chat/src/components/Video.vue.d.ts +38 -0
- package/es/components/{biunique-chat → iho-chat}/src/constants/index.d.ts +13 -1
- package/es/components/iho-chat/src/constants/index.js +1 -0
- package/es/components/iho-chat/src/hooks/useSession.js +1 -0
- package/es/components/{biunique-chat → iho-chat}/src/types/index.d.ts +2 -2
- package/es/components/{biunique-chat → iho-chat}/src/utils/index.d.ts +2 -0
- package/es/components/{biunique-chat → iho-chat}/src/utils/index.js +1 -1
- package/es/components/iho-chat/style/index.css +1 -0
- package/es/components/iho-table/index.d.ts +46 -1567
- package/es/components/iho-table/src/IhoTable.vue.d.ts +40 -1561
- package/es/components/iho-table/src/constants/index.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +4 -4
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +18 -18
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +61 -61
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.d.ts +1 -1
- package/es/components/iho-table/src/hooks/useTableContext.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +2 -335
- package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/types.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +18 -17
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/types.d.ts +1 -1
- package/es/components/iho-table/src/types/index.d.ts +17 -17
- package/es/components/iho-table/src/types/pluginType.d.ts +13 -13
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -2
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +65 -1723
- package/es/components/info-header/src/InfoHeader.vue.d.ts +42 -1700
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +27 -1547
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +16 -1554
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +31 -1629
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +59 -119
- package/es/components/info-header/src/types/index.d.ts +4 -3
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
- package/es/components/map/src/types/index.d.ts +2 -2
- package/es/components/quick-search/index.d.ts +1 -295
- package/es/components/quick-search/src/index.vue.d.ts +1 -295
- package/es/components/recommend-search/index.d.ts +28 -28
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +28 -28
- package/es/components/recommend-search/src/components/BaseSearch.d.ts +4 -4
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +10 -10
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +11 -11
- package/es/components/recommend-search/src/types/index.d.ts +2 -2
- package/es/components/scale-view/index.d.ts +6 -300
- package/es/components/scale-view/src/ScaleView.vue.d.ts +6 -300
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +2 -2
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +2 -2
- package/es/components/scale-view/src/hooks/use-component.d.ts +3 -15
- package/es/components/scale-view/src/types/index.d.ts +1 -1
- package/es/components/search-cascader/index.d.ts +15 -14
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +16 -15
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +3 -3
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
- package/es/components/select-label/index.d.ts +3 -21
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -7
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -7
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +1 -7
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +1 -7
- package/es/components/select-label/src/index.vue.d.ts +2 -14
- package/es/components/select-label/src/types/index.d.ts +3 -3
- package/es/components/select-person/index.d.ts +36 -168
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +3 -52
- package/es/components/select-person/src/SearchOrgAndStaff.vue.d.ts +2 -2
- package/es/components/select-person/src/SelectPerson.vue.d.ts +9 -117
- package/es/components/shortcut-provider/index.d.ts +1 -1
- package/es/components/shortcut-provider/src/types/index.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +23 -1606
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +14 -1597
- package/es/components/step-notice/index.d.ts +94 -1615
- package/es/components/step-notice/src/StepNotice.vue.d.ts +79 -1600
- package/es/components/step-notice/src/components/NoticeItem.vue.d.ts +22 -22
- package/es/components/step-notice/src/components/NoticeItemAside.vue.d.ts +2 -2
- package/es/components/step-notice/src/components/NoticeOperationList.vue.d.ts +16 -16
- package/es/components/step-notice/src/hooks/useTheme.d.ts +1 -1
- package/es/components/step-notice/src/utils.d.ts +1 -1
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
- package/es/components/table-export-field/index.d.ts +3 -630
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +2 -51
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +3 -581
- package/es/components/table-export-field/src/index.vue.d.ts +5 -632
- package/es/components/table-export-field/src/types/index.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +2 -2
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +22 -32
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.d.ts +1 -11
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +15 -15
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +22 -32
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +22 -32
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -50
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +3 -3
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +4 -4
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.d.ts +1 -11
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +16 -16
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +60 -119
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +59 -108
- package/es/components/table-filter/src/types/index.d.ts +25 -25
- package/es/components/time-line/index.d.ts +1 -48
- package/es/components/time-line/src/TimeLine.vue.d.ts +4 -51
- package/es/components/tooth-bitmap/index.d.ts +3 -3
- package/es/components/tooth-bitmap/src/ToothBitmap.vue.d.ts +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +3 -3
- package/es/shared/components/SlotRender/SlotRender.d.ts +4 -4
- package/es/shared/components/VueDraggable/src/core/renderHelper.d.ts +1 -1
- package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -1
- package/es/shared/hooks/useLevelSearchCascader.js +1 -1
- package/es/shared/hooks/useTheme.d.ts +2 -2
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +1 -1
- package/es/shared/types/index.d.ts +15 -15
- package/es/shared/utils/tapable/AsyncParallelBailHook.d.ts +1 -1
- package/es/shared/utils/tapable/AsyncParallelHook.d.ts +1 -1
- package/es/shared/utils/tapable/AsyncSeriesBailHook.d.ts +1 -1
- package/es/shared/utils/tapable/AsyncSeriesHook.d.ts +1 -1
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.d.ts +1 -1
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.d.ts +1 -1
- package/es/shared/utils/tapable/SyncBailHook.d.ts +1 -1
- package/es/shared/utils/tapable/SyncHook.d.ts +1 -1
- package/es/shared/utils/tapable/SyncLoopHook.d.ts +1 -1
- package/es/shared/utils/tapable/SyncWaterfallHook.d.ts +1 -1
- package/es/shared/utils/vexutils.d.ts +2 -2
- package/package.json +6 -5
- package/es/components/biunique-chat/index.d.ts +0 -1692
- package/es/components/biunique-chat/index.js +0 -1
- package/es/components/biunique-chat/src/Index.vue.d.ts +0 -1695
- package/es/components/biunique-chat/src/Index.vue2.js +0 -1
- package/es/components/biunique-chat/src/components/ChatFile.vue.d.ts +0 -263
- package/es/components/biunique-chat/src/components/ChatFooter.vue2.js +0 -1
- package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +0 -733
- package/es/components/biunique-chat/src/components/ChatHeader.vue2.js +0 -1
- package/es/components/biunique-chat/src/components/ChatMain.vue2.js +0 -1
- package/es/components/biunique-chat/src/components/ChatRecord.vue2.js +0 -1
- package/es/components/biunique-chat/src/components/ChatSet.vue.d.ts +0 -258
- package/es/components/biunique-chat/src/components/ChatSet.vue2.js +0 -1
- package/es/components/biunique-chat/src/components/MessageTemplate.vue2.js +0 -1
- package/es/components/biunique-chat/src/constants/index.js +0 -1
- package/es/components/biunique-chat/src/hooks/useSession.js +0 -1
- package/es/components/biunique-chat/style/index.css +0 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
- /package/es/components/{biunique-chat → iho-chat}/src/Index.vue.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/api/index.d.ts +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/api/index.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/components/ChatFile.vue.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/components/ChatFooter.vue.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/components/ChatHeader.vue.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/components/ChatMain.vue.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/components/ChatRecord.vue.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/components/ChatSearch.vue.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/components/ChatSearch.vue2.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/components/ChatSet.vue.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/components/MessageTemplate.vue.d.ts +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/components/MessageTemplate.vue.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/components/PersonProfile.vue.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/components/PersonProfile.vue2.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/components/SiderList.vue.d.ts +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/components/SiderList.vue.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/components/SiderList.vue2.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/hooks/index.d.ts +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/hooks/index.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/hooks/useScrollLoading.d.ts +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/hooks/useScrollLoading.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/hooks/useSession.d.ts +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/hooks/useState.d.ts +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/hooks/useState.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/types/index.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/utils/chatSock.d.ts +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/utils/chatSock.js +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/utils/emoji.d.ts +0 -0
- /package/es/components/{biunique-chat → iho-chat}/src/utils/emoji.js +0 -0
- /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
|
|
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:
|
|
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
|
-
},
|
|
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 r,openBlock as i,createElementBlock as o,normalizeStyle as s,unref as a,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(),ie()))}function ne(){var e,t;Y.value=(null==(t=null==(e=X.value)?void 0:e.innerText)?void 0:t.trim())||""}async function re(e,t){const{file:n,name:r}=e.file,i=new FormData;i.append("sender",Q.userInfo.id),i.append("file",n);const o=await S(i);if(!o)return console.log("上传失败");oe({chatMessageType:t,msg:t===_.FILE?r:o,url:o})}function ie(){if(!(Y.value.length>2e3))return Y.value?void oe({msg:Y.value}):console.log("请输入内容");console.log("请控制在2000字以内")}async function oe(e){const{chatMessageType:t=_.TEXT,msg:n,url:r}=e,i={msg:n,chatMessageType:t};t===_.FILE&&(i.fileUrl=r),[_.TEXT,_.BLEND].includes(t)&&(X.value.innerHTML="",Y.value=""),Q.currentReferenceMsg&&(i.referenceContent=A(Q.currentReferenceMsg),Q.currentReferenceMsg=null);const o=T(new Date,"yyyy-MM-dd HH:mm:ss");Q.currentMsg={content:i,sender:Q.userInfo.id,senderName:Q.userInfo.name,senderAvatar:Q.userInfo.avatar,id:"",sendTime:o,sending:!0,fail:!1},[_.AUDIO,_.VIDEO].includes(t)||(Q.isAppendMsg=!0),Z({lastMessageSendTime:o,lastMessage:i,sortTime:o});try{W.value.send("/app/chat/send",{},JSON.stringify({chatType:"SINGLE",content:i,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)=>r((i(),o("section",{class:"chat-footer",style:s({cursor:a(Q).id?"default":"not-allowed"})},[a(Q).currentReferenceMsg?(i(),o("div",R,[l("div",j,[l("span",null,c(a(Q).currentReferenceMsg.senderName)+":",1),l("pre",{innerHTML:a(O)(a(Q).currentReferenceMsg.content)},null,8,D)]),u(a(h),{component:a(z),onClick:t[0]||(t[0]=()=>a(Q).currentReferenceMsg=null)},null,8,["component"])])):d("v-if",!0),l("div",L,[u(a(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(a(k),{quaternary:"",size:"tiny"},{icon:f((()=>[q])),_:1})])),default:f((()=>[l("div",F,[d(' <span>最近使用</span>\r\n\t\t\t\t\t<div class="list-box">\r\n\t\t\t\t\t\t<template v-for="(img, index) in images" :key="index">\r\n\t\t\t\t\t\t\t<i>\r\n\t\t\t\t\t\t\t\t<img :src="img" />\r\n\t\t\t\t\t\t\t</i>\r\n\t\t\t\t\t\t</template>\r\n\t\t\t\t\t</div> '),H,l("div",K,[(i(!0),o(m,null,p(a(w).default,(([e,t])=>(i(),g(a(E),{key:e,"show-arrow":!1,trigger:"hover"},{trigger:f((()=>[u(a(k),{quaternary:"",size:"tiny",onClick:()=>function(e){$.value=!1,oe({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(a(k),{quaternary:"",size:"tiny",onClick:t[2]||(t[2]=()=>oe({chatMessageType:a(_).EMOJI,msg:0}))},{icon:f((()=>[V])),_:1}),u(a(C),{abstract:"",multiple:"",accept:"image/*",onChange:t[3]||(t[3]=e=>re(e,a(_).IMAGE))},{default:f((()=>[u(a(b),{abstract:""},{default:f((({handleClick:e})=>[u(a(k),{quaternary:"",size:"tiny",onClick:e},{icon:f((()=>[G])),_:2},1032,["onClick"])])),_:1})])),_:1}),u(a(C),{abstract:"",multiple:"",accept:"video/*,.pdf,.doc.docx,,.zip,.xlsx,.txt",onChange:t[4]||(t[4]=e=>re(e,a(_).FILE))},{default:f((()=>[u(a(b),{abstract:""},{default:f((({handleClick:e})=>[u(a(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)">\r\n\t\t\t\t<template #icon>\r\n\t\t\t\t\t<n-icon size="18" :component="CallOutline" />\r\n\t\t\t\t</template>\r\n\t\t\t</n-button>\r\n\t\t\t<n-button quaternary size="tiny" @click="() => handleCall(MESSAGE_TYPE.VIDEO)">\r\n\t\t\t\t<template #icon>\r\n\t\t\t\t\t<n-icon size="20" :component="VideocamOutline" />\r\n\t\t\t\t</template>\r\n\t\t\t</n-button> ')]),r(l("div",{ref_key:"inputRef",ref:X,class:"input-box",contenteditable:"",onKeydown:te,onInput:ne},null,544),[[y,a(Q).id]]),l("div",J,[B,u(a(k),{type:"primary",round:"",disabled:!Y.value,onClick:ie},{default:f((()=>[v("发送")])),_:1},8,["disabled"])]),d(' <Video v-model:show="showVideo" :call-mode="callMode" /> ')],4)),[[y,a(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\')" />\r\n\t\t\t<i class="chat--iconfont chat--icon-list-search" @click="showChatRecord = true" />\r\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};
|