@agilemotion/oui-react-js 1.6.0 → 1.6.2

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