authscape 1.0.469 → 1.0.472

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
@@ -3616,7 +3616,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
3616
3616
  Object.defineProperty(exports, "__esModule", {
3617
3617
  value: true
3618
3618
  });
3619
- exports["default"] = AssignMapping;
3619
+ exports.AssignMapping = AssignMapping;
3620
3620
  var _react = _interopRequireWildcard(require("react"));
3621
3621
  var _system = require("@mui/system");
3622
3622
  var _Container = _interopRequireDefault(require("@mui/material/Container"));
@@ -3933,7 +3933,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
3933
3933
  Object.defineProperty(exports, "__esModule", {
3934
3934
  value: true
3935
3935
  });
3936
- exports["default"] = ConditionBasedTool;
3936
+ exports.ConditionBasedTool = ConditionBasedTool;
3937
3937
  var _react = _interopRequireWildcard(require("react"));
3938
3938
  var _Button = _interopRequireDefault(require("@mui/material/Button"));
3939
3939
  var _system = require("@mui/system");
@@ -4065,7 +4065,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4065
4065
  Object.defineProperty(exports, "__esModule", {
4066
4066
  value: true
4067
4067
  });
4068
- exports["default"] = Datasources;
4068
+ exports.Datasources = Datasources;
4069
4069
  var _react = _interopRequireWildcard(require("react"));
4070
4070
  var _Button = _interopRequireDefault(require("@mui/material/Button"));
4071
4071
  var _system = require("@mui/system");
@@ -4381,7 +4381,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4381
4381
  Object.defineProperty(exports, "__esModule", {
4382
4382
  value: true
4383
4383
  });
4384
- exports["default"] = FileMapping;
4384
+ exports.FileMapping = FileMapping;
4385
4385
  var _react = _interopRequireWildcard(require("react"));
4386
4386
  var _system = require("@mui/system");
4387
4387
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -4394,9 +4394,16 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
4394
4394
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
4395
4395
  // import ManageMappingDocuments from './manageMappingDocuments';
4396
4396
  // import AssignMapping from './AssignMapping';
4397
+
4397
4398
  function FileMapping(_ref) {
4398
4399
  var currentUser = _ref.currentUser,
4399
- hideDocumentManager = _ref.hideDocumentManager;
4400
+ hideDocumentManager = _ref.hideDocumentManager,
4401
+ _ref$onPublished = _ref.onPublished,
4402
+ _onPublished = _ref$onPublished === void 0 ? null : _ref$onPublished,
4403
+ _ref$onCanceled = _ref.onCanceled,
4404
+ onCanceled = _ref$onCanceled === void 0 ? null : _ref$onCanceled,
4405
+ _ref$onArchived = _ref.onArchived,
4406
+ onArchived = _ref$onArchived === void 0 ? null : _ref$onArchived;
4400
4407
  var _useState = (0, _react.useState)(null),
4401
4408
  _useState2 = _slicedToArray(_useState, 2),
4402
4409
  documentComponentId = _useState2[0],
@@ -4408,17 +4415,25 @@ function FileMapping(_ref) {
4408
4415
  setDocumentComponentId(documentComponentId);
4409
4416
  },
4410
4417
  onArchive: function onArchive(documentComponentId) {
4411
-
4412
4418
  //alert(documentComponentId);
4419
+ if (onArchived != null) {
4420
+ onArchived(documentComponentId);
4421
+ }
4413
4422
  }
4414
4423
  }), documentComponentId != null && /*#__PURE__*/_react["default"].createElement(AssignMapping, {
4415
4424
  currentUser: currentUser,
4416
4425
  documentComponentId: documentComponentId,
4417
4426
  onCancel: function onCancel() {
4418
4427
  setDocumentComponentId(null);
4428
+ if (onCanceled != null) {
4429
+ onCanceled(documentComponentId);
4430
+ }
4419
4431
  },
4420
4432
  onPublished: function onPublished() {
4421
4433
  setDocumentComponentId(null);
4434
+ if (_onPublished != null) {
4435
+ _onPublished(documentComponentId);
4436
+ }
4422
4437
  }
4423
4438
  }));
4424
4439
  }
@@ -4428,7 +4443,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4428
4443
  Object.defineProperty(exports, "__esModule", {
4429
4444
  value: true
4430
4445
  });
4431
- exports["default"] = ManageMappingDocuments;
4446
+ exports.ManageMappingDocuments = ManageMappingDocuments;
4432
4447
  var _react = _interopRequireWildcard(require("react"));
4433
4448
  var _Button = _interopRequireDefault(require("@mui/material/Button"));
4434
4449
  var _system = require("@mui/system");
@@ -5060,7 +5075,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5060
5075
  Object.defineProperty(exports, "__esModule", {
5061
5076
  value: true
5062
5077
  });
5063
- exports["default"] = MappedColumn;
5078
+ exports.MappedColumn = MappedColumn;
5064
5079
  var _react = _interopRequireWildcard(require("react"));
5065
5080
  var _Card = _interopRequireDefault(require("@mui/material/Card"));
5066
5081
  var _CardActions = _interopRequireDefault(require("@mui/material/CardActions"));
@@ -5079,6 +5094,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
5079
5094
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } // import NewMappingColumn from './newMappingColumn';
5080
5095
  // import MatchExistingMappedColumn from './matchExisting';
5081
5096
  // import { apiService } from 'authscape';
5097
+
5082
5098
  function MappedColumn(_ref) {
5083
5099
  var companyId = _ref.companyId,
5084
5100
  documentId = _ref.documentId,
@@ -5179,7 +5195,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5179
5195
  Object.defineProperty(exports, "__esModule", {
5180
5196
  value: true
5181
5197
  });
5182
- exports["default"] = MatchExistingMappedColumn;
5198
+ exports.MatchExistingMappedColumn = MatchExistingMappedColumn;
5183
5199
  var _react = _interopRequireWildcard(require("react"));
5184
5200
  var _Button = _interopRequireDefault(require("@mui/material/Button"));
5185
5201
  var _system = require("@mui/system");
@@ -5335,7 +5351,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5335
5351
  Object.defineProperty(exports, "__esModule", {
5336
5352
  value: true
5337
5353
  });
5338
- exports["default"] = NewMappingColumn;
5354
+ exports.NewMappingColumn = NewMappingColumn;
5339
5355
  var _react = _interopRequireWildcard(require("react"));
5340
5356
  var _Card = _interopRequireDefault(require("@mui/material/Card"));
5341
5357
  var _CardContent = _interopRequireDefault(require("@mui/material/CardContent"));
@@ -5582,7 +5598,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5582
5598
  Object.defineProperty(exports, "__esModule", {
5583
5599
  value: true
5584
5600
  });
5585
- exports["default"] = UploadMappedFile;
5601
+ exports.UploadMappedFile = UploadMappedFile;
5586
5602
  var _react = _interopRequireWildcard(require("react"));
5587
5603
  var _Button = _interopRequireDefault(require("@mui/material/Button"));
5588
5604
  var _system = require("@mui/system");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.469",
3
+ "version": "1.0.472",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,7 +15,7 @@ import CloseIcon from '@mui/icons-material/Close';
15
15
  import IconButton from '@mui/material/IconButton';
16
16
  import ArrowRightAltRoundedIcon from '@mui/icons-material/ArrowRightAltRounded';
17
17
 
18
- export default function AssignMapping({currentUser, documentComponentId, onCancel = null, onPublished = null}) {
18
+ export function AssignMapping({currentUser, documentComponentId, onCancel = null, onPublished = null}) {
19
19
 
20
20
  const [documentId, setDocumentId] = useState(documentComponentId);
21
21
 
@@ -10,7 +10,7 @@ import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
10
10
  import { QueryBuilder } from 'react-querybuilder';
11
11
 
12
12
 
13
- export default function ConditionBasedTool({toColumnOptions, documentId, onConditionApplied}) {
13
+ export function ConditionBasedTool({toColumnOptions, documentId, onConditionApplied}) {
14
14
 
15
15
  const [currentQuery, setCurrentQuery] = useState(null);
16
16
 
@@ -17,7 +17,7 @@ import RadioGroup from '@mui/material/RadioGroup';
17
17
  import FormControlLabel from '@mui/material/FormControlLabel';
18
18
  import FormLabel from '@mui/material/FormLabel';
19
19
 
20
- export default function Datasources({disableTraining = false}) {
20
+ export function Datasources({disableTraining = false}) {
21
21
 
22
22
  const documentColumns = [
23
23
  { field: 'name', headerName: 'Name', width: 150, editable: false },
@@ -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 default function FileMapping({currentUser, hideDocumentManager}) {
6
+ export function FileMapping({currentUser, hideDocumentManager, onPublished = null, onCanceled = null, onArchived = null}) {
7
7
 
8
8
  const [documentComponentId, setDocumentComponentId] = useState(null);
9
9
 
@@ -21,6 +21,10 @@ export default function FileMapping({currentUser, hideDocumentManager}) {
21
21
  onArchive={(documentComponentId) => {
22
22
 
23
23
  //alert(documentComponentId);
24
+ if (onArchived != null)
25
+ {
26
+ onArchived(documentComponentId);
27
+ }
24
28
 
25
29
  }}
26
30
  />
@@ -31,10 +35,20 @@ export default function FileMapping({currentUser, hideDocumentManager}) {
31
35
  onCancel={() => {
32
36
 
33
37
  setDocumentComponentId(null);
38
+
39
+ if (onCanceled != null)
40
+ {
41
+ onCanceled(documentComponentId);
42
+ }
34
43
 
35
44
  }}
36
45
  onPublished={() => {
37
46
  setDocumentComponentId(null);
47
+
48
+ if (onPublished != null)
49
+ {
50
+ onPublished(documentComponentId);
51
+ }
38
52
  }} />
39
53
  }
40
54
 
@@ -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 default function ManageMappingDocuments({hideDocumentManager = false, companyId = null, locationId = null, userId = null, onManageField = null, onArchive = null}) {
22
+ export function ManageMappingDocuments({hideDocumentManager = false, 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);
@@ -12,7 +12,7 @@ import Stack from '@mui/material/Stack';
12
12
  // import MatchExistingMappedColumn from './matchExisting';
13
13
  // import { apiService } from 'authscape';
14
14
 
15
- export default function MappedColumn({companyId, documentId, documentType, documentMappingId, name, toName, isMapped, toOptions, onResponse}) {
15
+ export function MappedColumn({companyId, documentId, documentType, documentMappingId, name, toName, isMapped, toOptions, onResponse}) {
16
16
 
17
17
  const notMatchedColor = "#ffe5e5";
18
18
  const matchedColor = "#fff";
@@ -14,7 +14,7 @@ import MenuItem from '@mui/material/MenuItem';
14
14
  import FormControl from '@mui/material/FormControl';
15
15
  import Select from '@mui/material/Select';
16
16
 
17
- export default function MatchExistingMappedColumn({companyId, documentId, documentMappingId, fromName, toOptions, onResponse}) {
17
+ export function MatchExistingMappedColumn({companyId, documentId, documentMappingId, fromName, toOptions, onResponse}) {
18
18
 
19
19
  const [createNewOpen, setCreateNewOpen] = useState(false);
20
20
 
@@ -22,7 +22,7 @@ import CheckBoxRoundedIcon from '@mui/icons-material/CheckBoxRounded';
22
22
  import InsertPhotoRoundedIcon from '@mui/icons-material/InsertPhotoRounded';
23
23
  // import { apiService } from 'authscape';
24
24
 
25
- export default function NewMappingColumn({name, companyId, documentType, documentId, documentMappingId, onResponse}) {
25
+ export function NewMappingColumn({name, companyId, documentType, documentId, documentMappingId, onResponse}) {
26
26
 
27
27
  const newColumnNameRef = useRef(null);
28
28
  const newColumnDescriptionRef = useRef(null);
@@ -6,7 +6,7 @@ import PublishRoundedIcon from '@mui/icons-material/PublishRounded';
6
6
  import Menu from '@mui/material/Menu';
7
7
  import MenuItem from '@mui/material/MenuItem';
8
8
 
9
- export default function UploadMappedFile({loadedUser, url = null, companyId = null, locationId = null, userId = null}) {
9
+ export function UploadMappedFile({loadedUser, url = null, companyId = null, locationId = null, userId = null}) {
10
10
 
11
11
  const [documentComponentOptions, setDocumentComponentOptions] = useState(null);
12
12