Skip to content

Commit

Permalink
misc: updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
pilat-martin committed Sep 4, 2024
1 parent 86b7291 commit 55a7bd2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
5 changes: 3 additions & 2 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Changelog

## [15.0.10] 📅 2024-08-023
## [15.0.10] 📅 2024-09-04

### Added

- `@nova-ui/dashboards` | Added `selectable` option to the table widget.
- `@nova-ui/bits` | Added `selectionConfig` input and made `selectable` deprecated in the table component.
- `@nova-ui/dashboards` | Added `selectionConfiguration` option to the table widget configuration.

## [15.0.9] 📅 2024-08-04

Expand Down
11 changes: 4 additions & 7 deletions packages/bits/src/lib/table/table-row/table-row.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,7 @@ export class TableHeaderRowComponent
}

public ngAfterViewInit(): void {
if (
this.tableStateHandlerService.selectable ||
this.tableStateHandlerService.selectionMode ===
TableSelectionMode.Multi
) {
if (this.tableStateHandlerService.selectionEnabled) {
this.tableStateHandlerService.applyStickyStyles();
}
}
Expand Down Expand Up @@ -528,10 +524,11 @@ export class TableRowComponent extends CdkRow implements OnInit, OnDestroy {
return;
}

let rowSelector: Element | null = closestTableRow.querySelector(".nui-table__table-cell__checkbox");
const rowSelector: Element | null = closestTableRow.querySelector(
".nui-table__table-cell__checkbox"
);
if (rowSelector === this.rowSelectionElement?.nativeElement) {
this.rowSelected();
return;
}
}

Expand Down
4 changes: 3 additions & 1 deletion packages/bits/src/lib/table/table.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,9 @@ describe("components >", () => {
fixture.componentInstance.clickableRow = true;

const selectionElement = {};
component.rowSelectionElement = { nativeElement: selectionElement };
component.rowSelectionElement = {
nativeElement: selectionElement,
};
const eventTarget = constructEventTarget(
{ querySelector: () => selectionElement },
null
Expand Down

0 comments on commit 55a7bd2

Please sign in to comment.