@genesislcap/grid-pro 14.192.2-publicpath.1 → 14.192.3-alpha-1303ae2.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/dist/custom-elements.json +17 -7
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +6 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +24 -17
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/datasource/server-side.datasource.js +3 -2
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +2 -1
- package/dist/esm/grid-pro.js +24 -10
- package/dist/grid-pro.api.json +32 -1
- package/dist/grid-pro.d.ts +31 -19
- package/docs/api/grid-pro.gridpro.gridparams.md +12 -0
- package/docs/api/grid-pro.gridpro.gridprodatasource.md +7 -0
- package/docs/api/grid-pro.gridpro.md +2 -1
- package/docs/api-report.md +5 -4
- package/package.json +13 -13
|
@@ -804,17 +804,28 @@
|
|
|
804
804
|
},
|
|
805
805
|
"privacy": "public"
|
|
806
806
|
},
|
|
807
|
+
{
|
|
808
|
+
"kind": "field",
|
|
809
|
+
"name": "gridParams",
|
|
810
|
+
"type": {
|
|
811
|
+
"text": "GridParams"
|
|
812
|
+
},
|
|
813
|
+
"privacy": "public",
|
|
814
|
+
"readonly": true
|
|
815
|
+
},
|
|
807
816
|
{
|
|
808
817
|
"kind": "field",
|
|
809
818
|
"name": "gridProDatasource",
|
|
810
819
|
"type": {
|
|
811
820
|
"text": "| GridProGenesisDatasource\n | GridProClientSideDatasource\n | GridProServerSideDatasource"
|
|
812
821
|
},
|
|
822
|
+
"description": "Get the datasource element.",
|
|
823
|
+
"privacy": "public",
|
|
813
824
|
"readonly": true
|
|
814
825
|
},
|
|
815
826
|
{
|
|
816
827
|
"kind": "method",
|
|
817
|
-
"name": "
|
|
828
|
+
"name": "setLocalGridOptions",
|
|
818
829
|
"privacy": "private",
|
|
819
830
|
"parameters": [
|
|
820
831
|
{
|
|
@@ -822,15 +833,14 @@
|
|
|
822
833
|
"type": {
|
|
823
834
|
"text": "GridOptions"
|
|
824
835
|
}
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
"name": "globalEventListener",
|
|
828
|
-
"type": {
|
|
829
|
-
"text": "any"
|
|
830
|
-
}
|
|
831
836
|
}
|
|
832
837
|
]
|
|
833
838
|
},
|
|
839
|
+
{
|
|
840
|
+
"kind": "method",
|
|
841
|
+
"name": "initGrid",
|
|
842
|
+
"privacy": "private"
|
|
843
|
+
},
|
|
834
844
|
{
|
|
835
845
|
"kind": "method",
|
|
836
846
|
"name": "applyTemplateDefinitions",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EAEnB,kBAAkB,EAClB,2BAA2B,EAG5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,OAAO,EAIP,wBAAwB,EAIxB,cAAc,EAId,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAGhF;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,0BAA0B,EAAE,CAC1B,cAAc,CAAC,EAAE,GAAG,KACjB,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACzD,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACxC,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O,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,cAAc,CAAmB;IACzC,OAAO,CAAC,gBAAgB,CAAmB;IAE3C,iBAAiB;IASjB,oBAAoB;IASX,SAAS,IAAI,IAAI;IAO1B,MAAM;IAQN,IAAI;IA4EJ,OAAO;IAKP,OAAO,CAAC,YAAY;IAiBpB,OAAO,CAAC,kBAAkB;IAU1B,IAAI,MAAM,QA2BT;IAED,IAAI,QAAQ,IAAI,mBAAmB,CAElC;YAEa,sBAAsB;IA2CpC,OAAO,CAAC,uBAAuB;YAUjB,eAAe;IAoBpB,gBAAgB,CAAC,aAAa,EAAE,kBAAkB,GAAG,2BAA2B;IAIhF,qBAAqB,CAC5B,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,2BAA2B,KAAK,IAAI;CAIxD"}
|
|
@@ -91,7 +91,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
91
91
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
92
92
|
hasAttribute(qualifiedName: string): boolean;
|
|
93
93
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
94
|
-
hasAttributes(): boolean;
|
|
94
|
+
hasAttributes(): boolean; /**
|
|
95
|
+
* Clears the rowData and columnDefs for the grid.
|
|
96
|
+
* @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
|
|
97
|
+
* @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
95
100
|
hasPointerCapture(pointerId: number): boolean;
|
|
96
101
|
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
97
102
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EAEX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,UAAU,EAWX,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA8IpE;;;;;;OAMG
|
|
1
|
+
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EAEX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,UAAU,EAWX,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA8IpE;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAmHH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/PL;;;;GAIG;AACH,qBAGa,wBAAyB,SAAQ,6BAAqC;IAC3E,IAAI,EAAG,IAAI,CAAC;IACN,UAAU,EAAG,UAAU,CAAC;IAEpC,aAAa,SAAsB;IACnC,kBAAkB,SAA2B;IAG7C,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,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MAAM;IAK5B,gBAAgB,CACvB,aAAa,EAAE,kBAAkB,GAChC,kBAAkB,GAAG,IAAI,GAAG,SAAS;IAI/B,qBAAqB,CAC5B,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,GAC3C,IAAI;IAIP,OAAO,CAAC,iBAAiB;CAO1B"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColumnState, Grid } from '@ag-grid-community/core';
|
|
2
|
+
import type { ColDef, ColumnApi, GridApi, GridOptions, GridParams } from '@ag-grid-community/core';
|
|
2
3
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
3
4
|
import { GridProClientSideDatasource, GridProServerSideDatasource } from './datasource';
|
|
4
5
|
import { GridProGenesisDatasource } from './grid-pro-genesis-datasource';
|
|
@@ -25,15 +26,14 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
25
26
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
26
27
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
27
28
|
disconnectedCallback(): void;
|
|
28
|
-
/**
|
|
29
|
-
* If true, will enable row flashing for all rows for `add` async transactions
|
|
30
|
-
*/
|
|
31
29
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
32
30
|
accessKey: string;
|
|
33
31
|
readonly accessKeyLabel: string;
|
|
34
32
|
autocapitalize: string;
|
|
35
33
|
dir: string;
|
|
36
|
-
draggable: boolean;
|
|
34
|
+
draggable: boolean; /**
|
|
35
|
+
* The key to use for persisting the column state in local broswer or KV storage.
|
|
36
|
+
*/
|
|
37
37
|
hidden: boolean;
|
|
38
38
|
inert: boolean;
|
|
39
39
|
innerText: string;
|
|
@@ -159,11 +159,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
159
159
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
160
160
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
161
161
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
162
|
-
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
163
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
164
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
165
|
-
* @internal
|
|
166
|
-
*/
|
|
162
|
+
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
167
163
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
168
164
|
readonly ELEMENT_NODE: number;
|
|
169
165
|
readonly ENTITY_NODE: number;
|
|
@@ -203,12 +199,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
203
199
|
ariaRowCount: string;
|
|
204
200
|
ariaRowIndex: string;
|
|
205
201
|
ariaRowIndexText: string;
|
|
206
|
-
/**
|
|
207
|
-
* Gets the saved grid ColumnState[] from storage
|
|
208
|
-
* @remarks This is used to restore the grid state when the grid is rehydrated
|
|
209
|
-
* @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
|
|
210
|
-
* @public
|
|
211
|
-
*/
|
|
212
202
|
ariaRowSpan: string;
|
|
213
203
|
ariaSelected: string;
|
|
214
204
|
ariaSetSize: string;
|
|
@@ -296,6 +286,13 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
296
286
|
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
297
287
|
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
298
288
|
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
289
|
+
/**
|
|
290
|
+
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
291
|
+
* @deprecated use `applyTemplateDefinitions` instead.
|
|
292
|
+
* @param columnDefs - The column definitions to apply to the grid.
|
|
293
|
+
* @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.
|
|
294
|
+
* @returns The merged column definitions.
|
|
295
|
+
*/
|
|
299
296
|
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
300
297
|
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
301
298
|
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -502,9 +499,19 @@ export declare class GridPro extends GridPro_base {
|
|
|
502
499
|
* @public
|
|
503
500
|
*/
|
|
504
501
|
get gridOptions(): GridOptions;
|
|
502
|
+
/**
|
|
503
|
+
* @public
|
|
504
|
+
*/
|
|
505
|
+
get gridParams(): GridParams;
|
|
506
|
+
/**
|
|
507
|
+
* Get the datasource element.
|
|
508
|
+
* @remarks This will return the first datasource element found in the light DOM. Can be either `grid-pro-genesis-datasource`, `grid-pro-client-side-datasource`, or `grid-pro-server-side-datasource`.
|
|
509
|
+
* @public
|
|
510
|
+
*/
|
|
505
511
|
get gridProDatasource(): GridProGenesisDatasource | GridProClientSideDatasource | GridProServerSideDatasource;
|
|
506
512
|
set gridOptions(options: GridOptions);
|
|
507
|
-
private
|
|
513
|
+
private setLocalGridOptions;
|
|
514
|
+
private initGrid;
|
|
508
515
|
/**
|
|
509
516
|
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
510
517
|
* @deprecated use `applyTemplateDefinitions` instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAiB,IAAI,EAAkB,MAAM,yBAAyB,CAAC;AAC3F,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EAET,OAAO,EACP,WAAW,EACX,UAAU,E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G;IACG,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IAuFzF,IAAI,kBAAkB,aAarB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAqBtD,mBAAmB,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;IAiBpC,OAAO,CAAC,eAAe,CAAa;IAEpC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,eAAe;CAMxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,EAAE,cAA0B,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
|
|
@@ -354,7 +354,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
354
354
|
}
|
|
355
355
|
init() {
|
|
356
356
|
if (this.agGrid && this.resourceName && this.connect.isConnected) {
|
|
357
|
-
this.agGrid.gridOptions = Object.assign({ getRowId: (params) => {
|
|
357
|
+
this.agGrid.gridOptions = Object.assign(Object.assign({ getRowId: (params) => {
|
|
358
358
|
if (!params.data) {
|
|
359
359
|
return null;
|
|
360
360
|
}
|
|
@@ -368,7 +368,8 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
368
368
|
filter: true,
|
|
369
369
|
resizable: true,
|
|
370
370
|
sortable: false,
|
|
371
|
-
}, pagination: this.pagination, paginationPageSize: this.maxRows, rowBuffer: 0, rowModelType: 'serverSide', suppressServerSideInfiniteScroll: false, suppressMultiSort: true, onFilterChanged: (params) => { }, onSortChanged: (params) => { } }, this.deferredGridOptions);
|
|
371
|
+
}, pagination: this.pagination, paginationPageSize: this.maxRows, rowBuffer: 0, rowModelType: 'serverSide', suppressServerSideInfiniteScroll: false, suppressMultiSort: true, onFilterChanged: (params) => { }, onSortChanged: (params) => { } }, this.agGrid['agGridOptions']), this.deferredGridOptions);
|
|
372
|
+
this.agGrid['initGrid']();
|
|
372
373
|
this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
|
|
373
374
|
/**
|
|
374
375
|
* We should have all the metadata via Datasource, ie.
|
|
@@ -123,8 +123,9 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
123
123
|
init(columnDefinitions, columnStates) {
|
|
124
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
125
125
|
if (this.agGrid && this.datasource.validResourceName(this.resourceName)) {
|
|
126
|
-
const gridOptions = Object.assign(Object.assign({ getRowId: (params) => params.data[this.rowId] }, (columnDefinitions && { columnDefs: columnDefinitions })), this.deferredGridOptions);
|
|
126
|
+
const gridOptions = Object.assign(Object.assign(Object.assign({ getRowId: (params) => params.data[this.rowId] }, (columnDefinitions && { columnDefs: columnDefinitions })), this.agGrid['agGridOptions']), this.deferredGridOptions);
|
|
127
127
|
this.agGrid.gridOptions = Object.assign({}, gridOptions);
|
|
128
|
+
this.agGrid['initGrid']();
|
|
128
129
|
this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
|
|
129
130
|
if (columnStates) {
|
|
130
131
|
this.agGrid.columnApi.applyColumnState({ state: columnStates });
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate, __rest } from "tslib";
|
|
2
2
|
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
|
|
3
|
-
import { ComponentUtil, Grid, ModuleRegistry
|
|
3
|
+
import { ComponentUtil, Grid, ModuleRegistry } from '@ag-grid-community/core';
|
|
4
4
|
import { CsvExportModule } from '@ag-grid-community/csv-export';
|
|
5
5
|
import { insertDocumentCSSRule, LifecycleMixin, respondToVisibility, } from '@genesislcap/foundation-utils';
|
|
6
6
|
import { attr, DOM, observable } from '@microsoft/fast-element';
|
|
@@ -304,6 +304,19 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
304
304
|
get gridOptions() {
|
|
305
305
|
return this.agGridOptions;
|
|
306
306
|
}
|
|
307
|
+
/**
|
|
308
|
+
* @public
|
|
309
|
+
*/
|
|
310
|
+
get gridParams() {
|
|
311
|
+
return {
|
|
312
|
+
globalEventListener: this.globalEventListener.bind(this),
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Get the datasource element.
|
|
317
|
+
* @remarks This will return the first datasource element found in the light DOM. Can be either `grid-pro-genesis-datasource`, `grid-pro-client-side-datasource`, or `grid-pro-server-side-datasource`.
|
|
318
|
+
* @public
|
|
319
|
+
*/
|
|
307
320
|
get gridProDatasource() {
|
|
308
321
|
return (this.querySelector('grid-pro-genesis-datasource') ||
|
|
309
322
|
this.querySelector('grid-pro-client-side-datasource') ||
|
|
@@ -312,7 +325,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
312
325
|
set gridOptions(options) {
|
|
313
326
|
const debounceSaveColumnState = debounce(this.saveColumnState.bind(this), DEBOUNCE_TIME);
|
|
314
327
|
const debouceSaveFiltermodel = debounce(this.cacheFilterConfig.bind(this), DEBOUNCE_TIME);
|
|
315
|
-
const globalEventListener = this.globalEventListener.bind(this);
|
|
316
328
|
const gridOnChangeCallback = () => {
|
|
317
329
|
debounceSaveColumnState();
|
|
318
330
|
this.debouncedColumnAutosize.bind(this)();
|
|
@@ -323,7 +335,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
323
335
|
return;
|
|
324
336
|
this.agAttributes[attrName] = attribute.value;
|
|
325
337
|
});
|
|
326
|
-
const { columnDefs, components, defaultColDef, onGridReady, onFilterChanged } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "onGridReady", "onFilterChanged"]);
|
|
338
|
+
const { columnDefs, components, defaultColDef, getRowId, onGridReady, onFilterChanged } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "getRowId", "onGridReady", "onFilterChanged"]);
|
|
327
339
|
const derivedOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.gridOptionsConfig), { defaultColDef: Object.assign({ enableCellChangeFlash: this.enableCellFlashing, filter: true, resizable: true, sortable: true }, defaultColDef), components: this.combineAllGridComponents(components), suppressDragLeaveHidesColumns: true }), this.eventsAndCallbacks), { onGridReady: (event) => {
|
|
328
340
|
var _a, _b;
|
|
329
341
|
this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : event.api;
|
|
@@ -353,20 +365,22 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
353
365
|
}, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback }), rest);
|
|
354
366
|
if (this.gridProDatasource) {
|
|
355
367
|
derivedOptions.columnDefs = columnDefs;
|
|
356
|
-
|
|
368
|
+
derivedOptions.getRowId = getRowId;
|
|
369
|
+
this.setLocalGridOptions(derivedOptions);
|
|
357
370
|
}
|
|
358
371
|
else {
|
|
359
372
|
this.mergeAllColumnDefsAndStates(columnDefs).then((value) => {
|
|
360
373
|
derivedOptions.columnDefs = value;
|
|
361
|
-
|
|
374
|
+
derivedOptions.getRowId = getRowId;
|
|
375
|
+
this.setLocalGridOptions(derivedOptions);
|
|
376
|
+
this.initGrid();
|
|
362
377
|
});
|
|
363
378
|
}
|
|
364
379
|
}
|
|
365
|
-
|
|
380
|
+
setLocalGridOptions(derivedOptions) {
|
|
366
381
|
this.agGridOptions = Object.assign(Object.assign({}, this.agGridOptions), ComponentUtil.copyAttributesToGridOptions(derivedOptions, this.agAttributes));
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
};
|
|
382
|
+
}
|
|
383
|
+
initGrid() {
|
|
370
384
|
DOM.queueUpdate(() => {
|
|
371
385
|
if (this.initialised) {
|
|
372
386
|
// Needed due gridSlot children cleanup
|
|
@@ -375,7 +389,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
375
389
|
this.gridSlot.removeChild(this.gridSlot.firstChild);
|
|
376
390
|
}
|
|
377
391
|
}
|
|
378
|
-
this.agGrid = new Grid(this.gridSlot, this.agGridOptions, gridParams);
|
|
392
|
+
this.agGrid = new Grid(this.gridSlot, this.agGridOptions, this.gridParams);
|
|
379
393
|
this.initialised = true;
|
|
380
394
|
});
|
|
381
395
|
}
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -8828,10 +8828,41 @@
|
|
|
8828
8828
|
"isProtected": false,
|
|
8829
8829
|
"isAbstract": false
|
|
8830
8830
|
},
|
|
8831
|
+
{
|
|
8832
|
+
"kind": "Property",
|
|
8833
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#gridParams:member",
|
|
8834
|
+
"docComment": "/**\n * @public\n */\n",
|
|
8835
|
+
"excerptTokens": [
|
|
8836
|
+
{
|
|
8837
|
+
"kind": "Content",
|
|
8838
|
+
"text": "get gridParams(): "
|
|
8839
|
+
},
|
|
8840
|
+
{
|
|
8841
|
+
"kind": "Reference",
|
|
8842
|
+
"text": "GridParams",
|
|
8843
|
+
"canonicalReference": "@ag-grid-community/core!GridParams:interface"
|
|
8844
|
+
},
|
|
8845
|
+
{
|
|
8846
|
+
"kind": "Content",
|
|
8847
|
+
"text": ";"
|
|
8848
|
+
}
|
|
8849
|
+
],
|
|
8850
|
+
"isReadonly": true,
|
|
8851
|
+
"isOptional": false,
|
|
8852
|
+
"releaseTag": "Public",
|
|
8853
|
+
"name": "gridParams",
|
|
8854
|
+
"propertyTypeTokenRange": {
|
|
8855
|
+
"startIndex": 1,
|
|
8856
|
+
"endIndex": 2
|
|
8857
|
+
},
|
|
8858
|
+
"isStatic": false,
|
|
8859
|
+
"isProtected": false,
|
|
8860
|
+
"isAbstract": false
|
|
8861
|
+
},
|
|
8831
8862
|
{
|
|
8832
8863
|
"kind": "Property",
|
|
8833
8864
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#gridProDatasource:member",
|
|
8834
|
-
"docComment": "",
|
|
8865
|
+
"docComment": "/**\n * Get the datasource element.\n *\n * @remarks\n *\n * This will return the first datasource element found in the light DOM. Can be either `grid-pro-genesis-datasource`, `grid-pro-client-side-datasource`, or `grid-pro-server-side-datasource`.\n *\n * @public\n */\n",
|
|
8835
8866
|
"excerptTokens": [
|
|
8836
8867
|
{
|
|
8837
8868
|
"kind": "Content",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Auth } from '@genesislcap/foundation-comms';
|
|
|
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 { ColumnApi } from '@ag-grid-community/core';
|
|
6
|
+
import type { ColumnApi } from '@ag-grid-community/core';
|
|
7
7
|
import { ColumnState } from '@ag-grid-community/core';
|
|
8
8
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
9
9
|
import type { Container } from '@microsoft/fast-foundation';
|
|
@@ -23,8 +23,9 @@ import { FoundationElement } from '@microsoft/fast-foundation';
|
|
|
23
23
|
import { FoundationElementRegistry } from '@microsoft/fast-foundation';
|
|
24
24
|
import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
|
|
25
25
|
import { Grid } from '@ag-grid-community/core';
|
|
26
|
-
import { GridApi } from '@ag-grid-community/core';
|
|
26
|
+
import type { GridApi } from '@ag-grid-community/core';
|
|
27
27
|
import { GridOptions } from '@ag-grid-community/core';
|
|
28
|
+
import type { GridParams } from '@ag-grid-community/core';
|
|
28
29
|
import { ICellEditorComp } from '@ag-grid-community/core';
|
|
29
30
|
import { ICellEditorParams } from '@ag-grid-community/core';
|
|
30
31
|
import { ICellRendererComp } from '@ag-grid-community/core';
|
|
@@ -1661,9 +1662,19 @@ export declare class GridPro extends GridPro_base {
|
|
|
1661
1662
|
* @public
|
|
1662
1663
|
*/
|
|
1663
1664
|
get gridOptions(): GridOptions;
|
|
1665
|
+
/**
|
|
1666
|
+
* @public
|
|
1667
|
+
*/
|
|
1668
|
+
get gridParams(): GridParams;
|
|
1669
|
+
/**
|
|
1670
|
+
* Get the datasource element.
|
|
1671
|
+
* @remarks This will return the first datasource element found in the light DOM. Can be either `grid-pro-genesis-datasource`, `grid-pro-client-side-datasource`, or `grid-pro-server-side-datasource`.
|
|
1672
|
+
* @public
|
|
1673
|
+
*/
|
|
1664
1674
|
get gridProDatasource(): GridProGenesisDatasource | GridProClientSideDatasource | GridProServerSideDatasource;
|
|
1665
1675
|
set gridOptions(options: GridOptions);
|
|
1666
|
-
private
|
|
1676
|
+
private setLocalGridOptions;
|
|
1677
|
+
private initGrid;
|
|
1667
1678
|
/**
|
|
1668
1679
|
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
1669
1680
|
* @deprecated use `applyTemplateDefinitions` instead.
|
|
@@ -1706,15 +1717,14 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1706
1717
|
readonly $fastController: Controller;
|
|
1707
1718
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
1708
1719
|
disconnectedCallback(): void;
|
|
1709
|
-
/**
|
|
1710
|
-
* If true, will enable row flashing for all rows for `add` async transactions
|
|
1711
|
-
*/
|
|
1712
1720
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
1713
1721
|
accessKey: string;
|
|
1714
1722
|
readonly accessKeyLabel: string;
|
|
1715
1723
|
autocapitalize: string;
|
|
1716
1724
|
dir: string;
|
|
1717
|
-
draggable: boolean;
|
|
1725
|
+
draggable: boolean; /**
|
|
1726
|
+
* The key to use for persisting the column state in local broswer or KV storage.
|
|
1727
|
+
*/
|
|
1718
1728
|
hidden: boolean;
|
|
1719
1729
|
inert: boolean;
|
|
1720
1730
|
innerText: string;
|
|
@@ -1840,11 +1850,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1840
1850
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
1841
1851
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
1842
1852
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
1843
|
-
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
1844
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
1845
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
1846
|
-
* @internal
|
|
1847
|
-
*/
|
|
1853
|
+
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
1848
1854
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
1849
1855
|
readonly ELEMENT_NODE: number;
|
|
1850
1856
|
readonly ENTITY_NODE: number;
|
|
@@ -1884,12 +1890,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1884
1890
|
ariaRowCount: string;
|
|
1885
1891
|
ariaRowIndex: string;
|
|
1886
1892
|
ariaRowIndexText: string;
|
|
1887
|
-
/**
|
|
1888
|
-
* Gets the saved grid ColumnState[] from storage
|
|
1889
|
-
* @remarks This is used to restore the grid state when the grid is rehydrated
|
|
1890
|
-
* @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
|
|
1891
|
-
* @public
|
|
1892
|
-
*/
|
|
1893
1893
|
ariaRowSpan: string;
|
|
1894
1894
|
ariaSelected: string;
|
|
1895
1895
|
ariaSetSize: string;
|
|
@@ -1977,6 +1977,13 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1977
1977
|
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
1978
1978
|
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
1979
1979
|
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
1980
|
+
/**
|
|
1981
|
+
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
1982
|
+
* @deprecated use `applyTemplateDefinitions` instead.
|
|
1983
|
+
* @param columnDefs - The column definitions to apply to the grid.
|
|
1984
|
+
* @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.
|
|
1985
|
+
* @returns The merged column definitions.
|
|
1986
|
+
*/
|
|
1980
1987
|
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
1981
1988
|
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1982
1989
|
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -2679,7 +2686,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
2679
2686
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
2680
2687
|
hasAttribute(qualifiedName: string): boolean;
|
|
2681
2688
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
2682
|
-
hasAttributes(): boolean;
|
|
2689
|
+
hasAttributes(): boolean; /**
|
|
2690
|
+
* Clears the rowData and columnDefs for the grid.
|
|
2691
|
+
* @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
|
|
2692
|
+
* @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
|
|
2693
|
+
* @internal
|
|
2694
|
+
*/
|
|
2683
2695
|
hasPointerCapture(pointerId: number): boolean;
|
|
2684
2696
|
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
2685
2697
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
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) > [gridParams](./grid-pro.gridpro.gridparams.md)
|
|
4
|
+
|
|
5
|
+
## GridPro.gridParams property
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
**Signature:**
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
get gridParams(): GridParams;
|
|
12
|
+
```
|
|
@@ -4,8 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
## GridPro.gridProDatasource property
|
|
6
6
|
|
|
7
|
+
Get the datasource element.
|
|
8
|
+
|
|
7
9
|
**Signature:**
|
|
8
10
|
|
|
9
11
|
```typescript
|
|
10
12
|
get gridProDatasource(): GridProGenesisDatasource | GridProClientSideDatasource | GridProServerSideDatasource;
|
|
11
13
|
```
|
|
14
|
+
|
|
15
|
+
## Remarks
|
|
16
|
+
|
|
17
|
+
This will return the first datasource element found in the light DOM. Can be either `grid-pro-genesis-datasource`<!-- -->, `grid-pro-client-side-datasource`<!-- -->, or `grid-pro-server-side-datasource`<!-- -->.
|
|
18
|
+
|
|
@@ -50,7 +50,8 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
|
50
50
|
| [gridFontFace](./grid-pro.gridpro.gridfontface.md) | | string | |
|
|
51
51
|
| [gridOptions](./grid-pro.gridpro.gridoptions.md) | | GridOptions | |
|
|
52
52
|
| [gridOptionsConfig](./grid-pro.gridpro.gridoptionsconfig.md) | | [GridOptionsConfig](./grid-pro.gridoptionsconfig.md) | Injectable config that allows to change grid options on an app level basis To modify options, register instance of the config in DOM container that is above the grid or on the top level of the application, so it applies to all grids. |
|
|
53
|
-
| [
|
|
53
|
+
| [gridParams](./grid-pro.gridpro.gridparams.md) | <code>readonly</code> | GridParams | |
|
|
54
|
+
| [gridProDatasource](./grid-pro.gridpro.gridprodatasource.md) | <code>readonly</code> | [GridProGenesisDatasource](./grid-pro.gridprogenesisdatasource.md) \| [GridProClientSideDatasource](./grid-pro.gridproclientsidedatasource.md) \| GridProServerSideDatasource | Get the datasource element. |
|
|
54
55
|
| [gridSlot](./grid-pro.gridpro.gridslot.md) | | HTMLSlotElement | |
|
|
55
56
|
| [headerCaseType](./grid-pro.gridpro.headercasetype.md) | | [GridProCaseType](./grid-pro.gridprocasetype.md) | The case type to use for the header names. If not set, the default CONSTANT\_CASE will be used. |
|
|
56
57
|
| [headerHeight](./grid-pro.gridpro.headerheight.md) | | number | |
|
package/docs/api-report.md
CHANGED
|
@@ -9,7 +9,7 @@ import { Auth } from '@genesislcap/foundation-comms';
|
|
|
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 { ColumnApi } from '@ag-grid-community/core';
|
|
12
|
+
import type { ColumnApi } from '@ag-grid-community/core';
|
|
13
13
|
import { ColumnState } from '@ag-grid-community/core';
|
|
14
14
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
15
15
|
import type { Container } from '@microsoft/fast-foundation';
|
|
@@ -29,8 +29,9 @@ import { FoundationElement } from '@microsoft/fast-foundation';
|
|
|
29
29
|
import { FoundationElementRegistry } from '@microsoft/fast-foundation';
|
|
30
30
|
import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
|
|
31
31
|
import { Grid } from '@ag-grid-community/core';
|
|
32
|
-
import { GridApi } from '@ag-grid-community/core';
|
|
32
|
+
import type { GridApi } from '@ag-grid-community/core';
|
|
33
33
|
import { GridOptions } from '@ag-grid-community/core';
|
|
34
|
+
import type { GridParams } from '@ag-grid-community/core';
|
|
34
35
|
import { ICellEditorComp } from '@ag-grid-community/core';
|
|
35
36
|
import { ICellEditorParams } from '@ag-grid-community/core';
|
|
36
37
|
import { ICellRendererComp } from '@ag-grid-community/core';
|
|
@@ -864,9 +865,9 @@ export class GridPro extends GridPro_base {
|
|
|
864
865
|
get gridOptions(): GridOptions;
|
|
865
866
|
set gridOptions(options: GridOptions);
|
|
866
867
|
gridOptionsConfig: GridOptionsConfig;
|
|
867
|
-
// Warning: (ae-incompatible-release-tags) The symbol "gridProDatasource" is marked as @public, but its signature references "GridProServerSideDatasource" which is marked as @alpha
|
|
868
|
-
//
|
|
869
868
|
// (undocumented)
|
|
869
|
+
get gridParams(): GridParams;
|
|
870
|
+
// Warning: (ae-incompatible-release-tags) The symbol "gridProDatasource" is marked as @public, but its signature references "GridProServerSideDatasource" which is marked as @alpha
|
|
870
871
|
get gridProDatasource(): GridProGenesisDatasource | GridProClientSideDatasource | GridProServerSideDatasource;
|
|
871
872
|
// (undocumented)
|
|
872
873
|
gridSlot: HTMLSlotElement;
|
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.192.
|
|
4
|
+
"version": "14.192.3-alpha-1303ae2.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.192.
|
|
42
|
-
"@genesislcap/genx": "14.192.
|
|
43
|
-
"@genesislcap/rollup-builder": "14.192.
|
|
44
|
-
"@genesislcap/ts-builder": "14.192.
|
|
45
|
-
"@genesislcap/uvu-playwright-builder": "14.192.
|
|
46
|
-
"@genesislcap/vite-builder": "14.192.
|
|
47
|
-
"@genesislcap/webpack-builder": "14.192.
|
|
41
|
+
"@genesislcap/foundation-testing": "14.192.3-alpha-1303ae2.0",
|
|
42
|
+
"@genesislcap/genx": "14.192.3-alpha-1303ae2.0",
|
|
43
|
+
"@genesislcap/rollup-builder": "14.192.3-alpha-1303ae2.0",
|
|
44
|
+
"@genesislcap/ts-builder": "14.192.3-alpha-1303ae2.0",
|
|
45
|
+
"@genesislcap/uvu-playwright-builder": "14.192.3-alpha-1303ae2.0",
|
|
46
|
+
"@genesislcap/vite-builder": "14.192.3-alpha-1303ae2.0",
|
|
47
|
+
"@genesislcap/webpack-builder": "14.192.3-alpha-1303ae2.0",
|
|
48
48
|
"rimraf": "^5.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@genesislcap/foundation-comms": "14.192.
|
|
52
|
-
"@genesislcap/foundation-logger": "14.192.
|
|
53
|
-
"@genesislcap/foundation-ui": "14.192.
|
|
54
|
-
"@genesislcap/foundation-utils": "14.192.
|
|
51
|
+
"@genesislcap/foundation-comms": "14.192.3-alpha-1303ae2.0",
|
|
52
|
+
"@genesislcap/foundation-logger": "14.192.3-alpha-1303ae2.0",
|
|
53
|
+
"@genesislcap/foundation-ui": "14.192.3-alpha-1303ae2.0",
|
|
54
|
+
"@genesislcap/foundation-utils": "14.192.3-alpha-1303ae2.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",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
79
|
"customElements": "dist/custom-elements.json",
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "a3a2aa25079aae6722a6f7039dcc3abc862b90dc"
|
|
81
81
|
}
|