Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
feat(core): move MatchMedia to internal scope
Browse files Browse the repository at this point in the history
  • Loading branch information
CaerusKaru committed Jan 15, 2019
1 parent c45f2ae commit 9ac281a
Show file tree
Hide file tree
Showing 23 changed files with 29 additions and 24 deletions.
7 changes: 6 additions & 1 deletion src/lib/core/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ export * from './add-alias';

export * from './base/index';
export * from './breakpoints/index';
export * from './match-media/index';
export {
MatchMedia as ɵMatchMedia,
ServerMatchMedia as ɵServerMatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
} from './match-media/index';
export * from './media-observer/index';
export * from './utils/index';

Expand Down
2 changes: 1 addition & 1 deletion src/lib/extended/class/class.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CommonModule, isPlatformServer} from '@angular/common';
import {ComponentFixture, TestBed, fakeAsync, flush, inject} from '@angular/core/testing';
import {MatButtonModule} from '@angular/material/button';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
CoreModule,
MockMatchMedia,
MockMatchMediaProvider,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/extended/img-src/img-src.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {Component, PLATFORM_ID} from '@angular/core';
import {CommonModule, isPlatformServer} from '@angular/common';
import {ComponentFixture, TestBed, inject} from '@angular/core/testing';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
SERVER_TOKEN,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/extended/show-hide/hide.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {Component, OnInit} from '@angular/core';
import {CommonModule} from '@angular/common';
import {ComponentFixture, TestBed, inject} from '@angular/core/testing';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
MediaObserver,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/extended/show-hide/show.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {Component, Directive, OnInit, PLATFORM_ID} from '@angular/core';
import {CommonModule, isPlatformBrowser} from '@angular/common';
import {ComponentFixture, TestBed, inject} from '@angular/core/testing';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
MediaObserver,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/extended/style/style.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {Component} from '@angular/core';
import {CommonModule} from '@angular/common';
import {ComponentFixture, TestBed, inject} from '@angular/core/testing';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
CoreModule,
MockMatchMedia,
MockMatchMediaProvider,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/flex/flex-order/flex-order.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {Component} from '@angular/core';
import {ComponentFixture, inject, TestBed} from '@angular/core/testing';
import {CommonModule} from '@angular/common';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
SERVER_TOKEN,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/flex/flex/flex.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CommonModule, isPlatformServer} from '@angular/common';
import {ComponentFixture, TestBed, inject, fakeAsync} from '@angular/core/testing';
import {Platform} from '@angular/cdk/platform';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
StyleBuilder,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/flex/layout-align/layout-align.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CommonModule} from '@angular/common';
import {ComponentFixture, TestBed, inject} from '@angular/core/testing';
import {Platform} from '@angular/cdk/platform';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
SERVER_TOKEN,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/flex/layout-gap/layout-gap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CommonModule, isPlatformServer} from '@angular/common';
import {TestBed, ComponentFixture, inject, async} from '@angular/core/testing';
import {DIR_DOCUMENT} from '@angular/cdk/bidi';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
SERVER_TOKEN,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/flex/layout/layout.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {Component, Injectable, OnInit} from '@angular/core';
import {CommonModule} from '@angular/common';
import {ComponentFixture, TestBed, inject} from '@angular/core/testing';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
SERVER_TOKEN,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/grid/align-columns/align-columns.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CommonModule} from '@angular/common';
import {ComponentFixture, TestBed, inject} from '@angular/core/testing';
import {Platform} from '@angular/cdk/platform';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
StyleUtils,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/grid/align-rows/align-rows.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {Component, OnInit} from '@angular/core';
import {CommonModule} from '@angular/common';
import {ComponentFixture, TestBed, inject} from '@angular/core/testing';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
StyleUtils,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/grid/area/area.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CommonModule} from '@angular/common';
import {TestBed, ComponentFixture, inject} from '@angular/core/testing';
import {Platform} from '@angular/cdk/platform';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
SERVER_TOKEN,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/grid/areas/areas.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CommonModule} from '@angular/common';
import {TestBed, ComponentFixture, inject} from '@angular/core/testing';
import {Platform} from '@angular/cdk/platform';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
SERVER_TOKEN,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/grid/auto/auto.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CommonModule} from '@angular/common';
import {TestBed, ComponentFixture, inject} from '@angular/core/testing';
import {Platform} from '@angular/cdk/platform';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
SERVER_TOKEN,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/grid/column/column.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CommonModule} from '@angular/common';
import {TestBed, ComponentFixture, inject} from '@angular/core/testing';
import {Platform} from '@angular/cdk/platform';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
SERVER_TOKEN,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/grid/columns/columns.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CommonModule} from '@angular/common';
import {TestBed, ComponentFixture, inject} from '@angular/core/testing';
import {Platform} from '@angular/cdk/platform';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
SERVER_TOKEN,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/grid/gap/gap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CommonModule} from '@angular/common';
import {TestBed, ComponentFixture, inject} from '@angular/core/testing';
import {Platform} from '@angular/cdk/platform';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
SERVER_TOKEN,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/grid/grid-align/grid-align.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CommonModule} from '@angular/common';
import {ComponentFixture, TestBed, inject} from '@angular/core/testing';
import {Platform} from '@angular/cdk/platform';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
SERVER_TOKEN,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/grid/row/row.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CommonModule} from '@angular/common';
import {TestBed, ComponentFixture, inject} from '@angular/core/testing';
import {Platform} from '@angular/cdk/platform';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
SERVER_TOKEN,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/grid/rows/rows.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CommonModule} from '@angular/common';
import {TestBed, ComponentFixture, inject} from '@angular/core/testing';
import {Platform} from '@angular/cdk/platform';
import {
MatchMedia,
ɵMatchMedia as MatchMedia,
MockMatchMedia,
MockMatchMediaProvider,
SERVER_TOKEN,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/server/server-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import {
CLASS_NAME,
SERVER_TOKEN,
BreakPoint,
MatchMedia,
ɵMatchMedia as MatchMedia,
StylesheetMap,
ServerMatchMedia,
ɵServerMatchMedia as ServerMatchMedia,
sortAscendingPriority
} from '@angular/flex-layout/core';

Expand Down

0 comments on commit 9ac281a

Please sign in to comment.