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