@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
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
.view {
|
|
2
2
|
padding: 0 32px;
|
|
3
3
|
background-color: #ffffff;
|
|
4
|
+
border-radius: 4px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.no-margin {
|
|
8
|
+
margin-left: 0 !important;
|
|
9
|
+
margin-right: 0 !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.no-padding {
|
|
13
|
+
padding-left: 0 !important;
|
|
14
|
+
padding-right: 0 !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.centered-flex-box {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-Items: center;
|
|
20
|
+
justify-content: center
|
|
4
21
|
}
|
|
5
22
|
|
|
6
23
|
/* Smartphones (landscape); */
|
|
@@ -40,4 +57,4 @@
|
|
|
40
57
|
.view {
|
|
41
58
|
|
|
42
59
|
}
|
|
43
|
-
}
|
|
60
|
+
}
|
|
@@ -13,9 +13,7 @@ var _Observable = _interopRequireDefault(require("../../event/Observable"));
|
|
|
13
13
|
|
|
14
14
|
var _Layout = require("./Layout");
|
|
15
15
|
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var _asyncMutex = require("async-mutex");
|
|
16
|
+
var _ApplicationManager = _interopRequireDefault(require("../../ApplicationManager"));
|
|
19
17
|
|
|
20
18
|
var _Event = _interopRequireDefault(require("../../event/Event"));
|
|
21
19
|
|
|
@@ -27,135 +25,87 @@ var _DynamicLib = _interopRequireDefault(require("../../js/DynamicLib"));
|
|
|
27
25
|
|
|
28
26
|
require("./View.css");
|
|
29
27
|
|
|
30
|
-
|
|
28
|
+
require("./VC.css");
|
|
29
|
+
|
|
30
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
31
31
|
|
|
32
32
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
33
|
|
|
34
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
35
|
|
|
36
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
37
|
-
|
|
38
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
39
|
-
|
|
40
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
41
|
-
|
|
42
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
43
|
-
|
|
44
|
-
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."); }
|
|
45
|
-
|
|
46
|
-
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); }
|
|
47
|
-
|
|
48
|
-
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; }
|
|
49
|
-
|
|
50
|
-
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; }
|
|
51
|
-
|
|
52
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
53
|
-
|
|
54
36
|
const View = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
55
|
-
const
|
|
56
|
-
_React$useState2 = _slicedToArray(_React$useState, 1),
|
|
57
|
-
layoutHandle = _React$useState2[0];
|
|
58
|
-
|
|
59
|
-
const _React$useState3 = _react.default.useState({}),
|
|
60
|
-
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
61
|
-
model = _React$useState4[0];
|
|
37
|
+
const [layoutHandle] = _react.default.useState({});
|
|
62
38
|
|
|
63
|
-
const
|
|
64
|
-
_React$useState6 = _slicedToArray(_React$useState5, 1),
|
|
65
|
-
loadedComponents = _React$useState6[0];
|
|
66
|
-
|
|
67
|
-
const _React$useState7 = _react.default.useState(true),
|
|
68
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
69
|
-
initializing = _React$useState8[0],
|
|
70
|
-
setInitializing = _React$useState8[1];
|
|
39
|
+
const [model] = _react.default.useState({});
|
|
71
40
|
|
|
72
41
|
const loadingRef = _react.default.useRef(true);
|
|
73
42
|
|
|
74
|
-
const mutex = new _asyncMutex.Mutex();
|
|
75
|
-
|
|
76
43
|
function registerInlineScriptLibraries() {
|
|
77
44
|
if (!_Utils.default.isNull(props.config.lib)) {
|
|
78
|
-
let libName = props.config.id +
|
|
79
|
-
let lib = new _DynamicLib.default(
|
|
80
|
-
|
|
81
|
-
var _iterator = _createForOfIteratorHelper(props.config.lib.scripts),
|
|
82
|
-
_step;
|
|
45
|
+
let libName = props.config.id + '_lib';
|
|
46
|
+
let lib = new _DynamicLib.default(_ApplicationManager.default); // TODO : Write a more generic script parser
|
|
83
47
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
48
|
+
for (const script of props.config.lib.scripts) {
|
|
49
|
+
if (script.lines.length > 0) {
|
|
50
|
+
let signature = script.lines[0];
|
|
51
|
+
let firstBracketIndex = signature.indexOf('(');
|
|
87
52
|
|
|
88
|
-
if (
|
|
89
|
-
|
|
90
|
-
|
|
53
|
+
if (!signature.trim().startsWith('function') || firstBracketIndex < 0) {
|
|
54
|
+
console.error('Invalid method signature ' + signature);
|
|
55
|
+
} else {
|
|
56
|
+
let name = signature.substring(8, firstBracketIndex).trim();
|
|
91
57
|
|
|
92
|
-
if (
|
|
58
|
+
if (_Utils.default.isNull(name)) {
|
|
93
59
|
console.error('Invalid method signature ' + signature);
|
|
94
60
|
} else {
|
|
95
|
-
let
|
|
96
|
-
|
|
97
|
-
if (_Utils.default.isNull(name)) {
|
|
98
|
-
console.error('Invalid method signature ' + signature);
|
|
99
|
-
} else {
|
|
100
|
-
let args = _Utils.default.getArgs(signature);
|
|
61
|
+
let args = _Utils.default.getArgs(signature);
|
|
101
62
|
|
|
102
|
-
|
|
63
|
+
let scriptBody = '';
|
|
103
64
|
|
|
104
|
-
|
|
105
|
-
|
|
65
|
+
for (let i = 1; i < script.lines.length - 1; i++) {
|
|
66
|
+
let line = script.lines[i].trim();
|
|
106
67
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
scriptBody += line;
|
|
68
|
+
if (!line.endsWith(';')) {
|
|
69
|
+
line += ';';
|
|
112
70
|
}
|
|
113
71
|
|
|
114
|
-
scriptBody
|
|
115
|
-
console.log(scriptBody);
|
|
116
|
-
lib[name] = new Function(args, scriptBody);
|
|
72
|
+
scriptBody += line;
|
|
117
73
|
}
|
|
74
|
+
|
|
75
|
+
scriptBody = _DynamicJS.default.parseScript(scriptBody, props.config.id, false);
|
|
76
|
+
console.log(scriptBody);
|
|
77
|
+
lib[name] = new Function(args, scriptBody);
|
|
118
78
|
}
|
|
119
|
-
} else {
|
|
120
|
-
console.error('A script must contain lines - ' + JSON.stringify(script));
|
|
121
79
|
}
|
|
80
|
+
} else {
|
|
81
|
+
console.error('A script must contain lines - ' + JSON.stringify(script));
|
|
122
82
|
}
|
|
123
|
-
} catch (err) {
|
|
124
|
-
_iterator.e(err);
|
|
125
|
-
} finally {
|
|
126
|
-
_iterator.f();
|
|
127
83
|
}
|
|
128
84
|
|
|
129
|
-
|
|
85
|
+
_ApplicationManager.default.registerLibrary(libName, lib);
|
|
130
86
|
}
|
|
131
87
|
}
|
|
132
88
|
|
|
133
|
-
_react.default.
|
|
134
|
-
props.handle.api
|
|
89
|
+
_react.default.useLayoutEffect(() => {
|
|
90
|
+
if (!props.handle.api.loaded()) {
|
|
91
|
+
if (props.handle.api.model) {
|
|
92
|
+
let ownPropertyNames = Object.getOwnPropertyNames(props.handle.api.model);
|
|
135
93
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
94
|
+
for (const property of ownPropertyNames) {
|
|
95
|
+
model[property] = props.handle.api.model[property];
|
|
96
|
+
}
|
|
139
97
|
}
|
|
98
|
+
}
|
|
140
99
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.config.id);
|
|
144
|
-
|
|
145
|
-
_Observable.default.addSystemSubscriptions(parsedConfig);
|
|
100
|
+
props.handle.api = api();
|
|
101
|
+
}, []);
|
|
146
102
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
103
|
+
_react.default.useEffect(() => {
|
|
104
|
+
props.handle.api = api();
|
|
150
105
|
});
|
|
151
106
|
|
|
152
107
|
function doUpdateModel(values) {
|
|
153
|
-
|
|
154
|
-
for (let i = 0; i < values.length; i++) {
|
|
155
|
-
let value = values[i];
|
|
156
|
-
model[value.name] = value.value;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
108
|
+
_Utils.default.updateModel(values, model);
|
|
159
109
|
|
|
160
110
|
_Observable.default.processSystemGeneratedSubscriptions(props.config.id);
|
|
161
111
|
}
|
|
@@ -164,96 +114,48 @@ const View = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
164
114
|
doUpdateModel(props.parameters);
|
|
165
115
|
}, [props.parameters]);
|
|
166
116
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
function _loadCompleteHandler() {
|
|
172
|
-
_loadCompleteHandler = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(id) {
|
|
173
|
-
var release, currentView, children, _iterator4, _step4, child, data, event;
|
|
174
|
-
|
|
175
|
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
176
|
-
while (1) switch (_context.prev = _context.next) {
|
|
177
|
-
case 0:
|
|
178
|
-
if (!(loadingRef.current === true)) {
|
|
179
|
-
_context.next = 6;
|
|
180
|
-
break;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
_context.next = 3;
|
|
184
|
-
return mutex.acquire();
|
|
185
|
-
|
|
186
|
-
case 3:
|
|
187
|
-
release = _context.sent;
|
|
188
|
-
currentView = _ApplicationContext.default.getCurrentView();
|
|
117
|
+
_react.default.useEffect(() => {
|
|
118
|
+
if (_Utils.default.isNull(props.config.layout.id)) {
|
|
119
|
+
props.config.layout.id = props.config.id + '_layout';
|
|
120
|
+
}
|
|
189
121
|
|
|
190
|
-
|
|
191
|
-
try {
|
|
192
|
-
loadedComponents.push(id);
|
|
122
|
+
let parsedConfig = _Utils.default.parseConfig(props.config, props.config.id);
|
|
193
123
|
|
|
194
|
-
|
|
195
|
-
children = layoutHandle.api.getChildren();
|
|
196
|
-
_iterator4 = _createForOfIteratorHelper(children);
|
|
124
|
+
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.config.id);
|
|
197
125
|
|
|
198
|
-
|
|
199
|
-
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
200
|
-
child = _step4.value;
|
|
126
|
+
_Observable.default.addSystemSubscriptions(props.viewId, parsedConfig);
|
|
201
127
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
} catch (err) {
|
|
207
|
-
_iterator4.e(err);
|
|
208
|
-
} finally {
|
|
209
|
-
_iterator4.f();
|
|
210
|
-
}
|
|
128
|
+
registerInlineScriptLibraries();
|
|
129
|
+
let children = layoutHandle.api.getChildren();
|
|
211
130
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
131
|
+
for (const child of children) {
|
|
132
|
+
if (!_Utils.default.isNull(child.api) && !_Utils.default.isNull(child.api.refresh)) {
|
|
133
|
+
child.api.refresh();
|
|
134
|
+
}
|
|
135
|
+
}
|
|
215
136
|
|
|
216
|
-
|
|
217
|
-
data.viewId = props.config.id;
|
|
218
|
-
event = new _Event.default(props.handle, props.config.id, data);
|
|
137
|
+
_ApplicationManager.default.updateAppBarTitle(parsedConfig.id, parsedConfig.title);
|
|
219
138
|
|
|
220
|
-
|
|
139
|
+
let data = {};
|
|
140
|
+
data.viewId = props.config.id;
|
|
141
|
+
let event = new _Event.default(props.handle, props.config.id, data);
|
|
221
142
|
|
|
222
|
-
|
|
143
|
+
_Observable.default.fireEvent(_EventType.default.COMPONENT_LOAD, event);
|
|
223
144
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
} finally {
|
|
229
|
-
release();
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
case 6:
|
|
234
|
-
case "end":
|
|
235
|
-
return _context.stop();
|
|
236
|
-
}
|
|
237
|
-
}, _callee);
|
|
238
|
-
}));
|
|
239
|
-
return _loadCompleteHandler.apply(this, arguments);
|
|
240
|
-
}
|
|
145
|
+
if (props.loadCallback) {
|
|
146
|
+
props.loadCallback();
|
|
147
|
+
}
|
|
241
148
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
};
|
|
149
|
+
return () => {
|
|
150
|
+
_Observable.default.clearEventListeners(props.config.id);
|
|
151
|
+
};
|
|
152
|
+
}, []);
|
|
246
153
|
|
|
247
154
|
function render(layout) {
|
|
248
155
|
return /*#__PURE__*/_react.default.createElement(_Layout.Layout, {
|
|
249
|
-
|
|
250
|
-
handleFactory: (layout, api) => {
|
|
251
|
-
createLayoutHandle(layout, api);
|
|
252
|
-
},
|
|
253
|
-
key: layout.key,
|
|
156
|
+
handle: layoutHandle,
|
|
254
157
|
config: layout,
|
|
255
158
|
viewId: props.config.id,
|
|
256
|
-
loadCompleteHandler: loadCompleteHandler,
|
|
257
159
|
parent: true
|
|
258
160
|
});
|
|
259
161
|
}
|
|
@@ -268,25 +170,14 @@ const View = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
268
170
|
get model() {
|
|
269
171
|
let children = layoutHandle.api.getChildren();
|
|
270
172
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
try {
|
|
275
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
276
|
-
const child = _step2.value;
|
|
173
|
+
for (const child of children) {
|
|
174
|
+
if (!_Utils.default.isNull(child.api)) {
|
|
175
|
+
let valueGetter = !_Utils.default.isNull(child.api.model) ? child.api.model : !_Utils.default.isNull(child.api.getValue) ? child.api.getValue : child.api.value;
|
|
277
176
|
|
|
278
|
-
if (!_Utils.default.isNull(
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
if (!_Utils.default.isNull(valueGetter)) {
|
|
282
|
-
model[child.api.id] = typeof valueGetter === 'function' ? valueGetter() : valueGetter;
|
|
283
|
-
}
|
|
177
|
+
if (!_Utils.default.isNull(valueGetter)) {
|
|
178
|
+
model[child.api.id] = typeof valueGetter === 'function' ? valueGetter() : valueGetter;
|
|
284
179
|
}
|
|
285
180
|
}
|
|
286
|
-
} catch (err) {
|
|
287
|
-
_iterator2.e(err);
|
|
288
|
-
} finally {
|
|
289
|
-
_iterator2.f();
|
|
290
181
|
}
|
|
291
182
|
|
|
292
183
|
return model;
|
|
@@ -299,21 +190,10 @@ const View = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
299
190
|
|
|
300
191
|
let children = layoutHandle.api.getChildren();
|
|
301
192
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
try {
|
|
306
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
307
|
-
const child = _step3.value;
|
|
308
|
-
|
|
309
|
-
if (!_Utils.default.isNull(child.api) && id === child.api.id) {
|
|
310
|
-
return child;
|
|
311
|
-
}
|
|
193
|
+
for (const child of children) {
|
|
194
|
+
if (!_Utils.default.isNull(child.api) && id === child.api.id) {
|
|
195
|
+
return child;
|
|
312
196
|
}
|
|
313
|
-
} catch (err) {
|
|
314
|
-
_iterator3.e(err);
|
|
315
|
-
} finally {
|
|
316
|
-
_iterator3.f();
|
|
317
197
|
}
|
|
318
198
|
|
|
319
199
|
return null;
|
|
@@ -340,7 +220,7 @@ const View = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
340
220
|
minWidth: '128px',
|
|
341
221
|
height: '100%'
|
|
342
222
|
}, props.config)
|
|
343
|
-
},
|
|
223
|
+
}, render(props.config.layout));
|
|
344
224
|
}), () => {
|
|
345
225
|
return true;
|
|
346
226
|
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
require("./ViewContainer.css");
|
|
11
|
+
|
|
12
|
+
var _ApplicationManager = _interopRequireDefault(require("../../ApplicationManager"));
|
|
13
|
+
|
|
14
|
+
var _Dashboard = _interopRequireDefault(require("../../view/Dashboard"));
|
|
15
|
+
|
|
16
|
+
var _Utils = _interopRequireDefault(require("../../Utils"));
|
|
17
|
+
|
|
18
|
+
var _View = require("./View");
|
|
19
|
+
|
|
20
|
+
var _reactRouterDom = require("react-router-dom");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
+
|
|
24
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
25
|
+
|
|
26
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
+
|
|
28
|
+
const ViewContainer = props => {
|
|
29
|
+
const params = (0, _reactRouterDom.useParams)();
|
|
30
|
+
const attributes = (0, _react.useRef)({
|
|
31
|
+
windowView: null,
|
|
32
|
+
anchorView: null
|
|
33
|
+
});
|
|
34
|
+
const windowOpen = (0, _react.useRef)(null);
|
|
35
|
+
|
|
36
|
+
_react.default.useEffect(() => {}, []);
|
|
37
|
+
|
|
38
|
+
const renderView = () => {
|
|
39
|
+
let viewId = params.id;
|
|
40
|
+
|
|
41
|
+
let view = _ApplicationManager.default.getView(viewId);
|
|
42
|
+
|
|
43
|
+
let element = viewId === 'dashboard' ? /*#__PURE__*/_react.default.createElement(_Dashboard.default, {
|
|
44
|
+
ref: /*#__PURE__*/_react.default.createRef()
|
|
45
|
+
}) : !_Utils.default.isNull(view) && !_Utils.default.isNull(view.config) ? /*#__PURE__*/_react.default.createElement(_View.View, {
|
|
46
|
+
config: view.config,
|
|
47
|
+
parameters: view.parameters,
|
|
48
|
+
ref: /*#__PURE__*/_react.default.createRef(),
|
|
49
|
+
handle: view.handle
|
|
50
|
+
}) : null;
|
|
51
|
+
console.log("\n\n\n\nLOADING : " + viewId, element);
|
|
52
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, element);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
return renderView();
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
var _default = ViewContainer;
|
|
59
|
+
exports.default = _default;
|
|
@@ -9,94 +9,64 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _reactRouterDom = require("react-router-dom");
|
|
11
11
|
|
|
12
|
-
var _View = require("./View");
|
|
13
|
-
|
|
14
12
|
var _Utils = _interopRequireDefault(require("../../Utils"));
|
|
15
13
|
|
|
16
|
-
var
|
|
14
|
+
var _ApplicationManager = _interopRequireDefault(require("../../ApplicationManager"));
|
|
17
15
|
|
|
18
16
|
var _ConfirmationDialog = require("../ConfirmationDialog");
|
|
19
17
|
|
|
20
18
|
var _PopupView = _interopRequireDefault(require("../PopupView"));
|
|
21
19
|
|
|
22
|
-
var _Dashboard = _interopRequireDefault(require("../../view/Dashboard"));
|
|
23
|
-
|
|
24
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
21
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
_ApplicationContext.default.setViewPortHistory(this.props.history);
|
|
76
|
-
|
|
77
|
-
_ApplicationContext.default.setConfirmDialogHandler(this.confirmationDialogController);
|
|
78
|
-
|
|
79
|
-
let defaultRoute = !_Utils.default.isNull(this.props.defaultView) ? this.props.defaultView : "/view/dashboard";
|
|
80
|
-
this.props.history.push(defaultRoute);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
render() {
|
|
84
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
85
|
-
style: {
|
|
86
|
-
height: _Utils.default.isNull(this.props.height) ? 'calc(100vh - 90px)' : this.props.height
|
|
87
|
-
}
|
|
88
|
-
}, /*#__PURE__*/_react.default.createElement(_PopupView.default, {
|
|
89
|
-
controller: this.popupViewController
|
|
90
|
-
}), /*#__PURE__*/_react.default.createElement(_reactRouterDom.Route, {
|
|
91
|
-
path: "/view/:id",
|
|
92
|
-
render: routerProps => this.renderView(routerProps)
|
|
93
|
-
}), /*#__PURE__*/_react.default.createElement(_ConfirmationDialog.ConfirmationDialog, {
|
|
94
|
-
controller: this.confirmationDialogController
|
|
95
|
-
}));
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
var _default = (0, _reactRouterDom.withRouter)(ViewPort);
|
|
22
|
+
const ViewPort = () => {
|
|
23
|
+
const navigate = (0, _reactRouterDom.useNavigate)();
|
|
24
|
+
|
|
25
|
+
const [loading, setLoading] = _react.default.useState(true);
|
|
26
|
+
|
|
27
|
+
const confirmationDialogController = _react.default.useRef({});
|
|
28
|
+
|
|
29
|
+
const popupViewController = _react.default.useRef({});
|
|
30
|
+
|
|
31
|
+
const openPopupView = view => {
|
|
32
|
+
popupViewController.current.open(view);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const closePopupView = () => {
|
|
36
|
+
popupViewController.current.close();
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
_react.default.useEffect(() => {
|
|
40
|
+
if (loading) {
|
|
41
|
+
setLoading(false);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
_react.default.useEffect(() => {
|
|
46
|
+
if (!loading) {
|
|
47
|
+
navigate("/view/dashboard");
|
|
48
|
+
}
|
|
49
|
+
}, [loading]);
|
|
50
|
+
|
|
51
|
+
_react.default.useEffect(() => {
|
|
52
|
+
confirmationDialogController.current.openPopupView = openPopupView;
|
|
53
|
+
confirmationDialogController.current.closePopupView = closePopupView; //applicationManager.setViewPortHistory(props.history);
|
|
54
|
+
|
|
55
|
+
_ApplicationManager.default.setConfirmDialogHandler(confirmationDialogController.current);
|
|
56
|
+
|
|
57
|
+
console.log("LOADING VIEWPORT");
|
|
58
|
+
}, []);
|
|
59
|
+
|
|
60
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
61
|
+
style: {
|
|
62
|
+
height: 'calc(100vh - 90px)'
|
|
63
|
+
}
|
|
64
|
+
}, /*#__PURE__*/_react.default.createElement(_PopupView.default, {
|
|
65
|
+
controller: popupViewController.current
|
|
66
|
+
}), /*#__PURE__*/_react.default.createElement(_reactRouterDom.Outlet, null), /*#__PURE__*/_react.default.createElement(_ConfirmationDialog.ConfirmationDialog, {
|
|
67
|
+
controller: confirmationDialogController.current
|
|
68
|
+
}));
|
|
69
|
+
};
|
|
101
70
|
|
|
71
|
+
var _default = ViewPort;
|
|
102
72
|
exports.default = _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.meeting-window-header {
|
|
2
|
+
width: 100%;
|
|
3
|
+
padding: 8px 0;
|
|
4
|
+
color: #000000;
|
|
5
|
+
cursor: move;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
#meeting-window-title {
|
|
9
|
+
margin: 0 32px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.meeting-title {
|
|
13
|
+
margin: 8px 0 0 0;
|
|
14
|
+
font-size: 24px;
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
text-align: left;
|
|
17
|
+
padding-left: 0 !important;
|
|
18
|
+
}
|