@genesislcap/grid-pro 14.120.2 → 14.120.3-alpha-7ba1ef7.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 +44 -0
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +4 -13
- 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 +28 -4
- package/dist/grid-pro.d.ts +4 -13
- package/package.json +8 -8
|
@@ -6061,6 +6061,32 @@
|
|
|
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
|
+
},
|
|
6064
6090
|
{
|
|
6065
6091
|
"kind": "method",
|
|
6066
6092
|
"name": "init",
|
|
@@ -8316,6 +8342,24 @@
|
|
|
8316
8342
|
"privacy": "private",
|
|
8317
8343
|
"readonly": true
|
|
8318
8344
|
},
|
|
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
|
+
},
|
|
8319
8363
|
{
|
|
8320
8364
|
"kind": "method",
|
|
8321
8365
|
"name": "init",
|
|
@@ -120,13 +120,7 @@ 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>;
|
|
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
|
-
*/
|
|
123
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
130
124
|
readonly firstChild: ChildNode;
|
|
131
125
|
readonly isConnected: boolean;
|
|
132
126
|
readonly lastChild: ChildNode;
|
|
@@ -258,12 +252,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
258
252
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
259
253
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
260
254
|
oncuechange: (this: GlobalEventHandlers, ev: Event) => 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
|
-
*/
|
|
255
|
+
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
267
256
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
268
257
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
269
258
|
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
@@ -391,6 +380,8 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
391
380
|
* @internal
|
|
392
381
|
*/
|
|
393
382
|
private get rowId();
|
|
383
|
+
private get rowIdIsNotCustom();
|
|
384
|
+
private get defaultRowIdByResourceType();
|
|
394
385
|
/**
|
|
395
386
|
* Initializes the datasource.
|
|
396
387
|
* @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,UA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aults.REQUEST_SERVER_ROW_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
|
+
}
|
|
108
118
|
/**
|
|
109
119
|
* Initializes the datasource.
|
|
110
120
|
* @public
|
|
@@ -448,15 +458,29 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
448
458
|
}
|
|
449
459
|
handleStreamDeletes(deletedRows) {
|
|
450
460
|
deletedRows === null || deletedRows === void 0 ? void 0 : deletedRows.forEach((deleteData) => {
|
|
451
|
-
|
|
461
|
+
if (this.rowIdIsNotCustom) {
|
|
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
|
+
}
|
|
452
468
|
this.rows.delete(deleteData[this.rowId]);
|
|
453
469
|
});
|
|
454
470
|
}
|
|
455
471
|
handleStreamUpdates(updatedRows) {
|
|
456
472
|
updatedRows === null || updatedRows === void 0 ? void 0 : updatedRows.forEach((updateData) => {
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
473
|
+
let updatedRow;
|
|
474
|
+
if (this.rowIdIsNotCustom) {
|
|
475
|
+
const rowToBeUpdated = this.rows.get(updateData[this.rowId]);
|
|
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
|
+
}
|
|
460
484
|
this.rows.set(updateData[this.rowId], updatedRow);
|
|
461
485
|
});
|
|
462
486
|
}
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -1659,6 +1659,8 @@ 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();
|
|
1662
1664
|
/**
|
|
1663
1665
|
* Initializes the datasource.
|
|
1664
1666
|
* @public
|
|
@@ -1854,13 +1856,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1854
1856
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
1855
1857
|
webkitMatchesSelector(selectors: string): boolean;
|
|
1856
1858
|
readonly baseURI: string;
|
|
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
|
-
*/
|
|
1859
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
1864
1860
|
readonly firstChild: ChildNode;
|
|
1865
1861
|
readonly isConnected: boolean;
|
|
1866
1862
|
readonly lastChild: ChildNode;
|
|
@@ -1992,12 +1988,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1992
1988
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1993
1989
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
1994
1990
|
oncuechange: (this: GlobalEventHandlers, ev: Event) => 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
|
-
*/
|
|
1991
|
+
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
2001
1992
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
2002
1993
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
2003
1994
|
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.120.
|
|
4
|
+
"version": "14.120.3-alpha-7ba1ef7.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.120.
|
|
34
|
-
"@genesislcap/genx": "14.120.
|
|
33
|
+
"@genesislcap/foundation-testing": "14.120.3-alpha-7ba1ef7.0",
|
|
34
|
+
"@genesislcap/genx": "14.120.3-alpha-7ba1ef7.0",
|
|
35
35
|
"rimraf": "^3.0.2"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@genesislcap/foundation-comms": "14.120.
|
|
39
|
-
"@genesislcap/foundation-logger": "14.120.
|
|
40
|
-
"@genesislcap/foundation-ui": "14.120.
|
|
41
|
-
"@genesislcap/foundation-utils": "14.120.
|
|
38
|
+
"@genesislcap/foundation-comms": "14.120.3-alpha-7ba1ef7.0",
|
|
39
|
+
"@genesislcap/foundation-logger": "14.120.3-alpha-7ba1ef7.0",
|
|
40
|
+
"@genesislcap/foundation-ui": "14.120.3-alpha-7ba1ef7.0",
|
|
41
|
+
"@genesislcap/foundation-utils": "14.120.3-alpha-7ba1ef7.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": "f77f47498e0833672401df009209b294e077843d"
|
|
66
66
|
}
|