Skip to content

Commit

Permalink
main - b8ec0a6 refactor(multiple): switch the CDK to the inject funct…
Browse files Browse the repository at this point in the history
…ion (#29718)
  • Loading branch information
crisbeto committed Sep 12, 2024
1 parent 7da1498 commit 76ed43a
Show file tree
Hide file tree
Showing 12 changed files with 156 additions and 63 deletions.
2 changes: 1 addition & 1 deletion docs-content/api-docs/cdk-accordion.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h4 id="CdkAccordionItem" class="docs-header-link docs-api-h4 docs-api-class-nam

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>accordion: CdkAccordion</code>
<code>accordion: inject&lt;CdkAccordion&gt;(CDK_ACCORDION, { optional: true, skipSelf: true })!</code>
</p>
</td>
<td class="docs-api-property-description"></td>
Expand Down
21 changes: 9 additions & 12 deletions docs-content/api-docs/cdk-drag-drop.html
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,10 @@ <h4 id="CdkDropList" class="docs-header-link docs-api-h4 docs-api-class-name">

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>element: ElementRef&lt;HTMLElement&gt;</code>
<code>element: inject&lt;ElementRef&lt;HTMLElement&gt;&gt;(ElementRef)</code>
</p>
</td>
<td class="docs-api-property-description"><p>Element that the drop list is attached to.</p>
</td>
<td class="docs-api-property-description"></td>
</tr>


Expand Down Expand Up @@ -889,11 +888,10 @@ <h4 id="CdkDrag" class="docs-header-link docs-api-h4 docs-api-class-name">

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>dropContainer: CdkDropList</code>
<code>dropContainer: inject&lt;CdkDropList&gt;(CDK_DROP_LIST, { optional: true, skipSelf: true })!</code>
</p>
</td>
<td class="docs-api-property-description"><p>Droppable container that the draggable is a part of.</p>
</td>
<td class="docs-api-property-description"></td>
</tr>


Expand All @@ -902,11 +900,10 @@ <h4 id="CdkDrag" class="docs-header-link docs-api-h4 docs-api-class-name">

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>element: ElementRef&lt;HTMLElement&gt;</code>
<code>element: inject&lt;ElementRef&lt;HTMLElement&gt;&gt;(ElementRef)</code>
</p>
</td>
<td class="docs-api-property-description"><p>Element that the draggable is attached to.</p>
</td>
<td class="docs-api-property-description"></td>
</tr>


Expand Down Expand Up @@ -1104,7 +1101,7 @@ <h4 id="CdkDragHandle" class="docs-header-link docs-api-h4 docs-api-class-name">

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>element: ElementRef&lt;HTMLElement&gt;</code>
<code>element: inject&lt;ElementRef&lt;HTMLElement&gt;&gt;(ElementRef)</code>
</p>
</td>
<td class="docs-api-property-description"></td>
Expand Down Expand Up @@ -1172,7 +1169,7 @@ <h4 id="CdkDragPreview" class="docs-header-link docs-api-h4 docs-api-class-name"

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>templateRef: TemplateRef&lt;T&gt;</code>
<code>templateRef: inject&lt;TemplateRef&lt;T&gt;&gt;(TemplateRef)</code>
</p>
</td>
<td class="docs-api-property-description"></td>
Expand Down Expand Up @@ -1226,7 +1223,7 @@ <h4 id="CdkDragPlaceholder" class="docs-header-link docs-api-h4 docs-api-class-n

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>templateRef: TemplateRef&lt;T&gt;</code>
<code>templateRef: inject&lt;TemplateRef&lt;T&gt;&gt;(TemplateRef)</code>
</p>
</td>
<td class="docs-api-property-description"></td>
Expand Down
2 changes: 1 addition & 1 deletion docs-content/api-docs/cdk-layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h4 id="BreakpointObserver" class="docs-header-link docs-api-h4 docs-api-class-n
<span header-link="BreakpointObserver"></span>
<code>BreakpointObserver</code>

</h4><p class="docs-api-class-description"><p>Utility for checking the matching state of @media queries.</p>
</h4><p class="docs-api-class-description"><p>Utility for checking the matching state of <code>@media</code> queries.</p>
</p>


Expand Down
10 changes: 4 additions & 6 deletions docs-content/api-docs/cdk-overlay.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ <h4 id="Overlay" class="docs-header-link docs-api-h4 docs-api-class-name">

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>scrollStrategies: ScrollStrategyOptions</code>
<code>scrollStrategies: inject(ScrollStrategyOptions)</code>
</p>
</td>
<td class="docs-api-property-description"><p>Scrolling strategies that can be used when creating an overlay.</p>
</td>
<td class="docs-api-property-description"></td>
</tr>


Expand Down Expand Up @@ -710,11 +709,10 @@ <h4 id="CdkOverlayOrigin" class="docs-header-link docs-api-h4 docs-api-class-nam

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>elementRef: ElementRef</code>
<code>elementRef: inject(ElementRef)</code>
</p>
</td>
<td class="docs-api-property-description"><p>Reference to the element on which the directive is applied.</p>
</td>
<td class="docs-api-property-description"></td>
</tr>


Expand Down
12 changes: 6 additions & 6 deletions docs-content/api-docs/cdk-scrolling.html
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ <h4 id="CdkScrollable" class="docs-header-link docs-api-h4 docs-api-class-name">

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>dir: Directionality</code>
<code>dir: inject(Directionality, { optional: true })</code>
</p>
</td>
<td class="docs-api-property-description"></td>
Expand All @@ -351,7 +351,7 @@ <h4 id="CdkScrollable" class="docs-header-link docs-api-h4 docs-api-class-name">

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>elementRef: ElementRef&lt;HTMLElement&gt;</code>
<code>elementRef: inject&lt;ElementRef&lt;HTMLElement&gt;&gt;(ElementRef)</code>
</p>
</td>
<td class="docs-api-property-description"></td>
Expand All @@ -363,7 +363,7 @@ <h4 id="CdkScrollable" class="docs-header-link docs-api-h4 docs-api-class-name">

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>ngZone: NgZone</code>
<code>ngZone: inject(NgZone)</code>
</p>
</td>
<td class="docs-api-property-description"></td>
Expand All @@ -375,7 +375,7 @@ <h4 id="CdkScrollable" class="docs-header-link docs-api-h4 docs-api-class-name">

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>scrollDispatcher: ScrollDispatcher</code>
<code>scrollDispatcher: inject(ScrollDispatcher)</code>
</p>
</td>
<td class="docs-api-property-description"></td>
Expand Down Expand Up @@ -928,7 +928,7 @@ <h4 id="CdkVirtualScrollViewport" class="docs-header-link docs-api-h4 docs-api-c

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>elementRef: ElementRef&lt;HTMLElement&gt;</code>
<code>elementRef: inject&lt;ElementRef&lt;HTMLElement&gt;&gt;(ElementRef)</code>
</p>
</td>
<td class="docs-api-property-description"></td>
Expand All @@ -953,7 +953,7 @@ <h4 id="CdkVirtualScrollViewport" class="docs-header-link docs-api-h4 docs-api-c

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>scrollable: CdkVirtualScrollable</code>
<code>scrollable: inject&lt;CdkVirtualScrollable&gt;(VIRTUAL_SCROLLABLE, { optional: true })!</code>
</p>
</td>
<td class="docs-api-property-description"></td>
Expand Down
21 changes: 20 additions & 1 deletion docs-content/api-docs/cdk-stepper.html
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,26 @@ <h4 id="CdkStepLabel" class="docs-header-link docs-api-h4 docs-api-class-name">

<span class="docs-api-class-selector-name">[cdkStepLabel]</span>

</p>
</p><h5 class="docs-api-h5 docs-api-method-header">Properties</h5>
<table class="docs-api-properties-table">
<tr class="docs-api-properties-header-row">
<th class="docs-api-properties-th">Name</th>
<th class="docs-api-properties-th">Description</th>
</tr>



<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>template: inject&lt;TemplateRef&lt;any&gt;&gt;(TemplateRef)</code>
</p>
</td>
<td class="docs-api-property-description"></td>
</tr>



</table>



Expand Down
50 changes: 49 additions & 1 deletion docs-content/api-docs/cdk-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,18 @@ <h4 id="CdkHeaderRowDef" class="docs-header-link docs-api-h4 docs-api-class-name





<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>template: inject&lt;TemplateRef&lt;any&gt;&gt;(TemplateRef)</code>
</p>
</td>
<td class="docs-api-property-description"></td>
</tr>



</table>


Expand Down Expand Up @@ -1143,6 +1155,18 @@ <h4 id="CdkFooterRowDef" class="docs-header-link docs-api-h4 docs-api-class-name





<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>template: inject&lt;TemplateRef&lt;any&gt;&gt;(TemplateRef)</code>
</p>
</td>
<td class="docs-api-property-description"></td>
</tr>



</table>


Expand Down Expand Up @@ -1340,6 +1364,18 @@ <h4 id="CdkRowDef" class="docs-header-link docs-api-h4 docs-api-class-name">





<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>template: inject&lt;TemplateRef&lt;any&gt;&gt;(TemplateRef)</code>
</p>
</td>
<td class="docs-api-property-description"></td>
</tr>



</table>


Expand Down Expand Up @@ -1519,7 +1555,7 @@ <h4 id="CdkNoDataRow" class="docs-header-link docs-api-h4 docs-api-class-name">

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>templateRef: TemplateRef&lt;any&gt;</code>
<code>templateRef: inject&lt;TemplateRef&lt;any&gt;&gt;(TemplateRef)</code>
</p>
</td>
<td class="docs-api-property-description"></td>
Expand Down Expand Up @@ -1674,6 +1710,18 @@ <h4 id="BaseRowDef" class="docs-header-link docs-api-h4 docs-api-class-name">





<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>template: inject&lt;TemplateRef&lt;any&gt;&gt;(TemplateRef)</code>
</p>
</td>
<td class="docs-api-property-description"></td>
</tr>



</table>


Expand Down
14 changes: 1 addition & 13 deletions docs-content/api-docs/cdk-tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -473,18 +473,6 @@ <h4 id="CdkTreeNodeDef" class="docs-header-link docs-api-h4 docs-api-class-name"





<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>template: TemplateRef&lt;any&gt;</code>
</p>
</td>
<td class="docs-api-property-description"></td>
</tr>



</table>


Expand Down Expand Up @@ -587,7 +575,7 @@ <h4 id="CdkTreeNodeOutlet" class="docs-header-link docs-api-h4 docs-api-class-na

<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>viewContainer: ViewContainerRef</code>
<code>viewContainer: inject(ViewContainerRef)</code>
</p>
</td>
<td class="docs-api-property-description"></td>
Expand Down
21 changes: 20 additions & 1 deletion docs-content/api-docs/material-stepper.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,26 @@ <h4 id="MatStepLabel" class="docs-header-link docs-api-h4 docs-api-class-name">

<span class="docs-api-class-selector-name">[matStepLabel]</span>

</p>
</p><h5 class="docs-api-h5 docs-api-method-header">Properties</h5>
<table class="docs-api-properties-table">
<tr class="docs-api-properties-header-row">
<th class="docs-api-properties-th">Name</th>
<th class="docs-api-properties-th">Description</th>
</tr>



<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>template: inject&lt;TemplateRef&lt;any&gt;&gt;(TemplateRef)</code>
</p>
</td>
<td class="docs-api-property-description"></td>
</tr>



</table>



Expand Down
Loading

0 comments on commit 76ed43a

Please sign in to comment.