@agilemotion/oui-react-js 1.8.56 → 1.8.58

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 (187) hide show
  1. package/dist/ApplicationManager.js +446 -472
  2. package/dist/BasicApp.js +30 -0
  3. package/dist/BasicAppHome.js +2 -3
  4. package/dist/DateUtils.js +2 -2
  5. package/dist/DynamicJS.js +93 -101
  6. package/dist/InteractionPortalAppHome.js +1 -1
  7. package/dist/InteractionPortalApp_old.js +1 -2
  8. package/dist/MouseTracker.js +23 -0
  9. package/dist/RestService.js +13 -11
  10. package/dist/RestUtils.js +1 -1
  11. package/dist/TypedValue.js +15 -14
  12. package/dist/Utils.js +121 -114
  13. package/dist/ViewContext.js +152 -159
  14. package/dist/assets/jss/components/authNavbarStyle.js +34 -37
  15. package/dist/assets/jss/components/cardHeaderStyle.js +11 -18
  16. package/dist/assets/jss/components/customDropdownStyle.js +25 -27
  17. package/dist/assets/jss/components/customInputStyle.js +7 -3
  18. package/dist/assets/jss/components/dropdownStyle.js +14 -11
  19. package/dist/assets/jss/components/footerStyle.js +17 -12
  20. package/dist/assets/jss/components/headerLinksStyle.js +12 -9
  21. package/dist/assets/jss/components/headerStyle.js +24 -26
  22. package/dist/assets/jss/components/navbarLinksStyle.js +12 -9
  23. package/dist/assets/jss/components/navbarStyle.js +24 -26
  24. package/dist/assets/jss/components/sidebarStyle.js +42 -42
  25. package/dist/assets/jss/components/typographyStyle.js +7 -3
  26. package/dist/assets/jss/rootStyle.js +30 -34
  27. package/dist/assets/jss/views/layoutStyle.js +12 -9
  28. package/dist/assets/jss/views/loginStyle.js +9 -6
  29. package/dist/components/AlertBar.js +1 -1
  30. package/dist/components/Button.js +18 -11
  31. package/dist/components/Calendar.js +9 -6
  32. package/dist/components/Chart.js +1 -1
  33. package/dist/components/DataGrid.css +12 -3
  34. package/dist/components/DataGrid.js +115 -56
  35. package/dist/components/DataGridColumn.js +22 -4
  36. package/dist/components/DocumentTemplateDesigner.js +9 -5
  37. package/dist/components/DocumentTemplateDesignerComponent.js +49 -549
  38. package/dist/components/DocumentTemplatePlaceholderDialog.js +3 -4
  39. package/dist/components/DocumentViewer.js +19 -6
  40. package/dist/components/ElementResizeHandler.js +177 -174
  41. package/dist/components/FaceApi.js +2 -2
  42. package/dist/components/FileThumb.js +5 -5
  43. package/dist/components/Graph.js +77 -74
  44. package/dist/components/GraphNode.js +39 -36
  45. package/dist/components/HtmlPanel.js +2 -1
  46. package/dist/components/Icon.js +1 -2
  47. package/dist/components/PDFViewer.js +2 -3
  48. package/dist/components/PopupView.js +1 -1
  49. package/dist/components/Portlet.js +3 -2
  50. package/dist/components/RegularButton.js +17 -14
  51. package/dist/components/SocketManager.js +97 -94
  52. package/dist/components/StepperTitleBar.js +7 -6
  53. package/dist/components/TabPage.js +10 -7
  54. package/dist/components/TabPanel.js +11 -6
  55. package/dist/components/TableCellContent.js +13 -9
  56. package/dist/components/TemplateDesigner.js +2 -2
  57. package/dist/components/TemplateItemEventHandler.js +232 -228
  58. package/dist/components/TemplateTable.js +32 -29
  59. package/dist/components/TitleBar.js +2 -2
  60. package/dist/components/Toolbar.js +58 -22
  61. package/dist/components/Tree.js +3 -3
  62. package/dist/components/WordDocumentViewer.css +7 -0
  63. package/dist/components/WordDocumentViewer.js +329 -109
  64. package/dist/components/card/Card.js +18 -15
  65. package/dist/components/card/CardAvatar.js +11 -8
  66. package/dist/components/card/CardBody.js +16 -13
  67. package/dist/components/card/CardFooter.js +15 -12
  68. package/dist/components/card/CardHeader.js +16 -13
  69. package/dist/components/card/CardIcon.js +9 -6
  70. package/dist/components/card/CardText.js +9 -6
  71. package/dist/components/customInput/File.js +4 -5
  72. package/dist/components/dashboard/FoldingSideTabDashboard.bck.js +1 -1
  73. package/dist/components/dashboard/FoldingSideTabDashboard.js +2 -3
  74. package/dist/components/dashboard/components/Header.js +6 -4
  75. package/dist/components/dashboard/components/LeftDrawer.js +2 -2
  76. package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +26 -28
  77. package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.bck.js +182 -188
  78. package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +27 -30
  79. package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +12 -14
  80. package/dist/components/drag-spec-design.json +15 -0
  81. package/dist/components/facialRecognition/FaceRecognitionComponent.js +10 -11
  82. package/dist/components/facialRecognition/service/faceApi.js +3 -3
  83. package/dist/components/form/AddressSearch.js +8 -5
  84. package/dist/components/form/AutoComplete.js +4 -4
  85. package/dist/components/form/BaseField.js +3 -2
  86. package/dist/components/form/CurrencyField.js +8 -8
  87. package/dist/components/form/DatePicker.js +3 -2
  88. package/dist/components/form/FieldSet.js +2 -1
  89. package/dist/components/form/Form.css +1 -1
  90. package/dist/components/form/Form.js +11 -8
  91. package/dist/components/form/GridField.js +4 -3
  92. package/dist/components/form/IconField.js +2 -1
  93. package/dist/components/form/ImageEditor.js +13 -8
  94. package/dist/components/form/LookupField.js +8 -7
  95. package/dist/components/form/MultiFileUploadField.js +14 -8
  96. package/dist/components/form/SelectItem.js +7 -6
  97. package/dist/components/form/TextField.js +6 -6
  98. package/dist/components/form/TimePicker.js +3 -2
  99. package/dist/components/form/TransferList.js +2 -2
  100. package/dist/components/form/UploadField.js +5 -5
  101. package/dist/components/grid/GridContainer.js +7 -4
  102. package/dist/components/grid/GridItem.js +7 -4
  103. package/dist/components/layout/CollapsiblePanel.js +7 -5
  104. package/dist/components/layout/Layout.js +5 -5
  105. package/dist/components/layout/View.js +6 -5
  106. package/dist/components/layout/ViewContainer.js +1 -2
  107. package/dist/components/layout/ViewPort.js +1 -1
  108. package/dist/components/layout/Window.js +2 -3
  109. package/dist/components/layout/WindowDialog.js +9 -7
  110. package/dist/components/layout/WindowViewPort.js +3 -3
  111. package/dist/components/media/Chat.js +2 -1
  112. package/dist/components/media/MediaSoupHelper.js +57 -53
  113. package/dist/components/media/SocketRequest.js +9 -7
  114. package/dist/components/media/SocketResponse.js +7 -5
  115. package/dist/components/media/Timer.js +1 -2
  116. package/dist/components/media/Toolbar.js +3 -3
  117. package/dist/components/media/ToolbarButton.js +23 -24
  118. package/dist/components/media/Toolbar_bck.js +3 -3
  119. package/dist/components/media/Tracks.js +24 -19
  120. package/dist/components/media/TrainingRoom.js +3 -4
  121. package/dist/components/media/Transports.js +21 -17
  122. package/dist/components/media/VCEventManager.js +25 -24
  123. package/dist/components/media/VCEventType.js +81 -79
  124. package/dist/components/media/VCParticipantList.js +1 -2
  125. package/dist/components/media/VCParticipantListItem.js +2 -3
  126. package/dist/components/media/VCRoomParticipant.js +4 -5
  127. package/dist/components/media/VCRoomRecorder.js +163 -160
  128. package/dist/components/media/VCRoomWorkspace.js +3 -4
  129. package/dist/components/media/Video.js +1 -2
  130. package/dist/components/media/VideoPlayer.js +1 -2
  131. package/dist/components/media/chat/ChatPoll.js +15 -15
  132. package/dist/components/media/chat/ChatRoom.js +15 -15
  133. package/dist/components/media/chat/ChatRoomItem.js +2 -3
  134. package/dist/components/media/chat/ChatRoomList.js +1 -2
  135. package/dist/components/media/chat/ChatRoomWrapper.js +1 -1
  136. package/dist/components/media/chat/PollContainer.js +14 -8
  137. package/dist/components/media/chat/PollResult.js +1 -2
  138. package/dist/components/menu/MenuBars.js +8 -5
  139. package/dist/components/menu/MenuButton.js +11 -5
  140. package/dist/components/menu/MenuItem.js +13 -6
  141. package/dist/components/menu/MenuLink.js +2 -1
  142. package/dist/components/navbars/HomeNavbar.js +43 -41
  143. package/dist/components/navbars/PortalNavbar.js +1 -2
  144. package/dist/components/signatures/AgilitySignaturePanel.js +39 -15
  145. package/dist/components/signatures/{DocumentContainer.js → HtmlSignatureDocumentContainer.js} +4 -4
  146. package/dist/components/signatures/ImageSignatureInput.js +27 -16
  147. package/dist/components/signatures/ResponsiveTable.js +1 -1
  148. package/dist/components/signatures/SearchView.js +1 -1
  149. package/dist/components/signatures/SignatureInput.js +42 -98
  150. package/dist/components/signatures/SignatureInputProps.js +1 -1
  151. package/dist/components/signatures/SignatureTemplateDesigner.js +13 -10
  152. package/dist/components/signatures/Toolbar.js +7 -3
  153. package/dist/components/signatures/ViewUtils.js +21 -16
  154. package/dist/event/ActionHandlers.js +10 -7
  155. package/dist/event/Event.js +15 -13
  156. package/dist/event/EventListener.js +39 -41
  157. package/dist/event/EventType.js +24 -19
  158. package/dist/event/Observable.js +120 -125
  159. package/dist/event/RouteActionHandler.js +4 -4
  160. package/dist/event/ScriptActionHandler.js +1 -1
  161. package/dist/event/ServiceCallActionHandler.js +1 -1
  162. package/dist/interaction/CursorOverlay.js +48 -0
  163. package/dist/interaction/DragContext.js +39 -0
  164. package/dist/interaction/GrabContext.js +40 -0
  165. package/dist/js/Addresses.js +9 -8
  166. package/dist/js/Calendar.js +152 -149
  167. package/dist/js/Docs.js +92 -87
  168. package/dist/js/DynamicLib.js +9 -6
  169. package/dist/js/Media.js +134 -131
  170. package/dist/js/ProcurementMeetings.js +81 -78
  171. package/dist/js/Validators.js +53 -50
  172. package/dist/js/Windows.js +35 -32
  173. package/dist/redux/store/ConfigureStore.js +8 -5
  174. package/dist/redux/store/DashboardStore.js +13 -12
  175. package/dist/redux/store/SecurityStore.js +9 -6
  176. package/dist/security/TokenManager.js +1 -1
  177. package/dist/view/Dashboard.js +11 -12
  178. package/dist/view/security/ForgotPassword.js +3 -3
  179. package/dist/view/security/ForgotPasswordBasic.js +1 -1
  180. package/dist/view/security/Login.js +4 -4
  181. package/dist/view/security/LoginBasic.js +2 -2
  182. package/dist/view/security/LoginInteractionPortal.js +2 -2
  183. package/dist/view/security/ResetPassword.js +1 -1
  184. package/dist/view/security/ResetPasswordBasic.js +1 -1
  185. package/dist/view/security/Security.js +4 -4
  186. package/package.json +10 -10
  187. package/dist/components/DocumentTemplateDesignerComponent2.js +0 -585
@@ -11,13 +11,12 @@ var _reactRouterDom = require("react-router-dom");
11
11
  require("./FacialRecognition.css");
12
12
  var _Button = _interopRequireDefault(require("@mui/material/Button"));
13
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
16
15
  function getModelsBase() {
17
16
  try {
18
17
  const u = new URL('../../assets/models/ssd_mobilenetv1_model-weights_manifest.json', import.meta.url);
19
18
  return u.toString().replace(/[^/]+$/, '');
20
- } catch {
19
+ } catch (_unused) {
21
20
  return '';
22
21
  }
23
22
  }
@@ -54,7 +53,7 @@ const FaceRecognitionComponent = _ref => {
54
53
  loadCamera();
55
54
  } else if (step === 3 && streamRef.current) {
56
55
  const stream = streamRef.current;
57
- stream?.getTracks().forEach(track => track.stop());
56
+ stream === null || stream === void 0 || stream.getTracks().forEach(track => track.stop());
58
57
  }
59
58
  }, [step]);
60
59
  (0, _react.useEffect)(() => {
@@ -85,7 +84,7 @@ const FaceRecognitionComponent = _ref => {
85
84
  // 👇 THIS is the cleanup for stopping the webcam
86
85
  return () => {
87
86
  const stream = streamRef.current;
88
- stream?.getTracks().forEach(track => track.stop());
87
+ stream === null || stream === void 0 || stream.getTracks().forEach(track => track.stop());
89
88
  };
90
89
  }, []);
91
90
  const detectFace = async () => {
@@ -127,18 +126,18 @@ const FaceRecognitionComponent = _ref => {
127
126
  const response = mode === 'register' ? await (0, _faceApi2.registerFace)(descriptor, faceDataUrl, processingPath) : await (0, _faceApi2.verifyFace)(descriptor, processingPath);
128
127
  if (response.outcome !== 'SUCCESS') {
129
128
  setStep(3);
130
- setResultMessage(response.message || `Failed to ${mode} face.`);
129
+ setResultMessage(response.message || "Failed to ".concat(mode, " face."));
131
130
  setResultSuccess(false);
132
131
  onComplete(response);
133
132
  return;
134
133
  }
135
- setResultMessage(response.message || `${mode === 'register' ? 'Registered' : 'Verified'} successfully!`);
134
+ setResultMessage(response.message || "".concat(mode === 'register' ? 'Registered' : 'Verified', " successfully!"));
136
135
  setResultSuccess(true);
137
136
  setStep(3);
138
137
  onComplete(response);
139
138
  } catch (err) {
140
139
  //console.log('API errors:', err);
141
- setResultMessage('Verification failed.' || `${mode === 'verify' ? 'Verification' : 'Registeration'} failed!`);
140
+ setResultMessage('Verification failed.' || "".concat(mode === 'verify' ? 'Verification' : 'Registeration', " failed!"));
142
141
  setStep(3);
143
142
  //alert('Something went wrong while processing your face. Please try again.');
144
143
  } finally {
@@ -202,10 +201,10 @@ const FaceRecognitionComponent = _ref => {
202
201
  onClick: captureImage,
203
202
  disabled: loading || !videoRef.current
204
203
  }, loading ? 'Processing...' : 'Capture'))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("h2", {
205
- className: `text-xl font-bold mb-2 ${resultSuccess ? 'text-green-600' : 'text-red-600'}`
204
+ className: "text-xl font-bold mb-2 ".concat(resultSuccess ? 'text-green-600' : 'text-red-600')
206
205
  }, resultSuccess ? mode === 'register' ? "" : "" : "Something went wrong"), /*#__PURE__*/_react.default.createElement("p", {
207
- className: `text-xl font-bold mb-2 ${resultSuccess ? 'text-green-600' : 'text-red-600'}`
208
- }, resultMessage || `Face ${mode} result.`), imageUrl && /*#__PURE__*/_react.default.createElement("img", {
206
+ className: "text-xl font-bold mb-2 ".concat(resultSuccess ? 'text-green-600' : 'text-red-600')
207
+ }, resultMessage || "Face ".concat(mode, " result.")), imageUrl && /*#__PURE__*/_react.default.createElement("img", {
209
208
  src: imageUrl,
210
209
  alt: "Captured Face",
211
210
  className: "rounded-xl border shadow-lg w-full"
@@ -34,21 +34,21 @@ const postJSON = async (url, payload) => {
34
34
  }
35
35
  return await response.json();
36
36
  } catch (error) {
37
- console.log(`❌ Request to ${url} failed:`, error);
37
+ console.log("\u274C Request to ".concat(url, " failed:"), error);
38
38
  const message = error || error.statusText || 'Unknown error';
39
39
  throw new Error(message);
40
40
  //return await response.json();
41
41
  }
42
42
  };
43
43
  const registerFace = async (descriptor, faceImage, path) => {
44
- return await postJSON(`${API_BASE}${_ApplicationManager.default.getContextRoot()}${path}`, {
44
+ return await postJSON("".concat(API_BASE).concat(_ApplicationManager.default.getContextRoot()).concat(path), {
45
45
  descriptor: serializeDescriptor(descriptor),
46
46
  faceImage
47
47
  });
48
48
  };
49
49
  exports.registerFace = registerFace;
50
50
  const verifyFace = async (descriptor, path) => {
51
- return await postJSON(`${API_BASE}${_ApplicationManager.default.getContextRoot()}${path}`, {
51
+ return await postJSON("".concat(API_BASE).concat(_ApplicationManager.default.getContextRoot()).concat(path), {
52
52
  descriptor: serializeDescriptor(descriptor)
53
53
  });
54
54
  };
@@ -11,8 +11,11 @@ var _BaseField = require("./BaseField");
11
11
  var _Utils = _interopRequireDefault(require("../../Utils"));
12
12
  var _Close = _interopRequireDefault(require("@mui/icons-material/Close"));
13
13
  var _InputAdornment = _interopRequireDefault(require("@mui/material/InputAdornment"));
14
+ const _excluded = ["inputRef", "onFocus", "onBlur"];
14
15
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
16
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
17
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
18
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
16
19
  const AddressSearchWrapper = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwardRef((props, ref) => {
17
20
  const base = props.base;
18
21
  const getAddressProp = (components, id) => {
@@ -42,11 +45,11 @@ const AddressSearchWrapper = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_reac
42
45
  }, /*#__PURE__*/_react.default.createElement(_Close.default, null)) : null,
43
46
  inputComponent: _ref => {
44
47
  let {
45
- inputRef,
46
- onFocus,
47
- onBlur,
48
- ...props
49
- } = _ref;
48
+ inputRef,
49
+ onFocus,
50
+ onBlur
51
+ } = _ref,
52
+ props = _objectWithoutProperties(_ref, _excluded);
50
53
  return /*#__PURE__*/_react.default.createElement(_reactGoogleAutocomplete.default, _extends({
51
54
  apiKey: 'AIzaSyCocunxfGatXwjt1uASpPxQ0PKcONSi7wY'
52
55
  }, props, {
@@ -12,8 +12,7 @@ var _Autocomplete = _interopRequireDefault(require("@mui/lab/Autocomplete"));
12
12
  require("./Form.css");
13
13
  var _ApplicationManager = _interopRequireDefault(require("../../ApplicationManager"));
14
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
16
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
17
16
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
18
17
  const status = response => {
19
18
  if (response.ok) {
@@ -71,7 +70,7 @@ const AutoCompleteWrapper = props => {
71
70
  },
72
71
  body: JSON.stringify({
73
72
  "parameters": [{
74
- "name": `${props.config.attributes.searchAttribute}`,
73
+ "name": "".concat(props.config.attributes.searchAttribute),
75
74
  "value": inputValue
76
75
  }],
77
76
  "pageSize": 60,
@@ -81,7 +80,8 @@ const AutoCompleteWrapper = props => {
81
80
  let records = JSON.parse(data).records;
82
81
  let newOptions = [];
83
82
  for (const record of records) {
84
- if (!baseValue.current?.find(o => o[props.config.attributes.searchAttribute] === record[props.config.attributes.searchAttribute])) {
83
+ var _baseValue$current;
84
+ if (!((_baseValue$current = baseValue.current) !== null && _baseValue$current !== void 0 && _baseValue$current.find(o => o[props.config.attributes.searchAttribute] === record[props.config.attributes.searchAttribute]))) {
85
85
  newOptions.push(record[props.config.attributes.searchAttribute]);
86
86
  }
87
87
  if (!entityStore.find(o => o.username === record.username)) {
@@ -13,6 +13,7 @@ var _EventType = _interopRequireDefault(require("../../event/EventType"));
13
13
  var _DynamicJS = _interopRequireDefault(require("../../DynamicJS"));
14
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
15
  const BaseField = props => {
16
+ var _props$config$attribu, _props$config$attribu2;
16
17
  const [hasError, setHasError] = _react.default.useState(false);
17
18
  const [errorMessage, setErrorMessage] = _react.default.useState('');
18
19
  const [valueObject, setValueObject] = _react.default.useState({});
@@ -81,7 +82,7 @@ const BaseField = props => {
81
82
  valid: true
82
83
  };
83
84
  if (!_Utils.default.isNull(config.validator) && !_Utils.default.isNull(config.validator.script)) {
84
- result = _DynamicJS.default.executeScriptObject(`${config.id}Validator`, config.validator.script);
85
+ result = _DynamicJS.default.executeScriptObject("".concat(config.id, "Validator"), config.validator.script);
85
86
  if (!result.valid) {
86
87
  result.message = result.message ? result.message : config.validator.message;
87
88
  }
@@ -307,7 +308,7 @@ const BaseField = props => {
307
308
  key: config.id,
308
309
  style: {
309
310
  textAlign: 'left',
310
- marginLeft: !_Utils.default.isNull(props.config.attributes?.style?.marginLeft) ? props.config.attributes?.style?.marginLeft : props.config.index === 0 ? 0 : '8px',
311
+ marginLeft: !_Utils.default.isNull((_props$config$attribu = props.config.attributes) === null || _props$config$attribu === void 0 || (_props$config$attribu = _props$config$attribu.style) === null || _props$config$attribu === void 0 ? void 0 : _props$config$attribu.marginLeft) ? (_props$config$attribu2 = props.config.attributes) === null || _props$config$attribu2 === void 0 || (_props$config$attribu2 = _props$config$attribu2.style) === null || _props$config$attribu2 === void 0 ? void 0 : _props$config$attribu2.marginLeft : props.config.index === 0 ? 0 : '8px',
311
312
  display: !visible || _Utils.default.getComponentAttribute(config, 'hidden', false) === true ? 'none' : 'block'
312
313
  }
313
314
  }, /*#__PURE__*/_react.default.createElement("span", null, props.children({
@@ -11,17 +11,17 @@ var _BaseField = require("./BaseField");
11
11
  var _Utils = _interopRequireDefault(require("../../Utils"));
12
12
  var _reactRedux = require("react-redux");
13
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
16
15
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
17
16
  const CurrencyFieldWrapper = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwardRef((props, ref) => {
17
+ var _props$config$attribu, _props$config$attribu2, _props$config$attribu3, _props$config$attribu4, _props$config$attribu5, _props$config$attribu6;
18
18
  const base = props.base;
19
- const width = !_Utils.default.isNull(props.config.attributes?.style?.width) ? props.config.attributes.style.width : "100%";
20
- const maxWidth = !_Utils.default.isNull(props.config.attributes?.style?.maxWidth) ? props.config.attributes.style.maxWidth : null;
21
- const minWidth = !_Utils.default.isNull(props.config.attributes?.style?.minWidth) ? props.config.attributes.style.minWidth : "232px";
22
- const height = !_Utils.default.isNull(props.config.attributes?.style?.height) ? props.config.attributes.style.height : null;
23
- const currency = !_Utils.default.isNull(props.config.attributes?.currency) ? props.config.attributes.currency : "ZAR";
24
- const currencySymbol = !_Utils.default.isNull(props.config.attributes?.currencySymbol) ? props.config.attributes.currencySymbol : "R";
19
+ const width = !_Utils.default.isNull((_props$config$attribu = props.config.attributes) === null || _props$config$attribu === void 0 || (_props$config$attribu = _props$config$attribu.style) === null || _props$config$attribu === void 0 ? void 0 : _props$config$attribu.width) ? props.config.attributes.style.width : "100%";
20
+ const maxWidth = !_Utils.default.isNull((_props$config$attribu2 = props.config.attributes) === null || _props$config$attribu2 === void 0 || (_props$config$attribu2 = _props$config$attribu2.style) === null || _props$config$attribu2 === void 0 ? void 0 : _props$config$attribu2.maxWidth) ? props.config.attributes.style.maxWidth : null;
21
+ const minWidth = !_Utils.default.isNull((_props$config$attribu3 = props.config.attributes) === null || _props$config$attribu3 === void 0 || (_props$config$attribu3 = _props$config$attribu3.style) === null || _props$config$attribu3 === void 0 ? void 0 : _props$config$attribu3.minWidth) ? props.config.attributes.style.minWidth : "232px";
22
+ const height = !_Utils.default.isNull((_props$config$attribu4 = props.config.attributes) === null || _props$config$attribu4 === void 0 || (_props$config$attribu4 = _props$config$attribu4.style) === null || _props$config$attribu4 === void 0 ? void 0 : _props$config$attribu4.height) ? props.config.attributes.style.height : null;
23
+ const currency = !_Utils.default.isNull((_props$config$attribu5 = props.config.attributes) === null || _props$config$attribu5 === void 0 ? void 0 : _props$config$attribu5.currency) ? props.config.attributes.currency : "ZAR";
24
+ const currencySymbol = !_Utils.default.isNull((_props$config$attribu6 = props.config.attributes) === null || _props$config$attribu6 === void 0 ? void 0 : _props$config$attribu6.currencySymbol) ? props.config.attributes.currencySymbol : "R";
25
25
  const textRef = (0, _react.useRef)(null);
26
26
  const [displayValue, setDisplayValue] = (0, _react.useState)("");
27
27
  const formatter = new Intl.NumberFormat("en-ZA", {
@@ -57,8 +57,9 @@ const CustomDatePickerComponent = props => {
57
57
  return id === "minDate" ? "1970-01-01" : "9000-12-31";
58
58
  };
59
59
  _react.default.useEffect(() => {
60
- setMinDate(props.config.attributes?.minDate);
61
- setMaxDate(props.config.attributes?.maxDate);
60
+ var _props$config$attribu, _props$config$attribu2;
61
+ setMinDate((_props$config$attribu = props.config.attributes) === null || _props$config$attribu === void 0 ? void 0 : _props$config$attribu.minDate);
62
+ setMaxDate((_props$config$attribu2 = props.config.attributes) === null || _props$config$attribu2 === void 0 ? void 0 : _props$config$attribu2.maxDate);
62
63
  }, []);
63
64
  _react.default.useEffect(() => {
64
65
  if (minDate === null) {
@@ -479,6 +479,7 @@ const FieldSet = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.fo
479
479
  marginRight: '0'
480
480
  }
481
481
  }, row.fields.map((field, index) => {
482
+ var _field$attributes, _field$attributes2;
482
483
  let colspan;
483
484
  let width;
484
485
  if (_Utils.default.isNull(field.attributes) || _Utils.default.isNull(field.attributes.colspan)) {
@@ -501,7 +502,7 @@ const FieldSet = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.fo
501
502
  width: width + '%'
502
503
  };
503
504
  field.index = index;
504
- let style = field.attributes?.containerStyle ? _Utils.default.mergeObjects(field.attributes?.containerStyle, containerStyle) : containerStyle;
505
+ let style = (_field$attributes = field.attributes) !== null && _field$attributes !== void 0 && _field$attributes.containerStyle ? _Utils.default.mergeObjects((_field$attributes2 = field.attributes) === null || _field$attributes2 === void 0 ? void 0 : _field$attributes2.containerStyle, containerStyle) : containerStyle;
505
506
  return /*#__PURE__*/_react.default.createElement("div", {
506
507
  key: (i + 1) * index,
507
508
  className: "col-*-* oui-form-item-container",
@@ -22,7 +22,7 @@
22
22
  width: 100%;
23
23
  }
24
24
 
25
- .oui-form-item-container .ouiTable .oui-table-row {
25
+ .oui-form-item-container .ouiTable .oui-table-row:not(:last-child) {
26
26
  border-bottom: 1px solid #ddd;
27
27
  }
28
28
 
@@ -19,6 +19,11 @@ var _EventType = _interopRequireDefault(require("../../event/EventType"));
19
19
  var _Event = _interopRequireDefault(require("../../event/Event"));
20
20
  var _clear = require("@testing-library/user-event/dist/clear");
21
21
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
22
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
23
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
25
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
26
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
22
27
  const useStyles = (0, _styles.makeStyles)(theme => ({
23
28
  container: {
24
29
  display: 'flex',
@@ -233,7 +238,7 @@ const Form = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwar
233
238
  function loadData(eventConfig, componentConfig) {
234
239
  let eventData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
235
240
  let service = !_Utils.default.isNull(componentConfig.dataService) ? componentConfig.dataService : eventConfig !== null ? eventConfig.dataService : null;
236
- let componentValue = !_Utils.default.isNull(componentConfig.value) ? _ApplicationManager.default.resolveParameterConfigValue(componentConfig.value, eventData) : eventConfig !== null ? _ApplicationManager.default.resolveParameterConfigValue(eventConfig.value, eventData) : null;
241
+ let componentValue = !_Utils.default.isNull(componentConfig.value) ? _ApplicationManager.default.resolveParameterConfigValue(componentConfig.value, eventData) : !_Utils.default.isNull(eventConfig) ? _ApplicationManager.default.resolveParameterConfigValue(eventConfig.value, eventData) : null;
237
242
  if (!_Utils.default.isNull(service)) {
238
243
  doClear();
239
244
  if (service.type === 'rpc') {
@@ -288,7 +293,7 @@ const Form = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwar
288
293
  let path = _Utils.default.getPropertyChainPath(componentValue);
289
294
  if (!_Utils.default.isNull(path.valueObject)) {
290
295
  _Observable.default.addSystemGeneratedSubscription(props.viewId, props.viewId, props.config.id, () => {
291
- let value = _DynamicJS.default.executeScript(`${props.config.id}ValueEvaluator`, componentValue);
296
+ let value = _DynamicJS.default.executeScript("".concat(props.config.id, "ValueEvaluator"), componentValue);
292
297
  if (!_Utils.default.isNull(value)) {
293
298
  let val = value;
294
299
  if (binder === 'MAP_OBJECT' && _Utils.default.isNull(value.map)) {
@@ -493,10 +498,9 @@ const Form = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwar
493
498
  const validateField = (field, id, value) => {
494
499
  if (loadingRef.current === false) {
495
500
  field.error = null;
496
- let invalid = field.handle.api.validate({
497
- ...values.current,
501
+ let invalid = field.handle.api.validate(_objectSpread(_objectSpread({}, values.current), {}, {
498
502
  [id]: value
499
- }, value) === false;
503
+ }), value) === false;
500
504
  doValidateParent(field, invalid);
501
505
  return invalid;
502
506
  }
@@ -602,10 +606,9 @@ const Form = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwar
602
606
  return selectedValue;
603
607
  };
604
608
  const updateValue = (name, value) => {
605
- props.valueChangeHandler({
606
- ...values.current,
609
+ props.valueChangeHandler(_objectSpread(_objectSpread({}, values.current), {}, {
607
610
  [name]: value
608
- });
611
+ }));
609
612
  };
610
613
  function render(form) {
611
614
  return _Utils.default.isNull(form.sections) || form.sections.length === 0 ? null : /*#__PURE__*/_react.default.createElement("div", null, form.sections.map(section => {
@@ -48,9 +48,10 @@ const GridFieldWrapper = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.de
48
48
  const [hasButtons] = _react.default.useState(_Utils.default.isNull(props.config.attributes) || _Utils.default.isNull(props.config.attributes.addDisabled) || _Utils.default.evaluateBooleanExpression(props.config.attributes.addDisabled, props.config.id) === false || _Utils.default.isNull(props.config.attributes.removeDisabled) || _Utils.default.evaluateBooleanExpression(props.config.attributes.removeDisabled, props.config.id) === false);
49
49
  const initialValueSet = _react.default.useRef(false);
50
50
  _react.default.useEffect(() => {
51
+ var _props$config$attribu, _props$config$attribu2;
51
52
  let numCrudButtons = 0;
52
- let addDisabled = _Utils.default.evaluateBooleanExpression(props.config.attributes?.addDisabled, props.config.id);
53
- let removeDisabled = _Utils.default.evaluateBooleanExpression(props.config.attributes?.removeDisabled, props.config.id);
53
+ let addDisabled = _Utils.default.evaluateBooleanExpression((_props$config$attribu = props.config.attributes) === null || _props$config$attribu === void 0 ? void 0 : _props$config$attribu.addDisabled, props.config.id);
54
+ let removeDisabled = _Utils.default.evaluateBooleanExpression((_props$config$attribu2 = props.config.attributes) === null || _props$config$attribu2 === void 0 ? void 0 : _props$config$attribu2.removeDisabled, props.config.id);
54
55
  if (!addDisabled) {
55
56
  numCrudButtons++;
56
57
  }
@@ -94,7 +95,7 @@ const GridFieldWrapper = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.de
94
95
  error: base.hasError
95
96
  }, label), /*#__PURE__*/_react.default.createElement("div", {
96
97
  style: {
97
- border: `1px solid ${base.hasError ? '#f44336' : '#e1e1e1'}`,
98
+ border: "1px solid ".concat(base.hasError ? '#f44336' : '#e1e1e1'),
98
99
  width: '100%',
99
100
  height: '100%',
100
101
  borderRadius: '4px',
@@ -11,8 +11,9 @@ var _Utils = _interopRequireDefault(require("../../Utils"));
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
13
13
  const IconWrapper = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwardRef((props, ref) => {
14
+ var _props$config$attribu;
14
15
  const base = props.base;
15
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, props.config.attributes?.label && /*#__PURE__*/_react.default.createElement("div", {
16
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ((_props$config$attribu = props.config.attributes) === null || _props$config$attribu === void 0 ? void 0 : _props$config$attribu.label) && /*#__PURE__*/_react.default.createElement("div", {
16
17
  style: _Utils.default.mergeStyles({}, props.config)
17
18
  }, /*#__PURE__*/_react.default.createElement("label", null, _Utils.default.getComponentAttribute(props.config, 'label', ''))), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Icon.default, {
18
19
  id: props.config.iconId,
@@ -18,6 +18,11 @@ var _Observable = _interopRequireDefault(require("../../event/Observable"));
18
18
  var _EventType = _interopRequireDefault(require("../../event/EventType"));
19
19
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
20
20
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
21
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
24
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
25
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
26
  const useStyles = (0, _styles.makeStyles)(theme => ({
22
27
  button: {
23
28
  margin: theme.spacing(1)
@@ -44,6 +49,7 @@ const json = response => {
44
49
  };
45
50
  const location = window.location.protocol + "//" + window.location.hostname;
46
51
  const ImageEditorComponent = exports.ImageEditorComponent = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwardRef((props, ref) => {
52
+ var _base$value;
47
53
  const [viewerFile, setViewerFile] = _react.default.useState(!_Utils.default.isNull(props.initialFile) ? props.initialFile : null);
48
54
  const [angle, setAngle] = _react.default.useState(0);
49
55
  const [zoomDepth, setZoomDepth] = _react.default.useState(null);
@@ -106,7 +112,7 @@ const ImageEditorComponent = exports.ImageEditorComponent = /*#__PURE__*/_react.
106
112
  for (let i = 0; i < bin.length; i++) arr[i] = bin.charCodeAt(i);
107
113
  const ext = mime.split("/")[1] || "png";
108
114
  const base = originalFile.name.replace(/\.[^.]+$/, "");
109
- return new File([arr], `${base}-processed.${ext}`, {
115
+ return new File([arr], "".concat(base, "-processed.").concat(ext), {
110
116
  type: mime,
111
117
  lastModified: Date.now()
112
118
  });
@@ -290,10 +296,9 @@ const ImageEditorComponent = exports.ImageEditorComponent = /*#__PURE__*/_react.
290
296
  if (rotateMode === null || rotateMode === 'SERVER') {
291
297
  process(data => {
292
298
  files[0].base64 = data;
293
- setViewerFile({
294
- ...files[0],
299
+ setViewerFile(_objectSpread(_objectSpread({}, files[0]), {}, {
295
300
  base64: data
296
- });
301
+ }));
297
302
  handleloadEnded(files, data);
298
303
  }, files[0].base64, 'rotate' + direction);
299
304
  } else {
@@ -325,14 +330,14 @@ const ImageEditorComponent = exports.ImageEditorComponent = /*#__PURE__*/_react.
325
330
  }, /*#__PURE__*/_react.default.createElement("input", {
326
331
  accept: "image/jpeg,image/gif,image/png,image/x-eps",
327
332
  className: classes.input,
328
- id: `contained-button-file-${props.config.id}`,
333
+ id: "contained-button-file-".concat(props.config.id),
329
334
  disabled: base.disabled,
330
335
  required: base.required,
331
336
  multiple: multiple,
332
337
  onChange: handleChange(),
333
338
  type: "file"
334
339
  }), /*#__PURE__*/_react.default.createElement("label", {
335
- htmlFor: `contained-button-file-${props.config.id}`
340
+ htmlFor: "contained-button-file-".concat(props.config.id)
336
341
  }, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Button.default, {
337
342
  component: "span",
338
343
  variant: 'contained',
@@ -430,7 +435,7 @@ const ImageEditorComponent = exports.ImageEditorComponent = /*#__PURE__*/_react.
430
435
  backgroundRepeat: 'no-repeat',
431
436
  backgroundSize: 'cover',
432
437
  backgroundColor: 'transparent',
433
- backgroundImage: `url(${require('./transparent.jpeg')})`,
438
+ backgroundImage: "url(".concat(require('./transparent.jpeg'), ")"),
434
439
  border: '4px solid #e1e1e1',
435
440
  borderRadius: '4px'
436
441
  },
@@ -451,7 +456,7 @@ const ImageEditorComponent = exports.ImageEditorComponent = /*#__PURE__*/_react.
451
456
  id: "__image_container"
452
457
  }, /*#__PURE__*/_react.default.createElement("img", {
453
458
  id: "__image",
454
- src: viewerFile?.base64 || base.value?.url,
459
+ src: (viewerFile === null || viewerFile === void 0 ? void 0 : viewerFile.base64) || ((_base$value = base.value) === null || _base$value === void 0 ? void 0 : _base$value.url),
455
460
  alt: '',
456
461
  style: {
457
462
  maxHeight: parseFloat(height.replace('px', '')) - 20 + 'px'
@@ -20,12 +20,13 @@ var _Icon = _interopRequireDefault(require("../Icon"));
20
20
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
21
21
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
22
22
  const LookupFieldComponent = exports.LookupFieldComponent = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.default.forwardRef((props, ref) => {
23
+ var _props$config$attribu, _props$config$attribu2, _props$config$attribu3, _props$config$attribu4, _props$config$attribu5, _props$config$attribu6, _props$config$attribu7, _props$config$attribu8;
23
24
  const [currentSelection, setCurrentSelection] = _react.default.useState(null);
24
25
  const [open, setOpen] = _react.default.useState(false);
25
- const width = props.config.attributes?.style?.width ? props.config.attributes.style.width : "100%";
26
- const minWidth = props.config.attributes?.style?.minWidth ? props.config.attributes.style.minWidth : "240px";
27
- const height = !_Utils.default.isNull(props.config.attributes?.style?.height) ? props.config.attributes.style.height : '41px';
28
- const margin = !_Utils.default.isNull(props.config.attributes?.style?.margin) ? props.config.attributes.style.margin : '4px 0';
26
+ const width = (_props$config$attribu = props.config.attributes) !== null && _props$config$attribu !== void 0 && (_props$config$attribu = _props$config$attribu.style) !== null && _props$config$attribu !== void 0 && _props$config$attribu.width ? props.config.attributes.style.width : "100%";
27
+ const minWidth = (_props$config$attribu2 = props.config.attributes) !== null && _props$config$attribu2 !== void 0 && (_props$config$attribu2 = _props$config$attribu2.style) !== null && _props$config$attribu2 !== void 0 && _props$config$attribu2.minWidth ? props.config.attributes.style.minWidth : "240px";
28
+ const height = !_Utils.default.isNull((_props$config$attribu3 = props.config.attributes) === null || _props$config$attribu3 === void 0 || (_props$config$attribu3 = _props$config$attribu3.style) === null || _props$config$attribu3 === void 0 ? void 0 : _props$config$attribu3.height) ? props.config.attributes.style.height : '41px';
29
+ const margin = !_Utils.default.isNull((_props$config$attribu4 = props.config.attributes) === null || _props$config$attribu4 === void 0 || (_props$config$attribu4 = _props$config$attribu4.style) === null || _props$config$attribu4 === void 0 ? void 0 : _props$config$attribu4.margin) ? props.config.attributes.style.margin : '4px 0';
29
30
  const defaultValue = _Utils.default.isNull(props.value) ? '' : props.value;
30
31
  const [value, setValue] = _react.default.useState(_Utils.default.isNull(props.value) ? null : props.value.id);
31
32
  const base = props.base;
@@ -125,14 +126,14 @@ const LookupFieldComponent = exports.LookupFieldComponent = /*#__PURE__*/_react.
125
126
  }))), /*#__PURE__*/_react.default.createElement(_TextField.default, {
126
127
  style: {
127
128
  marginTop: '0',
128
- width: props.config.attributes?.style?.width || 'calc(100% - 2px)'
129
+ width: ((_props$config$attribu5 = props.config.attributes) === null || _props$config$attribu5 === void 0 || (_props$config$attribu5 = _props$config$attribu5.style) === null || _props$config$attribu5 === void 0 ? void 0 : _props$config$attribu5.width) || 'calc(100% - 2px)'
129
130
  },
130
131
  id: props.id,
131
132
  required: base.required,
132
133
  readOnly: true,
133
134
  disabled: base.disabled,
134
135
  label: !_Utils.default.isNull(props.config.attributes) && !_Utils.default.isNull(props.config.attributes['label']) ? props.config.attributes['label'] : null,
135
- value: value?.__oui_label || value?.dataRecordDescription || defaultValue,
136
+ value: (value === null || value === void 0 ? void 0 : value.__oui_label) || (value === null || value === void 0 ? void 0 : value.dataRecordDescription) || defaultValue,
136
137
  className: props.className || 'lookup-field-input',
137
138
  error: base.hasError,
138
139
  helperText: base.errorMessage,
@@ -160,7 +161,7 @@ const LookupFieldComponent = exports.LookupFieldComponent = /*#__PURE__*/_react.
160
161
  }
161
162
  }, /*#__PURE__*/_react.default.createElement(_DialogTitle.default, {
162
163
  id: "alert-dialog-title"
163
- }, !_Utils.default.isNull(props.config.attributes) && !_Utils.default.isNull(props.config.attributes?.pickerLabel) ? props.config.attributes?.pickerLabel : props.config.attributes?.label), /*#__PURE__*/_react.default.createElement("div", {
164
+ }, !_Utils.default.isNull(props.config.attributes) && !_Utils.default.isNull((_props$config$attribu6 = props.config.attributes) === null || _props$config$attribu6 === void 0 ? void 0 : _props$config$attribu6.pickerLabel) ? (_props$config$attribu7 = props.config.attributes) === null || _props$config$attribu7 === void 0 ? void 0 : _props$config$attribu7.pickerLabel : (_props$config$attribu8 = props.config.attributes) === null || _props$config$attribu8 === void 0 ? void 0 : _props$config$attribu8.label), /*#__PURE__*/_react.default.createElement("div", {
164
165
  style: {
165
166
  maxHeight: "calc(38vh - 52px)",
166
167
  overflow: "auto",
@@ -18,6 +18,11 @@ var _Observable = _interopRequireDefault(require("../../event/Observable"));
18
18
  var _EventType = _interopRequireDefault(require("../../event/EventType"));
19
19
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
20
20
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
21
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
24
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
25
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
26
  const useStyles = (0, _styles.makeStyles)(theme => ({
22
27
  button: {
23
28
  margin: theme.spacing(1)
@@ -43,6 +48,7 @@ const json = response => {
43
48
  };
44
49
  const location = window.location.protocol + '//' + window.location.hostname;
45
50
  const DocumentUpload = props => {
51
+ var _props$config$attribu;
46
52
  const [files, setFiles] = _react.default.useState(null);
47
53
  const [multiple] = _react.default.useState(props.multiple === true);
48
54
  const [payloadStorageMode] = _react.default.useState(props.config.payloadStorageMode || 'base64');
@@ -54,10 +60,9 @@ const DocumentUpload = props => {
54
60
  let val = [];
55
61
  for (const file of files) {
56
62
  if (payloadStorageMode === 'post' && file.documentRepositoryCacheId) {
57
- val.push({
58
- ...file,
63
+ val.push(_objectSpread(_objectSpread({}, file), {}, {
59
64
  payload: null
60
- });
65
+ }));
61
66
  } else {
62
67
  val.push(file);
63
68
  }
@@ -221,7 +226,7 @@ const DocumentUpload = props => {
221
226
  style: _Utils.default.mergeStyles({}, props.config)
222
227
  }, /*#__PURE__*/_react.default.createElement("input", {
223
228
  className: classes.input,
224
- id: `contained-button-file-${props.config.id}`,
229
+ id: "contained-button-file-".concat(props.config.id),
225
230
  disabled: base.disabled,
226
231
  required: base.required,
227
232
  multiple: multiple,
@@ -229,10 +234,10 @@ const DocumentUpload = props => {
229
234
  type: "file"
230
235
  }), /*#__PURE__*/_react.default.createElement("div", null, !base.disabled && /*#__PURE__*/_react.default.createElement("div", {
231
236
  style: {
232
- height: props.config.attributes?.showThumbImages ? null : '48px'
237
+ height: (_props$config$attribu = props.config.attributes) !== null && _props$config$attribu !== void 0 && _props$config$attribu.showThumbImages ? null : '48px'
233
238
  }
234
239
  }, /*#__PURE__*/_react.default.createElement("label", {
235
- htmlFor: `contained-button-file-${props.config.id}`
240
+ htmlFor: "contained-button-file-".concat(props.config.id)
236
241
  }, /*#__PURE__*/_react.default.createElement(_Button.default, {
237
242
  component: "span",
238
243
  disabled: base.disabled,
@@ -251,18 +256,19 @@ const DocumentUpload = props => {
251
256
  marginBottom: '8px'
252
257
  }
253
258
  }, files ? files.map((file, index) => {
259
+ var _props$config$attribu2, _props$config$attribu3;
254
260
  return /*#__PURE__*/_react.default.createElement("div", {
255
261
  key: index,
256
262
  style: {
257
263
  marginLeft: '0',
258
264
  marginRight: '8px',
259
- width: props.config.attributes?.showThumbImages ? null : '100%'
265
+ width: (_props$config$attribu2 = props.config.attributes) !== null && _props$config$attribu2 !== void 0 && _props$config$attribu2.showThumbImages ? null : '100%'
260
266
  }
261
267
  }, /*#__PURE__*/_react.default.createElement(_FileThumb.default, {
262
268
  key: file.name,
263
269
  file: file,
264
270
  disabled: base.disabled,
265
- showImage: props.config.attributes?.showThumbImages,
271
+ showImage: (_props$config$attribu3 = props.config.attributes) === null || _props$config$attribu3 === void 0 ? void 0 : _props$config$attribu3.showThumbImages,
266
272
  onDelete: file => {
267
273
  deleteFile(file);
268
274
  }
@@ -12,14 +12,15 @@ var _material = require("@mui/material");
12
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
13
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
14
14
  const SelectItemComponent = props => {
15
+ var _props$config$attribu, _props$config$attribu2, _props$config$attribu3, _props$config$attribu4;
15
16
  const base = props.base;
16
17
  const [optionsLoaded, setOptionsLoaded] = _react.default.useState(false);
17
18
  const [loadFullOptionList, setLoadFullOptionList] = _react.default.useState(false);
18
19
  const [value, setValue] = _react.default.useState(_Utils.default.isNull(props.value) ? '' : props.value.id);
19
20
  const initialValue = _react.default.useRef(null);
20
- const width = !_Utils.default.isNull(props.config.attributes?.style?.width) ? props.config.attributes.style.width : "100%";
21
- const maxWidth = !_Utils.default.isNull(props.config.attributes?.style?.maxWidth) ? props.config.attributes.style.maxWidth : null;
22
- const minWidth = !_Utils.default.isNull(props.config.attributes?.style?.minWidth) ? props.config.attributes.style.minWidth : "240px";
21
+ const width = !_Utils.default.isNull((_props$config$attribu = props.config.attributes) === null || _props$config$attribu === void 0 || (_props$config$attribu = _props$config$attribu.style) === null || _props$config$attribu === void 0 ? void 0 : _props$config$attribu.width) ? props.config.attributes.style.width : "100%";
22
+ const maxWidth = !_Utils.default.isNull((_props$config$attribu2 = props.config.attributes) === null || _props$config$attribu2 === void 0 || (_props$config$attribu2 = _props$config$attribu2.style) === null || _props$config$attribu2 === void 0 ? void 0 : _props$config$attribu2.maxWidth) ? props.config.attributes.style.maxWidth : null;
23
+ const minWidth = !_Utils.default.isNull((_props$config$attribu3 = props.config.attributes) === null || _props$config$attribu3 === void 0 || (_props$config$attribu3 = _props$config$attribu3.style) === null || _props$config$attribu3 === void 0 ? void 0 : _props$config$attribu3.minWidth) ? props.config.attributes.style.minWidth : "240px";
23
24
  function processValueChange(newValue, isOptionsLoaded) {
24
25
  if (!_Utils.default.isNull(newValue) && !isOptionsLoaded) {
25
26
  let defaultOptions = [];
@@ -89,14 +90,14 @@ const SelectItemComponent = props => {
89
90
  maxWidth: maxWidth
90
91
  }, props.config)
91
92
  }, /*#__PURE__*/_react.default.createElement(_material.InputLabel, {
92
- id: `${props.id}-label`
93
+ id: "".concat(props.id, "-label")
93
94
  }, !_Utils.default.isNull(props.config.attributes) ? props.config.attributes['label'] : ''), /*#__PURE__*/_react.default.createElement(_material.Select, {
94
- labelId: `${props.id}-label`,
95
+ labelId: "".concat(props.id, "-label"),
95
96
  id: props.id,
96
97
  variant: "outlined",
97
98
  value: value,
98
99
  input: /*#__PURE__*/_react.default.createElement(_material.OutlinedInput, {
99
- label: props.config.attributes?.label || ''
100
+ label: ((_props$config$attribu4 = props.config.attributes) === null || _props$config$attribu4 === void 0 ? void 0 : _props$config$attribu4.label) || ''
100
101
  }),
101
102
  onOpen: () => {
102
103
  if (!loadFullOptionList) {