@genesislcap/grid-pro 14.283.1 → 14.283.2
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 +0 -1
- package/dist/dts/datasource/server-side.datasource.d.ts +1 -1
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-dataserver.d.ts +1 -1
- package/dist/dts/datasource/server-side.resource-dataserver.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +7 -4
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/datasource/server-side.datasource.js +9 -5
- package/dist/esm/datasource/server-side.resource-dataserver.js +3 -2
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +4 -2
- package/dist/esm/grid-pro.js +3 -3
- package/dist/grid-pro.api.json +31 -0
- package/dist/grid-pro.d.ts +5 -2
- package/docs/api/grid-pro.gridpro.cachefilterconfig.md +15 -0
- package/docs/api/grid-pro.gridpro.md +1 -0
- package/docs/api-report.md +2 -0
- package/package.json +13 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IServerSideRowModel, PaginationChangedEvent, ServerSideTransactionResult } from '@ag-grid-community/core';
|
|
2
1
|
import type { RowDataTransaction } from '@ag-grid-community/core';
|
|
2
|
+
import { IServerSideRowModel, PaginationChangedEvent, ServerSideTransactionResult } from '@ag-grid-community/core';
|
|
3
3
|
import { GridProBaseDatasource } from './base.datasource';
|
|
4
4
|
declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
|
|
5
5
|
"__#1@#_container": import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAuB,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAGL,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AAkBjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAS1D;;;;GAIG;AACH,qBAGa,2BAA4B,SAAQ,gCAAqC;IACpF,aAAa,SAAgC;IAC7C,kBAAkB,SAAqC;IAEvD;;;OAGG;IAC6D,mBAAmB,UAAS;IAE5F;;;OAGG;IACmD,WAAW,UAAS;IAE9D,OAAO,EAAE,GAAG,CAAM;IAE9B,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,cAAc,CAA8D;IACpF,OAAO,CAAC,iBAAiB,CAAqB;IAE9C,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAOtD,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAWxD,iBAAiB;IASjB,oBAAoB;IASX,SAAS,IAAI,IAAI;IAO1B;;;;OAIG;IACU,kBAAkB,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAmCtD,IAAI;IAkGV,mBAAmB,CAAC,KAAK,EAAE,sBAAsB;IAMlC,OAAO;IAaP,OAAO;IAKtB,OAAO,CAAC,YAAY;IAiBpB,OAAO,CAAC,kBAAkB;IAU1B,IAAI,MAAM,QA2BT;IAED,IAAI,QAAQ,IAAI,mBAAmB,CAElC;YAEa,mBAAmB;YAKnB,sBAAsB;YAgEtB,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;IAK9C,QAAQ;CAGlB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IServerSideDatasource, IServerSideGetRowsParams } from '@ag-grid-community/core';
|
|
2
|
-
import {
|
|
2
|
+
import { FilteredDataServerResult, SocketObservable, SocketSubscription } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { ServerSideDatasourceOptions } from './base.types';
|
|
4
4
|
import { BaseServerSideDatasource } from './server-side.resource-base';
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.resource-dataserver.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-dataserver.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"server-side.resource-dataserver.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-dataserver.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,wBAAwB,EAGxB,gBAAgB,EAChB,kBAAkB,EAGnB,MAAM,+BAA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ColumnApi, GridApi, GridOptions, GridParams } from '@ag-grid-community/core';
|
|
2
|
+
import { ColumnState, Grid } from '@ag-grid-community/core';
|
|
3
3
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
4
|
import { GridProBaseDatasource } from './datasource/base.datasource';
|
|
5
|
+
import type { GridComponents, GridProCaseType, GridProErrorEvent, GridProErrorItem, GridProEventsAndCallbacks } from './grid-pro.types';
|
|
5
6
|
import { GridOptionsConfig, GridProStatusBarConfig } from './grid-pro.types';
|
|
6
|
-
import type { GridComponents, GridProCaseType, GridProErrorItem, GridProErrorEvent, GridProEventsAndCallbacks } from './grid-pro.types';
|
|
7
7
|
import { StatePersistence } from './state-persistence';
|
|
8
8
|
/**
|
|
9
9
|
* @remarks List of AG properties without rowData
|
|
@@ -341,7 +341,10 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
341
341
|
onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
|
|
342
342
|
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
343
343
|
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
|
|
344
|
-
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
344
|
+
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any; /**
|
|
345
|
+
* Clears the local grid options, this is used to clear the grid options when the grid is restarted.
|
|
346
|
+
* @public
|
|
347
|
+
*/
|
|
345
348
|
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
346
349
|
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
|
|
347
350
|
autofocus: boolean;
|
|
@@ -543,7 +546,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
543
546
|
*/
|
|
544
547
|
getSavedColumnState(): Promise<ColumnState[]>;
|
|
545
548
|
private restoreColumnState;
|
|
546
|
-
|
|
549
|
+
cacheFilterConfig(): void;
|
|
547
550
|
restoreCachedFilterConfig(): Promise<void>;
|
|
548
551
|
/**
|
|
549
552
|
* @public
|
|
@@ -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,KAAK,EACV,MAAM,EACN,SAAS,EAET,OAAO,EACP,WAAW,EACX,UAAU,EAEX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,WAAW,EAAyB,IAAI,EAAkB,MAAM,yBAAyB,CAAC;AASnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAsB/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAarE,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAQL,iBAAiB,EAEjB,sBAAsB,EAEvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAoBvD;;;;GAIG;AACH,eAAO,MAAM,aAAa,szRAA8D,CAAC;;;;;;;;;;;;;;;;;;;;;iBAyDvF;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;IA8BH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iEA4IH;;;;;;;OAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2EA8UH;;;OAGG;;;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
81
81
|
reloadResourceData(params) {
|
|
82
|
-
var _a, _b, _c, _d, _e, _f;
|
|
82
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
83
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
84
|
this.datasource.destroy();
|
|
85
85
|
(_a = this.liveUpdatesStream) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
86
86
|
this.liveUpdatesStream = undefined;
|
|
87
|
+
// Cache the current filter model before clearing data to preserve column filters
|
|
88
|
+
yield ((_b = this.agGrid) === null || _b === void 0 ? void 0 : _b.cacheFilterConfig());
|
|
87
89
|
this.clearRowData(withoutColumnDefs);
|
|
88
90
|
if (params) {
|
|
89
91
|
// this.datasource.stream = undefined;
|
|
@@ -91,7 +93,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
91
93
|
const initOK = yield this.datasource.init(options, true, false);
|
|
92
94
|
// this.$emit(gridProGenesisDatasourceEventNames.dataInit);
|
|
93
95
|
if (!initOK) {
|
|
94
|
-
(
|
|
96
|
+
(_c = this.agGrid.gridApi) === null || _c === void 0 ? void 0 : _c.setServerSideDatasource(null);
|
|
95
97
|
logger.error('Genesis Datasource re-init failed on filtering/sorting.');
|
|
96
98
|
}
|
|
97
99
|
}
|
|
@@ -100,9 +102,9 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
100
102
|
yield this.ssrmDatasource.destroy();
|
|
101
103
|
this.ssrmDatasource = undefined;
|
|
102
104
|
}
|
|
103
|
-
(
|
|
104
|
-
(
|
|
105
|
-
(
|
|
105
|
+
(_d = this.agGrid.gridApi) === null || _d === void 0 ? void 0 : _d.setServerSideDatasource(null);
|
|
106
|
+
(_e = this.agGrid.gridApi) === null || _e === void 0 ? void 0 : _e.refreshServerSide({ purge: true });
|
|
107
|
+
(_g = (_f = this.agGrid) === null || _f === void 0 ? void 0 : _f.gridApi) === null || _g === void 0 ? void 0 : _g.showLoadingOverlay();
|
|
106
108
|
yield this.init();
|
|
107
109
|
}
|
|
108
110
|
});
|
|
@@ -170,6 +172,8 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
170
172
|
});
|
|
171
173
|
}
|
|
172
174
|
this.agGrid.gridApi.setServerSideDatasource(this.ssrmDatasource);
|
|
175
|
+
// Restore cached filter config after setting the server-side datasource
|
|
176
|
+
this.agGrid.restoreCachedFilterConfig();
|
|
173
177
|
}), { once: true });
|
|
174
178
|
return;
|
|
175
179
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { MessageType, dataServerResultFilter, logger, } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { DOM } from '@microsoft/fast-element';
|
|
4
4
|
import { BaseServerSideDatasource } from './server-side.resource-base';
|
|
5
5
|
/**
|
|
@@ -15,8 +15,9 @@ export class DataserverServerSideDatasource extends BaseServerSideDatasource {
|
|
|
15
15
|
const _super = Object.create(null, {
|
|
16
16
|
refreshDatasource: { get: () => super.refreshDatasource }
|
|
17
17
|
});
|
|
18
|
+
var _a;
|
|
18
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
this.dataserverStreamSubscription.unsubscribe();
|
|
20
|
+
(_a = this.dataserverStreamSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
20
21
|
this.dataserverStreamSubscription = undefined;
|
|
21
22
|
yield _super.refreshDatasource.call(this, params);
|
|
22
23
|
});
|
|
@@ -289,7 +289,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
289
289
|
* @public
|
|
290
290
|
*/
|
|
291
291
|
reloadResourceData() {
|
|
292
|
-
var _a, _b;
|
|
292
|
+
var _a, _b, _c;
|
|
293
293
|
return __awaiter(this, void 0, void 0, function* () {
|
|
294
294
|
logger.debug('GridProGenesisDatasource.reloadResourceData()', this.resourceName);
|
|
295
295
|
if (this.dataSub) {
|
|
@@ -297,8 +297,10 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
297
297
|
this.dataSub = undefined;
|
|
298
298
|
}
|
|
299
299
|
this.datasource.stream = undefined;
|
|
300
|
+
// Cache the current filter model before clearing data to preserve column filters
|
|
301
|
+
yield ((_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.cacheFilterConfig());
|
|
300
302
|
this.clearRowData(withoutColumnDefs);
|
|
301
|
-
(
|
|
303
|
+
(_c = (_b = this.agGrid) === null || _b === void 0 ? void 0 : _b.gridApi) === null || _c === void 0 ? void 0 : _c.showLoadingOverlay();
|
|
302
304
|
this.agGrid.removeAttribute('ds-disconnected');
|
|
303
305
|
yield this.loadResourceData(withoutFullInit);
|
|
304
306
|
});
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -10,16 +10,16 @@ import { classNames } from '@microsoft/fast-web-utilities';
|
|
|
10
10
|
import * as changeCase from 'change-case';
|
|
11
11
|
import debounce from 'lodash.debounce';
|
|
12
12
|
import { GridProCell } from './cell';
|
|
13
|
-
import {
|
|
13
|
+
import { DateEditor, MultiselectEditor, NumberEditor, SelectEditor, StringEditor, } from './cell-editors';
|
|
14
14
|
import { ActionRenderer, ActionsMenuRenderer, BooleanRenderer, EditableRenderer, SelectRenderer, } from './cell-renderers';
|
|
15
15
|
import { GridProColumn } from './column';
|
|
16
16
|
import { GridProClientSideDatasource, GridProServerSideDatasource } from './datasource';
|
|
17
17
|
import { agThemeFontFaceMap, defaultAgGridFontFace } from './external';
|
|
18
18
|
import { GridProGenesisDatasource, gridProGenesisDatasourceEventNames, } from './grid-pro-genesis-datasource';
|
|
19
|
-
import { DEBOUNCED_RESIZE_TIME,
|
|
19
|
+
import { DEBOUNCED_RESIZE_TIME, gridProErrorNames, gridProEventNames, } from './grid-pro.definitions';
|
|
20
20
|
import { foundationGridProStyles as styles } from './grid-pro.styles';
|
|
21
21
|
import { gridProTemplate as template } from './grid-pro.template';
|
|
22
|
-
import { AgGridTheme, agThemeFontsId, agThemeTokenMapClassname,
|
|
22
|
+
import { AgGridTheme, agThemeFontsId, agThemeTokenMapClassname, DEFAULT_STATUS_BAR_CONFIG, EDITED_COLUMN_FIELD, ERROR_COLUMN_FIELD, GRID_READY_EVENT, GridOptionsConfig, GridProRendererTypes, GridProStatusBarTypes, } from './grid-pro.types';
|
|
23
23
|
import { StatePersistence } from './state-persistence';
|
|
24
24
|
import { LabelValueStatusBarComponent, LoadMoreStatusBarComponent, PaginationStatusBarComponent, ReloadStatusBarComponent, } from './status-bar-components';
|
|
25
25
|
import { ErrorTooltip } from './tooltips';
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -9235,6 +9235,37 @@
|
|
|
9235
9235
|
"isProtected": false,
|
|
9236
9236
|
"isAbstract": false
|
|
9237
9237
|
},
|
|
9238
|
+
{
|
|
9239
|
+
"kind": "Method",
|
|
9240
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#cacheFilterConfig:member(1)",
|
|
9241
|
+
"docComment": "",
|
|
9242
|
+
"excerptTokens": [
|
|
9243
|
+
{
|
|
9244
|
+
"kind": "Content",
|
|
9245
|
+
"text": "cacheFilterConfig(): "
|
|
9246
|
+
},
|
|
9247
|
+
{
|
|
9248
|
+
"kind": "Content",
|
|
9249
|
+
"text": "void"
|
|
9250
|
+
},
|
|
9251
|
+
{
|
|
9252
|
+
"kind": "Content",
|
|
9253
|
+
"text": ";"
|
|
9254
|
+
}
|
|
9255
|
+
],
|
|
9256
|
+
"isStatic": false,
|
|
9257
|
+
"returnTypeTokenRange": {
|
|
9258
|
+
"startIndex": 1,
|
|
9259
|
+
"endIndex": 2
|
|
9260
|
+
},
|
|
9261
|
+
"releaseTag": "Public",
|
|
9262
|
+
"isProtected": false,
|
|
9263
|
+
"overloadIndex": 1,
|
|
9264
|
+
"parameters": [],
|
|
9265
|
+
"isOptional": false,
|
|
9266
|
+
"isAbstract": false,
|
|
9267
|
+
"name": "cacheFilterConfig"
|
|
9268
|
+
},
|
|
9238
9269
|
{
|
|
9239
9270
|
"kind": "Property",
|
|
9240
9271
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#classNames:member",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -1760,7 +1760,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
1760
1760
|
*/
|
|
1761
1761
|
getSavedColumnState(): Promise<ColumnState[]>;
|
|
1762
1762
|
private restoreColumnState;
|
|
1763
|
-
|
|
1763
|
+
cacheFilterConfig(): void;
|
|
1764
1764
|
restoreCachedFilterConfig(): Promise<void>;
|
|
1765
1765
|
/**
|
|
1766
1766
|
* @public
|
|
@@ -2141,7 +2141,10 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
2141
2141
|
onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
|
|
2142
2142
|
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
2143
2143
|
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
|
|
2144
|
-
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
2144
|
+
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any; /**
|
|
2145
|
+
* Clears the local grid options, this is used to clear the grid options when the grid is restarted.
|
|
2146
|
+
* @public
|
|
2147
|
+
*/
|
|
2145
2148
|
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
2146
2149
|
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
|
|
2147
2150
|
autofocus: boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
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) > [cacheFilterConfig](./grid-pro.gridpro.cachefilterconfig.md)
|
|
4
|
+
|
|
5
|
+
## GridPro.cacheFilterConfig() method
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
cacheFilterConfig(): void;
|
|
11
|
+
```
|
|
12
|
+
**Returns:**
|
|
13
|
+
|
|
14
|
+
void
|
|
15
|
+
|
|
@@ -76,6 +76,7 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
|
76
76
|
| [addEventListener(eventType, listener, options)](./grid-pro.gridpro.addeventlistener.md) | | Adds an event listener to the grid element. |
|
|
77
77
|
| [agAttributeChangedCallback(attName, oldValue, newValue)](./grid-pro.gridpro.agattributechangedcallback.md) | | |
|
|
78
78
|
| [applyTemplateDefinitions(columnDefs, deferredColumnDefsOrState)](./grid-pro.gridpro.applytemplatedefinitions.md) | | Will merge templated column definitions with <code>columnDefs</code> plus localStorage's column state or <code>deferredColumnStates</code>. |
|
|
79
|
+
| [cacheFilterConfig()](./grid-pro.gridpro.cachefilterconfig.md) | | |
|
|
79
80
|
| [clearLocalGridOptions()](./grid-pro.gridpro.clearlocalgridoptions.md) | | Clears the local grid options, this is used to clear the grid options when the grid is restarted. |
|
|
80
81
|
| [combineAllGridComponents(gridOptionsComponents)](./grid-pro.gridpro.combineallgridcomponents.md) | | |
|
|
81
82
|
| [connectedCallback()](./grid-pro.gridpro.connectedcallback.md) | | |
|
package/docs/api-report.md
CHANGED
|
@@ -904,6 +904,8 @@ export class GridPro extends GridPro_base {
|
|
|
904
904
|
// (undocumented)
|
|
905
905
|
autoCellRendererByType: boolean;
|
|
906
906
|
// (undocumented)
|
|
907
|
+
cacheFilterConfig(): void;
|
|
908
|
+
// (undocumented)
|
|
907
909
|
classNames: string;
|
|
908
910
|
clearLocalGridOptions(): void;
|
|
909
911
|
// (undocumented)
|
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.283.
|
|
4
|
+
"version": "14.283.2",
|
|
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.283.
|
|
42
|
-
"@genesislcap/genx": "14.283.
|
|
43
|
-
"@genesislcap/rollup-builder": "14.283.
|
|
44
|
-
"@genesislcap/ts-builder": "14.283.
|
|
45
|
-
"@genesislcap/uvu-playwright-builder": "14.283.
|
|
46
|
-
"@genesislcap/vite-builder": "14.283.
|
|
47
|
-
"@genesislcap/webpack-builder": "14.283.
|
|
41
|
+
"@genesislcap/foundation-testing": "14.283.2",
|
|
42
|
+
"@genesislcap/genx": "14.283.2",
|
|
43
|
+
"@genesislcap/rollup-builder": "14.283.2",
|
|
44
|
+
"@genesislcap/ts-builder": "14.283.2",
|
|
45
|
+
"@genesislcap/uvu-playwright-builder": "14.283.2",
|
|
46
|
+
"@genesislcap/vite-builder": "14.283.2",
|
|
47
|
+
"@genesislcap/webpack-builder": "14.283.2",
|
|
48
48
|
"rimraf": "^5.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@genesislcap/foundation-comms": "14.283.
|
|
52
|
-
"@genesislcap/foundation-logger": "14.283.
|
|
53
|
-
"@genesislcap/foundation-ui": "14.283.
|
|
54
|
-
"@genesislcap/foundation-utils": "14.283.
|
|
51
|
+
"@genesislcap/foundation-comms": "14.283.2",
|
|
52
|
+
"@genesislcap/foundation-logger": "14.283.2",
|
|
53
|
+
"@genesislcap/foundation-ui": "14.283.2",
|
|
54
|
+
"@genesislcap/foundation-utils": "14.283.2",
|
|
55
55
|
"@microsoft/fast-colors": "5.3.1",
|
|
56
56
|
"@microsoft/fast-components": "2.30.6",
|
|
57
57
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
79
|
"customElements": "dist/custom-elements.json",
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "357e8a019efe0dfebe684827d6e844a4a8b249d7"
|
|
81
81
|
}
|