@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
|
@@ -23,43 +23,41 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructur
|
|
|
23
23
|
|
|
24
24
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
25
25
|
|
|
26
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
26
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
27
27
|
|
|
28
28
|
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
29
29
|
|
|
30
30
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
marginTop: theme.spacing(2)
|
|
39
|
-
}
|
|
32
|
+
const utils = new _Utils.default();
|
|
33
|
+
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
34
|
+
root: {
|
|
35
|
+
width: '100%',
|
|
36
|
+
'& > * + *': {
|
|
37
|
+
marginTop: theme.spacing(2)
|
|
40
38
|
}
|
|
41
|
-
}
|
|
42
|
-
});
|
|
39
|
+
}
|
|
40
|
+
}));
|
|
43
41
|
|
|
44
42
|
function AlertItem(props) {
|
|
45
|
-
|
|
43
|
+
const classes = useStyles();
|
|
46
44
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
const _React$useState = _react.default.useState(props.message),
|
|
46
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
47
|
+
message = _React$useState2[0],
|
|
48
|
+
setMessage = _React$useState2[1];
|
|
51
49
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
const _React$useState3 = _react.default.useState(props.alertStyle),
|
|
51
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
52
|
+
alertStyle = _React$useState4[0],
|
|
53
|
+
setAlertStyle = _React$useState4[1];
|
|
56
54
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
const _React$useState5 = _react.default.useState(props.alertTitle),
|
|
56
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
57
|
+
title = _React$useState6[0],
|
|
58
|
+
setTitle = _React$useState6[1];
|
|
61
59
|
|
|
62
|
-
_react.default.useEffect(
|
|
60
|
+
_react.default.useEffect(() => {
|
|
63
61
|
setMessage(props.message);
|
|
64
62
|
setAlertStyle(props.alertStyle);
|
|
65
63
|
setTitle(props.alertTitle);
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
const AlertStyle = {
|
|
13
13
|
backgroundColor: '#dc3545',
|
|
14
14
|
color: 'white',
|
|
15
15
|
padding: '10px',
|
|
@@ -25,14 +25,14 @@ var AlertStyle = {
|
|
|
25
25
|
margin: '30px'
|
|
26
26
|
};
|
|
27
27
|
exports.AlertStyle = AlertStyle;
|
|
28
|
-
|
|
28
|
+
const alertButtonStyle = {
|
|
29
29
|
marginLeft: '20px',
|
|
30
30
|
border: 'none',
|
|
31
31
|
backgroundColor: 'transparent',
|
|
32
32
|
cursor: 'pointer',
|
|
33
33
|
color: 'rgb(255, 255, 255)'
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
const options = {
|
|
36
36
|
position: 'top center',
|
|
37
37
|
timeout: 0,
|
|
38
38
|
offset: '30px',
|
|
@@ -43,33 +43,32 @@ var options = {
|
|
|
43
43
|
};
|
|
44
44
|
exports.options = options;
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
};
|
|
46
|
+
const AlertTemplate = ({
|
|
47
|
+
options,
|
|
48
|
+
message,
|
|
49
|
+
close
|
|
50
|
+
}) => /*#__PURE__*/_react.default.createElement("div", {
|
|
51
|
+
style: AlertStyle
|
|
52
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
53
|
+
className: "fa fa-exclamation-circle fa-2x"
|
|
54
|
+
}), /*#__PURE__*/_react.default.createElement("svg", {
|
|
55
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
56
|
+
width: "24",
|
|
57
|
+
height: "24",
|
|
58
|
+
viewBox: "0 0 24 24",
|
|
59
|
+
fill: "none",
|
|
60
|
+
stroke: "#FF0040",
|
|
61
|
+
"stroke-width": "2",
|
|
62
|
+
"stroke-linecap": "round",
|
|
63
|
+
"stroke-linejoin": "round",
|
|
64
|
+
style: {
|
|
65
|
+
marginRight: '20px',
|
|
66
|
+
minWidth: '24px'
|
|
67
|
+
}
|
|
68
|
+
}), options.type === 'info' && '', options.type === 'success' && '', options.type === 'error' && '', message, /*#__PURE__*/_react.default.createElement("button", {
|
|
69
|
+
style: alertButtonStyle,
|
|
70
|
+
onClick: close
|
|
71
|
+
}, "X"));
|
|
73
72
|
|
|
74
73
|
exports.AlertTemplate = AlertTemplate;
|
|
75
74
|
var _default = AlertTemplate;
|
|
@@ -33,52 +33,50 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructur
|
|
|
33
33
|
|
|
34
34
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
35
35
|
|
|
36
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
36
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
37
37
|
|
|
38
38
|
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
39
39
|
|
|
40
40
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
};
|
|
55
|
-
});
|
|
42
|
+
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
43
|
+
root: {
|
|
44
|
+
display: 'flex'
|
|
45
|
+
},
|
|
46
|
+
paper: {
|
|
47
|
+
marginRight: theme.spacing(2)
|
|
48
|
+
},
|
|
49
|
+
wrapper: {
|
|
50
|
+
maxHeight: "32px",
|
|
51
|
+
zIndex: 2
|
|
52
|
+
}
|
|
53
|
+
}));
|
|
56
54
|
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
const Button = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
56
|
+
const classes = useStyles();
|
|
59
57
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
const _React$useState = _react.default.useState(true),
|
|
59
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
60
|
+
initializing = _React$useState2[0],
|
|
61
|
+
setInitializing = _React$useState2[1];
|
|
64
62
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
const _React$useState3 = _react.default.useState(false),
|
|
64
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
65
|
+
disabled = _React$useState4[0],
|
|
66
|
+
setDisabled = _React$useState4[1];
|
|
69
67
|
|
|
70
|
-
|
|
68
|
+
let color = _Utils.default.getComponentAttribute(props.config, 'color', 'default');
|
|
71
69
|
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
let width = !_Utils.default.isNull(props.config.attributes) && !_Utils.default.isNull(props.config.attributes['width']) ? parseInt(props.config.attributes['width'].toString().replace('px', '')) : null;
|
|
71
|
+
let height = !_Utils.default.isNull(props.config.attributes) && !_Utils.default.isNull(props.config.attributes['height']) ? parseInt(props.config.attributes['height'].toString().replace('px', '')) : null;
|
|
74
72
|
|
|
75
|
-
|
|
73
|
+
let label = _Utils.default.getComponentAttribute(props.config, 'label', null);
|
|
76
74
|
|
|
77
|
-
_react.default.useEffect(
|
|
75
|
+
_react.default.useEffect(() => {
|
|
78
76
|
props.handle.api = api();
|
|
79
77
|
|
|
80
78
|
if (initializing) {
|
|
81
|
-
|
|
79
|
+
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
82
80
|
|
|
83
81
|
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.viewId);
|
|
84
82
|
|
|
@@ -88,27 +86,27 @@ var Button = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
88
86
|
}
|
|
89
87
|
});
|
|
90
88
|
|
|
91
|
-
_react.default.useEffect(
|
|
89
|
+
_react.default.useEffect(() => {
|
|
92
90
|
if (!initializing) {
|
|
93
91
|
props.loadCompleteHandler(props.config.id);
|
|
94
92
|
}
|
|
95
93
|
}, [initializing]);
|
|
96
94
|
|
|
97
|
-
|
|
95
|
+
const handleClick = e => {
|
|
98
96
|
_ApplicationContext.default.enableFormMarkers(true);
|
|
99
97
|
|
|
100
|
-
|
|
98
|
+
let event = new _Event.default(props.handle, props.viewId);
|
|
101
99
|
|
|
102
100
|
_Observable.default.fireEvent(_EventType.default.CLICK, event);
|
|
103
101
|
};
|
|
104
102
|
|
|
105
|
-
|
|
103
|
+
const api = () => {
|
|
106
104
|
return {
|
|
107
105
|
get id() {
|
|
108
106
|
return props.config.id;
|
|
109
107
|
},
|
|
110
108
|
|
|
111
|
-
getChildren:
|
|
109
|
+
getChildren: () => {
|
|
112
110
|
return [];
|
|
113
111
|
},
|
|
114
112
|
|
|
@@ -117,7 +115,7 @@ var Button = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
117
115
|
},
|
|
118
116
|
|
|
119
117
|
refresh() {
|
|
120
|
-
|
|
118
|
+
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
121
119
|
|
|
122
120
|
setDisabled(_Utils.default.evaluateBooleanExpression(parsedConfig.disabled, parsedConfig.id));
|
|
123
121
|
}
|
|
@@ -22,7 +22,7 @@ var _DialogTitle = _interopRequireDefault(require("@material-ui/core/DialogTitle
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
24
24
|
function ConfirmationDialog(props) {
|
|
25
|
-
|
|
25
|
+
const handler = result => {
|
|
26
26
|
props.handler(result);
|
|
27
27
|
};
|
|
28
28
|
|
|
@@ -35,12 +35,12 @@ function ConfirmationDialog(props) {
|
|
|
35
35
|
}, props.title), /*#__PURE__*/_react.default.createElement(_DialogContent.default, null, /*#__PURE__*/_react.default.createElement(_DialogContentText.default, {
|
|
36
36
|
id: "alert-dialog-description"
|
|
37
37
|
}, props.message)), /*#__PURE__*/_react.default.createElement(_DialogActions.default, null, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
38
|
-
onClick:
|
|
38
|
+
onClick: () => {
|
|
39
39
|
handler(false);
|
|
40
40
|
},
|
|
41
41
|
color: "primary"
|
|
42
42
|
}, "No"), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
43
|
-
onClick:
|
|
43
|
+
onClick: () => {
|
|
44
44
|
handler(true);
|
|
45
45
|
},
|
|
46
46
|
color: "primary",
|