@agilemotion/oui-react-js 1.3.1 → 1.3.2
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 +72 -12
- package/dist/BasicApp.js +12 -5
- package/dist/BasicAppHome.js +2 -2
- package/dist/BusinessPortalApp.css +37 -0
- package/dist/BusinessPortalApp.js +115 -0
- package/dist/BusinessPortalAppHome.js +167 -0
- package/dist/RestUtils.js +1 -5
- package/dist/assets/jss/components/footerStyle.js +7 -4
- package/dist/assets/jss/views/loginBasicStyle.js +0 -1
- package/dist/assets/jss/views/loginBusinessPortalStyle.js +76 -0
- package/dist/components/Graph.js +26 -18
- package/dist/components/GraphNode.js +0 -2
- package/dist/components/Icon.js +8 -0
- package/dist/components/SignaturePanel.js +118 -0
- package/dist/components/StepperTitleBar.js +4 -2
- package/dist/components/dashboard/{BasicBusinessApp.js → BasicBusinessAppDashboard.js} +17 -16
- package/dist/components/dashboard/BusinessPortalAppDashboard.css +5 -0
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +191 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +23 -12
- package/dist/components/dashboard/components/portal/Timeline.js +17 -0
- package/dist/components/dashboard/components/portal/Workspace.css +25 -0
- package/dist/components/dashboard/components/portal/Workspace.js +48 -0
- package/dist/components/dashboard/components/portal/portal-dashboard.css +25 -0
- package/dist/components/footer/Footer.js +43 -10
- package/dist/components/form/BaseField.js +11 -2
- package/dist/components/form/DatePicker.js +62 -1
- package/dist/components/form/FieldSet.js +1 -1
- package/dist/components/form/Form.js +26 -6
- package/dist/components/form/SelectItem.js +10 -3
- package/dist/components/form/UploadField.js +122 -44
- package/dist/components/layout/Layout.js +9 -0
- package/dist/components/layout/ViewPort.js +3 -2
- package/dist/components/menu/MenuLink.js +7 -0
- package/dist/components/navbars/HomeNavbar.js +0 -10
- package/dist/components/navbars/PortalNavbar.css +75 -0
- package/dist/components/navbars/PortalNavbar.js +138 -0
- package/dist/components/signatures/SignatureTemplateDesigner.js +6 -4
- package/dist/event/RouteActionHandler.js +1 -1
- package/dist/view/Dashboard.js +17 -13
- package/dist/view/PortalDashboard.js +33 -0
- package/dist/view/security/ChangePasswordBasic.js +1 -0
- package/dist/view/security/ForgotPasswordBasic.js +1 -0
- package/dist/view/security/LoginBasic.js +6 -1
- package/dist/view/security/LoginBusinessPortal.js +267 -0
- package/dist/view/security/ResetPasswordBasic.js +1 -0
- package/package.json +22 -21
- package/dist/assets/img/flogo.png +0 -0
|
@@ -35,6 +35,8 @@ var _asyncMutex = require("async-mutex");
|
|
|
35
35
|
|
|
36
36
|
var _DocumentViewer = _interopRequireDefault(require("../DocumentViewer"));
|
|
37
37
|
|
|
38
|
+
var _SignaturePanel = _interopRequireDefault(require("../SignaturePanel"));
|
|
39
|
+
|
|
38
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
41
|
|
|
40
42
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
@@ -258,6 +260,12 @@ const Layout = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
258
260
|
ref: /*#__PURE__*/_react.default.createRef(),
|
|
259
261
|
viewId: props.viewId,
|
|
260
262
|
loadCompleteHandler: loadCompleteHandler
|
|
263
|
+
}) : component.type === 'signaturePanel' ? /*#__PURE__*/_react.default.createElement(_SignaturePanel.default, {
|
|
264
|
+
config: component,
|
|
265
|
+
handle: createComponentHandle(component),
|
|
266
|
+
ref: /*#__PURE__*/_react.default.createRef(),
|
|
267
|
+
viewId: props.viewId,
|
|
268
|
+
loadCompleteHandler: loadCompleteHandler
|
|
261
269
|
}) : /*#__PURE__*/_react.default.createElement("div", null, "Unsupported component type " + component.type);
|
|
262
270
|
}
|
|
263
271
|
|
|
@@ -333,6 +341,7 @@ const Layout = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
333
341
|
overflow: _Utils.default.getComponentAttribute(component, 'overflow', 'auto'),
|
|
334
342
|
minWidth: '128px',
|
|
335
343
|
height: '100%',
|
|
344
|
+
maxHeight: _Utils.default.getComponentAttribute(component, 'maxHeight', null),
|
|
336
345
|
margin: _Utils.default.getComponentAttribute(component, 'margin', 0),
|
|
337
346
|
padding: _Utils.default.getComponentAttribute(component, 'padding', 0)
|
|
338
347
|
};
|
|
@@ -91,13 +91,14 @@ class ViewPort extends _react.default.PureComponent {
|
|
|
91
91
|
|
|
92
92
|
_ApplicationContext.default.setConfirmDialogHandler(this);
|
|
93
93
|
|
|
94
|
-
this.props.
|
|
94
|
+
let defaultRoute = !_Utils.default.isNull(this.props.defaultView) ? this.props.defaultView : "/view/dashboard";
|
|
95
|
+
this.props.history.push(defaultRoute);
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
render() {
|
|
98
99
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
99
100
|
style: {
|
|
100
|
-
height: 'calc(100vh - 90px)'
|
|
101
|
+
height: _Utils.default.isNull(this.props.height) ? 'calc(100vh - 90px)' : this.props.height
|
|
101
102
|
}
|
|
102
103
|
}, this.state.popupView !== null ? /*#__PURE__*/_react.default.createElement(_PopupView.default, {
|
|
103
104
|
open: this.state.popupView !== null,
|
|
@@ -33,6 +33,13 @@ const MenuLink = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
33
33
|
|
|
34
34
|
if (!_Utils.default.isNull(parsedConfig)) {
|
|
35
35
|
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, handle, props.viewId);
|
|
36
|
+
|
|
37
|
+
if (props.autoClick) {
|
|
38
|
+
dispatch(_DashboardStore.actionCreators.setActiveRoute(props.name));
|
|
39
|
+
let event = new _Event.default(handle, props.viewId);
|
|
40
|
+
|
|
41
|
+
_Observable.default.fireEvent(_EventType.default.CLICK, event);
|
|
42
|
+
}
|
|
36
43
|
}
|
|
37
44
|
}, [props.config]);
|
|
38
45
|
|
|
@@ -23,16 +23,6 @@ var _Utils = _interopRequireDefault(require("../../Utils"));
|
|
|
23
23
|
|
|
24
24
|
var _ActionHandlers = _interopRequireDefault(require("../../event/ActionHandlers"));
|
|
25
25
|
|
|
26
|
-
var _withWidth = require("material-ui/utils/withWidth");
|
|
27
|
-
|
|
28
|
-
var _TokenManager = _interopRequireDefault(require("../../security/TokenManager"));
|
|
29
|
-
|
|
30
|
-
var _ApplicationContext = _interopRequireWildcard(require("../../ApplicationContext"));
|
|
31
|
-
|
|
32
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
33
|
-
|
|
34
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
|
-
|
|
36
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
27
|
|
|
38
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; }
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
.portal-navbar-container {
|
|
2
|
+
width: 100vw;
|
|
3
|
+
background-color: #ffffff;
|
|
4
|
+
height: 100%;
|
|
5
|
+
margin-left: 0 !important;
|
|
6
|
+
text-align: right;
|
|
7
|
+
border-bottom: 1px solid #e1e1e1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.portal-navbar-logo {
|
|
11
|
+
margin-top: 4px;
|
|
12
|
+
width: 31%;
|
|
13
|
+
text-align: right;
|
|
14
|
+
height: 48px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.portal-navbar-toolbar {
|
|
18
|
+
display: inline-block;
|
|
19
|
+
text-align: left;
|
|
20
|
+
width: 55%;
|
|
21
|
+
height: 48px;
|
|
22
|
+
margin-left: 72px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.spacer {
|
|
26
|
+
width: 320px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Smartphones (landscape); */
|
|
30
|
+
@media only screen and (min-device-width: 361px) and (max-device-width: 480px) {
|
|
31
|
+
.portal-navbar-logo {
|
|
32
|
+
margin: 4px;
|
|
33
|
+
width: 48px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.portal-navbar-toolbar {
|
|
37
|
+
width: calc(100% - 84px);
|
|
38
|
+
margin-left: 24px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.spacer {
|
|
42
|
+
width: 144px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Smartphones (portrait); */
|
|
47
|
+
@media only screen and (min-device-width: 280px) and (max-device-width: 360px) {
|
|
48
|
+
.portal-navbar-logo {
|
|
49
|
+
margin: 4px;
|
|
50
|
+
width: 48px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.portal-navbar-toolbar {
|
|
54
|
+
width: calc(100% - 84px);
|
|
55
|
+
margin-left: 24px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.spacer {
|
|
59
|
+
width: 144px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/* iPads (portrait and landscape); */
|
|
65
|
+
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* iPad 3 */
|
|
70
|
+
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) {
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("@material-ui/core/styles");
|
|
13
|
+
|
|
14
|
+
var _Icon = _interopRequireDefault(require("./../Icon"));
|
|
15
|
+
|
|
16
|
+
var _colors = require("material-ui/styles/colors");
|
|
17
|
+
|
|
18
|
+
require("./PortalNavbar.css");
|
|
19
|
+
|
|
20
|
+
var _reactstrap = require("reactstrap");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
+
|
|
24
|
+
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
25
|
+
iconButtonLabel: {
|
|
26
|
+
display: 'flex',
|
|
27
|
+
flexDirection: 'column'
|
|
28
|
+
}
|
|
29
|
+
}));
|
|
30
|
+
|
|
31
|
+
const PortalNavbar = props => {
|
|
32
|
+
const classes = useStyles();
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
34
|
+
className: "row portal-navbar-container"
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
36
|
+
className: "col-*-* portal-navbar-logo"
|
|
37
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
38
|
+
src: props.appLogoPath,
|
|
39
|
+
alt: "...",
|
|
40
|
+
style: {
|
|
41
|
+
height: '48px'
|
|
42
|
+
}
|
|
43
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
44
|
+
className: "col-*-* portal-navbar-toolbar"
|
|
45
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
46
|
+
className: "row"
|
|
47
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
48
|
+
className: "col-*-*"
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
50
|
+
"aria-controls": "menu-list-grow",
|
|
51
|
+
style: {
|
|
52
|
+
width: 80,
|
|
53
|
+
height: 48,
|
|
54
|
+
borderBottom: '2px solid',
|
|
55
|
+
borderColor: _colors.grey800,
|
|
56
|
+
borderRadius: 0
|
|
57
|
+
},
|
|
58
|
+
"aria-haspopup": "true",
|
|
59
|
+
classes: {
|
|
60
|
+
label: classes.iconButtonLabel
|
|
61
|
+
},
|
|
62
|
+
onClick: () => {
|
|
63
|
+
alert('WORK CLICK FIREEEEE');
|
|
64
|
+
}
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
66
|
+
id: "WORK"
|
|
67
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
68
|
+
style: {
|
|
69
|
+
fontSize: '14px'
|
|
70
|
+
}
|
|
71
|
+
}, "Workspace"))), /*#__PURE__*/_react.default.createElement("div", {
|
|
72
|
+
className: "col-*-* spacer"
|
|
73
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
74
|
+
className: "col-*-*"
|
|
75
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
76
|
+
style: {
|
|
77
|
+
width: '80px'
|
|
78
|
+
}
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.Collapse, {
|
|
80
|
+
navbar: true,
|
|
81
|
+
isOpen: true
|
|
82
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.Nav, {
|
|
83
|
+
className: "ml-auto",
|
|
84
|
+
navbar: true
|
|
85
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.UncontrolledDropdown, {
|
|
86
|
+
nav: true
|
|
87
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownToggle, {
|
|
88
|
+
style: {
|
|
89
|
+
color: props.themeTextColor
|
|
90
|
+
},
|
|
91
|
+
caret: true,
|
|
92
|
+
color: "default",
|
|
93
|
+
"data-toggle": "dropdown",
|
|
94
|
+
nav: true,
|
|
95
|
+
onClick: e => e.preventDefault()
|
|
96
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
97
|
+
style: {
|
|
98
|
+
margin: '-4px'
|
|
99
|
+
}
|
|
100
|
+
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
101
|
+
"aria-controls": "menu-list-grow",
|
|
102
|
+
style: {
|
|
103
|
+
borderColor: _colors.grey800
|
|
104
|
+
},
|
|
105
|
+
"aria-haspopup": "true",
|
|
106
|
+
classes: {
|
|
107
|
+
label: classes.iconButtonLabel
|
|
108
|
+
}
|
|
109
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
110
|
+
id: "PERSON"
|
|
111
|
+
}))), " ", /*#__PURE__*/_react.default.createElement("b", {
|
|
112
|
+
className: "caret d-none d-lg-block d-xl-block"
|
|
113
|
+
}), /*#__PURE__*/_react.default.createElement("p", {
|
|
114
|
+
className: "d-lg-none"
|
|
115
|
+
}, " Log out "), " "), " ", /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownMenu, {
|
|
116
|
+
className: "dropdown-navbar",
|
|
117
|
+
right: true,
|
|
118
|
+
tag: "ul"
|
|
119
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.NavLink, {
|
|
120
|
+
tag: "li"
|
|
121
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownItem, {
|
|
122
|
+
className: "nav-item",
|
|
123
|
+
onClick: () => (void 0).launchView('system/user-profile.json')
|
|
124
|
+
}, " ", "Profile", " "), " "), " ", /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownItem, {
|
|
125
|
+
divider: true,
|
|
126
|
+
tag: "li"
|
|
127
|
+
}), /*#__PURE__*/_react.default.createElement(_reactstrap.NavLink, {
|
|
128
|
+
tag: "li"
|
|
129
|
+
}, /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownItem, {
|
|
130
|
+
className: "nav-item",
|
|
131
|
+
onClick: props.logoutCallBack
|
|
132
|
+
}, " ", "Log out", " "), " "), " "), " "), " ", /*#__PURE__*/_react.default.createElement("li", {
|
|
133
|
+
className: "separator d-lg-none"
|
|
134
|
+
})), " "), " "))))));
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
var _default = PortalNavbar;
|
|
138
|
+
exports.default = _default;
|
|
@@ -371,7 +371,7 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
371
371
|
let top = !_Utils.default.isNull(event.target.style.top) && event.target.style.top.trim().length > 0 ? event.target.style.top.replaceAll('pt', '') : '0';
|
|
372
372
|
let topPos = parseFloat(top) + parseFloat(event.target.style.height.replace('pt', '')) - 75;
|
|
373
373
|
let pageDropOffset = getPageDropOffset(16, topPos);
|
|
374
|
-
node.style.top = topPos - pageDropOffset.topOffset + 'pt';
|
|
374
|
+
node.style.top = convertToPixels(topPos - pageDropOffset.topOffset + 'pt');
|
|
375
375
|
node.style.width = paletteSelection.current.defaultWidthOnPageDrop;
|
|
376
376
|
node.style.height = paletteSelection.current.defaultHeightOnPageDrop;
|
|
377
377
|
node.style.padding = '8px';
|
|
@@ -380,7 +380,7 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
380
380
|
} else {
|
|
381
381
|
let lineHeight = event.target.style.lineHeight;
|
|
382
382
|
let hasLineHeight = !_Utils.default.isNull(lineHeight) && lineHeight.trim().length > 0 && lineHeight.toString() !== '0';
|
|
383
|
-
node.style.top = hasLineHeight ? event.target.style.top : parseFloat(event.target.style.top.replace('pt', '')) - 14.5 + 'pt';
|
|
383
|
+
node.style.top = hasLineHeight ? event.target.style.top : convertToPixels(parseFloat(event.target.style.top.replace('pt', '')) - 14.5 + 'pt');
|
|
384
384
|
node.style.left = event.target.style.left;
|
|
385
385
|
node.style.width = convertToPixels(event.target.style.width);
|
|
386
386
|
node.style.height = convertToPixels(hasLineHeight ? event.target.style.lineHeight : '14.5pt');
|
|
@@ -682,9 +682,10 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
682
682
|
node.style.height = element.style.height;
|
|
683
683
|
node.style.left = element.style.left;
|
|
684
684
|
node.innerText = element.innerText;
|
|
685
|
-
node.style.top = pageNumber * pageElementHeight + offset + 'pt';
|
|
685
|
+
node.style.top = convertToPixels(pageNumber * pageElementHeight + offset + 'pt');
|
|
686
686
|
node.id = idCounter.current++;
|
|
687
687
|
node.className = element.className;
|
|
688
|
+
node.setAttribute("sid", element.getAttribute("sid"));
|
|
688
689
|
node.setAttribute("draggable", true);
|
|
689
690
|
let inputValue = {};
|
|
690
691
|
inputValue.id = node.id;
|
|
@@ -693,9 +694,9 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
693
694
|
inputValue.type = elementData.type;
|
|
694
695
|
inputValue.signatory = elementData.signatory;
|
|
695
696
|
inputBoxValues.push(inputValue);
|
|
696
|
-
setValue(null);
|
|
697
697
|
pageElement.appendChild(node);
|
|
698
698
|
node.addEventListener('dragstart', dragStart, false);
|
|
699
|
+
saveValue();
|
|
699
700
|
}
|
|
700
701
|
}
|
|
701
702
|
} catch (err) {
|
|
@@ -749,6 +750,7 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
749
750
|
element.style.height = values.height + "px";
|
|
750
751
|
element.style.borderColor = VALID_COLOR;
|
|
751
752
|
element.innerText = values.signatory.map.name;
|
|
753
|
+
element.setAttribute("sid", values.signatory.map.emailAddress);
|
|
752
754
|
saveValue();
|
|
753
755
|
};
|
|
754
756
|
|
|
@@ -112,7 +112,7 @@ class RouteActionHandler {
|
|
|
112
112
|
_ApplicationContext.default.getCurrentView().handle.api.updateModel(parameterValues);
|
|
113
113
|
}
|
|
114
114
|
} else if (data.type === 'graph') {
|
|
115
|
-
_ApplicationContext.default.loadGraph(isParent, isPopup, data);
|
|
115
|
+
_ApplicationContext.default.loadGraph(isParent, isPopup, data, parameterValues);
|
|
116
116
|
}
|
|
117
117
|
}, e => {
|
|
118
118
|
console.error(e);
|
package/dist/view/Dashboard.js
CHANGED
|
@@ -276,25 +276,29 @@ const WorkFlowCard = props => {
|
|
|
276
276
|
};
|
|
277
277
|
|
|
278
278
|
const Dashboard = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
279
|
-
const _React$useState13 = _react.default.useState(
|
|
280
|
-
_React$useState14 = _slicedToArray(_React$useState13,
|
|
281
|
-
|
|
282
|
-
setTaskSummary = _React$useState14[1];
|
|
279
|
+
const _React$useState13 = _react.default.useState(!_Utils.default.isNull(props.settings.userDashboards) ? props.settings.userDashboards : []),
|
|
280
|
+
_React$useState14 = _slicedToArray(_React$useState13, 1),
|
|
281
|
+
userDashboards = _React$useState14[0];
|
|
283
282
|
|
|
284
283
|
const _React$useState15 = _react.default.useState(null),
|
|
285
284
|
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
286
|
-
|
|
287
|
-
|
|
285
|
+
taskSummary = _React$useState16[0],
|
|
286
|
+
setTaskSummary = _React$useState16[1];
|
|
288
287
|
|
|
289
288
|
const _React$useState17 = _react.default.useState(null),
|
|
290
289
|
_React$useState18 = _slicedToArray(_React$useState17, 2),
|
|
291
|
-
|
|
292
|
-
|
|
290
|
+
menuItems = _React$useState18[0],
|
|
291
|
+
setMenuItems = _React$useState18[1];
|
|
293
292
|
|
|
294
293
|
const _React$useState19 = _react.default.useState(null),
|
|
295
294
|
_React$useState20 = _slicedToArray(_React$useState19, 2),
|
|
296
|
-
|
|
297
|
-
|
|
295
|
+
cardRows = _React$useState20[0],
|
|
296
|
+
setCardRows = _React$useState20[1];
|
|
297
|
+
|
|
298
|
+
const _React$useState21 = _react.default.useState(null),
|
|
299
|
+
_React$useState22 = _slicedToArray(_React$useState21, 2),
|
|
300
|
+
cardsPerRow = _React$useState22[0],
|
|
301
|
+
setCardsPerRow = _React$useState22[1];
|
|
298
302
|
|
|
299
303
|
let dashboardCardCounter = 0;
|
|
300
304
|
const api = {
|
|
@@ -312,7 +316,7 @@ const Dashboard = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.
|
|
|
312
316
|
let gridRows = [];
|
|
313
317
|
dashboardCardCounter = 0;
|
|
314
318
|
|
|
315
|
-
var _iterator = _createForOfIteratorHelper(
|
|
319
|
+
var _iterator = _createForOfIteratorHelper(userDashboards),
|
|
316
320
|
_step;
|
|
317
321
|
|
|
318
322
|
try {
|
|
@@ -395,7 +399,7 @@ const Dashboard = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.
|
|
|
395
399
|
setMenuItems(dashboardMenuitems);
|
|
396
400
|
}
|
|
397
401
|
|
|
398
|
-
if (!_Utils.default.isNull(props.settings) && !_Utils.default.isNull(
|
|
402
|
+
if (!_Utils.default.isNull(props.settings) && !_Utils.default.isNull(userDashboards) && _Utils.default.isNull(cardRows) && !_Utils.default.isNull(cardsPerRow)) {
|
|
399
403
|
setupCardRows();
|
|
400
404
|
}
|
|
401
405
|
});
|
|
@@ -406,7 +410,7 @@ const Dashboard = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.
|
|
|
406
410
|
settings.path = path;
|
|
407
411
|
settings.parameters = {};
|
|
408
412
|
settings.parameters.map = {};
|
|
409
|
-
|
|
413
|
+
userDashboards.push(settings);
|
|
410
414
|
setupCardRows();
|
|
411
415
|
};
|
|
412
416
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
const location = window.location.protocol + "//" + window.location.hostname;
|
|
13
|
+
|
|
14
|
+
const PortalDashboard = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
15
|
+
const api = {
|
|
16
|
+
get id() {
|
|
17
|
+
return "portal-dashboard";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
};
|
|
21
|
+
const handle = {
|
|
22
|
+
"api": api
|
|
23
|
+
};
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
25
|
+
ref: ref,
|
|
26
|
+
style: {
|
|
27
|
+
margin: '4px 0 0 0'
|
|
28
|
+
}
|
|
29
|
+
}, "PORTAL DASHBOARD");
|
|
30
|
+
}));
|
|
31
|
+
|
|
32
|
+
var _default = PortalDashboard;
|
|
33
|
+
exports.default = _default;
|
|
@@ -108,6 +108,7 @@ const Login = props => {
|
|
|
108
108
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
109
109
|
style: {
|
|
110
110
|
backgroundColor: props.background,
|
|
111
|
+
color: props.textColor,
|
|
111
112
|
height: '100%',
|
|
112
113
|
width: '100%'
|
|
113
114
|
}
|
|
@@ -241,7 +242,11 @@ const Login = props => {
|
|
|
241
242
|
style: _loginBasicStyle.default.flatButton,
|
|
242
243
|
startIcon: /*#__PURE__*/_react.default.createElement(_Help.default, null)
|
|
243
244
|
}, "Forgot Password?"))))), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Footer.default, {
|
|
244
|
-
white: true
|
|
245
|
+
white: true,
|
|
246
|
+
logo: props.footerLogo,
|
|
247
|
+
text: props.footerText,
|
|
248
|
+
width: props.footerWidth,
|
|
249
|
+
splitterColor: props.footerSplitterColor
|
|
245
250
|
})));
|
|
246
251
|
};
|
|
247
252
|
|