authscape 1.0.518 → 1.0.522

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/index.js CHANGED
@@ -4398,6 +4398,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
4398
4398
 
4399
4399
  function FileMapping(_ref) {
4400
4400
  var currentUser = _ref.currentUser,
4401
+ _ref$fileUploadName = _ref.fileUploadName,
4402
+ fileUploadName = _ref$fileUploadName === void 0 ? "Upload Document" : _ref$fileUploadName,
4401
4403
  _ref$hideDocumentMana = _ref.hideDocumentManager,
4402
4404
  hideDocumentManager = _ref$hideDocumentMana === void 0 ? false : _ref$hideDocumentMana,
4403
4405
  _ref$documentTypeId = _ref.documentTypeId,
@@ -4422,6 +4424,7 @@ function FileMapping(_ref) {
4422
4424
  }
4423
4425
  }, [documentComponentId]);
4424
4426
  return /*#__PURE__*/_react["default"].createElement(_system.Box, null, documentComponentId == null && /*#__PURE__*/_react["default"].createElement(ManageMappingDocuments, {
4427
+ fileUploadName: fileUploadName,
4425
4428
  documentTypeId: documentTypeId,
4426
4429
  hideDocumentManager: hideDocumentManager,
4427
4430
  companyId: currentUser != null ? currentUser.companyId : null,
@@ -4490,7 +4493,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
4490
4493
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
4491
4494
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } // import {apiService, authService, StripeConnect, ReactDraft, EditableDatagrid, FileUploader} from 'authscape';
4492
4495
  function ManageMappingDocuments(_ref) {
4493
- var _ref$hideDocumentMana = _ref.hideDocumentManager,
4496
+ var fileUploadName = _ref.fileUploadName,
4497
+ _ref$hideDocumentMana = _ref.hideDocumentManager,
4494
4498
  hideDocumentManager = _ref$hideDocumentMana === void 0 ? false : _ref$hideDocumentMana,
4495
4499
  _ref$documentTypeId = _ref.documentTypeId,
4496
4500
  documentTypeId = _ref$documentTypeId === void 0 ? null : _ref$documentTypeId,
@@ -4807,7 +4811,7 @@ function ManageMappingDocuments(_ref) {
4807
4811
  onClick: function onClick() {
4808
4812
  setShowAddNewDocument(true);
4809
4813
  }
4810
- }, "Upload Document")))), /*#__PURE__*/_react["default"].createElement(EditableDatagrid, {
4814
+ }, fileUploadName)))), /*#__PURE__*/_react["default"].createElement(EditableDatagrid, {
4811
4815
  key: dataGridRefreshKey,
4812
4816
  loadedUser: true,
4813
4817
  params: {
@@ -4823,7 +4827,7 @@ function ManageMappingDocuments(_ref) {
4823
4827
  onClick: function onClick() {
4824
4828
  setShowAddNewDocument(true);
4825
4829
  }
4826
- }, "Upload Document"), /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
4830
+ }, fileUploadName), /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
4827
4831
  open: showAddNewDocument,
4828
4832
  onClose: function onClose() {
4829
4833
  setShowAddNewDocument(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.518",
3
+ "version": "1.0.522",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -3,7 +3,7 @@ import { Box } from '@mui/system';
3
3
  // import ManageMappingDocuments from './manageMappingDocuments';
4
4
  // import AssignMapping from './AssignMapping';
5
5
 
6
- export function FileMapping({currentUser, hideDocumentManager = false, documentTypeId = null, onOpened = null, onPublished = null, onCanceled = null, onArchived = null}) {
6
+ export function FileMapping({currentUser, fileUploadName = "Upload Document", hideDocumentManager = false, documentTypeId = null, onOpened = null, onPublished = null, onCanceled = null, onArchived = null}) {
7
7
 
8
8
  const [documentComponentId, setDocumentComponentId] = useState(null);
9
9
 
@@ -23,6 +23,7 @@ export function FileMapping({currentUser, hideDocumentManager = false, documentT
23
23
  <Box>
24
24
  {documentComponentId == null &&
25
25
  <ManageMappingDocuments
26
+ fileUploadName={fileUploadName}
26
27
  documentTypeId={documentTypeId}
27
28
  hideDocumentManager={hideDocumentManager}
28
29
  companyId={currentUser != null ? currentUser.companyId : null}
@@ -19,7 +19,7 @@ import PublishRoundedIcon from '@mui/icons-material/PublishRounded';
19
19
  import Grid from '@mui/material/Grid';
20
20
  import DownloadRoundedIcon from '@mui/icons-material/DownloadRounded';
21
21
 
22
- export function ManageMappingDocuments({hideDocumentManager = false, documentTypeId = null, companyId = null, locationId = null, userId = null, onManageField = null, onArchive = null}) {
22
+ export function ManageMappingDocuments({fileUploadName, hideDocumentManager = false, documentTypeId = null, companyId = null, locationId = null, userId = null, onManageField = null, onArchive = null}) {
23
23
 
24
24
  const [document, setDocument] = useState(null);
25
25
  const [addColumnDialog, setAddColumnDialog] = useState(false);
@@ -229,7 +229,7 @@ export function ManageMappingDocuments({hideDocumentManager = false, documentTyp
229
229
  <Box sx={{textAlign:"right", marginBottom:2}}>
230
230
  <Button variant="contained" onClick={() => {
231
231
  setShowAddNewDocument(true);
232
- }}>Upload Document</Button>
232
+ }}>{fileUploadName}</Button>
233
233
  </Box>
234
234
  </Grid>
235
235
  </Grid>
@@ -248,7 +248,7 @@ export function ManageMappingDocuments({hideDocumentManager = false, documentTyp
248
248
  {hideDocumentManager &&
249
249
  <Button variant="contained" onClick={() => {
250
250
  setShowAddNewDocument(true);
251
- }}>Upload Document</Button>
251
+ }}>{fileUploadName}</Button>
252
252
  }
253
253
 
254
254
  {/* <Box sx={{textAlign:"right"}}>