@finos/legend-lego 1.1.45 → 1.1.47

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 } 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, };
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":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,0BAA0B,CAAC;AAalC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EAC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CAAC,KAAK,CAAC,GAAG,cAAc,CAAC,KAAK,CAAC,GACrD,GAAG,CAAC,OAAO,CAiBb;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,SAAS,IAAI,iBAAiB,EAC9B,OAAO,IAAI,WAAW,EACtB,QAAQ,IAAI,gBAAgB,GAC7B,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,MAA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B,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
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-lego v1.1.45
1
+ /** @license @finos/legend-lego v1.1.47
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-lego",
3
- "version": "1.1.45",
3
+ "version": "1.1.47",
4
4
  "description": "Legend shared advanced application components and building blocks",
5
5
  "keywords": [
6
6
  "legend",
@@ -63,9 +63,9 @@
63
63
  "@ag-grid-enterprise/server-side-row-model": "30.2.0",
64
64
  "@ag-grid-enterprise/side-bar": "30.2.0",
65
65
  "@ag-grid-enterprise/status-bar": "30.2.0",
66
- "@finos/legend-application": "15.0.50",
67
- "@finos/legend-art": "7.1.4",
68
- "@finos/legend-graph": "31.3.9",
66
+ "@finos/legend-application": "15.0.51",
67
+ "@finos/legend-art": "7.1.5",
68
+ "@finos/legend-graph": "31.3.10",
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,15 @@ 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,
41
44
  ModuleRegistry,
42
45
  } from '@ag-grid-community/core';
43
46
  import { LicenseManager } from '@ag-grid-enterprise/core';
@@ -60,11 +63,13 @@ export const enterpriseModules = [
60
63
  export const allModules = communityModules.concat(enterpriseModules);
61
64
 
62
65
  declare const AG_GRID_LICENSE: string;
66
+ export let isEnterpriseModeEnabled = false;
63
67
 
64
68
  export function DataGrid<TData = unknown>(
65
69
  props: AgGridReactProps<TData> | AgReactUiProps<TData>,
66
70
  ): JSX.Element {
67
71
  if (AG_GRID_LICENSE) {
72
+ isEnterpriseModeEnabled = true;
68
73
  LicenseManager.setLicenseKey(AG_GRID_LICENSE);
69
74
  }
70
75
  return (
@@ -86,10 +91,13 @@ export const configureDataGridComponent = (): void => {
86
91
  };
87
92
 
88
93
  export type {
94
+ CellRange as DataGridCellRange,
89
95
  CellMouseOverEvent as DataGridCellMouseOverEvent,
90
96
  ICellRendererParams as DataGridCellRendererParams,
91
97
  GridOptions as DataGridOptions,
92
98
  ColDef as DataGridColumnDefinition,
93
99
  ColumnState as DataGridColumnState,
94
100
  ColumnApi as DataGridColumnApi,
101
+ GridApi as DataGridApi,
102
+ IRowNode as DataGridIRowNode,
95
103
  };