@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.umd.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
|
*/
|
|
@@ -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;
|
|
@@ -3266,7 +3271,7 @@
|
|
|
3266
3271
|
textAlign: "center",
|
|
3267
3272
|
fontSize: "16px",
|
|
3268
3273
|
cursor: "pointer",
|
|
3269
|
-
}, onClick: function () { return useCsvPlugin(parmas); } }, children))));
|
|
3274
|
+
}, onClick: function () { return useCsvPlugin(parmas); } }, children || "Open UseCSV"))));
|
|
3270
3275
|
};
|
|
3271
3276
|
|
|
3272
3277
|
return UseCsvButton;
|