@agilemotion/oui-react-js 1.8.44 → 1.8.45

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.css CHANGED
@@ -1,37 +1,42 @@
1
1
  .App {
2
- text-align: center;
2
+ text-align: center;
3
3
  }
4
4
 
5
5
  .App-logo {
6
- animation: App-logo-spin infinite 20s linear;
7
- height: 80px;
6
+ animation: App-logo-spin infinite 20s linear;
7
+ height: 80px;
8
8
  }
9
9
 
10
10
  .App-header {
11
- background-color: #222;
12
- height: 150px;
13
- padding: 20px;
14
- color: white;
11
+ background-color: #222;
12
+ height: 150px;
13
+ padding: 20px;
14
+ color: white;
15
15
  }
16
16
 
17
17
  .App-intro {
18
- font-size: large;
18
+ font-size: large;
19
19
  }
20
20
 
21
21
  @keyframes App-logo-spin {
22
- from { transform: rotate(0deg); }
23
- to { transform: rotate(360deg); }
22
+ from {
23
+ transform: rotate(0deg);
24
+ }
25
+ to {
26
+ transform: rotate(360deg);
27
+ }
24
28
  }
25
29
 
26
30
  #pdf-frame {
27
- display: none;
28
- align-items: stretch;
29
- position: absolute;
30
- width: 100%;
31
- height: 100%
31
+ display: none;
32
+ align-items: stretch;
33
+ position: absolute;
34
+ width: 100%;
35
+ height: 100%
32
36
  }
33
37
 
34
38
  #root {
35
- height: 100%;
36
- background-color: #ffffff;
39
+ height: 100%;
40
+ background-color: #ffffff;
41
+ overflow: hidden;
37
42
  }
@@ -1,37 +1,42 @@
1
1
  .App {
2
- text-align: center;
2
+ text-align: center;
3
3
  }
4
4
 
5
5
  .App-logo {
6
- animation: App-logo-spin infinite 20s linear;
7
- height: 80px;
6
+ animation: App-logo-spin infinite 20s linear;
7
+ height: 80px;
8
8
  }
9
9
 
10
10
  .App-header {
11
- background-color: #f1f1f1;
12
- height: 150px;
13
- padding: 20px;
14
- color: white;
11
+ background-color: #f1f1f1;
12
+ height: 150px;
13
+ padding: 20px;
14
+ color: white;
15
15
  }
16
16
 
17
17
  .App-intro {
18
- font-size: large;
18
+ font-size: large;
19
19
  }
20
20
 
21
21
  @keyframes App-logo-spin {
22
- from { transform: rotate(0deg); }
23
- to { transform: rotate(360deg); }
22
+ from {
23
+ transform: rotate(0deg);
24
+ }
25
+ to {
26
+ transform: rotate(360deg);
27
+ }
24
28
  }
25
29
 
26
30
  #pdf-frame {
27
- display: none;
28
- align-items: stretch;
29
- position: absolute;
30
- width: 100%;
31
- height: 100%
31
+ display: none;
32
+ align-items: stretch;
33
+ position: absolute;
34
+ width: 100%;
35
+ height: 100%
32
36
  }
33
37
 
34
38
  #root {
35
- height: 100%;
36
- background-color: #ffffff;
39
+ height: 100%;
40
+ background-color: #ffffff;
41
+ overflow: hidden;
37
42
  }
@@ -16,7 +16,7 @@ var _ApplicationManager = _interopRequireDefault(require("../ApplicationManager"
16
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
17
  function PopupViewDialog(props) {
18
18
  const [title, setTitle] = _react.default.useState(null);
19
- const height = _Utils.default.getComponentStyleAttribute(props.view.config, 'height', '38vh');
19
+ const height = _Utils.default.getComponentStyleAttribute(props.view.config, 'height', '80vh');
20
20
  const width = _Utils.default.getComponentStyleAttribute(props.view.config, 'width', '60vw');
21
21
  const useStyles = (0, _styles.makeStyles)(theme => ({
22
22
  dialogPaper: {
@@ -101,7 +101,7 @@ class SocketManager {
101
101
  registerOnline() {
102
102
  let userDetails = _ApplicationManager.default.getUserDetails();
103
103
  // TODO : Resolve the hardcoding
104
- let profile = typeof JSON.parse(userDetails.profile) === 'string' ? userDetails.profile : 'COJ';
104
+ let profile = typeof (typeof userDetails.profile === 'string' || JSON.parse(userDetails.profile) === 'string') ? userDetails.profile : 'COJ';
105
105
  console.log('***** REGISTERING ONLINE ***** [' + profile + ']');
106
106
  this.emitEvent(_SocketRequest.default.REGISTER_ONLINE, {
107
107
  user: {
@@ -60,6 +60,5 @@
60
60
 
61
61
  .side-menu-module-dashboard .sidebar {
62
62
  width: 260px !important;
63
- border: 20px solid red;
64
63
  }
65
64
  }
@@ -46,7 +46,8 @@ const GridFieldWrapper = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.de
46
46
  const [rows, setRows] = _react.default.useState([]);
47
47
  const [crudToolstripWidth, setCrudToolstripWidth] = _react.default.useState(null);
48
48
  const [hasButtons] = _react.default.useState(_Utils.default.isNull(props.config.attributes) || _Utils.default.isNull(props.config.attributes.addDisabled) || _Utils.default.evaluateBooleanExpression(props.config.attributes.addDisabled, props.config.id) === false || _Utils.default.isNull(props.config.attributes.removeDisabled) || _Utils.default.evaluateBooleanExpression(props.config.attributes.removeDisabled, props.config.id) === false);
49
- const initialValueSet = _react.default.useRef(false);
49
+ //const initialValueSet = React.useRef(false);
50
+
50
51
  _react.default.useEffect(() => {
51
52
  let numCrudButtons = 0;
52
53
  let addDisabled = _Utils.default.evaluateBooleanExpression(props.config.attributes?.addDisabled, props.config.id);
@@ -67,7 +68,7 @@ const GridFieldWrapper = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.de
67
68
  }
68
69
  }, []);
69
70
  _react.default.useEffect(() => {
70
- if (!_Utils.default.isNull(base.value) && !initialValueSet.current) {
71
+ if (!_Utils.default.isNull(base.value) /* && !initialValueSet.current*/) {
71
72
  setRows([].concat(base.value));
72
73
  }
73
74
  }, [base.value]);
@@ -154,7 +155,7 @@ const GridFieldWrapper = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.de
154
155
  pagination: false,
155
156
  onSelectionChange: selection => {
156
157
  setSelection(selection);
157
- initialValueSet.current = true;
158
+ //base.initialValueSet.current = true;
158
159
  },
159
160
  filterWrapperClass: 'transferListFilterWrapper',
160
161
  hasBorder: false
@@ -60,7 +60,9 @@ const SelectItemComponent = props => {
60
60
  base.setSelectOptions(options);
61
61
  }).catch(e => {
62
62
  console.error(e);
63
- _Utils.default.publishErrorMessage(e, props.viewId);
63
+ if (e.errorType !== 'INVALID_PARAMETER') {
64
+ _Utils.default.publishErrorMessage(e, props.viewId);
65
+ }
64
66
  });
65
67
  setOptionsLoaded(true);
66
68
  }
@@ -216,7 +216,6 @@ const Window = props => {
216
216
  paper.style.right = '0';
217
217
  paper.style.position = 'absolute';
218
218
  paper.style.top = '72px';
219
- paper.style.border = '20px solid red';
220
219
  paper.style.left = (isNaN(getLeftOffset()) ? '328' : getLeftOffset()) + 'px';
221
220
  let header = document.getElementsByClassName('dialogHeader')[0];
222
221
  header.getElementsByTagName('button')[0].style.color = 'rgba(0, 0, 0, 0.54)';
@@ -16,7 +16,8 @@ const withStyledDialog = Component => (0, _withStyles.default)(theme => ({
16
16
  pointerEvents: "none",
17
17
  zIndex: 0,
18
18
  left: 'unset',
19
- borderRadius: '4px'
19
+ borderRadius: '4px',
20
+ position: 'unset'
20
21
  },
21
22
  paper: props => ({
22
23
  pointerEvents: "auto",
@@ -730,7 +730,7 @@ const Toolbar = props => {
730
730
  }
731
731
  }, /*#__PURE__*/_react.default.createElement(_material.ListItemIcon, null, /*#__PURE__*/_react.default.createElement(_Icon.default, {
732
732
  id: 'CHAT_BUBBLE'
733
- })), /*#__PURE__*/_react.default.createElement("div", null, hasUnreadChats ? '1' : '', "\xA0Chat"))), !buttonVisibility.minutes && roomStatus === 'SESSION' && /*#__PURE__*/_react.default.createElement("div", {
733
+ })), /*#__PURE__*/_react.default.createElement("div", null, hasUnreadChats ? '1' : '', "\xA0Chat"))), isHost && !buttonVisibility.minutes && roomStatus === 'SESSION' && /*#__PURE__*/_react.default.createElement("div", {
734
734
  className: 'button-wrapper no-margin no-padding'
735
735
  }, /*#__PURE__*/_react.default.createElement(_material.MenuItem, {
736
736
  onClick: () => {
@@ -16,21 +16,23 @@ class ProcurementMeetings {
16
16
  emitSocketEvent = (viewId, systemEventType, data, meeting) => {
17
17
  return new Promise((resolve, reject) => {
18
18
  let recipientIds = [];
19
- for (const attendee of meeting.attendees) {
20
- let username = attendee.username;
21
- if (username !== _ApplicationManager.default.getUserDetails().username) {
22
- recipientIds.push(username);
19
+ if (meeting) {
20
+ for (const attendee of meeting.attendees) {
21
+ let username = attendee.username;
22
+ if (username !== _ApplicationManager.default.getUserDetails().username) {
23
+ recipientIds.push(username);
24
+ }
23
25
  }
26
+ let eventData = {
27
+ systemEventType: systemEventType,
28
+ recipients: recipientIds,
29
+ data: data
30
+ };
31
+ _SocketManager.default.emitEvent(_VCEventType.VCEventType.SYSTEM_EVENT, eventData).then(result => resolve(result)).catch(e => {
32
+ _ApplicationManager.default.alert(viewId, "You are currently offline. Please check your network connectivity", "ERROR");
33
+ reject(e);
34
+ });
24
35
  }
25
- let eventData = {
26
- systemEventType: systemEventType,
27
- recipients: recipientIds,
28
- data: data
29
- };
30
- _SocketManager.default.emitEvent(_VCEventType.VCEventType.SYSTEM_EVENT, eventData).then(result => resolve(result)).catch(e => {
31
- _ApplicationManager.default.alert(viewId, "You are currently offline. Please check your network connectivity", "ERROR");
32
- reject(e);
33
- });
34
36
  });
35
37
  };
36
38
  startMeeting = meeting => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilemotion/oui-react-js",
3
- "version": "1.8.44",
3
+ "version": "1.8.45",
4
4
  "description": "AgileMotion React UI Component Library - A comprehensive collection of dashboard components, forms, media controls, and more",
5
5
  "license": "ISC",
6
6
  "author": "",