@agilemotion/oui-react-js 1.3.7 → 1.3.9

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 (214) hide show
  1. package/README.TXT +1 -0
  2. package/dist/ApplicationContext.js +161 -284
  3. package/dist/BasicApp.js +1 -1
  4. package/dist/BasicAppHome.js +17 -4
  5. package/dist/BusinessPortalApp.js +4 -4
  6. package/dist/BusinessPortalAppHome.js +10 -39
  7. package/dist/DynamicJS.js +20 -52
  8. package/dist/RestUtils.js +86 -111
  9. package/dist/Utils.js +36 -30
  10. package/dist/assets/jss/components/authNavbarStyle.js +34 -35
  11. package/dist/assets/jss/components/cardHeaderStyle.js +12 -12
  12. package/dist/assets/jss/components/customDropdownStyle.js +26 -26
  13. package/dist/assets/jss/components/customInputStyle.js +2 -8
  14. package/dist/assets/jss/components/dropdownStyle.js +10 -15
  15. package/dist/assets/jss/components/footerStyle.js +12 -18
  16. package/dist/assets/jss/components/headerLinksStyle.js +7 -13
  17. package/dist/assets/jss/components/headerStyle.js +24 -25
  18. package/dist/assets/jss/components/navbarLinksStyle.js +7 -13
  19. package/dist/assets/jss/components/navbarStyle.js +24 -25
  20. package/dist/assets/jss/components/sidebarStyle.js +41 -43
  21. package/dist/assets/jss/components/typographyStyle.js +2 -8
  22. package/dist/assets/jss/rootStyle.js +32 -47
  23. package/dist/assets/jss/views/layoutStyle.js +6 -11
  24. package/dist/assets/jss/views/loginStyle.js +4 -10
  25. package/dist/assets/lotties/call-loading.json +1 -0
  26. package/dist/assets/lotties/calling-2.json +1 -0
  27. package/dist/assets/lotties/calling.json +1 -0
  28. package/dist/assets/lotties/calling2.json +1 -0
  29. package/dist/assets/lotties/chat.json +1 -0
  30. package/dist/assets/lotties/join.json +1 -0
  31. package/dist/assets/lotties/loading.json +1 -0
  32. package/dist/assets/lotties/msg2.json +1 -0
  33. package/dist/assets/lotties/recording.json +1 -0
  34. package/dist/assets/lotties/waiting.json +1 -0
  35. package/dist/assets/scss/black-dashboard-react/bootstrap/_card.scss +5 -5
  36. package/dist/assets/scss/black-dashboard-react/bootstrap/_carousel.scss +2 -2
  37. package/dist/assets/scss/black-dashboard-react/bootstrap/_custom-forms.scss +3 -3
  38. package/dist/assets/scss/black-dashboard-react/bootstrap/_functions.scss +1 -1
  39. package/dist/assets/scss/black-dashboard-react/bootstrap/_images.scss +1 -1
  40. package/dist/assets/scss/black-dashboard-react/bootstrap/_jumbotron.scss +1 -1
  41. package/dist/assets/scss/black-dashboard-react/bootstrap/_popover.scss +7 -5
  42. package/dist/assets/scss/black-dashboard-react/bootstrap/_tooltip.scss +4 -4
  43. package/dist/assets/scss/black-dashboard-react/bootstrap/_variables.scss +5 -5
  44. package/dist/assets/scss/black-dashboard-react/bootstrap/mixins/_grid-framework.scss +2 -2
  45. package/dist/assets/scss/black-dashboard-react/bootstrap/mixins/_grid.scss +11 -9
  46. package/dist/assets/scss/black-dashboard-react/bootstrap/utilities/_embed.scss +6 -4
  47. package/dist/assets/scss/black-dashboard-react/custom/_variables.scss +1 -1
  48. package/dist/components/AlertBar.js +39 -80
  49. package/dist/components/AlertItem.js +4 -26
  50. package/dist/components/Button.js +24 -36
  51. package/dist/components/Calendar.js +478 -0
  52. package/dist/components/Calender.css +244 -0
  53. package/dist/components/ConfirmationDialog.js +5 -29
  54. package/dist/components/DataGrid.js +169 -338
  55. package/dist/components/DataGridColumn.js +5 -28
  56. package/dist/components/DataGridFilter.js +46 -114
  57. package/dist/components/DataGridHeading.js +11 -19
  58. package/dist/components/Dialog.js +27 -121
  59. package/dist/components/DocumentViewer.js +15 -35
  60. package/dist/components/DocumentViewerComponent.js +2 -20
  61. package/dist/components/FileThumb.js +115 -0
  62. package/dist/components/Graph.js +25 -75
  63. package/dist/components/GraphNode.js +4 -21
  64. package/dist/components/HtmlPanel.js +59 -78
  65. package/dist/components/Icon.js +99 -1
  66. package/dist/components/LoadingIndicator.js +4 -4
  67. package/dist/components/LottieIcon.js +134 -0
  68. package/dist/components/PopupView.js +2 -20
  69. package/dist/components/RegularButton.js +15 -19
  70. package/dist/components/SignaturePanel.js +9 -40
  71. package/dist/components/SocketManager.js +170 -0
  72. package/dist/components/StepperTitleBar.js +30 -56
  73. package/dist/components/TabPage.js +6 -9
  74. package/dist/components/TabPanel.js +41 -98
  75. package/dist/components/TableCellContent.js +30 -38
  76. package/dist/components/TemplateDesigner.css +0 -1
  77. package/dist/components/TemplateDesigner.js +107 -151
  78. package/dist/components/TemplateItemEventHandler.js +33 -100
  79. package/dist/components/TemplateTable.js +6 -42
  80. package/dist/components/TitleBar.js +35 -52
  81. package/dist/components/Toolbar.js +33 -179
  82. package/dist/components/Tree.js +27 -64
  83. package/dist/components/card/Card.js +16 -20
  84. package/dist/components/card/CardAvatar.js +9 -13
  85. package/dist/components/card/CardBody.js +13 -17
  86. package/dist/components/card/CardFooter.js +12 -16
  87. package/dist/components/card/CardHeader.js +13 -17
  88. package/dist/components/card/CardIcon.js +6 -10
  89. package/dist/components/card/CardText.js +6 -10
  90. package/dist/components/customInput/CustomInput.js +12 -10
  91. package/dist/components/dashboard/BasicBusinessAppDashboard.js +81 -158
  92. package/dist/components/dashboard/BusinessPortalAppDashboard.js +33 -79
  93. package/dist/components/dashboard/components/Header.js +8 -25
  94. package/dist/components/dashboard/components/LeftDrawer.js +3 -1
  95. package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +1 -1
  96. package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +143 -36
  97. package/dist/components/footer/Footer.js +6 -18
  98. package/dist/components/form/AddressSearch.js +32 -66
  99. package/dist/components/form/AutoComplete.js +160 -0
  100. package/dist/components/form/BaseField.js +66 -96
  101. package/dist/components/form/DatePicker.js +3 -21
  102. package/dist/components/form/FieldSet.js +158 -180
  103. package/dist/components/form/Form.css +1 -1
  104. package/dist/components/form/Form.js +137 -471
  105. package/dist/components/form/GridField.js +46 -146
  106. package/dist/components/form/IconField.js +35 -0
  107. package/dist/components/form/ImageEditor.js +19 -57
  108. package/dist/components/form/LookupField.js +8 -29
  109. package/dist/components/form/MultiFileUploadField.js +186 -0
  110. package/dist/components/form/RadioGroup.js +1 -16
  111. package/dist/components/form/Section.js +31 -92
  112. package/dist/components/form/SelectItem.js +14 -33
  113. package/dist/components/form/SignatureTemplateDesignerField.js +4 -2
  114. package/dist/components/form/Switch.js +53 -0
  115. package/dist/components/form/TextField.js +10 -17
  116. package/dist/components/form/TimePicker.js +7 -1
  117. package/dist/components/form/TransferList.css +2 -2
  118. package/dist/components/form/TransferList.js +67 -125
  119. package/dist/components/form/UploadField.js +27 -79
  120. package/dist/components/form/fieldset.css +8 -0
  121. package/dist/components/grid/GridContainer.js +5 -9
  122. package/dist/components/grid/GridItem.js +5 -9
  123. package/dist/components/layout/CollapsiblePanel.js +11 -33
  124. package/dist/components/layout/Layout.js +175 -290
  125. package/dist/components/layout/VC.css +17 -0
  126. package/dist/components/layout/View.css +17 -1
  127. package/dist/components/layout/View.js +77 -194
  128. package/dist/components/loader.css +1 -1
  129. package/dist/components/media/ClosablePanel.css +37 -0
  130. package/dist/components/media/ClosablePanel.js +53 -0
  131. package/dist/components/media/LobbyWaitingList.js +91 -0
  132. package/dist/components/media/MediaSoupHelper.js +223 -0
  133. package/dist/components/media/Recorder.js +235 -0
  134. package/dist/components/media/SideBarContent.css +54 -0
  135. package/dist/components/media/SideBarContent.js +46 -0
  136. package/dist/components/media/SocketRequest.js +20 -0
  137. package/dist/components/media/SocketResponse.js +16 -0
  138. package/dist/components/media/Timer.css +30 -0
  139. package/dist/components/media/Timer.js +88 -0
  140. package/dist/components/media/Toolbar.css +20 -0
  141. package/dist/components/media/Toolbar.js +470 -0
  142. package/dist/components/media/Tracks.js +39 -0
  143. package/dist/components/media/TrainingRoom.js +531 -0
  144. package/dist/components/media/Transports.js +35 -0
  145. package/dist/components/media/VCEventManager.js +74 -0
  146. package/dist/components/media/VCEventType.js +164 -0
  147. package/dist/components/media/VCParticipantList.css +72 -0
  148. package/dist/components/media/VCParticipantList.js +56 -0
  149. package/dist/components/media/VCParticipantListItem.css +73 -0
  150. package/dist/components/media/VCParticipantListItem.js +319 -0
  151. package/dist/components/media/VCRoom.css +42 -0
  152. package/dist/components/media/VCRoom.js +90 -0
  153. package/dist/components/media/VCRoomParticipant.css +25 -0
  154. package/dist/components/media/VCRoomParticipant.js +806 -0
  155. package/dist/components/media/VCRoomWorkspace.css +86 -0
  156. package/dist/components/media/VCRoomWorkspace.js +653 -0
  157. package/dist/components/media/Video.css +4 -0
  158. package/dist/components/media/Video.js +131 -0
  159. package/dist/components/media/chat/ChatRoom.js +926 -0
  160. package/dist/components/media/chat/ChatRoomItem.js +83 -0
  161. package/dist/components/media/chat/ChatRoomList.js +78 -0
  162. package/dist/components/media/chat/ChatRooms.scss +567 -0
  163. package/dist/components/menu/CollapsibleMenu.js +2 -19
  164. package/dist/components/menu/MenuBars.js +6 -33
  165. package/dist/components/menu/MenuButton.js +7 -35
  166. package/dist/components/menu/MenuItem.js +3 -20
  167. package/dist/components/menu/MenuLink.js +18 -12
  168. package/dist/components/navbars/AuthNavbar.js +5 -18
  169. package/dist/components/navbars/HomeNavbar.js +3 -5
  170. package/dist/components/navbars/PortalNavbar.js +4 -22
  171. package/dist/components/signatures/AgilitySignaturePanel.js +35 -101
  172. package/dist/components/signatures/AlertItem.js +3 -24
  173. package/dist/components/signatures/DocumentContainer.js +47 -135
  174. package/dist/components/signatures/ImageSignatureInput.js +8 -35
  175. package/dist/components/signatures/MenuButton.js +1 -16
  176. package/dist/components/signatures/Prompt.js +3 -24
  177. package/dist/components/signatures/ResponsiveTable.js +75 -96
  178. package/dist/components/signatures/SearchView.js +14 -50
  179. package/dist/components/signatures/SignatorySearch.js +83 -98
  180. package/dist/components/signatures/SignatorySearchForm.js +11 -17
  181. package/dist/components/signatures/SignatureInput.js +15 -44
  182. package/dist/components/signatures/SignatureInputProps.js +20 -60
  183. package/dist/components/signatures/SignatureTemplateDesigner.js +148 -235
  184. package/dist/components/signatures/Toolbar.js +7 -34
  185. package/dist/components/signatures/ViewUtils.js +2 -6
  186. package/dist/components/typography/Danger.js +3 -1
  187. package/dist/components/typography/Info.js +3 -1
  188. package/dist/components/typography/Link.js +6 -2
  189. package/dist/event/ActionHandlers.js +3 -3
  190. package/dist/event/EventType.js +7 -1
  191. package/dist/event/LoadDataActionHandler.js +1 -1
  192. package/dist/event/Observable.js +56 -168
  193. package/dist/event/RouteActionHandler.js +45 -11
  194. package/dist/event/ServiceCallActionHandler.js +34 -24
  195. package/dist/js/Addresses.js +10 -8
  196. package/dist/js/Media.js +157 -0
  197. package/dist/redux/store/ConfigureStore.js +3 -9
  198. package/dist/redux/store/DashboardStore.js +42 -94
  199. package/dist/redux/store/SecurityStore.js +15 -50
  200. package/dist/view/Dashboard.js +242 -163
  201. package/dist/view/security/ChangePasswordBasic.js +23 -76
  202. package/dist/view/security/ForgotPassword.js +9 -42
  203. package/dist/view/security/ForgotPasswordBasic.js +8 -41
  204. package/dist/view/security/Login.js +11 -47
  205. package/dist/view/security/LoginBasic.js +8 -41
  206. package/dist/view/security/LoginBusinessPortal.js +8 -41
  207. package/dist/view/security/ResetPassword.js +9 -47
  208. package/dist/view/security/ResetPasswordBasic.js +21 -71
  209. package/dist/view/security/Security.js +1 -0
  210. package/package.json +29 -13
  211. package/README.md +0 -1623
  212. package/dist/components/dashboard/BasicApp.js +0 -140
  213. package/dist/components/navbars/NavbarLinks.js +0 -212
  214. package/dist/components/signatures/OLD.js +0 -1138
@@ -17,18 +17,6 @@ var _ViewUtils = _interopRequireDefault(require("./ViewUtils"));
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
21
-
22
- 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."); }
23
-
24
- 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); }
25
-
26
- 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; }
27
-
28
- 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; }
29
-
30
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
-
32
20
  const utils = new _ViewUtils.default();
33
21
  const useStyles = (0, _styles.makeStyles)(theme => ({
34
22
  root: {
@@ -42,20 +30,11 @@ const useStyles = (0, _styles.makeStyles)(theme => ({
42
30
  function AlertItem(props) {
43
31
  const classes = useStyles();
44
32
 
45
- const _React$useState = _react.default.useState(props.message),
46
- _React$useState2 = _slicedToArray(_React$useState, 2),
47
- message = _React$useState2[0],
48
- setMessage = _React$useState2[1];
33
+ const [message, setMessage] = _react.default.useState(props.message);
49
34
 
50
- const _React$useState3 = _react.default.useState(props.alertStyle),
51
- _React$useState4 = _slicedToArray(_React$useState3, 2),
52
- alertStyle = _React$useState4[0],
53
- setAlertStyle = _React$useState4[1];
35
+ const [alertStyle, setAlertStyle] = _react.default.useState(props.alertStyle);
54
36
 
55
- const _React$useState5 = _react.default.useState(props.alertTitle),
56
- _React$useState6 = _slicedToArray(_React$useState5, 2),
57
- title = _React$useState6[0],
58
- setTitle = _React$useState6[1];
37
+ const [title, setTitle] = _react.default.useState(props.alertTitle);
59
38
 
60
39
  _react.default.useEffect(() => {
61
40
  setMessage(props.message);
@@ -11,51 +11,16 @@ require("./DocumentContainer.css");
11
11
 
12
12
  var _reactHtmlRenderer = _interopRequireDefault(require("react-html-renderer"));
13
13
 
14
- var _reactConfirmAlert = require("react-confirm-alert");
15
-
16
- require("react-confirm-alert/src/react-confirm-alert.css");
17
-
18
- var _Utils = _interopRequireDefault(require("../../Utils"));
19
-
20
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
15
 
22
- function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
23
-
24
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
25
-
26
- 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."); }
27
-
28
- 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); }
29
-
30
- 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; }
31
-
32
- 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; }
33
-
34
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
35
-
36
- // Import css
37
16
  const DocumentContainer = props => {
38
- const _React$useState = _react.default.useState(null),
39
- _React$useState2 = _slicedToArray(_React$useState, 2),
40
- documentContent = _React$useState2[0],
41
- setDocumentContent = _React$useState2[1];
42
-
43
- const _React$useState3 = _react.default.useState(null),
44
- _React$useState4 = _slicedToArray(_React$useState3, 2),
45
- signatureImage = _React$useState4[0],
46
- setSignatureImage = _React$useState4[1];
17
+ const [documentContent, setDocumentContent] = _react.default.useState(null);
47
18
 
48
- const _React$useState5 = _react.default.useState(null),
49
- _React$useState6 = _slicedToArray(_React$useState5, 2),
50
- initialImage = _React$useState6[0],
51
- setInitialImage = _React$useState6[1];
19
+ const [signatureImage, setSignatureImage] = _react.default.useState(null);
52
20
 
53
- const _React$useState7 = _react.default.useState(null),
54
- _React$useState8 = _slicedToArray(_React$useState7, 2),
55
- htmlRendererProps = _React$useState8[0],
56
- setHtmlRendererProps = _React$useState8[1];
21
+ const [initialImage, setInitialImage] = _react.default.useState(null);
57
22
 
58
- const username = sessionStorage.getItem("username");
23
+ const [htmlRendererProps, setHtmlRendererProps] = _react.default.useState(null);
59
24
 
60
25
  _react.default.useEffect(() => {
61
26
  if (signatureImage !== props.signatureImage) {
@@ -80,114 +45,61 @@ const DocumentContainer = props => {
80
45
  let total = 0;
81
46
  let rendererProps = {};
82
47
 
83
- var _iterator = _createForOfIteratorHelper(signers),
84
- _step;
48
+ for (const signer of signers) {
49
+ total += signer.signatureInputs.length;
50
+ }
51
+
52
+ for (const signer of signers) {
53
+ if (signer.email === props.config.signatoryId) {
54
+ let signingInputs = signer.signatureInputs;
85
55
 
86
- try {
87
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
88
- const signer = _step.value;
89
- total += signer.signatureInputs.length;
56
+ for (const signingInput of signingInputs) {
57
+ signingInput.isFirst = count === 0;
58
+ signingInput.isLast = count === total - 1;
59
+ count++;
60
+ }
90
61
  }
91
- } catch (err) {
92
- _iterator.e(err);
93
- } finally {
94
- _iterator.f();
95
62
  }
96
63
 
97
- var _iterator2 = _createForOfIteratorHelper(signers),
98
- _step2;
64
+ for (const signer of signers) {
65
+ if (signer.email === props.config.signatoryId) {
66
+ let signingInputs = signer.signatureInputs;
99
67
 
100
- try {
101
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
102
- const signer = _step2.value;
68
+ for (const signingInput of signingInputs) {
69
+ let color = 'transparent';
103
70
 
104
- if (signer.email === username) {
105
- let signingInputs = signer.signatureInputs;
71
+ if ("SIGN" === signingInput.inputType && signatureImage === null || "INITIAL" === signingInput.inputType && initialImage === null) {
72
+ color = 'red';
73
+ }
106
74
 
107
- var _iterator4 = _createForOfIteratorHelper(signingInputs),
108
- _step4;
75
+ console.log(signingInput.tagName + " - " + signingInput.index + " - " + initialImage);
76
+ console.log(signingInput);
77
+ template = template.replace(signingInput.tagName, "<sgvp".concat(signingInput.index, " />"));
109
78
 
110
- try {
111
- for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
112
- const signingInput = _step4.value;
113
- signingInput.isFirst = count === 0;
114
- signingInput.isLast = count === total - 1;
115
- count++;
79
+ rendererProps["sgvp".concat(signingInput.index)] = props => /*#__PURE__*/_react.default.createElement("div", {
80
+ style: {
81
+ borderRadius: '4px',
82
+ position: 'absolute',
83
+ width: '100px',
84
+ height: '60px'
116
85
  }
117
- } catch (err) {
118
- _iterator4.e(err);
119
- } finally {
120
- _iterator4.f();
121
- }
122
- }
123
- }
124
- } catch (err) {
125
- _iterator2.e(err);
126
- } finally {
127
- _iterator2.f();
128
- }
129
-
130
- var _iterator3 = _createForOfIteratorHelper(signers),
131
- _step3;
132
-
133
- try {
134
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
135
- const signer = _step3.value;
136
-
137
- if (signer.email === username) {
138
- let signingInputs = signer.signatureInputs;
139
-
140
- var _iterator5 = _createForOfIteratorHelper(signingInputs),
141
- _step5;
142
-
143
- try {
144
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
145
- const signingInput = _step5.value;
146
- let color = 'transparent';
147
-
148
- if ("SIGN" === signingInput.inputType && signatureImage === null || "INITIAL" === signingInput.inputType && initialImage === null) {
149
- color = 'red';
150
- }
151
-
152
- console.log(signingInput.tagName + " - " + signingInput.index + " - " + initialImage);
153
- console.log(signingInput);
154
- template = template.replace(signingInput.tagName, "<sgvp".concat(signingInput.index, " />"));
155
-
156
- rendererProps["sgvp".concat(signingInput.index)] = props => /*#__PURE__*/_react.default.createElement("div", {
157
- style: {
158
- borderRadius: '4px',
159
- border: '4px dashed ' + color,
160
- position: 'absolute',
161
- width: '100px',
162
- height: '60px'
163
- }
164
- }, "SIGN" === signingInput.inputType && signatureImage !== null ? /*#__PURE__*/_react.default.createElement("img", {
165
- src: signatureImage,
166
- alt: '',
167
- style: {
168
- maxHeight: '100%',
169
- maxWidth: '100%'
170
- }
171
- }) : "INITIAL" === signingInput.inputType && initialImage !== null ? /*#__PURE__*/_react.default.createElement("img", {
172
- src: initialImage,
173
- alt: '',
174
- style: {
175
- maxHeight: '100%',
176
- maxWidth: '100%'
177
- }
178
- }) : null);
86
+ }, "SIGN" === signingInput.inputType && signatureImage !== null ? /*#__PURE__*/_react.default.createElement("img", {
87
+ src: signatureImage,
88
+ alt: '',
89
+ style: {
90
+ maxHeight: '100%',
91
+ maxWidth: '100%'
179
92
  }
180
- } catch (err) {
181
- _iterator5.e(err);
182
- } finally {
183
- _iterator5.f();
184
- }
93
+ }) : "INITIAL" === signingInput.inputType && initialImage !== null ? /*#__PURE__*/_react.default.createElement("img", {
94
+ src: initialImage,
95
+ alt: '',
96
+ style: {
97
+ maxHeight: '100%',
98
+ maxWidth: '100%'
99
+ }
100
+ }) : null);
185
101
  }
186
102
  }
187
- } catch (err) {
188
- _iterator3.e(err);
189
- } finally {
190
- _iterator3.f();
191
103
  }
192
104
 
193
105
  setHtmlRendererProps(rendererProps);
@@ -25,24 +25,6 @@ var _Checkbox = _interopRequireDefault(require("@material-ui/core/Checkbox"));
25
25
 
26
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
27
 
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
28
  const useStyles = (0, _styles.makeStyles)(theme => ({
47
29
  button: {
48
30
  margin: theme.spacing(1)
@@ -76,20 +58,11 @@ const ImageSignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_reac
76
58
  const width = '320px';
77
59
  const height = '320px';
78
60
 
79
- const _React$useState = _react.default.useState(null),
80
- _React$useState2 = _slicedToArray(_React$useState, 2),
81
- value = _React$useState2[0],
82
- setValue = _React$useState2[1];
61
+ const [value, setValue] = _react.default.useState(null);
83
62
 
84
- const _React$useState3 = _react.default.useState(false),
85
- _React$useState4 = _slicedToArray(_React$useState3, 2),
86
- uploaded = _React$useState4[0],
87
- setUploaded = _React$useState4[1];
63
+ const [uploaded, setUploaded] = _react.default.useState(false);
88
64
 
89
- const _React$useState5 = _react.default.useState(false),
90
- _React$useState6 = _slicedToArray(_React$useState5, 2),
91
- saveAsSystemImage = _React$useState6[0],
92
- setSaveAsSystemImage = _React$useState6[1];
65
+ const [saveAsSystemImage, setSaveAsSystemImage] = _react.default.useState(false);
93
66
 
94
67
  _react.default.useEffect(() => {
95
68
  if (value !== props.value) {
@@ -117,7 +90,7 @@ const ImageSignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_reac
117
90
 
118
91
  function process(callback, data, action) {
119
92
  let fetchConfig = getFetchConfig(data);
120
- let url = location + _ApplicationContext.default.getBaseApiUrl() + props.imageProcessingUrl + "/" + action;
93
+ let url = location + _ApplicationContext.default.getContextRoot() + props.imageProcessingUrl + "/" + action + "/TEXT";
121
94
  (0, _reactPromiseTracker.trackPromise)(fetch(encodeURI(url), fetchConfig).then(status).then(json).then(data => {
122
95
  callback(data);
123
96
  }).catch(e => {
@@ -194,9 +167,9 @@ const ImageSignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_reac
194
167
  },
195
168
  onClick: () => {
196
169
  process(data => {
197
- setValue(_objectSpread(_objectSpread({}, value), {}, {
170
+ setValue({ ...value,
198
171
  url: data
199
- }));
172
+ });
200
173
  }, value.url, 'rotateLeft');
201
174
  },
202
175
  startIcon: /*#__PURE__*/_react.default.createElement(_Icon.default, {
@@ -216,9 +189,9 @@ const ImageSignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_reac
216
189
  },
217
190
  onClick: () => {
218
191
  process(data => {
219
- setValue(_objectSpread(_objectSpread({}, value), {}, {
192
+ setValue({ ...value,
220
193
  url: data
221
- }));
194
+ });
222
195
  }, value.url, 'rotateRight');
223
196
  },
224
197
  startIcon: /*#__PURE__*/_react.default.createElement(_Icon.default, {
@@ -23,18 +23,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
23
23
 
24
24
  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); }
25
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
26
  const useStyles = (0, _styles.makeStyles)(theme => ({
39
27
  root: {
40
28
  display: 'flex'
@@ -53,10 +41,7 @@ const useStyles = (0, _styles.makeStyles)(theme => ({
53
41
  function MenuButton(props) {
54
42
  const classes = useStyles();
55
43
 
56
- const _React$useState = _react.default.useState(false),
57
- _React$useState2 = _slicedToArray(_React$useState, 2),
58
- open = _React$useState2[0],
59
- setOpen = _React$useState2[1];
44
+ const [open, setOpen] = _react.default.useState(false);
60
45
 
61
46
  const anchorRef = _react.default.useRef(null);
62
47
 
@@ -21,33 +21,12 @@ var _DialogTitle = _interopRequireDefault(require("@material-ui/core/DialogTitle
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
23
 
24
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
25
-
26
- 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."); }
27
-
28
- 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); }
29
-
30
- 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; }
31
-
32
- 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; }
33
-
34
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
35
-
36
24
  function Prompt(props) {
37
- const _React$useState = _react.default.useState(false),
38
- _React$useState2 = _slicedToArray(_React$useState, 2),
39
- open = _React$useState2[0],
40
- setOpen = _React$useState2[1];
25
+ const [open, setOpen] = _react.default.useState(false);
41
26
 
42
- const _React$useState3 = _react.default.useState(props.promptContent),
43
- _React$useState4 = _slicedToArray(_React$useState3, 2),
44
- content = _React$useState4[0],
45
- setContent = _React$useState4[1];
27
+ const [content, setContent] = _react.default.useState(props.promptContent);
46
28
 
47
- const _React$useState5 = _react.default.useState(props.promptTitle),
48
- _React$useState6 = _slicedToArray(_React$useState5, 2),
49
- title = _React$useState6[0],
50
- setTitle = _React$useState6[1];
29
+ const [title, setTitle] = _react.default.useState(props.promptTitle);
51
30
 
52
31
  const handleNo = () => {
53
32
  setOpen(false);
@@ -29,19 +29,11 @@ var _ViewUtils = _interopRequireDefault(require("./ViewUtils"));
29
29
 
30
30
  require("./ResponsiveTable.css");
31
31
 
32
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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); }
32
+ var _RestUtils = require("../../RestUtils");
39
33
 
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; }
34
+ var _Utils = _interopRequireDefault(require("../../Utils"));
41
35
 
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; }
36
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
45
37
 
46
38
  const utils = new _ViewUtils.default();
47
39
  const MULTI_SELECT_CHECKBOX_COL_WIDTH = 64;
@@ -77,14 +69,16 @@ function getSorting(order, orderBy) {
77
69
  }
78
70
 
79
71
  function EnhancedTableHead(props) {
80
- const classes = props.classes,
81
- onSelectAllClick = props.onSelectAllClick,
82
- order = props.order,
83
- orderBy = props.orderBy,
84
- numSelected = props.numSelected,
85
- rowCount = props.rowCount,
86
- onRequestSort = props.onRequestSort,
87
- headCells = props.headCells;
72
+ const {
73
+ classes,
74
+ onSelectAllClick,
75
+ order,
76
+ orderBy,
77
+ numSelected,
78
+ rowCount,
79
+ onRequestSort,
80
+ headCells
81
+ } = props;
88
82
 
89
83
  const createSortHandler = property => event => {
90
84
  onRequestSort(event, property);
@@ -194,68 +188,36 @@ function EnhancedTable(props) {
194
188
  const utils = new _ViewUtils.default();
195
189
  const classes = useStyles();
196
190
 
197
- const _React$useState = _react.default.useState('asc'),
198
- _React$useState2 = _slicedToArray(_React$useState, 2),
199
- order = _React$useState2[0],
200
- setOrder = _React$useState2[1];
201
-
202
- const _React$useState3 = _react.default.useState('id'),
203
- _React$useState4 = _slicedToArray(_React$useState3, 2),
204
- orderBy = _React$useState4[0],
205
- setOrderBy = _React$useState4[1];
206
-
207
- const _React$useState5 = _react.default.useState([]),
208
- _React$useState6 = _slicedToArray(_React$useState5, 2),
209
- selected = _React$useState6[0],
210
- setSelected = _React$useState6[1];
211
-
212
- const _React$useState7 = _react.default.useState(0),
213
- _React$useState8 = _slicedToArray(_React$useState7, 2),
214
- totalNumberOfRows = _React$useState8[0],
215
- setTotalNumberOfRows = _React$useState8[1];
216
-
217
- const _React$useState9 = _react.default.useState(""),
218
- _React$useState10 = _slicedToArray(_React$useState9, 2),
219
- selectedRow = _React$useState10[0],
220
- setSelectedRow = _React$useState10[1];
221
-
222
- const _React$useState11 = _react.default.useState(0),
223
- _React$useState12 = _slicedToArray(_React$useState11, 2),
224
- page = _React$useState12[0],
225
- setPage = _React$useState12[1];
226
-
227
- const _React$useState13 = _react.default.useState(!utils.isNull(props.rows) ? props.rows : []),
228
- _React$useState14 = _slicedToArray(_React$useState13, 2),
229
- rows = _React$useState14[0],
230
- setRows = _React$useState14[1];
231
-
232
- const _React$useState15 = _react.default.useState(0),
233
- _React$useState16 = _slicedToArray(_React$useState15, 2),
234
- scrollWidth = _React$useState16[0],
235
- setScrollWidth = _React$useState16[1];
236
-
237
- const _React$useState17 = _react.default.useState(true),
238
- _React$useState18 = _slicedToArray(_React$useState17, 2),
239
- dense = _React$useState18[0],
240
- setDense = _React$useState18[1];
241
-
242
- const _React$useState19 = _react.default.useState(utils.isNull(props.autoFetchData) || props.autoFetchData === true),
243
- _React$useState20 = _slicedToArray(_React$useState19, 2),
244
- fetchEnabled = _React$useState20[0],
245
- setFetchEnabled = _React$useState20[1];
246
-
247
- const _React$useState21 = _react.default.useState(10),
248
- _React$useState22 = _slicedToArray(_React$useState21, 2),
249
- rowsPerPage = _React$useState22[0],
250
- setRowsPerPage = _React$useState22[1];
251
-
252
- const headCells = props.headCells;
253
- const actionsToolbar = props.actionsToolbar;
254
-
255
- const _React$useState23 = _react.default.useState(props.searchParameters),
256
- _React$useState24 = _slicedToArray(_React$useState23, 2),
257
- searchParameters = _React$useState24[0],
258
- setSearchParameters = _React$useState24[1];
191
+ const [order, setOrder] = _react.default.useState('asc');
192
+
193
+ const [orderBy, setOrderBy] = _react.default.useState('id');
194
+
195
+ const [selected, setSelected] = _react.default.useState([]);
196
+
197
+ const [totalNumberOfRows, setTotalNumberOfRows] = _react.default.useState(0);
198
+
199
+ const [selectedRow, setSelectedRow] = _react.default.useState("");
200
+
201
+ const [page, setPage] = _react.default.useState(0);
202
+
203
+ const [rows, setRows] = _react.default.useState(!utils.isNull(props.rows) ? props.rows : []);
204
+
205
+ const [scrollWidth, setScrollWidth] = _react.default.useState(0);
206
+
207
+ const [dense, setDense] = _react.default.useState(true);
208
+
209
+ const [fetchEnabled, setFetchEnabled] = _react.default.useState(utils.isNull(props.autoFetchData) || props.autoFetchData === true);
210
+
211
+ const [rowsPerPage, setRowsPerPage] = _react.default.useState(10);
212
+
213
+ const {
214
+ headCells
215
+ } = props;
216
+ const {
217
+ actionsToolbar
218
+ } = props;
219
+
220
+ const [searchParameters, setSearchParameters] = _react.default.useState(props.searchParameters);
259
221
 
260
222
  for (let i = 0; i < props.headCells.length; i++) {
261
223
  let headCell = props.headCells[i];
@@ -269,28 +231,45 @@ function EnhancedTable(props) {
269
231
  }, [props.rows]);
270
232
 
271
233
  _react.default.useEffect(() => {
272
- if (fetchEnabled && !utils.isNull(props.searchParameters) && !utils.isNull(props.dataUrl)) {
234
+ if (fetchEnabled && !utils.isNull(props.searchParameters) && !(utils.isNull(props.dataUrl) || utils.isNull(props.dataService))) {
273
235
  setSearchParameters(props.searchParameters);
274
- utils.invokeUrl(props.dataUrl, JSON.stringify(utils.getRequest(page + 1, rowsPerPage, props.searchParameters, props.paged)), data => {
275
- var result;
276
236
 
277
- if (typeof data === "string") {
278
- result = JSON.parse(data);
279
- } else {
280
- result = data;
281
- }
282
-
283
- if (!utils.isNull(result)) {
284
- setRows(result.records);
285
- setTotalNumberOfRows(result.totalNumberOfRecords);
237
+ if (!utils.isNull(props.dataService)) {
238
+ alert(props.dataService);
239
+ (0, _RestUtils.invokeRpc)(props.dataService, null, "", result => {
240
+ setRows(result.data.records);
241
+ setTotalNumberOfRows(result.data.totalNumberOfRecords);
286
242
 
287
243
  if (!utils.isNull(props.onDataArrive)) {
288
- props.onDataArrive(result);
244
+ props.onDataArrive(result.data);
289
245
  }
290
246
 
291
247
  updateScrollBarPadding();
292
- }
293
- }, null);
248
+ }, e => {
249
+ alert(e.message);
250
+ });
251
+ } else {
252
+ utils.invokeUrl(props.dataUrl, JSON.stringify(utils.getRequest(page + 1, rowsPerPage, props.searchParameters, props.paged)), data => {
253
+ var result;
254
+
255
+ if (typeof data === "string") {
256
+ result = JSON.parse(data);
257
+ } else {
258
+ result = data;
259
+ }
260
+
261
+ if (!utils.isNull(result)) {
262
+ setRows(result.records);
263
+ setTotalNumberOfRows(result.totalNumberOfRecords);
264
+
265
+ if (!utils.isNull(props.onDataArrive)) {
266
+ props.onDataArrive(result);
267
+ }
268
+
269
+ updateScrollBarPadding();
270
+ }
271
+ }, null);
272
+ }
294
273
  }
295
274
 
296
275
  setFetchEnabled(true);