@fundamental-ngx/platform 0.43.9 → 0.43.10
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/esm2020/approval-flow/approval-flow-add-node/approval-flow-add-node.component.mjs +1 -1
- package/esm2020/approval-flow/approval-flow.component.mjs +1 -1
- package/esm2020/table/table.component.mjs +14 -9
- package/esm2020/table-helpers/helpers.mjs +45 -9
- package/fesm2015/fundamental-ngx-platform-approval-flow.mjs +2 -2
- package/fesm2015/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-table-helpers.mjs +40 -4
- package/fesm2015/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-table.mjs +13 -8
- package/fesm2015/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-approval-flow.mjs +2 -2
- package/fesm2020/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-table-helpers.mjs +40 -4
- package/fesm2020/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-table.mjs +13 -8
- package/fesm2020/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fundamental-ngx-platform-v0.43.10.tgz +0 -0
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/table-helpers/helpers.d.ts +7 -5
- package/fundamental-ngx-platform-v0.43.9.tgz +0 -0
|
@@ -54,7 +54,7 @@ import { isJsObject, FDP_PRESET_MANAGED_COMPONENT, PlatformContentDensityDepreca
|
|
|
54
54
|
import * as i7$3 from '@fundamental-ngx/core/skeleton';
|
|
55
55
|
import { SkeletonModule } from '@fundamental-ngx/core/skeleton';
|
|
56
56
|
import * as i1 from '@fundamental-ngx/platform/table-helpers';
|
|
57
|
-
import { TableColumn, FilterableColumnDataType, FdpCellDef, FdpEditableCellDef, FdpHeaderCellDef, TableCellHeaderPopoverDirective, SortDirection, getUniqueListValuesByKey, getFilterStrategiesBasedOnDataType, FILTER_STRATEGY, FdpViewSettingsFilterCustomDef, FilterType, TableService, Table, FILTER_STRING_STRATEGY, EditableTableCell, isTreeRowFirstCell, SelectionMode, TableColumnResizeService, TableRowService, isTreeRow, TableDraggableDirective, DEFAULT_HIGHLIGHTING_KEY, SEMANTIC_HIGHLIGHTING_COLUMN_WIDTH, ROW_HEIGHT, TableDataSourceDirective, FDP_TABLE_STATE_DIRECTIVE, FDP_TABLE_VIRTUAL_SCROLL_DIRECTIVE, FDP_TABLE_DRAGGABLE_DIRECTIVE, TableHeaderResizerDirective, isRowNavigatable, TableRowType, buildNewRowSkeleton, EDITABLE_ROW_SEMANTIC_STATE, SaveRowsEvent, getSelectableRows, TableRowActivateEvent, TableRowToggleOpenStateEvent, findRowChildren, getRowParents, TableSortChangeEvent, TablePageChangeEvent, TableGroupChangeEvent, TableColumnFreezeEvent, TableFilterChangeEvent, TableColumnsChangeEvent, convertObjectsToTableRows, isTableRow, convertTreeTableRowToFlatList, convertTreeObjectsToTableRows, getFreezableColumns, getFreezableEndColumns, SELECTION_COLUMN_WIDTH, TableScrollDispatcherService, TableResponsiveService, TableHelpersModule } from '@fundamental-ngx/platform/table-helpers';
|
|
57
|
+
import { TableColumn, FilterableColumnDataType, FdpCellDef, FdpEditableCellDef, FdpHeaderCellDef, TableCellHeaderPopoverDirective, SortDirection, getUniqueListValuesByKey, getFilterStrategiesBasedOnDataType, FILTER_STRATEGY, FdpViewSettingsFilterCustomDef, FilterType, TableService, Table, FILTER_STRING_STRATEGY, EditableTableCell, isTreeRowFirstCell, SelectionMode, TableColumnResizeService, TableRowService, isTreeRow, TableDraggableDirective, DEFAULT_HIGHLIGHTING_KEY, SEMANTIC_HIGHLIGHTING_COLUMN_WIDTH, ROW_HEIGHT, TableDataSourceDirective, FDP_TABLE_STATE_DIRECTIVE, FDP_TABLE_VIRTUAL_SCROLL_DIRECTIVE, FDP_TABLE_DRAGGABLE_DIRECTIVE, TableHeaderResizerDirective, isRowNavigatable, TableRowType, buildNewRowSkeleton, EDITABLE_ROW_SEMANTIC_STATE, SaveRowsEvent, getSelectableRows, TableRowActivateEvent, TableRowToggleOpenStateEvent, findRowChildren, getRowParents, TableSortChangeEvent, TablePageChangeEvent, TableGroupChangeEvent, TableColumnFreezeEvent, TableFilterChangeEvent, TableColumnsChangeEvent, convertObjectsToTableRows, isTableRow, convertTreeTableRowToFlatList, convertTreeObjectsToTableRows, getFreezableColumns, getFreezableEndColumns, applySelectionToChildren, SELECTION_COLUMN_WIDTH, TableScrollDispatcherService, TableResponsiveService, TableHelpersModule } from '@fundamental-ngx/platform/table-helpers';
|
|
58
58
|
export * from '@fundamental-ngx/platform/table-helpers';
|
|
59
59
|
import { LEFT_ARROW, RIGHT_ARROW, DOWN_ARROW, UP_ARROW, SPACE } from '@angular/cdk/keycodes';
|
|
60
60
|
import equal$1 from 'fast-deep-equal';
|
|
@@ -4292,10 +4292,19 @@ class TableComponent extends Table {
|
|
|
4292
4292
|
let currentRow = row.parent;
|
|
4293
4293
|
while (currentRow) {
|
|
4294
4294
|
const children = findRowChildren(currentRow, this._tableRows).filter((r) => r.parent === currentRow);
|
|
4295
|
-
const totalChecked =
|
|
4295
|
+
const totalChecked = [];
|
|
4296
|
+
const totalIndeterminate = [];
|
|
4297
|
+
children.forEach((r) => {
|
|
4298
|
+
if (r.checked === true) {
|
|
4299
|
+
totalChecked.push(r);
|
|
4300
|
+
}
|
|
4301
|
+
else if (r.checked === null) {
|
|
4302
|
+
totalIndeterminate.push(r);
|
|
4303
|
+
}
|
|
4304
|
+
});
|
|
4296
4305
|
const checkedAll = totalChecked.length === children.length;
|
|
4297
4306
|
const checkedAny = totalChecked.length > 0;
|
|
4298
|
-
currentRow.checked = checkedAll ? true : checkedAny ? null : false;
|
|
4307
|
+
currentRow.checked = checkedAll ? true : checkedAny || totalIndeterminate.length > 0 ? null : false;
|
|
4299
4308
|
currentRow.checked || currentRow.checked === null
|
|
4300
4309
|
? addedRows.push(currentRow)
|
|
4301
4310
|
: removedRows.push(currentRow);
|
|
@@ -4304,11 +4313,7 @@ class TableComponent extends Table {
|
|
|
4304
4313
|
}
|
|
4305
4314
|
/** @hidden */
|
|
4306
4315
|
_applySelectionToChildren(row, addedRows, removedRows) {
|
|
4307
|
-
|
|
4308
|
-
allChilren.forEach((r) => {
|
|
4309
|
-
r.checked = row.checked;
|
|
4310
|
-
r.checked ? addedRows.push(r) : removedRows.push(r);
|
|
4311
|
-
});
|
|
4316
|
+
applySelectionToChildren(this._tableRows, row, addedRows, removedRows);
|
|
4312
4317
|
}
|
|
4313
4318
|
/** @hidden */
|
|
4314
4319
|
_listenToPageScrolling() {
|