Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
refactor(table): Remove unnecessary ng_Zone from constructor and tabl…
Browse files Browse the repository at this point in the history
…e empty states.

BREAKING CHANGE: No more NgZone element and use `<dt-empty-state>` instead.
  • Loading branch information
rowa-audil authored and ffriedl89 committed May 12, 2020
1 parent 550fdcd commit de89e60
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 259 deletions.
4 changes: 0 additions & 4 deletions libs/barista-components/table/src/states/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@
* limitations under the License.
*/

export * from './table-empty-state';
export * from './table-empty-state-image';
export * from './table-empty-state-message';
export * from './table-empty-state-title';
export * from './table-loading-state';

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions libs/barista-components/table/src/states/table-empty-state.scss

This file was deleted.

69 changes: 0 additions & 69 deletions libs/barista-components/table/src/states/table-empty-state.ts

This file was deleted.

14 changes: 1 addition & 13 deletions libs/barista-components/table/src/table-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,7 @@ import {
} from './simple-columns/index';
import { DtSort } from './sort/sort';
import { DtSortHeader } from './sort/sort-header';
import {
DtTableEmptyState,
DtTableEmptyStateDirective,
DtTableEmptyStateImage,
DtTableEmptyStateMessage,
DtTableEmptyStateTitle,
DtTableLoadingState,
} from './states/index';
import { DtTableLoadingState } from './states/index';
import { DtTable } from './table';

const EXPORTED_DECLARATIONS = [
Expand All @@ -71,11 +64,6 @@ const EXPORTED_DECLARATIONS = [
DtExpandableRow,
DtHeaderCell,
DtHeaderCellDef,
DtTableEmptyState, // tslint:disable-line:deprecation
DtTableEmptyStateDirective, // tslint:disable-line:deprecation
DtTableEmptyStateImage, // tslint:disable-line:deprecation
DtTableEmptyStateTitle, // tslint:disable-line:deprecation
DtTableEmptyStateMessage, // tslint:disable-line:deprecation
DtTableLoadingState,
DtSort,
DtSortHeader,
Expand Down
3 changes: 0 additions & 3 deletions libs/barista-components/table/src/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
Inject,
Input,
IterableDiffers,
NgZone,
OnDestroy,
QueryList,
TemplateRef,
Expand Down Expand Up @@ -150,8 +149,6 @@ export class DtTable<T> extends _DtTableBase<T> implements OnDestroy {
changeDetectorRef: ChangeDetectorRef,
elementRef: ElementRef,
@Attribute('role') role: string,
/** @breaking-change: ngZone is no longer necessary in the table injectors, will be removed with 7.0.0 */
_ngZone: NgZone,
// tslint:disable-next-line: no-any
@Inject(DOCUMENT) document: any,
platform: Platform,
Expand Down

0 comments on commit de89e60

Please sign in to comment.