@@ -6833,8 +6833,7 @@ class StandaloneDraggableWithShadowInsideHandle {
6833
6833
6834
6834
@Component ( {
6835
6835
encapsulation : ViewEncapsulation . None ,
6836
- styles : [
6837
- `
6836
+ styles : `
6838
6837
.cdk-drag-handle {
6839
6838
position: absolute;
6840
6839
top: 0;
@@ -6843,7 +6842,6 @@ class StandaloneDraggableWithShadowInsideHandle {
6843
6842
height: 10px;
6844
6843
}
6845
6844
` ,
6846
- ] ,
6847
6845
template : `
6848
6846
<div #dragElement cdkDrag
6849
6847
style="width: 100px; height: 100px; background: red; position: relative">
@@ -6936,15 +6934,13 @@ class ConnectedDropListsInOnPush {}
6936
6934
6937
6935
// Note that it needs a margin to ensure that it's not flush against the viewport
6938
6936
// edge which will cause the viewport to scroll, rather than the list.
6939
- styles : [
6940
- `
6937
+ styles : `
6941
6938
.drop-list {
6942
6939
max-height: 200px;
6943
6940
overflow: auto;
6944
6941
margin: 10vw 0 0 10vw;
6945
6942
}
6946
6943
` ,
6947
- ] ,
6948
6944
} )
6949
6945
class DraggableInScrollableVerticalDropZone extends DraggableInDropZone {
6950
6946
constructor ( elementRef : ElementRef ) {
@@ -6965,15 +6961,13 @@ class DraggableInScrollableVerticalDropZone extends DraggableInDropZone {
6965
6961
6966
6962
// Note that it needs a margin to ensure that it's not flush against the viewport
6967
6963
// edge which will cause the viewport to scroll, rather than the list.
6968
- styles : [
6969
- `
6964
+ styles : `
6970
6965
.scroll-container {
6971
6966
max-height: 200px;
6972
6967
overflow: auto;
6973
6968
margin: 10vw 0 0 10vw;
6974
6969
}
6975
6970
` ,
6976
- ] ,
6977
6971
} )
6978
6972
class DraggableInScrollableParentContainer extends DraggableInDropZone implements AfterViewInit {
6979
6973
@ViewChild ( 'scrollContainer' ) scrollContainer : ElementRef < HTMLElement > ;
@@ -7058,7 +7052,7 @@ const HORIZONTAL_FIXTURE_TEMPLATE = `
7058
7052
7059
7053
@Component ( {
7060
7054
encapsulation : ViewEncapsulation . None ,
7061
- styles : [ HORIZONTAL_FIXTURE_STYLES ] ,
7055
+ styles : HORIZONTAL_FIXTURE_STYLES ,
7062
7056
template : HORIZONTAL_FIXTURE_TEMPLATE ,
7063
7057
} )
7064
7058
class DraggableInHorizontalDropZone implements AfterViewInit {
@@ -7211,13 +7205,11 @@ class DraggableInDropZoneWithCustomMultiNodePreview {
7211
7205
}
7212
7206
</div>
7213
7207
` ,
7214
- styles : [
7215
- `
7208
+ styles : `
7216
7209
.tall-placeholder {
7217
7210
height: ${ ITEM_HEIGHT * 3 } px;
7218
7211
}
7219
7212
` ,
7220
- ] ,
7221
7213
} )
7222
7214
class DraggableInDropZoneWithCustomPlaceholder {
7223
7215
@ViewChildren ( CdkDrag ) dragItems : QueryList < CdkDrag > ;
@@ -7364,8 +7356,7 @@ class ConnectedDropZonesInsideShadowRootWithNgIf extends ConnectedDropZones {}
7364
7356
7365
7357
@Component ( {
7366
7358
encapsulation : ViewEncapsulation . None ,
7367
- styles : [
7368
- `
7359
+ styles : `
7369
7360
.cdk-drop-list {
7370
7361
display: block;
7371
7362
width: 100px;
@@ -7379,7 +7370,6 @@ class ConnectedDropZonesInsideShadowRootWithNgIf extends ConnectedDropZones {}
7379
7370
background: red;
7380
7371
}
7381
7372
` ,
7382
- ] ,
7383
7373
template : `
7384
7374
<div cdkDropListGroup [cdkDropListGroupDisabled]="groupDisabled">
7385
7375
<div
@@ -7426,8 +7416,7 @@ class DraggableWithAlternateRoot {
7426
7416
7427
7417
@Component ( {
7428
7418
encapsulation : ViewEncapsulation . None ,
7429
- styles : [
7430
- `
7419
+ styles : `
7431
7420
.cdk-drop-list {
7432
7421
display: block;
7433
7422
width: 100px;
@@ -7441,7 +7430,6 @@ class DraggableWithAlternateRoot {
7441
7430
background: red;
7442
7431
}
7443
7432
` ,
7444
- ] ,
7445
7433
template : `
7446
7434
<div
7447
7435
cdkDropList
@@ -7534,8 +7522,7 @@ class DraggableInDropZoneWithoutEvents {
7534
7522
7535
7523
@Component ( {
7536
7524
encapsulation : ViewEncapsulation . None ,
7537
- styles : [
7538
- `
7525
+ styles : `
7539
7526
.cdk-drop-list {
7540
7527
display: block;
7541
7528
width: 100px;
@@ -7549,7 +7536,6 @@ class DraggableInDropZoneWithoutEvents {
7549
7536
background: red;
7550
7537
}
7551
7538
` ,
7552
- ] ,
7553
7539
template : `
7554
7540
<div cdkDropListGroup>
7555
7541
<wrapped-drop-container [items]="todo"></wrapped-drop-container>
@@ -7659,8 +7645,7 @@ class WrappedDropContainerComponent {
7659
7645
}
7660
7646
7661
7647
@Component ( {
7662
- styles : [
7663
- `
7648
+ styles : `
7664
7649
:host {
7665
7650
height: 400px;
7666
7651
width: 400px;
@@ -7677,7 +7662,6 @@ class WrappedDropContainerComponent {
7677
7662
position: absolute;
7678
7663
}
7679
7664
` ,
7680
- ] ,
7681
7665
template : `
7682
7666
<div
7683
7667
cdkDrag
@@ -7709,8 +7693,7 @@ class NestedDragsComponent {
7709
7693
}
7710
7694
7711
7695
@Component ( {
7712
- styles : [
7713
- `
7696
+ styles : `
7714
7697
:host {
7715
7698
height: 400px;
7716
7699
width: 400px;
@@ -7727,7 +7710,6 @@ class NestedDragsComponent {
7727
7710
position: absolute;
7728
7711
}
7729
7712
` ,
7730
- ] ,
7731
7713
template : `
7732
7714
<div
7733
7715
cdkDrag
@@ -7757,14 +7739,12 @@ class NestedDragsThroughTemplate {
7757
7739
}
7758
7740
7759
7741
@Component ( {
7760
- styles : [
7761
- `
7742
+ styles : `
7762
7743
.drop-list {
7763
7744
width: 100px;
7764
7745
background: pink;
7765
7746
}
7766
7747
` ,
7767
- ] ,
7768
7748
template : `
7769
7749
<div cdkDropList class="drop-list" #outerList>
7770
7750
<div cdkDropList class="drop-list" #innerList>
@@ -7799,8 +7779,7 @@ class PlainStandaloneDropList {
7799
7779
}
7800
7780
7801
7781
@Component ( {
7802
- styles : [
7803
- `
7782
+ styles : `
7804
7783
.list {
7805
7784
display: flex;
7806
7785
width: 100px;
@@ -7814,7 +7793,6 @@ class PlainStandaloneDropList {
7814
7793
min-height: 50px;
7815
7794
}
7816
7795
` ,
7817
- ] ,
7818
7796
template : `
7819
7797
<div class="list" cdkDropList cdkDropListOrientation="horizontal">
7820
7798
@for (item of items; track item) {
0 commit comments