@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.
- package/dist/ApplicationManager.js +675 -1044
- package/dist/BasicApp.js +7 -27
- package/dist/BasicAppHome.js +27 -101
- package/dist/DynamicJS.js +109 -197
- package/dist/InteractionPortalApp.js +7 -27
- package/dist/InteractionPortalAppHome.js +21 -87
- package/dist/InteractionPortalApp_old.js +60 -122
- package/dist/RestUtils.js +269 -410
- package/dist/TypedValue.js +20 -26
- package/dist/Utils.js +295 -481
- package/dist/WithRouter.js +9 -17
- package/dist/assets/jss/components/authNavbarStyle.js +168 -171
- package/dist/assets/jss/components/buttonStyle.js +2 -5
- package/dist/assets/jss/components/cardAvatarStyle.js +2 -5
- package/dist/assets/jss/components/cardBodyStyle.js +2 -5
- package/dist/assets/jss/components/cardFooterStyle.js +2 -5
- package/dist/assets/jss/components/cardHeaderStyle.js +20 -17
- package/dist/assets/jss/components/cardIconStyle.js +2 -5
- package/dist/assets/jss/components/cardStyle.js +2 -5
- package/dist/assets/jss/components/cardTextStyle.js +2 -5
- package/dist/assets/jss/components/customDropdownStyle.js +171 -173
- package/dist/assets/jss/components/customInputStyle.js +5 -13
- package/dist/assets/jss/components/dropdownStyle.js +71 -74
- package/dist/assets/jss/components/footerStyle.js +14 -23
- package/dist/assets/jss/components/headerLinksStyle.js +52 -53
- package/dist/assets/jss/components/headerStyle.js +68 -73
- package/dist/assets/jss/components/navbarLinksStyle.js +81 -74
- package/dist/assets/jss/components/navbarStyle.js +79 -84
- package/dist/assets/jss/components/sidebarStyle.js +438 -441
- package/dist/assets/jss/components/typographyStyle.js +5 -13
- package/dist/assets/jss/rootStyle.js +85 -151
- package/dist/assets/jss/views/layoutStyle.js +45 -51
- package/dist/assets/jss/views/loginBasicStyle.js +2 -5
- package/dist/assets/jss/views/loginBusinessPortalStyle.js +2 -5
- package/dist/assets/jss/views/loginStyle.js +80 -87
- package/dist/components/AlertBar.js +20 -75
- package/dist/components/AlertItem.js +13 -49
- package/dist/components/AlertTemplate.js +12 -18
- package/dist/components/Button.js +41 -112
- package/dist/components/Calendar.js +99 -208
- package/dist/components/ConfirmationDialog.js +13 -54
- package/dist/components/DataGrid.js +271 -695
- package/dist/components/DataGridColumn.js +24 -74
- package/dist/components/DataGridFilter.js +107 -245
- package/dist/components/DataGridHeading.js +34 -78
- package/dist/components/Dialog.js +37 -130
- package/dist/components/DocumentTemplateDesigner.js +16 -57
- package/dist/components/DocumentTemplateDesignerComponent.js +47 -141
- package/dist/components/DocumentTemplatePlaceholderDialog.js +34 -67
- package/dist/components/DocumentViewer.js +25 -65
- package/dist/components/DocumentViewerComponent.js +13 -44
- package/dist/components/ElementResizeHandler.js +148 -200
- package/dist/components/FileThumb.js +15 -56
- package/dist/components/Graph.js +98 -203
- package/dist/components/GraphNode.js +20 -61
- package/dist/components/HtmlPanel.js +38 -105
- package/dist/components/Icon.js +174 -253
- package/dist/components/LoadingIndicator.js +4 -11
- package/dist/components/LottieIcon.js +63 -60
- package/dist/components/PopupView.js +21 -60
- package/dist/components/Portlet.js +18 -60
- package/dist/components/RegularButton.js +34 -42
- package/dist/components/SignaturePanel.js +19 -67
- package/dist/components/SocketManager.js +133 -228
- package/dist/components/StepperTitleBar.js +48 -99
- package/dist/components/TabPage.js +30 -47
- package/dist/components/TabPanel.js +35 -122
- package/dist/components/TableCellContent.js +34 -98
- package/dist/components/TemplateDesigner.js +115 -230
- package/dist/components/TemplateItemEventHandler.js +298 -481
- package/dist/components/TemplateTable.js +117 -218
- package/dist/components/TitleBar.js +15 -53
- package/dist/components/Toolbar.js +44 -110
- package/dist/components/Tooltip.js +37 -56
- package/dist/components/Tree.js +50 -143
- package/dist/components/UseIsVisible.js +5 -25
- package/dist/components/card/Card.js +35 -39
- package/dist/components/card/CardAvatar.js +21 -32
- package/dist/components/card/CardBody.js +29 -36
- package/dist/components/card/CardFooter.js +26 -35
- package/dist/components/card/CardHeader.js +29 -36
- package/dist/components/card/CardIcon.js +15 -29
- package/dist/components/card/CardText.js +15 -29
- package/dist/components/customInput/CustomInput.js +38 -40
- package/dist/components/dashboard/FoldingSideTabDashboard.js +65 -184
- package/dist/components/dashboard/SideMenuModuleDashboard.js +67 -185
- package/dist/components/dashboard/TopMenuModuleDashboard.js +22 -63
- package/dist/components/dashboard/components/Header.js +15 -52
- package/dist/components/dashboard/components/LeftDrawer.js +9 -23
- package/dist/components/dashboard/components/UserIdentity.js +4 -12
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +115 -155
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +344 -419
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenu.js +15 -29
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +405 -485
- package/dist/components/dashboard/components/portal/Timeline.js +3 -8
- package/dist/components/dashboard/components/portal/Workspace.js +4 -13
- package/dist/components/footer/Footer.js +23 -45
- package/dist/components/footer/HomeFooter.js +38 -78
- package/dist/components/form/AddressSearch.js +26 -76
- package/dist/components/form/AutoComplete.js +54 -168
- package/dist/components/form/BaseField.js +59 -189
- package/dist/components/form/Checkbox.js +11 -24
- package/dist/components/form/DatePicker.js +28 -82
- package/dist/components/form/FieldSet.js +84 -300
- package/dist/components/form/Form.js +206 -501
- package/dist/components/form/GridField.js +83 -243
- package/dist/components/form/IconField.js +10 -21
- package/dist/components/form/ImageEditor.js +98 -208
- package/dist/components/form/LabelField.js +13 -28
- package/dist/components/form/LookupField.js +36 -102
- package/dist/components/form/MultiFileUploadField.js +67 -134
- package/dist/components/form/RadioGroup.js +20 -57
- package/dist/components/form/Section.js +33 -118
- package/dist/components/form/SelectItem.js +36 -83
- package/dist/components/form/SignatureTemplateDesignerField.js +12 -26
- package/dist/components/form/Switch.js +11 -24
- package/dist/components/form/TextField.js +19 -55
- package/dist/components/form/TimePicker.js +18 -43
- package/dist/components/form/TransferList.js +76 -200
- package/dist/components/form/UploadField.js +134 -256
- package/dist/components/grid/GridContainer.js +10 -23
- package/dist/components/grid/GridItem.js +10 -23
- package/dist/components/layout/CollapsiblePanel.js +20 -59
- package/dist/components/layout/Layout.js +40 -149
- package/dist/components/layout/View.js +65 -195
- package/dist/components/layout/ViewContainer.js +13 -33
- package/dist/components/layout/ViewPort.js +14 -48
- package/dist/components/layout/Window.js +62 -135
- package/dist/components/layout/WindowViewPort.js +18 -63
- package/dist/components/media/ClosablePanel.js +9 -18
- package/dist/components/media/LobbyWaitingList.js +11 -17
- package/dist/components/media/MediaSoupHelper.js +173 -401
- package/dist/components/media/SideBarContent.js +17 -34
- package/dist/components/media/SocketRequest.js +7 -18
- package/dist/components/media/SocketResponse.js +5 -14
- package/dist/components/media/Timer.js +18 -54
- package/dist/components/media/Toolbar.js +97 -254
- package/dist/components/media/ToolbarButton.js +34 -95
- package/dist/components/media/Toolbar_bck.js +70 -186
- package/dist/components/media/Tracks.js +19 -33
- package/dist/components/media/TrainingRoom.js +121 -374
- package/dist/components/media/Transports.js +17 -29
- package/dist/components/media/VCEventManager.js +45 -116
- package/dist/components/media/VCEventType.js +82 -168
- package/dist/components/media/VCParticipantList.js +16 -51
- package/dist/components/media/VCParticipantListItem.js +44 -141
- package/dist/components/media/VCRoom.js +14 -58
- package/dist/components/media/VCRoomParticipant.js +235 -556
- package/dist/components/media/VCRoomRecorder.js +106 -204
- package/dist/components/media/VCRoomWorkspace.js +248 -584
- package/dist/components/media/Video.js +27 -112
- package/dist/components/media/VideoPlayer.js +23 -91
- package/dist/components/media/chat/ChatRoom.js +143 -361
- package/dist/components/media/chat/ChatRoomItem.js +17 -58
- package/dist/components/media/chat/ChatRoomList.js +15 -60
- package/dist/components/menu/CollapsibleMenu.js +22 -52
- package/dist/components/menu/MenuBars.js +50 -116
- package/dist/components/menu/MenuButton.js +53 -130
- package/dist/components/menu/MenuItem.js +11 -51
- package/dist/components/menu/MenuLink.js +13 -41
- package/dist/components/menu/PopupMenu.js +13 -25
- package/dist/components/navbars/AuthNavbar.js +21 -56
- package/dist/components/navbars/HomeNavbar.js +213 -290
- package/dist/components/navbars/PortalNavbar.js +26 -81
- package/dist/components/signatures/AgilitySignaturePanel.js +41 -135
- package/dist/components/signatures/AlertItem.js +14 -50
- package/dist/components/signatures/Card.js +6 -16
- package/dist/components/signatures/DocumentContainer.js +57 -165
- package/dist/components/signatures/ImageSignatureInput.js +64 -124
- package/dist/components/signatures/MenuButton.js +28 -63
- package/dist/components/signatures/Prompt.js +6 -41
- package/dist/components/signatures/ResponsiveTable.js +181 -370
- package/dist/components/signatures/SearchView.js +34 -112
- package/dist/components/signatures/SignatorySearch.js +11 -44
- package/dist/components/signatures/SignatorySearchForm.js +19 -50
- package/dist/components/signatures/SignatureInput.js +28 -91
- package/dist/components/signatures/SignatureInputProps.js +49 -144
- package/dist/components/signatures/SignatureTemplateDesigner.js +230 -430
- package/dist/components/signatures/Toolbar.js +99 -173
- package/dist/components/signatures/ViewUtils.js +207 -313
- package/dist/components/typography/Danger.js +6 -11
- package/dist/components/typography/Info.js +7 -11
- package/dist/components/typography/Link.js +6 -12
- package/dist/event/ActionHandlers.js +48 -87
- package/dist/event/Event.js +21 -25
- package/dist/event/EventListener.js +54 -48
- package/dist/event/EventType.js +18 -40
- package/dist/event/LoadDataActionHandler.js +10 -31
- package/dist/event/Observable.js +204 -396
- package/dist/event/RouteActionHandler.js +119 -171
- package/dist/event/ScriptActionHandler.js +10 -32
- package/dist/event/ServiceCallActionHandler.js +37 -64
- package/dist/event/SignalGraphActionHandler.js +9 -31
- package/dist/js/Addresses.js +23 -42
- package/dist/js/Calendar.js +41 -89
- package/dist/js/DynamicLib.js +11 -23
- package/dist/js/Media.js +80 -174
- package/dist/js/Validators.js +6 -12
- package/dist/js/Windows.js +22 -40
- package/dist/redux/store/ConfigureStore.js +12 -29
- package/dist/redux/store/DashboardStore.js +47 -120
- package/dist/redux/store/History.js +2 -5
- package/dist/redux/store/SecurityStore.js +22 -65
- package/dist/security/TokenManager.js +29 -53
- package/dist/theme-default.js +3 -8
- package/dist/view/Dashboard.js +140 -308
- package/dist/view/PortalDashboard.js +6 -13
- package/dist/view/Settings.js +3 -11
- package/dist/view/Views.js +15 -35
- package/dist/view/security/ChangePasswordBasic.js +41 -147
- package/dist/view/security/ForgotPassword.js +26 -106
- package/dist/view/security/ForgotPasswordBasic.js +22 -96
- package/dist/view/security/Login.js +29 -117
- package/dist/view/security/LoginBasic.js +28 -108
- package/dist/view/security/LoginInteractionPortal.js +28 -106
- package/dist/view/security/ResetPassword.js +25 -110
- package/dist/view/security/ResetPasswordBasic.js +39 -142
- package/dist/view/security/Security.js +14 -26
- 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
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
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;
|
package/dist/event/Event.js
CHANGED
|
@@ -4,28 +4,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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;
|
package/dist/event/EventType.js
CHANGED
|
@@ -4,43 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
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
|
-
|
|
32
|
-
|
|
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
|
-
|
|
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;
|