@genesislcap/grid-pro 14.93.0 → 14.94.0-pa-899.1
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/dist/custom-elements.json +18 -0
- package/dist/dts/grid-pro.d.ts +2 -13
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/grid-pro.definitions.d.ts +2 -2
- package/dist/dts/grid-pro.definitions.d.ts.map +1 -1
- package/dist/dts/grid-pro.definitions.next.d.ts +2 -2
- package/dist/dts/grid-pro.definitions.next.d.ts.map +1 -1
- package/dist/dts/grid-pro.types.d.ts +5 -0
- package/dist/dts/grid-pro.types.d.ts.map +1 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource-next.js +1 -1
- package/dist/esm/grid-pro.js +2 -2
- package/dist/esm/grid-pro.types.js +5 -0
- package/dist/grid-pro.api.json +27 -0
- package/dist/grid-pro.d.ts +10 -15
- package/docs/api/grid-pro.grid_ready_event.md +13 -0
- package/docs/api/grid-pro.md +1 -0
- package/docs/api-report.md +5 -2
- package/package.json +8 -8
|
@@ -1400,6 +1400,16 @@
|
|
|
1400
1400
|
}
|
|
1401
1401
|
},
|
|
1402
1402
|
"privacy": "public"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"kind": "variable",
|
|
1406
|
+
"name": "GRID_READY_EVENT",
|
|
1407
|
+
"type": {
|
|
1408
|
+
"text": "string"
|
|
1409
|
+
},
|
|
1410
|
+
"default": "'onGridReady'",
|
|
1411
|
+
"description": "Event fired when grid is ready",
|
|
1412
|
+
"privacy": "public"
|
|
1403
1413
|
}
|
|
1404
1414
|
],
|
|
1405
1415
|
"exports": [
|
|
@@ -1426,6 +1436,14 @@
|
|
|
1426
1436
|
"name": "agThemeTokenMapCSS",
|
|
1427
1437
|
"module": "src/grid-pro.types.ts"
|
|
1428
1438
|
}
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
"kind": "js",
|
|
1442
|
+
"name": "GRID_READY_EVENT",
|
|
1443
|
+
"declaration": {
|
|
1444
|
+
"name": "GRID_READY_EVENT",
|
|
1445
|
+
"module": "src/grid-pro.types.ts"
|
|
1446
|
+
}
|
|
1429
1447
|
}
|
|
1430
1448
|
]
|
|
1431
1449
|
},
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -98,12 +98,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
98
98
|
hasPointerCapture(pointerId: number): boolean;
|
|
99
99
|
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
100
100
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
101
|
-
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
102
|
-
* Gets the saved grid ColumnState[] from local storage
|
|
103
|
-
* @remarks This is used to restore the grid state when the grid is rehydrated
|
|
104
|
-
* @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
|
|
105
|
-
* @public
|
|
106
|
-
*/
|
|
101
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
107
102
|
matches(selectors: string): boolean;
|
|
108
103
|
releasePointerCapture(pointerId: number): void;
|
|
109
104
|
removeAttribute(qualifiedName: string): void;
|
|
@@ -220,13 +215,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
220
215
|
innerHTML: string;
|
|
221
216
|
readonly nextElementSibling: Element;
|
|
222
217
|
readonly previousElementSibling: Element;
|
|
223
|
-
readonly childElementCount: number;
|
|
224
|
-
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
225
|
-
* @deprecated use `applyTemplateDefinitions` instead.
|
|
226
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
227
|
-
* @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.
|
|
228
|
-
* @returns The merged column definitions.
|
|
229
|
-
*/
|
|
218
|
+
readonly childElementCount: number;
|
|
230
219
|
readonly children: HTMLCollection;
|
|
231
220
|
readonly firstElementChild: Element;
|
|
232
221
|
readonly lastElementChild: Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EACT,WAAW,EAEX,OAAO,EACP,WAAW,EAEZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAIL,IAAI,EAEL,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAO/D,OAAO,EAEL,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAKL,cAAc,
|
|
1
|
+
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EACT,WAAW,EAEX,OAAO,EACP,WAAW,EAEZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAIL,IAAI,EAEL,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAO/D,OAAO,EAEL,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAKL,cAAc,EAEf,MAAM,kBAAkB,CAAC;AAW1B;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,UAAW,MAAM,WACa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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M,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { ValueFormatterParams } from '@ag-grid-community/core';
|
|
|
6
6
|
* @remarks Currently only returns agTextColumnFilter
|
|
7
7
|
* @alpha
|
|
8
8
|
*/
|
|
9
|
-
export declare function getFilterByFieldType(type: string):
|
|
9
|
+
export declare function getFilterByFieldType(type: string): string;
|
|
10
10
|
/**
|
|
11
11
|
* Return a column type base on each field's metadata from the selected resource.
|
|
12
12
|
* @param metadataType - The type of the field/column
|
|
@@ -14,7 +14,7 @@ export declare function getFilterByFieldType(type: string): any;
|
|
|
14
14
|
* @remarks Currently only handles numeric columns
|
|
15
15
|
* @alpha
|
|
16
16
|
*/
|
|
17
|
-
export declare function getColumnType(metadataType: string):
|
|
17
|
+
export declare function getColumnType(metadataType: string): string;
|
|
18
18
|
/**
|
|
19
19
|
* Returns the filter params based on the Grid Pro field/column type.
|
|
20
20
|
* @param type - The type of the field/column
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.definitions.d.ts","sourceRoot":"","sources":["../../src/grid-pro.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"grid-pro.definitions.d.ts","sourceRoot":"","sources":["../../src/grid-pro.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAczD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAS1D;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAwC5D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAEvE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAE3E;AAKD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMrD;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { ValueFormatterParams } from '@ag-grid-community/core';
|
|
|
6
6
|
* @remarks Currently only returns agTextColumnFilter
|
|
7
7
|
* @alpha
|
|
8
8
|
*/
|
|
9
|
-
export declare function getFilterByFieldType(type: string):
|
|
9
|
+
export declare function getFilterByFieldType(type: string): string;
|
|
10
10
|
/**
|
|
11
11
|
* Return a column type base on each field's metadata from the selected resource.
|
|
12
12
|
* @param metadataType - The type of the field/column
|
|
@@ -14,7 +14,7 @@ export declare function getFilterByFieldType(type: string): any;
|
|
|
14
14
|
* @remarks Currently only handles numeric columns
|
|
15
15
|
* @alpha
|
|
16
16
|
*/
|
|
17
|
-
export declare function getColumnType(metadataType: string):
|
|
17
|
+
export declare function getColumnType(metadataType: string): string;
|
|
18
18
|
/**
|
|
19
19
|
* Returns the filter params based on the Grid Pro field/column type.
|
|
20
20
|
* @param type - The type of the field/column
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.definitions.next.d.ts","sourceRoot":"","sources":["../../src/grid-pro.definitions.next.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"grid-pro.definitions.next.d.ts","sourceRoot":"","sources":["../../src/grid-pro.definitions.next.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAczD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAc1D;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAsF5D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAEvE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAE3E;AAKD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMrD;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAC"}
|
|
@@ -127,4 +127,9 @@ export declare enum GridProRendererTypes {
|
|
|
127
127
|
text = "text",
|
|
128
128
|
select = "select"
|
|
129
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Event fired when grid is ready
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
134
|
+
export declare const GRID_READY_EVENT = "onGridReady";
|
|
130
135
|
//# sourceMappingURL=grid-pro.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.types.d.ts","sourceRoot":"","sources":["../../src/grid-pro.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGhF;;;GAGG;AACH,oBAAY,aAAa;IACvB,eAAe,0BAA0B;IACzC,SAAS,oBAAoB;IAC7B,wBAAwB,oCAAoC;IAC5D,qBAAqB,iCAAiC;IACtD,uBAAuB,mCAAmC;IAC1D,eAAe,0BAA0B;IACzC,qBAAqB,iCAAiC;IACtD,wBAAw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C1E,yBAAyB,uCAAuC;IAChE,6BAA6B,2CAA2C;IACxE,iCAAiC,+CAA+C;IAChF,6BAA6B,2CAA2C;IACxE,2BAA2B,wCAAwC;IACnE,0BAA0B,uCAAuC;IACjE,2BAA2B,wCAAwC;IACnE,mBAAmB,gCAAgC;IACnD,qBAAqB,kCAAkC;CACxD;AAED;;;GAGG;AACH,oBAAY,WAAW;IACrB,MAAM,oBAAoB;IAC1B,UAAU,yBAAyB;IACnC,MAAM,oBAAoB;IAC1B,UAAU,yBAAyB;IACnC,QAAQ,sBAAsB;CAC/B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,cAAe,MAAM,WAA6B,CAAC;AAExF;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,cAAe,MAAM,WAAyB,CAAC;AAE1E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,kBAAkB,cAAe,MAAM,YAAY,eAAe,GAAG,CAAC,oDAIlF,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAAE,CAAC,aAAa,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAE9D;;;GAGG;AACH,oBAAY,oBAAoB;IAC9B,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,gBAAgB,CAAC"}
|
|
@@ -474,7 +474,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
474
474
|
}
|
|
475
475
|
return Object.assign(Object.assign({ field: field.name, type: getColumnType(field.type), filter: getFilterByFieldType(field.type), sortable: [].concat(...this.indexes.values()).includes(field.name) }, cellConfigs), templateColDef);
|
|
476
476
|
});
|
|
477
|
-
const colDefsMergedWithTemplateDefs = this.agGrid.
|
|
477
|
+
const colDefsMergedWithTemplateDefs = this.agGrid.mergeAllColumnDefsAndStates(colDefsFromGenesisData, true);
|
|
478
478
|
return colDefsMergedWithTemplateDefs;
|
|
479
479
|
}
|
|
480
480
|
};
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -15,7 +15,7 @@ import { GridProClientSideDatasource, GridProGenesisDatasource, GridProServerSid
|
|
|
15
15
|
import { DEBOUNCED_RESIZE_TIME } from './grid-pro.definitions';
|
|
16
16
|
import { foundationGridProStyles as styles } from './grid-pro.styles';
|
|
17
17
|
import { gridProTemplate as template } from './grid-pro.template';
|
|
18
|
-
import { AgGridTheme, GridProRendererTypes, agThemeFontsId, agThemeTokenMapClassname, } from './grid-pro.types';
|
|
18
|
+
import { AgGridTheme, GridProRendererTypes, agThemeFontsId, agThemeTokenMapClassname, GRID_READY_EVENT, } from './grid-pro.types';
|
|
19
19
|
import { logger, mergeAndDedupColDefWithColumnState } from './utils';
|
|
20
20
|
GridProGenesisDatasource;
|
|
21
21
|
GridProClientSideDatasource;
|
|
@@ -252,7 +252,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
252
252
|
if (onGridReady) {
|
|
253
253
|
onGridReady(event);
|
|
254
254
|
}
|
|
255
|
-
this.$emit(
|
|
255
|
+
this.$emit(GRID_READY_EVENT, {
|
|
256
256
|
event,
|
|
257
257
|
gridId: this.id,
|
|
258
258
|
});
|
|
@@ -128,3 +128,8 @@ export var GridProRendererTypes;
|
|
|
128
128
|
GridProRendererTypes["text"] = "text";
|
|
129
129
|
GridProRendererTypes["select"] = "select";
|
|
130
130
|
})(GridProRendererTypes || (GridProRendererTypes = {}));
|
|
131
|
+
/**
|
|
132
|
+
* Event fired when grid is ready
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
135
|
+
export const GRID_READY_EVENT = 'onGridReady';
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -4593,6 +4593,33 @@
|
|
|
4593
4593
|
"endIndex": 6
|
|
4594
4594
|
}
|
|
4595
4595
|
},
|
|
4596
|
+
{
|
|
4597
|
+
"kind": "Variable",
|
|
4598
|
+
"canonicalReference": "@genesislcap/grid-pro!GRID_READY_EVENT:var",
|
|
4599
|
+
"docComment": "/**\n * Event fired when grid is ready\n *\n * @public\n */\n",
|
|
4600
|
+
"excerptTokens": [
|
|
4601
|
+
{
|
|
4602
|
+
"kind": "Content",
|
|
4603
|
+
"text": "GRID_READY_EVENT = "
|
|
4604
|
+
},
|
|
4605
|
+
{
|
|
4606
|
+
"kind": "Content",
|
|
4607
|
+
"text": "\"onGridReady\""
|
|
4608
|
+
}
|
|
4609
|
+
],
|
|
4610
|
+
"fileUrlPath": "src/grid-pro.types.ts",
|
|
4611
|
+
"initializerTokenRange": {
|
|
4612
|
+
"startIndex": 1,
|
|
4613
|
+
"endIndex": 2
|
|
4614
|
+
},
|
|
4615
|
+
"isReadonly": true,
|
|
4616
|
+
"releaseTag": "Public",
|
|
4617
|
+
"name": "GRID_READY_EVENT",
|
|
4618
|
+
"variableTypeTokenRange": {
|
|
4619
|
+
"startIndex": 0,
|
|
4620
|
+
"endIndex": 0
|
|
4621
|
+
}
|
|
4622
|
+
},
|
|
4596
4623
|
{
|
|
4597
4624
|
"kind": "TypeAlias",
|
|
4598
4625
|
"canonicalReference": "@genesislcap/grid-pro!GridComponents:type",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -712,7 +712,7 @@ export declare const getAgBooleanRendererTemplate: (designSystem?: string) => Vi
|
|
|
712
712
|
* @remarks Currently only handles numeric columns
|
|
713
713
|
* @alpha
|
|
714
714
|
*/
|
|
715
|
-
export declare function getColumnType(metadataType: string):
|
|
715
|
+
export declare function getColumnType(metadataType: string): string;
|
|
716
716
|
|
|
717
717
|
/**
|
|
718
718
|
* Returns a filter type based on the Grid Pro field/column type.
|
|
@@ -721,7 +721,7 @@ export declare function getColumnType(metadataType: string): any;
|
|
|
721
721
|
* @remarks Currently only returns agTextColumnFilter
|
|
722
722
|
* @alpha
|
|
723
723
|
*/
|
|
724
|
-
export declare function getFilterByFieldType(type: string):
|
|
724
|
+
export declare function getFilterByFieldType(type: string): string;
|
|
725
725
|
|
|
726
726
|
/**
|
|
727
727
|
* Returns the filter params based on the Grid Pro field/column type.
|
|
@@ -754,6 +754,12 @@ export declare const getTextFieldRendererTemplate: (designSystem?: string) => Vi
|
|
|
754
754
|
*/
|
|
755
755
|
export declare const getTextRendererTemplate: (designSystem?: string) => ViewTemplate<AgTextFieldRenderer, any>;
|
|
756
756
|
|
|
757
|
+
/**
|
|
758
|
+
* Event fired when grid is ready
|
|
759
|
+
* @public
|
|
760
|
+
*/
|
|
761
|
+
export declare const GRID_READY_EVENT = "onGridReady";
|
|
762
|
+
|
|
757
763
|
/**
|
|
758
764
|
* Grid Pro Components type, used to define the custom components that will be registered in the grid
|
|
759
765
|
* @public
|
|
@@ -989,12 +995,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
989
995
|
hasPointerCapture(pointerId: number): boolean;
|
|
990
996
|
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
991
997
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
992
|
-
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
993
|
-
* Gets the saved grid ColumnState[] from local storage
|
|
994
|
-
* @remarks This is used to restore the grid state when the grid is rehydrated
|
|
995
|
-
* @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
|
|
996
|
-
* @public
|
|
997
|
-
*/
|
|
998
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
998
999
|
matches(selectors: string): boolean;
|
|
999
1000
|
releasePointerCapture(pointerId: number): void;
|
|
1000
1001
|
removeAttribute(qualifiedName: string): void;
|
|
@@ -1111,13 +1112,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1111
1112
|
innerHTML: string;
|
|
1112
1113
|
readonly nextElementSibling: Element;
|
|
1113
1114
|
readonly previousElementSibling: Element;
|
|
1114
|
-
readonly childElementCount: number;
|
|
1115
|
-
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
1116
|
-
* @deprecated use `applyTemplateDefinitions` instead.
|
|
1117
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
1118
|
-
* @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.
|
|
1119
|
-
* @returns The merged column definitions.
|
|
1120
|
-
*/
|
|
1115
|
+
readonly childElementCount: number;
|
|
1121
1116
|
readonly children: HTMLCollection;
|
|
1122
1117
|
readonly firstElementChild: Element;
|
|
1123
1118
|
readonly lastElementChild: Element;
|
|
@@ -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) > [GRID\_READY\_EVENT](./grid-pro.grid_ready_event.md)
|
|
4
|
+
|
|
5
|
+
## GRID\_READY\_EVENT variable
|
|
6
|
+
|
|
7
|
+
Event fired when grid is ready
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
GRID_READY_EVENT = "onGridReady"
|
|
13
|
+
```
|
package/docs/api/grid-pro.md
CHANGED
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
| [getSelectRendererTemplate](./grid-pro.getselectrenderertemplate.md) | Get a Design System prefixed Select template. |
|
|
79
79
|
| [getTextFieldRendererTemplate](./grid-pro.gettextfieldrenderertemplate.md) | Get a Design System prefixed Text Field template. |
|
|
80
80
|
| [getTextRendererTemplate](./grid-pro.gettextrenderertemplate.md) | |
|
|
81
|
+
| [GRID\_READY\_EVENT](./grid-pro.grid_ready_event.md) | Event fired when grid is ready |
|
|
81
82
|
| [gridProTemplate](./grid-pro.gridprotemplate.md) | The Grid Pro Template. |
|
|
82
83
|
| [logger](./grid-pro.logger.md) | Logger for the grid-pro package |
|
|
83
84
|
| [textFieldRendererStyles](./grid-pro.textfieldrendererstyles.md) | The AG Text Field Renderer Styles. |
|
package/docs/api-report.md
CHANGED
|
@@ -493,10 +493,10 @@ export const getActionsMenuDef: (actions: ActionMenuItem[], overrideDef?: ColDef
|
|
|
493
493
|
export const getAgBooleanRendererTemplate: (designSystem?: string) => ViewTemplate<any, any>;
|
|
494
494
|
|
|
495
495
|
// @alpha
|
|
496
|
-
export function getColumnType(metadataType: string):
|
|
496
|
+
export function getColumnType(metadataType: string): string;
|
|
497
497
|
|
|
498
498
|
// @alpha
|
|
499
|
-
export function getFilterByFieldType(type: string):
|
|
499
|
+
export function getFilterByFieldType(type: string): string;
|
|
500
500
|
|
|
501
501
|
// @alpha
|
|
502
502
|
export function getFilterParamsByFieldType(type: string): any;
|
|
@@ -510,6 +510,9 @@ export const getTextFieldRendererTemplate: (designSystem?: string) => ViewTempla
|
|
|
510
510
|
// @public @deprecated (undocumented)
|
|
511
511
|
export const getTextRendererTemplate: (designSystem?: string) => ViewTemplate<AgTextFieldRenderer, any>;
|
|
512
512
|
|
|
513
|
+
// @public
|
|
514
|
+
export const GRID_READY_EVENT = "onGridReady";
|
|
515
|
+
|
|
513
516
|
// @public
|
|
514
517
|
export type GridComponents = {
|
|
515
518
|
[componentName: string]: any;
|
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.
|
|
4
|
+
"version": "14.94.0-pa-899.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"test:debug": "genx test --debug"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@genesislcap/foundation-testing": "14.
|
|
34
|
-
"@genesislcap/genx": "14.
|
|
33
|
+
"@genesislcap/foundation-testing": "14.94.0-pa-899.1",
|
|
34
|
+
"@genesislcap/genx": "14.94.0-pa-899.1",
|
|
35
35
|
"rimraf": "^3.0.2"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@genesislcap/foundation-comms": "14.
|
|
39
|
-
"@genesislcap/foundation-logger": "14.
|
|
40
|
-
"@genesislcap/foundation-ui": "14.
|
|
41
|
-
"@genesislcap/foundation-utils": "14.
|
|
38
|
+
"@genesislcap/foundation-comms": "14.94.0-pa-899.1",
|
|
39
|
+
"@genesislcap/foundation-logger": "14.94.0-pa-899.1",
|
|
40
|
+
"@genesislcap/foundation-ui": "14.94.0-pa-899.1",
|
|
41
|
+
"@genesislcap/foundation-utils": "14.94.0-pa-899.1",
|
|
42
42
|
"@microsoft/fast-colors": "^5.1.4",
|
|
43
43
|
"@microsoft/fast-components": "^2.21.3",
|
|
44
44
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
63
|
"customElements": "dist/custom-elements.json",
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "165bfa10459b8b947a4afbf4d63767e303ee0f44"
|
|
65
65
|
}
|