authscape 1.0.506 → 1.0.510
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 +16 -6
- package/package.json +1 -1
- package/src/components/mapping/matchExisting.js +15 -8
package/index.js
CHANGED
|
@@ -5244,6 +5244,7 @@ var _MenuItem = _interopRequireDefault(require("@mui/material/MenuItem"));
|
|
|
5244
5244
|
var _FormControl = _interopRequireDefault(require("@mui/material/FormControl"));
|
|
5245
5245
|
var _Select = _interopRequireDefault(require("@mui/material/Select"));
|
|
5246
5246
|
var _Checkbox = _interopRequireDefault(require("@mui/material/Checkbox"));
|
|
5247
|
+
var _FormControlLabel = _interopRequireDefault(require("@mui/material/FormControlLabel"));
|
|
5247
5248
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
5248
5249
|
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); }
|
|
5249
5250
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && 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; }
|
|
@@ -5272,7 +5273,7 @@ function MatchExistingMappedColumn(_ref) {
|
|
|
5272
5273
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
5273
5274
|
onlyAddRowIfFound = _useState4[0],
|
|
5274
5275
|
setOnlyAddRowIfFound = _useState4[1];
|
|
5275
|
-
var _useState5 = (0, _react.useState)(
|
|
5276
|
+
var _useState5 = (0, _react.useState)(true),
|
|
5276
5277
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
5277
5278
|
rememberForNextTime = _useState6[0],
|
|
5278
5279
|
setRememberForNextTime = _useState6[1];
|
|
@@ -5343,12 +5344,21 @@ function MatchExistingMappedColumn(_ref) {
|
|
|
5343
5344
|
}
|
|
5344
5345
|
}, /*#__PURE__*/_react["default"].createElement(SelectedExistingColumns, {
|
|
5345
5346
|
toOptions: toOptions
|
|
5346
|
-
})), /*#__PURE__*/_react["default"].createElement(_system.Box,
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
setRememberForNextTime(event.target.checked);
|
|
5347
|
+
})), /*#__PURE__*/_react["default"].createElement(_system.Box, {
|
|
5348
|
+
sx: {
|
|
5349
|
+
paddingTop: 2
|
|
5350
5350
|
}
|
|
5351
|
-
}
|
|
5351
|
+
}, /*#__PURE__*/_react["default"].createElement(_FormControlLabel["default"], {
|
|
5352
|
+
value: "end",
|
|
5353
|
+
control: /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], _extends({}, checkboxRememberLabel, {
|
|
5354
|
+
defaultChecked: true,
|
|
5355
|
+
onChange: function onChange(event) {
|
|
5356
|
+
setRememberForNextTime(event.target.checked);
|
|
5357
|
+
}
|
|
5358
|
+
})),
|
|
5359
|
+
label: "Remember match for next time",
|
|
5360
|
+
labelPlacement: "end"
|
|
5361
|
+
}))), /*#__PURE__*/_react["default"].createElement(_DialogActions["default"], null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
5352
5362
|
onClick: handleClose
|
|
5353
5363
|
}, "Cancel"), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
5354
5364
|
onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
package/package.json
CHANGED
|
@@ -14,13 +14,14 @@ import MenuItem from '@mui/material/MenuItem';
|
|
|
14
14
|
import FormControl from '@mui/material/FormControl';
|
|
15
15
|
import Select from '@mui/material/Select';
|
|
16
16
|
import Checkbox from '@mui/material/Checkbox';
|
|
17
|
+
import FormControlLabel from '@mui/material/FormControlLabel';
|
|
17
18
|
|
|
18
19
|
export function MatchExistingMappedColumn({companyId, documentId, documentMappingId, fromName, toOptions, onResponse}) {
|
|
19
20
|
|
|
20
21
|
const [createNewOpen, setCreateNewOpen] = useState(false);
|
|
21
22
|
|
|
22
23
|
const [onlyAddRowIfFound, setOnlyAddRowIfFound] = useState(false);
|
|
23
|
-
const [rememberForNextTime, setRememberForNextTime] = useState(
|
|
24
|
+
const [rememberForNextTime, setRememberForNextTime] = useState(true);
|
|
24
25
|
|
|
25
26
|
const [selectedToColumn, setSelectedToColumn] = useState(null);
|
|
26
27
|
|
|
@@ -85,13 +86,19 @@ export function MatchExistingMappedColumn({companyId, documentId, documentMappin
|
|
|
85
86
|
<SelectedExistingColumns toOptions={toOptions} />
|
|
86
87
|
</Box>
|
|
87
88
|
|
|
88
|
-
<Box>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
<Box sx={{paddingTop:2}}>
|
|
90
|
+
|
|
91
|
+
<FormControlLabel
|
|
92
|
+
value="end"
|
|
93
|
+
control={
|
|
94
|
+
<Checkbox {...checkboxRememberLabel} defaultChecked onChange={(event) => {
|
|
95
|
+
setRememberForNextTime(event.target.checked);
|
|
96
|
+
}} />
|
|
97
|
+
}
|
|
98
|
+
label="Remember match for next time"
|
|
99
|
+
labelPlacement="end"
|
|
100
|
+
/>
|
|
101
|
+
|
|
95
102
|
</Box>
|
|
96
103
|
|
|
97
104
|
</DialogContent>
|