@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
|
@@ -37,26 +37,12 @@ var _TemplateItemEventHandler = _interopRequireDefault(require("../TemplateItemE
|
|
|
37
37
|
|
|
38
38
|
require("../TemplateDesigner.css");
|
|
39
39
|
|
|
40
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function
|
|
40
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
41
41
|
|
|
42
42
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
43
43
|
|
|
44
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
45
45
|
|
|
46
|
-
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; } } }; }
|
|
47
|
-
|
|
48
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
49
|
-
|
|
50
|
-
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."); }
|
|
51
|
-
|
|
52
|
-
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); }
|
|
53
|
-
|
|
54
|
-
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; }
|
|
55
|
-
|
|
56
|
-
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; }
|
|
57
|
-
|
|
58
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
59
|
-
|
|
60
46
|
const INITIAL_ITEM = {
|
|
61
47
|
defaultWidthOnPageDrop: 80,
|
|
62
48
|
defaultHeightOnPageDrop: 80
|
|
@@ -82,40 +68,40 @@ const useStyles = (0, _core.makeStyles)(theme => ({
|
|
|
82
68
|
color: 'red'
|
|
83
69
|
},
|
|
84
70
|
propertyWindow: {
|
|
85
|
-
height:
|
|
86
|
-
margin:
|
|
87
|
-
borderRadius:
|
|
88
|
-
paddingLeft:
|
|
89
|
-
borderBottom:
|
|
90
|
-
borderTop:
|
|
71
|
+
height: '400px',
|
|
72
|
+
margin: '4px',
|
|
73
|
+
borderRadius: '4px',
|
|
74
|
+
paddingLeft: '24px',
|
|
75
|
+
borderBottom: '1px solid #e1e1e1',
|
|
76
|
+
borderTop: '1px solid #e1e1e1'
|
|
91
77
|
},
|
|
92
78
|
paletteButton: {
|
|
93
|
-
width:
|
|
94
|
-
height:
|
|
95
|
-
backgroundColor:
|
|
96
|
-
margin:
|
|
97
|
-
textAlign:
|
|
98
|
-
padding:
|
|
99
|
-
borderRadius:
|
|
79
|
+
width: '270px',
|
|
80
|
+
height: '40px',
|
|
81
|
+
backgroundColor: '#e1e1e1',
|
|
82
|
+
margin: '4px',
|
|
83
|
+
textAlign: 'center',
|
|
84
|
+
padding: '28px 0',
|
|
85
|
+
borderRadius: '4px',
|
|
100
86
|
cursor: 'grabbing'
|
|
101
87
|
},
|
|
102
88
|
paletteButtonSelected: {
|
|
103
89
|
'&:hover': {
|
|
104
|
-
backgroundColor:
|
|
90
|
+
backgroundColor: 'yellowgreen'
|
|
105
91
|
},
|
|
106
|
-
width:
|
|
107
|
-
height:
|
|
108
|
-
backgroundColor:
|
|
109
|
-
margin:
|
|
110
|
-
textAlign:
|
|
111
|
-
padding:
|
|
112
|
-
borderRadius:
|
|
92
|
+
width: '270px',
|
|
93
|
+
height: '40px',
|
|
94
|
+
backgroundColor: 'yellowgreen',
|
|
95
|
+
margin: '4px',
|
|
96
|
+
textAlign: 'center',
|
|
97
|
+
padding: '28px 0',
|
|
98
|
+
borderRadius: '4px',
|
|
113
99
|
cursor: 'grabbing'
|
|
114
100
|
},
|
|
115
101
|
palette: {
|
|
116
|
-
width:
|
|
117
|
-
borderRadius:
|
|
118
|
-
border:
|
|
102
|
+
width: '280px',
|
|
103
|
+
borderRadius: '4px',
|
|
104
|
+
border: '1px solid #e1e1e1'
|
|
119
105
|
}
|
|
120
106
|
}));
|
|
121
107
|
|
|
@@ -133,81 +119,46 @@ const json = response => {
|
|
|
133
119
|
return response.text();
|
|
134
120
|
};
|
|
135
121
|
|
|
136
|
-
const location = window.location.protocol +
|
|
122
|
+
const location = window.location.protocol + '//' + window.location.hostname;
|
|
137
123
|
const templateItemEventHandler = new _TemplateItemEventHandler.default();
|
|
138
|
-
const VALID_COLOR =
|
|
124
|
+
const VALID_COLOR = 'green';
|
|
139
125
|
|
|
140
126
|
const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
141
|
-
const
|
|
142
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
143
|
-
file = _React$useState2[0],
|
|
144
|
-
setFile = _React$useState2[1];
|
|
127
|
+
const [file, setFile] = _react.default.useState(null);
|
|
145
128
|
|
|
146
|
-
const
|
|
147
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
148
|
-
templateDoc = _React$useState4[0],
|
|
149
|
-
setTemplateDoc = _React$useState4[1];
|
|
129
|
+
const [templateDoc, setTemplateDoc] = _react.default.useState(null);
|
|
150
130
|
|
|
151
|
-
const
|
|
152
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
153
|
-
paletteSelectionId = _React$useState6[0],
|
|
154
|
-
setPaletteSelectionId = _React$useState6[1];
|
|
131
|
+
const [paletteSelectionId, setPaletteSelectionId] = _react.default.useState(null);
|
|
155
132
|
|
|
156
133
|
const paletteSelection = _react.default.useRef(null);
|
|
157
134
|
|
|
158
135
|
const idCounter = _react.default.useRef(0);
|
|
159
136
|
|
|
160
|
-
const
|
|
161
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
162
|
-
value = _React$useState8[0],
|
|
163
|
-
setValue = _React$useState8[1];
|
|
137
|
+
const [value, setValue] = _react.default.useState(null);
|
|
164
138
|
|
|
165
|
-
const
|
|
166
|
-
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
167
|
-
selectedInputBoxValue = _React$useState10[0],
|
|
168
|
-
setSelectedInputBoxValue = _React$useState10[1];
|
|
139
|
+
const [selectedInputBoxValue, setSelectedInputBoxValue] = _react.default.useState(null);
|
|
169
140
|
|
|
170
|
-
const
|
|
171
|
-
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
|
172
|
-
inputBoxValues = _React$useState12[0],
|
|
173
|
-
setInputBoxValues = _React$useState12[1];
|
|
141
|
+
const [inputBoxValues, setInputBoxValues] = _react.default.useState([]);
|
|
174
142
|
|
|
175
143
|
const classes = useStyles();
|
|
176
144
|
|
|
177
|
-
const
|
|
178
|
-
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
179
|
-
initializing = _React$useState14[0],
|
|
180
|
-
setInitializing = _React$useState14[1];
|
|
181
|
-
|
|
182
|
-
const _React$useState15 = _react.default.useState(_Utils.default.isNull(props.autoLoadData) || props.autoLoadData === true),
|
|
183
|
-
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
184
|
-
loading = _React$useState16[0],
|
|
185
|
-
setLoading = _React$useState16[1];
|
|
145
|
+
const [loading, setLoading] = _react.default.useState(_Utils.default.isNull(props.autoLoadData) || props.autoLoadData === true);
|
|
186
146
|
|
|
187
147
|
const documentName = _react.default.useRef(null);
|
|
188
148
|
|
|
189
|
-
const
|
|
190
|
-
_React$useState18 = _slicedToArray(_React$useState17, 2),
|
|
191
|
-
grabbedItem = _React$useState18[0],
|
|
192
|
-
setGrabbedItem = _React$useState18[1];
|
|
149
|
+
const [grabbedItem, setGrabbedItem] = _react.default.useState(null);
|
|
193
150
|
|
|
194
151
|
_react.default.useEffect(() => {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
152
|
+
props.handle.api = api();
|
|
153
|
+
});
|
|
199
154
|
|
|
200
|
-
|
|
155
|
+
_react.default.useEffect(() => {
|
|
156
|
+
let parsedConfig = _Utils.default.parseConfig(props.config, props.viewId);
|
|
201
157
|
|
|
202
|
-
|
|
158
|
+
_Observable.default.addSubscriptions(parsedConfig.eventHandlingConfig, props.handle, props.viewId);
|
|
203
159
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
if (!_Utils.default.isNull(props.loadCompleteHandler)) {
|
|
207
|
-
props.loadCompleteHandler(props.config.id);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
});
|
|
160
|
+
_Observable.default.addSystemSubscriptions(parsedConfig);
|
|
161
|
+
}, []);
|
|
211
162
|
|
|
212
163
|
const setup = () => {
|
|
213
164
|
let container = document.getElementById('templateContainer');
|
|
@@ -219,7 +170,7 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
219
170
|
|
|
220
171
|
_react.default.useEffect(() => {
|
|
221
172
|
setup();
|
|
222
|
-
});
|
|
173
|
+
}, []);
|
|
223
174
|
|
|
224
175
|
_react.default.useEffect(() => {
|
|
225
176
|
setup();
|
|
@@ -242,7 +193,7 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
242
193
|
let service = !_Utils.default.isNull(props.config.dataService) ? props.config.dataService : !_Utils.default.isNull(actionConfig) !== null ? actionConfig.dataService : null;
|
|
243
194
|
|
|
244
195
|
if (!_Utils.default.isNull(service)) {
|
|
245
|
-
if (service.type === '
|
|
196
|
+
if (service.type === 'rpc') {
|
|
246
197
|
(0, _RestUtils.invokeRpc)(service, props.handle, props.viewId, result => {
|
|
247
198
|
setLoading(false);
|
|
248
199
|
}, e => {
|
|
@@ -296,14 +247,15 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
296
247
|
const newItem = (id, width, height) => {
|
|
297
248
|
let inputValue = {};
|
|
298
249
|
inputValue.id = id;
|
|
299
|
-
inputValue.height = height.replace(
|
|
300
|
-
inputValue.width = width.replace(
|
|
301
|
-
inputValue.type = paletteSelection.current ===
|
|
250
|
+
inputValue.height = height.replace('px', '');
|
|
251
|
+
inputValue.width = width.replace('px', '');
|
|
252
|
+
inputValue.type = paletteSelection.current === 'INITIAL_ITEM' ? 'INITIAL' : paletteSelection.current === 'SIGN_ITEM' ? 'SIGN' : 'TEXT INPUT';
|
|
302
253
|
return inputValue;
|
|
303
254
|
};
|
|
304
255
|
|
|
305
|
-
let mouseClickHandler = function
|
|
256
|
+
let mouseClickHandler = function (event) {
|
|
306
257
|
if (grabbedItem) {
|
|
258
|
+
setValue(null);
|
|
307
259
|
setSelectedInputBoxValue(null);
|
|
308
260
|
templateItemEventHandler.handleGrabRelease(event, {
|
|
309
261
|
id: grabbedItem.id,
|
|
@@ -317,9 +269,9 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
317
269
|
if (!inputValue) {
|
|
318
270
|
inputValue = newItem(id, node.style.width, node.style.height);
|
|
319
271
|
inputBoxValues.push(inputValue);
|
|
320
|
-
setValue(null);
|
|
321
272
|
}
|
|
322
273
|
|
|
274
|
+
saveValue();
|
|
323
275
|
setSelectedInputBoxValue(inputValue);
|
|
324
276
|
});
|
|
325
277
|
}
|
|
@@ -329,7 +281,7 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
329
281
|
};
|
|
330
282
|
|
|
331
283
|
const grabPalleteItem = item => {
|
|
332
|
-
document.getElementsByTagName(
|
|
284
|
+
document.getElementsByTagName('body')[0].style.cursor = 'grabbing';
|
|
333
285
|
setPaletteSelectionId(item.type);
|
|
334
286
|
paletteSelection.current = item.type;
|
|
335
287
|
setGrabbedItem(item);
|
|
@@ -344,37 +296,26 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
344
296
|
const getInputValue = id => {
|
|
345
297
|
let index = 0;
|
|
346
298
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
352
|
-
const inputBoxValue = _step.value;
|
|
353
|
-
|
|
354
|
-
if (inputBoxValue.id === id) {
|
|
355
|
-
inputBoxValue.index = index;
|
|
356
|
-
return inputBoxValue;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
index++;
|
|
299
|
+
for (const inputBoxValue of inputBoxValues) {
|
|
300
|
+
if (inputBoxValue.id === id) {
|
|
301
|
+
inputBoxValue.index = index;
|
|
302
|
+
return inputBoxValue;
|
|
360
303
|
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
} finally {
|
|
364
|
-
_iterator.f();
|
|
304
|
+
|
|
305
|
+
index++;
|
|
365
306
|
}
|
|
366
307
|
|
|
367
308
|
return null;
|
|
368
309
|
};
|
|
369
310
|
|
|
370
311
|
const handleSubmit = () => event => {
|
|
371
|
-
setTemplateDoc(
|
|
372
|
-
const accessToken = sessionStorage.getItem(
|
|
373
|
-
const idToken = sessionStorage.getItem(
|
|
312
|
+
setTemplateDoc('');
|
|
313
|
+
const accessToken = sessionStorage.getItem('accessToken');
|
|
314
|
+
const idToken = sessionStorage.getItem('idToken');
|
|
374
315
|
let data = new FormData();
|
|
375
|
-
data.append(
|
|
376
|
-
data.append(
|
|
377
|
-
data.append(
|
|
316
|
+
data.append('sourceType', 'PDF');
|
|
317
|
+
data.append('targetType', 'HTML');
|
|
318
|
+
data.append('file', file);
|
|
378
319
|
let fetchConfig = {
|
|
379
320
|
method: 'POST',
|
|
380
321
|
headers: {
|
|
@@ -384,7 +325,7 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
384
325
|
},
|
|
385
326
|
body: data
|
|
386
327
|
};
|
|
387
|
-
let url = location + _ApplicationContext.default.
|
|
328
|
+
let url = location + _ApplicationContext.default.getContextRoot() + props.config.documentConverterUrl;
|
|
388
329
|
(0, _reactPromiseTracker.trackPromise)(fetch(encodeURI(url), fetchConfig).then(status).then(json).then(data => {
|
|
389
330
|
setTemplateDoc(data);
|
|
390
331
|
setFile(null);
|
|
@@ -435,110 +376,81 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
435
376
|
const handleDuplicate = id => {
|
|
436
377
|
// TODO : Fix this function
|
|
437
378
|
let element = document.getElementById(id);
|
|
438
|
-
let pageElements = document.getElementsByClassName(
|
|
379
|
+
let pageElements = document.getElementsByClassName('dropTarget');
|
|
439
380
|
let elementPage = null;
|
|
440
|
-
let elementTop = 3 * parseFloat(element.style.top.replace(
|
|
381
|
+
let elementTop = 3 * parseFloat(element.style.top.replace('px', '').replace('pt', '')) / 4;
|
|
441
382
|
let pageElementTop = 0;
|
|
442
383
|
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
try {
|
|
447
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
448
|
-
const pageElement = _step2.value;
|
|
449
|
-
let pageElementHeight = parseFloat(pageElement.style.height.replace("px", '').replace('pt', ''));
|
|
384
|
+
for (const pageElement of pageElements) {
|
|
385
|
+
let pageElementHeight = parseFloat(pageElement.style.height.replace('px', '').replace('pt', ''));
|
|
450
386
|
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
pageElementTop += pageElementHeight;
|
|
387
|
+
if (elementTop >= pageElementTop && elementTop < pageElementTop + pageElementHeight) {
|
|
388
|
+
elementPage = pageElement;
|
|
389
|
+
break;
|
|
457
390
|
}
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
} finally {
|
|
461
|
-
_iterator2.f();
|
|
391
|
+
|
|
392
|
+
pageElementTop += pageElementHeight;
|
|
462
393
|
}
|
|
463
394
|
|
|
464
395
|
let offset = elementTop - pageElementTop;
|
|
465
396
|
let pageNumber = 0;
|
|
466
397
|
let elementData = getInputValue(id);
|
|
467
398
|
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
if (!inputValue) {
|
|
499
|
-
inputValue = newItem(item.id, node.style.width, node.style.height);
|
|
500
|
-
inputBoxValues.push(inputValue);
|
|
501
|
-
setValue(null);
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
setSelectedInputBoxValue(inputValue);
|
|
505
|
-
});
|
|
506
|
-
setGrabbedItem(null);
|
|
507
|
-
}
|
|
399
|
+
for (const pageElement of pageElements) {
|
|
400
|
+
let pageElementHeight = parseFloat(pageElement.style.height.replace('px', '').replace('pt', ''));
|
|
401
|
+
|
|
402
|
+
if (pageElement !== elementPage) {
|
|
403
|
+
let item = {
|
|
404
|
+
id: idCounter.current++,
|
|
405
|
+
description: elementData.description,
|
|
406
|
+
type: elementData.type,
|
|
407
|
+
props: getProps(elementData.type)
|
|
408
|
+
};
|
|
409
|
+
grabPalleteItem(item);
|
|
410
|
+
let event = {
|
|
411
|
+
target: pageElement
|
|
412
|
+
};
|
|
413
|
+
templateItemEventHandler.handleGrabRelease(event, {
|
|
414
|
+
id: item.id,
|
|
415
|
+
top: pageNumber * pageElementHeight + offset,
|
|
416
|
+
left: parseFloat(element.style.left.replace('px', '')),
|
|
417
|
+
width: parseFloat(element.style.width.replace('px', '')),
|
|
418
|
+
height: parseFloat(element.style.height.replace('px', '')),
|
|
419
|
+
description: item.description,
|
|
420
|
+
type: item.type
|
|
421
|
+
}, (id, node) => {
|
|
422
|
+
let inputValue = getInputValue(id);
|
|
423
|
+
|
|
424
|
+
if (!inputValue) {
|
|
425
|
+
inputValue = newItem(item.id, node.style.width, node.style.height);
|
|
426
|
+
inputBoxValues.push(inputValue);
|
|
427
|
+
setValue(null);
|
|
428
|
+
}
|
|
508
429
|
|
|
509
|
-
|
|
430
|
+
setSelectedInputBoxValue(inputValue);
|
|
431
|
+
});
|
|
432
|
+
setGrabbedItem(null);
|
|
510
433
|
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
} finally {
|
|
514
|
-
_iterator3.f();
|
|
434
|
+
|
|
435
|
+
pageNumber++;
|
|
515
436
|
}
|
|
516
437
|
};
|
|
517
438
|
|
|
518
439
|
function saveValue() {
|
|
519
440
|
let allValid = true;
|
|
520
441
|
|
|
521
|
-
|
|
522
|
-
|
|
442
|
+
for (const inputBoxValue of inputBoxValues) {
|
|
443
|
+
console.log('\n\n\n\nSIG VAL : ' + inputBoxValue.signatory);
|
|
523
444
|
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
if (_Utils.default.isNull(inputBoxValue.signatory)) {
|
|
529
|
-
allValid = false;
|
|
530
|
-
break;
|
|
531
|
-
}
|
|
445
|
+
if (_Utils.default.isNull(inputBoxValue.signatory)) {
|
|
446
|
+
allValid = false;
|
|
447
|
+
break;
|
|
532
448
|
}
|
|
533
|
-
} catch (err) {
|
|
534
|
-
_iterator4.e(err);
|
|
535
|
-
} finally {
|
|
536
|
-
_iterator4.f();
|
|
537
449
|
}
|
|
538
450
|
|
|
539
451
|
if (allValid) {
|
|
540
452
|
let newValue = {};
|
|
541
|
-
newValue.htmlTemplate = document.getElementById(
|
|
453
|
+
newValue.htmlTemplate = document.getElementById('templateContainer').innerHTML.replace('2px dashed #a1a1a1', 'none').replace('2px dashed green', 'none').replace('div name="replaced_html"', 'html').replace('div name="replaced_body"', 'body');
|
|
542
454
|
newValue.htmlTemplateBase64 = Base64.encode(newValue.htmlTemplate);
|
|
543
455
|
newValue.signatureInputs = inputBoxValues;
|
|
544
456
|
newValue.idCounter = idCounter.current;
|
|
@@ -556,38 +468,38 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
556
468
|
val.signatory = values.signatory;
|
|
557
469
|
val.type = values.type === 'TEXT INPUT' ? 'TEXT_INPUT' : values.type;
|
|
558
470
|
let element = document.getElementById(id);
|
|
559
|
-
element.style.width = values.width +
|
|
560
|
-
element.style.height = values.height +
|
|
471
|
+
element.style.width = values.width + 'px';
|
|
472
|
+
element.style.height = values.height + 'px';
|
|
561
473
|
element.style.borderColor = VALID_COLOR;
|
|
562
|
-
element.innerText = values.signatory.
|
|
563
|
-
element.setAttribute(
|
|
474
|
+
element.innerText = values.signatory.emailAddress + '_' + id;
|
|
475
|
+
element.setAttribute('sid', values.signatory.emailAddress);
|
|
564
476
|
saveValue();
|
|
565
477
|
};
|
|
566
478
|
|
|
567
479
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
568
480
|
ref: ref,
|
|
569
481
|
style: {
|
|
570
|
-
padding:
|
|
482
|
+
padding: '0 32px'
|
|
571
483
|
}
|
|
572
484
|
}, !_Utils.default.isNull(props.config) && !loading ? /*#__PURE__*/_react.default.createElement("div", {
|
|
573
485
|
style: {
|
|
574
|
-
width:
|
|
575
|
-
maxHeight:
|
|
486
|
+
width: '100%',
|
|
487
|
+
maxHeight: '70vh'
|
|
576
488
|
}
|
|
577
489
|
}, _Utils.default.isNull(props.showToolbar) || props.showToolbar === true ? /*#__PURE__*/_react.default.createElement("div", {
|
|
578
490
|
style: {
|
|
579
|
-
marginBottom:
|
|
491
|
+
marginBottom: '32px'
|
|
580
492
|
}
|
|
581
493
|
}, /*#__PURE__*/_react.default.createElement("input", {
|
|
582
|
-
accept:
|
|
494
|
+
accept: 'application/pdf',
|
|
583
495
|
className: classes.input,
|
|
584
496
|
id: "contained-button-file",
|
|
585
497
|
onChange: handleChange(),
|
|
586
498
|
type: "file"
|
|
587
499
|
}), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
588
|
-
className:
|
|
500
|
+
className: 'row'
|
|
589
501
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
590
|
-
className:
|
|
502
|
+
className: 'col-*-*'
|
|
591
503
|
}, /*#__PURE__*/_react.default.createElement("label", {
|
|
592
504
|
htmlFor: "contained-button-file"
|
|
593
505
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
@@ -595,7 +507,7 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
595
507
|
component: "span",
|
|
596
508
|
className: classes.button
|
|
597
509
|
}, "Upload File"))), /*#__PURE__*/_react.default.createElement("div", {
|
|
598
|
-
className:
|
|
510
|
+
className: 'col-*-*'
|
|
599
511
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
600
512
|
variant: "contained",
|
|
601
513
|
component: "span",
|
|
@@ -604,15 +516,15 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
604
516
|
onClick: handleSubmit()
|
|
605
517
|
}, "Generate Template"))))) : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
606
518
|
style: {
|
|
607
|
-
height:
|
|
519
|
+
height: 'auto'
|
|
608
520
|
}
|
|
609
521
|
}, !_Utils.default.isNull(templateDoc) ? /*#__PURE__*/_react.default.createElement("div", {
|
|
610
522
|
className: 'row'
|
|
611
523
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
612
524
|
className: "".concat(classes.palette, " col-*-*"),
|
|
613
525
|
style: {
|
|
614
|
-
maxHeight:
|
|
615
|
-
overflow:
|
|
526
|
+
maxHeight: 'calc(70vh - 80px)',
|
|
527
|
+
overflow: 'auto',
|
|
616
528
|
width: '280px'
|
|
617
529
|
}
|
|
618
530
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
@@ -625,9 +537,9 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
625
537
|
type: 'INITIAL_ITEM',
|
|
626
538
|
props: INITIAL_ITEM
|
|
627
539
|
}),
|
|
628
|
-
id:
|
|
540
|
+
id: 'initialPaletteButton',
|
|
629
541
|
classes: {
|
|
630
|
-
|
|
542
|
+
'label': 'paletteButtonLabel'
|
|
631
543
|
}
|
|
632
544
|
}, "Initial Pad"), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
633
545
|
variant: "contained",
|
|
@@ -639,9 +551,9 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
639
551
|
type: 'SIGN_ITEM',
|
|
640
552
|
props: SIGN_ITEM
|
|
641
553
|
}),
|
|
642
|
-
id:
|
|
554
|
+
id: 'initialPaletteButton',
|
|
643
555
|
classes: {
|
|
644
|
-
|
|
556
|
+
'label': 'paletteButtonLabel'
|
|
645
557
|
}
|
|
646
558
|
}, "Signature Pad"), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
647
559
|
variant: "contained",
|
|
@@ -653,9 +565,9 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
653
565
|
type: 'TEXT_ITEM',
|
|
654
566
|
props: TEXT_ITEM
|
|
655
567
|
}),
|
|
656
|
-
id:
|
|
568
|
+
id: 'initialPaletteButton',
|
|
657
569
|
classes: {
|
|
658
|
-
|
|
570
|
+
'label': 'paletteButtonLabel'
|
|
659
571
|
}
|
|
660
572
|
}, "Text Input"), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
661
573
|
variant: "contained",
|
|
@@ -664,38 +576,38 @@ const SignatureTemplateDesigner = /*#__PURE__*/_react.default.memo( /*#__PURE__*
|
|
|
664
576
|
onClick: () => {
|
|
665
577
|
clear();
|
|
666
578
|
},
|
|
667
|
-
id:
|
|
579
|
+
id: 'clearButton',
|
|
668
580
|
classes: {
|
|
669
|
-
|
|
581
|
+
'label': 'paletteButtonLabel'
|
|
670
582
|
}
|
|
671
583
|
}, "Clear"), /*#__PURE__*/_react.default.createElement("div", {
|
|
672
584
|
className: "".concat(classes.propertyWindow)
|
|
673
585
|
}, /*#__PURE__*/_react.default.createElement(_SignatureInputProps.default, {
|
|
674
586
|
value: selectedInputBoxValue,
|
|
675
|
-
signatoryUrl:
|
|
587
|
+
signatoryUrl: props.config.signatoryUrl,
|
|
676
588
|
signatoryService: props.config.signatoryService,
|
|
677
589
|
saveHandler: (id, values) => saveProps(id, values),
|
|
678
590
|
deleteHandler: (id, values) => deleteInputItem(id, values),
|
|
679
591
|
dublicateHandler: id => handleDuplicate(id)
|
|
680
592
|
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
681
593
|
style: {
|
|
682
|
-
border:
|
|
683
|
-
borderRadius:
|
|
684
|
-
marginLeft:
|
|
685
|
-
height:
|
|
686
|
-
width:
|
|
594
|
+
border: '1px solid #e1e1e1',
|
|
595
|
+
borderRadius: '4px',
|
|
596
|
+
marginLeft: '8px',
|
|
597
|
+
height: '100%',
|
|
598
|
+
width: 'calc(100% - 288px)'
|
|
687
599
|
},
|
|
688
600
|
className: 'col-*-*',
|
|
689
601
|
onClick: e => mouseClickHandler(e)
|
|
690
602
|
}, templateDoc ? /*#__PURE__*/_react.default.createElement("div", {
|
|
691
603
|
style: {
|
|
692
|
-
maxHeight:
|
|
693
|
-
overflow:
|
|
604
|
+
maxHeight: 'calc(70vh - 80px)',
|
|
605
|
+
overflow: 'auto'
|
|
694
606
|
},
|
|
695
607
|
className: 'col-*-*',
|
|
696
|
-
id:
|
|
608
|
+
id: 'templateContainer'
|
|
697
609
|
}, /*#__PURE__*/_react.default.createElement(_reactHtmlRenderer.default, {
|
|
698
|
-
html: templateDoc.replace('<html',
|
|
610
|
+
html: templateDoc.replace('<html', '<div name="replaced_html"').replace('</html>', '</div>').replace('<body', '<div name="replaced_body"').replace('</body>', '</div>')
|
|
699
611
|
})) : /*#__PURE__*/_react.default.createElement("div", {
|
|
700
612
|
style: {
|
|
701
613
|
width: '100%',
|