@adaptabletools/adaptable-plugin-nocode-aggrid 12.0.0-canary.2 → 12.0.0-canary.5
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/package.json +2 -2
- package/src/index.js +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-plugin-nocode-aggrid",
|
|
3
|
-
"version": "12.0.0-canary.
|
|
3
|
+
"version": "12.0.0-canary.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "http://www.adaptabletools.com/",
|
|
6
6
|
"author": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"tslib": "^2.0.0",
|
|
14
14
|
"xlsx": "^0.15.5",
|
|
15
|
-
"@adaptabletools/adaptable": "12.0.0-canary.
|
|
15
|
+
"@adaptabletools/adaptable": "12.0.0-canary.5"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"@ag-grid-community/all-modules": ">=27.2.0"
|
package/src/index.js
CHANGED
|
@@ -14,7 +14,7 @@ if (package_json_1.version !== version_1.default) {
|
|
|
14
14
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
15
15
|
`);
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
const readJSONFile = async (file, toJSON) => {
|
|
18
18
|
const reader = new FileReader();
|
|
19
19
|
return new Promise((resolve, reject) => {
|
|
20
20
|
reader.onload = function (e) {
|
|
@@ -33,7 +33,8 @@ exports.readJSONFile = async (file, toJSON) => {
|
|
|
33
33
|
reader.readAsText(file);
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
|
-
exports.
|
|
36
|
+
exports.readJSONFile = readJSONFile;
|
|
37
|
+
const readExcelFile = (file) => {
|
|
37
38
|
/* Boilerplate to set up FileReader */
|
|
38
39
|
const reader = new FileReader();
|
|
39
40
|
const asBinary = !!reader.readAsBinaryString;
|
|
@@ -60,6 +61,7 @@ exports.readExcelFile = (file) => {
|
|
|
60
61
|
}
|
|
61
62
|
});
|
|
62
63
|
};
|
|
64
|
+
exports.readExcelFile = readExcelFile;
|
|
63
65
|
const defaultOptions = {};
|
|
64
66
|
class NoCodePlugin extends types_1.AdaptablePlugin {
|
|
65
67
|
constructor(options) {
|