@adaptabletools/adaptable-plugin-nocode-aggrid 19.2.4 → 20.0.0-canary.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/package.json +3 -3
- package/src/index.js +11 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-plugin-nocode-aggrid",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.0-canary.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "http://www.adaptabletools.com/",
|
|
6
6
|
"author": {
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
},
|
|
10
10
|
"typings": "src/index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"tslib": "^2.
|
|
12
|
+
"tslib": "^2.8.1",
|
|
13
13
|
"xlsx": "^0.15.5",
|
|
14
|
-
"@adaptabletools/adaptable": "
|
|
14
|
+
"@adaptabletools/adaptable": "20.0.0-canary.1"
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"module": "src/index.js"
|
package/src/index.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { read as XLSXRead, utils as XLSXUtils } from 'xlsx';
|
|
2
2
|
import { AdaptableNoCodeWizard } from '@adaptabletools/adaptable/agGrid';
|
|
3
3
|
import { AdaptablePlugin } from '@adaptabletools/adaptable/types';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// }
|
|
4
|
+
import { version, name } from '../package.json';
|
|
5
|
+
import { version as coreVersion } from '@adaptabletools/adaptable/package.json';
|
|
6
|
+
const suffix = name.endsWith('-cjs') ? '-cjs' : '';
|
|
7
|
+
if (version !== coreVersion) {
|
|
8
|
+
console.warn(`
|
|
9
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
10
|
+
!!!!!!! "@adaptabletools/adaptable-plugin-nocode${suffix}" (v @${version}) and "@adaptabletools/adaptable${suffix}" (v @${coreVersion}) have different versions - they should have the exact same version.
|
|
11
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
|
+
`);
|
|
13
|
+
}
|
|
15
14
|
export const readJSONFile = async (file, toJSON) => {
|
|
16
15
|
const reader = new FileReader();
|
|
17
16
|
return new Promise((resolve, reject) => {
|
|
@@ -62,7 +61,7 @@ class NoCodePlugin extends AdaptablePlugin {
|
|
|
62
61
|
constructor(options) {
|
|
63
62
|
super(options);
|
|
64
63
|
this.pluginId = 'nocode-aggrid';
|
|
65
|
-
this.options =
|
|
64
|
+
this.options = { ...defaultOptions, ...options };
|
|
66
65
|
}
|
|
67
66
|
beforeInit(adaptableOptions, agGridOptions) {
|
|
68
67
|
const theme = this.options.theme ||
|