@genesislcap/grid-pro 14.122.2-alpha-fb3aeba.0 → 14.124.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 +9 -0
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +13 -26
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +9 -20
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +2 -6
- package/dist/esm/grid-pro.js +8 -1
- package/dist/grid-pro.d.ts +22 -46
- package/package.json +8 -8
|
@@ -740,6 +740,15 @@
|
|
|
740
740
|
"name": "destroyFontFace",
|
|
741
741
|
"privacy": "private"
|
|
742
742
|
},
|
|
743
|
+
{
|
|
744
|
+
"kind": "field",
|
|
745
|
+
"name": "csvExportParams",
|
|
746
|
+
"type": {
|
|
747
|
+
"text": "CsvExportParams"
|
|
748
|
+
},
|
|
749
|
+
"privacy": "private",
|
|
750
|
+
"readonly": true
|
|
751
|
+
},
|
|
743
752
|
{
|
|
744
753
|
"kind": "method",
|
|
745
754
|
"name": "cloneNode",
|
|
@@ -34,11 +34,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
34
34
|
hidden: boolean;
|
|
35
35
|
inert: boolean;
|
|
36
36
|
innerText: string;
|
|
37
|
-
/**
|
|
38
|
-
* Initializes the datasource.
|
|
39
|
-
* @public
|
|
40
|
-
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
41
|
-
*/
|
|
42
37
|
lang: string;
|
|
43
38
|
readonly offsetHeight: number;
|
|
44
39
|
readonly offsetLeft: number;
|
|
@@ -85,32 +80,13 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
85
80
|
getAttribute(qualifiedName: string): string;
|
|
86
81
|
getAttributeNS(namespace: string, localName: string): string;
|
|
87
82
|
getAttributeNames(): string[];
|
|
88
|
-
/**
|
|
89
|
-
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
90
|
-
* @public
|
|
91
|
-
*/
|
|
92
83
|
getAttributeNode(qualifiedName: string): Attr;
|
|
93
84
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
94
85
|
getBoundingClientRect(): DOMRect;
|
|
95
86
|
getClientRects(): DOMRectList;
|
|
96
87
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
97
|
-
/**
|
|
98
|
-
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
99
|
-
* @remarks Will only happen for streaming DATASERER resources.
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
102
88
|
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
103
|
-
/**
|
|
104
|
-
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
105
|
-
* @remarks Will only happen for streaming DATASERER resources.
|
|
106
|
-
* @internal
|
|
107
|
-
*/
|
|
108
89
|
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
109
|
-
/**
|
|
110
|
-
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
111
|
-
* @remarks Will only happen for streaming DATASERER resources.
|
|
112
|
-
* @internal
|
|
113
|
-
*/
|
|
114
90
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
115
91
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
116
92
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
@@ -144,7 +120,13 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
144
120
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
145
121
|
webkitMatchesSelector(selectors: string): boolean;
|
|
146
122
|
readonly baseURI: string;
|
|
147
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
123
|
+
readonly childNodes: NodeListOf<ChildNode>; /**
|
|
124
|
+
* Initializes the datasource and loads the data for the grid.
|
|
125
|
+
* Handles both snapshot and stream data (for both REQUEST_SERVER and DATASERVER resource types).
|
|
126
|
+
*
|
|
127
|
+
* @param withFullInit - if true, will call datasource.init() with requiresMetadataFetch = true, fetching fresh metadata
|
|
128
|
+
* @internal
|
|
129
|
+
*/
|
|
148
130
|
readonly firstChild: ChildNode;
|
|
149
131
|
readonly isConnected: boolean;
|
|
150
132
|
readonly lastChild: ChildNode;
|
|
@@ -276,7 +258,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
276
258
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
277
259
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
278
260
|
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
279
|
-
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
261
|
+
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any; /**
|
|
262
|
+
* Maps the transaction data to the row data mapper function, if it exists.
|
|
263
|
+
* @param transaction - The transaction data to be mapped.
|
|
264
|
+
* @param operations - The operations to be mapped. Can be 'add', 'update' or 'remove'.
|
|
265
|
+
* @returns The mapped transaction (if the row data mapper function exists), or the original transaction.
|
|
266
|
+
*/
|
|
280
267
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
281
268
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
282
269
|
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
@@ -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":"AACA,OAAO,EACL,IAAI,EACJ,UAAU,
|
|
1
|
+
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AACA,OAAO,EACL,IAAI,EACJ,UAAU,EAaX,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAgBtE;;;GAGG;AACH,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAkTC;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEAoNH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/gBL;;;;GAIG;AACH,qBAGa,wBAAyB,SAAQ,6BAAqC;IAC3E,IAAI,EAAG,IAAI,CAAC;IACN,UAAU,EAAG,UAAU,CAAC;IAGpC,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IASf,eAAe,EAAE,MAAM,CACf;IACQ,cAAc,EAAE,OAAO,CAAS;IAC7E,OAAO,EAAE,GAAG,CAAC;IAEzB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAKtD;;;;;OAKG;IAC4B,SAAS,MAAC;IAEwB,qBAAqB,UAAS;IAE/F;;OAEG;IACS,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SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -89,23 +89,8 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
89
89
|
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
90
90
|
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
91
91
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
92
|
-
/**
|
|
93
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
94
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
97
92
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
98
|
-
/**
|
|
99
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
100
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
101
|
-
* @internal
|
|
102
|
-
*/
|
|
103
93
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
104
|
-
/**
|
|
105
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
106
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
107
|
-
* @internal
|
|
108
|
-
*/
|
|
109
94
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
110
95
|
hasAttribute(qualifiedName: string): boolean;
|
|
111
96
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
@@ -233,7 +218,13 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
233
218
|
readonly childElementCount: number;
|
|
234
219
|
readonly children: HTMLCollection;
|
|
235
220
|
readonly firstElementChild: Element;
|
|
236
|
-
readonly lastElementChild: Element;
|
|
221
|
+
readonly lastElementChild: Element; /**
|
|
222
|
+
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
223
|
+
* @deprecated use `applyTemplateDefinitions` instead.
|
|
224
|
+
* @param columnDefs - The column definitions to apply to the grid.
|
|
225
|
+
* @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.
|
|
226
|
+
* @returns The merged column definitions.
|
|
227
|
+
*/
|
|
237
228
|
append(...nodes: (string | Node)[]): void;
|
|
238
229
|
prepend(...nodes: (string | Node)[]): void;
|
|
239
230
|
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
|
@@ -327,10 +318,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
327
318
|
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
328
319
|
onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
329
320
|
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
|
|
330
|
-
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
331
|
-
* Grid Pro default configuration.
|
|
332
|
-
* @public
|
|
333
|
-
*/
|
|
321
|
+
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
334
322
|
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
335
323
|
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
336
324
|
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
@@ -488,6 +476,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
488
476
|
private fontFaceDestroy;
|
|
489
477
|
private insertFontFace;
|
|
490
478
|
private destroyFontFace;
|
|
479
|
+
private get csvExportParams();
|
|
491
480
|
}
|
|
492
481
|
/**
|
|
493
482
|
* GridPro shadow root options.
|
|
@@ -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,
|
|
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,EAGX,OAAO,EACP,WAAW,EAEZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAiB,IAAI,EAAkB,MAAM,yBAAyB,CAAC;AAS9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAmB/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAMrE,OAAO,EAKL,cAAc,EAIf,MAAM,kBAAkB,CAAC;AAY1B;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,UAAW,MAAM,WACa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwX5D;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAxXL;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,YAAiC;IAChD,SAAS,EAAG,SAAS,CAAC;IACtB,OAAO,EAAG,OAAO,CAAC;IACrB,OAAO,CAAC,OAAO,CAAU;IAElC;;;OAGG;IACH,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OAAO;IAOlC;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAW/B;;;OAGG;IACH,OAAO,CAAC,4BAA4B;IAIpC,OAAO,CAAC,eAAe;IAkBvB;;;;;OAKG;IACH,mBAAmB,IAAI,WAAW,EAAE;IAapC,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,yBAAyB;IAOjC;;OAEG;IACH,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,IAAI,iBAAiB,IAAI,qBAAqB,CAM7C;IAED,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EAuFnC;IAED;;;;;;OAMG;IACH,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IAKhF;;;;;;;;OAQG;IACH,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IA0EnF,IAAI,kBAAkB,aAerB;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;IAOvB,OAAO,KAAK,eAAe,GAS1B;CACF;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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { Auth, Datasource, DatasourceDefaults, FieldTypeEnum, ResourceType, dataServerResultFilter, normaliseCriteria, } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { Auth, Datasource, DatasourceDefaults, FieldTypeEnum, MessageType, ResourceType, dataServerResultFilter, normaliseCriteria, } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
4
4
|
import { DOM, attr, customElement, observable } from '@microsoft/fast-element';
|
|
5
5
|
import { BehaviorSubject } from 'rxjs';
|
|
@@ -277,12 +277,8 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
277
277
|
this.dataSub = this.datasource.stream.subscribe((result) => {
|
|
278
278
|
this.sourceRef = result.SOURCE_REF;
|
|
279
279
|
const messageType = result.MESSAGE_TYPE;
|
|
280
|
-
if (messageType && messageType.
|
|
280
|
+
if (messageType && messageType === MessageType.LOGOFF_ACK) {
|
|
281
281
|
this.dataSubWasLoggedOff = true;
|
|
282
|
-
logger.debug(`received NACK for ${this.resourceName}`);
|
|
283
|
-
logger.debug('result -> ', result);
|
|
284
|
-
// TODO: custom overlay?
|
|
285
|
-
this.agGrid.gridApi.showNoRowsOverlay();
|
|
286
282
|
return;
|
|
287
283
|
}
|
|
288
284
|
this.dataSubWasLoggedOff = false;
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -256,7 +256,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
256
256
|
this.agAttributes[attrName] = attribute.value;
|
|
257
257
|
});
|
|
258
258
|
const { columnDefs, components, defaultColDef, onGridReady, onFirstDataRendered } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "onGridReady", "onFirstDataRendered"]);
|
|
259
|
-
const derivedOptions = Object.assign(Object.assign(Object.assign({ defaultColDef: Object.assign({ enableCellChangeFlash: this.enableCellFlashing, filter: true, resizable: true, sortable: true }, defaultColDef), components: this.combineAllGridComponents(components), suppressDragLeaveHidesColumns: true }, this.eventsAndCallbacks), { onGridReady: (event) => {
|
|
259
|
+
const derivedOptions = Object.assign(Object.assign(Object.assign({ defaultColDef: Object.assign({ enableCellChangeFlash: this.enableCellFlashing, filter: true, resizable: true, sortable: true }, defaultColDef), defaultCsvExportParams: this.csvExportParams, components: this.combineAllGridComponents(components), suppressDragLeaveHidesColumns: true }, this.eventsAndCallbacks), { onGridReady: (event) => {
|
|
260
260
|
var _a, _b;
|
|
261
261
|
this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : event.api;
|
|
262
262
|
this.columnApi = (_b = options.columnApi) !== null && _b !== void 0 ? _b : event.columnApi;
|
|
@@ -425,6 +425,13 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
425
425
|
this.fontFaceDestroy = null;
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
+
get csvExportParams() {
|
|
429
|
+
return {
|
|
430
|
+
processCellCallback: (params) => ['+', '-', '=', '@', '\t', '\n'].some((character) => String(params.value).startsWith(character))
|
|
431
|
+
? '#ERROR formulas not allowed'
|
|
432
|
+
: params.value,
|
|
433
|
+
};
|
|
434
|
+
}
|
|
428
435
|
}
|
|
429
436
|
__decorate([
|
|
430
437
|
observable
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -1207,6 +1207,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
1207
1207
|
private fontFaceDestroy;
|
|
1208
1208
|
private insertFontFace;
|
|
1209
1209
|
private destroyFontFace;
|
|
1210
|
+
private get csvExportParams();
|
|
1210
1211
|
}
|
|
1211
1212
|
|
|
1212
1213
|
declare const GridPro_base: (new (...args: any[]) => {
|
|
@@ -1288,23 +1289,8 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1288
1289
|
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
1289
1290
|
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
1290
1291
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
1291
|
-
/**
|
|
1292
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
1293
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
1294
|
-
* @internal
|
|
1295
|
-
*/
|
|
1296
1292
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
1297
|
-
/**
|
|
1298
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
1299
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
1300
|
-
* @internal
|
|
1301
|
-
*/
|
|
1302
1293
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
1303
|
-
/**
|
|
1304
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
1305
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
1306
|
-
* @internal
|
|
1307
|
-
*/
|
|
1308
1294
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
1309
1295
|
hasAttribute(qualifiedName: string): boolean;
|
|
1310
1296
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
@@ -1432,7 +1418,13 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1432
1418
|
readonly childElementCount: number;
|
|
1433
1419
|
readonly children: HTMLCollection;
|
|
1434
1420
|
readonly firstElementChild: Element;
|
|
1435
|
-
readonly lastElementChild: Element;
|
|
1421
|
+
readonly lastElementChild: Element; /**
|
|
1422
|
+
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
1423
|
+
* @deprecated use `applyTemplateDefinitions` instead.
|
|
1424
|
+
* @param columnDefs - The column definitions to apply to the grid.
|
|
1425
|
+
* @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.
|
|
1426
|
+
* @returns The merged column definitions.
|
|
1427
|
+
*/
|
|
1436
1428
|
append(...nodes: (string | Node)[]): void;
|
|
1437
1429
|
prepend(...nodes: (string | Node)[]): void;
|
|
1438
1430
|
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
|
@@ -1526,10 +1518,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1526
1518
|
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
1527
1519
|
onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1528
1520
|
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1529
|
-
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1530
|
-
* Grid Pro default configuration.
|
|
1531
|
-
* @public
|
|
1532
|
-
*/
|
|
1521
|
+
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1533
1522
|
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
1534
1523
|
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
1535
1524
|
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
@@ -1768,11 +1757,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1768
1757
|
hidden: boolean;
|
|
1769
1758
|
inert: boolean;
|
|
1770
1759
|
innerText: string;
|
|
1771
|
-
/**
|
|
1772
|
-
* Initializes the datasource.
|
|
1773
|
-
* @public
|
|
1774
|
-
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
1775
|
-
*/
|
|
1776
1760
|
lang: string;
|
|
1777
1761
|
readonly offsetHeight: number;
|
|
1778
1762
|
readonly offsetLeft: number;
|
|
@@ -1819,32 +1803,13 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1819
1803
|
getAttribute(qualifiedName: string): string;
|
|
1820
1804
|
getAttributeNS(namespace: string, localName: string): string;
|
|
1821
1805
|
getAttributeNames(): string[];
|
|
1822
|
-
/**
|
|
1823
|
-
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
1824
|
-
* @public
|
|
1825
|
-
*/
|
|
1826
1806
|
getAttributeNode(qualifiedName: string): Attr;
|
|
1827
1807
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
1828
1808
|
getBoundingClientRect(): DOMRect;
|
|
1829
1809
|
getClientRects(): DOMRectList;
|
|
1830
1810
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
1831
|
-
/**
|
|
1832
|
-
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
1833
|
-
* @remarks Will only happen for streaming DATASERER resources.
|
|
1834
|
-
* @internal
|
|
1835
|
-
*/
|
|
1836
1811
|
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
1837
|
-
/**
|
|
1838
|
-
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
1839
|
-
* @remarks Will only happen for streaming DATASERER resources.
|
|
1840
|
-
* @internal
|
|
1841
|
-
*/
|
|
1842
1812
|
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
1843
|
-
/**
|
|
1844
|
-
* Sends a DATA_LOGOFF when the resource is an active stream
|
|
1845
|
-
* @remarks Will only happen for streaming DATASERER resources.
|
|
1846
|
-
* @internal
|
|
1847
|
-
*/
|
|
1848
1813
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
1849
1814
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
1850
1815
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
@@ -1878,7 +1843,13 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1878
1843
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
1879
1844
|
webkitMatchesSelector(selectors: string): boolean;
|
|
1880
1845
|
readonly baseURI: string;
|
|
1881
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
1846
|
+
readonly childNodes: NodeListOf<ChildNode>; /**
|
|
1847
|
+
* Initializes the datasource and loads the data for the grid.
|
|
1848
|
+
* Handles both snapshot and stream data (for both REQUEST_SERVER and DATASERVER resource types).
|
|
1849
|
+
*
|
|
1850
|
+
* @param withFullInit - if true, will call datasource.init() with requiresMetadataFetch = true, fetching fresh metadata
|
|
1851
|
+
* @internal
|
|
1852
|
+
*/
|
|
1882
1853
|
readonly firstChild: ChildNode;
|
|
1883
1854
|
readonly isConnected: boolean;
|
|
1884
1855
|
readonly lastChild: ChildNode;
|
|
@@ -2010,7 +1981,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
2010
1981
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
2011
1982
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
2012
1983
|
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
2013
|
-
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
1984
|
+
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any; /**
|
|
1985
|
+
* Maps the transaction data to the row data mapper function, if it exists.
|
|
1986
|
+
* @param transaction - The transaction data to be mapped.
|
|
1987
|
+
* @param operations - The operations to be mapped. Can be 'add', 'update' or 'remove'.
|
|
1988
|
+
* @returns The mapped transaction (if the row data mapper function exists), or the original transaction.
|
|
1989
|
+
*/
|
|
2014
1990
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
2015
1991
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
2016
1992
|
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => 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.124.0",
|
|
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.124.0",
|
|
34
|
+
"@genesislcap/genx": "14.124.0",
|
|
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.124.0",
|
|
39
|
+
"@genesislcap/foundation-logger": "14.124.0",
|
|
40
|
+
"@genesislcap/foundation-ui": "14.124.0",
|
|
41
|
+
"@genesislcap/foundation-utils": "14.124.0",
|
|
42
42
|
"@microsoft/fast-colors": "^5.1.4",
|
|
43
43
|
"@microsoft/fast-components": "^2.21.3",
|
|
44
44
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
64
|
"customElements": "dist/custom-elements.json",
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "ecbf83be72d1f020f8b189282c5199479dd55a3e"
|
|
66
66
|
}
|