@agilemotion/oui-react-js 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApplicationManager.js +698 -421
- package/dist/BasicApp.js +5 -5
- package/dist/BasicAppHome.js +55 -26
- package/dist/DynamicJS.js +147 -65
- package/dist/InteractionPortalApp.css +1 -1
- package/dist/InteractionPortalApp.js +5 -5
- package/dist/InteractionPortalAppHome.js +65 -18
- package/dist/InteractionPortalApp_old.js +107 -61
- package/dist/RestUtils.js +339 -287
- package/dist/TypedValue.js +18 -15
- package/dist/Utils.js +375 -276
- package/dist/WithRouter.js +6 -6
- package/dist/assets/jss/components/authNavbarStyle.js +166 -164
- package/dist/assets/jss/components/buttonStyle.js +1 -1
- package/dist/assets/jss/components/cardAvatarStyle.js +1 -1
- package/dist/assets/jss/components/cardBodyStyle.js +1 -1
- package/dist/assets/jss/components/cardFooterStyle.js +1 -1
- package/dist/assets/jss/components/cardHeaderStyle.js +13 -13
- package/dist/assets/jss/components/cardIconStyle.js +1 -1
- package/dist/assets/jss/components/cardStyle.js +1 -1
- package/dist/assets/jss/components/cardTextStyle.js +1 -1
- package/dist/assets/jss/components/customDropdownStyle.js +168 -169
- package/dist/assets/jss/components/customInputStyle.js +9 -3
- package/dist/assets/jss/components/dropdownStyle.js +69 -69
- package/dist/assets/jss/components/footerStyle.js +19 -13
- package/dist/assets/jss/components/headerLinksStyle.js +45 -48
- package/dist/assets/jss/components/headerStyle.js +68 -65
- package/dist/assets/jss/components/navbarLinksStyle.js +66 -77
- package/dist/assets/jss/components/navbarStyle.js +79 -76
- package/dist/assets/jss/components/sidebarStyle.js +436 -436
- package/dist/assets/jss/components/typographyStyle.js +9 -3
- package/dist/assets/jss/rootStyle.js +96 -81
- package/dist/assets/jss/views/layoutStyle.js +44 -41
- package/dist/assets/jss/views/loginBasicStyle.js +1 -1
- package/dist/assets/jss/views/loginBusinessPortalStyle.js +1 -1
- package/dist/assets/jss/views/loginStyle.js +82 -77
- package/dist/components/AlertBar.js +50 -17
- package/dist/components/AlertItem.js +35 -12
- package/dist/components/AlertTemplate.js +30 -29
- package/dist/components/Button.js +62 -34
- package/dist/components/Calendar.js +140 -91
- package/dist/components/ConfirmationDialog.js +36 -11
- package/dist/components/DataGrid.js +512 -270
- package/dist/components/DataGridColumn.js +47 -22
- package/dist/components/DataGridFilter.js +186 -105
- package/dist/components/DataGridHeading.js +50 -32
- package/dist/components/Dialog.js +90 -35
- package/dist/components/DocumentTemplateDesigner.js +34 -16
- package/dist/components/DocumentTemplateDesignerComponent.css +0 -157
- package/dist/components/DocumentTemplateDesignerComponent.js +118 -62
- package/dist/components/DocumentTemplatePlaceholderDialog.js +52 -30
- package/dist/components/DocumentViewer.js +34 -18
- package/dist/components/DocumentViewerComponent.js +26 -9
- package/dist/components/ElementResizeHandler.js +229 -207
- package/dist/components/FileThumb.js +32 -10
- package/dist/components/Graph.js +153 -85
- package/dist/components/GraphNode.js +58 -38
- package/dist/components/HtmlPanel.js +67 -39
- package/dist/components/Icon.js +206 -166
- package/dist/components/LoadingIndicator.js +3 -3
- package/dist/components/LottieIcon.js +1 -1
- package/dist/components/PopupView.js +39 -19
- package/dist/components/Portlet.js +35 -19
- package/dist/components/RegularButton.js +28 -32
- package/dist/components/SignaturePanel.js +37 -17
- package/dist/components/SocketManager.js +178 -119
- package/dist/components/StepperTitleBar.js +62 -42
- package/dist/components/TabPage.js +30 -25
- package/dist/components/TabPanel.js +86 -33
- package/dist/components/TableCellContent.js +51 -32
- package/dist/components/TemplateDesigner.js +173 -121
- package/dist/components/TemplateItemEventHandler.js +335 -221
- package/dist/components/TemplateTable.js +183 -118
- package/dist/components/TitleBar.js +26 -11
- package/dist/components/Toolbar.js +67 -38
- package/dist/components/Tooltip.js +43 -35
- package/dist/components/Tree.js +85 -44
- package/dist/components/UseIsVisible.js +25 -4
- package/dist/components/card/Card.js +27 -33
- package/dist/components/card/CardAvatar.js +20 -19
- package/dist/components/card/CardBody.js +24 -27
- package/dist/components/card/CardFooter.js +23 -24
- package/dist/components/card/CardHeader.js +24 -27
- package/dist/components/card/CardIcon.js +17 -13
- package/dist/components/card/CardText.js +17 -13
- package/dist/components/customInput/CustomInput.js +22 -36
- package/dist/components/dashboard/{BasicBusinessAppDashboard.js → FoldingSideTabDashboard.js} +111 -63
- package/dist/components/dashboard/SideMenuModuleDashboard.css +60 -0
- package/dist/components/dashboard/SideMenuModuleDashboard.js +423 -0
- package/dist/components/dashboard/TopMenuModuleDashboard.js +138 -0
- package/dist/components/dashboard/components/Header.js +29 -12
- package/dist/components/dashboard/components/LeftDrawer.js +3 -5
- package/dist/components/dashboard/components/UserIdentity.js +2 -2
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +131 -87
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +488 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenu.js +64 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.css +65 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +556 -0
- package/dist/components/dashboard/components/portal/Timeline.js +1 -1
- package/dist/components/dashboard/components/portal/Workspace.js +5 -11
- package/dist/components/footer/Footer.js +31 -24
- package/dist/components/footer/HomeFooter.js +68 -34
- package/dist/components/form/AddressSearch.js +78 -42
- package/dist/components/form/AutoComplete.js +136 -55
- package/dist/components/form/BaseField.js +108 -56
- package/dist/components/form/Checkbox.js +10 -8
- package/dist/components/form/DatePicker.js +47 -25
- package/dist/components/form/FieldSet.js +217 -84
- package/dist/components/form/Form.js +334 -200
- package/dist/components/form/GridField.js +185 -82
- package/dist/components/form/IconField.js +9 -7
- package/dist/components/form/ImageEditor.js +141 -92
- package/dist/components/form/LabelField.js +12 -10
- package/dist/components/form/LookupField.js +54 -32
- package/dist/components/form/MultiFileUploadField.js +101 -67
- package/dist/components/form/RadioGroup.js +33 -16
- package/dist/components/form/Section.js +84 -34
- package/dist/components/form/SelectItem.js +55 -33
- package/dist/components/form/SignatureTemplateDesignerField.js +11 -9
- package/dist/components/form/Switch.js +10 -8
- package/dist/components/form/TextField.js +34 -16
- package/dist/components/form/TimePicker.js +19 -15
- package/dist/components/form/TransferList.js +153 -75
- package/dist/components/form/UploadField.js +183 -128
- package/dist/components/grid/GridContainer.js +12 -8
- package/dist/components/grid/GridItem.js +12 -8
- package/dist/components/layout/CollapsiblePanel.js +44 -18
- package/dist/components/layout/Layout.js +81 -40
- package/dist/components/layout/VC.css +1 -1
- package/dist/components/layout/View.js +136 -62
- package/dist/components/layout/ViewContainer.js +13 -11
- package/dist/components/layout/ViewPort.js +25 -10
- package/dist/components/layout/Window.js +87 -53
- package/dist/components/layout/WindowViewPort.js +38 -16
- package/dist/components/media/ClosablePanel.js +7 -7
- package/dist/components/media/LobbyWaitingList.js +7 -9
- package/dist/components/media/MediaSoupHelper.js +379 -187
- package/dist/components/media/SideBarContent.js +22 -14
- package/dist/components/media/SocketRequest.js +5 -1
- package/dist/components/media/SocketResponse.js +5 -1
- package/dist/components/media/Timer.js +35 -15
- package/dist/components/media/Toolbar.css +5 -0
- package/dist/components/media/Toolbar.js +220 -102
- package/dist/components/media/ToolbarButton.js +82 -33
- package/dist/components/media/Toolbar_bck.js +142 -70
- package/dist/components/media/Tracks.js +31 -28
- package/dist/components/media/TrainingRoom.js +284 -121
- package/dist/components/media/Transports.js +27 -24
- package/dist/components/media/VCEventManager.js +95 -31
- package/dist/components/media/VCEventType.js +5 -1
- package/dist/components/media/VCParticipantList.js +40 -14
- package/dist/components/media/VCParticipantListItem.js +92 -41
- package/dist/components/media/VCRoom.js +29 -11
- package/dist/components/media/VCRoomParticipant.js +488 -242
- package/dist/components/media/VCRoomRecorder.js +236 -175
- package/dist/components/media/VCRoomWorkspace.js +505 -245
- package/dist/components/media/Video.js +89 -25
- package/dist/components/media/VideoPlayer.js +56 -22
- package/dist/components/media/chat/ChatRoom.js +255 -132
- package/dist/components/media/chat/ChatRoomItem.js +35 -14
- package/dist/components/media/chat/ChatRoomList.js +43 -13
- package/dist/components/menu/CollapsibleMenu.js +39 -20
- package/dist/components/menu/MenuBars.js +81 -48
- package/dist/components/menu/MenuButton.js +95 -60
- package/dist/components/menu/MenuItem.js +28 -9
- package/dist/components/menu/MenuLink.js +12 -10
- package/dist/components/menu/PopupMenu.js +16 -12
- package/dist/components/navbars/AuthNavbar.js +27 -18
- package/dist/components/navbars/HomeNavbar.js +243 -194
- package/dist/components/navbars/PortalNavbar.js +50 -26
- package/dist/components/signatures/AgilitySignaturePanel.js +96 -39
- package/dist/components/signatures/AlertItem.js +36 -13
- package/dist/components/signatures/Card.js +4 -4
- package/dist/components/signatures/DocumentContainer.js +141 -57
- package/dist/components/signatures/ImageSignatureInput.js +90 -59
- package/dist/components/signatures/MenuButton.js +53 -33
- package/dist/components/signatures/Prompt.js +26 -5
- package/dist/components/signatures/ResponsiveTable.js +302 -197
- package/dist/components/signatures/SearchView.js +77 -36
- package/dist/components/signatures/SignatorySearch.js +30 -10
- package/dist/components/signatures/SignatorySearchForm.js +35 -18
- package/dist/components/signatures/SignatureInput.js +56 -26
- package/dist/components/signatures/SignatureInputProps.js +107 -55
- package/dist/components/signatures/SignatureTemplateDesigner.js +340 -235
- package/dist/components/signatures/Toolbar.js +135 -94
- package/dist/components/signatures/ViewUtils.js +273 -224
- package/dist/components/typography/Danger.js +3 -5
- package/dist/components/typography/Info.js +3 -5
- package/dist/components/typography/Link.js +3 -5
- package/dist/event/ActionHandlers.js +57 -43
- package/dist/event/Event.js +16 -13
- package/dist/event/EventListener.js +39 -36
- package/dist/event/EventType.js +5 -1
- package/dist/event/LoadDataActionHandler.js +20 -8
- package/dist/event/Observable.js +323 -142
- package/dist/event/RouteActionHandler.js +139 -125
- package/dist/event/ScriptActionHandler.js +20 -8
- package/dist/event/ServiceCallActionHandler.js +51 -39
- package/dist/event/SignalGraphActionHandler.js +19 -7
- package/dist/js/Addresses.js +38 -24
- package/dist/js/Calendar.js +168 -161
- package/dist/js/DynamicLib.js +14 -11
- package/dist/js/Media.js +213 -120
- package/dist/js/Validators.js +6 -5
- package/dist/js/Windows.js +48 -47
- package/dist/redux/store/ConfigureStore.js +17 -9
- package/dist/redux/store/DashboardStore.js +110 -43
- package/dist/redux/store/History.js +1 -1
- package/dist/redux/store/SecurityStore.js +59 -20
- package/dist/security/TokenManager.js +44 -30
- package/dist/theme-default.js +1 -1
- package/dist/view/Dashboard.js +230 -137
- package/dist/view/PortalDashboard.js +5 -5
- package/dist/view/Settings.js +4 -2
- package/dist/view/Views.js +27 -14
- package/dist/view/security/ChangePasswordBasic.js +97 -40
- package/dist/view/security/ForgotPassword.js +59 -22
- package/dist/view/security/ForgotPasswordBasic.js +62 -21
- package/dist/view/security/Login.js +64 -24
- package/dist/view/security/LoginBasic.js +65 -26
- package/dist/view/security/LoginInteractionPortal.js +62 -25
- package/dist/view/security/ResetPassword.js +65 -23
- package/dist/view/security/ResetPasswordBasic.js +91 -37
- package/dist/view/security/Security.js +12 -12
- package/package.json +1 -2
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +0 -154
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +0 -447
- /package/dist/components/dashboard/{BusinessPortalAppDashboard.css → TopMenuModuleDashboard.css} +0 -0
- /package/dist/components/dashboard/components/blackDashboard/sidebar/{Sidebar.css → FoldingTabSidebar.css} +0 -0
|
@@ -25,58 +25,87 @@ 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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
}));
|
|
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."); }
|
|
39
37
|
|
|
40
|
-
|
|
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
|
+
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
47
|
+
return {
|
|
48
|
+
button: {
|
|
49
|
+
margin: theme.spacing(1)
|
|
50
|
+
},
|
|
51
|
+
input: {
|
|
52
|
+
display: 'none'
|
|
53
|
+
},
|
|
54
|
+
errorMessageDisplay: {
|
|
55
|
+
color: 'red'
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
var status = function status(response) {
|
|
41
61
|
if (response.ok) {
|
|
42
62
|
return Promise.resolve(response);
|
|
43
63
|
} else {
|
|
44
|
-
|
|
64
|
+
var error = new Error(response.statusText);
|
|
45
65
|
error.code = response.status;
|
|
46
66
|
return Promise.reject(error);
|
|
47
67
|
}
|
|
48
68
|
};
|
|
49
69
|
|
|
50
|
-
|
|
70
|
+
var json = function json(response) {
|
|
51
71
|
return response.text();
|
|
52
72
|
};
|
|
53
73
|
|
|
54
|
-
|
|
74
|
+
var location = window.location.protocol + "//" + window.location.hostname;
|
|
55
75
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
76
|
+
var ImageSignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
77
|
+
var classes = useStyles();
|
|
78
|
+
var width = '320px';
|
|
79
|
+
var height = '320px';
|
|
60
80
|
|
|
61
|
-
|
|
81
|
+
var _React$useState = _react.default.useState(null),
|
|
82
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
83
|
+
value = _React$useState2[0],
|
|
84
|
+
setValue = _React$useState2[1];
|
|
62
85
|
|
|
63
|
-
|
|
86
|
+
var _React$useState3 = _react.default.useState(false),
|
|
87
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
88
|
+
uploaded = _React$useState4[0],
|
|
89
|
+
setUploaded = _React$useState4[1];
|
|
64
90
|
|
|
65
|
-
|
|
91
|
+
var _React$useState5 = _react.default.useState(false),
|
|
92
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
93
|
+
saveAsSystemImage = _React$useState6[0],
|
|
94
|
+
setSaveAsSystemImage = _React$useState6[1];
|
|
66
95
|
|
|
67
|
-
_react.default.useEffect(()
|
|
96
|
+
_react.default.useEffect(function () {
|
|
68
97
|
if (value !== props.value) {
|
|
69
98
|
setValue(props.value);
|
|
70
99
|
}
|
|
71
100
|
}, [props.value]);
|
|
72
101
|
|
|
73
|
-
_react.default.useEffect(()
|
|
102
|
+
_react.default.useEffect(function () {
|
|
74
103
|
props.valueChangeHandler(value, saveAsSystemImage);
|
|
75
104
|
}, [value]);
|
|
76
105
|
|
|
77
106
|
function getFetchConfig(data) {
|
|
78
|
-
|
|
79
|
-
|
|
107
|
+
var accessToken = sessionStorage.getItem("accessToken");
|
|
108
|
+
var idToken = sessionStorage.getItem("idToken");
|
|
80
109
|
return {
|
|
81
110
|
method: 'POST',
|
|
82
111
|
headers: {
|
|
@@ -89,11 +118,11 @@ const ImageSignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_reac
|
|
|
89
118
|
}
|
|
90
119
|
|
|
91
120
|
function process(callback, data, action) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
(0, _reactPromiseTracker.trackPromise)(fetch(encodeURI(url), fetchConfig).then(status).then(json).then(data
|
|
121
|
+
var fetchConfig = getFetchConfig(data);
|
|
122
|
+
var url = location + _ApplicationManager.default.getContextRoot() + props.imageProcessingUrl + "/" + action + "/TEXT";
|
|
123
|
+
(0, _reactPromiseTracker.trackPromise)(fetch(encodeURI(url), fetchConfig).then(status).then(json).then(function (data) {
|
|
95
124
|
callback(data);
|
|
96
|
-
}).catch(e
|
|
125
|
+
}).catch(function (e) {
|
|
97
126
|
if (e.code === 401) {
|
|
98
127
|
_ApplicationManager.default.clear();
|
|
99
128
|
|
|
@@ -102,27 +131,29 @@ const ImageSignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_reac
|
|
|
102
131
|
}));
|
|
103
132
|
}
|
|
104
133
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
reader.onload = () => {
|
|
112
|
-
if (!_Utils.default.isNull(file)) {
|
|
113
|
-
let fileMetaData = {};
|
|
114
|
-
fileMetaData.name = file.name;
|
|
115
|
-
fileMetaData.type = file.type;
|
|
116
|
-
fileMetaData.size = file.size;
|
|
117
|
-
process(data => {
|
|
118
|
-
fileMetaData.url = data;
|
|
119
|
-
setValue(fileMetaData);
|
|
120
|
-
setUploaded(true);
|
|
121
|
-
}, reader.result, 'removeBackground');
|
|
122
|
-
}
|
|
123
|
-
};
|
|
134
|
+
var handleChange = function handleChange() {
|
|
135
|
+
return function (event) {
|
|
136
|
+
var files = event.target.files;
|
|
137
|
+
var file = files[0];
|
|
138
|
+
var reader = new FileReader();
|
|
139
|
+
reader.readAsDataURL(file);
|
|
124
140
|
|
|
125
|
-
|
|
141
|
+
reader.onload = function () {
|
|
142
|
+
if (!_Utils.default.isNull(file)) {
|
|
143
|
+
var fileMetaData = {};
|
|
144
|
+
fileMetaData.name = file.name;
|
|
145
|
+
fileMetaData.type = file.type;
|
|
146
|
+
fileMetaData.size = file.size;
|
|
147
|
+
process(function (data) {
|
|
148
|
+
fileMetaData.url = data;
|
|
149
|
+
setValue(fileMetaData);
|
|
150
|
+
setUploaded(true);
|
|
151
|
+
}, reader.result, 'removeBackground');
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
reader.onloadend = function () {};
|
|
156
|
+
};
|
|
126
157
|
};
|
|
127
158
|
|
|
128
159
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -165,11 +196,11 @@ const ImageSignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_reac
|
|
|
165
196
|
width: '40px',
|
|
166
197
|
height: '40px'
|
|
167
198
|
},
|
|
168
|
-
onClick: ()
|
|
169
|
-
process(data
|
|
170
|
-
setValue({
|
|
199
|
+
onClick: function onClick() {
|
|
200
|
+
process(function (data) {
|
|
201
|
+
setValue(_objectSpread(_objectSpread({}, value), {}, {
|
|
171
202
|
url: data
|
|
172
|
-
});
|
|
203
|
+
}));
|
|
173
204
|
}, value.url, 'rotateLeft');
|
|
174
205
|
},
|
|
175
206
|
startIcon: /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
@@ -187,11 +218,11 @@ const ImageSignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_reac
|
|
|
187
218
|
width: '40px',
|
|
188
219
|
height: '40px'
|
|
189
220
|
},
|
|
190
|
-
onClick: ()
|
|
191
|
-
process(data
|
|
192
|
-
setValue({
|
|
221
|
+
onClick: function onClick() {
|
|
222
|
+
process(function (data) {
|
|
223
|
+
setValue(_objectSpread(_objectSpread({}, value), {}, {
|
|
193
224
|
url: data
|
|
194
|
-
});
|
|
225
|
+
}));
|
|
195
226
|
}, value.url, 'rotateRight');
|
|
196
227
|
},
|
|
197
228
|
startIcon: /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
@@ -220,7 +251,7 @@ const ImageSignatureInput = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_reac
|
|
|
220
251
|
control: /*#__PURE__*/_react.default.createElement(_Checkbox.default, {
|
|
221
252
|
checked: saveAsSystemImage,
|
|
222
253
|
value: saveAsSystemImage,
|
|
223
|
-
onChange: e
|
|
254
|
+
onChange: function onChange(e) {
|
|
224
255
|
setSaveAsSystemImage(e.target.checked);
|
|
225
256
|
|
|
226
257
|
if (!_Utils.default.isNull(value)) {
|
|
@@ -23,35 +23,54 @@ 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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
+
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
39
|
+
return {
|
|
40
|
+
root: {
|
|
41
|
+
display: 'flex'
|
|
42
|
+
},
|
|
43
|
+
paper: {
|
|
44
|
+
marginRight: theme.spacing(2)
|
|
45
|
+
},
|
|
46
|
+
MuiButtonDefault: {
|
|
47
|
+
color: 'rgb(0, 0, 0, .38)'
|
|
48
|
+
},
|
|
49
|
+
MuiButtonWhite: {
|
|
50
|
+
color: '#fff'
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
});
|
|
40
54
|
|
|
41
55
|
function MenuButton(props) {
|
|
42
|
-
|
|
56
|
+
var classes = useStyles();
|
|
43
57
|
|
|
44
|
-
|
|
58
|
+
var _React$useState = _react.default.useState(false),
|
|
59
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
60
|
+
open = _React$useState2[0],
|
|
61
|
+
setOpen = _React$useState2[1];
|
|
45
62
|
|
|
46
|
-
|
|
63
|
+
var anchorRef = _react.default.useRef(null);
|
|
47
64
|
|
|
48
|
-
|
|
65
|
+
var width = props.width !== null ? props.width : "60px";
|
|
49
66
|
|
|
50
|
-
|
|
51
|
-
setOpen(
|
|
67
|
+
var handleToggle = function handleToggle() {
|
|
68
|
+
setOpen(function (prevOpen) {
|
|
69
|
+
return !prevOpen;
|
|
70
|
+
});
|
|
52
71
|
};
|
|
53
72
|
|
|
54
|
-
|
|
73
|
+
var handleClose = function handleClose(event) {
|
|
55
74
|
if (anchorRef.current && anchorRef.current.contains(event.target)) {
|
|
56
75
|
return;
|
|
57
76
|
}
|
|
@@ -78,16 +97,17 @@ function MenuButton(props) {
|
|
|
78
97
|
keepMounted: true,
|
|
79
98
|
transition: true,
|
|
80
99
|
disablePortal: true
|
|
81
|
-
}, ({
|
|
82
|
-
TransitionProps,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
100
|
+
}, function (_ref) {
|
|
101
|
+
var TransitionProps = _ref.TransitionProps,
|
|
102
|
+
placement = _ref.placement;
|
|
103
|
+
return /*#__PURE__*/_react.default.createElement(_Grow.default, _extends({}, TransitionProps, {
|
|
104
|
+
style: {
|
|
105
|
+
transformOrigin: placement === 'bottom' ? 'center top' : 'center bottom'
|
|
106
|
+
}
|
|
107
|
+
}), /*#__PURE__*/_react.default.createElement(_Paper.default, {
|
|
108
|
+
id: "menu-list-grow"
|
|
109
|
+
}, /*#__PURE__*/_react.default.createElement(_ClickAwayListener.default, {
|
|
110
|
+
onClickAway: handleClose
|
|
111
|
+
}, props.children)));
|
|
112
|
+
})));
|
|
93
113
|
}
|
|
@@ -21,19 +21,40 @@ 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
|
+
|
|
24
36
|
function Prompt(props) {
|
|
25
|
-
|
|
37
|
+
var _React$useState = _react.default.useState(false),
|
|
38
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
39
|
+
open = _React$useState2[0],
|
|
40
|
+
setOpen = _React$useState2[1];
|
|
26
41
|
|
|
27
|
-
|
|
42
|
+
var _React$useState3 = _react.default.useState(props.promptContent),
|
|
43
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
44
|
+
content = _React$useState4[0],
|
|
45
|
+
setContent = _React$useState4[1];
|
|
28
46
|
|
|
29
|
-
|
|
47
|
+
var _React$useState5 = _react.default.useState(props.promptTitle),
|
|
48
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
49
|
+
title = _React$useState6[0],
|
|
50
|
+
setTitle = _React$useState6[1];
|
|
30
51
|
|
|
31
|
-
|
|
52
|
+
var handleNo = function handleNo() {
|
|
32
53
|
setOpen(false);
|
|
33
54
|
props.closePrompt();
|
|
34
55
|
};
|
|
35
56
|
|
|
36
|
-
_react.default.useEffect(()
|
|
57
|
+
_react.default.useEffect(function () {
|
|
37
58
|
setOpen(props.open);
|
|
38
59
|
}, [props.open]);
|
|
39
60
|
|