@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.
Files changed (228) 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 +57 -22
  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.js +124 -48
  50. package/dist/components/DocumentTemplatePlaceholderDialog.js +52 -30
  51. package/dist/components/DocumentViewer.js +34 -18
  52. package/dist/components/DocumentViewerComponent.js +26 -9
  53. package/dist/components/ElementResizeHandler.js +229 -207
  54. package/dist/components/FileThumb.js +32 -10
  55. package/dist/components/Graph.js +153 -85
  56. package/dist/components/GraphNode.js +58 -38
  57. package/dist/components/HtmlPanel.js +67 -39
  58. package/dist/components/Icon.js +206 -166
  59. package/dist/components/LoadingIndicator.js +3 -3
  60. package/dist/components/LottieIcon.js +1 -1
  61. package/dist/components/PopupView.js +39 -19
  62. package/dist/components/Portlet.js +32 -17
  63. package/dist/components/RegularButton.js +28 -32
  64. package/dist/components/SignaturePanel.js +37 -17
  65. package/dist/components/SocketManager.js +178 -119
  66. package/dist/components/StepperTitleBar.js +62 -42
  67. package/dist/components/TabPage.js +30 -25
  68. package/dist/components/TabPanel.js +86 -33
  69. package/dist/components/TableCellContent.js +51 -32
  70. package/dist/components/TemplateDesigner.js +173 -121
  71. package/dist/components/TemplateItemEventHandler.js +335 -221
  72. package/dist/components/TemplateTable.js +183 -118
  73. package/dist/components/TitleBar.js +26 -11
  74. package/dist/components/Toolbar.js +67 -38
  75. package/dist/components/Tooltip.js +43 -35
  76. package/dist/components/Tree.js +85 -44
  77. package/dist/components/UseIsVisible.js +25 -4
  78. package/dist/components/card/Card.js +27 -33
  79. package/dist/components/card/CardAvatar.js +20 -19
  80. package/dist/components/card/CardBody.js +24 -27
  81. package/dist/components/card/CardFooter.js +23 -24
  82. package/dist/components/card/CardHeader.js +24 -27
  83. package/dist/components/card/CardIcon.js +17 -13
  84. package/dist/components/card/CardText.js +17 -13
  85. package/dist/components/customInput/CustomInput.js +22 -36
  86. package/dist/components/dashboard/{BasicBusinessAppDashboard.js → FoldingSideTabDashboard.js} +111 -63
  87. package/dist/components/dashboard/SideMenuModuleDashboard.css +60 -0
  88. package/dist/components/dashboard/SideMenuModuleDashboard.js +423 -0
  89. package/dist/components/dashboard/TopMenuModuleDashboard.js +138 -0
  90. package/dist/components/dashboard/components/Header.js +29 -12
  91. package/dist/components/dashboard/components/LeftDrawer.js +3 -5
  92. package/dist/components/dashboard/components/UserIdentity.js +2 -2
  93. package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +131 -87
  94. package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +488 -0
  95. package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenu.js +64 -0
  96. package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.css +65 -0
  97. package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +556 -0
  98. package/dist/components/dashboard/components/portal/Timeline.js +1 -1
  99. package/dist/components/dashboard/components/portal/Workspace.js +5 -11
  100. package/dist/components/footer/Footer.js +31 -24
  101. package/dist/components/footer/HomeFooter.js +68 -34
  102. package/dist/components/form/AddressSearch.js +78 -42
  103. package/dist/components/form/AutoComplete.js +136 -55
  104. package/dist/components/form/BaseField.js +108 -56
  105. package/dist/components/form/Checkbox.js +10 -8
  106. package/dist/components/form/DatePicker.js +47 -25
  107. package/dist/components/form/FieldSet.js +217 -84
  108. package/dist/components/form/Form.js +334 -200
  109. package/dist/components/form/GridField.js +185 -82
  110. package/dist/components/form/IconField.js +9 -7
  111. package/dist/components/form/ImageEditor.js +141 -92
  112. package/dist/components/form/LabelField.js +12 -10
  113. package/dist/components/form/LookupField.js +54 -32
  114. package/dist/components/form/MultiFileUploadField.js +101 -67
  115. package/dist/components/form/RadioGroup.js +33 -16
  116. package/dist/components/form/Section.js +84 -34
  117. package/dist/components/form/SelectItem.js +55 -33
  118. package/dist/components/form/SignatureTemplateDesignerField.js +11 -9
  119. package/dist/components/form/Switch.js +10 -8
  120. package/dist/components/form/TextField.js +34 -16
  121. package/dist/components/form/TimePicker.js +19 -15
  122. package/dist/components/form/TransferList.js +153 -75
  123. package/dist/components/form/UploadField.js +183 -128
  124. package/dist/components/grid/GridContainer.js +12 -8
  125. package/dist/components/grid/GridItem.js +12 -8
  126. package/dist/components/layout/CollapsiblePanel.js +44 -18
  127. package/dist/components/layout/Layout.js +81 -40
  128. package/dist/components/layout/VC.css +1 -1
  129. package/dist/components/layout/View.js +136 -62
  130. package/dist/components/layout/ViewContainer.js +13 -11
  131. package/dist/components/layout/ViewPort.js +25 -10
  132. package/dist/components/layout/Window.js +87 -53
  133. package/dist/components/layout/WindowViewPort.js +38 -16
  134. package/dist/components/media/ClosablePanel.js +7 -7
  135. package/dist/components/media/LobbyWaitingList.js +7 -9
  136. package/dist/components/media/MediaSoupHelper.js +379 -187
  137. package/dist/components/media/SideBarContent.js +22 -14
  138. package/dist/components/media/SocketRequest.js +5 -1
  139. package/dist/components/media/SocketResponse.js +5 -1
  140. package/dist/components/media/Timer.js +35 -15
  141. package/dist/components/media/Toolbar.css +5 -0
  142. package/dist/components/media/Toolbar.js +220 -102
  143. package/dist/components/media/ToolbarButton.js +82 -33
  144. package/dist/components/media/Toolbar_bck.js +142 -70
  145. package/dist/components/media/Tracks.js +31 -28
  146. package/dist/components/media/TrainingRoom.js +284 -121
  147. package/dist/components/media/Transports.js +27 -24
  148. package/dist/components/media/VCEventManager.js +95 -31
  149. package/dist/components/media/VCEventType.js +5 -1
  150. package/dist/components/media/VCParticipantList.js +40 -14
  151. package/dist/components/media/VCParticipantListItem.js +92 -41
  152. package/dist/components/media/VCRoom.js +29 -11
  153. package/dist/components/media/VCRoomParticipant.js +488 -242
  154. package/dist/components/media/VCRoomRecorder.js +236 -175
  155. package/dist/components/media/VCRoomWorkspace.js +505 -245
  156. package/dist/components/media/Video.js +89 -25
  157. package/dist/components/media/VideoPlayer.js +56 -22
  158. package/dist/components/media/chat/ChatRoom.js +255 -132
  159. package/dist/components/media/chat/ChatRoomItem.js +35 -14
  160. package/dist/components/media/chat/ChatRoomList.js +43 -13
  161. package/dist/components/menu/CollapsibleMenu.js +39 -20
  162. package/dist/components/menu/MenuBars.js +81 -48
  163. package/dist/components/menu/MenuButton.js +95 -60
  164. package/dist/components/menu/MenuItem.js +28 -9
  165. package/dist/components/menu/MenuLink.js +12 -10
  166. package/dist/components/menu/PopupMenu.js +16 -12
  167. package/dist/components/navbars/AuthNavbar.js +27 -18
  168. package/dist/components/navbars/HomeNavbar.js +243 -194
  169. package/dist/components/navbars/PortalNavbar.js +50 -26
  170. package/dist/components/signatures/AgilitySignaturePanel.js +96 -39
  171. package/dist/components/signatures/AlertItem.js +36 -13
  172. package/dist/components/signatures/Card.js +4 -4
  173. package/dist/components/signatures/DocumentContainer.js +141 -57
  174. package/dist/components/signatures/ImageSignatureInput.js +90 -59
  175. package/dist/components/signatures/MenuButton.js +53 -33
  176. package/dist/components/signatures/Prompt.js +26 -5
  177. package/dist/components/signatures/ResponsiveTable.js +302 -197
  178. package/dist/components/signatures/SearchView.js +77 -36
  179. package/dist/components/signatures/SignatorySearch.js +30 -10
  180. package/dist/components/signatures/SignatorySearchForm.js +35 -18
  181. package/dist/components/signatures/SignatureInput.js +56 -26
  182. package/dist/components/signatures/SignatureInputProps.js +107 -55
  183. package/dist/components/signatures/SignatureTemplateDesigner.js +340 -235
  184. package/dist/components/signatures/Toolbar.js +135 -94
  185. package/dist/components/signatures/ViewUtils.js +273 -224
  186. package/dist/components/typography/Danger.js +3 -5
  187. package/dist/components/typography/Info.js +3 -5
  188. package/dist/components/typography/Link.js +3 -5
  189. package/dist/event/ActionHandlers.js +57 -43
  190. package/dist/event/Event.js +16 -13
  191. package/dist/event/EventListener.js +39 -36
  192. package/dist/event/EventType.js +5 -1
  193. package/dist/event/LoadDataActionHandler.js +20 -8
  194. package/dist/event/Observable.js +323 -142
  195. package/dist/event/RouteActionHandler.js +139 -125
  196. package/dist/event/ScriptActionHandler.js +20 -8
  197. package/dist/event/ServiceCallActionHandler.js +51 -39
  198. package/dist/event/SignalGraphActionHandler.js +19 -7
  199. package/dist/js/Addresses.js +38 -24
  200. package/dist/js/Calendar.js +168 -161
  201. package/dist/js/DynamicLib.js +14 -11
  202. package/dist/js/Media.js +213 -120
  203. package/dist/js/Validators.js +6 -5
  204. package/dist/js/Windows.js +48 -47
  205. package/dist/redux/store/ConfigureStore.js +17 -9
  206. package/dist/redux/store/DashboardStore.js +110 -43
  207. package/dist/redux/store/History.js +1 -1
  208. package/dist/redux/store/SecurityStore.js +59 -20
  209. package/dist/security/TokenManager.js +44 -30
  210. package/dist/theme-default.js +1 -1
  211. package/dist/view/Dashboard.js +230 -137
  212. package/dist/view/PortalDashboard.js +4 -4
  213. package/dist/view/Settings.js +4 -2
  214. package/dist/view/Views.js +27 -14
  215. package/dist/view/security/ChangePasswordBasic.js +97 -40
  216. package/dist/view/security/ForgotPassword.js +59 -22
  217. package/dist/view/security/ForgotPasswordBasic.js +62 -21
  218. package/dist/view/security/Login.js +64 -24
  219. package/dist/view/security/LoginBasic.js +65 -26
  220. package/dist/view/security/LoginInteractionPortal.js +62 -25
  221. package/dist/view/security/ResetPassword.js +65 -23
  222. package/dist/view/security/ResetPasswordBasic.js +91 -37
  223. package/dist/view/security/Security.js +12 -12
  224. package/package.json +2 -3
  225. package/dist/components/dashboard/BusinessPortalAppDashboard.js +0 -115
  226. package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +0 -447
  227. /package/dist/components/dashboard/{BusinessPortalAppDashboard.css → TopMenuModuleDashboard.css} +0 -0
  228. /package/dist/components/dashboard/components/blackDashboard/sidebar/{Sidebar.css → FoldingTabSidebar.css} +0 -0
@@ -5,47 +5,75 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ 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(_e) { throw _e; }, 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(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
9
+
10
+ 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); }
11
+
12
+ 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; }
13
+
14
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
+
16
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
17
+
18
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
19
+
8
20
  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; }
9
21
 
10
- const boundCheck = (pos, mousePos) => {
22
+ var boundCheck = function boundCheck(pos, mousePos) {
11
23
  return pos - 8 < mousePos && pos + 8 > mousePos;
12
24
  };
13
25
 
14
- const parse = val => {
26
+ var parse = function parse(val) {
15
27
  return parseFloat(val.replace('px', ''));
16
28
  };
17
29
 
18
- const DEFAULT_COL_WIDTH = 32;
30
+ var DEFAULT_COL_WIDTH = 32;
19
31
 
20
- class TemplateTable {
21
- constructor(config, parent) {
22
- _defineProperty(this, "handleMouseMove", event => {
23
- if (this.currentResizeCol && this.mouseDown) {}
32
+ var TemplateTable = /*#__PURE__*/function () {
33
+ function TemplateTable(config, parent) {
34
+ var _this2 = this;
35
+
36
+ _classCallCheck(this, TemplateTable);
37
+
38
+ _defineProperty(this, "handleMouseMove", function (event) {
39
+ if (_this2.currentResizeCol && _this2.mouseDown) {}
24
40
  });
25
41
 
26
- _defineProperty(this, "getElementWidth", el => {
42
+ _defineProperty(this, "getElementWidth", function (el) {
27
43
  return el ? parseFloat(el.style.width.replace("px", "")) : null;
28
44
  });
29
45
 
30
- _defineProperty(this, "build", (colResizeHandler, parentSelectionChecker) => {
31
- let tableConfig = this.config;
32
- let tableHeight = tableConfig.defaultRowHeight * tableConfig.defaultNumRows;
33
- let tableWidth = 0;
46
+ _defineProperty(this, "build", function (colResizeHandler, parentSelectionChecker) {
47
+ var tableConfig = _this2.config;
48
+ var tableHeight = tableConfig.defaultRowHeight * tableConfig.defaultNumRows;
49
+ var tableWidth = 0;
50
+
51
+ var _iterator = _createForOfIteratorHelper(tableConfig.columns),
52
+ _step;
34
53
 
35
- for (const column of tableConfig.columns) {
36
- tableWidth += column.defaultWidth;
54
+ try {
55
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
56
+ var column = _step.value;
57
+ tableWidth += column.defaultWidth;
58
+ }
59
+ } catch (err) {
60
+ _iterator.e(err);
61
+ } finally {
62
+ _iterator.f();
37
63
  }
38
64
 
39
- let table = document.createElement("div");
65
+ var table = document.createElement("div");
40
66
  table['data-num-cols'] = tableConfig.columns.length;
41
67
  table.className = '_item_table';
42
68
  table.style.border = '1px solid #aaa';
43
69
  table.style.width = tableWidth + 'px';
44
70
  table.style.height = tableHeight + 'px';
45
- let sortedCols = tableConfig.columns.sort((a, b) => a.id - b.id);
71
+ var sortedCols = tableConfig.columns.sort(function (a, b) {
72
+ return a.id - b.id;
73
+ });
46
74
 
47
- for (let i = 0; i < tableConfig.defaultNumRows; i++) {
48
- table.appendChild(this.createRow(tableConfig, sortedCols, tableWidth, i, colResizeHandler, parentSelectionChecker));
75
+ for (var i = 0; i < tableConfig.defaultNumRows; i++) {
76
+ table.appendChild(_this2.createRow(tableConfig, sortedCols, tableWidth, i, colResizeHandler, parentSelectionChecker));
49
77
  }
50
78
 
51
79
  return table;
@@ -54,10 +82,12 @@ class TemplateTable {
54
82
  this.config = config;
55
83
  this.parent = parent;
56
84
 
57
- const _this = this;
85
+ var _this = this;
58
86
 
59
87
  document.addEventListener("mousemove", this.handleMouseMove);
60
- document.addEventListener("mousedown", e => this.mouseDown = true);
88
+ document.addEventListener("mousedown", function (e) {
89
+ return _this2.mouseDown = true;
90
+ });
61
91
  document.addEventListener('mouseup', function (e) {
62
92
  _this.currentClientX = null;
63
93
  _this.curResizeColWidth = null;
@@ -68,119 +98,154 @@ class TemplateTable {
68
98
  });
69
99
  }
70
100
 
71
- addColMouseMoveEvent(col, colResizeHandler, parentSelectionChecker, first, last) {
72
- col.addEventListener("mousemove", e => {
73
- const _this = this;
74
-
75
- let parentOffset = this.parent.offsetLeft + this.parent.parentElement.offsetLeft;
76
-
77
- if (boundCheck(parentOffset + e.target.offsetLeft + parse(e.target.style.width), e.clientX)) {
78
- if (parentSelectionChecker(this.parent)) {
79
- e.target.style.cursor = 'ew-resize';
80
- this.currentResizeCol = e.target;
81
- colResizeHandler(true, last || first);
82
- }
83
- } else {
84
- if (!this.mouseDown) {
85
- e.target.style.cursor = 'default';
86
- this.currentResizeCol = null;
87
- colResizeHandler(false, last || first);
88
- }
89
- } //console.log(this.currentResizeCol + " : " + this.mouseDown + " : " + this.currentClientX + " : " + this.curResizeNxtColWidth);
90
-
91
-
92
- if (this.currentResizeCol && this.mouseDown && this.currentClientX && this.curResizeNxtColWidth) {
93
- let diffX = e.clientX - _this.currentClientX;
94
- let width = _this.curResizeColWidth + diffX;
95
- let nextWidth = _this.curResizeNxtColWidth - diffX;
96
- let index = this.currentResizeCol['data-index'];
97
-
98
- if (width >= DEFAULT_COL_WIDTH && nextWidth >= DEFAULT_COL_WIDTH) {
99
- //console.log(width + " : " + nextWidth + " : " + DEFAULT_COL_WIDTH);
100
- this.resizeColumn(index, width);
101
- this.resizeColumn(index + 1, nextWidth);
101
+ _createClass(TemplateTable, [{
102
+ key: "addColMouseMoveEvent",
103
+ value: function addColMouseMoveEvent(col, colResizeHandler, parentSelectionChecker, first, last) {
104
+ var _this3 = this;
105
+
106
+ col.addEventListener("mousemove", function (e) {
107
+ var _this = _this3;
108
+ var parentOffset = _this3.parent.offsetLeft + _this3.parent.parentElement.offsetLeft;
109
+
110
+ if (boundCheck(parentOffset + e.target.offsetLeft + parse(e.target.style.width), e.clientX)) {
111
+ if (parentSelectionChecker(_this3.parent)) {
112
+ e.target.style.cursor = 'ew-resize';
113
+ _this3.currentResizeCol = e.target;
114
+ colResizeHandler(true, last || first);
115
+ }
116
+ } else {
117
+ if (!_this3.mouseDown) {
118
+ e.target.style.cursor = 'default';
119
+ _this3.currentResizeCol = null;
120
+ colResizeHandler(false, last || first);
121
+ }
122
+ } //console.log(this.currentResizeCol + " : " + this.mouseDown + " : " + this.currentClientX + " : " + this.curResizeNxtColWidth);
123
+
124
+
125
+ if (_this3.currentResizeCol && _this3.mouseDown && _this3.currentClientX && _this3.curResizeNxtColWidth) {
126
+ var diffX = e.clientX - _this.currentClientX;
127
+ var width = _this.curResizeColWidth + diffX;
128
+ var nextWidth = _this.curResizeNxtColWidth - diffX;
129
+ var index = _this3.currentResizeCol['data-index'];
130
+
131
+ if (width >= DEFAULT_COL_WIDTH && nextWidth >= DEFAULT_COL_WIDTH) {
132
+ //console.log(width + " : " + nextWidth + " : " + DEFAULT_COL_WIDTH);
133
+ _this3.resizeColumn(index, width);
134
+
135
+ _this3.resizeColumn(index + 1, nextWidth);
136
+ }
102
137
  }
103
- }
104
- });
105
- }
106
-
107
- resizeColumn(index, width) {
108
- let elements = this.currentResizeCol.parentElement.parentElement.getElementsByClassName("_item_table_col_".concat(index));
109
-
110
- if (elements && elements.length > 0) {
111
- for (const element of elements) {
112
- element.style.width = width + 'px';
113
- }
138
+ });
114
139
  }
115
- }
116
-
117
- setResizingBorderWidth(width) {
118
- if (this.currentResizeCol) {
119
- this.currentResizeCol.style.borderWidth = width;
120
- let index = this.currentResizeCol['data-index'];
121
- let elements = this.currentResizeCol.parentElement.parentElement.getElementsByClassName("_item_table_col_".concat(index));
140
+ }, {
141
+ key: "resizeColumn",
142
+ value: function resizeColumn(index, width) {
143
+ var elements = this.currentResizeCol.parentElement.parentElement.getElementsByClassName("_item_table_col_".concat(index));
122
144
 
123
145
  if (elements && elements.length > 0) {
124
- for (const element of elements) {
125
- element.style.borderWidth = width;
146
+ var _iterator2 = _createForOfIteratorHelper(elements),
147
+ _step2;
148
+
149
+ try {
150
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
151
+ var element = _step2.value;
152
+ element.style.width = width + 'px';
153
+ }
154
+ } catch (err) {
155
+ _iterator2.e(err);
156
+ } finally {
157
+ _iterator2.f();
126
158
  }
127
159
  }
128
160
  }
129
- }
161
+ }, {
162
+ key: "setResizingBorderWidth",
163
+ value: function setResizingBorderWidth(width) {
164
+ if (this.currentResizeCol) {
165
+ this.currentResizeCol.style.borderWidth = width;
166
+ var index = this.currentResizeCol['data-index'];
167
+ var elements = this.currentResizeCol.parentElement.parentElement.getElementsByClassName("_item_table_col_".concat(index));
130
168
 
131
- createRow(tableConfig, cols, tableWidth, index, colResizeHandler, parentSelectionChecker) {
132
- let row = document.createElement("div");
133
- row.className = '_item_table_tr row';
134
- row.style.width = '100%';
135
- row.style.margin = '0';
136
- row.style.height = tableConfig.defaultRowHeight + 'px';
137
- let last = tableConfig.defaultNumRows.length - 1 === index;
138
-
139
- if (!last) {
140
- row.style.borderBottom = '1px solid #aaa';
169
+ if (elements && elements.length > 0) {
170
+ var _iterator3 = _createForOfIteratorHelper(elements),
171
+ _step3;
172
+
173
+ try {
174
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
175
+ var element = _step3.value;
176
+ element.style.borderWidth = width;
177
+ }
178
+ } catch (err) {
179
+ _iterator3.e(err);
180
+ } finally {
181
+ _iterator3.f();
182
+ }
183
+ }
184
+ }
141
185
  }
142
-
143
- for (let i = 0; i < cols.length; i++) {
144
- let col = cols[i];
145
- let colEl = document.createElement("div");
146
- colEl.style.width = col.defaultWidth - 1 + 'px';
147
-
148
- if (i !== cols.length - 1) {
149
- colEl.style.borderRight = '1px solid #aaa';
186
+ }, {
187
+ key: "createRow",
188
+ value: function createRow(tableConfig, cols, tableWidth, index, colResizeHandler, parentSelectionChecker) {
189
+ var _this4 = this;
190
+
191
+ var row = document.createElement("div");
192
+ row.className = '_item_table_tr row';
193
+ row.style.width = '100%';
194
+ row.style.margin = '0';
195
+ row.style.height = tableConfig.defaultRowHeight + 'px';
196
+ var last = tableConfig.defaultNumRows.length - 1 === index;
197
+
198
+ if (!last) {
199
+ row.style.borderBottom = '1px solid #aaa';
150
200
  }
151
201
 
152
- colEl.className = "_item_table_td _item_table_col_".concat(i, " col-*-*");
153
- colEl['data-index'] = i;
154
- colEl.style.minWidth = DEFAULT_COL_WIDTH + 'px';
155
- colEl.style.height = '100%';
156
- colEl.style.whiteSpace = 'nowrap';
157
- colEl.style.overflow = 'hidden';
158
- colEl.style.textOverflow = 'ellipsis';
159
- colEl.style.display = 'inline-block';
160
- colEl.style.float = 'none';
161
- colEl.innerText = col.columnId;
162
- this.addColMouseMoveEvent(colEl, colResizeHandler, parentSelectionChecker, i === 0, i === cols.length - 1);
163
-
164
- const _this = this;
165
-
166
- colEl.addEventListener('mousedown', function (e) {
167
- _this.currentClientX = e.clientX;
168
- _this.curResizeColWidth = _this.getElementWidth(colEl);
169
- let index = e.target['data-index'];
170
- let elements = row.parentElement.getElementsByClassName("_item_table_col_".concat(index + 1));
202
+ var _loop = function _loop(i) {
203
+ var col = cols[i];
204
+ var colEl = document.createElement("div");
205
+ colEl.style.width = col.defaultWidth - 1 + 'px';
171
206
 
172
- if (elements && elements.length > 0) {
173
- _this.curResizeNxtColWidth = _this.getElementWidth(elements[0]);
207
+ if (i !== cols.length - 1) {
208
+ colEl.style.borderRight = '1px solid #aaa';
174
209
  }
175
210
 
176
- _this.setResizingBorderWidth('2px');
177
- });
178
- row.appendChild(colEl);
179
- }
211
+ colEl.className = "_item_table_td _item_table_col_".concat(i, " col-*-*");
212
+ colEl['data-index'] = i;
213
+ colEl.style.minWidth = DEFAULT_COL_WIDTH + 'px';
214
+ colEl.style.height = '100%';
215
+ colEl.style.whiteSpace = 'nowrap';
216
+ colEl.style.overflow = 'hidden';
217
+ colEl.style.textOverflow = 'ellipsis';
218
+ colEl.style.display = 'inline-block';
219
+ colEl.style.float = 'none';
220
+ colEl.innerText = col.columnId;
221
+
222
+ _this4.addColMouseMoveEvent(colEl, colResizeHandler, parentSelectionChecker, i === 0, i === cols.length - 1);
223
+
224
+ var _this = _this4;
225
+ colEl.addEventListener('mousedown', function (e) {
226
+ _this.currentClientX = e.clientX;
227
+ _this.curResizeColWidth = _this.getElementWidth(colEl);
228
+ var index = e.target['data-index'];
229
+ var elements = row.parentElement.getElementsByClassName("_item_table_col_".concat(index + 1));
230
+
231
+ if (elements && elements.length > 0) {
232
+ _this.curResizeNxtColWidth = _this.getElementWidth(elements[0]);
233
+ }
234
+
235
+ _this.setResizingBorderWidth('2px');
236
+ });
237
+ row.appendChild(colEl);
238
+ };
239
+
240
+ for (var i = 0; i < cols.length; i++) {
241
+ _loop(i);
242
+ }
180
243
 
181
- return row;
182
- }
244
+ return row;
245
+ }
246
+ }]);
183
247
 
184
- }
248
+ return TemplateTable;
249
+ }();
185
250
 
186
251
  exports.default = TemplateTable;
@@ -19,29 +19,44 @@ var _reactHtmlRenderer = _interopRequireDefault(require("react-html-renderer"));
19
19
 
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
21
 
22
- const TitleBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
23
- const [title, setTitle] = _react.default.useState('');
22
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
24
23
 
25
- _react.default.useLayoutEffect(() => {
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."); }
25
+
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); }
27
+
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; }
29
+
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 TitleBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
35
+ var _React$useState = _react.default.useState(''),
36
+ _React$useState2 = _slicedToArray(_React$useState, 2),
37
+ title = _React$useState2[0],
38
+ setTitle = _React$useState2[1];
39
+
40
+ _react.default.useLayoutEffect(function () {
26
41
  props.handle.api = api();
27
42
  }, []);
28
43
 
29
- _react.default.useEffect(() => {
44
+ _react.default.useEffect(function () {
30
45
  props.handle.api = api();
31
46
  });
32
47
 
33
- _react.default.useEffect(() => {
48
+ _react.default.useEffect(function () {
34
49
  console.log('TITLE BAR RENDERED : ' + props.config.id);
35
50
 
36
- let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
51
+ var parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
37
52
 
38
- let eventHandlingConfig = _Utils.default.isNull(parsedConfig.eventHandlingConfig) ? {} : parsedConfig.eventHandlingConfig;
53
+ var eventHandlingConfig = _Utils.default.isNull(parsedConfig.eventHandlingConfig) ? {} : parsedConfig.eventHandlingConfig;
39
54
  eventHandlingConfig.subscriptions = _Utils.default.isNull(eventHandlingConfig.subscriptions) ? [] : eventHandlingConfig.subscriptions;
40
55
 
41
- let titleValue = _Utils.default.getComponentAttribute(props.config, 'title', null);
56
+ var titleValue = _Utils.default.getComponentAttribute(props.config, 'title', null);
42
57
 
43
58
  if (_Utils.default.isNull(titleValue)) {
44
- let subscription = {
59
+ var subscription = {
45
60
  publisher: 'applicationManager',
46
61
  eventType: _EventType.default.APPLICATION_CONTEXT_CHANGE,
47
62
  actions: [{
@@ -59,13 +74,13 @@ const TitleBar = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.f
59
74
  }
60
75
  }, []);
61
76
 
62
- const api = () => {
77
+ var api = function api() {
63
78
  return {
64
79
  get id() {
65
80
  return props.config.id;
66
81
  },
67
82
 
68
- getChildren: () => {
83
+ getChildren: function getChildren() {
69
84
  return [];
70
85
  },
71
86
 
@@ -25,47 +25,76 @@ var _Icon = _interopRequireDefault(require("./Icon"));
25
25
 
26
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
27
 
28
- const useStyles = (0, _styles.makeStyles)(theme => ({
29
- spacer: {
30
- borderLeft: '2px solid' + theme.palette.secondary.main,
31
- height: '100%'
32
- }
33
- }));
34
- const StyledToggleButtonGroup = (0, _core.withStyles)(theme => ({
35
- grouped: {
36
- margin: theme.spacing(0.5),
37
- border: 'none',
38
- padding: theme.spacing(0, 1),
39
- '&:not(:first-child)': {
40
- borderRadius: theme.shape.borderRadius
41
- },
42
- '&:first-child': {
43
- borderRadius: theme.shape.borderRadius
28
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
29
+
30
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
31
+
32
+ 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; }
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."); }
37
+
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; }
45
+
46
+ var useStyles = (0, _styles.makeStyles)(function (theme) {
47
+ return {
48
+ spacer: {
49
+ borderLeft: '2px solid' + theme.palette.secondary.main,
50
+ height: '100%'
44
51
  }
45
- }
46
- }))(_ToggleButtonGroup.default);
52
+ };
53
+ });
54
+ var StyledToggleButtonGroup = (0, _core.withStyles)(function (theme) {
55
+ return {
56
+ grouped: {
57
+ margin: theme.spacing(0.5),
58
+ border: 'none',
59
+ padding: theme.spacing(0, 1),
60
+ '&:not(:first-child)': {
61
+ borderRadius: theme.shape.borderRadius
62
+ },
63
+ '&:first-child': {
64
+ borderRadius: theme.shape.borderRadius
65
+ }
66
+ }
67
+ };
68
+ })(_ToggleButtonGroup.default);
47
69
 
48
- const Toolbar = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
49
- const classes = useStyles();
70
+ var Toolbar = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
71
+ var classes = useStyles();
50
72
 
51
- const [itemHandles] = _react.default.useState([]);
73
+ var _React$useState = _react.default.useState([]),
74
+ _React$useState2 = _slicedToArray(_React$useState, 1),
75
+ itemHandles = _React$useState2[0];
52
76
 
53
- const [alignment] = _react.default.useState(_Utils.default.getComponentAttribute(props.config, 'alignment', 'left'));
77
+ var _React$useState3 = _react.default.useState(_Utils.default.getComponentAttribute(props.config, 'alignment', 'left')),
78
+ _React$useState4 = _slicedToArray(_React$useState3, 1),
79
+ alignment = _React$useState4[0];
54
80
 
55
- const [config, setConfig] = _react.default.useState(null);
81
+ var _React$useState5 = _react.default.useState(null),
82
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
83
+ config = _React$useState6[0],
84
+ setConfig = _React$useState6[1];
56
85
 
57
- let itemKeyCounter = 0;
58
- let sectionKeyCounter = 0;
86
+ var itemKeyCounter = 0;
87
+ var sectionKeyCounter = 0;
59
88
 
60
- _react.default.useEffect(() => {
89
+ _react.default.useEffect(function () {
61
90
  props.handle.api = api();
62
91
  });
63
92
 
64
- _react.default.useEffect(() => {
93
+ _react.default.useEffect(function () {
65
94
  if (config) {
66
95
  props.handle.api = api();
67
96
 
68
- let parsedConfig = _Utils.default.parseConfig(config, props.viewId);
97
+ var parsedConfig = _Utils.default.parseConfig(config, props.viewId);
69
98
 
70
99
  _Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.viewId);
71
100
 
@@ -73,16 +102,16 @@ const Toolbar = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
73
102
  }
74
103
  }, [config]);
75
104
 
76
- _react.default.useEffect(() => {
105
+ _react.default.useEffect(function () {
77
106
  var _props$tableRow$id;
78
107
 
79
- setConfig(props.tableRow ? { ...props.config,
108
+ setConfig(props.tableRow ? _objectSpread(_objectSpread({}, props.config), {}, {
80
109
  id: props.config.id + '_' + ((_props$tableRow$id = props.tableRow.id) === null || _props$tableRow$id === void 0 ? void 0 : _props$tableRow$id.replaceAll('-', ''))
81
- } : props.config);
110
+ }) : props.config);
82
111
  }, []);
83
112
 
84
113
  function createItemHandle() {
85
- let handle = {};
114
+ var handle = {};
86
115
  itemHandles.push(handle);
87
116
  return handle;
88
117
  }
@@ -126,7 +155,7 @@ const Toolbar = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
126
155
  }
127
156
 
128
157
  function renderSection(section, counter) {
129
- let itemCounter = 0;
158
+ var itemCounter = 0;
130
159
  return /*#__PURE__*/_react.default.createElement(StyledToggleButtonGroup, {
131
160
  size: "small",
132
161
  exclusive: true,
@@ -140,7 +169,7 @@ const Toolbar = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
140
169
  }, section)
141
170
  }, /*#__PURE__*/_react.default.createElement("div", {
142
171
  className: "row"
143
- }, section.items.map((item, index) => {
172
+ }, section.items.map(function (item, index) {
144
173
  return /*#__PURE__*/_react.default.createElement("div", {
145
174
  className: 'col-*-*',
146
175
  key: index,
@@ -149,7 +178,7 @@ const Toolbar = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
149
178
  })));
150
179
  }
151
180
 
152
- const api = () => {
181
+ var api = function api() {
153
182
  return {
154
183
  get id() {
155
184
  // Toolbar
@@ -160,18 +189,18 @@ const Toolbar = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
160
189
  return props.tableRow;
161
190
  },
162
191
 
163
- getChildren: () => {
192
+ getChildren: function getChildren() {
164
193
  return itemHandles;
165
194
  }
166
195
  };
167
196
  };
168
197
 
169
198
  function render(toolbar) {
170
- let counter = 0;
199
+ var counter = 0;
171
200
  return /*#__PURE__*/_react.default.createElement("div", {
172
201
  className: "row no-margin no-padding",
173
202
  ref: ref
174
- }, toolbar.sections.map((section, index) => {
203
+ }, toolbar.sections.map(function (section, index) {
175
204
  return /*#__PURE__*/_react.default.createElement("div", {
176
205
  className: "col no-margin no-padding",
177
206
  key: index,