@@ -4431,8 +4431,8 @@ describe('CdkDrag', () => {
4431
4431
`
4432
4432
} )
4433
4433
class StandaloneDraggable {
4434
- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < HTMLElement > ;
4435
- @ViewChild ( CdkDrag , { static : false } ) dragInstance : CdkDrag ;
4434
+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < HTMLElement > ;
4435
+ @ViewChild ( CdkDrag ) dragInstance : CdkDrag ;
4436
4436
startedSpy = jasmine . createSpy ( 'started spy' ) ;
4437
4437
endedSpy = jasmine . createSpy ( 'ended spy' ) ;
4438
4438
releasedSpy = jasmine . createSpy ( 'released spy' ) ;
@@ -4449,8 +4449,8 @@ class StandaloneDraggable {
4449
4449
`
4450
4450
} )
4451
4451
class StandaloneDraggableWithOnPush {
4452
- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < HTMLElement > ;
4453
- @ViewChild ( CdkDrag , { static : false } ) dragInstance : CdkDrag ;
4452
+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < HTMLElement > ;
4453
+ @ViewChild ( CdkDrag ) dragInstance : CdkDrag ;
4454
4454
}
4455
4455
4456
4456
@Component ( {
@@ -4463,7 +4463,7 @@ class StandaloneDraggableWithOnPush {
4463
4463
`
4464
4464
} )
4465
4465
class StandaloneDraggableSvg {
4466
- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < SVGElement > ;
4466
+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < SVGElement > ;
4467
4467
}
4468
4468
4469
4469
@Component ( {
@@ -4475,10 +4475,10 @@ class StandaloneDraggableSvg {
4475
4475
`
4476
4476
} )
4477
4477
class StandaloneDraggableWithHandle {
4478
- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < HTMLElement > ;
4479
- @ViewChild ( 'handleElement' , { static : false } ) handleElement : ElementRef < HTMLElement > ;
4480
- @ViewChild ( CdkDrag , { static : false } ) dragInstance : CdkDrag ;
4481
- @ViewChild ( CdkDragHandle , { static : false } ) handleInstance : CdkDragHandle ;
4478
+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < HTMLElement > ;
4479
+ @ViewChild ( 'handleElement' ) handleElement : ElementRef < HTMLElement > ;
4480
+ @ViewChild ( CdkDrag ) dragInstance : CdkDrag ;
4481
+ @ViewChild ( CdkDragHandle ) handleInstance : CdkDragHandle ;
4482
4482
}
4483
4483
4484
4484
@Component ( {
@@ -4493,8 +4493,8 @@ class StandaloneDraggableWithHandle {
4493
4493
`
4494
4494
} )
4495
4495
class StandaloneDraggableWithDelayedHandle {
4496
- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < HTMLElement > ;
4497
- @ViewChild ( 'handleElement' , { static : false } ) handleElement : ElementRef < HTMLElement > ;
4496
+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < HTMLElement > ;
4497
+ @ViewChild ( 'handleElement' ) handleElement : ElementRef < HTMLElement > ;
4498
4498
showHandle = false ;
4499
4499
}
4500
4500
@@ -4513,8 +4513,8 @@ class StandaloneDraggableWithDelayedHandle {
4513
4513
`
4514
4514
} )
4515
4515
class StandaloneDraggableWithIndirectHandle {
4516
- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < HTMLElement > ;
4517
- @ViewChild ( 'handleElement' , { static : false } ) handleElement : ElementRef < HTMLElement > ;
4516
+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < HTMLElement > ;
4517
+ @ViewChild ( 'handleElement' ) handleElement : ElementRef < HTMLElement > ;
4518
4518
}
4519
4519
4520
4520
@@ -4538,7 +4538,7 @@ class StandaloneDraggableWithIndirectHandle {
4538
4538
`
4539
4539
} )
4540
4540
class StandaloneDraggableWithMultipleHandles {
4541
- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < HTMLElement > ;
4541
+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < HTMLElement > ;
4542
4542
@ViewChildren ( CdkDragHandle ) handles : QueryList < CdkDragHandle > ;
4543
4543
}
4544
4544
@@ -4566,7 +4566,7 @@ const DROP_ZONE_FIXTURE_TEMPLATE = `
4566
4566
@Component ( { template : DROP_ZONE_FIXTURE_TEMPLATE } )
4567
4567
class DraggableInDropZone {
4568
4568
@ViewChildren ( CdkDrag ) dragItems : QueryList < CdkDrag > ;
4569
- @ViewChild ( CdkDropList , { static : false } ) dropInstance : CdkDropList ;
4569
+ @ViewChild ( CdkDropList ) dropInstance : CdkDropList ;
4570
4570
items = [
4571
4571
{ value : 'Zero' , height : ITEM_HEIGHT , margin : 0 } ,
4572
4572
{ value : 'One' , height : ITEM_HEIGHT , margin : 0 } ,
@@ -4676,7 +4676,7 @@ const HORIZONTAL_FIXTURE_TEMPLATE = `
4676
4676
} )
4677
4677
class DraggableInHorizontalDropZone {
4678
4678
@ViewChildren ( CdkDrag ) dragItems : QueryList < CdkDrag > ;
4679
- @ViewChild ( CdkDropList , { static : false } ) dropInstance : CdkDropList ;
4679
+ @ViewChild ( CdkDropList ) dropInstance : CdkDropList ;
4680
4680
items = [
4681
4681
{ value : 'Zero' , width : ITEM_WIDTH , margin : 0 } ,
4682
4682
{ value : 'One' , width : ITEM_WIDTH , margin : 0 } ,
@@ -4736,7 +4736,7 @@ class DraggableInScrollableHorizontalDropZone extends DraggableInHorizontalDropZ
4736
4736
`
4737
4737
} )
4738
4738
class DraggableInDropZoneWithCustomPreview {
4739
- @ViewChild ( CdkDropList , { static : false } ) dropInstance : CdkDropList ;
4739
+ @ViewChild ( CdkDropList ) dropInstance : CdkDropList ;
4740
4740
@ViewChildren ( CdkDrag ) dragItems : QueryList < CdkDrag > ;
4741
4741
items = [ 'Zero' , 'One' , 'Two' , 'Three' ] ;
4742
4742
boundarySelector : string ;
@@ -4762,7 +4762,7 @@ class DraggableInDropZoneWithCustomPreview {
4762
4762
`
4763
4763
} )
4764
4764
class DraggableInDropZoneWithCustomTextOnlyPreview {
4765
- @ViewChild ( CdkDropList , { static : false } ) dropInstance : CdkDropList ;
4765
+ @ViewChild ( CdkDropList ) dropInstance : CdkDropList ;
4766
4766
@ViewChildren ( CdkDrag ) dragItems : QueryList < CdkDrag > ;
4767
4767
items = [ 'Zero' , 'One' , 'Two' , 'Three' ] ;
4768
4768
}
@@ -4956,9 +4956,9 @@ class ConnectedDropZonesViaGroupDirective extends ConnectedDropZones {
4956
4956
`
4957
4957
} )
4958
4958
class DraggableWithAlternateRoot {
4959
- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < HTMLElement > ;
4960
- @ViewChild ( 'dragRoot' , { static : false } ) dragRoot : ElementRef < HTMLElement > ;
4961
- @ViewChild ( CdkDrag , { static : false } ) dragInstance : CdkDrag ;
4959
+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < HTMLElement > ;
4960
+ @ViewChild ( 'dragRoot' ) dragRoot : ElementRef < HTMLElement > ;
4961
+ @ViewChild ( CdkDrag ) dragInstance : CdkDrag ;
4962
4962
rootElementSelector : string ;
4963
4963
}
4964
4964
@@ -5017,9 +5017,9 @@ class ConnectedDropZonesWithSingleItems {
5017
5017
`
5018
5018
} )
5019
5019
class NestedDropListGroups {
5020
- @ViewChild ( 'group' , { static : false } ) group : CdkDropListGroup < CdkDropList > ;
5021
- @ViewChild ( 'listOne' , { static : false } ) listOne : CdkDropList ;
5022
- @ViewChild ( 'listTwo' , { static : false } ) listTwo : CdkDropList ;
5020
+ @ViewChild ( 'group' ) group : CdkDropListGroup < CdkDropList > ;
5021
+ @ViewChild ( 'listOne' ) listOne : CdkDropList ;
5022
+ @ViewChild ( 'listTwo' ) listTwo : CdkDropList ;
5023
5023
}
5024
5024
5025
5025
@@ -5044,7 +5044,7 @@ class DraggableOnNgContainer {}
5044
5044
} )
5045
5045
class DraggableInDropZoneWithoutEvents {
5046
5046
@ViewChildren ( CdkDrag ) dragItems : QueryList < CdkDrag > ;
5047
- @ViewChild ( CdkDropList , { static : false } ) dropInstance : CdkDropList ;
5047
+ @ViewChild ( CdkDropList ) dropInstance : CdkDropList ;
5048
5048
items = [
5049
5049
{ value : 'Zero' , height : ITEM_HEIGHT } ,
5050
5050
{ value : 'One' , height : ITEM_HEIGHT } ,
@@ -5184,8 +5184,8 @@ class WrappedDropContainerComponent {
5184
5184
</div>`
5185
5185
} )
5186
5186
class NestedDragsComponent {
5187
- @ViewChild ( 'container' , { static : false } ) container : ElementRef ;
5188
- @ViewChild ( 'item' , { static : false } ) item : ElementRef ;
5187
+ @ViewChild ( 'container' ) container : ElementRef ;
5188
+ @ViewChild ( 'item' ) item : ElementRef ;
5189
5189
5190
5190
containerDragStartedSpy = jasmine . createSpy ( 'container drag started spy' ) ;
5191
5191
containerDragMovedSpy = jasmine . createSpy ( 'container drag moved spy' ) ;
@@ -5215,8 +5215,8 @@ class NestedDragsComponent {
5215
5215
} )
5216
5216
class NestedDropZones {
5217
5217
@ViewChildren ( CdkDrag ) dragItems : QueryList < CdkDrag > ;
5218
- @ViewChild ( 'outerList' , { static : false } ) outerList : ElementRef < HTMLElement > ;
5219
- @ViewChild ( 'innerList' , { static : false } ) innerList : ElementRef < HTMLElement > ;
5218
+ @ViewChild ( 'outerList' ) outerList : ElementRef < HTMLElement > ;
5219
+ @ViewChild ( 'innerList' ) innerList : ElementRef < HTMLElement > ;
5220
5220
items = [ 'Zero' , 'One' , 'Two' , 'Three' ] ;
5221
5221
}
5222
5222
0 commit comments