@agilemotion/oui-react-js 1.6.1 → 1.6.3
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 +698 -421
- package/dist/BasicApp.js +5 -5
- package/dist/BasicAppHome.js +55 -26
- package/dist/DynamicJS.js +147 -65
- package/dist/InteractionPortalApp.css +1 -1
- package/dist/InteractionPortalApp.js +5 -5
- package/dist/InteractionPortalAppHome.js +57 -22
- package/dist/InteractionPortalApp_old.js +107 -61
- package/dist/RestUtils.js +339 -287
- package/dist/TypedValue.js +18 -15
- package/dist/Utils.js +375 -276
- package/dist/WithRouter.js +6 -6
- package/dist/assets/jss/components/authNavbarStyle.js +166 -164
- package/dist/assets/jss/components/buttonStyle.js +1 -1
- package/dist/assets/jss/components/cardAvatarStyle.js +1 -1
- package/dist/assets/jss/components/cardBodyStyle.js +1 -1
- package/dist/assets/jss/components/cardFooterStyle.js +1 -1
- package/dist/assets/jss/components/cardHeaderStyle.js +13 -13
- package/dist/assets/jss/components/cardIconStyle.js +1 -1
- package/dist/assets/jss/components/cardStyle.js +1 -1
- package/dist/assets/jss/components/cardTextStyle.js +1 -1
- package/dist/assets/jss/components/customDropdownStyle.js +168 -169
- package/dist/assets/jss/components/customInputStyle.js +9 -3
- package/dist/assets/jss/components/dropdownStyle.js +69 -69
- package/dist/assets/jss/components/footerStyle.js +19 -13
- package/dist/assets/jss/components/headerLinksStyle.js +45 -48
- package/dist/assets/jss/components/headerStyle.js +68 -65
- package/dist/assets/jss/components/navbarLinksStyle.js +66 -77
- package/dist/assets/jss/components/navbarStyle.js +79 -76
- package/dist/assets/jss/components/sidebarStyle.js +436 -436
- package/dist/assets/jss/components/typographyStyle.js +9 -3
- package/dist/assets/jss/rootStyle.js +96 -81
- package/dist/assets/jss/views/layoutStyle.js +44 -41
- package/dist/assets/jss/views/loginBasicStyle.js +1 -1
- package/dist/assets/jss/views/loginBusinessPortalStyle.js +1 -1
- package/dist/assets/jss/views/loginStyle.js +82 -77
- package/dist/components/AlertBar.js +50 -17
- package/dist/components/AlertItem.js +35 -12
- package/dist/components/AlertTemplate.js +30 -29
- package/dist/components/Button.js +62 -34
- package/dist/components/Calendar.js +140 -91
- package/dist/components/ConfirmationDialog.js +36 -11
- package/dist/components/DataGrid.js +512 -270
- package/dist/components/DataGridColumn.js +47 -22
- package/dist/components/DataGridFilter.js +186 -105
- package/dist/components/DataGridHeading.js +50 -32
- package/dist/components/Dialog.js +90 -35
- package/dist/components/DocumentTemplateDesigner.js +34 -16
- package/dist/components/DocumentTemplateDesignerComponent.js +124 -48
- package/dist/components/DocumentTemplatePlaceholderDialog.js +52 -30
- package/dist/components/DocumentViewer.js +34 -18
- package/dist/components/DocumentViewerComponent.js +26 -9
- package/dist/components/ElementResizeHandler.js +229 -207
- package/dist/components/FileThumb.js +32 -10
- package/dist/components/Graph.js +153 -85
- package/dist/components/GraphNode.js +58 -38
- package/dist/components/HtmlPanel.js +67 -39
- package/dist/components/Icon.js +206 -166
- package/dist/components/LoadingIndicator.js +3 -3
- package/dist/components/LottieIcon.js +1 -1
- package/dist/components/PopupView.js +39 -19
- package/dist/components/Portlet.js +32 -17
- package/dist/components/RegularButton.js +28 -32
- package/dist/components/SignaturePanel.js +37 -17
- package/dist/components/SocketManager.js +178 -119
- package/dist/components/StepperTitleBar.js +62 -42
- package/dist/components/TabPage.js +30 -25
- package/dist/components/TabPanel.js +86 -33
- package/dist/components/TableCellContent.js +51 -32
- package/dist/components/TemplateDesigner.js +173 -121
- package/dist/components/TemplateItemEventHandler.js +335 -221
- package/dist/components/TemplateTable.js +183 -118
- package/dist/components/TitleBar.js +26 -11
- package/dist/components/Toolbar.js +67 -38
- package/dist/components/Tooltip.js +43 -35
- package/dist/components/Tree.js +85 -44
- package/dist/components/UseIsVisible.js +25 -4
- package/dist/components/card/Card.js +27 -33
- package/dist/components/card/CardAvatar.js +20 -19
- package/dist/components/card/CardBody.js +24 -27
- package/dist/components/card/CardFooter.js +23 -24
- package/dist/components/card/CardHeader.js +24 -27
- package/dist/components/card/CardIcon.js +17 -13
- package/dist/components/card/CardText.js +17 -13
- package/dist/components/customInput/CustomInput.js +22 -36
- package/dist/components/dashboard/{BasicBusinessAppDashboard.js → FoldingSideTabDashboard.js} +111 -63
- package/dist/components/dashboard/SideMenuModuleDashboard.css +60 -0
- package/dist/components/dashboard/SideMenuModuleDashboard.js +423 -0
- package/dist/components/dashboard/TopMenuModuleDashboard.js +138 -0
- package/dist/components/dashboard/components/Header.js +29 -12
- package/dist/components/dashboard/components/LeftDrawer.js +3 -5
- package/dist/components/dashboard/components/UserIdentity.js +2 -2
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +131 -87
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +488 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenu.js +64 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.css +65 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +556 -0
- package/dist/components/dashboard/components/portal/Timeline.js +1 -1
- package/dist/components/dashboard/components/portal/Workspace.js +5 -11
- package/dist/components/footer/Footer.js +31 -24
- package/dist/components/footer/HomeFooter.js +68 -34
- package/dist/components/form/AddressSearch.js +78 -42
- package/dist/components/form/AutoComplete.js +136 -55
- package/dist/components/form/BaseField.js +108 -56
- package/dist/components/form/Checkbox.js +10 -8
- package/dist/components/form/DatePicker.js +47 -25
- package/dist/components/form/FieldSet.js +217 -84
- package/dist/components/form/Form.js +334 -200
- package/dist/components/form/GridField.js +185 -82
- package/dist/components/form/IconField.js +9 -7
- package/dist/components/form/ImageEditor.js +141 -92
- package/dist/components/form/LabelField.js +12 -10
- package/dist/components/form/LookupField.js +54 -32
- package/dist/components/form/MultiFileUploadField.js +101 -67
- package/dist/components/form/RadioGroup.js +33 -16
- package/dist/components/form/Section.js +84 -34
- package/dist/components/form/SelectItem.js +55 -33
- package/dist/components/form/SignatureTemplateDesignerField.js +11 -9
- package/dist/components/form/Switch.js +10 -8
- package/dist/components/form/TextField.js +34 -16
- package/dist/components/form/TimePicker.js +19 -15
- package/dist/components/form/TransferList.js +153 -75
- package/dist/components/form/UploadField.js +183 -128
- package/dist/components/grid/GridContainer.js +12 -8
- package/dist/components/grid/GridItem.js +12 -8
- package/dist/components/layout/CollapsiblePanel.js +44 -18
- package/dist/components/layout/Layout.js +81 -40
- package/dist/components/layout/VC.css +1 -1
- package/dist/components/layout/View.js +136 -62
- package/dist/components/layout/ViewContainer.js +13 -11
- package/dist/components/layout/ViewPort.js +25 -10
- package/dist/components/layout/Window.js +87 -53
- package/dist/components/layout/WindowViewPort.js +38 -16
- package/dist/components/media/ClosablePanel.js +7 -7
- package/dist/components/media/LobbyWaitingList.js +7 -9
- package/dist/components/media/MediaSoupHelper.js +379 -187
- package/dist/components/media/SideBarContent.js +22 -14
- package/dist/components/media/SocketRequest.js +5 -1
- package/dist/components/media/SocketResponse.js +5 -1
- package/dist/components/media/Timer.js +35 -15
- package/dist/components/media/Toolbar.css +5 -0
- package/dist/components/media/Toolbar.js +220 -102
- package/dist/components/media/ToolbarButton.js +82 -33
- package/dist/components/media/Toolbar_bck.js +142 -70
- package/dist/components/media/Tracks.js +31 -28
- package/dist/components/media/TrainingRoom.js +284 -121
- package/dist/components/media/Transports.js +27 -24
- package/dist/components/media/VCEventManager.js +95 -31
- package/dist/components/media/VCEventType.js +5 -1
- package/dist/components/media/VCParticipantList.js +40 -14
- package/dist/components/media/VCParticipantListItem.js +92 -41
- package/dist/components/media/VCRoom.js +29 -11
- package/dist/components/media/VCRoomParticipant.js +488 -242
- package/dist/components/media/VCRoomRecorder.js +236 -175
- package/dist/components/media/VCRoomWorkspace.js +505 -245
- package/dist/components/media/Video.js +89 -25
- package/dist/components/media/VideoPlayer.js +56 -22
- package/dist/components/media/chat/ChatRoom.js +255 -132
- package/dist/components/media/chat/ChatRoomItem.js +35 -14
- package/dist/components/media/chat/ChatRoomList.js +43 -13
- package/dist/components/menu/CollapsibleMenu.js +39 -20
- package/dist/components/menu/MenuBars.js +81 -48
- package/dist/components/menu/MenuButton.js +95 -60
- package/dist/components/menu/MenuItem.js +28 -9
- package/dist/components/menu/MenuLink.js +12 -10
- package/dist/components/menu/PopupMenu.js +16 -12
- package/dist/components/navbars/AuthNavbar.js +27 -18
- package/dist/components/navbars/HomeNavbar.js +243 -194
- package/dist/components/navbars/PortalNavbar.js +50 -26
- package/dist/components/signatures/AgilitySignaturePanel.js +96 -39
- package/dist/components/signatures/AlertItem.js +36 -13
- package/dist/components/signatures/Card.js +4 -4
- package/dist/components/signatures/DocumentContainer.js +141 -57
- package/dist/components/signatures/ImageSignatureInput.js +90 -59
- package/dist/components/signatures/MenuButton.js +53 -33
- package/dist/components/signatures/Prompt.js +26 -5
- package/dist/components/signatures/ResponsiveTable.js +302 -197
- package/dist/components/signatures/SearchView.js +77 -36
- package/dist/components/signatures/SignatorySearch.js +30 -10
- package/dist/components/signatures/SignatorySearchForm.js +35 -18
- package/dist/components/signatures/SignatureInput.js +56 -26
- package/dist/components/signatures/SignatureInputProps.js +107 -55
- package/dist/components/signatures/SignatureTemplateDesigner.js +340 -235
- package/dist/components/signatures/Toolbar.js +135 -94
- package/dist/components/signatures/ViewUtils.js +273 -224
- package/dist/components/typography/Danger.js +3 -5
- package/dist/components/typography/Info.js +3 -5
- package/dist/components/typography/Link.js +3 -5
- package/dist/event/ActionHandlers.js +57 -43
- package/dist/event/Event.js +16 -13
- package/dist/event/EventListener.js +39 -36
- package/dist/event/EventType.js +5 -1
- package/dist/event/LoadDataActionHandler.js +20 -8
- package/dist/event/Observable.js +323 -142
- package/dist/event/RouteActionHandler.js +139 -125
- package/dist/event/ScriptActionHandler.js +20 -8
- package/dist/event/ServiceCallActionHandler.js +51 -39
- package/dist/event/SignalGraphActionHandler.js +19 -7
- package/dist/js/Addresses.js +38 -24
- package/dist/js/Calendar.js +168 -161
- package/dist/js/DynamicLib.js +14 -11
- package/dist/js/Media.js +213 -120
- package/dist/js/Validators.js +6 -5
- package/dist/js/Windows.js +48 -47
- package/dist/redux/store/ConfigureStore.js +17 -9
- package/dist/redux/store/DashboardStore.js +110 -43
- package/dist/redux/store/History.js +1 -1
- package/dist/redux/store/SecurityStore.js +59 -20
- package/dist/security/TokenManager.js +44 -30
- package/dist/theme-default.js +1 -1
- package/dist/view/Dashboard.js +230 -137
- package/dist/view/PortalDashboard.js +4 -4
- package/dist/view/Settings.js +4 -2
- package/dist/view/Views.js +27 -14
- package/dist/view/security/ChangePasswordBasic.js +97 -40
- package/dist/view/security/ForgotPassword.js +59 -22
- package/dist/view/security/ForgotPasswordBasic.js +62 -21
- package/dist/view/security/Login.js +64 -24
- package/dist/view/security/LoginBasic.js +65 -26
- package/dist/view/security/LoginInteractionPortal.js +62 -25
- package/dist/view/security/ResetPassword.js +65 -23
- package/dist/view/security/ResetPasswordBasic.js +91 -37
- package/dist/view/security/Security.js +12 -12
- package/package.json +2 -3
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +0 -115
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +0 -447
- /package/dist/components/dashboard/{BusinessPortalAppDashboard.css → TopMenuModuleDashboard.css} +0 -0
- /package/dist/components/dashboard/components/blackDashboard/sidebar/{Sidebar.css → FoldingTabSidebar.css} +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -53,24 +55,45 @@ var _DocumentTemplateDesigner = _interopRequireDefault(require("../DocumentTempl
|
|
|
53
55
|
|
|
54
56
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
55
57
|
|
|
56
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
58
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
59
|
+
|
|
60
|
+
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; }
|
|
61
|
+
|
|
62
|
+
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; } } }; }
|
|
63
|
+
|
|
64
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
65
|
+
|
|
66
|
+
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."); }
|
|
67
|
+
|
|
68
|
+
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); }
|
|
69
|
+
|
|
70
|
+
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; }
|
|
57
71
|
|
|
58
|
-
function
|
|
72
|
+
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; }
|
|
59
73
|
|
|
60
|
-
|
|
61
|
-
const [componentHandles] = _react.default.useState({});
|
|
74
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
62
75
|
|
|
63
|
-
|
|
76
|
+
var Layout = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
77
|
+
var _React$useState = _react.default.useState({}),
|
|
78
|
+
_React$useState2 = _slicedToArray(_React$useState, 1),
|
|
79
|
+
componentHandles = _React$useState2[0];
|
|
64
80
|
|
|
65
|
-
|
|
81
|
+
var _React$useState3 = _react.default.useState([]),
|
|
82
|
+
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
83
|
+
loadedComponents = _React$useState4[0];
|
|
66
84
|
|
|
67
|
-
|
|
85
|
+
var _React$useState5 = _react.default.useState(false),
|
|
86
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
87
|
+
visible = _React$useState6[0],
|
|
88
|
+
setVisible = _React$useState6[1];
|
|
68
89
|
|
|
69
|
-
|
|
90
|
+
var keyCounter = 0;
|
|
91
|
+
|
|
92
|
+
_react.default.useEffect(function () {
|
|
70
93
|
props.handle.api = api();
|
|
71
94
|
});
|
|
72
95
|
|
|
73
|
-
_react.default.useEffect(()
|
|
96
|
+
_react.default.useEffect(function () {
|
|
74
97
|
if (props.tableRow) {
|
|
75
98
|
var _props$tableRow$id;
|
|
76
99
|
|
|
@@ -79,7 +102,7 @@ const Layout = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
79
102
|
|
|
80
103
|
props.handle.api = api();
|
|
81
104
|
|
|
82
|
-
|
|
105
|
+
var parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
83
106
|
|
|
84
107
|
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.viewId);
|
|
85
108
|
|
|
@@ -94,7 +117,7 @@ const Layout = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
94
117
|
|
|
95
118
|
function createComponentHandle(component) {
|
|
96
119
|
if (_Utils.default.isNull(componentHandles[component.id])) {
|
|
97
|
-
|
|
120
|
+
var handle = {};
|
|
98
121
|
componentHandles[component.id] = handle;
|
|
99
122
|
return handle;
|
|
100
123
|
}
|
|
@@ -102,12 +125,12 @@ const Layout = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
102
125
|
return componentHandles[component.id];
|
|
103
126
|
}
|
|
104
127
|
|
|
105
|
-
_react.default.useLayoutEffect(()
|
|
128
|
+
_react.default.useLayoutEffect(function () {
|
|
106
129
|
props.handle.api = api();
|
|
107
130
|
}, []);
|
|
108
131
|
|
|
109
|
-
|
|
110
|
-
|
|
132
|
+
var setMissingComponentIds = function setMissingComponentIds() {
|
|
133
|
+
var layout = props.config;
|
|
111
134
|
|
|
112
135
|
if (!layout.id) {
|
|
113
136
|
layout.id = '_parent_layout';
|
|
@@ -116,8 +139,8 @@ const Layout = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
116
139
|
layout.key = keyCounter++;
|
|
117
140
|
|
|
118
141
|
if (!_Utils.default.isNull(layout.components)) {
|
|
119
|
-
for (
|
|
120
|
-
|
|
142
|
+
for (var i = 0; i < layout.components.length; i++) {
|
|
143
|
+
var component = layout.components[i];
|
|
121
144
|
|
|
122
145
|
if (_Utils.default.isNull(component.id)) {
|
|
123
146
|
component.id = layout.id + '_' + component.type + '_' + i;
|
|
@@ -264,7 +287,7 @@ const Layout = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
264
287
|
}
|
|
265
288
|
}
|
|
266
289
|
|
|
267
|
-
|
|
290
|
+
var api = function api() {
|
|
268
291
|
return {
|
|
269
292
|
get id() {
|
|
270
293
|
// Layout
|
|
@@ -275,36 +298,54 @@ const Layout = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
275
298
|
setVisible(val);
|
|
276
299
|
},
|
|
277
300
|
|
|
278
|
-
getChildren: ()
|
|
301
|
+
getChildren: function getChildren() {
|
|
279
302
|
//console.log("\n\n\n\nGETTING LAYOUT KIDS : ", componentHandles);
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
303
|
+
var children = [];
|
|
304
|
+
var properties = Object.getOwnPropertyNames(componentHandles);
|
|
305
|
+
|
|
306
|
+
var _iterator = _createForOfIteratorHelper(properties),
|
|
307
|
+
_step;
|
|
308
|
+
|
|
309
|
+
try {
|
|
310
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
311
|
+
var property = _step.value;
|
|
312
|
+
var componentHandle = componentHandles[property]; //console.log(property, componentHandle);
|
|
313
|
+
|
|
314
|
+
children.push(componentHandle);
|
|
315
|
+
|
|
316
|
+
if (!_Utils.default.isNull(componentHandle.api) && !_Utils.default.isNull(componentHandle.api.getChildren)) {
|
|
317
|
+
var moreChildren = componentHandle.api.getChildren();
|
|
318
|
+
|
|
319
|
+
if (!_Utils.default.isNull(moreChildren)) {
|
|
320
|
+
var _iterator2 = _createForOfIteratorHelper(moreChildren),
|
|
321
|
+
_step2;
|
|
322
|
+
|
|
323
|
+
try {
|
|
324
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
325
|
+
var child = _step2.value;
|
|
326
|
+
children.push(child);
|
|
327
|
+
}
|
|
328
|
+
} catch (err) {
|
|
329
|
+
_iterator2.e(err);
|
|
330
|
+
} finally {
|
|
331
|
+
_iterator2.f();
|
|
332
|
+
}
|
|
294
333
|
}
|
|
295
334
|
}
|
|
296
335
|
}
|
|
336
|
+
} catch (err) {
|
|
337
|
+
_iterator.e(err);
|
|
338
|
+
} finally {
|
|
339
|
+
_iterator.f();
|
|
297
340
|
}
|
|
298
341
|
|
|
299
342
|
return children;
|
|
300
343
|
},
|
|
301
|
-
|
|
302
|
-
refresh() {
|
|
344
|
+
refresh: function refresh() {
|
|
303
345
|
if (!_Utils.default.isNull(props.config.visible)) {
|
|
304
346
|
setVisible(_Utils.default.evaluateBooleanExpression(props.config.visible, props.config.id));
|
|
305
347
|
}
|
|
306
348
|
}
|
|
307
|
-
|
|
308
349
|
};
|
|
309
350
|
};
|
|
310
351
|
|
|
@@ -318,7 +359,7 @@ const Layout = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
318
359
|
}
|
|
319
360
|
|
|
320
361
|
function getLayoutStyle(component, backgroundColor) {
|
|
321
|
-
|
|
362
|
+
var style = _Utils.default.mergeStyles({
|
|
322
363
|
overflow: 'auto',
|
|
323
364
|
border: 'none',
|
|
324
365
|
minWidth: '128px',
|
|
@@ -341,8 +382,8 @@ const Layout = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
341
382
|
|
|
342
383
|
function render(layout) {
|
|
343
384
|
setMissingComponentIds();
|
|
344
|
-
|
|
345
|
-
return _Utils.default.isNull(layout.components) || layout.components.length === 0 ? /*#__PURE__*/_react.default.createElement("div", null, "I am a dum empty Layout") : layout.orientation === 'VERTICAL' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, layout.components.map((component, index)
|
|
385
|
+
var counter = 10000;
|
|
386
|
+
return _Utils.default.isNull(layout.components) || layout.components.length === 0 ? /*#__PURE__*/_react.default.createElement("div", null, "I am a dum empty Layout") : layout.orientation === 'VERTICAL' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, layout.components.map(function (component, index) {
|
|
346
387
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, {
|
|
347
388
|
key: index
|
|
348
389
|
}, renderComponent(component, null));
|
|
@@ -352,8 +393,8 @@ const Layout = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
352
393
|
width: '100%',
|
|
353
394
|
height: '100%'
|
|
354
395
|
}
|
|
355
|
-
}, layout.components.map((component, index)
|
|
356
|
-
|
|
396
|
+
}, layout.components.map(function (component, index) {
|
|
397
|
+
var className = _Utils.default.getComponentAttribute(component, 'className', '');
|
|
357
398
|
|
|
358
399
|
return component.type === 'layout' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, renderComponent(component, index)) : /*#__PURE__*/_react.default.createElement("div", {
|
|
359
400
|
key: index,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -27,72 +29,111 @@ require("./View.css");
|
|
|
27
29
|
|
|
28
30
|
require("./VC.css");
|
|
29
31
|
|
|
30
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
32
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
31
33
|
|
|
32
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null ||
|
|
34
|
+
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
35
|
|
|
34
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
37
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
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; } } }; }
|
|
39
|
+
|
|
40
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
41
|
+
|
|
42
|
+
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."); }
|
|
43
|
+
|
|
44
|
+
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); }
|
|
45
|
+
|
|
46
|
+
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; }
|
|
47
|
+
|
|
48
|
+
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; }
|
|
49
|
+
|
|
50
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
38
51
|
|
|
39
|
-
|
|
52
|
+
var View = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
53
|
+
var _React$useState = _react.default.useState({}),
|
|
54
|
+
_React$useState2 = _slicedToArray(_React$useState, 1),
|
|
55
|
+
layoutHandle = _React$useState2[0];
|
|
40
56
|
|
|
41
|
-
|
|
57
|
+
var _React$useState3 = _react.default.useState({}),
|
|
58
|
+
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
59
|
+
model = _React$useState4[0];
|
|
60
|
+
|
|
61
|
+
var loadingRef = _react.default.useRef(true);
|
|
42
62
|
|
|
43
63
|
function registerInlineScriptLibraries() {
|
|
44
64
|
if (!_Utils.default.isNull(props.config.lib)) {
|
|
45
|
-
|
|
46
|
-
|
|
65
|
+
var libName = props.config.id + '_lib';
|
|
66
|
+
var lib = new _DynamicLib.default(_ApplicationManager.default); // TODO : Write a more generic script parser
|
|
47
67
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
let signature = script.lines[0];
|
|
51
|
-
let firstBracketIndex = signature.indexOf('(');
|
|
68
|
+
var _iterator = _createForOfIteratorHelper(props.config.lib.scripts),
|
|
69
|
+
_step;
|
|
52
70
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
71
|
+
try {
|
|
72
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
73
|
+
var script = _step.value;
|
|
74
|
+
|
|
75
|
+
if (script.lines.length > 0) {
|
|
76
|
+
var signature = script.lines[0];
|
|
77
|
+
var firstBracketIndex = signature.indexOf('(');
|
|
57
78
|
|
|
58
|
-
if (
|
|
79
|
+
if (!signature.trim().startsWith('function') || firstBracketIndex < 0) {
|
|
59
80
|
console.error('Invalid method signature ' + signature);
|
|
60
81
|
} else {
|
|
61
|
-
|
|
82
|
+
var name = signature.substring(8, firstBracketIndex).trim();
|
|
62
83
|
|
|
63
|
-
|
|
84
|
+
if (_Utils.default.isNull(name)) {
|
|
85
|
+
console.error('Invalid method signature ' + signature);
|
|
86
|
+
} else {
|
|
87
|
+
var args = _Utils.default.getArgs(signature);
|
|
64
88
|
|
|
65
|
-
|
|
66
|
-
let line = script.lines[i].trim();
|
|
89
|
+
var scriptBody = '';
|
|
67
90
|
|
|
68
|
-
|
|
69
|
-
line
|
|
91
|
+
for (var i = 1; i < script.lines.length - 1; i++) {
|
|
92
|
+
var line = script.lines[i].trim();
|
|
93
|
+
|
|
94
|
+
if (!line.endsWith(';')) {
|
|
95
|
+
line += ';';
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
scriptBody += line;
|
|
70
99
|
}
|
|
71
100
|
|
|
72
|
-
scriptBody
|
|
101
|
+
scriptBody = _DynamicJS.default.parseScript(scriptBody, props.config.id, false);
|
|
102
|
+
console.log(scriptBody);
|
|
103
|
+
lib[name] = new Function(args, scriptBody);
|
|
73
104
|
}
|
|
74
|
-
|
|
75
|
-
scriptBody = _DynamicJS.default.parseScript(scriptBody, props.config.id, false);
|
|
76
|
-
console.log(scriptBody);
|
|
77
|
-
lib[name] = new Function(args, scriptBody);
|
|
78
105
|
}
|
|
106
|
+
} else {
|
|
107
|
+
console.error('A script must contain lines - ' + JSON.stringify(script));
|
|
79
108
|
}
|
|
80
|
-
} else {
|
|
81
|
-
console.error('A script must contain lines - ' + JSON.stringify(script));
|
|
82
109
|
}
|
|
110
|
+
} catch (err) {
|
|
111
|
+
_iterator.e(err);
|
|
112
|
+
} finally {
|
|
113
|
+
_iterator.f();
|
|
83
114
|
}
|
|
84
115
|
|
|
85
116
|
_ApplicationManager.default.registerLibrary(libName, lib);
|
|
86
117
|
}
|
|
87
118
|
}
|
|
88
119
|
|
|
89
|
-
_react.default.useLayoutEffect(()
|
|
120
|
+
_react.default.useLayoutEffect(function () {
|
|
90
121
|
if (!props.handle.api.loaded()) {
|
|
91
122
|
if (props.handle.api.model) {
|
|
92
|
-
|
|
123
|
+
var ownPropertyNames = Object.getOwnPropertyNames(props.handle.api.model);
|
|
124
|
+
|
|
125
|
+
var _iterator2 = _createForOfIteratorHelper(ownPropertyNames),
|
|
126
|
+
_step2;
|
|
93
127
|
|
|
94
|
-
|
|
95
|
-
|
|
128
|
+
try {
|
|
129
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
130
|
+
var property = _step2.value;
|
|
131
|
+
model[property] = props.handle.api.model[property];
|
|
132
|
+
}
|
|
133
|
+
} catch (err) {
|
|
134
|
+
_iterator2.e(err);
|
|
135
|
+
} finally {
|
|
136
|
+
_iterator2.f();
|
|
96
137
|
}
|
|
97
138
|
}
|
|
98
139
|
}
|
|
@@ -100,7 +141,7 @@ const View = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
100
141
|
props.handle.api = api();
|
|
101
142
|
}, []);
|
|
102
143
|
|
|
103
|
-
_react.default.useEffect(()
|
|
144
|
+
_react.default.useEffect(function () {
|
|
104
145
|
props.handle.api = api();
|
|
105
146
|
});
|
|
106
147
|
|
|
@@ -110,35 +151,46 @@ const View = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
110
151
|
_Observable.default.processSystemGeneratedSubscriptions(props.config.id);
|
|
111
152
|
}
|
|
112
153
|
|
|
113
|
-
_react.default.useEffect(()
|
|
154
|
+
_react.default.useEffect(function () {
|
|
114
155
|
doUpdateModel(props.parameters);
|
|
115
156
|
}, [props.parameters]);
|
|
116
157
|
|
|
117
|
-
_react.default.useEffect(()
|
|
158
|
+
_react.default.useEffect(function () {
|
|
118
159
|
if (_Utils.default.isNull(props.config.layout.id)) {
|
|
119
160
|
props.config.layout.id = props.config.id + '_layout';
|
|
120
161
|
}
|
|
121
162
|
|
|
122
|
-
|
|
163
|
+
var parsedConfig = _Utils.default.parseConfig(props.config, props.config.id);
|
|
123
164
|
|
|
124
165
|
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.config.id);
|
|
125
166
|
|
|
126
167
|
_Observable.default.addSystemSubscriptions(props.viewId, parsedConfig);
|
|
127
168
|
|
|
128
169
|
registerInlineScriptLibraries();
|
|
129
|
-
|
|
170
|
+
var children = layoutHandle.api.getChildren();
|
|
130
171
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
172
|
+
var _iterator3 = _createForOfIteratorHelper(children),
|
|
173
|
+
_step3;
|
|
174
|
+
|
|
175
|
+
try {
|
|
176
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
177
|
+
var child = _step3.value;
|
|
178
|
+
|
|
179
|
+
if (!_Utils.default.isNull(child.api) && !_Utils.default.isNull(child.api.refresh)) {
|
|
180
|
+
child.api.refresh();
|
|
181
|
+
}
|
|
134
182
|
}
|
|
183
|
+
} catch (err) {
|
|
184
|
+
_iterator3.e(err);
|
|
185
|
+
} finally {
|
|
186
|
+
_iterator3.f();
|
|
135
187
|
}
|
|
136
188
|
|
|
137
189
|
_ApplicationManager.default.updateAppBarTitle(parsedConfig.id, parsedConfig.title);
|
|
138
190
|
|
|
139
|
-
|
|
191
|
+
var data = {};
|
|
140
192
|
data.viewId = props.config.id;
|
|
141
|
-
|
|
193
|
+
var event = new _Event.default(props.handle, props.config.id, data);
|
|
142
194
|
|
|
143
195
|
_Observable.default.fireEvent(_EventType.default.COMPONENT_LOAD, event);
|
|
144
196
|
|
|
@@ -146,7 +198,7 @@ const View = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
146
198
|
props.loadCallback();
|
|
147
199
|
}
|
|
148
200
|
|
|
149
|
-
return ()
|
|
201
|
+
return function () {
|
|
150
202
|
_Observable.default.clearEventListeners(props.config.id);
|
|
151
203
|
};
|
|
152
204
|
}, []);
|
|
@@ -160,7 +212,7 @@ const View = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
160
212
|
});
|
|
161
213
|
}
|
|
162
214
|
|
|
163
|
-
|
|
215
|
+
var api = function api() {
|
|
164
216
|
return {
|
|
165
217
|
get id() {
|
|
166
218
|
// View
|
|
@@ -168,46 +220,68 @@ const View = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
168
220
|
},
|
|
169
221
|
|
|
170
222
|
get model() {
|
|
171
|
-
|
|
223
|
+
var children = layoutHandle.api.getChildren();
|
|
172
224
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
let valueGetter = !_Utils.default.isNull(child.api.model) ? child.api.model : !_Utils.default.isNull(child.api.getValue) ? child.api.getValue : child.api.value;
|
|
225
|
+
var _iterator4 = _createForOfIteratorHelper(children),
|
|
226
|
+
_step4;
|
|
176
227
|
|
|
177
|
-
|
|
178
|
-
|
|
228
|
+
try {
|
|
229
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
230
|
+
var child = _step4.value;
|
|
231
|
+
|
|
232
|
+
if (!_Utils.default.isNull(child.api)) {
|
|
233
|
+
var valueGetter = !_Utils.default.isNull(child.api.model) ? child.api.model : !_Utils.default.isNull(child.api.getValue) ? child.api.getValue : child.api.value;
|
|
234
|
+
|
|
235
|
+
if (!_Utils.default.isNull(valueGetter)) {
|
|
236
|
+
model[child.api.id] = typeof valueGetter === 'function' ? valueGetter() : valueGetter;
|
|
237
|
+
}
|
|
179
238
|
}
|
|
180
239
|
}
|
|
240
|
+
} catch (err) {
|
|
241
|
+
_iterator4.e(err);
|
|
242
|
+
} finally {
|
|
243
|
+
_iterator4.f();
|
|
181
244
|
}
|
|
182
245
|
|
|
183
246
|
return model;
|
|
184
247
|
},
|
|
185
248
|
|
|
186
|
-
getChild: id
|
|
249
|
+
getChild: function getChild(id) {
|
|
187
250
|
if (id === layoutHandle.api.id) {
|
|
188
251
|
return layoutHandle;
|
|
189
252
|
}
|
|
190
253
|
|
|
191
|
-
|
|
254
|
+
var children = layoutHandle.api.getChildren();
|
|
192
255
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
256
|
+
var _iterator5 = _createForOfIteratorHelper(children),
|
|
257
|
+
_step5;
|
|
258
|
+
|
|
259
|
+
try {
|
|
260
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
261
|
+
var child = _step5.value;
|
|
262
|
+
|
|
263
|
+
if (!_Utils.default.isNull(child.api) && id === child.api.id) {
|
|
264
|
+
return child;
|
|
265
|
+
}
|
|
196
266
|
}
|
|
267
|
+
} catch (err) {
|
|
268
|
+
_iterator5.e(err);
|
|
269
|
+
} finally {
|
|
270
|
+
_iterator5.f();
|
|
197
271
|
}
|
|
198
272
|
|
|
199
273
|
return null;
|
|
200
274
|
},
|
|
201
|
-
updateModel: values
|
|
275
|
+
updateModel: function updateModel(values) {
|
|
202
276
|
doUpdateModel(values);
|
|
203
277
|
},
|
|
204
|
-
setModelValue: (key, value)
|
|
278
|
+
setModelValue: function setModelValue(key, value) {
|
|
205
279
|
model.key = value;
|
|
206
280
|
},
|
|
207
|
-
getModelValue: key
|
|
281
|
+
getModelValue: function getModelValue(key) {
|
|
208
282
|
return model[key];
|
|
209
283
|
},
|
|
210
|
-
loaded: ()
|
|
284
|
+
loaded: function loaded() {
|
|
211
285
|
return !loadingRef.current;
|
|
212
286
|
}
|
|
213
287
|
};
|
|
@@ -221,7 +295,7 @@ const View = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwa
|
|
|
221
295
|
height: '100%'
|
|
222
296
|
}, props.config)
|
|
223
297
|
}, render(props.config.layout));
|
|
224
|
-
}), ()
|
|
298
|
+
}), function () {
|
|
225
299
|
return true;
|
|
226
300
|
});
|
|
227
301
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -21,26 +23,26 @@ var _reactRouterDom = require("react-router-dom");
|
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
25
|
|
|
24
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
26
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
25
27
|
|
|
26
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null ||
|
|
28
|
+
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
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
var ViewContainer = function ViewContainer(props) {
|
|
31
|
+
var params = (0, _reactRouterDom.useParams)();
|
|
32
|
+
var attributes = (0, _react.useRef)({
|
|
31
33
|
windowView: null,
|
|
32
34
|
anchorView: null
|
|
33
35
|
});
|
|
34
|
-
|
|
36
|
+
var windowOpen = (0, _react.useRef)(null);
|
|
35
37
|
|
|
36
|
-
_react.default.useEffect(()
|
|
38
|
+
_react.default.useEffect(function () {}, []);
|
|
37
39
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
var renderView = function renderView() {
|
|
41
|
+
var viewId = params.id;
|
|
40
42
|
|
|
41
|
-
|
|
43
|
+
var view = _ApplicationManager.default.getView(viewId);
|
|
42
44
|
|
|
43
|
-
|
|
45
|
+
var element = viewId === 'dashboard' ? props.dashboard : !_Utils.default.isNull(view) && !_Utils.default.isNull(view.config) ? /*#__PURE__*/_react.default.createElement(_View.View, {
|
|
44
46
|
config: view.config,
|
|
45
47
|
parameters: view.parameters,
|
|
46
48
|
ref: /*#__PURE__*/_react.default.createRef(),
|