@adaptabletools/adaptable-plugin-nocode-aggrid-cjs 23.0.4 → 23.0.5-canary.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/package.json +1 -1
- package/src/index.js +0 -6
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -34,7 +34,6 @@ const readJSONFile = async (file, toJSON) => {
|
|
|
34
34
|
};
|
|
35
35
|
exports.readJSONFile = readJSONFile;
|
|
36
36
|
const readExcelFile = (file) => {
|
|
37
|
-
/* Boilerplate to set up FileReader */
|
|
38
37
|
const reader = new FileReader();
|
|
39
38
|
const asBinary = !!reader.readAsBinaryString;
|
|
40
39
|
return new Promise((resolve, reject) => {
|
|
@@ -43,10 +42,8 @@ const readExcelFile = (file) => {
|
|
|
43
42
|
type: asBinary ? 'binary' : 'array',
|
|
44
43
|
cellDates: true,
|
|
45
44
|
});
|
|
46
|
-
// Get first worksheet
|
|
47
45
|
const wsname = wb.SheetNames[0];
|
|
48
46
|
const ws = wb.Sheets[wsname];
|
|
49
|
-
// Convert array of arrays
|
|
50
47
|
const data = xlsx_1.utils.sheet_to_json(ws, { header: 1 });
|
|
51
48
|
resolve(data);
|
|
52
49
|
};
|
|
@@ -100,9 +97,6 @@ class NoCodePlugin extends types_1.AdaptablePlugin {
|
|
|
100
97
|
Object.keys(newAdaptableOptions).forEach((key) => {
|
|
101
98
|
adaptableOptions[key] = newAdaptableOptions[key];
|
|
102
99
|
});
|
|
103
|
-
/**
|
|
104
|
-
* Update the gridOptions with the new gridOptions
|
|
105
|
-
*/
|
|
106
100
|
if (agGridOptions.gridOptions) {
|
|
107
101
|
Object.assign(agGridOptions.gridOptions, gridOptions);
|
|
108
102
|
}
|