@agilemotion/oui-react-js 1.8.30 → 1.8.31

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.
Files changed (44) hide show
  1. package/dist/ApplicationManager.js +111 -305
  2. package/dist/ViewContext.js +239 -0
  3. package/dist/components/Button.js +3 -2
  4. package/dist/components/DataGrid.css +4 -0
  5. package/dist/components/DataGrid.js +8 -4
  6. package/dist/components/DataGridFilter.js +2 -2
  7. package/dist/components/DataGridHeading.js +1 -1
  8. package/dist/components/DocumentViewer.js +22 -10
  9. package/dist/components/Graph.js +2 -0
  10. package/dist/components/HtmlPanel.js +0 -1
  11. package/dist/components/Icon.js +15 -0
  12. package/dist/components/LottieIcon.js +19 -19
  13. package/dist/components/SocketManager.js +3 -0
  14. package/dist/components/Spinner.js +56 -0
  15. package/dist/components/StepperTitleBar.js +11 -2
  16. package/dist/components/TabPage.js +1 -1
  17. package/dist/components/TabPanel.js +2 -1
  18. package/dist/components/TitleBar.js +1 -1
  19. package/dist/components/Toolbar.js +1 -0
  20. package/dist/components/WordDocumentViewer.js +27 -4
  21. package/dist/components/dashboard/SideMenuModuleDashboard.css +4 -0
  22. package/dist/components/dashboard/components/Header.js +1 -1
  23. package/dist/components/form/CurrencyField.js +1 -1
  24. package/dist/components/form/DatePicker.js +1 -1
  25. package/dist/components/form/FieldSet.js +1 -1
  26. package/dist/components/form/Form.css +8 -0
  27. package/dist/components/form/IconField.js +5 -3
  28. package/dist/components/form/LookupField.js +1 -1
  29. package/dist/components/form/Section.js +6 -1
  30. package/dist/components/form/SelectItem.js +1 -0
  31. package/dist/components/form/TextField.js +1 -0
  32. package/dist/components/form/TimePicker.js +1 -0
  33. package/dist/components/form/TransferList.js +6 -5
  34. package/dist/components/layout/Layout.js +11 -2
  35. package/dist/components/layout/View.css +57 -0
  36. package/dist/components/layout/ViewPort.js +1 -0
  37. package/dist/components/layout/Window.js +4 -1
  38. package/dist/components/layout/WindowViewPort.js +12 -3
  39. package/dist/components/media/TrainingRoom.js +1 -1
  40. package/dist/components/media/VCEventType.js +0 -3
  41. package/dist/event/Observable.js +11 -2
  42. package/dist/event/RouteActionHandler.js +50 -55
  43. package/dist/js/ProcurementMeetings.js +61 -0
  44. package/package.json +1 -1
@@ -12,12 +12,16 @@ require("./DocumentTemplateDesignerComponent.css");
12
12
  var _ApplicationManager = _interopRequireDefault(require("../ApplicationManager"));
13
13
  var _ej2Base = require("@syncfusion/ej2-base");
14
14
  var _Alert = _interopRequireDefault(require("react-bootstrap/Alert"));
15
+ var _LottieIcon = _interopRequireDefault(require("./LottieIcon"));
15
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
17
  (0, _ej2Base.registerLicense)('ORg4AjUWIQA/Gnt2U1hhQlJBfV5AQmBIYVp/TGpJfl96cVxMZVVBJAtUQF1hTX5adkJiWHtWdXBXT2Je');
17
18
  _ej2ReactDocumenteditor.DocumentEditorContainerComponent.Inject(_ej2ReactDocumenteditor.Toolbar);
18
19
  const WordDocumentViewer = props => {
19
20
  const [container, setContainer] = _react.default.useState(null);
20
21
  const [items, setItems] = _react.default.useState(null);
22
+ const [height, setHeight] = _react.default.useState(0);
23
+ const [width, setWidth] = _react.default.useState(0);
24
+ const [visible, setVisible] = _react.default.useState(false);
21
25
  const [json, setJson] = _react.default.useState(null);
22
26
  const [errorMessage, setErrorMessage] = _react.default.useState(null);
23
27
 
@@ -41,6 +45,12 @@ const WordDocumentViewer = props => {
41
45
  _react.default.useEffect(() => {
42
46
  props.valueHandler.api = api();
43
47
  });
48
+ _react.default.useLayoutEffect(() => {
49
+ const timer = window.setTimeout(() => {
50
+ setVisible(true);
51
+ }, 1_000);
52
+ return () => window.clearTimeout(timer);
53
+ }, []);
44
54
  _react.default.useEffect(() => {
45
55
  let toolbarItems = ["Undo", "Redo", "Separator", {
46
56
  tooltipText: 'Bold',
@@ -133,12 +143,23 @@ const WordDocumentViewer = props => {
133
143
  }
134
144
  }, [json, container]);
135
145
  return /*#__PURE__*/_react.default.createElement("div", {
136
- className: 'col no-margin no-padding',
146
+ className: 'no-margin no-padding',
137
147
  style: {
138
148
  height: '100%'
139
149
  },
140
150
  id: 'parent-container'
141
- }, errorMessage && /*#__PURE__*/_react.default.createElement("div", {
151
+ }, !visible && /*#__PURE__*/_react.default.createElement("div", {
152
+ style: {
153
+ height: '100%',
154
+ width: '100%',
155
+ flexWrap: 'wrap',
156
+ display: 'flex',
157
+ justifyContent: 'center',
158
+ alignContent: 'center'
159
+ }
160
+ }, /*#__PURE__*/_react.default.createElement(_LottieIcon.default, {
161
+ id: 'waiting-sm'
162
+ })), errorMessage && /*#__PURE__*/_react.default.createElement("div", {
142
163
  style: {
143
164
  padding: '0 32px 0 32px',
144
165
  maxHeight: '64px'
@@ -155,7 +176,7 @@ const WordDocumentViewer = props => {
155
176
  style: {
156
177
  color: 'rgba(255, 255, 255, 0.8)'
157
178
  }
158
- }, errorMessage))), items && (_Utils.default.isNull(props.trackChanges) || props.trackChanges === true) && /*#__PURE__*/_react.default.createElement(_ej2ReactDocumenteditor.DocumentEditorContainerComponent, {
179
+ }, errorMessage))), visible && items && (_Utils.default.isNull(props.trackChanges) || props.trackChanges === true) && /*#__PURE__*/_react.default.createElement(_ej2ReactDocumenteditor.DocumentEditorContainerComponent, {
159
180
  id: "container",
160
181
  height: '690px',
161
182
  ref: scope => {
@@ -168,11 +189,12 @@ const WordDocumentViewer = props => {
168
189
  }
169
190
  },
170
191
  toolbarItems: items,
192
+ restrictEditing: props.readOnly,
171
193
  showPropertiesPane: false,
172
194
  enableTrackChanges: true,
173
195
  serviceUrl: "https://services.syncfusion.com/react/production/api/documenteditor/",
174
196
  enableToolbar: !(props.readOnly || props.commentsOnly)
175
- }), items && props.trackChanges === false && /*#__PURE__*/_react.default.createElement(_ej2ReactDocumenteditor.DocumentEditorContainerComponent, {
197
+ }), visible && items && props.trackChanges === false && /*#__PURE__*/_react.default.createElement(_ej2ReactDocumenteditor.DocumentEditorContainerComponent, {
176
198
  id: "container",
177
199
  height: '690px',
178
200
  ref: scope => {
@@ -185,6 +207,7 @@ const WordDocumentViewer = props => {
185
207
  }
186
208
  },
187
209
  toolbarItems: items,
210
+ restrictEditing: props.readOnly,
188
211
  showPropertiesPane: false,
189
212
  serviceUrl: "https://services.syncfusion.com/react/production/api/documenteditor/",
190
213
  enableToolbar: !(props.readOnly || props.commentsOnly)
@@ -8,6 +8,10 @@
8
8
 
9
9
  }
10
10
 
11
+ .side-menu-module-dashboard .viewport {
12
+ width: calc(100% - 448px) !important;
13
+ }
14
+
11
15
  .side-menu-module-dashboard .sidebar {
12
16
  height: 100vh !important;
13
17
  z-index: 10000 !important;
@@ -60,7 +60,7 @@ const Header = props => {
60
60
  }
61
61
  };
62
62
  _react.default.useEffect(() => {
63
- let listener = new _EventListener.default(null, "dashboard", "applicationManager", _EventType.default.APPLICATION_CONTEXT_CHANGE, null, e => {
63
+ let listener = new _EventListener.default(null, "dashboard", "applicationManager", "dashboard", _EventType.default.APPLICATION_CONTEXT_CHANGE, null, e => {
64
64
  if (e.data.property.name === 'title') {
65
65
  setTitle(e.data.property.value);
66
66
  }
@@ -18,7 +18,7 @@ const CurrencyFieldWrapper = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_reac
18
18
  const base = props.base;
19
19
  const width = !_Utils.default.isNull(props.config.attributes?.style?.width) ? props.config.attributes.style.width : "100%";
20
20
  const maxWidth = !_Utils.default.isNull(props.config.attributes?.style?.maxWidth) ? props.config.attributes.style.maxWidth : null;
21
- const minWidth = !_Utils.default.isNull(props.config.attributes?.style?.minWidth) ? props.config.attributes.style.minWidth : "240px";
21
+ const minWidth = !_Utils.default.isNull(props.config.attributes?.style?.minWidth) ? props.config.attributes.style.minWidth : "232px";
22
22
  const height = !_Utils.default.isNull(props.config.attributes?.style?.height) ? props.config.attributes.style.height : null;
23
23
  const currency = !_Utils.default.isNull(props.config.attributes?.currency) ? props.config.attributes.currency : "ZAR";
24
24
  const currencySymbol = !_Utils.default.isNull(props.config.attributes?.currencySymbol) ? props.config.attributes.currencySymbol : "R";
@@ -88,7 +88,7 @@ const CustomDatePickerComponent = /*#__PURE__*/_react.default.memo(/*#__PURE__*/
88
88
  disabled: base.disabled,
89
89
  label: props.config.attributes['label'],
90
90
  value: base.value ? (0, _dayjs.default)(base.value) : null,
91
- className: props.className,
91
+ className: 'oui-form-item' + props.className ? ' ' + props.className : '',
92
92
  onChange: newValue => handleDateChange(newValue.toDate()),
93
93
  error: base.hasError,
94
94
  format: "DD/MM/YYYY",
@@ -504,7 +504,7 @@ const FieldSet = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.fo
504
504
  let style = field.attributes?.containerStyle ? _Utils.default.mergeObjects(field.attributes?.containerStyle, containerStyle) : containerStyle;
505
505
  return /*#__PURE__*/_react.default.createElement("div", {
506
506
  key: (i + 1) * index,
507
- className: "col-*-*",
507
+ className: "col-*-* oui-form-item-container",
508
508
  style: style
509
509
  }, renderComponent(field));
510
510
  }));
@@ -23,6 +23,14 @@
23
23
  width: 100%;
24
24
  }
25
25
 
26
+ .oui-form-item-container .ouiTable .oui-table-row {
27
+ border-bottom: 1px solid #ddd;
28
+ }
29
+
30
+ .oui-form-item-container .ouiTable tbody > tr.oui-table-row:last-of-type {
31
+ border-bottom: 0;
32
+ }
33
+
26
34
  .lookup-field-input input {
27
35
  width: calc(100% - 64px);
28
36
  overflow: hidden !important;
@@ -7,13 +7,15 @@ exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _BaseField = require("./BaseField");
9
9
  var _Icon = _interopRequireDefault(require("../Icon"));
10
+ var _Utils = _interopRequireDefault(require("../../Utils"));
10
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
12
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
12
13
  const IconWrapper = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwardRef((props, ref) => {
13
14
  const base = props.base;
14
- return /*#__PURE__*/_react.default.createElement(_Icon.default, {
15
- id: props.config.iconId
16
- });
15
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, props.config.attributes?.label && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("label", null, _Utils.default.getComponentAttribute(props.config, 'label', ''))), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Icon.default, {
16
+ id: props.config.iconId,
17
+ color: props.config.iconColor
18
+ })));
17
19
  }));
18
20
  const IconField = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwardRef((props, ref) => {
19
21
  return /*#__PURE__*/_react.default.createElement(_BaseField.BaseField, _extends({}, props, {
@@ -79,7 +79,7 @@ const LookupFieldComponent = exports.LookupFieldComponent = /*#__PURE__*/_react.
79
79
  base.handleValueChange(null);
80
80
  };
81
81
  return /*#__PURE__*/_react.default.createElement("div", {
82
- className: "w-100 lookup row no-margin no-padding",
82
+ className: "w-100 lookup row no-margin no-padding oui-form-item",
83
83
  style: _Utils.default.mergeStyles({
84
84
  width: width,
85
85
  minWidth: minWidth,
@@ -18,6 +18,7 @@ const Section = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.for
18
18
  const [fieldGrid, setFieldGrid] = _react.default.useState(null);
19
19
  const [width, setWidth] = _react.default.useState(null);
20
20
  const [componentHandles] = _react.default.useState({});
21
+ const [visible, setVisible] = _react.default.useState(true);
21
22
  let componentKey = 0;
22
23
  _react.default.useEffect(() => {
23
24
  props.handle.api = api();
@@ -107,6 +108,10 @@ const Section = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.for
107
108
  componentHandle.api.refresh();
108
109
  }
109
110
  }
111
+ let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
112
+ if (!_Utils.default.isNull(parsedConfig.visible)) {
113
+ setVisible(_Utils.default.evaluateBooleanExpression(parsedConfig.visible, parsedConfig.id));
114
+ }
110
115
  }
111
116
  };
112
117
  };
@@ -134,7 +139,7 @@ const Section = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.for
134
139
  }));
135
140
  }));
136
141
  }
137
- return /*#__PURE__*/_react.default.createElement("div", {
142
+ return visible && /*#__PURE__*/_react.default.createElement("div", {
138
143
  style: {
139
144
  width: width
140
145
  }
@@ -66,6 +66,7 @@ const SelectItemComponent = props => {
66
66
  }
67
67
  }, [loadFullOptionList, props.refreshData]);
68
68
  return /*#__PURE__*/_react.default.createElement(_material.FormControl, {
69
+ className: 'oui-form-item',
69
70
  fullWidth: true,
70
71
  margin: "dense",
71
72
  size: "small",
@@ -56,6 +56,7 @@ const TextFieldWrapper = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.de
56
56
  rows: rows,
57
57
  disabled: base.disabled,
58
58
  size: "small",
59
+ className: 'oui-form-item',
59
60
  style: {
60
61
  minWidth: minWidth,
61
62
  width: width,
@@ -47,6 +47,7 @@ const CustomTimePickerComponent = /*#__PURE__*/_react.default.memo(/*#__PURE__*/
47
47
  ampm: false,
48
48
  slotProps: {
49
49
  textField: {
50
+ className: 'oui-form-item',
50
51
  variant: "outlined",
51
52
  margin: "dense",
52
53
  size: "small",
@@ -102,9 +102,10 @@ const TransferListComponent = /*#__PURE__*/_react.default.memo((props, ref) => {
102
102
  style: {
103
103
  border: `1px solid ${base.hasError ? '#f44336' : '#e1e1e1'}`,
104
104
  width: '45%',
105
- minWidth: '320px',
105
+ minWidth: '240px',
106
106
  borderRadius: '4px'
107
- }
107
+ },
108
+ className: 'oui-form-item'
108
109
  }, /*#__PURE__*/_react.default.createElement(_DataGrid.DataGrid, {
109
110
  config: props.config.optionsGrid,
110
111
  handle: props.optionsListHandle,
@@ -144,9 +145,10 @@ const TransferListComponent = /*#__PURE__*/_react.default.memo((props, ref) => {
144
145
  style: {
145
146
  border: `1px solid ${base.hasError ? '#f44336' : '#e1e1e1'}`,
146
147
  width: '45%',
147
- minWidth: '320px',
148
+ minWidth: '240px',
148
149
  borderRadius: '4px'
149
- }
150
+ },
151
+ className: 'oui-form-item'
150
152
  }, /*#__PURE__*/_react.default.createElement(_DataGrid.DataGrid, {
151
153
  config: props.config.selectionGrid,
152
154
  handle: props.selectionListHandle,
@@ -171,7 +173,6 @@ const TransferList = /*#__PURE__*/_react.default.memo((props, ref) => {
171
173
  component: props.handle,
172
174
  viewId: props.viewId
173
175
  }).then(result => {
174
- console.log("\n\n\n\n\nRESULTS : ", result);
175
176
  setData(result);
176
177
  }).catch(e => {
177
178
  console.error(e);
@@ -32,6 +32,7 @@ var _ProgressTracker = _interopRequireDefault(require("../ProgressTracker"));
32
32
  var _Chart = _interopRequireDefault(require("../Chart"));
33
33
  var _FacialRegistration = _interopRequireDefault(require("../facialRecognition/FacialRegistration"));
34
34
  var _FacialVerification = _interopRequireDefault(require("../facialRecognition/FacialVerification"));
35
+ var _Spinner = _interopRequireDefault(require("../Spinner"));
35
36
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
36
37
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
37
38
  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; }
@@ -274,6 +275,13 @@ const Layout = props => {
274
275
  key: index,
275
276
  viewId: props.viewId
276
277
  });
278
+ case 'spinner':
279
+ return /*#__PURE__*/_react.default.createElement(_Spinner.default, {
280
+ config: component,
281
+ handle: createComponentHandle(component),
282
+ key: index,
283
+ viewId: props.viewId
284
+ });
277
285
  default:
278
286
  return /*#__PURE__*/_react.default.createElement("div", null, 'Unsupported component type ' + component.type);
279
287
  }
@@ -307,7 +315,8 @@ const Layout = props => {
307
315
  },
308
316
  refresh() {
309
317
  if (!_Utils.default.isNull(props.config.visible)) {
310
- setVisible(_Utils.default.evaluateBooleanExpression(props.config.visible, props.config.id));
318
+ let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
319
+ setVisible(_Utils.default.evaluateBooleanExpression(parsedConfig.visible, props.config.id));
311
320
  }
312
321
  }
313
322
  };
@@ -376,7 +385,7 @@ const Layout = props => {
376
385
  return /*#__PURE__*/_react.default.createElement("div", {
377
386
  id: props.config.id,
378
387
  style: getLayoutStyle(props.config, 'transparent'),
379
- className: `${_Utils.default.getComponentAttribute(props.config, 'className', '') + (props.config.orientation === 'HORIZONTAL' ? ' row' : '')}`
388
+ className: `${_Utils.default.getComponentAttribute(props.config, 'className', 'default-oui-layout') + (props.config.orientation === 'HORIZONTAL' ? ' row' : '')}`
380
389
  }, render(props.config));
381
390
  };
382
391
  exports.Layout = Layout;
@@ -28,6 +28,63 @@
28
28
  justify-content: center
29
29
  }
30
30
 
31
+ .max-h-40 {
32
+ }
33
+
34
+ /* 150% zoom res */
35
+ @media (max-width: 1512px) and (max-height: 982px) and (min-resolution: 2dppx) {
36
+ .max-h-40 {
37
+ max-height: 150px !important;
38
+ }
39
+
40
+ .flex-nowrap {
41
+ flex-wrap: wrap !important;
42
+ }
43
+
44
+ .flex-child-nowrap {
45
+ width: 100% !important;
46
+ }
47
+
48
+ .view {
49
+ padding: 0 8px !important;
50
+ }
51
+
52
+ .grid-table-pagination div {
53
+ font-size: 12px;
54
+ }
55
+
56
+ .grid-table-pagination p {
57
+ overflow: hidden;
58
+ text-overflow: ellipsis;
59
+ white-space: nowrap;
60
+ max-width: 12px;
61
+ font-size: 12px;
62
+ margin-top: 4px;
63
+ }
64
+
65
+ .tab-page-container {
66
+ margin: 0;
67
+ }
68
+
69
+ .default-oui-layout {
70
+ margin: 8px;
71
+ padding: 0 !important;
72
+ }
73
+
74
+ .defaultForm {
75
+ margin: 0;
76
+ }
77
+
78
+ .oui-form-item {
79
+ min-width: 232px !important;
80
+ }
81
+
82
+ .oui-form-item-container {
83
+ min-width: 240px !important;
84
+ margin: 0 4px;
85
+ }
86
+ }
87
+
31
88
  /* Smartphones (landscape); */
32
89
  @media only screen and (min-device-width : 361px) and (max-device-width : 480px) {
33
90
  .view {
@@ -41,6 +41,7 @@ const ViewPort = props => {
41
41
  console.log("LOADING VIEWPORT");
42
42
  }, []);
43
43
  return /*#__PURE__*/_react.default.createElement("div", {
44
+ className: "viewport",
44
45
  style: {
45
46
  height: 'calc(100vh - 96px)',
46
47
  maxHeight: 'calc(100vh - 96px)',
@@ -265,7 +265,10 @@ const Window = props => {
265
265
  right: 0
266
266
  }
267
267
  }, /*#__PURE__*/_react.default.createElement("div", {
268
- className: 'dialogHeader row'
268
+ className: 'dialogHeader row',
269
+ style: {
270
+ marginTop: '24px'
271
+ }
269
272
  }, minimizable && /*#__PURE__*/_react.default.createElement("div", null, displayState === 'MAXIMIZED' ? /*#__PURE__*/_react.default.createElement(_IconButton.default, {
270
273
  onClick: e => {
271
274
  minimizeView(e);
@@ -11,19 +11,28 @@ var _View = require("./View");
11
11
  var _ApplicationManager = _interopRequireDefault(require("../../ApplicationManager"));
12
12
  var _Icon = _interopRequireDefault(require("../Icon"));
13
13
  var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
14
+ var _Utils = _interopRequireDefault(require("../../Utils"));
14
15
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
16
17
  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; }
17
18
  const WindowViewContainer = props => {
18
19
  const [view, setView] = _react.default.useState(null);
19
20
  const [pinned, setPinned] = _react.default.useState(false);
21
+ const [defaultDisplayState, setDefaultDisplayState] = _react.default.useState('MAXIMIZED');
20
22
  const counter = (0, _react.useRef)(0);
21
23
  function loadView(context) {
22
24
  if (context) {
23
25
  if (Object.keys(context).find(key => key === 'windowView')) {
24
26
  setView(null);
25
27
  setView(context.windowView);
26
- setPinned(false);
28
+ if (!_Utils.default.isNull(context.pinned)) {
29
+ setPinned(context.pinned);
30
+ } else {
31
+ setPinned(false);
32
+ }
33
+ if (!_Utils.default.isNull(context.defaultDisplayState)) {
34
+ setDefaultDisplayState(context.defaultDisplayState);
35
+ }
27
36
  }
28
37
  }
29
38
  }
@@ -58,7 +67,7 @@ const WindowViewContainer = props => {
58
67
  pinnable: true,
59
68
  minimizable: false,
60
69
  open: true,
61
- displayState: 'MAXIMIZED',
70
+ displayState: defaultDisplayState,
62
71
  leftOffset: windowLeftOffset || '344px',
63
72
  onPinned: () => {
64
73
  if (!pinned) {
@@ -88,7 +97,7 @@ const WindowViewContainer = props => {
88
97
  marginRight: '8px',
89
98
  position: 'absolute',
90
99
  right: 0,
91
- top: 0
100
+ top: 16
92
101
  }
93
102
  }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
94
103
  id: 'DOCK'
@@ -360,7 +360,7 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.defaul
360
360
  const hangUp = () => {
361
361
  _SocketManager.default.leaveMeeting(props.calendarEvent.id);
362
362
  _ApplicationManager.default.setHasActiveMeeting(false);
363
- _ApplicationManager.default.removeLoadedGraph(false);
363
+ _ApplicationManager.default.removeLoadedGraph('window');
364
364
  setSideBarOpen(false);
365
365
  setSideBarTab('');
366
366
  };
@@ -46,7 +46,6 @@ class VCEventType {
46
46
  static DENIED = "DENIED";
47
47
  static JOIN_MEETING_PERMIT = "JOIN_MEETING_PERMIT";
48
48
  static RECEIVING_CALL = "RECEIVING_CALL";
49
- static CALL_REJECTED = "CALL_REJECTED";
50
49
  static USERS_ONLINE = "USERS_ONLINE";
51
50
  static USER_ONLINE = "USER_ONLINE";
52
51
  static USER_OFFLINE = "USER_OFFLINE";
@@ -64,7 +63,6 @@ class VCEventType {
64
63
  static POLL_RECORDING_STATUS = "POLL_RECORDING_STATUS";
65
64
  static REQUEST_TO_JOIN = "REQUEST_TO_JOIN";
66
65
  static REQUEST_TO_JOIN_MEETING = "REQUEST_TO_JOIN_MEETING";
67
- static AUDIO_VISUAL_SETTINGS_CHANGED = "AUDIO_VISUAL_SETTINGS_CHANGED";
68
66
  static CREATE_WEBRTC_TRANSPORT = "CREATE_WEBRTC_TRANSPORT";
69
67
  static CONNECT_TRANSPORT = "CONNECT_TRANSPORT";
70
68
  static CLOSE_ALL_USER_TRANSPORTS = "CLOSE_ALL_USER_TRANSPORTS";
@@ -80,7 +78,6 @@ class VCEventType {
80
78
  static STOP_RECORDING = "STOP_RECORDING";
81
79
  static UPDATE_CALENDAR = "UPDATE_CALENDAR";
82
80
  static REQUEST_TO_JOIN_MEETING_ANSWERED = "REQUEST_TO_JOIN_MEETING_ANSWERED";
83
- static PEER_DISCONNECT = "PEER_DISCONNECT";
84
81
  static CONSUMER_CLOSED = "CONSUMER_CLOSED";
85
82
  static CANCEL_SCREEN_SHARE = "CANCEL_SCREEN_SHARE";
86
83
  static SHARING_STOPPED = "SHARING_STOPPED";
@@ -52,7 +52,8 @@ class Observable {
52
52
  if (!_Utils.default.isNull(eventHandlingConfig)) {
53
53
  let subscriptions = eventHandlingConfig.subscriptions;
54
54
  for (const subscription of subscriptions) {
55
- this.addSubscription(new _EventListener.default(componentHandle, viewId, !_Utils.default.isNull(subscription.publisher) ? subscription.publisher : componentHandle.api.id, subscription.eventType, subscription.actions));
55
+ let domain = subscription.publisherDomain ? subscription.publisherDomain : viewId;
56
+ this.addSubscription(new _EventListener.default(componentHandle, domain, !_Utils.default.isNull(subscription.publisher) ? subscription.publisher : componentHandle.api.id, subscription.eventType, subscription.actions));
56
57
  }
57
58
  }
58
59
  };
@@ -114,9 +115,10 @@ class Observable {
114
115
  *
115
116
  * @param eventType eventType the event type
116
117
  * @param be the base event
118
+ * @param log determine whether to log checks
117
119
  * @return false if any subscriptions cancel the event.
118
120
  */
119
- async fireEvent(eventType, be) {
121
+ async fireEvent(eventType, be, log) {
120
122
  // Components could be unloading on the cases where screens are busy closing,
121
123
  // meaning the "current" object may be nullified, so we need the null check
122
124
  // This happens on async events such as RPC_CALL. If there is no view masking,
@@ -128,6 +130,13 @@ class Observable {
128
130
  let viewId = be.viewId;
129
131
  if (!_Utils.default.isNull(sourceId)) {
130
132
  for (const subscription of this.subscriptions) {
133
+ if (log === true) {
134
+ console.log("VIEW CHECK: " + (subscription.getViewId() === viewId || _ApplicationManager.SYSTEM_EVENT === viewId));
135
+ console.log("PUBLISHER CHECK: " + subscription.getPublisher() + " : " + sourceId);
136
+ console.log("EVENT TYPE CHECK: " + subscription.getEventType() + " : " + eventType);
137
+ console.log("FULL CHECK: " + ((subscription.getViewId() === viewId || _ApplicationManager.SYSTEM_EVENT === viewId) && subscription.getPublisher() === sourceId && subscription.getEventType() === eventType));
138
+ console.log("\n");
139
+ }
131
140
  if ((subscription.getViewId() === viewId || _ApplicationManager.SYSTEM_EVENT === viewId) && subscription.getPublisher() === sourceId && subscription.getEventType() === eventType) {
132
141
  if (!_Utils.default.isNull(subscription.getActions())) {
133
142
  for (let j = 0; j < subscription.getActions().length; j++) {