@agilemotion/oui-react-js 1.3.4 → 1.3.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/BusinessPortalAppHome.js +21 -7
- package/dist/RestUtils.js +23 -17
- package/dist/Utils.js +1 -3
- package/dist/components/PopupView.js +4 -3
- package/dist/components/SignaturePanel.js +3 -8
- package/dist/components/StepperTitleBar.css +7 -1
- package/dist/components/StepperTitleBar.js +13 -12
- package/dist/components/TemplateDesigner.css +5 -1
- package/dist/components/TemplateDesigner.js +48 -16
- package/dist/components/TemplateItemEventHandler.js +116 -84
- package/dist/components/form/BaseField.js +2 -1
- package/dist/components/form/FieldSet.js +18 -15
- package/dist/components/form/Form.css +1 -0
- package/dist/components/form/Form.js +3 -2
- package/dist/components/form/ImageEditor.js +15 -10
- package/dist/components/layout/Layout.js +0 -1
- package/dist/components/menu/MenuButton.js +0 -3
- package/dist/components/signatures/DocumentContainer.js +4 -4
- package/dist/components/signatures/OLD.js +1138 -0
- package/dist/components/signatures/SignatureInputProps.js +0 -7
- package/dist/components/signatures/SignatureTemplateDesigner.js +197 -487
- package/dist/event/ActionHandlers.js +1 -1
- package/dist/event/LoadDataActionHandler.js +1 -1
- package/dist/event/RouteActionHandler.js +37 -33
- package/dist/event/ServiceCallActionHandler.js +1 -1
- package/dist/js/Addresses.js +13 -13
- package/package.json +1 -1
|
@@ -74,7 +74,7 @@ class ActionHandlers {
|
|
|
74
74
|
let shouldRun = true;
|
|
75
75
|
|
|
76
76
|
if (!_Utils.default.isNull(preCondition)) {
|
|
77
|
-
shouldRun = _DynamicJS.default.executeScript(Math.random() + "_action_pre_condition", preCondition);
|
|
77
|
+
shouldRun = _DynamicJS.default.executeScript(Math.random() + "_" + viewId + "_" + (component ? component.api.id : "NO_COMPONENT") + "_action_pre_condition", preCondition);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
if (shouldRun) {
|
|
@@ -51,7 +51,7 @@ class RouteActionHandler {
|
|
|
51
51
|
} else {
|
|
52
52
|
path = _ApplicationContext.default.isExpression(actionConfig.path) ? _ApplicationContext.default.resolveExpressionValue(actionConfig.path, event.data) : actionConfig.path;
|
|
53
53
|
|
|
54
|
-
if ("@#{history.back}" === actionConfig.path) {
|
|
54
|
+
if ("@#{history.back}" === actionConfig.path && _ApplicationContext.default.graphs.length === 0) {
|
|
55
55
|
let historyElement = _ApplicationContext.default.getPreviousHistoryElement();
|
|
56
56
|
|
|
57
57
|
if (historyElement === null) {
|
|
@@ -87,49 +87,53 @@ class RouteActionHandler {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
if ("@#{history.back}" === actionConfig.path && _ApplicationContext.default.graphs.length > 0) {
|
|
91
|
+
_ApplicationContext.default.removeLoadedGraph();
|
|
92
|
+
} else {
|
|
93
|
+
let url = location + _ApplicationContext.default.getBaseApiUrl() + _ApplicationContext.default.getUIConfigPath() + "/view?version=1.0&id=" + path;
|
|
94
|
+
(0, _RestUtils.sendRequest)(url, data => {
|
|
95
|
+
if (isParent) {
|
|
96
|
+
_ApplicationContext.default.removeLoadedGraph();
|
|
97
|
+
}
|
|
95
98
|
|
|
96
|
-
|
|
97
|
-
|
|
99
|
+
if (data.type === 'view') {
|
|
100
|
+
let currentView = _ApplicationContext.default.getCurrentView();
|
|
98
101
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
if (_Utils.default.isNull(currentView) || !currentView.popUp) {
|
|
103
|
+
let view = {};
|
|
104
|
+
view.config = data;
|
|
105
|
+
view.handle = {};
|
|
106
|
+
view.parameters = parameterValues;
|
|
107
|
+
view.parent = isParent;
|
|
108
|
+
view.popUp = isPopup;
|
|
106
109
|
|
|
107
|
-
|
|
110
|
+
_ApplicationContext.default.addView(view, path, forward); // None-existing route to ensure that the current view unloads
|
|
108
111
|
|
|
109
112
|
|
|
110
|
-
|
|
111
|
-
|
|
113
|
+
if (_Utils.default.isNull(actionConfig.popUp) || actionConfig.popUp === false) {
|
|
114
|
+
_ApplicationContext.default.getViewPortHistory().push("/switch");
|
|
112
115
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
_ApplicationContext.default.getViewPortHistory().push("/view/" + data.id);
|
|
117
|
+
}
|
|
118
|
+
} else {
|
|
119
|
+
_ApplicationContext.default.closeCurrentView(false);
|
|
117
120
|
|
|
118
|
-
|
|
121
|
+
currentView = _ApplicationContext.default.getCurrentView();
|
|
119
122
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
if (currentView) {
|
|
124
|
+
currentView.handle.api.updateModel(parameterValues);
|
|
125
|
+
let event = new _Event.default(currentView.handle, currentView.config.id, null);
|
|
123
126
|
|
|
124
|
-
|
|
127
|
+
_Observable.default.fireEvent(_EventType.default.COMPONENT_LOAD, event);
|
|
128
|
+
}
|
|
125
129
|
}
|
|
130
|
+
} else if (data.type === 'graph') {
|
|
131
|
+
_ApplicationContext.default.loadGraph(isParent, isPopup, data, parameterValues);
|
|
126
132
|
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
console.error(e);
|
|
132
|
-
}, true, false);
|
|
133
|
+
}, e => {
|
|
134
|
+
console.error(e);
|
|
135
|
+
}, true, false);
|
|
136
|
+
}
|
|
133
137
|
}
|
|
134
138
|
|
|
135
139
|
}
|
|
@@ -53,7 +53,7 @@ class ServiceCallActionHandler {
|
|
|
53
53
|
if (invalidParameterCallback) {
|
|
54
54
|
invalidParameterCallback();
|
|
55
55
|
}
|
|
56
|
-
}, actionConfig.returnValueBinding, actionConfig.successMessage);
|
|
56
|
+
}, actionConfig.returnValueBinding, actionConfig.successMessage, event);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
}
|
package/dist/js/Addresses.js
CHANGED
|
@@ -10,22 +10,22 @@ class Addresses {
|
|
|
10
10
|
this.resolver = resolver;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
copy(from, to, checked) {
|
|
13
|
+
copy(from, to, checked, mode = 'line') {
|
|
14
14
|
if (checked) {
|
|
15
|
-
let street = this.resolver.resolveComponentApi(from + '.street').value;
|
|
16
|
-
let suburb = this.resolver.resolveComponentApi(from + '.suburb').value;
|
|
17
|
-
let city = this.resolver.resolveComponentApi(from + '.city').value;
|
|
18
|
-
let municipality = this.resolver.resolveComponentApi(from + '.municipality').value;
|
|
19
|
-
let province = this.resolver.resolveComponentApi(from + '.province').value;
|
|
20
|
-
let country = this.resolver.resolveComponentApi(from + '.country').value;
|
|
15
|
+
let street = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.street' : '.line1')).value;
|
|
16
|
+
let suburb = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.suburb' : '.line2')).value;
|
|
17
|
+
let city = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.city' : '.line3')).value;
|
|
18
|
+
let municipality = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.municipality' : '.line4')).value;
|
|
19
|
+
let province = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.province' : '.line5')).value;
|
|
20
|
+
let country = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.country' : '.line6')).value;
|
|
21
21
|
let code = this.resolver.resolveComponentApi(from + '.code').value;
|
|
22
22
|
let building = this.resolver.resolveComponentApi(from + '.building').value;
|
|
23
|
-
this.resolver.resolveComponentApi(to + '.street').value = street;
|
|
24
|
-
this.resolver.resolveComponentApi(to + '.suburb').value = suburb;
|
|
25
|
-
this.resolver.resolveComponentApi(to + '.city').value = city;
|
|
26
|
-
this.resolver.resolveComponentApi(to + '.municipality').value = municipality;
|
|
27
|
-
this.resolver.resolveComponentApi(to + '.province').value = province;
|
|
28
|
-
this.resolver.resolveComponentApi(to + '.country').value = country;
|
|
23
|
+
this.resolver.resolveComponentApi(to + (mode === 'street' ? '.street' : '.line1')).value = street;
|
|
24
|
+
this.resolver.resolveComponentApi(to + (mode === 'street' ? '.suburb' : '.line2')).value = suburb;
|
|
25
|
+
this.resolver.resolveComponentApi(to + (mode === 'street' ? '.city' : '.line3')).value = city;
|
|
26
|
+
this.resolver.resolveComponentApi(to + (mode === 'street' ? '.municipality' : '.line4')).value = municipality;
|
|
27
|
+
this.resolver.resolveComponentApi(to + (mode === 'street' ? '.province' : '.line5')).value = province;
|
|
28
|
+
this.resolver.resolveComponentApi(to + (mode === 'street' ? '.country' : '.line6')).value = country;
|
|
29
29
|
this.resolver.resolveComponentApi(to + '.code').value = code;
|
|
30
30
|
this.resolver.resolveComponentApi(to + '.building').value = building;
|
|
31
31
|
}
|