@genesislcap/grid-pro 14.162.5 → 14.163.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.
@@ -6885,7 +6885,7 @@
6885
6885
  "type": {
6886
6886
  "text": "ColumnState[]"
6887
6887
  },
6888
- "description": "Optionally set the `gridOptions` up with column state"
6888
+ "description": "Optionally set the grid up with column state"
6889
6889
  }
6890
6890
  ],
6891
6891
  "description": "Initializes the datasource.",
@@ -9721,7 +9721,7 @@
9721
9721
  "type": {
9722
9722
  "text": "ColumnState[]"
9723
9723
  },
9724
- "description": "Optionally set the `gridOptions` up with column state"
9724
+ "description": "Optionally set the grid up with column state"
9725
9725
  }
9726
9726
  ],
9727
9727
  "description": "Initializes the datasource.",
@@ -77,9 +77,24 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
77
77
  getBoundingClientRect(): DOMRect;
78
78
  getClientRects(): DOMRectList;
79
79
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
80
- getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
81
- getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
82
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
80
+ getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>; /**
81
+ * Clears the rowData and columnDefs for the grid.
82
+ * @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
83
+ * @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
84
+ * @internal
85
+ */
86
+ getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>; /**
87
+ * Clears the rowData and columnDefs for the grid.
88
+ * @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
89
+ * @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
90
+ * @internal
91
+ */
92
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; /**
93
+ * Clears the rowData and columnDefs for the grid.
94
+ * @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
95
+ * @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
96
+ * @internal
97
+ */
83
98
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
84
99
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
85
100
  getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
@@ -106,7 +121,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
106
121
  scrollTo(x: number, y: number): void;
107
122
  setAttribute(qualifiedName: string, value: string): void;
108
123
  setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
109
- setAttributeNode(attr: Attr): Attr;
124
+ setAttributeNode(attr: Attr): Attr; /**
125
+ * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
126
+ * Proxies to {@link @genesislcap/grid-pro#GridProGenesisDatasource.loadResourceData} but without the full init (no metadata fetch).
127
+ * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
128
+ * @internal
129
+ */
110
130
  setAttributeNodeNS(attr: Attr): Attr;
111
131
  setPointerCapture(pointerId: number): void;
112
132
  toggleAttribute(qualifiedName: string, force?: boolean): boolean;
@@ -357,7 +377,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
357
377
  * Initializes the datasource.
358
378
  * @public
359
379
  * @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
360
- * @param columnStates - Optionally set the `gridOptions` up with column state
380
+ * @param columnStates - Optionally set the grid up with column state
361
381
  * @remarks This method is called automatically when the element is connected to the DOM.
362
382
  */
363
383
  init(columnDefinitions?: ColDef[], columnStates?: ColumnState[]): Promise<void>;
@@ -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":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,UAAU,EAYX,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWtE;;;;GAIG;AACH,qBAGa,wBAAyB,SAAQ,6BAAqC;IAC3E,IAAI,EAAG,IAAI,CAAC;IACN,UAAU,EAAG,UAAU,CAAC;IAEpC,aAAa,SAAsB;IACnC,kBAAkB,SAA2B;IAG7C,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;IAKW,qBAAqB,UAAS;IAG/F,yBAAyB,UAAS;IAElC,OAAO,CAAC,OAAO,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A6B,CAAQ;IAE7C,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,mBAAmB,CAAkC;IAC7D,OAAO,CAAC,MAAM,CAAwE;IAEtF,iBAAiB;IAuBjB,oBAAoB;IAWX,SAAS,IAAI,IAAI;IAU1B;;;;;;OAMG;IACG,IAAI,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,YAAY,CAAC,EAAE,WAAW,EAAE;IAyDrE;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,KAAK;IA8BL;;;OAGG;IACH,OAAO;IAYP;;OAEG;IACH,WAAW;IAIX;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAUlB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;YACW,UAAU;IAmCxB;;;;;OAKG;YACW,kBAAkB;IAYhC;;;;;;OAMG;YACW,gBAAgB;IA0D9B,OAAO,CAAC,cAAc;IActB,YAAY,CAAC,MAAM,KAAA;IAOnB,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IA2C9B,OAAO,CAAC,mBAAmB;YAsBb,eAAe;IAc7B,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;IAK5B,gBAAgB,CACvB,aAAa,EAAE,kBAAkB,GAChC,kBAAkB,GAAG,IAAI,GAAG,SAAS;IAI/B,qBAAqB,CAC5B,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,GAC3C,IAAI;CAGR"}
@@ -83,7 +83,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
83
83
  * Initializes the datasource.
84
84
  * @public
85
85
  * @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
86
- * @param columnStates - Optionally set the `gridOptions` up with column state
86
+ * @param columnStates - Optionally set the grid up with column state
87
87
  * @remarks This method is called automatically when the element is connected to the DOM.
88
88
  */
89
89
  init(columnDefinitions, columnStates) {
@@ -100,9 +100,12 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
100
100
  return;
101
101
  }
102
102
  this.isRequestServer = meta.TYPE === ResourceType.REQUEST_SERVER;
103
- const gridOptions = Object.assign(Object.assign(Object.assign({ getRowId: (params) => params.data[this.rowId] }, (columnDefinitions && { columnDefs: columnDefinitions })), (columnStates && { columnState: columnStates })), this.deferredGridOptions);
103
+ const gridOptions = Object.assign(Object.assign({ getRowId: (params) => params.data[this.rowId] }, (columnDefinitions && { columnDefs: columnDefinitions })), this.deferredGridOptions);
104
104
  this.agGrid.gridOptions = Object.assign({}, gridOptions);
105
105
  this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
106
+ if (columnStates) {
107
+ this.agGrid.columnApi.applyColumnState({ state: columnStates });
108
+ }
106
109
  yield this.loadResourceData();
107
110
  }), { once: true });
108
111
  const filterDebounceTime = 600;
@@ -10658,7 +10658,7 @@
10658
10658
  {
10659
10659
  "kind": "Method",
10660
10660
  "canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#init:member(1)",
10661
- "docComment": "/**\n * Initializes the datasource.\n *\n * @remarks\n *\n * This method is called automatically when the element is connected to the DOM.\n *\n * @param columnDefinitions - Optionally set the `gridOptions` up with column definitions\n *\n * @param columnStates - Optionally set the `gridOptions` up with column state\n *\n * @public\n */\n",
10661
+ "docComment": "/**\n * Initializes the datasource.\n *\n * @remarks\n *\n * This method is called automatically when the element is connected to the DOM.\n *\n * @param columnDefinitions - Optionally set the `gridOptions` up with column definitions\n *\n * @param columnStates - Optionally set the grid up with column state\n *\n * @public\n */\n",
10662
10662
  "excerptTokens": [
10663
10663
  {
10664
10664
  "kind": "Content",
@@ -1780,7 +1780,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
1780
1780
  * Initializes the datasource.
1781
1781
  * @public
1782
1782
  * @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
1783
- * @param columnStates - Optionally set the `gridOptions` up with column state
1783
+ * @param columnStates - Optionally set the grid up with column state
1784
1784
  * @remarks This method is called automatically when the element is connected to the DOM.
1785
1785
  */
1786
1786
  init(columnDefinitions?: ColDef[], columnStates?: ColumnState[]): Promise<void>;
@@ -1928,9 +1928,24 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
1928
1928
  getBoundingClientRect(): DOMRect;
1929
1929
  getClientRects(): DOMRectList;
1930
1930
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
1931
- getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
1932
- getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
1933
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
1931
+ getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>; /**
1932
+ * Clears the rowData and columnDefs for the grid.
1933
+ * @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
1934
+ * @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
1935
+ * @internal
1936
+ */
1937
+ getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>; /**
1938
+ * Clears the rowData and columnDefs for the grid.
1939
+ * @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
1940
+ * @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
1941
+ * @internal
1942
+ */
1943
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; /**
1944
+ * Clears the rowData and columnDefs for the grid.
1945
+ * @remarks This is called when `reloadResourceData` happens, on criteria and filters change or full `reset`.
1946
+ * @param withColumnDefs - Whether to clear the columnDefs as well. Defaults to true.
1947
+ * @internal
1948
+ */
1934
1949
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
1935
1950
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
1936
1951
  getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
@@ -1957,7 +1972,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
1957
1972
  scrollTo(x: number, y: number): void;
1958
1973
  setAttribute(qualifiedName: string, value: string): void;
1959
1974
  setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
1960
- setAttributeNode(attr: Attr): Attr;
1975
+ setAttributeNode(attr: Attr): Attr; /**
1976
+ * Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream.
1977
+ * Proxies to {@link @genesislcap/grid-pro#GridProGenesisDatasource.loadResourceData} but without the full init (no metadata fetch).
1978
+ * @remarks This is used when the grid is already initialized and we want to reload the data due to a criteria/filter change.
1979
+ * @internal
1980
+ */
1961
1981
  setAttributeNodeNS(attr: Attr): Attr;
1962
1982
  setPointerCapture(pointerId: number): void;
1963
1983
  toggleAttribute(qualifiedName: string, force?: boolean): boolean;
@@ -17,7 +17,7 @@ init(columnDefinitions?: ColDef[], columnStates?: ColumnState[]): Promise<void>;
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
19
  | columnDefinitions | ColDef\[\] | _(Optional)_ Optionally set the <code>gridOptions</code> up with column definitions |
20
- | columnStates | ColumnState\[\] | _(Optional)_ Optionally set the <code>gridOptions</code> up with column state |
20
+ | columnStates | ColumnState\[\] | _(Optional)_ Optionally set the grid up with column state |
21
21
 
22
22
  **Returns:**
23
23
 
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.162.5",
4
+ "version": "14.163.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -30,20 +30,20 @@
30
30
  "test:debug": "genx test --debug"
31
31
  },
32
32
  "devDependencies": {
33
- "@genesislcap/foundation-testing": "14.162.5",
34
- "@genesislcap/genx": "14.162.5",
35
- "@genesislcap/rollup-builder": "14.162.5",
36
- "@genesislcap/ts-builder": "14.162.5",
37
- "@genesislcap/uvu-playwright-builder": "14.162.5",
38
- "@genesislcap/vite-builder": "14.162.5",
39
- "@genesislcap/webpack-builder": "14.162.5",
33
+ "@genesislcap/foundation-testing": "14.163.0",
34
+ "@genesislcap/genx": "14.163.0",
35
+ "@genesislcap/rollup-builder": "14.163.0",
36
+ "@genesislcap/ts-builder": "14.163.0",
37
+ "@genesislcap/uvu-playwright-builder": "14.163.0",
38
+ "@genesislcap/vite-builder": "14.163.0",
39
+ "@genesislcap/webpack-builder": "14.163.0",
40
40
  "rimraf": "^3.0.2"
41
41
  },
42
42
  "dependencies": {
43
- "@genesislcap/foundation-comms": "14.162.5",
44
- "@genesislcap/foundation-logger": "14.162.5",
45
- "@genesislcap/foundation-ui": "14.162.5",
46
- "@genesislcap/foundation-utils": "14.162.5",
43
+ "@genesislcap/foundation-comms": "14.163.0",
44
+ "@genesislcap/foundation-logger": "14.163.0",
45
+ "@genesislcap/foundation-ui": "14.163.0",
46
+ "@genesislcap/foundation-utils": "14.163.0",
47
47
  "@microsoft/fast-colors": "^5.3.1",
48
48
  "@microsoft/fast-components": "^2.30.6",
49
49
  "@microsoft/fast-element": "^1.12.0",
@@ -69,5 +69,5 @@
69
69
  "access": "public"
70
70
  },
71
71
  "customElements": "dist/custom-elements.json",
72
- "gitHead": "47733285b6e2d7988941967021ea4a48e9613aba"
72
+ "gitHead": "e141f8ae65838f2eb2f88f47da9d738566c2eda7"
73
73
  }