@agilemotion/oui-react-js 1.3.8 → 1.3.9
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 +161 -284
- package/dist/BasicApp.js +1 -1
- package/dist/BasicAppHome.js +17 -4
- package/dist/BusinessPortalApp.js +1 -1
- package/dist/BusinessPortalAppHome.js +10 -39
- package/dist/DynamicJS.js +20 -52
- package/dist/RestUtils.js +83 -108
- package/dist/Utils.js +36 -30
- 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/_variables.scss +1 -1
- package/dist/components/AlertBar.js +39 -80
- package/dist/components/AlertItem.js +4 -26
- package/dist/components/Button.js +24 -36
- package/dist/components/Calendar.js +478 -0
- package/dist/components/Calender.css +244 -0
- package/dist/components/ConfirmationDialog.js +5 -29
- package/dist/components/DataGrid.js +169 -338
- package/dist/components/DataGridColumn.js +5 -28
- package/dist/components/DataGridFilter.js +46 -114
- package/dist/components/DataGridHeading.js +11 -19
- package/dist/components/Dialog.js +27 -121
- package/dist/components/DocumentViewer.js +8 -34
- package/dist/components/DocumentViewerComponent.js +2 -20
- package/dist/components/FileThumb.js +115 -0
- package/dist/components/Graph.js +25 -75
- package/dist/components/GraphNode.js +4 -21
- package/dist/components/HtmlPanel.js +59 -78
- package/dist/components/Icon.js +99 -1
- package/dist/components/LoadingIndicator.js +4 -4
- package/dist/components/LottieIcon.js +134 -0
- package/dist/components/PopupView.js +2 -20
- 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 +30 -56
- package/dist/components/TabPage.js +6 -9
- package/dist/components/TabPanel.js +41 -98
- package/dist/components/TableCellContent.js +30 -38
- package/dist/components/TemplateDesigner.js +107 -151
- package/dist/components/TemplateItemEventHandler.js +33 -100
- package/dist/components/TemplateTable.js +6 -42
- package/dist/components/TitleBar.js +35 -52
- package/dist/components/Toolbar.js +33 -179
- package/dist/components/Tree.js +27 -64
- 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 +79 -155
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +30 -75
- package/dist/components/dashboard/components/Header.js +8 -25
- 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.js +138 -30
- package/dist/components/footer/Footer.js +6 -18
- package/dist/components/form/AddressSearch.js +32 -66
- package/dist/components/form/AutoComplete.js +160 -0
- package/dist/components/form/BaseField.js +66 -96
- package/dist/components/form/DatePicker.js +3 -21
- package/dist/components/form/FieldSet.js +158 -180
- package/dist/components/form/Form.css +1 -1
- package/dist/components/form/Form.js +137 -471
- package/dist/components/form/GridField.js +46 -146
- package/dist/components/form/IconField.js +35 -0
- package/dist/components/form/ImageEditor.js +19 -57
- package/dist/components/form/LookupField.js +8 -29
- package/dist/components/form/MultiFileUploadField.js +186 -0
- package/dist/components/form/RadioGroup.js +1 -16
- package/dist/components/form/Section.js +31 -92
- 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 +7 -1
- package/dist/components/form/TransferList.css +2 -2
- package/dist/components/form/TransferList.js +67 -125
- package/dist/components/form/UploadField.js +27 -79
- 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 +175 -290
- package/dist/components/layout/VC.css +17 -0
- package/dist/components/layout/View.css +17 -1
- package/dist/components/layout/View.js +77 -194
- 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 +20 -0
- package/dist/components/media/Toolbar.js +470 -0
- package/dist/components/media/Tracks.js +39 -0
- package/dist/components/media/TrainingRoom.js +531 -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 +806 -0
- package/dist/components/media/VCRoomWorkspace.css +86 -0
- package/dist/components/media/VCRoomWorkspace.js +653 -0
- package/dist/components/media/Video.css +4 -0
- package/dist/components/media/Video.js +131 -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 +7 -35
- package/dist/components/menu/MenuItem.js +3 -20
- package/dist/components/menu/MenuLink.js +18 -12
- package/dist/components/navbars/AuthNavbar.js +5 -18
- package/dist/components/navbars/HomeNavbar.js +3 -5
- package/dist/components/navbars/PortalNavbar.js +4 -22
- package/dist/components/signatures/AgilitySignaturePanel.js +35 -101
- package/dist/components/signatures/AlertItem.js +3 -24
- package/dist/components/signatures/DocumentContainer.js +47 -134
- package/dist/components/signatures/ImageSignatureInput.js +8 -35
- 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 +15 -44
- package/dist/components/signatures/SignatureInputProps.js +18 -60
- package/dist/components/signatures/SignatureTemplateDesigner.js +147 -235
- 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 +3 -3
- package/dist/event/EventType.js +7 -1
- package/dist/event/LoadDataActionHandler.js +1 -1
- package/dist/event/Observable.js +56 -168
- package/dist/event/RouteActionHandler.js +45 -11
- package/dist/event/ServiceCallActionHandler.js +34 -24
- package/dist/js/Addresses.js +10 -8
- 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 +242 -163
- package/dist/view/security/ChangePasswordBasic.js +23 -76
- package/dist/view/security/ForgotPassword.js +9 -42
- package/dist/view/security/ForgotPasswordBasic.js +8 -41
- package/dist/view/security/Login.js +11 -47
- package/dist/view/security/LoginBasic.js +8 -41
- package/dist/view/security/LoginBusinessPortal.js +8 -41
- package/dist/view/security/ResetPassword.js +9 -47
- package/dist/view/security/ResetPasswordBasic.js +21 -71
- package/dist/view/security/Security.js +1 -0
- package/package.json +29 -13
- 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
|
@@ -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
|
}
|
|
@@ -33,18 +33,6 @@ 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,14 +68,15 @@ 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 + _ApplicationContext.default.
|
|
74
|
+
let url = location + _ApplicationContext.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
|
_ApplicationContext.default.clear();
|
|
111
82
|
|
|
@@ -25,18 +25,6 @@ var _SignatorySearch = _interopRequireDefault(require("./SignatorySearch"));
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
27
|
|
|
28
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
|
-
|
|
30
|
-
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."); }
|
|
31
|
-
|
|
32
|
-
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); }
|
|
33
|
-
|
|
34
|
-
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; }
|
|
35
|
-
|
|
36
|
-
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; }
|
|
37
|
-
|
|
38
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
|
-
|
|
40
28
|
const isNull = val => {
|
|
41
29
|
return val === null || typeof val === 'undefined';
|
|
42
30
|
};
|
|
@@ -55,20 +43,11 @@ const useStyles = (0, _core.makeStyles)(theme => ({
|
|
|
55
43
|
}));
|
|
56
44
|
|
|
57
45
|
const SigPropsLookupField = /*#__PURE__*/_react.default.forwardRef(props => {
|
|
58
|
-
const
|
|
59
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
60
|
-
currentSelection = _React$useState2[0],
|
|
61
|
-
setCurrentSelection = _React$useState2[1];
|
|
46
|
+
const [currentSelection, setCurrentSelection] = _react.default.useState(null);
|
|
62
47
|
|
|
63
|
-
const
|
|
64
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
65
|
-
value = _React$useState4[0],
|
|
66
|
-
setValue = _React$useState4[1];
|
|
48
|
+
const [value, setValue] = _react.default.useState(props.value);
|
|
67
49
|
|
|
68
|
-
const
|
|
69
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
70
|
-
open = _React$useState6[0],
|
|
71
|
-
setOpen = _React$useState6[1];
|
|
50
|
+
const [open, setOpen] = _react.default.useState(false);
|
|
72
51
|
|
|
73
52
|
_react.default.useEffect(() => {
|
|
74
53
|
setValue(props.value);
|
|
@@ -80,7 +59,7 @@ const SigPropsLookupField = /*#__PURE__*/_react.default.forwardRef(props => {
|
|
|
80
59
|
|
|
81
60
|
const setSelectionAsValue = () => {
|
|
82
61
|
currentSelection.toString = () => {
|
|
83
|
-
return currentSelection.
|
|
62
|
+
return currentSelection.names + ' ' + currentSelection.lastName;
|
|
84
63
|
};
|
|
85
64
|
|
|
86
65
|
setValue(currentSelection);
|
|
@@ -139,7 +118,7 @@ const SigPropsLookupField = /*#__PURE__*/_react.default.forwardRef(props => {
|
|
|
139
118
|
}, /*#__PURE__*/_react.default.createElement(_SignatorySearch.default, {
|
|
140
119
|
signatoryUrl: props.signatoryUrl,
|
|
141
120
|
signatoryService: props.signatoryService,
|
|
142
|
-
onLookupValueChange:
|
|
121
|
+
onLookupValueChange: value => setCurrentSelection(value)
|
|
143
122
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
144
123
|
style: {
|
|
145
124
|
paddingTop: "4px"
|
|
@@ -159,40 +138,19 @@ exports.SigPropsLookupField = SigPropsLookupField;
|
|
|
159
138
|
const SignatureInputProps = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
160
139
|
const classes = useStyles();
|
|
161
140
|
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
setHeight = _React$useState12[1];
|
|
176
|
-
|
|
177
|
-
const _React$useState13 = _react.default.useState(null),
|
|
178
|
-
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
179
|
-
signatory = _React$useState14[0],
|
|
180
|
-
setSignatory = _React$useState14[1];
|
|
181
|
-
|
|
182
|
-
const _React$useState15 = _react.default.useState(true),
|
|
183
|
-
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
184
|
-
widthValid = _React$useState16[0],
|
|
185
|
-
setWidthValid = _React$useState16[1];
|
|
186
|
-
|
|
187
|
-
const _React$useState17 = _react.default.useState(true),
|
|
188
|
-
_React$useState18 = _slicedToArray(_React$useState17, 2),
|
|
189
|
-
heightValid = _React$useState18[0],
|
|
190
|
-
setHeightValid = _React$useState18[1];
|
|
191
|
-
|
|
192
|
-
const _React$useState19 = _react.default.useState(isNull(props.value) || !isNull(props.value.signatory)),
|
|
193
|
-
_React$useState20 = _slicedToArray(_React$useState19, 2),
|
|
194
|
-
signatoryValid = _React$useState20[0],
|
|
195
|
-
setSignatoryValid = _React$useState20[1];
|
|
141
|
+
const [value, setValue] = _react.default.useState(props.value);
|
|
142
|
+
|
|
143
|
+
const [width, setWidth] = _react.default.useState('');
|
|
144
|
+
|
|
145
|
+
const [height, setHeight] = _react.default.useState('');
|
|
146
|
+
|
|
147
|
+
const [signatory, setSignatory] = _react.default.useState(null);
|
|
148
|
+
|
|
149
|
+
const [widthValid, setWidthValid] = _react.default.useState(true);
|
|
150
|
+
|
|
151
|
+
const [heightValid, setHeightValid] = _react.default.useState(true);
|
|
152
|
+
|
|
153
|
+
const [signatoryValid, setSignatoryValid] = _react.default.useState(isNull(props.value) || !isNull(props.value.signatory));
|
|
196
154
|
|
|
197
155
|
_react.default.useEffect(() => {
|
|
198
156
|
setValue(props.value);
|