@agilemotion/oui-react-js 1.6.3 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/dist/ApplicationManager.js +675 -1044
  2. package/dist/BasicApp.js +7 -27
  3. package/dist/BasicAppHome.js +27 -101
  4. package/dist/DynamicJS.js +109 -197
  5. package/dist/InteractionPortalApp.js +7 -27
  6. package/dist/InteractionPortalAppHome.js +21 -87
  7. package/dist/InteractionPortalApp_old.js +60 -122
  8. package/dist/RestUtils.js +269 -410
  9. package/dist/TypedValue.js +20 -26
  10. package/dist/Utils.js +295 -481
  11. package/dist/WithRouter.js +9 -17
  12. package/dist/assets/jss/components/authNavbarStyle.js +168 -171
  13. package/dist/assets/jss/components/buttonStyle.js +2 -5
  14. package/dist/assets/jss/components/cardAvatarStyle.js +2 -5
  15. package/dist/assets/jss/components/cardBodyStyle.js +2 -5
  16. package/dist/assets/jss/components/cardFooterStyle.js +2 -5
  17. package/dist/assets/jss/components/cardHeaderStyle.js +20 -17
  18. package/dist/assets/jss/components/cardIconStyle.js +2 -5
  19. package/dist/assets/jss/components/cardStyle.js +2 -5
  20. package/dist/assets/jss/components/cardTextStyle.js +2 -5
  21. package/dist/assets/jss/components/customDropdownStyle.js +171 -173
  22. package/dist/assets/jss/components/customInputStyle.js +5 -13
  23. package/dist/assets/jss/components/dropdownStyle.js +71 -74
  24. package/dist/assets/jss/components/footerStyle.js +14 -23
  25. package/dist/assets/jss/components/headerLinksStyle.js +52 -53
  26. package/dist/assets/jss/components/headerStyle.js +68 -73
  27. package/dist/assets/jss/components/navbarLinksStyle.js +81 -74
  28. package/dist/assets/jss/components/navbarStyle.js +79 -84
  29. package/dist/assets/jss/components/sidebarStyle.js +438 -441
  30. package/dist/assets/jss/components/typographyStyle.js +5 -13
  31. package/dist/assets/jss/rootStyle.js +85 -151
  32. package/dist/assets/jss/views/layoutStyle.js +45 -51
  33. package/dist/assets/jss/views/loginBasicStyle.js +2 -5
  34. package/dist/assets/jss/views/loginBusinessPortalStyle.js +2 -5
  35. package/dist/assets/jss/views/loginStyle.js +80 -87
  36. package/dist/components/AlertBar.js +20 -75
  37. package/dist/components/AlertItem.js +13 -49
  38. package/dist/components/AlertTemplate.js +12 -18
  39. package/dist/components/Button.js +41 -112
  40. package/dist/components/Calendar.js +99 -208
  41. package/dist/components/ConfirmationDialog.js +13 -54
  42. package/dist/components/DataGrid.js +271 -695
  43. package/dist/components/DataGridColumn.js +24 -74
  44. package/dist/components/DataGridFilter.js +107 -245
  45. package/dist/components/DataGridHeading.js +34 -78
  46. package/dist/components/Dialog.js +37 -130
  47. package/dist/components/DocumentTemplateDesigner.js +16 -57
  48. package/dist/components/DocumentTemplateDesignerComponent.js +47 -141
  49. package/dist/components/DocumentTemplatePlaceholderDialog.js +34 -67
  50. package/dist/components/DocumentViewer.js +25 -65
  51. package/dist/components/DocumentViewerComponent.js +13 -44
  52. package/dist/components/ElementResizeHandler.js +148 -200
  53. package/dist/components/FileThumb.js +15 -56
  54. package/dist/components/Graph.js +98 -203
  55. package/dist/components/GraphNode.js +20 -61
  56. package/dist/components/HtmlPanel.js +38 -105
  57. package/dist/components/Icon.js +174 -253
  58. package/dist/components/LoadingIndicator.js +4 -11
  59. package/dist/components/LottieIcon.js +63 -60
  60. package/dist/components/PopupView.js +21 -60
  61. package/dist/components/Portlet.js +18 -60
  62. package/dist/components/RegularButton.js +34 -42
  63. package/dist/components/SignaturePanel.js +19 -67
  64. package/dist/components/SocketManager.js +133 -228
  65. package/dist/components/StepperTitleBar.js +48 -99
  66. package/dist/components/TabPage.js +30 -47
  67. package/dist/components/TabPanel.js +35 -122
  68. package/dist/components/TableCellContent.js +34 -98
  69. package/dist/components/TemplateDesigner.js +115 -230
  70. package/dist/components/TemplateItemEventHandler.js +298 -481
  71. package/dist/components/TemplateTable.js +117 -218
  72. package/dist/components/TitleBar.js +15 -53
  73. package/dist/components/Toolbar.js +44 -110
  74. package/dist/components/Tooltip.js +37 -56
  75. package/dist/components/Tree.js +50 -143
  76. package/dist/components/UseIsVisible.js +5 -25
  77. package/dist/components/card/Card.js +35 -39
  78. package/dist/components/card/CardAvatar.js +21 -32
  79. package/dist/components/card/CardBody.js +29 -36
  80. package/dist/components/card/CardFooter.js +26 -35
  81. package/dist/components/card/CardHeader.js +29 -36
  82. package/dist/components/card/CardIcon.js +15 -29
  83. package/dist/components/card/CardText.js +15 -29
  84. package/dist/components/customInput/CustomInput.js +38 -40
  85. package/dist/components/dashboard/FoldingSideTabDashboard.js +65 -184
  86. package/dist/components/dashboard/SideMenuModuleDashboard.js +67 -185
  87. package/dist/components/dashboard/TopMenuModuleDashboard.js +22 -63
  88. package/dist/components/dashboard/components/Header.js +15 -52
  89. package/dist/components/dashboard/components/LeftDrawer.js +9 -23
  90. package/dist/components/dashboard/components/UserIdentity.js +4 -12
  91. package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +115 -155
  92. package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +344 -419
  93. package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenu.js +15 -29
  94. package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +405 -485
  95. package/dist/components/dashboard/components/portal/Timeline.js +3 -8
  96. package/dist/components/dashboard/components/portal/Workspace.js +4 -13
  97. package/dist/components/footer/Footer.js +23 -45
  98. package/dist/components/footer/HomeFooter.js +38 -78
  99. package/dist/components/form/AddressSearch.js +26 -76
  100. package/dist/components/form/AutoComplete.js +54 -168
  101. package/dist/components/form/BaseField.js +59 -189
  102. package/dist/components/form/Checkbox.js +11 -24
  103. package/dist/components/form/DatePicker.js +28 -82
  104. package/dist/components/form/FieldSet.js +84 -300
  105. package/dist/components/form/Form.js +206 -501
  106. package/dist/components/form/GridField.js +83 -243
  107. package/dist/components/form/IconField.js +10 -21
  108. package/dist/components/form/ImageEditor.js +98 -208
  109. package/dist/components/form/LabelField.js +13 -28
  110. package/dist/components/form/LookupField.js +36 -102
  111. package/dist/components/form/MultiFileUploadField.js +67 -134
  112. package/dist/components/form/RadioGroup.js +20 -57
  113. package/dist/components/form/Section.js +33 -118
  114. package/dist/components/form/SelectItem.js +36 -83
  115. package/dist/components/form/SignatureTemplateDesignerField.js +12 -26
  116. package/dist/components/form/Switch.js +11 -24
  117. package/dist/components/form/TextField.js +19 -55
  118. package/dist/components/form/TimePicker.js +18 -43
  119. package/dist/components/form/TransferList.js +76 -200
  120. package/dist/components/form/UploadField.js +134 -256
  121. package/dist/components/grid/GridContainer.js +10 -23
  122. package/dist/components/grid/GridItem.js +10 -23
  123. package/dist/components/layout/CollapsiblePanel.js +20 -59
  124. package/dist/components/layout/Layout.js +40 -149
  125. package/dist/components/layout/View.js +65 -195
  126. package/dist/components/layout/ViewContainer.js +13 -33
  127. package/dist/components/layout/ViewPort.js +14 -48
  128. package/dist/components/layout/Window.js +62 -135
  129. package/dist/components/layout/WindowViewPort.js +18 -63
  130. package/dist/components/media/ClosablePanel.js +9 -18
  131. package/dist/components/media/LobbyWaitingList.js +11 -17
  132. package/dist/components/media/MediaSoupHelper.js +173 -401
  133. package/dist/components/media/SideBarContent.js +17 -34
  134. package/dist/components/media/SocketRequest.js +7 -18
  135. package/dist/components/media/SocketResponse.js +5 -14
  136. package/dist/components/media/Timer.js +18 -54
  137. package/dist/components/media/Toolbar.js +97 -254
  138. package/dist/components/media/ToolbarButton.js +34 -95
  139. package/dist/components/media/Toolbar_bck.js +70 -186
  140. package/dist/components/media/Tracks.js +19 -33
  141. package/dist/components/media/TrainingRoom.js +121 -374
  142. package/dist/components/media/Transports.js +17 -29
  143. package/dist/components/media/VCEventManager.js +45 -116
  144. package/dist/components/media/VCEventType.js +82 -168
  145. package/dist/components/media/VCParticipantList.js +16 -51
  146. package/dist/components/media/VCParticipantListItem.js +44 -141
  147. package/dist/components/media/VCRoom.js +14 -58
  148. package/dist/components/media/VCRoomParticipant.js +235 -556
  149. package/dist/components/media/VCRoomRecorder.js +106 -204
  150. package/dist/components/media/VCRoomWorkspace.js +248 -584
  151. package/dist/components/media/Video.js +27 -112
  152. package/dist/components/media/VideoPlayer.js +23 -91
  153. package/dist/components/media/chat/ChatRoom.js +143 -361
  154. package/dist/components/media/chat/ChatRoomItem.js +17 -58
  155. package/dist/components/media/chat/ChatRoomList.js +15 -60
  156. package/dist/components/menu/CollapsibleMenu.js +22 -52
  157. package/dist/components/menu/MenuBars.js +50 -116
  158. package/dist/components/menu/MenuButton.js +53 -130
  159. package/dist/components/menu/MenuItem.js +11 -51
  160. package/dist/components/menu/MenuLink.js +13 -41
  161. package/dist/components/menu/PopupMenu.js +13 -25
  162. package/dist/components/navbars/AuthNavbar.js +21 -56
  163. package/dist/components/navbars/HomeNavbar.js +213 -290
  164. package/dist/components/navbars/PortalNavbar.js +26 -81
  165. package/dist/components/signatures/AgilitySignaturePanel.js +41 -135
  166. package/dist/components/signatures/AlertItem.js +14 -50
  167. package/dist/components/signatures/Card.js +6 -16
  168. package/dist/components/signatures/DocumentContainer.js +57 -165
  169. package/dist/components/signatures/ImageSignatureInput.js +64 -124
  170. package/dist/components/signatures/MenuButton.js +28 -63
  171. package/dist/components/signatures/Prompt.js +6 -41
  172. package/dist/components/signatures/ResponsiveTable.js +181 -370
  173. package/dist/components/signatures/SearchView.js +34 -112
  174. package/dist/components/signatures/SignatorySearch.js +11 -44
  175. package/dist/components/signatures/SignatorySearchForm.js +19 -50
  176. package/dist/components/signatures/SignatureInput.js +28 -91
  177. package/dist/components/signatures/SignatureInputProps.js +49 -144
  178. package/dist/components/signatures/SignatureTemplateDesigner.js +230 -430
  179. package/dist/components/signatures/Toolbar.js +99 -173
  180. package/dist/components/signatures/ViewUtils.js +207 -313
  181. package/dist/components/typography/Danger.js +6 -11
  182. package/dist/components/typography/Info.js +7 -11
  183. package/dist/components/typography/Link.js +6 -12
  184. package/dist/event/ActionHandlers.js +48 -87
  185. package/dist/event/Event.js +21 -25
  186. package/dist/event/EventListener.js +54 -48
  187. package/dist/event/EventType.js +18 -40
  188. package/dist/event/LoadDataActionHandler.js +10 -31
  189. package/dist/event/Observable.js +204 -396
  190. package/dist/event/RouteActionHandler.js +119 -171
  191. package/dist/event/ScriptActionHandler.js +10 -32
  192. package/dist/event/ServiceCallActionHandler.js +37 -64
  193. package/dist/event/SignalGraphActionHandler.js +9 -31
  194. package/dist/js/Addresses.js +23 -42
  195. package/dist/js/Calendar.js +41 -89
  196. package/dist/js/DynamicLib.js +11 -23
  197. package/dist/js/Media.js +80 -174
  198. package/dist/js/Validators.js +6 -12
  199. package/dist/js/Windows.js +22 -40
  200. package/dist/redux/store/ConfigureStore.js +12 -29
  201. package/dist/redux/store/DashboardStore.js +47 -120
  202. package/dist/redux/store/History.js +2 -5
  203. package/dist/redux/store/SecurityStore.js +22 -65
  204. package/dist/security/TokenManager.js +29 -53
  205. package/dist/theme-default.js +3 -8
  206. package/dist/view/Dashboard.js +140 -308
  207. package/dist/view/PortalDashboard.js +6 -13
  208. package/dist/view/Settings.js +3 -11
  209. package/dist/view/Views.js +15 -35
  210. package/dist/view/security/ChangePasswordBasic.js +41 -147
  211. package/dist/view/security/ForgotPassword.js +26 -106
  212. package/dist/view/security/ForgotPasswordBasic.js +22 -96
  213. package/dist/view/security/Login.js +29 -117
  214. package/dist/view/security/LoginBasic.js +28 -108
  215. package/dist/view/security/LoginInteractionPortal.js +28 -106
  216. package/dist/view/security/ResetPassword.js +25 -110
  217. package/dist/view/security/ResetPasswordBasic.js +39 -142
  218. package/dist/view/security/Security.js +14 -26
  219. package/package.json +26 -21
@@ -4,109 +4,70 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _ScriptActionHandler = _interopRequireDefault(require("./ScriptActionHandler"));
11
-
12
9
  var _RouteActionHandler = _interopRequireDefault(require("./RouteActionHandler"));
13
-
14
10
  var _ServiceCallActionHandler = _interopRequireDefault(require("./ServiceCallActionHandler"));
15
-
16
11
  var _LoadDataActionHandler = _interopRequireDefault(require("./LoadDataActionHandler"));
17
-
18
12
  var _SignalGraphActionHandler = _interopRequireDefault(require("./SignalGraphActionHandler"));
19
-
20
13
  var _Utils = _interopRequireDefault(require("../Utils"));
21
-
22
14
  var _ApplicationManager = _interopRequireDefault(require("../ApplicationManager"));
23
-
24
15
  var _DynamicJS = _interopRequireDefault(require("../DynamicJS"));
25
-
26
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
-
28
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
-
30
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
31
-
32
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
33
-
34
- 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; }
35
-
36
- var ActionHandlers = /*#__PURE__*/function () {
37
- function ActionHandlers() {
38
- _classCallCheck(this, ActionHandlers);
39
-
40
- _defineProperty(this, "confirmAction", function (message) {
41
- if (!_Utils.default.isNull(message)) {
42
- _ApplicationManager.default.openConfirmDialog(message);
43
-
44
- return false;
45
- }
46
-
47
- return true;
48
- });
49
-
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
+ class ActionHandlers {
18
+ constructor() {
50
19
  if (!ActionHandlers.instance) {
51
20
  ActionHandlers.instance = this;
52
21
  }
53
-
54
22
  return ActionHandlers.instance;
55
23
  }
56
-
57
- _createClass(ActionHandlers, [{
58
- key: "getActionHandler",
59
- value: function getActionHandler(id) {
60
- if (id === 'script') {
61
- return _ScriptActionHandler.default;
62
- } else if (id === 'route') {
63
- return _RouteActionHandler.default;
64
- } else if (id === 'serviceCall') {
65
- return _ServiceCallActionHandler.default;
66
- } else if (id === 'loadData') {
67
- return _LoadDataActionHandler.default;
68
- } else if (id === 'signalGraph') {
69
- return _SignalGraphActionHandler.default;
70
- }
24
+ confirmAction = message => {
25
+ if (!_Utils.default.isNull(message)) {
26
+ _ApplicationManager.default.openConfirmDialog(message);
27
+ return false;
71
28
  }
72
- }, {
73
- key: "invoke",
74
- value: function invoke(action, be, listener) {
75
- // TODO : Check action conditions and also run pre and post scripts
76
- var component = listener.getSubscriberRef();
77
- var viewId = listener.getViewId();
78
- this.invokeHandler(action, be, component, viewId);
29
+ return true;
30
+ };
31
+ getActionHandler(id) {
32
+ if (id === 'script') {
33
+ return _ScriptActionHandler.default;
34
+ } else if (id === 'route') {
35
+ return _RouteActionHandler.default;
36
+ } else if (id === 'serviceCall') {
37
+ return _ServiceCallActionHandler.default;
38
+ } else if (id === 'loadData') {
39
+ return _LoadDataActionHandler.default;
40
+ } else if (id === 'signalGraph') {
41
+ return _SignalGraphActionHandler.default;
79
42
  }
80
- }, {
81
- key: "invokeHandler",
82
- value: function invokeHandler(action, be, component, viewId) {
83
- var actionHandler = this.getActionHandler(action.actionType);
84
- var message = action.confirmationMessage;
85
- var condition = action.condition;
86
- var shouldRun = true;
87
-
88
- if (!_Utils.default.isNull(condition)) {
89
- shouldRun = _DynamicJS.default.executeScript(Math.random() + "_" + viewId + "_" + (component ? component.api.id : "NO_COMPONENT") + "_action_pre_condition", condition, component.api.id, true, be);
90
- }
91
-
92
- if (shouldRun) {
93
- if (!_Utils.default.isNull(message)) {
94
- _ApplicationManager.default.openConfirmDialog(message, function (result) {
95
- if (result === true) {
96
- actionHandler.execute(action, be, component, viewId);
97
- }
98
- });
99
- } else {
100
- actionHandler.execute(action, be, component, viewId);
101
- }
43
+ }
44
+ invoke(action, be, listener) {
45
+ // TODO : Check action conditions and also run pre and post scripts
46
+ let component = listener.getSubscriberRef();
47
+ let viewId = listener.getViewId();
48
+ this.invokeHandler(action, be, component, viewId);
49
+ }
50
+ invokeHandler(action, be, component, viewId) {
51
+ let actionHandler = this.getActionHandler(action.actionType);
52
+ let message = action.confirmationMessage;
53
+ let condition = action.condition;
54
+ let shouldRun = true;
55
+ if (!_Utils.default.isNull(condition)) {
56
+ shouldRun = _DynamicJS.default.executeScript(Math.random() + "_" + viewId + "_" + (component ? component.api.id : "NO_COMPONENT") + "_action_pre_condition", condition, component.api.id, true, be);
57
+ }
58
+ if (shouldRun) {
59
+ if (!_Utils.default.isNull(message)) {
60
+ _ApplicationManager.default.openConfirmDialog(message, result => {
61
+ if (result === true) {
62
+ actionHandler.execute(action, be, component, viewId);
63
+ }
64
+ });
65
+ } else {
66
+ actionHandler.execute(action, be, component, viewId);
102
67
  }
103
68
  }
104
- }]);
105
-
106
- return ActionHandlers;
107
- }();
108
-
109
- var instance = new ActionHandlers();
69
+ }
70
+ }
71
+ const instance = new ActionHandlers();
110
72
  Object.freeze(instance);
111
- var _default = instance;
112
- exports.default = _default;
73
+ var _default = exports.default = instance;
@@ -4,28 +4,24 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
-
10
- 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; }
11
-
12
- var Event = function Event(source, viewId, data) {
13
- var _this = this;
14
-
15
- _classCallCheck(this, Event);
16
-
17
- _defineProperty(this, "getSource", function () {
18
- return _this.source;
19
- });
20
-
21
- _defineProperty(this, "getData", function () {
22
- return _this.data;
23
- });
24
-
25
- this.source = source;
26
- this.viewId = viewId;
27
- this.data = data;
28
- };
29
-
30
- var _default = Event;
31
- exports.default = _default;
7
+ class Event {
8
+ constructor(source, viewId, data) {
9
+ this.source = source;
10
+ this.viewId = viewId;
11
+ this.data = data;
12
+ }
13
+ /**
14
+ *
15
+ */
16
+ getSource = () => {
17
+ return this.source;
18
+ };
19
+
20
+ /**
21
+ *
22
+ */
23
+ getData = () => {
24
+ return this.data;
25
+ };
26
+ }
27
+ var _default = exports.default = Event;
@@ -4,52 +4,58 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _Utils = _interopRequireDefault(require("../Utils"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
-
14
- 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; }
15
-
16
- var EventSubscription = function EventSubscription(subscriberRef, viewId, publisher, eventType, actions, callback) {
17
- var _this = this;
18
-
19
- _classCallCheck(this, EventSubscription);
20
-
21
- _defineProperty(this, "getSubscriberRef", function () {
22
- return _this.subscriberRef;
23
- });
24
-
25
- _defineProperty(this, "getEventType", function () {
26
- return _this.eventType;
27
- });
28
-
29
- _defineProperty(this, "getViewId", function () {
30
- return _this.viewId;
31
- });
32
-
33
- _defineProperty(this, "getPublisher", function () {
34
- return _this.publisher;
35
- });
36
-
37
- _defineProperty(this, "getActions", function () {
38
- return _this.actions;
39
- });
40
-
41
- _defineProperty(this, "getCallback", function () {
42
- return _this.callback;
43
- });
44
-
45
- this.subscriberRef = subscriberRef;
46
- this.subscriber = !_Utils.default.isNull(subscriberRef) && !_Utils.default.isNull(subscriberRef.api.id) ? subscriberRef.api.id : null;
47
- this.eventType = eventType;
48
- this.viewId = viewId;
49
- this.publisher = publisher;
50
- this.actions = actions;
51
- this.callback = callback;
52
- };
53
-
54
- var _default = EventSubscription;
55
- exports.default = _default;
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ class EventSubscription {
10
+ constructor(subscriberRef, viewId, publisher, eventType, actions, callback) {
11
+ this.subscriberRef = subscriberRef;
12
+ this.subscriber = !_Utils.default.isNull(subscriberRef) && !_Utils.default.isNull(subscriberRef.api.id) ? subscriberRef.api.id : null;
13
+ this.eventType = eventType;
14
+ this.viewId = viewId;
15
+ this.publisher = publisher;
16
+ this.actions = actions;
17
+ this.callback = callback;
18
+ }
19
+ /**
20
+ *
21
+ */
22
+ getSubscriberRef = () => {
23
+ return this.subscriberRef;
24
+ };
25
+
26
+ /**
27
+ *
28
+ */
29
+ getEventType = () => {
30
+ return this.eventType;
31
+ };
32
+
33
+ /**
34
+ *
35
+ */
36
+ getViewId = () => {
37
+ return this.viewId;
38
+ };
39
+
40
+ /**
41
+ *
42
+ */
43
+ getPublisher = () => {
44
+ return this.publisher;
45
+ };
46
+
47
+ /**
48
+ *
49
+ */
50
+ getActions = () => {
51
+ return this.actions;
52
+ };
53
+
54
+ /**
55
+ *
56
+ */
57
+ getCallback = () => {
58
+ return this.callback;
59
+ };
60
+ }
61
+ var _default = exports.default = EventSubscription;
@@ -4,43 +4,21 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
-
10
- 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; }
11
-
12
- var EventType = function EventType() {
13
- _classCallCheck(this, EventType);
14
- };
15
-
16
- exports.default = EventType;
17
-
18
- _defineProperty(EventType, "CLICK", "CLICK");
19
-
20
- _defineProperty(EventType, "SELECTION_CHANGE", "SELECTION_CHANGE");
21
-
22
- _defineProperty(EventType, "SERVICE_CALL_SUCCESS", "SERVICE_CALL_SUCCESS");
23
-
24
- _defineProperty(EventType, "SERVICE_CALL_FAILURE", "SERVICE_CALL_FAILURE");
25
-
26
- _defineProperty(EventType, "COMPONENT_LOAD", "COMPONENT_LOAD");
27
-
28
- _defineProperty(EventType, "VALUE_CHANGE", "VALUE_CHANGE");
29
-
30
- _defineProperty(EventType, "ROW_DELETED", "ROW_DELETED");
31
-
32
- _defineProperty(EventType, "VIEW_CLOSED", "VIEW_CLOSED");
33
-
34
- _defineProperty(EventType, "BARCODE_SCANNED", "BARCODE_SCANNED");
35
-
36
- _defineProperty(EventType, "APPLICATION_CONTEXT_CHANGE", "APPLICATION_CONTEXT_CHANGE");
37
-
38
- _defineProperty(EventType, "MESSAGE_ARRIVED", "MESSAGE_ARRIVED");
39
-
40
- _defineProperty(EventType, "DATA_ARRIVED", "DATA_ARRIVED");
41
-
42
- _defineProperty(EventType, "CALENDAR_DATE_CLICK", "CALENDAR_DATE_CLICK");
43
-
44
- _defineProperty(EventType, "CALENDAR_EVENT_START", "CALENDAR_EVENT_START");
45
-
46
- _defineProperty(EventType, "SOCKET_CONNECT", "SOCKET_CONNECT");
7
+ class EventType {
8
+ static CLICK = "CLICK";
9
+ static SELECTION_CHANGE = "SELECTION_CHANGE";
10
+ static SERVICE_CALL_SUCCESS = "SERVICE_CALL_SUCCESS";
11
+ static SERVICE_CALL_FAILURE = "SERVICE_CALL_FAILURE";
12
+ static COMPONENT_LOAD = "COMPONENT_LOAD";
13
+ static VALUE_CHANGE = "VALUE_CHANGE";
14
+ static ROW_DELETED = "ROW_DELETED";
15
+ static VIEW_CLOSED = "VIEW_CLOSED";
16
+ static BARCODE_SCANNED = "BARCODE_SCANNED";
17
+ static APPLICATION_CONTEXT_CHANGE = "APPLICATION_CONTEXT_CHANGE";
18
+ static MESSAGE_ARRIVED = "MESSAGE_ARRIVED";
19
+ static DATA_ARRIVED = "DATA_ARRIVED";
20
+ static CALENDAR_DATE_CLICK = "CALENDAR_DATE_CLICK";
21
+ static CALENDAR_EVENT_START = "CALENDAR_EVENT_START";
22
+ static SOCKET_CONNECT = "SOCKET_CONNECT";
23
+ }
24
+ exports.default = EventType;
@@ -4,43 +4,22 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _Utils = _interopRequireDefault(require("./../Utils"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
-
16
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
17
-
18
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
19
-
20
- var LoadDataActionHandler = /*#__PURE__*/function () {
21
- function LoadDataActionHandler() {
22
- _classCallCheck(this, LoadDataActionHandler);
23
-
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ class LoadDataActionHandler {
11
+ constructor() {
24
12
  if (!LoadDataActionHandler.instance) {
25
13
  LoadDataActionHandler.instance = this;
26
14
  }
27
-
28
15
  return LoadDataActionHandler.instance;
29
16
  }
30
-
31
- _createClass(LoadDataActionHandler, [{
32
- key: "execute",
33
- value: function execute(actionConfig, event, component, currentViewId) {
34
- if (!_Utils.default.isNull(component) && !_Utils.default.isNull(component.api)) {
35
- component.api.loadData(actionConfig, event);
36
- }
17
+ execute(actionConfig, event, component, currentViewId) {
18
+ if (!_Utils.default.isNull(component) && !_Utils.default.isNull(component.api)) {
19
+ component.api.loadData(actionConfig, event);
37
20
  }
38
- }]);
39
-
40
- return LoadDataActionHandler;
41
- }();
42
-
43
- var instance = new LoadDataActionHandler();
21
+ }
22
+ }
23
+ const instance = new LoadDataActionHandler();
44
24
  Object.freeze(instance);
45
- var _default = instance;
46
- exports.default = _default;
25
+ var _default = exports.default = instance;