@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
|
@@ -4,35 +4,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var Transports = function Transports() {
|
|
13
|
-
var _this = this;
|
|
14
|
-
|
|
15
|
-
_classCallCheck(this, Transports);
|
|
16
|
-
|
|
17
|
-
_defineProperty(this, "closeProducerTransport", function () {
|
|
18
|
-
if (_this.producerTransport) {
|
|
19
|
-
_this.producerTransport.close();
|
|
7
|
+
class Transports {
|
|
8
|
+
constructor() {}
|
|
9
|
+
closeProducerTransport = () => {
|
|
10
|
+
if (this.producerTransport) {
|
|
11
|
+
this.producerTransport.close();
|
|
20
12
|
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if (_this.consumerTransport) {
|
|
29
|
-
_this.consumerTransport.close();
|
|
13
|
+
};
|
|
14
|
+
setProducerTransport = producerTransport => {
|
|
15
|
+
this.producerTransport = producerTransport;
|
|
16
|
+
};
|
|
17
|
+
closeConsumerTransport = () => {
|
|
18
|
+
if (this.consumerTransport) {
|
|
19
|
+
this.consumerTransport.close();
|
|
30
20
|
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
|
|
21
|
+
};
|
|
22
|
+
setConsumerTransport = consumerTransport => {
|
|
23
|
+
this.consumerTransport = consumerTransport;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
38
26
|
exports.default = Transports;
|
|
@@ -4,135 +4,64 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
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); }
|
|
11
|
-
|
|
12
|
-
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; }
|
|
13
|
-
|
|
14
|
-
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); } }
|
|
15
|
-
|
|
16
|
-
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); }); }; }
|
|
17
|
-
|
|
18
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
-
|
|
20
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
21
|
-
|
|
22
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
23
|
-
|
|
24
|
-
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
|
-
|
|
26
|
-
var VCEventManager = /*#__PURE__*/function () {
|
|
27
|
-
function VCEventManager() {
|
|
28
|
-
var _this = this;
|
|
29
|
-
|
|
30
|
-
_classCallCheck(this, VCEventManager);
|
|
31
|
-
|
|
32
|
-
_defineProperty(this, "addSubscriptions", function (handler) {
|
|
33
|
-
for (var _len = arguments.length, eventTypes = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
34
|
-
eventTypes[_key - 1] = arguments[_key];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
for (var _i = 0, _eventTypes = eventTypes; _i < _eventTypes.length; _i++) {
|
|
38
|
-
var eventType = _eventTypes[_i];
|
|
39
|
-
|
|
40
|
-
_this.subscriptions.push({
|
|
41
|
-
handler: handler,
|
|
42
|
-
eventType: eventType
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
_defineProperty(this, "removeSubscriptions", function (eventHandler) {
|
|
48
|
-
if (eventHandler.api) {
|
|
49
|
-
_this.subscriptions = _this.subscriptions.filter(function (sub) {
|
|
50
|
-
var _sub$handler$api;
|
|
51
|
-
|
|
52
|
-
return ((_sub$handler$api = sub.handler.api) === null || _sub$handler$api === void 0 ? void 0 : _sub$handler$api.id) !== eventHandler.api.id;
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
|
|
7
|
+
class VCEventManager {
|
|
8
|
+
constructor() {
|
|
57
9
|
if (!VCEventManager.instance) {
|
|
58
10
|
this.subscriptions = [];
|
|
59
11
|
VCEventManager.instance = this;
|
|
60
12
|
}
|
|
61
|
-
|
|
62
13
|
return VCEventManager.instance;
|
|
63
14
|
}
|
|
15
|
+
|
|
64
16
|
/**
|
|
65
17
|
* Adds a subscription bound by the given event type.
|
|
66
18
|
*
|
|
67
19
|
* @param handler the subscription to be added
|
|
68
20
|
* @param eventTypes the subscription to be added
|
|
69
21
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Fires an event.
|
|
77
|
-
*
|
|
78
|
-
* @param eventType eventType the event type
|
|
79
|
-
* @param be the base event
|
|
80
|
-
* @return false if any subscriptions cancel the event.
|
|
81
|
-
*/
|
|
82
|
-
value: function () {
|
|
83
|
-
var _fireEvent = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(eventType, be) {
|
|
84
|
-
var _iterator, _step, subscription;
|
|
85
|
-
|
|
86
|
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
87
|
-
while (1) {
|
|
88
|
-
switch (_context.prev = _context.next) {
|
|
89
|
-
case 0:
|
|
90
|
-
_iterator = _createForOfIteratorHelper(this.subscriptions);
|
|
91
|
-
|
|
92
|
-
try {
|
|
93
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
94
|
-
subscription = _step.value;
|
|
95
|
-
|
|
96
|
-
if (subscription.eventType === eventType) {
|
|
97
|
-
subscription.handler.api.on(eventType, be);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
} catch (err) {
|
|
101
|
-
_iterator.e(err);
|
|
102
|
-
} finally {
|
|
103
|
-
_iterator.f();
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
case 2:
|
|
107
|
-
case "end":
|
|
108
|
-
return _context.stop();
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}, _callee, this);
|
|
112
|
-
}));
|
|
113
|
-
|
|
114
|
-
function fireEvent(_x, _x2) {
|
|
115
|
-
return _fireEvent.apply(this, arguments);
|
|
22
|
+
addSubscriptions = (() => {
|
|
23
|
+
var _this = this;
|
|
24
|
+
return function (handler) {
|
|
25
|
+
for (var _len = arguments.length, eventTypes = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
26
|
+
eventTypes[_key - 1] = arguments[_key];
|
|
116
27
|
}
|
|
28
|
+
for (const eventType of eventTypes) {
|
|
29
|
+
_this.subscriptions.push({
|
|
30
|
+
handler,
|
|
31
|
+
eventType
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
117
36
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Fires an event.
|
|
39
|
+
*
|
|
40
|
+
* @param eventType eventType the event type
|
|
41
|
+
* @param be the base event
|
|
42
|
+
* @return false if any subscriptions cancel the event.
|
|
43
|
+
*/
|
|
44
|
+
async fireEvent(eventType, be) {
|
|
45
|
+
for (const subscription of this.subscriptions) {
|
|
46
|
+
if (subscription.eventType === eventType) {
|
|
47
|
+
subscription.handler.api.on(eventType, be);
|
|
48
|
+
}
|
|
129
49
|
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
50
|
+
}
|
|
51
|
+
removeSubscriptions = eventHandler => {
|
|
52
|
+
if (eventHandler.api) {
|
|
53
|
+
this.subscriptions = this.subscriptions.filter(sub => sub.handler.api?.id !== eventHandler.api.id);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
136
56
|
|
|
137
|
-
|
|
138
|
-
|
|
57
|
+
/**
|
|
58
|
+
* Clears all event subscriptions
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
clearAllEventListeners() {
|
|
62
|
+
this.subscriptions.splice(0, this.subscriptions.length);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const instance = new VCEventManager();
|
|
66
|
+
//Object.freeze(instance);
|
|
67
|
+
var _default = exports.default = instance;
|
|
@@ -4,171 +4,85 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.VCEventType = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
_defineProperty(VCEventType, "SYSTEM_ACTIVITY", "SYSTEM_ACTIVITY");
|
|
91
|
-
|
|
92
|
-
_defineProperty(VCEventType, "SYSTEM_EVENT", "SYSTEM_EVENT");
|
|
93
|
-
|
|
94
|
-
_defineProperty(VCEventType, "DENIED", "DENIED");
|
|
95
|
-
|
|
96
|
-
_defineProperty(VCEventType, "JOIN_MEETING_PERMIT", "JOIN_MEETING_PERMIT");
|
|
97
|
-
|
|
98
|
-
_defineProperty(VCEventType, "RECEIVING_CALL", "RECEIVING_CALL");
|
|
99
|
-
|
|
100
|
-
_defineProperty(VCEventType, "CALL_REJECTED", "CALL_REJECTED");
|
|
101
|
-
|
|
102
|
-
_defineProperty(VCEventType, "USERS_ONLINE", "USERS_ONLINE");
|
|
103
|
-
|
|
104
|
-
_defineProperty(VCEventType, "USER_ONLINE", "USER_ONLINE");
|
|
105
|
-
|
|
106
|
-
_defineProperty(VCEventType, "USER_OFFLINE", "USER_OFFLINE");
|
|
107
|
-
|
|
108
|
-
_defineProperty(VCEventType, "REGISTER_ONLINE", "REGISTER_ONLINE");
|
|
109
|
-
|
|
110
|
-
_defineProperty(VCEventType, "PERMIT_STATUS", "PERMIT_STATUS");
|
|
111
|
-
|
|
112
|
-
_defineProperty(VCEventType, "CONNECT_ERROR", "CONNECT_ERROR");
|
|
113
|
-
|
|
114
|
-
_defineProperty(VCEventType, "CONNECT", "CONNECT");
|
|
115
|
-
|
|
116
|
-
_defineProperty(VCEventType, "JOIN_CHAT_ROOM", "JOIN_CHAT_ROOM");
|
|
117
|
-
|
|
118
|
-
_defineProperty(VCEventType, "CHAT_MESSAGE", "CHAT_MESSAGE");
|
|
119
|
-
|
|
120
|
-
_defineProperty(VCEventType, "DELETE_CHAT_MESSAGE", "DELETE_CHAT_MESSAGE");
|
|
121
|
-
|
|
122
|
-
_defineProperty(VCEventType, "RAISE_HAND", "RAISE_HAND");
|
|
123
|
-
|
|
124
|
-
_defineProperty(VCEventType, "LOWER_HAND", "LOWER_HAND");
|
|
125
|
-
|
|
126
|
-
_defineProperty(VCEventType, "CHANGE_HOST", "CHANGE_HOST");
|
|
127
|
-
|
|
128
|
-
_defineProperty(VCEventType, "TOGGLE_RECORD_MEETING", "TOGGLE_RECORD_MEETING");
|
|
129
|
-
|
|
130
|
-
_defineProperty(VCEventType, "POLL_RECORDING_STATUS", "POLL_RECORDING_STATUS");
|
|
131
|
-
|
|
132
|
-
_defineProperty(VCEventType, "REQUEST_TO_JOIN", "REQUEST_TO_JOIN");
|
|
133
|
-
|
|
134
|
-
_defineProperty(VCEventType, "REQUEST_TO_JOIN_MEETING", "REQUEST_TO_JOIN_MEETING");
|
|
135
|
-
|
|
136
|
-
_defineProperty(VCEventType, "AUDIO_VISUAL_SETTINGS_CHANGED", "AUDIO_VISUAL_SETTINGS_CHANGED");
|
|
137
|
-
|
|
138
|
-
_defineProperty(VCEventType, "CREATE_WEBRTC_TRANSPORT", "CREATE_WEBRTC_TRANSPORT");
|
|
139
|
-
|
|
140
|
-
_defineProperty(VCEventType, "CONNECT_TRANSPORT", "CONNECT_TRANSPORT");
|
|
141
|
-
|
|
142
|
-
_defineProperty(VCEventType, "CLOSE_ALL_USER_TRANSPORTS", "CLOSE_ALL_USER_TRANSPORTS");
|
|
143
|
-
|
|
144
|
-
_defineProperty(VCEventType, "PRODUCER_CLOSED", "PRODUCER_CLOSED");
|
|
145
|
-
|
|
146
|
-
_defineProperty(VCEventType, "NEW_PRODUCERS", "NEW_PRODUCERS");
|
|
147
|
-
|
|
148
|
-
_defineProperty(VCEventType, "PRODUCE", "PRODUCE");
|
|
149
|
-
|
|
150
|
-
_defineProperty(VCEventType, "CONSUME", "CONSUME");
|
|
151
|
-
|
|
152
|
-
_defineProperty(VCEventType, "SYSTEM_ALERT", "SYSTEM_ALERT");
|
|
153
|
-
|
|
154
|
-
_defineProperty(VCEventType, "WHITEBOARD_EVENT", "WHITEBOARD_EVENT");
|
|
155
|
-
|
|
156
|
-
_defineProperty(VCEventType, "WHITEBOARD", "WHITEBOARD");
|
|
157
|
-
|
|
158
|
-
_defineProperty(VCEventType, "MEETING_ENDED", "MEETING_ENDED");
|
|
159
|
-
|
|
160
|
-
_defineProperty(VCEventType, "SAVE_RECORDING", "SAVE_RECORDING");
|
|
161
|
-
|
|
162
|
-
_defineProperty(VCEventType, "STOP_RECORDING", "STOP_RECORDING");
|
|
163
|
-
|
|
164
|
-
_defineProperty(VCEventType, "UPDATE_CALENDAR", "UPDATE_CALENDAR");
|
|
165
|
-
|
|
166
|
-
_defineProperty(VCEventType, "REQUEST_TO_JOIN_MEETING_ANSWERED", "REQUEST_TO_JOIN_MEETING_ANSWERED");
|
|
167
|
-
|
|
168
|
-
_defineProperty(VCEventType, "PEER_DISCONNECT", "PEER_DISCONNECT");
|
|
169
|
-
|
|
170
|
-
_defineProperty(VCEventType, "CONSUMER_CLOSED", "CONSUMER_CLOSED");
|
|
171
|
-
|
|
172
|
-
_defineProperty(VCEventType, "CANCEL_SCREEN_SHARE", "CANCEL_SCREEN_SHARE");
|
|
173
|
-
|
|
174
|
-
_defineProperty(VCEventType, "SHARING_STOPPED", "SHARING_STOPPED");
|
|
7
|
+
class VCEventType {
|
|
8
|
+
static SECURITY_TOKENS_REFRESHED = "SECURITY_TOKENS_REFRESHED";
|
|
9
|
+
static UNAUTHORISED_API_CALL = "UNAUTHORISED_API_CALL";
|
|
10
|
+
static API_ERROR = "API_ERROR";
|
|
11
|
+
static API_SUCCESS = "API_SUCCESS";
|
|
12
|
+
static WHITEBOARD_EVENT_ARRIVED = "WHITEBOARD_EVENT_ARRIVED";
|
|
13
|
+
static ACTIVE_CHAT_CHANGED = "ACTIVE_CHAT_CHANGED";
|
|
14
|
+
static FIRST_CHAT_ARRIVED = "FIRST_CHAT_ARRIVED";
|
|
15
|
+
static SOCKET_CONNECT = "SOCKET_CONNECT";
|
|
16
|
+
static CALL_REJECTED = "CALL_REJECTED";
|
|
17
|
+
static SOCKET_DISCONNECT = "SOCKET_DISCONNECT";
|
|
18
|
+
static PEER_DISCONNECT = "PEER_DISCONNECT";
|
|
19
|
+
static AUDIO_VISUAL_SETTINGS_CHANGED = "AUDIO_VISUAL_SETTINGS_CHANGED";
|
|
20
|
+
static PARTICIPANT_IN_VIEW = "PARTICIPANT_IN_VIEW";
|
|
21
|
+
static PARTICIPANT_OFF_VIEW = "PARTICIPANT_OFF_VIEW";
|
|
22
|
+
static CONSUMER_TRANSPORT_FAILED = "CONSUMER_TRANSPORT_FAILED";
|
|
23
|
+
static CREATE_TRANSPORT_FAILED = "CREATE_TRANSPORT_FAILED";
|
|
24
|
+
static GET_LOBBY = "GET_LOBBY";
|
|
25
|
+
static JOIN_MEETING = "JOIN_MEETING";
|
|
26
|
+
static CALL_USER = "CALL_USER";
|
|
27
|
+
static CALL_MULTIPLE_USER = "CALL_MULTIPLE_USER";
|
|
28
|
+
static ANSWER_CALL = "ANSWER_CALL";
|
|
29
|
+
static SENDING_SIGNAL = "SENDING_SIGNAL";
|
|
30
|
+
static USER_JOINED = "USER_JOINED";
|
|
31
|
+
static RETURNING_SIGNAL = "RETURNING_SIGNAL";
|
|
32
|
+
static RECEIVING_RETURNED_SIGNAL = "RECEIVING_RETURNED_SIGNAL";
|
|
33
|
+
static USER_LEFT_MEETING = "USER_LEFT_MEETING";
|
|
34
|
+
static END_MEETING = "END_MEETING";
|
|
35
|
+
static END_CALL = "END_CALL";
|
|
36
|
+
static LEAVE_MEETING = "LEAVE_MEETING";
|
|
37
|
+
static END_SESSION = "END_SESSION";
|
|
38
|
+
static CALL_ENDED = "CALL_ENDED";
|
|
39
|
+
static ALL_USERS = "ALL_USERS";
|
|
40
|
+
static CANCEL_CALL = "CANCEL_CALL";
|
|
41
|
+
static PERMISSION = "PERMISSION";
|
|
42
|
+
static NO_PERMIT_REQUIRED = "NO_PERMIT_REQUIRED";
|
|
43
|
+
static ALLOWED = "ALLOWED";
|
|
44
|
+
static SYSTEM_ACTIVITY = "SYSTEM_ACTIVITY";
|
|
45
|
+
static SYSTEM_EVENT = "SYSTEM_EVENT";
|
|
46
|
+
static DENIED = "DENIED";
|
|
47
|
+
static JOIN_MEETING_PERMIT = "JOIN_MEETING_PERMIT";
|
|
48
|
+
static RECEIVING_CALL = "RECEIVING_CALL";
|
|
49
|
+
static CALL_REJECTED = "CALL_REJECTED";
|
|
50
|
+
static USERS_ONLINE = "USERS_ONLINE";
|
|
51
|
+
static USER_ONLINE = "USER_ONLINE";
|
|
52
|
+
static USER_OFFLINE = "USER_OFFLINE";
|
|
53
|
+
static REGISTER_ONLINE = "REGISTER_ONLINE";
|
|
54
|
+
static PERMIT_STATUS = "PERMIT_STATUS";
|
|
55
|
+
static CONNECT_ERROR = "CONNECT_ERROR";
|
|
56
|
+
static CONNECT = "CONNECT";
|
|
57
|
+
static JOIN_CHAT_ROOM = "JOIN_CHAT_ROOM";
|
|
58
|
+
static CHAT_MESSAGE = "CHAT_MESSAGE";
|
|
59
|
+
static DELETE_CHAT_MESSAGE = "DELETE_CHAT_MESSAGE";
|
|
60
|
+
static RAISE_HAND = "RAISE_HAND";
|
|
61
|
+
static LOWER_HAND = "LOWER_HAND";
|
|
62
|
+
static CHANGE_HOST = "CHANGE_HOST";
|
|
63
|
+
static TOGGLE_RECORD_MEETING = "TOGGLE_RECORD_MEETING";
|
|
64
|
+
static POLL_RECORDING_STATUS = "POLL_RECORDING_STATUS";
|
|
65
|
+
static REQUEST_TO_JOIN = "REQUEST_TO_JOIN";
|
|
66
|
+
static REQUEST_TO_JOIN_MEETING = "REQUEST_TO_JOIN_MEETING";
|
|
67
|
+
static AUDIO_VISUAL_SETTINGS_CHANGED = "AUDIO_VISUAL_SETTINGS_CHANGED";
|
|
68
|
+
static CREATE_WEBRTC_TRANSPORT = "CREATE_WEBRTC_TRANSPORT";
|
|
69
|
+
static CONNECT_TRANSPORT = "CONNECT_TRANSPORT";
|
|
70
|
+
static CLOSE_ALL_USER_TRANSPORTS = "CLOSE_ALL_USER_TRANSPORTS";
|
|
71
|
+
static PRODUCER_CLOSED = "PRODUCER_CLOSED";
|
|
72
|
+
static NEW_PRODUCERS = "NEW_PRODUCERS";
|
|
73
|
+
static PRODUCE = "PRODUCE";
|
|
74
|
+
static CONSUME = "CONSUME";
|
|
75
|
+
static SYSTEM_ALERT = "SYSTEM_ALERT";
|
|
76
|
+
static WHITEBOARD_EVENT = "WHITEBOARD_EVENT";
|
|
77
|
+
static WHITEBOARD = "WHITEBOARD";
|
|
78
|
+
static MEETING_ENDED = "MEETING_ENDED";
|
|
79
|
+
static SAVE_RECORDING = "SAVE_RECORDING";
|
|
80
|
+
static STOP_RECORDING = "STOP_RECORDING";
|
|
81
|
+
static UPDATE_CALENDAR = "UPDATE_CALENDAR";
|
|
82
|
+
static REQUEST_TO_JOIN_MEETING_ANSWERED = "REQUEST_TO_JOIN_MEETING_ANSWERED";
|
|
83
|
+
static PEER_DISCONNECT = "PEER_DISCONNECT";
|
|
84
|
+
static CONSUMER_CLOSED = "CONSUMER_CLOSED";
|
|
85
|
+
static CANCEL_SCREEN_SHARE = "CANCEL_SCREEN_SHARE";
|
|
86
|
+
static SHARING_STOPPED = "SHARING_STOPPED";
|
|
87
|
+
}
|
|
88
|
+
exports.VCEventType = VCEventType;
|
|
@@ -1,44 +1,21 @@
|
|
|
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 _VCParticipantListItem = _interopRequireDefault(require("./VCParticipantListItem"));
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
25
|
-
|
|
26
|
-
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); }
|
|
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 VCParticipantList = function VCParticipantList(props) {
|
|
35
|
-
var _useState = (0, _react.useState)(null),
|
|
36
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
37
|
-
anchorEl = _useState2[0],
|
|
38
|
-
setAnchorEl = _useState2[1];
|
|
39
|
-
|
|
40
|
-
var open = Boolean(anchorEl);
|
|
41
|
-
var participants = props.participants;
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
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); }
|
|
12
|
+
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; }
|
|
13
|
+
const VCParticipantList = props => {
|
|
14
|
+
const [anchorEl, setAnchorEl] = (0, _react.useState)(null);
|
|
15
|
+
const open = Boolean(anchorEl);
|
|
16
|
+
const {
|
|
17
|
+
participants
|
|
18
|
+
} = props;
|
|
42
19
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
43
20
|
className: 'w-100 h-100 people-container'
|
|
44
21
|
}, participants.length > 0 && /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -54,29 +31,17 @@ var VCParticipantList = function VCParticipantList(props) {
|
|
|
54
31
|
width: '100%',
|
|
55
32
|
overflow: 'auto'
|
|
56
33
|
}
|
|
57
|
-
}, participants.map(
|
|
34
|
+
}, participants.map((participant, index) => {
|
|
58
35
|
return /*#__PURE__*/_react.default.createElement(_VCParticipantListItem.default, {
|
|
59
36
|
key: index,
|
|
60
|
-
onChangeMeetingHostHandler:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
onBringToViewHandler: function onBringToViewHandler(participant) {
|
|
67
|
-
return props.onBringToViewHandler(participant);
|
|
68
|
-
},
|
|
69
|
-
onHostVideoMute: function onHostVideoMute(participant) {
|
|
70
|
-
return props.onHostVideoMute(participant);
|
|
71
|
-
},
|
|
72
|
-
onHostAudioMute: function onHostAudioMute(participant) {
|
|
73
|
-
return props.onHostAudioMute(participant);
|
|
74
|
-
},
|
|
37
|
+
onChangeMeetingHostHandler: e => props.onChangeMeetingHostHandler(e),
|
|
38
|
+
onPinHandler: (participant, pinned) => props.onPinHandler(participant, pinned),
|
|
39
|
+
onBringToViewHandler: participant => props.onBringToViewHandler(participant),
|
|
40
|
+
onHostVideoMute: participant => props.onHostVideoMute(participant),
|
|
41
|
+
onHostAudioMute: participant => props.onHostAudioMute(participant),
|
|
75
42
|
isHost: props.isHost,
|
|
76
43
|
participant: participant
|
|
77
44
|
});
|
|
78
45
|
}))));
|
|
79
46
|
};
|
|
80
|
-
|
|
81
|
-
var _default = VCParticipantList;
|
|
82
|
-
exports.default = _default;
|
|
47
|
+
var _default = exports.default = VCParticipantList;
|