@agilemotion/oui-react-js 1.6.4 → 1.6.5
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 +675 -1044
- package/dist/BasicApp.js +7 -27
- package/dist/BasicAppHome.js +27 -101
- package/dist/DynamicJS.js +109 -197
- package/dist/InteractionPortalApp.js +7 -27
- package/dist/InteractionPortalAppHome.js +21 -87
- package/dist/InteractionPortalApp_old.js +60 -122
- package/dist/RestUtils.js +269 -410
- package/dist/TypedValue.js +20 -26
- package/dist/Utils.js +295 -481
- package/dist/WithRouter.js +9 -17
- package/dist/assets/jss/components/authNavbarStyle.js +168 -171
- package/dist/assets/jss/components/buttonStyle.js +2 -5
- package/dist/assets/jss/components/cardAvatarStyle.js +2 -5
- package/dist/assets/jss/components/cardBodyStyle.js +2 -5
- package/dist/assets/jss/components/cardFooterStyle.js +2 -5
- package/dist/assets/jss/components/cardHeaderStyle.js +20 -17
- package/dist/assets/jss/components/cardIconStyle.js +2 -5
- package/dist/assets/jss/components/cardStyle.js +2 -5
- package/dist/assets/jss/components/cardTextStyle.js +2 -5
- package/dist/assets/jss/components/customDropdownStyle.js +171 -173
- package/dist/assets/jss/components/customInputStyle.js +5 -13
- package/dist/assets/jss/components/dropdownStyle.js +71 -74
- package/dist/assets/jss/components/footerStyle.js +14 -23
- package/dist/assets/jss/components/headerLinksStyle.js +52 -53
- package/dist/assets/jss/components/headerStyle.js +68 -73
- package/dist/assets/jss/components/navbarLinksStyle.js +81 -74
- package/dist/assets/jss/components/navbarStyle.js +79 -84
- package/dist/assets/jss/components/sidebarStyle.js +438 -441
- package/dist/assets/jss/components/typographyStyle.js +5 -13
- package/dist/assets/jss/rootStyle.js +85 -151
- package/dist/assets/jss/views/layoutStyle.js +45 -51
- package/dist/assets/jss/views/loginBasicStyle.js +2 -5
- package/dist/assets/jss/views/loginBusinessPortalStyle.js +2 -5
- package/dist/assets/jss/views/loginStyle.js +80 -87
- package/dist/components/AlertBar.js +20 -75
- package/dist/components/AlertItem.js +13 -49
- package/dist/components/AlertTemplate.js +12 -18
- package/dist/components/Button.js +41 -112
- package/dist/components/Calendar.js +99 -208
- package/dist/components/ConfirmationDialog.js +13 -54
- package/dist/components/DataGrid.js +271 -695
- package/dist/components/DataGridColumn.js +24 -74
- package/dist/components/DataGridFilter.js +107 -245
- package/dist/components/DataGridHeading.js +34 -78
- package/dist/components/Dialog.js +37 -130
- package/dist/components/DocumentTemplateDesigner.js +16 -57
- package/dist/components/DocumentTemplateDesignerComponent.js +47 -141
- package/dist/components/DocumentTemplatePlaceholderDialog.js +34 -67
- package/dist/components/DocumentViewer.js +25 -65
- package/dist/components/DocumentViewerComponent.js +13 -44
- package/dist/components/ElementResizeHandler.js +148 -200
- package/dist/components/FileThumb.js +15 -56
- package/dist/components/Graph.js +98 -203
- package/dist/components/GraphNode.js +20 -61
- package/dist/components/HtmlPanel.js +38 -105
- package/dist/components/Icon.js +174 -253
- package/dist/components/LoadingIndicator.js +4 -11
- package/dist/components/LottieIcon.js +63 -60
- package/dist/components/PopupView.js +21 -60
- package/dist/components/Portlet.js +18 -60
- package/dist/components/RegularButton.js +34 -42
- package/dist/components/SignaturePanel.js +19 -67
- package/dist/components/SocketManager.js +133 -228
- package/dist/components/StepperTitleBar.js +48 -99
- package/dist/components/TabPage.js +30 -47
- package/dist/components/TabPanel.js +35 -122
- package/dist/components/TableCellContent.js +34 -98
- package/dist/components/TemplateDesigner.js +115 -230
- package/dist/components/TemplateItemEventHandler.js +298 -481
- package/dist/components/TemplateTable.js +117 -218
- package/dist/components/TitleBar.js +15 -53
- package/dist/components/Toolbar.js +44 -110
- package/dist/components/Tooltip.js +37 -56
- package/dist/components/Tree.js +50 -143
- package/dist/components/UseIsVisible.js +5 -25
- package/dist/components/card/Card.js +35 -39
- package/dist/components/card/CardAvatar.js +21 -32
- package/dist/components/card/CardBody.js +29 -36
- package/dist/components/card/CardFooter.js +26 -35
- package/dist/components/card/CardHeader.js +29 -36
- package/dist/components/card/CardIcon.js +15 -29
- package/dist/components/card/CardText.js +15 -29
- package/dist/components/customInput/CustomInput.js +38 -40
- package/dist/components/dashboard/FoldingSideTabDashboard.js +65 -184
- package/dist/components/dashboard/SideMenuModuleDashboard.js +67 -185
- package/dist/components/dashboard/TopMenuModuleDashboard.js +22 -63
- package/dist/components/dashboard/components/Header.js +15 -52
- package/dist/components/dashboard/components/LeftDrawer.js +9 -23
- package/dist/components/dashboard/components/UserIdentity.js +4 -12
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +115 -155
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +344 -419
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenu.js +15 -29
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +405 -485
- package/dist/components/dashboard/components/portal/Timeline.js +3 -8
- package/dist/components/dashboard/components/portal/Workspace.js +4 -13
- package/dist/components/footer/Footer.js +23 -45
- package/dist/components/footer/HomeFooter.js +38 -78
- package/dist/components/form/AddressSearch.js +26 -76
- package/dist/components/form/AutoComplete.js +54 -168
- package/dist/components/form/BaseField.js +59 -189
- package/dist/components/form/Checkbox.js +11 -24
- package/dist/components/form/DatePicker.js +28 -82
- package/dist/components/form/FieldSet.js +84 -300
- package/dist/components/form/Form.js +206 -501
- package/dist/components/form/GridField.js +83 -243
- package/dist/components/form/IconField.js +10 -21
- package/dist/components/form/ImageEditor.js +98 -208
- package/dist/components/form/LabelField.js +13 -28
- package/dist/components/form/LookupField.js +36 -102
- package/dist/components/form/MultiFileUploadField.js +67 -134
- package/dist/components/form/RadioGroup.js +20 -57
- package/dist/components/form/Section.js +33 -118
- package/dist/components/form/SelectItem.js +36 -83
- package/dist/components/form/SignatureTemplateDesignerField.js +12 -26
- package/dist/components/form/Switch.js +11 -24
- package/dist/components/form/TextField.js +19 -55
- package/dist/components/form/TimePicker.js +18 -43
- package/dist/components/form/TransferList.js +76 -200
- package/dist/components/form/UploadField.js +134 -256
- package/dist/components/grid/GridContainer.js +10 -23
- package/dist/components/grid/GridItem.js +10 -23
- package/dist/components/layout/CollapsiblePanel.js +20 -59
- package/dist/components/layout/Layout.js +40 -149
- package/dist/components/layout/View.js +65 -195
- package/dist/components/layout/ViewContainer.js +13 -33
- package/dist/components/layout/ViewPort.js +14 -48
- package/dist/components/layout/Window.js +62 -135
- package/dist/components/layout/WindowViewPort.js +18 -63
- package/dist/components/media/ClosablePanel.js +9 -18
- package/dist/components/media/LobbyWaitingList.js +11 -17
- package/dist/components/media/MediaSoupHelper.js +173 -401
- package/dist/components/media/SideBarContent.js +17 -34
- package/dist/components/media/SocketRequest.js +7 -18
- package/dist/components/media/SocketResponse.js +5 -14
- package/dist/components/media/Timer.js +18 -54
- package/dist/components/media/Toolbar.js +97 -254
- package/dist/components/media/ToolbarButton.js +34 -95
- package/dist/components/media/Toolbar_bck.js +70 -186
- package/dist/components/media/Tracks.js +19 -33
- package/dist/components/media/TrainingRoom.js +121 -374
- package/dist/components/media/Transports.js +17 -29
- package/dist/components/media/VCEventManager.js +45 -116
- package/dist/components/media/VCEventType.js +82 -168
- package/dist/components/media/VCParticipantList.js +16 -51
- package/dist/components/media/VCParticipantListItem.js +44 -141
- package/dist/components/media/VCRoom.js +14 -58
- package/dist/components/media/VCRoomParticipant.js +235 -556
- package/dist/components/media/VCRoomRecorder.js +106 -204
- package/dist/components/media/VCRoomWorkspace.js +248 -584
- package/dist/components/media/Video.js +27 -112
- package/dist/components/media/VideoPlayer.js +23 -91
- package/dist/components/media/chat/ChatRoom.js +143 -361
- package/dist/components/media/chat/ChatRoomItem.js +17 -58
- package/dist/components/media/chat/ChatRoomList.js +15 -60
- package/dist/components/menu/CollapsibleMenu.js +22 -52
- package/dist/components/menu/MenuBars.js +50 -116
- package/dist/components/menu/MenuButton.js +53 -130
- package/dist/components/menu/MenuItem.js +11 -51
- package/dist/components/menu/MenuLink.js +13 -41
- package/dist/components/menu/PopupMenu.js +13 -25
- package/dist/components/navbars/AuthNavbar.js +21 -56
- package/dist/components/navbars/HomeNavbar.js +213 -290
- package/dist/components/navbars/PortalNavbar.js +26 -81
- package/dist/components/signatures/AgilitySignaturePanel.js +41 -135
- package/dist/components/signatures/AlertItem.js +14 -50
- package/dist/components/signatures/Card.js +6 -16
- package/dist/components/signatures/DocumentContainer.js +57 -165
- package/dist/components/signatures/ImageSignatureInput.js +64 -124
- package/dist/components/signatures/MenuButton.js +28 -63
- package/dist/components/signatures/Prompt.js +6 -41
- package/dist/components/signatures/ResponsiveTable.js +181 -370
- package/dist/components/signatures/SearchView.js +34 -112
- package/dist/components/signatures/SignatorySearch.js +11 -44
- package/dist/components/signatures/SignatorySearchForm.js +19 -50
- package/dist/components/signatures/SignatureInput.js +28 -91
- package/dist/components/signatures/SignatureInputProps.js +49 -144
- package/dist/components/signatures/SignatureTemplateDesigner.js +230 -430
- package/dist/components/signatures/Toolbar.js +99 -173
- package/dist/components/signatures/ViewUtils.js +207 -313
- package/dist/components/typography/Danger.js +6 -11
- package/dist/components/typography/Info.js +7 -11
- package/dist/components/typography/Link.js +6 -12
- package/dist/event/ActionHandlers.js +48 -87
- package/dist/event/Event.js +21 -25
- package/dist/event/EventListener.js +54 -48
- package/dist/event/EventType.js +18 -40
- package/dist/event/LoadDataActionHandler.js +10 -31
- package/dist/event/Observable.js +204 -396
- package/dist/event/RouteActionHandler.js +119 -171
- package/dist/event/ScriptActionHandler.js +10 -32
- package/dist/event/ServiceCallActionHandler.js +37 -64
- package/dist/event/SignalGraphActionHandler.js +9 -31
- package/dist/js/Addresses.js +23 -42
- package/dist/js/Calendar.js +41 -89
- package/dist/js/DynamicLib.js +11 -23
- package/dist/js/Media.js +80 -174
- package/dist/js/Validators.js +6 -12
- package/dist/js/Windows.js +22 -40
- package/dist/redux/store/ConfigureStore.js +12 -29
- package/dist/redux/store/DashboardStore.js +47 -120
- package/dist/redux/store/History.js +2 -5
- package/dist/redux/store/SecurityStore.js +22 -65
- package/dist/security/TokenManager.js +29 -53
- package/dist/theme-default.js +3 -8
- package/dist/view/Dashboard.js +140 -308
- package/dist/view/PortalDashboard.js +6 -13
- package/dist/view/Settings.js +3 -11
- package/dist/view/Views.js +15 -35
- package/dist/view/security/ChangePasswordBasic.js +41 -147
- package/dist/view/security/ForgotPassword.js +26 -106
- package/dist/view/security/ForgotPasswordBasic.js +22 -96
- package/dist/view/security/Login.js +29 -117
- package/dist/view/security/LoginBasic.js +28 -108
- package/dist/view/security/LoginInteractionPortal.js +28 -106
- package/dist/view/security/ResetPassword.js +25 -110
- package/dist/view/security/ResetPasswordBasic.js +39 -142
- package/dist/view/security/Security.js +14 -26
- package/package.json +25 -20
|
@@ -1,74 +1,39 @@
|
|
|
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
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = void 0;
|
|
9
|
-
|
|
10
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
8
|
var _reactstrap = require("reactstrap");
|
|
13
|
-
|
|
14
9
|
var _MenuItem = _interopRequireDefault(require("material-ui/MenuItem"));
|
|
15
|
-
|
|
16
10
|
var _colors = require("material-ui/styles/colors");
|
|
17
|
-
|
|
18
11
|
var _Utils = _interopRequireDefault(require("../../Utils"));
|
|
19
|
-
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
23
|
-
|
|
24
|
-
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; }
|
|
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
|
-
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; }
|
|
39
|
-
|
|
40
|
-
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; }
|
|
41
|
-
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
42
15
|
function CollapsiblePanel(_ref) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
56
|
-
icon = _useState4[0],
|
|
57
|
-
setIcon = _useState4[1];
|
|
58
|
-
|
|
59
|
-
var toggle = function toggle(loading) {
|
|
60
|
-
var isOpen = !isCollapse;
|
|
16
|
+
let {
|
|
17
|
+
children,
|
|
18
|
+
...props
|
|
19
|
+
} = _ref;
|
|
20
|
+
const {
|
|
21
|
+
title,
|
|
22
|
+
collapse
|
|
23
|
+
} = props;
|
|
24
|
+
const [isCollapse, setIsCollapse] = (0, _react.useState)(true);
|
|
25
|
+
const [icon, setIcon] = (0, _react.useState)("fa fa-chevron-down");
|
|
26
|
+
const toggle = loading => {
|
|
27
|
+
let isOpen = !isCollapse;
|
|
61
28
|
setIsCollapse(isOpen);
|
|
62
|
-
setIcon(
|
|
29
|
+
setIcon(state => {
|
|
63
30
|
return state === "fa fa-chevron-down" ? "fa fa-chevron-right" : "fa fa-chevron-down";
|
|
64
31
|
});
|
|
65
|
-
|
|
66
32
|
if (!loading && !_Utils.default.isNull(props.clickHandler)) {
|
|
67
33
|
props.clickHandler(isOpen);
|
|
68
34
|
}
|
|
69
35
|
};
|
|
70
|
-
|
|
71
|
-
var styles = {
|
|
36
|
+
const styles = {
|
|
72
37
|
menuItem: {
|
|
73
38
|
color: _colors.grey900,
|
|
74
39
|
fontSize: 14
|
|
@@ -78,7 +43,7 @@ function CollapsiblePanel(_ref) {
|
|
|
78
43
|
fontSize: 14
|
|
79
44
|
}
|
|
80
45
|
};
|
|
81
|
-
(0, _react.useEffect)(
|
|
46
|
+
(0, _react.useEffect)(() => {
|
|
82
47
|
toggle(true);
|
|
83
48
|
}, [collapse]);
|
|
84
49
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -87,9 +52,7 @@ function CollapsiblePanel(_ref) {
|
|
|
87
52
|
borderBottom: "1px solid rgba(255,255,255,0.5)"
|
|
88
53
|
}
|
|
89
54
|
}, /*#__PURE__*/_react.default.createElement(_MenuItem.default, {
|
|
90
|
-
onClick:
|
|
91
|
-
return toggle(false);
|
|
92
|
-
},
|
|
55
|
+
onClick: () => toggle(false),
|
|
93
56
|
key: props.key,
|
|
94
57
|
style: !isCollapse ? styles.menuItem : styles.menuItemExpanded,
|
|
95
58
|
primaryText: title
|
|
@@ -116,11 +79,9 @@ function CollapsiblePanel(_ref) {
|
|
|
116
79
|
isOpen: isCollapse
|
|
117
80
|
}, children));
|
|
118
81
|
}
|
|
119
|
-
|
|
120
82
|
CollapsiblePanel.defaultProps = {
|
|
121
83
|
children: "Add node as a child",
|
|
122
84
|
title: "Collapsible Panel",
|
|
123
85
|
collapse: true
|
|
124
86
|
};
|
|
125
|
-
var _default = CollapsiblePanel;
|
|
126
|
-
exports.default = _default;
|
|
87
|
+
var _default = exports.default = CollapsiblePanel;
|
|
@@ -1,156 +1,84 @@
|
|
|
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
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.Layout = void 0;
|
|
9
|
-
|
|
10
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
8
|
var _Utils = _interopRequireDefault(require("../../Utils"));
|
|
13
|
-
|
|
14
9
|
var _Observable = _interopRequireDefault(require("../../event/Observable"));
|
|
15
|
-
|
|
16
10
|
var _Toolbar = _interopRequireDefault(require("../Toolbar"));
|
|
17
|
-
|
|
18
11
|
var _DataGrid = require("../DataGrid");
|
|
19
|
-
|
|
20
12
|
var _HtmlPanel = _interopRequireDefault(require("../HtmlPanel"));
|
|
21
|
-
|
|
22
13
|
var _SignatureTemplateDesigner = _interopRequireDefault(require("../signatures/SignatureTemplateDesigner"));
|
|
23
|
-
|
|
24
14
|
var _TemplateDesigner = _interopRequireDefault(require("../TemplateDesigner"));
|
|
25
|
-
|
|
26
15
|
var _AlertBar = _interopRequireDefault(require("../AlertBar"));
|
|
27
|
-
|
|
28
16
|
var _TitleBar = _interopRequireDefault(require("../TitleBar"));
|
|
29
|
-
|
|
30
17
|
var _StepperTitleBar = _interopRequireDefault(require("../StepperTitleBar"));
|
|
31
|
-
|
|
32
18
|
var _Tree = require("../Tree");
|
|
33
|
-
|
|
34
19
|
var _Form = _interopRequireDefault(require("../form/Form"));
|
|
35
|
-
|
|
36
20
|
var _DocumentViewer = _interopRequireDefault(require("../DocumentViewer"));
|
|
37
|
-
|
|
38
21
|
var _SignaturePanel = _interopRequireDefault(require("../SignaturePanel"));
|
|
39
|
-
|
|
40
22
|
var _Dialog = _interopRequireDefault(require("../Dialog"));
|
|
41
|
-
|
|
42
23
|
var _Calendar = _interopRequireDefault(require("../Calendar"));
|
|
43
|
-
|
|
44
24
|
var _Video = _interopRequireDefault(require("../media/Video"));
|
|
45
|
-
|
|
46
25
|
var _VCRoom = _interopRequireDefault(require("../media/VCRoom"));
|
|
47
|
-
|
|
48
26
|
var _VideoPlayer = _interopRequireDefault(require("../media/VideoPlayer"));
|
|
49
|
-
|
|
50
27
|
var _Portlet = _interopRequireDefault(require("../Portlet"));
|
|
51
|
-
|
|
52
28
|
var _TabPanel = _interopRequireDefault(require("../TabPanel"));
|
|
53
|
-
|
|
54
29
|
var _DocumentTemplateDesigner = _interopRequireDefault(require("../DocumentTemplateDesigner"));
|
|
55
|
-
|
|
56
|
-
function
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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; }
|
|
71
|
-
|
|
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; }
|
|
73
|
-
|
|
74
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
75
|
-
|
|
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];
|
|
80
|
-
|
|
81
|
-
var _React$useState3 = _react.default.useState([]),
|
|
82
|
-
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
83
|
-
loadedComponents = _React$useState4[0];
|
|
84
|
-
|
|
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];
|
|
89
|
-
|
|
90
|
-
var keyCounter = 0;
|
|
91
|
-
|
|
92
|
-
_react.default.useEffect(function () {
|
|
30
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
31
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
32
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
33
|
+
const Layout = exports.Layout = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
34
|
+
const [componentHandles] = _react.default.useState({});
|
|
35
|
+
const [loadedComponents] = _react.default.useState([]);
|
|
36
|
+
const [visible, setVisible] = _react.default.useState(false);
|
|
37
|
+
let keyCounter = 0;
|
|
38
|
+
_react.default.useEffect(() => {
|
|
93
39
|
props.handle.api = api();
|
|
94
40
|
});
|
|
95
|
-
|
|
96
|
-
_react.default.useEffect(function () {
|
|
41
|
+
_react.default.useEffect(() => {
|
|
97
42
|
if (props.tableRow) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
props.config.id = props.config.id + '_' + ((_props$tableRow$id = props.tableRow.id) === null || _props$tableRow$id === void 0 ? void 0 : _props$tableRow$id.replaceAll('-', ''));
|
|
43
|
+
props.config.id = props.config.id + '_' + props.tableRow.id?.replaceAll('-', '');
|
|
101
44
|
}
|
|
102
|
-
|
|
103
45
|
props.handle.api = api();
|
|
104
|
-
|
|
105
|
-
var parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
106
|
-
|
|
46
|
+
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
107
47
|
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.viewId);
|
|
108
|
-
|
|
109
48
|
_Observable.default.addSystemSubscriptions(props.viewId, parsedConfig);
|
|
110
|
-
|
|
111
49
|
if (!_Utils.default.isNull(parsedConfig.visible)) {
|
|
112
50
|
setVisible(_Utils.default.evaluateBooleanExpression(parsedConfig.visible, props.config.id));
|
|
113
51
|
} else {
|
|
114
52
|
setVisible(true);
|
|
115
53
|
}
|
|
116
54
|
}, []);
|
|
117
|
-
|
|
118
55
|
function createComponentHandle(component) {
|
|
119
56
|
if (_Utils.default.isNull(componentHandles[component.id])) {
|
|
120
|
-
|
|
57
|
+
let handle = {};
|
|
121
58
|
componentHandles[component.id] = handle;
|
|
122
59
|
return handle;
|
|
123
60
|
}
|
|
124
|
-
|
|
125
61
|
return componentHandles[component.id];
|
|
126
62
|
}
|
|
127
|
-
|
|
128
|
-
_react.default.useLayoutEffect(function () {
|
|
63
|
+
_react.default.useLayoutEffect(() => {
|
|
129
64
|
props.handle.api = api();
|
|
130
65
|
}, []);
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
var layout = props.config;
|
|
134
|
-
|
|
66
|
+
const setMissingComponentIds = () => {
|
|
67
|
+
let layout = props.config;
|
|
135
68
|
if (!layout.id) {
|
|
136
69
|
layout.id = '_parent_layout';
|
|
137
70
|
}
|
|
138
|
-
|
|
139
71
|
layout.key = keyCounter++;
|
|
140
|
-
|
|
141
72
|
if (!_Utils.default.isNull(layout.components)) {
|
|
142
|
-
for (
|
|
143
|
-
|
|
144
|
-
|
|
73
|
+
for (let i = 0; i < layout.components.length; i++) {
|
|
74
|
+
let component = layout.components[i];
|
|
145
75
|
if (_Utils.default.isNull(component.id)) {
|
|
146
76
|
component.id = layout.id + '_' + component.type + '_' + i;
|
|
147
77
|
}
|
|
148
|
-
|
|
149
78
|
component.key = keyCounter++;
|
|
150
79
|
}
|
|
151
80
|
}
|
|
152
81
|
};
|
|
153
|
-
|
|
154
82
|
function renderComponent(component, index) {
|
|
155
83
|
if (_Utils.default.isNull(component.id)) {
|
|
156
84
|
return null;
|
|
@@ -286,69 +214,41 @@ var Layout = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
286
214
|
}) : /*#__PURE__*/_react.default.createElement("div", null, 'Unsupported component type ' + component.type);
|
|
287
215
|
}
|
|
288
216
|
}
|
|
289
|
-
|
|
290
|
-
var api = function api() {
|
|
217
|
+
const api = () => {
|
|
291
218
|
return {
|
|
292
219
|
get id() {
|
|
293
220
|
// Layout
|
|
294
221
|
return props.config.id;
|
|
295
222
|
},
|
|
296
|
-
|
|
297
223
|
set visible(val) {
|
|
298
224
|
setVisible(val);
|
|
299
225
|
},
|
|
300
|
-
|
|
301
|
-
getChildren: function getChildren() {
|
|
226
|
+
getChildren: () => {
|
|
302
227
|
//console.log("\n\n\n\nGETTING LAYOUT KIDS : ", componentHandles);
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
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
|
-
}
|
|
228
|
+
let children = [];
|
|
229
|
+
let properties = Object.getOwnPropertyNames(componentHandles);
|
|
230
|
+
for (const property of properties) {
|
|
231
|
+
let componentHandle = componentHandles[property];
|
|
232
|
+
//console.log(property, componentHandle);
|
|
233
|
+
children.push(componentHandle);
|
|
234
|
+
if (!_Utils.default.isNull(componentHandle.api) && !_Utils.default.isNull(componentHandle.api.getChildren)) {
|
|
235
|
+
let moreChildren = componentHandle.api.getChildren();
|
|
236
|
+
if (!_Utils.default.isNull(moreChildren)) {
|
|
237
|
+
for (const child of moreChildren) {
|
|
238
|
+
children.push(child);
|
|
333
239
|
}
|
|
334
240
|
}
|
|
335
241
|
}
|
|
336
|
-
} catch (err) {
|
|
337
|
-
_iterator.e(err);
|
|
338
|
-
} finally {
|
|
339
|
-
_iterator.f();
|
|
340
242
|
}
|
|
341
|
-
|
|
342
243
|
return children;
|
|
343
244
|
},
|
|
344
|
-
refresh
|
|
245
|
+
refresh() {
|
|
345
246
|
if (!_Utils.default.isNull(props.config.visible)) {
|
|
346
247
|
setVisible(_Utils.default.evaluateBooleanExpression(props.config.visible, props.config.id));
|
|
347
248
|
}
|
|
348
249
|
}
|
|
349
250
|
};
|
|
350
251
|
};
|
|
351
|
-
|
|
352
252
|
function getDefaultComponentContainerStyle(component) {
|
|
353
253
|
return _Utils.default.mergeStyles({
|
|
354
254
|
width: 'auto',
|
|
@@ -357,9 +257,8 @@ var Layout = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
357
257
|
minHeight: 0
|
|
358
258
|
}, component);
|
|
359
259
|
}
|
|
360
|
-
|
|
361
260
|
function getLayoutStyle(component, backgroundColor) {
|
|
362
|
-
|
|
261
|
+
let style = _Utils.default.mergeStyles({
|
|
363
262
|
overflow: 'auto',
|
|
364
263
|
border: 'none',
|
|
365
264
|
minWidth: '128px',
|
|
@@ -368,22 +267,18 @@ var Layout = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
368
267
|
margin: 0,
|
|
369
268
|
padding: 0
|
|
370
269
|
}, component);
|
|
371
|
-
|
|
372
270
|
if (!visible) {
|
|
373
271
|
style.display = 'none';
|
|
374
272
|
}
|
|
375
|
-
|
|
376
273
|
if (!_Utils.default.isNull(backgroundColor)) {
|
|
377
274
|
style.backgroundColor = backgroundColor;
|
|
378
275
|
}
|
|
379
|
-
|
|
380
276
|
return style;
|
|
381
277
|
}
|
|
382
|
-
|
|
383
278
|
function render(layout) {
|
|
384
279
|
setMissingComponentIds();
|
|
385
|
-
|
|
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(
|
|
280
|
+
let counter = 10000;
|
|
281
|
+
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) => {
|
|
387
282
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, {
|
|
388
283
|
key: index
|
|
389
284
|
}, renderComponent(component, null));
|
|
@@ -393,9 +288,8 @@ var Layout = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
393
288
|
width: '100%',
|
|
394
289
|
height: '100%'
|
|
395
290
|
}
|
|
396
|
-
}, layout.components.map(
|
|
397
|
-
|
|
398
|
-
|
|
291
|
+
}, layout.components.map((component, index) => {
|
|
292
|
+
let className = _Utils.default.getComponentAttribute(component, 'className', '');
|
|
399
293
|
return component.type === 'layout' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, renderComponent(component, index)) : /*#__PURE__*/_react.default.createElement("div", {
|
|
400
294
|
key: index,
|
|
401
295
|
style: {
|
|
@@ -403,16 +297,13 @@ var Layout = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
403
297
|
height: '100%',
|
|
404
298
|
verticalAlign: 'middle'
|
|
405
299
|
},
|
|
406
|
-
className:
|
|
300
|
+
className: `${className}`
|
|
407
301
|
}, renderComponent(component, null));
|
|
408
302
|
}));
|
|
409
303
|
}
|
|
410
|
-
|
|
411
304
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
412
305
|
id: props.config.id,
|
|
413
306
|
style: getLayoutStyle(props.config, 'transparent'),
|
|
414
|
-
className:
|
|
307
|
+
className: `${_Utils.default.getComponentAttribute(props.config, 'className', null)}`
|
|
415
308
|
}, render(props.config));
|
|
416
|
-
});
|
|
417
|
-
|
|
418
|
-
exports.Layout = Layout;
|
|
309
|
+
});
|