@agilemotion/oui-react-js 1.3.9 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApplicationContext.js → ApplicationManager.js} +196 -74
- package/dist/BasicApp.js +66 -63
- package/dist/BasicAppHome.js +85 -118
- package/dist/BusinessPortalAppHome.js +9 -15
- package/dist/DynamicJS.js +7 -3
- package/dist/RestUtils.js +13 -14
- package/dist/Utils.js +15 -9
- package/dist/WithRouter.js +34 -0
- package/dist/assets/scss/black-dashboard-react/custom/_sidebar-and-main-panel.scss +1 -1
- package/dist/components/AlertBar.js +1 -1
- package/dist/components/Button.js +34 -25
- package/dist/components/Calendar.js +9 -45
- package/dist/components/DataGrid.js +49 -18
- package/dist/components/DataGridColumn.js +1 -1
- package/dist/components/DataGridFilter.js +2 -2
- package/dist/components/Dialog.js +1 -1
- package/dist/components/DocumentViewer.js +5 -5
- package/dist/components/FileThumb.js +30 -19
- package/dist/components/Graph.js +10 -2
- package/dist/components/GraphNode.js +1 -1
- package/dist/components/HtmlPanel.js +10 -5
- package/dist/components/Icon.js +8 -0
- package/dist/components/PopupView.js +1 -1
- package/dist/components/Portlet.js +100 -0
- package/dist/components/SignaturePanel.js +1 -1
- package/dist/components/SocketManager.js +2 -2
- package/dist/components/StepperTitleBar.js +4 -4
- package/dist/components/TabPanel.js +11 -3
- package/dist/components/TableCellContent.js +1 -1
- package/dist/components/TemplateDesigner.js +11 -11
- package/dist/components/TitleBar.js +4 -3
- package/dist/components/Toolbar.js +42 -11
- package/dist/components/Tree.js +3 -3
- package/dist/components/dashboard/BasicBusinessAppDashboard.js +9 -7
- package/dist/components/dashboard/components/Header.js +1 -1
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.css +7 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +74 -72
- package/dist/components/form/AutoComplete.js +31 -30
- package/dist/components/form/BaseField.js +38 -26
- package/dist/components/form/DatePicker.js +5 -2
- package/dist/components/form/FieldSet.js +11 -19
- package/dist/components/form/Form.js +24 -16
- package/dist/components/form/ImageEditor.js +4 -4
- package/dist/components/form/MultiFileUploadField.js +15 -14
- package/dist/components/form/RadioGroup.js +10 -11
- package/dist/components/form/Section.js +10 -0
- package/dist/components/form/TimePicker.js +1 -0
- package/dist/components/form/UploadField.js +115 -108
- package/dist/components/layout/Layout.js +65 -12
- package/dist/components/layout/View.css +1 -0
- package/dist/components/layout/View.js +20 -23
- package/dist/components/layout/ViewContainer.css +3 -0
- package/dist/components/layout/ViewContainer.js +59 -0
- package/dist/components/layout/ViewPort.js +50 -80
- package/dist/components/layout/Window.css +18 -0
- package/dist/components/layout/Window.js +287 -0
- package/dist/components/layout/WindowViewPort.js +71 -0
- package/dist/components/media/MediaSoupHelper.js +1 -1
- package/dist/components/media/Toolbar.css +18 -3
- package/dist/components/media/Toolbar.js +80 -56
- package/dist/components/media/TrainingRoom.js +97 -20
- package/dist/components/media/VCRoom.js +1 -1
- package/dist/components/media/VCRoomParticipant.js +17 -15
- package/dist/components/media/VCRoomRecorder.js +223 -0
- package/dist/components/media/VCRoomWorkspace.js +169 -156
- package/dist/components/media/VideoPlayer.css +10 -0
- package/dist/components/media/VideoPlayer.js +86 -0
- package/dist/components/menu/MenuButton.js +22 -6
- package/dist/components/menu/MenuLink.js +13 -10
- package/dist/components/navbars/HomeNavbar.js +2 -2
- package/dist/components/navbars/PortalNavbar.js +3 -3
- package/dist/components/signatures/AgilitySignaturePanel.js +4 -4
- package/dist/components/signatures/ImageSignatureInput.js +4 -4
- package/dist/components/signatures/SignatureInput.js +4 -4
- package/dist/components/signatures/SignatureTemplateDesigner.js +6 -6
- package/dist/event/ActionHandlers.js +3 -3
- package/dist/event/Observable.js +33 -15
- package/dist/event/RouteActionHandler.js +38 -29
- package/dist/event/ServiceCallActionHandler.js +4 -2
- package/dist/event/SignalGraphActionHandler.js +2 -2
- package/dist/js/Calendar.js +220 -0
- package/dist/js/Media.js +2 -2
- package/dist/view/Dashboard.js +34 -28
- package/dist/view/Views.js +30 -0
- package/dist/view/security/ChangePasswordBasic.js +6 -4
- package/dist/view/security/ForgotPassword.js +4 -4
- package/dist/view/security/ForgotPasswordBasic.js +4 -4
- package/dist/view/security/Login.js +4 -4
- package/dist/view/security/LoginBasic.js +5 -5
- package/dist/view/security/LoginBusinessPortal.js +4 -4
- package/dist/view/security/ResetPassword.js +4 -4
- package/dist/view/security/ResetPasswordBasic.js +6 -4
- package/package.json +8 -14
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
require("./ViewContainer.css");
|
|
11
|
+
|
|
12
|
+
var _ApplicationManager = _interopRequireDefault(require("../../ApplicationManager"));
|
|
13
|
+
|
|
14
|
+
var _Dashboard = _interopRequireDefault(require("../../view/Dashboard"));
|
|
15
|
+
|
|
16
|
+
var _Utils = _interopRequireDefault(require("../../Utils"));
|
|
17
|
+
|
|
18
|
+
var _View = require("./View");
|
|
19
|
+
|
|
20
|
+
var _reactRouterDom = require("react-router-dom");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
+
|
|
24
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
25
|
+
|
|
26
|
+
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; }
|
|
27
|
+
|
|
28
|
+
const ViewContainer = props => {
|
|
29
|
+
const params = (0, _reactRouterDom.useParams)();
|
|
30
|
+
const attributes = (0, _react.useRef)({
|
|
31
|
+
windowView: null,
|
|
32
|
+
anchorView: null
|
|
33
|
+
});
|
|
34
|
+
const windowOpen = (0, _react.useRef)(null);
|
|
35
|
+
|
|
36
|
+
_react.default.useEffect(() => {}, []);
|
|
37
|
+
|
|
38
|
+
const renderView = () => {
|
|
39
|
+
let viewId = params.id;
|
|
40
|
+
|
|
41
|
+
let view = _ApplicationManager.default.getView(viewId);
|
|
42
|
+
|
|
43
|
+
let element = viewId === 'dashboard' ? /*#__PURE__*/_react.default.createElement(_Dashboard.default, {
|
|
44
|
+
ref: /*#__PURE__*/_react.default.createRef()
|
|
45
|
+
}) : !_Utils.default.isNull(view) && !_Utils.default.isNull(view.config) ? /*#__PURE__*/_react.default.createElement(_View.View, {
|
|
46
|
+
config: view.config,
|
|
47
|
+
parameters: view.parameters,
|
|
48
|
+
ref: /*#__PURE__*/_react.default.createRef(),
|
|
49
|
+
handle: view.handle
|
|
50
|
+
}) : null;
|
|
51
|
+
console.log("\n\n\n\nLOADING : " + viewId, element);
|
|
52
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, element);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
return renderView();
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
var _default = ViewContainer;
|
|
59
|
+
exports.default = _default;
|
|
@@ -9,94 +9,64 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _reactRouterDom = require("react-router-dom");
|
|
11
11
|
|
|
12
|
-
var _View = require("./View");
|
|
13
|
-
|
|
14
12
|
var _Utils = _interopRequireDefault(require("../../Utils"));
|
|
15
13
|
|
|
16
|
-
var
|
|
14
|
+
var _ApplicationManager = _interopRequireDefault(require("../../ApplicationManager"));
|
|
17
15
|
|
|
18
16
|
var _ConfirmationDialog = require("../ConfirmationDialog");
|
|
19
17
|
|
|
20
18
|
var _PopupView = _interopRequireDefault(require("../PopupView"));
|
|
21
19
|
|
|
22
|
-
var _Dashboard = _interopRequireDefault(require("../../view/Dashboard"));
|
|
23
|
-
|
|
24
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
21
|
|
|
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
|
-
_ApplicationContext.default.setViewPortHistory(this.props.history);
|
|
76
|
-
|
|
77
|
-
_ApplicationContext.default.setConfirmDialogHandler(this.confirmationDialogController);
|
|
78
|
-
|
|
79
|
-
let defaultRoute = !_Utils.default.isNull(this.props.defaultView) ? this.props.defaultView : "/view/dashboard";
|
|
80
|
-
this.props.history.push(defaultRoute);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
render() {
|
|
84
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
85
|
-
style: {
|
|
86
|
-
height: _Utils.default.isNull(this.props.height) ? 'calc(100vh - 90px)' : this.props.height
|
|
87
|
-
}
|
|
88
|
-
}, /*#__PURE__*/_react.default.createElement(_PopupView.default, {
|
|
89
|
-
controller: this.popupViewController
|
|
90
|
-
}), /*#__PURE__*/_react.default.createElement(_reactRouterDom.Route, {
|
|
91
|
-
path: "/view/:id",
|
|
92
|
-
render: routerProps => this.renderView(routerProps)
|
|
93
|
-
}), /*#__PURE__*/_react.default.createElement(_ConfirmationDialog.ConfirmationDialog, {
|
|
94
|
-
controller: this.confirmationDialogController
|
|
95
|
-
}));
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
var _default = (0, _reactRouterDom.withRouter)(ViewPort);
|
|
22
|
+
const ViewPort = () => {
|
|
23
|
+
const navigate = (0, _reactRouterDom.useNavigate)();
|
|
24
|
+
|
|
25
|
+
const [loading, setLoading] = _react.default.useState(true);
|
|
26
|
+
|
|
27
|
+
const confirmationDialogController = _react.default.useRef({});
|
|
28
|
+
|
|
29
|
+
const popupViewController = _react.default.useRef({});
|
|
30
|
+
|
|
31
|
+
const openPopupView = view => {
|
|
32
|
+
popupViewController.current.open(view);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const closePopupView = () => {
|
|
36
|
+
popupViewController.current.close();
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
_react.default.useEffect(() => {
|
|
40
|
+
if (loading) {
|
|
41
|
+
setLoading(false);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
_react.default.useEffect(() => {
|
|
46
|
+
if (!loading) {
|
|
47
|
+
navigate("/view/dashboard");
|
|
48
|
+
}
|
|
49
|
+
}, [loading]);
|
|
50
|
+
|
|
51
|
+
_react.default.useEffect(() => {
|
|
52
|
+
confirmationDialogController.current.openPopupView = openPopupView;
|
|
53
|
+
confirmationDialogController.current.closePopupView = closePopupView; //applicationManager.setViewPortHistory(props.history);
|
|
54
|
+
|
|
55
|
+
_ApplicationManager.default.setConfirmDialogHandler(confirmationDialogController.current);
|
|
56
|
+
|
|
57
|
+
console.log("LOADING VIEWPORT");
|
|
58
|
+
}, []);
|
|
59
|
+
|
|
60
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
61
|
+
style: {
|
|
62
|
+
height: 'calc(100vh - 90px)'
|
|
63
|
+
}
|
|
64
|
+
}, /*#__PURE__*/_react.default.createElement(_PopupView.default, {
|
|
65
|
+
controller: popupViewController.current
|
|
66
|
+
}), /*#__PURE__*/_react.default.createElement(_reactRouterDom.Outlet, null), /*#__PURE__*/_react.default.createElement(_ConfirmationDialog.ConfirmationDialog, {
|
|
67
|
+
controller: confirmationDialogController.current
|
|
68
|
+
}));
|
|
69
|
+
};
|
|
101
70
|
|
|
71
|
+
var _default = ViewPort;
|
|
102
72
|
exports.default = _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.meeting-window-header {
|
|
2
|
+
width: 100%;
|
|
3
|
+
padding: 8px 0;
|
|
4
|
+
color: #000000;
|
|
5
|
+
cursor: move;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
#meeting-window-title {
|
|
9
|
+
margin: 0 32px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.meeting-title {
|
|
13
|
+
margin: 8px 0 0 0;
|
|
14
|
+
font-size: 24px;
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
text-align: left;
|
|
17
|
+
padding-left: 0 !important;
|
|
18
|
+
}
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
require("./Window.css");
|
|
11
|
+
|
|
12
|
+
var _withStyles = _interopRequireDefault(require("@material-ui/core/styles/withStyles"));
|
|
13
|
+
|
|
14
|
+
var _Dialog = _interopRequireDefault(require("@material-ui/core/Dialog"));
|
|
15
|
+
|
|
16
|
+
var _reactDraggable = _interopRequireDefault(require("react-draggable"));
|
|
17
|
+
|
|
18
|
+
var _Paper = _interopRequireDefault(require("@material-ui/core/Paper"));
|
|
19
|
+
|
|
20
|
+
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
21
|
+
|
|
22
|
+
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
23
|
+
|
|
24
|
+
var _ApplicationManager = _interopRequireDefault(require("../../ApplicationManager"));
|
|
25
|
+
|
|
26
|
+
var _AlertBar = _interopRequireDefault(require("../AlertBar"));
|
|
27
|
+
|
|
28
|
+
var _VCEventManager = _interopRequireDefault(require("../media/VCEventManager"));
|
|
29
|
+
|
|
30
|
+
var _Observable = _interopRequireDefault(require("../../event/Observable"));
|
|
31
|
+
|
|
32
|
+
var _SocketManager = _interopRequireDefault(require("../SocketManager"));
|
|
33
|
+
|
|
34
|
+
var _TitleBar = _interopRequireDefault(require("../TitleBar"));
|
|
35
|
+
|
|
36
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
|
+
|
|
38
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
43
|
+
|
|
44
|
+
const minimizeWidth = '848';
|
|
45
|
+
const StyledDialog = (0, _withStyles.default)({
|
|
46
|
+
root: {
|
|
47
|
+
pointerEvents: 'none'
|
|
48
|
+
},
|
|
49
|
+
paper: {
|
|
50
|
+
pointerEvents: 'auto',
|
|
51
|
+
width: 'calc(100% - 344px)',
|
|
52
|
+
maxWidth: '100%',
|
|
53
|
+
height: 'calc(100% - 88px)',
|
|
54
|
+
position: 'absolute',
|
|
55
|
+
margin: '8px',
|
|
56
|
+
bottom: 0,
|
|
57
|
+
right: 0,
|
|
58
|
+
overflow: 'hidden',
|
|
59
|
+
borderRadius: 4,
|
|
60
|
+
['@media (max-width:991px)']: {
|
|
61
|
+
maxWidth: '100%'
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
})(props => /*#__PURE__*/_react.default.createElement(_Dialog.default, _extends({
|
|
65
|
+
hideBackdrop: true
|
|
66
|
+
}, props)));
|
|
67
|
+
|
|
68
|
+
const PaperComponent = props => {
|
|
69
|
+
const [bounds, setBounds] = (0, _react.useState)({
|
|
70
|
+
left: 0,
|
|
71
|
+
right: 0,
|
|
72
|
+
top: 0,
|
|
73
|
+
bottom: 0
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const handleStart = (e, data) => {
|
|
77
|
+
console.log("DRAG START");
|
|
78
|
+
|
|
79
|
+
if (!data) {
|
|
80
|
+
return;
|
|
81
|
+
} //const x = data.node.offsetLeft - data.node.offsetWidth;
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
const top = -data.node.offsetTop + 64;
|
|
85
|
+
const bottom = window.innerHeight - (data.node.offsetTop + 64);
|
|
86
|
+
setBounds({
|
|
87
|
+
left: 0,
|
|
88
|
+
right: 0,
|
|
89
|
+
top: top,
|
|
90
|
+
bottom: bottom
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
return /*#__PURE__*/_react.default.createElement(_reactDraggable.default, {
|
|
95
|
+
disabled: props.disabled,
|
|
96
|
+
bounds: bounds,
|
|
97
|
+
onStart: handleStart,
|
|
98
|
+
handle: "#meeting-window-header",
|
|
99
|
+
cancel: '[class*="MuiDialogContent-root"]'
|
|
100
|
+
}, /*#__PURE__*/_react.default.createElement(_Paper.default, props));
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
const Window = props => {
|
|
104
|
+
const {
|
|
105
|
+
children,
|
|
106
|
+
open,
|
|
107
|
+
minimizable
|
|
108
|
+
} = props;
|
|
109
|
+
const [displayState, setDisplayState] = (0, _react.useState)(props.displayState);
|
|
110
|
+
const [windowTransformValue, setWindowTransformValue] = (0, _react.useState)(null);
|
|
111
|
+
(0, _react.useEffect)(() => {
|
|
112
|
+
if (props.displayState) {
|
|
113
|
+
setDisplayState(props.displayState);
|
|
114
|
+
|
|
115
|
+
_ApplicationManager.default.updateContext({
|
|
116
|
+
windowDisplayState: props.displayState
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}, [props.displayState]);
|
|
120
|
+
(0, _react.useEffect)(() => {
|
|
121
|
+
_ApplicationManager.default.addApplicationContextSubscription({
|
|
122
|
+
handler: {
|
|
123
|
+
get id() {
|
|
124
|
+
return 'window';
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
onContextChange: (context, newValues) => {
|
|
128
|
+
if (Object.keys(newValues).find(key => key === 'windowDisplayState')) {
|
|
129
|
+
console.log('MIN : ' + newValues.windowDisplayState);
|
|
130
|
+
|
|
131
|
+
if (newValues.windowDisplayState === 'MAXIMIZED') {
|
|
132
|
+
maximizeView(null, false);
|
|
133
|
+
} else {
|
|
134
|
+
minimizeView(null, false);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}).then(initialContext => {
|
|
140
|
+
setDisplayState(initialContext ? initialContext.windowDisplayState : 'MAXIMIZED');
|
|
141
|
+
});
|
|
142
|
+
}, []);
|
|
143
|
+
(0, _react.useEffect)(() => {
|
|
144
|
+
if (displayState === 'MAXIMIZED') {
|
|
145
|
+
maximizeView(null);
|
|
146
|
+
} else {
|
|
147
|
+
minimizeView(null);
|
|
148
|
+
}
|
|
149
|
+
}, [displayState]);
|
|
150
|
+
|
|
151
|
+
const getMinimizedStyle = () => {
|
|
152
|
+
return {
|
|
153
|
+
transform: 'translate(0, 0)',
|
|
154
|
+
backgroundColor: '#FFFFFF',
|
|
155
|
+
width: minimizeWidth + 'px',
|
|
156
|
+
height: '500px',
|
|
157
|
+
margin: '0 16px 16px 16px'
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
const getMaximizedStyle = () => {
|
|
162
|
+
return {
|
|
163
|
+
transform: 'translate(0, 0)',
|
|
164
|
+
backgroundColor: '#FFFFFF',
|
|
165
|
+
width: 'calc(100% - 344px)',
|
|
166
|
+
height: 'calc(100% - 88px)',
|
|
167
|
+
margin: '8px'
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
const minimizeView = (e, updateContext = true) => {
|
|
172
|
+
if (minimizable) {
|
|
173
|
+
let paper = document.getElementById('meetingDialogPaper');
|
|
174
|
+
|
|
175
|
+
if (paper) {
|
|
176
|
+
if (windowTransformValue) {
|
|
177
|
+
paper.style.transform = windowTransformValue;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
paper.style.width = minimizeWidth + 'px';
|
|
181
|
+
paper.style.height = '500px';
|
|
182
|
+
paper.style.margin = '0 16px 16px 16px';
|
|
183
|
+
let header = document.getElementsByClassName('dialogHeader')[0];
|
|
184
|
+
header.getElementsByTagName('button')[0].style.color = '#000000';
|
|
185
|
+
document.getElementById('meeting-window-header').style.cursor = 'move';
|
|
186
|
+
setDisplayState('MINIMIZED');
|
|
187
|
+
|
|
188
|
+
if (updateContext) {
|
|
189
|
+
_ApplicationManager.default.updateContext({
|
|
190
|
+
windowDisplayState: 'MINIMIZED'
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
function getLeftOffset() {
|
|
198
|
+
let sidebarWidth = parseInt(document.getElementsByClassName('sidebar')[0].style.width.replace('px', ''));
|
|
199
|
+
return sidebarWidth + (sidebarWidth === 0 ? 16 : 36);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
const maximizeView = (e, updateContext = true) => {
|
|
203
|
+
let paper = document.getElementById('meetingDialogPaper');
|
|
204
|
+
|
|
205
|
+
if (paper) {
|
|
206
|
+
let sidebar = document.getElementsByClassName('sidebar')[0];
|
|
207
|
+
let sidebarTransform = window.getComputedStyle(sidebar, null).transform;
|
|
208
|
+
setWindowTransformValue(paper.style.transform);
|
|
209
|
+
paper.style.transform = 'translate(0, 0)';
|
|
210
|
+
paper.style.backgroundColor = '#FFFFFF';
|
|
211
|
+
paper.style.width = 'calc(100% - ' + getLeftOffset() + 'px)';
|
|
212
|
+
paper.style.height = 'calc(100% - 88px)';
|
|
213
|
+
paper.style.margin = '8px';
|
|
214
|
+
let header = document.getElementsByClassName('dialogHeader')[0];
|
|
215
|
+
header.getElementsByTagName('button')[0].style.color = 'rgba(0, 0, 0, 0.54)';
|
|
216
|
+
document.getElementById('meeting-window-header').style.cursor = 'default';
|
|
217
|
+
setDisplayState('MAXIMIZED');
|
|
218
|
+
|
|
219
|
+
if (updateContext) {
|
|
220
|
+
_ApplicationManager.default.updateContext({
|
|
221
|
+
windowDisplayState: 'MAXIMIZED'
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
228
|
+
style: {
|
|
229
|
+
width: '100%',
|
|
230
|
+
height: '100%',
|
|
231
|
+
maxHeight: '100%',
|
|
232
|
+
overflowX: 'hidden',
|
|
233
|
+
overflowY: 'auto',
|
|
234
|
+
display: 'none',
|
|
235
|
+
color: '#000000'
|
|
236
|
+
}
|
|
237
|
+
}, /*#__PURE__*/_react.default.createElement(StyledDialog, {
|
|
238
|
+
disableEnforceFocus: true,
|
|
239
|
+
open: open,
|
|
240
|
+
onClose: e => {},
|
|
241
|
+
keepMounted: true,
|
|
242
|
+
hideBackdrop: true,
|
|
243
|
+
"aria-labelledby": "meeting-window-title",
|
|
244
|
+
"aria-describedby": "meeting-window-description",
|
|
245
|
+
className: props.containerClassName,
|
|
246
|
+
PaperComponent: PaperComponent,
|
|
247
|
+
PaperProps: {
|
|
248
|
+
id: 'meetingDialogPaper',
|
|
249
|
+
disabled: displayState === 'MAXIMIZED',
|
|
250
|
+
style: displayState === 'MINIMIZED' ? getMinimizedStyle() : getMaximizedStyle
|
|
251
|
+
}
|
|
252
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
253
|
+
className: 'meeting-window-header',
|
|
254
|
+
id: "meeting-window-header"
|
|
255
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, minimizable && displayState && /*#__PURE__*/_react.default.createElement("div", {
|
|
256
|
+
style: {
|
|
257
|
+
width: '48px',
|
|
258
|
+
height: '48px',
|
|
259
|
+
margin: '8px 16px 0 0',
|
|
260
|
+
position: 'absolute',
|
|
261
|
+
right: 0
|
|
262
|
+
}
|
|
263
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
264
|
+
className: 'dialogHeader row'
|
|
265
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, displayState === 'MAXIMIZED' ? /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
266
|
+
onClick: e => {
|
|
267
|
+
minimizeView(e);
|
|
268
|
+
},
|
|
269
|
+
style: {
|
|
270
|
+
marginRight: '4px'
|
|
271
|
+
}
|
|
272
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
273
|
+
id: 'MINIMIZE'
|
|
274
|
+
})) : /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
275
|
+
onClick: e => {
|
|
276
|
+
maximizeView(e);
|
|
277
|
+
},
|
|
278
|
+
style: {
|
|
279
|
+
marginRight: '4px'
|
|
280
|
+
}
|
|
281
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
282
|
+
id: 'MAXIMIZE'
|
|
283
|
+
}))))))), children));
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
var _default = Window;
|
|
287
|
+
exports.default = _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
require("./ViewContainer.css");
|
|
11
|
+
|
|
12
|
+
var _Window = _interopRequireDefault(require("./Window"));
|
|
13
|
+
|
|
14
|
+
var _View = require("./View");
|
|
15
|
+
|
|
16
|
+
var _Observable = _interopRequireDefault(require("../../event/Observable"));
|
|
17
|
+
|
|
18
|
+
var _ApplicationManager = _interopRequireDefault(require("../../ApplicationManager"));
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
const WindowViewContainer = props => {
|
|
27
|
+
const [view, setView] = _react.default.useState(null);
|
|
28
|
+
|
|
29
|
+
function loadView(context) {
|
|
30
|
+
if (context) {
|
|
31
|
+
if (Object.keys(context).find(key => key === 'windowView')) {
|
|
32
|
+
setView(null);
|
|
33
|
+
setView(context.windowView);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
_react.default.useEffect(() => {
|
|
39
|
+
_ApplicationManager.default.addApplicationContextSubscription({
|
|
40
|
+
handler: {
|
|
41
|
+
get id() {
|
|
42
|
+
return 'window-view-port';
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
onContextChange: (context, newValues) => {
|
|
46
|
+
loadView(newValues);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}).then(initialContext => {
|
|
50
|
+
loadView(initialContext);
|
|
51
|
+
});
|
|
52
|
+
}, []);
|
|
53
|
+
|
|
54
|
+
const renderView = () => {
|
|
55
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, view && /*#__PURE__*/_react.default.createElement(_Window.default, {
|
|
56
|
+
minimizable: true,
|
|
57
|
+
open: true,
|
|
58
|
+
displayState: 'MAXIMIZED'
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement(_View.View, {
|
|
60
|
+
config: view.config,
|
|
61
|
+
parameters: view.parameters,
|
|
62
|
+
ref: /*#__PURE__*/_react.default.createRef(),
|
|
63
|
+
handle: view.handle
|
|
64
|
+
})));
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return renderView();
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
var _default = WindowViewContainer;
|
|
71
|
+
exports.default = _default;
|
|
@@ -35,7 +35,7 @@ class MediaSoupHelper {
|
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
_defineProperty(this, "getConsumeStream", async (producerId, rtpCapabilities, consumerTransport, roomId, userId, type) => {
|
|
38
|
-
console.log("
|
|
38
|
+
console.log("CONSUMING FROM : " + producerId);
|
|
39
39
|
|
|
40
40
|
if (consumerTransport) {
|
|
41
41
|
const data = await _SocketManager.default.emitEvent(_VCEventType.VCEventType.CONSUME, {
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
3
|
-
width:
|
|
2
|
+
.vc-toolbar button {
|
|
3
|
+
min-width: 80px;
|
|
4
|
+
width: 80px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.vc-toolbar button .icon,
|
|
8
|
+
.vc-toolbar button .text {
|
|
9
|
+
width: 100%;
|
|
10
|
+
text-align: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.vc-toolbar button .text {
|
|
14
|
+
font-size: 10px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.vc-toolbar button .icon {
|
|
18
|
+
height: 28px;
|
|
4
19
|
}
|
|
5
20
|
|
|
6
|
-
.
|
|
21
|
+
.vc-toolbar .itemWrapper div {
|
|
7
22
|
width: 100% !important;
|
|
8
23
|
}
|
|
9
24
|
|