@agilemotion/oui-react-js 1.6.1 → 1.6.2

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 (228) hide show
  1. package/dist/ApplicationManager.js +698 -421
  2. package/dist/BasicApp.js +5 -5
  3. package/dist/BasicAppHome.js +55 -26
  4. package/dist/DynamicJS.js +147 -65
  5. package/dist/InteractionPortalApp.css +1 -1
  6. package/dist/InteractionPortalApp.js +5 -5
  7. package/dist/InteractionPortalAppHome.js +57 -22
  8. package/dist/InteractionPortalApp_old.js +107 -61
  9. package/dist/RestUtils.js +339 -287
  10. package/dist/TypedValue.js +18 -15
  11. package/dist/Utils.js +375 -276
  12. package/dist/WithRouter.js +6 -6
  13. package/dist/assets/jss/components/authNavbarStyle.js +166 -164
  14. package/dist/assets/jss/components/buttonStyle.js +1 -1
  15. package/dist/assets/jss/components/cardAvatarStyle.js +1 -1
  16. package/dist/assets/jss/components/cardBodyStyle.js +1 -1
  17. package/dist/assets/jss/components/cardFooterStyle.js +1 -1
  18. package/dist/assets/jss/components/cardHeaderStyle.js +13 -13
  19. package/dist/assets/jss/components/cardIconStyle.js +1 -1
  20. package/dist/assets/jss/components/cardStyle.js +1 -1
  21. package/dist/assets/jss/components/cardTextStyle.js +1 -1
  22. package/dist/assets/jss/components/customDropdownStyle.js +168 -169
  23. package/dist/assets/jss/components/customInputStyle.js +9 -3
  24. package/dist/assets/jss/components/dropdownStyle.js +69 -69
  25. package/dist/assets/jss/components/footerStyle.js +19 -13
  26. package/dist/assets/jss/components/headerLinksStyle.js +45 -48
  27. package/dist/assets/jss/components/headerStyle.js +68 -65
  28. package/dist/assets/jss/components/navbarLinksStyle.js +66 -77
  29. package/dist/assets/jss/components/navbarStyle.js +79 -76
  30. package/dist/assets/jss/components/sidebarStyle.js +436 -436
  31. package/dist/assets/jss/components/typographyStyle.js +9 -3
  32. package/dist/assets/jss/rootStyle.js +96 -81
  33. package/dist/assets/jss/views/layoutStyle.js +44 -41
  34. package/dist/assets/jss/views/loginBasicStyle.js +1 -1
  35. package/dist/assets/jss/views/loginBusinessPortalStyle.js +1 -1
  36. package/dist/assets/jss/views/loginStyle.js +82 -77
  37. package/dist/components/AlertBar.js +50 -17
  38. package/dist/components/AlertItem.js +35 -12
  39. package/dist/components/AlertTemplate.js +30 -29
  40. package/dist/components/Button.js +62 -34
  41. package/dist/components/Calendar.js +140 -91
  42. package/dist/components/ConfirmationDialog.js +36 -11
  43. package/dist/components/DataGrid.js +512 -270
  44. package/dist/components/DataGridColumn.js +47 -22
  45. package/dist/components/DataGridFilter.js +186 -105
  46. package/dist/components/DataGridHeading.js +50 -32
  47. package/dist/components/Dialog.js +90 -35
  48. package/dist/components/DocumentTemplateDesigner.js +34 -16
  49. package/dist/components/DocumentTemplateDesignerComponent.js +124 -48
  50. package/dist/components/DocumentTemplatePlaceholderDialog.js +52 -30
  51. package/dist/components/DocumentViewer.js +34 -18
  52. package/dist/components/DocumentViewerComponent.js +26 -9
  53. package/dist/components/ElementResizeHandler.js +229 -207
  54. package/dist/components/FileThumb.js +32 -10
  55. package/dist/components/Graph.js +153 -85
  56. package/dist/components/GraphNode.js +58 -38
  57. package/dist/components/HtmlPanel.js +67 -39
  58. package/dist/components/Icon.js +206 -166
  59. package/dist/components/LoadingIndicator.js +3 -3
  60. package/dist/components/LottieIcon.js +1 -1
  61. package/dist/components/PopupView.js +39 -19
  62. package/dist/components/Portlet.js +32 -17
  63. package/dist/components/RegularButton.js +28 -32
  64. package/dist/components/SignaturePanel.js +37 -17
  65. package/dist/components/SocketManager.js +178 -119
  66. package/dist/components/StepperTitleBar.js +62 -42
  67. package/dist/components/TabPage.js +30 -25
  68. package/dist/components/TabPanel.js +86 -33
  69. package/dist/components/TableCellContent.js +51 -32
  70. package/dist/components/TemplateDesigner.js +173 -121
  71. package/dist/components/TemplateItemEventHandler.js +335 -221
  72. package/dist/components/TemplateTable.js +183 -118
  73. package/dist/components/TitleBar.js +26 -11
  74. package/dist/components/Toolbar.js +67 -38
  75. package/dist/components/Tooltip.js +43 -35
  76. package/dist/components/Tree.js +85 -44
  77. package/dist/components/UseIsVisible.js +25 -4
  78. package/dist/components/card/Card.js +27 -33
  79. package/dist/components/card/CardAvatar.js +20 -19
  80. package/dist/components/card/CardBody.js +24 -27
  81. package/dist/components/card/CardFooter.js +23 -24
  82. package/dist/components/card/CardHeader.js +24 -27
  83. package/dist/components/card/CardIcon.js +17 -13
  84. package/dist/components/card/CardText.js +17 -13
  85. package/dist/components/customInput/CustomInput.js +22 -36
  86. package/dist/components/dashboard/{BasicBusinessAppDashboard.js → FoldingSideTabDashboard.js} +111 -63
  87. package/dist/components/dashboard/SideMenuModuleDashboard.css +60 -0
  88. package/dist/components/dashboard/SideMenuModuleDashboard.js +423 -0
  89. package/dist/components/dashboard/TopMenuModuleDashboard.js +138 -0
  90. package/dist/components/dashboard/components/Header.js +29 -12
  91. package/dist/components/dashboard/components/LeftDrawer.js +3 -5
  92. package/dist/components/dashboard/components/UserIdentity.js +2 -2
  93. package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +131 -87
  94. package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +488 -0
  95. package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenu.js +64 -0
  96. package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.css +65 -0
  97. package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +556 -0
  98. package/dist/components/dashboard/components/portal/Timeline.js +1 -1
  99. package/dist/components/dashboard/components/portal/Workspace.js +5 -11
  100. package/dist/components/footer/Footer.js +31 -24
  101. package/dist/components/footer/HomeFooter.js +68 -34
  102. package/dist/components/form/AddressSearch.js +78 -42
  103. package/dist/components/form/AutoComplete.js +136 -55
  104. package/dist/components/form/BaseField.js +108 -56
  105. package/dist/components/form/Checkbox.js +10 -8
  106. package/dist/components/form/DatePicker.js +47 -25
  107. package/dist/components/form/FieldSet.js +217 -84
  108. package/dist/components/form/Form.js +334 -200
  109. package/dist/components/form/GridField.js +185 -82
  110. package/dist/components/form/IconField.js +9 -7
  111. package/dist/components/form/ImageEditor.js +141 -92
  112. package/dist/components/form/LabelField.js +12 -10
  113. package/dist/components/form/LookupField.js +54 -32
  114. package/dist/components/form/MultiFileUploadField.js +101 -67
  115. package/dist/components/form/RadioGroup.js +33 -16
  116. package/dist/components/form/Section.js +84 -34
  117. package/dist/components/form/SelectItem.js +55 -33
  118. package/dist/components/form/SignatureTemplateDesignerField.js +11 -9
  119. package/dist/components/form/Switch.js +10 -8
  120. package/dist/components/form/TextField.js +34 -16
  121. package/dist/components/form/TimePicker.js +19 -15
  122. package/dist/components/form/TransferList.js +153 -75
  123. package/dist/components/form/UploadField.js +183 -128
  124. package/dist/components/grid/GridContainer.js +12 -8
  125. package/dist/components/grid/GridItem.js +12 -8
  126. package/dist/components/layout/CollapsiblePanel.js +44 -18
  127. package/dist/components/layout/Layout.js +81 -40
  128. package/dist/components/layout/VC.css +1 -1
  129. package/dist/components/layout/View.js +136 -62
  130. package/dist/components/layout/ViewContainer.js +13 -11
  131. package/dist/components/layout/ViewPort.js +25 -10
  132. package/dist/components/layout/Window.js +87 -53
  133. package/dist/components/layout/WindowViewPort.js +38 -16
  134. package/dist/components/media/ClosablePanel.js +7 -7
  135. package/dist/components/media/LobbyWaitingList.js +7 -9
  136. package/dist/components/media/MediaSoupHelper.js +379 -187
  137. package/dist/components/media/SideBarContent.js +22 -14
  138. package/dist/components/media/SocketRequest.js +5 -1
  139. package/dist/components/media/SocketResponse.js +5 -1
  140. package/dist/components/media/Timer.js +35 -15
  141. package/dist/components/media/Toolbar.css +5 -0
  142. package/dist/components/media/Toolbar.js +220 -102
  143. package/dist/components/media/ToolbarButton.js +82 -33
  144. package/dist/components/media/Toolbar_bck.js +142 -70
  145. package/dist/components/media/Tracks.js +31 -28
  146. package/dist/components/media/TrainingRoom.js +284 -121
  147. package/dist/components/media/Transports.js +27 -24
  148. package/dist/components/media/VCEventManager.js +95 -31
  149. package/dist/components/media/VCEventType.js +5 -1
  150. package/dist/components/media/VCParticipantList.js +40 -14
  151. package/dist/components/media/VCParticipantListItem.js +92 -41
  152. package/dist/components/media/VCRoom.js +29 -11
  153. package/dist/components/media/VCRoomParticipant.js +488 -242
  154. package/dist/components/media/VCRoomRecorder.js +236 -175
  155. package/dist/components/media/VCRoomWorkspace.js +505 -245
  156. package/dist/components/media/Video.js +89 -25
  157. package/dist/components/media/VideoPlayer.js +56 -22
  158. package/dist/components/media/chat/ChatRoom.js +255 -132
  159. package/dist/components/media/chat/ChatRoomItem.js +35 -14
  160. package/dist/components/media/chat/ChatRoomList.js +43 -13
  161. package/dist/components/menu/CollapsibleMenu.js +39 -20
  162. package/dist/components/menu/MenuBars.js +81 -48
  163. package/dist/components/menu/MenuButton.js +95 -60
  164. package/dist/components/menu/MenuItem.js +28 -9
  165. package/dist/components/menu/MenuLink.js +12 -10
  166. package/dist/components/menu/PopupMenu.js +16 -12
  167. package/dist/components/navbars/AuthNavbar.js +27 -18
  168. package/dist/components/navbars/HomeNavbar.js +243 -194
  169. package/dist/components/navbars/PortalNavbar.js +50 -26
  170. package/dist/components/signatures/AgilitySignaturePanel.js +96 -39
  171. package/dist/components/signatures/AlertItem.js +36 -13
  172. package/dist/components/signatures/Card.js +4 -4
  173. package/dist/components/signatures/DocumentContainer.js +141 -57
  174. package/dist/components/signatures/ImageSignatureInput.js +90 -59
  175. package/dist/components/signatures/MenuButton.js +53 -33
  176. package/dist/components/signatures/Prompt.js +26 -5
  177. package/dist/components/signatures/ResponsiveTable.js +302 -197
  178. package/dist/components/signatures/SearchView.js +77 -36
  179. package/dist/components/signatures/SignatorySearch.js +30 -10
  180. package/dist/components/signatures/SignatorySearchForm.js +35 -18
  181. package/dist/components/signatures/SignatureInput.js +56 -26
  182. package/dist/components/signatures/SignatureInputProps.js +107 -55
  183. package/dist/components/signatures/SignatureTemplateDesigner.js +340 -235
  184. package/dist/components/signatures/Toolbar.js +135 -94
  185. package/dist/components/signatures/ViewUtils.js +273 -224
  186. package/dist/components/typography/Danger.js +3 -5
  187. package/dist/components/typography/Info.js +3 -5
  188. package/dist/components/typography/Link.js +3 -5
  189. package/dist/event/ActionHandlers.js +57 -43
  190. package/dist/event/Event.js +16 -13
  191. package/dist/event/EventListener.js +39 -36
  192. package/dist/event/EventType.js +5 -1
  193. package/dist/event/LoadDataActionHandler.js +20 -8
  194. package/dist/event/Observable.js +323 -142
  195. package/dist/event/RouteActionHandler.js +139 -125
  196. package/dist/event/ScriptActionHandler.js +20 -8
  197. package/dist/event/ServiceCallActionHandler.js +51 -39
  198. package/dist/event/SignalGraphActionHandler.js +19 -7
  199. package/dist/js/Addresses.js +38 -24
  200. package/dist/js/Calendar.js +168 -161
  201. package/dist/js/DynamicLib.js +14 -11
  202. package/dist/js/Media.js +213 -120
  203. package/dist/js/Validators.js +6 -5
  204. package/dist/js/Windows.js +48 -47
  205. package/dist/redux/store/ConfigureStore.js +17 -9
  206. package/dist/redux/store/DashboardStore.js +110 -43
  207. package/dist/redux/store/History.js +1 -1
  208. package/dist/redux/store/SecurityStore.js +59 -20
  209. package/dist/security/TokenManager.js +44 -30
  210. package/dist/theme-default.js +1 -1
  211. package/dist/view/Dashboard.js +230 -137
  212. package/dist/view/PortalDashboard.js +4 -4
  213. package/dist/view/Settings.js +4 -2
  214. package/dist/view/Views.js +27 -14
  215. package/dist/view/security/ChangePasswordBasic.js +97 -40
  216. package/dist/view/security/ForgotPassword.js +59 -22
  217. package/dist/view/security/ForgotPasswordBasic.js +62 -21
  218. package/dist/view/security/Login.js +64 -24
  219. package/dist/view/security/LoginBasic.js +65 -26
  220. package/dist/view/security/LoginInteractionPortal.js +62 -25
  221. package/dist/view/security/ResetPassword.js +65 -23
  222. package/dist/view/security/ResetPasswordBasic.js +91 -37
  223. package/dist/view/security/Security.js +12 -12
  224. package/package.json +1 -2
  225. package/dist/components/dashboard/BusinessPortalAppDashboard.js +0 -115
  226. package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +0 -447
  227. /package/dist/components/dashboard/{BusinessPortalAppDashboard.css → TopMenuModuleDashboard.css} +0 -0
  228. /package/dist/components/dashboard/components/blackDashboard/sidebar/{Sidebar.css → FoldingTabSidebar.css} +0 -0
@@ -23,10 +23,18 @@ var _Event = _interopRequireDefault(require("./Event"));
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
26
- const location = window.location.protocol + '//' + window.location.hostname;
26
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
+
28
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
29
+
30
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
31
+
32
+ var location = window.location.protocol + '//' + window.location.hostname;
33
+
34
+ var RouteActionHandler = /*#__PURE__*/function () {
35
+ function RouteActionHandler() {
36
+ _classCallCheck(this, RouteActionHandler);
27
37
 
28
- class RouteActionHandler {
29
- constructor() {
30
38
  if (!RouteActionHandler.instance) {
31
39
  RouteActionHandler.instance = this;
32
40
  }
@@ -34,154 +42,160 @@ class RouteActionHandler {
34
42
  return RouteActionHandler.instance;
35
43
  }
36
44
 
37
- execute(actionConfig, event, component, currentViewId) {
38
- // TODO : Implement this full URL
39
- //String url = webUrl + "?version=1.0" + (viewPath != null ? "&id=" + URL.encodeQueryString(viewPath) : "")
40
- // + (viewPathRequestDto != null ? "&serviceRequest=" + URL.encodeQueryString(requestDtoWriter.write(viewPathRequestDto)) : "")
41
- // + (portalCurrentOrg != null ? "&profile=" + portalCurrentOrg : "");
42
- _ApplicationManager.default.enableFormMarkers(false);
43
-
44
- let forward = true;
45
- let path = null;
46
- let isParent = _Utils.default.isNull(actionConfig.parent) ? false : actionConfig.parent;
47
- let isPopup = _Utils.default.isNull(actionConfig.popUp) ? false : actionConfig.popUp;
48
- let isWindow = _Utils.default.isNull(actionConfig.window) ? false : actionConfig.window;
49
-
50
- if (!_Utils.default.isNull(actionConfig.pathEvaluator)) {
51
- path = _DynamicJS.default.executeScriptObject(currentViewId + 'ViewEvaluator_' + event.source.id, actionConfig.pathEvaluator);
52
- } else {
53
- path = _ApplicationManager.default.isExpression(actionConfig.path) ? _ApplicationManager.default.resolveExpressionValue(actionConfig.path, event.data) : actionConfig.path;
54
-
55
- if ('@#{history.back}' === actionConfig.path && _ApplicationManager.default.graphs.length === 0) {
56
- let historyElement = _ApplicationManager.default.getPreviousHistoryElement();
57
-
58
- if (historyElement === null) {
59
- console.error('Invalid path. Cannot go back in history');
60
- return;
61
- }
45
+ _createClass(RouteActionHandler, [{
46
+ key: "execute",
47
+ value: function execute(actionConfig, event, component, currentViewId) {
48
+ var _this = this;
49
+
50
+ // TODO : Implement this full URL
51
+ //String url = webUrl + "?version=1.0" + (viewPath != null ? "&id=" + URL.encodeQueryString(viewPath) : "")
52
+ // + (viewPathRequestDto != null ? "&serviceRequest=" + URL.encodeQueryString(requestDtoWriter.write(viewPathRequestDto)) : "")
53
+ // + (portalCurrentOrg != null ? "&profile=" + portalCurrentOrg : "");
54
+ _ApplicationManager.default.enableFormMarkers(false);
55
+
56
+ var forward = true;
57
+ var path = null;
58
+ var isParent = _Utils.default.isNull(actionConfig.parent) ? false : actionConfig.parent;
59
+ var isPopup = _Utils.default.isNull(actionConfig.popUp) ? false : actionConfig.popUp;
60
+ var isWindow = _Utils.default.isNull(actionConfig.window) ? false : actionConfig.window;
61
+
62
+ if (!_Utils.default.isNull(actionConfig.pathEvaluator)) {
63
+ path = _DynamicJS.default.executeScriptObject(currentViewId + 'ViewEvaluator_' + event.source.id, actionConfig.pathEvaluator);
64
+ } else {
65
+ path = _ApplicationManager.default.isExpression(actionConfig.path) ? _ApplicationManager.default.resolveExpressionValue(actionConfig.path, event.data) : actionConfig.path;
66
+
67
+ if ('@#{history.back}' === actionConfig.path && _ApplicationManager.default.graphs.length === 0) {
68
+ var historyElement = _ApplicationManager.default.getPreviousHistoryElement();
69
+
70
+ if (historyElement === null) {
71
+ console.error('Invalid path. Cannot go back in history');
72
+ return;
73
+ }
62
74
 
63
- path = historyElement.path;
64
- isParent = historyElement.parent;
65
- forward = false;
75
+ path = historyElement.path;
76
+ isParent = historyElement.parent;
77
+ forward = false;
78
+ }
66
79
  }
67
- }
68
80
 
69
- let parameterValues = [];
81
+ var parameterValues = [];
70
82
 
71
- if (!_Utils.default.isNull(actionConfig.parameters)) {
72
- for (let i = 0; i < actionConfig.parameters.length; i++) {
73
- let parameter = actionConfig.parameters[i];
83
+ if (!_Utils.default.isNull(actionConfig.parameters)) {
84
+ for (var i = 0; i < actionConfig.parameters.length; i++) {
85
+ var parameter = actionConfig.parameters[i];
74
86
 
75
- let parameterValue = _ApplicationManager.default.resolveParameterValue(parameter, event.data);
87
+ var parameterValue = _ApplicationManager.default.resolveParameterValue(parameter, event.data);
76
88
 
77
- let validator = parameter.validator;
89
+ var validator = parameter.validator;
78
90
 
79
- if (_Utils.default.isNull(parameterValue) && !_Utils.default.isNull(validator) && _Utils.default.evaluateBooleanExpression(validator.nullable, parameter.name) === false) {
80
- console.error('Routing to path ' + path + ', failed. A null value for a NON-NULLABLE parameter was found - ' + JSON.stringify(parameter)); // TODO : Display the configured error message at the correct error panel
91
+ if (_Utils.default.isNull(parameterValue) && !_Utils.default.isNull(validator) && _Utils.default.evaluateBooleanExpression(validator.nullable, parameter.name) === false) {
92
+ console.error('Routing to path ' + path + ', failed. A null value for a NON-NULLABLE parameter was found - ' + JSON.stringify(parameter)); // TODO : Display the configured error message at the correct error panel
81
93
 
82
- return;
83
- }
94
+ return;
95
+ }
84
96
 
85
- let param = {};
86
- param.name = parameter.name;
87
- param.value = _Utils.default.isNull(parameterValue) ? null : parameterValue.instanceType === 'TypedValue' ? parameterValue.value : parameterValue;
88
- parameterValues.push(param);
97
+ var param = {};
98
+ param.name = parameter.name;
99
+ param.value = _Utils.default.isNull(parameterValue) ? null : parameterValue.instanceType === 'TypedValue' ? parameterValue.value : parameterValue;
100
+ parameterValues.push(param);
101
+ }
89
102
  }
90
- }
91
103
 
92
- let currentGraph = _ApplicationManager.default.graphs.length > 0 ? _ApplicationManager.default.graphs[_ApplicationManager.default.graphs.length - 1] : null;
104
+ var currentGraph = _ApplicationManager.default.graphs.length > 0 ? _ApplicationManager.default.graphs[_ApplicationManager.default.graphs.length - 1] : null;
93
105
 
94
- if ('@#{home}' === actionConfig.path) {
95
- _ApplicationManager.default.navigate('/view/unload');
106
+ if ('@#{home}' === actionConfig.path) {
107
+ _ApplicationManager.default.navigate('/view/unload');
96
108
 
97
- _ApplicationManager.default.navigate('/view/dashboard');
98
- } else if ('@#{history.back}' === actionConfig.path && currentGraph) {
99
- if (isWindow && currentGraph.config.isWindow || !isWindow && !currentGraph.config.isWindow) {
100
- _ApplicationManager.default.removeLoadedGraph(true);
101
- }
102
- } else {
103
- let url = location + _ApplicationManager.default.getContextRoot() + _ApplicationManager.default.getUIConfigPath() + '/view/get?version=1.0&id=' + path;
104
- (0, _RestUtils.sendRequest)(url, data => {
105
- if (isParent && currentGraph) {
106
- if (isWindow && currentGraph.config.isWindow || !isWindow && !currentGraph.config.isWindow) {
107
- _ApplicationManager.default.removeLoadedGraph(false);
108
- }
109
+ _ApplicationManager.default.navigate('/view/dashboard');
110
+ } else if ('@#{history.back}' === actionConfig.path && currentGraph) {
111
+ if (isWindow && currentGraph.config.isWindow || !isWindow && !currentGraph.config.isWindow) {
112
+ _ApplicationManager.default.removeLoadedGraph(true);
109
113
  }
114
+ } else {
115
+ var url = location + _ApplicationManager.default.getContextRoot() + _ApplicationManager.default.getUIConfigPath() + '/view/get?version=1.0&id=' + path;
116
+ (0, _RestUtils.sendRequest)(url, function (data) {
117
+ if (isParent && currentGraph) {
118
+ if (isWindow && currentGraph.config.isWindow || !isWindow && !currentGraph.config.isWindow) {
119
+ _ApplicationManager.default.removeLoadedGraph(false);
120
+ }
121
+ }
110
122
 
111
- if (data.type === 'view') {
112
- let currentView = isWindow ? _ApplicationManager.default.getTopWindowView() : _ApplicationManager.default.getTopAnchorView();
113
-
114
- if (_Utils.default.isNull(currentView) || !currentView.popUp) {
115
- let view = {};
116
- let defaultModel = {};
117
-
118
- _Utils.default.updateModel(parameterValues, defaultModel);
119
-
120
- view.config = data;
121
- view.parameters = parameterValues;
122
- view.parent = isParent;
123
- view.popUp = isPopup;
124
- view.window = isWindow;
125
- view.config.window = isWindow;
126
- view.handle = {
127
- api: {
128
- get id() {
129
- return data.id;
130
- },
131
-
132
- get model() {
133
- return defaultModel;
134
- },
135
-
136
- getChild: id => {
137
- return null;
138
- },
139
- updateModel: values => {
140
- _Utils.default.updateModel(values, defaultModel);
141
- },
142
- setModelValue: (key, value) => {
143
- this.defaultModel.key = value;
144
- },
145
- getModelValue: key => {
146
- return this.defaultModel[key];
147
- },
148
- loaded: () => {
149
- return false;
123
+ if (data.type === 'view') {
124
+ var currentView = isWindow ? _ApplicationManager.default.getTopWindowView() : _ApplicationManager.default.getTopAnchorView();
125
+
126
+ if (_Utils.default.isNull(currentView) || !currentView.popUp) {
127
+ var view = {};
128
+ var defaultModel = {};
129
+
130
+ _Utils.default.updateModel(parameterValues, defaultModel);
131
+
132
+ view.config = data;
133
+ view.parameters = parameterValues;
134
+ view.parent = isParent;
135
+ view.popUp = isPopup;
136
+ view.window = isWindow;
137
+ view.config.window = isWindow;
138
+ view.handle = {
139
+ api: {
140
+ get id() {
141
+ return data.id;
142
+ },
143
+
144
+ get model() {
145
+ return defaultModel;
146
+ },
147
+
148
+ getChild: function getChild(id) {
149
+ return null;
150
+ },
151
+ updateModel: function updateModel(values) {
152
+ _Utils.default.updateModel(values, defaultModel);
153
+ },
154
+ setModelValue: function setModelValue(key, value) {
155
+ _this.defaultModel.key = value;
156
+ },
157
+ getModelValue: function getModelValue(key) {
158
+ return _this.defaultModel[key];
159
+ },
160
+ loaded: function loaded() {
161
+ return false;
162
+ }
150
163
  }
151
- }
152
- };
164
+ };
153
165
 
154
- _ApplicationManager.default.addView(view, path, forward); // None-existing route to ensure that the current view unloads
166
+ _ApplicationManager.default.addView(view, path, forward); // None-existing route to ensure that the current view unloads
155
167
 
156
168
 
157
- if (_Utils.default.isNull(actionConfig.popUp) || actionConfig.popUp === false) {
158
- if (!isWindow) {
159
- _ApplicationManager.default.navigate('/view/unload');
169
+ if (_Utils.default.isNull(actionConfig.popUp) || actionConfig.popUp === false) {
170
+ if (!isWindow) {
171
+ _ApplicationManager.default.navigate('/view/unload');
160
172
 
161
- _ApplicationManager.default.navigate('/view/' + data.id);
173
+ _ApplicationManager.default.navigate('/view/' + data.id);
174
+ }
162
175
  }
176
+ } else {
177
+ /*applicationManager.closeCurrentView(false);
178
+ currentView = applicationManager.getCurrentView();
179
+ if (currentView) {
180
+ currentView.handle.api.updateModel(parameterValues);
181
+ let event = new Event(currentView.handle, currentView.config.id, null);
182
+ eventManager.fireEvent(EventType.COMPONENT_LOAD, event);
183
+ }*/
163
184
  }
164
- } else {
165
- /*applicationManager.closeCurrentView(false);
166
- currentView = applicationManager.getCurrentView();
167
- if (currentView) {
168
- currentView.handle.api.updateModel(parameterValues);
169
- let event = new Event(currentView.handle, currentView.config.id, null);
170
- eventManager.fireEvent(EventType.COMPONENT_LOAD, event);
171
- }*/
185
+ } else if (data.type === 'graph') {
186
+ _ApplicationManager.default.loadGraph(isParent, isPopup, isWindow, data, parameterValues);
172
187
  }
173
- } else if (data.type === 'graph') {
174
- _ApplicationManager.default.loadGraph(isParent, isPopup, isWindow, data, parameterValues);
175
- }
176
- }, e => {
177
- console.error(e);
178
- }, true, false);
188
+ }, function (e) {
189
+ console.error(e);
190
+ }, true, false);
191
+ }
179
192
  }
180
- }
193
+ }]);
181
194
 
182
- }
195
+ return RouteActionHandler;
196
+ }();
183
197
 
184
- const instance = new RouteActionHandler();
198
+ var instance = new RouteActionHandler();
185
199
  Object.freeze(instance);
186
200
  var _default = instance;
187
201
  exports.default = _default;
@@ -11,8 +11,16 @@ var _DynamicJS = _interopRequireDefault(require("../DynamicJS"));
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
 
14
- class ScriptActionHandler {
15
- constructor() {
14
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
+
16
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
17
+
18
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
19
+
20
+ var ScriptActionHandler = /*#__PURE__*/function () {
21
+ function ScriptActionHandler() {
22
+ _classCallCheck(this, ScriptActionHandler);
23
+
16
24
  if (!ScriptActionHandler.instance) {
17
25
  ScriptActionHandler.instance = this;
18
26
  }
@@ -20,15 +28,19 @@ class ScriptActionHandler {
20
28
  return ScriptActionHandler.instance;
21
29
  }
22
30
 
23
- execute(actionConfig, event, component, currentViewId) {
24
- let componentId = event.getSource().api.id;
31
+ _createClass(ScriptActionHandler, [{
32
+ key: "execute",
33
+ value: function execute(actionConfig, event, component, currentViewId) {
34
+ var componentId = event.getSource().api.id;
25
35
 
26
- _DynamicJS.default.executeScriptObject(currentViewId + '_' + componentId + '_script', actionConfig.script, componentId, {}, event);
27
- }
36
+ _DynamicJS.default.executeScriptObject(currentViewId + '_' + componentId + '_script', actionConfig.script, componentId, {}, event);
37
+ }
38
+ }]);
28
39
 
29
- }
40
+ return ScriptActionHandler;
41
+ }();
30
42
 
31
- const instance = new ScriptActionHandler();
43
+ var instance = new ScriptActionHandler();
32
44
  Object.freeze(instance);
33
45
  var _default = instance;
34
46
  exports.default = _default;
@@ -15,8 +15,16 @@ var _Utils = _interopRequireDefault(require("./../Utils"));
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
18
- class ServiceCallActionHandler {
19
- constructor() {
18
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
+
20
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
21
+
22
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
23
+
24
+ var ServiceCallActionHandler = /*#__PURE__*/function () {
25
+ function ServiceCallActionHandler() {
26
+ _classCallCheck(this, ServiceCallActionHandler);
27
+
20
28
  if (!ServiceCallActionHandler.instance) {
21
29
  ServiceCallActionHandler.instance = this;
22
30
  }
@@ -24,47 +32,51 @@ class ServiceCallActionHandler {
24
32
  return ServiceCallActionHandler.instance;
25
33
  }
26
34
 
27
- execute(actionConfig, event, component, currentViewId, successCallback, errorCallback, invalidParameterCallback) {
28
- if (actionConfig.service.type === 'rpc' || actionConfig.service.type === 'rest') {
29
- let method = actionConfig.service.type === 'rpc' ? _RestUtils.invokeRpc : _RestUtils.invokeRest;
30
- method(actionConfig.service, component, currentViewId, result => {
31
- let handle = !_Utils.default.isNull(component) && !_Utils.default.isNull(component.current) ? component.current : component;
32
-
33
- if (!_Utils.default.isNull(actionConfig.postScript)) {
34
- try {
35
- let valuesMap = {};
36
- valuesMap.response = result.data ? result.data : result;
37
-
38
- _DynamicJS.default.executeScriptObject('postScript_' + currentViewId + '_' + handle.api.id, actionConfig.postScript, handle.api.id, valuesMap, {
39
- data: result.data ? result.data : result
40
- });
41
- } catch (e) {
42
- console.error(e);
35
+ _createClass(ServiceCallActionHandler, [{
36
+ key: "execute",
37
+ value: function execute(actionConfig, event, component, currentViewId, successCallback, errorCallback, invalidParameterCallback) {
38
+ if (actionConfig.service.type === 'rpc' || actionConfig.service.type === 'rest') {
39
+ var method = actionConfig.service.type === 'rpc' ? _RestUtils.invokeRpc : _RestUtils.invokeRest;
40
+ method(actionConfig.service, component, currentViewId, function (result) {
41
+ var handle = !_Utils.default.isNull(component) && !_Utils.default.isNull(component.current) ? component.current : component;
42
+
43
+ if (!_Utils.default.isNull(actionConfig.postScript)) {
44
+ try {
45
+ var valuesMap = {};
46
+ valuesMap.response = result.data ? result.data : result;
47
+
48
+ _DynamicJS.default.executeScriptObject('postScript_' + currentViewId + '_' + handle.api.id, actionConfig.postScript, handle.api.id, valuesMap, {
49
+ data: result.data ? result.data : result
50
+ });
51
+ } catch (e) {
52
+ console.error(e);
53
+ }
43
54
  }
44
- }
45
-
46
- if (!_Utils.default.isNull(successCallback)) {
47
- successCallback(result);
48
- }
49
- }, e => {
50
- _Utils.default.publishErrorMessage(e, currentViewId, component);
51
-
52
- if (!_Utils.default.isNull(errorCallback)) {
53
- errorCallback(e);
54
- }
55
- }, () => {
56
- if (invalidParameterCallback) {
57
- invalidParameterCallback();
58
- }
59
- }, actionConfig.returnValueBinding, actionConfig.successMessage, event);
60
- } else {
61
- console.error("Unknown service type : " + actionConfig.service.type);
55
+
56
+ if (!_Utils.default.isNull(successCallback)) {
57
+ successCallback(result);
58
+ }
59
+ }, function (e) {
60
+ _Utils.default.publishErrorMessage(e, currentViewId, component);
61
+
62
+ if (!_Utils.default.isNull(errorCallback)) {
63
+ errorCallback(e);
64
+ }
65
+ }, function () {
66
+ if (invalidParameterCallback) {
67
+ invalidParameterCallback();
68
+ }
69
+ }, actionConfig.returnValueBinding, actionConfig.successMessage, event);
70
+ } else {
71
+ console.error("Unknown service type : " + actionConfig.service.type);
72
+ }
62
73
  }
63
- }
74
+ }]);
64
75
 
65
- }
76
+ return ServiceCallActionHandler;
77
+ }();
66
78
 
67
- const instance = new ServiceCallActionHandler();
79
+ var instance = new ServiceCallActionHandler();
68
80
  Object.freeze(instance);
69
81
  var _default = instance;
70
82
  exports.default = _default;
@@ -13,8 +13,16 @@ var _ApplicationManager = _interopRequireDefault(require("../ApplicationManager"
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
16
- class SignalGraphActionHandler {
17
- constructor() {
16
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
+
18
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
19
+
20
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
21
+
22
+ var SignalGraphActionHandler = /*#__PURE__*/function () {
23
+ function SignalGraphActionHandler() {
24
+ _classCallCheck(this, SignalGraphActionHandler);
25
+
18
26
  if (!SignalGraphActionHandler.instance) {
19
27
  SignalGraphActionHandler.instance = this;
20
28
  }
@@ -22,13 +30,17 @@ class SignalGraphActionHandler {
22
30
  return SignalGraphActionHandler.instance;
23
31
  }
24
32
 
25
- execute(actionConfig, event, component, currentViewId) {
26
- _ApplicationManager.default.signalGraph(actionConfig.graphId, event);
27
- }
33
+ _createClass(SignalGraphActionHandler, [{
34
+ key: "execute",
35
+ value: function execute(actionConfig, event, component, currentViewId) {
36
+ _ApplicationManager.default.signalGraph(actionConfig.graphId, event);
37
+ }
38
+ }]);
28
39
 
29
- }
40
+ return SignalGraphActionHandler;
41
+ }();
30
42
 
31
- const instance = new SignalGraphActionHandler();
43
+ var instance = new SignalGraphActionHandler();
32
44
  Object.freeze(instance);
33
45
  var _default = instance;
34
46
  exports.default = _default;
@@ -5,34 +5,48 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- class Addresses {
9
- constructor(resolver) {
8
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
+
10
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
11
+
12
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
13
+
14
+ var Addresses = /*#__PURE__*/function () {
15
+ function Addresses(resolver) {
16
+ _classCallCheck(this, Addresses);
17
+
10
18
  this.resolver = resolver;
11
19
  }
12
20
 
13
- copy(from, to, checked, mode = 'line') {
14
- if (checked) {
15
- var _this$resolver$resolv, _this$resolver$resolv2, _this$resolver$resolv3, _this$resolver$resolv4, _this$resolver$resolv5, _this$resolver$resolv6, _this$resolver$resolv7, _this$resolver$resolv8;
16
-
17
- let street = (_this$resolver$resolv = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.street' : '.line1'))) === null || _this$resolver$resolv === void 0 ? void 0 : _this$resolver$resolv.value;
18
- let suburb = (_this$resolver$resolv2 = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.suburb' : '.line2'))) === null || _this$resolver$resolv2 === void 0 ? void 0 : _this$resolver$resolv2.value;
19
- let city = (_this$resolver$resolv3 = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.city' : '.line3'))) === null || _this$resolver$resolv3 === void 0 ? void 0 : _this$resolver$resolv3.value;
20
- let municipality = (_this$resolver$resolv4 = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.municipality' : '.line4'))) === null || _this$resolver$resolv4 === void 0 ? void 0 : _this$resolver$resolv4.value;
21
- let province = (_this$resolver$resolv5 = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.province' : '.line5'))) === null || _this$resolver$resolv5 === void 0 ? void 0 : _this$resolver$resolv5.value;
22
- let country = (_this$resolver$resolv6 = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.country' : '.line6'))) === null || _this$resolver$resolv6 === void 0 ? void 0 : _this$resolver$resolv6.value;
23
- let code = (_this$resolver$resolv7 = this.resolver.resolveComponentApi(from + '.code')) === null || _this$resolver$resolv7 === void 0 ? void 0 : _this$resolver$resolv7.value;
24
- let building = (_this$resolver$resolv8 = this.resolver.resolveComponentApi(from + '.building')) === null || _this$resolver$resolv8 === void 0 ? void 0 : _this$resolver$resolv8.value;
25
- this.resolver.resolveComponentApi(to + (mode === 'street' ? '.street' : '.line1')).value = street;
26
- this.resolver.resolveComponentApi(to + (mode === 'street' ? '.suburb' : '.line2')).value = suburb;
27
- this.resolver.resolveComponentApi(to + (mode === 'street' ? '.city' : '.line3')).value = city;
28
- this.resolver.resolveComponentApi(to + (mode === 'street' ? '.municipality' : '.line4')).value = municipality;
29
- this.resolver.resolveComponentApi(to + (mode === 'street' ? '.province' : '.line5')).value = province;
30
- this.resolver.resolveComponentApi(to + (mode === 'street' ? '.country' : '.line6')).value = country;
31
- this.resolver.resolveComponentApi(to + '.code').value = code;
32
- this.resolver.resolveComponentApi(to + '.building').value = building;
21
+ _createClass(Addresses, [{
22
+ key: "copy",
23
+ value: function copy(from, to, checked) {
24
+ var mode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'line';
25
+
26
+ if (checked) {
27
+ var _this$resolver$resolv, _this$resolver$resolv2, _this$resolver$resolv3, _this$resolver$resolv4, _this$resolver$resolv5, _this$resolver$resolv6, _this$resolver$resolv7, _this$resolver$resolv8;
28
+
29
+ var street = (_this$resolver$resolv = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.street' : '.line1'))) === null || _this$resolver$resolv === void 0 ? void 0 : _this$resolver$resolv.value;
30
+ var suburb = (_this$resolver$resolv2 = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.suburb' : '.line2'))) === null || _this$resolver$resolv2 === void 0 ? void 0 : _this$resolver$resolv2.value;
31
+ var city = (_this$resolver$resolv3 = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.city' : '.line3'))) === null || _this$resolver$resolv3 === void 0 ? void 0 : _this$resolver$resolv3.value;
32
+ var municipality = (_this$resolver$resolv4 = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.municipality' : '.line4'))) === null || _this$resolver$resolv4 === void 0 ? void 0 : _this$resolver$resolv4.value;
33
+ var province = (_this$resolver$resolv5 = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.province' : '.line5'))) === null || _this$resolver$resolv5 === void 0 ? void 0 : _this$resolver$resolv5.value;
34
+ var country = (_this$resolver$resolv6 = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.country' : '.line6'))) === null || _this$resolver$resolv6 === void 0 ? void 0 : _this$resolver$resolv6.value;
35
+ var code = (_this$resolver$resolv7 = this.resolver.resolveComponentApi(from + '.code')) === null || _this$resolver$resolv7 === void 0 ? void 0 : _this$resolver$resolv7.value;
36
+ var building = (_this$resolver$resolv8 = this.resolver.resolveComponentApi(from + '.building')) === null || _this$resolver$resolv8 === void 0 ? void 0 : _this$resolver$resolv8.value;
37
+ this.resolver.resolveComponentApi(to + (mode === 'street' ? '.street' : '.line1')).value = street;
38
+ this.resolver.resolveComponentApi(to + (mode === 'street' ? '.suburb' : '.line2')).value = suburb;
39
+ this.resolver.resolveComponentApi(to + (mode === 'street' ? '.city' : '.line3')).value = city;
40
+ this.resolver.resolveComponentApi(to + (mode === 'street' ? '.municipality' : '.line4')).value = municipality;
41
+ this.resolver.resolveComponentApi(to + (mode === 'street' ? '.province' : '.line5')).value = province;
42
+ this.resolver.resolveComponentApi(to + (mode === 'street' ? '.country' : '.line6')).value = country;
43
+ this.resolver.resolveComponentApi(to + '.code').value = code;
44
+ this.resolver.resolveComponentApi(to + '.building').value = building;
45
+ }
33
46
  }
34
- }
47
+ }]);
35
48
 
36
- }
49
+ return Addresses;
50
+ }();
37
51
 
38
52
  exports.default = Addresses;