@finos/legend-lego 1.2.44 → 1.2.45
Sign up to get free protection for your applications and to get access to all the features.
@@ -13,12 +13,12 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type
|
16
|
+
import { type AgGridReactProps } from '@ag-grid-community/react';
|
17
17
|
import { type CellRange, type CellMouseOverEvent, type ICellRendererParams, type GridOptions, type ColDef, type ColumnState, type GridApi, type IRowNode, type GetContextMenuItemsParams, type MenuItemDef, type IAggFuncParams } from '@ag-grid-community/core';
|
18
18
|
export declare const communityModules: import("@ag-grid-community/core").Module[];
|
19
19
|
export declare const enterpriseModules: import("@ag-grid-community/core").Module[];
|
20
20
|
export declare const allModules: import("@ag-grid-community/core").Module[];
|
21
|
-
export declare function DataGrid<TData = unknown>(props: AgGridReactProps<TData>
|
21
|
+
export declare function DataGrid<TData = unknown>(props: AgGridReactProps<TData>): JSX.Element;
|
22
22
|
export declare const configureDataGridComponent: () => void;
|
23
23
|
export type { CellRange as DataGridCellRange, CellMouseOverEvent as DataGridCellMouseOverEvent, ICellRendererParams as DataGridCellRendererParams, GridOptions as DataGridOptions, ColDef as DataGridColumnDefinition, ColumnState as DataGridColumnState, GridApi as DataGridApi, IRowNode as DataGridIRowNode, GetContextMenuItemsParams as DataGridGetContextMenuItemsParams, MenuItemDef as DataGridMenuItemDef, IAggFuncParams as DataGridIAggFuncParams, };
|
24
24
|
//# sourceMappingURL=DataGrid.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataGrid.d.ts","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"DataGrid.d.ts","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAa9E,OAAO,EACL,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,yBAAyB,EAC9B,KAAK,WAAW,EAChB,KAAK,cAAc,EAEpB,MAAM,yBAAyB,CAAC;AAGjC,eAAO,MAAM,gBAAgB,4CAA8C,CAAC;AAE5E,eAAO,MAAM,iBAAiB,4CAW7B,CAAC;AAEF,eAAO,MAAM,UAAU,4CAA6C,CAAC;AAIrE,wBAAgB,QAAQ,CAAC,KAAK,GAAG,OAAO,EACtC,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAC7B,GAAG,CAAC,OAAO,CAmBb;AAED,eAAO,MAAM,0BAA0B,QAAO,IAE7C,CAAC;AAEF,YAAY,EACV,SAAS,IAAI,iBAAiB,EAC9B,kBAAkB,IAAI,0BAA0B,EAChD,mBAAmB,IAAI,0BAA0B,EACjD,WAAW,IAAI,eAAe,EAC9B,MAAM,IAAI,wBAAwB,EAClC,WAAW,IAAI,mBAAmB,EAClC,OAAO,IAAI,WAAW,EACtB,QAAQ,IAAI,gBAAgB,EAC5B,yBAAyB,IAAI,iCAAiC,EAC9D,WAAW,IAAI,mBAAmB,EAClC,cAAc,IAAI,sBAAsB,GACzC,CAAC"}
|
@@ -14,7 +14,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
* See the License for the specific language governing permissions and
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
|
-
import { AgGridReact
|
17
|
+
import { AgGridReact } from '@ag-grid-community/react';
|
18
18
|
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
|
19
19
|
import { CsvExportModule } from '@ag-grid-community/csv-export';
|
20
20
|
import { ClipboardModule } from '@ag-grid-enterprise/clipboard';
|
@@ -59,7 +59,11 @@ export function DataGrid(props) {
|
|
59
59
|
// seem to arise when the scrollbar visibility changes as row data is being supplied
|
60
60
|
// one way to resolve this problem is to set `alwaysShowVerticalScroll={true}`
|
61
61
|
// See https://github.com/ag-grid/ag-grid/issues/2588
|
62
|
-
suppressBrowserResizeObserver: true, ...props,
|
62
|
+
suppressBrowserResizeObserver: true, ...props,
|
63
|
+
// NOTE: for test, we don't want to handle the error messages outputed by ag-grid so
|
64
|
+
// we disable enterprise features for now
|
65
|
+
// eslint-disable-next-line no-process-env
|
66
|
+
modules: process.env.NODE_ENV === 'test' ? communityModules : allModules }));
|
63
67
|
}
|
64
68
|
export const configureDataGridComponent = () => {
|
65
69
|
ModuleRegistry.registerModules([ClientSideRowModelModule]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataGrid.js","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"DataGrid.js","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAyB,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAA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
|
package/lib/index.css
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-lego",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.45",
|
4
4
|
"description": "Legend shared advanced application components and building blocks",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -47,30 +47,30 @@
|
|
47
47
|
"test:watch": "jest --watch"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
|
-
"@ag-grid-community/client-side-row-model": "
|
51
|
-
"@ag-grid-community/core": "
|
52
|
-
"@ag-grid-community/csv-export": "
|
53
|
-
"@ag-grid-community/react": "
|
54
|
-
"@ag-grid-community/styles": "
|
55
|
-
"@ag-grid-enterprise/clipboard": "
|
56
|
-
"@ag-grid-enterprise/column-tool-panel": "
|
57
|
-
"@ag-grid-enterprise/core": "
|
58
|
-
"@ag-grid-enterprise/excel-export": "
|
59
|
-
"@ag-grid-enterprise/filter-tool-panel": "
|
60
|
-
"@ag-grid-enterprise/menu": "
|
61
|
-
"@ag-grid-enterprise/range-selection": "
|
62
|
-
"@ag-grid-enterprise/row-grouping": "
|
63
|
-
"@ag-grid-enterprise/server-side-row-model": "
|
64
|
-
"@ag-grid-enterprise/side-bar": "
|
65
|
-
"@ag-grid-enterprise/status-bar": "
|
66
|
-
"@finos/legend-application": "15.1.
|
67
|
-
"@finos/legend-art": "7.1.
|
68
|
-
"@finos/legend-graph": "31.10.
|
69
|
-
"@finos/legend-shared": "10.0.
|
50
|
+
"@ag-grid-community/client-side-row-model": "32.0.0",
|
51
|
+
"@ag-grid-community/core": "32.0.0",
|
52
|
+
"@ag-grid-community/csv-export": "32.0.0",
|
53
|
+
"@ag-grid-community/react": "32.0.0",
|
54
|
+
"@ag-grid-community/styles": "32.0.0",
|
55
|
+
"@ag-grid-enterprise/clipboard": "32.0.0",
|
56
|
+
"@ag-grid-enterprise/column-tool-panel": "32.0.0",
|
57
|
+
"@ag-grid-enterprise/core": "32.0.0",
|
58
|
+
"@ag-grid-enterprise/excel-export": "32.0.0",
|
59
|
+
"@ag-grid-enterprise/filter-tool-panel": "32.0.0",
|
60
|
+
"@ag-grid-enterprise/menu": "32.0.0",
|
61
|
+
"@ag-grid-enterprise/range-selection": "32.0.0",
|
62
|
+
"@ag-grid-enterprise/row-grouping": "32.0.0",
|
63
|
+
"@ag-grid-enterprise/server-side-row-model": "32.0.0",
|
64
|
+
"@ag-grid-enterprise/side-bar": "32.0.0",
|
65
|
+
"@ag-grid-enterprise/status-bar": "32.0.0",
|
66
|
+
"@finos/legend-application": "15.1.14",
|
67
|
+
"@finos/legend-art": "7.1.42",
|
68
|
+
"@finos/legend-graph": "31.10.9",
|
69
|
+
"@finos/legend-shared": "10.0.44",
|
70
70
|
"@types/css-font-loading-module": "0.0.13",
|
71
71
|
"@types/react": "18.3.3",
|
72
72
|
"@types/react-dom": "18.3.0",
|
73
|
-
"mobx": "6.
|
73
|
+
"mobx": "6.13.0",
|
74
74
|
"mobx-react-lite": "4.0.7",
|
75
75
|
"monaco-editor": "0.50.0",
|
76
76
|
"react": "18.3.1",
|
@@ -78,15 +78,15 @@
|
|
78
78
|
"react-dom": "18.3.1"
|
79
79
|
},
|
80
80
|
"devDependencies": {
|
81
|
-
"@finos/legend-dev-utils": "2.1.
|
81
|
+
"@finos/legend-dev-utils": "2.1.12",
|
82
82
|
"@jest/globals": "29.7.0",
|
83
83
|
"cross-env": "7.0.3",
|
84
84
|
"eslint": "8.57.0",
|
85
85
|
"jest": "29.7.0",
|
86
86
|
"npm-run-all": "4.1.5",
|
87
|
-
"rimraf": "5.0.
|
87
|
+
"rimraf": "5.0.8",
|
88
88
|
"sass": "1.77.6",
|
89
|
-
"typescript": "5.5.
|
89
|
+
"typescript": "5.5.3"
|
90
90
|
},
|
91
91
|
"peerDependencies": {
|
92
92
|
"react": "^18.0.0"
|
@@ -14,11 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import {
|
18
|
-
AgGridReact,
|
19
|
-
type AgReactUiProps,
|
20
|
-
type AgGridReactProps,
|
21
|
-
} from '@ag-grid-community/react';
|
17
|
+
import { AgGridReact, type AgGridReactProps } from '@ag-grid-community/react';
|
22
18
|
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
|
23
19
|
import { CsvExportModule } from '@ag-grid-community/csv-export';
|
24
20
|
import { ClipboardModule } from '@ag-grid-enterprise/clipboard';
|
@@ -67,7 +63,7 @@ export const allModules = communityModules.concat(enterpriseModules);
|
|
67
63
|
declare const AG_GRID_LICENSE: string;
|
68
64
|
|
69
65
|
export function DataGrid<TData = unknown>(
|
70
|
-
props: AgGridReactProps<TData
|
66
|
+
props: AgGridReactProps<TData>,
|
71
67
|
): JSX.Element {
|
72
68
|
if (AG_GRID_LICENSE) {
|
73
69
|
LicenseManager.setLicenseKey(AG_GRID_LICENSE);
|
@@ -81,7 +77,10 @@ export function DataGrid<TData = unknown>(
|
|
81
77
|
// See https://github.com/ag-grid/ag-grid/issues/2588
|
82
78
|
suppressBrowserResizeObserver={true}
|
83
79
|
{...props}
|
84
|
-
|
80
|
+
// NOTE: for test, we don't want to handle the error messages outputed by ag-grid so
|
81
|
+
// we disable enterprise features for now
|
82
|
+
// eslint-disable-next-line no-process-env
|
83
|
+
modules={process.env.NODE_ENV === 'test' ? communityModules : allModules}
|
85
84
|
/>
|
86
85
|
);
|
87
86
|
}
|