@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
|
@@ -17,11 +17,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
17
17
|
|
|
18
18
|
// @material-ui/core components
|
|
19
19
|
// core components
|
|
20
|
-
|
|
20
|
+
const useStyles = (0, _styles.makeStyles)(_typographyStyle.default);
|
|
21
21
|
|
|
22
22
|
function Info(props) {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const classes = useStyles();
|
|
24
|
+
const children = props.children;
|
|
25
25
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
26
26
|
className: classes.defaultFontStyle + " " + classes.infoText
|
|
27
27
|
}, children);
|
|
@@ -13,11 +13,11 @@ var _typographyStyle = _interopRequireDefault(require("../../assets/jss/componen
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
const useStyles = makeStyles(_typographyStyle.default);
|
|
17
17
|
|
|
18
18
|
function Info(props) {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
const classes = useStyles();
|
|
20
|
+
const children = props.children;
|
|
21
21
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
22
22
|
className: classes.defaultFontStyle + " " + classes.infoText
|
|
23
23
|
}, children);
|
|
@@ -25,19 +25,11 @@ var _DynamicJS = _interopRequireDefault(require("../DynamicJS"));
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
27
|
|
|
28
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
|
-
|
|
30
|
-
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); } }
|
|
31
|
-
|
|
32
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
33
|
-
|
|
34
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; }
|
|
35
29
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
_defineProperty(this, "confirmAction", function (message) {
|
|
30
|
+
class ActionHandlers {
|
|
31
|
+
constructor() {
|
|
32
|
+
_defineProperty(this, "confirmAction", message => {
|
|
41
33
|
if (!_Utils.default.isNull(message)) {
|
|
42
34
|
_ApplicationContext.default.openConfirmDialog(message);
|
|
43
35
|
|
|
@@ -54,59 +46,53 @@ var ActionHandlers = /*#__PURE__*/function () {
|
|
|
54
46
|
return ActionHandlers.instance;
|
|
55
47
|
}
|
|
56
48
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
} else if (id === 'signalGraph') {
|
|
69
|
-
return _SignalGraphActionHandler.default;
|
|
70
|
-
}
|
|
49
|
+
getActionHandler(id) {
|
|
50
|
+
if (id === 'script') {
|
|
51
|
+
return _ScriptActionHandler.default;
|
|
52
|
+
} else if (id === 'route') {
|
|
53
|
+
return _RouteActionHandler.default;
|
|
54
|
+
} else if (id === 'serviceCall') {
|
|
55
|
+
return _ServiceCallActionHandler.default;
|
|
56
|
+
} else if (id === 'loadData') {
|
|
57
|
+
return _LoadDataActionHandler.default;
|
|
58
|
+
} else if (id === 'signalGraph') {
|
|
59
|
+
return _SignalGraphActionHandler.default;
|
|
71
60
|
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
invoke(action, be, listener) {
|
|
64
|
+
// TODO : Check action conditions and also run pre and post scripts
|
|
65
|
+
let component = listener.getSubscriberRef();
|
|
66
|
+
let viewId = listener.getViewId();
|
|
67
|
+
this.invokeHandler(action, be, component, viewId);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
invokeHandler(action, be, component, viewId) {
|
|
71
|
+
let actionHandler = this.getActionHandler(action.actionType);
|
|
72
|
+
let message = action.confirmationMessage;
|
|
73
|
+
let preCondition = action.preCondition;
|
|
74
|
+
let shouldRun = true;
|
|
75
|
+
|
|
76
|
+
if (!_Utils.default.isNull(preCondition)) {
|
|
77
|
+
shouldRun = _DynamicJS.default.executeScript(Math.random() + "_action_pre_condition", preCondition);
|
|
79
78
|
}
|
|
80
|
-
}, {
|
|
81
|
-
key: "invokeHandler",
|
|
82
|
-
value: function invokeHandler(action, be, component, viewId) {
|
|
83
|
-
var actionHandler = this.getActionHandler(action.actionType);
|
|
84
|
-
var message = action.confirmationMessage;
|
|
85
|
-
var preCondition = action.preCondition;
|
|
86
|
-
var shouldRun = true;
|
|
87
|
-
|
|
88
|
-
if (!_Utils.default.isNull(preCondition)) {
|
|
89
|
-
shouldRun = _DynamicJS.default.executeScript(Math.random() + "_action_pre_condition", preCondition);
|
|
90
|
-
}
|
|
91
79
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
80
|
+
if (shouldRun) {
|
|
81
|
+
if (!_Utils.default.isNull(message)) {
|
|
82
|
+
_ApplicationContext.default.openConfirmDialog(message, result => {
|
|
83
|
+
if (result === true) {
|
|
84
|
+
actionHandler.execute(action, be, component, viewId);
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
} else {
|
|
88
|
+
actionHandler.execute(action, be, component, viewId);
|
|
102
89
|
}
|
|
103
90
|
}
|
|
104
|
-
}
|
|
91
|
+
}
|
|
105
92
|
|
|
106
|
-
|
|
107
|
-
}();
|
|
93
|
+
}
|
|
108
94
|
|
|
109
|
-
|
|
95
|
+
const instance = new ActionHandlers();
|
|
110
96
|
Object.freeze(instance);
|
|
111
97
|
var _default = instance;
|
|
112
98
|
exports.default = _default;
|
package/dist/event/Event.js
CHANGED
|
@@ -5,27 +5,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
|
-
|
|
10
8
|
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; }
|
|
11
9
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
class Event {
|
|
11
|
+
constructor(source, viewId, data) {
|
|
12
|
+
_defineProperty(this, "getSource", () => {
|
|
13
|
+
return this.source;
|
|
14
|
+
});
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
_defineProperty(this, "getData", () => {
|
|
17
|
+
return this.data;
|
|
18
|
+
});
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
this.source = source;
|
|
21
|
+
this.viewId = viewId;
|
|
22
|
+
this.data = data;
|
|
23
|
+
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
this.viewId = viewId;
|
|
27
|
-
this.data = data;
|
|
28
|
-
};
|
|
25
|
+
}
|
|
29
26
|
|
|
30
27
|
var _default = Event;
|
|
31
28
|
exports.default = _default;
|
|
@@ -9,47 +9,44 @@ var _Utils = _interopRequireDefault(require("../Utils"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
-
|
|
14
12
|
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; }
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
};
|
|
14
|
+
class EventSubscription {
|
|
15
|
+
constructor(subscriberRef, viewId, publisher, eventType, actions, callback) {
|
|
16
|
+
_defineProperty(this, "getSubscriberRef", () => {
|
|
17
|
+
return this.subscriberRef;
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
_defineProperty(this, "getEventType", () => {
|
|
21
|
+
return this.eventType;
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
_defineProperty(this, "getViewId", () => {
|
|
25
|
+
return this.viewId;
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
_defineProperty(this, "getPublisher", () => {
|
|
29
|
+
return this.publisher;
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
_defineProperty(this, "getActions", () => {
|
|
33
|
+
return this.actions;
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
_defineProperty(this, "getCallback", () => {
|
|
37
|
+
return this.callback;
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
this.subscriberRef = subscriberRef;
|
|
41
|
+
this.subscriber = !_Utils.default.isNull(subscriberRef) && !_Utils.default.isNull(subscriberRef.api.id) ? subscriberRef.api.id : null;
|
|
42
|
+
this.eventType = eventType;
|
|
43
|
+
this.viewId = viewId;
|
|
44
|
+
this.publisher = publisher;
|
|
45
|
+
this.actions = actions;
|
|
46
|
+
this.callback = callback;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
}
|
|
53
50
|
|
|
54
51
|
var _default = EventSubscription;
|
|
55
52
|
exports.default = _default;
|
package/dist/event/EventType.js
CHANGED
|
@@ -5,13 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
|
-
|
|
10
8
|
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; }
|
|
11
9
|
|
|
12
|
-
|
|
13
|
-
_classCallCheck(this, EventType);
|
|
14
|
-
};
|
|
10
|
+
class EventType {}
|
|
15
11
|
|
|
16
12
|
exports.default = EventType;
|
|
17
13
|
|
|
@@ -11,16 +11,8 @@ var _Utils = _interopRequireDefault(require("./../Utils"));
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
|
|
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 LoadDataActionHandler = /*#__PURE__*/function () {
|
|
21
|
-
function LoadDataActionHandler() {
|
|
22
|
-
_classCallCheck(this, LoadDataActionHandler);
|
|
23
|
-
|
|
14
|
+
class LoadDataActionHandler {
|
|
15
|
+
constructor() {
|
|
24
16
|
if (!LoadDataActionHandler.instance) {
|
|
25
17
|
LoadDataActionHandler.instance = this;
|
|
26
18
|
}
|
|
@@ -28,19 +20,15 @@ var LoadDataActionHandler = /*#__PURE__*/function () {
|
|
|
28
20
|
return LoadDataActionHandler.instance;
|
|
29
21
|
}
|
|
30
22
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
if (!_Utils.default.isNull(component)) {
|
|
35
|
-
component.api.loadData(actionConfig);
|
|
36
|
-
}
|
|
23
|
+
execute(actionConfig, event, component, currentViewId) {
|
|
24
|
+
if (!_Utils.default.isNull(component)) {
|
|
25
|
+
component.api.loadData(actionConfig);
|
|
37
26
|
}
|
|
38
|
-
}
|
|
27
|
+
}
|
|
39
28
|
|
|
40
|
-
|
|
41
|
-
}();
|
|
29
|
+
}
|
|
42
30
|
|
|
43
|
-
|
|
31
|
+
const instance = new LoadDataActionHandler();
|
|
44
32
|
Object.freeze(instance);
|
|
45
33
|
var _default = instance;
|
|
46
34
|
exports.default = _default;
|