Skip to content

Commit 735ec32

Browse files
committed
main - 626a465 refactor: use relative imports within module npm packages (#30588)
1 parent 5f86006 commit 735ec32

Some content is hidden

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

63 files changed

+236
-245
lines changed

docs-content/overviews/material/bottom-sheet/bottom-sheet.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h3 id="sharing-data-with-the-bottom-sheet-component" class="docs-header-link">
3030
</code></pre>
3131
<p>Afterwards you can access the injected data using the <code>MAT_BOTTOM_SHEET_DATA</code> injection token:</p>
3232
<pre><code class="language-ts"><span class="hljs-keyword">import</span> {Component, Inject} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/core&#x27;</span>;
33-
<span class="hljs-keyword">import</span> {MAT_BOTTOM_SHEET_DATA} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/material/bottom-sheet&#x27;</span>;
33+
<span class="hljs-keyword">import</span> {MAT_BOTTOM_SHEET_DATA} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;../bottom-sheet&#x27;</span>;
3434

3535
<span class="hljs-meta">@Component</span>({
3636
<span class="hljs-attr">selector</span>: <span class="hljs-string">&#x27;hobbit-sheet&#x27;</span>,

docs-content/overviews/material/dialog/dialog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h3 id="sharing-data-with-the-dialog-component" class="docs-header-link">
5555
</code></pre>
5656
<p>To access the data in your dialog component, you have to use the MAT_DIALOG_DATA injection token:</p>
5757
<pre><code class="language-ts"><span class="hljs-keyword">import</span> {Component, Inject} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/core&#x27;</span>;
58-
<span class="hljs-keyword">import</span> {MAT_DIALOG_DATA} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/material/dialog&#x27;</span>;
58+
<span class="hljs-keyword">import</span> {MAT_DIALOG_DATA} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;../dialog&#x27;</span>;
5959

6060
<span class="hljs-meta">@Component</span>({
6161
<span class="hljs-attr">selector</span>: <span class="hljs-string">&#x27;your-dialog&#x27;</span>,

docs-content/overviews/material/snack-bar/snack-bar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h3 id="sharing-data-with-a-custom-snackbar" class="docs-header-link">
5959
</code></pre>
6060
<p>To access the data in your component, you have to use the <code>MAT_SNACK_BAR_DATA</code> injection token:</p>
6161
<pre><code class="language-ts"><span class="hljs-keyword">import</span> {Component, Inject} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/core&#x27;</span>;
62-
<span class="hljs-keyword">import</span> {MAT_SNACK_BAR_DATA} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/material/snack-bar&#x27;</span>;
62+
<span class="hljs-keyword">import</span> {MAT_SNACK_BAR_DATA} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;../snack-bar&#x27;</span>;
6363

6464
<span class="hljs-meta">@Component</span>({
6565
<span class="hljs-attr">selector</span>: <span class="hljs-string">&#x27;your-snackbar&#x27;</span>,

docs-content/overviews/material/timepicker/timepicker.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ <h3 id="customizing-the-dropdown-options" class="docs-header-link">
8686
<p>Furthermore, the default interval can be controlled for the entire application using the
8787
<code>MAT_TIMEPICKER_CONFIG</code> injection token. For example, adding the following to your <code>providers</code> will
8888
default all timepickers to a 90 minute interval:</p>
89-
<pre><code class="language-ts"><span class="hljs-keyword">import</span> {MAT_TIMEPICKER_CONFIG} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/material/timepicker&#x27;</span>;
89+
<pre><code class="language-ts"><span class="hljs-keyword">import</span> {MAT_TIMEPICKER_CONFIG} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;../timepicker&#x27;</span>;
9090

9191
{
9292
<span class="hljs-attr">provide</span>: MAT_TIMEPICKER_CONFIG,

fesm2022/cdk-experimental/popover-edit.mjs

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

fesm2022/cdk-experimental/popover-edit.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fesm2022/cdk/a11y.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import * as i2 from '@angular/material/select';
66
import { MatSelectModule } from '@angular/material/select';
77
import * as i1$1 from '@angular/material/form-field';
88
import { MatFormFieldModule } from '@angular/material/form-field';
9-
import * as i3 from '@angular/material/core';
109

1110
/** @title Monitoring focus with FocusMonitor */
1211
class FocusMonitorDirectivesExample {
@@ -49,7 +48,7 @@ class FocusMonitorFocusViaExample {
4948
return origin ? origin + ' focused' : 'blurred';
5049
}
5150
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: FocusMonitorFocusViaExample, deps: [], target: i0.ɵɵFactoryTarget.Component });
52-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0-next.1", type: FocusMonitorFocusViaExample, isStandalone: true, selector: "focus-monitor-focus-via-example", viewQueries: [{ propertyName: "monitoredEl", first: true, predicate: ["monitored"], descendants: true }], ngImport: i0, template: "<div class=\"example-focus-monitor\">\n <button #monitored>1. Focus Monitored Element ({{origin}})</button>\n <button #unmonitored>2. Not Monitored</button>\n</div>\n\n<mat-form-field>\n <mat-label>Simulated focus origin</mat-label>\n <mat-select #simulatedOrigin value=\"mouse\">\n <mat-option value=\"mouse\">Mouse</mat-option>\n <mat-option value=\"keyboard\">Keyboard</mat-option>\n <mat-option value=\"touch\">Touch</mat-option>\n <mat-option value=\"program\">Programmatic</mat-option>\n </mat-select>\n</mat-form-field>\n\n<button (click)=\"focusMonitor.focusVia(monitored, simulatedOrigin.value)\">\n Focus button #1\n</button>\n<button (click)=\"focusMonitor.focusVia(unmonitored, simulatedOrigin.value)\">\n Focus button #2\n</button>\n", styles: [".example-focus-monitor {\n padding: 20px;\n}\n\n.example-focus-monitor .cdk-mouse-focused {\n background: rgba(255, 0, 0, 0.5);\n}\n\n.example-focus-monitor .cdk-keyboard-focused {\n background: rgba(0, 255, 0, 0.5);\n}\n\n.example-focus-monitor .cdk-touch-focused {\n background: rgba(0, 0, 255, 0.5);\n}\n\n.example-focus-monitor .cdk-program-focused {\n background: rgba(255, 0, 255, 0.5);\n}\n\n.example-focus-monitor button:focus {\n box-shadow: 0 0 30px cyan;\n}\n\nmat-form-field,\nbutton {\n margin-right: 12px;\n}\n"], dependencies: [{ kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i1$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i1$1.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i2.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i3.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }] });
51+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0-next.1", type: FocusMonitorFocusViaExample, isStandalone: true, selector: "focus-monitor-focus-via-example", viewQueries: [{ propertyName: "monitoredEl", first: true, predicate: ["monitored"], descendants: true }], ngImport: i0, template: "<div class=\"example-focus-monitor\">\n <button #monitored>1. Focus Monitored Element ({{origin}})</button>\n <button #unmonitored>2. Not Monitored</button>\n</div>\n\n<mat-form-field>\n <mat-label>Simulated focus origin</mat-label>\n <mat-select #simulatedOrigin value=\"mouse\">\n <mat-option value=\"mouse\">Mouse</mat-option>\n <mat-option value=\"keyboard\">Keyboard</mat-option>\n <mat-option value=\"touch\">Touch</mat-option>\n <mat-option value=\"program\">Programmatic</mat-option>\n </mat-select>\n</mat-form-field>\n\n<button (click)=\"focusMonitor.focusVia(monitored, simulatedOrigin.value)\">\n Focus button #1\n</button>\n<button (click)=\"focusMonitor.focusVia(unmonitored, simulatedOrigin.value)\">\n Focus button #2\n</button>\n", styles: [".example-focus-monitor {\n padding: 20px;\n}\n\n.example-focus-monitor .cdk-mouse-focused {\n background: rgba(255, 0, 0, 0.5);\n}\n\n.example-focus-monitor .cdk-keyboard-focused {\n background: rgba(0, 255, 0, 0.5);\n}\n\n.example-focus-monitor .cdk-touch-focused {\n background: rgba(0, 0, 255, 0.5);\n}\n\n.example-focus-monitor .cdk-program-focused {\n background: rgba(255, 0, 255, 0.5);\n}\n\n.example-focus-monitor button:focus {\n box-shadow: 0 0 30px cyan;\n}\n\nmat-form-field,\nbutton {\n margin-right: 12px;\n}\n"], dependencies: [{ kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i1$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i1$1.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i2.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i2.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }] });
5352
}
5453
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: FocusMonitorFocusViaExample, decorators: [{
5554
type: Component,

0 commit comments

Comments
 (0)