ngx-core-components 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/ai/ai-audio-wave/ai-audio-wave.component.d.ts +28 -0
  2. package/ai/ai-chat-widget/ai-chat-widget.component.d.ts +26 -0
  3. package/ai/ai-code-editor/ai-code-editor.component.d.ts +30 -0
  4. package/ai/ai-model-compare/ai-model-compare.component.d.ts +31 -0
  5. package/ai/ai-prompt-editor/ai-prompt-editor.component.d.ts +22 -0
  6. package/ai/public-api.d.ts +7 -0
  7. package/buttons/public-api.d.ts +2 -0
  8. package/buttons/speed-dial/speed-dial.component.d.ts +24 -0
  9. package/charts/area-chart/area-chart.component.d.ts +43 -0
  10. package/charts/funnel-chart/funnel-chart.component.d.ts +26 -0
  11. package/charts/gauge-chart/gauge-chart.component.d.ts +25 -0
  12. package/charts/heatmap-chart/heatmap-chart.component.d.ts +34 -0
  13. package/charts/public-api.d.ts +10 -0
  14. package/charts/radar-chart/radar-chart.component.d.ts +51 -0
  15. package/charts/treemap-chart/treemap-chart.component.d.ts +33 -0
  16. package/feedback/alert/alert.component.d.ts +19 -0
  17. package/feedback/public-api.d.ts +2 -0
  18. package/fesm2022/ngx-core-components-ai.mjs +1418 -2
  19. package/fesm2022/ngx-core-components-ai.mjs.map +1 -1
  20. package/fesm2022/ngx-core-components-buttons.mjs +133 -1
  21. package/fesm2022/ngx-core-components-buttons.mjs.map +1 -1
  22. package/fesm2022/ngx-core-components-charts.mjs +1474 -2
  23. package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
  24. package/fesm2022/ngx-core-components-feedback.mjs +186 -2
  25. package/fesm2022/ngx-core-components-feedback.mjs.map +1 -1
  26. package/fesm2022/ngx-core-components-inputs.mjs +440 -10
  27. package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
  28. package/fesm2022/ngx-core-components-navigation.mjs +282 -2
  29. package/fesm2022/ngx-core-components-navigation.mjs.map +1 -1
  30. package/fesm2022/ngx-core-components-views.mjs +508 -3
  31. package/fesm2022/ngx-core-components-views.mjs.map +1 -1
  32. package/fesm2022/ngx-core-components.mjs +5 -5
  33. package/fesm2022/ngx-core-components.mjs.map +1 -1
  34. package/inputs/file-upload/file-upload.component.d.ts +51 -0
  35. package/inputs/public-api.d.ts +2 -0
  36. package/navigation/command-palette/command-palette.component.d.ts +34 -0
  37. package/navigation/public-api.d.ts +2 -0
  38. package/package.json +1 -1
  39. package/public-api.d.ts +20 -4
  40. package/views/kanban/kanban.component.d.ts +41 -0
  41. package/views/kanban/models.d.ts +19 -0
  42. package/views/public-api.d.ts +4 -0
  43. package/views/timeline/timeline.component.d.ts +19 -0
@@ -1,6 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, output, signal, ChangeDetectionStrategy, Component, computed, effect, ContentChild } from '@angular/core';
3
- import { NgTemplateOutlet } from '@angular/common';
2
+ import { input, output, signal, ChangeDetectionStrategy, Component, computed, effect, ContentChild, ViewChild } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { NgTemplateOutlet, CommonModule } from '@angular/common';
4
5
 
5
6
  class TreeViewComponent {
6
7
  nodes = input([]);
@@ -439,6 +440,510 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
439
440
  args: ['itemTemplate']
440
441
  }] } });
441
442
 
443
+ class KanbanComponent {
444
+ columns = input([]);
445
+ cards = input([]);
446
+ // Outputs
447
+ cardMoved = output();
448
+ cardClicked = output();
449
+ cardAdded = output();
450
+ cardDeleted = output();
451
+ // Local Writable Signals
452
+ cardsState = signal([]);
453
+ columnAddStates = signal({});
454
+ newCardTitles = signal({});
455
+ activeDraggingCardId = signal(null);
456
+ activeDragColumnId = signal(null);
457
+ titleInput;
458
+ constructor() {
459
+ // Sync initial inputs to local writable signal
460
+ effect(() => {
461
+ this.cardsState.set(this.cards());
462
+ });
463
+ }
464
+ getCardsForColumn(columnId) {
465
+ return this.cardsState().filter(c => c.columnId === columnId);
466
+ }
467
+ // Native HTML5 Drag and Drop events
468
+ onDragStart(event, card) {
469
+ this.activeDraggingCardId.set(card.id);
470
+ if (event.dataTransfer) {
471
+ event.dataTransfer.setData('text/plain', card.id);
472
+ event.dataTransfer.effectAllowed = 'move';
473
+ }
474
+ }
475
+ onDragEnd() {
476
+ this.activeDraggingCardId.set(null);
477
+ this.activeDragColumnId.set(null);
478
+ }
479
+ onDragOver(event) {
480
+ event.preventDefault();
481
+ }
482
+ onDragEnter(event, columnId) {
483
+ event.preventDefault();
484
+ this.activeDragColumnId.set(columnId);
485
+ }
486
+ onDragLeave(event, columnId) {
487
+ if (this.activeDragColumnId() === columnId) {
488
+ this.activeDragColumnId.set(null);
489
+ }
490
+ }
491
+ onDrop(event, targetColumnId) {
492
+ event.preventDefault();
493
+ this.activeDragColumnId.set(null);
494
+ const cardId = event.dataTransfer?.getData('text/plain') || this.activeDraggingCardId();
495
+ if (!cardId)
496
+ return;
497
+ const cards = this.cardsState();
498
+ const cardIndex = cards.findIndex(c => c.id === cardId);
499
+ if (cardIndex !== -1 && cards[cardIndex].columnId !== targetColumnId) {
500
+ const fromColumnId = cards[cardIndex].columnId;
501
+ // Update local state reactively
502
+ const updatedCards = [...cards];
503
+ updatedCards[cardIndex] = { ...updatedCards[cardIndex], columnId: targetColumnId };
504
+ this.cardsState.set(updatedCards);
505
+ // Emit output event
506
+ this.cardMoved.emit({
507
+ cardId,
508
+ fromColumnId,
509
+ toColumnId: targetColumnId
510
+ });
511
+ }
512
+ }
513
+ // Card interaction
514
+ onCardClick(card) {
515
+ this.cardClicked.emit(card);
516
+ }
517
+ // Card creator
518
+ toggleAddInput(columnId) {
519
+ const active = this.columnAddStates()[columnId];
520
+ this.columnAddStates.update(s => ({ ...s, [columnId]: !active }));
521
+ if (!active) {
522
+ this.newCardTitles.update(s => ({ ...s, [columnId]: '' }));
523
+ setTimeout(() => {
524
+ if (this.titleInput) {
525
+ this.titleInput.nativeElement.focus();
526
+ }
527
+ }, 50);
528
+ }
529
+ }
530
+ updateNewTitle(columnId, value) {
531
+ this.newCardTitles.update(s => ({ ...s, [columnId]: value }));
532
+ }
533
+ addCard(columnId) {
534
+ const title = (this.newCardTitles()[columnId] || '').trim();
535
+ if (!title)
536
+ return;
537
+ // Create unique ID
538
+ const newId = 'card-' + Date.now() + '-' + Math.floor(Math.random() * 1000);
539
+ const newCard = {
540
+ id: newId,
541
+ title,
542
+ columnId,
543
+ priority: 'low'
544
+ };
545
+ // Update local state
546
+ this.cardsState.update(cards => [...cards, newCard]);
547
+ // Emit event
548
+ this.cardAdded.emit({ columnId, title });
549
+ // Reset inputs
550
+ this.newCardTitles.update(s => ({ ...s, [columnId]: '' }));
551
+ this.columnAddStates.update(s => ({ ...s, [columnId]: false }));
552
+ }
553
+ deleteCard(event, cardId) {
554
+ event.stopPropagation();
555
+ // Update local state
556
+ this.cardsState.update(cards => cards.filter(c => c.id !== cardId));
557
+ // Emit event
558
+ this.cardDeleted.emit(cardId);
559
+ }
560
+ // Date helpers
561
+ isOverdue(dueDate) {
562
+ const today = new Date();
563
+ today.setHours(0, 0, 0, 0);
564
+ return new Date(dueDate).getTime() < today.getTime();
565
+ }
566
+ formatDueDate(date) {
567
+ const d = new Date(date);
568
+ return d.toLocaleDateString('en-US', { month: 'short', day: 'numeric' });
569
+ }
570
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: KanbanComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
571
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: KanbanComponent, isStandalone: true, selector: "ngx-kanban", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, cards: { classPropertyName: "cards", publicName: "cards", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cardMoved: "cardMoved", cardClicked: "cardClicked", cardAdded: "cardAdded", cardDeleted: "cardDeleted" }, viewQueries: [{ propertyName: "titleInput", first: true, predicate: ["titleInput"], descendants: true }], ngImport: i0, template: `
572
+ <div class="ngx-kanban-board">
573
+ @for (col of columns(); track col.id) {
574
+ <div
575
+ class="kanban-column"
576
+ [class.drag-over]="activeDragColumnId() === col.id"
577
+ (dragover)="onDragOver($event)"
578
+ (dragenter)="onDragEnter($event, col.id)"
579
+ (dragleave)="onDragLeave($event, col.id)"
580
+ (drop)="onDrop($event, col.id)"
581
+ >
582
+ <!-- Column Header -->
583
+ <div class="column-header" [style.border-top-color]="col.color || 'var(--primary-color)'">
584
+ <div class="column-title-section">
585
+ <span class="column-indicator" [style.background-color]="col.color || 'var(--primary-color)'"></span>
586
+ <h3 class="column-title">{{ col.title }}</h3>
587
+ <span class="card-count-badge">{{ getCardsForColumn(col.id).length }}</span>
588
+ </div>
589
+
590
+ <button class="add-card-btn" (click)="toggleAddInput(col.id)" title="Add card">
591
+ ➕
592
+ </button>
593
+ </div>
594
+
595
+ <!-- Column Scrollable Content -->
596
+ <div class="column-cards-list">
597
+
598
+ <!-- Inline Card Creator Input -->
599
+ @if (columnAddStates()[col.id]) {
600
+ <div class="card-creator-box">
601
+ <input
602
+ #titleInput
603
+ type="text"
604
+ class="creator-input"
605
+ placeholder="Enter a title for this card..."
606
+ [value]="newCardTitles()[col.id] || ''"
607
+ (input)="updateNewTitle(col.id, $any($event.target).value)"
608
+ (keydown.enter)="addCard(col.id)"
609
+ (keydown.escape)="toggleAddInput(col.id)"
610
+ />
611
+ <div class="creator-actions">
612
+ <button class="creator-btn btn-add" (click)="addCard(col.id)">Add Card</button>
613
+ <button class="creator-btn btn-cancel" (click)="toggleAddInput(col.id)">Cancel</button>
614
+ </div>
615
+ </div>
616
+ }
617
+
618
+ @if (getCardsForColumn(col.id).length === 0 && !columnAddStates()[col.id]) {
619
+ <div class="column-empty-state">
620
+ No cards here. Drag files or items here.
621
+ </div>
622
+ }
623
+
624
+ <!-- Cards -->
625
+ @for (card of getCardsForColumn(col.id); track card.id) {
626
+ <div
627
+ class="kanban-card"
628
+ draggable="true"
629
+ [class.dragging]="activeDraggingCardId() === card.id"
630
+ (dragstart)="onDragStart($event, card)"
631
+ (dragend)="onDragEnd()"
632
+ (click)="onCardClick(card)"
633
+ >
634
+ <!-- Card Header Tag Section -->
635
+ @if (card.priority || (card.tags && card.tags.length > 0)) {
636
+ <div class="card-meta-header">
637
+ @if (card.priority) {
638
+ <span class="priority-badge" [class]="'priority-' + card.priority">
639
+ {{ card.priority }}
640
+ </span>
641
+ }
642
+ <div class="card-tag-pills">
643
+ @for (tag of card.tags; track tag) {
644
+ <span class="card-tag">{{ tag }}</span>
645
+ }
646
+ </div>
647
+ </div>
648
+ }
649
+
650
+ <!-- Card Body -->
651
+ <div class="card-content">
652
+ <h4 class="card-title">{{ card.title }}</h4>
653
+ @if (card.description) {
654
+ <p class="card-desc">{{ card.description }}</p>
655
+ }
656
+ </div>
657
+
658
+ <!-- Card Footer Section -->
659
+ <div class="card-footer">
660
+ @if (card.dueDate) {
661
+ <div class="card-due-date" [class.overdue]="isOverdue(card.dueDate)">
662
+ 📅 {{ formatDueDate(card.dueDate) }}
663
+ </div>
664
+ } @else {
665
+ <div class="spacer"></div>
666
+ }
667
+
668
+ <div class="card-actions">
669
+ <button class="card-delete-action" (click)="deleteCard($event, card.id)" title="Delete Card">
670
+ 🗑️
671
+ </button>
672
+ @if (card.assignee) {
673
+ <div class="assignee-avatar" [title]="card.assignee.name">
674
+ @if (card.assignee.avatarUrl) {
675
+ <img [src]="card.assignee.avatarUrl" [alt]="card.assignee.name" />
676
+ } @else {
677
+ <span>{{ card.assignee.initials }}</span>
678
+ }
679
+ </div>
680
+ }
681
+ </div>
682
+ </div>
683
+ </div>
684
+ }
685
+ </div>
686
+ </div>
687
+ }
688
+ </div>
689
+ `, isInline: true, styles: [":host{display:block;width:100%;height:100%}.ngx-kanban-board{display:flex;gap:20px;overflow-x:auto;height:100%;padding:4px;align-items:flex-start;&::-webkit-scrollbar{height:8px}&::-webkit-scrollbar-track{background:transparent}&::-webkit-scrollbar-thumb{background:var(--ngx-gantt-border, rgba(0, 0, 0, .12));border-radius:4px}}.kanban-column{flex:0 0 290px;width:290px;max-height:100%;display:flex;flex-direction:column;background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #dee2e6);border-radius:12px;box-shadow:var(--shadow-sm, 0 1px 3px rgba(0,0,0,.05));transition:all .2s cubic-bezier(.4,0,.2,1);overflow:hidden;&.drag-over{border-color:var(--primary-color, #6366f1);box-shadow:0 0 0 3px var(--primary-glow, rgba(99, 102, 241, .15));background:var(--border-light, #fafafa)}}.column-header{padding:14px 16px 10px;border-top:3px solid var(--primary-color, #6366f1);display:flex;justify-content:space-between;align-items:center;background:var(--border-light, #fafafa);border-bottom:1px solid var(--border-color, #dee2e6)}.column-title-section{display:flex;align-items:center;gap:8px;min-width:0}.column-indicator{width:8px;height:8px;border-radius:50%;flex-shrink:0}.column-title{margin:0;font-size:14px;font-weight:700;color:var(--text-primary, #212529);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-count-badge{font-size:11px;font-weight:600;color:var(--text-secondary, #6c757d);background:var(--border-color, #e9ecef);padding:2px 7px;border-radius:99px}.add-card-btn{background:none;border:none;cursor:pointer;color:var(--text-secondary, #6c757d);font-size:12px;padding:4px;border-radius:4px;transition:all .15s;display:flex;align-items:center;justify-content:center;&:hover{background:var(--border-color, #e9ecef);color:var(--text-primary, #212529)}}.column-cards-list{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:12px;min-height:100px;&::-webkit-scrollbar{width:6px}&::-webkit-scrollbar-track{background:transparent}&::-webkit-scrollbar-thumb{background:var(--border-color, rgba(0,0,0,.08));border-radius:3px}}.column-empty-state{padding:24px 16px;text-align:center;font-size:12px;color:var(--text-secondary, #888);font-style:italic;border:1px dashed var(--border-color, #e2e8f0);border-radius:8px}.kanban-card{background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #dee2e6);border-radius:10px;padding:14px;cursor:grab;box-shadow:0 1px 2px #0000000a;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;gap:10px;-webkit-user-select:none;user-select:none;&:hover{border-color:var(--primary-color, #6366f1);box-shadow:var(--shadow-md, 0 4px 6px rgba(0,0,0,.08));transform:translateY(-1px);.card-delete-action{opacity:1}}&:active{cursor:grabbing}&.dragging{opacity:.3;border-style:dashed;border-color:var(--primary-color, #6366f1);background:var(--border-light, #f8f9fa)}}.card-meta-header{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.priority-badge{font-size:9px;font-weight:700;text-transform:uppercase;padding:2px 6px;border-radius:4px;letter-spacing:.5px;&.priority-low{background:#e6f4e9;color:#1e7e34}&.priority-medium{background:#fff3cd;color:#856404}&.priority-high{background:#fce8e6;color:#c53929}}.card-tag-pills{display:flex;gap:4px;flex-wrap:wrap}.card-tag{font-size:9px;font-weight:600;color:var(--text-secondary, #6c757d);background:var(--border-light, #f1f3f5);border:1px solid var(--border-color, #e9ecef);padding:1px 6px;border-radius:4px}.card-content{display:flex;flex-direction:column;gap:4px}.card-title{margin:0;font-size:13px;font-weight:600;color:var(--text-primary, #212529);line-height:1.4}.card-desc{margin:0;font-size:12px;color:var(--text-secondary, #6c757d);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border-light, #f1f3f5);padding-top:8px;font-size:11px}.spacer{flex:1}.card-due-date{color:var(--text-secondary, #6c757d);font-weight:500;&.overdue{color:#dc3545;font-weight:600}}.card-actions{display:flex;align-items:center;gap:8px}.card-delete-action{background:none;border:none;cursor:pointer;color:#adb5bd;padding:2px;border-radius:4px;opacity:0;transition:all .15s;font-size:11px;display:flex;align-items:center;justify-content:center;&:hover{color:#dc3545;background:#fce8e6}}.assignee-avatar{width:24px;height:24px;border-radius:50%;background:var(--primary-color, #6366f1);color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;overflow:hidden;border:1px solid var(--bg-secondary, #fff);img{width:100%;height:100%;object-fit:cover}}.card-creator-box{background:var(--bg-secondary, #ffffff);border:1px solid var(--primary-color, #6366f1);border-radius:8px;padding:10px;box-shadow:0 2px 8px #6366f126;display:flex;flex-direction:column;gap:8px}.creator-input{width:100%;border:1px solid var(--border-color, #dee2e6);border-radius:6px;padding:6px 10px;font-size:12px;background:var(--bg-secondary, #fff);color:var(--text-primary, #212529);outline:none;&:focus{border-color:var(--primary-color, #6366f1)}}.creator-actions{display:flex;justify-content:flex-end;gap:6px}.creator-btn{border:none;border-radius:4px;padding:4px 10px;font-size:11px;font-weight:600;cursor:pointer;font-family:inherit;&.btn-add{background:var(--primary-color, #6366f1);color:#fff;&:hover{background:var(--primary-hover, #4f46e5)}}&.btn-cancel{background:var(--border-light, #f8f9fa);color:var(--text-secondary, #495057);border:1px solid var(--border-color, #dee2e6);&:hover{background:var(--border-color, #e9ecef)}}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
690
+ }
691
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: KanbanComponent, decorators: [{
692
+ type: Component,
693
+ args: [{ selector: 'ngx-kanban', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
694
+ <div class="ngx-kanban-board">
695
+ @for (col of columns(); track col.id) {
696
+ <div
697
+ class="kanban-column"
698
+ [class.drag-over]="activeDragColumnId() === col.id"
699
+ (dragover)="onDragOver($event)"
700
+ (dragenter)="onDragEnter($event, col.id)"
701
+ (dragleave)="onDragLeave($event, col.id)"
702
+ (drop)="onDrop($event, col.id)"
703
+ >
704
+ <!-- Column Header -->
705
+ <div class="column-header" [style.border-top-color]="col.color || 'var(--primary-color)'">
706
+ <div class="column-title-section">
707
+ <span class="column-indicator" [style.background-color]="col.color || 'var(--primary-color)'"></span>
708
+ <h3 class="column-title">{{ col.title }}</h3>
709
+ <span class="card-count-badge">{{ getCardsForColumn(col.id).length }}</span>
710
+ </div>
711
+
712
+ <button class="add-card-btn" (click)="toggleAddInput(col.id)" title="Add card">
713
+ ➕
714
+ </button>
715
+ </div>
716
+
717
+ <!-- Column Scrollable Content -->
718
+ <div class="column-cards-list">
719
+
720
+ <!-- Inline Card Creator Input -->
721
+ @if (columnAddStates()[col.id]) {
722
+ <div class="card-creator-box">
723
+ <input
724
+ #titleInput
725
+ type="text"
726
+ class="creator-input"
727
+ placeholder="Enter a title for this card..."
728
+ [value]="newCardTitles()[col.id] || ''"
729
+ (input)="updateNewTitle(col.id, $any($event.target).value)"
730
+ (keydown.enter)="addCard(col.id)"
731
+ (keydown.escape)="toggleAddInput(col.id)"
732
+ />
733
+ <div class="creator-actions">
734
+ <button class="creator-btn btn-add" (click)="addCard(col.id)">Add Card</button>
735
+ <button class="creator-btn btn-cancel" (click)="toggleAddInput(col.id)">Cancel</button>
736
+ </div>
737
+ </div>
738
+ }
739
+
740
+ @if (getCardsForColumn(col.id).length === 0 && !columnAddStates()[col.id]) {
741
+ <div class="column-empty-state">
742
+ No cards here. Drag files or items here.
743
+ </div>
744
+ }
745
+
746
+ <!-- Cards -->
747
+ @for (card of getCardsForColumn(col.id); track card.id) {
748
+ <div
749
+ class="kanban-card"
750
+ draggable="true"
751
+ [class.dragging]="activeDraggingCardId() === card.id"
752
+ (dragstart)="onDragStart($event, card)"
753
+ (dragend)="onDragEnd()"
754
+ (click)="onCardClick(card)"
755
+ >
756
+ <!-- Card Header Tag Section -->
757
+ @if (card.priority || (card.tags && card.tags.length > 0)) {
758
+ <div class="card-meta-header">
759
+ @if (card.priority) {
760
+ <span class="priority-badge" [class]="'priority-' + card.priority">
761
+ {{ card.priority }}
762
+ </span>
763
+ }
764
+ <div class="card-tag-pills">
765
+ @for (tag of card.tags; track tag) {
766
+ <span class="card-tag">{{ tag }}</span>
767
+ }
768
+ </div>
769
+ </div>
770
+ }
771
+
772
+ <!-- Card Body -->
773
+ <div class="card-content">
774
+ <h4 class="card-title">{{ card.title }}</h4>
775
+ @if (card.description) {
776
+ <p class="card-desc">{{ card.description }}</p>
777
+ }
778
+ </div>
779
+
780
+ <!-- Card Footer Section -->
781
+ <div class="card-footer">
782
+ @if (card.dueDate) {
783
+ <div class="card-due-date" [class.overdue]="isOverdue(card.dueDate)">
784
+ 📅 {{ formatDueDate(card.dueDate) }}
785
+ </div>
786
+ } @else {
787
+ <div class="spacer"></div>
788
+ }
789
+
790
+ <div class="card-actions">
791
+ <button class="card-delete-action" (click)="deleteCard($event, card.id)" title="Delete Card">
792
+ 🗑️
793
+ </button>
794
+ @if (card.assignee) {
795
+ <div class="assignee-avatar" [title]="card.assignee.name">
796
+ @if (card.assignee.avatarUrl) {
797
+ <img [src]="card.assignee.avatarUrl" [alt]="card.assignee.name" />
798
+ } @else {
799
+ <span>{{ card.assignee.initials }}</span>
800
+ }
801
+ </div>
802
+ }
803
+ </div>
804
+ </div>
805
+ </div>
806
+ }
807
+ </div>
808
+ </div>
809
+ }
810
+ </div>
811
+ `, styles: [":host{display:block;width:100%;height:100%}.ngx-kanban-board{display:flex;gap:20px;overflow-x:auto;height:100%;padding:4px;align-items:flex-start;&::-webkit-scrollbar{height:8px}&::-webkit-scrollbar-track{background:transparent}&::-webkit-scrollbar-thumb{background:var(--ngx-gantt-border, rgba(0, 0, 0, .12));border-radius:4px}}.kanban-column{flex:0 0 290px;width:290px;max-height:100%;display:flex;flex-direction:column;background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #dee2e6);border-radius:12px;box-shadow:var(--shadow-sm, 0 1px 3px rgba(0,0,0,.05));transition:all .2s cubic-bezier(.4,0,.2,1);overflow:hidden;&.drag-over{border-color:var(--primary-color, #6366f1);box-shadow:0 0 0 3px var(--primary-glow, rgba(99, 102, 241, .15));background:var(--border-light, #fafafa)}}.column-header{padding:14px 16px 10px;border-top:3px solid var(--primary-color, #6366f1);display:flex;justify-content:space-between;align-items:center;background:var(--border-light, #fafafa);border-bottom:1px solid var(--border-color, #dee2e6)}.column-title-section{display:flex;align-items:center;gap:8px;min-width:0}.column-indicator{width:8px;height:8px;border-radius:50%;flex-shrink:0}.column-title{margin:0;font-size:14px;font-weight:700;color:var(--text-primary, #212529);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-count-badge{font-size:11px;font-weight:600;color:var(--text-secondary, #6c757d);background:var(--border-color, #e9ecef);padding:2px 7px;border-radius:99px}.add-card-btn{background:none;border:none;cursor:pointer;color:var(--text-secondary, #6c757d);font-size:12px;padding:4px;border-radius:4px;transition:all .15s;display:flex;align-items:center;justify-content:center;&:hover{background:var(--border-color, #e9ecef);color:var(--text-primary, #212529)}}.column-cards-list{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:12px;min-height:100px;&::-webkit-scrollbar{width:6px}&::-webkit-scrollbar-track{background:transparent}&::-webkit-scrollbar-thumb{background:var(--border-color, rgba(0,0,0,.08));border-radius:3px}}.column-empty-state{padding:24px 16px;text-align:center;font-size:12px;color:var(--text-secondary, #888);font-style:italic;border:1px dashed var(--border-color, #e2e8f0);border-radius:8px}.kanban-card{background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #dee2e6);border-radius:10px;padding:14px;cursor:grab;box-shadow:0 1px 2px #0000000a;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;gap:10px;-webkit-user-select:none;user-select:none;&:hover{border-color:var(--primary-color, #6366f1);box-shadow:var(--shadow-md, 0 4px 6px rgba(0,0,0,.08));transform:translateY(-1px);.card-delete-action{opacity:1}}&:active{cursor:grabbing}&.dragging{opacity:.3;border-style:dashed;border-color:var(--primary-color, #6366f1);background:var(--border-light, #f8f9fa)}}.card-meta-header{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.priority-badge{font-size:9px;font-weight:700;text-transform:uppercase;padding:2px 6px;border-radius:4px;letter-spacing:.5px;&.priority-low{background:#e6f4e9;color:#1e7e34}&.priority-medium{background:#fff3cd;color:#856404}&.priority-high{background:#fce8e6;color:#c53929}}.card-tag-pills{display:flex;gap:4px;flex-wrap:wrap}.card-tag{font-size:9px;font-weight:600;color:var(--text-secondary, #6c757d);background:var(--border-light, #f1f3f5);border:1px solid var(--border-color, #e9ecef);padding:1px 6px;border-radius:4px}.card-content{display:flex;flex-direction:column;gap:4px}.card-title{margin:0;font-size:13px;font-weight:600;color:var(--text-primary, #212529);line-height:1.4}.card-desc{margin:0;font-size:12px;color:var(--text-secondary, #6c757d);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border-light, #f1f3f5);padding-top:8px;font-size:11px}.spacer{flex:1}.card-due-date{color:var(--text-secondary, #6c757d);font-weight:500;&.overdue{color:#dc3545;font-weight:600}}.card-actions{display:flex;align-items:center;gap:8px}.card-delete-action{background:none;border:none;cursor:pointer;color:#adb5bd;padding:2px;border-radius:4px;opacity:0;transition:all .15s;font-size:11px;display:flex;align-items:center;justify-content:center;&:hover{color:#dc3545;background:#fce8e6}}.assignee-avatar{width:24px;height:24px;border-radius:50%;background:var(--primary-color, #6366f1);color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;overflow:hidden;border:1px solid var(--bg-secondary, #fff);img{width:100%;height:100%;object-fit:cover}}.card-creator-box{background:var(--bg-secondary, #ffffff);border:1px solid var(--primary-color, #6366f1);border-radius:8px;padding:10px;box-shadow:0 2px 8px #6366f126;display:flex;flex-direction:column;gap:8px}.creator-input{width:100%;border:1px solid var(--border-color, #dee2e6);border-radius:6px;padding:6px 10px;font-size:12px;background:var(--bg-secondary, #fff);color:var(--text-primary, #212529);outline:none;&:focus{border-color:var(--primary-color, #6366f1)}}.creator-actions{display:flex;justify-content:flex-end;gap:6px}.creator-btn{border:none;border-radius:4px;padding:4px 10px;font-size:11px;font-weight:600;cursor:pointer;font-family:inherit;&.btn-add{background:var(--primary-color, #6366f1);color:#fff;&:hover{background:var(--primary-hover, #4f46e5)}}&.btn-cancel{background:var(--border-light, #f8f9fa);color:var(--text-secondary, #495057);border:1px solid var(--border-color, #dee2e6);&:hover{background:var(--border-color, #e9ecef)}}}\n"] }]
812
+ }], ctorParameters: () => [], propDecorators: { titleInput: [{
813
+ type: ViewChild,
814
+ args: ['titleInput']
815
+ }] } });
816
+
817
+ class TimelineComponent {
818
+ items = input([]);
819
+ orientation = input('vertical');
820
+ alternating = input(false);
821
+ isDate(val) {
822
+ return val instanceof Date;
823
+ }
824
+ asDate(val) {
825
+ return val;
826
+ }
827
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TimelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
828
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: TimelineComponent, isStandalone: true, selector: "ngx-timeline", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, alternating: { classPropertyName: "alternating", publicName: "alternating", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
829
+ <div
830
+ class="ngx-timeline"
831
+ [class.orientation-horizontal]="orientation() === 'horizontal'"
832
+ [class.orientation-vertical]="orientation() === 'vertical'"
833
+ [class.alternating]="alternating()"
834
+ >
835
+ <!-- Timeline Central Track Line -->
836
+ <div class="timeline-track"></div>
837
+
838
+ <!-- Timeline Items List -->
839
+ <div class="timeline-items">
840
+ @for (item of items(); track item.title; let i = $index) {
841
+ <div
842
+ class="timeline-item"
843
+ [class.align-left]="alternating() && i % 2 === 0"
844
+ [class.align-right]="alternating() && i % 2 !== 0"
845
+ [class.status-success]="item.status === 'success'"
846
+ [class.status-warning]="item.status === 'warning'"
847
+ [class.status-error]="item.status === 'error'"
848
+ [class.status-info]="item.status === 'info'"
849
+ [style.--item-color]="item.color || 'var(--primary-color)'"
850
+ >
851
+ <!-- Timeline Item Dot indicator -->
852
+ <div class="timeline-marker">
853
+ <span class="marker-dot">
854
+ @if (item.icon) {
855
+ <span class="marker-icon">{{ item.icon }}</span>
856
+ }
857
+ </span>
858
+ </div>
859
+
860
+ <!-- Content Card -->
861
+ <div class="timeline-card">
862
+ <div class="card-arrow"></div>
863
+ <div class="card-header">
864
+ <span class="item-time">
865
+ @if (isDate(item.timestamp)) {
866
+ {{ asDate(item.timestamp) | date:'mediumDate' }}
867
+ } @else {
868
+ {{ item.timestamp }}
869
+ }
870
+ </span>
871
+ @if (item.subtitle) {
872
+ <span class="item-subtitle">{{ item.subtitle }}</span>
873
+ }
874
+ </div>
875
+ <h4 class="item-title">{{ item.title }}</h4>
876
+ @if (item.description) {
877
+ <p class="item-desc">{{ item.description }}</p>
878
+ }
879
+ </div>
880
+ </div>
881
+ }
882
+ </div>
883
+ </div>
884
+ `, isInline: true, styles: [":host{display:block;width:100%}.ngx-timeline{position:relative;width:100%;box-sizing:border-box;padding:16px 0}.timeline-track{position:absolute;background:var(--border-color, #e2e8f0);z-index:1}.orientation-vertical .timeline-track{top:0;bottom:0;left:20px;width:4px;transform:translate(-50%)}.orientation-vertical.alternating .timeline-track{left:50%}.orientation-horizontal .timeline-track{left:0;right:0;top:50%;height:4px;transform:translateY(-50%)}.timeline-items{display:flex;position:relative;z-index:2}.orientation-vertical .timeline-items{flex-direction:column;gap:24px}.orientation-horizontal .timeline-items{flex-direction:row;justify-content:space-between;gap:16px;width:100%;overflow-x:auto;padding:60px 0}.timeline-item{position:relative;display:flex;box-sizing:border-box}.orientation-vertical .timeline-item{padding-left:48px;width:100%}.orientation-vertical.alternating .timeline-item{padding-left:0;width:50%}.orientation-vertical.alternating .timeline-item.align-left{align-self:flex-start;padding-right:32px;flex-direction:row-reverse}.orientation-vertical.alternating .timeline-item.align-right{align-self:flex-end;padding-left:32px}.orientation-horizontal .timeline-item{flex-direction:column;align-items:center;flex:1;min-width:180px}.timeline-marker{position:absolute;z-index:5;display:flex;align-items:center;justify-content:center}.orientation-vertical .timeline-marker{left:20px;top:14px;transform:translate(-50%)}.orientation-vertical.alternating .timeline-marker{left:100%;top:18px}.orientation-vertical.alternating .timeline-item.align-left .timeline-marker{left:100%;transform:translate(-50%)}.orientation-vertical.alternating .timeline-item.align-right .timeline-marker{left:0;transform:translate(-50%)}.orientation-horizontal .timeline-marker{top:50%;left:50%;transform:translate(-50%,-50%)}.marker-dot{width:18px;height:18px;border-radius:50%;background:var(--bg-secondary, #ffffff);border:3px solid var(--item-color);box-shadow:0 0 0 3px #fff,var(--shadow-sm);display:flex;align-items:center;justify-content:center;transition:all .2s ease}.timeline-item:hover .marker-dot{transform:scale(1.2);box-shadow:0 0 0 4px #fff,0 0 0 6px var(--item-color),var(--shadow-md);background:var(--item-color);color:#fff}.marker-icon{font-size:9px;line-height:1;display:block}.timeline-card{background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #e2e8f0);border-radius:8px;padding:14px 16px;box-shadow:var(--shadow-sm, 0 1px 3px rgba(0,0,0,.05));position:relative;width:100%;transition:all .2s ease-in-out}.timeline-item:hover .timeline-card{transform:translateY(-2px);box-shadow:var(--shadow-md, 0 4px 12px rgba(0,0,0,.08));border-color:var(--item-color)}.card-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px}.item-time{font-size:11px;font-weight:700;color:var(--text-secondary, #64748b);text-transform:uppercase;letter-spacing:.5px}.item-subtitle{font-size:11px;font-weight:600;color:var(--item-color);background:var(--border-light, #f1f5f9);padding:2px 6px;border-radius:4px}.item-title{margin:0 0 4px;font-size:14px;font-weight:750;color:var(--text-primary, #0f172a)}.item-desc{margin:0;font-size:12px;color:var(--text-secondary, #64748b);line-height:1.5}.orientation-vertical.alternating .timeline-item.align-left .timeline-card{text-align:right}.orientation-vertical.alternating .timeline-item.align-left .card-header{flex-direction:row-reverse}.status-success{--item-color: #10b981 !important}.status-warning{--item-color: #f59e0b !important}.status-error{--item-color: #ef4444 !important}.status-info{--item-color: #3b82f6 !important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
885
+ }
886
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TimelineComponent, decorators: [{
887
+ type: Component,
888
+ args: [{ selector: 'ngx-timeline', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
889
+ <div
890
+ class="ngx-timeline"
891
+ [class.orientation-horizontal]="orientation() === 'horizontal'"
892
+ [class.orientation-vertical]="orientation() === 'vertical'"
893
+ [class.alternating]="alternating()"
894
+ >
895
+ <!-- Timeline Central Track Line -->
896
+ <div class="timeline-track"></div>
897
+
898
+ <!-- Timeline Items List -->
899
+ <div class="timeline-items">
900
+ @for (item of items(); track item.title; let i = $index) {
901
+ <div
902
+ class="timeline-item"
903
+ [class.align-left]="alternating() && i % 2 === 0"
904
+ [class.align-right]="alternating() && i % 2 !== 0"
905
+ [class.status-success]="item.status === 'success'"
906
+ [class.status-warning]="item.status === 'warning'"
907
+ [class.status-error]="item.status === 'error'"
908
+ [class.status-info]="item.status === 'info'"
909
+ [style.--item-color]="item.color || 'var(--primary-color)'"
910
+ >
911
+ <!-- Timeline Item Dot indicator -->
912
+ <div class="timeline-marker">
913
+ <span class="marker-dot">
914
+ @if (item.icon) {
915
+ <span class="marker-icon">{{ item.icon }}</span>
916
+ }
917
+ </span>
918
+ </div>
919
+
920
+ <!-- Content Card -->
921
+ <div class="timeline-card">
922
+ <div class="card-arrow"></div>
923
+ <div class="card-header">
924
+ <span class="item-time">
925
+ @if (isDate(item.timestamp)) {
926
+ {{ asDate(item.timestamp) | date:'mediumDate' }}
927
+ } @else {
928
+ {{ item.timestamp }}
929
+ }
930
+ </span>
931
+ @if (item.subtitle) {
932
+ <span class="item-subtitle">{{ item.subtitle }}</span>
933
+ }
934
+ </div>
935
+ <h4 class="item-title">{{ item.title }}</h4>
936
+ @if (item.description) {
937
+ <p class="item-desc">{{ item.description }}</p>
938
+ }
939
+ </div>
940
+ </div>
941
+ }
942
+ </div>
943
+ </div>
944
+ `, styles: [":host{display:block;width:100%}.ngx-timeline{position:relative;width:100%;box-sizing:border-box;padding:16px 0}.timeline-track{position:absolute;background:var(--border-color, #e2e8f0);z-index:1}.orientation-vertical .timeline-track{top:0;bottom:0;left:20px;width:4px;transform:translate(-50%)}.orientation-vertical.alternating .timeline-track{left:50%}.orientation-horizontal .timeline-track{left:0;right:0;top:50%;height:4px;transform:translateY(-50%)}.timeline-items{display:flex;position:relative;z-index:2}.orientation-vertical .timeline-items{flex-direction:column;gap:24px}.orientation-horizontal .timeline-items{flex-direction:row;justify-content:space-between;gap:16px;width:100%;overflow-x:auto;padding:60px 0}.timeline-item{position:relative;display:flex;box-sizing:border-box}.orientation-vertical .timeline-item{padding-left:48px;width:100%}.orientation-vertical.alternating .timeline-item{padding-left:0;width:50%}.orientation-vertical.alternating .timeline-item.align-left{align-self:flex-start;padding-right:32px;flex-direction:row-reverse}.orientation-vertical.alternating .timeline-item.align-right{align-self:flex-end;padding-left:32px}.orientation-horizontal .timeline-item{flex-direction:column;align-items:center;flex:1;min-width:180px}.timeline-marker{position:absolute;z-index:5;display:flex;align-items:center;justify-content:center}.orientation-vertical .timeline-marker{left:20px;top:14px;transform:translate(-50%)}.orientation-vertical.alternating .timeline-marker{left:100%;top:18px}.orientation-vertical.alternating .timeline-item.align-left .timeline-marker{left:100%;transform:translate(-50%)}.orientation-vertical.alternating .timeline-item.align-right .timeline-marker{left:0;transform:translate(-50%)}.orientation-horizontal .timeline-marker{top:50%;left:50%;transform:translate(-50%,-50%)}.marker-dot{width:18px;height:18px;border-radius:50%;background:var(--bg-secondary, #ffffff);border:3px solid var(--item-color);box-shadow:0 0 0 3px #fff,var(--shadow-sm);display:flex;align-items:center;justify-content:center;transition:all .2s ease}.timeline-item:hover .marker-dot{transform:scale(1.2);box-shadow:0 0 0 4px #fff,0 0 0 6px var(--item-color),var(--shadow-md);background:var(--item-color);color:#fff}.marker-icon{font-size:9px;line-height:1;display:block}.timeline-card{background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #e2e8f0);border-radius:8px;padding:14px 16px;box-shadow:var(--shadow-sm, 0 1px 3px rgba(0,0,0,.05));position:relative;width:100%;transition:all .2s ease-in-out}.timeline-item:hover .timeline-card{transform:translateY(-2px);box-shadow:var(--shadow-md, 0 4px 12px rgba(0,0,0,.08));border-color:var(--item-color)}.card-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px}.item-time{font-size:11px;font-weight:700;color:var(--text-secondary, #64748b);text-transform:uppercase;letter-spacing:.5px}.item-subtitle{font-size:11px;font-weight:600;color:var(--item-color);background:var(--border-light, #f1f5f9);padding:2px 6px;border-radius:4px}.item-title{margin:0 0 4px;font-size:14px;font-weight:750;color:var(--text-primary, #0f172a)}.item-desc{margin:0;font-size:12px;color:var(--text-secondary, #64748b);line-height:1.5}.orientation-vertical.alternating .timeline-item.align-left .timeline-card{text-align:right}.orientation-vertical.alternating .timeline-item.align-left .card-header{flex-direction:row-reverse}.status-success{--item-color: #10b981 !important}.status-warning{--item-color: #f59e0b !important}.status-error{--item-color: #ef4444 !important}.status-info{--item-color: #3b82f6 !important}\n"] }]
945
+ }] });
946
+
442
947
  /*
443
948
  * Public API Surface — secondary entry point: ngx-core-components/views
444
949
  */
@@ -448,5 +953,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
448
953
  * Generated bundle index. Do not edit.
449
954
  */
450
955
 
451
- export { ListViewComponent, TreeViewComponent };
956
+ export { KanbanComponent, ListViewComponent, TimelineComponent, TreeViewComponent };
452
957
  //# sourceMappingURL=ngx-core-components-views.mjs.map