@agilemotion/oui-react-js 1.3.8 → 1.3.9

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 (213) hide show
  1. package/README.TXT +1 -0
  2. package/dist/ApplicationContext.js +161 -284
  3. package/dist/BasicApp.js +1 -1
  4. package/dist/BasicAppHome.js +17 -4
  5. package/dist/BusinessPortalApp.js +1 -1
  6. package/dist/BusinessPortalAppHome.js +10 -39
  7. package/dist/DynamicJS.js +20 -52
  8. package/dist/RestUtils.js +83 -108
  9. package/dist/Utils.js +36 -30
  10. package/dist/assets/jss/components/authNavbarStyle.js +34 -35
  11. package/dist/assets/jss/components/cardHeaderStyle.js +12 -12
  12. package/dist/assets/jss/components/customDropdownStyle.js +26 -26
  13. package/dist/assets/jss/components/customInputStyle.js +2 -8
  14. package/dist/assets/jss/components/dropdownStyle.js +10 -15
  15. package/dist/assets/jss/components/footerStyle.js +12 -18
  16. package/dist/assets/jss/components/headerLinksStyle.js +7 -13
  17. package/dist/assets/jss/components/headerStyle.js +24 -25
  18. package/dist/assets/jss/components/navbarLinksStyle.js +7 -13
  19. package/dist/assets/jss/components/navbarStyle.js +24 -25
  20. package/dist/assets/jss/components/sidebarStyle.js +41 -43
  21. package/dist/assets/jss/components/typographyStyle.js +2 -8
  22. package/dist/assets/jss/rootStyle.js +32 -47
  23. package/dist/assets/jss/views/layoutStyle.js +6 -11
  24. package/dist/assets/jss/views/loginStyle.js +4 -10
  25. package/dist/assets/lotties/call-loading.json +1 -0
  26. package/dist/assets/lotties/calling-2.json +1 -0
  27. package/dist/assets/lotties/calling.json +1 -0
  28. package/dist/assets/lotties/calling2.json +1 -0
  29. package/dist/assets/lotties/chat.json +1 -0
  30. package/dist/assets/lotties/join.json +1 -0
  31. package/dist/assets/lotties/loading.json +1 -0
  32. package/dist/assets/lotties/msg2.json +1 -0
  33. package/dist/assets/lotties/recording.json +1 -0
  34. package/dist/assets/lotties/waiting.json +1 -0
  35. package/dist/assets/scss/black-dashboard-react/bootstrap/_card.scss +5 -5
  36. package/dist/assets/scss/black-dashboard-react/bootstrap/_carousel.scss +2 -2
  37. package/dist/assets/scss/black-dashboard-react/bootstrap/_custom-forms.scss +3 -3
  38. package/dist/assets/scss/black-dashboard-react/bootstrap/_functions.scss +1 -1
  39. package/dist/assets/scss/black-dashboard-react/bootstrap/_images.scss +1 -1
  40. package/dist/assets/scss/black-dashboard-react/bootstrap/_jumbotron.scss +1 -1
  41. package/dist/assets/scss/black-dashboard-react/bootstrap/_popover.scss +7 -5
  42. package/dist/assets/scss/black-dashboard-react/bootstrap/_tooltip.scss +4 -4
  43. package/dist/assets/scss/black-dashboard-react/bootstrap/_variables.scss +5 -5
  44. package/dist/assets/scss/black-dashboard-react/bootstrap/mixins/_grid-framework.scss +2 -2
  45. package/dist/assets/scss/black-dashboard-react/bootstrap/mixins/_grid.scss +11 -9
  46. package/dist/assets/scss/black-dashboard-react/bootstrap/utilities/_embed.scss +6 -4
  47. package/dist/assets/scss/black-dashboard-react/custom/_variables.scss +1 -1
  48. package/dist/components/AlertBar.js +39 -80
  49. package/dist/components/AlertItem.js +4 -26
  50. package/dist/components/Button.js +24 -36
  51. package/dist/components/Calendar.js +478 -0
  52. package/dist/components/Calender.css +244 -0
  53. package/dist/components/ConfirmationDialog.js +5 -29
  54. package/dist/components/DataGrid.js +169 -338
  55. package/dist/components/DataGridColumn.js +5 -28
  56. package/dist/components/DataGridFilter.js +46 -114
  57. package/dist/components/DataGridHeading.js +11 -19
  58. package/dist/components/Dialog.js +27 -121
  59. package/dist/components/DocumentViewer.js +8 -34
  60. package/dist/components/DocumentViewerComponent.js +2 -20
  61. package/dist/components/FileThumb.js +115 -0
  62. package/dist/components/Graph.js +25 -75
  63. package/dist/components/GraphNode.js +4 -21
  64. package/dist/components/HtmlPanel.js +59 -78
  65. package/dist/components/Icon.js +99 -1
  66. package/dist/components/LoadingIndicator.js +4 -4
  67. package/dist/components/LottieIcon.js +134 -0
  68. package/dist/components/PopupView.js +2 -20
  69. package/dist/components/RegularButton.js +15 -19
  70. package/dist/components/SignaturePanel.js +9 -40
  71. package/dist/components/SocketManager.js +170 -0
  72. package/dist/components/StepperTitleBar.js +30 -56
  73. package/dist/components/TabPage.js +6 -9
  74. package/dist/components/TabPanel.js +41 -98
  75. package/dist/components/TableCellContent.js +30 -38
  76. package/dist/components/TemplateDesigner.js +107 -151
  77. package/dist/components/TemplateItemEventHandler.js +33 -100
  78. package/dist/components/TemplateTable.js +6 -42
  79. package/dist/components/TitleBar.js +35 -52
  80. package/dist/components/Toolbar.js +33 -179
  81. package/dist/components/Tree.js +27 -64
  82. package/dist/components/card/Card.js +16 -20
  83. package/dist/components/card/CardAvatar.js +9 -13
  84. package/dist/components/card/CardBody.js +13 -17
  85. package/dist/components/card/CardFooter.js +12 -16
  86. package/dist/components/card/CardHeader.js +13 -17
  87. package/dist/components/card/CardIcon.js +6 -10
  88. package/dist/components/card/CardText.js +6 -10
  89. package/dist/components/customInput/CustomInput.js +12 -10
  90. package/dist/components/dashboard/BasicBusinessAppDashboard.js +79 -155
  91. package/dist/components/dashboard/BusinessPortalAppDashboard.js +30 -75
  92. package/dist/components/dashboard/components/Header.js +8 -25
  93. package/dist/components/dashboard/components/LeftDrawer.js +3 -1
  94. package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +1 -1
  95. package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +138 -30
  96. package/dist/components/footer/Footer.js +6 -18
  97. package/dist/components/form/AddressSearch.js +32 -66
  98. package/dist/components/form/AutoComplete.js +160 -0
  99. package/dist/components/form/BaseField.js +66 -96
  100. package/dist/components/form/DatePicker.js +3 -21
  101. package/dist/components/form/FieldSet.js +158 -180
  102. package/dist/components/form/Form.css +1 -1
  103. package/dist/components/form/Form.js +137 -471
  104. package/dist/components/form/GridField.js +46 -146
  105. package/dist/components/form/IconField.js +35 -0
  106. package/dist/components/form/ImageEditor.js +19 -57
  107. package/dist/components/form/LookupField.js +8 -29
  108. package/dist/components/form/MultiFileUploadField.js +186 -0
  109. package/dist/components/form/RadioGroup.js +1 -16
  110. package/dist/components/form/Section.js +31 -92
  111. package/dist/components/form/SelectItem.js +14 -33
  112. package/dist/components/form/SignatureTemplateDesignerField.js +0 -1
  113. package/dist/components/form/Switch.js +53 -0
  114. package/dist/components/form/TextField.js +10 -17
  115. package/dist/components/form/TimePicker.js +7 -1
  116. package/dist/components/form/TransferList.css +2 -2
  117. package/dist/components/form/TransferList.js +67 -125
  118. package/dist/components/form/UploadField.js +27 -79
  119. package/dist/components/form/fieldset.css +8 -0
  120. package/dist/components/grid/GridContainer.js +5 -9
  121. package/dist/components/grid/GridItem.js +5 -9
  122. package/dist/components/layout/CollapsiblePanel.js +11 -33
  123. package/dist/components/layout/Layout.js +175 -290
  124. package/dist/components/layout/VC.css +17 -0
  125. package/dist/components/layout/View.css +17 -1
  126. package/dist/components/layout/View.js +77 -194
  127. package/dist/components/loader.css +1 -1
  128. package/dist/components/media/ClosablePanel.css +37 -0
  129. package/dist/components/media/ClosablePanel.js +53 -0
  130. package/dist/components/media/LobbyWaitingList.js +91 -0
  131. package/dist/components/media/MediaSoupHelper.js +223 -0
  132. package/dist/components/media/Recorder.js +235 -0
  133. package/dist/components/media/SideBarContent.css +54 -0
  134. package/dist/components/media/SideBarContent.js +46 -0
  135. package/dist/components/media/SocketRequest.js +20 -0
  136. package/dist/components/media/SocketResponse.js +16 -0
  137. package/dist/components/media/Timer.css +30 -0
  138. package/dist/components/media/Timer.js +88 -0
  139. package/dist/components/media/Toolbar.css +20 -0
  140. package/dist/components/media/Toolbar.js +470 -0
  141. package/dist/components/media/Tracks.js +39 -0
  142. package/dist/components/media/TrainingRoom.js +531 -0
  143. package/dist/components/media/Transports.js +35 -0
  144. package/dist/components/media/VCEventManager.js +74 -0
  145. package/dist/components/media/VCEventType.js +164 -0
  146. package/dist/components/media/VCParticipantList.css +72 -0
  147. package/dist/components/media/VCParticipantList.js +56 -0
  148. package/dist/components/media/VCParticipantListItem.css +73 -0
  149. package/dist/components/media/VCParticipantListItem.js +319 -0
  150. package/dist/components/media/VCRoom.css +42 -0
  151. package/dist/components/media/VCRoom.js +90 -0
  152. package/dist/components/media/VCRoomParticipant.css +25 -0
  153. package/dist/components/media/VCRoomParticipant.js +806 -0
  154. package/dist/components/media/VCRoomWorkspace.css +86 -0
  155. package/dist/components/media/VCRoomWorkspace.js +653 -0
  156. package/dist/components/media/Video.css +4 -0
  157. package/dist/components/media/Video.js +131 -0
  158. package/dist/components/media/chat/ChatRoom.js +926 -0
  159. package/dist/components/media/chat/ChatRoomItem.js +83 -0
  160. package/dist/components/media/chat/ChatRoomList.js +78 -0
  161. package/dist/components/media/chat/ChatRooms.scss +567 -0
  162. package/dist/components/menu/CollapsibleMenu.js +2 -19
  163. package/dist/components/menu/MenuBars.js +6 -33
  164. package/dist/components/menu/MenuButton.js +7 -35
  165. package/dist/components/menu/MenuItem.js +3 -20
  166. package/dist/components/menu/MenuLink.js +18 -12
  167. package/dist/components/navbars/AuthNavbar.js +5 -18
  168. package/dist/components/navbars/HomeNavbar.js +3 -5
  169. package/dist/components/navbars/PortalNavbar.js +4 -22
  170. package/dist/components/signatures/AgilitySignaturePanel.js +35 -101
  171. package/dist/components/signatures/AlertItem.js +3 -24
  172. package/dist/components/signatures/DocumentContainer.js +47 -134
  173. package/dist/components/signatures/ImageSignatureInput.js +8 -35
  174. package/dist/components/signatures/MenuButton.js +1 -16
  175. package/dist/components/signatures/Prompt.js +3 -24
  176. package/dist/components/signatures/ResponsiveTable.js +42 -83
  177. package/dist/components/signatures/SearchView.js +13 -50
  178. package/dist/components/signatures/SignatorySearch.js +83 -99
  179. package/dist/components/signatures/SignatorySearchForm.js +11 -17
  180. package/dist/components/signatures/SignatureInput.js +15 -44
  181. package/dist/components/signatures/SignatureInputProps.js +18 -60
  182. package/dist/components/signatures/SignatureTemplateDesigner.js +147 -235
  183. package/dist/components/signatures/Toolbar.js +7 -34
  184. package/dist/components/signatures/ViewUtils.js +2 -6
  185. package/dist/components/typography/Danger.js +3 -1
  186. package/dist/components/typography/Info.js +3 -1
  187. package/dist/components/typography/Link.js +6 -2
  188. package/dist/event/ActionHandlers.js +3 -3
  189. package/dist/event/EventType.js +7 -1
  190. package/dist/event/LoadDataActionHandler.js +1 -1
  191. package/dist/event/Observable.js +56 -168
  192. package/dist/event/RouteActionHandler.js +45 -11
  193. package/dist/event/ServiceCallActionHandler.js +34 -24
  194. package/dist/js/Addresses.js +10 -8
  195. package/dist/js/Media.js +157 -0
  196. package/dist/redux/store/ConfigureStore.js +3 -9
  197. package/dist/redux/store/DashboardStore.js +42 -94
  198. package/dist/redux/store/SecurityStore.js +15 -50
  199. package/dist/view/Dashboard.js +242 -163
  200. package/dist/view/security/ChangePasswordBasic.js +23 -76
  201. package/dist/view/security/ForgotPassword.js +9 -42
  202. package/dist/view/security/ForgotPasswordBasic.js +8 -41
  203. package/dist/view/security/Login.js +11 -47
  204. package/dist/view/security/LoginBasic.js +8 -41
  205. package/dist/view/security/LoginBusinessPortal.js +8 -41
  206. package/dist/view/security/ResetPassword.js +9 -47
  207. package/dist/view/security/ResetPasswordBasic.js +21 -71
  208. package/dist/view/security/Security.js +1 -0
  209. package/package.json +29 -13
  210. package/README.md +0 -1623
  211. package/dist/components/dashboard/BasicApp.js +0 -140
  212. package/dist/components/navbars/NavbarLinks.js +0 -212
  213. package/dist/components/signatures/OLD.js +0 -1138
package/README.TXT ADDED
@@ -0,0 +1 @@
1
+ export NODE_OPTIONS=--openssl-legacy-provider
@@ -19,18 +19,12 @@ var _DynamicJS = _interopRequireWildcard(require("./DynamicJS"));
19
19
 
20
20
  var _TypedValue = _interopRequireDefault(require("./TypedValue"));
21
21
 
22
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
22
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
23
23
 
24
24
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
25
 
26
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
27
 
28
- function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
29
-
30
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
31
-
32
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
33
-
34
28
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
35
29
 
36
30
  const APP_VARIABLE = '__DOLLAR_APPLICATION_OUI_SYS_VAR__';
@@ -82,42 +76,21 @@ class ApplicationContext {
82
76
  }
83
77
 
84
78
  if (!view.popUp && this.graphs.length === 0) {
85
- var _iterator = _createForOfIteratorHelper(this.navHistory),
86
- _step;
87
-
88
- try {
89
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
90
- const navHistoryElement = _step.value;
91
-
92
- if (navHistoryElement.viewId === viewId) {
93
- navHistoryElement.title = titleValue;
94
- }
79
+ for (const navHistoryElement of this.navHistory) {
80
+ if (navHistoryElement.viewId === viewId) {
81
+ navHistoryElement.title = titleValue;
95
82
  }
96
- } catch (err) {
97
- _iterator.e(err);
98
- } finally {
99
- _iterator.f();
100
83
  }
101
84
 
102
85
  let legendValue = "<span>";
103
86
  let counter = 0;
104
87
 
105
- var _iterator2 = _createForOfIteratorHelper(this.navHistory),
106
- _step2;
107
-
108
- try {
109
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
110
- const navHistoryElement = _step2.value;
111
- legendValue += "".concat(navHistoryElement.title);
88
+ for (const navHistoryElement of this.navHistory) {
89
+ legendValue += "".concat(navHistoryElement.title);
112
90
 
113
- if (counter++ < this.navHistory.length - 1) {
114
- legendValue += legendIconArrow;
115
- }
91
+ if (counter++ < this.navHistory.length - 1) {
92
+ legendValue += legendIconArrow;
116
93
  }
117
- } catch (err) {
118
- _iterator2.e(err);
119
- } finally {
120
- _iterator2.f();
121
94
  }
122
95
 
123
96
  legendValue += "</span>";
@@ -174,21 +147,10 @@ class ApplicationContext {
174
147
  });
175
148
 
176
149
  _defineProperty(this, "getFileDomainCache", domain => {
177
- var _iterator3 = _createForOfIteratorHelper(this.fileCache),
178
- _step3;
179
-
180
- try {
181
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
182
- const fileCacheElement = _step3.value;
183
-
184
- if (fileCacheElement.domain === domain) {
185
- return fileCacheElement;
186
- }
150
+ for (const fileCacheElement of this.fileCache) {
151
+ if (fileCacheElement.domain === domain) {
152
+ return fileCacheElement;
187
153
  }
188
- } catch (err) {
189
- _iterator3.e(err);
190
- } finally {
191
- _iterator3.f();
192
154
  }
193
155
 
194
156
  return null;
@@ -211,21 +173,10 @@ class ApplicationContext {
211
173
 
212
174
  let cachedFile = null;
213
175
 
214
- var _iterator4 = _createForOfIteratorHelper(fileDomainCache.files),
215
- _step4;
216
-
217
- try {
218
- for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
219
- const domainFile = _step4.value;
220
-
221
- if (domainFile.correlationId === file.correlationId) {
222
- cachedFile = domainFile;
223
- }
176
+ for (const domainFile of fileDomainCache.files) {
177
+ if (domainFile.correlationId === file.correlationId) {
178
+ cachedFile = domainFile;
224
179
  }
225
- } catch (err) {
226
- _iterator4.e(err);
227
- } finally {
228
- _iterator4.f();
229
180
  }
230
181
 
231
182
  if (cachedFile === null) {
@@ -236,34 +187,25 @@ class ApplicationContext {
236
187
  });
237
188
 
238
189
  _defineProperty(this, "addView", (view, path, forward) => {
239
- if (!view.popUp) {
190
+ if (!view.popUp && !view.window) {
240
191
  this.closeCurrentView(forward);
241
192
 
242
193
  if (!forward) {
243
194
  this.navHistory.pop();
244
195
  }
245
196
  } else {
246
- this.props.confirmationDialogController.openPopupView(view);
197
+ if (view.popUp) {
198
+ this.props.confirmationDialogController.openPopupView(view);
199
+ }
247
200
  }
248
201
 
249
202
  if (view.parent) {
250
203
  this.navHistory.splice(0, this.navHistory.length);
251
204
 
252
- var _iterator5 = _createForOfIteratorHelper(this.views),
253
- _step5;
254
-
255
- try {
256
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
257
- const contextView = _step5.value;
258
-
259
- if (!_Utils.default.isNull(contextView) && !_Utils.default.isNull(contextView.handle.api)) {
260
- this.closeView(contextView.handle.api.id, forward);
261
- }
205
+ for (const contextView of this.views) {
206
+ if (!_Utils.default.isNull(contextView) && !_Utils.default.isNull(contextView.handle.api)) {
207
+ this.closeView(contextView.handle.api.id, forward);
262
208
  }
263
- } catch (err) {
264
- _iterator5.e(err);
265
- } finally {
266
- _iterator5.f();
267
209
  }
268
210
  }
269
211
 
@@ -279,9 +221,11 @@ class ApplicationContext {
279
221
  });
280
222
 
281
223
  _defineProperty(this, "closeCurrentView", forward => {
224
+ var _this$graphs;
225
+
282
226
  let currentView = this.views[this.views.length - 1];
283
227
 
284
- if (!_Utils.default.isNull(currentView) && !_Utils.default.isNull(currentView.handle.api)) {
228
+ if (((_this$graphs = this.graphs[this.graphs.length - 1]) === null || _this$graphs === void 0 ? void 0 : _this$graphs.anchorView) !== currentView && !_Utils.default.isNull(currentView) && !_Utils.default.isNull(currentView.handle.api)) {
285
229
  this.closeView(currentView.handle.api.id, forward);
286
230
  }
287
231
  });
@@ -300,90 +244,71 @@ class ApplicationContext {
300
244
 
301
245
  let count = 0;
302
246
 
303
- var _iterator6 = _createForOfIteratorHelper(this.views),
304
- _step6;
247
+ for (const view of this.views) {
248
+ if (view.handle.api.id === viewId) {
249
+ this.views.splice(count, 1);
305
250
 
306
- try {
307
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
308
- const view = _step6.value;
309
-
310
- if (view.handle.api.id === viewId) {
311
- this.views.splice(count, 1);
312
-
313
- if (!view.popUp && !view.parent && (_Utils.default.isNull(forward) || forward === false)) {
314
- this.navHistory.pop();
315
- } else if (view.popUp) {
316
- this.props.confirmationDialogController.closePopupView();
317
- }
251
+ if (!view.popUp && !view.parent && (_Utils.default.isNull(forward) || forward === false)) {
252
+ this.navHistory.pop();
253
+ } else if (view.popUp) {
254
+ this.props.confirmationDialogController.closePopupView();
318
255
  }
319
-
320
- count++;
321
256
  }
322
- } catch (err) {
323
- _iterator6.e(err);
324
- } finally {
325
- _iterator6.f();
257
+
258
+ count++;
326
259
  }
327
260
  });
328
261
 
329
262
  _defineProperty(this, "getView", id => {
330
- var _iterator7 = _createForOfIteratorHelper(this.views),
331
- _step7;
332
-
333
- try {
334
- for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
335
- const view = _step7.value;
336
-
337
- if (id === view.config.id) {
338
- return view;
339
- }
263
+ for (const view of this.views) {
264
+ if (id === view.config.id) {
265
+ return view;
340
266
  }
341
- } catch (err) {
342
- _iterator7.e(err);
343
- } finally {
344
- _iterator7.f();
345
267
  }
346
268
 
347
269
  return null;
348
270
  });
349
271
 
350
- _defineProperty(this, "resolveComponentApi", id => {
351
- if (APP_VARIABLE === id) {
352
- return this.api;
353
- }
272
+ _defineProperty(this, "getViewComponent", (view, id) => {
273
+ if (!_Utils.default.isNull(view) && !_Utils.default.isNull(view.handle) && !_Utils.default.isNull(view.handle.api)) {
274
+ if (id === view.handle.api.id) {
275
+ return view.handle.api;
276
+ }
354
277
 
355
- var _iterator8 = _createForOfIteratorHelper(this.graphs),
356
- _step8;
278
+ let handle = view.handle.api.getChild(id);
357
279
 
358
- try {
359
- for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
360
- const graph = _step8.value;
280
+ if (handle) {
281
+ return handle.api;
282
+ }
361
283
 
362
- if (graph.id === id) {
363
- return graph;
364
- }
284
+ if (id === 'view') {
285
+ return view.handle.api;
365
286
  }
366
- } catch (err) {
367
- _iterator8.e(err);
368
- } finally {
369
- _iterator8.f();
370
287
  }
288
+ });
371
289
 
372
- let currentView = this.views[this.views.length - 1];
290
+ _defineProperty(this, "resolveComponentApi", id => {
291
+ if (APP_VARIABLE === id) {
292
+ return this.api;
293
+ }
373
294
 
374
- if (!_Utils.default.isNull(currentView) && !_Utils.default.isNull(currentView.handle) && !_Utils.default.isNull(currentView.handle.api)) {
375
- if (id === currentView.handle.api.id) {
376
- return currentView.handle.api;
295
+ for (const graph of this.graphs) {
296
+ if (graph.id === id) {
297
+ return graph;
377
298
  }
299
+ }
378
300
 
379
- let handle = currentView.handle.api.getChild(id);
301
+ let currentView;
380
302
 
381
- if (handle !== null) {
382
- return handle.api;
383
- }
303
+ if (this.views.length === 0) {
304
+ return this.getViewComponent(this.props.dashboardView, id);
305
+ }
384
306
 
385
- if (id === 'view') {
386
- return currentView.handle.api;
307
+ for (const view of this.views) {
308
+ let component = this.getViewComponent(view, id);
309
+
310
+ if (component) {
311
+ return component;
387
312
  }
388
313
  }
389
314
 
@@ -394,44 +319,24 @@ class ApplicationContext {
394
319
  let matches = template.match(TEMPLATE_TOKEN_REGEX);
395
320
 
396
321
  if (!_Utils.default.isNull(matches)) {
397
- var _iterator9 = _createForOfIteratorHelper(matches),
398
- _step9;
399
-
400
- try {
401
- for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
402
- const match = _step9.value;
403
- let expresionContent = match.substring(match.indexOf('{') + 1, match.lastIndexOf('}'));
404
- let expressionValue = "";
405
-
406
- if (expresionContent.startsWith("$event.data") && !_Utils.default.isNull(eventData)) {
407
- let props = expresionContent.replace("$event.data.", "").split(".");
408
- let vo = eventData;
409
-
410
- var _iterator10 = _createForOfIteratorHelper(props),
411
- _step10;
412
-
413
- try {
414
- for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
415
- const prop = _step10.value;
416
- vo = vo[prop];
417
- }
418
- } catch (err) {
419
- _iterator10.e(err);
420
- } finally {
421
- _iterator10.f();
422
- }
423
-
424
- expressionValue = vo;
425
- } else {
426
- expressionValue = this.resolveExpressionValue(expresionContent);
322
+ for (const match of matches) {
323
+ let expresionContent = match.substring(match.indexOf('{') + 1, match.lastIndexOf('}'));
324
+ let expressionValue = "";
325
+
326
+ if (expresionContent.startsWith("$event.data") && !_Utils.default.isNull(eventData)) {
327
+ let props = expresionContent.replace("$event.data.", "").split(".");
328
+ let vo = eventData;
329
+
330
+ for (const prop of props) {
331
+ vo = vo[prop];
427
332
  }
428
333
 
429
- template = template.replace(match, expressionValue);
334
+ expressionValue = vo;
335
+ } else {
336
+ expressionValue = this.resolveExpressionValue(expresionContent);
430
337
  }
431
- } catch (err) {
432
- _iterator9.e(err);
433
- } finally {
434
- _iterator9.f();
338
+
339
+ template = template.replace(match, expressionValue);
435
340
  }
436
341
  }
437
342
 
@@ -442,14 +347,14 @@ class ApplicationContext {
442
347
  let paramExpression = expression.match(/\(([^)]*)\)/);
443
348
  let isEvent = expression.startsWith('$event.data');
444
349
  let baseExpression = isEvent ? "$event.data" : !_Utils.default.isNull(paramExpression) && paramExpression.length > 0 ? expression.replace(paramExpression[0], '') : expression;
445
- let expresionContent = baseExpression.substring(baseExpression.indexOf('{') + 1, baseExpression.indexOf('}'));
350
+ let expressionContent = baseExpression.substring(baseExpression.indexOf('{') + 1, baseExpression.indexOf('}'));
446
351
  let isComponent = baseExpression.startsWith('@#{');
447
352
  let isLib = baseExpression.startsWith('@@{');
448
- let tokens = expresionContent.split('.');
353
+ let tokens = expressionContent.split('.');
449
354
  let idToken = tokens[0];
450
355
 
451
356
  if (isComponent || isEvent) {
452
- let value = isEvent ? eventData : this.resolveComponentApi(expresionContent);
357
+ let value = isEvent ? eventData : this.resolveComponentApi(expressionContent);
453
358
  let expressionClosure = isEvent ? 'data.' : '}.';
454
359
  let index = expression.indexOf(expressionClosure);
455
360
 
@@ -457,27 +362,16 @@ class ApplicationContext {
457
362
  let propertyChain = expression.substring(index + expressionClosure.length);
458
363
  let props = propertyChain.split(".");
459
364
 
460
- var _iterator11 = _createForOfIteratorHelper(props),
461
- _step11;
462
-
463
- try {
464
- for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
465
- const prop = _step11.value;
466
-
467
- if (_Utils.default.isNull(value)) {
468
- return null;
469
- }
365
+ for (const prop of props) {
366
+ if (_Utils.default.isNull(value)) {
367
+ return null;
368
+ }
470
369
 
471
- value = value[prop];
370
+ value = value[prop];
472
371
 
473
- if (typeof value === 'function') {
474
- value = value();
475
- }
372
+ if (typeof value === 'function') {
373
+ value = value();
476
374
  }
477
- } catch (err) {
478
- _iterator11.e(err);
479
- } finally {
480
- _iterator11.f();
481
375
  }
482
376
  }
483
377
 
@@ -493,16 +387,12 @@ class ApplicationContext {
493
387
  return expression;
494
388
  });
495
389
 
496
- _defineProperty(this, "setExpressionValues", obj => {
390
+ _defineProperty(this, "setExpressionValues", (obj, eventData = null) => {
497
391
  let isArray = Array.isArray(obj);
498
392
  const updated = isArray ? [] : {};
499
393
  Object.keys(obj).forEach(key => {
500
394
  if (typeof obj[key] === 'object' && obj[key] !== null) {
501
- updated[key] = this.setExpressionValues(obj[key]);
502
-
503
- if (_Utils.default.isNull(updated[key].type)) {
504
- updated[key].type = "String";
505
- }
395
+ updated[key] = this.setExpressionValues(obj[key], eventData);
506
396
  } else {
507
397
  let objValue = obj[key];
508
398
 
@@ -522,7 +412,7 @@ class ApplicationContext {
522
412
  }
523
413
 
524
414
  let objKey = key === "valueExpression" ? "value" : key;
525
- updated[objKey] = !_Utils.default.isNull(scriptValue) && scriptValue.instanceType === 'TypedValue' ? scriptValue.value : scriptValue;
415
+ updated[objKey] = scriptValue !== null && scriptValue.instanceType === 'TypedValue' ? scriptValue.value : scriptValue;
526
416
 
527
417
  if (typeof updated[objKey] === 'undefined') {
528
418
  delete updated.type;
@@ -535,14 +425,22 @@ class ApplicationContext {
535
425
  return updated;
536
426
  });
537
427
 
538
- _defineProperty(this, "resolveParameterConfigValue", configValue => {
539
- let json = JSON.stringify(configValue);
540
- let matches = json.match(_DynamicJS.TEMPLATE_REGEX);
428
+ _defineProperty(this, "resolveParameterConfigValue", (configValue, eventData) => {
429
+ if (!configValue) {
430
+ return configValue;
431
+ }
541
432
 
542
- if (!_Utils.default.isNull(matches)) {
543
- return this.setExpressionValues(configValue);
433
+ if (this.isExpression(configValue)) {
434
+ return this.resolveExpressionValue(configValue, eventData);
544
435
  } else {
545
- return configValue;
436
+ let json = JSON.stringify(configValue);
437
+ let matches = json.match(_DynamicJS.TEMPLATE_REGEX);
438
+
439
+ if (!_Utils.default.isNull(matches)) {
440
+ return this.setExpressionValues(configValue);
441
+ } else {
442
+ return configValue;
443
+ }
546
444
  }
547
445
  });
548
446
 
@@ -559,23 +457,12 @@ class ApplicationContext {
559
457
  let propertyChain = expression.substring(index + expressionClosure.length);
560
458
  let props = propertyChain.split(".");
561
459
 
562
- var _iterator12 = _createForOfIteratorHelper(props),
563
- _step12;
564
-
565
- try {
566
- for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
567
- const prop = _step12.value;
568
-
569
- if (_Utils.default.isNull(value)) {
570
- return null;
571
- }
572
-
573
- value = value[prop];
460
+ for (const prop of props) {
461
+ if (_Utils.default.isNull(value)) {
462
+ return null;
574
463
  }
575
- } catch (err) {
576
- _iterator12.e(err);
577
- } finally {
578
- _iterator12.f();
464
+
465
+ value = value[prop];
579
466
  }
580
467
  }
581
468
 
@@ -668,12 +555,12 @@ class ApplicationContext {
668
555
  return ApplicationContext.instance;
669
556
  }
670
557
 
671
- setBaseApiUrl(baseApiUrl) {
672
- this.props.baseApiUrl = baseApiUrl;
558
+ setHasActiveMeeting(hasActiveMeeting) {
559
+ this.props.hasActiveMeeting = hasActiveMeeting;
673
560
  }
674
561
 
675
- getBaseApiUrl() {
676
- return this.props.contextRoot + this.props.baseApiUrl;
562
+ hasActiveMeeting() {
563
+ return this.props.hasActiveMeeting;
677
564
  }
678
565
 
679
566
  setServiceApiPath(serviceApiPath) {
@@ -722,21 +609,10 @@ class ApplicationContext {
722
609
  }
723
610
 
724
611
  refreshUserAvatar(avatar) {
725
- var _iterator13 = _createForOfIteratorHelper(this.listeners),
726
- _step13;
727
-
728
- try {
729
- for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
730
- const listener = _step13.value;
731
-
732
- if (listener.type === AVATAR_LISTENER_TYPE) {
733
- listener.handler(avatar);
734
- }
612
+ for (const listener of this.listeners) {
613
+ if (listener.type === AVATAR_LISTENER_TYPE) {
614
+ listener.handler(avatar);
735
615
  }
736
- } catch (err) {
737
- _iterator13.e(err);
738
- } finally {
739
- _iterator13.f();
740
616
  }
741
617
  }
742
618
 
@@ -749,6 +625,10 @@ class ApplicationContext {
749
625
  return this.props.primaryColor;
750
626
  }
751
627
 
628
+ getApplicationSecondaryColor() {
629
+ return this.props.secondaryColor;
630
+ }
631
+
752
632
  openConfirmDialog(message, resultCallback) {
753
633
  return this.props.confirmationDialogController.openDialog(message, {
754
634
  execute: result => {
@@ -757,6 +637,30 @@ class ApplicationContext {
757
637
  });
758
638
  }
759
639
 
640
+ fillEventDataValue(obj, eventData) {
641
+ if (obj) {
642
+ Object.keys(obj).forEach(key => {
643
+ let val = obj[key];
644
+
645
+ if (typeof val === 'object') {
646
+ this.fillEventDataValue(val, eventData);
647
+ }
648
+
649
+ if (val === '$event.data') {
650
+ obj[key] = eventData;
651
+ }
652
+ });
653
+ return obj;
654
+ }
655
+
656
+ return null;
657
+ }
658
+ /**
659
+ * Returns a view configuration with a particular id
660
+ *
661
+ */
662
+
663
+
760
664
  isExpression(objValue) {
761
665
  return objValue && objValue.toString().startsWith("$event.data") || !_Utils.default.isNull(objValue) && typeof objValue === 'string' && !_Utils.default.isNull(objValue.match(_DynamicJS.TEMPLATE_REGEX));
762
666
  }
@@ -773,12 +677,12 @@ class ApplicationContext {
773
677
  this.getViewPortHistory().push("/view/" + graph.anchorView.config.id);
774
678
  }
775
679
 
776
- removeLoadedGraph() {
680
+ removeLoadedGraph(routeBackToAnchor) {
777
681
  if (this.graphs.length > 0) {
778
682
  this.closeCurrentView(false);
779
683
  let graph = this.graphs[this.graphs.length - 1];
780
684
 
781
- if (!_Utils.default.isNull(graph.anchorHistoryElement)) {
685
+ if (!_Utils.default.isNull(graph.anchorHistoryElement) && routeBackToAnchor) {
782
686
  this.loadAnchor(graph);
783
687
  }
784
688
 
@@ -790,18 +694,8 @@ class ApplicationContext {
790
694
  if (isParent && !isPopup) {
791
695
  this.navHistory.splice(0, this.navHistory.length);
792
696
 
793
- var _iterator14 = _createForOfIteratorHelper(this.views),
794
- _step14;
795
-
796
- try {
797
- for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
798
- const contextView = _step14.value;
799
- this.closeView(contextView.handle.api.id, false);
800
- }
801
- } catch (err) {
802
- _iterator14.e(err);
803
- } finally {
804
- _iterator14.f();
697
+ for (const contextView of this.views) {
698
+ this.closeView(contextView.handle.api.id, false);
805
699
  }
806
700
 
807
701
  this.getViewPortHistory().push("/switch");
@@ -817,18 +711,8 @@ class ApplicationContext {
817
711
 
818
712
  graph.init();
819
713
 
820
- var _iterator15 = _createForOfIteratorHelper(parameterValues),
821
- _step15;
822
-
823
- try {
824
- for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
825
- const parameterValue = _step15.value;
826
- graph.model[parameterValue.name] = parameterValue.value;
827
- }
828
- } catch (err) {
829
- _iterator15.e(err);
830
- } finally {
831
- _iterator15.f();
714
+ for (const parameterValue of parameterValues) {
715
+ graph.model[parameterValue.name] = parameterValue.value;
832
716
  }
833
717
 
834
718
  this.graphs.push(graph);
@@ -838,22 +722,11 @@ class ApplicationContext {
838
722
  if (this.graphs.length > 0) {
839
723
  let graphToSignal = this.graphs[this.graphs.length - 1];
840
724
 
841
- var _iterator16 = _createForOfIteratorHelper(this.graphs),
842
- _step16;
843
-
844
- try {
845
- for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
846
- const graph = _step16.value;
847
-
848
- if (id === graph.id) {
849
- graphToSignal = graph;
850
- break;
851
- }
725
+ for (const graph of this.graphs) {
726
+ if (id === graph.id) {
727
+ graphToSignal = graph;
728
+ break;
852
729
  }
853
- } catch (err) {
854
- _iterator16.e(err);
855
- } finally {
856
- _iterator16.f();
857
730
  }
858
731
 
859
732
  graphToSignal.signal(event);
@@ -868,6 +741,10 @@ class ApplicationContext {
868
741
  return this.props.formMarkersEnabled;
869
742
  }
870
743
 
744
+ setDashboardView(view) {
745
+ this.props.dashboardView = view;
746
+ }
747
+
871
748
  }
872
749
 
873
750
  const instance = new ApplicationContext();