@adaptabletools/adaptable-plugin-nocode-aggrid-cjs 22.0.3 → 22.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.d.ts +2 -13
- package/src/types.d.ts +13 -0
- package/src/types.js +2 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,24 +1,13 @@
|
|
|
1
1
|
import { AdaptableOptions, AdaptablePlugin, AgGridConfig } from "@adaptabletools/adaptable-cjs/types";
|
|
2
|
+
import { NoCodePluginOptions } from './types';
|
|
2
3
|
export declare const readJSONFile: (file: File, toJSON?: (str: string) => Promise<any> | any) => Promise<unknown>;
|
|
3
4
|
export declare const readExcelFile: (file: File) => Promise<any>;
|
|
4
|
-
interface NoCodePluginOptions {
|
|
5
|
-
modules?: any[];
|
|
6
|
-
onInit?: (adaptableOptions: AdaptableOptions) => void | Promise<any>;
|
|
7
|
-
headerMessage?: React.ReactNode;
|
|
8
|
-
actionMessage?: React.ReactNode;
|
|
9
|
-
dropActionMessage?: React.ReactNode;
|
|
10
|
-
loadingMessage?: React.ReactNode;
|
|
11
|
-
theme?: 'dark' | 'light';
|
|
12
|
-
fetchData?: () => Promise<any>;
|
|
13
|
-
showFetchDataWizard?: boolean;
|
|
14
|
-
skipToWizard?: boolean;
|
|
15
|
-
}
|
|
16
5
|
declare class NoCodePlugin extends AdaptablePlugin {
|
|
17
6
|
options: NoCodePluginOptions;
|
|
18
7
|
pluginId: string;
|
|
19
8
|
constructor(options?: NoCodePluginOptions);
|
|
20
9
|
beforeInit(adaptableOptions: AdaptableOptions, agGridOptions: AgGridConfig): Promise<unknown>;
|
|
21
10
|
}
|
|
22
|
-
export type { NoCodePluginOptions };
|
|
11
|
+
export type { NoCodePluginOptions } from './types';
|
|
23
12
|
export declare const nocodePlugin: (options?: NoCodePluginOptions) => NoCodePlugin;
|
|
24
13
|
export default nocodePlugin;
|
package/src/types.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AdaptableOptions } from "@adaptabletools/adaptable-cjs/types";
|
|
2
|
+
export interface NoCodePluginOptions {
|
|
3
|
+
modules?: any[];
|
|
4
|
+
onInit?: (adaptableOptions: AdaptableOptions) => void | Promise<any>;
|
|
5
|
+
headerMessage?: React.ReactNode;
|
|
6
|
+
actionMessage?: React.ReactNode;
|
|
7
|
+
dropActionMessage?: React.ReactNode;
|
|
8
|
+
loadingMessage?: React.ReactNode;
|
|
9
|
+
theme?: 'dark' | 'light';
|
|
10
|
+
fetchData?: () => Promise<any>;
|
|
11
|
+
showFetchDataWizard?: boolean;
|
|
12
|
+
skipToWizard?: boolean;
|
|
13
|
+
}
|
package/src/types.js
ADDED