@aochuang/client-sdk 1.0.371 → 1.0.372

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 (163) hide show
  1. package/common/.DS_Store +0 -0
  2. package/components/.DS_Store +0 -0
  3. package/components/index.js +6 -1
  4. package/components/session-select/session-select-item.vue +8 -9
  5. package/components/wechat-chat-control/.DS_Store +0 -0
  6. package/components/wechat-chat-control/transfer/.DS_Store +0 -0
  7. package/components/wechat-chat-control/url/.DS_Store +0 -0
  8. package/components/wechat-chat-control/voice/.DS_Store +0 -0
  9. package/components/wework-chat-control/channel-card/channel-card.vue +144 -0
  10. package/components/wework-chat-control/channel-live/channel-live.vue +7 -2
  11. package/components/wework-chat-control/company-card/company-card.vue +1 -1
  12. package/components/wework-chat-control/custom-expression/custom-expression.vue +2 -1
  13. package/components/wework-chat-control/file-url/file-url.vue +34 -16
  14. package/components/wework-chat-control/image/image.vue +137 -2
  15. package/components/wework-chat-control/index.js +15 -7
  16. package/components/wework-chat-control/link/.DS_Store +0 -0
  17. package/components/wework-chat-control/location/location.vue +3 -3
  18. package/components/wework-chat-control/merge-message/merge-message-panel.vue +63 -0
  19. package/components/wework-chat-control/merge-message/merge-message.vue +84 -0
  20. package/components/wework-chat-control/merge-message/util.js +59 -0
  21. package/components/wework-chat-control/metting/enterprise-wechat.png +0 -0
  22. package/components/wework-chat-control/metting/meeting-video.svg +4 -0
  23. package/components/wework-chat-control/metting/metting.vue +181 -0
  24. package/components/wework-chat-control/red-envelopes/red-envelopes.vue +3 -2
  25. package/components/wework-chat-control/text/text-default.vue +99 -0
  26. package/components/wework-chat-control/text/text-quote.vue +105 -0
  27. package/components/wework-chat-control/text/text.vue +24 -144
  28. package/components/wework-chat-control/url/url-channel-live.vue +53 -0
  29. package/components/wework-chat-control/url/url-miniprogram.vue +6 -7
  30. package/components/wework-chat-control/url/url.vue +26 -2
  31. package/components/wework-chat-control/util.js +26 -17
  32. package/components/wework-chat-control/video/.DS_Store +0 -0
  33. package/components/wework-chat-control/video/video.vue +10 -2
  34. package/components/wework-chat-control/voice/voice.vue +9 -2
  35. package/components/wework-chat-control/wework-chat-control-config-item.vue +24 -0
  36. package/components/wework-chat-control/wework-chat-control-config-msg.vue +25 -0
  37. package/{uni-components/chat-control/chat-control-config.vue → components/wework-chat-control/wework-chat-control-config.vue} +16 -13
  38. package/components/wework-chat-panel/chat-panel-chat-status/chat-panel-chat-status.vue +73 -0
  39. package/components/wework-chat-panel/chat-panel-item.vue +56 -25
  40. package/components/wework-chat-panel/chat-panel.vue +96 -13
  41. package/package.json +10 -3
  42. package/services/.DS_Store +0 -0
  43. package/services/client-chat/client-chat-wework/client-chat-account.js +84 -1
  44. package/services/client-chat/client-chat-wework/client-chat-concats.js +81 -17
  45. package/services/client-chat/client-chat-wework/client-chat-message.js +45 -5
  46. package/services/client-chat/client-chat-wework/client-chat-session.js +59 -4
  47. package/services/client-chat/client-chat-wework/client-chat-socket.js +13 -1
  48. package/services/client-chat/client-chat-wework/client-chat.js +320 -11
  49. package/services/client-chat/client-chat-wework/utils.js +5 -5
  50. package/components/wework-chat-panel/chat-panel-controls/company-card/company-card.vue +0 -35
  51. package/components/wework-chat-panel/chat-panel-controls/expression/expression.vue +0 -36
  52. package/components/wework-chat-panel/chat-panel-controls/file-url/file-url.vue +0 -35
  53. package/components/wework-chat-panel/chat-panel-controls/image/image.vue +0 -36
  54. package/components/wework-chat-panel/chat-panel-controls/index.js +0 -35
  55. package/components/wework-chat-panel/chat-panel-controls/jx-sys-text/jx-sys-text.vue +0 -28
  56. package/components/wework-chat-panel/chat-panel-controls/link/link.vue +0 -35
  57. package/components/wework-chat-panel/chat-panel-controls/location/location.vue +0 -35
  58. package/components/wework-chat-panel/chat-panel-controls/text/text.vue +0 -43
  59. package/components/wework-chat-panel/chat-panel-controls/unkonw/unkonw.vue +0 -39
  60. package/components/wework-chat-panel/chat-panel-controls/video/video.vue +0 -37
  61. package/components/wework-chat-panel/chat-panel-controls/voice/voice.vue +0 -35
  62. package/uni-common/account-portray/account-portray.vue +0 -51
  63. package/uni-common/account-select/account-select-item.vue +0 -172
  64. package/uni-common/account-select/account-select.vue +0 -252
  65. package/uni-common/all-friend-avatar/all-friend-avatar.vue +0 -49
  66. package/uni-common/friend-avatar/default.svg +0 -1
  67. package/uni-common/friend-avatar/friend-avatar.vue +0 -27
  68. package/uni-common/friend-avatar/index.js +0 -3
  69. package/uni-common/friend-loader/friend-loader.vue +0 -53
  70. package/uni-common/friend-portray/friend-portray.vue +0 -56
  71. package/uni-common/group-avatar/default.svg +0 -1
  72. package/uni-common/group-avatar/group-avatar.vue +0 -18
  73. package/uni-common/group-avatar/index.js +0 -3
  74. package/uni-common/room-avatar/default.svg +0 -6
  75. package/uni-common/room-avatar/index.js +0 -3
  76. package/uni-common/room-avatar/room-avatar.vue +0 -27
  77. package/uni-common/room-loader/room-loader.vue +0 -53
  78. package/uni-common/room-portray/room-portray.vue +0 -56
  79. package/uni-components/chat-control/calling/calling.vue +0 -91
  80. package/uni-components/chat-control/calling/phone-fill.svg +0 -1
  81. package/uni-components/chat-control/calling/vidicon-fill.svg +0 -1
  82. package/uni-components/chat-control/channel-video/channel-video.vue +0 -89
  83. package/uni-components/chat-control/channel-video-card/channel-video-card.vue +0 -105
  84. package/uni-components/chat-control/channel-video-live/channel-video-live.vue +0 -92
  85. package/uni-components/chat-control/chat-control-config-item/chat-control-config-item.vue +0 -20
  86. package/uni-components/chat-control/chat-control-config-item/index.js +0 -3
  87. package/uni-components/chat-control/chat-control-config-msg/chat-control-config-msg-app.vue +0 -25
  88. package/uni-components/chat-control/chat-control-config-msg/chat-control-config-msg-h5.vue +0 -21
  89. package/uni-components/chat-control/chat-control.vue +0 -218
  90. package/uni-components/chat-control/company-card/company-card.vue +0 -123
  91. package/uni-components/chat-control/const.js +0 -28
  92. package/uni-components/chat-control/expression/expression.vue +0 -41
  93. package/uni-components/chat-control/image/image.vue +0 -68
  94. package/uni-components/chat-control/index.js +0 -89
  95. package/uni-components/chat-control/location/location.vue +0 -110
  96. package/uni-components/chat-control/member-change/member-change.vue +0 -32
  97. package/uni-components/chat-control/quote-message/quote-message.vue +0 -216
  98. package/uni-components/chat-control/real-time-position/real-time-position.vue +0 -62
  99. package/uni-components/chat-control/redpacket/red-envelope.svg +0 -1
  100. package/uni-components/chat-control/redpacket/redpacket.vue +0 -75
  101. package/uni-components/chat-control/share-card/share-card.vue +0 -101
  102. package/uni-components/chat-control/system/system.vue +0 -69
  103. package/uni-components/chat-control/system-batch-message/system-batch-message.vue +0 -30
  104. package/uni-components/chat-control/system-text/system-text.vue +0 -32
  105. package/uni-components/chat-control/text/text.vue +0 -67
  106. package/uni-components/chat-control/text-with-at/text-with-at.vue +0 -51
  107. package/uni-components/chat-control/transfer/red-transfer.svg +0 -1
  108. package/uni-components/chat-control/transfer/transfer.vue +0 -80
  109. package/uni-components/chat-control/unkonw/unkonw.vue +0 -37
  110. package/uni-components/chat-control/url/icons/file-excel-line.svg +0 -1
  111. package/uni-components/chat-control/url/icons/file-info-line.svg +0 -1
  112. package/uni-components/chat-control/url/icons/file-music-line.svg +0 -1
  113. package/uni-components/chat-control/url/icons/file-pdf-line.svg +0 -1
  114. package/uni-components/chat-control/url/icons/file-ppt-line.svg +0 -1
  115. package/uni-components/chat-control/url/icons/file-settings-line.svg +0 -1
  116. package/uni-components/chat-control/url/icons/file-text-line.svg +0 -1
  117. package/uni-components/chat-control/url/icons/file-unknow-line.svg +0 -1
  118. package/uni-components/chat-control/url/icons/file-word-line.svg +0 -1
  119. package/uni-components/chat-control/url/icons/file-zip-line.svg +0 -1
  120. package/uni-components/chat-control/url/icons/index.js +0 -24
  121. package/uni-components/chat-control/url/miniprogram.svg +0 -1
  122. package/uni-components/chat-control/url/url-miniprogram.vue +0 -116
  123. package/uni-components/chat-control/url/url.vue +0 -306
  124. package/uni-components/chat-control/url-new/icons/file-excel-line.svg +0 -1
  125. package/uni-components/chat-control/url-new/icons/file-info-line.svg +0 -1
  126. package/uni-components/chat-control/url-new/icons/file-music-line.svg +0 -1
  127. package/uni-components/chat-control/url-new/icons/file-pdf-line.svg +0 -1
  128. package/uni-components/chat-control/url-new/icons/file-ppt-line.svg +0 -1
  129. package/uni-components/chat-control/url-new/icons/file-settings-line.svg +0 -1
  130. package/uni-components/chat-control/url-new/icons/file-text-line.svg +0 -1
  131. package/uni-components/chat-control/url-new/icons/file-unknow-line.svg +0 -1
  132. package/uni-components/chat-control/url-new/icons/file-word-line.svg +0 -1
  133. package/uni-components/chat-control/url-new/icons/file-zip-line.svg +0 -1
  134. package/uni-components/chat-control/url-new/icons/index.js +0 -24
  135. package/uni-components/chat-control/url-new/url-new.vue +0 -110
  136. package/uni-components/chat-control/utils.js +0 -12
  137. package/uni-components/chat-control/video/video.vue +0 -156
  138. package/uni-components/chat-control/voice/voice.vue +0 -166
  139. package/uni-components/chat-editor/chat-editor-chartlet/chat-editor-chartlet-collect.vue +0 -84
  140. package/uni-components/chat-editor/chat-editor-chartlet/chat-editor-chartlet-system.vue +0 -28
  141. package/uni-components/chat-editor/chat-editor-chartlet/chat-editor-chartlet.vue +0 -85
  142. package/uni-components/chat-editor/chat-editor-func/chat-editor-func.vue +0 -157
  143. package/uni-components/chat-editor/chat-editor-func-at/chat-editor-func-at-panel.vue +0 -158
  144. package/uni-components/chat-editor/chat-editor-func-at/chat-editor-func-at.vue +0 -61
  145. package/uni-components/chat-editor/chat-editor-func-button/chat-editor-func-button.vue +0 -58
  146. package/uni-components/chat-editor/chat-editor-func-file/chat-editor-func-file.vue +0 -54
  147. package/uni-components/chat-editor/chat-editor-func-image/chat-editor-func-image.vue +0 -42
  148. package/uni-components/chat-editor/chat-editor-func-video/chat-editor-func-video.vue +0 -42
  149. package/uni-components/chat-editor/chat-editor-func-voice/chat-editor-func-voice.vue +0 -25
  150. package/uni-components/chat-editor/chat-editor-message-send/chat-editor-message-send.vue +0 -158
  151. package/uni-components/chat-editor/chat-editor-quote/chat-editor-quote.vue +0 -75
  152. package/uni-components/chat-editor/chat-editor.vue +0 -257
  153. package/uni-components/chat-editor/index.js +0 -10
  154. package/uni-components/chat-editor/util.js +0 -65
  155. package/uni-components/chat-panel/chat-panel-chats-box.vue +0 -238
  156. package/uni-components/chat-panel/chat-panel-chats-forward/chat-panel-chats-forward.vue +0 -273
  157. package/uni-components/chat-panel/chat-panel-chats-item.vue +0 -578
  158. package/uni-components/chat-panel/chat-panel-chats-status/chat-panel-chats-status.vue +0 -71
  159. package/uni-components/chat-panel/chat-panel-chats.vue +0 -368
  160. package/uni-components/chat-panel/chat-panel.vue +0 -227
  161. package/uni-components/contacts-group-select/contacts-group-select-item.vue +0 -85
  162. package/uni-components/contacts-group-select/contacts-group-select-panel.vue +0 -119
  163. package/uni-components/contacts-group-select/contacts-group-select.vue +0 -150
@@ -1,119 +0,0 @@
1
- <template>
2
- <view class="bi-contacts-group-select-panel">
3
- <view class="bi-contacts-group-select-panel__head">
4
- <view class="bi-contacts-group-select-panel__head-left">
5
- <uv-button size="small" @click="handleCancelClick">取消</uv-button>
6
- </view>
7
- <view class="bi-contacts-group-select-panel__head-center"></view>
8
- <view class="bi-contacts-group-select-panel__head-right">
9
- <uv-button size="small" type="primary" @click="handleConfirmClick">确定</uv-button>
10
- </view>
11
- </view>
12
- <view class="bi-contacts-group-select-panel__body">
13
- <view class="bi-contacts-group-select-panel__group" v-if="friendGroupData && friendGroupData.length">
14
- <view class="bi-contacts-group-select-panel__group-head">
15
- <view class="bi-contacts-group-select-panel__group-title">好友分组</view>
16
- </view>
17
- <view class="bi-contacts-group-select-panel__group-body">
18
- <contacts-group-select-item
19
- class="bi-contacts-group-select-panel__group-item"
20
- @click="handleFriendGroupClick(group)"
21
- v-for="group in friendGroupData"
22
- type="friend"
23
- :key="group.id"
24
- :data="group"
25
- :selected="group.id === inputValue"
26
- >
27
- </contacts-group-select-item>
28
- </view>
29
- </view>
30
- <view class="bi-contacts-group-select-panel__group" v-if="roomGroupData && roomGroupData.length">
31
- <view class="bi-contacts-group-select-panel__group-head">
32
- <view class="bi-contacts-group-select-panel__group-title">群聊分组</view>
33
- </view>
34
- <view class="bi-contacts-group-select-panel__group-body">
35
- <contacts-group-select-item
36
- class="bi-contacts-group-select-panel__group-item"
37
- @click="handleRoomGroupClick(group)"
38
- v-for="group in roomGroupData"
39
- type="room"
40
- :key="group.id"
41
- :data="group"
42
- :selected="group.id === inputValue"
43
- >
44
- </contacts-group-select-item>
45
- </view>
46
- </view>
47
- <view class="bi-contacts-group-select-panel__safe"></view>
48
- </view>
49
- </view>
50
- </template>
51
-
52
- <script>
53
- import ContactsGroupSelectItem from './contacts-group-select-item.vue'
54
-
55
- export default {
56
- name: 'BiContactsGroupSelectPanel',
57
- components: {
58
- ContactsGroupSelectItem
59
- },
60
- props: {
61
- value: {
62
- type: String
63
- },
64
- friendGroupData: {
65
- type: Array
66
- },
67
- roomGroupData: {
68
- type: Array
69
- }
70
- },
71
- data () {
72
- return {
73
- inputValue: this.value
74
- }
75
- },
76
- methods: {
77
- handleCancelClick () {
78
- this.$emit('cancel')
79
- },
80
- handleConfirmClick () {
81
- this.$emit('confirm', this.inputValue)
82
- },
83
- handleFriendGroupClick (item) {
84
- this.inputValue = item.id
85
- },
86
- handleRoomGroupClick (item) {
87
- this.inputValue = item.id
88
- }
89
- }
90
- }
91
- </script>
92
-
93
- <style lang="less">
94
- .bi-contacts-group-select-panel__head{
95
- display: flex;
96
- flex-direction: row;
97
- align-items: center;
98
- justify-content: space-between;
99
- padding: 8px 12px;
100
- border-bottom: 1px solid #eee;
101
- }
102
- .bi-contacts-group-select-panel__body{
103
- max-height: 70vh;
104
- overflow: auto;
105
- padding: 6px 0;
106
- }
107
- .bi-contacts-group-select-panel__group-head {
108
- height: 32px;
109
- line-height: 32px;
110
- padding: 0 12px;
111
- }
112
- .bi-contacts-group-select-panel__group-title {
113
- color: #999;
114
- }
115
- .bi-contacts-group-select-panel__safe{
116
- padding-bottom: calc(constant(safe-area-inset-bottom)); /* window-bottom + 适配 iPhoneX */
117
- padding-bottom: calc(env(safe-area-inset-bottom));
118
- }
119
- </style>
@@ -1,150 +0,0 @@
1
- <template>
2
- <view class="bi-account-select">
3
- <view class="bi-account-select__handle" @click="handleHandleClick">
4
- <template v-if="loading">
5
- <uv-loading-icon class="bi-account-select__loading" size="18" text="数据加载中..."></uv-loading-icon>
6
- </template>
7
- <template v-else>
8
- <template v-if="value">
9
- <view class="bi-account-select__value">
10
- {{ currentGroup ? currentGroup.groupName : value }}
11
- </view>
12
- </template>
13
- <template v-else>
14
- <view class="bi-account-select__placeholder">
15
- 请选择分组
16
- </view>
17
- </template>
18
- </template>
19
- </view>
20
- <uv-popup
21
- ref="popup"
22
- mode="bottom"
23
- @change="handlePopupChange"
24
- >
25
- <contacts-group-select-panel
26
- :value="value"
27
- :friend-group-data="friendGroupData"
28
- :room-group-data="roomGroupData"
29
- @cancel="handleCancelClick"
30
- @confirm="handleConfirmClick"
31
- ></contacts-group-select-panel>
32
- </uv-popup>
33
- </view>
34
- </template>
35
-
36
- <script>
37
- import ContactsGroupSelectPanel from './contacts-group-select-panel.vue'
38
-
39
- export default {
40
- name: 'BiContactsGroupSelect',
41
- components: {
42
- ContactsGroupSelectPanel
43
- },
44
- props: {
45
- value: {
46
- type: String
47
- },
48
- type: {
49
- type: String,
50
- validator (value) {
51
- return ['room', 'friend'].includes(value)
52
- }
53
- }
54
- },
55
- data () {
56
- return {
57
- loading: false,
58
- friendGroupData: [],
59
- roomGroupData: []
60
- }
61
- },
62
- computed: {
63
- currentGroup () {
64
- if (!this.value) {
65
- return
66
- }
67
- let group = this.friendGroupData.find(v => v.id === this.value)
68
- if (!group) {
69
- group = this.roomGroupData.find(v => v.id === this.value)
70
- }
71
- return group
72
- }
73
- },
74
- created () {
75
- this.loadData()
76
- },
77
- methods: {
78
- loadData () {
79
- this.loading = true
80
- if (this.type === 'friend') {
81
- return Promise.all([
82
- this.$clientChat.contacts.loadFriendGroupData()
83
- ]).then(rs => {
84
- this.friendGroupData = rs[0].data
85
- }).finally(() => {
86
- this.loading = false
87
- })
88
- } else if (this.type === 'room') {
89
- return Promise.all([
90
- this.$clientChat.contacts.loadRoomGroupData()
91
- ]).then(rs => {
92
- this.roomGroupData = rs[0].data
93
- }).finally(() => {
94
- this.loading = false
95
- })
96
- }
97
- },
98
- handleCancelClick () {
99
- this.$refs.popup.close()
100
- },
101
- handleConfirmClick (value) {
102
- this.$emit('input', value)
103
- this.$refs.popup.close()
104
- },
105
- handlePopupChange ({ show }) {
106
- this.showPopup = show
107
- if (show) {
108
- uni.hideTabBar()
109
- } else {
110
- uni.showTabBar()
111
- }
112
- },
113
- handleHandleClick () {
114
- this.$refs.popup.open()
115
- }
116
- }
117
- }
118
- </script>
119
-
120
- <style lang="less">
121
- .bi-account-select__handle {
122
- position: relative;
123
- padding-right: 18px;
124
- padding-top: 1px;
125
- padding-bottom: 1px;
126
- height: 32px;
127
- line-height: 32px;
128
- display: inline-block;
129
- &:after {
130
- content: '';
131
- width: 6px;
132
- height: 6px;
133
- border: 1px solid #ccc;
134
- border-left: 0;
135
- border-top: 0;
136
- transform: rotate(45deg) translateY(-50%);
137
- position: absolute;
138
- right: 6px;
139
- top: 50%;
140
- margin-top: -3px;
141
- }
142
- }
143
- .bi-account-select__loading{
144
- vertical-align: top;
145
- margin-top: 7px;
146
- }
147
- .bi-account-select__placeholder{
148
- color: #999;
149
- }
150
- </style>