authscape 1.0.510 → 1.0.514
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
|
@@ -3889,24 +3889,7 @@ function AssignMapping(_ref) {
|
|
|
3889
3889
|
advanceQuery: advanceQuery,
|
|
3890
3890
|
currentUser: currentUser,
|
|
3891
3891
|
hideToolbar: true,
|
|
3892
|
-
loadedUser: true
|
|
3893
|
-
onFocusLocationChanged: function onFocusLocationChanged(rowId, columnId) {
|
|
3894
|
-
|
|
3895
|
-
// apiService().post("/SpreadSheet/FocusLocationChanged", {
|
|
3896
|
-
// userId: currentUser.id,
|
|
3897
|
-
// rowId: rowId,
|
|
3898
|
-
// column: columnId
|
|
3899
|
-
// });
|
|
3900
|
-
},
|
|
3901
|
-
onChange: function onChange(row, rowId, fieldName, value) {
|
|
3902
|
-
|
|
3903
|
-
// apiService().put("/SpreadSheet/CellChanged", {
|
|
3904
|
-
// id: row.Id,
|
|
3905
|
-
// rowId: rowId,
|
|
3906
|
-
// fieldName: fieldName,
|
|
3907
|
-
// value: value.toString()
|
|
3908
|
-
// });
|
|
3909
|
-
}
|
|
3892
|
+
loadedUser: true
|
|
3910
3893
|
})), /*#__PURE__*/_react["default"].createElement(_DialogActions["default"], null, /*#__PURE__*/_react["default"].createElement(_material.Button, {
|
|
3911
3894
|
onClick: function onClick() {
|
|
3912
3895
|
setShowPreviewDialog(false);
|
|
@@ -7344,7 +7327,9 @@ var SpreadsheetViewer = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
7344
7327
|
} catch (exp) {
|
|
7345
7328
|
console.error(exp);
|
|
7346
7329
|
}
|
|
7347
|
-
_onFocusLocationChanged
|
|
7330
|
+
if (_onFocusLocationChanged != null) {
|
|
7331
|
+
_onFocusLocationChanged(location.rowId, location.columnId);
|
|
7332
|
+
}
|
|
7348
7333
|
},
|
|
7349
7334
|
onCellsChanged: handleChanges,
|
|
7350
7335
|
enableRowSelection: true,
|
package/package.json
CHANGED
|
@@ -165,25 +165,7 @@ export function AssignMapping({currentUser, documentComponentId, onCancel = null
|
|
|
165
165
|
</Box>
|
|
166
166
|
|
|
167
167
|
{spreadSheetAddress != null &&
|
|
168
|
-
<SpreadsheetViewer ref={spreadSheetRef} url={spreadSheetAddress} advanceQuery={advanceQuery} currentUser={currentUser} hideToolbar={true} loadedUser={true}
|
|
169
|
-
onFocusLocationChanged={(rowId, columnId) => {
|
|
170
|
-
|
|
171
|
-
// apiService().post("/SpreadSheet/FocusLocationChanged", {
|
|
172
|
-
// userId: currentUser.id,
|
|
173
|
-
// rowId: rowId,
|
|
174
|
-
// column: columnId
|
|
175
|
-
// });
|
|
176
|
-
}}
|
|
177
|
-
onChange={(row, rowId, fieldName, value) => {
|
|
178
|
-
|
|
179
|
-
// apiService().put("/SpreadSheet/CellChanged", {
|
|
180
|
-
// id: row.Id,
|
|
181
|
-
// rowId: rowId,
|
|
182
|
-
// fieldName: fieldName,
|
|
183
|
-
// value: value.toString()
|
|
184
|
-
// });
|
|
185
|
-
|
|
186
|
-
}} />
|
|
168
|
+
<SpreadsheetViewer ref={spreadSheetRef} url={spreadSheetAddress} advanceQuery={advanceQuery} currentUser={currentUser} hideToolbar={true} loadedUser={true} />
|
|
187
169
|
}
|
|
188
170
|
|
|
189
171
|
</DialogContent>
|
|
@@ -713,7 +713,10 @@ export const SpreadsheetViewer = forwardRef(({loadedUser, currentUser, documentI
|
|
|
713
713
|
console.error(exp);
|
|
714
714
|
}
|
|
715
715
|
|
|
716
|
-
onFocusLocationChanged
|
|
716
|
+
if (onFocusLocationChanged != null)
|
|
717
|
+
{
|
|
718
|
+
onFocusLocationChanged(location.rowId, location.columnId);
|
|
719
|
+
}
|
|
717
720
|
}}
|
|
718
721
|
onCellsChanged={handleChanges}
|
|
719
722
|
enableRowSelection={true}
|