@agilemotion/oui-react-js 1.3.8 → 1.4.0
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/README.TXT +1 -0
- package/dist/{ApplicationContext.js → ApplicationManager.js} +334 -335
- package/dist/BasicApp.js +67 -64
- package/dist/BasicAppHome.js +90 -110
- package/dist/BusinessPortalApp.js +1 -1
- package/dist/BusinessPortalAppHome.js +15 -50
- package/dist/DynamicJS.js +24 -52
- package/dist/RestUtils.js +90 -116
- package/dist/Utils.js +49 -37
- package/dist/WithRouter.js +34 -0
- package/dist/assets/jss/components/authNavbarStyle.js +34 -35
- package/dist/assets/jss/components/cardHeaderStyle.js +12 -12
- package/dist/assets/jss/components/customDropdownStyle.js +26 -26
- package/dist/assets/jss/components/customInputStyle.js +2 -8
- package/dist/assets/jss/components/dropdownStyle.js +10 -15
- package/dist/assets/jss/components/footerStyle.js +12 -18
- package/dist/assets/jss/components/headerLinksStyle.js +7 -13
- package/dist/assets/jss/components/headerStyle.js +24 -25
- package/dist/assets/jss/components/navbarLinksStyle.js +7 -13
- package/dist/assets/jss/components/navbarStyle.js +24 -25
- package/dist/assets/jss/components/sidebarStyle.js +41 -43
- package/dist/assets/jss/components/typographyStyle.js +2 -8
- package/dist/assets/jss/rootStyle.js +32 -47
- package/dist/assets/jss/views/layoutStyle.js +6 -11
- package/dist/assets/jss/views/loginStyle.js +4 -10
- package/dist/assets/lotties/call-loading.json +1 -0
- package/dist/assets/lotties/calling-2.json +1 -0
- package/dist/assets/lotties/calling.json +1 -0
- package/dist/assets/lotties/calling2.json +1 -0
- package/dist/assets/lotties/chat.json +1 -0
- package/dist/assets/lotties/join.json +1 -0
- package/dist/assets/lotties/loading.json +1 -0
- package/dist/assets/lotties/msg2.json +1 -0
- package/dist/assets/lotties/recording.json +1 -0
- package/dist/assets/lotties/waiting.json +1 -0
- package/dist/assets/scss/black-dashboard-react/bootstrap/_card.scss +5 -5
- package/dist/assets/scss/black-dashboard-react/bootstrap/_carousel.scss +2 -2
- package/dist/assets/scss/black-dashboard-react/bootstrap/_custom-forms.scss +3 -3
- package/dist/assets/scss/black-dashboard-react/bootstrap/_functions.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/bootstrap/_images.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/bootstrap/_jumbotron.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/bootstrap/_popover.scss +7 -5
- package/dist/assets/scss/black-dashboard-react/bootstrap/_tooltip.scss +4 -4
- package/dist/assets/scss/black-dashboard-react/bootstrap/_variables.scss +5 -5
- package/dist/assets/scss/black-dashboard-react/bootstrap/mixins/_grid-framework.scss +2 -2
- package/dist/assets/scss/black-dashboard-react/bootstrap/mixins/_grid.scss +11 -9
- package/dist/assets/scss/black-dashboard-react/bootstrap/utilities/_embed.scss +6 -4
- package/dist/assets/scss/black-dashboard-react/custom/_sidebar-and-main-panel.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/custom/_variables.scss +1 -1
- package/dist/components/AlertBar.js +39 -80
- package/dist/components/AlertItem.js +4 -26
- package/dist/components/Button.js +49 -52
- package/dist/components/Calendar.js +442 -0
- package/dist/components/Calender.css +244 -0
- package/dist/components/ConfirmationDialog.js +5 -29
- package/dist/components/DataGrid.js +207 -345
- package/dist/components/DataGridColumn.js +6 -29
- package/dist/components/DataGridFilter.js +48 -116
- package/dist/components/DataGridHeading.js +11 -19
- package/dist/components/Dialog.js +27 -121
- package/dist/components/DocumentViewer.js +12 -38
- package/dist/components/DocumentViewerComponent.js +2 -20
- package/dist/components/FileThumb.js +126 -0
- package/dist/components/Graph.js +33 -75
- package/dist/components/GraphNode.js +5 -22
- package/dist/components/HtmlPanel.js +68 -82
- package/dist/components/Icon.js +107 -1
- package/dist/components/LoadingIndicator.js +4 -4
- package/dist/components/LottieIcon.js +134 -0
- package/dist/components/PopupView.js +3 -21
- package/dist/components/Portlet.js +100 -0
- package/dist/components/RegularButton.js +15 -19
- package/dist/components/SignaturePanel.js +9 -40
- package/dist/components/SocketManager.js +170 -0
- package/dist/components/StepperTitleBar.js +33 -59
- package/dist/components/TabPage.js +6 -9
- package/dist/components/TabPanel.js +49 -98
- package/dist/components/TableCellContent.js +31 -39
- package/dist/components/TemplateDesigner.js +114 -158
- package/dist/components/TemplateItemEventHandler.js +33 -100
- package/dist/components/TemplateTable.js +6 -42
- package/dist/components/TitleBar.js +38 -54
- package/dist/components/Toolbar.js +67 -182
- package/dist/components/Tree.js +29 -66
- package/dist/components/card/Card.js +16 -20
- package/dist/components/card/CardAvatar.js +9 -13
- package/dist/components/card/CardBody.js +13 -17
- package/dist/components/card/CardFooter.js +12 -16
- package/dist/components/card/CardHeader.js +13 -17
- package/dist/components/card/CardIcon.js +6 -10
- package/dist/components/card/CardText.js +6 -10
- package/dist/components/customInput/CustomInput.js +12 -10
- package/dist/components/dashboard/BasicBusinessAppDashboard.js +85 -159
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +30 -75
- package/dist/components/dashboard/components/Header.js +9 -26
- package/dist/components/dashboard/components/LeftDrawer.js +3 -1
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +1 -1
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.css +7 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +189 -79
- package/dist/components/footer/Footer.js +6 -18
- package/dist/components/form/AddressSearch.js +32 -66
- package/dist/components/form/AutoComplete.js +161 -0
- package/dist/components/form/BaseField.js +89 -107
- package/dist/components/form/DatePicker.js +8 -23
- package/dist/components/form/FieldSet.js +161 -191
- package/dist/components/form/Form.css +1 -1
- package/dist/components/form/Form.js +153 -479
- package/dist/components/form/GridField.js +46 -146
- package/dist/components/form/IconField.js +35 -0
- package/dist/components/form/ImageEditor.js +22 -60
- package/dist/components/form/LookupField.js +8 -29
- package/dist/components/form/MultiFileUploadField.js +187 -0
- package/dist/components/form/RadioGroup.js +10 -26
- package/dist/components/form/Section.js +40 -91
- package/dist/components/form/SelectItem.js +14 -33
- package/dist/components/form/SignatureTemplateDesignerField.js +0 -1
- package/dist/components/form/Switch.js +53 -0
- package/dist/components/form/TextField.js +10 -17
- package/dist/components/form/TimePicker.js +8 -1
- package/dist/components/form/TransferList.css +2 -2
- package/dist/components/form/TransferList.js +67 -125
- package/dist/components/form/UploadField.js +132 -177
- package/dist/components/form/fieldset.css +8 -0
- package/dist/components/grid/GridContainer.js +5 -9
- package/dist/components/grid/GridItem.js +5 -9
- package/dist/components/layout/CollapsiblePanel.js +11 -33
- package/dist/components/layout/Layout.js +228 -290
- package/dist/components/layout/VC.css +17 -0
- package/dist/components/layout/View.css +18 -1
- package/dist/components/layout/View.js +80 -200
- package/dist/components/layout/ViewContainer.css +3 -0
- package/dist/components/layout/ViewContainer.js +59 -0
- package/dist/components/layout/ViewPort.js +50 -80
- package/dist/components/layout/Window.css +18 -0
- package/dist/components/layout/Window.js +287 -0
- package/dist/components/layout/WindowViewPort.js +71 -0
- package/dist/components/loader.css +1 -1
- package/dist/components/media/ClosablePanel.css +37 -0
- package/dist/components/media/ClosablePanel.js +53 -0
- package/dist/components/media/LobbyWaitingList.js +91 -0
- package/dist/components/media/MediaSoupHelper.js +223 -0
- package/dist/components/media/Recorder.js +235 -0
- package/dist/components/media/SideBarContent.css +54 -0
- package/dist/components/media/SideBarContent.js +46 -0
- package/dist/components/media/SocketRequest.js +20 -0
- package/dist/components/media/SocketResponse.js +16 -0
- package/dist/components/media/Timer.css +30 -0
- package/dist/components/media/Timer.js +88 -0
- package/dist/components/media/Toolbar.css +35 -0
- package/dist/components/media/Toolbar.js +494 -0
- package/dist/components/media/Tracks.js +39 -0
- package/dist/components/media/TrainingRoom.js +608 -0
- package/dist/components/media/Transports.js +35 -0
- package/dist/components/media/VCEventManager.js +74 -0
- package/dist/components/media/VCEventType.js +164 -0
- package/dist/components/media/VCParticipantList.css +72 -0
- package/dist/components/media/VCParticipantList.js +56 -0
- package/dist/components/media/VCParticipantListItem.css +73 -0
- package/dist/components/media/VCParticipantListItem.js +319 -0
- package/dist/components/media/VCRoom.css +42 -0
- package/dist/components/media/VCRoom.js +90 -0
- package/dist/components/media/VCRoomParticipant.css +25 -0
- package/dist/components/media/VCRoomParticipant.js +808 -0
- package/dist/components/media/VCRoomRecorder.js +223 -0
- package/dist/components/media/VCRoomWorkspace.css +86 -0
- package/dist/components/media/VCRoomWorkspace.js +666 -0
- package/dist/components/media/Video.css +4 -0
- package/dist/components/media/Video.js +131 -0
- package/dist/components/media/VideoPlayer.css +10 -0
- package/dist/components/media/VideoPlayer.js +86 -0
- package/dist/components/media/chat/ChatRoom.js +926 -0
- package/dist/components/media/chat/ChatRoomItem.js +83 -0
- package/dist/components/media/chat/ChatRoomList.js +78 -0
- package/dist/components/media/chat/ChatRooms.scss +567 -0
- package/dist/components/menu/CollapsibleMenu.js +2 -19
- package/dist/components/menu/MenuBars.js +6 -33
- package/dist/components/menu/MenuButton.js +27 -39
- package/dist/components/menu/MenuItem.js +3 -20
- package/dist/components/menu/MenuLink.js +22 -13
- package/dist/components/navbars/AuthNavbar.js +5 -18
- package/dist/components/navbars/HomeNavbar.js +5 -7
- package/dist/components/navbars/PortalNavbar.js +7 -25
- package/dist/components/signatures/AgilitySignaturePanel.js +38 -104
- package/dist/components/signatures/AlertItem.js +3 -24
- package/dist/components/signatures/DocumentContainer.js +47 -134
- package/dist/components/signatures/ImageSignatureInput.js +11 -38
- package/dist/components/signatures/MenuButton.js +1 -16
- package/dist/components/signatures/Prompt.js +3 -24
- package/dist/components/signatures/ResponsiveTable.js +42 -83
- package/dist/components/signatures/SearchView.js +13 -50
- package/dist/components/signatures/SignatorySearch.js +83 -99
- package/dist/components/signatures/SignatorySearchForm.js +11 -17
- package/dist/components/signatures/SignatureInput.js +18 -47
- package/dist/components/signatures/SignatureInputProps.js +18 -60
- package/dist/components/signatures/SignatureTemplateDesigner.js +151 -239
- package/dist/components/signatures/Toolbar.js +7 -34
- package/dist/components/signatures/ViewUtils.js +2 -6
- package/dist/components/typography/Danger.js +3 -1
- package/dist/components/typography/Info.js +3 -1
- package/dist/components/typography/Link.js +6 -2
- package/dist/event/ActionHandlers.js +6 -6
- package/dist/event/EventType.js +7 -1
- package/dist/event/LoadDataActionHandler.js +1 -1
- package/dist/event/Observable.js +80 -174
- package/dist/event/RouteActionHandler.js +74 -31
- package/dist/event/ServiceCallActionHandler.js +36 -24
- package/dist/event/SignalGraphActionHandler.js +2 -2
- package/dist/js/Addresses.js +10 -8
- package/dist/js/Calendar.js +220 -0
- package/dist/js/Media.js +157 -0
- package/dist/redux/store/ConfigureStore.js +3 -9
- package/dist/redux/store/DashboardStore.js +42 -94
- package/dist/redux/store/SecurityStore.js +15 -50
- package/dist/view/Dashboard.js +256 -171
- package/dist/view/Views.js +30 -0
- package/dist/view/security/ChangePasswordBasic.js +29 -80
- package/dist/view/security/ForgotPassword.js +13 -46
- package/dist/view/security/ForgotPasswordBasic.js +12 -45
- package/dist/view/security/Login.js +15 -51
- package/dist/view/security/LoginBasic.js +13 -46
- package/dist/view/security/LoginBusinessPortal.js +12 -45
- package/dist/view/security/ResetPassword.js +13 -51
- package/dist/view/security/ResetPasswordBasic.js +27 -75
- package/dist/view/security/Security.js +1 -0
- package/package.json +31 -25
- package/README.md +0 -1623
- package/dist/components/dashboard/BasicApp.js +0 -140
- package/dist/components/navbars/NavbarLinks.js +0 -212
- package/dist/components/signatures/OLD.js +0 -1138
- package/gulpfile.js +0 -77
|
@@ -21,29 +21,25 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
21
21
|
|
|
22
22
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
23
|
|
|
24
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
-
|
|
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
|
-
|
|
28
24
|
const useStyles = (0, _styles.makeStyles)(_buttonStyle.default);
|
|
29
25
|
|
|
30
26
|
const RegularButton = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
31
27
|
const classes = useStyles();
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
28
|
+
const {
|
|
29
|
+
color,
|
|
30
|
+
round,
|
|
31
|
+
children,
|
|
32
|
+
fullWidth,
|
|
33
|
+
disabled,
|
|
34
|
+
simple,
|
|
35
|
+
size,
|
|
36
|
+
block,
|
|
37
|
+
link,
|
|
38
|
+
justIcon,
|
|
39
|
+
className,
|
|
40
|
+
muiClasses,
|
|
41
|
+
...rest
|
|
42
|
+
} = props;
|
|
47
43
|
const btnClasses = (0, _classnames.default)({
|
|
48
44
|
[classes.button]: true,
|
|
49
45
|
[classes[size]]: size,
|
|
@@ -23,54 +23,23 @@ var _EventType = _interopRequireDefault(require("../event/EventType"));
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
26
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
27
|
-
|
|
28
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
29
|
-
|
|
30
|
-
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); }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
34
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
35
|
-
|
|
36
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
|
-
|
|
38
26
|
const SignaturePanel = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
39
|
-
const
|
|
40
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
41
|
-
initializing = _React$useState2[0],
|
|
42
|
-
setInitializing = _React$useState2[1];
|
|
43
|
-
|
|
44
|
-
const _React$useState3 = _react.default.useState(null),
|
|
45
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
46
|
-
config = _React$useState4[0],
|
|
47
|
-
setConfig = _React$useState4[1];
|
|
27
|
+
const [config, setConfig] = _react.default.useState(null);
|
|
48
28
|
|
|
49
|
-
const
|
|
50
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
51
|
-
value = _React$useState6[0],
|
|
52
|
-
setValue = _React$useState6[1];
|
|
29
|
+
const [value, setValue] = _react.default.useState(null);
|
|
53
30
|
|
|
54
|
-
const
|
|
55
|
-
_React$useState8 = _slicedToArray(_React$useState7, 1),
|
|
56
|
-
handle = _React$useState8[0];
|
|
31
|
+
const [handle] = _react.default.useState({});
|
|
57
32
|
|
|
58
33
|
_react.default.useEffect(() => {
|
|
59
34
|
props.handle.api = api();
|
|
35
|
+
});
|
|
60
36
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.viewId);
|
|
65
|
-
|
|
66
|
-
_Observable.default.addSystemSubscriptions(parsedConfig);
|
|
37
|
+
_react.default.useEffect(() => {
|
|
38
|
+
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
67
39
|
|
|
68
|
-
|
|
40
|
+
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.viewId);
|
|
69
41
|
|
|
70
|
-
|
|
71
|
-
props.loadCompleteHandler(props.config.id);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
42
|
+
_Observable.default.addSystemSubscriptions(props.viewId, parsedConfig);
|
|
74
43
|
});
|
|
75
44
|
|
|
76
45
|
_react.default.useEffect(() => {
|
|
@@ -97,7 +66,7 @@ const SignaturePanel = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.def
|
|
|
97
66
|
let service = !_Utils.default.isNull(props.config.dataService) ? props.config.dataService : actionConfig !== null ? actionConfig.dataService : null;
|
|
98
67
|
|
|
99
68
|
if (!_Utils.default.isNull(service)) {
|
|
100
|
-
if (service.type === '
|
|
69
|
+
if (service.type === 'rpc') {
|
|
101
70
|
(0, _RestUtils.invokeRpc)(service, props.handle, props.viewId, result => {
|
|
102
71
|
setConfig(result);
|
|
103
72
|
}, e => {}, parameter => {}, null, null, event);
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _socket = _interopRequireDefault(require("socket.io-client"));
|
|
9
|
+
|
|
10
|
+
var _SocketRequest = _interopRequireDefault(require("./media/SocketRequest"));
|
|
11
|
+
|
|
12
|
+
var _RestUtils = require("../RestUtils");
|
|
13
|
+
|
|
14
|
+
var _ApplicationManager = _interopRequireDefault(require("../ApplicationManager"));
|
|
15
|
+
|
|
16
|
+
var _EventType = _interopRequireDefault(require("../event/EventType"));
|
|
17
|
+
|
|
18
|
+
var _VCEventManager = _interopRequireDefault(require("./media/VCEventManager"));
|
|
19
|
+
|
|
20
|
+
var _Event = _interopRequireDefault(require("../event/Event"));
|
|
21
|
+
|
|
22
|
+
var _VCEventType = require("./media/VCEventType");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
|
|
26
|
+
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
|
+
|
|
28
|
+
class SocketManager {
|
|
29
|
+
constructor() {
|
|
30
|
+
_defineProperty(this, "getProfile", () => {
|
|
31
|
+
return this.profile;
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
_defineProperty(this, "emitEvent", (eventType, data) => {
|
|
35
|
+
return new Promise((resolve, reject) => {
|
|
36
|
+
if (this.socket) {
|
|
37
|
+
let response = this.socket.emit(eventType, data, data => {
|
|
38
|
+
if (data.status === 'SUCCESS') {
|
|
39
|
+
resolve(data);
|
|
40
|
+
} else {
|
|
41
|
+
console.error("ERROR EMITTING EVENT : " + eventType);
|
|
42
|
+
reject(new Error(data.status));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
if (!response.connected) {
|
|
47
|
+
reject(new Error("CONNECTION_ERROR"));
|
|
48
|
+
}
|
|
49
|
+
} else {
|
|
50
|
+
reject(new Error("CONNECTION_ERROR"));
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
_defineProperty(this, "init", async () => {
|
|
56
|
+
let socket = _socket.default.connect(process.env.REACT_APP_SOCKET_SERVER_URL);
|
|
57
|
+
|
|
58
|
+
this.socket = socket;
|
|
59
|
+
socket.on("connect", () => {
|
|
60
|
+
this.registerOnline();
|
|
61
|
+
});
|
|
62
|
+
socket.on('disconnect', () => {
|
|
63
|
+
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.SOCKET_DISCONNECT, {});
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
for (const value of Object.keys(_VCEventType.VCEventType)) {
|
|
67
|
+
socket.on(value, payload => {
|
|
68
|
+
console.log('EVENT: ', value);
|
|
69
|
+
|
|
70
|
+
if (value !== _VCEventType.VCEventType.USERS_ONLINE && value !== _VCEventType.VCEventType.USER_ONLINE && value !== _VCEventType.VCEventType.USER_OFFLINE) {
|
|
71
|
+
_VCEventManager.default.fireEvent(value, {
|
|
72
|
+
socket: this.socket,
|
|
73
|
+
payload: payload
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
socket.on(_VCEventType.VCEventType.USERS_ONLINE, payload => {
|
|
80
|
+
this.usersOnline.splice(0, this.usersOnline.length);
|
|
81
|
+
|
|
82
|
+
for (const payloadElement of payload) {
|
|
83
|
+
this.usersOnline.push(payloadElement);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.USERS_ONLINE, {
|
|
87
|
+
socket: this.socket,
|
|
88
|
+
payload: payload
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
socket.on(_VCEventType.VCEventType.USER_ONLINE, payload => {
|
|
92
|
+
this.usersOnline.push(payload);
|
|
93
|
+
|
|
94
|
+
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.USER_ONLINE, {
|
|
95
|
+
socket: this.socket,
|
|
96
|
+
payload: payload
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
socket.on(_VCEventType.VCEventType.USER_OFFLINE, payload => {
|
|
100
|
+
for (let i = 0; i < this.usersOnline.length; i++) {
|
|
101
|
+
console.log(this.usersOnline[i].userId + " === " + payload.userId);
|
|
102
|
+
|
|
103
|
+
if (this.usersOnline[i].userId === payload.userId) {
|
|
104
|
+
this.usersOnline.splice(i, 1);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
_VCEventManager.default.fireEvent(_VCEventType.VCEventType.USER_OFFLINE, {
|
|
109
|
+
socket: this.socket,
|
|
110
|
+
payload: payload
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
_defineProperty(this, "leaveMeeting", meetingId => {
|
|
116
|
+
if (this.socket) {
|
|
117
|
+
this.emitEvent(_VCEventType.VCEventType.LEAVE_MEETING, {
|
|
118
|
+
userId: sessionStorage.getItem("username"),
|
|
119
|
+
meetingId: meetingId
|
|
120
|
+
}).catch(error => {});
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
this.usersOnline = [];
|
|
125
|
+
this.profile = null;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
registerOnline() {
|
|
129
|
+
(0, _RestUtils.sendRequest)(_RestUtils.location + _ApplicationManager.default.getContextRoot() + '/auth/api/v1/user/admin/find', response => {
|
|
130
|
+
this.profile = response.profile;
|
|
131
|
+
this.emitEvent(_SocketRequest.default.REGISTER_ONLINE, {
|
|
132
|
+
user: {
|
|
133
|
+
userId: response.username,
|
|
134
|
+
name: response.name + ' ' + response.surname
|
|
135
|
+
},
|
|
136
|
+
orgCode: response.profile
|
|
137
|
+
}).then(data => {
|
|
138
|
+
this.connected = true;
|
|
139
|
+
let event = this.createEvent();
|
|
140
|
+
|
|
141
|
+
_VCEventManager.default.fireEvent(_EventType.default.SOCKET_CONNECT, event);
|
|
142
|
+
}).catch(exp => {
|
|
143
|
+
console.log(exp.message);
|
|
144
|
+
});
|
|
145
|
+
}, e => {});
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
createEvent(data = null) {
|
|
149
|
+
return new _Event.default({
|
|
150
|
+
api: {
|
|
151
|
+
get id() {
|
|
152
|
+
return "sockets";
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
}
|
|
156
|
+
}, "dashboard", data);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
disconnect() {
|
|
160
|
+
if (this.socket) {
|
|
161
|
+
this.socket.disconnect();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
const instance = new SocketManager(); //Object.freeze(instance);
|
|
168
|
+
|
|
169
|
+
var _default = instance;
|
|
170
|
+
exports.default = _default;
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _Utils = _interopRequireDefault(require("../Utils"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _ApplicationManager = _interopRequireDefault(require("../ApplicationManager"));
|
|
13
13
|
|
|
14
14
|
var _Observable = _interopRequireDefault(require("../event/Observable"));
|
|
15
15
|
|
|
@@ -23,18 +23,6 @@ var _jquery = _interopRequireDefault(require("jquery"));
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
26
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
27
|
-
|
|
28
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
29
|
-
|
|
30
|
-
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); }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
34
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
35
|
-
|
|
36
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
|
-
|
|
38
26
|
const useStyles = (0, _core.makeStyles)(theme => ({
|
|
39
27
|
theme: {
|
|
40
28
|
backgroundColor: theme.palette.secondary.main
|
|
@@ -45,20 +33,9 @@ const useStyles = (0, _core.makeStyles)(theme => ({
|
|
|
45
33
|
}));
|
|
46
34
|
|
|
47
35
|
const StepperTitleBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
48
|
-
const
|
|
49
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
50
|
-
steps = _React$useState2[0],
|
|
51
|
-
setSteps = _React$useState2[1];
|
|
36
|
+
const [steps, setSteps] = _react.default.useState(null);
|
|
52
37
|
|
|
53
|
-
const
|
|
54
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
55
|
-
initializing = _React$useState4[0],
|
|
56
|
-
setInitializing = _React$useState4[1];
|
|
57
|
-
|
|
58
|
-
const _React$useState5 = _react.default.useState(null),
|
|
59
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
60
|
-
activeSegmentPercentage = _React$useState6[0],
|
|
61
|
-
setActiveSegmentPercentage = _React$useState6[1];
|
|
38
|
+
const [activeSegmentPercentage, setActiveSegmentPercentage] = _react.default.useState(null);
|
|
62
39
|
|
|
63
40
|
const currentIndex = _react.default.useRef(null);
|
|
64
41
|
|
|
@@ -68,39 +45,36 @@ const StepperTitleBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.de
|
|
|
68
45
|
const classes = useStyles();
|
|
69
46
|
|
|
70
47
|
_react.default.useEffect(() => {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
_Observable.default.addSubscriptions(eventHandlingConfig, props.handle, props.viewId);
|
|
91
|
-
|
|
92
|
-
props.loadCompleteHandler(props.config.id);
|
|
93
|
-
setInitializing(false);
|
|
94
|
-
(0, _jquery.default)(document).ready(function () {
|
|
95
|
-
recalcLinePosition();
|
|
96
|
-
});
|
|
97
|
-
(0, _jquery.default)(window).resize(function () {
|
|
98
|
-
recalcLinePosition();
|
|
99
|
-
});
|
|
100
|
-
}
|
|
48
|
+
props.handle.api = api();
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
_react.default.useEffect(() => {
|
|
52
|
+
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
53
|
+
|
|
54
|
+
let eventHandlingConfig = _Utils.default.isNull(parsedConfig.eventHandlingConfig) ? {} : parsedConfig.eventHandlingConfig;
|
|
55
|
+
eventHandlingConfig.subscriptions = _Utils.default.isNull(eventHandlingConfig.subscriptions) ? [] : eventHandlingConfig.subscriptions;
|
|
56
|
+
let subscription = {
|
|
57
|
+
publisher: "applicationManager",
|
|
58
|
+
eventType: _EventType.default.APPLICATION_CONTEXT_CHANGE,
|
|
59
|
+
actions: [{
|
|
60
|
+
actionType: "script",
|
|
61
|
+
script: {
|
|
62
|
+
lines: ["if($event.data.name === 'stepperTitle'){", " @#{".concat(props.config.id, "}.show()"), "}"]
|
|
63
|
+
}
|
|
64
|
+
}]
|
|
65
|
+
};
|
|
66
|
+
eventHandlingConfig.subscriptions.push(subscription);
|
|
101
67
|
|
|
68
|
+
_Observable.default.addSubscriptions(eventHandlingConfig, props.handle, props.viewId);
|
|
69
|
+
|
|
70
|
+
(0, _jquery.default)(document).ready(function () {
|
|
71
|
+
recalcLinePosition();
|
|
72
|
+
});
|
|
73
|
+
(0, _jquery.default)(window).resize(function () {
|
|
74
|
+
recalcLinePosition();
|
|
75
|
+
});
|
|
102
76
|
recalcLinePosition();
|
|
103
|
-
});
|
|
77
|
+
}, []);
|
|
104
78
|
|
|
105
79
|
const recalcLinePosition = () => {
|
|
106
80
|
let titleDiv = (0, _jquery.default)("#titleDiv");
|
|
@@ -129,10 +103,10 @@ const StepperTitleBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.de
|
|
|
129
103
|
},
|
|
130
104
|
|
|
131
105
|
show() {
|
|
132
|
-
let steps =
|
|
106
|
+
let steps = _ApplicationManager.default.graphs[0].getTitleStack();
|
|
133
107
|
|
|
134
108
|
setSteps(steps);
|
|
135
|
-
currentIndex.current =
|
|
109
|
+
currentIndex.current = _ApplicationManager.default.graphs[0].getCurrentNodeIndex();
|
|
136
110
|
setActiveSegmentPercentage(100 - 10 * (steps.length - 1));
|
|
137
111
|
}
|
|
138
112
|
|
|
@@ -21,10 +21,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
21
21
|
|
|
22
22
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
23
|
|
|
24
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
-
|
|
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
|
-
|
|
28
24
|
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
29
25
|
formTabContainer: {
|
|
30
26
|
height: 'inherit !important',
|
|
@@ -43,11 +39,12 @@ const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
|
43
39
|
}));
|
|
44
40
|
|
|
45
41
|
const TabPage = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
const {
|
|
43
|
+
children,
|
|
44
|
+
value,
|
|
45
|
+
index,
|
|
46
|
+
...other
|
|
47
|
+
} = props;
|
|
51
48
|
const classes = useStyles();
|
|
52
49
|
let componentKey = 0;
|
|
53
50
|
return /*#__PURE__*/_react.default.createElement("div", {
|