Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export abstract class AbstractTableComponent<TRecord, TData = FormArray<FormGrou
public dataSource: WritableSignal<MatTableDataSource<TableRecord<TRecord>>> = linkedSignal(() => {
return new MatTableDataSource(this.localRecords())
})
dragDisabled = true

public selection = new SelectionModel<TableRecord<TRecord>>(
true,
[],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,7 @@
<ng-container matColumnDef="rowDrag">
<th mat-header-cell *matHeaderCellDef></th>
<td mat-cell *matCellDef="let element" class="drag-table-cell">
<mat-icon
cdkDragHandle
mat-ripple
class="drag-handle"
(touchstart)="dragDisabled = false"
(touchend)="dragDisabled = true"
(mousedown)="dragDisabled = false"
(mouseup)="dragDisabled = true"
>drag_indicator
</mat-icon>
<mat-icon cdkDragHandle mat-ripple class="drag-handle">drag_indicator </mat-icon>
</td>
@if (footerData() !== undefined) {
<td mat-footer-cell *matFooterCellDef></td>
Expand Down Expand Up @@ -165,13 +156,13 @@
<tr mat-header-row *matHeaderRowDef="columnNames(); sticky: !!options()?.header?.sticky"></tr>
<tr
mat-row
[class.ppw-table-row-enter]="!disableAnimations()"
*matRowDef="let row; columns: columnNames()"
cdkDrag
[cdkDragDisabled]="dragDisabled"
(cdkDragReleased)="dragDisabled = true"
*matRowDef="let row; columns: columnNames()"
[class.ppw-table-row-enter]="!disableAnimations()"
[class.highlight]="options()?.rows?.highlightOnHover"
[class.clickable]="options()?.rows?.onClick || options()?.rows?.onCtrlClick || expandable()"
[cdkDragLockAxis]="'y'"
[cdkDragBoundary]="'tbody'"
></tr>
@if (expandable()) {
<tr mat-row *matRowDef="let row; columns: ['expandedDetail']" class="ppw-table-expanded-row"></tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
}
}

.ppw-table-row-enter {
.ppw-table-row-enter:not(.cdk-drag-preview) {
animation: slide-in-row 0.25s ease-in-out;
}

Expand Down