From 279112436f734eac60afe25078c256ed6a330468 Mon Sep 17 00:00:00 2001 From: Antonino Bonanno Date: Sun, 7 Jul 2024 16:17:46 +0200 Subject: [PATCH] build(timeline): fixed timeline build on library Closes: #345 --- .../core/timeline/timeline-item/timeline-item.component.ts | 3 ++- .../src/lib/components/core/timeline/timeline.component.html | 2 +- .../design-angular-kit/src/lib/design-angular-kit.module.ts | 4 ---- projects/design-angular-kit/src/public_api.ts | 4 ++++ 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/projects/design-angular-kit/src/lib/components/core/timeline/timeline-item/timeline-item.component.ts b/projects/design-angular-kit/src/lib/components/core/timeline/timeline-item/timeline-item.component.ts index 22bceb02..54fae9a2 100644 --- a/projects/design-angular-kit/src/lib/components/core/timeline/timeline-item/timeline-item.component.ts +++ b/projects/design-angular-kit/src/lib/components/core/timeline/timeline-item/timeline-item.component.ts @@ -72,7 +72,8 @@ export class ItTimelineItemComponent extends ItAbstractComponent { */ @Input() categoryLink: string | undefined; - /** Timeline element show detail link + /** + * Timeline element show detail link * @default false */ @Input({ transform: inputToBoolean }) diff --git a/projects/design-angular-kit/src/lib/components/core/timeline/timeline.component.html b/projects/design-angular-kit/src/lib/components/core/timeline/timeline.component.html index 81742ea2..2e251a87 100644 --- a/projects/design-angular-kit/src/lib/components/core/timeline/timeline.component.html +++ b/projects/design-angular-kit/src/lib/components/core/timeline/timeline.component.html @@ -13,7 +13,7 @@ [dateFormat]="dateFormat" [categoryTitle]="element.category?.title" [categoryLink]="element.category?.link" - [showReadMore]="element.link?.length" + [showReadMore]="!!element.link?.length" [readMoreLink]="element.link" /> } diff --git a/projects/design-angular-kit/src/lib/design-angular-kit.module.ts b/projects/design-angular-kit/src/lib/design-angular-kit.module.ts index 1952204d..0b4a697f 100644 --- a/projects/design-angular-kit/src/lib/design-angular-kit.module.ts +++ b/projects/design-angular-kit/src/lib/design-angular-kit.module.ts @@ -42,8 +42,6 @@ import { ItDateAgoPipe } from './pipes/date-ago.pipe'; import { ItDurationPipe } from './pipes/duration.pipe'; import { ItMarkMatchingTextPipe } from './pipes/mark-matching-text.pipe'; import { ItTimelineModule } from './components/core/timeline/timeline.module'; -import { ItTimelineComponent } from './components/core/timeline/timeline.component'; -import { ItTimelineItemComponent } from './components/core/timeline/timeline-item/timeline-item.component'; /** * Core components @@ -75,8 +73,6 @@ const core = [ ItTabModule, ItTableModule, ItTooltipDirective, - ItTimelineComponent, - ItTimelineItemComponent, ItTimelineModule, ]; diff --git a/projects/design-angular-kit/src/public_api.ts b/projects/design-angular-kit/src/public_api.ts index d0555d41..b484a609 100644 --- a/projects/design-angular-kit/src/public_api.ts +++ b/projects/design-angular-kit/src/public_api.ts @@ -63,6 +63,10 @@ export * from './lib/components/core/table/table.component'; export * from './lib/components/core/table/sort/sort.directive'; export * from './lib/components/core/table/sort/sort-header/sort-header.component'; +export * from './lib/components/core/timeline/timeline.module'; +export * from './lib/components/core/timeline/timeline.component'; +export * from './lib/components/core/timeline/timeline-item/timeline-item.component'; + export * from './lib/components/core/tooltip/tooltip.directive'; // Forms components