Skip to content

Commit 99faae1

Browse files
author
Zhicheng WANG
committed
docs: 对文件格式进行预处理,以免不必要的冲突
1 parent 6580a85 commit 99faae1

File tree

210 files changed

+142
-439
lines changed

Some content is hidden

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

210 files changed

+142
-439
lines changed

src/cdk/a11y/a11y-module.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {CdkTrapFocus} from './focus-trap/focus-trap';
1414
import {HighContrastModeDetector} from './high-contrast-mode/high-contrast-mode-detector';
1515
import {CdkAriaLive} from './live-announcer/live-announcer';
1616

17-
1817
@NgModule({
1918
imports: [PlatformModule, ObserversModule],
2019
declarations: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],

src/cdk/a11y/aria-describer/aria-describer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {DOCUMENT} from '@angular/common';
1010
import {Inject, Injectable, OnDestroy} from '@angular/core';
1111
import {addAriaReferencedId, getAriaReferenceIds, removeAriaReferencedId} from './aria-reference';
1212

13-
1413
/**
1514
* Interface used to register message elements and keep a count of how many registrations have
1615
* the same message and the reference to the message element used for the `aria-describedby`.

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,15 @@ import {coerceElement} from '@angular/cdk/coercion';
2525
import {DOCUMENT} from '@angular/common';
2626
import {isFakeMousedownFromScreenReader} from '../fake-mousedown';
2727

28-
2928
// This is the value used by AngularJS Material. Through trial and error (on iPhone 6S) they found
3029
// that a value of around 650ms seems appropriate.
3130
export const TOUCH_BUFFER_MS = 650;
3231

33-
3432
export type FocusOrigin = 'touch' | 'mouse' | 'keyboard' | 'program' | null;
3533

3634
/**
3735
* Corresponds to the options that can be passed to the native `focus` event.
38-
* via https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus
36+
* via <https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus>
3937
*/
4038
export interface FocusOptions {
4139
/** Whether the browser should scroll to the element when it is focused. */
@@ -81,7 +79,6 @@ const captureEventListenerOptions = normalizePassiveListenerOptions({
8179
capture: true
8280
});
8381

84-
8582
/** Monitors mouse and keyboard events to determine the cause of focus events. */
8683
@Injectable({providedIn: 'root'})
8784
export class FocusMonitor implements OnDestroy {
@@ -580,7 +577,6 @@ function getTarget(event: Event): HTMLElement|null {
580577
return (event.composedPath ? event.composedPath()[0] : event.target) as HTMLElement | null;
581578
}
582579

583-
584580
/**
585581
* Directive that determines how a particular element was focused (via keyboard, mouse, touch, or
586582
* programmatically) and adds corresponding classes to the element.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import {
2424
import {take} from 'rxjs/operators';
2525
import {InteractivityChecker} from '../interactivity-checker/interactivity-checker';
2626

27-
2827
/**
2928
* Class that allows for trapping focus within a DOM element.
3029
*

src/cdk/a11y/high-contrast-mode/high-contrast-mode-detector.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {Platform} from '@angular/cdk/platform';
1010
import {DOCUMENT} from '@angular/common';
1111
import {Inject, Injectable} from '@angular/core';
1212

13-
1413
/** Set of possible high-contrast mode backgrounds. */
1514
export const enum HighContrastMode {
1615
NONE,

src/cdk/a11y/live-announcer/live-announcer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {
2626
LIVE_ANNOUNCER_DEFAULT_OPTIONS,
2727
} from './live-announcer-tokens';
2828

29-
3029
@Injectable({providedIn: 'root'})
3130
export class LiveAnnouncer implements OnDestroy {
3231
private _liveElement: HTMLElement;
@@ -172,7 +171,6 @@ export class LiveAnnouncer implements OnDestroy {
172171

173172
}
174173

175-
176174
/**
177175
* A directive that works similarly to aria-live, but uses the LiveAnnouncer to ensure compatibility
178176
* with a wider range of browsers and screen readers.

src/cdk/accordion/accordion-module.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {NgModule} from '@angular/core';
1010
import {CdkAccordion} from './accordion';
1111
import {CdkAccordionItem} from './accordion-item';
1212

13-
1413
@NgModule({
1514
exports: [CdkAccordion, CdkAccordionItem],
1615
declarations: [CdkAccordion, CdkAccordionItem],

src/cdk/bidi/bidi-module.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import {NgModule} from '@angular/core';
1010
import {Dir} from './dir';
1111

12-
1312
@NgModule({
1413
exports: [Dir],
1514
declarations: [Dir],

src/cdk/bidi/dir-document-token.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import {DOCUMENT} from '@angular/common';
1010
import {inject, InjectionToken} from '@angular/core';
1111

12-
1312
/**
1413
* Injection token used to inject the document into Directionality.
1514
* This is used so that the value can be faked in tests.

src/cdk/bidi/directionality.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99
import {EventEmitter, Inject, Injectable, Optional, OnDestroy} from '@angular/core';
1010
import {DIR_DOCUMENT} from './dir-document-token';
1111

12-
1312
export type Direction = 'ltr' | 'rtl';
1413

15-
1614
/**
1715
* The directionality (LTR / RTL) context for the application (or a subtree of it).
1816
* Exposes the current direction and a stream of direction changes.

0 commit comments

Comments
 (0)