@agilemotion/oui-react-js 1.6.1 → 1.6.3
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 +698 -421
- package/dist/BasicApp.js +5 -5
- package/dist/BasicAppHome.js +55 -26
- package/dist/DynamicJS.js +147 -65
- package/dist/InteractionPortalApp.css +1 -1
- package/dist/InteractionPortalApp.js +5 -5
- package/dist/InteractionPortalAppHome.js +57 -22
- package/dist/InteractionPortalApp_old.js +107 -61
- package/dist/RestUtils.js +339 -287
- package/dist/TypedValue.js +18 -15
- package/dist/Utils.js +375 -276
- package/dist/WithRouter.js +6 -6
- package/dist/assets/jss/components/authNavbarStyle.js +166 -164
- package/dist/assets/jss/components/buttonStyle.js +1 -1
- package/dist/assets/jss/components/cardAvatarStyle.js +1 -1
- package/dist/assets/jss/components/cardBodyStyle.js +1 -1
- package/dist/assets/jss/components/cardFooterStyle.js +1 -1
- package/dist/assets/jss/components/cardHeaderStyle.js +13 -13
- package/dist/assets/jss/components/cardIconStyle.js +1 -1
- package/dist/assets/jss/components/cardStyle.js +1 -1
- package/dist/assets/jss/components/cardTextStyle.js +1 -1
- package/dist/assets/jss/components/customDropdownStyle.js +168 -169
- package/dist/assets/jss/components/customInputStyle.js +9 -3
- package/dist/assets/jss/components/dropdownStyle.js +69 -69
- package/dist/assets/jss/components/footerStyle.js +19 -13
- package/dist/assets/jss/components/headerLinksStyle.js +45 -48
- package/dist/assets/jss/components/headerStyle.js +68 -65
- package/dist/assets/jss/components/navbarLinksStyle.js +66 -77
- package/dist/assets/jss/components/navbarStyle.js +79 -76
- package/dist/assets/jss/components/sidebarStyle.js +436 -436
- package/dist/assets/jss/components/typographyStyle.js +9 -3
- package/dist/assets/jss/rootStyle.js +96 -81
- package/dist/assets/jss/views/layoutStyle.js +44 -41
- package/dist/assets/jss/views/loginBasicStyle.js +1 -1
- package/dist/assets/jss/views/loginBusinessPortalStyle.js +1 -1
- package/dist/assets/jss/views/loginStyle.js +82 -77
- package/dist/components/AlertBar.js +50 -17
- package/dist/components/AlertItem.js +35 -12
- package/dist/components/AlertTemplate.js +30 -29
- package/dist/components/Button.js +62 -34
- package/dist/components/Calendar.js +140 -91
- package/dist/components/ConfirmationDialog.js +36 -11
- package/dist/components/DataGrid.js +512 -270
- package/dist/components/DataGridColumn.js +47 -22
- package/dist/components/DataGridFilter.js +186 -105
- package/dist/components/DataGridHeading.js +50 -32
- package/dist/components/Dialog.js +90 -35
- package/dist/components/DocumentTemplateDesigner.js +34 -16
- package/dist/components/DocumentTemplateDesignerComponent.js +124 -48
- package/dist/components/DocumentTemplatePlaceholderDialog.js +52 -30
- package/dist/components/DocumentViewer.js +34 -18
- package/dist/components/DocumentViewerComponent.js +26 -9
- package/dist/components/ElementResizeHandler.js +229 -207
- package/dist/components/FileThumb.js +32 -10
- package/dist/components/Graph.js +153 -85
- package/dist/components/GraphNode.js +58 -38
- package/dist/components/HtmlPanel.js +67 -39
- package/dist/components/Icon.js +206 -166
- package/dist/components/LoadingIndicator.js +3 -3
- package/dist/components/LottieIcon.js +1 -1
- package/dist/components/PopupView.js +39 -19
- package/dist/components/Portlet.js +32 -17
- package/dist/components/RegularButton.js +28 -32
- package/dist/components/SignaturePanel.js +37 -17
- package/dist/components/SocketManager.js +178 -119
- package/dist/components/StepperTitleBar.js +62 -42
- package/dist/components/TabPage.js +30 -25
- package/dist/components/TabPanel.js +86 -33
- package/dist/components/TableCellContent.js +51 -32
- package/dist/components/TemplateDesigner.js +173 -121
- package/dist/components/TemplateItemEventHandler.js +335 -221
- package/dist/components/TemplateTable.js +183 -118
- package/dist/components/TitleBar.js +26 -11
- package/dist/components/Toolbar.js +67 -38
- package/dist/components/Tooltip.js +43 -35
- package/dist/components/Tree.js +85 -44
- package/dist/components/UseIsVisible.js +25 -4
- package/dist/components/card/Card.js +27 -33
- package/dist/components/card/CardAvatar.js +20 -19
- package/dist/components/card/CardBody.js +24 -27
- package/dist/components/card/CardFooter.js +23 -24
- package/dist/components/card/CardHeader.js +24 -27
- package/dist/components/card/CardIcon.js +17 -13
- package/dist/components/card/CardText.js +17 -13
- package/dist/components/customInput/CustomInput.js +22 -36
- package/dist/components/dashboard/{BasicBusinessAppDashboard.js → FoldingSideTabDashboard.js} +111 -63
- package/dist/components/dashboard/SideMenuModuleDashboard.css +60 -0
- package/dist/components/dashboard/SideMenuModuleDashboard.js +423 -0
- package/dist/components/dashboard/TopMenuModuleDashboard.js +138 -0
- package/dist/components/dashboard/components/Header.js +29 -12
- package/dist/components/dashboard/components/LeftDrawer.js +3 -5
- package/dist/components/dashboard/components/UserIdentity.js +2 -2
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +131 -87
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +488 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenu.js +64 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.css +65 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +556 -0
- package/dist/components/dashboard/components/portal/Timeline.js +1 -1
- package/dist/components/dashboard/components/portal/Workspace.js +5 -11
- package/dist/components/footer/Footer.js +31 -24
- package/dist/components/footer/HomeFooter.js +68 -34
- package/dist/components/form/AddressSearch.js +78 -42
- package/dist/components/form/AutoComplete.js +136 -55
- package/dist/components/form/BaseField.js +108 -56
- package/dist/components/form/Checkbox.js +10 -8
- package/dist/components/form/DatePicker.js +47 -25
- package/dist/components/form/FieldSet.js +217 -84
- package/dist/components/form/Form.js +334 -200
- package/dist/components/form/GridField.js +185 -82
- package/dist/components/form/IconField.js +9 -7
- package/dist/components/form/ImageEditor.js +141 -92
- package/dist/components/form/LabelField.js +12 -10
- package/dist/components/form/LookupField.js +54 -32
- package/dist/components/form/MultiFileUploadField.js +101 -67
- package/dist/components/form/RadioGroup.js +33 -16
- package/dist/components/form/Section.js +84 -34
- package/dist/components/form/SelectItem.js +55 -33
- package/dist/components/form/SignatureTemplateDesignerField.js +11 -9
- package/dist/components/form/Switch.js +10 -8
- package/dist/components/form/TextField.js +34 -16
- package/dist/components/form/TimePicker.js +19 -15
- package/dist/components/form/TransferList.js +153 -75
- package/dist/components/form/UploadField.js +183 -128
- package/dist/components/grid/GridContainer.js +12 -8
- package/dist/components/grid/GridItem.js +12 -8
- package/dist/components/layout/CollapsiblePanel.js +44 -18
- package/dist/components/layout/Layout.js +81 -40
- package/dist/components/layout/VC.css +1 -1
- package/dist/components/layout/View.js +136 -62
- package/dist/components/layout/ViewContainer.js +13 -11
- package/dist/components/layout/ViewPort.js +25 -10
- package/dist/components/layout/Window.js +87 -53
- package/dist/components/layout/WindowViewPort.js +38 -16
- package/dist/components/media/ClosablePanel.js +7 -7
- package/dist/components/media/LobbyWaitingList.js +7 -9
- package/dist/components/media/MediaSoupHelper.js +379 -187
- package/dist/components/media/SideBarContent.js +22 -14
- package/dist/components/media/SocketRequest.js +5 -1
- package/dist/components/media/SocketResponse.js +5 -1
- package/dist/components/media/Timer.js +35 -15
- package/dist/components/media/Toolbar.css +5 -0
- package/dist/components/media/Toolbar.js +220 -102
- package/dist/components/media/ToolbarButton.js +82 -33
- package/dist/components/media/Toolbar_bck.js +142 -70
- package/dist/components/media/Tracks.js +31 -28
- package/dist/components/media/TrainingRoom.js +284 -121
- package/dist/components/media/Transports.js +27 -24
- package/dist/components/media/VCEventManager.js +95 -31
- package/dist/components/media/VCEventType.js +5 -1
- package/dist/components/media/VCParticipantList.js +40 -14
- package/dist/components/media/VCParticipantListItem.js +92 -41
- package/dist/components/media/VCRoom.js +29 -11
- package/dist/components/media/VCRoomParticipant.js +488 -242
- package/dist/components/media/VCRoomRecorder.js +236 -175
- package/dist/components/media/VCRoomWorkspace.js +505 -245
- package/dist/components/media/Video.js +89 -25
- package/dist/components/media/VideoPlayer.js +56 -22
- package/dist/components/media/chat/ChatRoom.js +255 -132
- package/dist/components/media/chat/ChatRoomItem.js +35 -14
- package/dist/components/media/chat/ChatRoomList.js +43 -13
- package/dist/components/menu/CollapsibleMenu.js +39 -20
- package/dist/components/menu/MenuBars.js +81 -48
- package/dist/components/menu/MenuButton.js +95 -60
- package/dist/components/menu/MenuItem.js +28 -9
- package/dist/components/menu/MenuLink.js +12 -10
- package/dist/components/menu/PopupMenu.js +16 -12
- package/dist/components/navbars/AuthNavbar.js +27 -18
- package/dist/components/navbars/HomeNavbar.js +243 -194
- package/dist/components/navbars/PortalNavbar.js +50 -26
- package/dist/components/signatures/AgilitySignaturePanel.js +96 -39
- package/dist/components/signatures/AlertItem.js +36 -13
- package/dist/components/signatures/Card.js +4 -4
- package/dist/components/signatures/DocumentContainer.js +141 -57
- package/dist/components/signatures/ImageSignatureInput.js +90 -59
- package/dist/components/signatures/MenuButton.js +53 -33
- package/dist/components/signatures/Prompt.js +26 -5
- package/dist/components/signatures/ResponsiveTable.js +302 -197
- package/dist/components/signatures/SearchView.js +77 -36
- package/dist/components/signatures/SignatorySearch.js +30 -10
- package/dist/components/signatures/SignatorySearchForm.js +35 -18
- package/dist/components/signatures/SignatureInput.js +56 -26
- package/dist/components/signatures/SignatureInputProps.js +107 -55
- package/dist/components/signatures/SignatureTemplateDesigner.js +340 -235
- package/dist/components/signatures/Toolbar.js +135 -94
- package/dist/components/signatures/ViewUtils.js +273 -224
- package/dist/components/typography/Danger.js +3 -5
- package/dist/components/typography/Info.js +3 -5
- package/dist/components/typography/Link.js +3 -5
- package/dist/event/ActionHandlers.js +57 -43
- package/dist/event/Event.js +16 -13
- package/dist/event/EventListener.js +39 -36
- package/dist/event/EventType.js +5 -1
- package/dist/event/LoadDataActionHandler.js +20 -8
- package/dist/event/Observable.js +323 -142
- package/dist/event/RouteActionHandler.js +139 -125
- package/dist/event/ScriptActionHandler.js +20 -8
- package/dist/event/ServiceCallActionHandler.js +51 -39
- package/dist/event/SignalGraphActionHandler.js +19 -7
- package/dist/js/Addresses.js +38 -24
- package/dist/js/Calendar.js +168 -161
- package/dist/js/DynamicLib.js +14 -11
- package/dist/js/Media.js +213 -120
- package/dist/js/Validators.js +6 -5
- package/dist/js/Windows.js +48 -47
- package/dist/redux/store/ConfigureStore.js +17 -9
- package/dist/redux/store/DashboardStore.js +110 -43
- package/dist/redux/store/History.js +1 -1
- package/dist/redux/store/SecurityStore.js +59 -20
- package/dist/security/TokenManager.js +44 -30
- package/dist/theme-default.js +1 -1
- package/dist/view/Dashboard.js +230 -137
- package/dist/view/PortalDashboard.js +4 -4
- package/dist/view/Settings.js +4 -2
- package/dist/view/Views.js +27 -14
- package/dist/view/security/ChangePasswordBasic.js +97 -40
- package/dist/view/security/ForgotPassword.js +59 -22
- package/dist/view/security/ForgotPasswordBasic.js +62 -21
- package/dist/view/security/Login.js +64 -24
- package/dist/view/security/LoginBasic.js +65 -26
- package/dist/view/security/LoginInteractionPortal.js +62 -25
- package/dist/view/security/ResetPassword.js +65 -23
- package/dist/view/security/ResetPasswordBasic.js +91 -37
- package/dist/view/security/Security.js +12 -12
- package/package.json +2 -3
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +0 -115
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +0 -447
- /package/dist/components/dashboard/{BusinessPortalAppDashboard.css → TopMenuModuleDashboard.css} +0 -0
- /package/dist/components/dashboard/components/blackDashboard/sidebar/{Sidebar.css → FoldingTabSidebar.css} +0 -0
package/dist/js/Media.js
CHANGED
|
@@ -21,148 +21,241 @@ var _VCEventType = require("../components/media/VCEventType");
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
24
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
25
|
+
|
|
26
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
27
|
+
|
|
28
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
29
|
+
|
|
30
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
31
|
+
|
|
32
|
+
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; }
|
|
33
|
+
|
|
34
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
35
|
+
|
|
24
36
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
37
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
_defineProperty(this, "requestToJoinMeeting", calendarEvent => {
|
|
29
|
-
return new Promise((resolve, reject) => {
|
|
30
|
-
let component = {
|
|
31
|
-
api: _ApplicationManager.default.resolveComponentApi('settingsNext')
|
|
32
|
-
};
|
|
33
|
-
let event = new _Event.default(component, 'vcSettings', null);
|
|
38
|
+
var Media = function Media(resolver) {
|
|
39
|
+
_classCallCheck(this, Media);
|
|
34
40
|
|
|
41
|
+
_defineProperty(this, "requestToJoinMeeting", function (calendarEvent) {
|
|
42
|
+
return new Promise(function (resolve, reject) {
|
|
43
|
+
var component = {
|
|
44
|
+
api: _ApplicationManager.default.resolveComponentApi('settingsNext')
|
|
45
|
+
};
|
|
46
|
+
var event = new _Event.default(component, 'vcSettings', null);
|
|
47
|
+
|
|
48
|
+
try {
|
|
49
|
+
if (calendarEvent.host.username === calendarEvent.host.username) {
|
|
50
|
+
resolve(_SocketResponse.default.JOIN_MEETING_PERMIT);
|
|
51
|
+
|
|
52
|
+
_Observable.default.fireEvent(_VCEventType.VCEventType.JOIN_MEETING_PERMIT, event);
|
|
53
|
+
} else {
|
|
54
|
+
_SocketManager.default.emitEvent(_SocketRequest.default.REQUEST_TO_JOIN_MEETING, {
|
|
55
|
+
userId: sessionStorage.getItem('username'),
|
|
56
|
+
hostId: calendarEvent.host.username,
|
|
57
|
+
askToJoin: calendarEvent.askToJoin,
|
|
58
|
+
meetingId: calendarEvent.id
|
|
59
|
+
}).then(function (result) {
|
|
60
|
+
console.log("***** JOIN MEETING RESPONSE *****", result);
|
|
61
|
+
var outcome = result.outcome;
|
|
62
|
+
resolve(outcome);
|
|
63
|
+
|
|
64
|
+
if (outcome === _SocketResponse.default.JOIN_MEETING_PERMIT) {
|
|
65
|
+
_Observable.default.fireEvent(_VCEventType.VCEventType.JOIN_MEETING_PERMIT, event);
|
|
66
|
+
}
|
|
67
|
+
}).catch(function (e) {
|
|
68
|
+
console.log("***** JOIN MEETING ERROR *****");
|
|
69
|
+
console.log(e);
|
|
70
|
+
reject(e);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
} catch (e) {
|
|
74
|
+
console.log("***** REQUEST TO JOIN MEETING ERROR *****");
|
|
75
|
+
console.log(e);
|
|
76
|
+
reject(e);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
_defineProperty(this, "joinMeeting", function (calendarEvent, settings, userFullName) {
|
|
82
|
+
var result = {};
|
|
83
|
+
return new Promise(function (resolve, reject) {
|
|
84
|
+
if (!_SocketManager.default.getProfile()) {
|
|
85
|
+
reject(new Error('No user profile'));
|
|
86
|
+
} else {
|
|
35
87
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
88
|
+
_SocketManager.default.emitEvent(_SocketRequest.default.JOIN_MEETING, {
|
|
89
|
+
meetingId: calendarEvent.id,
|
|
90
|
+
userFullName: userFullName,
|
|
91
|
+
userId: sessionStorage.getItem('username'),
|
|
92
|
+
avatarId: sessionStorage.getItem('userAvataId'),
|
|
93
|
+
isHost: sessionStorage.getItem('username') === calendarEvent.host.username,
|
|
94
|
+
settings: settings,
|
|
95
|
+
profile: _SocketManager.default.getProfile()
|
|
96
|
+
}).then(function (response) {
|
|
97
|
+
result.status = response.status;
|
|
98
|
+
|
|
99
|
+
if (response.status === 'SUCCESS') {
|
|
100
|
+
result.rtpCapabilities = response.data.rtpCapabilities;
|
|
101
|
+
result.shareScreenProducerData = response.data.shareScreenProducerData;
|
|
102
|
+
result.participants = response.data.usersInRoom;
|
|
103
|
+
|
|
104
|
+
if (sessionStorage.getItem('username') === calendarEvent.host.username) {
|
|
105
|
+
_SocketManager.default.emitEvent(_SocketRequest.default.GET_LOBBY, {
|
|
106
|
+
meetingId: calendarEvent.id
|
|
107
|
+
}).then(function (getLobbyResponse) {
|
|
108
|
+
if (getLobbyResponse.status === 'SUCCESS' && getLobbyResponse.lobby && getLobbyResponse.lobby.people) {
|
|
109
|
+
result.lobby = [];
|
|
110
|
+
|
|
111
|
+
var _iterator = _createForOfIteratorHelper(getLobbyResponse.lobby.people),
|
|
112
|
+
_step;
|
|
113
|
+
|
|
114
|
+
try {
|
|
115
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
116
|
+
var person = _step.value;
|
|
117
|
+
result.lobby.push(person);
|
|
118
|
+
}
|
|
119
|
+
} catch (err) {
|
|
120
|
+
_iterator.e(err);
|
|
121
|
+
} finally {
|
|
122
|
+
_iterator.f();
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
});
|
|
53
126
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
reject(
|
|
58
|
-
}
|
|
59
|
-
}
|
|
127
|
+
|
|
128
|
+
resolve(result);
|
|
129
|
+
} else {
|
|
130
|
+
reject(result);
|
|
131
|
+
}
|
|
132
|
+
}).catch(function (error) {
|
|
133
|
+
reject(error);
|
|
134
|
+
});
|
|
60
135
|
} catch (e) {
|
|
61
|
-
console.log("***** REQUEST TO JOIN MEETING ERROR *****");
|
|
62
|
-
console.log(e);
|
|
63
136
|
reject(e);
|
|
64
137
|
}
|
|
65
|
-
}
|
|
138
|
+
}
|
|
66
139
|
});
|
|
140
|
+
});
|
|
67
141
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
result.rtpCapabilities = response.data.rtpCapabilities;
|
|
88
|
-
result.shareScreenProducerData = response.data.shareScreenProducerData;
|
|
89
|
-
result.participants = response.data.usersInRoom;
|
|
90
|
-
|
|
91
|
-
if (sessionStorage.getItem('username') === calendarEvent.host.username) {
|
|
92
|
-
_SocketManager.default.emitEvent(_SocketRequest.default.GET_LOBBY, {
|
|
93
|
-
meetingId: calendarEvent.id
|
|
94
|
-
}).then(getLobbyResponse => {
|
|
95
|
-
if (getLobbyResponse.status === 'SUCCESS' && getLobbyResponse.lobby && getLobbyResponse.lobby.people) {
|
|
96
|
-
result.lobby = [];
|
|
97
|
-
|
|
98
|
-
for (const person of getLobbyResponse.lobby.people) {
|
|
99
|
-
result.lobby.push(person);
|
|
100
|
-
}
|
|
142
|
+
_defineProperty(this, "hasConnectedMediaDevices", function () {
|
|
143
|
+
return new Promise(function (resolve) {
|
|
144
|
+
navigator.mediaDevices.enumerateDevices().then( /*#__PURE__*/function () {
|
|
145
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(devices) {
|
|
146
|
+
var audioConnected, videoConnected, stream;
|
|
147
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
148
|
+
while (1) {
|
|
149
|
+
switch (_context.prev = _context.next) {
|
|
150
|
+
case 0:
|
|
151
|
+
_context.prev = 0;
|
|
152
|
+
audioConnected = false;
|
|
153
|
+
videoConnected = false;
|
|
154
|
+
devices.forEach(function (device) {
|
|
155
|
+
if ('audioinput' === device.kind && device.label) {
|
|
156
|
+
audioConnected = true;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if ('videoinput' === device.kind && device.label) {
|
|
160
|
+
videoConnected = true;
|
|
101
161
|
}
|
|
102
162
|
});
|
|
103
|
-
|
|
163
|
+
_context.prev = 4;
|
|
164
|
+
_context.next = 7;
|
|
165
|
+
return navigator.mediaDevices.getUserMedia({
|
|
166
|
+
audio: false,
|
|
167
|
+
video: true
|
|
168
|
+
});
|
|
104
169
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
reject(result);
|
|
108
|
-
}
|
|
109
|
-
}).catch(error => {
|
|
110
|
-
reject(error);
|
|
111
|
-
});
|
|
112
|
-
} catch (e) {
|
|
113
|
-
reject(e);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
});
|
|
170
|
+
case 7:
|
|
171
|
+
stream = _context.sent;
|
|
118
172
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
let videoConnected = false;
|
|
125
|
-
devices.forEach(device => {
|
|
126
|
-
if ('audioinput' === device.kind) {
|
|
127
|
-
audioConnected = true;
|
|
128
|
-
}
|
|
173
|
+
if (stream.getVideoTracks().length === 0 || !stream.getVideoTracks()[0]) {
|
|
174
|
+
videoConnected = false;
|
|
175
|
+
} else {
|
|
176
|
+
stream.getVideoTracks()[0].stop();
|
|
177
|
+
}
|
|
129
178
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
resolve({
|
|
135
|
-
audioConnected,
|
|
136
|
-
videoConnected
|
|
137
|
-
});
|
|
138
|
-
} catch (e) {
|
|
139
|
-
resolve({
|
|
140
|
-
audioConnected: false,
|
|
141
|
-
videoConnected: false
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
});
|
|
179
|
+
_context.next = 14;
|
|
180
|
+
break;
|
|
147
181
|
|
|
148
|
-
|
|
149
|
-
|
|
182
|
+
case 11:
|
|
183
|
+
_context.prev = 11;
|
|
184
|
+
_context.t0 = _context["catch"](4);
|
|
185
|
+
videoConnected = false;
|
|
150
186
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
187
|
+
case 14:
|
|
188
|
+
_context.prev = 14;
|
|
189
|
+
_context.next = 17;
|
|
190
|
+
return navigator.mediaDevices.getUserMedia({
|
|
191
|
+
audio: true,
|
|
192
|
+
video: false
|
|
193
|
+
});
|
|
156
194
|
|
|
157
|
-
|
|
195
|
+
case 17:
|
|
196
|
+
stream = _context.sent;
|
|
197
|
+
|
|
198
|
+
if (stream.getAudioTracks().length === 0 || !stream.getAudioTracks()[0]) {
|
|
199
|
+
audioConnected = false;
|
|
200
|
+
} else {
|
|
201
|
+
stream.getAudioTracks()[0].stop();
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
_context.next = 24;
|
|
205
|
+
break;
|
|
206
|
+
|
|
207
|
+
case 21:
|
|
208
|
+
_context.prev = 21;
|
|
209
|
+
_context.t1 = _context["catch"](14);
|
|
210
|
+
audioConnected = false;
|
|
211
|
+
|
|
212
|
+
case 24:
|
|
213
|
+
resolve({
|
|
214
|
+
audioConnected: audioConnected,
|
|
215
|
+
videoConnected: videoConnected
|
|
216
|
+
});
|
|
217
|
+
_context.next = 30;
|
|
218
|
+
break;
|
|
219
|
+
|
|
220
|
+
case 27:
|
|
221
|
+
_context.prev = 27;
|
|
222
|
+
_context.t2 = _context["catch"](0);
|
|
223
|
+
resolve({
|
|
224
|
+
audioConnected: false,
|
|
225
|
+
videoConnected: false
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
case 30:
|
|
229
|
+
case "end":
|
|
230
|
+
return _context.stop();
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}, _callee, null, [[0, 27], [4, 11], [14, 21]]);
|
|
234
|
+
}));
|
|
235
|
+
|
|
236
|
+
return function (_x) {
|
|
237
|
+
return _ref.apply(this, arguments);
|
|
238
|
+
};
|
|
239
|
+
}());
|
|
158
240
|
});
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
_defineProperty(this, "getAvStatusMessage", function (avStatus) {
|
|
244
|
+
var errorMessage = '';
|
|
245
|
+
|
|
246
|
+
if (!avStatus.audioConnected || !avStatus.videoConnected) {
|
|
247
|
+
errorMessage = 'No ' + (!avStatus.audioConnected ? 'audio ' : '');
|
|
248
|
+
errorMessage += !avStatus.videoConnected ? !avStatus.audioConnected ? 'and video' : 'video ' : '';
|
|
249
|
+
errorMessage += ' device' + (!avStatus.audioConnected && !avStatus.videoConnected ? 's' : '') + ' connected';
|
|
250
|
+
}
|
|
159
251
|
|
|
160
|
-
|
|
161
|
-
}
|
|
252
|
+
return errorMessage;
|
|
253
|
+
});
|
|
162
254
|
|
|
163
|
-
|
|
255
|
+
this.resolver = resolver;
|
|
256
|
+
};
|
|
164
257
|
|
|
165
258
|
exports.Media = Media;
|
|
166
|
-
|
|
259
|
+
var instance = new Media();
|
|
167
260
|
var _default = instance;
|
|
168
261
|
exports.default = _default;
|
package/dist/js/Validators.js
CHANGED
|
@@ -9,11 +9,12 @@ var _Utils = _interopRequireDefault(require("../Utils"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
class
|
|
13
|
-
constructor(resolver) {
|
|
14
|
-
this.resolver = resolver;
|
|
15
|
-
}
|
|
12
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
13
|
|
|
17
|
-
|
|
14
|
+
var Validators = function Validators(resolver) {
|
|
15
|
+
_classCallCheck(this, Validators);
|
|
16
|
+
|
|
17
|
+
this.resolver = resolver;
|
|
18
|
+
};
|
|
18
19
|
|
|
19
20
|
exports.default = Validators;
|
package/dist/js/Windows.js
CHANGED
|
@@ -11,56 +11,57 @@ var _Utils = _interopRequireDefault(require("../Utils"));
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
+
|
|
14
16
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
17
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
18
|
+
var Windows = function Windows(resolver) {
|
|
19
|
+
_classCallCheck(this, Windows);
|
|
20
|
+
|
|
21
|
+
_defineProperty(this, "zoomIn", function (windowId) {
|
|
22
|
+
var el = document.getElementById(windowId);
|
|
23
|
+
var scale = el.scale;
|
|
24
|
+
|
|
25
|
+
if (!scale) {
|
|
26
|
+
scale = 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (scale < 1) {
|
|
30
|
+
scale = scale * 1.1;
|
|
31
|
+
var w = el.style.width ? el.style.width.replace('px', '') : el.getBoundingClientRect().width;
|
|
32
|
+
var h = el.style.height ? el.style.height.replace('px', '') : el.getBoundingClientRect().height;
|
|
33
|
+
el.style.width = w * 1.1 + "px";
|
|
34
|
+
el.style.height = h * 1.1 + "px";
|
|
35
|
+
el.style.transform = "scale(".concat(scale, ")");
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
el.scale = scale;
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
_defineProperty(this, "zoomOut", function (windowId) {
|
|
42
|
+
var el = document.getElementById(windowId);
|
|
43
|
+
var scale = el.scale;
|
|
44
|
+
|
|
45
|
+
if (!scale) {
|
|
46
|
+
scale = 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (scale > 0) {
|
|
50
|
+
scale = scale * 0.9;
|
|
51
|
+
var w = el.style.width || el.style.width.includes("%") ? el.style.width.replace('px', '') : el.getBoundingClientRect().width;
|
|
52
|
+
var h = el.style.height || el.style.height.includes("%") ? el.style.height.replace('px', '') : el.getBoundingClientRect().height;
|
|
53
|
+
el.style.width = w * 0.9 + "px";
|
|
54
|
+
el.style.height = h * 0.9 + "px";
|
|
55
|
+
el.style.transform = "scale(".concat(scale, ")");
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
el.scale = scale;
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
this.resolver = resolver;
|
|
62
|
+
};
|
|
62
63
|
|
|
63
64
|
exports.Windows = Windows;
|
|
64
|
-
|
|
65
|
+
var instance = new Windows();
|
|
65
66
|
var _default = instance;
|
|
66
67
|
exports.default = _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
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
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -15,28 +17,34 @@ var Security = _interopRequireWildcard(require("./SecurityStore"));
|
|
|
15
17
|
|
|
16
18
|
var Dashboard = _interopRequireWildcard(require("./DashboardStore"));
|
|
17
19
|
|
|
18
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
20
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
19
21
|
|
|
20
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null ||
|
|
22
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
25
|
|
|
26
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
27
|
+
|
|
28
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
29
|
+
|
|
30
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
|
+
|
|
24
32
|
function ConfigureStore(history, initialState) {
|
|
25
|
-
|
|
33
|
+
var reducers = {
|
|
26
34
|
security: Security.reducer,
|
|
27
35
|
dashboard: Dashboard.reducer
|
|
28
36
|
};
|
|
29
|
-
|
|
37
|
+
var middleware = [_reduxThunk.default, (0, _connectedReactRouter.routerMiddleware)(history)]; // In development, use the browser's Redux dev tools extension if installed
|
|
30
38
|
|
|
31
|
-
|
|
32
|
-
|
|
39
|
+
var enhancers = [];
|
|
40
|
+
var isDevelopment = process.env.NODE_ENV === 'development';
|
|
33
41
|
|
|
34
42
|
if (isDevelopment && typeof window !== 'undefined' && window.devToolsExtension) {
|
|
35
43
|
enhancers.push(window.devToolsExtension());
|
|
36
44
|
}
|
|
37
45
|
|
|
38
|
-
|
|
46
|
+
var rootReducer = (0, _redux.combineReducers)(_objectSpread(_objectSpread({}, reducers), {}, {
|
|
39
47
|
router: (0, _connectedReactRouter.connectRouter)(history)
|
|
40
|
-
});
|
|
41
|
-
return (0, _redux.createStore)(rootReducer, initialState,
|
|
48
|
+
}));
|
|
49
|
+
return (0, _redux.createStore)(rootReducer, initialState, _redux.compose.apply(void 0, [_redux.applyMiddleware.apply(void 0, middleware)].concat(enhancers)));
|
|
42
50
|
}
|