@agilemotion/oui-react-js 1.5.2 → 1.5.4

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/BasicApp.js CHANGED
@@ -89,7 +89,12 @@ const BasicApp = props => {
89
89
  element: /*#__PURE__*/_react.default.createElement(_ForgotPasswordBasic.default, {
90
90
  url: location + props.contextRoot + props.authUrl + "/password/forgot",
91
91
  background: 'rgba(0, 0, 0, 0.65)',
92
- title: 'Business Agility',
92
+ textColor: props.loginTextColor,
93
+ footerLogo: props.footerLogo,
94
+ footerText: props.footerText,
95
+ footerWidth: props.footerWidth,
96
+ footerSplitterColor: props.footerSplitterColor,
97
+ title: props.loginTitle,
93
98
  logo: props.logo
94
99
  })
95
100
  }), /*#__PURE__*/_react.default.createElement(_reactRouterDom.Route, {
@@ -98,7 +103,11 @@ const BasicApp = props => {
98
103
  url: location + props.contextRoot + props.authUrl + "/password/confirmForgot",
99
104
  background: 'rgba(0, 0, 0, 0.65)',
100
105
  textColor: props.loginTextColor,
101
- title: 'Business Agility',
106
+ footerLogo: props.footerLogo,
107
+ footerText: props.footerText,
108
+ footerWidth: props.footerWidth,
109
+ footerSplitterColor: props.footerSplitterColor,
110
+ title: props.loginTitle,
102
111
  logo: props.logo
103
112
  })
104
113
  }), /*#__PURE__*/_react.default.createElement(_reactRouterDom.Route, {
@@ -107,7 +116,11 @@ const BasicApp = props => {
107
116
  url: location + props.contextRoot + props.authUrl + "/password/challenge",
108
117
  background: 'rgba(0, 0, 0, 0.65)',
109
118
  textColor: props.loginTextColor,
110
- title: 'Business Agility',
119
+ footerLogo: props.footerLogo,
120
+ footerText: props.footerText,
121
+ footerWidth: props.footerWidth,
122
+ footerSplitterColor: props.footerSplitterColor,
123
+ title: props.loginTitle,
111
124
  logo: props.logo
112
125
  })
113
126
  }))));
@@ -18,7 +18,7 @@ const styles = {
18
18
  loginContainer: {
19
19
  minWidth: 320,
20
20
  maxWidth: 400,
21
- padding: '16px',
21
+ padding: '16px 0',
22
22
  height: 'auto'
23
23
  },
24
24
  paper: {
@@ -48,10 +48,12 @@ const styles = {
48
48
  }
49
49
  },
50
50
  loginBtn: {
51
- float: 'right'
51
+ float: 'right',
52
+ background: '#FCB614',
53
+ color: '#000000'
52
54
  },
53
55
  btn: {
54
- background: '#4f81e9',
56
+ background: '#FCB614',
55
57
  color: _colors.white,
56
58
  padding: 7,
57
59
  borderRadius: 2,
@@ -59,7 +61,7 @@ const styles = {
59
61
  fontSize: 13
60
62
  },
61
63
  btnFacebook: {
62
- background: '#4f81e9'
64
+ background: '#FCB614'
63
65
  },
64
66
  btnGoogle: {
65
67
  background: '#e14441'
@@ -70,9 +70,10 @@ const Footer = props => {
70
70
  className: classes.inlineBlock
71
71
  }))), /*#__PURE__*/_react.default.createElement("div", {
72
72
  className: classes.right + " row"
73
- }, "\xA9 ", 1900 + new Date().getYear(), " ", " ", /*#__PURE__*/_react.default.createElement("div", {
73
+ }, /*#__PURE__*/_react.default.createElement("div", {
74
74
  style: {
75
- paddingLeft: 10
75
+ paddingLeft: "8px",
76
+ marginRight: '20px'
76
77
  }
77
78
  }, /*#__PURE__*/_react.default.createElement(_CardAvatar.default, {
78
79
  plain: true
@@ -85,7 +86,7 @@ const Footer = props => {
85
86
  alt: "..."
86
87
  }) : null), /*#__PURE__*/_react.default.createElement("div", {
87
88
  className: "col-*-*"
88
- }, props.text ? /*#__PURE__*/_react.default.createElement("div", null, "\xA0\xA0", props.text) : null))))))));
89
+ }, props.text ? /*#__PURE__*/_react.default.createElement("div", null, "\xA0\xA0", props.text) : null)))), "\xA9 ", 1900 + new Date().getYear(), " ", " "))));
89
90
  };
90
91
 
91
92
  Footer.propTypes = {
@@ -506,7 +506,6 @@ const Toolbar = props => {
506
506
  }, !buttonVisibility.record && isHost && roomStatus === 'SESSION' && /*#__PURE__*/_react.default.createElement("div", {
507
507
  className: 'button-wrapper no-margin no-padding'
508
508
  }, /*#__PURE__*/_react.default.createElement(_core.MenuItem, {
509
- disabled: !isHost,
510
509
  onClick: () => {
511
510
  toggleRecorder();
512
511
  }
@@ -515,7 +514,6 @@ const Toolbar = props => {
515
514
  })), "Record")), !buttonVisibility.video && (roomStatus === 'SESSION' || roomStatus === 'LOBBY') && !videoDisabled && /*#__PURE__*/_react.default.createElement("div", {
516
515
  className: 'button-wrapper no-margin no-padding'
517
516
  }, /*#__PURE__*/_react.default.createElement(_core.MenuItem, {
518
- disabled: !isHost,
519
517
  onClick: () => {
520
518
  muteVideo();
521
519
  }
@@ -526,7 +524,6 @@ const Toolbar = props => {
526
524
  })), "Camera")), !buttonVisibility.audio && (roomStatus === 'SESSION' || roomStatus === 'LOBBY') && !videoDisabled && /*#__PURE__*/_react.default.createElement("div", {
527
525
  className: 'button-wrapper no-margin no-padding'
528
526
  }, /*#__PURE__*/_react.default.createElement(_core.MenuItem, {
529
- disabled: !isHost,
530
527
  onClick: () => {
531
528
  muteAudio();
532
529
  }
@@ -537,7 +534,6 @@ const Toolbar = props => {
537
534
  })), "Mic")), !buttonVisibility.shareScreen && roomStatus === 'SESSION' && !whiteBoardShown && /*#__PURE__*/_react.default.createElement("div", {
538
535
  className: 'button-wrapper no-margin no-padding'
539
536
  }, /*#__PURE__*/_react.default.createElement(_core.MenuItem, {
540
- disabled: !isHost,
541
537
  onClick: () => {
542
538
  if (screenShared) {
543
539
  stopShareScreen();
@@ -560,7 +556,6 @@ const Toolbar = props => {
560
556
  }, "Share screen")))), !buttonVisibility.people && roomStatus === 'SESSION' && /*#__PURE__*/_react.default.createElement("div", {
561
557
  className: 'button-wrapper no-margin no-padding'
562
558
  }, /*#__PURE__*/_react.default.createElement(_core.MenuItem, {
563
- disabled: !isHost,
564
559
  onClick: () => {
565
560
  showPeople();
566
561
  }
@@ -569,7 +564,6 @@ const Toolbar = props => {
569
564
  })), /*#__PURE__*/_react.default.createElement("div", null, participants.length, "\xA0People"))), !buttonVisibility.raiseHand && roomStatus === 'SESSION' && /*#__PURE__*/_react.default.createElement("div", {
570
565
  className: 'button-wrapper no-margin no-padding'
571
566
  }, /*#__PURE__*/_react.default.createElement(_core.MenuItem, {
572
- disabled: !isHost,
573
567
  onClick: () => {
574
568
  if (handRaised) {
575
569
  lowerHand();
@@ -231,16 +231,16 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
231
231
  });
232
232
  };
233
233
 
234
- const removeUser = user => {
235
- if (props.calendarEvent.id === user.meetingId) {
236
- const userId = user.userId;
234
+ const removeUser = payload => {
235
+ if (props.calendarEvent.id === payload.meetingId) {
236
+ const userId = payload.userId;
237
237
  const find = participants.find(p => p.userId === userId);
238
238
 
239
239
  if (find) {
240
240
  const newParticipants = participants.filter(p => p.userId !== userId);
241
+ setParticipants(newParticipants);
241
242
 
242
243
  if (newParticipants.length === 0) {
243
- setParticipants(newParticipants);
244
244
  setAllUserParticipantsLeft(true);
245
245
  setRoomStatus(Status.LOBBY);
246
246
  }
@@ -330,7 +330,6 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
330
330
  if (props.calendarEvent.host.username === sessionStorage.getItem('username')) {
331
331
  userFullName = props.calendarEvent.host.name;
332
332
  } else {
333
- console.log("\n\n\n\nATTENDEEES : ", sessionStorage.getItem('username'));
334
333
  userFullName = props.calendarEvent.attendees.find(a => a.username === sessionStorage.getItem('username')).name;
335
334
  }
336
335
 
@@ -242,21 +242,7 @@ const VCParticipantListItem = props => {
242
242
  }), videoMuted && /*#__PURE__*/_react.default.createElement(_Icon.default, {
243
243
  id: 'CAMERA_OFF',
244
244
  color: '#eb3f21'
245
- })), sessionStorage.getItem('username') !== participant.userId && /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
246
- title: "More Actions"
247
- }, /*#__PURE__*/_react.default.createElement(_core.IconButton, {
248
- onClick: handleClick,
249
- size: "small",
250
- sx: {
251
- ml: 2
252
- },
253
- "aria-controls": openMoreActions ? 'account-menu' : undefined,
254
- "aria-haspopup": "true",
255
- "aria-expanded": openMoreActions ? 'true' : undefined
256
- }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
257
- id: 'MORE',
258
- color: '#404239'
259
- })))), /*#__PURE__*/_react.default.createElement(_core.Menu, {
245
+ }))), /*#__PURE__*/_react.default.createElement(_core.Menu, {
260
246
  anchorEl: anchorEl,
261
247
  id: "account-menu",
262
248
  open: openMoreActions,
@@ -4,8 +4,8 @@
4
4
  text-align: center;
5
5
  width: 100%;
6
6
  height: 100%;
7
- min-width: 280px;
8
- min-height: 200px;
7
+ max-width: 320px;
8
+ min-width: 320px;
9
9
  color: rgb(40, 40, 43);
10
10
  background-color: #f9f9f9;
11
11
  }
@@ -651,8 +651,8 @@ const VCRoomParticipant = props => {
651
651
  className: props.sizing === 'sm' ? 'name-label-sm' : 'name-label',
652
652
  style: {
653
653
  position: 'absolute',
654
- bottom: '0',
655
- padding: props.isCurrentUser ? '4px 16px' : props.sizing !== 'sm' ? '16px' : '4px'
654
+ bottom: props.isCurrentUser ? '12px' : '0',
655
+ padding: props.isCurrentUser ? '4px 16px' : props.sizing !== 'sm' ? '4px' : '4px'
656
656
  }
657
657
  }, !props.isCurrentUser && getParticipantName(), !props.isCurrentUser && /*#__PURE__*/_react.default.createElement("span", {
658
658
  style: {
@@ -502,12 +502,10 @@ const VCRoomWorkspace = props => {
502
502
  }, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, row.map((participant, index) => {
503
503
  return /*#__PURE__*/_react.default.createElement(_Grid.default, {
504
504
  item: true,
505
- xs: 4,
506
505
  key: index + '-' + participant.userId,
507
506
  className: 'meetingParticipantContainer',
508
507
  style: {
509
508
  borderRadius: '4px',
510
- width: 100 / row.length + '%',
511
509
  height: '100%',
512
510
  flexBasis: null,
513
511
  maxWidth: null
@@ -576,8 +574,7 @@ const VCRoomWorkspace = props => {
576
574
  return /*#__PURE__*/_react.default.createElement("div", {
577
575
  style: {
578
576
  width: '100%',
579
- height: 100 / grid.length + '%',
580
- maxHeight: '50%'
577
+ height: '280px'
581
578
  }
582
579
  }, /*#__PURE__*/_react.default.createElement(_react.Fragment, {
583
580
  key: index
@@ -159,25 +159,24 @@ const ChangePassword = props => {
159
159
  margin: 'auto'
160
160
  }
161
161
  }, /*#__PURE__*/_react.default.createElement("div", {
162
- className: "row",
162
+ className: "row no-margin no-padding",
163
163
  style: _loginBasicStyle.default.title
164
164
  }, /*#__PURE__*/_react.default.createElement("div", {
165
165
  style: {
166
- width: '30%',
167
- textAlign: 'right'
168
- },
169
- className: 'col-*-*'
166
+ textAlign: 'right',
167
+ maxWidth: '60%'
168
+ }
170
169
  }, /*#__PURE__*/_react.default.createElement("img", {
171
170
  src: props.logo,
172
171
  alt: "..."
173
172
  })), /*#__PURE__*/_react.default.createElement("div", {
174
173
  style: {
175
- width: '70%',
174
+ width: props.title.length === 0 ? '0' : '70%',
176
175
  textAlign: 'left',
177
176
  margin: 'auto',
178
177
  paddingLeft: '16px'
179
178
  },
180
- className: 'col-*-*'
179
+ className: 'col'
181
180
  }, props.title)), !_Utils.default.isNull(message) ? /*#__PURE__*/_react.default.createElement(_Alert.default, {
182
181
  variant: alertVariant,
183
182
  show: !_Utils.default.isNull(message),
@@ -277,7 +276,11 @@ const ChangePassword = props => {
277
276
  marginRight: "8px"
278
277
  }
279
278
  }), isLoading && /*#__PURE__*/_react.default.createElement("span", null, "LOADING..."), !isLoading && /*#__PURE__*/_react.default.createElement("span", null, "CHANGE PASSWORD")))))))), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Footer.default, {
280
- white: true
279
+ white: true,
280
+ logo: props.footerLogo,
281
+ text: props.footerText,
282
+ width: props.footerWidth,
283
+ splitterColor: props.footerSplitterColor
281
284
  })));
282
285
  };
283
286
 
@@ -104,25 +104,24 @@ const ResetPassword = props => {
104
104
  margin: 'auto'
105
105
  }
106
106
  }, /*#__PURE__*/_react.default.createElement("div", {
107
- className: "row",
107
+ className: "row no-margin no-padding",
108
108
  style: _loginBasicStyle.default.title
109
109
  }, /*#__PURE__*/_react.default.createElement("div", {
110
110
  style: {
111
- width: '30%',
112
- textAlign: 'right'
113
- },
114
- className: 'col-*-*'
111
+ textAlign: 'right',
112
+ maxWidth: '60%'
113
+ }
115
114
  }, /*#__PURE__*/_react.default.createElement("img", {
116
115
  src: props.logo,
117
116
  alt: "..."
118
117
  })), /*#__PURE__*/_react.default.createElement("div", {
119
118
  style: {
120
- width: '70%',
119
+ width: props.title.length === 0 ? '0' : '70%',
121
120
  textAlign: 'left',
122
121
  margin: 'auto',
123
122
  paddingLeft: '16px'
124
123
  },
125
- className: 'col-*-*'
124
+ className: 'col'
126
125
  }, props.title)), !_Utils.default.isNull(message) ? /*#__PURE__*/_react.default.createElement(_Alert.default, {
127
126
  variant: alertVariant,
128
127
  show: !_Utils.default.isNull(message),
@@ -171,7 +170,11 @@ const ResetPassword = props => {
171
170
  style: _loginBasicStyle.default.flatButton,
172
171
  startIcon: /*#__PURE__*/_react.default.createElement(_Lock.default, null)
173
172
  }, "Back to Login"))))), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Footer.default, {
174
- white: true
173
+ white: true,
174
+ logo: props.footerLogo,
175
+ text: props.footerText,
176
+ width: props.footerWidth,
177
+ splitterColor: props.footerSplitterColor
175
178
  })));
176
179
  };
177
180
 
@@ -92,25 +92,24 @@ const Login = props => {
92
92
  margin: 'auto'
93
93
  }
94
94
  }, /*#__PURE__*/_react.default.createElement("div", {
95
- className: "row",
95
+ className: "row no-margin no-padding",
96
96
  style: _loginBasicStyle.default.title
97
97
  }, /*#__PURE__*/_react.default.createElement("div", {
98
98
  style: {
99
- width: '30%',
100
- textAlign: 'right'
101
- },
102
- className: 'col-*-*'
99
+ textAlign: 'right',
100
+ maxWidth: '60%'
101
+ }
103
102
  }, /*#__PURE__*/_react.default.createElement("img", {
104
103
  src: props.logo,
105
104
  alt: "..."
106
105
  })), /*#__PURE__*/_react.default.createElement("div", {
107
106
  style: {
108
- width: '70%',
107
+ width: props.title.length === 0 ? '0' : '70%',
109
108
  textAlign: 'left',
110
109
  margin: 'auto',
111
110
  paddingLeft: '16px'
112
111
  },
113
- className: 'col-*-*'
112
+ className: 'col'
114
113
  }, props.title)), !_Utils.default.isNull(errorMessage) ? /*#__PURE__*/_react.default.createElement(_Alert.default, {
115
114
  variant: "danger",
116
115
  show: !_Utils.default.isNull(errorMessage),
@@ -156,25 +156,24 @@ const ResetPassword = props => {
156
156
  margin: 'auto'
157
157
  }
158
158
  }, /*#__PURE__*/_react.default.createElement("div", {
159
- className: "row",
159
+ className: "row no-margin no-padding",
160
160
  style: _loginBasicStyle.default.title
161
161
  }, /*#__PURE__*/_react.default.createElement("div", {
162
162
  style: {
163
- width: '30%',
164
- textAlign: 'right'
165
- },
166
- className: 'col-*-*'
163
+ textAlign: 'right',
164
+ maxWidth: '60%'
165
+ }
167
166
  }, /*#__PURE__*/_react.default.createElement("img", {
168
167
  src: props.logo,
169
168
  alt: "..."
170
169
  })), /*#__PURE__*/_react.default.createElement("div", {
171
170
  style: {
172
- width: '70%',
171
+ width: props.title.length === 0 ? '0' : '70%',
173
172
  textAlign: 'left',
174
173
  margin: 'auto',
175
174
  paddingLeft: '16px'
176
175
  },
177
- className: 'col-*-*'
176
+ className: 'col'
178
177
  }, props.title)), !_Utils.default.isNull(message) ? /*#__PURE__*/_react.default.createElement(_Alert.default, {
179
178
  variant: alertVariant,
180
179
  show: !_Utils.default.isNull(message),
@@ -273,7 +272,11 @@ const ResetPassword = props => {
273
272
  marginRight: "8px"
274
273
  }
275
274
  }), isLoading && /*#__PURE__*/_react.default.createElement("span", null, "LOADING..."), !isLoading && /*#__PURE__*/_react.default.createElement("span", null, "RESET PASSWORD")))))))), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Footer.default, {
276
- white: true
275
+ white: true,
276
+ logo: props.footerLogo,
277
+ text: props.footerText,
278
+ width: props.footerWidth,
279
+ splitterColor: props.footerSplitterColor
277
280
  })));
278
281
  };
279
282
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilemotion/oui-react-js",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
4
4
  "babel": {
5
5
  "presets": [
6
6
  "@babel/preset-env",