igniteui-angular 21.2.6 → 21.2.7
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/fesm2022/igniteui-angular-date-picker.mjs +2 -0
- package/fesm2022/igniteui-angular-date-picker.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-grid.mjs +1 -1
- package/fesm2022/igniteui-angular-grids-grid.mjs.map +1 -1
- package/fesm2022/igniteui-angular-grids-hierarchical-grid.mjs +20 -0
- package/fesm2022/igniteui-angular-grids-hierarchical-grid.mjs.map +1 -1
- package/package.json +1 -1
- package/types/igniteui-angular-grids-hierarchical-grid.d.ts +9 -0
|
@@ -2146,6 +2146,26 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
|
|
|
2146
2146
|
return this.dataRows().map((row) => row.cells.filter((cell) => cell.selected))
|
|
2147
2147
|
.reduce((a, b) => a.concat(b), []);
|
|
2148
2148
|
}
|
|
2149
|
+
/**
|
|
2150
|
+
*
|
|
2151
|
+
* Returns an array of the current cell selection in the form of `[{ column.field: cell.value }, ...]`.
|
|
2152
|
+
*
|
|
2153
|
+
* @remarks
|
|
2154
|
+
* If `formatters` is enabled, the cell value will be formatted by its respective column formatter (if any).
|
|
2155
|
+
* If `headers` is enabled, it will use the column header (if any) instead of the column field.
|
|
2156
|
+
*/
|
|
2157
|
+
getSelectedData(formatters = false, headers = false) {
|
|
2158
|
+
const source = [];
|
|
2159
|
+
const process = (record) => {
|
|
2160
|
+
if (this.isChildGridRecord(record)) {
|
|
2161
|
+
source.push(null);
|
|
2162
|
+
return;
|
|
2163
|
+
}
|
|
2164
|
+
source.push(this.isGhostRecord(record) || this.isRecordMerged(record) ? record.recordRef : record);
|
|
2165
|
+
};
|
|
2166
|
+
this.dataView.forEach(process);
|
|
2167
|
+
return this.extractDataFromSelection(source, formatters, headers);
|
|
2168
|
+
}
|
|
2149
2169
|
/**
|
|
2150
2170
|
* Returns a `CellType` object that matches the conditions.
|
|
2151
2171
|
*
|