@usecsv/react 0.13.0 → 0.14.0
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/CHANGELOG.md +7 -0
- package/build/index.cjs +8 -3
- package/build/index.cjs.map +1 -1
- package/build/index.esm.js +8 -3
- package/build/index.esm.js.map +1 -1
- package/build/index.js +8 -3
- package/build/index.js.map +1 -1
- package/build/index.mjs +8 -3
- package/build/index.mjs.map +1 -1
- package/build/index.umd.js +8 -3
- package/build/index.umd.js.map +1 -1
- package/build/index.umd.min.js +3 -3
- package/build/index.umd.min.js.map +1 -1
- package/package.json +2 -2
package/build/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @usecsv/react v0.
|
|
2
|
+
* @usecsv/react v0.14.0
|
|
3
3
|
* (c) layercode
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/*!
|
|
41
|
-
* @usecsv/js v0.
|
|
41
|
+
* @usecsv/js v0.27.0
|
|
42
42
|
* (c) layercode
|
|
43
43
|
* Released under the MIT License.
|
|
44
44
|
*/
|
|
@@ -727,9 +727,14 @@
|
|
|
727
727
|
var _a;
|
|
728
728
|
(_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.remove();
|
|
729
729
|
};
|
|
730
|
+
var closeImporter = function () {
|
|
731
|
+
if (onClose)
|
|
732
|
+
onClose();
|
|
733
|
+
return closeIframe();
|
|
734
|
+
};
|
|
730
735
|
var iframeConnection = connectToChild({
|
|
731
736
|
iframe: iframe,
|
|
732
|
-
methods: __assign(__assign(__assign(__assign(__assign(__assign(__assign({ closeIframe: closeIframe }, (onData ? { onData: function (data) { return onData(data,
|
|
737
|
+
methods: __assign(__assign(__assign(__assign(__assign(__assign(__assign({ closeIframe: closeIframe }, (onData ? { onData: function (data) { return onData(data, closeImporter); } } : {})), (onRecordsInitial ? { onRecordsInitial: onRecordsInitial } : {})), (onRecordEdit ? { onRecordEdit: onRecordEdit } : {})), (onClose ? { onClose: onClose } : {})), (onError ? { onError: onError } : {})), (onFileUpload ? { onFileUpload: onFileUpload } : {})), (onMatchColumns ? { onMatchColumns: onMatchColumns } : {})),
|
|
733
738
|
});
|
|
734
739
|
iframeConnection.promise.then(function (child) {
|
|
735
740
|
var _a;
|