@agilemotion/oui-react-js 1.8.55 → 1.8.57
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/ApplicationManager.js +446 -472
- package/dist/BasicApp.js +30 -0
- package/dist/BasicAppHome.js +2 -3
- package/dist/DateUtils.js +2 -2
- package/dist/DynamicJS.js +94 -101
- package/dist/InteractionPortalAppHome.js +1 -1
- package/dist/InteractionPortalApp_old.js +1 -2
- package/dist/MouseTracker.js +23 -0
- package/dist/RestService.js +13 -11
- package/dist/RestUtils.js +1 -1
- package/dist/TypedValue.js +15 -14
- package/dist/Utils.js +121 -114
- package/dist/ViewContext.js +152 -159
- package/dist/assets/jss/components/authNavbarStyle.js +34 -37
- package/dist/assets/jss/components/cardHeaderStyle.js +11 -18
- package/dist/assets/jss/components/customDropdownStyle.js +25 -27
- package/dist/assets/jss/components/customInputStyle.js +7 -3
- package/dist/assets/jss/components/dropdownStyle.js +14 -11
- package/dist/assets/jss/components/footerStyle.js +17 -12
- package/dist/assets/jss/components/headerLinksStyle.js +12 -9
- package/dist/assets/jss/components/headerStyle.js +24 -26
- package/dist/assets/jss/components/navbarLinksStyle.js +12 -9
- package/dist/assets/jss/components/navbarStyle.js +24 -26
- package/dist/assets/jss/components/sidebarStyle.js +42 -42
- package/dist/assets/jss/components/typographyStyle.js +7 -3
- package/dist/assets/jss/rootStyle.js +30 -34
- package/dist/assets/jss/views/layoutStyle.js +12 -9
- package/dist/assets/jss/views/loginStyle.js +9 -6
- package/dist/components/AlertBar.js +1 -1
- package/dist/components/Button.js +18 -11
- package/dist/components/Calendar.js +9 -6
- package/dist/components/Chart.js +1 -1
- package/dist/components/DataGrid.css +10 -1
- package/dist/components/DataGrid.js +115 -56
- package/dist/components/DataGridColumn.js +2 -1
- package/dist/components/DocumentTemplateDesignerComponent.js +7 -7
- package/dist/components/DocumentTemplateDesignerComponent2.js +3 -4
- package/dist/components/DocumentTemplatePlaceholderDialog.js +3 -4
- package/dist/components/DocumentViewer.js +15 -5
- package/dist/components/ElementResizeHandler.js +177 -174
- package/dist/components/FaceApi.js +2 -2
- package/dist/components/FileThumb.js +5 -5
- package/dist/components/Graph.js +77 -74
- package/dist/components/GraphNode.js +39 -36
- package/dist/components/HtmlPanel.js +2 -1
- package/dist/components/Icon.js +1 -2
- package/dist/components/PDFViewer.js +2 -3
- package/dist/components/PopupView.js +1 -1
- package/dist/components/Portlet.js +3 -2
- package/dist/components/RegularButton.js +17 -14
- package/dist/components/SocketManager.js +97 -94
- package/dist/components/StepperTitleBar.js +7 -6
- package/dist/components/TabPage.js +10 -7
- package/dist/components/TabPanel.js +11 -6
- package/dist/components/TableCellContent.js +15 -11
- package/dist/components/TemplateDesigner.js +2 -2
- package/dist/components/TemplateItemEventHandler.js +232 -228
- package/dist/components/TemplateTable.js +32 -29
- package/dist/components/TitleBar.js +2 -2
- package/dist/components/Toolbar.js +17 -10
- package/dist/components/Tree.js +3 -3
- package/dist/components/WordDocumentViewer.css +1 -0
- package/dist/components/WordDocumentViewer.js +205 -14
- package/dist/components/card/Card.js +18 -15
- package/dist/components/card/CardAvatar.js +11 -8
- package/dist/components/card/CardBody.js +16 -13
- package/dist/components/card/CardFooter.js +15 -12
- package/dist/components/card/CardHeader.js +16 -13
- package/dist/components/card/CardIcon.js +9 -6
- package/dist/components/card/CardText.js +9 -6
- package/dist/components/customInput/File.js +4 -5
- package/dist/components/dashboard/FoldingSideTabDashboard.bck.js +1 -1
- package/dist/components/dashboard/FoldingSideTabDashboard.js +2 -3
- package/dist/components/dashboard/components/Header.js +6 -4
- package/dist/components/dashboard/components/LeftDrawer.js +2 -2
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +26 -28
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.bck.js +182 -188
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +27 -30
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +12 -14
- package/dist/components/drag-spec-design.json +15 -0
- package/dist/components/facialRecognition/FaceRecognitionComponent.js +10 -11
- package/dist/components/facialRecognition/service/faceApi.js +3 -3
- package/dist/components/form/AddressSearch.js +8 -5
- package/dist/components/form/AutoComplete.js +4 -4
- package/dist/components/form/BaseField.js +3 -2
- package/dist/components/form/CurrencyField.js +9 -9
- package/dist/components/form/DatePicker.js +3 -2
- package/dist/components/form/FieldSet.js +2 -1
- package/dist/components/form/Form.css +1 -1
- package/dist/components/form/Form.js +10 -7
- package/dist/components/form/GridField.js +6 -4
- package/dist/components/form/IconField.js +2 -1
- package/dist/components/form/ImageEditor.js +13 -8
- package/dist/components/form/LookupField.js +8 -7
- package/dist/components/form/MultiFileUploadField.js +14 -8
- package/dist/components/form/SelectItem.js +7 -6
- package/dist/components/form/TextField.js +6 -6
- package/dist/components/form/TimePicker.js +3 -2
- package/dist/components/form/TransferList.js +2 -2
- package/dist/components/form/UploadField.js +5 -5
- package/dist/components/grid/GridContainer.js +7 -4
- package/dist/components/grid/GridItem.js +7 -4
- package/dist/components/layout/CollapsiblePanel.js +7 -5
- package/dist/components/layout/Layout.js +5 -5
- package/dist/components/layout/View.js +6 -5
- package/dist/components/layout/ViewContainer.js +1 -2
- package/dist/components/layout/ViewPort.js +1 -1
- package/dist/components/layout/Window.js +2 -3
- package/dist/components/layout/WindowDialog.js +9 -7
- package/dist/components/layout/WindowViewPort.js +3 -3
- package/dist/components/media/Chat.js +2 -1
- package/dist/components/media/MediaSoupHelper.js +57 -53
- package/dist/components/media/SocketRequest.js +9 -7
- package/dist/components/media/SocketResponse.js +7 -5
- package/dist/components/media/Timer.js +1 -2
- package/dist/components/media/Toolbar.js +3 -3
- package/dist/components/media/ToolbarButton.js +3 -3
- package/dist/components/media/Toolbar_bck.js +3 -3
- package/dist/components/media/Tracks.js +24 -19
- package/dist/components/media/TrainingRoom.js +3 -4
- package/dist/components/media/Transports.js +21 -17
- package/dist/components/media/VCEventManager.js +25 -24
- package/dist/components/media/VCEventType.js +81 -79
- package/dist/components/media/VCParticipantList.js +1 -2
- package/dist/components/media/VCParticipantListItem.js +2 -3
- package/dist/components/media/VCRoomParticipant.js +4 -5
- package/dist/components/media/VCRoomRecorder.js +163 -160
- package/dist/components/media/VCRoomWorkspace.js +3 -4
- package/dist/components/media/Video.js +1 -2
- package/dist/components/media/VideoPlayer.js +1 -2
- package/dist/components/media/chat/ChatPoll.js +15 -15
- package/dist/components/media/chat/ChatRoom.js +15 -15
- package/dist/components/media/chat/ChatRoomItem.js +2 -3
- package/dist/components/media/chat/ChatRoomList.js +1 -2
- package/dist/components/media/chat/ChatRoomWrapper.js +1 -1
- package/dist/components/media/chat/PollContainer.js +14 -8
- package/dist/components/media/chat/PollResult.js +1 -2
- package/dist/components/menu/MenuBars.js +8 -5
- package/dist/components/menu/MenuButton.js +11 -5
- package/dist/components/menu/MenuItem.js +13 -6
- package/dist/components/menu/MenuLink.js +2 -1
- package/dist/components/navbars/HomeNavbar.js +43 -41
- package/dist/components/navbars/PortalNavbar.js +1 -2
- package/dist/components/signatures/AgilitySignaturePanel.js +39 -15
- package/dist/components/signatures/{DocumentContainer.js → HtmlSignatureDocumentContainer.js} +4 -4
- package/dist/components/signatures/ImageSignatureInput.js +27 -16
- package/dist/components/signatures/ResponsiveTable.js +1 -1
- package/dist/components/signatures/SearchView.js +1 -1
- package/dist/components/signatures/SignatureInput.js +42 -98
- package/dist/components/signatures/SignatureInputProps.js +1 -1
- package/dist/components/signatures/SignatureTemplateDesigner.js +13 -10
- package/dist/components/signatures/Toolbar.js +7 -3
- package/dist/components/signatures/ViewUtils.js +21 -16
- package/dist/event/ActionHandlers.js +10 -7
- package/dist/event/Event.js +15 -13
- package/dist/event/EventListener.js +39 -41
- package/dist/event/EventType.js +24 -19
- package/dist/event/Observable.js +120 -125
- package/dist/event/RouteActionHandler.js +4 -4
- package/dist/event/ScriptActionHandler.js +1 -1
- package/dist/event/ServiceCallActionHandler.js +1 -1
- package/dist/interaction/CursorOverlay.js +48 -0
- package/dist/interaction/DragContext.js +39 -0
- package/dist/interaction/GrabContext.js +40 -0
- package/dist/js/Addresses.js +9 -8
- package/dist/js/Calendar.js +152 -149
- package/dist/js/Docs.js +92 -87
- package/dist/js/DynamicLib.js +9 -6
- package/dist/js/Media.js +134 -131
- package/dist/js/ProcurementMeetings.js +81 -78
- package/dist/js/Validators.js +53 -50
- package/dist/js/Windows.js +35 -32
- package/dist/redux/store/ConfigureStore.js +8 -5
- package/dist/redux/store/DashboardStore.js +13 -12
- package/dist/redux/store/SecurityStore.js +9 -6
- package/dist/security/TokenManager.js +1 -1
- package/dist/view/Dashboard.js +11 -12
- package/dist/view/security/ForgotPassword.js +3 -3
- package/dist/view/security/ForgotPasswordBasic.js +1 -1
- package/dist/view/security/Login.js +4 -4
- package/dist/view/security/LoginBasic.js +2 -2
- package/dist/view/security/LoginInteractionPortal.js +2 -2
- package/dist/view/security/ResetPassword.js +1 -1
- package/dist/view/security/ResetPasswordBasic.js +1 -1
- package/dist/view/security/Security.js +4 -4
- package/package.json +1 -1
|
@@ -7,48 +7,51 @@ exports.default = void 0;
|
|
|
7
7
|
var _DynamicJS = _interopRequireDefault(require("./../DynamicJS"));
|
|
8
8
|
var _Utils = _interopRequireDefault(require("./../Utils"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
12
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
13
|
class GraphNode {
|
|
11
14
|
constructor(config) {
|
|
12
|
-
this
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (_Utils.default.isNull(edge.condition) && totalEdgeCount > 0) {
|
|
20
|
-
console.error("Missing required condition for link : " + JSON.stringify(edge));
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
if (!_Utils.default.isNull(edge.condition)) {
|
|
24
|
-
let eventSource = edge.condition.eventSource;
|
|
25
|
-
let expression = edge.condition.expression;
|
|
26
|
-
if (_Utils.default.isNull(eventSource) && _Utils.default.isNull(expression)) {
|
|
27
|
-
console.error("Empty condition for link : " + JSON.stringify(edge));
|
|
15
|
+
_defineProperty(this, "evaluateEdge", (edge, event) => {
|
|
16
|
+
let totalEdgeCount = this.config.edges.length;
|
|
17
|
+
if (_Utils.default.isNull(edge.condition) && totalEdgeCount === 0) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
if (_Utils.default.isNull(edge.condition) && totalEdgeCount > 0) {
|
|
21
|
+
console.error("Missing required condition for link : " + JSON.stringify(edge));
|
|
28
22
|
return false;
|
|
29
23
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
if (!_Utils.default.isNull(edge.condition)) {
|
|
25
|
+
let eventSource = edge.condition.eventSource;
|
|
26
|
+
let expression = edge.condition.expression;
|
|
27
|
+
if (_Utils.default.isNull(eventSource) && _Utils.default.isNull(expression)) {
|
|
28
|
+
console.error("Empty condition for link : " + JSON.stringify(edge));
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
let sourceId = event.source.api.id;
|
|
32
|
+
if (totalEdgeCount === 0) {
|
|
33
|
+
return (_Utils.default.isNull(eventSource) || sourceId === eventSource) && (_Utils.default.isNull(expression) || _DynamicJS.default.executeScript('graphEdge_' + Math.random(), expression));
|
|
34
|
+
} else {
|
|
35
|
+
return sourceId === eventSource && (_Utils.default.isNull(expression) || _DynamicJS.default.executeScript('graphEdge_' + Math.random(), expression));
|
|
36
|
+
}
|
|
35
37
|
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "getNextNode", event => {
|
|
40
|
+
let activeEdge = null;
|
|
41
|
+
if (!_Utils.default.isNull(this.config.edges)) {
|
|
42
|
+
for (const edge of this.config.edges) {
|
|
43
|
+
if (this.evaluateEdge(edge, event)) {
|
|
44
|
+
activeEdge = edge;
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
if (activeEdge !== null) {
|
|
50
|
+
return activeEdge.targetNodeName;
|
|
51
|
+
}
|
|
52
|
+
return null;
|
|
53
|
+
});
|
|
54
|
+
this.config = config;
|
|
55
|
+
}
|
|
53
56
|
}
|
|
54
57
|
exports.default = GraphNode;
|
|
@@ -85,10 +85,11 @@ const HtmlPanel = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.f
|
|
|
85
85
|
},
|
|
86
86
|
loadData: (actionConfig, event) => {
|
|
87
87
|
if (actionConfig && actionConfig.value) {
|
|
88
|
+
var _applicationManager$r;
|
|
88
89
|
let parameterConfig = {
|
|
89
90
|
value: actionConfig.value
|
|
90
91
|
};
|
|
91
|
-
let data = _ApplicationManager.default.resolveParameterConfigValue(parameterConfig, event
|
|
92
|
+
let data = (_applicationManager$r = _ApplicationManager.default.resolveParameterConfigValue(parameterConfig, event === null || event === void 0 ? void 0 : event.data)) === null || _applicationManager$r === void 0 ? void 0 : _applicationManager$r.value;
|
|
92
93
|
let templateScript = Handlebars.compile(template);
|
|
93
94
|
setContent(templateScript(data));
|
|
94
95
|
}
|
package/dist/components/Icon.js
CHANGED
|
@@ -49,8 +49,7 @@ var _Phone = _interopRequireDefault(require("@mui/icons-material/Phone"));
|
|
|
49
49
|
var _Cancel = _interopRequireDefault(require("@mui/icons-material/Cancel"));
|
|
50
50
|
var _colors = require("@mui/material/colors");
|
|
51
51
|
var _iconsMaterial = require("@mui/icons-material");
|
|
52
|
-
function
|
|
53
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
52
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
54
53
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
55
54
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
56
55
|
class Icon extends _react.Component {
|
|
@@ -8,9 +8,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactPdf = require("react-pdf");
|
|
9
9
|
var _Utils = _interopRequireDefault(require("../Utils"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
_reactPdf.pdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${_reactPdf.pdfjs.version}/pdf.worker.js`;
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
12
|
+
_reactPdf.pdfjs.GlobalWorkerOptions.workerSrc = "//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(_reactPdf.pdfjs.version, "/pdf.worker.js");
|
|
14
13
|
const PDFViewer = props => {
|
|
15
14
|
const [pageNumber, setPageNumber] = _react.default.useState(1);
|
|
16
15
|
const [numPages, setNumPages] = _react.default.useState(null);
|
|
@@ -52,7 +52,7 @@ function PopupViewDialog(props) {
|
|
|
52
52
|
handle: props.view.handle,
|
|
53
53
|
loadCallback: () => {
|
|
54
54
|
if (parsedConfig.windowTitle) {
|
|
55
|
-
setTitle(_ApplicationManager.default.isExpression(parsedConfig.windowTitle) ? _DynamicJS.default.executeScript(
|
|
55
|
+
setTitle(_ApplicationManager.default.isExpression(parsedConfig.windowTitle) ? _DynamicJS.default.executeScript("popupTitle_".concat(props.view.id), parsedConfig.windowTitle, parsedConfig.id) : parsedConfig.windowTitle);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
})));
|
|
@@ -10,6 +10,7 @@ var _Observable = _interopRequireDefault(require("../event/Observable"));
|
|
|
10
10
|
require("./Portlet.css");
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
const Portlet = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
13
|
+
var _props$config$attribu, _props$config$attribu2;
|
|
13
14
|
const [url, setUrl] = _react.default.useState(null);
|
|
14
15
|
const [visible, setVisible] = _react.default.useState(true);
|
|
15
16
|
const urlTemp = _react.default.useRef(null);
|
|
@@ -70,8 +71,8 @@ const Portlet = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.for
|
|
|
70
71
|
src: url,
|
|
71
72
|
title: "eProcurement",
|
|
72
73
|
className: 'portlet-iframe',
|
|
73
|
-
sandbox: props.config.attributes
|
|
74
|
-
allow: props.config.attributes
|
|
74
|
+
sandbox: (_props$config$attribu = props.config.attributes) === null || _props$config$attribu === void 0 ? void 0 : _props$config$attribu.sandbox,
|
|
75
|
+
allow: (_props$config$attribu2 = props.config.attributes) === null || _props$config$attribu2 === void 0 ? void 0 : _props$config$attribu2.allow,
|
|
75
76
|
id: props.config.id
|
|
76
77
|
}));
|
|
77
78
|
}));
|
|
@@ -10,26 +10,29 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
10
10
|
var _styles = require("@mui/styles");
|
|
11
11
|
var _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
12
12
|
var _buttonStyle = _interopRequireDefault(require("../assets/jss/components/buttonStyle"));
|
|
13
|
+
const _excluded = ["color", "round", "children", "fullWidth", "disabled", "simple", "size", "block", "link", "justIcon", "className", "muiClasses"];
|
|
13
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
15
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
16
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
17
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
15
18
|
const useStyles = (0, _styles.makeStyles)(_buttonStyle.default);
|
|
16
19
|
const RegularButton = props => {
|
|
17
20
|
const classes = useStyles();
|
|
18
21
|
const {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
color,
|
|
23
|
+
round,
|
|
24
|
+
children,
|
|
25
|
+
fullWidth,
|
|
26
|
+
disabled,
|
|
27
|
+
simple,
|
|
28
|
+
size,
|
|
29
|
+
block,
|
|
30
|
+
link,
|
|
31
|
+
justIcon,
|
|
32
|
+
className,
|
|
33
|
+
muiClasses
|
|
34
|
+
} = props,
|
|
35
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
33
36
|
const btnClasses = (0, _classnames.default)({
|
|
34
37
|
[classes.button]: true,
|
|
35
38
|
[classes[size]]: size,
|
|
@@ -13,91 +13,117 @@ var _Event = _interopRequireDefault(require("../event/Event"));
|
|
|
13
13
|
var _VCEventType = require("./media/VCEventType");
|
|
14
14
|
var _Observable = _interopRequireDefault(require("../event/Observable"));
|
|
15
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
19
|
class SocketManager {
|
|
17
20
|
constructor() {
|
|
18
|
-
this
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
_defineProperty(this, "emitEvent", (eventType, data) => {
|
|
22
|
+
return new Promise((resolve, reject) => {
|
|
23
|
+
if (this.socket) {
|
|
24
|
+
console.log("EMITTING EVENT : " + eventType);
|
|
25
|
+
let response = this.socket.emit(eventType, data, data => {
|
|
26
|
+
console.log("EMITTING EVENT RESULT : " + eventType, data);
|
|
27
|
+
if (data.status === 'SUCCESS') {
|
|
28
|
+
resolve(data);
|
|
29
|
+
} else {
|
|
30
|
+
console.log("ERROR EMITTING EVENT : " + eventType);
|
|
31
|
+
reject(new Error(data.status));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
if (!response.connected) {
|
|
35
|
+
reject(new Error("CONNECTION_ERROR"));
|
|
31
36
|
}
|
|
32
|
-
}
|
|
33
|
-
if (!response.connected) {
|
|
37
|
+
} else {
|
|
34
38
|
reject(new Error("CONNECTION_ERROR"));
|
|
35
39
|
}
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
_defineProperty(this, "init", async () => {
|
|
43
|
+
let DEFAULT_SOCKET_SERVER_URL = 'https://sockets.e-procurementsystem.co.za';
|
|
44
|
+
if (!process.env.REACT_APP_SOCKET_SERVER_URL) {
|
|
45
|
+
console.log("SOCKET SERVER URL NOT SET. DEFAULTING TO - [https://sockets.e-procurementsystem.co.za]");
|
|
36
46
|
} else {
|
|
37
|
-
|
|
47
|
+
console.log("CONNECTING TO ENV SOCKET SERVER URL");
|
|
38
48
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
} else {
|
|
46
|
-
console.log("CONNECTING TO ENV SOCKET SERVER URL");
|
|
47
|
-
}
|
|
48
|
-
let url = process.env.REACT_APP_SOCKET_SERVER_URL || DEFAULT_SOCKET_SERVER_URL;
|
|
49
|
-
console.log("======= SOCKET MANAGER CONNECTING TO ========= [" + url + "]");
|
|
50
|
-
let socket = _socket.default.connect(url);
|
|
51
|
-
this.socket = socket;
|
|
52
|
-
socket.on("connect", () => {
|
|
53
|
-
this.registerOnline();
|
|
54
|
-
});
|
|
55
|
-
socket.on('disconnect', () => {
|
|
56
|
-
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.SOCKET_DISCONNECT, {});
|
|
57
|
-
});
|
|
58
|
-
for (const value of Object.keys(_VCEventType.VCEventType)) {
|
|
59
|
-
socket.on(value, payload => {
|
|
60
|
-
console.log('EVENT: ', value);
|
|
61
|
-
if (value !== _VCEventType.VCEventType.USERS_ONLINE && value !== _VCEventType.VCEventType.USER_ONLINE && value !== _VCEventType.VCEventType.USER_OFFLINE) {
|
|
62
|
-
_VCEventManager.default.fireEvent(value, {
|
|
63
|
-
socket: this.socket,
|
|
64
|
-
payload: payload
|
|
65
|
-
});
|
|
66
|
-
let event = new _Event.default(_ApplicationManager.default, 'SYSTEM_EVENT', payload);
|
|
67
|
-
_Observable.default.fireEvent(value, event);
|
|
68
|
-
}
|
|
49
|
+
let url = process.env.REACT_APP_SOCKET_SERVER_URL || DEFAULT_SOCKET_SERVER_URL;
|
|
50
|
+
console.log("======= SOCKET MANAGER CONNECTING TO ========= [" + url + "]");
|
|
51
|
+
let socket = _socket.default.connect(url);
|
|
52
|
+
this.socket = socket;
|
|
53
|
+
socket.on("connect", () => {
|
|
54
|
+
this.registerOnline();
|
|
69
55
|
});
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (const
|
|
74
|
-
|
|
56
|
+
socket.on('disconnect', () => {
|
|
57
|
+
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.SOCKET_DISCONNECT, {});
|
|
58
|
+
});
|
|
59
|
+
for (const value of Object.keys(_VCEventType.VCEventType)) {
|
|
60
|
+
socket.on(value, payload => {
|
|
61
|
+
console.log('EVENT: ', value);
|
|
62
|
+
if (value !== _VCEventType.VCEventType.USERS_ONLINE && value !== _VCEventType.VCEventType.USER_ONLINE && value !== _VCEventType.VCEventType.USER_OFFLINE) {
|
|
63
|
+
_VCEventManager.default.fireEvent(value, {
|
|
64
|
+
socket: this.socket,
|
|
65
|
+
payload: payload
|
|
66
|
+
});
|
|
67
|
+
let event = new _Event.default(_ApplicationManager.default, 'SYSTEM_EVENT', payload);
|
|
68
|
+
_Observable.default.fireEvent(value, event);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
75
71
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
payload
|
|
72
|
+
socket.on(_VCEventType.VCEventType.USERS_ONLINE, payload => {
|
|
73
|
+
this.usersOnline.splice(0, this.usersOnline.length);
|
|
74
|
+
for (const payloadElement of payload) {
|
|
75
|
+
this.usersOnline.push(payloadElement);
|
|
76
|
+
}
|
|
77
|
+
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.USERS_ONLINE, {
|
|
78
|
+
socket: this.socket,
|
|
79
|
+
payload: payload
|
|
80
|
+
});
|
|
79
81
|
});
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
socket.on(_VCEventType.VCEventType.USER_ONLINE, payload => {
|
|
83
|
+
this.usersOnline.push(payload);
|
|
84
|
+
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.USER_ONLINE, {
|
|
85
|
+
socket: this.socket,
|
|
86
|
+
payload: payload
|
|
87
|
+
});
|
|
86
88
|
});
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
socket.on(_VCEventType.VCEventType.USER_OFFLINE, payload => {
|
|
90
|
+
for (let i = 0; i < this.usersOnline.length; i++) {
|
|
91
|
+
console.log(this.usersOnline[i].userId + " === " + payload.userId);
|
|
92
|
+
if (this.usersOnline[i].userId === payload.userId) {
|
|
93
|
+
this.usersOnline.splice(i, 1);
|
|
94
|
+
}
|
|
93
95
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.USER_OFFLINE, {
|
|
97
|
+
socket: this.socket,
|
|
98
|
+
payload: payload
|
|
99
|
+
});
|
|
98
100
|
});
|
|
99
101
|
});
|
|
100
|
-
|
|
102
|
+
_defineProperty(this, "leaveMeeting", meetingId => {
|
|
103
|
+
if (this.socket) {
|
|
104
|
+
this.emitEvent(_VCEventType.VCEventType.LEAVE_MEETING, {
|
|
105
|
+
userId: _ApplicationManager.default.getUserDetails().username,
|
|
106
|
+
meetingId: meetingId
|
|
107
|
+
}).catch(error => {});
|
|
108
|
+
}
|
|
109
|
+
_ApplicationManager.default.setHasActiveMeeting(false);
|
|
110
|
+
});
|
|
111
|
+
_defineProperty(this, "endSession", meetingId => {
|
|
112
|
+
if (this.socket) {
|
|
113
|
+
this.emitEvent(_VCEventType.VCEventType.LEAVE_MEETING, {
|
|
114
|
+
userId: _ApplicationManager.default.getUserDetails().username,
|
|
115
|
+
meetingId: meetingId
|
|
116
|
+
}).then(() => {
|
|
117
|
+
this.emitEvent(_VCEventType.VCEventType.END_SESSION, {
|
|
118
|
+
userId: _ApplicationManager.default.getUserDetails().username,
|
|
119
|
+
meetingId: meetingId
|
|
120
|
+
}).catch(error => {});
|
|
121
|
+
}).catch(error => {});
|
|
122
|
+
}
|
|
123
|
+
_ApplicationManager.default.setHasActiveMeeting(false);
|
|
124
|
+
});
|
|
125
|
+
this.usersOnline = [];
|
|
126
|
+
}
|
|
101
127
|
registerOnline() {
|
|
102
128
|
let userDetails = _ApplicationManager.default.getUserDetails();
|
|
103
129
|
// TODO : Resolve the hardcoding
|
|
@@ -119,29 +145,6 @@ class SocketManager {
|
|
|
119
145
|
console.log(exp);
|
|
120
146
|
});
|
|
121
147
|
}
|
|
122
|
-
leaveMeeting = meetingId => {
|
|
123
|
-
if (this.socket) {
|
|
124
|
-
this.emitEvent(_VCEventType.VCEventType.LEAVE_MEETING, {
|
|
125
|
-
userId: _ApplicationManager.default.getUserDetails().username,
|
|
126
|
-
meetingId: meetingId
|
|
127
|
-
}).catch(error => {});
|
|
128
|
-
}
|
|
129
|
-
_ApplicationManager.default.setHasActiveMeeting(false);
|
|
130
|
-
};
|
|
131
|
-
endSession = meetingId => {
|
|
132
|
-
if (this.socket) {
|
|
133
|
-
this.emitEvent(_VCEventType.VCEventType.LEAVE_MEETING, {
|
|
134
|
-
userId: _ApplicationManager.default.getUserDetails().username,
|
|
135
|
-
meetingId: meetingId
|
|
136
|
-
}).then(() => {
|
|
137
|
-
this.emitEvent(_VCEventType.VCEventType.END_SESSION, {
|
|
138
|
-
userId: _ApplicationManager.default.getUserDetails().username,
|
|
139
|
-
meetingId: meetingId
|
|
140
|
-
}).catch(error => {});
|
|
141
|
-
}).catch(error => {});
|
|
142
|
-
}
|
|
143
|
-
_ApplicationManager.default.setHasActiveMeeting(false);
|
|
144
|
-
};
|
|
145
148
|
createEvent() {
|
|
146
149
|
let data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
147
150
|
return new _Event.default({
|
|
@@ -48,7 +48,7 @@ const StepperTitleBar = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.def
|
|
|
48
48
|
actions: [{
|
|
49
49
|
actionType: "script",
|
|
50
50
|
script: {
|
|
51
|
-
lines: [
|
|
51
|
+
lines: ["if($event.data.name === 'stepperTitle'){", " @#{".concat(props.config.id, "}.show()"), "}"]
|
|
52
52
|
}
|
|
53
53
|
}]
|
|
54
54
|
};
|
|
@@ -63,13 +63,14 @@ const StepperTitleBar = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.def
|
|
|
63
63
|
recalcLinePosition();
|
|
64
64
|
}, []);
|
|
65
65
|
const recalcLinePosition = () => {
|
|
66
|
+
var _$$offset;
|
|
66
67
|
// Your old logic depended on single-row layout and a single #titleDiv
|
|
67
68
|
// Now that we allow wrapping, we guard this so it doesn't break.
|
|
68
69
|
if (currentIndex.current == null) return;
|
|
69
70
|
const stepEl = (0, _jquery.default)("#step-container-" + currentIndex.current);
|
|
70
71
|
if (!stepEl || stepEl.length === 0) return;
|
|
71
72
|
const stepTop = stepEl.offset().top;
|
|
72
|
-
const firstTop = (0, _jquery.default)("#step-container-0").offset()
|
|
73
|
+
const firstTop = (_$$offset = (0, _jquery.default)("#step-container-0").offset()) === null || _$$offset === void 0 ? void 0 : _$$offset.top;
|
|
73
74
|
|
|
74
75
|
// if wrapped to multiple rows, skip line math (each item already has its own line segment)
|
|
75
76
|
if (firstTop != null && stepTop !== firstTop) {
|
|
@@ -139,9 +140,9 @@ const StepperTitleBar = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.def
|
|
|
139
140
|
const isVisited = graphicsCounter < currentIndex.current;
|
|
140
141
|
const isLast = graphicsCounter === totalSteps - 1;
|
|
141
142
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
142
|
-
className: isActive ?
|
|
143
|
+
className: isActive ? "stepActive" : isVisited ? 'stepVisited' : 'step'
|
|
143
144
|
}, graphicsCounter > 0 ? /*#__PURE__*/_react.default.createElement("div", {
|
|
144
|
-
className: (graphicsCounter <= currentIndex.current ?
|
|
145
|
+
className: (graphicsCounter <= currentIndex.current ? "".concat(classes.themeBorder, " ") : '') + (isLast ? ' lastLine' : '')
|
|
145
146
|
}) : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
146
147
|
className: 'row flex-nowrap' + (graphicsCounter === 0 ? ' firstBox' : 'boxWrapper'),
|
|
147
148
|
style: {
|
|
@@ -159,7 +160,7 @@ const StepperTitleBar = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.def
|
|
|
159
160
|
style: {
|
|
160
161
|
whiteSpace: "nowrap"
|
|
161
162
|
},
|
|
162
|
-
className: (isVisited ?
|
|
163
|
+
className: (isVisited ? "".concat(classes.secondary, " box") : isActive ? "".concat(classes.primary, " box") : 'box-pending') + ' row no-margin no-padding flex-nowrap' + (step.index === 0 ? ' first-box' : '')
|
|
163
164
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
164
165
|
className: 'dot col-*-*',
|
|
165
166
|
style: {
|
|
@@ -173,7 +174,7 @@ const StepperTitleBar = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.def
|
|
|
173
174
|
color: isActive ? '#000000' : isVisited ? '#ffffff' : '#888888'
|
|
174
175
|
}
|
|
175
176
|
}, step.title)))), !isLast ? /*#__PURE__*/_react.default.createElement("div", {
|
|
176
|
-
className: (graphicsCounter < currentIndex.current ?
|
|
177
|
+
className: (graphicsCounter < currentIndex.current ? "".concat(classes.themeBorder, " ") : '') + (graphicsCounter === 0 ? ' firstLine' : '')
|
|
177
178
|
}) : null);
|
|
178
179
|
}
|
|
179
180
|
function render() {
|
|
@@ -10,8 +10,11 @@ var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
|
10
10
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
11
11
|
var _styles = require("@mui/styles");
|
|
12
12
|
var _Utils = _interopRequireDefault(require("../Utils"));
|
|
13
|
+
const _excluded = ["children", "value", "index"];
|
|
13
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
15
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
16
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
17
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
15
18
|
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
16
19
|
formTabContainer: {
|
|
17
20
|
height: 'inherit !important',
|
|
@@ -30,11 +33,11 @@ const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
|
30
33
|
}));
|
|
31
34
|
const TabPage = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
32
35
|
const {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
children,
|
|
37
|
+
value,
|
|
38
|
+
index
|
|
39
|
+
} = props,
|
|
40
|
+
other = _objectWithoutProperties(props, _excluded);
|
|
38
41
|
const classes = useStyles();
|
|
39
42
|
let componentKey = 0;
|
|
40
43
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -46,8 +49,8 @@ const TabPage = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.for
|
|
|
46
49
|
className: "w-100",
|
|
47
50
|
role: "tabpanel",
|
|
48
51
|
hidden: value !== index,
|
|
49
|
-
id:
|
|
50
|
-
"aria-labelledby":
|
|
52
|
+
id: "simple-tabpanel-".concat(index),
|
|
53
|
+
"aria-labelledby": "simple-tab-".concat(index)
|
|
51
54
|
}, other), /*#__PURE__*/_react.default.createElement(_Box.default, {
|
|
52
55
|
p: 3,
|
|
53
56
|
className: classes.formTabPanel,
|
|
@@ -16,10 +16,15 @@ var _ApplicationManager = _interopRequireDefault(require("../ApplicationManager"
|
|
|
16
16
|
var _Layout = require("./layout/Layout");
|
|
17
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
18
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
19
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
22
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
23
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
24
|
function a11yProps(index) {
|
|
20
25
|
return {
|
|
21
|
-
id:
|
|
22
|
-
'aria-controls':
|
|
26
|
+
id: "simple-tab-".concat(index),
|
|
27
|
+
'aria-controls': "simple-tabpanel-".concat(index)
|
|
23
28
|
};
|
|
24
29
|
}
|
|
25
30
|
const TabPanel = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
@@ -117,9 +122,10 @@ const TabPanel = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.fo
|
|
|
117
122
|
let children = [];
|
|
118
123
|
let properties = Object.getOwnPropertyNames(componentHandles);
|
|
119
124
|
for (const property of properties) {
|
|
125
|
+
var _componentHandle$api;
|
|
120
126
|
let componentHandle = componentHandles[property];
|
|
121
127
|
children.push(componentHandle);
|
|
122
|
-
if (!_Utils.default.isNull(componentHandle.api
|
|
128
|
+
if (!_Utils.default.isNull((_componentHandle$api = componentHandle.api) === null || _componentHandle$api === void 0 ? void 0 : _componentHandle$api.getChildren)) {
|
|
123
129
|
for (const child of componentHandle.api.getChildren()) {
|
|
124
130
|
children.push(child);
|
|
125
131
|
}
|
|
@@ -134,10 +140,9 @@ const TabPanel = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.fo
|
|
|
134
140
|
return tabValue;
|
|
135
141
|
},
|
|
136
142
|
setPageHasError: (pageId, hasError) => {
|
|
137
|
-
setErrors({
|
|
138
|
-
...errors,
|
|
143
|
+
setErrors(_objectSpread(_objectSpread({}, errors), {}, {
|
|
139
144
|
[pageId]: hasError
|
|
140
|
-
});
|
|
145
|
+
}));
|
|
141
146
|
},
|
|
142
147
|
clearErrors: () => {
|
|
143
148
|
setErrors({});
|