@@ -4999,7 +4999,7 @@ export function getHorizontalFixtures(listOrientation: Exclude<DropListOrientati
49994999 <div
50005000 class="drop-list scroll-container"
50015001 cdkDropList
5002- cdkDropListOrientation=" ${ listOrientation } "
5002+ [ cdkDropListOrientation]="_listOrientation "
50035003 [cdkDropListData]="items"
50045004 (cdkDropListDropped)="droppedSpy($event)">
50055005 @for (item of items; track item) {
@@ -5021,6 +5021,7 @@ export function getHorizontalFixtures(listOrientation: Exclude<DropListOrientati
50215021 } )
50225022 class DraggableInHorizontalDropZone implements AfterViewInit {
50235023 readonly _elementRef = inject ( ElementRef ) ;
5024+ readonly _listOrientation = listOrientation ;
50245025
50255026 @ViewChildren ( CdkDrag ) dragItems ! : QueryList < CdkDrag > ;
50265027 @ViewChild ( CdkDropList ) dropInstance ! : CdkDropList ;
@@ -5088,7 +5089,7 @@ export function getHorizontalFixtures(listOrientation: Exclude<DropListOrientati
50885089 }
50895090 ` ,
50905091 template : `
5091- <div class="list" cdkDropList cdkDropListOrientation=" ${ listOrientation } ">
5092+ <div class="list" cdkDropList [ cdkDropListOrientation]="_listOrientation ">
50925093 @for (item of items; track item) {
50935094 <div class="item" cdkDrag>
50945095 {{item}}
@@ -5103,6 +5104,8 @@ export function getHorizontalFixtures(listOrientation: Exclude<DropListOrientati
51035104 changeDetection : ChangeDetectionStrategy . Eager ,
51045105 } )
51055106 class DraggableInHorizontalFlexDropZoneWithMatchSizePreview {
5107+ readonly _listOrientation = listOrientation ;
5108+
51065109 @ViewChildren ( CdkDrag ) dragItems ! : QueryList < CdkDrag > ;
51075110 items = [ 'Zero' , 'One' , 'Two' ] ;
51085111 }
@@ -5170,7 +5173,7 @@ export class DraggableInDropZone implements AfterViewInit {
51705173 startedSpy = jasmine . createSpy ( 'started spy' ) ;
51715174 previewContainer : PreviewContainer = 'global' ;
51725175 dropDisabled = signal ( false ) ;
5173- dropLockAxis = signal < DragAxis | undefined > ( undefined ) ;
5176+ dropLockAxis = signal < DragAxis | null > ( null ) ;
51745177 scale = 1 ;
51755178
51765179 ngAfterViewInit ( ) {
@@ -5326,31 +5329,27 @@ class DraggableInDropZoneWithContainer extends DraggableInDropZone {}
53265329class DraggableInDropZoneWithCustomPreview {
53275330 @ViewChild ( CdkDropList ) dropInstance ! : CdkDropList ;
53285331 @ViewChildren ( CdkDrag ) dragItems ! : QueryList < CdkDrag > ;
5329- items : { label : string ; lockAxis ? : DragAxis } [ ] = [
5330- { label : 'Zero' } ,
5331- { label : 'One' } ,
5332- { label : 'Two' } ,
5333- { label : 'Three' } ,
5332+ items : { label : string ; lockAxis : DragAxis | null } [ ] = [
5333+ { label : 'Zero' , lockAxis : null } ,
5334+ { label : 'One' , lockAxis : null } ,
5335+ { label : 'Two' , lockAxis : null } ,
5336+ { label : 'Three' , lockAxis : null } ,
53345337 ] ;
53355338 boundarySelector ! : string ;
53365339 renderCustomPreview = true ;
53375340 matchPreviewSize = false ;
53385341 previewClass : string | string [ ] = [ ] ;
53395342 constrainPosition : ( ( point : Point ) => Point ) | undefined ;
5340- dropLockAxis = signal < DragAxis | undefined > ( undefined ) ;
5343+ dropLockAxis = signal < DragAxis | null > ( null ) ;
53415344}
53425345
53435346@Component ( {
53445347 template : `
53455348 <div cdkDropList style="width: 100px; background: pink;">
53465349 @for (item of items; track item) {
5347- <div
5348- cdkDrag
5349- [cdkDragConstrainPosition]="constrainPosition"
5350- [cdkDragBoundary]="boundarySelector"
5351- style="width: 100%; height: ${ ITEM_HEIGHT } px; background: red;">
5352- {{item}}
5353- <ng-template cdkDragPreview>Hello {{item}}</ng-template>
5350+ <div cdkDrag style="width: 100%; height: ${ ITEM_HEIGHT } px; background: red;">
5351+ {{item}}
5352+ <ng-template cdkDragPreview>Hello {{item}}</ng-template>
53545353 </div>
53555354 }
53565355 </div>
@@ -5924,10 +5923,7 @@ class NestedDragsComponent {
59245923 imports : [ CdkDrag , NgTemplateOutlet ] ,
59255924 changeDetection : ChangeDetectionStrategy . Eager ,
59265925} )
5927- class NestedDragsThroughTemplate {
5928- @ViewChild ( 'container' ) container ! : ElementRef ;
5929- @ViewChild ( 'item' ) item ! : ElementRef ;
5930- }
5926+ class NestedDragsThroughTemplate extends NestedDragsComponent { }
59315927
59325928@Component ( {
59335929 styles : `
0 commit comments