@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
|
@@ -17,18 +17,6 @@ var _ViewUtils = _interopRequireDefault(require("./ViewUtils"));
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
21
|
-
|
|
22
|
-
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."); }
|
|
23
|
-
|
|
24
|
-
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); }
|
|
25
|
-
|
|
26
|
-
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; }
|
|
27
|
-
|
|
28
|
-
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; }
|
|
29
|
-
|
|
30
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
31
|
-
|
|
32
20
|
const utils = new _ViewUtils.default();
|
|
33
21
|
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
34
22
|
root: {
|
|
@@ -42,20 +30,11 @@ const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
|
42
30
|
function AlertItem(props) {
|
|
43
31
|
const classes = useStyles();
|
|
44
32
|
|
|
45
|
-
const
|
|
46
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
47
|
-
message = _React$useState2[0],
|
|
48
|
-
setMessage = _React$useState2[1];
|
|
33
|
+
const [message, setMessage] = _react.default.useState(props.message);
|
|
49
34
|
|
|
50
|
-
const
|
|
51
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
52
|
-
alertStyle = _React$useState4[0],
|
|
53
|
-
setAlertStyle = _React$useState4[1];
|
|
35
|
+
const [alertStyle, setAlertStyle] = _react.default.useState(props.alertStyle);
|
|
54
36
|
|
|
55
|
-
const
|
|
56
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
57
|
-
title = _React$useState6[0],
|
|
58
|
-
setTitle = _React$useState6[1];
|
|
37
|
+
const [title, setTitle] = _react.default.useState(props.alertTitle);
|
|
59
38
|
|
|
60
39
|
_react.default.useEffect(() => {
|
|
61
40
|
setMessage(props.message);
|
|
@@ -11,51 +11,16 @@ require("./DocumentContainer.css");
|
|
|
11
11
|
|
|
12
12
|
var _reactHtmlRenderer = _interopRequireDefault(require("react-html-renderer"));
|
|
13
13
|
|
|
14
|
-
var _reactConfirmAlert = require("react-confirm-alert");
|
|
15
|
-
|
|
16
|
-
require("react-confirm-alert/src/react-confirm-alert.css");
|
|
17
|
-
|
|
18
|
-
var _Utils = _interopRequireDefault(require("../../Utils"));
|
|
19
|
-
|
|
20
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
15
|
|
|
22
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
23
|
-
|
|
24
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
|
-
|
|
26
|
-
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."); }
|
|
27
|
-
|
|
28
|
-
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); }
|
|
29
|
-
|
|
30
|
-
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; }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
34
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
|
-
|
|
36
|
-
// Import css
|
|
37
16
|
const DocumentContainer = props => {
|
|
38
|
-
const
|
|
39
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
40
|
-
documentContent = _React$useState2[0],
|
|
41
|
-
setDocumentContent = _React$useState2[1];
|
|
42
|
-
|
|
43
|
-
const _React$useState3 = _react.default.useState(null),
|
|
44
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
45
|
-
signatureImage = _React$useState4[0],
|
|
46
|
-
setSignatureImage = _React$useState4[1];
|
|
17
|
+
const [documentContent, setDocumentContent] = _react.default.useState(null);
|
|
47
18
|
|
|
48
|
-
const
|
|
49
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
50
|
-
initialImage = _React$useState6[0],
|
|
51
|
-
setInitialImage = _React$useState6[1];
|
|
19
|
+
const [signatureImage, setSignatureImage] = _react.default.useState(null);
|
|
52
20
|
|
|
53
|
-
const
|
|
54
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
55
|
-
htmlRendererProps = _React$useState8[0],
|
|
56
|
-
setHtmlRendererProps = _React$useState8[1];
|
|
21
|
+
const [initialImage, setInitialImage] = _react.default.useState(null);
|
|
57
22
|
|
|
58
|
-
const
|
|
23
|
+
const [htmlRendererProps, setHtmlRendererProps] = _react.default.useState(null);
|
|
59
24
|
|
|
60
25
|
_react.default.useEffect(() => {
|
|
61
26
|
if (signatureImage !== props.signatureImage) {
|
|
@@ -80,113 +45,61 @@ const DocumentContainer = props => {
|
|
|
80
45
|
let total = 0;
|
|
81
46
|
let rendererProps = {};
|
|
82
47
|
|
|
83
|
-
|
|
84
|
-
|
|
48
|
+
for (const signer of signers) {
|
|
49
|
+
total += signer.signatureInputs.length;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
for (const signer of signers) {
|
|
53
|
+
if (signer.email === props.config.signatoryId) {
|
|
54
|
+
let signingInputs = signer.signatureInputs;
|
|
85
55
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
56
|
+
for (const signingInput of signingInputs) {
|
|
57
|
+
signingInput.isFirst = count === 0;
|
|
58
|
+
signingInput.isLast = count === total - 1;
|
|
59
|
+
count++;
|
|
60
|
+
}
|
|
90
61
|
}
|
|
91
|
-
} catch (err) {
|
|
92
|
-
_iterator.e(err);
|
|
93
|
-
} finally {
|
|
94
|
-
_iterator.f();
|
|
95
62
|
}
|
|
96
63
|
|
|
97
|
-
|
|
98
|
-
|
|
64
|
+
for (const signer of signers) {
|
|
65
|
+
if (signer.email === props.config.signatoryId) {
|
|
66
|
+
let signingInputs = signer.signatureInputs;
|
|
99
67
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const signer = _step2.value;
|
|
68
|
+
for (const signingInput of signingInputs) {
|
|
69
|
+
let color = 'transparent';
|
|
103
70
|
|
|
104
|
-
|
|
105
|
-
|
|
71
|
+
if ("SIGN" === signingInput.inputType && signatureImage === null || "INITIAL" === signingInput.inputType && initialImage === null) {
|
|
72
|
+
color = 'red';
|
|
73
|
+
}
|
|
106
74
|
|
|
107
|
-
|
|
108
|
-
|
|
75
|
+
console.log(signingInput.tagName + " - " + signingInput.index + " - " + initialImage);
|
|
76
|
+
console.log(signingInput);
|
|
77
|
+
template = template.replace(signingInput.tagName, "<sgvp".concat(signingInput.index, " />"));
|
|
109
78
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
79
|
+
rendererProps["sgvp".concat(signingInput.index)] = props => /*#__PURE__*/_react.default.createElement("div", {
|
|
80
|
+
style: {
|
|
81
|
+
borderRadius: '4px',
|
|
82
|
+
position: 'absolute',
|
|
83
|
+
width: '100px',
|
|
84
|
+
height: '60px'
|
|
116
85
|
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
} catch (err) {
|
|
125
|
-
_iterator2.e(err);
|
|
126
|
-
} finally {
|
|
127
|
-
_iterator2.f();
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
var _iterator3 = _createForOfIteratorHelper(signers),
|
|
131
|
-
_step3;
|
|
132
|
-
|
|
133
|
-
try {
|
|
134
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
135
|
-
const signer = _step3.value;
|
|
136
|
-
|
|
137
|
-
if (signer.email === username) {
|
|
138
|
-
let signingInputs = signer.signatureInputs;
|
|
139
|
-
|
|
140
|
-
var _iterator5 = _createForOfIteratorHelper(signingInputs),
|
|
141
|
-
_step5;
|
|
142
|
-
|
|
143
|
-
try {
|
|
144
|
-
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
145
|
-
const signingInput = _step5.value;
|
|
146
|
-
let color = 'transparent';
|
|
147
|
-
|
|
148
|
-
if ("SIGN" === signingInput.inputType && signatureImage === null || "INITIAL" === signingInput.inputType && initialImage === null) {
|
|
149
|
-
color = 'red';
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
console.log(signingInput.tagName + " - " + signingInput.index + " - " + initialImage);
|
|
153
|
-
console.log(signingInput);
|
|
154
|
-
template = template.replace(signingInput.tagName, "<sgvp".concat(signingInput.index, " />"));
|
|
155
|
-
|
|
156
|
-
rendererProps["sgvp".concat(signingInput.index)] = props => /*#__PURE__*/_react.default.createElement("div", {
|
|
157
|
-
style: {
|
|
158
|
-
borderRadius: '4px',
|
|
159
|
-
position: 'absolute',
|
|
160
|
-
width: '100px',
|
|
161
|
-
height: '60px'
|
|
162
|
-
}
|
|
163
|
-
}, "SIGN" === signingInput.inputType && signatureImage !== null ? /*#__PURE__*/_react.default.createElement("img", {
|
|
164
|
-
src: signatureImage,
|
|
165
|
-
alt: '',
|
|
166
|
-
style: {
|
|
167
|
-
maxHeight: '100%',
|
|
168
|
-
maxWidth: '100%'
|
|
169
|
-
}
|
|
170
|
-
}) : "INITIAL" === signingInput.inputType && initialImage !== null ? /*#__PURE__*/_react.default.createElement("img", {
|
|
171
|
-
src: initialImage,
|
|
172
|
-
alt: '',
|
|
173
|
-
style: {
|
|
174
|
-
maxHeight: '100%',
|
|
175
|
-
maxWidth: '100%'
|
|
176
|
-
}
|
|
177
|
-
}) : null);
|
|
86
|
+
}, "SIGN" === signingInput.inputType && signatureImage !== null ? /*#__PURE__*/_react.default.createElement("img", {
|
|
87
|
+
src: signatureImage,
|
|
88
|
+
alt: '',
|
|
89
|
+
style: {
|
|
90
|
+
maxHeight: '100%',
|
|
91
|
+
maxWidth: '100%'
|
|
178
92
|
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
93
|
+
}) : "INITIAL" === signingInput.inputType && initialImage !== null ? /*#__PURE__*/_react.default.createElement("img", {
|
|
94
|
+
src: initialImage,
|
|
95
|
+
alt: '',
|
|
96
|
+
style: {
|
|
97
|
+
maxHeight: '100%',
|
|
98
|
+
maxWidth: '100%'
|
|
99
|
+
}
|
|
100
|
+
}) : null);
|
|
184
101
|
}
|
|
185
102
|
}
|
|
186
|
-
} catch (err) {
|
|
187
|
-
_iterator3.e(err);
|
|
188
|
-
} finally {
|
|
189
|
-
_iterator3.f();
|
|
190
103
|
}
|
|
191
104
|
|
|
192
105
|
setHtmlRendererProps(rendererProps);
|
|
@@ -25,24 +25,6 @@ var _Checkbox = _interopRequireDefault(require("@material-ui/core/Checkbox"));
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
27
|
|
|
28
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
29
|
-
|
|
30
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
34
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
35
|
-
|
|
36
|
-
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."); }
|
|
37
|
-
|
|
38
|
-
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); }
|
|
39
|
-
|
|
40
|
-
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; }
|
|
41
|
-
|
|
42
|
-
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; }
|
|
43
|
-
|
|
44
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
|
-
|
|
46
28
|
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
47
29
|
button: {
|
|
48
30
|
margin: theme.spacing(1)
|
|
@@ -76,20 +58,11 @@ const ImageSignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_reac
|
|
|
76
58
|
const width = '320px';
|
|
77
59
|
const height = '320px';
|
|
78
60
|
|
|
79
|
-
const
|
|
80
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
81
|
-
value = _React$useState2[0],
|
|
82
|
-
setValue = _React$useState2[1];
|
|
61
|
+
const [value, setValue] = _react.default.useState(null);
|
|
83
62
|
|
|
84
|
-
const
|
|
85
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
86
|
-
uploaded = _React$useState4[0],
|
|
87
|
-
setUploaded = _React$useState4[1];
|
|
63
|
+
const [uploaded, setUploaded] = _react.default.useState(false);
|
|
88
64
|
|
|
89
|
-
const
|
|
90
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
91
|
-
saveAsSystemImage = _React$useState6[0],
|
|
92
|
-
setSaveAsSystemImage = _React$useState6[1];
|
|
65
|
+
const [saveAsSystemImage, setSaveAsSystemImage] = _react.default.useState(false);
|
|
93
66
|
|
|
94
67
|
_react.default.useEffect(() => {
|
|
95
68
|
if (value !== props.value) {
|
|
@@ -117,7 +90,7 @@ const ImageSignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_reac
|
|
|
117
90
|
|
|
118
91
|
function process(callback, data, action) {
|
|
119
92
|
let fetchConfig = getFetchConfig(data);
|
|
120
|
-
let url = location + _ApplicationContext.default.
|
|
93
|
+
let url = location + _ApplicationContext.default.getContextRoot() + props.imageProcessingUrl + "/" + action + "/TEXT";
|
|
121
94
|
(0, _reactPromiseTracker.trackPromise)(fetch(encodeURI(url), fetchConfig).then(status).then(json).then(data => {
|
|
122
95
|
callback(data);
|
|
123
96
|
}).catch(e => {
|
|
@@ -194,9 +167,9 @@ const ImageSignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_reac
|
|
|
194
167
|
},
|
|
195
168
|
onClick: () => {
|
|
196
169
|
process(data => {
|
|
197
|
-
setValue(
|
|
170
|
+
setValue({ ...value,
|
|
198
171
|
url: data
|
|
199
|
-
})
|
|
172
|
+
});
|
|
200
173
|
}, value.url, 'rotateLeft');
|
|
201
174
|
},
|
|
202
175
|
startIcon: /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
@@ -216,9 +189,9 @@ const ImageSignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_reac
|
|
|
216
189
|
},
|
|
217
190
|
onClick: () => {
|
|
218
191
|
process(data => {
|
|
219
|
-
setValue(
|
|
192
|
+
setValue({ ...value,
|
|
220
193
|
url: data
|
|
221
|
-
})
|
|
194
|
+
});
|
|
222
195
|
}, value.url, 'rotateRight');
|
|
223
196
|
},
|
|
224
197
|
startIcon: /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
@@ -23,18 +23,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
23
23
|
|
|
24
24
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
25
|
|
|
26
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
27
|
-
|
|
28
|
-
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."); }
|
|
29
|
-
|
|
30
|
-
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); }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
34
|
-
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; }
|
|
35
|
-
|
|
36
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
|
-
|
|
38
26
|
const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
39
27
|
root: {
|
|
40
28
|
display: 'flex'
|
|
@@ -53,10 +41,7 @@ const useStyles = (0, _styles.makeStyles)(theme => ({
|
|
|
53
41
|
function MenuButton(props) {
|
|
54
42
|
const classes = useStyles();
|
|
55
43
|
|
|
56
|
-
const
|
|
57
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
58
|
-
open = _React$useState2[0],
|
|
59
|
-
setOpen = _React$useState2[1];
|
|
44
|
+
const [open, setOpen] = _react.default.useState(false);
|
|
60
45
|
|
|
61
46
|
const anchorRef = _react.default.useRef(null);
|
|
62
47
|
|
|
@@ -21,33 +21,12 @@ var _DialogTitle = _interopRequireDefault(require("@material-ui/core/DialogTitle
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
24
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
|
-
|
|
26
|
-
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."); }
|
|
27
|
-
|
|
28
|
-
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); }
|
|
29
|
-
|
|
30
|
-
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; }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
34
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
|
-
|
|
36
24
|
function Prompt(props) {
|
|
37
|
-
const
|
|
38
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
39
|
-
open = _React$useState2[0],
|
|
40
|
-
setOpen = _React$useState2[1];
|
|
25
|
+
const [open, setOpen] = _react.default.useState(false);
|
|
41
26
|
|
|
42
|
-
const
|
|
43
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
44
|
-
content = _React$useState4[0],
|
|
45
|
-
setContent = _React$useState4[1];
|
|
27
|
+
const [content, setContent] = _react.default.useState(props.promptContent);
|
|
46
28
|
|
|
47
|
-
const
|
|
48
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
49
|
-
title = _React$useState6[0],
|
|
50
|
-
setTitle = _React$useState6[1];
|
|
29
|
+
const [title, setTitle] = _react.default.useState(props.promptTitle);
|
|
51
30
|
|
|
52
31
|
const handleNo = () => {
|
|
53
32
|
setOpen(false);
|
|
@@ -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);
|