@agilemotion/oui-react-js 1.2.6 → 1.2.8

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 (133) hide show
  1. package/dist/ApplicationContext.js +244 -250
  2. package/dist/BasicApp.js +53 -97
  3. package/dist/BasicAppHome.js +86 -122
  4. package/dist/DynamicJS.js +65 -88
  5. package/dist/RestUtils.js +284 -315
  6. package/dist/TypedValue.js +15 -18
  7. package/dist/Utils.js +224 -262
  8. package/dist/assets/jss/components/authNavbarStyle.js +162 -164
  9. package/dist/assets/jss/components/buttonStyle.js +1 -1
  10. package/dist/assets/jss/components/cardAvatarStyle.js +1 -1
  11. package/dist/assets/jss/components/cardBodyStyle.js +1 -1
  12. package/dist/assets/jss/components/cardFooterStyle.js +1 -1
  13. package/dist/assets/jss/components/cardHeaderStyle.js +1 -1
  14. package/dist/assets/jss/components/cardIconStyle.js +1 -1
  15. package/dist/assets/jss/components/cardStyle.js +1 -1
  16. package/dist/assets/jss/components/cardTextStyle.js +1 -1
  17. package/dist/assets/jss/components/customDropdownStyle.js +192 -194
  18. package/dist/assets/jss/components/customInputStyle.js +1 -1
  19. package/dist/assets/jss/components/dropdownStyle.js +107 -109
  20. package/dist/assets/jss/components/footerStyle.js +1 -1
  21. package/dist/assets/jss/components/headerLinksStyle.js +95 -97
  22. package/dist/assets/jss/components/headerStyle.js +60 -62
  23. package/dist/assets/jss/components/navbarLinksStyle.js +137 -139
  24. package/dist/assets/jss/components/navbarStyle.js +71 -73
  25. package/dist/assets/jss/components/sidebarStyle.js +453 -455
  26. package/dist/assets/jss/components/typographyStyle.js +1 -1
  27. package/dist/assets/jss/rootStyle.js +57 -57
  28. package/dist/assets/jss/views/layoutStyle.js +42 -44
  29. package/dist/assets/jss/views/loginBasicStyle.js +1 -1
  30. package/dist/assets/jss/views/loginStyle.js +87 -89
  31. package/dist/components/AlertBar.js +21 -23
  32. package/dist/components/AlertItem.js +23 -25
  33. package/dist/components/AlertTemplate.js +29 -30
  34. package/dist/components/Button.js +35 -37
  35. package/dist/components/ConfirmationDialog.js +3 -3
  36. package/dist/components/DataGrid.js +250 -276
  37. package/dist/components/DataGridColumn.js +34 -36
  38. package/dist/components/DataGridFilter.js +92 -94
  39. package/dist/components/DataGridHeading.js +32 -38
  40. package/dist/components/DocumentViewer.js +12 -11
  41. package/dist/components/Graph.js +34 -50
  42. package/dist/components/GraphNode.js +53 -56
  43. package/dist/components/HtmlPanel.js +6 -8
  44. package/dist/components/Icon.js +28 -58
  45. package/dist/components/LoadingIndicator.js +2 -2
  46. package/dist/components/PopupView.js +15 -17
  47. package/dist/components/RegularButton.js +20 -20
  48. package/dist/components/TabPage.js +23 -25
  49. package/dist/components/TabPanel.js +34 -34
  50. package/dist/components/TableCellContent.js +34 -34
  51. package/dist/components/TitleBar.js +16 -16
  52. package/dist/components/Toolbar.js +112 -118
  53. package/dist/components/Tooltip.js +35 -43
  54. package/dist/components/Tree.js +54 -60
  55. package/dist/components/card/Card.js +17 -17
  56. package/dist/components/card/CardAvatar.js +10 -10
  57. package/dist/components/card/CardBody.js +14 -14
  58. package/dist/components/card/CardFooter.js +13 -13
  59. package/dist/components/card/CardHeader.js +14 -14
  60. package/dist/components/card/CardIcon.js +7 -7
  61. package/dist/components/card/CardText.js +7 -7
  62. package/dist/components/customInput/CustomInput.js +17 -17
  63. package/dist/components/dashboard/BasicApp.js +25 -25
  64. package/dist/components/dashboard/BasicBusinessApp.js +116 -119
  65. package/dist/components/dashboard/components/Header.js +11 -11
  66. package/dist/components/dashboard/components/LeftDrawer.js +3 -3
  67. package/dist/components/dashboard/components/UserIdentity.js +2 -2
  68. package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +85 -127
  69. package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +151 -191
  70. package/dist/components/footer/Footer.js +8 -8
  71. package/dist/components/footer/HomeFooter.js +34 -66
  72. package/dist/components/form/BaseField.js +78 -78
  73. package/dist/components/form/Checkbox.js +8 -10
  74. package/dist/components/form/DatePicker.js +15 -19
  75. package/dist/components/form/FieldSet.js +62 -88
  76. package/dist/components/form/Form.js +317 -318
  77. package/dist/components/form/GridField.js +81 -86
  78. package/dist/components/form/LabelField.js +10 -12
  79. package/dist/components/form/LookupField.js +40 -42
  80. package/dist/components/form/Section.js +37 -39
  81. package/dist/components/form/SelectItem.js +35 -39
  82. package/dist/components/form/TextField.js +18 -22
  83. package/dist/components/form/TimePicker.js +15 -19
  84. package/dist/components/form/TransferList.js +83 -91
  85. package/dist/components/form/UploadField.js +135 -145
  86. package/dist/components/grid/GridContainer.js +6 -6
  87. package/dist/components/grid/GridItem.js +6 -6
  88. package/dist/components/layout/CollapsiblePanel.js +18 -20
  89. package/dist/components/layout/Layout.js +70 -72
  90. package/dist/components/layout/View.js +134 -136
  91. package/dist/components/layout/ViewPort.js +56 -98
  92. package/dist/components/menu/CollapsibleMenu.js +26 -28
  93. package/dist/components/menu/MenuBars.js +53 -59
  94. package/dist/components/menu/MenuButton.js +70 -77
  95. package/dist/components/menu/MenuItem.js +15 -17
  96. package/dist/components/menu/MenuLink.js +9 -11
  97. package/dist/components/menu/PopupMenu.js +12 -16
  98. package/dist/components/navbars/AuthNavbar.js +12 -12
  99. package/dist/components/navbars/HomeNavbar.js +175 -222
  100. package/dist/components/navbars/NavbarLinks.js +45 -46
  101. package/dist/components/typography/Danger.js +3 -3
  102. package/dist/components/typography/Info.js +3 -3
  103. package/dist/components/typography/Link.js +3 -3
  104. package/dist/event/ActionHandlers.js +43 -57
  105. package/dist/event/Event.js +13 -16
  106. package/dist/event/EventListener.js +36 -39
  107. package/dist/event/EventType.js +1 -5
  108. package/dist/event/LoadDataActionHandler.js +8 -20
  109. package/dist/event/Observable.js +162 -198
  110. package/dist/event/RouteActionHandler.js +76 -88
  111. package/dist/event/ScriptActionHandler.js +8 -20
  112. package/dist/event/ServiceCallActionHandler.js +28 -40
  113. package/dist/event/SignalGraphActionHandler.js +7 -19
  114. package/dist/js/Addresses.js +15 -27
  115. package/dist/js/DynamicLib.js +11 -14
  116. package/dist/js/Validators.js +5 -6
  117. package/dist/redux/store/ConfigureStore.js +6 -6
  118. package/dist/redux/store/DashboardStore.js +83 -95
  119. package/dist/redux/store/History.js +1 -1
  120. package/dist/redux/store/SecurityStore.js +41 -45
  121. package/dist/security/TokenManager.js +30 -44
  122. package/dist/theme-default.js +1 -1
  123. package/dist/view/Dashboard.js +108 -114
  124. package/dist/view/Settings.js +2 -4
  125. package/dist/view/security/ChangePasswordBasic.js +96 -100
  126. package/dist/view/security/ForgotPassword.js +52 -56
  127. package/dist/view/security/ForgotPasswordBasic.js +48 -54
  128. package/dist/view/security/Login.js +58 -62
  129. package/dist/view/security/LoginBasic.js +50 -54
  130. package/dist/view/security/ResetPassword.js +58 -62
  131. package/dist/view/security/ResetPasswordBasic.js +89 -93
  132. package/dist/view/security/Security.js +12 -12
  133. package/package.json +1 -1
@@ -17,18 +17,10 @@ var _DynamicJS = _interopRequireDefault(require("../DynamicJS"));
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
-
22
- 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); } }
23
-
24
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
25
-
26
- var location = window.location.protocol + "//" + window.location.hostname;
27
-
28
- var RouteActionHandler = /*#__PURE__*/function () {
29
- function RouteActionHandler() {
30
- _classCallCheck(this, RouteActionHandler);
20
+ const location = window.location.protocol + "//" + window.location.hostname;
31
21
 
22
+ class RouteActionHandler {
23
+ constructor() {
32
24
  if (!RouteActionHandler.instance) {
33
25
  RouteActionHandler.instance = this;
34
26
  }
@@ -36,104 +28,100 @@ var RouteActionHandler = /*#__PURE__*/function () {
36
28
  return RouteActionHandler.instance;
37
29
  }
38
30
 
39
- _createClass(RouteActionHandler, [{
40
- key: "execute",
41
- value: function execute(actionConfig, event, component, currentViewId) {
42
- // TODO : Implement this full URL
43
- //String url = webUrl + "?version=1.0" + (viewPath != null ? "&id=" + URL.encodeQueryString(viewPath) : "")
44
- // + (viewPathRequestDto != null ? "&serviceRequest=" + URL.encodeQueryString(requestDtoWriter.write(viewPathRequestDto)) : "")
45
- // + (portalCurrentOrg != null ? "&profile=" + portalCurrentOrg : "");
46
- _ApplicationContext.default.enableFormMarkers(false);
47
-
48
- var forward = true;
49
- var path = null;
50
- var isParent = _Utils.default.isNull(actionConfig.parent) ? false : actionConfig.parent;
51
- var isPopup = _Utils.default.isNull(actionConfig.popUp) ? false : actionConfig.popUp;
52
-
53
- if (!_Utils.default.isNull(actionConfig.pathEvaluator)) {
54
- path = _DynamicJS.default.executeScriptObject(currentViewId + 'ViewEvaluator_' + event.source.id, actionConfig.pathEvaluator);
55
- } else {
56
- path = actionConfig.path === '$event.data' ? event.data : actionConfig.path;
57
-
58
- if ("@#{history.back}" === path) {
59
- var historyElement = _ApplicationContext.default.getPreviousHistoryElement();
60
-
61
- if (historyElement === null) {
62
- console.error("Invalid path. Cannot got back in history");
63
- return;
64
- }
65
-
66
- path = historyElement.path;
67
- forward = false;
31
+ execute(actionConfig, event, component, currentViewId) {
32
+ // TODO : Implement this full URL
33
+ //String url = webUrl + "?version=1.0" + (viewPath != null ? "&id=" + URL.encodeQueryString(viewPath) : "")
34
+ // + (viewPathRequestDto != null ? "&serviceRequest=" + URL.encodeQueryString(requestDtoWriter.write(viewPathRequestDto)) : "")
35
+ // + (portalCurrentOrg != null ? "&profile=" + portalCurrentOrg : "");
36
+ _ApplicationContext.default.enableFormMarkers(false);
37
+
38
+ let forward = true;
39
+ let path = null;
40
+ let isParent = _Utils.default.isNull(actionConfig.parent) ? false : actionConfig.parent;
41
+ let isPopup = _Utils.default.isNull(actionConfig.popUp) ? false : actionConfig.popUp;
42
+
43
+ if (!_Utils.default.isNull(actionConfig.pathEvaluator)) {
44
+ path = _DynamicJS.default.executeScriptObject(currentViewId + 'ViewEvaluator_' + event.source.id, actionConfig.pathEvaluator);
45
+ } else {
46
+ path = actionConfig.path === '$event.data' ? event.data : actionConfig.path;
47
+
48
+ if ("@#{history.back}" === path) {
49
+ let historyElement = _ApplicationContext.default.getPreviousHistoryElement();
50
+
51
+ if (historyElement === null) {
52
+ console.error("Invalid path. Cannot got back in history");
53
+ return;
68
54
  }
69
- }
70
55
 
71
- var parameterValues = [];
56
+ path = historyElement.path;
57
+ forward = false;
58
+ }
59
+ }
72
60
 
73
- if (!_Utils.default.isNull(actionConfig.parameters)) {
74
- for (var i = 0; i < actionConfig.parameters.length; i++) {
75
- var parameter = actionConfig.parameters[i];
61
+ let parameterValues = [];
76
62
 
77
- var parameterValue = _ApplicationContext.default.resolveParameterValue(parameter);
63
+ if (!_Utils.default.isNull(actionConfig.parameters)) {
64
+ for (let i = 0; i < actionConfig.parameters.length; i++) {
65
+ let parameter = actionConfig.parameters[i];
78
66
 
79
- var validator = parameter.validator;
67
+ let parameterValue = _ApplicationContext.default.resolveParameterValue(parameter);
80
68
 
81
- if (_Utils.default.isNull(parameterValue) && !_Utils.default.isNull(validator) && _Utils.default.evaluateBooleanExpression(validator.nullable, parameter.name) === false) {
82
- 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
69
+ let validator = parameter.validator;
83
70
 
84
- return;
85
- }
71
+ if (_Utils.default.isNull(parameterValue) && !_Utils.default.isNull(validator) && _Utils.default.evaluateBooleanExpression(validator.nullable, parameter.name) === false) {
72
+ 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
86
73
 
87
- var param = {};
88
- param.name = parameter.name;
89
- param.value = _Utils.default.isNull(parameterValue) ? null : parameterValue.instanceType === "TypedValue" ? parameterValue.value : parameterValue;
90
- parameterValues.push(param);
74
+ return;
91
75
  }
92
- }
93
76
 
94
- var url = location + "/agility/app/controller/view?version=1.0&id=" + path;
95
- (0, _RestUtils.sendRequest)(url, function (data) {
96
- if (isParent) {
97
- _ApplicationContext.default.removeLoadedGraph();
98
- }
77
+ let param = {};
78
+ param.name = parameter.name;
79
+ param.value = _Utils.default.isNull(parameterValue) ? null : parameterValue.instanceType === "TypedValue" ? parameterValue.value : parameterValue;
80
+ parameterValues.push(param);
81
+ }
82
+ }
99
83
 
100
- if (data.type === 'view') {
101
- var currentView = _ApplicationContext.default.getCurrentView();
84
+ let url = location + _ApplicationContext.default.getBaseApiUrl() + _ApplicationContext.default.getUIConfigPath() + "/view?version=1.0&id=" + path;
85
+ (0, _RestUtils.sendRequest)(url, data => {
86
+ if (isParent) {
87
+ _ApplicationContext.default.removeLoadedGraph();
88
+ }
102
89
 
103
- if (_Utils.default.isNull(currentView) || !currentView.popUp) {
104
- var view = {};
105
- view.config = data;
106
- view.handle = {};
107
- view.parameters = parameterValues;
108
- view.parent = isParent;
109
- view.popUp = isPopup;
90
+ if (data.type === 'view') {
91
+ let currentView = _ApplicationContext.default.getCurrentView();
110
92
 
111
- _ApplicationContext.default.addView(view, path, forward); // None-existing route to ensure that the current view unloads
93
+ if (_Utils.default.isNull(currentView) || !currentView.popUp) {
94
+ let view = {};
95
+ view.config = data;
96
+ view.handle = {};
97
+ view.parameters = parameterValues;
98
+ view.parent = isParent;
99
+ view.popUp = isPopup;
112
100
 
101
+ _ApplicationContext.default.addView(view, path, forward); // None-existing route to ensure that the current view unloads
113
102
 
114
- if (_Utils.default.isNull(actionConfig.popUp) || actionConfig.popUp === false) {
115
- _ApplicationContext.default.getViewPortHistory().push("/switch");
116
103
 
117
- _ApplicationContext.default.getViewPortHistory().push("/view/" + data.id);
118
- }
119
- } else {
120
- _ApplicationContext.default.closeCurrentView(false);
104
+ if (_Utils.default.isNull(actionConfig.popUp) || actionConfig.popUp === false) {
105
+ _ApplicationContext.default.getViewPortHistory().push("/switch");
121
106
 
122
- _ApplicationContext.default.getCurrentView().handle.api.updateModel(parameterValues);
107
+ _ApplicationContext.default.getViewPortHistory().push("/view/" + data.id);
123
108
  }
124
- } else if (data.type === 'graph') {
125
- _ApplicationContext.default.loadGraph(isParent, isPopup, data);
109
+ } else {
110
+ _ApplicationContext.default.closeCurrentView(false);
111
+
112
+ _ApplicationContext.default.getCurrentView().handle.api.updateModel(parameterValues);
126
113
  }
127
- }, function (e) {
128
- console.error(e);
129
- }, true, false);
130
- }
131
- }]);
114
+ } else if (data.type === 'graph') {
115
+ _ApplicationContext.default.loadGraph(isParent, isPopup, data);
116
+ }
117
+ }, e => {
118
+ console.error(e);
119
+ }, true, false);
120
+ }
132
121
 
133
- return RouteActionHandler;
134
- }();
122
+ }
135
123
 
136
- var instance = new RouteActionHandler();
124
+ const instance = new RouteActionHandler();
137
125
  Object.freeze(instance);
138
126
  var _default = instance;
139
127
  exports.default = _default;
@@ -11,16 +11,8 @@ var _DynamicJS = _interopRequireDefault(require("../DynamicJS"));
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
 
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
-
14
+ class ScriptActionHandler {
15
+ constructor() {
24
16
  if (!ScriptActionHandler.instance) {
25
17
  ScriptActionHandler.instance = this;
26
18
  }
@@ -28,19 +20,15 @@ var ScriptActionHandler = /*#__PURE__*/function () {
28
20
  return ScriptActionHandler.instance;
29
21
  }
30
22
 
31
- _createClass(ScriptActionHandler, [{
32
- key: "execute",
33
- value: function execute(actionConfig, event, component, currentViewId) {
34
- var componentId = event.getSource().api.id;
23
+ execute(actionConfig, event, component, currentViewId) {
24
+ let componentId = event.getSource().api.id;
35
25
 
36
- _DynamicJS.default.executeScriptObject(currentViewId + '_' + componentId + '_script', actionConfig.script, componentId, {}, event);
37
- }
38
- }]);
26
+ _DynamicJS.default.executeScriptObject(currentViewId + '_' + componentId + '_script', actionConfig.script, componentId, {}, event);
27
+ }
39
28
 
40
- return ScriptActionHandler;
41
- }();
29
+ }
42
30
 
43
- var instance = new ScriptActionHandler();
31
+ const instance = new ScriptActionHandler();
44
32
  Object.freeze(instance);
45
33
  var _default = instance;
46
34
  exports.default = _default;
@@ -15,16 +15,8 @@ var _Utils = _interopRequireDefault(require("./../Utils"));
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
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
-
18
+ class ServiceCallActionHandler {
19
+ constructor() {
28
20
  if (!ServiceCallActionHandler.instance) {
29
21
  ServiceCallActionHandler.instance = this;
30
22
  }
@@ -32,41 +24,37 @@ var ServiceCallActionHandler = /*#__PURE__*/function () {
32
24
  return ServiceCallActionHandler.instance;
33
25
  }
34
26
 
35
- _createClass(ServiceCallActionHandler, [{
36
- key: "execute",
37
- value: function execute(actionConfig, event, component, currentViewId, successCallback, errorCallback) {
38
- var method = actionConfig.service.type === 'remoteObjectProxy' ? _RestUtils.invokeRpc : _RestUtils.invokeRest;
39
- method(actionConfig.service, component, currentViewId, function (result) {
40
- var handle = !_Utils.default.isNull(component) && !_Utils.default.isNull(component.current) ? component.current : component;
41
-
42
- if (!_Utils.default.isNull(actionConfig.postScript)) {
43
- try {
44
- var valuesMap = {};
45
- valuesMap.response = result.data;
27
+ execute(actionConfig, event, component, currentViewId, successCallback, errorCallback) {
28
+ let method = actionConfig.service.type === 'remoteObjectProxy' ? _RestUtils.invokeRpc : _RestUtils.invokeRest;
29
+ method(actionConfig.service, component, currentViewId, result => {
30
+ let handle = !_Utils.default.isNull(component) && !_Utils.default.isNull(component.current) ? component.current : component;
46
31
 
47
- _DynamicJS.default.executeScriptObject('postScript_' + currentViewId + '_' + handle.getId(), actionConfig.postScript, handle.getId(), valuesMap);
48
- } catch (e) {
49
- console.error(e);
50
- }
51
- }
52
-
53
- if (!_Utils.default.isNull(successCallback)) {
54
- successCallback(result);
55
- }
56
- }, function (e) {
57
- _Utils.default.publishSystemErrorMessage(currentViewId);
32
+ if (!_Utils.default.isNull(actionConfig.postScript)) {
33
+ try {
34
+ let valuesMap = {};
35
+ valuesMap.response = result.data;
58
36
 
59
- if (!_Utils.default.isNull(errorCallback)) {
60
- errorCallback(e);
37
+ _DynamicJS.default.executeScriptObject('postScript_' + currentViewId + '_' + handle.getId(), actionConfig.postScript, handle.getId(), valuesMap);
38
+ } catch (e) {
39
+ console.error(e);
61
40
  }
62
- }, null, actionConfig.returnValueBinding, actionConfig.successMessage);
63
- }
64
- }]);
41
+ }
42
+
43
+ if (!_Utils.default.isNull(successCallback)) {
44
+ successCallback(result);
45
+ }
46
+ }, e => {
47
+ _Utils.default.publishSystemErrorMessage(currentViewId);
48
+
49
+ if (!_Utils.default.isNull(errorCallback)) {
50
+ errorCallback(e);
51
+ }
52
+ }, null, actionConfig.returnValueBinding, actionConfig.successMessage);
53
+ }
65
54
 
66
- return ServiceCallActionHandler;
67
- }();
55
+ }
68
56
 
69
- var instance = new ServiceCallActionHandler();
57
+ const instance = new ServiceCallActionHandler();
70
58
  Object.freeze(instance);
71
59
  var _default = instance;
72
60
  exports.default = _default;
@@ -13,16 +13,8 @@ var _ApplicationContext = _interopRequireDefault(require("../ApplicationContext"
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
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
-
16
+ class SignalGraphActionHandler {
17
+ constructor() {
26
18
  if (!SignalGraphActionHandler.instance) {
27
19
  SignalGraphActionHandler.instance = this;
28
20
  }
@@ -30,17 +22,13 @@ var SignalGraphActionHandler = /*#__PURE__*/function () {
30
22
  return SignalGraphActionHandler.instance;
31
23
  }
32
24
 
33
- _createClass(SignalGraphActionHandler, [{
34
- key: "execute",
35
- value: function execute(actionConfig, event, component, currentViewId) {
36
- _ApplicationContext.default.signalGraph(actionConfig.graphId, event);
37
- }
38
- }]);
25
+ execute(actionConfig, event, component, currentViewId) {
26
+ _ApplicationContext.default.signalGraph(actionConfig.graphId, event);
27
+ }
39
28
 
40
- return SignalGraphActionHandler;
41
- }();
29
+ }
42
30
 
43
- var instance = new SignalGraphActionHandler();
31
+ const instance = new SignalGraphActionHandler();
44
32
  Object.freeze(instance);
45
33
  var _default = instance;
46
34
  exports.default = _default;
@@ -5,37 +5,25 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
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
-
8
+ class Addresses {
9
+ constructor(resolver) {
18
10
  this.resolver = resolver;
19
11
  }
20
12
 
21
- _createClass(Addresses, [{
22
- key: "copy",
23
- value: function copy(from, to, checked) {
24
- if (checked) {
25
- var currentViewModel = this.resolver.resolveComponentApi('view').model;
26
- var fromAddressLine1 = currentViewModel[from + '.line1'];
27
- var fromAddressLine2 = currentViewModel[from + '.line2'];
28
- var fromAddressLine3 = currentViewModel[from + '.line3'];
29
- var fromAddressCode = currentViewModel[from + '.code'];
30
- this.resolver.resolveComponentApi(to + '.line1').value = fromAddressLine1;
31
- this.resolver.resolveComponentApi(to + '.line2').value = fromAddressLine2;
32
- this.resolver.resolveComponentApi(to + '.line3').value = fromAddressLine3;
33
- this.resolver.resolveComponentApi(to + '.code').value = fromAddressCode;
34
- }
13
+ copy(from, to, checked) {
14
+ if (checked) {
15
+ let currentViewModel = this.resolver.resolveComponentApi('view').model;
16
+ let fromAddressLine1 = currentViewModel[from + '.line1'];
17
+ let fromAddressLine2 = currentViewModel[from + '.line2'];
18
+ let fromAddressLine3 = currentViewModel[from + '.line3'];
19
+ let fromAddressCode = currentViewModel[from + '.code'];
20
+ this.resolver.resolveComponentApi(to + '.line1').value = fromAddressLine1;
21
+ this.resolver.resolveComponentApi(to + '.line2').value = fromAddressLine2;
22
+ this.resolver.resolveComponentApi(to + '.line3').value = fromAddressLine3;
23
+ this.resolver.resolveComponentApi(to + '.code').value = fromAddressCode;
35
24
  }
36
- }]);
25
+ }
37
26
 
38
- return Addresses;
39
- }();
27
+ }
40
28
 
41
29
  exports.default = Addresses;
@@ -9,24 +9,21 @@ var _Utils = _interopRequireDefault(require("./../Utils"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
-
14
12
  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; }
15
13
 
16
- var DynamicLib = function DynamicLib(resolver) {
17
- var _this = this;
18
-
19
- _classCallCheck(this, DynamicLib);
14
+ class DynamicLib {
15
+ constructor(resolver) {
16
+ _defineProperty(this, "evaluateExpression", expression => {
17
+ return this.resolver.resolveExpressionValue(expression);
18
+ });
20
19
 
21
- _defineProperty(this, "evaluateExpression", function (expression) {
22
- return _this.resolver.resolveExpressionValue(expression);
23
- });
20
+ _defineProperty(this, "isNull", value => {
21
+ return _Utils.default.isNull(value);
22
+ });
24
23
 
25
- _defineProperty(this, "isNull", function (value) {
26
- return _Utils.default.isNull(value);
27
- });
24
+ this.resolver = resolver;
25
+ }
28
26
 
29
- this.resolver = resolver;
30
- };
27
+ }
31
28
 
32
29
  exports.default = DynamicLib;
@@ -9,12 +9,11 @@ var _Utils = _interopRequireDefault(require("../Utils"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12
+ class Validators {
13
+ constructor(resolver) {
14
+ this.resolver = resolver;
15
+ }
13
16
 
14
- var Validators = function Validators(resolver) {
15
- _classCallCheck(this, Validators);
16
-
17
- this.resolver = resolver;
18
- };
17
+ }
19
18
 
20
19
  exports.default = Validators;
@@ -28,21 +28,21 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
28
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; }
29
29
 
30
30
  function ConfigureStore(history, initialState) {
31
- var reducers = {
31
+ const reducers = {
32
32
  security: Security.reducer,
33
33
  dashboard: Dashboard.reducer
34
34
  };
35
- var middleware = [_reduxThunk.default, (0, _connectedReactRouter.routerMiddleware)(history)]; // In development, use the browser's Redux dev tools extension if installed
35
+ const middleware = [_reduxThunk.default, (0, _connectedReactRouter.routerMiddleware)(history)]; // In development, use the browser's Redux dev tools extension if installed
36
36
 
37
- var enhancers = [];
38
- var isDevelopment = process.env.NODE_ENV === 'development';
37
+ const enhancers = [];
38
+ const isDevelopment = process.env.NODE_ENV === 'development';
39
39
 
40
40
  if (isDevelopment && typeof window !== 'undefined' && window.devToolsExtension) {
41
41
  enhancers.push(window.devToolsExtension());
42
42
  }
43
43
 
44
- var rootReducer = (0, _redux.combineReducers)(_objectSpread(_objectSpread({}, reducers), {}, {
44
+ const rootReducer = (0, _redux.combineReducers)(_objectSpread(_objectSpread({}, reducers), {}, {
45
45
  router: (0, _connectedReactRouter.connectRouter)(history)
46
46
  }));
47
- return (0, _redux.createStore)(rootReducer, initialState, _redux.compose.apply(void 0, [_redux.applyMiddleware.apply(void 0, middleware)].concat(enhancers)));
47
+ return (0, _redux.createStore)(rootReducer, initialState, (0, _redux.compose)((0, _redux.applyMiddleware)(...middleware), ...enhancers));
48
48
  }