@finos/legend-lego 1.1.46 → 1.1.48
Sign up to get free protection for your applications and to get access to all the features.
@@ -15,11 +15,12 @@
|
|
15
15
|
*/
|
16
16
|
/// <reference types="react" resolution-mode="require"/>
|
17
17
|
import { type AgReactUiProps, type AgGridReactProps } from '@ag-grid-community/react';
|
18
|
-
import { type CellMouseOverEvent, type ICellRendererParams, type GridOptions, type ColumnApi, type ColDef, type ColumnState } from '@ag-grid-community/core';
|
18
|
+
import { type CellRange, type CellMouseOverEvent, type ICellRendererParams, type GridOptions, type ColumnApi, type ColDef, type ColumnState, type GridApi, type IRowNode, type GetContextMenuItemsParams, type MenuItemDef } from '@ag-grid-community/core';
|
19
19
|
export declare const communityModules: import("@ag-grid-community/core").Module[];
|
20
20
|
export declare const enterpriseModules: import("@ag-grid-community/core").Module[];
|
21
21
|
export declare const allModules: import("@ag-grid-community/core").Module[];
|
22
|
+
export declare let isEnterpriseModeEnabled: boolean;
|
22
23
|
export declare function DataGrid<TData = unknown>(props: AgGridReactProps<TData> | AgReactUiProps<TData>): JSX.Element;
|
23
24
|
export declare const configureDataGridComponent: () => void;
|
24
|
-
export type { CellMouseOverEvent as DataGridCellMouseOverEvent, ICellRendererParams as DataGridCellRendererParams, GridOptions as DataGridOptions, ColDef as DataGridColumnDefinition, ColumnState as DataGridColumnState, ColumnApi as DataGridColumnApi, };
|
25
|
+
export type { CellRange as DataGridCellRange, CellMouseOverEvent as DataGridCellMouseOverEvent, ICellRendererParams as DataGridCellRendererParams, GridOptions as DataGridOptions, ColDef as DataGridColumnDefinition, ColumnState as DataGridColumnState, ColumnApi as DataGridColumnApi, GridApi as DataGridApi, IRowNode as DataGridIRowNode, GetContextMenuItemsParams as DataGridGetContextMenuItemsParams, MenuItemDef as DataGridMenuItemDef, };
|
25
26
|
//# sourceMappingURL=DataGrid.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataGrid.d.ts","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":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AI,0BAA0B,EAChD,mBAAmB,IAAI,0BAA0B,EACjD,WAAW,IAAI,eAAe,EAC9B,MAAM,IAAI,wBAAwB,EAClC,WAAW,IAAI,mBAAmB,EAClC,SAAS,IAAI,iBAAiB,EAC9B,OAAO,IAAI,WAAW,EACtB,QAAQ,IAAI,gBAAgB,EAC5B,yBAAyB,IAAI,iCAAiC,EAC9D,WAAW,IAAI,mBAAmB,GACnC,CAAC"}
|
@@ -43,8 +43,10 @@ export const enterpriseModules = [
|
|
43
43
|
StatusBarModule,
|
44
44
|
];
|
45
45
|
export const allModules = communityModules.concat(enterpriseModules);
|
46
|
+
export let isEnterpriseModeEnabled = false;
|
46
47
|
export function DataGrid(props) {
|
47
48
|
if (AG_GRID_LICENSE) {
|
49
|
+
isEnterpriseModeEnabled = true;
|
48
50
|
LicenseManager.setLicenseKey(AG_GRID_LICENSE);
|
49
51
|
}
|
50
52
|
return (_jsx(AgGridReact
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataGrid.js","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,GAGZ,MAAM,0BAA0B,CAAC;AAClC,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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;IACtB,UAAU;IACV,oBAAoB;IACpB,iBAAiB;IACjB,wBAAwB;IACxB,aAAa;IACb,eAAe;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAGrE,MAAM,CAAC,IAAI,uBAAuB,GAAG,KAAK,CAAC;AAE3C,MAAM,UAAU,QAAQ,CACtB,KAAsD;IAEtD,IAAI,eAAe,EAAE;QACnB,uBAAuB,GAAG,IAAI,CAAC;QAC/B,cAAc,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;KAC/C;IACD,OAAO,CACL,KAAC,WAAW;IACV,6FAA6F;IAC7F,2FAA2F;IAC3F,oFAAoF;IACpF,8EAA8E;IAC9E,qDAAqD;;QAJrD,6FAA6F;QAC7F,2FAA2F;QAC3F,oFAAoF;QACpF,8EAA8E;QAC9E,qDAAqD;QACrD,6BAA6B,EAAE,IAAI,KAC/B,KAAK,EACT,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,gBAAgB,GACxD,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAS,EAAE;IACnD,cAAc,CAAC,eAAe,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC;AAC7D,CAAC,CAAC"}
|
package/lib/index.css
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-lego",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.48",
|
4
4
|
"description": "Legend shared advanced application components and building blocks",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -65,7 +65,7 @@
|
|
65
65
|
"@ag-grid-enterprise/status-bar": "30.2.0",
|
66
66
|
"@finos/legend-application": "15.0.51",
|
67
67
|
"@finos/legend-art": "7.1.5",
|
68
|
-
"@finos/legend-graph": "31.3.
|
68
|
+
"@finos/legend-graph": "31.3.11",
|
69
69
|
"@finos/legend-shared": "10.0.28",
|
70
70
|
"@types/css-font-loading-module": "0.0.10",
|
71
71
|
"@types/react": "18.2.31",
|
@@ -32,12 +32,17 @@ import { ServerSideRowModelModule } from '@ag-grid-enterprise/server-side-row-mo
|
|
32
32
|
import { SideBarModule } from '@ag-grid-enterprise/side-bar';
|
33
33
|
import { StatusBarModule } from '@ag-grid-enterprise/status-bar';
|
34
34
|
import {
|
35
|
+
type CellRange,
|
35
36
|
type CellMouseOverEvent,
|
36
37
|
type ICellRendererParams,
|
37
38
|
type GridOptions,
|
38
39
|
type ColumnApi,
|
39
40
|
type ColDef,
|
40
41
|
type ColumnState,
|
42
|
+
type GridApi,
|
43
|
+
type IRowNode,
|
44
|
+
type GetContextMenuItemsParams,
|
45
|
+
type MenuItemDef,
|
41
46
|
ModuleRegistry,
|
42
47
|
} from '@ag-grid-community/core';
|
43
48
|
import { LicenseManager } from '@ag-grid-enterprise/core';
|
@@ -60,11 +65,13 @@ export const enterpriseModules = [
|
|
60
65
|
export const allModules = communityModules.concat(enterpriseModules);
|
61
66
|
|
62
67
|
declare const AG_GRID_LICENSE: string;
|
68
|
+
export let isEnterpriseModeEnabled = false;
|
63
69
|
|
64
70
|
export function DataGrid<TData = unknown>(
|
65
71
|
props: AgGridReactProps<TData> | AgReactUiProps<TData>,
|
66
72
|
): JSX.Element {
|
67
73
|
if (AG_GRID_LICENSE) {
|
74
|
+
isEnterpriseModeEnabled = true;
|
68
75
|
LicenseManager.setLicenseKey(AG_GRID_LICENSE);
|
69
76
|
}
|
70
77
|
return (
|
@@ -86,10 +93,15 @@ export const configureDataGridComponent = (): void => {
|
|
86
93
|
};
|
87
94
|
|
88
95
|
export type {
|
96
|
+
CellRange as DataGridCellRange,
|
89
97
|
CellMouseOverEvent as DataGridCellMouseOverEvent,
|
90
98
|
ICellRendererParams as DataGridCellRendererParams,
|
91
99
|
GridOptions as DataGridOptions,
|
92
100
|
ColDef as DataGridColumnDefinition,
|
93
101
|
ColumnState as DataGridColumnState,
|
94
102
|
ColumnApi as DataGridColumnApi,
|
103
|
+
GridApi as DataGridApi,
|
104
|
+
IRowNode as DataGridIRowNode,
|
105
|
+
GetContextMenuItemsParams as DataGridGetContextMenuItemsParams,
|
106
|
+
MenuItemDef as DataGridMenuItemDef,
|
95
107
|
};
|