@genesislcap/grid-pro 14.120.3-alpha-7ba1ef7.0 → 14.121.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 +0 -44
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +13 -4
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +4 -28
- package/dist/grid-pro.d.ts +13 -4
- package/package.json +8 -8
|
@@ -6061,32 +6061,6 @@
|
|
|
6061
6061
|
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
6062
6062
|
}
|
|
6063
6063
|
},
|
|
6064
|
-
{
|
|
6065
|
-
"kind": "field",
|
|
6066
|
-
"name": "rowIdIsNotCustom",
|
|
6067
|
-
"type": {
|
|
6068
|
-
"text": "boolean"
|
|
6069
|
-
},
|
|
6070
|
-
"privacy": "private",
|
|
6071
|
-
"readonly": true,
|
|
6072
|
-
"inheritedFrom": {
|
|
6073
|
-
"name": "GridProGenesisDatasource",
|
|
6074
|
-
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
6075
|
-
}
|
|
6076
|
-
},
|
|
6077
|
-
{
|
|
6078
|
-
"kind": "field",
|
|
6079
|
-
"name": "defaultRowIdByResourceType",
|
|
6080
|
-
"type": {
|
|
6081
|
-
"text": "string"
|
|
6082
|
-
},
|
|
6083
|
-
"privacy": "private",
|
|
6084
|
-
"readonly": true,
|
|
6085
|
-
"inheritedFrom": {
|
|
6086
|
-
"name": "GridProGenesisDatasource",
|
|
6087
|
-
"module": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"
|
|
6088
|
-
}
|
|
6089
|
-
},
|
|
6090
6064
|
{
|
|
6091
6065
|
"kind": "method",
|
|
6092
6066
|
"name": "init",
|
|
@@ -8342,24 +8316,6 @@
|
|
|
8342
8316
|
"privacy": "private",
|
|
8343
8317
|
"readonly": true
|
|
8344
8318
|
},
|
|
8345
|
-
{
|
|
8346
|
-
"kind": "field",
|
|
8347
|
-
"name": "rowIdIsNotCustom",
|
|
8348
|
-
"type": {
|
|
8349
|
-
"text": "boolean"
|
|
8350
|
-
},
|
|
8351
|
-
"privacy": "private",
|
|
8352
|
-
"readonly": true
|
|
8353
|
-
},
|
|
8354
|
-
{
|
|
8355
|
-
"kind": "field",
|
|
8356
|
-
"name": "defaultRowIdByResourceType",
|
|
8357
|
-
"type": {
|
|
8358
|
-
"text": "string"
|
|
8359
|
-
},
|
|
8360
|
-
"privacy": "private",
|
|
8361
|
-
"readonly": true
|
|
8362
|
-
},
|
|
8363
8319
|
{
|
|
8364
8320
|
"kind": "method",
|
|
8365
8321
|
"name": "init",
|
|
@@ -120,7 +120,13 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
120
120
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
121
121
|
webkitMatchesSelector(selectors: string): boolean;
|
|
122
122
|
readonly baseURI: string;
|
|
123
|
-
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
|
+
*/
|
|
124
130
|
readonly firstChild: ChildNode;
|
|
125
131
|
readonly isConnected: boolean;
|
|
126
132
|
readonly lastChild: ChildNode;
|
|
@@ -252,7 +258,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
252
258
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
253
259
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
254
260
|
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
255
|
-
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
|
+
*/
|
|
256
267
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
257
268
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
258
269
|
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
@@ -380,8 +391,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
380
391
|
* @internal
|
|
381
392
|
*/
|
|
382
393
|
private get rowId();
|
|
383
|
-
private get rowIdIsNotCustom();
|
|
384
|
-
private get defaultRowIdByResourceType();
|
|
385
394
|
/**
|
|
386
395
|
* Initializes the datasource.
|
|
387
396
|
* @public
|
|
@@ -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,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
|
|
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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ID;
|
|
106
106
|
return DatasourceDefaults.DATASERVER_ROW_ID;
|
|
107
107
|
}
|
|
108
|
-
get rowIdIsNotCustom() {
|
|
109
|
-
return (!this.rowIdAttr ||
|
|
110
|
-
this.rowIdAttr === DatasourceDefaults.REQUEST_SERVER_ROW_ID ||
|
|
111
|
-
this.rowIdAttr === DatasourceDefaults.DATASERVER_ROW_ID);
|
|
112
|
-
}
|
|
113
|
-
get defaultRowIdByResourceType() {
|
|
114
|
-
return this.isRequestServer
|
|
115
|
-
? DatasourceDefaults.REQUEST_SERVER_ROW_ID
|
|
116
|
-
: DatasourceDefaults.DATASERVER_ROW_ID;
|
|
117
|
-
}
|
|
118
108
|
/**
|
|
119
109
|
* Initializes the datasource.
|
|
120
110
|
* @public
|
|
@@ -458,29 +448,15 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
458
448
|
}
|
|
459
449
|
handleStreamDeletes(deletedRows) {
|
|
460
450
|
deletedRows === null || deletedRows === void 0 ? void 0 : deletedRows.forEach((deleteData) => {
|
|
461
|
-
|
|
462
|
-
this.agTransaction.remove.push({ [this.rowId]: deleteData[this.rowId] });
|
|
463
|
-
}
|
|
464
|
-
else {
|
|
465
|
-
const rowToBeDeleted = Object.values(Object.fromEntries(this.rows)).find((obj) => obj[this.defaultRowIdByResourceType] === deleteData[this.defaultRowIdByResourceType]);
|
|
466
|
-
this.agTransaction.remove.push({ [this.rowId]: rowToBeDeleted[this.rowId] });
|
|
467
|
-
}
|
|
451
|
+
this.agTransaction.remove.push({ [this.rowId]: deleteData[this.rowId] });
|
|
468
452
|
this.rows.delete(deleteData[this.rowId]);
|
|
469
453
|
});
|
|
470
454
|
}
|
|
471
455
|
handleStreamUpdates(updatedRows) {
|
|
472
456
|
updatedRows === null || updatedRows === void 0 ? void 0 : updatedRows.forEach((updateData) => {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
updatedRow = Object.assign(Object.assign({}, rowToBeUpdated), updateData);
|
|
477
|
-
this.agTransaction.update.push(updatedRow);
|
|
478
|
-
}
|
|
479
|
-
else {
|
|
480
|
-
const rowToBeUpdated = Object.values(Object.fromEntries(this.rows)).find((obj) => obj[this.defaultRowIdByResourceType] === updateData[this.defaultRowIdByResourceType]);
|
|
481
|
-
updatedRow = Object.assign(Object.assign({}, rowToBeUpdated), updateData);
|
|
482
|
-
this.agTransaction.update.push(updatedRow);
|
|
483
|
-
}
|
|
457
|
+
const rowToBeUpdated = this.rows.get(updateData[this.rowId]);
|
|
458
|
+
const updatedRow = Object.assign(Object.assign({}, rowToBeUpdated), updateData);
|
|
459
|
+
this.agTransaction.update.push(updatedRow);
|
|
484
460
|
this.rows.set(updateData[this.rowId], updatedRow);
|
|
485
461
|
});
|
|
486
462
|
}
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -1659,8 +1659,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1659
1659
|
* @internal
|
|
1660
1660
|
*/
|
|
1661
1661
|
private get rowId();
|
|
1662
|
-
private get rowIdIsNotCustom();
|
|
1663
|
-
private get defaultRowIdByResourceType();
|
|
1664
1662
|
/**
|
|
1665
1663
|
* Initializes the datasource.
|
|
1666
1664
|
* @public
|
|
@@ -1856,7 +1854,13 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1856
1854
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
1857
1855
|
webkitMatchesSelector(selectors: string): boolean;
|
|
1858
1856
|
readonly baseURI: string;
|
|
1859
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
1857
|
+
readonly childNodes: NodeListOf<ChildNode>; /**
|
|
1858
|
+
* Initializes the datasource and loads the data for the grid.
|
|
1859
|
+
* Handles both snapshot and stream data (for both REQUEST_SERVER and DATASERVER resource types).
|
|
1860
|
+
*
|
|
1861
|
+
* @param withFullInit - if true, will call datasource.init() with requiresMetadataFetch = true, fetching fresh metadata
|
|
1862
|
+
* @internal
|
|
1863
|
+
*/
|
|
1860
1864
|
readonly firstChild: ChildNode;
|
|
1861
1865
|
readonly isConnected: boolean;
|
|
1862
1866
|
readonly lastChild: ChildNode;
|
|
@@ -1988,7 +1992,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1988
1992
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1989
1993
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
1990
1994
|
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1991
|
-
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
1995
|
+
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any; /**
|
|
1996
|
+
* Maps the transaction data to the row data mapper function, if it exists.
|
|
1997
|
+
* @param transaction - The transaction data to be mapped.
|
|
1998
|
+
* @param operations - The operations to be mapped. Can be 'add', 'update' or 'remove'.
|
|
1999
|
+
* @returns The mapped transaction (if the row data mapper function exists), or the original transaction.
|
|
2000
|
+
*/
|
|
1992
2001
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
1993
2002
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
1994
2003
|
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.121.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.121.1",
|
|
34
|
+
"@genesislcap/genx": "14.121.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.121.1",
|
|
39
|
+
"@genesislcap/foundation-logger": "14.121.1",
|
|
40
|
+
"@genesislcap/foundation-ui": "14.121.1",
|
|
41
|
+
"@genesislcap/foundation-utils": "14.121.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",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
64
|
"customElements": "dist/custom-elements.json",
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "8e78bf8e11be74bf258060aedab854dea1c7e11b"
|
|
66
66
|
}
|