@finos/legend-lego 2.0.27 → 2.0.29

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export declare const RedoButton: React.FC<{
17
- parent: React.RefObject<HTMLDivElement>;
17
+ parent: React.RefObject<HTMLDivElement | null>;
18
18
  canRedo: boolean;
19
19
  redo: () => void;
20
20
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"RedoButton.d.ts","sourceRoot":"","sources":["../../src/application/RedoButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IAChC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAyCA,CAAC"}
1
+ {"version":3,"file":"RedoButton.d.ts","sourceRoot":"","sources":["../../src/application/RedoButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IAChC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAyCA,CAAC"}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export declare const UndoButton: React.FC<{
17
- parent: React.RefObject<HTMLDivElement>;
17
+ parent: React.RefObject<HTMLDivElement | null>;
18
18
  canUndo: boolean;
19
19
  undo: () => void;
20
20
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"UndoButton.d.ts","sourceRoot":"","sources":["../../src/application/UndoButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IAChC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAyCA,CAAC"}
1
+ {"version":3,"file":"UndoButton.d.ts","sourceRoot":"","sources":["../../src/application/UndoButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IAChC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAyCA,CAAC"}
@@ -13,12 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type AgGridReactProps } from '@ag-grid-community/react';
17
- import { type CellRange, type CellSelectionChangedEvent, 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
- export declare const communityModules: import("@ag-grid-community/core").Module[];
19
- export declare const enterpriseModules: import("@ag-grid-community/core").Module[];
20
- export declare const allModules: import("@ag-grid-community/core").Module[];
21
- export declare function DataGrid<TData = unknown>(props: AgGridReactProps<TData>): JSX.Element;
22
- export declare const configureDataGridComponent: () => void;
23
- export type { CellRange as DataGridCellRange, CellMouseOverEvent as DataGridCellMouseOverEvent, CellSelectionChangedEvent as DataGridCellSelectionChangedEvent, 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, };
16
+ import { type CellRange, type CellSelectionChangedEvent, type CellMouseOverEvent, type ICellRendererParams, type GridOptions, type ColDef, type ColumnState, type GridApi, type IRowNode, type GetContextMenuItemsParams, type MenuItemDef, type IAggFuncParams, type DefaultMenuItem, type Module } from 'ag-grid-community';
17
+ import { type AgGridReactProps, type CustomHeaderProps } from 'ag-grid-react';
18
+ export declare const communityModules: Module[];
19
+ export declare const enterpriseModules: Module[];
20
+ export declare const allModules: Module[];
21
+ export declare function DataGrid<TData = unknown>(props: AgGridReactProps<TData>): React.ReactNode;
22
+ export type { CellRange as DataGridCellRange, CellMouseOverEvent as DataGridCellMouseOverEvent, CellSelectionChangedEvent as DataGridCellSelectionChangedEvent, 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, CustomHeaderProps as DataGridCustomHeaderProps, DefaultMenuItem as DataGridDefaultMenuItem, };
24
23
  //# 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,EAAe,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAa9E,OAAO,EACL,KAAK,SAAS,EACd,KAAK,yBAAyB,EAC9B,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,CAab;AAED,eAAO,MAAM,0BAA0B,QAAO,IAE7C,CAAC;AAEF,YAAY,EACV,SAAS,IAAI,iBAAiB,EAC9B,kBAAkB,IAAI,0BAA0B,EAChD,yBAAyB,IAAI,iCAAiC,EAC9D,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"}
1
+ {"version":3,"file":"DataGrid.d.ts","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,yBAAyB,EAC9B,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,EACnB,KAAK,eAAe,EACpB,KAAK,MAAM,EAEZ,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACvB,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAAyB,CAAC;AAC/D,eAAO,MAAM,iBAAiB,EAAE,MAAM,EAA0B,CAAC;AACjE,eAAO,MAAM,UAAU,EAAE,MAAM,EAA+C,CAAC;AAI/E,wBAAgB,QAAQ,CAAC,KAAK,GAAG,OAAO,EACtC,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAC7B,KAAK,CAAC,SAAS,CAcjB;AAED,YAAY,EACV,SAAS,IAAI,iBAAiB,EAC9B,kBAAkB,IAAI,0BAA0B,EAChD,yBAAyB,IAAI,iCAAiC,EAC9D,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,EACxC,iBAAiB,IAAI,yBAAyB,EAC9C,eAAe,IAAI,uBAAuB,GAC3C,CAAC"}
@@ -14,46 +14,20 @@ 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 } from '@ag-grid-community/react';
18
- import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
19
- import { CsvExportModule } from '@ag-grid-community/csv-export';
20
- import { ClipboardModule } from '@ag-grid-enterprise/clipboard';
21
- import { ColumnsToolPanelModule } from '@ag-grid-enterprise/column-tool-panel';
22
- import { ExcelExportModule } from '@ag-grid-enterprise/excel-export';
23
- import { FiltersToolPanelModule } from '@ag-grid-enterprise/filter-tool-panel';
24
- import { MenuModule } from '@ag-grid-enterprise/menu';
25
- import { RangeSelectionModule } from '@ag-grid-enterprise/range-selection';
26
- import { RowGroupingModule } from '@ag-grid-enterprise/row-grouping';
27
- import { ServerSideRowModelModule } from '@ag-grid-enterprise/server-side-row-model';
28
- import { SideBarModule } from '@ag-grid-enterprise/side-bar';
29
- import { StatusBarModule } from '@ag-grid-enterprise/status-bar';
30
- import { ModuleRegistry, } from '@ag-grid-community/core';
31
- import { LicenseManager } from '@ag-grid-enterprise/core';
32
- export const communityModules = [ClientSideRowModelModule, CsvExportModule];
33
- export const enterpriseModules = [
34
- ClipboardModule,
35
- ColumnsToolPanelModule,
36
- ExcelExportModule,
37
- FiltersToolPanelModule,
38
- MenuModule,
39
- RangeSelectionModule,
40
- RowGroupingModule,
41
- ServerSideRowModelModule,
42
- SideBarModule,
43
- StatusBarModule,
44
- ];
17
+ import { AllCommunityModule, } from 'ag-grid-community';
18
+ import { LicenseManager, AllEnterpriseModule } from 'ag-grid-enterprise';
19
+ import { AgGridReact, } from 'ag-grid-react';
20
+ export const communityModules = [AllCommunityModule];
21
+ export const enterpriseModules = [AllEnterpriseModule];
45
22
  export const allModules = communityModules.concat(enterpriseModules);
46
23
  export function DataGrid(props) {
47
24
  if (AG_GRID_LICENSE) {
48
25
  LicenseManager.setLicenseKey(AG_GRID_LICENSE);
49
26
  }
50
- return (_jsx(AgGridReact, { ...props,
27
+ return (_jsx(AgGridReact, { theme: "legacy", ...props,
51
28
  // NOTE: for test, we don't want to handle the error messages outputed by ag-grid so
52
29
  // we disable enterprise features for now
53
30
  // eslint-disable-next-line no-process-env
54
31
  modules: process.env.NODE_ENV === 'test' ? communityModules : allModules }));
55
32
  }
56
- export const configureDataGridComponent = () => {
57
- ModuleRegistry.registerModules([ClientSideRowModelModule]);
58
- };
59
33
  //# sourceMappingURL=DataGrid.js.map
@@ -1 +1 @@
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,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAaL,cAAc,GACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,wBAAwB,EAAE,eAAe,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,eAAe;IACf,sBAAsB;IACtB,iBAAiB;IACjB,sBAAsB;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;AAIrE,MAAM,UAAU,QAAQ,CACtB,KAA8B;IAE9B,IAAI,eAAe,EAAE,CAAC;QACpB,cAAc,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;IAChD,CAAC;IACD,OAAO,CACL,KAAC,WAAW,OACN,KAAK;QACT,oFAAoF;QACpF,yCAAyC;QACzC,0CAA0C;QAC1C,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,UAAU,GACxE,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"}
1
+ {"version":3,"file":"DataGrid.js","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAeL,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EACL,WAAW,GAGZ,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,gBAAgB,GAAa,CAAC,kBAAkB,CAAC,CAAC;AAC/D,MAAM,CAAC,MAAM,iBAAiB,GAAa,CAAC,mBAAmB,CAAC,CAAC;AACjE,MAAM,CAAC,MAAM,UAAU,GAAa,gBAAgB,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAI/E,MAAM,UAAU,QAAQ,CACtB,KAA8B;IAE9B,IAAI,eAAe,EAAE,CAAC;QACpB,cAAc,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;IAChD,CAAC;IACD,OAAO,CACL,KAAC,WAAW,IACV,KAAK,EAAC,QAAQ,KACV,KAAK;QACT,oFAAoF;QACpF,yCAAyC;QACzC,0CAA0C;QAC1C,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,UAAU,GACxE,CACH,CAAC;AACJ,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-lego v2.0.27
1
+ /** @license @finos/legend-lego v2.0.29
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- @import"@ag-grid-community/styles/ag-grid.css";@import"@ag-grid-community/styles/ag-theme-balham.css";.fuzzy-search__advanced-config__panel{width:100%;background:var(--color-dark-grey-250)}.fuzzy-search__advanced-config__panel__header__label{display:flex;align-items:center;font-weight:500;color:var(--color-light-grey-50);background:var(--color-dark-grey-300);padding:0 1rem;line-height:2rem;font-size:1.2rem;cursor:default;user-select:none}.tab-manager{display:flex;flex:1;overflow:hidden;height:100%}.tab-manager__content{width:calc(100% - 2.8rem);display:flex;overflow-x:overlay}.tab-manager__tab{display:flex;align-items:center;cursor:pointer;color:var(--color-light-grey-400);background:var(--color-dark-grey-80);border-right:.1rem solid var(--color-dark-grey-50)}.tab-manager__tab--active{color:var(--color-light-grey-100);background:var(--color-dark-grey-50)}.tab-manager__tab--dragged{filter:opacity(0.7)}.tab-manager__tab__content{display:flex;align-items:center;height:100%;width:100%}.tab-manager__tab__label{height:100%;color:inherit;padding:0 .5rem 0 1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tab-manager__tab__close-btn{display:flex;align-items:center;justify-content:center;visibility:hidden;height:2rem;width:2rem;border-radius:.2rem;margin-right:.4rem}.tab-manager__tab__close-btn svg{color:var(--color-light-grey-200);font-size:1.2rem}.tab-manager__tab__close-btn:hover{background:var(--color-dark-grey-200)}.tab-manager__tab__pin-btn{display:flex;align-items:center;justify-content:center;height:2rem;width:2rem;border-radius:.2rem;margin-right:.4rem}.tab-manager__tab__pin-btn svg{color:var(--color-dark-grey-500);font-size:1.4rem}.tab-manager__tab__pin-btn:hover{background:var(--color-dark-grey-200)}.tab-manager__tab--active .tab-manager__tab__close-btn,.tab-manager__tab:hover .tab-manager__tab__close-btn{visibility:visible}.tab-manager__tab--active .tab-manager__tab__close-btn svg,.tab-manager__tab:hover .tab-manager__tab__close-btn svg{color:var(--color-light-grey-100)}.tab-manager__tab__dnd__placeholder{text-align:left;margin:0;padding:0 .5rem;background:var(--color-dark-grey-100)}.tab-manager__menu{min-width:15rem;max-width:30rem;height:100%;padding:0}.tab-manager__menu__toggler{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;color:var(--color-light-grey-400);border-left:.1rem solid var(--color-dark-grey-50);height:100%;width:2.8rem}.tab-manager__menu__item{justify-content:space-between}.tab-manager__menu__item--active,.tab-manager__menu__item:not([disabled]):hover{background:var(--color-dark-grey-250)}.tab-manager__menu__item__label{text-align:left;white-space:nowrap;font-size:1.3rem;overflow:hidden;text-overflow:ellipsis}.tab-manager__menu__item__close-btn{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;padding:.4rem;margin-left:.6rem;flex-direction:end}.tab-manager__menu__item__close-btn svg{width:1.2rem;height:1.2rem}.activity-bar__item .activity-bar__item__experimental-badge{display:flex;align-items:center;justify-content:center;position:absolute;top:.6rem;right:.6rem;height:1.6rem;width:1.6rem;border-radius:50%;background:var(--color-mauve-50);border:.1rem solid var(--color-dark-grey-280)}.activity-bar__item .activity-bar__item__experimental-badge svg{font-size:1.2rem;color:var(--color-dark-grey-280)}.undo-redo__button{display:flex;align-items:center;color:var(--color-light-blue-50);margin:0 .5rem;flex-direction:column}.undo-redo__button svg{font-size:1.1rem}.undo-redo__button__label{font-size:1.2rem;font-weight:700;display:inline-block;line-height:1}.undo-redo__button[disabled]{color:var(--color-dark-grey-500)}.documentation-link{display:inline-flex;align-self:center;color:var(--color-dark-grey-500);cursor:pointer}.documentation-link--inline{margin-left:.5rem}.documentation-link:hover{color:var(--color-light-grey-400)}.documentation-preview{display:flex;background:var(--color-dark-grey-85);border:.1rem solid var(--color-dark-grey-280);border-radius:.2rem}.documentation-preview__text{padding:1rem;width:calc(100% - 3rem);color:var(--color-light-grey-400);line-height:2rem}.documentation-preview__hint{display:flex;justify-content:center;padding:1rem 0;width:3rem}.monaco-editor *{font-size:1.4rem}.monaco-editor em{font-style:italic}.monaco-editor strong{font-weight:bold}.monaco-editor--small-font *{font-size:1.2rem}.code-editor{height:100%;width:100%}.code-editor__content{height:100%;width:100%;position:relative;background:var(--color-dark-grey-50)}.code-editor__header{display:flex;align-items:center;justify-content:right;width:100%;height:2.8rem;background:var(--color-dark-grey-50);border-bottom:.1rem solid var(--color-dark-grey-80);border-radius:.2rem .2rem 0 0}.code-editor__header__action{display:flex;align-items:center;justify-content:center;color:var(--color-dark-grey-400);height:2.8rem;width:2.8rem}.code-editor__header__action:hover{color:var(--color-dark-grey-500)}.code-editor__header__action--active,.code-editor__header__action--active:hover{color:var(--color-light-grey-300)}.code-editor__header__action svg{font-size:1.6rem}.code-editor__body{height:100%;width:100%;position:absolute;top:0;left:0;overflow:hidden}.code-editor__content--padding{border-radius:.2rem}.code-editor__content--padding .code-editor__body{border-radius:.2rem}.code-editor__content--with__header{height:calc(100% - 2.8rem)}.code-editor__content--with__header .code-editor__body{border-radius:0 0 .2rem .2rem}.packageable-element-option-label{display:flex;align-items:center}.packageable-element-option-label__tag{display:flex;align-items:center;color:var(--color-dark-grey-500);background:var(--color-light-grey-50);border:.1rem solid var(--color-light-grey-180);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label__name{display:flex;align-items:center;height:1.8rem}.packageable-element-option-label__type{margin:-1rem .8rem -1rem -1.2rem;height:3.2rem;padding-left:.5rem;background:rgba(0,0,0,0)}.packageable-element-option-label__type--system{background:var(--color-system)}.packageable-element-option-label__type--generated{background:var(--color-generated)}.packageable-element-option-label__type--dependency{background:var(--color-dependency)}.packageable-element-option-label--dark{display:flex;align-items:center;display:flex}.packageable-element-option-label--dark__tag{display:flex;align-items:center;color:var(--color-dark-grey-250);background:var(--color-dark-grey-400);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label--dark__name{display:flex;align-items:center;height:1.8rem}/*# sourceMappingURL=index.css.map */
17
+ @import"ag-grid-community/styles/ag-grid.css";@import"ag-grid-community/styles/ag-theme-balham.css";.fuzzy-search__advanced-config__panel{width:100%;background:var(--color-dark-grey-250)}.fuzzy-search__advanced-config__panel__header__label{display:flex;align-items:center;font-weight:500;color:var(--color-light-grey-50);background:var(--color-dark-grey-300);padding:0 1rem;line-height:2rem;font-size:1.2rem;cursor:default;user-select:none}.tab-manager{display:flex;flex:1;overflow:hidden;height:100%}.tab-manager__content{width:calc(100% - 2.8rem);display:flex;overflow-x:overlay}.tab-manager__tab{display:flex;align-items:center;cursor:pointer;color:var(--color-light-grey-400);background:var(--color-dark-grey-80);border-right:.1rem solid var(--color-dark-grey-50)}.tab-manager__tab--active{color:var(--color-light-grey-100);background:var(--color-dark-grey-50)}.tab-manager__tab--dragged{filter:opacity(0.7)}.tab-manager__tab__content{display:flex;align-items:center;height:100%;width:100%}.tab-manager__tab__label{height:100%;color:inherit;padding:0 .5rem 0 1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tab-manager__tab__close-btn{display:flex;align-items:center;justify-content:center;visibility:hidden;height:2rem;width:2rem;border-radius:.2rem;margin-right:.4rem}.tab-manager__tab__close-btn svg{color:var(--color-light-grey-200);font-size:1.2rem}.tab-manager__tab__close-btn:hover{background:var(--color-dark-grey-200)}.tab-manager__tab__pin-btn{display:flex;align-items:center;justify-content:center;height:2rem;width:2rem;border-radius:.2rem;margin-right:.4rem}.tab-manager__tab__pin-btn svg{color:var(--color-dark-grey-500);font-size:1.4rem}.tab-manager__tab__pin-btn:hover{background:var(--color-dark-grey-200)}.tab-manager__tab--active .tab-manager__tab__close-btn,.tab-manager__tab:hover .tab-manager__tab__close-btn{visibility:visible}.tab-manager__tab--active .tab-manager__tab__close-btn svg,.tab-manager__tab:hover .tab-manager__tab__close-btn svg{color:var(--color-light-grey-100)}.tab-manager__tab__dnd__placeholder{text-align:left;margin:0;padding:0 .5rem;background:var(--color-dark-grey-100)}.tab-manager__menu{min-width:15rem;max-width:30rem;height:100%;padding:0}.tab-manager__menu__toggler{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;color:var(--color-light-grey-400);border-left:.1rem solid var(--color-dark-grey-50);height:100%;width:2.8rem}.tab-manager__menu__item{justify-content:space-between}.tab-manager__menu__item--active,.tab-manager__menu__item:not([disabled]):hover{background:var(--color-dark-grey-250)}.tab-manager__menu__item__label{text-align:left;white-space:nowrap;font-size:1.3rem;overflow:hidden;text-overflow:ellipsis}.tab-manager__menu__item__close-btn{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;padding:.4rem;margin-left:.6rem;flex-direction:end}.tab-manager__menu__item__close-btn svg{width:1.2rem;height:1.2rem}.activity-bar__item .activity-bar__item__experimental-badge{display:flex;align-items:center;justify-content:center;position:absolute;top:.6rem;right:.6rem;height:1.6rem;width:1.6rem;border-radius:50%;background:var(--color-mauve-50);border:.1rem solid var(--color-dark-grey-280)}.activity-bar__item .activity-bar__item__experimental-badge svg{font-size:1.2rem;color:var(--color-dark-grey-280)}.undo-redo__button{display:flex;align-items:center;color:var(--color-light-blue-50);margin:0 .5rem;flex-direction:column}.undo-redo__button svg{font-size:1.1rem}.undo-redo__button__label{font-size:1.2rem;font-weight:700;display:inline-block;line-height:1}.undo-redo__button[disabled]{color:var(--color-dark-grey-500)}.documentation-link{display:inline-flex;align-self:center;color:var(--color-dark-grey-500);cursor:pointer}.documentation-link--inline{margin-left:.5rem}.documentation-link:hover{color:var(--color-light-grey-400)}.documentation-preview{display:flex;background:var(--color-dark-grey-85);border:.1rem solid var(--color-dark-grey-280);border-radius:.2rem}.documentation-preview__text{padding:1rem;width:calc(100% - 3rem);color:var(--color-light-grey-400);line-height:2rem}.documentation-preview__hint{display:flex;justify-content:center;padding:1rem 0;width:3rem}.monaco-editor *{font-size:1.4rem}.monaco-editor em{font-style:italic}.monaco-editor strong{font-weight:bold}.monaco-editor--small-font *{font-size:1.2rem}.code-editor{height:100%;width:100%}.code-editor__content{height:100%;width:100%;position:relative;background:var(--color-dark-grey-50)}.code-editor__header{display:flex;align-items:center;justify-content:right;width:100%;height:2.8rem;background:var(--color-dark-grey-50);border-bottom:.1rem solid var(--color-dark-grey-80);border-radius:.2rem .2rem 0 0}.code-editor__header__action{display:flex;align-items:center;justify-content:center;color:var(--color-dark-grey-400);height:2.8rem;width:2.8rem}.code-editor__header__action:hover{color:var(--color-dark-grey-500)}.code-editor__header__action--active,.code-editor__header__action--active:hover{color:var(--color-light-grey-300)}.code-editor__header__action svg{font-size:1.6rem}.code-editor__body{height:100%;width:100%;position:absolute;top:0;left:0;overflow:hidden}.code-editor__content--padding{border-radius:.2rem}.code-editor__content--padding .code-editor__body{border-radius:.2rem}.code-editor__content--with__header{height:calc(100% - 2.8rem)}.code-editor__content--with__header .code-editor__body{border-radius:0 0 .2rem .2rem}.packageable-element-option-label{display:flex;align-items:center}.packageable-element-option-label__tag{display:flex;align-items:center;color:var(--color-dark-grey-500);background:var(--color-light-grey-50);border:.1rem solid var(--color-light-grey-180);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label__name{display:flex;align-items:center;height:1.8rem}.packageable-element-option-label__type{margin:-1rem .8rem -1rem -1.2rem;height:3.2rem;padding-left:.5rem;background:rgba(0,0,0,0)}.packageable-element-option-label__type--system{background:var(--color-system)}.packageable-element-option-label__type--generated{background:var(--color-generated)}.packageable-element-option-label__type--dependency{background:var(--color-dependency)}.packageable-element-option-label--dark{display:flex;align-items:center;display:flex}.packageable-element-option-label--dark__tag{display:flex;align-items:center;color:var(--color-dark-grey-250);background:var(--color-dark-grey-400);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label--dark__name{display:flex;align-items:center;height:1.8rem}/*# sourceMappingURL=index.css.map */
package/lib/index.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../style/_data-grid.scss","../style/application/_fuzzy-search.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/application/_tab-manager.scss","../style/application/_activity-bar.scss","../style/application/_undo-redo-button.scss","../style/application/_documentation-link.scss","../style/reset/_monaco-editor.scss","../style/_code-editor.scss","../style/graph-editor/_packageable-element-option-label.scss"],"names":[],"mappings":"AAgBQ,+CACA,uDCCR,sCACE,WACA,sCAEA,qDCQA,aACA,mBDNE,gBACA,iCACA,sCACA,eACA,iBACA,iBACA,eACA,iBEdJ,aACE,aACA,OACA,gBACA,YAEA,sBACE,0BACA,aACA,mBAGF,+BDCA,mBCEE,eACA,kCACA,qCACA,mDAEA,0BACE,kCACA,qCAGF,2BACE,oBAGF,2BDjBF,aACA,mBCmBI,YACA,WAGF,yBACE,YACA,cACA,uBACA,mBACA,gBACA,uBAGF,6BDvCF,aACA,mBACA,uBCwCI,kBACA,YACA,WACA,oBACA,mBAEA,iCACE,kCACA,iBAGF,mCACE,sCAIJ,2BD1DF,aACA,mBACA,uBC2DI,YACA,WACA,oBACA,mBAEA,+BACE,iCACA,iBAGF,iCACE,sCAIJ,4GAEE,mBAEA,oHACE,kCAIJ,oCACE,gBACA,SACA,gBACA,sCAIJ,mBACE,gBACA,gBACA,YACA,UAEA,4BDnGF,aACA,mBACA,uBA2BA,YACA,cCyEI,kCACA,kDACA,YACA,aAGF,yBACE,8BAEA,gFAEE,sCAIJ,gCACE,gBACA,mBACA,iBACA,gBACA,uBAGF,oCD9HF,aACA,mBACA,uBA2BA,YACA,cCoGI,cACA,kBACA,mBAEA,wCACE,aACA,cC7IN,4DFKA,aACA,mBACA,uBEJE,kBACA,UACA,YACA,cACA,aACA,kBACA,iCACA,8CAEA,gEACE,iBACA,iCCdJ,mBHWA,aACA,mBGTE,iCACA,eACA,sBAEA,uBACE,iBAGF,0BACE,iBACA,gBACA,qBACA,cAIJ,6BACE,iCCrBJ,oBACE,oBACA,kBACA,iCACA,eAEA,4BACE,kBAIJ,0BACE,kCAGF,uBACE,aACA,qCACA,8CACA,oBAEA,6BACE,aACA,wBACA,kCACA,iBAGF,6BJXA,aACA,uBIaE,eACA,WClCJ,iBACE,iBAGF,kBACE,kBAGF,sBACE,iBAGF,6BACE,iBCZF,aACE,YACA,WAEA,sBACE,YACA,WACA,kBACA,qCAGF,qBNEA,aACA,yCMCE,WACA,cACA,qCACA,oDACA,8BAGF,6BNfA,aACA,mBACA,uBMgBE,iCACA,cACA,aAEA,mCACE,iCAGF,gFAEE,kCAGF,iCACE,iBAIJ,mBACE,YACA,WACA,kBACA,MACA,OACA,gBAGF,+BACE,oBAGF,kDACE,oBAGF,oCACE,2BAGF,uDACE,8BChEJ,kCPYE,aACA,mBOVA,uCPSA,aACA,mBOPE,iCACA,sCACA,+CACA,iBACA,oBACA,eACA,gBACA,cACA,gBAGF,wCPLA,aACA,mBOOE,cAIJ,wCACE,iCACA,cACA,mBACA,yBAEA,gDACE,+BAGF,mDACE,kCAGF,oDACE,mCAIJ,wCP/BE,aACA,mBOiCA,aAEA,6CPpCA,aACA,mBOsCE,iCACA,sCACA,iBACA,oBACA,eACA,gBACA,cACA,gBAGF,8CPjDA,aACA,mBOmDE","file":"index.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../style/_data-grid.scss","../style/application/_fuzzy-search.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/application/_tab-manager.scss","../style/application/_activity-bar.scss","../style/application/_undo-redo-button.scss","../style/application/_documentation-link.scss","../style/reset/_monaco-editor.scss","../style/_code-editor.scss","../style/graph-editor/_packageable-element-option-label.scss"],"names":[],"mappings":"AAgBQ,8CACA,sDCCR,sCACE,WACA,sCAEA,qDCQA,aACA,mBDNE,gBACA,iCACA,sCACA,eACA,iBACA,iBACA,eACA,iBEdJ,aACE,aACA,OACA,gBACA,YAEA,sBACE,0BACA,aACA,mBAGF,+BDCA,mBCEE,eACA,kCACA,qCACA,mDAEA,0BACE,kCACA,qCAGF,2BACE,oBAGF,2BDjBF,aACA,mBCmBI,YACA,WAGF,yBACE,YACA,cACA,uBACA,mBACA,gBACA,uBAGF,6BDvCF,aACA,mBACA,uBCwCI,kBACA,YACA,WACA,oBACA,mBAEA,iCACE,kCACA,iBAGF,mCACE,sCAIJ,2BD1DF,aACA,mBACA,uBC2DI,YACA,WACA,oBACA,mBAEA,+BACE,iCACA,iBAGF,iCACE,sCAIJ,4GAEE,mBAEA,oHACE,kCAIJ,oCACE,gBACA,SACA,gBACA,sCAIJ,mBACE,gBACA,gBACA,YACA,UAEA,4BDnGF,aACA,mBACA,uBA2BA,YACA,cCyEI,kCACA,kDACA,YACA,aAGF,yBACE,8BAEA,gFAEE,sCAIJ,gCACE,gBACA,mBACA,iBACA,gBACA,uBAGF,oCD9HF,aACA,mBACA,uBA2BA,YACA,cCoGI,cACA,kBACA,mBAEA,wCACE,aACA,cC7IN,4DFKA,aACA,mBACA,uBEJE,kBACA,UACA,YACA,cACA,aACA,kBACA,iCACA,8CAEA,gEACE,iBACA,iCCdJ,mBHWA,aACA,mBGTE,iCACA,eACA,sBAEA,uBACE,iBAGF,0BACE,iBACA,gBACA,qBACA,cAIJ,6BACE,iCCrBJ,oBACE,oBACA,kBACA,iCACA,eAEA,4BACE,kBAIJ,0BACE,kCAGF,uBACE,aACA,qCACA,8CACA,oBAEA,6BACE,aACA,wBACA,kCACA,iBAGF,6BJXA,aACA,uBIaE,eACA,WClCJ,iBACE,iBAGF,kBACE,kBAGF,sBACE,iBAGF,6BACE,iBCZF,aACE,YACA,WAEA,sBACE,YACA,WACA,kBACA,qCAGF,qBNEA,aACA,yCMCE,WACA,cACA,qCACA,oDACA,8BAGF,6BNfA,aACA,mBACA,uBMgBE,iCACA,cACA,aAEA,mCACE,iCAGF,gFAEE,kCAGF,iCACE,iBAIJ,mBACE,YACA,WACA,kBACA,MACA,OACA,gBAGF,+BACE,oBAGF,kDACE,oBAGF,oCACE,2BAGF,uDACE,8BChEJ,kCPYE,aACA,mBOVA,uCPSA,aACA,mBOPE,iCACA,sCACA,+CACA,iBACA,oBACA,eACA,gBACA,cACA,gBAGF,wCPLA,aACA,mBOOE,cAIJ,wCACE,iCACA,cACA,mBACA,yBAEA,gDACE,+BAGF,mDACE,kCAGF,oDACE,mCAIJ,wCP/BE,aACA,mBOiCA,aAEA,6CPpCA,aACA,mBOsCE,iCACA,sCACA,iBACA,oBACA,eACA,gBACA,cACA,gBAGF,8CPjDA,aACA,mBOmDE","file":"index.css"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-lego",
3
- "version": "2.0.27",
3
+ "version": "2.0.29",
4
4
  "description": "Legend code editor support",
5
5
  "keywords": [
6
6
  "legend",
@@ -46,50 +46,37 @@
46
46
  "test:watch": "jest --watch"
47
47
  },
48
48
  "dependencies": {
49
- "@ag-grid-community/client-side-row-model": "32.3.3",
50
- "@ag-grid-community/core": "32.3.3",
51
- "@ag-grid-community/csv-export": "32.3.3",
52
- "@ag-grid-community/react": "32.3.3",
53
- "@ag-grid-community/styles": "32.3.3",
54
- "@ag-grid-enterprise/clipboard": "32.3.3",
55
- "@ag-grid-enterprise/column-tool-panel": "32.3.3",
56
- "@ag-grid-enterprise/core": "32.3.3",
57
- "@ag-grid-enterprise/excel-export": "32.3.3",
58
- "@ag-grid-enterprise/filter-tool-panel": "32.3.3",
59
- "@ag-grid-enterprise/menu": "32.3.3",
60
- "@ag-grid-enterprise/range-selection": "32.3.3",
61
- "@ag-grid-enterprise/row-grouping": "32.3.3",
62
- "@ag-grid-enterprise/server-side-row-model": "32.3.3",
63
- "@ag-grid-enterprise/side-bar": "32.3.3",
64
- "@ag-grid-enterprise/status-bar": "32.3.3",
65
- "@finos/legend-application": "16.0.12",
66
- "@finos/legend-art": "7.1.69",
67
- "@finos/legend-code-editor": "2.0.25",
68
- "@finos/legend-graph": "31.10.59",
69
- "@finos/legend-shared": "10.0.62",
49
+ "@finos/legend-application": "16.0.13",
50
+ "@finos/legend-art": "7.1.70",
51
+ "@finos/legend-code-editor": "2.0.27",
52
+ "@finos/legend-graph": "31.10.61",
53
+ "@finos/legend-shared": "10.0.63",
70
54
  "@types/css-font-loading-module": "0.0.14",
71
- "@types/react": "18.3.12",
72
- "@types/react-dom": "18.3.1",
55
+ "@types/react": "19.0.2",
56
+ "@types/react-dom": "19.0.2",
57
+ "ag-grid-community": "33.0.2",
58
+ "ag-grid-enterprise": "33.0.2",
59
+ "ag-grid-react": "33.0.2",
73
60
  "mobx": "6.13.5",
74
- "mobx-react-lite": "4.0.7",
75
- "monaco-editor": "0.52.0",
76
- "react": "18.3.1",
61
+ "mobx-react-lite": "4.1.0",
62
+ "monaco-editor": "0.52.2",
63
+ "react": "19.0.0",
77
64
  "react-dnd": "16.0.1",
78
- "react-dom": "18.3.1"
65
+ "react-dom": "19.0.0"
79
66
  },
80
67
  "devDependencies": {
81
- "@finos/legend-dev-utils": "2.1.31",
68
+ "@finos/legend-dev-utils": "2.1.32",
82
69
  "@jest/globals": "29.7.0",
83
70
  "cross-env": "7.0.3",
84
- "eslint": "9.16.0",
71
+ "eslint": "9.17.0",
85
72
  "jest": "29.7.0",
86
73
  "npm-run-all": "4.1.5",
87
74
  "rimraf": "6.0.1",
88
- "sass": "1.81.0",
75
+ "sass": "1.83.0",
89
76
  "typescript": "5.7.2"
90
77
  },
91
78
  "peerDependencies": {
92
- "react": "^18.0.0"
79
+ "react": "^19.0.0"
93
80
  },
94
81
  "publishConfig": {
95
82
  "directory": "build/publishContent"
@@ -18,7 +18,7 @@ import { RedoIcon } from '@finos/legend-art';
18
18
  import { useEffect } from 'react';
19
19
 
20
20
  export const RedoButton: React.FC<{
21
- parent: React.RefObject<HTMLDivElement>;
21
+ parent: React.RefObject<HTMLDivElement | null>;
22
22
  canRedo: boolean;
23
23
  redo: () => void;
24
24
  }> = (props) => {
@@ -18,7 +18,7 @@ import { UndoIcon } from '@finos/legend-art';
18
18
  import { useEffect } from 'react';
19
19
 
20
20
  export const UndoButton: React.FC<{
21
- parent: React.RefObject<HTMLDivElement>;
21
+ parent: React.RefObject<HTMLDivElement | null>;
22
22
  canUndo: boolean;
23
23
  undo: () => void;
24
24
  }> = (props) => {
@@ -14,19 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { AgGridReact, type AgGridReactProps } from '@ag-grid-community/react';
18
- import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
19
- import { CsvExportModule } from '@ag-grid-community/csv-export';
20
- import { ClipboardModule } from '@ag-grid-enterprise/clipboard';
21
- import { ColumnsToolPanelModule } from '@ag-grid-enterprise/column-tool-panel';
22
- import { ExcelExportModule } from '@ag-grid-enterprise/excel-export';
23
- import { FiltersToolPanelModule } from '@ag-grid-enterprise/filter-tool-panel';
24
- import { MenuModule } from '@ag-grid-enterprise/menu';
25
- import { RangeSelectionModule } from '@ag-grid-enterprise/range-selection';
26
- import { RowGroupingModule } from '@ag-grid-enterprise/row-grouping';
27
- import { ServerSideRowModelModule } from '@ag-grid-enterprise/server-side-row-model';
28
- import { SideBarModule } from '@ag-grid-enterprise/side-bar';
29
- import { StatusBarModule } from '@ag-grid-enterprise/status-bar';
30
17
  import {
31
18
  type CellRange,
32
19
  type CellSelectionChangedEvent,
@@ -40,37 +27,32 @@ import {
40
27
  type GetContextMenuItemsParams,
41
28
  type MenuItemDef,
42
29
  type IAggFuncParams,
43
- ModuleRegistry,
44
- } from '@ag-grid-community/core';
45
- import { LicenseManager } from '@ag-grid-enterprise/core';
46
-
47
- export const communityModules = [ClientSideRowModelModule, CsvExportModule];
48
-
49
- export const enterpriseModules = [
50
- ClipboardModule,
51
- ColumnsToolPanelModule,
52
- ExcelExportModule,
53
- FiltersToolPanelModule,
54
- MenuModule,
55
- RangeSelectionModule,
56
- RowGroupingModule,
57
- ServerSideRowModelModule,
58
- SideBarModule,
59
- StatusBarModule,
60
- ];
30
+ type DefaultMenuItem,
31
+ type Module,
32
+ AllCommunityModule,
33
+ } from 'ag-grid-community';
34
+ import { LicenseManager, AllEnterpriseModule } from 'ag-grid-enterprise';
35
+ import {
36
+ AgGridReact,
37
+ type AgGridReactProps,
38
+ type CustomHeaderProps,
39
+ } from 'ag-grid-react';
61
40
 
62
- export const allModules = communityModules.concat(enterpriseModules);
41
+ export const communityModules: Module[] = [AllCommunityModule];
42
+ export const enterpriseModules: Module[] = [AllEnterpriseModule];
43
+ export const allModules: Module[] = communityModules.concat(enterpriseModules);
63
44
 
64
45
  declare const AG_GRID_LICENSE: string;
65
46
 
66
47
  export function DataGrid<TData = unknown>(
67
48
  props: AgGridReactProps<TData>,
68
- ): JSX.Element {
49
+ ): React.ReactNode {
69
50
  if (AG_GRID_LICENSE) {
70
51
  LicenseManager.setLicenseKey(AG_GRID_LICENSE);
71
52
  }
72
53
  return (
73
54
  <AgGridReact
55
+ theme="legacy"
74
56
  {...props}
75
57
  // NOTE: for test, we don't want to handle the error messages outputed by ag-grid so
76
58
  // we disable enterprise features for now
@@ -80,10 +62,6 @@ export function DataGrid<TData = unknown>(
80
62
  );
81
63
  }
82
64
 
83
- export const configureDataGridComponent = (): void => {
84
- ModuleRegistry.registerModules([ClientSideRowModelModule]);
85
- };
86
-
87
65
  export type {
88
66
  CellRange as DataGridCellRange,
89
67
  CellMouseOverEvent as DataGridCellMouseOverEvent,
@@ -97,4 +75,6 @@ export type {
97
75
  GetContextMenuItemsParams as DataGridGetContextMenuItemsParams,
98
76
  MenuItemDef as DataGridMenuItemDef,
99
77
  IAggFuncParams as DataGridIAggFuncParams,
78
+ CustomHeaderProps as DataGridCustomHeaderProps,
79
+ DefaultMenuItem as DataGridDefaultMenuItem,
100
80
  };