diff --git a/src/components/details-item/details-item.component.ts b/src/components/details-item/details-item.component.ts
index 6ec254df..d8d984f6 100644
--- a/src/components/details-item/details-item.component.ts
+++ b/src/components/details-item/details-item.component.ts
@@ -1,5 +1,4 @@
-import { Component, Input } from '@angular/core';
-import { coerceBoolean } from 'coerce-property';
+import { Component, Input, booleanAttribute } from '@angular/core';
@Component({
selector: 'cc-details-item',
@@ -8,5 +7,5 @@ import { coerceBoolean } from 'coerce-property';
})
export class DetailsItemComponent {
@Input() title: string;
- @Input() @coerceBoolean empty: boolean;
+ @Input({ transform: booleanAttribute }) empty: boolean;
}
diff --git a/src/components/details-item/details-item.module.ts b/src/components/details-item/details-item.module.ts
index fbad1f61..24eb845b 100644
--- a/src/components/details-item/details-item.module.ts
+++ b/src/components/details-item/details-item.module.ts
@@ -1,6 +1,5 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
-import { FlexLayoutModule } from '@angular/flex-layout';
import { MatIconModule } from '@angular/material/icon';
import { DetailsItemComponent } from './details-item.component';
@@ -8,6 +7,6 @@ import { DetailsItemComponent } from './details-item.component';
@NgModule({
declarations: [DetailsItemComponent],
exports: [DetailsItemComponent],
- imports: [FlexLayoutModule, CommonModule, MatIconModule],
+ imports: [CommonModule, MatIconModule],
})
export class DetailsItemModule {}
diff --git a/src/components/empty-search-result/empty-search-result.component.html b/src/components/empty-search-result/empty-search-result.component.html
deleted file mode 100644
index 01505e31..00000000
--- a/src/components/empty-search-result/empty-search-result.component.html
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
{{ label || 'Search result is empty' }}
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/components/empty-search-result/empty-search-result.component.scss b/src/components/empty-search-result/empty-search-result.component.scss
deleted file mode 100644
index 501acb01..00000000
--- a/src/components/empty-search-result/empty-search-result.component.scss
+++ /dev/null
@@ -1,4 +0,0 @@
-.empty-result {
- margin: 24px auto;
- opacity: 0.54;
-}
diff --git a/src/components/empty-search-result/empty-search-result.component.ts b/src/components/empty-search-result/empty-search-result.component.ts
deleted file mode 100644
index 28befe65..00000000
--- a/src/components/empty-search-result/empty-search-result.component.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Component, Input } from '@angular/core';
-import { coerceBoolean } from 'coerce-property';
-
-@Component({
- selector: 'cc-empty-search-result',
- templateUrl: 'empty-search-result.component.html',
- styleUrls: ['empty-search-result.component.scss'],
-})
-export class EmptySearchResultComponent {
- @Input() @coerceBoolean unwrapped = false;
- @Input() label: string;
-}
diff --git a/src/components/empty-search-result/empty-search-result.module.ts b/src/components/empty-search-result/empty-search-result.module.ts
deleted file mode 100644
index feeb70a9..00000000
--- a/src/components/empty-search-result/empty-search-result.module.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { CommonModule } from '@angular/common';
-import { NgModule } from '@angular/core';
-import { FlexModule } from '@angular/flex-layout';
-import { MatCardModule } from '@angular/material/card';
-
-import { EmptySearchResultComponent } from './empty-search-result.component';
-
-@NgModule({
- declarations: [EmptySearchResultComponent],
- exports: [EmptySearchResultComponent],
- imports: [MatCardModule, FlexModule, CommonModule],
-})
-export class EmptySearchResultModule {}
diff --git a/src/components/empty-search-result/index.ts b/src/components/empty-search-result/index.ts
deleted file mode 100644
index 3623338a..00000000
--- a/src/components/empty-search-result/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from './empty-search-result.module';
diff --git a/src/components/headline/headline.component.html b/src/components/headline/headline.component.html
index 5bce60c1..2f03ab2b 100644
--- a/src/components/headline/headline.component.html
+++ b/src/components/headline/headline.component.html
@@ -1,4 +1,7 @@
-
+
arrow_back
diff --git a/src/components/headline/headline.module.ts b/src/components/headline/headline.module.ts
index 501c6468..795cedba 100644
--- a/src/components/headline/headline.module.ts
+++ b/src/components/headline/headline.module.ts
@@ -1,6 +1,5 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
-import { FlexLayoutModule } from '@angular/flex-layout';
import { MatIconModule } from '@angular/material/icon';
import { HeadlineComponent } from './headline.component';
@@ -8,7 +7,7 @@ import { HeadlineComponent } from './headline.component';
const EXPORTED_DECLARATIONS = [HeadlineComponent];
@NgModule({
- imports: [CommonModule, MatIconModule, FlexLayoutModule],
+ imports: [CommonModule, MatIconModule],
exports: EXPORTED_DECLARATIONS,
declarations: EXPORTED_DECLARATIONS,
})
diff --git a/src/components/pretty-json/pretty-json.component.ts b/src/components/pretty-json/pretty-json.component.ts
index f4d9027f..575fdb3e 100644
--- a/src/components/pretty-json/pretty-json.component.ts
+++ b/src/components/pretty-json/pretty-json.component.ts
@@ -1,5 +1,4 @@
-import { Component, Input } from '@angular/core';
-import { coerceBoolean } from 'coerce-property';
+import { Component, Input, booleanAttribute } from '@angular/core';
@Component({
selector: 'cc-pretty-json',
@@ -41,14 +40,7 @@ import { coerceBoolean } from 'coerce-property';
],
})
export class PrettyJsonComponent {
- @Input()
- object: unknown;
-
- @Input()
- @coerceBoolean
- inline = false;
-
- @Input()
- @coerceBoolean
- cleanLook: boolean;
+ @Input() object: unknown;
+ @Input({ transform: booleanAttribute }) inline = false;
+ @Input({ transform: booleanAttribute }) cleanLook: boolean;
}
diff --git a/src/components/table/select-column/select-column.component.ts b/src/components/table/select-column/select-column.component.ts
index 3998b998..8f1a06ef 100644
--- a/src/components/table/select-column/select-column.component.ts
+++ b/src/components/table/select-column/select-column.component.ts
@@ -8,6 +8,7 @@ import {
Optional,
Output,
ViewChild,
+ booleanAttribute,
} from '@angular/core';
import {
MatCellDef,
@@ -17,7 +18,6 @@ import {
MatTable,
} from '@angular/material/table';
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
-import { coerceBoolean } from 'coerce-property';
export const SELECT_COLUMN_NAME = '_select';
@@ -28,7 +28,7 @@ export const SELECT_COLUMN_NAME = '_select';
})
export class SelectColumnComponent
implements OnInit, OnDestroy {
@Input() name = SELECT_COLUMN_NAME;
- @coerceBoolean @Input() sticky = false;
+ @Input({ transform: booleanAttribute }) sticky = false;
@Input() dataSource: T[];
@Output() changed = new EventEmitter>();
diff --git a/src/components/table/show-more-button/show-more-button.component.html b/src/components/table/show-more-button/show-more-button.component.html
index 34d73d09..1729c646 100644
--- a/src/components/table/show-more-button/show-more-button.component.html
+++ b/src/components/table/show-more-button/show-more-button.component.html
@@ -1,3 +1,3 @@
-