@genesislcap/grid-pro 14.118.0 → 14.118.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.
@@ -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;
@@ -1 +1 @@
1
- {"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-gen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.validResourceName(this.resourceName) &&
117
117
  this.connect.isConnected) {
118
118
  const meta = yield this.connect.getMetadata(this.resourceName);
119
+ if (!meta) {
120
+ logger.warn(`No metadata found for ${this.resourceName}, datasource will not work. Falling back to local columnDefs/rowData.`);
121
+ return;
122
+ }
119
123
  this.isRequestServer = meta.TYPE === ResourceType.REQUEST_SERVER;
120
124
  const gridOptions = Object.assign({ getRowId: (params) => params.data[this.rowId] }, this.deferredGridOptions);
121
125
  this.agGrid.gridOptions = Object.assign({}, gridOptions);
@@ -130,7 +134,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
130
134
  });
131
135
  return;
132
136
  }
133
- logger.warn(`Application not connected, falling back to local columnDefs/rowData`);
137
+ logger.warn(`Application not connected or invalid resource name, datasource will not work. Falling back to local columnDefs/rowData.`);
134
138
  });
135
139
  }
136
140
  /**
@@ -1854,7 +1854,13 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
1854
1854
  toggleAttribute(qualifiedName: string, force?: boolean): boolean;
1855
1855
  webkitMatchesSelector(selectors: string): boolean;
1856
1856
  readonly baseURI: string;
1857
- 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
+ */
1858
1864
  readonly firstChild: ChildNode;
1859
1865
  readonly isConnected: boolean;
1860
1866
  readonly lastChild: ChildNode;
@@ -1986,7 +1992,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
1986
1992
  onclose: (this: GlobalEventHandlers, ev: Event) => any;
1987
1993
  oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1988
1994
  oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
1989
- 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
+ */
1990
2001
  ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
1991
2002
  ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
1992
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.118.0",
4
+ "version": "14.118.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.118.0",
34
- "@genesislcap/genx": "14.118.0",
33
+ "@genesislcap/foundation-testing": "14.118.1",
34
+ "@genesislcap/genx": "14.118.1",
35
35
  "rimraf": "^3.0.2"
36
36
  },
37
37
  "dependencies": {
38
- "@genesislcap/foundation-comms": "14.118.0",
39
- "@genesislcap/foundation-logger": "14.118.0",
40
- "@genesislcap/foundation-ui": "14.118.0",
41
- "@genesislcap/foundation-utils": "14.118.0",
38
+ "@genesislcap/foundation-comms": "14.118.1",
39
+ "@genesislcap/foundation-logger": "14.118.1",
40
+ "@genesislcap/foundation-ui": "14.118.1",
41
+ "@genesislcap/foundation-utils": "14.118.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": "03508c2fc32d208bb7a037a3587b39690cfa752d"
65
+ "gitHead": "179ca69eb20ca2d30c62890f68e6bf60649f0ba6"
66
66
  }