@genesislcap/grid-pro 14.310.0 → 14.310.2-alpha-8853fb3.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 +33 -0
- package/dist/dts/grid-pro.d.ts +18 -0
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/grid-pro.js +68 -0
- package/dist/grid-pro.api.json +62 -0
- package/dist/grid-pro.d.ts +18 -0
- package/docs/api/grid-pro.gridpro.getselectedrows.md +19 -0
- package/docs/api/grid-pro.gridpro.hasselectedrows.md +19 -0
- package/docs/api/grid-pro.gridpro.md +28 -0
- package/docs/api-report.md.api.md +2 -0
- package/package.json +13 -13
|
@@ -798,6 +798,39 @@
|
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
800
|
},
|
|
801
|
+
{
|
|
802
|
+
"kind": "method",
|
|
803
|
+
"name": "getSelectedRows",
|
|
804
|
+
"return": {
|
|
805
|
+
"type": {
|
|
806
|
+
"text": ""
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
"description": "Gets the currently selected rows from the grid",
|
|
810
|
+
"privacy": "public"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"kind": "method",
|
|
814
|
+
"name": "getCellRangeRowData",
|
|
815
|
+
"privacy": "private",
|
|
816
|
+
"return": {
|
|
817
|
+
"type": {
|
|
818
|
+
"text": ""
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
"description": "Gets the row data from selected cell ranges"
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"kind": "method",
|
|
825
|
+
"name": "hasSelectedRows",
|
|
826
|
+
"return": {
|
|
827
|
+
"type": {
|
|
828
|
+
"text": ""
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
"description": "Checks if any rows are currently selected",
|
|
832
|
+
"privacy": "public"
|
|
833
|
+
},
|
|
801
834
|
{
|
|
802
835
|
"kind": "method",
|
|
803
836
|
"name": "saveColumnState",
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -552,6 +552,24 @@ export declare class GridPro extends GridPro_base {
|
|
|
552
552
|
disconnectedCallback(): void;
|
|
553
553
|
combineAllGridComponents(gridOptionsComponents: GridComponents): GridComponents;
|
|
554
554
|
statePersistanceEnabled(): boolean;
|
|
555
|
+
/**
|
|
556
|
+
* Gets the currently selected rows from the grid
|
|
557
|
+
* @public
|
|
558
|
+
* @returns Array of selected row data
|
|
559
|
+
*/
|
|
560
|
+
getSelectedRows(): any[];
|
|
561
|
+
/**
|
|
562
|
+
* Gets the row data from selected cell ranges
|
|
563
|
+
* @private
|
|
564
|
+
* @returns Array containing the row data from selected cell ranges, or empty array if none
|
|
565
|
+
*/
|
|
566
|
+
private getCellRangeRowData;
|
|
567
|
+
/**
|
|
568
|
+
* Checks if any rows are currently selected
|
|
569
|
+
* @public
|
|
570
|
+
* @returns True if rows are selected, false otherwise
|
|
571
|
+
*/
|
|
572
|
+
hasSelectedRows(): boolean;
|
|
555
573
|
/**
|
|
556
574
|
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
557
575
|
* a stack overflow of calls to resize, so we need to debounce it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EAET,OAAO,EACP,WAAW,EACX,UAAU,EAEX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,WAAW,EAAyB,IAAI,EAAkB,MAAM,yBAAyB,CAAC;AASnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAuB/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAcrE,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAQL,i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AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -283,6 +283,74 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
283
283
|
}
|
|
284
284
|
return true;
|
|
285
285
|
}
|
|
286
|
+
/**
|
|
287
|
+
* Gets the currently selected rows from the grid
|
|
288
|
+
* @public
|
|
289
|
+
* @returns Array of selected row data
|
|
290
|
+
*/
|
|
291
|
+
getSelectedRows() {
|
|
292
|
+
var _a, _b;
|
|
293
|
+
try {
|
|
294
|
+
if (!this.initialised || !this.gridApi) {
|
|
295
|
+
return [];
|
|
296
|
+
}
|
|
297
|
+
const rowSelectionMode = (_a = this.gridOptions) === null || _a === void 0 ? void 0 : _a.rowSelection;
|
|
298
|
+
// If row selection is enabled (single or multiple), use row selection only
|
|
299
|
+
if (rowSelectionMode === 'single' || rowSelectionMode === 'multiple') {
|
|
300
|
+
if (this.gridApi.getSelectedRows && this.gridApi.getSelectedRows().length > 0) {
|
|
301
|
+
return this.gridApi.getSelectedRows();
|
|
302
|
+
}
|
|
303
|
+
return [];
|
|
304
|
+
}
|
|
305
|
+
// If row selection is disabled (undefined/none), use cell range selection
|
|
306
|
+
if (((_b = this.gridApi) === null || _b === void 0 ? void 0 : _b.getCellRanges) && this.gridApi.getCellRanges().length > 0) {
|
|
307
|
+
return this.getCellRangeRowData();
|
|
308
|
+
}
|
|
309
|
+
return [];
|
|
310
|
+
}
|
|
311
|
+
catch (error) {
|
|
312
|
+
logger.error('Grid Pro: Error getting selected rows:', error);
|
|
313
|
+
return [];
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Gets the row data from selected cell ranges
|
|
318
|
+
* @private
|
|
319
|
+
* @returns Array containing the row data from selected cell ranges, or empty array if none
|
|
320
|
+
*/
|
|
321
|
+
getCellRangeRowData() {
|
|
322
|
+
var _a;
|
|
323
|
+
if (!((_a = this.gridApi) === null || _a === void 0 ? void 0 : _a.getCellRanges)) {
|
|
324
|
+
return [];
|
|
325
|
+
}
|
|
326
|
+
const cellRanges = this.gridApi.getCellRanges();
|
|
327
|
+
if (cellRanges.length === 0) {
|
|
328
|
+
return [];
|
|
329
|
+
}
|
|
330
|
+
const rowData = [];
|
|
331
|
+
// Collect unique row data from all selected cell ranges
|
|
332
|
+
cellRanges.forEach((range) => {
|
|
333
|
+
const startIndex = range.startRow.rowIndex;
|
|
334
|
+
const endIndex = range.endRow.rowIndex;
|
|
335
|
+
// Generate array of indices and iterate
|
|
336
|
+
Array.from({ length: endIndex - startIndex + 1 }, (_, i) => startIndex + i).forEach((rowIndex) => {
|
|
337
|
+
const rowNode = this.gridApi.getDisplayedRowAtIndex(rowIndex);
|
|
338
|
+
if ((rowNode === null || rowNode === void 0 ? void 0 : rowNode.data) && !rowData.some((existing) => existing === rowNode.data)) {
|
|
339
|
+
rowData.push(rowNode.data);
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
});
|
|
343
|
+
return rowData;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Checks if any rows are currently selected
|
|
347
|
+
* @public
|
|
348
|
+
* @returns True if rows are selected, false otherwise
|
|
349
|
+
*/
|
|
350
|
+
hasSelectedRows() {
|
|
351
|
+
const selectedRows = this.getSelectedRows();
|
|
352
|
+
return selectedRows.length > 0;
|
|
353
|
+
}
|
|
286
354
|
/**
|
|
287
355
|
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
288
356
|
* a stack overflow of calls to resize, so we need to debounce it.
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -10799,6 +10799,37 @@
|
|
|
10799
10799
|
"isAbstract": false,
|
|
10800
10800
|
"name": "getSavedColumnState"
|
|
10801
10801
|
},
|
|
10802
|
+
{
|
|
10803
|
+
"kind": "Method",
|
|
10804
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#getSelectedRows:member(1)",
|
|
10805
|
+
"docComment": "/**\n * Gets the currently selected rows from the grid\n *\n * @returns Array of selected row data\n *\n * @public\n */\n",
|
|
10806
|
+
"excerptTokens": [
|
|
10807
|
+
{
|
|
10808
|
+
"kind": "Content",
|
|
10809
|
+
"text": "getSelectedRows(): "
|
|
10810
|
+
},
|
|
10811
|
+
{
|
|
10812
|
+
"kind": "Content",
|
|
10813
|
+
"text": "any[]"
|
|
10814
|
+
},
|
|
10815
|
+
{
|
|
10816
|
+
"kind": "Content",
|
|
10817
|
+
"text": ";"
|
|
10818
|
+
}
|
|
10819
|
+
],
|
|
10820
|
+
"isStatic": false,
|
|
10821
|
+
"returnTypeTokenRange": {
|
|
10822
|
+
"startIndex": 1,
|
|
10823
|
+
"endIndex": 2
|
|
10824
|
+
},
|
|
10825
|
+
"releaseTag": "Public",
|
|
10826
|
+
"isProtected": false,
|
|
10827
|
+
"overloadIndex": 1,
|
|
10828
|
+
"parameters": [],
|
|
10829
|
+
"isOptional": false,
|
|
10830
|
+
"isAbstract": false,
|
|
10831
|
+
"name": "getSelectedRows"
|
|
10832
|
+
},
|
|
10802
10833
|
{
|
|
10803
10834
|
"kind": "Method",
|
|
10804
10835
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#globalEventListener:member(1)",
|
|
@@ -11192,6 +11223,37 @@
|
|
|
11192
11223
|
"isProtected": false,
|
|
11193
11224
|
"isAbstract": false
|
|
11194
11225
|
},
|
|
11226
|
+
{
|
|
11227
|
+
"kind": "Method",
|
|
11228
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#hasSelectedRows:member(1)",
|
|
11229
|
+
"docComment": "/**\n * Checks if any rows are currently selected\n *\n * @returns True if rows are selected, false otherwise\n *\n * @public\n */\n",
|
|
11230
|
+
"excerptTokens": [
|
|
11231
|
+
{
|
|
11232
|
+
"kind": "Content",
|
|
11233
|
+
"text": "hasSelectedRows(): "
|
|
11234
|
+
},
|
|
11235
|
+
{
|
|
11236
|
+
"kind": "Content",
|
|
11237
|
+
"text": "boolean"
|
|
11238
|
+
},
|
|
11239
|
+
{
|
|
11240
|
+
"kind": "Content",
|
|
11241
|
+
"text": ";"
|
|
11242
|
+
}
|
|
11243
|
+
],
|
|
11244
|
+
"isStatic": false,
|
|
11245
|
+
"returnTypeTokenRange": {
|
|
11246
|
+
"startIndex": 1,
|
|
11247
|
+
"endIndex": 2
|
|
11248
|
+
},
|
|
11249
|
+
"releaseTag": "Public",
|
|
11250
|
+
"isProtected": false,
|
|
11251
|
+
"overloadIndex": 1,
|
|
11252
|
+
"parameters": [],
|
|
11253
|
+
"isOptional": false,
|
|
11254
|
+
"isAbstract": false,
|
|
11255
|
+
"name": "hasSelectedRows"
|
|
11256
|
+
},
|
|
11195
11257
|
{
|
|
11196
11258
|
"kind": "Property",
|
|
11197
11259
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#headerCaseType:member",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -1861,6 +1861,24 @@ export declare class GridPro extends GridPro_base {
|
|
|
1861
1861
|
disconnectedCallback(): void;
|
|
1862
1862
|
combineAllGridComponents(gridOptionsComponents: GridComponents): GridComponents;
|
|
1863
1863
|
statePersistanceEnabled(): boolean;
|
|
1864
|
+
/**
|
|
1865
|
+
* Gets the currently selected rows from the grid
|
|
1866
|
+
* @public
|
|
1867
|
+
* @returns Array of selected row data
|
|
1868
|
+
*/
|
|
1869
|
+
getSelectedRows(): any[];
|
|
1870
|
+
/**
|
|
1871
|
+
* Gets the row data from selected cell ranges
|
|
1872
|
+
* @private
|
|
1873
|
+
* @returns Array containing the row data from selected cell ranges, or empty array if none
|
|
1874
|
+
*/
|
|
1875
|
+
private getCellRangeRowData;
|
|
1876
|
+
/**
|
|
1877
|
+
* Checks if any rows are currently selected
|
|
1878
|
+
* @public
|
|
1879
|
+
* @returns True if rows are selected, false otherwise
|
|
1880
|
+
*/
|
|
1881
|
+
hasSelectedRows(): boolean;
|
|
1864
1882
|
/**
|
|
1865
1883
|
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
1866
1884
|
* a stack overflow of calls to resize, so we need to debounce it.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridPro](./grid-pro.gridpro.md) > [getSelectedRows](./grid-pro.gridpro.getselectedrows.md)
|
|
4
|
+
|
|
5
|
+
## GridPro.getSelectedRows() method
|
|
6
|
+
|
|
7
|
+
Gets the currently selected rows from the grid
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
getSelectedRows(): any[];
|
|
13
|
+
```
|
|
14
|
+
**Returns:**
|
|
15
|
+
|
|
16
|
+
any\[\]
|
|
17
|
+
|
|
18
|
+
Array of selected row data
|
|
19
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridPro](./grid-pro.gridpro.md) > [hasSelectedRows](./grid-pro.gridpro.hasselectedrows.md)
|
|
4
|
+
|
|
5
|
+
## GridPro.hasSelectedRows() method
|
|
6
|
+
|
|
7
|
+
Checks if any rows are currently selected
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
hasSelectedRows(): boolean;
|
|
13
|
+
```
|
|
14
|
+
**Returns:**
|
|
15
|
+
|
|
16
|
+
boolean
|
|
17
|
+
|
|
18
|
+
True if rows are selected, false otherwise
|
|
19
|
+
|
|
@@ -988,6 +988,20 @@ Clears the local grid options, this is used to clear the grid options when the g
|
|
|
988
988
|
Gets the saved grid ColumnState\[\] from storage
|
|
989
989
|
|
|
990
990
|
|
|
991
|
+
</td></tr>
|
|
992
|
+
<tr><td>
|
|
993
|
+
|
|
994
|
+
[getSelectedRows()](./grid-pro.gridpro.getselectedrows.md)
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
</td><td>
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
</td><td>
|
|
1001
|
+
|
|
1002
|
+
Gets the currently selected rows from the grid
|
|
1003
|
+
|
|
1004
|
+
|
|
991
1005
|
</td></tr>
|
|
992
1006
|
<tr><td>
|
|
993
1007
|
|
|
@@ -1000,6 +1014,20 @@ Gets the saved grid ColumnState\[\] from storage
|
|
|
1000
1014
|
</td><td>
|
|
1001
1015
|
|
|
1002
1016
|
|
|
1017
|
+
</td></tr>
|
|
1018
|
+
<tr><td>
|
|
1019
|
+
|
|
1020
|
+
[hasSelectedRows()](./grid-pro.gridpro.hasselectedrows.md)
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
</td><td>
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
</td><td>
|
|
1027
|
+
|
|
1028
|
+
Checks if any rows are currently selected
|
|
1029
|
+
|
|
1030
|
+
|
|
1003
1031
|
</td></tr>
|
|
1004
1032
|
<tr><td>
|
|
1005
1033
|
|
|
@@ -966,6 +966,7 @@ export class GridPro extends GridPro_base {
|
|
|
966
966
|
[key: string]: any;
|
|
967
967
|
}>;
|
|
968
968
|
getSavedColumnState(): Promise<ColumnState[]>;
|
|
969
|
+
getSelectedRows(): any[];
|
|
969
970
|
// (undocumented)
|
|
970
971
|
globalEventListener(eventType: any, event: any): void;
|
|
971
972
|
// (undocumented)
|
|
@@ -988,6 +989,7 @@ export class GridPro extends GridPro_base {
|
|
|
988
989
|
get gridProDatasource(): GridProBaseDatasource;
|
|
989
990
|
// (undocumented)
|
|
990
991
|
gridSlot: HTMLSlotElement;
|
|
992
|
+
hasSelectedRows(): boolean;
|
|
991
993
|
headerCaseType: GridProCaseType;
|
|
992
994
|
// (undocumented)
|
|
993
995
|
headerHeight: number;
|
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.310.0",
|
|
4
|
+
"version": "14.310.2-alpha-8853fb3.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -38,19 +38,19 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@genesislcap/foundation-testing": "14.310.0",
|
|
42
|
-
"@genesislcap/genx": "14.310.0",
|
|
43
|
-
"@genesislcap/rollup-builder": "14.310.0",
|
|
44
|
-
"@genesislcap/ts-builder": "14.310.0",
|
|
45
|
-
"@genesislcap/uvu-playwright-builder": "14.310.0",
|
|
46
|
-
"@genesislcap/vite-builder": "14.310.0",
|
|
47
|
-
"@genesislcap/webpack-builder": "14.310.0"
|
|
41
|
+
"@genesislcap/foundation-testing": "14.310.2-alpha-8853fb3.0",
|
|
42
|
+
"@genesislcap/genx": "14.310.2-alpha-8853fb3.0",
|
|
43
|
+
"@genesislcap/rollup-builder": "14.310.2-alpha-8853fb3.0",
|
|
44
|
+
"@genesislcap/ts-builder": "14.310.2-alpha-8853fb3.0",
|
|
45
|
+
"@genesislcap/uvu-playwright-builder": "14.310.2-alpha-8853fb3.0",
|
|
46
|
+
"@genesislcap/vite-builder": "14.310.2-alpha-8853fb3.0",
|
|
47
|
+
"@genesislcap/webpack-builder": "14.310.2-alpha-8853fb3.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@genesislcap/foundation-comms": "14.310.0",
|
|
51
|
-
"@genesislcap/foundation-logger": "14.310.0",
|
|
52
|
-
"@genesislcap/foundation-ui": "14.310.0",
|
|
53
|
-
"@genesislcap/foundation-utils": "14.310.0",
|
|
50
|
+
"@genesislcap/foundation-comms": "14.310.2-alpha-8853fb3.0",
|
|
51
|
+
"@genesislcap/foundation-logger": "14.310.2-alpha-8853fb3.0",
|
|
52
|
+
"@genesislcap/foundation-ui": "14.310.2-alpha-8853fb3.0",
|
|
53
|
+
"@genesislcap/foundation-utils": "14.310.2-alpha-8853fb3.0",
|
|
54
54
|
"@microsoft/fast-colors": "5.3.1",
|
|
55
55
|
"@microsoft/fast-components": "2.30.6",
|
|
56
56
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
77
|
"customElements": "dist/custom-elements.json",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "463314432383d893be3c9fc153efa77e9d9c8993"
|
|
79
79
|
}
|