@agilemotion/oui-react-js 1.8.47 → 1.8.48
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/components/DocumentViewer.js +9 -5
- package/dist/components/Graph.js +1 -1
- package/dist/components/SocketManager.js +2 -1
- package/dist/components/StepperTitleBar.css +2 -2
- package/dist/components/WordDocumentViewer.js +1 -1
- package/dist/components/form/Form.js +0 -1
- package/dist/components/layout/View.css +10 -0
- package/dist/components/layout/View.js +7 -7
- package/package.json +1 -1
|
@@ -38,6 +38,7 @@ const DocumentViewer = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.defa
|
|
|
38
38
|
if (props.config.attributes?.autoLoadData === false) {
|
|
39
39
|
setLoading(false);
|
|
40
40
|
}
|
|
41
|
+
refresh();
|
|
41
42
|
}, []);
|
|
42
43
|
function doLoadData(actionConfig) {
|
|
43
44
|
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
@@ -99,6 +100,13 @@ const DocumentViewer = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.defa
|
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
102
|
}
|
|
103
|
+
function refresh() {
|
|
104
|
+
if (!_Utils.default.isNull(props.config) && !_Utils.default.isNull(props.config.visible)) {
|
|
105
|
+
setVisible(_Utils.default.evaluateBooleanExpression(props.config.visible, props.config.id));
|
|
106
|
+
} else {
|
|
107
|
+
setVisible(true);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
102
110
|
const api = () => {
|
|
103
111
|
return {
|
|
104
112
|
get id() {
|
|
@@ -111,11 +119,7 @@ const DocumentViewer = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.defa
|
|
|
111
119
|
setLabel(label);
|
|
112
120
|
},
|
|
113
121
|
refresh() {
|
|
114
|
-
|
|
115
|
-
setVisible(_Utils.default.evaluateBooleanExpression(props.config.visible, props.config.id));
|
|
116
|
-
} else {
|
|
117
|
-
setVisible(true);
|
|
118
|
-
}
|
|
122
|
+
refresh(props, setVisible);
|
|
119
123
|
},
|
|
120
124
|
setValue(newValue) {
|
|
121
125
|
setValue(newValue);
|
package/dist/components/Graph.js
CHANGED
|
@@ -70,7 +70,7 @@ class Graph {
|
|
|
70
70
|
signal = event => {
|
|
71
71
|
let nextNodeName = this.current.getNextNode(event);
|
|
72
72
|
if (this.current.config.last && nextNodeName === null) {
|
|
73
|
-
_ApplicationManager.default.removeLoadedGraph(
|
|
73
|
+
_ApplicationManager.default.removeLoadedGraph(this.config.isWindow ? 'window' : 'main');
|
|
74
74
|
} else {
|
|
75
75
|
if (!_Utils.default.isNull(nextNodeName)) {
|
|
76
76
|
for (const node of this.config.nodes) {
|
|
@@ -101,7 +101,8 @@ class SocketManager {
|
|
|
101
101
|
registerOnline() {
|
|
102
102
|
let userDetails = _ApplicationManager.default.getUserDetails();
|
|
103
103
|
// TODO : Resolve the hardcoding
|
|
104
|
-
let profile =
|
|
104
|
+
let profile = 'COJ';
|
|
105
|
+
//let profile = typeof userDetails.profile === 'string' || JSON.parse(userDetails.profile) === 'string' ? userDetails.profile : 'COJ';
|
|
105
106
|
console.log('***** REGISTERING ONLINE ***** [' + profile + ']');
|
|
106
107
|
this.emitEvent(_SocketRequest.default.REGISTER_ONLINE, {
|
|
107
108
|
user: {
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
color: #888888;
|
|
30
30
|
border: 1px solid #888888;
|
|
31
31
|
display: flex;
|
|
32
|
-
justify-content: center;
|
|
33
32
|
align-items: center;
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
.box,
|
|
37
36
|
.box-pending {
|
|
38
37
|
width: calc(100% - 16px);
|
|
38
|
+
justify-content: flex-start;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.box-pending {
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
border-right: 1px solid #888888;
|
|
44
44
|
border-top: 1px solid #888888;
|
|
45
45
|
border-bottom: 1px solid #888888;
|
|
46
|
-
justify-content: flex-start;
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
.first-box {
|
|
@@ -92,6 +91,7 @@
|
|
|
92
91
|
height: 30px;
|
|
93
92
|
font-size: 18px;
|
|
94
93
|
border-radius: 50%;
|
|
94
|
+
justify-content: center;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/* active step dot */
|
|
@@ -84,7 +84,7 @@ const WordDocumentViewer = props => {
|
|
|
84
84
|
const [json, setJson] = _react.default.useState(null);
|
|
85
85
|
const [errorMessage, setErrorMessage] = _react.default.useState(null);
|
|
86
86
|
const ref = useOnFullyVisible(el => {
|
|
87
|
-
console.log('Document fully visible & rendered:', el);
|
|
87
|
+
//console.log('Document fully visible & rendered:', el);
|
|
88
88
|
if (!reRendering) {
|
|
89
89
|
setVisible(false);
|
|
90
90
|
setReRendering(true);
|
|
@@ -331,7 +331,6 @@ const Form = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwar
|
|
|
331
331
|
let autoLoadData = _Utils.default.getComponentAttribute(config, 'autoLoadData', null);
|
|
332
332
|
if (autoLoadData === null || autoLoadData === true) {
|
|
333
333
|
let subscription = {
|
|
334
|
-
publisher: props.viewId,
|
|
335
334
|
eventType: _EventType.default.COMPONENT_LOAD,
|
|
336
335
|
actions: [{
|
|
337
336
|
actionType: 'loadData'
|
|
@@ -6,6 +6,16 @@
|
|
|
6
6
|
border-radius: 4px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
.success-green-text,
|
|
10
|
+
.success-green-text td {
|
|
11
|
+
color: #2e7d32;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.bold-text,
|
|
15
|
+
.bold-text td {
|
|
16
|
+
font-weight: bold;
|
|
17
|
+
}
|
|
18
|
+
|
|
9
19
|
.view .sticky-header {
|
|
10
20
|
position: sticky; top: 0; z-index: 1;
|
|
11
21
|
box-sizing: border-box;
|
|
@@ -98,13 +98,6 @@ const View = props => {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
_ApplicationManager.default.updateAppBarTitle(parsedConfig.id, parsedConfig.title);
|
|
101
|
-
let data = {};
|
|
102
|
-
data.viewId = props.config.id;
|
|
103
|
-
let event = new _Event.default(props.handle, props.config.id, data);
|
|
104
|
-
_Observable.default.fireEvent(_EventType.default.COMPONENT_LOAD, event);
|
|
105
|
-
if (props.loadCallback) {
|
|
106
|
-
props.loadCallback();
|
|
107
|
-
}
|
|
108
101
|
const el = viewRef.current;
|
|
109
102
|
let ro;
|
|
110
103
|
if (el) {
|
|
@@ -128,6 +121,13 @@ const View = props => {
|
|
|
128
121
|
ro.observe(headerEl);
|
|
129
122
|
}
|
|
130
123
|
}
|
|
124
|
+
let data = {};
|
|
125
|
+
data.viewId = props.config.id;
|
|
126
|
+
let event = new _Event.default(props.handle, props.config.id, data);
|
|
127
|
+
_Observable.default.fireEvent(_EventType.default.COMPONENT_LOAD, event);
|
|
128
|
+
if (props.loadCallback) {
|
|
129
|
+
props.loadCallback();
|
|
130
|
+
}
|
|
131
131
|
return () => {
|
|
132
132
|
_Observable.default.clearEventListeners(props.config.id);
|
|
133
133
|
if (el) {
|
package/package.json
CHANGED