@adaptabletools/adaptable-react-aggrid 10.0.4-canary.5 → 11.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/base.css +1 -5
- package/index.css +1 -7
- package/package.json +3 -2
- package/src/components/AdaptableReact.d.ts +5 -4
- package/src/components/AdaptableReact.js +2 -2
package/base.css
CHANGED
|
@@ -1756,8 +1756,6 @@
|
|
|
1756
1756
|
.ab-Dialog:focus-within, .ab-Dialog:focus {
|
|
1757
1757
|
box-shadow: var(--ab-focus__box-shadow);
|
|
1758
1758
|
outline: var(--ab-focus__outline); }
|
|
1759
|
-
.ab-Dialog > * {
|
|
1760
|
-
flex: 1; }
|
|
1761
1759
|
.ab-Dialog__close-button {
|
|
1762
1760
|
position: absolute;
|
|
1763
1761
|
right: 6px;
|
|
@@ -2241,8 +2239,6 @@ input[type="number"].ab-Input:hover::-webkit-inner-spin-button:active {
|
|
|
2241
2239
|
pointer-events: none; }
|
|
2242
2240
|
.ab-FileDroppable, .ab-FileDroppable *, .ab-FileDroppable *:before, .ab-FileDroppable *:after {
|
|
2243
2241
|
box-sizing: border-box; }
|
|
2244
|
-
.ab-ChartContainer canvas {
|
|
2245
|
-
left: 0; }
|
|
2246
2242
|
.ab-WizardPanel > .ab-Panel__body {
|
|
2247
2243
|
display: flex;
|
|
2248
2244
|
flex-flow: column; }
|
|
@@ -2757,7 +2753,7 @@ html.ab--theme-dark .ab-ListBoxFilterForm--aggrid-style {
|
|
|
2757
2753
|
.ab_div-colour-render-text {
|
|
2758
2754
|
position: absolute;
|
|
2759
2755
|
font-weight: normal;
|
|
2760
|
-
font-size:
|
|
2756
|
+
font-size: 12px;
|
|
2761
2757
|
z-index: 100; }
|
|
2762
2758
|
.ab_div-colour-render-div {
|
|
2763
2759
|
display: inline-block;
|
package/index.css
CHANGED
|
@@ -2402,9 +2402,6 @@ template {
|
|
|
2402
2402
|
box-shadow: var(--ab-focus__box-shadow);
|
|
2403
2403
|
outline: var(--ab-focus__outline); }
|
|
2404
2404
|
|
|
2405
|
-
.ab-Dialog > * {
|
|
2406
|
-
flex: 1; }
|
|
2407
|
-
|
|
2408
2405
|
.ab-Dialog__close-button {
|
|
2409
2406
|
position: absolute;
|
|
2410
2407
|
right: 6px;
|
|
@@ -3012,9 +3009,6 @@ input[type="number"].ab-Input:hover::-webkit-inner-spin-button:active {
|
|
|
3012
3009
|
.ab-FileDroppable, .ab-FileDroppable *, .ab-FileDroppable *:before, .ab-FileDroppable *:after {
|
|
3013
3010
|
box-sizing: border-box; }
|
|
3014
3011
|
|
|
3015
|
-
.ab-ChartContainer canvas {
|
|
3016
|
-
left: 0; }
|
|
3017
|
-
|
|
3018
3012
|
.ab-WizardPanel > .ab-Panel__body {
|
|
3019
3013
|
display: flex;
|
|
3020
3014
|
flex-flow: column; }
|
|
@@ -3666,7 +3660,7 @@ html.ab--theme-dark .ab-ListBoxFilterForm--aggrid-style {
|
|
|
3666
3660
|
.ab_div-colour-render-text {
|
|
3667
3661
|
position: absolute;
|
|
3668
3662
|
font-weight: normal;
|
|
3669
|
-
font-size:
|
|
3663
|
+
font-size: 12px;
|
|
3670
3664
|
z-index: 100; }
|
|
3671
3665
|
|
|
3672
3666
|
.ab_div-colour-render-div {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-react-aggrid",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-canary.0",
|
|
4
4
|
"description": "React version of the powerful data-agnostic HTML5 datagrid add-on that sits on top of the agGrid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"
|
|
23
|
+
"tslib": "^2.0.0",
|
|
24
|
+
"@adaptabletools/adaptable": "11.0.0-canary.0"
|
|
24
25
|
},
|
|
25
26
|
"peerDependencies": {
|
|
26
27
|
"@ag-grid-community/all-modules": ">=26.2.0",
|
|
@@ -2,16 +2,17 @@ import * as React from 'react';
|
|
|
2
2
|
import { AdaptableApi } from '@adaptabletools/adaptable/types';
|
|
3
3
|
import { AdaptableOptions } from '@adaptabletools/adaptable/types';
|
|
4
4
|
import { GridOptions, Module } from '@ag-grid-community/all-modules';
|
|
5
|
-
|
|
5
|
+
export interface AdaptableReactProps extends React.HTMLProps<HTMLDivElement> {
|
|
6
6
|
adaptableOptions: AdaptableOptions;
|
|
7
|
-
|
|
7
|
+
gridOptions?: GridOptions;
|
|
8
8
|
/**
|
|
9
9
|
* An array of agGrid modules
|
|
10
10
|
*/
|
|
11
11
|
modules: Module[];
|
|
12
12
|
onAdaptableReady?: (adaptableReadyInfo: {
|
|
13
13
|
adaptableApi: AdaptableApi;
|
|
14
|
-
|
|
14
|
+
gridOptions: GridOptions;
|
|
15
15
|
}) => void;
|
|
16
|
-
}
|
|
16
|
+
}
|
|
17
|
+
declare const AdaptableReact: React.FunctionComponent<AdaptableReactProps>;
|
|
17
18
|
export default AdaptableReact;
|
|
@@ -18,12 +18,12 @@ if (package_json_1.version !== version_1.default) {
|
|
|
18
18
|
}
|
|
19
19
|
const getRandomInt = (max) => Math.floor(Math.random() * Math.floor(max));
|
|
20
20
|
const AdaptableReact = (_a) => {
|
|
21
|
-
var { adaptableOptions,
|
|
21
|
+
var { adaptableOptions, gridOptions, onAdaptableReady, modules } = _a, props = tslib_1.__rest(_a, ["adaptableOptions", "gridOptions", "onAdaptableReady", "modules"]);
|
|
22
22
|
const seedId = react_1.useMemo(() => `${getRandomInt(1000)}-${Date.now()}`, []);
|
|
23
23
|
const adaptableContainerId = `adaptable-${seedId}`;
|
|
24
24
|
react_1.useLayoutEffect(() => {
|
|
25
25
|
let adaptableApi;
|
|
26
|
-
agGrid_1.default.initInternal(Object.assign(Object.assign({}, adaptableOptions), { containerOptions: Object.assign(Object.assign({}, adaptableOptions.containerOptions), { adaptableContainer: adaptableContainerId }),
|
|
26
|
+
agGrid_1.default.initInternal(Object.assign(Object.assign({}, adaptableOptions), { containerOptions: Object.assign(Object.assign({}, adaptableOptions.containerOptions), { adaptableContainer: adaptableContainerId }), gridOptions: gridOptions || adaptableOptions.gridOptions }), { waitForAgGrid: true, modules }).then((api) => {
|
|
27
27
|
adaptableApi = api;
|
|
28
28
|
logger_1.LogAdaptableInfo('AdaptableReady');
|
|
29
29
|
if (onAdaptableReady) {
|