@agilemotion/oui-react-js 1.3.8 → 1.4.0
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/README.TXT +1 -0
- package/dist/{ApplicationContext.js → ApplicationManager.js} +334 -335
- package/dist/BasicApp.js +67 -64
- package/dist/BasicAppHome.js +90 -110
- package/dist/BusinessPortalApp.js +1 -1
- package/dist/BusinessPortalAppHome.js +15 -50
- package/dist/DynamicJS.js +24 -52
- package/dist/RestUtils.js +90 -116
- package/dist/Utils.js +49 -37
- package/dist/WithRouter.js +34 -0
- package/dist/assets/jss/components/authNavbarStyle.js +34 -35
- package/dist/assets/jss/components/cardHeaderStyle.js +12 -12
- package/dist/assets/jss/components/customDropdownStyle.js +26 -26
- package/dist/assets/jss/components/customInputStyle.js +2 -8
- package/dist/assets/jss/components/dropdownStyle.js +10 -15
- package/dist/assets/jss/components/footerStyle.js +12 -18
- package/dist/assets/jss/components/headerLinksStyle.js +7 -13
- package/dist/assets/jss/components/headerStyle.js +24 -25
- package/dist/assets/jss/components/navbarLinksStyle.js +7 -13
- package/dist/assets/jss/components/navbarStyle.js +24 -25
- package/dist/assets/jss/components/sidebarStyle.js +41 -43
- package/dist/assets/jss/components/typographyStyle.js +2 -8
- package/dist/assets/jss/rootStyle.js +32 -47
- package/dist/assets/jss/views/layoutStyle.js +6 -11
- package/dist/assets/jss/views/loginStyle.js +4 -10
- package/dist/assets/lotties/call-loading.json +1 -0
- package/dist/assets/lotties/calling-2.json +1 -0
- package/dist/assets/lotties/calling.json +1 -0
- package/dist/assets/lotties/calling2.json +1 -0
- package/dist/assets/lotties/chat.json +1 -0
- package/dist/assets/lotties/join.json +1 -0
- package/dist/assets/lotties/loading.json +1 -0
- package/dist/assets/lotties/msg2.json +1 -0
- package/dist/assets/lotties/recording.json +1 -0
- package/dist/assets/lotties/waiting.json +1 -0
- package/dist/assets/scss/black-dashboard-react/bootstrap/_card.scss +5 -5
- package/dist/assets/scss/black-dashboard-react/bootstrap/_carousel.scss +2 -2
- package/dist/assets/scss/black-dashboard-react/bootstrap/_custom-forms.scss +3 -3
- package/dist/assets/scss/black-dashboard-react/bootstrap/_functions.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/bootstrap/_images.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/bootstrap/_jumbotron.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/bootstrap/_popover.scss +7 -5
- package/dist/assets/scss/black-dashboard-react/bootstrap/_tooltip.scss +4 -4
- package/dist/assets/scss/black-dashboard-react/bootstrap/_variables.scss +5 -5
- package/dist/assets/scss/black-dashboard-react/bootstrap/mixins/_grid-framework.scss +2 -2
- package/dist/assets/scss/black-dashboard-react/bootstrap/mixins/_grid.scss +11 -9
- package/dist/assets/scss/black-dashboard-react/bootstrap/utilities/_embed.scss +6 -4
- package/dist/assets/scss/black-dashboard-react/custom/_sidebar-and-main-panel.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/custom/_variables.scss +1 -1
- package/dist/components/AlertBar.js +39 -80
- package/dist/components/AlertItem.js +4 -26
- package/dist/components/Button.js +49 -52
- package/dist/components/Calendar.js +442 -0
- package/dist/components/Calender.css +244 -0
- package/dist/components/ConfirmationDialog.js +5 -29
- package/dist/components/DataGrid.js +207 -345
- package/dist/components/DataGridColumn.js +6 -29
- package/dist/components/DataGridFilter.js +48 -116
- package/dist/components/DataGridHeading.js +11 -19
- package/dist/components/Dialog.js +27 -121
- package/dist/components/DocumentViewer.js +12 -38
- package/dist/components/DocumentViewerComponent.js +2 -20
- package/dist/components/FileThumb.js +126 -0
- package/dist/components/Graph.js +33 -75
- package/dist/components/GraphNode.js +5 -22
- package/dist/components/HtmlPanel.js +68 -82
- package/dist/components/Icon.js +107 -1
- package/dist/components/LoadingIndicator.js +4 -4
- package/dist/components/LottieIcon.js +134 -0
- package/dist/components/PopupView.js +3 -21
- package/dist/components/Portlet.js +100 -0
- package/dist/components/RegularButton.js +15 -19
- package/dist/components/SignaturePanel.js +9 -40
- package/dist/components/SocketManager.js +170 -0
- package/dist/components/StepperTitleBar.js +33 -59
- package/dist/components/TabPage.js +6 -9
- package/dist/components/TabPanel.js +49 -98
- package/dist/components/TableCellContent.js +31 -39
- package/dist/components/TemplateDesigner.js +114 -158
- package/dist/components/TemplateItemEventHandler.js +33 -100
- package/dist/components/TemplateTable.js +6 -42
- package/dist/components/TitleBar.js +38 -54
- package/dist/components/Toolbar.js +67 -182
- package/dist/components/Tree.js +29 -66
- package/dist/components/card/Card.js +16 -20
- package/dist/components/card/CardAvatar.js +9 -13
- package/dist/components/card/CardBody.js +13 -17
- package/dist/components/card/CardFooter.js +12 -16
- package/dist/components/card/CardHeader.js +13 -17
- package/dist/components/card/CardIcon.js +6 -10
- package/dist/components/card/CardText.js +6 -10
- package/dist/components/customInput/CustomInput.js +12 -10
- package/dist/components/dashboard/BasicBusinessAppDashboard.js +85 -159
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +30 -75
- package/dist/components/dashboard/components/Header.js +9 -26
- package/dist/components/dashboard/components/LeftDrawer.js +3 -1
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +1 -1
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.css +7 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +189 -79
- package/dist/components/footer/Footer.js +6 -18
- package/dist/components/form/AddressSearch.js +32 -66
- package/dist/components/form/AutoComplete.js +161 -0
- package/dist/components/form/BaseField.js +89 -107
- package/dist/components/form/DatePicker.js +8 -23
- package/dist/components/form/FieldSet.js +161 -191
- package/dist/components/form/Form.css +1 -1
- package/dist/components/form/Form.js +153 -479
- package/dist/components/form/GridField.js +46 -146
- package/dist/components/form/IconField.js +35 -0
- package/dist/components/form/ImageEditor.js +22 -60
- package/dist/components/form/LookupField.js +8 -29
- package/dist/components/form/MultiFileUploadField.js +187 -0
- package/dist/components/form/RadioGroup.js +10 -26
- package/dist/components/form/Section.js +40 -91
- package/dist/components/form/SelectItem.js +14 -33
- package/dist/components/form/SignatureTemplateDesignerField.js +0 -1
- package/dist/components/form/Switch.js +53 -0
- package/dist/components/form/TextField.js +10 -17
- package/dist/components/form/TimePicker.js +8 -1
- package/dist/components/form/TransferList.css +2 -2
- package/dist/components/form/TransferList.js +67 -125
- package/dist/components/form/UploadField.js +132 -177
- package/dist/components/form/fieldset.css +8 -0
- package/dist/components/grid/GridContainer.js +5 -9
- package/dist/components/grid/GridItem.js +5 -9
- package/dist/components/layout/CollapsiblePanel.js +11 -33
- package/dist/components/layout/Layout.js +228 -290
- package/dist/components/layout/VC.css +17 -0
- package/dist/components/layout/View.css +18 -1
- package/dist/components/layout/View.js +80 -200
- package/dist/components/layout/ViewContainer.css +3 -0
- package/dist/components/layout/ViewContainer.js +59 -0
- package/dist/components/layout/ViewPort.js +50 -80
- package/dist/components/layout/Window.css +18 -0
- package/dist/components/layout/Window.js +287 -0
- package/dist/components/layout/WindowViewPort.js +71 -0
- package/dist/components/loader.css +1 -1
- package/dist/components/media/ClosablePanel.css +37 -0
- package/dist/components/media/ClosablePanel.js +53 -0
- package/dist/components/media/LobbyWaitingList.js +91 -0
- package/dist/components/media/MediaSoupHelper.js +223 -0
- package/dist/components/media/Recorder.js +235 -0
- package/dist/components/media/SideBarContent.css +54 -0
- package/dist/components/media/SideBarContent.js +46 -0
- package/dist/components/media/SocketRequest.js +20 -0
- package/dist/components/media/SocketResponse.js +16 -0
- package/dist/components/media/Timer.css +30 -0
- package/dist/components/media/Timer.js +88 -0
- package/dist/components/media/Toolbar.css +35 -0
- package/dist/components/media/Toolbar.js +494 -0
- package/dist/components/media/Tracks.js +39 -0
- package/dist/components/media/TrainingRoom.js +608 -0
- package/dist/components/media/Transports.js +35 -0
- package/dist/components/media/VCEventManager.js +74 -0
- package/dist/components/media/VCEventType.js +164 -0
- package/dist/components/media/VCParticipantList.css +72 -0
- package/dist/components/media/VCParticipantList.js +56 -0
- package/dist/components/media/VCParticipantListItem.css +73 -0
- package/dist/components/media/VCParticipantListItem.js +319 -0
- package/dist/components/media/VCRoom.css +42 -0
- package/dist/components/media/VCRoom.js +90 -0
- package/dist/components/media/VCRoomParticipant.css +25 -0
- package/dist/components/media/VCRoomParticipant.js +808 -0
- package/dist/components/media/VCRoomRecorder.js +223 -0
- package/dist/components/media/VCRoomWorkspace.css +86 -0
- package/dist/components/media/VCRoomWorkspace.js +666 -0
- package/dist/components/media/Video.css +4 -0
- package/dist/components/media/Video.js +131 -0
- package/dist/components/media/VideoPlayer.css +10 -0
- package/dist/components/media/VideoPlayer.js +86 -0
- package/dist/components/media/chat/ChatRoom.js +926 -0
- package/dist/components/media/chat/ChatRoomItem.js +83 -0
- package/dist/components/media/chat/ChatRoomList.js +78 -0
- package/dist/components/media/chat/ChatRooms.scss +567 -0
- package/dist/components/menu/CollapsibleMenu.js +2 -19
- package/dist/components/menu/MenuBars.js +6 -33
- package/dist/components/menu/MenuButton.js +27 -39
- package/dist/components/menu/MenuItem.js +3 -20
- package/dist/components/menu/MenuLink.js +22 -13
- package/dist/components/navbars/AuthNavbar.js +5 -18
- package/dist/components/navbars/HomeNavbar.js +5 -7
- package/dist/components/navbars/PortalNavbar.js +7 -25
- package/dist/components/signatures/AgilitySignaturePanel.js +38 -104
- package/dist/components/signatures/AlertItem.js +3 -24
- package/dist/components/signatures/DocumentContainer.js +47 -134
- package/dist/components/signatures/ImageSignatureInput.js +11 -38
- package/dist/components/signatures/MenuButton.js +1 -16
- package/dist/components/signatures/Prompt.js +3 -24
- package/dist/components/signatures/ResponsiveTable.js +42 -83
- package/dist/components/signatures/SearchView.js +13 -50
- package/dist/components/signatures/SignatorySearch.js +83 -99
- package/dist/components/signatures/SignatorySearchForm.js +11 -17
- package/dist/components/signatures/SignatureInput.js +18 -47
- package/dist/components/signatures/SignatureInputProps.js +18 -60
- package/dist/components/signatures/SignatureTemplateDesigner.js +151 -239
- package/dist/components/signatures/Toolbar.js +7 -34
- package/dist/components/signatures/ViewUtils.js +2 -6
- package/dist/components/typography/Danger.js +3 -1
- package/dist/components/typography/Info.js +3 -1
- package/dist/components/typography/Link.js +6 -2
- package/dist/event/ActionHandlers.js +6 -6
- package/dist/event/EventType.js +7 -1
- package/dist/event/LoadDataActionHandler.js +1 -1
- package/dist/event/Observable.js +80 -174
- package/dist/event/RouteActionHandler.js +74 -31
- package/dist/event/ServiceCallActionHandler.js +36 -24
- package/dist/event/SignalGraphActionHandler.js +2 -2
- package/dist/js/Addresses.js +10 -8
- package/dist/js/Calendar.js +220 -0
- package/dist/js/Media.js +157 -0
- package/dist/redux/store/ConfigureStore.js +3 -9
- package/dist/redux/store/DashboardStore.js +42 -94
- package/dist/redux/store/SecurityStore.js +15 -50
- package/dist/view/Dashboard.js +256 -171
- package/dist/view/Views.js +30 -0
- package/dist/view/security/ChangePasswordBasic.js +29 -80
- package/dist/view/security/ForgotPassword.js +13 -46
- package/dist/view/security/ForgotPasswordBasic.js +12 -45
- package/dist/view/security/Login.js +15 -51
- package/dist/view/security/LoginBasic.js +13 -46
- package/dist/view/security/LoginBusinessPortal.js +12 -45
- package/dist/view/security/ResetPassword.js +13 -51
- package/dist/view/security/ResetPasswordBasic.js +27 -75
- package/dist/view/security/Security.js +1 -0
- package/package.json +31 -25
- package/README.md +0 -1623
- package/dist/components/dashboard/BasicApp.js +0 -140
- package/dist/components/navbars/NavbarLinks.js +0 -212
- package/dist/components/signatures/OLD.js +0 -1138
- package/gulpfile.js +0 -77
|
@@ -35,18 +35,6 @@ var _Utils = _interopRequireDefault(require("../../Utils"));
|
|
|
35
35
|
|
|
36
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
37
|
|
|
38
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
39
|
-
|
|
40
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
41
|
-
|
|
42
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
43
|
-
|
|
44
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
45
|
-
|
|
46
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
47
|
-
|
|
48
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
49
|
-
|
|
50
38
|
const utils = new _ViewUtils.default();
|
|
51
39
|
const MULTI_SELECT_CHECKBOX_COL_WIDTH = 64;
|
|
52
40
|
|
|
@@ -81,14 +69,16 @@ function getSorting(order, orderBy) {
|
|
|
81
69
|
}
|
|
82
70
|
|
|
83
71
|
function EnhancedTableHead(props) {
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
72
|
+
const {
|
|
73
|
+
classes,
|
|
74
|
+
onSelectAllClick,
|
|
75
|
+
order,
|
|
76
|
+
orderBy,
|
|
77
|
+
numSelected,
|
|
78
|
+
rowCount,
|
|
79
|
+
onRequestSort,
|
|
80
|
+
headCells
|
|
81
|
+
} = props;
|
|
92
82
|
|
|
93
83
|
const createSortHandler = property => event => {
|
|
94
84
|
onRequestSort(event, property);
|
|
@@ -198,68 +188,36 @@ function EnhancedTable(props) {
|
|
|
198
188
|
const utils = new _ViewUtils.default();
|
|
199
189
|
const classes = useStyles();
|
|
200
190
|
|
|
201
|
-
const
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
const
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
const
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
const _React$useState13 = _react.default.useState(!utils.isNull(props.rows) ? props.rows : []),
|
|
232
|
-
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
233
|
-
rows = _React$useState14[0],
|
|
234
|
-
setRows = _React$useState14[1];
|
|
235
|
-
|
|
236
|
-
const _React$useState15 = _react.default.useState(0),
|
|
237
|
-
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
238
|
-
scrollWidth = _React$useState16[0],
|
|
239
|
-
setScrollWidth = _React$useState16[1];
|
|
240
|
-
|
|
241
|
-
const _React$useState17 = _react.default.useState(true),
|
|
242
|
-
_React$useState18 = _slicedToArray(_React$useState17, 2),
|
|
243
|
-
dense = _React$useState18[0],
|
|
244
|
-
setDense = _React$useState18[1];
|
|
245
|
-
|
|
246
|
-
const _React$useState19 = _react.default.useState(utils.isNull(props.autoFetchData) || props.autoFetchData === true),
|
|
247
|
-
_React$useState20 = _slicedToArray(_React$useState19, 2),
|
|
248
|
-
fetchEnabled = _React$useState20[0],
|
|
249
|
-
setFetchEnabled = _React$useState20[1];
|
|
250
|
-
|
|
251
|
-
const _React$useState21 = _react.default.useState(10),
|
|
252
|
-
_React$useState22 = _slicedToArray(_React$useState21, 2),
|
|
253
|
-
rowsPerPage = _React$useState22[0],
|
|
254
|
-
setRowsPerPage = _React$useState22[1];
|
|
255
|
-
|
|
256
|
-
const headCells = props.headCells;
|
|
257
|
-
const actionsToolbar = props.actionsToolbar;
|
|
258
|
-
|
|
259
|
-
const _React$useState23 = _react.default.useState(props.searchParameters),
|
|
260
|
-
_React$useState24 = _slicedToArray(_React$useState23, 2),
|
|
261
|
-
searchParameters = _React$useState24[0],
|
|
262
|
-
setSearchParameters = _React$useState24[1];
|
|
191
|
+
const [order, setOrder] = _react.default.useState('asc');
|
|
192
|
+
|
|
193
|
+
const [orderBy, setOrderBy] = _react.default.useState('id');
|
|
194
|
+
|
|
195
|
+
const [selected, setSelected] = _react.default.useState([]);
|
|
196
|
+
|
|
197
|
+
const [totalNumberOfRows, setTotalNumberOfRows] = _react.default.useState(0);
|
|
198
|
+
|
|
199
|
+
const [selectedRow, setSelectedRow] = _react.default.useState("");
|
|
200
|
+
|
|
201
|
+
const [page, setPage] = _react.default.useState(0);
|
|
202
|
+
|
|
203
|
+
const [rows, setRows] = _react.default.useState(!utils.isNull(props.rows) ? props.rows : []);
|
|
204
|
+
|
|
205
|
+
const [scrollWidth, setScrollWidth] = _react.default.useState(0);
|
|
206
|
+
|
|
207
|
+
const [dense, setDense] = _react.default.useState(true);
|
|
208
|
+
|
|
209
|
+
const [fetchEnabled, setFetchEnabled] = _react.default.useState(utils.isNull(props.autoFetchData) || props.autoFetchData === true);
|
|
210
|
+
|
|
211
|
+
const [rowsPerPage, setRowsPerPage] = _react.default.useState(10);
|
|
212
|
+
|
|
213
|
+
const {
|
|
214
|
+
headCells
|
|
215
|
+
} = props;
|
|
216
|
+
const {
|
|
217
|
+
actionsToolbar
|
|
218
|
+
} = props;
|
|
219
|
+
|
|
220
|
+
const [searchParameters, setSearchParameters] = _react.default.useState(props.searchParameters);
|
|
263
221
|
|
|
264
222
|
for (let i = 0; i < props.headCells.length; i++) {
|
|
265
223
|
let headCell = props.headCells[i];
|
|
@@ -277,7 +235,8 @@ function EnhancedTable(props) {
|
|
|
277
235
|
setSearchParameters(props.searchParameters);
|
|
278
236
|
|
|
279
237
|
if (!utils.isNull(props.dataService)) {
|
|
280
|
-
(
|
|
238
|
+
alert(props.dataService);
|
|
239
|
+
(0, _RestUtils.invokeRpc)(props.dataService, null, "", result => {
|
|
281
240
|
setRows(result.data.records);
|
|
282
241
|
setTotalNumberOfRows(result.data.totalNumberOfRecords);
|
|
283
242
|
|
|
@@ -21,63 +21,26 @@ var _AlertItem = _interopRequireDefault(require("./AlertItem"));
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
24
|
-
function
|
|
24
|
+
function SearchView(props) {
|
|
25
|
+
const utils = new _ViewUtils.default();
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
const [model, setModel] = _react.default.useState(props.model);
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
const [searchParameters, setSearchParameters] = _react.default.useState(props.searchParameters);
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
const [selection, setSelection] = _react.default.useState([]);
|
|
31
32
|
|
|
32
|
-
|
|
33
|
+
const [message, setMessage] = _react.default.useState("");
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
const [messageStyle, setMessageStyle] = _react.default.useState("");
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
const [showToolBar] = _react.default.useState(false);
|
|
38
|
+
|
|
39
|
+
const [toolbarRef] = _react.default.useState(props.toolbarRef || /*#__PURE__*/_react.default.createRef());
|
|
40
|
+
|
|
41
|
+
const [promptOpen, setPromptOpen] = _react.default.useState(false);
|
|
38
42
|
|
|
39
|
-
const
|
|
40
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
41
|
-
model = _React$useState2[0],
|
|
42
|
-
setModel = _React$useState2[1];
|
|
43
|
-
|
|
44
|
-
const _React$useState3 = _react.default.useState(props.searchParameters),
|
|
45
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
46
|
-
searchParameters = _React$useState4[0],
|
|
47
|
-
setSearchParameters = _React$useState4[1];
|
|
48
|
-
|
|
49
|
-
const _React$useState5 = _react.default.useState([]),
|
|
50
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
51
|
-
selection = _React$useState6[0],
|
|
52
|
-
setSelection = _React$useState6[1];
|
|
53
|
-
|
|
54
|
-
const _React$useState7 = _react.default.useState(""),
|
|
55
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
56
|
-
message = _React$useState8[0],
|
|
57
|
-
setMessage = _React$useState8[1];
|
|
58
|
-
|
|
59
|
-
const _React$useState9 = _react.default.useState(""),
|
|
60
|
-
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
61
|
-
messageStyle = _React$useState10[0],
|
|
62
|
-
setMessageStyle = _React$useState10[1];
|
|
63
|
-
|
|
64
|
-
const _React$useState11 = _react.default.useState(false),
|
|
65
|
-
_React$useState12 = _slicedToArray(_React$useState11, 1),
|
|
66
|
-
showToolBar = _React$useState12[0];
|
|
67
|
-
|
|
68
|
-
const _React$useState13 = _react.default.useState(props.toolbarRef || /*#__PURE__*/_react.default.createRef()),
|
|
69
|
-
_React$useState14 = _slicedToArray(_React$useState13, 1),
|
|
70
|
-
toolbarRef = _React$useState14[0];
|
|
71
|
-
|
|
72
|
-
const _React$useState15 = _react.default.useState(false),
|
|
73
|
-
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
74
|
-
promptOpen = _React$useState16[0],
|
|
75
|
-
setPromptOpen = _React$useState16[1];
|
|
76
|
-
|
|
77
|
-
const _React$useState17 = _react.default.useState(utils.isNull(props.keyUpSwitch) ? false : props.keyUpSwitch),
|
|
78
|
-
_React$useState18 = _slicedToArray(_React$useState17, 2),
|
|
79
|
-
keyUpSwitch = _React$useState18[0],
|
|
80
|
-
setKeyUpSwitch = _React$useState18[1];
|
|
43
|
+
const [keyUpSwitch, setKeyUpSwitch] = _react.default.useState(utils.isNull(props.keyUpSwitch) ? false : props.keyUpSwitch);
|
|
81
44
|
|
|
82
45
|
const closePrompt = () => {
|
|
83
46
|
setPromptOpen(false);
|
|
@@ -3,114 +3,98 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = SignatorySearch;
|
|
7
7
|
|
|
8
|
-
var _react =
|
|
9
|
-
|
|
10
|
-
var _reactRedux = require("react-redux");
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _SignatorySearchForm = _interopRequireDefault(require("./SignatorySearchForm"));
|
|
13
11
|
|
|
14
|
-
var _SearchView = _interopRequireDefault(require("./SearchView"));
|
|
15
|
-
|
|
16
12
|
var _Card = _interopRequireDefault(require("./Card"));
|
|
17
13
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
14
|
+
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
21
15
|
|
|
22
|
-
|
|
16
|
+
var _Search = _interopRequireDefault(require("@material-ui/icons/Search"));
|
|
23
17
|
|
|
24
|
-
|
|
18
|
+
var _RestUtils = require("../../RestUtils");
|
|
25
19
|
|
|
26
|
-
|
|
27
|
-
id: 'emailAddress',
|
|
28
|
-
numeric: false,
|
|
29
|
-
disablePadding: false,
|
|
30
|
-
label: 'Email Address',
|
|
31
|
-
widthRatio: .5
|
|
32
|
-
}, {
|
|
33
|
-
id: 'cellNumber',
|
|
34
|
-
numeric: false,
|
|
35
|
-
disablePadding: false,
|
|
36
|
-
label: 'Cell Number',
|
|
37
|
-
widthRatio: .25
|
|
38
|
-
}, {
|
|
39
|
-
id: 'name',
|
|
40
|
-
numeric: false,
|
|
41
|
-
disablePadding: false,
|
|
42
|
-
label: 'Name',
|
|
43
|
-
widthRatio: .25
|
|
44
|
-
}];
|
|
45
|
-
const toolbarConfig = {
|
|
46
|
-
items: [{
|
|
47
|
-
type: "buttonGroup",
|
|
48
|
-
buttons: [{
|
|
49
|
-
id: 'add',
|
|
50
|
-
label: '',
|
|
51
|
-
tooltip: 'Add',
|
|
52
|
-
icon: 'AddIcon',
|
|
53
|
-
modes: 'default,lookup'
|
|
54
|
-
}, {
|
|
55
|
-
id: 'edit',
|
|
56
|
-
label: '',
|
|
57
|
-
tooltip: 'Edit',
|
|
58
|
-
icon: 'EditIcon',
|
|
59
|
-
modes: 'default'
|
|
60
|
-
}]
|
|
61
|
-
}]
|
|
62
|
-
};
|
|
63
|
-
const searchParameters = [{
|
|
64
|
-
name: "emailAddress",
|
|
65
|
-
value: "",
|
|
66
|
-
type: "string"
|
|
67
|
-
}];
|
|
68
|
-
|
|
69
|
-
class SignatorySearch extends _react.Component {
|
|
70
|
-
constructor(...args) {
|
|
71
|
-
super(...args);
|
|
72
|
-
|
|
73
|
-
_defineProperty(this, "state", {
|
|
74
|
-
model: {
|
|
75
|
-
emailAddress: ""
|
|
76
|
-
},
|
|
77
|
-
keyUpSwitch: false
|
|
78
|
-
});
|
|
79
|
-
}
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
80
21
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
22
|
+
function SignatorySearch(props) {
|
|
23
|
+
const [data, setData] = _react.default.useState(null);
|
|
24
|
+
|
|
25
|
+
const [emailAddress, setEmailAddress] = _react.default.useState(null);
|
|
26
|
+
|
|
27
|
+
const onValueChange = val => {
|
|
28
|
+
setEmailAddress(val);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const search = () => {
|
|
32
|
+
if (emailAddress) {
|
|
33
|
+
let service = {
|
|
34
|
+
url: props.signatoryUrl,
|
|
35
|
+
parameters: [{
|
|
36
|
+
name: 'id',
|
|
37
|
+
value: emailAddress,
|
|
38
|
+
httpParameterType: 'PATH_VARIABLE'
|
|
39
|
+
}],
|
|
40
|
+
contentType: 'application/json'
|
|
41
|
+
};
|
|
42
|
+
(0, _RestUtils.invokeRest)(service, {
|
|
43
|
+
api: {
|
|
44
|
+
get id() {
|
|
45
|
+
return 'signatory-search';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
}
|
|
49
|
+
}, 'signatory-search', result => {
|
|
50
|
+
setData(result);
|
|
51
|
+
props.onLookupValueChange(result);
|
|
52
|
+
}, e => {
|
|
53
|
+
console.error(e);
|
|
54
|
+
}, null);
|
|
86
55
|
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
render() {
|
|
90
|
-
return /*#__PURE__*/_react.default.createElement(_Card.default, {
|
|
91
|
-
title: "Signatories"
|
|
92
|
-
}, /*#__PURE__*/_react.default.createElement(_SearchView.default, {
|
|
93
|
-
headCells: headCells,
|
|
94
|
-
dataUrl: this.props.signatoryUrl,
|
|
95
|
-
dataService: this.props.signatoryService,
|
|
96
|
-
model: this.state.model,
|
|
97
|
-
toolbarConfig: toolbarConfig,
|
|
98
|
-
searchParameters: searchParameters,
|
|
99
|
-
onLookupValueChange: this.props.onLookupValueChange,
|
|
100
|
-
descriptionProp: "name",
|
|
101
|
-
mode: this.props.mode,
|
|
102
|
-
history: this.props.history,
|
|
103
|
-
keyUpSwitch: this.state.keyUpSwitch
|
|
104
|
-
}, /*#__PURE__*/_react.default.createElement(_SignatorySearchForm.default, {
|
|
105
|
-
model: this.state.model,
|
|
106
|
-
onKeyUp: e => {
|
|
107
|
-
this.onkeyup(e);
|
|
108
|
-
}
|
|
109
|
-
})));
|
|
110
|
-
}
|
|
56
|
+
};
|
|
111
57
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
58
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
59
|
+
title: "Signatories",
|
|
60
|
+
style: {
|
|
61
|
+
margin: '32px 32px 0 32px'
|
|
62
|
+
}
|
|
63
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
64
|
+
className: 'w-100',
|
|
65
|
+
style: {
|
|
66
|
+
fontWeight: '400px',
|
|
67
|
+
fontSize: '24px',
|
|
68
|
+
padding: '8px'
|
|
69
|
+
}
|
|
70
|
+
}, "Signatory search"), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("table", null, /*#__PURE__*/_react.default.createElement("tbody", null, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_SignatorySearchForm.default, {
|
|
71
|
+
onValueChange: val => {
|
|
72
|
+
onValueChange(val);
|
|
73
|
+
}
|
|
74
|
+
})), /*#__PURE__*/_react.default.createElement("td", null, props.search === false ? null : /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
75
|
+
disabled: emailAddress === null,
|
|
76
|
+
onClick: () => search(),
|
|
77
|
+
"aria-label": "search"
|
|
78
|
+
}, /*#__PURE__*/_react.default.createElement(_Search.default, null))))))), !data ? /*#__PURE__*/_react.default.createElement("div", {
|
|
79
|
+
style: {
|
|
80
|
+
display: 'flex',
|
|
81
|
+
justifyContent: 'center',
|
|
82
|
+
alignContent: 'center'
|
|
83
|
+
}
|
|
84
|
+
}, "No data to display") : /*#__PURE__*/_react.default.createElement("div", {
|
|
85
|
+
className: 'w-100',
|
|
86
|
+
style: {
|
|
87
|
+
display: 'flex',
|
|
88
|
+
alignContent: 'center',
|
|
89
|
+
justifyContent: 'center',
|
|
90
|
+
backgroundColor: '#f1f1f1',
|
|
91
|
+
borderRadius: '4px',
|
|
92
|
+
padding: '16px'
|
|
93
|
+
}
|
|
94
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
95
|
+
style: {
|
|
96
|
+
fontWeight: '600',
|
|
97
|
+
fontSize: '28px'
|
|
98
|
+
}
|
|
99
|
+
}, data.names + ' ' + data.lastName)));
|
|
100
|
+
}
|
|
@@ -19,18 +19,6 @@ var _TextField = _interopRequireDefault(require("@material-ui/core/TextField"));
|
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
22
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
23
|
-
|
|
24
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
25
|
-
|
|
26
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
27
|
-
|
|
28
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
29
|
-
|
|
30
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
31
|
-
|
|
32
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
33
|
-
|
|
34
22
|
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
35
23
|
container: {
|
|
36
24
|
display: 'flex',
|
|
@@ -45,10 +33,7 @@ const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
|
45
33
|
}));
|
|
46
34
|
|
|
47
35
|
function SignatorySearchForm(props) {
|
|
48
|
-
const
|
|
49
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
50
|
-
labelWidth = _React$useState2[0],
|
|
51
|
-
setLabelWidth = _React$useState2[1];
|
|
36
|
+
const [labelWidth, setLabelWidth] = _react.default.useState(0);
|
|
52
37
|
|
|
53
38
|
const labelRef = _react.default.useRef(null);
|
|
54
39
|
|
|
@@ -68,10 +53,19 @@ function SignatorySearchForm(props) {
|
|
|
68
53
|
style: {
|
|
69
54
|
width: '250px'
|
|
70
55
|
},
|
|
71
|
-
label: 'Email
|
|
56
|
+
label: 'Email address',
|
|
72
57
|
required: true,
|
|
73
58
|
size: "small",
|
|
74
59
|
margin: "normal",
|
|
60
|
+
onChange: e => {
|
|
61
|
+
let val = e.target.value;
|
|
62
|
+
|
|
63
|
+
if (val.match(/^([a-zA-Z0-9_\-.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$/)) {
|
|
64
|
+
props.onValueChange(val);
|
|
65
|
+
} else {
|
|
66
|
+
props.onValueChange(null);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
75
69
|
variant: "outlined"
|
|
76
70
|
})));
|
|
77
71
|
}
|
|
@@ -27,24 +27,12 @@ var _ImageSignatureInput = _interopRequireDefault(require("./ImageSignatureInput
|
|
|
27
27
|
|
|
28
28
|
var _Utils = _interopRequireDefault(require("../../Utils"));
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _ApplicationManager = _interopRequireDefault(require("../../ApplicationManager"));
|
|
31
31
|
|
|
32
32
|
var _reactPromiseTracker = require("react-promise-tracker");
|
|
33
33
|
|
|
34
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
35
|
|
|
36
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
37
|
-
|
|
38
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
39
|
-
|
|
40
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
41
|
-
|
|
42
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
43
|
-
|
|
44
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
45
|
-
|
|
46
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
|
-
|
|
48
36
|
const status = response => {
|
|
49
37
|
if (response.ok) {
|
|
50
38
|
return Promise.resolve(response);
|
|
@@ -62,35 +50,17 @@ const json = response => {
|
|
|
62
50
|
const location = window.location.protocol + "//" + window.location.hostname;
|
|
63
51
|
|
|
64
52
|
const SignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
const
|
|
76
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
77
|
-
method = _React$useState6[0],
|
|
78
|
-
setMethod = _React$useState6[1];
|
|
79
|
-
|
|
80
|
-
const _React$useState7 = _react.default.useState(false),
|
|
81
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
82
|
-
signing = _React$useState8[0],
|
|
83
|
-
setSigning = _React$useState8[1];
|
|
84
|
-
|
|
85
|
-
const _React$useState9 = _react.default.useState(false),
|
|
86
|
-
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
87
|
-
saveAsSystemImage = _React$useState10[0],
|
|
88
|
-
setSaveAsSystemImage = _React$useState10[1];
|
|
89
|
-
|
|
90
|
-
const _React$useState11 = _react.default.useState(props.systemImage),
|
|
91
|
-
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
|
92
|
-
systemImage = _React$useState12[0],
|
|
93
|
-
setSystemImage = _React$useState12[1];
|
|
53
|
+
const [value, setValue] = _react.default.useState(null);
|
|
54
|
+
|
|
55
|
+
const [declarationChecked, setDeclarationChecked] = _react.default.useState(false);
|
|
56
|
+
|
|
57
|
+
const [method, setMethod] = _react.default.useState('type');
|
|
58
|
+
|
|
59
|
+
const [signing, setSigning] = _react.default.useState(false);
|
|
60
|
+
|
|
61
|
+
const [saveAsSystemImage, setSaveAsSystemImage] = _react.default.useState(false);
|
|
62
|
+
|
|
63
|
+
const [systemImage, setSystemImage] = _react.default.useState(props.systemImage);
|
|
94
64
|
|
|
95
65
|
_react.default.useEffect(() => {
|
|
96
66
|
setSigning(props.signing);
|
|
@@ -98,18 +68,19 @@ const SignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.def
|
|
|
98
68
|
|
|
99
69
|
function saveImage() {
|
|
100
70
|
let data = {};
|
|
101
|
-
data.signature = props.mode === 'SIGN' ? value : systemImage.signature;
|
|
102
|
-
data.initial = props.mode === 'INITIAL' ? value : systemImage.initial;
|
|
71
|
+
data.signature = props.mode === 'SIGN' ? value : systemImage ? systemImage.signature : null;
|
|
72
|
+
data.initial = props.mode === 'INITIAL' ? value : systemImage ? systemImage.initial : null;
|
|
103
73
|
let fetchConfig = getFetchConfig(JSON.stringify(data));
|
|
104
|
-
let url = location +
|
|
74
|
+
let url = location + _ApplicationManager.default.getContextRoot() + props.signatureImageUrl + "/save";
|
|
105
75
|
(0, _reactPromiseTracker.trackPromise)(fetch(encodeURI(url), fetchConfig).then(status).then(json).then(result => {
|
|
106
76
|
setSystemImage(data);
|
|
107
77
|
props.systemSignaturesChangeHandler(data);
|
|
108
78
|
}).catch(e => {
|
|
79
|
+
// TODO : Display error message
|
|
109
80
|
if (e.code === 401) {
|
|
110
|
-
|
|
81
|
+
_ApplicationManager.default.clear();
|
|
111
82
|
|
|
112
|
-
|
|
83
|
+
_ApplicationManager.default.getApplicationHistory().push('/login');
|
|
113
84
|
}
|
|
114
85
|
}));
|
|
115
86
|
}
|