@agilemotion/oui-react-js 1.6.0 → 1.6.2

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.
Files changed (229) hide show
  1. package/dist/ApplicationManager.js +698 -421
  2. package/dist/BasicApp.js +5 -5
  3. package/dist/BasicAppHome.js +55 -26
  4. package/dist/DynamicJS.js +147 -65
  5. package/dist/InteractionPortalApp.css +1 -1
  6. package/dist/InteractionPortalApp.js +5 -5
  7. package/dist/InteractionPortalAppHome.js +65 -18
  8. package/dist/InteractionPortalApp_old.js +107 -61
  9. package/dist/RestUtils.js +339 -287
  10. package/dist/TypedValue.js +18 -15
  11. package/dist/Utils.js +375 -276
  12. package/dist/WithRouter.js +6 -6
  13. package/dist/assets/jss/components/authNavbarStyle.js +166 -164
  14. package/dist/assets/jss/components/buttonStyle.js +1 -1
  15. package/dist/assets/jss/components/cardAvatarStyle.js +1 -1
  16. package/dist/assets/jss/components/cardBodyStyle.js +1 -1
  17. package/dist/assets/jss/components/cardFooterStyle.js +1 -1
  18. package/dist/assets/jss/components/cardHeaderStyle.js +13 -13
  19. package/dist/assets/jss/components/cardIconStyle.js +1 -1
  20. package/dist/assets/jss/components/cardStyle.js +1 -1
  21. package/dist/assets/jss/components/cardTextStyle.js +1 -1
  22. package/dist/assets/jss/components/customDropdownStyle.js +168 -169
  23. package/dist/assets/jss/components/customInputStyle.js +9 -3
  24. package/dist/assets/jss/components/dropdownStyle.js +69 -69
  25. package/dist/assets/jss/components/footerStyle.js +19 -13
  26. package/dist/assets/jss/components/headerLinksStyle.js +45 -48
  27. package/dist/assets/jss/components/headerStyle.js +68 -65
  28. package/dist/assets/jss/components/navbarLinksStyle.js +66 -77
  29. package/dist/assets/jss/components/navbarStyle.js +79 -76
  30. package/dist/assets/jss/components/sidebarStyle.js +436 -436
  31. package/dist/assets/jss/components/typographyStyle.js +9 -3
  32. package/dist/assets/jss/rootStyle.js +96 -81
  33. package/dist/assets/jss/views/layoutStyle.js +44 -41
  34. package/dist/assets/jss/views/loginBasicStyle.js +1 -1
  35. package/dist/assets/jss/views/loginBusinessPortalStyle.js +1 -1
  36. package/dist/assets/jss/views/loginStyle.js +82 -77
  37. package/dist/components/AlertBar.js +50 -17
  38. package/dist/components/AlertItem.js +35 -12
  39. package/dist/components/AlertTemplate.js +30 -29
  40. package/dist/components/Button.js +62 -34
  41. package/dist/components/Calendar.js +140 -91
  42. package/dist/components/ConfirmationDialog.js +36 -11
  43. package/dist/components/DataGrid.js +512 -270
  44. package/dist/components/DataGridColumn.js +47 -22
  45. package/dist/components/DataGridFilter.js +186 -105
  46. package/dist/components/DataGridHeading.js +50 -32
  47. package/dist/components/Dialog.js +90 -35
  48. package/dist/components/DocumentTemplateDesigner.js +34 -16
  49. package/dist/components/DocumentTemplateDesignerComponent.css +0 -157
  50. package/dist/components/DocumentTemplateDesignerComponent.js +118 -62
  51. package/dist/components/DocumentTemplatePlaceholderDialog.js +52 -30
  52. package/dist/components/DocumentViewer.js +34 -18
  53. package/dist/components/DocumentViewerComponent.js +26 -9
  54. package/dist/components/ElementResizeHandler.js +229 -207
  55. package/dist/components/FileThumb.js +32 -10
  56. package/dist/components/Graph.js +153 -85
  57. package/dist/components/GraphNode.js +58 -38
  58. package/dist/components/HtmlPanel.js +67 -39
  59. package/dist/components/Icon.js +206 -166
  60. package/dist/components/LoadingIndicator.js +3 -3
  61. package/dist/components/LottieIcon.js +1 -1
  62. package/dist/components/PopupView.js +39 -19
  63. package/dist/components/Portlet.js +35 -19
  64. package/dist/components/RegularButton.js +28 -32
  65. package/dist/components/SignaturePanel.js +37 -17
  66. package/dist/components/SocketManager.js +178 -119
  67. package/dist/components/StepperTitleBar.js +62 -42
  68. package/dist/components/TabPage.js +30 -25
  69. package/dist/components/TabPanel.js +86 -33
  70. package/dist/components/TableCellContent.js +51 -32
  71. package/dist/components/TemplateDesigner.js +173 -121
  72. package/dist/components/TemplateItemEventHandler.js +335 -221
  73. package/dist/components/TemplateTable.js +183 -118
  74. package/dist/components/TitleBar.js +26 -11
  75. package/dist/components/Toolbar.js +67 -38
  76. package/dist/components/Tooltip.js +43 -35
  77. package/dist/components/Tree.js +85 -44
  78. package/dist/components/UseIsVisible.js +25 -4
  79. package/dist/components/card/Card.js +27 -33
  80. package/dist/components/card/CardAvatar.js +20 -19
  81. package/dist/components/card/CardBody.js +24 -27
  82. package/dist/components/card/CardFooter.js +23 -24
  83. package/dist/components/card/CardHeader.js +24 -27
  84. package/dist/components/card/CardIcon.js +17 -13
  85. package/dist/components/card/CardText.js +17 -13
  86. package/dist/components/customInput/CustomInput.js +22 -36
  87. package/dist/components/dashboard/{BasicBusinessAppDashboard.js → FoldingSideTabDashboard.js} +111 -63
  88. package/dist/components/dashboard/SideMenuModuleDashboard.css +60 -0
  89. package/dist/components/dashboard/SideMenuModuleDashboard.js +423 -0
  90. package/dist/components/dashboard/TopMenuModuleDashboard.js +138 -0
  91. package/dist/components/dashboard/components/Header.js +29 -12
  92. package/dist/components/dashboard/components/LeftDrawer.js +3 -5
  93. package/dist/components/dashboard/components/UserIdentity.js +2 -2
  94. package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +131 -87
  95. package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +488 -0
  96. package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenu.js +64 -0
  97. package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.css +65 -0
  98. package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +556 -0
  99. package/dist/components/dashboard/components/portal/Timeline.js +1 -1
  100. package/dist/components/dashboard/components/portal/Workspace.js +5 -11
  101. package/dist/components/footer/Footer.js +31 -24
  102. package/dist/components/footer/HomeFooter.js +68 -34
  103. package/dist/components/form/AddressSearch.js +78 -42
  104. package/dist/components/form/AutoComplete.js +136 -55
  105. package/dist/components/form/BaseField.js +108 -56
  106. package/dist/components/form/Checkbox.js +10 -8
  107. package/dist/components/form/DatePicker.js +47 -25
  108. package/dist/components/form/FieldSet.js +217 -84
  109. package/dist/components/form/Form.js +334 -200
  110. package/dist/components/form/GridField.js +185 -82
  111. package/dist/components/form/IconField.js +9 -7
  112. package/dist/components/form/ImageEditor.js +141 -92
  113. package/dist/components/form/LabelField.js +12 -10
  114. package/dist/components/form/LookupField.js +54 -32
  115. package/dist/components/form/MultiFileUploadField.js +101 -67
  116. package/dist/components/form/RadioGroup.js +33 -16
  117. package/dist/components/form/Section.js +84 -34
  118. package/dist/components/form/SelectItem.js +55 -33
  119. package/dist/components/form/SignatureTemplateDesignerField.js +11 -9
  120. package/dist/components/form/Switch.js +10 -8
  121. package/dist/components/form/TextField.js +34 -16
  122. package/dist/components/form/TimePicker.js +19 -15
  123. package/dist/components/form/TransferList.js +153 -75
  124. package/dist/components/form/UploadField.js +183 -128
  125. package/dist/components/grid/GridContainer.js +12 -8
  126. package/dist/components/grid/GridItem.js +12 -8
  127. package/dist/components/layout/CollapsiblePanel.js +44 -18
  128. package/dist/components/layout/Layout.js +81 -40
  129. package/dist/components/layout/VC.css +1 -1
  130. package/dist/components/layout/View.js +136 -62
  131. package/dist/components/layout/ViewContainer.js +13 -11
  132. package/dist/components/layout/ViewPort.js +25 -10
  133. package/dist/components/layout/Window.js +87 -53
  134. package/dist/components/layout/WindowViewPort.js +38 -16
  135. package/dist/components/media/ClosablePanel.js +7 -7
  136. package/dist/components/media/LobbyWaitingList.js +7 -9
  137. package/dist/components/media/MediaSoupHelper.js +379 -187
  138. package/dist/components/media/SideBarContent.js +22 -14
  139. package/dist/components/media/SocketRequest.js +5 -1
  140. package/dist/components/media/SocketResponse.js +5 -1
  141. package/dist/components/media/Timer.js +35 -15
  142. package/dist/components/media/Toolbar.css +5 -0
  143. package/dist/components/media/Toolbar.js +220 -102
  144. package/dist/components/media/ToolbarButton.js +82 -33
  145. package/dist/components/media/Toolbar_bck.js +142 -70
  146. package/dist/components/media/Tracks.js +31 -28
  147. package/dist/components/media/TrainingRoom.js +284 -121
  148. package/dist/components/media/Transports.js +27 -24
  149. package/dist/components/media/VCEventManager.js +95 -31
  150. package/dist/components/media/VCEventType.js +5 -1
  151. package/dist/components/media/VCParticipantList.js +40 -14
  152. package/dist/components/media/VCParticipantListItem.js +92 -41
  153. package/dist/components/media/VCRoom.js +29 -11
  154. package/dist/components/media/VCRoomParticipant.js +488 -242
  155. package/dist/components/media/VCRoomRecorder.js +236 -175
  156. package/dist/components/media/VCRoomWorkspace.js +505 -245
  157. package/dist/components/media/Video.js +89 -25
  158. package/dist/components/media/VideoPlayer.js +56 -22
  159. package/dist/components/media/chat/ChatRoom.js +255 -132
  160. package/dist/components/media/chat/ChatRoomItem.js +35 -14
  161. package/dist/components/media/chat/ChatRoomList.js +43 -13
  162. package/dist/components/menu/CollapsibleMenu.js +39 -20
  163. package/dist/components/menu/MenuBars.js +81 -48
  164. package/dist/components/menu/MenuButton.js +95 -60
  165. package/dist/components/menu/MenuItem.js +28 -9
  166. package/dist/components/menu/MenuLink.js +12 -10
  167. package/dist/components/menu/PopupMenu.js +16 -12
  168. package/dist/components/navbars/AuthNavbar.js +27 -18
  169. package/dist/components/navbars/HomeNavbar.js +243 -194
  170. package/dist/components/navbars/PortalNavbar.js +50 -26
  171. package/dist/components/signatures/AgilitySignaturePanel.js +96 -39
  172. package/dist/components/signatures/AlertItem.js +36 -13
  173. package/dist/components/signatures/Card.js +4 -4
  174. package/dist/components/signatures/DocumentContainer.js +141 -57
  175. package/dist/components/signatures/ImageSignatureInput.js +90 -59
  176. package/dist/components/signatures/MenuButton.js +53 -33
  177. package/dist/components/signatures/Prompt.js +26 -5
  178. package/dist/components/signatures/ResponsiveTable.js +302 -197
  179. package/dist/components/signatures/SearchView.js +77 -36
  180. package/dist/components/signatures/SignatorySearch.js +30 -10
  181. package/dist/components/signatures/SignatorySearchForm.js +35 -18
  182. package/dist/components/signatures/SignatureInput.js +56 -26
  183. package/dist/components/signatures/SignatureInputProps.js +107 -55
  184. package/dist/components/signatures/SignatureTemplateDesigner.js +340 -235
  185. package/dist/components/signatures/Toolbar.js +135 -94
  186. package/dist/components/signatures/ViewUtils.js +273 -224
  187. package/dist/components/typography/Danger.js +3 -5
  188. package/dist/components/typography/Info.js +3 -5
  189. package/dist/components/typography/Link.js +3 -5
  190. package/dist/event/ActionHandlers.js +57 -43
  191. package/dist/event/Event.js +16 -13
  192. package/dist/event/EventListener.js +39 -36
  193. package/dist/event/EventType.js +5 -1
  194. package/dist/event/LoadDataActionHandler.js +20 -8
  195. package/dist/event/Observable.js +323 -142
  196. package/dist/event/RouteActionHandler.js +139 -125
  197. package/dist/event/ScriptActionHandler.js +20 -8
  198. package/dist/event/ServiceCallActionHandler.js +51 -39
  199. package/dist/event/SignalGraphActionHandler.js +19 -7
  200. package/dist/js/Addresses.js +38 -24
  201. package/dist/js/Calendar.js +168 -161
  202. package/dist/js/DynamicLib.js +14 -11
  203. package/dist/js/Media.js +213 -120
  204. package/dist/js/Validators.js +6 -5
  205. package/dist/js/Windows.js +48 -47
  206. package/dist/redux/store/ConfigureStore.js +17 -9
  207. package/dist/redux/store/DashboardStore.js +110 -43
  208. package/dist/redux/store/History.js +1 -1
  209. package/dist/redux/store/SecurityStore.js +59 -20
  210. package/dist/security/TokenManager.js +44 -30
  211. package/dist/theme-default.js +1 -1
  212. package/dist/view/Dashboard.js +230 -137
  213. package/dist/view/PortalDashboard.js +5 -5
  214. package/dist/view/Settings.js +4 -2
  215. package/dist/view/Views.js +27 -14
  216. package/dist/view/security/ChangePasswordBasic.js +97 -40
  217. package/dist/view/security/ForgotPassword.js +59 -22
  218. package/dist/view/security/ForgotPasswordBasic.js +62 -21
  219. package/dist/view/security/Login.js +64 -24
  220. package/dist/view/security/LoginBasic.js +65 -26
  221. package/dist/view/security/LoginInteractionPortal.js +62 -25
  222. package/dist/view/security/ResetPassword.js +65 -23
  223. package/dist/view/security/ResetPasswordBasic.js +91 -37
  224. package/dist/view/security/Security.js +12 -12
  225. package/package.json +1 -2
  226. package/dist/components/dashboard/BusinessPortalAppDashboard.js +0 -154
  227. package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +0 -447
  228. /package/dist/components/dashboard/{BusinessPortalAppDashboard.css → TopMenuModuleDashboard.css} +0 -0
  229. /package/dist/components/dashboard/components/blackDashboard/sidebar/{Sidebar.css → FoldingTabSidebar.css} +0 -0
@@ -19,36 +19,51 @@ var _PopupView = _interopRequireDefault(require("../PopupView"));
19
19
 
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
21
 
22
- const ViewPort = () => {
23
- const navigate = (0, _reactRouterDom.useNavigate)();
22
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
24
23
 
25
- const [loading, setLoading] = _react.default.useState(true);
24
+ 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."); }
26
25
 
27
- const confirmationDialogController = _react.default.useRef({});
26
+ 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); }
28
27
 
29
- const popupViewController = _react.default.useRef({});
28
+ 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; }
30
29
 
31
- const openPopupView = view => {
30
+ 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; }
31
+
32
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33
+
34
+ var ViewPort = function ViewPort() {
35
+ var navigate = (0, _reactRouterDom.useNavigate)();
36
+
37
+ var _React$useState = _react.default.useState(true),
38
+ _React$useState2 = _slicedToArray(_React$useState, 2),
39
+ loading = _React$useState2[0],
40
+ setLoading = _React$useState2[1];
41
+
42
+ var confirmationDialogController = _react.default.useRef({});
43
+
44
+ var popupViewController = _react.default.useRef({});
45
+
46
+ var openPopupView = function openPopupView(view) {
32
47
  popupViewController.current.open(view);
33
48
  };
34
49
 
35
- const closePopupView = () => {
50
+ var closePopupView = function closePopupView() {
36
51
  popupViewController.current.close();
37
52
  };
38
53
 
39
- _react.default.useEffect(() => {
54
+ _react.default.useEffect(function () {
40
55
  if (loading) {
41
56
  setLoading(false);
42
57
  }
43
58
  });
44
59
 
45
- _react.default.useEffect(() => {
60
+ _react.default.useEffect(function () {
46
61
  if (!loading) {
47
62
  navigate("/view/dashboard");
48
63
  }
49
64
  }, [loading]);
50
65
 
51
- _react.default.useEffect(() => {
66
+ _react.default.useEffect(function () {
52
67
  confirmationDialogController.current.openPopupView = openPopupView;
53
68
  confirmationDialogController.current.closePopupView = closePopupView; //applicationManager.setViewPortHistory(props.history);
54
69
 
@@ -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
  });
@@ -25,18 +27,32 @@ var _ApplicationManager = _interopRequireDefault(require("../../ApplicationManag
25
27
 
26
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
29
 
28
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
30
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
31
+
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
+
34
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
35
+
36
+ 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
37
 
30
- 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; }
38
+ 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); }
39
+
40
+ 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; }
41
+
42
+ 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; }
43
+
44
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
45
 
32
46
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
33
47
 
34
- const minimizeWidth = '848';
35
- const StyledDialog = (0, _withStyles.default)({
48
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
49
+
50
+ var minimizeWidth = '848';
51
+ var StyledDialog = (0, _withStyles.default)({
36
52
  root: {
37
53
  pointerEvents: 'none'
38
54
  },
39
- paper: {
55
+ paper: _defineProperty({
40
56
  pointerEvents: 'auto',
41
57
  width: 'calc(100% - 344px)',
42
58
  maxWidth: '100%',
@@ -46,24 +62,28 @@ const StyledDialog = (0, _withStyles.default)({
46
62
  bottom: 0,
47
63
  right: 0,
48
64
  overflow: 'hidden',
49
- borderRadius: 4,
50
- ['@media (max-width:991px)']: {
51
- maxWidth: '100%'
52
- }
53
- }
54
- })(props => /*#__PURE__*/_react.default.createElement(_Dialog.default, _extends({
55
- hideBackdrop: true
56
- }, props)));
65
+ borderRadius: 4
66
+ }, '@media (max-width:991px)', {
67
+ maxWidth: '100%'
68
+ })
69
+ })(function (props) {
70
+ return /*#__PURE__*/_react.default.createElement(_Dialog.default, _extends({
71
+ hideBackdrop: true
72
+ }, props));
73
+ });
57
74
 
58
- const PaperComponent = props => {
59
- const [bounds, setBounds] = (0, _react.useState)({
75
+ var PaperComponent = function PaperComponent(props) {
76
+ var _useState = (0, _react.useState)({
60
77
  left: 0,
61
78
  right: 0,
62
79
  top: 0,
63
80
  bottom: 0
64
- });
81
+ }),
82
+ _useState2 = _slicedToArray(_useState, 2),
83
+ bounds = _useState2[0],
84
+ setBounds = _useState2[1];
65
85
 
66
- const handleStart = (e, data) => {
86
+ var handleStart = function handleStart(e, data) {
67
87
  console.log("DRAG START");
68
88
 
69
89
  if (!data) {
@@ -71,8 +91,8 @@ const PaperComponent = props => {
71
91
  } //const x = data.node.offsetLeft - data.node.offsetWidth;
72
92
 
73
93
 
74
- const top = -data.node.offsetTop + 64;
75
- const bottom = window.innerHeight - (data.node.offsetTop + 64);
94
+ var top = -data.node.offsetTop + 64;
95
+ var bottom = window.innerHeight - (data.node.offsetTop + 64);
76
96
  setBounds({
77
97
  left: 0,
78
98
  right: 0,
@@ -90,15 +110,22 @@ const PaperComponent = props => {
90
110
  }, /*#__PURE__*/_react.default.createElement(_Paper.default, props));
91
111
  };
92
112
 
93
- const Window = props => {
94
- const {
95
- children,
96
- open,
97
- minimizable
98
- } = props;
99
- const [displayState, setDisplayState] = (0, _react.useState)(props.displayState);
100
- const [windowTransformValue, setWindowTransformValue] = (0, _react.useState)(null);
101
- (0, _react.useEffect)(() => {
113
+ var Window = function Window(props) {
114
+ var children = props.children,
115
+ open = props.open,
116
+ minimizable = props.minimizable;
117
+
118
+ var _useState3 = (0, _react.useState)(props.displayState),
119
+ _useState4 = _slicedToArray(_useState3, 2),
120
+ displayState = _useState4[0],
121
+ setDisplayState = _useState4[1];
122
+
123
+ var _useState5 = (0, _react.useState)(null),
124
+ _useState6 = _slicedToArray(_useState5, 2),
125
+ windowTransformValue = _useState6[0],
126
+ setWindowTransformValue = _useState6[1];
127
+
128
+ (0, _react.useEffect)(function () {
102
129
  if (props.displayState) {
103
130
  setDisplayState(props.displayState);
104
131
 
@@ -107,15 +134,17 @@ const Window = props => {
107
134
  });
108
135
  }
109
136
  }, [props.displayState]);
110
- (0, _react.useEffect)(() => {
137
+ (0, _react.useEffect)(function () {
111
138
  _ApplicationManager.default.addApplicationContextSubscription({
112
139
  handler: {
113
140
  get id() {
114
141
  return 'window';
115
142
  },
116
143
 
117
- onContextChange: (context, newValues) => {
118
- if (Object.keys(newValues).find(key => key === 'windowDisplayState')) {
144
+ onContextChange: function onContextChange(context, newValues) {
145
+ if (Object.keys(newValues).find(function (key) {
146
+ return key === 'windowDisplayState';
147
+ })) {
119
148
  console.log('MIN : ' + newValues.windowDisplayState);
120
149
 
121
150
  if (newValues.windowDisplayState === 'MAXIMIZED') {
@@ -128,13 +157,13 @@ const Window = props => {
128
157
  }
129
158
  }
130
159
  }
131
- }).then(initialContext => {
160
+ }).then(function (initialContext) {
132
161
  setDisplayState(initialContext ? initialContext.windowDisplayState : 'MAXIMIZED');
133
162
  });
134
163
 
135
- return () => {};
164
+ return function () {};
136
165
  }, []);
137
- (0, _react.useEffect)(() => {
166
+ (0, _react.useEffect)(function () {
138
167
  if (displayState === 'MAXIMIZED') {
139
168
  maximizeView(null);
140
169
  } else if (displayState === 'MINIMIZED') {
@@ -144,7 +173,7 @@ const Window = props => {
144
173
  }
145
174
  }, [displayState]);
146
175
 
147
- const getMinimizedStyle = () => {
176
+ var getMinimizedStyle = function getMinimizedStyle() {
148
177
  return {
149
178
  transform: 'translate(0, 0)',
150
179
  backgroundColor: '#FFFFFF',
@@ -154,7 +183,7 @@ const Window = props => {
154
183
  };
155
184
  };
156
185
 
157
- const getMaximizedStyle = () => {
186
+ var getMaximizedStyle = function getMaximizedStyle() {
158
187
  return {
159
188
  transform: 'translate(0, 0)',
160
189
  backgroundColor: '#FFFFFF',
@@ -164,7 +193,7 @@ const Window = props => {
164
193
  };
165
194
  };
166
195
 
167
- const getPinnedStyle = () => {
196
+ var getPinnedStyle = function getPinnedStyle() {
168
197
  return {
169
198
  transform: 'translate(0, 0)',
170
199
  backgroundColor: '#FFFFFF',
@@ -174,9 +203,11 @@ const Window = props => {
174
203
  };
175
204
  };
176
205
 
177
- const pinView = (e, updateContext = true) => {
206
+ var pinView = function pinView(e) {
207
+ var updateContext = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
208
+
178
209
  if (props.pinnable) {
179
- let paper = document.getElementById('meetingDialogPaper');
210
+ var paper = document.getElementById('meetingDialogPaper');
180
211
 
181
212
  if (paper) {
182
213
  if (windowTransformValue) {
@@ -186,7 +217,7 @@ const Window = props => {
186
217
  paper.style.width = '320px';
187
218
  paper.style.height = 'calc(100% - 88px)';
188
219
  paper.style.boxShadow = 'unset';
189
- let header = document.getElementsByClassName('dialogHeader')[0];
220
+ var header = document.getElementsByClassName('dialogHeader')[0];
190
221
  header.getElementsByTagName('button')[0].style.color = '#000000';
191
222
  setDisplayState('PINNED');
192
223
 
@@ -201,9 +232,11 @@ const Window = props => {
201
232
  }
202
233
  };
203
234
 
204
- const minimizeView = (e, updateContext = true) => {
235
+ var minimizeView = function minimizeView(e) {
236
+ var updateContext = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
237
+
205
238
  if (minimizable) {
206
- let paper = document.getElementById('meetingDialogPaper');
239
+ var paper = document.getElementById('meetingDialogPaper');
207
240
 
208
241
  if (paper) {
209
242
  if (windowTransformValue) {
@@ -213,7 +246,7 @@ const Window = props => {
213
246
  paper.style.width = minimizeWidth + 'px';
214
247
  paper.style.height = '500px';
215
248
  paper.style.margin = '0 16px 16px 16px';
216
- let header = document.getElementsByClassName('dialogHeader')[0];
249
+ var header = document.getElementsByClassName('dialogHeader')[0];
217
250
  header.getElementsByTagName('button')[0].style.color = '#000000';
218
251
  document.getElementById('meeting-window-header').style.cursor = 'move';
219
252
  setDisplayState('MINIMIZED');
@@ -228,23 +261,24 @@ const Window = props => {
228
261
  };
229
262
 
230
263
  function getLeftOffset() {
231
- let sidebarWidth = parseInt(document.getElementsByClassName('sidebar')[0].style.width.replace('px', ''));
264
+ var sidebarWidth = parseInt(document.getElementsByClassName('sidebar')[0].style.width.replace('px', ''));
232
265
  return sidebarWidth + (sidebarWidth === 0 ? 16 : 36);
233
266
  }
234
267
 
235
- const maximizeView = (e, updateContext = true) => {
236
- let paper = document.getElementById('meetingDialogPaper');
268
+ var maximizeView = function maximizeView(e) {
269
+ var updateContext = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
270
+ var paper = document.getElementById('meetingDialogPaper');
237
271
 
238
272
  if (paper) {
239
- let sidebar = document.getElementsByClassName('sidebar')[0];
240
- let sidebarTransform = window.getComputedStyle(sidebar, null).transform;
273
+ var sidebar = document.getElementsByClassName('sidebar')[0];
274
+ var sidebarTransform = window.getComputedStyle(sidebar, null).transform;
241
275
  setWindowTransformValue(paper.style.transform);
242
276
  paper.style.transform = 'translate(0, 0)';
243
277
  paper.style.backgroundColor = '#FFFFFF';
244
278
  paper.style.width = 'calc(100% - ' + getLeftOffset() + 'px)';
245
279
  paper.style.height = 'calc(100% - 88px)';
246
280
  paper.style.margin = '8px';
247
- let header = document.getElementsByClassName('dialogHeader')[0];
281
+ var header = document.getElementsByClassName('dialogHeader')[0];
248
282
  header.getElementsByTagName('button')[0].style.color = 'rgba(0, 0, 0, 0.54)';
249
283
  document.getElementById('meeting-window-header').style.cursor = 'default';
250
284
  setDisplayState('MAXIMIZED');
@@ -270,7 +304,7 @@ const Window = props => {
270
304
  }, /*#__PURE__*/_react.default.createElement(StyledDialog, {
271
305
  disableEnforceFocus: true,
272
306
  open: open,
273
- onClose: e => {
307
+ onClose: function onClose(e) {
274
308
  props.onClose();
275
309
  },
276
310
  keepMounted: true,
@@ -302,7 +336,7 @@ const Window = props => {
302
336
  }, /*#__PURE__*/_react.default.createElement("div", {
303
337
  className: 'dialogHeader row'
304
338
  }, minimizable && /*#__PURE__*/_react.default.createElement("div", null, displayState === 'MAXIMIZED' ? /*#__PURE__*/_react.default.createElement(_IconButton.default, {
305
- onClick: e => {
339
+ onClick: function onClick(e) {
306
340
  minimizeView(e);
307
341
  },
308
342
  style: {
@@ -311,7 +345,7 @@ const Window = props => {
311
345
  }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
312
346
  id: 'MINIMIZE'
313
347
  })) : /*#__PURE__*/_react.default.createElement(_IconButton.default, {
314
- onClick: e => {
348
+ onClick: function onClick(e) {
315
349
  maximizeView(e);
316
350
  },
317
351
  style: {
@@ -320,7 +354,7 @@ const Window = props => {
320
354
  }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
321
355
  id: 'MAXIMIZE'
322
356
  }))), props.pinnable && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
323
- onClick: e => {
357
+ onClick: function onClick(e) {
324
358
  props.onPin();
325
359
  },
326
360
  style: {
@@ -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
  });
@@ -23,18 +25,38 @@ var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton")
23
25
 
24
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
27
 
26
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
28
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
29
+
30
+ 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; }
31
+
32
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
33
+
34
+ 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."); }
35
+
36
+ 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); }
37
+
38
+ 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; }
39
+
40
+ 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; }
27
41
 
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; }
42
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
29
43
 
30
- const WindowViewContainer = props => {
31
- const [view, setView] = _react.default.useState(null);
44
+ var WindowViewContainer = function WindowViewContainer(props) {
45
+ var _React$useState = _react.default.useState(null),
46
+ _React$useState2 = _slicedToArray(_React$useState, 2),
47
+ view = _React$useState2[0],
48
+ setView = _React$useState2[1];
32
49
 
33
- const [pinned, setPinned] = _react.default.useState(false);
50
+ var _React$useState3 = _react.default.useState(false),
51
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
52
+ pinned = _React$useState4[0],
53
+ setPinned = _React$useState4[1];
34
54
 
35
55
  function loadView(context) {
36
56
  if (context) {
37
- if (Object.keys(context).find(key => key === 'windowView')) {
57
+ if (Object.keys(context).find(function (key) {
58
+ return key === 'windowView';
59
+ })) {
38
60
  setView(null);
39
61
  setView(context.windowView);
40
62
  setPinned(false);
@@ -42,54 +64,54 @@ const WindowViewContainer = props => {
42
64
  }
43
65
  }
44
66
 
45
- _react.default.useEffect(() => {
67
+ _react.default.useEffect(function () {
46
68
  _ApplicationManager.default.addApplicationContextSubscription({
47
69
  handler: {
48
70
  get id() {
49
71
  return 'window-view-port';
50
72
  },
51
73
 
52
- onContextChange: (context, newValues) => {
74
+ onContextChange: function onContextChange(context, newValues) {
53
75
  loadView(newValues);
54
76
  }
55
77
  }
56
- }).then(initialContext => {
78
+ }).then(function (initialContext) {
57
79
  loadView(initialContext);
58
80
  });
59
81
  }, []);
60
82
 
61
- _react.default.useEffect(() => {
83
+ _react.default.useEffect(function () {
62
84
  props.stateChangeHandler({
63
- pinned
85
+ pinned: pinned
64
86
  });
65
87
  }, [pinned]);
66
88
 
67
- const renderView = () => {
89
+ var renderView = function renderView() {
68
90
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, view && /*#__PURE__*/_react.default.createElement(_Window.default, {
69
91
  pinnable: true,
70
92
  minimizable: false,
71
93
  open: true,
72
94
  displayState: 'MAXIMIZED',
73
- onPinned: () => {
95
+ onPinned: function onPinned() {
74
96
  if (!pinned) {
75
97
  setPinned(true);
76
98
  }
77
99
  },
78
- onPin: () => {
100
+ onPin: function onPin() {
79
101
  _ApplicationManager.default.updateContext({
80
102
  windowDisplayState: pinned ? 'MAXIMIZED' : 'PINNED'
81
103
  });
82
104
 
83
105
  setPinned(!pinned);
84
106
  },
85
- onClose: () => {}
107
+ onClose: function onClose() {}
86
108
  }, /*#__PURE__*/_react.default.createElement(_View.View, {
87
109
  config: view.config,
88
110
  parameters: view.parameters,
89
111
  ref: /*#__PURE__*/_react.default.createRef(),
90
112
  handle: view.handle
91
113
  })), view && pinned && /*#__PURE__*/_react.default.createElement(_IconButton.default, {
92
- onClick: e => {
114
+ onClick: function onClick(e) {
93
115
  _ApplicationManager.default.updateContext({
94
116
  windowDisplayState: 'MAXIMIZED'
95
117
  });
@@ -17,12 +17,10 @@ var _Icon = _interopRequireDefault(require("../Icon"));
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
- const ClosablePanel = props => {
21
- const params = (0, _reactRouterDom.useParams)();
22
- const location = (0, _reactRouterDom.useLocation)();
23
- const {
24
- children
25
- } = props;
20
+ var ClosablePanel = function ClosablePanel(props) {
21
+ var params = (0, _reactRouterDom.useParams)();
22
+ var location = (0, _reactRouterDom.useLocation)();
23
+ var children = props.children;
26
24
  return /*#__PURE__*/_react.default.createElement("div", {
27
25
  style: {
28
26
  width: '100%'
@@ -40,7 +38,9 @@ const ClosablePanel = props => {
40
38
  style: {
41
39
  marginRight: '4px'
42
40
  },
43
- onClick: e => props.closeHandler(e)
41
+ onClick: function onClick(e) {
42
+ return props.closeHandler(e);
43
+ }
44
44
  }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
45
45
  id: 'CLOSE',
46
46
  color: '#404239'
@@ -16,13 +16,11 @@ var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton")
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
18
18
  /* eslint-disable react-hooks/exhaustive-deps */
19
- const HOST_WAITING_MESSAGE = 'Waiting for others to join';
20
- const ATTENDEE_WAITING_MESSAGE = 'Waiting for the meeting host to let you in';
19
+ var HOST_WAITING_MESSAGE = 'Waiting for others to join';
20
+ var ATTENDEE_WAITING_MESSAGE = 'Waiting for the meeting host to let you in';
21
21
 
22
- const LobbyWaitingList = props => {
23
- const {
24
- waitingList
25
- } = props;
22
+ var LobbyWaitingList = function LobbyWaitingList(props) {
23
+ var waitingList = props.waitingList;
26
24
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, waitingList && waitingList.length > 0 && /*#__PURE__*/_react.default.createElement("div", {
27
25
  style: {
28
26
  width: '320px',
@@ -42,7 +40,7 @@ const LobbyWaitingList = props => {
42
40
  fontSize: '16px',
43
41
  margin: '16px'
44
42
  }
45
- }, waitingList.map((item, index) => {
43
+ }, waitingList.map(function (item, index) {
46
44
  return /*#__PURE__*/_react.default.createElement("div", {
47
45
  key: index
48
46
  }, /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement("div", {
@@ -62,7 +60,7 @@ const LobbyWaitingList = props => {
62
60
  },
63
61
  className: 'col-*-*'
64
62
  }, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
65
- onClick: e => {
63
+ onClick: function onClick(e) {
66
64
  props.acceptUserHandler(item);
67
65
  },
68
66
  style: {
@@ -74,7 +72,7 @@ const LobbyWaitingList = props => {
74
72
  }))), /*#__PURE__*/_react.default.createElement("div", {
75
73
  className: 'col-*-*'
76
74
  }, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
77
- onClick: e => {
75
+ onClick: function onClick(e) {
78
76
  props.rejectUserHandler(item);
79
77
  },
80
78
  style: {