Skip to content

Commit ab7f4b1

Browse files
committed
Fixed formatting nits
1 parent 8ebbd89 commit ab7f4b1

File tree

4 files changed

+55
-59
lines changed

4 files changed

+55
-59
lines changed

src/cdk/datepicker/BUILD.bazel

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ load("@build_bazel_rules_typescript//:defs.bzl", "ts_library", "ts_web_test")
44

55

66
ng_module(
7-
name = "datepicker",
8-
srcs = glob(["**/*.ts"], exclude=["**/*.spec.ts"]),
9-
module_name = "@angular/cdk/datepicker",
10-
deps = ["@rxjs"],
11-
tsconfig = "//src/cdk:tsconfig-build.json",
7+
name = "datepicker",
8+
srcs = glob(["**/*.ts"], exclude=["**/*.spec.ts"]),
9+
module_name = "@angular/cdk/datepicker",
10+
deps = ["@rxjs"],
11+
tsconfig = "//src/cdk:tsconfig-build.json",
1212
)

src/cdk/datepicker/calendar-view.ts

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,20 @@ import {Subject} from 'rxjs';
1414
*/
1515
export abstract class CalendarView<D> {
1616

17-
/** The date representing when to start the calendar. */
18-
abstract get activeDate();
19-
abstract set activeDate(value: D);
17+
/** The date representing when to start the calendar. */
18+
abstract activeDate: D;
2019

21-
/** The minimum selectable date. */
22-
abstract get minDate();
23-
abstract set minDate(value: D | null);
20+
/** The minimum selectable date. */
21+
abstract minDate: D | null;
2422

25-
/** The maximum selectable date. */
26-
abstract get maxDate();
27-
abstract set maxDate(value: D | null);
23+
/** The maximum selectable date. */
24+
abstract maxDate: D | null;
2825

29-
/** The currently selected date. */
30-
abstract get selected();
31-
abstract set selected(value: D | null);
26+
/** The currently selected date. */
27+
abstract selected: D | null;
3228

33-
/**
34-
* Emits whenever there is a state change that needs to be responded to.
35-
*/
36-
readonly changes = new Subject<D>();
29+
/**
30+
* Emits whenever there is a state change that needs to be responded to.
31+
*/
32+
readonly changes = new Subject<D>();
3733
}

src/cdk/datepicker/datepicker-module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {NgModule} from '@angular/core';
1212
const EXPORTED_DECLARATIONS = [];
1313

1414
@NgModule({
15-
exports: EXPORTED_DECLARATIONS,
16-
declarations: EXPORTED_DECLARATIONS,
15+
exports: EXPORTED_DECLARATIONS,
16+
declarations: EXPORTED_DECLARATIONS,
1717
})
1818
export class CdkDatepickerModule {}

tools/package-tools/rollup-globals.ts

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ import {buildConfig} from './build-config';
44

55
/** Method that converts dash-case strings to a camel-based string. */
66
export const dashCaseToCamelCase =
7-
(str: string) => str.replace(/-([a-z])/g, (g) => g[1].toUpperCase());
7+
(str: string) => str.replace(/-([a-z])/g, (g) => g[1].toUpperCase());
88

99
/** Generates rollup entry point mappings for the given package and entry points. */
1010
function generateRollupEntryPoints(packageName: string, entryPoints: string[]):
11-
{ [k: string]: string } {
12-
return entryPoints.reduce((globals: { [k: string]: string }, entryPoint: string) => {
13-
globals[`@angular/${packageName}/${entryPoint}`] =
14-
`ng.${dashCaseToCamelCase(packageName)}.${dashCaseToCamelCase(entryPoint)}`;
15-
return globals;
16-
}, {});
11+
{[k: string]: string} {
12+
return entryPoints.reduce((globals: {[k: string]: string}, entryPoint: string) => {
13+
globals[`@angular/${packageName}/${entryPoint}`] =
14+
`ng.${dashCaseToCamelCase(packageName)}.${dashCaseToCamelCase(entryPoint)}`;
15+
return globals;
16+
}, {});
1717
}
1818

1919
/** List of potential secondary entry-points for the cdk package. */
@@ -38,37 +38,37 @@ const rollupCdkExperimentalEntryPoints =
3838

3939
/** Map of globals that are used inside of the different packages. */
4040
export const rollupGlobals = {
41-
'moment': 'moment',
42-
'tslib': 'tslib',
41+
'moment': 'moment',
42+
'tslib': 'tslib',
4343

44-
'@angular/animations': 'ng.animations',
45-
'@angular/common': 'ng.common',
46-
'@angular/common/http': 'ng.common.http',
47-
'@angular/common/http/testing': 'ng.common.http.testing',
48-
'@angular/common/testing': 'ng.common.testing',
49-
'@angular/core': 'ng.core',
50-
'@angular/core/testing': 'ng.core.testing',
51-
'@angular/forms': 'ng.forms',
52-
'@angular/platform-browser': 'ng.platformBrowser',
53-
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic',
54-
'@angular/platform-browser-dynamic/testing': 'ng.platformBrowserDynamic.testing',
55-
'@angular/platform-browser/animations': 'ng.platformBrowser.animations',
56-
'@angular/platform-server': 'ng.platformServer',
57-
'@angular/router': 'ng.router',
44+
'@angular/animations': 'ng.animations',
45+
'@angular/common': 'ng.common',
46+
'@angular/common/http': 'ng.common.http',
47+
'@angular/common/http/testing': 'ng.common.http.testing',
48+
'@angular/common/testing': 'ng.common.testing',
49+
'@angular/core': 'ng.core',
50+
'@angular/core/testing': 'ng.core.testing',
51+
'@angular/forms': 'ng.forms',
52+
'@angular/platform-browser': 'ng.platformBrowser',
53+
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic',
54+
'@angular/platform-browser-dynamic/testing': 'ng.platformBrowserDynamic.testing',
55+
'@angular/platform-browser/animations': 'ng.platformBrowser.animations',
56+
'@angular/platform-server': 'ng.platformServer',
57+
'@angular/router': 'ng.router',
5858

59-
// Some packages are not really needed for the UMD bundles, but for the missingRollupGlobals rule.
60-
'@angular/cdk': 'ng.cdk',
61-
'@angular/cdk-experimental': 'ng.cdkExperimental',
62-
'@angular/material': 'ng.material',
63-
'@angular/material-examples': 'ng.materialExamples',
64-
'@angular/material-experimental': 'ng.materialExperimental',
65-
'@angular/material-moment-adapter': 'ng.materialMomentAdapter',
59+
// Some packages are not really needed for the UMD bundles, but for the missingRollupGlobals rule.
60+
'@angular/cdk': 'ng.cdk',
61+
'@angular/cdk-experimental': 'ng.cdkExperimental',
62+
'@angular/material': 'ng.material',
63+
'@angular/material-examples': 'ng.materialExamples',
64+
'@angular/material-experimental': 'ng.materialExperimental',
65+
'@angular/material-moment-adapter': 'ng.materialMomentAdapter',
6666

67-
// Include secondary entry-points of the cdk and material packages
68-
...rollupCdkEntryPoints,
69-
...rollupMatEntryPoints,
70-
...rollupCdkExperimentalEntryPoints,
67+
// Include secondary entry-points of the cdk and material packages
68+
...rollupCdkEntryPoints,
69+
...rollupMatEntryPoints,
70+
...rollupCdkExperimentalEntryPoints,
7171

72-
'rxjs': 'rxjs',
73-
'rxjs/operators': 'rxjs.operators',
72+
'rxjs': 'rxjs',
73+
'rxjs/operators': 'rxjs.operators',
7474
};

0 commit comments

Comments
 (0)