@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.
- package/dist/ApplicationContext.js +244 -250
- package/dist/BasicApp.js +53 -97
- package/dist/BasicAppHome.js +86 -122
- package/dist/DynamicJS.js +65 -88
- package/dist/RestUtils.js +284 -315
- package/dist/TypedValue.js +15 -18
- package/dist/Utils.js +224 -262
- package/dist/assets/jss/components/authNavbarStyle.js +162 -164
- package/dist/assets/jss/components/buttonStyle.js +1 -1
- package/dist/assets/jss/components/cardAvatarStyle.js +1 -1
- package/dist/assets/jss/components/cardBodyStyle.js +1 -1
- package/dist/assets/jss/components/cardFooterStyle.js +1 -1
- package/dist/assets/jss/components/cardHeaderStyle.js +1 -1
- package/dist/assets/jss/components/cardIconStyle.js +1 -1
- package/dist/assets/jss/components/cardStyle.js +1 -1
- package/dist/assets/jss/components/cardTextStyle.js +1 -1
- package/dist/assets/jss/components/customDropdownStyle.js +192 -194
- package/dist/assets/jss/components/customInputStyle.js +1 -1
- package/dist/assets/jss/components/dropdownStyle.js +107 -109
- package/dist/assets/jss/components/footerStyle.js +1 -1
- package/dist/assets/jss/components/headerLinksStyle.js +95 -97
- package/dist/assets/jss/components/headerStyle.js +60 -62
- package/dist/assets/jss/components/navbarLinksStyle.js +137 -139
- package/dist/assets/jss/components/navbarStyle.js +71 -73
- package/dist/assets/jss/components/sidebarStyle.js +453 -455
- package/dist/assets/jss/components/typographyStyle.js +1 -1
- package/dist/assets/jss/rootStyle.js +57 -57
- package/dist/assets/jss/views/layoutStyle.js +42 -44
- package/dist/assets/jss/views/loginBasicStyle.js +1 -1
- package/dist/assets/jss/views/loginStyle.js +87 -89
- package/dist/components/AlertBar.js +21 -23
- package/dist/components/AlertItem.js +23 -25
- package/dist/components/AlertTemplate.js +29 -30
- package/dist/components/Button.js +35 -37
- package/dist/components/ConfirmationDialog.js +3 -3
- package/dist/components/DataGrid.js +250 -276
- package/dist/components/DataGridColumn.js +34 -36
- package/dist/components/DataGridFilter.js +92 -94
- package/dist/components/DataGridHeading.js +32 -38
- package/dist/components/DocumentViewer.js +12 -11
- package/dist/components/Graph.js +34 -50
- package/dist/components/GraphNode.js +53 -56
- package/dist/components/HtmlPanel.js +6 -8
- package/dist/components/Icon.js +28 -58
- package/dist/components/LoadingIndicator.js +2 -2
- package/dist/components/PopupView.js +15 -17
- package/dist/components/RegularButton.js +20 -20
- package/dist/components/TabPage.js +23 -25
- package/dist/components/TabPanel.js +34 -34
- package/dist/components/TableCellContent.js +34 -34
- package/dist/components/TitleBar.js +16 -16
- package/dist/components/Toolbar.js +112 -118
- package/dist/components/Tooltip.js +35 -43
- package/dist/components/Tree.js +54 -60
- package/dist/components/card/Card.js +17 -17
- package/dist/components/card/CardAvatar.js +10 -10
- package/dist/components/card/CardBody.js +14 -14
- package/dist/components/card/CardFooter.js +13 -13
- package/dist/components/card/CardHeader.js +14 -14
- package/dist/components/card/CardIcon.js +7 -7
- package/dist/components/card/CardText.js +7 -7
- package/dist/components/customInput/CustomInput.js +17 -17
- package/dist/components/dashboard/BasicApp.js +25 -25
- package/dist/components/dashboard/BasicBusinessApp.js +116 -119
- package/dist/components/dashboard/components/Header.js +11 -11
- package/dist/components/dashboard/components/LeftDrawer.js +3 -3
- package/dist/components/dashboard/components/UserIdentity.js +2 -2
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +85 -127
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +151 -191
- package/dist/components/footer/Footer.js +8 -8
- package/dist/components/footer/HomeFooter.js +34 -66
- package/dist/components/form/BaseField.js +78 -78
- package/dist/components/form/Checkbox.js +8 -10
- package/dist/components/form/DatePicker.js +15 -19
- package/dist/components/form/FieldSet.js +62 -88
- package/dist/components/form/Form.js +317 -318
- package/dist/components/form/GridField.js +81 -86
- package/dist/components/form/LabelField.js +10 -12
- package/dist/components/form/LookupField.js +40 -42
- package/dist/components/form/Section.js +37 -39
- package/dist/components/form/SelectItem.js +35 -39
- package/dist/components/form/TextField.js +18 -22
- package/dist/components/form/TimePicker.js +15 -19
- package/dist/components/form/TransferList.js +83 -91
- package/dist/components/form/UploadField.js +135 -145
- package/dist/components/grid/GridContainer.js +6 -6
- package/dist/components/grid/GridItem.js +6 -6
- package/dist/components/layout/CollapsiblePanel.js +18 -20
- package/dist/components/layout/Layout.js +70 -72
- package/dist/components/layout/View.js +134 -136
- package/dist/components/layout/ViewPort.js +56 -98
- package/dist/components/menu/CollapsibleMenu.js +26 -28
- package/dist/components/menu/MenuBars.js +53 -59
- package/dist/components/menu/MenuButton.js +70 -77
- package/dist/components/menu/MenuItem.js +15 -17
- package/dist/components/menu/MenuLink.js +9 -11
- package/dist/components/menu/PopupMenu.js +12 -16
- package/dist/components/navbars/AuthNavbar.js +12 -12
- package/dist/components/navbars/HomeNavbar.js +175 -222
- package/dist/components/navbars/NavbarLinks.js +45 -46
- package/dist/components/typography/Danger.js +3 -3
- package/dist/components/typography/Info.js +3 -3
- package/dist/components/typography/Link.js +3 -3
- package/dist/event/ActionHandlers.js +43 -57
- package/dist/event/Event.js +13 -16
- package/dist/event/EventListener.js +36 -39
- package/dist/event/EventType.js +1 -5
- package/dist/event/LoadDataActionHandler.js +8 -20
- package/dist/event/Observable.js +162 -198
- package/dist/event/RouteActionHandler.js +76 -88
- package/dist/event/ScriptActionHandler.js +8 -20
- package/dist/event/ServiceCallActionHandler.js +28 -40
- package/dist/event/SignalGraphActionHandler.js +7 -19
- package/dist/js/Addresses.js +15 -27
- package/dist/js/DynamicLib.js +11 -14
- package/dist/js/Validators.js +5 -6
- package/dist/redux/store/ConfigureStore.js +6 -6
- package/dist/redux/store/DashboardStore.js +83 -95
- package/dist/redux/store/History.js +1 -1
- package/dist/redux/store/SecurityStore.js +41 -45
- package/dist/security/TokenManager.js +30 -44
- package/dist/theme-default.js +1 -1
- package/dist/view/Dashboard.js +108 -114
- package/dist/view/Settings.js +2 -4
- package/dist/view/security/ChangePasswordBasic.js +96 -100
- package/dist/view/security/ForgotPassword.js +52 -56
- package/dist/view/security/ForgotPasswordBasic.js +48 -54
- package/dist/view/security/Login.js +58 -62
- package/dist/view/security/LoginBasic.js +50 -54
- package/dist/view/security/ResetPassword.js +58 -62
- package/dist/view/security/ResetPasswordBasic.js +89 -93
- package/dist/view/security/Security.js +12 -12
- 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
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
56
|
+
path = historyElement.path;
|
|
57
|
+
forward = false;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
72
60
|
|
|
73
|
-
|
|
74
|
-
for (var i = 0; i < actionConfig.parameters.length; i++) {
|
|
75
|
-
var parameter = actionConfig.parameters[i];
|
|
61
|
+
let parameterValues = [];
|
|
76
62
|
|
|
77
|
-
|
|
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
|
-
|
|
67
|
+
let parameterValue = _ApplicationContext.default.resolveParameterValue(parameter);
|
|
80
68
|
|
|
81
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
|
|
101
|
-
|
|
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
|
-
|
|
104
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
107
|
+
_ApplicationContext.default.getViewPortHistory().push("/view/" + data.id);
|
|
123
108
|
}
|
|
124
|
-
} else
|
|
125
|
-
_ApplicationContext.default.
|
|
109
|
+
} else {
|
|
110
|
+
_ApplicationContext.default.closeCurrentView(false);
|
|
111
|
+
|
|
112
|
+
_ApplicationContext.default.getCurrentView().handle.api.updateModel(parameterValues);
|
|
126
113
|
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
}
|
|
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
|
-
|
|
134
|
-
}();
|
|
122
|
+
}
|
|
135
123
|
|
|
136
|
-
|
|
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
|
-
|
|
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
|
-
|
|
32
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
}]);
|
|
26
|
+
_DynamicJS.default.executeScriptObject(currentViewId + '_' + componentId + '_script', actionConfig.script, componentId, {}, event);
|
|
27
|
+
}
|
|
39
28
|
|
|
40
|
-
|
|
41
|
-
}();
|
|
29
|
+
}
|
|
42
30
|
|
|
43
|
-
|
|
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
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
60
|
-
|
|
37
|
+
_DynamicJS.default.executeScriptObject('postScript_' + currentViewId + '_' + handle.getId(), actionConfig.postScript, handle.getId(), valuesMap);
|
|
38
|
+
} catch (e) {
|
|
39
|
+
console.error(e);
|
|
61
40
|
}
|
|
62
|
-
}
|
|
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
|
-
|
|
67
|
-
}();
|
|
55
|
+
}
|
|
68
56
|
|
|
69
|
-
|
|
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
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
41
|
-
}();
|
|
29
|
+
}
|
|
42
30
|
|
|
43
|
-
|
|
31
|
+
const instance = new SignalGraphActionHandler();
|
|
44
32
|
Object.freeze(instance);
|
|
45
33
|
var _default = instance;
|
|
46
34
|
exports.default = _default;
|
package/dist/js/Addresses.js
CHANGED
|
@@ -5,37 +5,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
39
|
-
}();
|
|
27
|
+
}
|
|
40
28
|
|
|
41
29
|
exports.default = Addresses;
|
package/dist/js/DynamicLib.js
CHANGED
|
@@ -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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
class DynamicLib {
|
|
15
|
+
constructor(resolver) {
|
|
16
|
+
_defineProperty(this, "evaluateExpression", expression => {
|
|
17
|
+
return this.resolver.resolveExpressionValue(expression);
|
|
18
|
+
});
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
_defineProperty(this, "isNull", value => {
|
|
21
|
+
return _Utils.default.isNull(value);
|
|
22
|
+
});
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
});
|
|
24
|
+
this.resolver = resolver;
|
|
25
|
+
}
|
|
28
26
|
|
|
29
|
-
|
|
30
|
-
};
|
|
27
|
+
}
|
|
31
28
|
|
|
32
29
|
exports.default = DynamicLib;
|
package/dist/js/Validators.js
CHANGED
|
@@ -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
|
-
|
|
12
|
+
class Validators {
|
|
13
|
+
constructor(resolver) {
|
|
14
|
+
this.resolver = resolver;
|
|
15
|
+
}
|
|
13
16
|
|
|
14
|
-
|
|
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
|
-
|
|
31
|
+
const reducers = {
|
|
32
32
|
security: Security.reducer,
|
|
33
33
|
dashboard: Dashboard.reducer
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
const middleware = [_reduxThunk.default, (0, _connectedReactRouter.routerMiddleware)(history)]; // In development, use the browser's Redux dev tools extension if installed
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
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
|
|
47
|
+
return (0, _redux.createStore)(rootReducer, initialState, (0, _redux.compose)((0, _redux.applyMiddleware)(...middleware), ...enhancers));
|
|
48
48
|
}
|