Skip to content

Commit a08ac4b

Browse files
committed
refactor: add workaround for strict metadata emit of coercion static members
See: angular/angular#33451
1 parent 59a7971 commit a08ac4b

File tree

91 files changed

+112
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+112
-23
lines changed

src/cdk-experimental/scrolling/auto-size-virtual-scroll.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ export function _autoSizeVirtualScrollStrategyFactory(autoSizeDir: CdkAutoSizeVi
427427
}
428428

429429

430+
/** @dynamic Needed for "ngAcceptInputType" members. */
430431
/** A virtual scroll strategy that supports unknown or dynamic size items. */
431432
@Directive({
432433
selector: 'cdk-virtual-scroll-viewport[autosize]',

src/cdk/a11y/focus-trap/focus-trap.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ export class FocusTrapFactory {
356356
}
357357
}
358358

359+
/** @dynamic Needed for "ngAcceptInputType" members. */
359360
/** Directive for trapping focus within a region. */
360361
@Directive({
361362
selector: '[cdkTrapFocus]',

src/cdk/accordion/accordion-item.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {Subscription} from 'rxjs';
2424
/** Used to generate unique ID for each accordion item. */
2525
let nextId = 0;
2626

27+
/** @dynamic Needed for "ngAcceptInputType" members. */
2728
/**
2829
* An basic directive expected to be extended and decorated as a component. Sets up all
2930
* events and attributes needed to be managed by a CdkAccordion parent.

src/cdk/accordion/accordion.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {Subject} from 'rxjs';
1313
/** Used to generate unique ID for each accordion. */
1414
let nextId = 0;
1515

16+
/** @dynamic Needed for "ngAcceptInputType" members. */
1617
/**
1718
* Directive whose purpose is to manage the expanded state of CdkAccordionItem children.
1819
*/

src/cdk/drag-drop/directives/drag-handle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {Subject} from 'rxjs';
1212
import {CDK_DRAG_PARENT} from '../drag-parent';
1313
import {toggleNativeDragInteractions} from '../drag-styling';
1414

15+
/** @dynamic Needed for "ngAcceptInputType" members. */
1516
/** Handle that can be used to drag and CdkDrag instance. */
1617
@Directive({
1718
selector: '[cdkDragHandle]',

src/cdk/drag-drop/directives/drag.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export function CDK_DRAG_CONFIG_FACTORY(): DragRefConfig {
6767
return {dragStartThreshold: 5, pointerDirectionChangeThreshold: 5};
6868
}
6969

70+
/** @dynamic Needed for "ngAcceptInputType" members. */
7071
/** Element that can be moved inside a CdkDropList container. */
7172
@Directive({
7273
selector: '[cdkDrag]',

src/cdk/drag-drop/directives/drop-list-group.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import {Directive, OnDestroy, Input} from '@angular/core';
1010
import {coerceBooleanProperty} from '@angular/cdk/coercion';
1111

12+
/** @dynamic Needed for "ngAcceptInputType" members. */
1213
/**
1314
* Declaratively connects sibling `cdkDropList` instances together. All of the `cdkDropList`
1415
* elements that are placed inside a `cdkDropListGroup` will be connected to each other

src/cdk/drag-drop/directives/drop-list.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ let _uniqueIdCounter = 0;
4141
*/
4242
export interface CdkDropListInternal extends CdkDropList {}
4343

44+
/** @dynamic Needed for "ngAcceptInputType" members. */
4445
/** Container that wraps a set of draggable items. */
4546
@Directive({
4647
selector: '[cdkDropList], cdk-drop-list',

src/cdk/observers/observe-content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class ContentObserver implements OnDestroy {
124124
}
125125
}
126126

127-
127+
/** @dynamic Needed for "ngAcceptInputType" members. */
128128
/**
129129
* Directive that triggers a callback whenever the content of
130130
* its associated element has changed.

src/cdk/overlay/overlay-directives.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class CdkOverlayOrigin {
9393
public elementRef: ElementRef) { }
9494
}
9595

96-
96+
/** @dynamic Needed for "ngAcceptInputType" members. */
9797
/**
9898
* Directive to facilitate declarative creation of an
9999
* Overlay using a FlexibleConnectedPositionStrategy.

0 commit comments

Comments
 (0)