@genesislcap/grid-pro 14.122.1 → 14.122.2-alpha-fb3aeba.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/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +26 -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 +6 -2
- package/dist/grid-pro.d.ts +26 -13
- package/package.json +8 -8
|
@@ -34,6 +34,11 @@ 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
|
+
*/
|
|
37
42
|
lang: string;
|
|
38
43
|
readonly offsetHeight: number;
|
|
39
44
|
readonly offsetLeft: number;
|
|
@@ -80,13 +85,32 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
80
85
|
getAttribute(qualifiedName: string): string;
|
|
81
86
|
getAttributeNS(namespace: string, localName: string): string;
|
|
82
87
|
getAttributeNames(): string[];
|
|
88
|
+
/**
|
|
89
|
+
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
83
92
|
getAttributeNode(qualifiedName: string): Attr;
|
|
84
93
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
85
94
|
getBoundingClientRect(): DOMRect;
|
|
86
95
|
getClientRects(): DOMRectList;
|
|
87
96
|
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
|
+
*/
|
|
88
102
|
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
|
+
*/
|
|
89
108
|
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
|
+
*/
|
|
90
114
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
91
115
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
92
116
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
@@ -120,13 +144,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
120
144
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
121
145
|
webkitMatchesSelector(selectors: string): boolean;
|
|
122
146
|
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
|
-
*/
|
|
147
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
130
148
|
readonly firstChild: ChildNode;
|
|
131
149
|
readonly isConnected: boolean;
|
|
132
150
|
readonly lastChild: ChildNode;
|
|
@@ -258,12 +276,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
258
276
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
259
277
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
260
278
|
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
|
-
*/
|
|
279
|
+
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
267
280
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
268
281
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
269
282
|
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,EAYX,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;;;;;;;;;;;;;;;;;;;;;;;;;;IA0HC;;;;OAIG;;;;;;;;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oB;IASX,SAAS,IAAI,IAAI;IAQ1B,OAAO,KAAK,MAAM,GAEjB;IAID;;;;OAIG;IACH,OAAO,KAAK,KAAK,GAIhB;IAED;;;;OAIG;IACG,IAAI;IAmDV;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,KAAK;IA6BL;;;OAGG;IACH,OAAO;IAKP;;OAEG;IACH,WAAW;IAIX;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAUlB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAgBlB;;;;;OAKG;YACW,kBAAkB;IAWhC;;;;;;OAMG;YACW,gBAAgB;IAgD9B,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IA2C9B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,sBAAsB;IAmC9B,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,wBAAwB;IAqBhC;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAyBtB,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,eAAe;IAwEvB,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { Auth, Datasource, DatasourceDefaults, FieldTypeEnum,
|
|
2
|
+
import { Auth, Datasource, DatasourceDefaults, FieldTypeEnum, 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,8 +277,12 @@ 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.includes('_NACK')) {
|
|
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();
|
|
282
286
|
return;
|
|
283
287
|
}
|
|
284
288
|
this.dataSubWasLoggedOff = false;
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -1768,6 +1768,11 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1768
1768
|
hidden: boolean;
|
|
1769
1769
|
inert: boolean;
|
|
1770
1770
|
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
|
+
*/
|
|
1771
1776
|
lang: string;
|
|
1772
1777
|
readonly offsetHeight: number;
|
|
1773
1778
|
readonly offsetLeft: number;
|
|
@@ -1814,13 +1819,32 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1814
1819
|
getAttribute(qualifiedName: string): string;
|
|
1815
1820
|
getAttributeNS(namespace: string, localName: string): string;
|
|
1816
1821
|
getAttributeNames(): string[];
|
|
1822
|
+
/**
|
|
1823
|
+
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
1824
|
+
* @public
|
|
1825
|
+
*/
|
|
1817
1826
|
getAttributeNode(qualifiedName: string): Attr;
|
|
1818
1827
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
1819
1828
|
getBoundingClientRect(): DOMRect;
|
|
1820
1829
|
getClientRects(): DOMRectList;
|
|
1821
1830
|
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
|
+
*/
|
|
1822
1836
|
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
|
+
*/
|
|
1823
1842
|
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
|
+
*/
|
|
1824
1848
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
1825
1849
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
1826
1850
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
@@ -1854,13 +1878,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1854
1878
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
1855
1879
|
webkitMatchesSelector(selectors: string): boolean;
|
|
1856
1880
|
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
|
-
*/
|
|
1881
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
1864
1882
|
readonly firstChild: ChildNode;
|
|
1865
1883
|
readonly isConnected: boolean;
|
|
1866
1884
|
readonly lastChild: ChildNode;
|
|
@@ -1992,12 +2010,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1992
2010
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1993
2011
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
1994
2012
|
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
|
-
*/
|
|
2013
|
+
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
2001
2014
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
2002
2015
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
2003
2016
|
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.122.
|
|
4
|
+
"version": "14.122.2-alpha-fb3aeba.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.122.
|
|
34
|
-
"@genesislcap/genx": "14.122.
|
|
33
|
+
"@genesislcap/foundation-testing": "14.122.2-alpha-fb3aeba.0",
|
|
34
|
+
"@genesislcap/genx": "14.122.2-alpha-fb3aeba.0",
|
|
35
35
|
"rimraf": "^3.0.2"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@genesislcap/foundation-comms": "14.122.
|
|
39
|
-
"@genesislcap/foundation-logger": "14.122.
|
|
40
|
-
"@genesislcap/foundation-ui": "14.122.
|
|
41
|
-
"@genesislcap/foundation-utils": "14.122.
|
|
38
|
+
"@genesislcap/foundation-comms": "14.122.2-alpha-fb3aeba.0",
|
|
39
|
+
"@genesislcap/foundation-logger": "14.122.2-alpha-fb3aeba.0",
|
|
40
|
+
"@genesislcap/foundation-ui": "14.122.2-alpha-fb3aeba.0",
|
|
41
|
+
"@genesislcap/foundation-utils": "14.122.2-alpha-fb3aeba.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": "6573294e6ea568ff48d3c4450567a65bdba521f5"
|
|
66
66
|
}
|