mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
[ACS-8634] Additional fixes (#10351)
* [ACS-8634] Limit drag area for dragging datatable rows * ACS-8634 Fixed styles for context menu * [ACS-8634] Keep row and cell appearance while dragging --------- Co-authored-by: Aleksander Sklorz <Aleksander.Sklorz@hyland.com>
This commit is contained in:
parent
c93823a16b
commit
f4cd4dc40a
@ -0,0 +1,15 @@
|
|||||||
|
@use '@angular/material' as mat;
|
||||||
|
|
||||||
|
@keyframes delayed-elevation {
|
||||||
|
0% {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
@include mat.elevation(8);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
adf-context-menu {
|
||||||
|
animation: delayed-elevation 0.5s ease-in-out 0.1s forwards;
|
||||||
|
}
|
@ -31,6 +31,7 @@ import { DOWN_ARROW, UP_ARROW } from '@angular/cdk/keycodes';
|
|||||||
selector: 'adf-context-menu',
|
selector: 'adf-context-menu',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
templateUrl: './context-menu-list.component.html',
|
templateUrl: './context-menu-list.component.html',
|
||||||
|
styleUrls: ['./context-menu-list.component.scss'],
|
||||||
host: {
|
host: {
|
||||||
role: 'menu',
|
role: 'menu',
|
||||||
class: 'adf-context-menu'
|
class: 'adf-context-menu'
|
||||||
|
@ -165,6 +165,7 @@
|
|||||||
(cdkDragDropped)="onDragDrop($event)"
|
(cdkDragDropped)="onDragDrop($event)"
|
||||||
(cdkDragStarted)="onDragStart()"
|
(cdkDragStarted)="onDragStart()"
|
||||||
(cdkDragEnded)="onDragEnd()"
|
(cdkDragEnded)="onDragEnd()"
|
||||||
|
[cdkDragBoundary]="'.adf-datatable-body'"
|
||||||
[row]="row"
|
[row]="row"
|
||||||
(select)="onEnterKeyPressed(row, $event)"
|
(select)="onEnterKeyPressed(row, $event)"
|
||||||
(keyup)="onRowKeyUp(row, $event)"
|
(keyup)="onRowKeyUp(row, $event)"
|
||||||
|
@ -52,7 +52,8 @@ $data-table-cell-min-width-file-size: $data-table-cell-min-width-1 !default;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.adf-datatable-list {
|
.adf-datatable-list,
|
||||||
|
#{$cdk-drag-preview} {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background-color: var(--adf-theme-background-card-color);
|
background-color: var(--adf-theme-background-card-color);
|
||||||
@ -603,7 +604,9 @@ $data-table-cell-min-width-file-size: $data-table-cell-min-width-1 !default;
|
|||||||
#{$cdk-drag-preview} {
|
#{$cdk-drag-preview} {
|
||||||
min-height: $data-table-row-height;
|
min-height: $data-table-row-height;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
box-sizing: unset;
|
||||||
background-color: var(--theme-background-color);
|
background-color: var(--theme-background-color);
|
||||||
border-top: 2px solid var(--theme-selected-background-color);
|
border-top: 2px solid var(--theme-selected-background-color);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user