@usecsv/react 0.13.0 → 0.14.1
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 +14 -0
- package/build/index.cjs +9 -4
- package/build/index.cjs.map +1 -1
- package/build/index.esm.js +9 -4
- package/build/index.esm.js.map +1 -1
- package/build/index.js +9 -4
- package/build/index.js.map +1 -1
- package/build/index.mjs +9 -4
- package/build/index.mjs.map +1 -1
- package/build/index.umd.js +9 -4
- package/build/index.umd.js.map +1 -1
- package/build/index.umd.min.js +4 -4
- package/build/index.umd.min.js.map +1 -1
- package/build/types/lib/useCsvReactPlugin.d.ts +1 -0
- package/build/types/lib/useCsvReactPlugin.d.ts.map +1 -1
- package/package.json +6 -6
package/build/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @usecsv/react v0.
|
|
2
|
+
* @usecsv/react v0.14.1
|
|
3
3
|
* (c) layercode
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -32,7 +32,7 @@ function __rest(s, e) {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/*!
|
|
35
|
-
* @usecsv/js v0.
|
|
35
|
+
* @usecsv/js v0.27.0
|
|
36
36
|
* (c) layercode
|
|
37
37
|
* Released under the MIT License.
|
|
38
38
|
*/
|
|
@@ -721,9 +721,14 @@ var useCsvPlugin = function (_a) {
|
|
|
721
721
|
var _a;
|
|
722
722
|
(_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.remove();
|
|
723
723
|
};
|
|
724
|
+
var closeImporter = function () {
|
|
725
|
+
if (onClose)
|
|
726
|
+
onClose();
|
|
727
|
+
return closeIframe();
|
|
728
|
+
};
|
|
724
729
|
var iframeConnection = connectToChild({
|
|
725
730
|
iframe: iframe,
|
|
726
|
-
methods: __assign(__assign(__assign(__assign(__assign(__assign(__assign({ closeIframe: closeIframe }, (onData ? { onData: function (data) { return onData(data,
|
|
731
|
+
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 } : {})),
|
|
727
732
|
});
|
|
728
733
|
iframeConnection.promise.then(function (child) {
|
|
729
734
|
var _a;
|
|
@@ -3260,7 +3265,7 @@ var UseCsvButton = function (_a) {
|
|
|
3260
3265
|
textAlign: "center",
|
|
3261
3266
|
fontSize: "16px",
|
|
3262
3267
|
cursor: "pointer",
|
|
3263
|
-
}, onClick: function () { return useCsvPlugin(parmas); } }, children))));
|
|
3268
|
+
}, onClick: function () { return useCsvPlugin(parmas); } }, children || "Open UseCSV"))));
|
|
3264
3269
|
};
|
|
3265
3270
|
|
|
3266
3271
|
export { UseCsvButton as default };
|