@agilemotion/oui-react-js 1.6.3 → 1.6.5
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/dist/ApplicationManager.js +675 -1044
- package/dist/BasicApp.js +7 -27
- package/dist/BasicAppHome.js +27 -101
- package/dist/DynamicJS.js +109 -197
- package/dist/InteractionPortalApp.js +7 -27
- package/dist/InteractionPortalAppHome.js +21 -87
- package/dist/InteractionPortalApp_old.js +60 -122
- package/dist/RestUtils.js +269 -410
- package/dist/TypedValue.js +20 -26
- package/dist/Utils.js +295 -481
- package/dist/WithRouter.js +9 -17
- package/dist/assets/jss/components/authNavbarStyle.js +168 -171
- package/dist/assets/jss/components/buttonStyle.js +2 -5
- package/dist/assets/jss/components/cardAvatarStyle.js +2 -5
- package/dist/assets/jss/components/cardBodyStyle.js +2 -5
- package/dist/assets/jss/components/cardFooterStyle.js +2 -5
- package/dist/assets/jss/components/cardHeaderStyle.js +20 -17
- package/dist/assets/jss/components/cardIconStyle.js +2 -5
- package/dist/assets/jss/components/cardStyle.js +2 -5
- package/dist/assets/jss/components/cardTextStyle.js +2 -5
- package/dist/assets/jss/components/customDropdownStyle.js +171 -173
- package/dist/assets/jss/components/customInputStyle.js +5 -13
- package/dist/assets/jss/components/dropdownStyle.js +71 -74
- package/dist/assets/jss/components/footerStyle.js +14 -23
- package/dist/assets/jss/components/headerLinksStyle.js +52 -53
- package/dist/assets/jss/components/headerStyle.js +68 -73
- package/dist/assets/jss/components/navbarLinksStyle.js +81 -74
- package/dist/assets/jss/components/navbarStyle.js +79 -84
- package/dist/assets/jss/components/sidebarStyle.js +438 -441
- package/dist/assets/jss/components/typographyStyle.js +5 -13
- package/dist/assets/jss/rootStyle.js +85 -151
- package/dist/assets/jss/views/layoutStyle.js +45 -51
- package/dist/assets/jss/views/loginBasicStyle.js +2 -5
- package/dist/assets/jss/views/loginBusinessPortalStyle.js +2 -5
- package/dist/assets/jss/views/loginStyle.js +80 -87
- package/dist/components/AlertBar.js +20 -75
- package/dist/components/AlertItem.js +13 -49
- package/dist/components/AlertTemplate.js +12 -18
- package/dist/components/Button.js +41 -112
- package/dist/components/Calendar.js +99 -208
- package/dist/components/ConfirmationDialog.js +13 -54
- package/dist/components/DataGrid.js +271 -695
- package/dist/components/DataGridColumn.js +24 -74
- package/dist/components/DataGridFilter.js +107 -245
- package/dist/components/DataGridHeading.js +34 -78
- package/dist/components/Dialog.js +37 -130
- package/dist/components/DocumentTemplateDesigner.js +16 -57
- package/dist/components/DocumentTemplateDesignerComponent.js +47 -141
- package/dist/components/DocumentTemplatePlaceholderDialog.js +34 -67
- package/dist/components/DocumentViewer.js +25 -65
- package/dist/components/DocumentViewerComponent.js +13 -44
- package/dist/components/ElementResizeHandler.js +148 -200
- package/dist/components/FileThumb.js +15 -56
- package/dist/components/Graph.js +98 -203
- package/dist/components/GraphNode.js +20 -61
- package/dist/components/HtmlPanel.js +38 -105
- package/dist/components/Icon.js +174 -253
- package/dist/components/LoadingIndicator.js +4 -11
- package/dist/components/LottieIcon.js +63 -60
- package/dist/components/PopupView.js +21 -60
- package/dist/components/Portlet.js +18 -60
- package/dist/components/RegularButton.js +34 -42
- package/dist/components/SignaturePanel.js +19 -67
- package/dist/components/SocketManager.js +133 -228
- package/dist/components/StepperTitleBar.js +48 -99
- package/dist/components/TabPage.js +30 -47
- package/dist/components/TabPanel.js +35 -122
- package/dist/components/TableCellContent.js +34 -98
- package/dist/components/TemplateDesigner.js +115 -230
- package/dist/components/TemplateItemEventHandler.js +298 -481
- package/dist/components/TemplateTable.js +117 -218
- package/dist/components/TitleBar.js +15 -53
- package/dist/components/Toolbar.js +44 -110
- package/dist/components/Tooltip.js +37 -56
- package/dist/components/Tree.js +50 -143
- package/dist/components/UseIsVisible.js +5 -25
- package/dist/components/card/Card.js +35 -39
- package/dist/components/card/CardAvatar.js +21 -32
- package/dist/components/card/CardBody.js +29 -36
- package/dist/components/card/CardFooter.js +26 -35
- package/dist/components/card/CardHeader.js +29 -36
- package/dist/components/card/CardIcon.js +15 -29
- package/dist/components/card/CardText.js +15 -29
- package/dist/components/customInput/CustomInput.js +38 -40
- package/dist/components/dashboard/FoldingSideTabDashboard.js +65 -184
- package/dist/components/dashboard/SideMenuModuleDashboard.js +67 -185
- package/dist/components/dashboard/TopMenuModuleDashboard.js +22 -63
- package/dist/components/dashboard/components/Header.js +15 -52
- package/dist/components/dashboard/components/LeftDrawer.js +9 -23
- package/dist/components/dashboard/components/UserIdentity.js +4 -12
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +115 -155
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +344 -419
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenu.js +15 -29
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +405 -485
- package/dist/components/dashboard/components/portal/Timeline.js +3 -8
- package/dist/components/dashboard/components/portal/Workspace.js +4 -13
- package/dist/components/footer/Footer.js +23 -45
- package/dist/components/footer/HomeFooter.js +38 -78
- package/dist/components/form/AddressSearch.js +26 -76
- package/dist/components/form/AutoComplete.js +54 -168
- package/dist/components/form/BaseField.js +59 -189
- package/dist/components/form/Checkbox.js +11 -24
- package/dist/components/form/DatePicker.js +28 -82
- package/dist/components/form/FieldSet.js +84 -300
- package/dist/components/form/Form.js +206 -501
- package/dist/components/form/GridField.js +83 -243
- package/dist/components/form/IconField.js +10 -21
- package/dist/components/form/ImageEditor.js +98 -208
- package/dist/components/form/LabelField.js +13 -28
- package/dist/components/form/LookupField.js +36 -102
- package/dist/components/form/MultiFileUploadField.js +67 -134
- package/dist/components/form/RadioGroup.js +20 -57
- package/dist/components/form/Section.js +33 -118
- package/dist/components/form/SelectItem.js +36 -83
- package/dist/components/form/SignatureTemplateDesignerField.js +12 -26
- package/dist/components/form/Switch.js +11 -24
- package/dist/components/form/TextField.js +19 -55
- package/dist/components/form/TimePicker.js +18 -43
- package/dist/components/form/TransferList.js +76 -200
- package/dist/components/form/UploadField.js +134 -256
- package/dist/components/grid/GridContainer.js +10 -23
- package/dist/components/grid/GridItem.js +10 -23
- package/dist/components/layout/CollapsiblePanel.js +20 -59
- package/dist/components/layout/Layout.js +40 -149
- package/dist/components/layout/View.js +65 -195
- package/dist/components/layout/ViewContainer.js +13 -33
- package/dist/components/layout/ViewPort.js +14 -48
- package/dist/components/layout/Window.js +62 -135
- package/dist/components/layout/WindowViewPort.js +18 -63
- package/dist/components/media/ClosablePanel.js +9 -18
- package/dist/components/media/LobbyWaitingList.js +11 -17
- package/dist/components/media/MediaSoupHelper.js +173 -401
- package/dist/components/media/SideBarContent.js +17 -34
- package/dist/components/media/SocketRequest.js +7 -18
- package/dist/components/media/SocketResponse.js +5 -14
- package/dist/components/media/Timer.js +18 -54
- package/dist/components/media/Toolbar.js +97 -254
- package/dist/components/media/ToolbarButton.js +34 -95
- package/dist/components/media/Toolbar_bck.js +70 -186
- package/dist/components/media/Tracks.js +19 -33
- package/dist/components/media/TrainingRoom.js +121 -374
- package/dist/components/media/Transports.js +17 -29
- package/dist/components/media/VCEventManager.js +45 -116
- package/dist/components/media/VCEventType.js +82 -168
- package/dist/components/media/VCParticipantList.js +16 -51
- package/dist/components/media/VCParticipantListItem.js +44 -141
- package/dist/components/media/VCRoom.js +14 -58
- package/dist/components/media/VCRoomParticipant.js +235 -556
- package/dist/components/media/VCRoomRecorder.js +106 -204
- package/dist/components/media/VCRoomWorkspace.js +248 -584
- package/dist/components/media/Video.js +27 -112
- package/dist/components/media/VideoPlayer.js +23 -91
- package/dist/components/media/chat/ChatRoom.js +143 -361
- package/dist/components/media/chat/ChatRoomItem.js +17 -58
- package/dist/components/media/chat/ChatRoomList.js +15 -60
- package/dist/components/menu/CollapsibleMenu.js +22 -52
- package/dist/components/menu/MenuBars.js +50 -116
- package/dist/components/menu/MenuButton.js +53 -130
- package/dist/components/menu/MenuItem.js +11 -51
- package/dist/components/menu/MenuLink.js +13 -41
- package/dist/components/menu/PopupMenu.js +13 -25
- package/dist/components/navbars/AuthNavbar.js +21 -56
- package/dist/components/navbars/HomeNavbar.js +213 -290
- package/dist/components/navbars/PortalNavbar.js +26 -81
- package/dist/components/signatures/AgilitySignaturePanel.js +41 -135
- package/dist/components/signatures/AlertItem.js +14 -50
- package/dist/components/signatures/Card.js +6 -16
- package/dist/components/signatures/DocumentContainer.js +57 -165
- package/dist/components/signatures/ImageSignatureInput.js +64 -124
- package/dist/components/signatures/MenuButton.js +28 -63
- package/dist/components/signatures/Prompt.js +6 -41
- package/dist/components/signatures/ResponsiveTable.js +181 -370
- package/dist/components/signatures/SearchView.js +34 -112
- package/dist/components/signatures/SignatorySearch.js +11 -44
- package/dist/components/signatures/SignatorySearchForm.js +19 -50
- package/dist/components/signatures/SignatureInput.js +28 -91
- package/dist/components/signatures/SignatureInputProps.js +49 -144
- package/dist/components/signatures/SignatureTemplateDesigner.js +230 -430
- package/dist/components/signatures/Toolbar.js +99 -173
- package/dist/components/signatures/ViewUtils.js +207 -313
- package/dist/components/typography/Danger.js +6 -11
- package/dist/components/typography/Info.js +7 -11
- package/dist/components/typography/Link.js +6 -12
- package/dist/event/ActionHandlers.js +48 -87
- package/dist/event/Event.js +21 -25
- package/dist/event/EventListener.js +54 -48
- package/dist/event/EventType.js +18 -40
- package/dist/event/LoadDataActionHandler.js +10 -31
- package/dist/event/Observable.js +204 -396
- package/dist/event/RouteActionHandler.js +119 -171
- package/dist/event/ScriptActionHandler.js +10 -32
- package/dist/event/ServiceCallActionHandler.js +37 -64
- package/dist/event/SignalGraphActionHandler.js +9 -31
- package/dist/js/Addresses.js +23 -42
- package/dist/js/Calendar.js +41 -89
- package/dist/js/DynamicLib.js +11 -23
- package/dist/js/Media.js +80 -174
- package/dist/js/Validators.js +6 -12
- package/dist/js/Windows.js +22 -40
- package/dist/redux/store/ConfigureStore.js +12 -29
- package/dist/redux/store/DashboardStore.js +47 -120
- package/dist/redux/store/History.js +2 -5
- package/dist/redux/store/SecurityStore.js +22 -65
- package/dist/security/TokenManager.js +29 -53
- package/dist/theme-default.js +3 -8
- package/dist/view/Dashboard.js +140 -308
- package/dist/view/PortalDashboard.js +6 -13
- package/dist/view/Settings.js +3 -11
- package/dist/view/Views.js +15 -35
- package/dist/view/security/ChangePasswordBasic.js +41 -147
- package/dist/view/security/ForgotPassword.js +26 -106
- package/dist/view/security/ForgotPasswordBasic.js +22 -96
- package/dist/view/security/Login.js +29 -117
- package/dist/view/security/LoginBasic.js +28 -108
- package/dist/view/security/LoginInteractionPortal.js +28 -106
- package/dist/view/security/ResetPassword.js +25 -110
- package/dist/view/security/ResetPasswordBasic.js +39 -142
- package/dist/view/security/Security.js +14 -26
- package/package.json +26 -21
|
@@ -1,116 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = void 0;
|
|
9
|
-
|
|
10
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
8
|
require("./VCParticipantList.css");
|
|
13
|
-
|
|
14
9
|
var _core = require("@material-ui/core");
|
|
15
|
-
|
|
16
10
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
17
|
-
|
|
18
11
|
var _icons = require("@material-ui/icons");
|
|
19
|
-
|
|
20
12
|
var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
|
|
21
|
-
|
|
22
13
|
var _Utils = _interopRequireDefault(require("../../Utils"));
|
|
23
|
-
|
|
24
14
|
var _VCEventManager = _interopRequireDefault(require("./VCEventManager"));
|
|
25
|
-
|
|
26
15
|
var _VCEventType = require("./VCEventType");
|
|
27
|
-
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
45
|
-
|
|
46
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
|
-
|
|
48
|
-
var VCParticipantListItem = function VCParticipantListItem(props) {
|
|
49
|
-
var _useState = (0, _react.useState)(null),
|
|
50
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
51
|
-
anchorEl = _useState2[0],
|
|
52
|
-
setAnchorEl = _useState2[1];
|
|
53
|
-
|
|
54
|
-
var openMoreActions = Boolean(anchorEl);
|
|
55
|
-
var participant = props.participant;
|
|
56
|
-
|
|
57
|
-
var _React$useState = _react.default.useState(participant.handRaised),
|
|
58
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
59
|
-
handRaised = _React$useState2[0],
|
|
60
|
-
setHandRaised = _React$useState2[1];
|
|
61
|
-
|
|
62
|
-
var _React$useState3 = _react.default.useState(participant.inView),
|
|
63
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
64
|
-
inView = _React$useState4[0],
|
|
65
|
-
setInView = _React$useState4[1];
|
|
66
|
-
|
|
67
|
-
var _React$useState5 = _react.default.useState(participant.pinned),
|
|
68
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
69
|
-
pinned = _React$useState6[0],
|
|
70
|
-
setPinned = _React$useState6[1];
|
|
71
|
-
|
|
72
|
-
var _React$useState7 = _react.default.useState(participant.videoMuted),
|
|
73
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
74
|
-
videoMuted = _React$useState8[0],
|
|
75
|
-
setVideoMuted = _React$useState8[1];
|
|
76
|
-
|
|
77
|
-
var _React$useState9 = _react.default.useState(participant.audioMuted),
|
|
78
|
-
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
79
|
-
audioMuted = _React$useState10[0],
|
|
80
|
-
setAudioMuted = _React$useState10[1];
|
|
81
|
-
|
|
82
|
-
var _useState3 = (0, _react.useState)({}),
|
|
83
|
-
_useState4 = _slicedToArray(_useState3, 1),
|
|
84
|
-
eventHandler = _useState4[0];
|
|
85
|
-
|
|
86
|
-
var _useState5 = (0, _react.useState)({}),
|
|
87
|
-
_useState6 = _slicedToArray(_useState5, 1),
|
|
88
|
-
systemEventHandler = _useState6[0];
|
|
89
|
-
|
|
90
|
-
var handler = function handler() {
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
+
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; }
|
|
19
|
+
const VCParticipantListItem = props => {
|
|
20
|
+
const [anchorEl, setAnchorEl] = (0, _react.useState)(null);
|
|
21
|
+
const openMoreActions = Boolean(anchorEl);
|
|
22
|
+
const {
|
|
23
|
+
participant
|
|
24
|
+
} = props;
|
|
25
|
+
const [handRaised, setHandRaised] = _react.default.useState(participant.handRaised);
|
|
26
|
+
const [inView, setInView] = _react.default.useState(participant.inView);
|
|
27
|
+
const [pinned, setPinned] = _react.default.useState(participant.pinned);
|
|
28
|
+
const [videoMuted, setVideoMuted] = _react.default.useState(participant.videoMuted);
|
|
29
|
+
const [audioMuted, setAudioMuted] = _react.default.useState(participant.audioMuted);
|
|
30
|
+
const [eventHandler] = (0, _react.useState)({});
|
|
31
|
+
const [systemEventHandler] = (0, _react.useState)({});
|
|
32
|
+
const handler = () => {
|
|
91
33
|
return {
|
|
92
34
|
get id() {
|
|
93
35
|
return 'vc-participant-card-' + participant.userId;
|
|
94
36
|
},
|
|
95
|
-
|
|
96
|
-
on: function on(eventType, be) {
|
|
37
|
+
on: (eventType, be) => {
|
|
97
38
|
switch (eventType) {
|
|
98
39
|
case _VCEventType.VCEventType.RAISE_HAND:
|
|
99
40
|
onRaiseHand(be.payload);
|
|
100
41
|
break;
|
|
101
|
-
|
|
102
42
|
case _VCEventType.VCEventType.LOWER_HAND:
|
|
103
43
|
onLowerHand(be.payload);
|
|
104
44
|
break;
|
|
105
|
-
|
|
106
45
|
case _VCEventType.VCEventType.NEW_PRODUCERS:
|
|
107
46
|
onNewProducers(be.payload);
|
|
108
47
|
break;
|
|
109
|
-
|
|
110
48
|
case _VCEventType.VCEventType.PARTICIPANT_OFF_VIEW:
|
|
111
49
|
handleParticipantOffView(be.payload ? be.payload : be);
|
|
112
50
|
break;
|
|
113
|
-
|
|
114
51
|
case _VCEventType.VCEventType.AUDIO_VISUAL_SETTINGS_CHANGED:
|
|
115
52
|
onAVSettingsChange(be.payload ? be.payload : be);
|
|
116
53
|
break;
|
|
@@ -118,102 +55,73 @@ var VCParticipantListItem = function VCParticipantListItem(props) {
|
|
|
118
55
|
}
|
|
119
56
|
};
|
|
120
57
|
};
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
try {
|
|
129
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
130
|
-
var producer = _step.value;
|
|
131
|
-
|
|
132
|
-
if (producer.userId === participant.userId) {
|
|
133
|
-
if (producer.kind === 'video' && !producer.screenSharing) {
|
|
134
|
-
userProducers.push(producer);
|
|
135
|
-
}
|
|
58
|
+
const onNewProducers = producers => {
|
|
59
|
+
let userProducers = [];
|
|
60
|
+
for (const producer of producers) {
|
|
61
|
+
if (producer.userId === participant.userId) {
|
|
62
|
+
if (producer.kind === 'video' && !producer.screenSharing) {
|
|
63
|
+
userProducers.push(producer);
|
|
136
64
|
}
|
|
137
65
|
}
|
|
138
|
-
} catch (err) {
|
|
139
|
-
_iterator.e(err);
|
|
140
|
-
} finally {
|
|
141
|
-
_iterator.f();
|
|
142
66
|
}
|
|
143
|
-
|
|
144
67
|
if (userProducers.length > 0) {
|
|
145
68
|
participant.producers = userProducers;
|
|
146
69
|
}
|
|
147
70
|
};
|
|
148
|
-
|
|
149
|
-
var onAVSettingsChange = function onAVSettingsChange(payload) {
|
|
71
|
+
const onAVSettingsChange = payload => {
|
|
150
72
|
if (payload.userId === participant.userId) {
|
|
151
73
|
setAudioMuted(payload.audioMuted);
|
|
152
74
|
setVideoMuted(payload.videoMuted);
|
|
153
|
-
|
|
154
75
|
if (payload.videoMuted) {
|
|
155
76
|
participant.producers = null;
|
|
156
77
|
}
|
|
157
78
|
}
|
|
158
79
|
};
|
|
159
|
-
|
|
160
|
-
var handleParticipantOffView = function handleParticipantOffView(payload) {
|
|
80
|
+
const handleParticipantOffView = payload => {
|
|
161
81
|
if (payload.userId === participant.userId) {
|
|
162
82
|
setInView(false);
|
|
163
83
|
}
|
|
164
84
|
};
|
|
165
|
-
|
|
166
|
-
var onRaiseHand = function onRaiseHand(payload) {
|
|
85
|
+
const onRaiseHand = payload => {
|
|
167
86
|
if (participant && payload && payload.userId === participant.userId) {
|
|
168
87
|
setHandRaised(true);
|
|
169
88
|
}
|
|
170
89
|
};
|
|
171
|
-
|
|
172
|
-
var onLowerHand = function onLowerHand(payload) {
|
|
90
|
+
const onLowerHand = payload => {
|
|
173
91
|
if (participant && payload && payload.userId === participant.userId) {
|
|
174
92
|
setHandRaised(false);
|
|
175
93
|
}
|
|
176
94
|
};
|
|
177
|
-
|
|
178
|
-
(0, _react.useEffect)(function () {
|
|
95
|
+
(0, _react.useEffect)(() => {
|
|
179
96
|
eventHandler.api = handler();
|
|
180
97
|
});
|
|
181
|
-
(0, _react.useEffect)(
|
|
98
|
+
(0, _react.useEffect)(() => {
|
|
182
99
|
_VCEventManager.default.addSubscriptions(eventHandler, _VCEventType.VCEventType.RAISE_HAND, _VCEventType.VCEventType.LOWER_HAND, _VCEventType.VCEventType.NEW_PRODUCERS, _VCEventType.VCEventType.PARTICIPANT_OFF_VIEW, _VCEventType.VCEventType.AUDIO_VISUAL_SETTINGS_CHANGED);
|
|
183
|
-
|
|
184
|
-
return function () {
|
|
100
|
+
return () => {
|
|
185
101
|
_VCEventManager.default.removeSubscriptions(systemEventHandler);
|
|
186
102
|
};
|
|
187
103
|
}, []);
|
|
188
|
-
|
|
189
|
-
var handleClick = function handleClick(event) {
|
|
104
|
+
const handleClick = event => {
|
|
190
105
|
setAnchorEl(event.currentTarget);
|
|
191
106
|
};
|
|
192
|
-
|
|
193
|
-
var handleClose = function handleClose() {
|
|
107
|
+
const handleClose = () => {
|
|
194
108
|
setAnchorEl(null);
|
|
195
109
|
};
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
var newPinnedVal = !pinned;
|
|
110
|
+
const togglePinned = () => {
|
|
111
|
+
let newPinnedVal = !pinned;
|
|
199
112
|
setPinned(newPinnedVal);
|
|
200
113
|
participant.pinned = newPinnedVal;
|
|
201
|
-
|
|
202
114
|
if (props.onPinHandler) {
|
|
203
115
|
props.onPinHandler(participant, newPinnedVal);
|
|
204
116
|
}
|
|
205
117
|
};
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
var name = participant.name;
|
|
209
|
-
|
|
118
|
+
const computeParticipantName = () => {
|
|
119
|
+
let name = participant.name;
|
|
210
120
|
if (_Utils.default.isNull(participant.userId)) {
|
|
211
|
-
name =
|
|
121
|
+
name = `${name} (Guest)`;
|
|
212
122
|
}
|
|
213
|
-
|
|
214
123
|
return name;
|
|
215
124
|
};
|
|
216
|
-
|
|
217
125
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
218
126
|
className: 'col person-card-wrapper',
|
|
219
127
|
style: {
|
|
@@ -239,7 +147,7 @@ var VCParticipantListItem = function VCParticipantListItem(props) {
|
|
|
239
147
|
textAlign: 'right'
|
|
240
148
|
}
|
|
241
149
|
}, /*#__PURE__*/_react.default.createElement("div", null, sessionStorage.getItem('username') !== participant.userId && handRaised && /*#__PURE__*/_react.default.createElement(_core.IconButton, {
|
|
242
|
-
onClick:
|
|
150
|
+
onClick: () => {},
|
|
243
151
|
size: "small",
|
|
244
152
|
sx: {
|
|
245
153
|
ml: 1
|
|
@@ -255,7 +163,7 @@ var VCParticipantListItem = function VCParticipantListItem(props) {
|
|
|
255
163
|
marginLeft: '4px'
|
|
256
164
|
}
|
|
257
165
|
}, props.isHost && !audioMuted ? /*#__PURE__*/_react.default.createElement(_core.IconButton, {
|
|
258
|
-
onClick:
|
|
166
|
+
onClick: e => {
|
|
259
167
|
props.onHostAudioMute(participant);
|
|
260
168
|
},
|
|
261
169
|
style: {
|
|
@@ -273,7 +181,7 @@ var VCParticipantListItem = function VCParticipantListItem(props) {
|
|
|
273
181
|
id: 'MIC',
|
|
274
182
|
color: '#404239'
|
|
275
183
|
})), props.isHost && !videoMuted && /*#__PURE__*/_react.default.createElement(_core.IconButton, {
|
|
276
|
-
onClick:
|
|
184
|
+
onClick: e => {
|
|
277
185
|
props.onHostVideoMute(participant);
|
|
278
186
|
},
|
|
279
187
|
style: {
|
|
@@ -334,23 +242,18 @@ var VCParticipantListItem = function VCParticipantListItem(props) {
|
|
|
334
242
|
}
|
|
335
243
|
}, props.isHost && /*#__PURE__*/_react.default.createElement(_core.MenuItem, {
|
|
336
244
|
disabled: _Utils.default.isNull(participant.userId),
|
|
337
|
-
onClick:
|
|
338
|
-
return props.onChangeMeetingHostHandler(participant);
|
|
339
|
-
}
|
|
245
|
+
onClick: () => props.onChangeMeetingHostHandler(participant)
|
|
340
246
|
}, /*#__PURE__*/_react.default.createElement(_core.ListItemIcon, null, /*#__PURE__*/_react.default.createElement(_icons.PersonAdd, {
|
|
341
247
|
fontSize: "small"
|
|
342
248
|
})), "Change Meeting Host"), /*#__PURE__*/_react.default.createElement(_core.MenuItem, {
|
|
343
249
|
disabled: inView,
|
|
344
|
-
onClick:
|
|
250
|
+
onClick: () => {
|
|
345
251
|
setInView(true);
|
|
346
252
|
participant.inView = true;
|
|
347
|
-
|
|
348
253
|
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.PARTICIPANT_IN_VIEW, participant);
|
|
349
254
|
}
|
|
350
255
|
}, /*#__PURE__*/_react.default.createElement(_core.ListItemIcon, null, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
351
256
|
id: 'MAXIMIZE'
|
|
352
257
|
})), "Bring to view"))))));
|
|
353
258
|
};
|
|
354
|
-
|
|
355
|
-
var _default = VCParticipantListItem;
|
|
356
|
-
exports.default = _default;
|
|
259
|
+
var _default = exports.default = VCParticipantListItem;
|
|
@@ -3,85 +3,43 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.
|
|
7
|
-
|
|
6
|
+
exports.default = exports.WAITING_FOR_OTHERS_TO_JOIN_MESSAGE = exports.SYSTEM_ERROR_MESSAGE = exports.STREAM_ERROR_MESSAGE = exports.CONNECTION_ERROR_MESSAGE = void 0;
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _Utils = _interopRequireDefault(require("../../Utils"));
|
|
11
|
-
|
|
12
9
|
require("./Video.css");
|
|
13
|
-
|
|
14
10
|
require("./VCRoom.css");
|
|
15
|
-
|
|
16
11
|
var _TrainingRoom = _interopRequireDefault(require("./TrainingRoom"));
|
|
17
|
-
|
|
18
12
|
var _Observable = _interopRequireDefault(require("../../event/Observable"));
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
29
|
-
|
|
30
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
31
|
-
|
|
32
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
33
|
-
|
|
34
|
-
var WAITING_FOR_OTHERS_TO_JOIN_MESSAGE = 'Waiting for others to join';
|
|
35
|
-
exports.WAITING_FOR_OTHERS_TO_JOIN_MESSAGE = WAITING_FOR_OTHERS_TO_JOIN_MESSAGE;
|
|
36
|
-
var SYSTEM_ERROR_MESSAGE = 'A system error has occurred. Please try again later or contact your system administrator';
|
|
37
|
-
exports.SYSTEM_ERROR_MESSAGE = SYSTEM_ERROR_MESSAGE;
|
|
38
|
-
var CONNECTION_ERROR_MESSAGE = 'There seems to be a problem with your connection. Please check your network connection';
|
|
39
|
-
exports.CONNECTION_ERROR_MESSAGE = CONNECTION_ERROR_MESSAGE;
|
|
40
|
-
var STREAM_ERROR_MESSAGE = 'The system cannot initiate audio and video streams. Please check your microphone and camera settings';
|
|
41
|
-
exports.STREAM_ERROR_MESSAGE = STREAM_ERROR_MESSAGE;
|
|
42
|
-
|
|
43
|
-
var VCRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
44
|
-
var _React$useState = _react.default.useState(null),
|
|
45
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
46
|
-
settings = _React$useState2[0],
|
|
47
|
-
setSettings = _React$useState2[1];
|
|
48
|
-
|
|
49
|
-
var _React$useState3 = _react.default.useState(null),
|
|
50
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
51
|
-
calendarEvent = _React$useState4[0],
|
|
52
|
-
setCalendarEvent = _React$useState4[1];
|
|
53
|
-
|
|
54
|
-
_react.default.useEffect(function () {
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
const WAITING_FOR_OTHERS_TO_JOIN_MESSAGE = exports.WAITING_FOR_OTHERS_TO_JOIN_MESSAGE = 'Waiting for others to join';
|
|
15
|
+
const SYSTEM_ERROR_MESSAGE = exports.SYSTEM_ERROR_MESSAGE = 'A system error has occurred. Please try again later or contact your system administrator';
|
|
16
|
+
const CONNECTION_ERROR_MESSAGE = exports.CONNECTION_ERROR_MESSAGE = 'There seems to be a problem with your connection. Please check your network connection';
|
|
17
|
+
const STREAM_ERROR_MESSAGE = exports.STREAM_ERROR_MESSAGE = 'The system cannot initiate audio and video streams. Please check your microphone and camera settings';
|
|
18
|
+
const VCRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
19
|
+
const [settings, setSettings] = _react.default.useState(null);
|
|
20
|
+
const [calendarEvent, setCalendarEvent] = _react.default.useState(null);
|
|
21
|
+
_react.default.useEffect(() => {
|
|
55
22
|
props.handle.api = api();
|
|
56
23
|
});
|
|
57
|
-
|
|
58
|
-
_react.default.useEffect(function () {
|
|
24
|
+
_react.default.useEffect(() => {
|
|
59
25
|
props.handle.api = api();
|
|
60
|
-
|
|
61
|
-
var parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
62
|
-
|
|
26
|
+
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
63
27
|
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.viewId);
|
|
64
|
-
|
|
65
28
|
_Observable.default.addSystemSubscriptions(props.viewId, parsedConfig);
|
|
66
29
|
}, []);
|
|
67
|
-
|
|
68
|
-
var api = function api() {
|
|
30
|
+
const api = () => {
|
|
69
31
|
return {
|
|
70
32
|
get id() {
|
|
71
33
|
return props.config.id;
|
|
72
34
|
},
|
|
73
|
-
|
|
74
35
|
set settings(settings) {
|
|
75
36
|
setSettings(settings);
|
|
76
37
|
},
|
|
77
|
-
|
|
78
38
|
set calendarEvent(calendarEvent) {
|
|
79
39
|
setCalendarEvent(calendarEvent);
|
|
80
40
|
}
|
|
81
|
-
|
|
82
41
|
};
|
|
83
42
|
};
|
|
84
|
-
|
|
85
43
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
86
44
|
style: _Utils.default.mergeStyles({
|
|
87
45
|
width: '100%',
|
|
@@ -104,6 +62,4 @@ var VCRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
104
62
|
calendarEvent: calendarEvent
|
|
105
63
|
}) : /*#__PURE__*/_react.default.createElement("div", null, "Unknown room type"))));
|
|
106
64
|
}));
|
|
107
|
-
|
|
108
|
-
var _default = VCRoom;
|
|
109
|
-
exports.default = _default;
|
|
65
|
+
var _default = exports.default = VCRoom;
|