@adaptabletools/adaptable-plugin-nocode-aggrid 15.4.2 → 16.0.0-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 +2 -2
- package/src/index.d.ts +1 -1
- package/src/index.js +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-plugin-nocode-aggrid",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0-canary.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "http://www.adaptabletools.com/",
|
|
6
6
|
"author": {
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"tslib": "^2.3.0",
|
|
14
14
|
"xlsx": "^0.15.5",
|
|
15
|
-
"@adaptabletools/adaptable": "
|
|
15
|
+
"@adaptabletools/adaptable": "16.0.0-canary.0"
|
|
16
16
|
}
|
|
17
17
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdaptableOptions, AdaptablePlugin } from '@adaptabletools/adaptable/types';
|
|
2
2
|
export declare const readJSONFile: (file: File, toJSON?: (str: string) => Promise<any> | any) => Promise<unknown>;
|
|
3
3
|
export declare const readExcelFile: (file: File) => Promise<any>;
|
|
4
4
|
interface NoCodePluginOptions {
|
package/src/index.js
CHANGED
|
@@ -7,7 +7,6 @@ const agGrid_1 = require("@adaptabletools/adaptable/agGrid");
|
|
|
7
7
|
const types_1 = require("@adaptabletools/adaptable/types");
|
|
8
8
|
const package_json_1 = require("../package.json");
|
|
9
9
|
const version_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable/version"));
|
|
10
|
-
const core_1 = require("@ag-grid-community/core");
|
|
11
10
|
if (package_json_1.version !== version_1.default) {
|
|
12
11
|
console.warn(`
|
|
13
12
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
@@ -80,8 +79,6 @@ class NoCodePlugin extends types_1.AdaptablePlugin {
|
|
|
80
79
|
document.documentElement.classList.add(`ab--theme-${theme}`);
|
|
81
80
|
}
|
|
82
81
|
let isJSON;
|
|
83
|
-
// the AG Grid modules were registered previously by the main Adaptable instance (IMPORTANT: this is relevant only for Vanilla NoCode version)
|
|
84
|
-
const agGridModules = core_1.ModuleRegistry.getRegisteredModules();
|
|
85
82
|
return new Promise((resolve) => {
|
|
86
83
|
new agGrid_1.AdaptableNoCodeWizard(adaptableOptions, {
|
|
87
84
|
fileAccept: '.json,.csv,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel',
|