@genesislcap/grid-pro 14.209.0 → 14.209.1-alpha-963e767.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/README.md +0 -3
- package/dist/custom-elements.json +23 -28
- package/dist/dts/cell-renderers/boolean.renderer.d.ts.map +1 -1
- package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-base.d.ts +2 -2
- package/dist/dts/datasource/server-side.resource-base.d.ts.map +1 -1
- package/dist/dts/external/index.d.ts +1 -0
- package/dist/dts/external/index.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +0 -4
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +15 -23
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/grid-pro.template.d.ts.map +1 -1
- package/dist/dts/grid-pro.types.d.ts +7 -2
- package/dist/dts/grid-pro.types.d.ts.map +1 -1
- package/dist/esm/cell-renderers/boolean.renderer.js +6 -7
- package/dist/esm/datasource/base.datasource.js +1 -0
- package/dist/esm/datasource/server-side.datasource.js +19 -17
- package/dist/esm/external/index.js +5 -0
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +16 -13
- package/dist/esm/grid-pro.js +34 -27
- package/dist/esm/grid-pro.template.js +1 -2
- package/dist/esm/grid-pro.types.js +1 -1
- package/dist/grid-pro.api.json +47 -73
- package/dist/grid-pro.d.ts +21 -27
- package/docs/api/grid-pro.agpubliceventtype.md +13 -0
- package/docs/api/grid-pro.grid_ready_event.md +1 -1
- package/docs/api/grid-pro.gridpro.addeventlistener.md +2 -2
- package/docs/api/grid-pro.gridpro.applytemplatedefinitions.md +2 -2
- package/docs/api/grid-pro.gridpro.gridapi.md +1 -1
- package/docs/api/grid-pro.gridpro.md +2 -4
- package/docs/api/grid-pro.gridpro.mergeallcolumndefsandstates.md +2 -2
- package/docs/api/grid-pro.gridpro.themechanged.md +2 -2
- package/docs/api/grid-pro.md +1 -0
- package/docs/api-report.md +11 -13
- package/package.json +16 -16
- package/docs/api/grid-pro.gridpro.aggrid.md +0 -11
- package/docs/api/grid-pro.gridpro.columnapi.md +0 -11
package/dist/grid-pro.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
3
3
|
import { Binding } from '@microsoft/fast-element';
|
|
4
4
|
import { CaptureType } from '@microsoft/fast-element';
|
|
5
5
|
import { ColDef } from '@ag-grid-community/core';
|
|
6
|
-
import type { ColumnApi } from '@ag-grid-community/core';
|
|
7
6
|
import { ColumnState } from '@ag-grid-community/core';
|
|
7
|
+
import { ComponentUtil } from '@ag-grid-community/core';
|
|
8
8
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
9
9
|
import type { Container } from '@microsoft/fast-foundation';
|
|
10
10
|
import { Controller } from '@microsoft/fast-element';
|
|
@@ -21,7 +21,6 @@ import { FieldMetadata } from '@genesislcap/foundation-comms';
|
|
|
21
21
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
22
22
|
import { FoundationElementRegistry } from '@microsoft/fast-foundation';
|
|
23
23
|
import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
|
|
24
|
-
import { Grid } from '@ag-grid-community/core';
|
|
25
24
|
import type { GridApi } from '@ag-grid-community/core';
|
|
26
25
|
import { GridOptions } from '@ag-grid-community/core';
|
|
27
26
|
import type { GridParams } from '@ag-grid-community/core';
|
|
@@ -131,7 +130,7 @@ export declare class ActionsMenuRenderer extends FoundationElement implements IC
|
|
|
131
130
|
* @privateRemarks We're excluding rowData as it's a special case that we handle separately
|
|
132
131
|
* @internal
|
|
133
132
|
*/
|
|
134
|
-
export declare const AG_PROPERTIES: (
|
|
133
|
+
export declare const AG_PROPERTIES: (keyof GridOptions<any>)[];
|
|
135
134
|
|
|
136
135
|
/**
|
|
137
136
|
* The AG Action Renderer Styles.
|
|
@@ -160,6 +159,7 @@ export declare const agEditableRendererStyles: ElementStyles;
|
|
|
160
159
|
/**
|
|
161
160
|
* All External AG Grid Stock in one CSS.
|
|
162
161
|
* @remarks This is a collection of multiple AG themes, only needed if the target element needs more than one stock theme.
|
|
162
|
+
* @privateRemarks See https://github.com/ag-grid/ag-grid/issues/7324 about the viewport scrollbar.
|
|
163
163
|
* @public
|
|
164
164
|
*/
|
|
165
165
|
export declare const agExternalStockStyles: ElementStyles;
|
|
@@ -271,6 +271,12 @@ export declare const agMultiselectEditorStyles: ElementStyles;
|
|
|
271
271
|
*/
|
|
272
272
|
export declare const agNumberEditorStyles: ElementStyles;
|
|
273
273
|
|
|
274
|
+
/**
|
|
275
|
+
* All the public AG Grid events
|
|
276
|
+
* @public
|
|
277
|
+
*/
|
|
278
|
+
export declare type AgPublicEventType = (typeof ComponentUtil.PUBLIC_EVENTS)[number];
|
|
279
|
+
|
|
274
280
|
/**
|
|
275
281
|
* The AG Select Renderer Styles.
|
|
276
282
|
* @public
|
|
@@ -1508,7 +1514,7 @@ export declare const getTextRendererTemplate: (designSystem?: string) => ViewTem
|
|
|
1508
1514
|
* @privateRemarks
|
|
1509
1515
|
* This will be removed when we do the AG Upgrade.
|
|
1510
1516
|
*/
|
|
1511
|
-
export declare const GRID_READY_EVENT = "
|
|
1517
|
+
export declare const GRID_READY_EVENT = "gridReady";
|
|
1512
1518
|
|
|
1513
1519
|
/**
|
|
1514
1520
|
* Grid Pro Components type, used to define the custom components that will be registered in the grid
|
|
@@ -1538,10 +1544,10 @@ export declare const GridOptionsConfig: InterfaceSymbol<GridOptionsConfig>;
|
|
|
1538
1544
|
* @tagname %%prefix%%-grid-pro
|
|
1539
1545
|
*/
|
|
1540
1546
|
export declare class GridPro extends GridPro_base {
|
|
1541
|
-
columnApi: ColumnApi;
|
|
1542
|
-
gridApi: GridApi;
|
|
1543
1547
|
gridErrorItems: GridProErrorItem<GridProErrorEvent['detail']>[];
|
|
1544
1548
|
statePersistence: StatePersistence;
|
|
1549
|
+
private _gridApi;
|
|
1550
|
+
get gridApi(): GridApi;
|
|
1545
1551
|
/**
|
|
1546
1552
|
* Timeout function used to debounce resize calls
|
|
1547
1553
|
* @internal
|
|
@@ -1614,9 +1620,8 @@ export declare class GridPro extends GridPro_base {
|
|
|
1614
1620
|
headerHeight: number;
|
|
1615
1621
|
rowHeight: number;
|
|
1616
1622
|
theme: string;
|
|
1617
|
-
themeChanged(
|
|
1623
|
+
themeChanged(_oldValue: string, newValue: string): void;
|
|
1618
1624
|
classNames: string;
|
|
1619
|
-
agGrid: Grid;
|
|
1620
1625
|
gridSlot: HTMLSlotElement;
|
|
1621
1626
|
gridComponents: {
|
|
1622
1627
|
[componentName: string]: any;
|
|
@@ -1654,13 +1659,11 @@ export declare class GridPro extends GridPro_base {
|
|
|
1654
1659
|
constructor();
|
|
1655
1660
|
/**
|
|
1656
1661
|
* Adds an event listener to the grid element.
|
|
1657
|
-
* @param eventType - The event type to listen for.
|
|
1662
|
+
* @param eventType - The event type to listen for.
|
|
1658
1663
|
* @param listener - The event listener to call when the event is fired.
|
|
1659
1664
|
* @param options - An options object that specifies characteristics about the event listener.
|
|
1660
|
-
* @privateRemarks
|
|
1661
|
-
* This will change once we do the AG Upgrade and `eventType` will be correctly typed.
|
|
1662
1665
|
*/
|
|
1663
|
-
addEventListener(eventType:
|
|
1666
|
+
addEventListener(eventType: AgPublicEventType, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
1664
1667
|
private addGridEventListener;
|
|
1665
1668
|
private handleError;
|
|
1666
1669
|
hideDatasourceError(): void;
|
|
@@ -1683,7 +1686,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
1683
1686
|
/**
|
|
1684
1687
|
* Gets the saved grid ColumnState[] from storage
|
|
1685
1688
|
* @remarks This is used to restore the grid state when the grid is rehydrated
|
|
1686
|
-
* @privateRemarks Not using `
|
|
1689
|
+
* @privateRemarks Not using `gridApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
|
|
1687
1690
|
* @public
|
|
1688
1691
|
*/
|
|
1689
1692
|
getSavedColumnState(): Promise<ColumnState[]>;
|
|
@@ -1714,7 +1717,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
1714
1717
|
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
1715
1718
|
* @returns The merged column definitions.
|
|
1716
1719
|
*/
|
|
1717
|
-
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any>[]>;
|
|
1720
|
+
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any, any>[]>;
|
|
1718
1721
|
/**
|
|
1719
1722
|
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
1720
1723
|
* @public
|
|
@@ -1724,7 +1727,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
1724
1727
|
* on the `grid-pro-genesis-datasource` element. Defaults to false but `grid-pro-genesis-datasource` will set this to true.
|
|
1725
1728
|
* @returns The merged column definitions.
|
|
1726
1729
|
*/
|
|
1727
|
-
mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any>[]>;
|
|
1730
|
+
mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any, any>[]>;
|
|
1728
1731
|
get observedAttributes(): string[];
|
|
1729
1732
|
agAttributeChangedCallback(attName: any, oldValue: any, newValue: any): void;
|
|
1730
1733
|
globalEventListener(eventType: any, event: any): void;
|
|
@@ -1754,9 +1757,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1754
1757
|
readonly accessKeyLabel: string;
|
|
1755
1758
|
autocapitalize: string;
|
|
1756
1759
|
dir: string;
|
|
1757
|
-
/**
|
|
1758
|
-
* If true, will enable row flashing for all rows for `add` async transactions
|
|
1759
|
-
*/
|
|
1760
1760
|
draggable: boolean;
|
|
1761
1761
|
hidden: boolean;
|
|
1762
1762
|
inert: boolean;
|
|
@@ -1766,7 +1766,9 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1766
1766
|
readonly offsetLeft: number;
|
|
1767
1767
|
readonly offsetParent: Element;
|
|
1768
1768
|
readonly offsetTop: number;
|
|
1769
|
-
readonly offsetWidth: number;
|
|
1769
|
+
readonly offsetWidth: number; /**
|
|
1770
|
+
* @deprecated - use `enableRowFlashing` instead.
|
|
1771
|
+
*/
|
|
1770
1772
|
outerText: string;
|
|
1771
1773
|
spellcheck: boolean;
|
|
1772
1774
|
title: string;
|
|
@@ -1920,10 +1922,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1920
1922
|
ariaReadOnly: string;
|
|
1921
1923
|
ariaRequired: string;
|
|
1922
1924
|
ariaRoleDescription: string;
|
|
1923
|
-
/**
|
|
1924
|
-
* If {@link @genesislcap/grid-pro#GridPro.gridAutosizingEnabled} is true, will remove the widths from the column states.
|
|
1925
|
-
* @internal
|
|
1926
|
-
*/
|
|
1927
1925
|
ariaRowCount: string;
|
|
1928
1926
|
ariaRowIndex: string;
|
|
1929
1927
|
ariaRowIndexText: string;
|
|
@@ -2674,10 +2672,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
2674
2672
|
readonly classList: DOMTokenList;
|
|
2675
2673
|
className: string;
|
|
2676
2674
|
readonly clientHeight: number;
|
|
2677
|
-
/**
|
|
2678
|
-
* Destroys the datasource, resetting it to its initial state.
|
|
2679
|
-
* @public
|
|
2680
|
-
*/
|
|
2681
2675
|
readonly clientLeft: number;
|
|
2682
2676
|
readonly clientTop: number;
|
|
2683
2677
|
readonly clientWidth: number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [AgPublicEventType](./grid-pro.agpubliceventtype.md)
|
|
4
|
+
|
|
5
|
+
## AgPublicEventType type
|
|
6
|
+
|
|
7
|
+
All the public AG Grid events
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type AgPublicEventType = (typeof ComponentUtil.PUBLIC_EVENTS)[number];
|
|
13
|
+
```
|
|
@@ -9,14 +9,14 @@ Adds an event listener to the grid element.
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
addEventListener(eventType:
|
|
12
|
+
addEventListener(eventType: AgPublicEventType, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| eventType |
|
|
19
|
+
| eventType | [AgPublicEventType](./grid-pro.agpubliceventtype.md) | The event type to listen for. |
|
|
20
20
|
| listener | any | The event listener to call when the event is fired. |
|
|
21
21
|
| options | boolean \| AddEventListenerOptions | _(Optional)_ An options object that specifies characteristics about the event listener. |
|
|
22
22
|
|
|
@@ -14,7 +14,7 @@ Will merge templated column definitions with `columnDefs` plus localStorage's co
|
|
|
14
14
|
**Signature:**
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any>[]>;
|
|
17
|
+
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any, any>[]>;
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## Parameters
|
|
@@ -26,7 +26,7 @@ applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boole
|
|
|
26
26
|
|
|
27
27
|
**Returns:**
|
|
28
28
|
|
|
29
|
-
Promise<ColDef<any>\[\]>
|
|
29
|
+
Promise<ColDef<any, any>\[\]>
|
|
30
30
|
|
|
31
31
|
The merged column definitions.
|
|
32
32
|
|
|
@@ -29,7 +29,6 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
|
29
29
|
| --- | --- | --- | --- |
|
|
30
30
|
| [addIndex](./grid-pro.gridpro.addindex.md) | | number | The index to add new rows to when using <code>applyTransaction</code> or <code>applyTransactionAsync</code> |
|
|
31
31
|
| [agAttributes](./grid-pro.gridpro.agattributes.md) | <code>protected</code> | Record<string, string> | |
|
|
32
|
-
| [agGrid](./grid-pro.gridpro.aggrid.md) | | Grid | |
|
|
33
32
|
| [agGridOptions](./grid-pro.gridpro.aggridoptions.md) | <code>protected</code> | GridOptions | |
|
|
34
33
|
| [agPropertiesMap](./grid-pro.gridpro.agpropertiesmap.md) | <code>protected</code> | Record<string, string> | |
|
|
35
34
|
| [asyncAdd](./grid-pro.gridpro.asyncadd.md) | | boolean | Whether to use the <code>applyTransactionAsync</code> function for \*add\* transactions |
|
|
@@ -37,13 +36,12 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
|
37
36
|
| [asyncUpdate](./grid-pro.gridpro.asyncupdate.md) | | boolean | Whether to use the <code>applyTransactionAsync</code> function for \*update\* transactions |
|
|
38
37
|
| [autoCellRendererByType](./grid-pro.gridpro.autocellrendererbytype.md) | | boolean | |
|
|
39
38
|
| [classNames](./grid-pro.gridpro.classnames.md) | | string | |
|
|
40
|
-
| [columnApi](./grid-pro.gridpro.columnapi.md) | | ColumnApi | |
|
|
41
39
|
| [columnComponentName](./grid-pro.gridpro.columncomponentname.md) | | string | |
|
|
42
40
|
| [enableCellFlashing](./grid-pro.gridpro.enablecellflashing.md) | | boolean | If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef |
|
|
43
41
|
| [enabledRowFlashing](./grid-pro.gridpro.enabledrowflashing.md) | | boolean | |
|
|
44
42
|
| [enableRowFlashing](./grid-pro.gridpro.enablerowflashing.md) | | boolean | If true, will enable row flashing for all rows for <code>add</code> async transactions |
|
|
45
43
|
| [eventsAndCallbacks](./grid-pro.gridpro.eventsandcallbacks.md) | | [GridProEventsAndCallbacks](./grid-pro.gridproeventsandcallbacks.md) | |
|
|
46
|
-
| [gridApi](./grid-pro.gridpro.gridapi.md) |
|
|
44
|
+
| [gridApi](./grid-pro.gridpro.gridapi.md) | <code>readonly</code> | GridApi | |
|
|
47
45
|
| [gridAutosizingEnabled](./grid-pro.gridpro.gridautosizingenabled.md) | | boolean | Boolean attribute to control whether the grid autosizes the columns upon interaction. This will disable the column widths from being manually set, and doesn't save the widths in local storage if you are using <code>persist-column-state-key</code>. |
|
|
48
46
|
| [gridComponents](./grid-pro.gridpro.gridcomponents.md) | | { \[componentName: string\]: any; } | |
|
|
49
47
|
| [gridErrorItems](./grid-pro.gridpro.griderroritems.md) | | [GridProErrorItem](./grid-pro.gridproerroritem.md)<!-- --><[GridProErrorEvent](./grid-pro.gridproerrorevent.md)<!-- -->\['detail'\]>\[\] | |
|
|
@@ -84,5 +82,5 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
|
84
82
|
| [rowDataChanged(\_, rowData)](./grid-pro.gridpro.rowdatachanged.md) | | |
|
|
85
83
|
| [setFilterModel(value)](./grid-pro.gridpro.setfiltermodel.md) | | |
|
|
86
84
|
| [statePersistanceEnabled()](./grid-pro.gridpro.statepersistanceenabled.md) | | |
|
|
87
|
-
| [themeChanged(
|
|
85
|
+
| [themeChanged(\_oldValue, newValue)](./grid-pro.gridpro.themechanged.md) | | |
|
|
88
86
|
|
|
@@ -9,7 +9,7 @@ Will merge templated column definitions with `columnDefs` plus localStorage's co
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any>[]>;
|
|
12
|
+
mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any, any>[]>;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
@@ -21,7 +21,7 @@ mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: bo
|
|
|
21
21
|
|
|
22
22
|
**Returns:**
|
|
23
23
|
|
|
24
|
-
Promise<ColDef<any>\[\]>
|
|
24
|
+
Promise<ColDef<any, any>\[\]>
|
|
25
25
|
|
|
26
26
|
The merged column definitions.
|
|
27
27
|
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
**Signature:**
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
themeChanged(
|
|
10
|
+
themeChanged(_oldValue: string, newValue: string): void;
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
15
15
|
| Parameter | Type | Description |
|
|
16
16
|
| --- | --- | --- |
|
|
17
|
-
|
|
|
17
|
+
| \_oldValue | string | |
|
|
18
18
|
| newValue | string | |
|
|
19
19
|
|
|
20
20
|
**Returns:**
|
package/docs/api/grid-pro.md
CHANGED
|
@@ -139,6 +139,7 @@
|
|
|
139
139
|
| Type Alias | Description |
|
|
140
140
|
| --- | --- |
|
|
141
141
|
| [ActionRendererParams](./grid-pro.actionrendererparams.md) | Parameters for the [GridPro](./grid-pro.gridpro.md) action renderer. |
|
|
142
|
+
| [AgPublicEventType](./grid-pro.agpubliceventtype.md) | All the public AG Grid events |
|
|
142
143
|
| [AgThemeFontFaceMap](./grid-pro.agthemefontfacemap.md) | Type for mapping of a [AgGridTheme](./grid-pro.aggridtheme.md) to a font face. |
|
|
143
144
|
| [BooleanRendererParams](./grid-pro.booleanrendererparams.md) | Parameters for the [GridPro](./grid-pro.gridpro.md) boolean renderer. |
|
|
144
145
|
| [DatasourceType](./grid-pro.datasourcetype.md) | Available datasource types |
|
package/docs/api-report.md
CHANGED
|
@@ -9,8 +9,8 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
9
9
|
import { Binding } from '@microsoft/fast-element';
|
|
10
10
|
import { CaptureType } from '@microsoft/fast-element';
|
|
11
11
|
import { ColDef } from '@ag-grid-community/core';
|
|
12
|
-
import type { ColumnApi } from '@ag-grid-community/core';
|
|
13
12
|
import { ColumnState } from '@ag-grid-community/core';
|
|
13
|
+
import { ComponentUtil } from '@ag-grid-community/core';
|
|
14
14
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
15
15
|
import type { Container } from '@microsoft/fast-foundation';
|
|
16
16
|
import { Controller } from '@microsoft/fast-element';
|
|
@@ -27,7 +27,6 @@ import { FieldMetadata } from '@genesislcap/foundation-comms';
|
|
|
27
27
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
28
28
|
import { FoundationElementRegistry } from '@microsoft/fast-foundation';
|
|
29
29
|
import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
|
|
30
|
-
import { Grid } from '@ag-grid-community/core';
|
|
31
30
|
import type { GridApi } from '@ag-grid-community/core';
|
|
32
31
|
import { GridOptions } from '@ag-grid-community/core';
|
|
33
32
|
import type { GridParams } from '@ag-grid-community/core';
|
|
@@ -105,7 +104,7 @@ export class ActionsMenuRenderer extends FoundationElement implements ICellRende
|
|
|
105
104
|
// Warning: (ae-internal-missing-underscore) The name "AG_PROPERTIES" should be prefixed with an underscore because the declaration is marked as @internal
|
|
106
105
|
//
|
|
107
106
|
// @internal (undocumented)
|
|
108
|
-
export const AG_PROPERTIES: (
|
|
107
|
+
export const AG_PROPERTIES: (keyof GridOptions<any>)[];
|
|
109
108
|
|
|
110
109
|
// @public
|
|
111
110
|
export const agActionRendererStyles: ElementStyles;
|
|
@@ -249,6 +248,9 @@ export const agMultiselectEditorStyles: ElementStyles;
|
|
|
249
248
|
// @public
|
|
250
249
|
export const agNumberEditorStyles: ElementStyles;
|
|
251
250
|
|
|
251
|
+
// @public
|
|
252
|
+
export type AgPublicEventType = (typeof ComponentUtil.PUBLIC_EVENTS)[number];
|
|
253
|
+
|
|
252
254
|
// @public
|
|
253
255
|
export const agSelectEditorStyles: ElementStyles;
|
|
254
256
|
|
|
@@ -782,7 +784,7 @@ export const getTextFieldRendererTemplate: (designSystem?: string) => ViewTempla
|
|
|
782
784
|
export const getTextRendererTemplate: (designSystem?: string) => ViewTemplate<AgTextFieldRenderer, any>;
|
|
783
785
|
|
|
784
786
|
// @public @deprecated
|
|
785
|
-
export const GRID_READY_EVENT = "
|
|
787
|
+
export const GRID_READY_EVENT = "gridReady";
|
|
786
788
|
|
|
787
789
|
// @public
|
|
788
790
|
export type GridComponents = {
|
|
@@ -803,20 +805,18 @@ export const GridOptionsConfig: InterfaceSymbol<GridOptionsConfig>;
|
|
|
803
805
|
// @public
|
|
804
806
|
export class GridPro extends GridPro_base {
|
|
805
807
|
constructor();
|
|
806
|
-
addEventListener(eventType:
|
|
808
|
+
addEventListener(eventType: AgPublicEventType, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
807
809
|
addIndex: number;
|
|
808
810
|
// (undocumented)
|
|
809
811
|
agAttributeChangedCallback(attName: any, oldValue: any, newValue: any): void;
|
|
810
812
|
// (undocumented)
|
|
811
813
|
protected agAttributes: Record<string, string>;
|
|
812
814
|
// (undocumented)
|
|
813
|
-
agGrid: Grid;
|
|
814
|
-
// (undocumented)
|
|
815
815
|
protected agGridOptions: GridOptions;
|
|
816
816
|
// (undocumented)
|
|
817
817
|
protected agPropertiesMap: Record<string, string>;
|
|
818
818
|
// @deprecated
|
|
819
|
-
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any>[]>;
|
|
819
|
+
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any, any>[]>;
|
|
820
820
|
asyncAdd: boolean;
|
|
821
821
|
asyncRemove: boolean;
|
|
822
822
|
asyncUpdate: boolean;
|
|
@@ -825,8 +825,6 @@ export class GridPro extends GridPro_base {
|
|
|
825
825
|
// (undocumented)
|
|
826
826
|
classNames: string;
|
|
827
827
|
// (undocumented)
|
|
828
|
-
columnApi: ColumnApi;
|
|
829
|
-
// (undocumented)
|
|
830
828
|
columnComponentName: string;
|
|
831
829
|
// (undocumented)
|
|
832
830
|
combineAllGridComponents(gridOptionsComponents: GridComponents): GridComponents;
|
|
@@ -848,7 +846,7 @@ export class GridPro extends GridPro_base {
|
|
|
848
846
|
// (undocumented)
|
|
849
847
|
globalEventListener(eventType: any, event: any): void;
|
|
850
848
|
// (undocumented)
|
|
851
|
-
gridApi: GridApi;
|
|
849
|
+
get gridApi(): GridApi;
|
|
852
850
|
gridAutosizingEnabled: boolean;
|
|
853
851
|
// (undocumented)
|
|
854
852
|
gridComponents: {
|
|
@@ -875,7 +873,7 @@ export class GridPro extends GridPro_base {
|
|
|
875
873
|
hideDatasourceError(): void;
|
|
876
874
|
// (undocumented)
|
|
877
875
|
protected initialised: boolean;
|
|
878
|
-
mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any>[]>;
|
|
876
|
+
mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any, any>[]>;
|
|
879
877
|
// (undocumented)
|
|
880
878
|
get observedAttributes(): string[];
|
|
881
879
|
// (undocumented)
|
|
@@ -900,7 +898,7 @@ export class GridPro extends GridPro_base {
|
|
|
900
898
|
// (undocumented)
|
|
901
899
|
theme: string;
|
|
902
900
|
// (undocumented)
|
|
903
|
-
themeChanged(
|
|
901
|
+
themeChanged(_oldValue: string, newValue: string): void;
|
|
904
902
|
}
|
|
905
903
|
|
|
906
904
|
// @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/grid-pro",
|
|
3
3
|
"description": "Genesis Foundation AG Grid",
|
|
4
|
-
"version": "14.209.0",
|
|
4
|
+
"version": "14.209.1-alpha-963e767.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@genesislcap/foundation-testing": "14.209.0",
|
|
42
|
-
"@genesislcap/genx": "14.209.0",
|
|
43
|
-
"@genesislcap/rollup-builder": "14.209.0",
|
|
44
|
-
"@genesislcap/ts-builder": "14.209.0",
|
|
45
|
-
"@genesislcap/uvu-playwright-builder": "14.209.0",
|
|
46
|
-
"@genesislcap/vite-builder": "14.209.0",
|
|
47
|
-
"@genesislcap/webpack-builder": "14.209.0",
|
|
41
|
+
"@genesislcap/foundation-testing": "14.209.1-alpha-963e767.0",
|
|
42
|
+
"@genesislcap/genx": "14.209.1-alpha-963e767.0",
|
|
43
|
+
"@genesislcap/rollup-builder": "14.209.1-alpha-963e767.0",
|
|
44
|
+
"@genesislcap/ts-builder": "14.209.1-alpha-963e767.0",
|
|
45
|
+
"@genesislcap/uvu-playwright-builder": "14.209.1-alpha-963e767.0",
|
|
46
|
+
"@genesislcap/vite-builder": "14.209.1-alpha-963e767.0",
|
|
47
|
+
"@genesislcap/webpack-builder": "14.209.1-alpha-963e767.0",
|
|
48
48
|
"rimraf": "^5.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@genesislcap/foundation-comms": "14.209.0",
|
|
52
|
-
"@genesislcap/foundation-logger": "14.209.0",
|
|
53
|
-
"@genesislcap/foundation-ui": "14.209.0",
|
|
54
|
-
"@genesislcap/foundation-utils": "14.209.0",
|
|
51
|
+
"@genesislcap/foundation-comms": "14.209.1-alpha-963e767.0",
|
|
52
|
+
"@genesislcap/foundation-logger": "14.209.1-alpha-963e767.0",
|
|
53
|
+
"@genesislcap/foundation-ui": "14.209.1-alpha-963e767.0",
|
|
54
|
+
"@genesislcap/foundation-utils": "14.209.1-alpha-963e767.0",
|
|
55
55
|
"@microsoft/fast-colors": "^5.3.1",
|
|
56
56
|
"@microsoft/fast-components": "^2.30.6",
|
|
57
57
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"tslib": "^2.3.1"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@ag-grid-community/client-side-row-model": "
|
|
68
|
-
"@ag-grid-community/core": "
|
|
69
|
-
"@ag-grid-community/csv-export": "
|
|
67
|
+
"@ag-grid-community/client-side-row-model": "32.2.0",
|
|
68
|
+
"@ag-grid-community/core": "32.2.0",
|
|
69
|
+
"@ag-grid-community/csv-export": "32.2.0"
|
|
70
70
|
},
|
|
71
71
|
"repository": {
|
|
72
72
|
"type": "git",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
79
|
"customElements": "dist/custom-elements.json",
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "dbe3ea7f9ec339bb40f17faf5b4f557c33f174e5"
|
|
81
81
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridPro](./grid-pro.gridpro.md) > [agGrid](./grid-pro.gridpro.aggrid.md)
|
|
4
|
-
|
|
5
|
-
## GridPro.agGrid property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
agGrid: Grid;
|
|
11
|
-
```
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridPro](./grid-pro.gridpro.md) > [columnApi](./grid-pro.gridpro.columnapi.md)
|
|
4
|
-
|
|
5
|
-
## GridPro.columnApi property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
columnApi: ColumnApi;
|
|
11
|
-
```
|