@adaptabletools/adaptable-plugin-nocode-aggrid-cjs 22.0.2 → 22.0.4
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 +4 -14
- package/src/index.js +4 -2
- package/src/types.d.ts +13 -0
- package/src/types.js +2 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,23 +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
|
-
|
|
23
|
-
export
|
|
11
|
+
export type { NoCodePluginOptions } from './types';
|
|
12
|
+
export declare const nocodePlugin: (options?: NoCodePluginOptions) => NoCodePlugin;
|
|
13
|
+
export default nocodePlugin;
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.readExcelFile = exports.readJSONFile = void 0;
|
|
3
|
+
exports.nocodePlugin = exports.readExcelFile = exports.readJSONFile = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const xlsx_1 = require("xlsx");
|
|
6
6
|
const types_1 = require("@adaptabletools/adaptable-cjs/types");
|
|
@@ -127,4 +127,6 @@ class NoCodePlugin extends types_1.AdaptablePlugin {
|
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
|
|
130
|
+
const nocodePlugin = (options) => new NoCodePlugin(options);
|
|
131
|
+
exports.nocodePlugin = nocodePlugin;
|
|
132
|
+
exports.default = exports.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