fcr-ui-scene 3.4.0 → 3.4.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.
- package/lib/ scenes/base.d.ts +10 -0
- package/lib/ scenes/base.js +75 -0
- package/lib/ scenes/main-scene.d.ts +43 -0
- package/lib/ scenes/main-scene.js +368 -0
- package/lib/ scenes/waiting-scene.d.ts +31 -0
- package/lib/ scenes/waiting-scene.js +119 -0
- package/lib/common/device-store.d.ts +1 -2
- package/lib/common/device-store.js +169 -153
- package/lib/common/device-stream-store.d.ts +5 -29
- package/lib/common/device-stream-store.js +47 -93
- package/lib/common/room-store.js +4 -4
- package/lib/common/security-store.d.ts +6 -16
- package/lib/common/security-store.js +16 -17
- package/lib/common/type.d.ts +8 -0
- package/lib/common/type.js +6 -0
- package/lib/creator.js +3 -3
- package/lib/electron/app.js +21 -5
- package/lib/electron/bootstrap-sdk.js +1 -2
- package/lib/electron/injections.d.ts +1 -1
- package/lib/error-fallback.css +62 -0
- package/lib/error-fallback.d.ts +2 -0
- package/lib/error-fallback.js +19 -0
- package/lib/modules/Interpreter/action/delete-btn/index.d.ts +1 -1
- package/lib/modules/Interpreter/action/edit-btn/index.d.ts +0 -1
- package/lib/modules/Interpreter/action/edit-btn/index.js +0 -2
- package/lib/modules/Interpreter/action/switch-btn/index.css +3 -0
- package/lib/modules/Interpreter/action/switch-btn/index.d.ts +2 -4
- package/lib/modules/Interpreter/action/switch-btn/index.js +3 -3
- package/lib/modules/Interpreter/footer/index.css +4 -3
- package/lib/modules/Interpreter/index.d.ts +2 -17
- package/lib/modules/Interpreter/index.js +2 -18
- package/lib/modules/Interpreter/interpreter-list/index.css +5 -1
- package/lib/modules/Interpreter/interpreter-list/index.d.ts +1 -0
- package/lib/modules/Interpreter/interpreter-list/index.js +3 -1
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +0 -6
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +1 -1
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +1 -3
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +1 -6
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +55 -81
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +6 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +58 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +1 -1
- package/lib/modules/Interpreter/store.d.ts +36 -29
- package/lib/modules/Interpreter/store.js +575 -606
- package/lib/modules/Interpreter/type.d.ts +41 -0
- package/lib/modules/Interpreter/type.js +20 -0
- package/lib/modules/Interpreter/utils.d.ts +12 -0
- package/lib/modules/Interpreter/utils.js +139 -0
- package/lib/modules/Interpreter/view.d.ts +0 -1
- package/lib/modules/Interpreter/view.js +3 -5
- package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -1
- package/lib/modules/action-bar/action-bar-collapes-items.js +11 -11
- package/lib/modules/action-bar/apps/useInterpreter.js +4 -2
- package/lib/modules/action-bar/components/apps/app-item/index.css +35 -0
- package/lib/modules/action-bar/components/apps/app-item/index.d.ts +12 -0
- package/lib/modules/action-bar/components/apps/app-item/index.js +61 -0
- package/lib/modules/action-bar/components/apps/appitems.d.ts +5 -0
- package/lib/modules/action-bar/components/apps/appitems.js +45 -0
- package/lib/modules/action-bar/components/apps/index.css +8 -0
- package/lib/modules/action-bar/components/apps/index.d.ts +4 -0
- package/lib/modules/action-bar/components/apps/index.js +57 -0
- package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +9 -0
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +29 -0
- package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +10 -0
- package/lib/modules/action-bar/components/apps/useBeautyBackground.js +36 -0
- package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +14 -0
- package/lib/modules/action-bar/components/apps/useInterpreter.js +37 -0
- package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +16 -0
- package/lib/modules/action-bar/components/apps/useLiveStreaming.js +41 -0
- package/lib/modules/action-bar/components/board/index.d.ts +4 -0
- package/lib/modules/action-bar/components/board/index.js +34 -0
- package/lib/modules/action-bar/components/breakout-room/index.d.ts +4 -0
- package/lib/modules/action-bar/components/breakout-room/index.js +32 -0
- package/lib/modules/action-bar/components/chat/index.css +80 -0
- package/lib/modules/action-bar/components/chat/index.d.ts +5 -0
- package/lib/modules/action-bar/components/chat/index.js +154 -0
- package/lib/modules/action-bar/components/device/index.css +162 -0
- package/lib/modules/action-bar/components/device/index.d.ts +8 -0
- package/lib/modules/action-bar/components/device/index.js +611 -0
- package/lib/modules/action-bar/components/interpreter/index.d.ts +6 -0
- package/lib/modules/action-bar/components/interpreter/index.js +41 -0
- package/lib/modules/action-bar/components/item.d.ts +27 -0
- package/lib/modules/action-bar/components/item.js +164 -0
- package/lib/modules/action-bar/components/leave/assign-host.d.ts +10 -0
- package/lib/modules/action-bar/components/leave/assign-host.js +64 -0
- package/lib/modules/action-bar/components/leave/index.css +126 -0
- package/lib/modules/action-bar/components/leave/index.d.ts +3 -0
- package/lib/modules/action-bar/components/leave/index.js +159 -0
- package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +18 -0
- package/lib/modules/action-bar/components/leave/leave-meeting.js +153 -0
- package/lib/modules/action-bar/components/live-streaming/index.d.ts +4 -0
- package/lib/modules/action-bar/components/live-streaming/index.js +39 -0
- package/lib/modules/action-bar/components/more/index.css +114 -0
- package/lib/modules/action-bar/components/more/index.d.ts +5 -0
- package/lib/modules/action-bar/components/more/index.js +83 -0
- package/lib/modules/action-bar/components/more/poppover-content.d.ts +8 -0
- package/lib/modules/action-bar/components/more/poppover-content.js +400 -0
- package/lib/modules/action-bar/components/participants/index.css +21 -0
- package/lib/modules/action-bar/components/participants/index.d.ts +5 -0
- package/lib/modules/action-bar/components/participants/index.js +83 -0
- package/lib/modules/action-bar/components/record/index.css +39 -0
- package/lib/modules/action-bar/components/record/index.d.ts +5 -0
- package/lib/modules/action-bar/components/record/index.js +166 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +5 -0
- package/lib/modules/action-bar/components/record/stop-record-dialog.js +48 -0
- package/lib/modules/action-bar/components/respond/index.d.ts +4 -0
- package/lib/modules/action-bar/components/respond/index.js +32 -0
- package/lib/modules/action-bar/components/screen-share/index.d.ts +4 -0
- package/lib/modules/action-bar/components/screen-share/index.js +106 -0
- package/lib/modules/action-bar/components/screen-share/submenu.d.ts +1 -0
- package/lib/modules/action-bar/components/screen-share/submenu.js +154 -0
- package/lib/modules/action-bar/components/security/index.d.ts +4 -0
- package/lib/modules/action-bar/components/security/index.js +58 -0
- package/lib/modules/action-bar/components/settings/index.d.ts +4 -0
- package/lib/modules/action-bar/components/settings/index.js +42 -0
- package/lib/modules/action-bar/index.css +23 -1
- package/lib/modules/action-bar/index.d.ts +2 -22
- package/lib/modules/action-bar/index.dev.js +37 -16
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.css +58 -0
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +8 -0
- package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +100 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +56 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +5 -0
- package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +33 -0
- package/lib/modules/action-bar/notification-bar/dome.png +0 -0
- package/lib/modules/action-bar/notification-bar/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/notification-bar/index.css +74 -0
- package/lib/modules/action-bar/notification-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/notification-bar/index.js +99 -0
- package/lib/modules/action-bar/screen-share/index.js +5 -0
- package/lib/modules/action-bar/security/index.js +1 -0
- package/lib/modules/action-bar/smaller.js +2 -2
- package/lib/modules/action-bar/store.d.ts +6 -7
- package/lib/modules/action-bar/store.js +114 -128
- package/lib/modules/action-bar/trigger-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.css +86 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +15 -0
- package/lib/modules/action-bar/trigger-input-language-room/index.js +220 -0
- package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +10 -0
- package/lib/modules/action-bar/trigger-output-language-room/constant.js +8 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.css +22 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +14 -0
- package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.js +75 -0
- package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +4 -0
- package/lib/modules/action-bar/trigger-output-language-room/index.js +98 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +5 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +66 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +5 -0
- package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +36 -0
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
- package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
- package/lib/modules/action-bar/view.js +6 -6
- package/lib/modules/audio-stream/index.d.ts +2 -15
- package/lib/modules/audio-stream/index.js +1 -3
- package/lib/modules/chat/chat-bar/index.css +5 -0
- package/lib/modules/chat/chat-bar/index.js +16 -14
- package/lib/modules/chat/chat-select/index.css +6 -3
- package/lib/modules/chat/chat.js +7 -6
- package/lib/modules/chat/index.css +10 -0
- package/lib/modules/chat/index.d.ts +2 -12
- package/lib/modules/chat/index.dev.js +14 -3
- package/lib/modules/chat/index.js +7 -20
- package/lib/modules/chat/message-list.js +1 -0
- package/lib/modules/chat/store.js +1 -1
- package/lib/modules/components/device-control/components/audio-menu/index.js +4 -4
- package/lib/modules/components/device-control/index.css +3 -0
- package/lib/modules/components/dialog-container/component/body.d.ts +7 -0
- package/lib/modules/components/dialog-container/component/body.js +46 -0
- package/lib/modules/components/dialog-container/index.css +78 -0
- package/lib/modules/components/dialog-container/index.d.ts +11 -0
- package/lib/modules/components/dialog-container/index.js +110 -0
- package/lib/modules/components/member-window/index.css +419 -0
- package/lib/modules/components/member-window/index.d.ts +76 -0
- package/lib/modules/components/member-window/index.js +888 -0
- package/lib/modules/components/security-menu/index.css +9 -0
- package/lib/modules/components/security-menu/index.js +74 -23
- package/lib/modules/components/tab-frame/index.css +40 -0
- package/lib/modules/components/tab-frame/index.d.ts +12 -0
- package/lib/modules/components/tab-frame/index.js +57 -0
- package/lib/modules/connection-gateway/components/computer/index.css +1 -0
- package/lib/modules/connection-gateway/components/phone/index.css +1 -1
- package/lib/modules/connection-gateway/index.d.ts +2 -9
- package/lib/modules/connection-gateway/store.d.ts +3 -11
- package/lib/modules/connection-gateway/store.js +1 -17
- package/lib/modules/connection-gateway/view.js +21 -4
- package/lib/modules/control-bar/components/cloud-recording-buttons.js +1 -1
- package/lib/modules/control-bar/index.d.ts +2 -16
- package/lib/modules/control-bar/index.js +10 -19
- package/lib/modules/control-bar/store.d.ts +3 -16
- package/lib/modules/control-bar/store.js +23 -5
- package/lib/modules/control-bar/view.js +17 -10
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
- package/lib/modules/dialog/components/Interpreter/electron.js +3 -25
- package/lib/modules/dialog/components/Interpreter/index.js +14 -43
- package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
- package/lib/modules/dialog/components/chat/electron.js +6 -13
- package/lib/modules/dialog/components/chat/index.d.ts +1 -4
- package/lib/modules/dialog/components/chat/index.js +35 -41
- package/lib/modules/dialog/components/confirm/index.js +6 -7
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +1 -1
- package/lib/modules/dialog/components/connection-gateway/electron.js +9 -28
- package/lib/modules/dialog/components/connection-gateway/index.d.ts +0 -1
- package/lib/modules/dialog/components/connection-gateway/index.js +11 -56
- package/lib/modules/dialog/components/control-bar/index.js +6 -7
- package/lib/modules/dialog/components/device-setting/electron.js +4 -26
- package/lib/modules/dialog/components/device-setting/index.js +13 -41
- package/lib/modules/dialog/components/invite/index.js +16 -35
- package/lib/modules/dialog/components/live-streaming/index.js +18 -53
- package/lib/modules/dialog/components/participant/electron.js +4 -17
- package/lib/modules/dialog/components/participant/index.js +35 -26
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +3 -6
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +1 -1
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +4 -14
- package/lib/modules/dialog/components/share-screen-selection/index.js +20 -5
- package/lib/modules/dialog/components/system-preference/electron.js +5 -8
- package/lib/modules/dialog/components/system-preference/index.js +4 -15
- package/lib/modules/dialog/components/toast/index.js +8 -12
- package/lib/modules/dialog/dialogs.js +2 -1
- package/lib/modules/dialog/hooks/useElectron.d.ts +6 -0
- package/lib/modules/dialog/hooks/useElectron.js +51 -9
- package/lib/modules/dialog/index.css +0 -2
- package/lib/modules/dialog/index.d.ts +2 -17
- package/lib/modules/dialog/store.d.ts +7 -39
- package/lib/modules/dialog/store.js +53 -152
- package/lib/modules/dialog/types/index.d.ts +59 -0
- package/lib/modules/event-confirm/view.js +4 -1
- package/lib/modules/invite/view.d.ts +4 -0
- package/lib/modules/invite/view.js +18 -22
- package/lib/modules/invite/voip-invite.js +3 -3
- package/lib/modules/layout/components/Aside.js +11 -1
- package/lib/modules/layout/components/Carousel.js +1 -1
- package/lib/modules/layout/components/Layout.js +7 -4
- package/lib/modules/layout/components/index.css +6 -1
- package/lib/modules/layout/index.js +8 -7
- package/lib/modules/layout/member-window/index.css +22 -9
- package/lib/modules/layout/member-window/index.js +16 -3
- package/lib/modules/layout/store.d.ts +1 -1
- package/lib/modules/layout/store.js +1 -7
- package/lib/modules/layout/video-window-datasource.js +11 -3
- package/lib/modules/notification/index.css +1 -0
- package/lib/modules/participant/attendee/index.css +1 -0
- package/lib/modules/participant/attendee/index.js +2 -1
- package/lib/modules/participant/components/drop-menu/index.css +1 -0
- package/lib/modules/participant/components/drop-menu/index.js +9 -9
- package/lib/modules/participant/index.css +5 -0
- package/lib/modules/participant/index.d.ts +2 -17
- package/lib/modules/participant/index.dev.js +38 -27
- package/lib/modules/participant/store.d.ts +4 -17
- package/lib/modules/participant/store.js +13 -13
- package/lib/modules/setting/audio-settings/audio-settings.js +13 -10
- package/lib/modules/setting/audio-settings/index.css +26 -1
- package/lib/modules/setting/general-settings/index.css +1 -1
- package/lib/modules/setting/index.css +2 -1
- package/lib/modules/setting/index.d.ts +2 -15
- package/lib/modules/setting/index.dev.js +19 -10
- package/lib/modules/setting/store.d.ts +5 -18
- package/lib/modules/setting/store.js +48 -20
- package/lib/modules/setting/translate-settings/index.css +3 -1
- package/lib/modules/setting/video-settings/index.css +5 -2
- package/lib/modules/share-screen/index.dev.js +20 -19
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/selection/index.js +83 -97
- package/lib/modules/share-screen/store.js +16 -36
- package/lib/modules/sound-effect/index.d.ts +2 -13
- package/lib/modules/sound-effect/index.js +1 -2
- package/lib/modules/state-bar/index.css +13 -2
- package/lib/modules/state-bar/index.d.ts +1 -5
- package/lib/modules/state-bar/index.dev.js +1 -1
- package/lib/modules/state-bar/index.js +0 -27
- package/lib/modules/state-bar/layout-config.js +1 -1
- package/lib/modules/state-bar/meeting-network-state.css +1 -1
- package/lib/modules/state-bar/recording.js +7 -4
- package/lib/modules/state-bar/view.js +1 -1
- package/lib/modules/video-window/index.d.ts +2 -2
- package/lib/modules/video-window/store.d.ts +2 -1
- package/lib/modules/video-window/store.js +2 -2
- package/lib/modules/waiting-room-layout/index.css +1 -3
- package/lib/modules/waiting-room-layout/index.d.ts +3 -1
- package/lib/modules/waiting-room-layout/index.js +10 -3
- package/lib/modules/whiteboard/index.d.ts +2 -13
- package/lib/modules/whiteboard/index.js +4 -5
- package/lib/providers/device-privilege-provider.d.ts +30 -0
- package/lib/providers/device-privilege-provider.js +386 -0
- package/lib/providers/device-provider.d.ts +246 -0
- package/lib/providers/device-provider.js +1741 -0
- package/lib/providers/device-stream-provider.d.ts +36 -0
- package/lib/providers/device-stream-provider.js +460 -0
- package/lib/providers/event-provider.d.ts +108 -0
- package/lib/providers/event-provider.js +288 -0
- package/lib/providers/interpreter-provider.d.ts +25 -0
- package/lib/providers/interpreter-provider.js +151 -0
- package/lib/providers/local-storage-provider.d.ts +8 -0
- package/lib/providers/local-storage-provider.js +31 -0
- package/lib/providers/monitor-provider.d.ts +15 -0
- package/lib/providers/monitor-provider.js +29 -0
- package/lib/providers/privilege-provider.d.ts +216 -0
- package/lib/providers/privilege-provider.js +966 -0
- package/lib/providers/renderer-provider.d.ts +43 -0
- package/lib/providers/renderer-provider.js +245 -0
- package/lib/providers/room-provider.d.ts +79 -0
- package/lib/providers/room-provider.js +439 -0
- package/lib/providers/session-provider.d.ts +26 -0
- package/lib/providers/session-provider.js +49 -0
- package/lib/runtime.d.ts +1 -1
- package/lib/scenes/base.d.ts +10 -0
- package/lib/scenes/base.js +75 -0
- package/lib/scenes/main-scene.d.ts +48 -0
- package/lib/scenes/main-scene.js +390 -0
- package/lib/scenes/waiting-scene.d.ts +31 -0
- package/lib/scenes/waiting-scene.js +129 -0
- package/lib/shared-data-source/config.d.ts +16 -0
- package/lib/shared-data-source/config.js +21 -0
- package/lib/type.d.ts +26 -1
- package/lib/ui-manager.d.ts +3 -0
- package/lib/ui-manager.js +154 -233
- package/lib/ui-node.d.ts +25 -0
- package/lib/ui-node.js +156 -0
- package/lib/utilities/constant.d.ts +15 -15
- package/lib/utilities/constant.js +15 -15
- package/lib/utilities/tools.d.ts +2 -0
- package/lib/utilities/tools.js +42 -10
- package/package.json +12 -11
- package/public/assets/fcr_leave2.svg +58 -0
- package/public/index.html +150 -13
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.fcr-pc-full-screen-error {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100vh;
|
|
4
|
+
background-color: var(--fcr_ui_scene_inverse);
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.fcr-pc-full-screen-error-content {
|
|
11
|
+
width: 272px;
|
|
12
|
+
height: 415px;
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.fcr-pc-full-screen-error-content-img {
|
|
18
|
+
width: 200px;
|
|
19
|
+
height: 200px;
|
|
20
|
+
align-self: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.fcr-pc-full-screen-close-btn {
|
|
24
|
+
width: 140px;
|
|
25
|
+
height: 50px;
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
align-items: center;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.fcr-pc-full-screen-error-content-title {
|
|
32
|
+
color: var(--fcr_ui_scene_inverse2);
|
|
33
|
+
font-size: 28px;
|
|
34
|
+
font-weight: 800;
|
|
35
|
+
align-self: center;
|
|
36
|
+
margin-top: 26px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.fcr-pc-full-screen-error-content-desc {
|
|
40
|
+
color: var(--fcr_ui_scene_inverse2);
|
|
41
|
+
font-size: 16px;
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
align-self: center;
|
|
44
|
+
margin-top: 24px;
|
|
45
|
+
margin-bottom: 46px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.fcr-pc-full-screen-close-btn {
|
|
49
|
+
min-width: 56px;
|
|
50
|
+
height: 50px;
|
|
51
|
+
border-radius: var(--fcr_cornerradius_round);
|
|
52
|
+
background-color: var(--fcr_ui_scene_inverse2);
|
|
53
|
+
color: var(--fcr_ui_scene_inverse);
|
|
54
|
+
text-align: center;
|
|
55
|
+
line-height: 50px;
|
|
56
|
+
align-self: center;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.fcr-pc-full-screen-close-btn:active {
|
|
61
|
+
transform: scale(0.94);
|
|
62
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.ErrorFallback = void 0;
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
var ErrorFallback = exports.ErrorFallback = function ErrorFallback(_ref) {
|
|
10
|
+
var error = _ref.error;
|
|
11
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
12
|
+
className: "fcr-pc-full-screen-error",
|
|
13
|
+
style: {
|
|
14
|
+
width: '100%',
|
|
15
|
+
height: '100%',
|
|
16
|
+
backgroundColor: 'transparent'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
};
|
|
@@ -12,7 +12,6 @@ var _react = require("react");
|
|
|
12
12
|
var _mobxReact = require("mobx-react");
|
|
13
13
|
var _tooltipWrapper = _interopRequireDefault(require("../../tooltip-wrapper"));
|
|
14
14
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
15
|
-
require("./index.css");
|
|
16
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
16
|
var EditBtn = function EditBtn(props) {
|
|
18
17
|
var transI18n = (0, _i18n.useI18n)();
|
|
@@ -36,7 +35,6 @@ var EditBtn = function EditBtn(props) {
|
|
|
36
35
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltipWrapper["default"], {
|
|
37
36
|
disabled: disabled,
|
|
38
37
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
39
|
-
className: "fcr-simultaneous-interpretation__footer-right-set-btn",
|
|
40
38
|
shape: "rounded",
|
|
41
39
|
type: interpreterUsersEditState ? undefined : 'secondary-bordered',
|
|
42
40
|
size: "XS",
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
declare const _default: (props: SwitchBtnProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
1
|
+
import './index.css';
|
|
2
|
+
declare const _default: () => import("react/jsx-runtime").JSX.Element | null;
|
|
5
3
|
export default _default;
|
|
@@ -12,9 +12,9 @@ var _react = require("react");
|
|
|
12
12
|
var _mobxReact = require("mobx-react");
|
|
13
13
|
var _tooltipWrapper = _interopRequireDefault(require("../../tooltip-wrapper"));
|
|
14
14
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
15
|
+
require("./index.css");
|
|
15
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
var SwitchBtn = function SwitchBtn(
|
|
17
|
-
var className = props.className;
|
|
17
|
+
var SwitchBtn = function SwitchBtn() {
|
|
18
18
|
var transI18n = (0, _i18n.useI18n)();
|
|
19
19
|
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
20
20
|
openInterpreterState = _useContext.openInterpreterState,
|
|
@@ -39,7 +39,7 @@ var SwitchBtn = function SwitchBtn(props) {
|
|
|
39
39
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltipWrapper["default"], {
|
|
40
40
|
disabled: disabled,
|
|
41
41
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
42
|
-
className:
|
|
42
|
+
className: "fcr-interpretation__footer-switch-btn",
|
|
43
43
|
shape: "rounded",
|
|
44
44
|
size: "XS",
|
|
45
45
|
onClick: handleClick,
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
5
|
-
position: fixed;
|
|
6
|
-
width: calc(100% - 40px);
|
|
7
5
|
height: 56px;
|
|
8
|
-
bottom: 0;
|
|
9
6
|
background: var(--fcr_mobile_ui_scene_color_popup_fill2);
|
|
7
|
+
position: absolute;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: 0px 20px 0px;
|
|
10
11
|
}
|
|
@@ -1,23 +1,8 @@
|
|
|
1
1
|
import { UIModule } from '../../base';
|
|
2
|
-
import {
|
|
3
|
-
import { FcrInterpreterControl } from 'fcr-core/lib/room-control/interpreter-control/types';
|
|
4
|
-
import { FcrMainRoomControl } from 'fcr-core/lib/room-control/type';
|
|
5
|
-
import './index.css';
|
|
6
|
-
import { FcrDeviceStore } from '../../common/device-store';
|
|
7
|
-
import { FcrRoomStore } from '../../common/room-store';
|
|
8
|
-
import { FcrDeviceStreamStore } from '../../common/device-stream-store';
|
|
9
|
-
import { FcrSecurityStore } from '../../common/security-store';
|
|
2
|
+
import { StoreConfig } from '../../type';
|
|
10
3
|
export declare class InterpreterUIModule extends UIModule {
|
|
11
4
|
private _store;
|
|
12
|
-
constructor(
|
|
13
|
-
uiEventStore: FcrUIEventStore;
|
|
14
|
-
roomControl: FcrMainRoomControl;
|
|
15
|
-
interpreterControl: FcrInterpreterControl;
|
|
16
|
-
deviceStore: FcrDeviceStore;
|
|
17
|
-
roomStore: FcrRoomStore;
|
|
18
|
-
deviceStreamStore: FcrDeviceStreamStore;
|
|
19
|
-
securityStore: FcrSecurityStore;
|
|
20
|
-
});
|
|
5
|
+
constructor(args: StoreConfig);
|
|
21
6
|
getComponent(): import("react/jsx-runtime").JSX.Element;
|
|
22
7
|
protected onUnload(): void;
|
|
23
8
|
}
|
|
@@ -56,7 +56,6 @@ var _decorator = require("agora-foundation/lib/decorator");
|
|
|
56
56
|
var _base = require("../../base");
|
|
57
57
|
var _view = require("./view");
|
|
58
58
|
var _store = _interopRequireWildcard(require("./store"));
|
|
59
|
-
require("./index.css");
|
|
60
59
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
61
60
|
var _InterpreterUIModule;
|
|
62
61
|
var _initProto;
|
|
@@ -70,27 +69,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
70
69
|
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
71
70
|
function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
|
|
72
71
|
var InterpreterUIModule = exports.InterpreterUIModule = /*#__PURE__*/function (_UIModule) {
|
|
73
|
-
function InterpreterUIModule(
|
|
72
|
+
function InterpreterUIModule(args) {
|
|
74
73
|
var _this;
|
|
75
|
-
var roomControl = _ref.roomControl,
|
|
76
|
-
interpreterControl = _ref.interpreterControl,
|
|
77
|
-
uiEventStore = _ref.uiEventStore,
|
|
78
|
-
deviceStore = _ref.deviceStore,
|
|
79
|
-
roomStore = _ref.roomStore,
|
|
80
|
-
deviceStreamStore = _ref.deviceStreamStore,
|
|
81
|
-
securityStore = _ref.securityStore;
|
|
82
74
|
(0, _classCallCheck2["default"])(this, InterpreterUIModule);
|
|
83
75
|
_this = _callSuper(this, InterpreterUIModule);
|
|
84
76
|
(0, _defineProperty2["default"])(_this, "_store", void _initProto(_this));
|
|
85
|
-
_this._store = new _store["default"](
|
|
86
|
-
roomControl: roomControl,
|
|
87
|
-
interpreterControl: interpreterControl,
|
|
88
|
-
uiEventStore: uiEventStore,
|
|
89
|
-
deviceStore: deviceStore,
|
|
90
|
-
roomStore: roomStore,
|
|
91
|
-
deviceStreamStore: deviceStreamStore,
|
|
92
|
-
securityStore: securityStore
|
|
93
|
-
});
|
|
77
|
+
_this._store = new _store["default"](args);
|
|
94
78
|
return _this;
|
|
95
79
|
}
|
|
96
80
|
(0, _inherits2["default"])(InterpreterUIModule, _UIModule);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
interface InterpreterListProps {
|
|
3
3
|
isShowAddBtn: boolean;
|
|
4
|
+
refDom: React.MutableRefObject<HTMLDivElement | null>;
|
|
4
5
|
}
|
|
5
6
|
declare const _default: (props: InterpreterListProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export default _default;
|
|
@@ -28,11 +28,13 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
28
28
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
29
29
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
30
30
|
var InterpreterList = function InterpreterList(props) {
|
|
31
|
-
var isShowAddBtn = props.isShowAddBtn
|
|
31
|
+
var isShowAddBtn = props.isShowAddBtn,
|
|
32
|
+
refDom = props.refDom;
|
|
32
33
|
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
33
34
|
localInterpreterUsers = _useContext.localInterpreterUsers;
|
|
34
35
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
35
36
|
className: "fcr-simultaneous-interpretation__interpreter-list-container",
|
|
37
|
+
ref: refDom,
|
|
36
38
|
children: [isShowAddBtn && /*#__PURE__*/(0, _jsxRuntime.jsx)(_addBtn["default"], {
|
|
37
39
|
position: _addBtn.PositionType.TOP
|
|
38
40
|
}), localInterpreterUsers.map(function (ele, i) {
|
package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css
CHANGED
|
@@ -40,12 +40,6 @@
|
|
|
40
40
|
margin-left: 3px;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.fcr-simultaneous-interpretation__pick-Language-container-icon {
|
|
44
|
-
/* width: 24px;
|
|
45
|
-
height: 24px;
|
|
46
|
-
padding: 4px; */
|
|
47
|
-
}
|
|
48
|
-
|
|
49
43
|
.fcr-simultaneous-interpretation__pick-Language-container .fcr-select__options {
|
|
50
44
|
max-height: 100px;
|
|
51
45
|
overflow-y: overlay;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FcrLanguage } from 'fcr-core/lib/room-control/interpreter-control/types';
|
|
2
2
|
import './index.css';
|
|
3
|
-
import { InitInterpreterItemModelType } from '../../../../
|
|
3
|
+
import { InitInterpreterItemModelType } from '../../../../type';
|
|
4
4
|
export declare const OptionItem: (props: {
|
|
5
5
|
model: FcrLanguage;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css
CHANGED
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
flex: 1;
|
|
4
4
|
margin-right: 8px;
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
/* padding: 4px 11px 4px 11px; */
|
|
8
|
-
}
|
|
6
|
+
|
|
9
7
|
.fcr-simultaneous-interpretation__select-user .fcr-select__options {
|
|
10
8
|
max-height: 112px;
|
|
11
9
|
overflow-y: overlay;
|
package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { InitInterpreterItemModelType } from '../../../../constant';
|
|
1
|
+
import { InitInterpreterItemModelType } from '../../../../type';
|
|
3
2
|
import './index.css';
|
|
4
|
-
type InterpreterItemPropertyKeys = keyof FcrInterpreterUserInfo;
|
|
5
|
-
export type ObjectSatisfyingAnyInterpreterItemProperty = {
|
|
6
|
-
[K in InterpreterItemPropertyKeys]?: FcrInterpreterUserInfo[K];
|
|
7
|
-
};
|
|
8
3
|
interface PickUserProps {
|
|
9
4
|
model: InitInterpreterItemModelType;
|
|
10
5
|
}
|
package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js
CHANGED
|
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
17
|
exports["default"] = void 0;
|
|
18
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
18
19
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
19
20
|
require("core-js/modules/es.array.filter.js");
|
|
20
21
|
require("core-js/modules/es.array.find.js");
|
|
@@ -28,55 +29,21 @@ require("core-js/modules/esnext.iterator.constructor.js");
|
|
|
28
29
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
29
30
|
require("core-js/modules/esnext.iterator.find.js");
|
|
30
31
|
require("core-js/modules/esnext.iterator.map.js");
|
|
31
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
32
32
|
var _react = require("react");
|
|
33
33
|
var _select = require("agora-ui-foundation/lib/components/select");
|
|
34
34
|
var _store = require("../../../../store");
|
|
35
35
|
var _mobxReact = require("mobx-react");
|
|
36
36
|
var _type = require("fcr-core/lib/type");
|
|
37
|
-
var _avatar = require("agora-ui-foundation/lib/components/avatar");
|
|
38
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
39
37
|
var _type2 = require("agora-rte-sdk/lib/core/scene/type");
|
|
40
38
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
39
|
+
var _optionItem = _interopRequireDefault(require("./option-Item"));
|
|
41
40
|
require("./index.css");
|
|
42
41
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
43
|
-
var _excluded = ["randomKey"];
|
|
42
|
+
var _excluded = ["randomKey", "userId"];
|
|
44
43
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
45
44
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
46
|
-
var OptionItem = (0, _mobxReact.observer)(function (props) {
|
|
47
|
-
var model = props.model;
|
|
48
|
-
var transI18n = (0, _i18n.useI18n)();
|
|
49
|
-
var userRole = (0, _react.useMemo)(function () {
|
|
50
|
-
if (_type.FcrUserRole.HOST === model.userRole) {
|
|
51
|
-
return transI18n('fmt_interpretation_interpreter_popup_special_co_host');
|
|
52
|
-
}
|
|
53
|
-
if (_type.FcrUserRole.COHOST === model.userRole) {
|
|
54
|
-
return transI18n('fmt_interpretation_interpreter_popup_special_host');
|
|
55
|
-
}
|
|
56
|
-
return null;
|
|
57
|
-
}, [model.userRole]);
|
|
58
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
59
|
-
className: "fcr-simultaneous-interpretation__select-user-options-item",
|
|
60
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
61
|
-
className: (0, _classnames["default"])('fcr-simultaneous-interpretation__select-user-options-item-avatar'),
|
|
62
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
63
|
-
size: 24,
|
|
64
|
-
nickName: model.userName,
|
|
65
|
-
textSize: 13
|
|
66
|
-
})
|
|
67
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
68
|
-
className: "fcr-simultaneous-interpretation__select-user-options-item-user",
|
|
69
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
70
|
-
className: "fcr-simultaneous-interpretation__select-user-options-item-user-name",
|
|
71
|
-
children: model.userName
|
|
72
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
73
|
-
className: "fcr-simultaneous-interpretation__select-user-options-item-user-role",
|
|
74
|
-
children: userRole && "(".concat(userRole, ")")
|
|
75
|
-
})]
|
|
76
|
-
})]
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
45
|
var PickUser = function PickUser(props) {
|
|
46
|
+
var _usersOptions$find;
|
|
80
47
|
var model = props.model;
|
|
81
48
|
var transI18n = (0, _i18n.useI18n)();
|
|
82
49
|
var _useContext = (0, _react.useContext)(_store.StoreContext),
|
|
@@ -85,70 +52,77 @@ var PickUser = function PickUser(props) {
|
|
|
85
52
|
interpreterUsersEditState = _useContext.interpreterUsersEditState,
|
|
86
53
|
initUsers = _useContext.initUsers,
|
|
87
54
|
localInterpreterUsers = _useContext.localInterpreterUsers;
|
|
88
|
-
var
|
|
89
|
-
updateInterpreterUsers(_objectSpread(_objectSpread({}, model), data));
|
|
90
|
-
};
|
|
91
|
-
var selectProps = (0, _react.useMemo)(function () {
|
|
92
|
-
var _usersOptions$find;
|
|
93
|
-
var selectedUserInfo = initUsers.find(function (user) {
|
|
94
|
-
return user.userId === model.userId;
|
|
95
|
-
});
|
|
55
|
+
var usersOptions = (0, _react.useMemo)(function () {
|
|
96
56
|
var usersOptions = initUsers.filter(function (user) {
|
|
97
|
-
var
|
|
57
|
+
var isSelected = model.userId === user.userId;
|
|
58
|
+
|
|
59
|
+
//未离线 或者 离线且当前行选中状态
|
|
60
|
+
var notOffline = !user.isOffLine || user.isOffLine && isSelected;
|
|
61
|
+
// 当前用户选项 是否被使用过
|
|
98
62
|
var usedUser = localInterpreterUsers.find(function (interpreter) {
|
|
99
63
|
return interpreter.userId === user.userId;
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
|
|
64
|
+
});
|
|
65
|
+
// 未使用过 或者 使用过且当前行选中状态
|
|
66
|
+
var unused = !usedUser || usedUser && isSelected;
|
|
103
67
|
return notOffline && unused;
|
|
104
|
-
});
|
|
105
|
-
|
|
68
|
+
});
|
|
69
|
+
var selectedUserInfo = initUsers.find(function (user) {
|
|
70
|
+
return user.userId === model.userId;
|
|
71
|
+
});
|
|
106
72
|
if (!selectedUserInfo && model.userId) {
|
|
107
73
|
var randomKey = model.randomKey,
|
|
74
|
+
userId = model.userId,
|
|
108
75
|
rest = (0, _objectWithoutProperties2["default"])(model, _excluded);
|
|
109
76
|
usersOptions.push(_objectSpread(_objectSpread({}, rest), {}, {
|
|
77
|
+
userId: userId,
|
|
110
78
|
userRole: _type.FcrUserRole.PARTICIPANT,
|
|
111
79
|
connectorType: _type2.AgoraRteRoomConnectorType.NONE,
|
|
112
80
|
isOffLine: true
|
|
113
81
|
}));
|
|
114
82
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
83
|
+
return usersOptions;
|
|
84
|
+
}, [initUsers, model, localInterpreterUsers]);
|
|
85
|
+
var options = (0, _react.useMemo)(function () {
|
|
86
|
+
return usersOptions.map(function (user) {
|
|
87
|
+
var isSelected = model.userId === user.userId;
|
|
88
|
+
return {
|
|
89
|
+
text: user.userName,
|
|
90
|
+
value: user.userId,
|
|
91
|
+
render: function render(option) {
|
|
92
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_optionItem["default"], {
|
|
93
|
+
model: user,
|
|
94
|
+
isSelected: isSelected
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
}, [usersOptions, model]);
|
|
100
|
+
var isOffLine = (_usersOptions$find = usersOptions.find(function (user) {
|
|
101
|
+
return user.userId === model.userId;
|
|
102
|
+
})) === null || _usersOptions$find === void 0 ? void 0 : _usersOptions$find.isOffLine;
|
|
103
|
+
var tag = isOffLine ? transI18n('fmt_interpretation_setting_popup_controller_label_departure') : '';
|
|
104
|
+
var onChange = function onChange(value) {
|
|
105
|
+
var checkedItem = options.find(function (option) {
|
|
106
|
+
return option.value === value;
|
|
107
|
+
});
|
|
108
|
+
if (checkedItem) {
|
|
109
|
+
var interpreterUsers = _objectSpread(_objectSpread({}, model), {}, {
|
|
110
|
+
userId: checkedItem.value,
|
|
111
|
+
userName: checkedItem.text
|
|
112
|
+
});
|
|
113
|
+
updateInterpreterUsers(interpreterUsers);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
133
116
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_select.FcrSelect, {
|
|
134
117
|
className: "fcr-simultaneous-interpretation__select-user",
|
|
135
118
|
showSearch: true,
|
|
136
|
-
options:
|
|
119
|
+
options: options,
|
|
137
120
|
value: model.userId,
|
|
138
|
-
onChange:
|
|
139
|
-
var _selectProps$options$;
|
|
140
|
-
var userName = (_selectProps$options$ = selectProps.options.find(function (option) {
|
|
141
|
-
return option.value === value;
|
|
142
|
-
})) === null || _selectProps$options$ === void 0 ? void 0 : _selectProps$options$.text;
|
|
143
|
-
handleChange({
|
|
144
|
-
userId: value,
|
|
145
|
-
userName: userName
|
|
146
|
-
});
|
|
147
|
-
},
|
|
121
|
+
onChange: onChange,
|
|
148
122
|
disabled: !interpreterUsersEditState && interpreterState,
|
|
149
123
|
placeholder: transI18n('fmt_interpretation_setting_popup_controller_labe_search_name'),
|
|
150
124
|
styleType: "white",
|
|
151
|
-
tag:
|
|
125
|
+
tag: tag
|
|
152
126
|
});
|
|
153
127
|
};
|
|
154
128
|
var _default = exports["default"] = (0, _mobxReact.observer)(PickUser);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
var _avatar = require("agora-ui-foundation/lib/components/avatar");
|
|
10
|
+
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
11
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
12
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
13
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
|
+
var _fcrCore = require("fcr-core");
|
|
15
|
+
var _mobxReact = require("mobx-react");
|
|
16
|
+
var _react = require("react");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
var OptionItem = (0, _mobxReact.observer)(function (props) {
|
|
19
|
+
var model = props.model,
|
|
20
|
+
isSelected = props.isSelected;
|
|
21
|
+
var transI18n = (0, _i18n.useI18n)();
|
|
22
|
+
var userRole = (0, _react.useMemo)(function () {
|
|
23
|
+
if (_fcrCore.FcrUserRole.HOST === model.userRole) {
|
|
24
|
+
return transI18n('fmt_interpretation_interpreter_popup_special_co_host');
|
|
25
|
+
}
|
|
26
|
+
if (_fcrCore.FcrUserRole.COHOST === model.userRole) {
|
|
27
|
+
return transI18n('fmt_interpretation_interpreter_popup_special_host');
|
|
28
|
+
}
|
|
29
|
+
return null;
|
|
30
|
+
}, [model.userRole]);
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
32
|
+
className: "fcr-simultaneous-interpretation__select-user-options-item",
|
|
33
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
34
|
+
className: (0, _classnames["default"])('fcr-simultaneous-interpretation__select-user-options-item-avatar'),
|
|
35
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
|
|
36
|
+
size: 24,
|
|
37
|
+
nickName: model.userName,
|
|
38
|
+
textSize: 13
|
|
39
|
+
})
|
|
40
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
41
|
+
className: "fcr-simultaneous-interpretation__select-user-options-item-user",
|
|
42
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
43
|
+
className: "fcr-simultaneous-interpretation__select-user-options-item-user-name",
|
|
44
|
+
children: model.userName
|
|
45
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
46
|
+
className: "fcr-simultaneous-interpretation__select-user-options-item-user-role",
|
|
47
|
+
children: userRole && "(".concat(userRole, ")")
|
|
48
|
+
})]
|
|
49
|
+
}), isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
50
|
+
type: _type.FcrIconType.FCR_CHOOSEIT,
|
|
51
|
+
size: 24,
|
|
52
|
+
colors: {
|
|
53
|
+
iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
|
|
54
|
+
}
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
var _default = exports["default"] = OptionItem;
|