@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.
Files changed (133) hide show
  1. package/dist/ApplicationContext.js +244 -250
  2. package/dist/BasicApp.js +53 -97
  3. package/dist/BasicAppHome.js +86 -122
  4. package/dist/DynamicJS.js +65 -88
  5. package/dist/RestUtils.js +284 -315
  6. package/dist/TypedValue.js +15 -18
  7. package/dist/Utils.js +224 -262
  8. package/dist/assets/jss/components/authNavbarStyle.js +162 -164
  9. package/dist/assets/jss/components/buttonStyle.js +1 -1
  10. package/dist/assets/jss/components/cardAvatarStyle.js +1 -1
  11. package/dist/assets/jss/components/cardBodyStyle.js +1 -1
  12. package/dist/assets/jss/components/cardFooterStyle.js +1 -1
  13. package/dist/assets/jss/components/cardHeaderStyle.js +1 -1
  14. package/dist/assets/jss/components/cardIconStyle.js +1 -1
  15. package/dist/assets/jss/components/cardStyle.js +1 -1
  16. package/dist/assets/jss/components/cardTextStyle.js +1 -1
  17. package/dist/assets/jss/components/customDropdownStyle.js +192 -194
  18. package/dist/assets/jss/components/customInputStyle.js +1 -1
  19. package/dist/assets/jss/components/dropdownStyle.js +107 -109
  20. package/dist/assets/jss/components/footerStyle.js +1 -1
  21. package/dist/assets/jss/components/headerLinksStyle.js +95 -97
  22. package/dist/assets/jss/components/headerStyle.js +60 -62
  23. package/dist/assets/jss/components/navbarLinksStyle.js +137 -139
  24. package/dist/assets/jss/components/navbarStyle.js +71 -73
  25. package/dist/assets/jss/components/sidebarStyle.js +453 -455
  26. package/dist/assets/jss/components/typographyStyle.js +1 -1
  27. package/dist/assets/jss/rootStyle.js +57 -57
  28. package/dist/assets/jss/views/layoutStyle.js +42 -44
  29. package/dist/assets/jss/views/loginBasicStyle.js +1 -1
  30. package/dist/assets/jss/views/loginStyle.js +87 -89
  31. package/dist/components/AlertBar.js +21 -23
  32. package/dist/components/AlertItem.js +23 -25
  33. package/dist/components/AlertTemplate.js +29 -30
  34. package/dist/components/Button.js +35 -37
  35. package/dist/components/ConfirmationDialog.js +3 -3
  36. package/dist/components/DataGrid.js +250 -276
  37. package/dist/components/DataGridColumn.js +34 -36
  38. package/dist/components/DataGridFilter.js +92 -94
  39. package/dist/components/DataGridHeading.js +32 -38
  40. package/dist/components/DocumentViewer.js +12 -11
  41. package/dist/components/Graph.js +34 -50
  42. package/dist/components/GraphNode.js +53 -56
  43. package/dist/components/HtmlPanel.js +6 -8
  44. package/dist/components/Icon.js +28 -58
  45. package/dist/components/LoadingIndicator.js +2 -2
  46. package/dist/components/PopupView.js +15 -17
  47. package/dist/components/RegularButton.js +20 -20
  48. package/dist/components/TabPage.js +23 -25
  49. package/dist/components/TabPanel.js +34 -34
  50. package/dist/components/TableCellContent.js +34 -34
  51. package/dist/components/TitleBar.js +16 -16
  52. package/dist/components/Toolbar.js +112 -118
  53. package/dist/components/Tooltip.js +35 -43
  54. package/dist/components/Tree.js +54 -60
  55. package/dist/components/card/Card.js +17 -17
  56. package/dist/components/card/CardAvatar.js +10 -10
  57. package/dist/components/card/CardBody.js +14 -14
  58. package/dist/components/card/CardFooter.js +13 -13
  59. package/dist/components/card/CardHeader.js +14 -14
  60. package/dist/components/card/CardIcon.js +7 -7
  61. package/dist/components/card/CardText.js +7 -7
  62. package/dist/components/customInput/CustomInput.js +17 -17
  63. package/dist/components/dashboard/BasicApp.js +25 -25
  64. package/dist/components/dashboard/BasicBusinessApp.js +116 -119
  65. package/dist/components/dashboard/components/Header.js +11 -11
  66. package/dist/components/dashboard/components/LeftDrawer.js +3 -3
  67. package/dist/components/dashboard/components/UserIdentity.js +2 -2
  68. package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +85 -127
  69. package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +151 -191
  70. package/dist/components/footer/Footer.js +8 -8
  71. package/dist/components/footer/HomeFooter.js +34 -66
  72. package/dist/components/form/BaseField.js +78 -78
  73. package/dist/components/form/Checkbox.js +8 -10
  74. package/dist/components/form/DatePicker.js +15 -19
  75. package/dist/components/form/FieldSet.js +62 -88
  76. package/dist/components/form/Form.js +317 -318
  77. package/dist/components/form/GridField.js +81 -86
  78. package/dist/components/form/LabelField.js +10 -12
  79. package/dist/components/form/LookupField.js +40 -42
  80. package/dist/components/form/Section.js +37 -39
  81. package/dist/components/form/SelectItem.js +35 -39
  82. package/dist/components/form/TextField.js +18 -22
  83. package/dist/components/form/TimePicker.js +15 -19
  84. package/dist/components/form/TransferList.js +83 -91
  85. package/dist/components/form/UploadField.js +135 -145
  86. package/dist/components/grid/GridContainer.js +6 -6
  87. package/dist/components/grid/GridItem.js +6 -6
  88. package/dist/components/layout/CollapsiblePanel.js +18 -20
  89. package/dist/components/layout/Layout.js +70 -72
  90. package/dist/components/layout/View.js +134 -136
  91. package/dist/components/layout/ViewPort.js +56 -98
  92. package/dist/components/menu/CollapsibleMenu.js +26 -28
  93. package/dist/components/menu/MenuBars.js +53 -59
  94. package/dist/components/menu/MenuButton.js +70 -77
  95. package/dist/components/menu/MenuItem.js +15 -17
  96. package/dist/components/menu/MenuLink.js +9 -11
  97. package/dist/components/menu/PopupMenu.js +12 -16
  98. package/dist/components/navbars/AuthNavbar.js +12 -12
  99. package/dist/components/navbars/HomeNavbar.js +175 -222
  100. package/dist/components/navbars/NavbarLinks.js +45 -46
  101. package/dist/components/typography/Danger.js +3 -3
  102. package/dist/components/typography/Info.js +3 -3
  103. package/dist/components/typography/Link.js +3 -3
  104. package/dist/event/ActionHandlers.js +43 -57
  105. package/dist/event/Event.js +13 -16
  106. package/dist/event/EventListener.js +36 -39
  107. package/dist/event/EventType.js +1 -5
  108. package/dist/event/LoadDataActionHandler.js +8 -20
  109. package/dist/event/Observable.js +162 -198
  110. package/dist/event/RouteActionHandler.js +76 -88
  111. package/dist/event/ScriptActionHandler.js +8 -20
  112. package/dist/event/ServiceCallActionHandler.js +28 -40
  113. package/dist/event/SignalGraphActionHandler.js +7 -19
  114. package/dist/js/Addresses.js +15 -27
  115. package/dist/js/DynamicLib.js +11 -14
  116. package/dist/js/Validators.js +5 -6
  117. package/dist/redux/store/ConfigureStore.js +6 -6
  118. package/dist/redux/store/DashboardStore.js +83 -95
  119. package/dist/redux/store/History.js +1 -1
  120. package/dist/redux/store/SecurityStore.js +41 -45
  121. package/dist/security/TokenManager.js +30 -44
  122. package/dist/theme-default.js +1 -1
  123. package/dist/view/Dashboard.js +108 -114
  124. package/dist/view/Settings.js +2 -4
  125. package/dist/view/security/ChangePasswordBasic.js +96 -100
  126. package/dist/view/security/ForgotPassword.js +52 -56
  127. package/dist/view/security/ForgotPasswordBasic.js +48 -54
  128. package/dist/view/security/Login.js +58 -62
  129. package/dist/view/security/LoginBasic.js +50 -54
  130. package/dist/view/security/ResetPassword.js +58 -62
  131. package/dist/view/security/ResetPasswordBasic.js +89 -93
  132. package/dist/view/security/Security.js +12 -12
  133. 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
- var useStyles = (0, _styles.makeStyles)(_typographyStyle.default);
20
+ const useStyles = (0, _styles.makeStyles)(_typographyStyle.default);
21
21
 
22
22
  function Info(props) {
23
- var classes = useStyles();
24
- var children = props.children;
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
- var useStyles = makeStyles(_typographyStyle.default);
16
+ const useStyles = makeStyles(_typographyStyle.default);
17
17
 
18
18
  function Info(props) {
19
- var classes = useStyles();
20
- var children = props.children;
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
- var ActionHandlers = /*#__PURE__*/function () {
37
- function ActionHandlers() {
38
- _classCallCheck(this, ActionHandlers);
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
- _createClass(ActionHandlers, [{
58
- key: "getActionHandler",
59
- value: function getActionHandler(id) {
60
- if (id === 'script') {
61
- return _ScriptActionHandler.default;
62
- } else if (id === 'route') {
63
- return _RouteActionHandler.default;
64
- } else if (id === 'serviceCall') {
65
- return _ServiceCallActionHandler.default;
66
- } else if (id === 'loadData') {
67
- return _LoadDataActionHandler.default;
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
- key: "invoke",
74
- value: function invoke(action, be, listener) {
75
- // TODO : Check action conditions and also run pre and post scripts
76
- var component = listener.getSubscriberRef();
77
- var viewId = listener.getViewId();
78
- this.invokeHandler(action, be, component, viewId);
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
- if (shouldRun) {
93
- if (!_Utils.default.isNull(message)) {
94
- _ApplicationContext.default.openConfirmDialog(message, function (result) {
95
- if (result === true) {
96
- actionHandler.execute(action, be, component, viewId);
97
- }
98
- });
99
- } else {
100
- actionHandler.execute(action, be, component, viewId);
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
- return ActionHandlers;
107
- }();
93
+ }
108
94
 
109
- var instance = new ActionHandlers();
95
+ const instance = new ActionHandlers();
110
96
  Object.freeze(instance);
111
97
  var _default = instance;
112
98
  exports.default = _default;
@@ -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
- var Event = function Event(source, viewId, data) {
13
- var _this = this;
14
-
15
- _classCallCheck(this, Event);
10
+ class Event {
11
+ constructor(source, viewId, data) {
12
+ _defineProperty(this, "getSource", () => {
13
+ return this.source;
14
+ });
16
15
 
17
- _defineProperty(this, "getSource", function () {
18
- return _this.source;
19
- });
16
+ _defineProperty(this, "getData", () => {
17
+ return this.data;
18
+ });
20
19
 
21
- _defineProperty(this, "getData", function () {
22
- return _this.data;
23
- });
20
+ this.source = source;
21
+ this.viewId = viewId;
22
+ this.data = data;
23
+ }
24
24
 
25
- this.source = source;
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
- var EventSubscription = function EventSubscription(subscriberRef, viewId, publisher, eventType, actions, callback) {
17
- var _this = this;
18
-
19
- _classCallCheck(this, EventSubscription);
20
-
21
- _defineProperty(this, "getSubscriberRef", function () {
22
- return _this.subscriberRef;
23
- });
24
-
25
- _defineProperty(this, "getEventType", function () {
26
- return _this.eventType;
27
- });
28
-
29
- _defineProperty(this, "getViewId", function () {
30
- return _this.viewId;
31
- });
32
-
33
- _defineProperty(this, "getPublisher", function () {
34
- return _this.publisher;
35
- });
36
-
37
- _defineProperty(this, "getActions", function () {
38
- return _this.actions;
39
- });
40
-
41
- _defineProperty(this, "getCallback", function () {
42
- return _this.callback;
43
- });
44
-
45
- this.subscriberRef = subscriberRef;
46
- this.subscriber = !_Utils.default.isNull(subscriberRef) && !_Utils.default.isNull(subscriberRef.api.id) ? subscriberRef.api.id : null;
47
- this.eventType = eventType;
48
- this.viewId = viewId;
49
- this.publisher = publisher;
50
- this.actions = actions;
51
- this.callback = callback;
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;
@@ -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
- var EventType = function EventType() {
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
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
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
- _createClass(LoadDataActionHandler, [{
32
- key: "execute",
33
- value: function execute(actionConfig, event, component, currentViewId) {
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
- return LoadDataActionHandler;
41
- }();
29
+ }
42
30
 
43
- var instance = new LoadDataActionHandler();
31
+ const instance = new LoadDataActionHandler();
44
32
  Object.freeze(instance);
45
33
  var _default = instance;
46
34
  exports.default = _default;