@adaptabletools/adaptable-plugin-nocode-aggrid 22.0.1 → 22.0.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-plugin-nocode-aggrid",
3
- "version": "22.0.1",
3
+ "version": "22.0.3",
4
4
  "description": "",
5
5
  "homepage": "http://www.adaptabletools.com/",
6
6
  "author": {
package/src/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AdaptableOptions, AdaptablePlugin, AgGridConfig } from '@adaptabletools/adaptable';
1
+ import { AdaptableOptions, AdaptablePlugin, AgGridConfig } 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 {
@@ -19,5 +19,6 @@ declare class NoCodePlugin extends AdaptablePlugin {
19
19
  constructor(options?: NoCodePluginOptions);
20
20
  beforeInit(adaptableOptions: AdaptableOptions, agGridOptions: AgGridConfig): Promise<unknown>;
21
21
  }
22
- declare const _default: (options?: NoCodePluginOptions) => NoCodePlugin;
23
- export default _default;
22
+ export type { NoCodePluginOptions };
23
+ export declare const nocodePlugin: (options?: NoCodePluginOptions) => NoCodePlugin;
24
+ export default nocodePlugin;
package/src/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { read as XLSXRead, utils as XLSXUtils } from 'xlsx';
2
- import { AdaptablePlugin, AdaptableNoCodeWizard, } from '@adaptabletools/adaptable';
2
+ import { AdaptablePlugin } from '@adaptabletools/adaptable/types';
3
+ import { AdaptableNoCodeWizard } from '@adaptabletools/adaptable/agGrid';
3
4
  import packageJson from '../package.json';
4
5
  import adaptableCorePackageJson from '@adaptabletools/adaptable/package.json';
5
6
  const { version, name } = packageJson;
@@ -68,7 +69,7 @@ class NoCodePlugin extends AdaptablePlugin {
68
69
  ? adaptableOptions.initialState.Theme.CurrentTheme
69
70
  : null);
70
71
  if (theme) {
71
- document.documentElement.classList.add(`ab--theme-${theme}`);
72
+ document.documentElement.classList.add(`ab--theme-${theme}`, `infinite-theme-mode--${theme}`);
72
73
  }
73
74
  let isJSON;
74
75
  return new Promise((resolve) => {
@@ -120,4 +121,5 @@ class NoCodePlugin extends AdaptablePlugin {
120
121
  });
121
122
  }
122
123
  }
123
- export default (options) => new NoCodePlugin(options);
124
+ export const nocodePlugin = (options) => new NoCodePlugin(options);
125
+ export default nocodePlugin;