@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
package/dist/components/Graph.js
CHANGED
|
@@ -19,44 +19,34 @@ function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symb
|
|
|
19
19
|
|
|
20
20
|
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); }
|
|
21
21
|
|
|
22
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
23
|
-
|
|
24
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
-
|
|
26
|
-
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); } }
|
|
27
|
-
|
|
28
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
22
|
+
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; }
|
|
29
23
|
|
|
30
24
|
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; }
|
|
31
25
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
class Graph {
|
|
27
|
+
constructor(config) {
|
|
28
|
+
_defineProperty(this, "init", () => {
|
|
29
|
+
let root = this.config.nodes[0];
|
|
30
|
+
this.current = new _GraphNode.default(this.config.nodes[0]);
|
|
37
31
|
|
|
38
|
-
|
|
39
|
-
var root = _this.config.nodes[0];
|
|
40
|
-
_this.current = new _GraphNode.default(_this.config.nodes[0]);
|
|
41
|
-
|
|
42
|
-
_ActionHandlers.default.invokeHandler(root.action, null, null, _this.config.id);
|
|
32
|
+
_ActionHandlers.default.invokeHandler(root.action, null, null, this.config.id);
|
|
43
33
|
});
|
|
44
34
|
|
|
45
|
-
_defineProperty(this, "signal",
|
|
46
|
-
|
|
35
|
+
_defineProperty(this, "signal", event => {
|
|
36
|
+
let nextNodeName = this.current.getNextNode(event);
|
|
47
37
|
|
|
48
38
|
if (!_Utils.default.isNull(nextNodeName)) {
|
|
49
|
-
var _iterator = _createForOfIteratorHelper(
|
|
39
|
+
var _iterator = _createForOfIteratorHelper(this.config.nodes),
|
|
50
40
|
_step;
|
|
51
41
|
|
|
52
42
|
try {
|
|
53
43
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
54
|
-
|
|
44
|
+
const node = _step.value;
|
|
55
45
|
|
|
56
46
|
if (node.name === nextNodeName) {
|
|
57
|
-
|
|
47
|
+
this.current = new _GraphNode.default(node);
|
|
58
48
|
|
|
59
|
-
_ActionHandlers.default.invokeHandler(node.action, null, null,
|
|
49
|
+
_ActionHandlers.default.invokeHandler(node.action, null, null, this.config.id);
|
|
60
50
|
|
|
61
51
|
break;
|
|
62
52
|
}
|
|
@@ -68,7 +58,7 @@ var Graph = /*#__PURE__*/function () {
|
|
|
68
58
|
}
|
|
69
59
|
}
|
|
70
60
|
|
|
71
|
-
if (
|
|
61
|
+
if (this.current === null) {
|
|
72
62
|
console.error("Node name could not be found : " + nextNodeName);
|
|
73
63
|
}
|
|
74
64
|
});
|
|
@@ -78,36 +68,30 @@ var Graph = /*#__PURE__*/function () {
|
|
|
78
68
|
this.current = null;
|
|
79
69
|
}
|
|
80
70
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
var value = {};
|
|
86
|
-
value.map = {};
|
|
87
|
-
|
|
88
|
-
for (var _i = 0, _Object$keys = Object.keys(this.modelData); _i < _Object$keys.length; _i++) {
|
|
89
|
-
var key = _Object$keys[_i];
|
|
90
|
-
value.map[key] = this.modelData[key];
|
|
91
|
-
}
|
|
71
|
+
get value() {
|
|
72
|
+
if (_Utils.default.isNull(this.config.valueObjectType) || this.config.valueObjectType === 'MapObject') {
|
|
73
|
+
let value = {};
|
|
74
|
+
value.map = {};
|
|
92
75
|
|
|
93
|
-
|
|
76
|
+
for (var _i = 0, _Object$keys = Object.keys(this.modelData); _i < _Object$keys.length; _i++) {
|
|
77
|
+
const key = _Object$keys[_i];
|
|
78
|
+
value.map[key] = this.modelData[key];
|
|
94
79
|
}
|
|
95
80
|
|
|
96
|
-
return
|
|
97
|
-
}
|
|
98
|
-
}, {
|
|
99
|
-
key: "model",
|
|
100
|
-
get: function get() {
|
|
101
|
-
return this.modelData;
|
|
81
|
+
return value;
|
|
102
82
|
}
|
|
103
|
-
}, {
|
|
104
|
-
key: "id",
|
|
105
|
-
get: function get() {
|
|
106
|
-
return this.config.id;
|
|
107
|
-
}
|
|
108
|
-
}]);
|
|
109
83
|
|
|
110
|
-
|
|
111
|
-
}
|
|
84
|
+
return this.modelData;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
get model() {
|
|
88
|
+
return this.modelData;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
get id() {
|
|
92
|
+
return this.config.id;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
}
|
|
112
96
|
|
|
113
97
|
exports.default = Graph;
|
|
@@ -19,81 +19,78 @@ function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symb
|
|
|
19
19
|
|
|
20
20
|
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); }
|
|
21
21
|
|
|
22
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
23
|
-
|
|
24
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
22
|
+
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; }
|
|
25
23
|
|
|
26
24
|
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; }
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
_defineProperty(this, "evaluateEdge", function (edge, event) {
|
|
34
|
-
var totalEdgeCount = _this.config.edges.length;
|
|
35
|
-
|
|
36
|
-
if (_Utils.default.isNull(edge.condition) && totalEdgeCount === 0) {
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
26
|
+
class GraphNode {
|
|
27
|
+
constructor(config) {
|
|
28
|
+
_defineProperty(this, "evaluateEdge", (edge, event) => {
|
|
29
|
+
let totalEdgeCount = this.config.edges.length;
|
|
39
30
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (!_Utils.default.isNull(edge.condition)) {
|
|
46
|
-
var eventSource = edge.condition.eventSource;
|
|
47
|
-
var expression = edge.condition.expression;
|
|
31
|
+
if (_Utils.default.isNull(edge.condition) && totalEdgeCount === 0) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
48
34
|
|
|
49
|
-
if (_Utils.default.isNull(
|
|
50
|
-
console.error("
|
|
35
|
+
if (_Utils.default.isNull(edge.condition) && totalEdgeCount > 0) {
|
|
36
|
+
console.error("Missing required condition for link : " + JSON.stringify(edge));
|
|
51
37
|
return false;
|
|
52
38
|
}
|
|
53
39
|
|
|
54
|
-
|
|
40
|
+
if (!_Utils.default.isNull(edge.condition)) {
|
|
41
|
+
let eventSource = edge.condition.eventSource;
|
|
42
|
+
let expression = edge.condition.expression;
|
|
55
43
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
44
|
+
if (_Utils.default.isNull(eventSource) && _Utils.default.isNull(expression)) {
|
|
45
|
+
console.error("Empty condition for link : " + JSON.stringify(edge));
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
let sourceId = event.source.getId();
|
|
50
|
+
|
|
51
|
+
if (totalEdgeCount === 0) {
|
|
52
|
+
return (_Utils.default.isNull(eventSource) || sourceId === eventSource) && (_Utils.default.isNull(expression) || _DynamicJS.default.executeScript('graphEdge_' + Math.random(), expression));
|
|
53
|
+
} else {
|
|
54
|
+
return sourceId === eventSource && (_Utils.default.isNull(expression) || _DynamicJS.default.executeScript('graphEdge_' + Math.random(), expression));
|
|
55
|
+
}
|
|
60
56
|
}
|
|
61
|
-
}
|
|
62
|
-
});
|
|
57
|
+
});
|
|
63
58
|
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
_defineProperty(this, "getNextNode", event => {
|
|
60
|
+
let activeEdge = null;
|
|
66
61
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
if (!_Utils.default.isNull(this.config.edges)) {
|
|
63
|
+
var _iterator = _createForOfIteratorHelper(this.config.edges),
|
|
64
|
+
_step;
|
|
70
65
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
try {
|
|
67
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
68
|
+
const edge = _step.value;
|
|
74
69
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
70
|
+
if (this.evaluateEdge(edge, event)) {
|
|
71
|
+
activeEdge = edge;
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
78
74
|
}
|
|
75
|
+
} catch (err) {
|
|
76
|
+
_iterator.e(err);
|
|
77
|
+
} finally {
|
|
78
|
+
_iterator.f();
|
|
79
79
|
}
|
|
80
|
-
} catch (err) {
|
|
81
|
-
_iterator.e(err);
|
|
82
|
-
} finally {
|
|
83
|
-
_iterator.f();
|
|
84
80
|
}
|
|
85
|
-
}
|
|
86
81
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
82
|
+
if (activeEdge !== null) {
|
|
83
|
+
return activeEdge.targetNodeName;
|
|
84
|
+
} else {
|
|
85
|
+
console.error("Could not evaulate next link : " + JSON.stringify(this.config));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return null;
|
|
89
|
+
});
|
|
92
90
|
|
|
93
|
-
|
|
94
|
-
}
|
|
91
|
+
this.config = config;
|
|
92
|
+
}
|
|
95
93
|
|
|
96
|
-
|
|
97
|
-
};
|
|
94
|
+
}
|
|
98
95
|
|
|
99
96
|
exports.default = GraphNode;
|
|
@@ -13,14 +13,12 @@ var _reactHtmlRenderer = _interopRequireDefault(require("react-html-renderer"));
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
_react.default.useImperativeHandle(ref,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
});
|
|
16
|
+
const HtmlPanel = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
17
|
+
_react.default.useImperativeHandle(ref, () => ({
|
|
18
|
+
getId: () => {
|
|
19
|
+
return props.config.id;
|
|
20
|
+
}
|
|
21
|
+
}));
|
|
24
22
|
|
|
25
23
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
26
24
|
ref: ref
|
package/dist/components/Icon.js
CHANGED
|
@@ -31,68 +31,38 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|
|
31
31
|
|
|
32
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
39
|
-
|
|
40
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
41
|
-
|
|
42
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
43
|
-
|
|
44
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
45
|
-
|
|
46
|
-
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
47
|
-
|
|
48
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
49
|
-
|
|
50
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
51
|
-
|
|
52
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
53
|
-
|
|
54
|
-
var Icon = /*#__PURE__*/function (_Component) {
|
|
55
|
-
_inherits(Icon, _Component);
|
|
56
|
-
|
|
57
|
-
var _super = _createSuper(Icon);
|
|
58
|
-
|
|
59
|
-
function Icon() {
|
|
60
|
-
_classCallCheck(this, Icon);
|
|
61
|
-
|
|
62
|
-
return _super.call(this);
|
|
34
|
+
class Icon extends _react.Component {
|
|
35
|
+
constructor() {
|
|
36
|
+
super();
|
|
63
37
|
}
|
|
64
38
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
}
|
|
39
|
+
render() {
|
|
40
|
+
if (this.props.id === 'ADD') {
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement(_Add.default, null);
|
|
42
|
+
} else if (this.props.id === 'EDIT') {
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement(_Edit.default, null);
|
|
44
|
+
} else if (this.props.id === 'REMOVE') {
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(_Remove.default, null);
|
|
46
|
+
} else if (this.props.id === 'SAVE') {
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement(_Save.default, null);
|
|
48
|
+
} else if (this.props.id === 'INFO') {
|
|
49
|
+
return /*#__PURE__*/_react.default.createElement(_Info.default, null);
|
|
50
|
+
} else if (this.props.id === 'DELETE') {
|
|
51
|
+
return /*#__PURE__*/_react.default.createElement(_Delete.default, null);
|
|
52
|
+
} else if (this.props.id === 'DOWNLOAD') {
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement(_CloudDownload.default, null);
|
|
54
|
+
} else if (this.props.id === 'SEARCH') {
|
|
55
|
+
return /*#__PURE__*/_react.default.createElement(_Search.default, null);
|
|
56
|
+
} else if (this.props.id === 'ERROR') {
|
|
57
|
+
return /*#__PURE__*/_react.default.createElement(_Error.default, {
|
|
58
|
+
style: {
|
|
59
|
+
color: '#f44336'
|
|
60
|
+
}
|
|
61
|
+
});
|
|
91
62
|
}
|
|
92
|
-
}
|
|
63
|
+
}
|
|
93
64
|
|
|
94
|
-
|
|
95
|
-
}(_react.Component);
|
|
65
|
+
}
|
|
96
66
|
|
|
97
67
|
var _default = Icon;
|
|
98
68
|
exports.default = _default;
|
|
@@ -16,8 +16,8 @@ require("./loader.css");
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
18
|
function LoadingIndicator(props) {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
const _usePromiseTracker = (0, _reactPromiseTracker.usePromiseTracker)(),
|
|
20
|
+
promiseInProgress = _usePromiseTracker.promiseInProgress;
|
|
21
21
|
|
|
22
22
|
return promiseInProgress && /*#__PURE__*/_react.default.createElement("div", {
|
|
23
23
|
id: "myModal",
|
|
@@ -24,23 +24,21 @@ var _View = require("./layout/View");
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
26
26
|
function PopupView(props) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
var handler = function handler(result) {
|
|
27
|
+
const height = _Utils.default.getComponentAttribute(props.view.config, 'height', '28vh');
|
|
28
|
+
|
|
29
|
+
const width = _Utils.default.getComponentAttribute(props.view.config, 'width', '40vw');
|
|
30
|
+
|
|
31
|
+
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
32
|
+
dialogPaper: {
|
|
33
|
+
minHeight: height,
|
|
34
|
+
maxHeight: height,
|
|
35
|
+
minWidth: width,
|
|
36
|
+
maxWidth: width
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
const classes = useStyles();
|
|
40
|
+
|
|
41
|
+
const handler = result => {
|
|
44
42
|
props.handler(result);
|
|
45
43
|
};
|
|
46
44
|
|
|
@@ -25,26 +25,26 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
25
25
|
|
|
26
26
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
28
|
+
const useStyles = (0, _styles.makeStyles)(_buttonStyle.default);
|
|
29
|
+
|
|
30
|
+
const RegularButton = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
31
|
+
const classes = useStyles();
|
|
32
|
+
|
|
33
|
+
const color = props.color,
|
|
34
|
+
round = props.round,
|
|
35
|
+
children = props.children,
|
|
36
|
+
fullWidth = props.fullWidth,
|
|
37
|
+
disabled = props.disabled,
|
|
38
|
+
simple = props.simple,
|
|
39
|
+
size = props.size,
|
|
40
|
+
block = props.block,
|
|
41
|
+
link = props.link,
|
|
42
|
+
justIcon = props.justIcon,
|
|
43
|
+
className = props.className,
|
|
44
|
+
muiClasses = props.muiClasses,
|
|
45
|
+
rest = _objectWithoutProperties(props, ["color", "round", "children", "fullWidth", "disabled", "simple", "size", "block", "link", "justIcon", "className", "muiClasses"]);
|
|
46
|
+
|
|
47
|
+
const btnClasses = (0, _classnames.default)({
|
|
48
48
|
[classes.button]: true,
|
|
49
49
|
[classes[size]]: size,
|
|
50
50
|
[classes[color]]: color,
|
|
@@ -25,33 +25,31 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
25
25
|
|
|
26
26
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
45
|
-
});
|
|
28
|
+
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
29
|
+
formTabContainer: {
|
|
30
|
+
height: 'inherit !important',
|
|
31
|
+
overflow: 'hidden !important',
|
|
32
|
+
width: '100%',
|
|
33
|
+
zIndex: '0',
|
|
34
|
+
paddingLeft: '16px'
|
|
35
|
+
},
|
|
36
|
+
formTabPanel: {
|
|
37
|
+
width: '100%',
|
|
38
|
+
height: 'inherit !important',
|
|
39
|
+
overflow: 'hidden !important',
|
|
40
|
+
zIndex: '0',
|
|
41
|
+
paddingLeft: "0px"
|
|
42
|
+
}
|
|
43
|
+
}));
|
|
46
44
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
const TabPage = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
46
|
+
const children = props.children,
|
|
47
|
+
value = props.value,
|
|
48
|
+
index = props.index,
|
|
49
|
+
other = _objectWithoutProperties(props, ["children", "value", "index"]);
|
|
52
50
|
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
const classes = useStyles();
|
|
52
|
+
let componentKey = 0;
|
|
55
53
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
56
54
|
ref: ref,
|
|
57
55
|
style: {
|