@agilemotion/oui-react-js 1.8.56 → 1.8.58
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 +446 -472
- package/dist/BasicApp.js +30 -0
- package/dist/BasicAppHome.js +2 -3
- package/dist/DateUtils.js +2 -2
- package/dist/DynamicJS.js +93 -101
- package/dist/InteractionPortalAppHome.js +1 -1
- package/dist/InteractionPortalApp_old.js +1 -2
- package/dist/MouseTracker.js +23 -0
- package/dist/RestService.js +13 -11
- package/dist/RestUtils.js +1 -1
- package/dist/TypedValue.js +15 -14
- package/dist/Utils.js +121 -114
- package/dist/ViewContext.js +152 -159
- package/dist/assets/jss/components/authNavbarStyle.js +34 -37
- package/dist/assets/jss/components/cardHeaderStyle.js +11 -18
- package/dist/assets/jss/components/customDropdownStyle.js +25 -27
- package/dist/assets/jss/components/customInputStyle.js +7 -3
- package/dist/assets/jss/components/dropdownStyle.js +14 -11
- package/dist/assets/jss/components/footerStyle.js +17 -12
- package/dist/assets/jss/components/headerLinksStyle.js +12 -9
- package/dist/assets/jss/components/headerStyle.js +24 -26
- package/dist/assets/jss/components/navbarLinksStyle.js +12 -9
- package/dist/assets/jss/components/navbarStyle.js +24 -26
- package/dist/assets/jss/components/sidebarStyle.js +42 -42
- package/dist/assets/jss/components/typographyStyle.js +7 -3
- package/dist/assets/jss/rootStyle.js +30 -34
- package/dist/assets/jss/views/layoutStyle.js +12 -9
- package/dist/assets/jss/views/loginStyle.js +9 -6
- package/dist/components/AlertBar.js +1 -1
- package/dist/components/Button.js +18 -11
- package/dist/components/Calendar.js +9 -6
- package/dist/components/Chart.js +1 -1
- package/dist/components/DataGrid.css +12 -3
- package/dist/components/DataGrid.js +115 -56
- package/dist/components/DataGridColumn.js +22 -4
- package/dist/components/DocumentTemplateDesigner.js +9 -5
- package/dist/components/DocumentTemplateDesignerComponent.js +49 -549
- package/dist/components/DocumentTemplatePlaceholderDialog.js +3 -4
- package/dist/components/DocumentViewer.js +19 -6
- package/dist/components/ElementResizeHandler.js +177 -174
- package/dist/components/FaceApi.js +2 -2
- package/dist/components/FileThumb.js +5 -5
- package/dist/components/Graph.js +77 -74
- package/dist/components/GraphNode.js +39 -36
- package/dist/components/HtmlPanel.js +2 -1
- package/dist/components/Icon.js +1 -2
- package/dist/components/PDFViewer.js +2 -3
- package/dist/components/PopupView.js +1 -1
- package/dist/components/Portlet.js +3 -2
- package/dist/components/RegularButton.js +17 -14
- package/dist/components/SocketManager.js +97 -94
- package/dist/components/StepperTitleBar.js +7 -6
- package/dist/components/TabPage.js +10 -7
- package/dist/components/TabPanel.js +11 -6
- package/dist/components/TableCellContent.js +13 -9
- package/dist/components/TemplateDesigner.js +2 -2
- package/dist/components/TemplateItemEventHandler.js +232 -228
- package/dist/components/TemplateTable.js +32 -29
- package/dist/components/TitleBar.js +2 -2
- package/dist/components/Toolbar.js +58 -22
- package/dist/components/Tree.js +3 -3
- package/dist/components/WordDocumentViewer.css +7 -0
- package/dist/components/WordDocumentViewer.js +329 -109
- package/dist/components/card/Card.js +18 -15
- package/dist/components/card/CardAvatar.js +11 -8
- package/dist/components/card/CardBody.js +16 -13
- package/dist/components/card/CardFooter.js +15 -12
- package/dist/components/card/CardHeader.js +16 -13
- package/dist/components/card/CardIcon.js +9 -6
- package/dist/components/card/CardText.js +9 -6
- package/dist/components/customInput/File.js +4 -5
- package/dist/components/dashboard/FoldingSideTabDashboard.bck.js +1 -1
- package/dist/components/dashboard/FoldingSideTabDashboard.js +2 -3
- package/dist/components/dashboard/components/Header.js +6 -4
- package/dist/components/dashboard/components/LeftDrawer.js +2 -2
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +26 -28
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.bck.js +182 -188
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +27 -30
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +12 -14
- package/dist/components/drag-spec-design.json +15 -0
- package/dist/components/facialRecognition/FaceRecognitionComponent.js +10 -11
- package/dist/components/facialRecognition/service/faceApi.js +3 -3
- package/dist/components/form/AddressSearch.js +8 -5
- package/dist/components/form/AutoComplete.js +4 -4
- package/dist/components/form/BaseField.js +3 -2
- package/dist/components/form/CurrencyField.js +8 -8
- package/dist/components/form/DatePicker.js +3 -2
- package/dist/components/form/FieldSet.js +2 -1
- package/dist/components/form/Form.css +1 -1
- package/dist/components/form/Form.js +11 -8
- package/dist/components/form/GridField.js +4 -3
- package/dist/components/form/IconField.js +2 -1
- package/dist/components/form/ImageEditor.js +13 -8
- package/dist/components/form/LookupField.js +8 -7
- package/dist/components/form/MultiFileUploadField.js +14 -8
- package/dist/components/form/SelectItem.js +7 -6
- package/dist/components/form/TextField.js +6 -6
- package/dist/components/form/TimePicker.js +3 -2
- package/dist/components/form/TransferList.js +2 -2
- package/dist/components/form/UploadField.js +5 -5
- package/dist/components/grid/GridContainer.js +7 -4
- package/dist/components/grid/GridItem.js +7 -4
- package/dist/components/layout/CollapsiblePanel.js +7 -5
- package/dist/components/layout/Layout.js +5 -5
- package/dist/components/layout/View.js +6 -5
- package/dist/components/layout/ViewContainer.js +1 -2
- package/dist/components/layout/ViewPort.js +1 -1
- package/dist/components/layout/Window.js +2 -3
- package/dist/components/layout/WindowDialog.js +9 -7
- package/dist/components/layout/WindowViewPort.js +3 -3
- package/dist/components/media/Chat.js +2 -1
- package/dist/components/media/MediaSoupHelper.js +57 -53
- package/dist/components/media/SocketRequest.js +9 -7
- package/dist/components/media/SocketResponse.js +7 -5
- package/dist/components/media/Timer.js +1 -2
- package/dist/components/media/Toolbar.js +3 -3
- package/dist/components/media/ToolbarButton.js +23 -24
- package/dist/components/media/Toolbar_bck.js +3 -3
- package/dist/components/media/Tracks.js +24 -19
- package/dist/components/media/TrainingRoom.js +3 -4
- package/dist/components/media/Transports.js +21 -17
- package/dist/components/media/VCEventManager.js +25 -24
- package/dist/components/media/VCEventType.js +81 -79
- package/dist/components/media/VCParticipantList.js +1 -2
- package/dist/components/media/VCParticipantListItem.js +2 -3
- package/dist/components/media/VCRoomParticipant.js +4 -5
- package/dist/components/media/VCRoomRecorder.js +163 -160
- package/dist/components/media/VCRoomWorkspace.js +3 -4
- package/dist/components/media/Video.js +1 -2
- package/dist/components/media/VideoPlayer.js +1 -2
- package/dist/components/media/chat/ChatPoll.js +15 -15
- package/dist/components/media/chat/ChatRoom.js +15 -15
- package/dist/components/media/chat/ChatRoomItem.js +2 -3
- package/dist/components/media/chat/ChatRoomList.js +1 -2
- package/dist/components/media/chat/ChatRoomWrapper.js +1 -1
- package/dist/components/media/chat/PollContainer.js +14 -8
- package/dist/components/media/chat/PollResult.js +1 -2
- package/dist/components/menu/MenuBars.js +8 -5
- package/dist/components/menu/MenuButton.js +11 -5
- package/dist/components/menu/MenuItem.js +13 -6
- package/dist/components/menu/MenuLink.js +2 -1
- package/dist/components/navbars/HomeNavbar.js +43 -41
- package/dist/components/navbars/PortalNavbar.js +1 -2
- package/dist/components/signatures/AgilitySignaturePanel.js +39 -15
- package/dist/components/signatures/{DocumentContainer.js → HtmlSignatureDocumentContainer.js} +4 -4
- package/dist/components/signatures/ImageSignatureInput.js +27 -16
- package/dist/components/signatures/ResponsiveTable.js +1 -1
- package/dist/components/signatures/SearchView.js +1 -1
- package/dist/components/signatures/SignatureInput.js +42 -98
- package/dist/components/signatures/SignatureInputProps.js +1 -1
- package/dist/components/signatures/SignatureTemplateDesigner.js +13 -10
- package/dist/components/signatures/Toolbar.js +7 -3
- package/dist/components/signatures/ViewUtils.js +21 -16
- package/dist/event/ActionHandlers.js +10 -7
- package/dist/event/Event.js +15 -13
- package/dist/event/EventListener.js +39 -41
- package/dist/event/EventType.js +24 -19
- package/dist/event/Observable.js +120 -125
- package/dist/event/RouteActionHandler.js +4 -4
- package/dist/event/ScriptActionHandler.js +1 -1
- package/dist/event/ServiceCallActionHandler.js +1 -1
- package/dist/interaction/CursorOverlay.js +48 -0
- package/dist/interaction/DragContext.js +39 -0
- package/dist/interaction/GrabContext.js +40 -0
- package/dist/js/Addresses.js +9 -8
- package/dist/js/Calendar.js +152 -149
- package/dist/js/Docs.js +92 -87
- package/dist/js/DynamicLib.js +9 -6
- package/dist/js/Media.js +134 -131
- package/dist/js/ProcurementMeetings.js +81 -78
- package/dist/js/Validators.js +53 -50
- package/dist/js/Windows.js +35 -32
- package/dist/redux/store/ConfigureStore.js +8 -5
- package/dist/redux/store/DashboardStore.js +13 -12
- package/dist/redux/store/SecurityStore.js +9 -6
- package/dist/security/TokenManager.js +1 -1
- package/dist/view/Dashboard.js +11 -12
- package/dist/view/security/ForgotPassword.js +3 -3
- package/dist/view/security/ForgotPasswordBasic.js +1 -1
- package/dist/view/security/Login.js +4 -4
- package/dist/view/security/LoginBasic.js +2 -2
- package/dist/view/security/LoginInteractionPortal.js +2 -2
- package/dist/view/security/ResetPassword.js +1 -1
- package/dist/view/security/ResetPasswordBasic.js +1 -1
- package/dist/view/security/Security.js +4 -4
- package/package.json +10 -10
- package/dist/components/DocumentTemplateDesignerComponent2.js +0 -585
|
@@ -8,180 +8,183 @@ var _SocketManager = _interopRequireDefault(require("../SocketManager"));
|
|
|
8
8
|
var _VCEventType = require("./VCEventType");
|
|
9
9
|
var _ApplicationManager = _interopRequireDefault(require("../../ApplicationManager"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
14
|
class VCRoomRecorder {
|
|
12
15
|
constructor() {
|
|
13
|
-
this
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
this
|
|
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
|
-
|
|
16
|
+
_defineProperty(this, "init", async (meetingId, meetingTitle) => {
|
|
17
|
+
this.meetingId = meetingId;
|
|
18
|
+
this.meetingTitle = meetingTitle;
|
|
19
|
+
});
|
|
20
|
+
_defineProperty(this, "addTrack", (id, track) => {
|
|
21
|
+
console.log('ADDING TRACK FOR : ' + id);
|
|
22
|
+
this.audioTracks.set(id, track);
|
|
23
|
+
if (this.recorder && this.recorder.state === 'recording') {
|
|
24
|
+
let mediaStream = new MediaStream([track]);
|
|
25
|
+
const mediaStreamAudioSourceNode = new MediaStreamAudioSourceNode(this.audioContext, {
|
|
26
|
+
mediaStream: mediaStream
|
|
27
|
+
});
|
|
28
|
+
mediaStreamAudioSourceNode.connect(this.mediaStreamAudioDestinationNode);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
_defineProperty(this, "removeTrack", id => {
|
|
32
|
+
if (this.audioTracks.has(id)) {
|
|
33
|
+
this.audioTracks.delete(id);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
_defineProperty(this, "handleRecordingDataAvailable", e => {
|
|
37
|
+
if (e.data.size > 0) {
|
|
38
|
+
console.log('ADDED CHUNK : ' + this.recordingSequence);
|
|
39
|
+
const blob = new Blob([e.data], {
|
|
40
|
+
type: 'video/webm'
|
|
41
|
+
});
|
|
42
|
+
const data = {
|
|
43
|
+
userId: _ApplicationManager.default.getUserDetails().username,
|
|
44
|
+
meetingId: this.meetingId,
|
|
45
|
+
name: this.meetingTitle,
|
|
46
|
+
type: blob.type,
|
|
47
|
+
size: blob.size,
|
|
48
|
+
sequenceNumber: this.recordingSequence,
|
|
49
|
+
sessionId: this.currentRecordingId
|
|
50
|
+
};
|
|
51
|
+
const reader = new FileReader();
|
|
52
|
+
reader.readAsDataURL(blob);
|
|
53
|
+
let _this = this;
|
|
54
|
+
reader.onload = function (evt) {
|
|
55
|
+
const result = evt.target.result;
|
|
56
|
+
_this.recordingType = blob.type;
|
|
57
|
+
_this.recordingSize += blob.size;
|
|
58
|
+
data.recordedData = result.replace('data:video/webm;base64,', '');
|
|
59
|
+
console.log('======== SAVING RECORDING CHUNK =========');
|
|
60
|
+
console.log(data);
|
|
61
|
+
_SocketManager.default.emitEvent(_VCEventType.VCEventType.SAVE_RECORDING, data).then(data => {
|
|
62
|
+
console.log('===== SAVE RECORDING SUCCESS ======');
|
|
63
|
+
if (!_this.isRecording) {
|
|
64
|
+
console.log('======= STOPPING RECORDING =======', _this.meetingTitle);
|
|
65
|
+
const data = {
|
|
66
|
+
meetingId: _this.meetingId,
|
|
67
|
+
userId: _ApplicationManager.default.getUserDetails().username,
|
|
68
|
+
name: _this.meetingTitle,
|
|
69
|
+
type: _this.recordingType,
|
|
70
|
+
size: _this.recordingSize,
|
|
71
|
+
sequenceNumber: _this.recordingSequence,
|
|
72
|
+
sessionId: _this.currentRecordingId
|
|
73
|
+
};
|
|
74
|
+
_SocketManager.default.emitEvent(_VCEventType.VCEventType.STOP_RECORDING, data).catch(error => {});
|
|
75
|
+
}
|
|
76
|
+
}).catch(error => {
|
|
77
|
+
console.log('===== SAVE RECORDING ERROR ======');
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
_this.recordingSequence++;
|
|
81
|
+
} else {
|
|
82
|
+
console.log('no data to push');
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
_defineProperty(this, "recordMeeting", async () => {
|
|
86
|
+
this.recorder = null;
|
|
87
|
+
try {
|
|
88
|
+
this.recorder = await this.createMediaRecorder();
|
|
89
|
+
} catch (e) {}
|
|
60
90
|
let _this = this;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
meetingId: _this.meetingId,
|
|
74
|
-
userId: _ApplicationManager.default.getUserDetails().username,
|
|
75
|
-
name: _this.meetingTitle,
|
|
76
|
-
type: _this.recordingType,
|
|
77
|
-
size: _this.recordingSize,
|
|
78
|
-
sequenceNumber: _this.recordingSequence,
|
|
79
|
-
sessionId: _this.currentRecordingId
|
|
80
|
-
};
|
|
81
|
-
_SocketManager.default.emitEvent(_VCEventType.VCEventType.STOP_RECORDING, data).catch(error => {});
|
|
82
|
-
}
|
|
91
|
+
if (this.recorder != null) {
|
|
92
|
+
_SocketManager.default.emitEvent(_VCEventType.VCEventType.TOGGLE_RECORD_MEETING, {
|
|
93
|
+
roomId: _this.meetingId,
|
|
94
|
+
isRecording: true
|
|
95
|
+
}).then(data => {
|
|
96
|
+
console.log('RECORDING STARTED : ' + data.id);
|
|
97
|
+
_this.currentRecordingId = data.id;
|
|
98
|
+
_this.recordingSequence = 0;
|
|
99
|
+
_this.recordingSize = 0;
|
|
100
|
+
_this.recordingType = '';
|
|
101
|
+
_this.recorder.start(60000);
|
|
102
|
+
_this.isRecording = true;
|
|
83
103
|
}).catch(error => {
|
|
84
|
-
console.log('
|
|
104
|
+
console.log('RECORD START ERROR');
|
|
105
|
+
console.log(error);
|
|
85
106
|
});
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}).then(data => {
|
|
103
|
-
console.log('RECORDING STARTED : ' + data.id);
|
|
104
|
-
_this.currentRecordingId = data.id;
|
|
105
|
-
_this.recordingSequence = 0;
|
|
106
|
-
_this.recordingSize = 0;
|
|
107
|
-
_this.recordingType = '';
|
|
108
|
-
_this.recorder.start(60000);
|
|
109
|
-
_this.isRecording = true;
|
|
110
|
-
}).catch(error => {
|
|
111
|
-
console.log('RECORD START ERROR');
|
|
112
|
-
console.log(error);
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
stopRecordingMeeting = () => {
|
|
117
|
-
try {
|
|
118
|
-
this.isRecording = false;
|
|
119
|
-
_SocketManager.default.emitEvent(_VCEventType.VCEventType.TOGGLE_RECORD_MEETING, {
|
|
120
|
-
roomId: this.meetingId,
|
|
121
|
-
isRecording: false
|
|
122
|
-
}).catch(error => {});
|
|
123
|
-
if (this.recorder && this.recorder.stream) {
|
|
124
|
-
if (this.recorder.stream.getVideoTracks().length > 0) {
|
|
125
|
-
this.recorder.stream.getVideoTracks()[0].stop();
|
|
126
|
-
}
|
|
127
|
-
if (this.recorder.state === 'recording') {
|
|
128
|
-
this.recorder.stop();
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
_defineProperty(this, "stopRecordingMeeting", () => {
|
|
110
|
+
try {
|
|
111
|
+
this.isRecording = false;
|
|
112
|
+
_SocketManager.default.emitEvent(_VCEventType.VCEventType.TOGGLE_RECORD_MEETING, {
|
|
113
|
+
roomId: this.meetingId,
|
|
114
|
+
isRecording: false
|
|
115
|
+
}).catch(error => {});
|
|
116
|
+
if (this.recorder && this.recorder.stream) {
|
|
117
|
+
if (this.recorder.stream.getVideoTracks().length > 0) {
|
|
118
|
+
this.recorder.stream.getVideoTracks()[0].stop();
|
|
119
|
+
}
|
|
120
|
+
if (this.recorder.state === 'recording') {
|
|
121
|
+
this.recorder.stop();
|
|
122
|
+
}
|
|
129
123
|
}
|
|
124
|
+
} catch (e) {
|
|
125
|
+
console.error(e);
|
|
130
126
|
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
systemAudio: 'exclude',
|
|
144
|
-
surfaceSwitching: 'exclude',
|
|
145
|
-
monitorTypeSurfaces: 'exclude'
|
|
146
|
-
};
|
|
147
|
-
let _this = this;
|
|
148
|
-
navigator.mediaDevices.getDisplayMedia(videoConstraints).then(stream => {
|
|
149
|
-
const options = {
|
|
150
|
-
mimeType: 'video/webm; codecs=vp9'
|
|
127
|
+
});
|
|
128
|
+
_defineProperty(this, "createMediaRecorder", () => {
|
|
129
|
+
return new Promise((resolve, reject) => {
|
|
130
|
+
const videoConstraints = {
|
|
131
|
+
cursor: true,
|
|
132
|
+
audio: false,
|
|
133
|
+
mediaSource: "screen",
|
|
134
|
+
preferCurrentTab: true,
|
|
135
|
+
selfBrowserSurface: 'include',
|
|
136
|
+
systemAudio: 'exclude',
|
|
137
|
+
surfaceSwitching: 'exclude',
|
|
138
|
+
monitorTypeSurfaces: 'exclude'
|
|
151
139
|
};
|
|
152
|
-
let
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
140
|
+
let _this = this;
|
|
141
|
+
navigator.mediaDevices.getDisplayMedia(videoConstraints).then(stream => {
|
|
142
|
+
const options = {
|
|
143
|
+
mimeType: 'video/webm; codecs=vp9'
|
|
144
|
+
};
|
|
145
|
+
let audioContext = new AudioContext();
|
|
146
|
+
let mediaStreamAudioDestinationNode = new MediaStreamAudioDestinationNode(audioContext);
|
|
147
|
+
let tracks = [mediaStreamAudioDestinationNode.stream.getAudioTracks()[0], stream.getVideoTracks()[0]];
|
|
148
|
+
if (this.audioTracks.size > 0) {
|
|
149
|
+
for (const value of this.audioTracks.values()) {
|
|
150
|
+
tracks.push(value);
|
|
151
|
+
let mediaStreamAudioSourceNode = new MediaStreamAudioSourceNode(audioContext, {
|
|
152
|
+
mediaStream: new MediaStream([value])
|
|
153
|
+
});
|
|
154
|
+
mediaStreamAudioSourceNode.connect(mediaStreamAudioDestinationNode);
|
|
155
|
+
}
|
|
156
|
+
} else {
|
|
158
157
|
let mediaStreamAudioSourceNode = new MediaStreamAudioSourceNode(audioContext, {
|
|
159
|
-
mediaStream: new MediaStream(
|
|
158
|
+
mediaStream: new MediaStream(tracks)
|
|
160
159
|
});
|
|
161
160
|
mediaStreamAudioSourceNode.connect(mediaStreamAudioDestinationNode);
|
|
162
161
|
}
|
|
163
|
-
|
|
164
|
-
let
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
this.mediaStreamAudioDestinationNode = mediaStreamAudioDestinationNode;
|
|
178
|
-
resolve(recorder);
|
|
179
|
-
}).catch(e => {
|
|
180
|
-
console.error(e);
|
|
181
|
-
reject(new Error(e.message));
|
|
162
|
+
console.log('INIT WITH TRACKS : ', tracks);
|
|
163
|
+
let initialMediaStream = new MediaStream(tracks);
|
|
164
|
+
const recorder = new MediaRecorder(initialMediaStream, options);
|
|
165
|
+
recorder.ondataavailable = _this.handleRecordingDataAvailable;
|
|
166
|
+
recorder.onstop = e => {
|
|
167
|
+
_this.isRecording = false;
|
|
168
|
+
};
|
|
169
|
+
this.audioContext = audioContext;
|
|
170
|
+
this.mediaStreamAudioDestinationNode = mediaStreamAudioDestinationNode;
|
|
171
|
+
resolve(recorder);
|
|
172
|
+
}).catch(e => {
|
|
173
|
+
console.error(e);
|
|
174
|
+
reject(new Error(e.message));
|
|
175
|
+
});
|
|
182
176
|
});
|
|
183
177
|
});
|
|
184
|
-
|
|
178
|
+
this.meetingId = null;
|
|
179
|
+
this.meetingTitle = '';
|
|
180
|
+
this.recordingSequence = 0;
|
|
181
|
+
this.currentRecordingId = null;
|
|
182
|
+
this.recordingType = null;
|
|
183
|
+
this.recordingSize = null;
|
|
184
|
+
this.isRecording = false;
|
|
185
|
+
this.recorder = null;
|
|
186
|
+
this.audioTracks = new Map();
|
|
187
|
+
}
|
|
185
188
|
}
|
|
186
189
|
const instance = new VCRoomRecorder();
|
|
187
190
|
var _default = exports.default = instance;
|
|
@@ -27,8 +27,7 @@ var _Observable = _interopRequireDefault(require("../../event/Observable"));
|
|
|
27
27
|
var _EventType = _interopRequireDefault(require("../../event/EventType"));
|
|
28
28
|
var _uuid = require("uuid");
|
|
29
29
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
30
|
-
function
|
|
31
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
30
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
32
31
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
33
32
|
|
|
34
33
|
const MAX_COLS = 3;
|
|
@@ -786,7 +785,7 @@ const VCRoomWorkspace = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
786
785
|
handle: meetingViewHandler,
|
|
787
786
|
viewId: props.viewId
|
|
788
787
|
})))), /*#__PURE__*/_react.default.createElement("div", {
|
|
789
|
-
className:
|
|
788
|
+
className: "".concat(displayState === 'MAXIMIZED' ? 'row-*-*' : ''),
|
|
790
789
|
style: {
|
|
791
790
|
width: displayState === 'MAXIMIZED' ? '100%' : '200px',
|
|
792
791
|
height: displayState === 'MAXIMIZED' ? '152px' : displayState === 'MINIMIZED' ? '100%' : null,
|
|
@@ -812,7 +811,7 @@ const VCRoomWorkspace = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
812
811
|
height: '100%'
|
|
813
812
|
}
|
|
814
813
|
}, renderStrip())), /*#__PURE__*/_react.default.createElement("div", {
|
|
815
|
-
className:
|
|
814
|
+
className: "".concat(displayState === 'MAXIMIZED' ? 'col ' : ''),
|
|
816
815
|
style: {
|
|
817
816
|
width: '200px',
|
|
818
817
|
height: '148px',
|
|
@@ -9,8 +9,7 @@ var _Utils = _interopRequireDefault(require("../../Utils"));
|
|
|
9
9
|
require("./Video.css");
|
|
10
10
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
function
|
|
13
|
-
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; }
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
13
|
const VIDEO_CONSTRAINTS = exports.VIDEO_CONSTRAINTS = {
|
|
15
14
|
audio: false,
|
|
16
15
|
video: {
|
|
@@ -11,8 +11,7 @@ var _reactPlayer = _interopRequireDefault(require("react-player"));
|
|
|
11
11
|
var _ApplicationManager = _interopRequireDefault(require("../../ApplicationManager"));
|
|
12
12
|
var _Observable = _interopRequireDefault(require("../../event/Observable"));
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
function
|
|
15
|
-
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; }
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
16
15
|
const location = window.location.protocol + '//' + window.location.hostname;
|
|
17
16
|
const VideoPlayer = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
18
17
|
const [playing, setPlaying] = (0, _react.useState)(false);
|
|
@@ -21,10 +21,12 @@ var _RestUtils = require("../../../RestUtils");
|
|
|
21
21
|
var _ApplicationManager = _interopRequireDefault(require("../../../ApplicationManager"));
|
|
22
22
|
var _ChatRoom = require("./ChatRoom");
|
|
23
23
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
24
|
-
function
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
25
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
28
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
29
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } // import TextField from '../../form/TextField';
|
|
28
30
|
const pollLengthDaysOptions = [{
|
|
29
31
|
id: 0,
|
|
30
32
|
label: "0"
|
|
@@ -124,18 +126,16 @@ const ChatPoll = props => {
|
|
|
124
126
|
if (required && !validateField(id, fieldValue)) {
|
|
125
127
|
return;
|
|
126
128
|
}
|
|
127
|
-
setErrors({
|
|
128
|
-
...errors,
|
|
129
|
+
setErrors(_objectSpread(_objectSpread({}, errors), {}, {
|
|
129
130
|
[id]: false
|
|
130
|
-
});
|
|
131
|
+
}));
|
|
131
132
|
};
|
|
132
133
|
const validateField = (fieldId, fieldValue) => {
|
|
133
134
|
if (_Utils.default.isNull(fieldValue) || typeof fieldValue === 'string' && _Utils.default.isStringEmpty(fieldValue)) {
|
|
134
135
|
// value[fieldId] = null;
|
|
135
|
-
setErrors({
|
|
136
|
-
...errors,
|
|
136
|
+
setErrors(_objectSpread(_objectSpread({}, errors), {}, {
|
|
137
137
|
[fieldId]: true
|
|
138
|
-
});
|
|
138
|
+
}));
|
|
139
139
|
return false;
|
|
140
140
|
}
|
|
141
141
|
return true;
|
|
@@ -143,8 +143,8 @@ const ChatPoll = props => {
|
|
|
143
143
|
const addOption = () => {
|
|
144
144
|
const ops = options.slice();
|
|
145
145
|
setOptions(ops.concat([{
|
|
146
|
-
id:
|
|
147
|
-
label:
|
|
146
|
+
id: "option-".concat(options.length + 1),
|
|
147
|
+
label: "Option ".concat(options.length + 1),
|
|
148
148
|
value: ''
|
|
149
149
|
}]));
|
|
150
150
|
};
|
|
@@ -185,7 +185,7 @@ const ChatPoll = props => {
|
|
|
185
185
|
};
|
|
186
186
|
})
|
|
187
187
|
};
|
|
188
|
-
(0, _RestUtils.postData)(
|
|
188
|
+
(0, _RestUtils.postData)("".concat(_ChatRoom.location + '/' + _ApplicationManager.default.getContextRoot(), "/calendar/api/v1/poll/create"), response => {
|
|
189
189
|
props.createPollHandler(response);
|
|
190
190
|
}, e => {}, true, data);
|
|
191
191
|
}
|
|
@@ -277,7 +277,7 @@ const ChatPoll = props => {
|
|
|
277
277
|
onChange: e => {
|
|
278
278
|
setPollLengthDays(e.target.value);
|
|
279
279
|
}
|
|
280
|
-
}, pollLengthDaysOptions
|
|
280
|
+
}, pollLengthDaysOptions === null || pollLengthDaysOptions === void 0 ? void 0 : pollLengthDaysOptions.map(option => /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
281
281
|
key: option.id,
|
|
282
282
|
value: option.id
|
|
283
283
|
}, option.label))))), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -298,7 +298,7 @@ const ChatPoll = props => {
|
|
|
298
298
|
onChange: e => {
|
|
299
299
|
setPollLengthHours(e.target.value);
|
|
300
300
|
}
|
|
301
|
-
}, pollLengthHoursOptions
|
|
301
|
+
}, pollLengthHoursOptions === null || pollLengthHoursOptions === void 0 ? void 0 : pollLengthHoursOptions.map(option => /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
302
302
|
key: option.id,
|
|
303
303
|
value: option.id
|
|
304
304
|
}, option.label)))))), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -33,8 +33,7 @@ var _ChatPoll = _interopRequireDefault(require("./ChatPoll"));
|
|
|
33
33
|
var _PollContainer = _interopRequireDefault(require("./PollContainer"));
|
|
34
34
|
var _iconsMaterial = require("@mui/icons-material");
|
|
35
35
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
36
|
-
function
|
|
37
|
-
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; }
|
|
36
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
38
37
|
const location = exports.location = window.location.protocol + '//' + window.location.hostname;
|
|
39
38
|
const ChatRoom = props => {
|
|
40
39
|
const navigate = (0, _reactRouterDom.useNavigate)();
|
|
@@ -72,7 +71,7 @@ const ChatRoom = props => {
|
|
|
72
71
|
};
|
|
73
72
|
};
|
|
74
73
|
const fetchChat = () => {
|
|
75
|
-
let url = selectedChat.meetingId ?
|
|
74
|
+
let url = selectedChat.meetingId ? "".concat(location + '/' + _ApplicationManager.default.getContextRoot(), "/calendar/api/v1/chat/fetchMeetingChat/").concat(selectedChat.meetingId) : "".concat(location + '/' + _ApplicationManager.default.getContextRoot(), "/calendar/api/v1/chat/fetch/").concat(selectedChat.id);
|
|
76
75
|
(0, _RestUtils.sendRequest)(url, response => {
|
|
77
76
|
if (response && response.id) {
|
|
78
77
|
setSelectedChat(response);
|
|
@@ -80,8 +79,8 @@ const ChatRoom = props => {
|
|
|
80
79
|
}, e => {}, true, false);
|
|
81
80
|
};
|
|
82
81
|
const closePollHandler = (e, poll) => {
|
|
83
|
-
(0, _RestUtils.postData)(
|
|
84
|
-
sendMessage(e,
|
|
82
|
+
(0, _RestUtils.postData)("".concat(location + '/' + _ApplicationManager.default.getContextRoot(), "/calendar/api/v1/poll/close"), response => {
|
|
83
|
+
sendMessage(e, "Poll: ".concat(poll.question, " has been closed."));
|
|
85
84
|
fetchChat();
|
|
86
85
|
}, e => {}, true, {
|
|
87
86
|
id: poll.id
|
|
@@ -95,7 +94,7 @@ const ChatRoom = props => {
|
|
|
95
94
|
chatParticipant: chatParticipant,
|
|
96
95
|
tieBreaker: !_Utils.default.isNull(poll.tieBreakerOption)
|
|
97
96
|
};
|
|
98
|
-
(0, _RestUtils.postData)(
|
|
97
|
+
(0, _RestUtils.postData)("".concat(location + '/' + _ApplicationManager.default.getContextRoot(), "/calendar/api/v1/poll/vote"), response => {
|
|
99
98
|
fetchChat();
|
|
100
99
|
}, e => {}, true, data);
|
|
101
100
|
};
|
|
@@ -174,7 +173,7 @@ const ChatRoom = props => {
|
|
|
174
173
|
setDocuments(null);
|
|
175
174
|
let find = selectedChat.participants.find(p => p.userId === currentUser.username || p.username === currentUser.username);
|
|
176
175
|
if (_Utils.default.isNull(find)) {
|
|
177
|
-
(0, _RestUtils.postData)(
|
|
176
|
+
(0, _RestUtils.postData)("".concat(location + '/' + _ApplicationManager.default.getContextRoot(), "/calendar/api/v1/chat/addParticipants"), () => {}, e => {}, true, {
|
|
178
177
|
chatId: selectedChat.id,
|
|
179
178
|
participants: [currentUser]
|
|
180
179
|
});
|
|
@@ -287,7 +286,7 @@ const ChatRoom = props => {
|
|
|
287
286
|
className: 'col'
|
|
288
287
|
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
289
288
|
key: index,
|
|
290
|
-
src: doc.payload ? doc.payload :
|
|
289
|
+
src: doc.payload ? doc.payload : "".concat(documentDownloadUrl + '/' + doc.repositoryId + '?' + tokensQueryString),
|
|
291
290
|
alt: "",
|
|
292
291
|
style: {
|
|
293
292
|
width: 250,
|
|
@@ -298,7 +297,7 @@ const ChatRoom = props => {
|
|
|
298
297
|
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_material.IconButton, {
|
|
299
298
|
component: "span",
|
|
300
299
|
onClick: () => {
|
|
301
|
-
onDownload(documents[index].name,
|
|
300
|
+
onDownload(documents[index].name, "".concat(documentDownloadUrl + '/' + doc.repositoryId + '?' + tokensQueryString));
|
|
302
301
|
}
|
|
303
302
|
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
304
303
|
id: 'DOWNLOAD'
|
|
@@ -328,7 +327,7 @@ const ChatRoom = props => {
|
|
|
328
327
|
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_material.IconButton, {
|
|
329
328
|
component: "span",
|
|
330
329
|
onClick: () => {
|
|
331
|
-
onDownload(documents[index].name,
|
|
330
|
+
onDownload(documents[index].name, "".concat(documentDownloadUrl + '/' + doc.repositoryId + '?' + tokensQueryString));
|
|
332
331
|
}
|
|
333
332
|
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
334
333
|
id: 'DOWNLOAD'
|
|
@@ -360,7 +359,7 @@ const ChatRoom = props => {
|
|
|
360
359
|
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_material.IconButton, {
|
|
361
360
|
component: "span",
|
|
362
361
|
onClick: () => {
|
|
363
|
-
onDownload(documents[index].name,
|
|
362
|
+
onDownload(documents[index].name, "".concat(documentDownloadUrl + '/' + doc.repositoryId + '?' + tokensQueryString));
|
|
364
363
|
}
|
|
365
364
|
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
366
365
|
id: 'DOWNLOAD'
|
|
@@ -392,7 +391,7 @@ const ChatRoom = props => {
|
|
|
392
391
|
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_material.IconButton, {
|
|
393
392
|
component: "span",
|
|
394
393
|
onClick: () => {
|
|
395
|
-
onDownload(documents[index].name,
|
|
394
|
+
onDownload(documents[index].name, "".concat(documentDownloadUrl + '/' + doc.repositoryId + '?' + tokensQueryString));
|
|
396
395
|
}
|
|
397
396
|
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
398
397
|
id: 'DOWNLOAD'
|
|
@@ -424,7 +423,7 @@ const ChatRoom = props => {
|
|
|
424
423
|
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_material.IconButton, {
|
|
425
424
|
component: "span",
|
|
426
425
|
onClick: () => {
|
|
427
|
-
onDownload(documents[index].name,
|
|
426
|
+
onDownload(documents[index].name, "".concat(documentDownloadUrl + '/' + doc.repositoryId + '?' + tokensQueryString));
|
|
428
427
|
}
|
|
429
428
|
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
430
429
|
id: 'DOWNLOAD'
|
|
@@ -462,7 +461,7 @@ const ChatRoom = props => {
|
|
|
462
461
|
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_material.IconButton, {
|
|
463
462
|
component: "span",
|
|
464
463
|
onClick: () => {
|
|
465
|
-
onDownload(documents[index].name,
|
|
464
|
+
onDownload(documents[index].name, "".concat(documentDownloadUrl + '/' + doc.repositoryId + '?' + tokensQueryString));
|
|
466
465
|
}
|
|
467
466
|
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
468
467
|
id: 'DOWNLOAD'
|
|
@@ -655,6 +654,7 @@ const ChatRoom = props => {
|
|
|
655
654
|
}
|
|
656
655
|
};
|
|
657
656
|
if (selectedChat && messages) {
|
|
657
|
+
var _messages$sort;
|
|
658
658
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
659
659
|
className: "chatroom"
|
|
660
660
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -687,7 +687,7 @@ const ChatRoom = props => {
|
|
|
687
687
|
id: "messages",
|
|
688
688
|
ref: messagesEndRef,
|
|
689
689
|
className: "chatroom__body"
|
|
690
|
-
}, messages.sort((a, b) => new Date(a.createdDate) - new Date(b.createdDate))
|
|
690
|
+
}, (_messages$sort = messages.sort((a, b) => new Date(a.createdDate) - new Date(b.createdDate))) === null || _messages$sort === void 0 ? void 0 : _messages$sort.map(renderMessage)) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), mode === 'CHAT' && !props.readOnly && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("form", {
|
|
691
691
|
className: "chatroom__sendMessage"
|
|
692
692
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
693
693
|
className: "message__imageSelector"
|