ngx-core-components 0.3.3 → 0.3.5
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.
- package/ai/ai-audio-wave/ai-audio-wave.component.d.ts +28 -0
- package/ai/ai-chat-widget/ai-chat-widget.component.d.ts +26 -0
- package/ai/ai-code-editor/ai-code-editor.component.d.ts +30 -0
- package/ai/ai-model-compare/ai-model-compare.component.d.ts +31 -0
- package/ai/ai-prompt-editor/ai-prompt-editor.component.d.ts +22 -0
- package/ai/public-api.d.ts +7 -0
- package/buttons/public-api.d.ts +2 -0
- package/buttons/speed-dial/speed-dial.component.d.ts +24 -0
- package/charts/area-chart/area-chart.component.d.ts +43 -0
- package/charts/funnel-chart/funnel-chart.component.d.ts +26 -0
- package/charts/gauge-chart/gauge-chart.component.d.ts +25 -0
- package/charts/heatmap-chart/heatmap-chart.component.d.ts +34 -0
- package/charts/public-api.d.ts +10 -0
- package/charts/radar-chart/radar-chart.component.d.ts +51 -0
- package/charts/treemap-chart/treemap-chart.component.d.ts +33 -0
- package/feedback/alert/alert.component.d.ts +19 -0
- package/feedback/avatar/avatar.component.d.ts +37 -0
- package/feedback/countdown/countdown.component.d.ts +46 -0
- package/feedback/empty-state/empty-state.component.d.ts +14 -0
- package/feedback/public-api.d.ts +9 -0
- package/feedback/stat-card/stat-card.component.d.ts +18 -0
- package/fesm2022/ngx-core-components-ai.mjs +1418 -2
- package/fesm2022/ngx-core-components-ai.mjs.map +1 -1
- package/fesm2022/ngx-core-components-buttons.mjs +133 -1
- package/fesm2022/ngx-core-components-buttons.mjs.map +1 -1
- package/fesm2022/ngx-core-components-charts.mjs +1474 -2
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-feedback.mjs +973 -5
- package/fesm2022/ngx-core-components-feedback.mjs.map +1 -1
- package/fesm2022/ngx-core-components-inputs.mjs +1050 -12
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components-layout.mjs +930 -2
- package/fesm2022/ngx-core-components-layout.mjs.map +1 -1
- package/fesm2022/ngx-core-components-navigation.mjs +442 -2
- package/fesm2022/ngx-core-components-navigation.mjs.map +1 -1
- package/fesm2022/ngx-core-components-views.mjs +1626 -3
- package/fesm2022/ngx-core-components-views.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs +8 -8
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/inputs/file-preview/file-preview.component.d.ts +61 -0
- package/inputs/file-upload/file-upload.component.d.ts +51 -0
- package/inputs/public-api.d.ts +7 -0
- package/inputs/segmented-control/segmented-control.component.d.ts +20 -0
- package/inputs/tag-input/tag-input.component.d.ts +25 -0
- package/layout/carousel/carousel.component.d.ts +39 -0
- package/layout/dashboard-layout/dashboard-layout.component.d.ts +43 -0
- package/layout/dashboard-layout/models.d.ts +26 -0
- package/layout/drawer/drawer.component.d.ts +21 -0
- package/layout/public-api.d.ts +4 -0
- package/navigation/back-to-top/back-to-top.component.d.ts +15 -0
- package/navigation/command-palette/command-palette.component.d.ts +34 -0
- package/navigation/public-api.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +33 -9
- package/views/image-compare/image-compare.component.d.ts +26 -0
- package/views/kanban/kanban.component.d.ts +41 -0
- package/views/kanban/models.d.ts +19 -0
- package/views/key-value-list/key-value-list.component.d.ts +36 -0
- package/views/public-api.d.ts +11 -0
- package/views/scheduler/models.d.ts +18 -0
- package/views/scheduler/scheduler.component.d.ts +36 -0
- package/views/timeline/timeline.component.d.ts +19 -0
- package/views/virtual-list/virtual-list.component.d.ts +42 -0
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, output, signal, ChangeDetectionStrategy, Component, computed, effect, ContentChild } from '@angular/core';
|
|
3
|
-
import
|
|
2
|
+
import { input, output, signal, ChangeDetectionStrategy, Component, computed, effect, ContentChild, ViewChild, HostListener } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { NgTemplateOutlet, CommonModule } from '@angular/common';
|
|
5
|
+
import * as i1$1 from '@angular/forms';
|
|
6
|
+
import { FormsModule } from '@angular/forms';
|
|
4
7
|
|
|
5
8
|
class TreeViewComponent {
|
|
6
9
|
nodes = input([]);
|
|
@@ -439,6 +442,1626 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
439
442
|
args: ['itemTemplate']
|
|
440
443
|
}] } });
|
|
441
444
|
|
|
445
|
+
class KanbanComponent {
|
|
446
|
+
columns = input([]);
|
|
447
|
+
cards = input([]);
|
|
448
|
+
// Outputs
|
|
449
|
+
cardMoved = output();
|
|
450
|
+
cardClicked = output();
|
|
451
|
+
cardAdded = output();
|
|
452
|
+
cardDeleted = output();
|
|
453
|
+
// Local Writable Signals
|
|
454
|
+
cardsState = signal([]);
|
|
455
|
+
columnAddStates = signal({});
|
|
456
|
+
newCardTitles = signal({});
|
|
457
|
+
activeDraggingCardId = signal(null);
|
|
458
|
+
activeDragColumnId = signal(null);
|
|
459
|
+
titleInput;
|
|
460
|
+
constructor() {
|
|
461
|
+
// Sync initial inputs to local writable signal
|
|
462
|
+
effect(() => {
|
|
463
|
+
this.cardsState.set(this.cards());
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
getCardsForColumn(columnId) {
|
|
467
|
+
return this.cardsState().filter(c => c.columnId === columnId);
|
|
468
|
+
}
|
|
469
|
+
// Native HTML5 Drag and Drop events
|
|
470
|
+
onDragStart(event, card) {
|
|
471
|
+
this.activeDraggingCardId.set(card.id);
|
|
472
|
+
if (event.dataTransfer) {
|
|
473
|
+
event.dataTransfer.setData('text/plain', card.id);
|
|
474
|
+
event.dataTransfer.effectAllowed = 'move';
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
onDragEnd() {
|
|
478
|
+
this.activeDraggingCardId.set(null);
|
|
479
|
+
this.activeDragColumnId.set(null);
|
|
480
|
+
}
|
|
481
|
+
onDragOver(event) {
|
|
482
|
+
event.preventDefault();
|
|
483
|
+
}
|
|
484
|
+
onDragEnter(event, columnId) {
|
|
485
|
+
event.preventDefault();
|
|
486
|
+
this.activeDragColumnId.set(columnId);
|
|
487
|
+
}
|
|
488
|
+
onDragLeave(event, columnId) {
|
|
489
|
+
if (this.activeDragColumnId() === columnId) {
|
|
490
|
+
this.activeDragColumnId.set(null);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
onDrop(event, targetColumnId) {
|
|
494
|
+
event.preventDefault();
|
|
495
|
+
this.activeDragColumnId.set(null);
|
|
496
|
+
const cardId = event.dataTransfer?.getData('text/plain') || this.activeDraggingCardId();
|
|
497
|
+
if (!cardId)
|
|
498
|
+
return;
|
|
499
|
+
const cards = this.cardsState();
|
|
500
|
+
const cardIndex = cards.findIndex(c => c.id === cardId);
|
|
501
|
+
if (cardIndex !== -1 && cards[cardIndex].columnId !== targetColumnId) {
|
|
502
|
+
const fromColumnId = cards[cardIndex].columnId;
|
|
503
|
+
// Update local state reactively
|
|
504
|
+
const updatedCards = [...cards];
|
|
505
|
+
updatedCards[cardIndex] = { ...updatedCards[cardIndex], columnId: targetColumnId };
|
|
506
|
+
this.cardsState.set(updatedCards);
|
|
507
|
+
// Emit output event
|
|
508
|
+
this.cardMoved.emit({
|
|
509
|
+
cardId,
|
|
510
|
+
fromColumnId,
|
|
511
|
+
toColumnId: targetColumnId
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
// Card interaction
|
|
516
|
+
onCardClick(card) {
|
|
517
|
+
this.cardClicked.emit(card);
|
|
518
|
+
}
|
|
519
|
+
// Card creator
|
|
520
|
+
toggleAddInput(columnId) {
|
|
521
|
+
const active = this.columnAddStates()[columnId];
|
|
522
|
+
this.columnAddStates.update(s => ({ ...s, [columnId]: !active }));
|
|
523
|
+
if (!active) {
|
|
524
|
+
this.newCardTitles.update(s => ({ ...s, [columnId]: '' }));
|
|
525
|
+
setTimeout(() => {
|
|
526
|
+
if (this.titleInput) {
|
|
527
|
+
this.titleInput.nativeElement.focus();
|
|
528
|
+
}
|
|
529
|
+
}, 50);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
updateNewTitle(columnId, value) {
|
|
533
|
+
this.newCardTitles.update(s => ({ ...s, [columnId]: value }));
|
|
534
|
+
}
|
|
535
|
+
addCard(columnId) {
|
|
536
|
+
const title = (this.newCardTitles()[columnId] || '').trim();
|
|
537
|
+
if (!title)
|
|
538
|
+
return;
|
|
539
|
+
// Create unique ID
|
|
540
|
+
const newId = 'card-' + Date.now() + '-' + Math.floor(Math.random() * 1000);
|
|
541
|
+
const newCard = {
|
|
542
|
+
id: newId,
|
|
543
|
+
title,
|
|
544
|
+
columnId,
|
|
545
|
+
priority: 'low'
|
|
546
|
+
};
|
|
547
|
+
// Update local state
|
|
548
|
+
this.cardsState.update(cards => [...cards, newCard]);
|
|
549
|
+
// Emit event
|
|
550
|
+
this.cardAdded.emit({ columnId, title });
|
|
551
|
+
// Reset inputs
|
|
552
|
+
this.newCardTitles.update(s => ({ ...s, [columnId]: '' }));
|
|
553
|
+
this.columnAddStates.update(s => ({ ...s, [columnId]: false }));
|
|
554
|
+
}
|
|
555
|
+
deleteCard(event, cardId) {
|
|
556
|
+
event.stopPropagation();
|
|
557
|
+
// Update local state
|
|
558
|
+
this.cardsState.update(cards => cards.filter(c => c.id !== cardId));
|
|
559
|
+
// Emit event
|
|
560
|
+
this.cardDeleted.emit(cardId);
|
|
561
|
+
}
|
|
562
|
+
// Date helpers
|
|
563
|
+
isOverdue(dueDate) {
|
|
564
|
+
const today = new Date();
|
|
565
|
+
today.setHours(0, 0, 0, 0);
|
|
566
|
+
return new Date(dueDate).getTime() < today.getTime();
|
|
567
|
+
}
|
|
568
|
+
formatDueDate(date) {
|
|
569
|
+
const d = new Date(date);
|
|
570
|
+
return d.toLocaleDateString('en-US', { month: 'short', day: 'numeric' });
|
|
571
|
+
}
|
|
572
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: KanbanComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
573
|
+
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: `
|
|
574
|
+
<div class="ngx-kanban-board">
|
|
575
|
+
@for (col of columns(); track col.id) {
|
|
576
|
+
<div
|
|
577
|
+
class="kanban-column"
|
|
578
|
+
[class.drag-over]="activeDragColumnId() === col.id"
|
|
579
|
+
(dragover)="onDragOver($event)"
|
|
580
|
+
(dragenter)="onDragEnter($event, col.id)"
|
|
581
|
+
(dragleave)="onDragLeave($event, col.id)"
|
|
582
|
+
(drop)="onDrop($event, col.id)"
|
|
583
|
+
>
|
|
584
|
+
<!-- Column Header -->
|
|
585
|
+
<div class="column-header" [style.border-top-color]="col.color || 'var(--primary-color)'">
|
|
586
|
+
<div class="column-title-section">
|
|
587
|
+
<span class="column-indicator" [style.background-color]="col.color || 'var(--primary-color)'"></span>
|
|
588
|
+
<h3 class="column-title">{{ col.title }}</h3>
|
|
589
|
+
<span class="card-count-badge">{{ getCardsForColumn(col.id).length }}</span>
|
|
590
|
+
</div>
|
|
591
|
+
|
|
592
|
+
<button class="add-card-btn" (click)="toggleAddInput(col.id)" title="Add card">
|
|
593
|
+
➕
|
|
594
|
+
</button>
|
|
595
|
+
</div>
|
|
596
|
+
|
|
597
|
+
<!-- Column Scrollable Content -->
|
|
598
|
+
<div class="column-cards-list">
|
|
599
|
+
|
|
600
|
+
<!-- Inline Card Creator Input -->
|
|
601
|
+
@if (columnAddStates()[col.id]) {
|
|
602
|
+
<div class="card-creator-box">
|
|
603
|
+
<input
|
|
604
|
+
#titleInput
|
|
605
|
+
type="text"
|
|
606
|
+
class="creator-input"
|
|
607
|
+
placeholder="Enter a title for this card..."
|
|
608
|
+
[value]="newCardTitles()[col.id] || ''"
|
|
609
|
+
(input)="updateNewTitle(col.id, $any($event.target).value)"
|
|
610
|
+
(keydown.enter)="addCard(col.id)"
|
|
611
|
+
(keydown.escape)="toggleAddInput(col.id)"
|
|
612
|
+
/>
|
|
613
|
+
<div class="creator-actions">
|
|
614
|
+
<button class="creator-btn btn-add" (click)="addCard(col.id)">Add Card</button>
|
|
615
|
+
<button class="creator-btn btn-cancel" (click)="toggleAddInput(col.id)">Cancel</button>
|
|
616
|
+
</div>
|
|
617
|
+
</div>
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
@if (getCardsForColumn(col.id).length === 0 && !columnAddStates()[col.id]) {
|
|
621
|
+
<div class="column-empty-state">
|
|
622
|
+
No cards here. Drag files or items here.
|
|
623
|
+
</div>
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
<!-- Cards -->
|
|
627
|
+
@for (card of getCardsForColumn(col.id); track card.id) {
|
|
628
|
+
<div
|
|
629
|
+
class="kanban-card"
|
|
630
|
+
draggable="true"
|
|
631
|
+
[class.dragging]="activeDraggingCardId() === card.id"
|
|
632
|
+
(dragstart)="onDragStart($event, card)"
|
|
633
|
+
(dragend)="onDragEnd()"
|
|
634
|
+
(click)="onCardClick(card)"
|
|
635
|
+
>
|
|
636
|
+
<!-- Card Header Tag Section -->
|
|
637
|
+
@if (card.priority || (card.tags && card.tags.length > 0)) {
|
|
638
|
+
<div class="card-meta-header">
|
|
639
|
+
@if (card.priority) {
|
|
640
|
+
<span class="priority-badge" [class]="'priority-' + card.priority">
|
|
641
|
+
{{ card.priority }}
|
|
642
|
+
</span>
|
|
643
|
+
}
|
|
644
|
+
<div class="card-tag-pills">
|
|
645
|
+
@for (tag of card.tags; track tag) {
|
|
646
|
+
<span class="card-tag">{{ tag }}</span>
|
|
647
|
+
}
|
|
648
|
+
</div>
|
|
649
|
+
</div>
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
<!-- Card Body -->
|
|
653
|
+
<div class="card-content">
|
|
654
|
+
<h4 class="card-title">{{ card.title }}</h4>
|
|
655
|
+
@if (card.description) {
|
|
656
|
+
<p class="card-desc">{{ card.description }}</p>
|
|
657
|
+
}
|
|
658
|
+
</div>
|
|
659
|
+
|
|
660
|
+
<!-- Card Footer Section -->
|
|
661
|
+
<div class="card-footer">
|
|
662
|
+
@if (card.dueDate) {
|
|
663
|
+
<div class="card-due-date" [class.overdue]="isOverdue(card.dueDate)">
|
|
664
|
+
📅 {{ formatDueDate(card.dueDate) }}
|
|
665
|
+
</div>
|
|
666
|
+
} @else {
|
|
667
|
+
<div class="spacer"></div>
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
<div class="card-actions">
|
|
671
|
+
<button class="card-delete-action" (click)="deleteCard($event, card.id)" title="Delete Card">
|
|
672
|
+
🗑️
|
|
673
|
+
</button>
|
|
674
|
+
@if (card.assignee) {
|
|
675
|
+
<div class="assignee-avatar" [title]="card.assignee.name">
|
|
676
|
+
@if (card.assignee.avatarUrl) {
|
|
677
|
+
<img [src]="card.assignee.avatarUrl" [alt]="card.assignee.name" />
|
|
678
|
+
} @else {
|
|
679
|
+
<span>{{ card.assignee.initials }}</span>
|
|
680
|
+
}
|
|
681
|
+
</div>
|
|
682
|
+
}
|
|
683
|
+
</div>
|
|
684
|
+
</div>
|
|
685
|
+
</div>
|
|
686
|
+
}
|
|
687
|
+
</div>
|
|
688
|
+
</div>
|
|
689
|
+
}
|
|
690
|
+
</div>
|
|
691
|
+
`, 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 });
|
|
692
|
+
}
|
|
693
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: KanbanComponent, decorators: [{
|
|
694
|
+
type: Component,
|
|
695
|
+
args: [{ selector: 'ngx-kanban', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
696
|
+
<div class="ngx-kanban-board">
|
|
697
|
+
@for (col of columns(); track col.id) {
|
|
698
|
+
<div
|
|
699
|
+
class="kanban-column"
|
|
700
|
+
[class.drag-over]="activeDragColumnId() === col.id"
|
|
701
|
+
(dragover)="onDragOver($event)"
|
|
702
|
+
(dragenter)="onDragEnter($event, col.id)"
|
|
703
|
+
(dragleave)="onDragLeave($event, col.id)"
|
|
704
|
+
(drop)="onDrop($event, col.id)"
|
|
705
|
+
>
|
|
706
|
+
<!-- Column Header -->
|
|
707
|
+
<div class="column-header" [style.border-top-color]="col.color || 'var(--primary-color)'">
|
|
708
|
+
<div class="column-title-section">
|
|
709
|
+
<span class="column-indicator" [style.background-color]="col.color || 'var(--primary-color)'"></span>
|
|
710
|
+
<h3 class="column-title">{{ col.title }}</h3>
|
|
711
|
+
<span class="card-count-badge">{{ getCardsForColumn(col.id).length }}</span>
|
|
712
|
+
</div>
|
|
713
|
+
|
|
714
|
+
<button class="add-card-btn" (click)="toggleAddInput(col.id)" title="Add card">
|
|
715
|
+
➕
|
|
716
|
+
</button>
|
|
717
|
+
</div>
|
|
718
|
+
|
|
719
|
+
<!-- Column Scrollable Content -->
|
|
720
|
+
<div class="column-cards-list">
|
|
721
|
+
|
|
722
|
+
<!-- Inline Card Creator Input -->
|
|
723
|
+
@if (columnAddStates()[col.id]) {
|
|
724
|
+
<div class="card-creator-box">
|
|
725
|
+
<input
|
|
726
|
+
#titleInput
|
|
727
|
+
type="text"
|
|
728
|
+
class="creator-input"
|
|
729
|
+
placeholder="Enter a title for this card..."
|
|
730
|
+
[value]="newCardTitles()[col.id] || ''"
|
|
731
|
+
(input)="updateNewTitle(col.id, $any($event.target).value)"
|
|
732
|
+
(keydown.enter)="addCard(col.id)"
|
|
733
|
+
(keydown.escape)="toggleAddInput(col.id)"
|
|
734
|
+
/>
|
|
735
|
+
<div class="creator-actions">
|
|
736
|
+
<button class="creator-btn btn-add" (click)="addCard(col.id)">Add Card</button>
|
|
737
|
+
<button class="creator-btn btn-cancel" (click)="toggleAddInput(col.id)">Cancel</button>
|
|
738
|
+
</div>
|
|
739
|
+
</div>
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
@if (getCardsForColumn(col.id).length === 0 && !columnAddStates()[col.id]) {
|
|
743
|
+
<div class="column-empty-state">
|
|
744
|
+
No cards here. Drag files or items here.
|
|
745
|
+
</div>
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
<!-- Cards -->
|
|
749
|
+
@for (card of getCardsForColumn(col.id); track card.id) {
|
|
750
|
+
<div
|
|
751
|
+
class="kanban-card"
|
|
752
|
+
draggable="true"
|
|
753
|
+
[class.dragging]="activeDraggingCardId() === card.id"
|
|
754
|
+
(dragstart)="onDragStart($event, card)"
|
|
755
|
+
(dragend)="onDragEnd()"
|
|
756
|
+
(click)="onCardClick(card)"
|
|
757
|
+
>
|
|
758
|
+
<!-- Card Header Tag Section -->
|
|
759
|
+
@if (card.priority || (card.tags && card.tags.length > 0)) {
|
|
760
|
+
<div class="card-meta-header">
|
|
761
|
+
@if (card.priority) {
|
|
762
|
+
<span class="priority-badge" [class]="'priority-' + card.priority">
|
|
763
|
+
{{ card.priority }}
|
|
764
|
+
</span>
|
|
765
|
+
}
|
|
766
|
+
<div class="card-tag-pills">
|
|
767
|
+
@for (tag of card.tags; track tag) {
|
|
768
|
+
<span class="card-tag">{{ tag }}</span>
|
|
769
|
+
}
|
|
770
|
+
</div>
|
|
771
|
+
</div>
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
<!-- Card Body -->
|
|
775
|
+
<div class="card-content">
|
|
776
|
+
<h4 class="card-title">{{ card.title }}</h4>
|
|
777
|
+
@if (card.description) {
|
|
778
|
+
<p class="card-desc">{{ card.description }}</p>
|
|
779
|
+
}
|
|
780
|
+
</div>
|
|
781
|
+
|
|
782
|
+
<!-- Card Footer Section -->
|
|
783
|
+
<div class="card-footer">
|
|
784
|
+
@if (card.dueDate) {
|
|
785
|
+
<div class="card-due-date" [class.overdue]="isOverdue(card.dueDate)">
|
|
786
|
+
📅 {{ formatDueDate(card.dueDate) }}
|
|
787
|
+
</div>
|
|
788
|
+
} @else {
|
|
789
|
+
<div class="spacer"></div>
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
<div class="card-actions">
|
|
793
|
+
<button class="card-delete-action" (click)="deleteCard($event, card.id)" title="Delete Card">
|
|
794
|
+
🗑️
|
|
795
|
+
</button>
|
|
796
|
+
@if (card.assignee) {
|
|
797
|
+
<div class="assignee-avatar" [title]="card.assignee.name">
|
|
798
|
+
@if (card.assignee.avatarUrl) {
|
|
799
|
+
<img [src]="card.assignee.avatarUrl" [alt]="card.assignee.name" />
|
|
800
|
+
} @else {
|
|
801
|
+
<span>{{ card.assignee.initials }}</span>
|
|
802
|
+
}
|
|
803
|
+
</div>
|
|
804
|
+
}
|
|
805
|
+
</div>
|
|
806
|
+
</div>
|
|
807
|
+
</div>
|
|
808
|
+
}
|
|
809
|
+
</div>
|
|
810
|
+
</div>
|
|
811
|
+
}
|
|
812
|
+
</div>
|
|
813
|
+
`, 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"] }]
|
|
814
|
+
}], ctorParameters: () => [], propDecorators: { titleInput: [{
|
|
815
|
+
type: ViewChild,
|
|
816
|
+
args: ['titleInput']
|
|
817
|
+
}] } });
|
|
818
|
+
|
|
819
|
+
class TimelineComponent {
|
|
820
|
+
items = input([]);
|
|
821
|
+
orientation = input('vertical');
|
|
822
|
+
alternating = input(false);
|
|
823
|
+
isDate(val) {
|
|
824
|
+
return val instanceof Date;
|
|
825
|
+
}
|
|
826
|
+
asDate(val) {
|
|
827
|
+
return val;
|
|
828
|
+
}
|
|
829
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TimelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
830
|
+
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: `
|
|
831
|
+
<div
|
|
832
|
+
class="ngx-timeline"
|
|
833
|
+
[class.orientation-horizontal]="orientation() === 'horizontal'"
|
|
834
|
+
[class.orientation-vertical]="orientation() === 'vertical'"
|
|
835
|
+
[class.alternating]="alternating()"
|
|
836
|
+
>
|
|
837
|
+
<!-- Timeline Central Track Line -->
|
|
838
|
+
<div class="timeline-track"></div>
|
|
839
|
+
|
|
840
|
+
<!-- Timeline Items List -->
|
|
841
|
+
<div class="timeline-items">
|
|
842
|
+
@for (item of items(); track item.title; let i = $index) {
|
|
843
|
+
<div
|
|
844
|
+
class="timeline-item"
|
|
845
|
+
[class.align-left]="alternating() && i % 2 === 0"
|
|
846
|
+
[class.align-right]="alternating() && i % 2 !== 0"
|
|
847
|
+
[class.status-success]="item.status === 'success'"
|
|
848
|
+
[class.status-warning]="item.status === 'warning'"
|
|
849
|
+
[class.status-error]="item.status === 'error'"
|
|
850
|
+
[class.status-info]="item.status === 'info'"
|
|
851
|
+
[style.--item-color]="item.color || 'var(--primary-color)'"
|
|
852
|
+
>
|
|
853
|
+
<!-- Timeline Item Dot indicator -->
|
|
854
|
+
<div class="timeline-marker">
|
|
855
|
+
<span class="marker-dot">
|
|
856
|
+
@if (item.icon) {
|
|
857
|
+
<span class="marker-icon">{{ item.icon }}</span>
|
|
858
|
+
}
|
|
859
|
+
</span>
|
|
860
|
+
</div>
|
|
861
|
+
|
|
862
|
+
<!-- Content Card -->
|
|
863
|
+
<div class="timeline-card">
|
|
864
|
+
<div class="card-arrow"></div>
|
|
865
|
+
<div class="card-header">
|
|
866
|
+
<span class="item-time">
|
|
867
|
+
@if (isDate(item.timestamp)) {
|
|
868
|
+
{{ asDate(item.timestamp) | date:'mediumDate' }}
|
|
869
|
+
} @else {
|
|
870
|
+
{{ item.timestamp }}
|
|
871
|
+
}
|
|
872
|
+
</span>
|
|
873
|
+
@if (item.subtitle) {
|
|
874
|
+
<span class="item-subtitle">{{ item.subtitle }}</span>
|
|
875
|
+
}
|
|
876
|
+
</div>
|
|
877
|
+
<h4 class="item-title">{{ item.title }}</h4>
|
|
878
|
+
@if (item.description) {
|
|
879
|
+
<p class="item-desc">{{ item.description }}</p>
|
|
880
|
+
}
|
|
881
|
+
</div>
|
|
882
|
+
</div>
|
|
883
|
+
}
|
|
884
|
+
</div>
|
|
885
|
+
</div>
|
|
886
|
+
`, 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 });
|
|
887
|
+
}
|
|
888
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TimelineComponent, decorators: [{
|
|
889
|
+
type: Component,
|
|
890
|
+
args: [{ selector: 'ngx-timeline', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
891
|
+
<div
|
|
892
|
+
class="ngx-timeline"
|
|
893
|
+
[class.orientation-horizontal]="orientation() === 'horizontal'"
|
|
894
|
+
[class.orientation-vertical]="orientation() === 'vertical'"
|
|
895
|
+
[class.alternating]="alternating()"
|
|
896
|
+
>
|
|
897
|
+
<!-- Timeline Central Track Line -->
|
|
898
|
+
<div class="timeline-track"></div>
|
|
899
|
+
|
|
900
|
+
<!-- Timeline Items List -->
|
|
901
|
+
<div class="timeline-items">
|
|
902
|
+
@for (item of items(); track item.title; let i = $index) {
|
|
903
|
+
<div
|
|
904
|
+
class="timeline-item"
|
|
905
|
+
[class.align-left]="alternating() && i % 2 === 0"
|
|
906
|
+
[class.align-right]="alternating() && i % 2 !== 0"
|
|
907
|
+
[class.status-success]="item.status === 'success'"
|
|
908
|
+
[class.status-warning]="item.status === 'warning'"
|
|
909
|
+
[class.status-error]="item.status === 'error'"
|
|
910
|
+
[class.status-info]="item.status === 'info'"
|
|
911
|
+
[style.--item-color]="item.color || 'var(--primary-color)'"
|
|
912
|
+
>
|
|
913
|
+
<!-- Timeline Item Dot indicator -->
|
|
914
|
+
<div class="timeline-marker">
|
|
915
|
+
<span class="marker-dot">
|
|
916
|
+
@if (item.icon) {
|
|
917
|
+
<span class="marker-icon">{{ item.icon }}</span>
|
|
918
|
+
}
|
|
919
|
+
</span>
|
|
920
|
+
</div>
|
|
921
|
+
|
|
922
|
+
<!-- Content Card -->
|
|
923
|
+
<div class="timeline-card">
|
|
924
|
+
<div class="card-arrow"></div>
|
|
925
|
+
<div class="card-header">
|
|
926
|
+
<span class="item-time">
|
|
927
|
+
@if (isDate(item.timestamp)) {
|
|
928
|
+
{{ asDate(item.timestamp) | date:'mediumDate' }}
|
|
929
|
+
} @else {
|
|
930
|
+
{{ item.timestamp }}
|
|
931
|
+
}
|
|
932
|
+
</span>
|
|
933
|
+
@if (item.subtitle) {
|
|
934
|
+
<span class="item-subtitle">{{ item.subtitle }}</span>
|
|
935
|
+
}
|
|
936
|
+
</div>
|
|
937
|
+
<h4 class="item-title">{{ item.title }}</h4>
|
|
938
|
+
@if (item.description) {
|
|
939
|
+
<p class="item-desc">{{ item.description }}</p>
|
|
940
|
+
}
|
|
941
|
+
</div>
|
|
942
|
+
</div>
|
|
943
|
+
}
|
|
944
|
+
</div>
|
|
945
|
+
</div>
|
|
946
|
+
`, 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"] }]
|
|
947
|
+
}] });
|
|
948
|
+
|
|
949
|
+
class SchedulerComponent {
|
|
950
|
+
viewModes = ['day', 'week', 'month'];
|
|
951
|
+
// Inputs
|
|
952
|
+
events = input([]);
|
|
953
|
+
currentDate = input(new Date());
|
|
954
|
+
viewMode = input('week');
|
|
955
|
+
theme = input('light');
|
|
956
|
+
businessHoursStart = input(8); // 8 AM
|
|
957
|
+
businessHoursEnd = input(20); // 8 PM
|
|
958
|
+
// Outputs
|
|
959
|
+
eventClick = output();
|
|
960
|
+
slotClick = output();
|
|
961
|
+
eventTimeChange = output();
|
|
962
|
+
// State Signals
|
|
963
|
+
activeDate = signal(new Date());
|
|
964
|
+
activeMode = signal('week');
|
|
965
|
+
constructor() {
|
|
966
|
+
// Sync initial inputs
|
|
967
|
+
effect(() => {
|
|
968
|
+
this.activeDate.set(this.currentDate());
|
|
969
|
+
}, { allowSignalWrites: true });
|
|
970
|
+
effect(() => {
|
|
971
|
+
this.activeMode.set(this.viewMode());
|
|
972
|
+
}, { allowSignalWrites: true });
|
|
973
|
+
}
|
|
974
|
+
// Range of hours count computed
|
|
975
|
+
hours = computed(() => {
|
|
976
|
+
const list = [];
|
|
977
|
+
const start = this.businessHoursStart();
|
|
978
|
+
const end = this.businessHoursEnd();
|
|
979
|
+
for (let i = start; i < end; i++) {
|
|
980
|
+
list.push(i);
|
|
981
|
+
}
|
|
982
|
+
return list;
|
|
983
|
+
});
|
|
984
|
+
// Calculate day headers and cells depending on Mode
|
|
985
|
+
activeColumns = computed(() => {
|
|
986
|
+
const mode = this.activeMode();
|
|
987
|
+
const date = this.activeDate();
|
|
988
|
+
if (mode === 'day') {
|
|
989
|
+
return [date];
|
|
990
|
+
}
|
|
991
|
+
else if (mode === 'week') {
|
|
992
|
+
const start = this.getStartOfWeek(date);
|
|
993
|
+
return this.getWeekDays(start);
|
|
994
|
+
}
|
|
995
|
+
else {
|
|
996
|
+
// Month view days cell lists (42 cells)
|
|
997
|
+
return this.getMonthDays(date);
|
|
998
|
+
}
|
|
999
|
+
});
|
|
1000
|
+
// period header formatting
|
|
1001
|
+
periodLabel = computed(() => {
|
|
1002
|
+
const mode = this.activeMode();
|
|
1003
|
+
const date = this.activeDate();
|
|
1004
|
+
if (mode === 'day') {
|
|
1005
|
+
return date.toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' });
|
|
1006
|
+
}
|
|
1007
|
+
else if (mode === 'week') {
|
|
1008
|
+
const cols = this.activeColumns();
|
|
1009
|
+
const start = cols[0];
|
|
1010
|
+
const end = cols[6];
|
|
1011
|
+
if (start.getMonth() === end.getMonth()) {
|
|
1012
|
+
return `${start.toLocaleDateString('en-US', { month: 'long' })} ${start.getFullYear()}`;
|
|
1013
|
+
}
|
|
1014
|
+
return `${start.toLocaleDateString('en-US', { month: 'short' })} – ${end.toLocaleDateString('en-US', { month: 'short', year: 'numeric' })}`;
|
|
1015
|
+
}
|
|
1016
|
+
else {
|
|
1017
|
+
return date.toLocaleDateString('en-US', { month: 'long', year: 'numeric' });
|
|
1018
|
+
}
|
|
1019
|
+
});
|
|
1020
|
+
// Date Navigation handler
|
|
1021
|
+
navigate(direction) {
|
|
1022
|
+
const mode = this.activeMode();
|
|
1023
|
+
const current = new Date(this.activeDate());
|
|
1024
|
+
if (mode === 'day') {
|
|
1025
|
+
current.setDate(current.getDate() + direction);
|
|
1026
|
+
}
|
|
1027
|
+
else if (mode === 'week') {
|
|
1028
|
+
current.setDate(current.getDate() + direction * 7);
|
|
1029
|
+
}
|
|
1030
|
+
else {
|
|
1031
|
+
current.setMonth(current.getMonth() + direction);
|
|
1032
|
+
}
|
|
1033
|
+
this.activeDate.set(current);
|
|
1034
|
+
}
|
|
1035
|
+
goToToday() {
|
|
1036
|
+
this.activeDate.set(new Date());
|
|
1037
|
+
}
|
|
1038
|
+
// Get matching events for vertical day column
|
|
1039
|
+
getEventsForDate(d) {
|
|
1040
|
+
return this.events().filter(evt => this.isSameDate(evt.start, d));
|
|
1041
|
+
}
|
|
1042
|
+
clickEvent(evt) {
|
|
1043
|
+
this.eventClick.emit(evt);
|
|
1044
|
+
}
|
|
1045
|
+
clickSlot(date, hour) {
|
|
1046
|
+
const targetDate = new Date(date);
|
|
1047
|
+
targetDate.setHours(hour, 0, 0, 0);
|
|
1048
|
+
this.slotClick.emit({ date: targetDate, hour });
|
|
1049
|
+
}
|
|
1050
|
+
// Helpers
|
|
1051
|
+
isToday(d) {
|
|
1052
|
+
return this.isSameDate(d, new Date());
|
|
1053
|
+
}
|
|
1054
|
+
isOtherMonth(d) {
|
|
1055
|
+
return d.getMonth() !== this.activeDate().getMonth();
|
|
1056
|
+
}
|
|
1057
|
+
formatHour(h) {
|
|
1058
|
+
const ampm = h >= 12 ? 'PM' : 'AM';
|
|
1059
|
+
const hr = h % 12 === 0 ? 12 : h % 12;
|
|
1060
|
+
return `${hr} ${ampm}`;
|
|
1061
|
+
}
|
|
1062
|
+
getEventTop(start) {
|
|
1063
|
+
const startHour = start.getHours() + start.getMinutes() / 60;
|
|
1064
|
+
const bStart = this.businessHoursStart();
|
|
1065
|
+
const bEnd = this.businessHoursEnd();
|
|
1066
|
+
const totalHours = bEnd - bStart;
|
|
1067
|
+
const pct = ((startHour - bStart) / totalHours) * 100;
|
|
1068
|
+
return Math.max(0, Math.min(100, pct));
|
|
1069
|
+
}
|
|
1070
|
+
getEventHeight(start, end) {
|
|
1071
|
+
const startHour = start.getHours() + start.getMinutes() / 60;
|
|
1072
|
+
const endHour = end.getHours() + end.getMinutes() / 60;
|
|
1073
|
+
const bStart = this.businessHoursStart();
|
|
1074
|
+
const bEnd = this.businessHoursEnd();
|
|
1075
|
+
const totalHours = bEnd - bStart;
|
|
1076
|
+
const duration = endHour - startHour;
|
|
1077
|
+
const pct = (duration / totalHours) * 100;
|
|
1078
|
+
return Math.max(10, Math.min(100 - this.getEventTop(start), pct));
|
|
1079
|
+
}
|
|
1080
|
+
getStartOfWeek(d) {
|
|
1081
|
+
const res = new Date(d);
|
|
1082
|
+
const day = res.getDay();
|
|
1083
|
+
res.setDate(res.getDate() - day);
|
|
1084
|
+
res.setHours(0, 0, 0, 0);
|
|
1085
|
+
return res;
|
|
1086
|
+
}
|
|
1087
|
+
getWeekDays(start) {
|
|
1088
|
+
const days = [];
|
|
1089
|
+
for (let i = 0; i < 7; i++) {
|
|
1090
|
+
const day = new Date(start);
|
|
1091
|
+
day.setDate(start.getDate() + i);
|
|
1092
|
+
days.push(day);
|
|
1093
|
+
}
|
|
1094
|
+
return days;
|
|
1095
|
+
}
|
|
1096
|
+
getMonthDays(d) {
|
|
1097
|
+
const year = d.getFullYear();
|
|
1098
|
+
const month = d.getMonth();
|
|
1099
|
+
const firstDay = new Date(year, month, 1);
|
|
1100
|
+
const startOfWeek = this.getStartOfWeek(firstDay);
|
|
1101
|
+
const days = [];
|
|
1102
|
+
for (let i = 0; i < 42; i++) {
|
|
1103
|
+
const day = new Date(startOfWeek);
|
|
1104
|
+
day.setDate(startOfWeek.getDate() + i);
|
|
1105
|
+
days.push(day);
|
|
1106
|
+
}
|
|
1107
|
+
return days;
|
|
1108
|
+
}
|
|
1109
|
+
isSameDate(d1, d2) {
|
|
1110
|
+
return d1.getFullYear() === d2.getFullYear() &&
|
|
1111
|
+
d1.getMonth() === d2.getMonth() &&
|
|
1112
|
+
d1.getDate() === d2.getDate();
|
|
1113
|
+
}
|
|
1114
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SchedulerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1115
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: SchedulerComponent, isStandalone: true, selector: "ngx-scheduler", inputs: { events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, currentDate: { classPropertyName: "currentDate", publicName: "currentDate", isSignal: true, isRequired: false, transformFunction: null }, viewMode: { classPropertyName: "viewMode", publicName: "viewMode", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, businessHoursStart: { classPropertyName: "businessHoursStart", publicName: "businessHoursStart", isSignal: true, isRequired: false, transformFunction: null }, businessHoursEnd: { classPropertyName: "businessHoursEnd", publicName: "businessHoursEnd", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { eventClick: "eventClick", slotClick: "slotClick", eventTimeChange: "eventTimeChange" }, ngImport: i0, template: `
|
|
1116
|
+
<div class="ngx-scheduler-wrapper" [class.dark]="theme() === 'dark'">
|
|
1117
|
+
|
|
1118
|
+
<!-- Scheduler Toolbar Header -->
|
|
1119
|
+
<div class="scheduler-toolbar">
|
|
1120
|
+
<div class="nav-controls">
|
|
1121
|
+
<button class="tool-btn" (click)="navigate(-1)">◀</button>
|
|
1122
|
+
<button class="tool-btn today-btn" (click)="goToToday()">Today</button>
|
|
1123
|
+
<button class="tool-btn" (click)="navigate(1)">▶</button>
|
|
1124
|
+
<h2 class="current-period-label">{{ periodLabel() }}</h2>
|
|
1125
|
+
</div>
|
|
1126
|
+
|
|
1127
|
+
<div class="view-switch-controls">
|
|
1128
|
+
@for (mode of viewModes; track mode) {
|
|
1129
|
+
<button
|
|
1130
|
+
class="view-btn"
|
|
1131
|
+
[class.active]="activeMode() === mode"
|
|
1132
|
+
(click)="activeMode.set(mode)"
|
|
1133
|
+
>
|
|
1134
|
+
{{ mode | titlecase }}
|
|
1135
|
+
</button>
|
|
1136
|
+
}
|
|
1137
|
+
</div>
|
|
1138
|
+
</div>
|
|
1139
|
+
|
|
1140
|
+
<!-- Scheduler Body Grid -->
|
|
1141
|
+
<div class="scheduler-body">
|
|
1142
|
+
|
|
1143
|
+
<!-- WEEK / DAY VIEWS LAYER -->
|
|
1144
|
+
@if (activeMode() === 'day' || activeMode() === 'week') {
|
|
1145
|
+
<div class="time-grid-container">
|
|
1146
|
+
<div class="time-grid-header">
|
|
1147
|
+
<div class="time-axis-header"></div>
|
|
1148
|
+
<div class="columns-headers-wrap">
|
|
1149
|
+
@for (col of activeColumns(); track col.getTime()) {
|
|
1150
|
+
<div class="column-header-cell" [class.today]="isToday(col)">
|
|
1151
|
+
<span class="day-name">{{ col | date:'EEE' }}</span>
|
|
1152
|
+
<span class="day-num">{{ col | date:'d' }}</span>
|
|
1153
|
+
</div>
|
|
1154
|
+
}
|
|
1155
|
+
</div>
|
|
1156
|
+
</div>
|
|
1157
|
+
|
|
1158
|
+
<div class="time-grid-body">
|
|
1159
|
+
<!-- Left Hour Axis labels -->
|
|
1160
|
+
<div class="time-axis-labels">
|
|
1161
|
+
@for (h of hours(); track h) {
|
|
1162
|
+
<div class="time-label">{{ formatHour(h) }}</div>
|
|
1163
|
+
}
|
|
1164
|
+
</div>
|
|
1165
|
+
|
|
1166
|
+
<!-- Day columns contents -->
|
|
1167
|
+
<div class="columns-body-wrap">
|
|
1168
|
+
<!-- Hourly horizontal line grids -->
|
|
1169
|
+
<div class="hourly-grid-lines">
|
|
1170
|
+
@for (h of hours(); track h) {
|
|
1171
|
+
<div class="grid-line"></div>
|
|
1172
|
+
}
|
|
1173
|
+
</div>
|
|
1174
|
+
|
|
1175
|
+
<!-- Event overlays columns -->
|
|
1176
|
+
@for (col of activeColumns(); track col.getTime()) {
|
|
1177
|
+
<div class="column-body-cell">
|
|
1178
|
+
<!-- Transparent interactive slots -->
|
|
1179
|
+
<div class="interactive-slots-overlay">
|
|
1180
|
+
@for (h of hours(); track h) {
|
|
1181
|
+
<div class="slot-trigger" (click)="clickSlot(col, h)"></div>
|
|
1182
|
+
}
|
|
1183
|
+
</div>
|
|
1184
|
+
|
|
1185
|
+
<!-- Events positioned overlays -->
|
|
1186
|
+
@for (evt of getEventsForDate(col); track evt.id) {
|
|
1187
|
+
<div
|
|
1188
|
+
class="scheduler-event-card"
|
|
1189
|
+
[class]="evt.category"
|
|
1190
|
+
[style.top.%]="getEventTop(evt.start)"
|
|
1191
|
+
[style.height.%]="getEventHeight(evt.start, evt.end)"
|
|
1192
|
+
[style.background-color]="evt.color"
|
|
1193
|
+
(click)="clickEvent(evt)"
|
|
1194
|
+
[title]="evt.title + ' (' + evt.description + ')'"
|
|
1195
|
+
>
|
|
1196
|
+
<div class="event-color-indicator"></div>
|
|
1197
|
+
<div class="event-details">
|
|
1198
|
+
<span class="event-title">{{ evt.title }}</span>
|
|
1199
|
+
<span class="event-time">
|
|
1200
|
+
{{ evt.start | date:'shortTime' }} - {{ evt.end | date:'shortTime' }}
|
|
1201
|
+
</span>
|
|
1202
|
+
</div>
|
|
1203
|
+
</div>
|
|
1204
|
+
}
|
|
1205
|
+
</div>
|
|
1206
|
+
}
|
|
1207
|
+
</div>
|
|
1208
|
+
</div>
|
|
1209
|
+
</div>
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
<!-- MONTH VIEW GRID LAYER -->
|
|
1213
|
+
@if (activeMode() === 'month') {
|
|
1214
|
+
<div class="month-grid-container">
|
|
1215
|
+
<div class="month-grid-header">
|
|
1216
|
+
@for (dayName of ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; track dayName) {
|
|
1217
|
+
<div class="month-header-cell">{{ dayName }}</div>
|
|
1218
|
+
}
|
|
1219
|
+
</div>
|
|
1220
|
+
|
|
1221
|
+
<div class="month-grid-body">
|
|
1222
|
+
@for (cell of activeColumns(); track cell.getTime()) {
|
|
1223
|
+
<div
|
|
1224
|
+
class="month-day-cell"
|
|
1225
|
+
[class.today]="isToday(cell)"
|
|
1226
|
+
[class.other-month]="isOtherMonth(cell)"
|
|
1227
|
+
(click)="clickSlot(cell, 9)"
|
|
1228
|
+
>
|
|
1229
|
+
<span class="month-day-number">{{ cell | date:'d' }}</span>
|
|
1230
|
+
|
|
1231
|
+
<div class="month-day-events-list">
|
|
1232
|
+
@for (evt of getEventsForDate(cell); track evt.id) {
|
|
1233
|
+
<div
|
|
1234
|
+
class="month-event-item"
|
|
1235
|
+
[class]="evt.category"
|
|
1236
|
+
(click)="clickEvent(evt); $event.stopPropagation()"
|
|
1237
|
+
[title]="evt.title"
|
|
1238
|
+
>
|
|
1239
|
+
{{ evt.title }}
|
|
1240
|
+
</div>
|
|
1241
|
+
}
|
|
1242
|
+
</div>
|
|
1243
|
+
</div>
|
|
1244
|
+
}
|
|
1245
|
+
</div>
|
|
1246
|
+
</div>
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
</div>
|
|
1250
|
+
</div>
|
|
1251
|
+
`, isInline: true, styles: [":host{display:block;width:100%;height:100%}.ngx-scheduler-wrapper{display:flex;flex-direction:column;height:100%;min-height:500px;border:1px solid var(--border-color, #cbd5e1);border-radius:var(--radius-md, 12px);background:var(--bg-secondary, #ffffff);color:var(--text-primary, #0f172a);box-shadow:var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, .08));font-family:var(--ngx-font-family, sans-serif);overflow:hidden;transition:all .25s}.scheduler-toolbar{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;background:var(--border-light, #f1f5f9);border-bottom:1px solid var(--border-color, #cbd5e1);gap:16px;flex-wrap:wrap}.nav-controls{display:flex;align-items:center;gap:10px}.current-period-label{margin:0;font-size:16px;font-weight:750;min-width:180px}.tool-btn{background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #cbd5e1);border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600;cursor:pointer;color:var(--text-primary, #0f172a);transition:all .2s}.tool-btn:hover{background:var(--border-light, #f1f5f9);border-color:var(--primary-color, #4f46e5)}.today-btn{font-weight:700}.view-switch-controls{display:flex;border:1px solid var(--border-color, #cbd5e1);border-radius:6px;overflow:hidden}.view-btn{background:var(--bg-secondary, #ffffff);border:none;border-right:1px solid var(--border-color, #cbd5e1);padding:6px 14px;font-size:12px;font-weight:600;color:var(--text-secondary, #475569);cursor:pointer;transition:all .2s}.view-btn:last-child{border-right:none}.view-btn.active{background:var(--primary-gradient, linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%));color:#fff}.scheduler-body{flex:1;overflow-y:auto;background:var(--bg-secondary, #ffffff);display:flex;flex-direction:column}.time-grid-container{display:flex;flex-direction:column;flex:1;min-width:600px}.time-grid-header{display:flex;background:var(--border-light, #f8fafc);border-bottom:1px solid var(--border-color, #cbd5e1);position:sticky;top:0;z-index:10}.time-axis-header{width:70px;flex-shrink:0;border-right:1px solid var(--border-color, #cbd5e1)}.columns-headers-wrap{flex:1;display:flex}.column-header-cell{flex:1;display:flex;flex-direction:column;align-items:center;padding:10px 0;border-right:1px solid var(--border-color, #e2e8f0)}.column-header-cell:last-child{border-right:none}.column-header-cell.today{background:var(--primary-glow, rgba(79, 70, 229, .03))}.column-header-cell.today .day-num{background:var(--primary-color, #4f46e5);color:#fff;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;margin-top:2px}.day-name{font-size:11px;font-weight:600;color:var(--text-secondary, #64748b);text-transform:uppercase;letter-spacing:.5px}.day-num{font-size:14px;margin-top:4px;color:var(--text-primary, #0f172a)}.time-grid-body{display:flex;flex:1;position:relative}.time-axis-labels{width:70px;flex-shrink:0;border-right:1px solid var(--border-color, #cbd5e1);background:var(--border-light, #f8fafc);-webkit-user-select:none;user-select:none}.time-label{height:60px;font-size:11px;font-weight:600;color:var(--text-secondary, #64748b);text-align:right;padding-right:10px;margin-top:-6px}.columns-body-wrap{flex:1;display:flex;position:relative;min-height:780px}.hourly-grid-lines{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1}.grid-line{height:60px;border-bottom:1px solid var(--border-light, #e2e8f0)}.column-body-cell{flex:1;border-right:1px solid var(--border-light, #e2e8f0);position:relative;z-index:2}.column-body-cell:last-child{border-right:none}.interactive-slots-overlay{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;z-index:1}.slot-trigger{flex:1;height:60px;cursor:cell;transition:background .15s}.slot-trigger:hover{background:var(--primary-glow, rgba(79, 70, 229, .02))}.scheduler-event-card{position:absolute;left:6px;right:6px;border-radius:8px;padding:8px 10px;font-size:12px;line-height:1.4;cursor:pointer;display:flex;gap:8px;z-index:3;box-shadow:var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, .05));transition:transform .2s,box-shadow .2s;overflow:hidden;border:1px solid transparent}.scheduler-event-card:hover{transform:translateY(-1px);box-shadow:var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, .1));z-index:4}.event-color-indicator{width:3px;height:100%;border-radius:2px;flex-shrink:0;background:currentColor}.event-details{display:flex;flex-direction:column;gap:2px;overflow:hidden}.event-title{font-weight:700;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-time{font-size:10px;opacity:.8;white-space:nowrap}.month-grid-container{display:flex;flex-direction:column;flex:1;min-height:500px}.month-grid-header{display:flex;background:var(--border-light, #f8fafc);border-bottom:1px solid var(--border-color, #cbd5e1);position:sticky;top:0;z-index:10}.month-header-cell{flex:1;text-align:center;padding:10px 0;font-size:11px;font-weight:750;color:var(--text-secondary, #64748b);text-transform:uppercase;letter-spacing:.5px;border-right:1px solid var(--border-color, #cbd5e1)}.month-header-cell:last-child{border-right:none}.month-grid-body{display:grid;grid-template-columns:repeat(7,1fr);grid-auto-rows:minmax(100px,1fr);flex:1}.month-day-cell{border-right:1px solid var(--border-light, #e2e8f0);border-bottom:1px solid var(--border-light, #e2e8f0);padding:6px;display:flex;flex-direction:column;gap:6px;cursor:pointer;position:relative;transition:background .15s}.month-day-cell:nth-child(7n){border-right:none}.month-day-cell:hover{background:var(--primary-glow, rgba(79, 70, 229, .01))}.month-day-cell.today{background:var(--primary-glow, rgba(79, 70, 229, .02))}.month-day-cell.today .month-day-number{background:var(--primary-color, #4f46e5);color:#fff;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700}.month-day-cell.other-month{opacity:.45}.month-day-number{font-size:11px;font-weight:600;color:var(--text-secondary, #475569);width:22px;height:22px;display:flex;align-items:center;justify-content:center}.month-day-events-list{display:flex;flex-direction:column;gap:4px;overflow-y:auto;max-height:90px}.month-event-item{font-size:10px;font-weight:600;padding:2px 6px;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;transition:transform .1s}.month-event-item:hover{transform:scale(1.02)}.meeting{background-color:var(--ngx-schedule-meeting-bg, hsl(207, 95%, 97%));border-color:var(--ngx-schedule-meeting-border, hsl(207, 90%, 88%));color:var(--ngx-schedule-meeting-text, hsl(207, 90%, 30%))}.task{background-color:var(--ngx-schedule-task-bg, hsl(142, 70%, 97%));border-color:var(--ngx-schedule-task-border, hsl(142, 60%, 88%));color:var(--ngx-schedule-task-text, hsl(142, 60%, 25%))}.important{background-color:var(--ngx-schedule-important-bg, hsl(0, 90%, 97%));border-color:var(--ngx-schedule-important-border, hsl(0, 80%, 88%));color:var(--ngx-schedule-important-text, hsl(0, 80%, 35%))}.warning{background-color:var(--ngx-schedule-warning-bg, hsl(38, 90%, 97%));border-color:var(--ngx-schedule-warning-border, hsl(38, 80%, 88%));color:var(--ngx-schedule-warning-text, hsl(38, 80%, 28%))}.milestone{background-color:var(--ngx-schedule-milestone-bg, hsl(271, 80%, 97%));border-color:var(--ngx-schedule-milestone-border, hsl(271, 70%, 88%));color:var(--ngx-schedule-milestone-text, hsl(271, 70%, 35%))}.personal{background-color:var(--ngx-schedule-personal-bg, hsl(180, 70%, 96%));border-color:var(--ngx-schedule-personal-border, hsl(180, 60%, 85%));color:var(--ngx-schedule-personal-text, hsl(180, 60%, 28%))}.ngx-scheduler-wrapper.dark{border-color:#1f2937;background:#0f172a;color:#f8fafc}.ngx-scheduler-wrapper.dark .scheduler-toolbar{background:#1e293b;border-bottom-color:#1f2937}.ngx-scheduler-wrapper.dark .tool-btn,.ngx-scheduler-wrapper.dark .view-btn{background:#0f172a;border-color:#1f2937;color:#94a3b8}.ngx-scheduler-wrapper.dark .tool-btn:hover{background:#1e293b;color:#f8fafc}.ngx-scheduler-wrapper.dark .view-btn.active{background:var(--primary-gradient, linear-gradient(135deg, #6366f1 0%, #a855f7 100%));color:#fff}.ngx-scheduler-wrapper.dark .time-grid-header,.ngx-scheduler-wrapper.dark .time-axis-labels,.ngx-scheduler-wrapper.dark .month-grid-header{background:#1e293b;border-color:#1f2937}.ngx-scheduler-wrapper.dark .column-header-cell,.ngx-scheduler-wrapper.dark .time-axis-header,.ngx-scheduler-wrapper.dark .time-label{border-color:#1f2937;color:#94a3b8}.ngx-scheduler-wrapper.dark .column-header-cell.today{background:#6366f10d}.ngx-scheduler-wrapper.dark .day-num{color:#e2e8f0}.ngx-scheduler-wrapper.dark .grid-line{border-bottom-color:#1f2937}.ngx-scheduler-wrapper.dark .column-body-cell{border-right-color:#1f2937}.ngx-scheduler-wrapper.dark .month-header-cell{border-right-color:#1f2937;color:#94a3b8}.ngx-scheduler-wrapper.dark .month-day-cell{border-right-color:#1f2937;border-bottom-color:#1f2937}.ngx-scheduler-wrapper.dark .month-day-cell:hover{background:#6366f105}.ngx-scheduler-wrapper.dark .month-day-cell.today{background:#6366f10d}.ngx-scheduler-wrapper.dark .month-day-number{color:#94a3b8}.ngx-scheduler-wrapper.dark .meeting{background-color:var(--ngx-schedule-meeting-dark-bg, hsl(207, 80%, 10%));border-color:var(--ngx-schedule-meeting-dark-border, hsl(207, 70%, 18%));color:var(--ngx-schedule-meeting-dark-text, hsl(207, 90%, 75%))}.ngx-scheduler-wrapper.dark .task{background-color:var(--ngx-schedule-task-dark-bg, hsl(142, 60%, 8%));border-color:var(--ngx-schedule-task-dark-border, hsl(142, 50%, 16%));color:var(--ngx-schedule-task-dark-text, hsl(142, 70%, 70%))}.ngx-scheduler-wrapper.dark .important{background-color:var(--ngx-schedule-important-dark-bg, hsl(0, 70%, 9%));border-color:var(--ngx-schedule-important-dark-border, hsl(0, 60%, 18%));color:var(--ngx-schedule-important-dark-text, hsl(0, 80%, 75%))}.ngx-scheduler-wrapper.dark .warning{background-color:var(--ngx-schedule-warning-dark-bg, hsl(38, 70%, 8%));border-color:var(--ngx-schedule-warning-dark-border, hsl(38, 60%, 16%));color:var(--ngx-schedule-warning-dark-text, hsl(38, 80%, 70%))}.ngx-scheduler-wrapper.dark .milestone{background-color:var(--ngx-schedule-milestone-dark-bg, hsl(271, 70%, 10%));border-color:var(--ngx-schedule-milestone-dark-border, hsl(271, 60%, 18%));color:var(--ngx-schedule-milestone-dark-text, hsl(271, 80%, 75%))}.ngx-scheduler-wrapper.dark .personal{background-color:var(--ngx-schedule-personal-dark-bg, hsl(180, 60%, 8%));border-color:var(--ngx-schedule-personal-dark-border, hsl(180, 50%, 16%));color:var(--ngx-schedule-personal-dark-text, hsl(180, 70%, 70%))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: i1.DatePipe, name: "date" }] });
|
|
1252
|
+
}
|
|
1253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SchedulerComponent, decorators: [{
|
|
1254
|
+
type: Component,
|
|
1255
|
+
args: [{ selector: 'ngx-scheduler', standalone: true, imports: [CommonModule], template: `
|
|
1256
|
+
<div class="ngx-scheduler-wrapper" [class.dark]="theme() === 'dark'">
|
|
1257
|
+
|
|
1258
|
+
<!-- Scheduler Toolbar Header -->
|
|
1259
|
+
<div class="scheduler-toolbar">
|
|
1260
|
+
<div class="nav-controls">
|
|
1261
|
+
<button class="tool-btn" (click)="navigate(-1)">◀</button>
|
|
1262
|
+
<button class="tool-btn today-btn" (click)="goToToday()">Today</button>
|
|
1263
|
+
<button class="tool-btn" (click)="navigate(1)">▶</button>
|
|
1264
|
+
<h2 class="current-period-label">{{ periodLabel() }}</h2>
|
|
1265
|
+
</div>
|
|
1266
|
+
|
|
1267
|
+
<div class="view-switch-controls">
|
|
1268
|
+
@for (mode of viewModes; track mode) {
|
|
1269
|
+
<button
|
|
1270
|
+
class="view-btn"
|
|
1271
|
+
[class.active]="activeMode() === mode"
|
|
1272
|
+
(click)="activeMode.set(mode)"
|
|
1273
|
+
>
|
|
1274
|
+
{{ mode | titlecase }}
|
|
1275
|
+
</button>
|
|
1276
|
+
}
|
|
1277
|
+
</div>
|
|
1278
|
+
</div>
|
|
1279
|
+
|
|
1280
|
+
<!-- Scheduler Body Grid -->
|
|
1281
|
+
<div class="scheduler-body">
|
|
1282
|
+
|
|
1283
|
+
<!-- WEEK / DAY VIEWS LAYER -->
|
|
1284
|
+
@if (activeMode() === 'day' || activeMode() === 'week') {
|
|
1285
|
+
<div class="time-grid-container">
|
|
1286
|
+
<div class="time-grid-header">
|
|
1287
|
+
<div class="time-axis-header"></div>
|
|
1288
|
+
<div class="columns-headers-wrap">
|
|
1289
|
+
@for (col of activeColumns(); track col.getTime()) {
|
|
1290
|
+
<div class="column-header-cell" [class.today]="isToday(col)">
|
|
1291
|
+
<span class="day-name">{{ col | date:'EEE' }}</span>
|
|
1292
|
+
<span class="day-num">{{ col | date:'d' }}</span>
|
|
1293
|
+
</div>
|
|
1294
|
+
}
|
|
1295
|
+
</div>
|
|
1296
|
+
</div>
|
|
1297
|
+
|
|
1298
|
+
<div class="time-grid-body">
|
|
1299
|
+
<!-- Left Hour Axis labels -->
|
|
1300
|
+
<div class="time-axis-labels">
|
|
1301
|
+
@for (h of hours(); track h) {
|
|
1302
|
+
<div class="time-label">{{ formatHour(h) }}</div>
|
|
1303
|
+
}
|
|
1304
|
+
</div>
|
|
1305
|
+
|
|
1306
|
+
<!-- Day columns contents -->
|
|
1307
|
+
<div class="columns-body-wrap">
|
|
1308
|
+
<!-- Hourly horizontal line grids -->
|
|
1309
|
+
<div class="hourly-grid-lines">
|
|
1310
|
+
@for (h of hours(); track h) {
|
|
1311
|
+
<div class="grid-line"></div>
|
|
1312
|
+
}
|
|
1313
|
+
</div>
|
|
1314
|
+
|
|
1315
|
+
<!-- Event overlays columns -->
|
|
1316
|
+
@for (col of activeColumns(); track col.getTime()) {
|
|
1317
|
+
<div class="column-body-cell">
|
|
1318
|
+
<!-- Transparent interactive slots -->
|
|
1319
|
+
<div class="interactive-slots-overlay">
|
|
1320
|
+
@for (h of hours(); track h) {
|
|
1321
|
+
<div class="slot-trigger" (click)="clickSlot(col, h)"></div>
|
|
1322
|
+
}
|
|
1323
|
+
</div>
|
|
1324
|
+
|
|
1325
|
+
<!-- Events positioned overlays -->
|
|
1326
|
+
@for (evt of getEventsForDate(col); track evt.id) {
|
|
1327
|
+
<div
|
|
1328
|
+
class="scheduler-event-card"
|
|
1329
|
+
[class]="evt.category"
|
|
1330
|
+
[style.top.%]="getEventTop(evt.start)"
|
|
1331
|
+
[style.height.%]="getEventHeight(evt.start, evt.end)"
|
|
1332
|
+
[style.background-color]="evt.color"
|
|
1333
|
+
(click)="clickEvent(evt)"
|
|
1334
|
+
[title]="evt.title + ' (' + evt.description + ')'"
|
|
1335
|
+
>
|
|
1336
|
+
<div class="event-color-indicator"></div>
|
|
1337
|
+
<div class="event-details">
|
|
1338
|
+
<span class="event-title">{{ evt.title }}</span>
|
|
1339
|
+
<span class="event-time">
|
|
1340
|
+
{{ evt.start | date:'shortTime' }} - {{ evt.end | date:'shortTime' }}
|
|
1341
|
+
</span>
|
|
1342
|
+
</div>
|
|
1343
|
+
</div>
|
|
1344
|
+
}
|
|
1345
|
+
</div>
|
|
1346
|
+
}
|
|
1347
|
+
</div>
|
|
1348
|
+
</div>
|
|
1349
|
+
</div>
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
<!-- MONTH VIEW GRID LAYER -->
|
|
1353
|
+
@if (activeMode() === 'month') {
|
|
1354
|
+
<div class="month-grid-container">
|
|
1355
|
+
<div class="month-grid-header">
|
|
1356
|
+
@for (dayName of ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; track dayName) {
|
|
1357
|
+
<div class="month-header-cell">{{ dayName }}</div>
|
|
1358
|
+
}
|
|
1359
|
+
</div>
|
|
1360
|
+
|
|
1361
|
+
<div class="month-grid-body">
|
|
1362
|
+
@for (cell of activeColumns(); track cell.getTime()) {
|
|
1363
|
+
<div
|
|
1364
|
+
class="month-day-cell"
|
|
1365
|
+
[class.today]="isToday(cell)"
|
|
1366
|
+
[class.other-month]="isOtherMonth(cell)"
|
|
1367
|
+
(click)="clickSlot(cell, 9)"
|
|
1368
|
+
>
|
|
1369
|
+
<span class="month-day-number">{{ cell | date:'d' }}</span>
|
|
1370
|
+
|
|
1371
|
+
<div class="month-day-events-list">
|
|
1372
|
+
@for (evt of getEventsForDate(cell); track evt.id) {
|
|
1373
|
+
<div
|
|
1374
|
+
class="month-event-item"
|
|
1375
|
+
[class]="evt.category"
|
|
1376
|
+
(click)="clickEvent(evt); $event.stopPropagation()"
|
|
1377
|
+
[title]="evt.title"
|
|
1378
|
+
>
|
|
1379
|
+
{{ evt.title }}
|
|
1380
|
+
</div>
|
|
1381
|
+
}
|
|
1382
|
+
</div>
|
|
1383
|
+
</div>
|
|
1384
|
+
}
|
|
1385
|
+
</div>
|
|
1386
|
+
</div>
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
</div>
|
|
1390
|
+
</div>
|
|
1391
|
+
`, styles: [":host{display:block;width:100%;height:100%}.ngx-scheduler-wrapper{display:flex;flex-direction:column;height:100%;min-height:500px;border:1px solid var(--border-color, #cbd5e1);border-radius:var(--radius-md, 12px);background:var(--bg-secondary, #ffffff);color:var(--text-primary, #0f172a);box-shadow:var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, .08));font-family:var(--ngx-font-family, sans-serif);overflow:hidden;transition:all .25s}.scheduler-toolbar{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;background:var(--border-light, #f1f5f9);border-bottom:1px solid var(--border-color, #cbd5e1);gap:16px;flex-wrap:wrap}.nav-controls{display:flex;align-items:center;gap:10px}.current-period-label{margin:0;font-size:16px;font-weight:750;min-width:180px}.tool-btn{background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #cbd5e1);border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600;cursor:pointer;color:var(--text-primary, #0f172a);transition:all .2s}.tool-btn:hover{background:var(--border-light, #f1f5f9);border-color:var(--primary-color, #4f46e5)}.today-btn{font-weight:700}.view-switch-controls{display:flex;border:1px solid var(--border-color, #cbd5e1);border-radius:6px;overflow:hidden}.view-btn{background:var(--bg-secondary, #ffffff);border:none;border-right:1px solid var(--border-color, #cbd5e1);padding:6px 14px;font-size:12px;font-weight:600;color:var(--text-secondary, #475569);cursor:pointer;transition:all .2s}.view-btn:last-child{border-right:none}.view-btn.active{background:var(--primary-gradient, linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%));color:#fff}.scheduler-body{flex:1;overflow-y:auto;background:var(--bg-secondary, #ffffff);display:flex;flex-direction:column}.time-grid-container{display:flex;flex-direction:column;flex:1;min-width:600px}.time-grid-header{display:flex;background:var(--border-light, #f8fafc);border-bottom:1px solid var(--border-color, #cbd5e1);position:sticky;top:0;z-index:10}.time-axis-header{width:70px;flex-shrink:0;border-right:1px solid var(--border-color, #cbd5e1)}.columns-headers-wrap{flex:1;display:flex}.column-header-cell{flex:1;display:flex;flex-direction:column;align-items:center;padding:10px 0;border-right:1px solid var(--border-color, #e2e8f0)}.column-header-cell:last-child{border-right:none}.column-header-cell.today{background:var(--primary-glow, rgba(79, 70, 229, .03))}.column-header-cell.today .day-num{background:var(--primary-color, #4f46e5);color:#fff;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;margin-top:2px}.day-name{font-size:11px;font-weight:600;color:var(--text-secondary, #64748b);text-transform:uppercase;letter-spacing:.5px}.day-num{font-size:14px;margin-top:4px;color:var(--text-primary, #0f172a)}.time-grid-body{display:flex;flex:1;position:relative}.time-axis-labels{width:70px;flex-shrink:0;border-right:1px solid var(--border-color, #cbd5e1);background:var(--border-light, #f8fafc);-webkit-user-select:none;user-select:none}.time-label{height:60px;font-size:11px;font-weight:600;color:var(--text-secondary, #64748b);text-align:right;padding-right:10px;margin-top:-6px}.columns-body-wrap{flex:1;display:flex;position:relative;min-height:780px}.hourly-grid-lines{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1}.grid-line{height:60px;border-bottom:1px solid var(--border-light, #e2e8f0)}.column-body-cell{flex:1;border-right:1px solid var(--border-light, #e2e8f0);position:relative;z-index:2}.column-body-cell:last-child{border-right:none}.interactive-slots-overlay{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;z-index:1}.slot-trigger{flex:1;height:60px;cursor:cell;transition:background .15s}.slot-trigger:hover{background:var(--primary-glow, rgba(79, 70, 229, .02))}.scheduler-event-card{position:absolute;left:6px;right:6px;border-radius:8px;padding:8px 10px;font-size:12px;line-height:1.4;cursor:pointer;display:flex;gap:8px;z-index:3;box-shadow:var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, .05));transition:transform .2s,box-shadow .2s;overflow:hidden;border:1px solid transparent}.scheduler-event-card:hover{transform:translateY(-1px);box-shadow:var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, .1));z-index:4}.event-color-indicator{width:3px;height:100%;border-radius:2px;flex-shrink:0;background:currentColor}.event-details{display:flex;flex-direction:column;gap:2px;overflow:hidden}.event-title{font-weight:700;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-time{font-size:10px;opacity:.8;white-space:nowrap}.month-grid-container{display:flex;flex-direction:column;flex:1;min-height:500px}.month-grid-header{display:flex;background:var(--border-light, #f8fafc);border-bottom:1px solid var(--border-color, #cbd5e1);position:sticky;top:0;z-index:10}.month-header-cell{flex:1;text-align:center;padding:10px 0;font-size:11px;font-weight:750;color:var(--text-secondary, #64748b);text-transform:uppercase;letter-spacing:.5px;border-right:1px solid var(--border-color, #cbd5e1)}.month-header-cell:last-child{border-right:none}.month-grid-body{display:grid;grid-template-columns:repeat(7,1fr);grid-auto-rows:minmax(100px,1fr);flex:1}.month-day-cell{border-right:1px solid var(--border-light, #e2e8f0);border-bottom:1px solid var(--border-light, #e2e8f0);padding:6px;display:flex;flex-direction:column;gap:6px;cursor:pointer;position:relative;transition:background .15s}.month-day-cell:nth-child(7n){border-right:none}.month-day-cell:hover{background:var(--primary-glow, rgba(79, 70, 229, .01))}.month-day-cell.today{background:var(--primary-glow, rgba(79, 70, 229, .02))}.month-day-cell.today .month-day-number{background:var(--primary-color, #4f46e5);color:#fff;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700}.month-day-cell.other-month{opacity:.45}.month-day-number{font-size:11px;font-weight:600;color:var(--text-secondary, #475569);width:22px;height:22px;display:flex;align-items:center;justify-content:center}.month-day-events-list{display:flex;flex-direction:column;gap:4px;overflow-y:auto;max-height:90px}.month-event-item{font-size:10px;font-weight:600;padding:2px 6px;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;transition:transform .1s}.month-event-item:hover{transform:scale(1.02)}.meeting{background-color:var(--ngx-schedule-meeting-bg, hsl(207, 95%, 97%));border-color:var(--ngx-schedule-meeting-border, hsl(207, 90%, 88%));color:var(--ngx-schedule-meeting-text, hsl(207, 90%, 30%))}.task{background-color:var(--ngx-schedule-task-bg, hsl(142, 70%, 97%));border-color:var(--ngx-schedule-task-border, hsl(142, 60%, 88%));color:var(--ngx-schedule-task-text, hsl(142, 60%, 25%))}.important{background-color:var(--ngx-schedule-important-bg, hsl(0, 90%, 97%));border-color:var(--ngx-schedule-important-border, hsl(0, 80%, 88%));color:var(--ngx-schedule-important-text, hsl(0, 80%, 35%))}.warning{background-color:var(--ngx-schedule-warning-bg, hsl(38, 90%, 97%));border-color:var(--ngx-schedule-warning-border, hsl(38, 80%, 88%));color:var(--ngx-schedule-warning-text, hsl(38, 80%, 28%))}.milestone{background-color:var(--ngx-schedule-milestone-bg, hsl(271, 80%, 97%));border-color:var(--ngx-schedule-milestone-border, hsl(271, 70%, 88%));color:var(--ngx-schedule-milestone-text, hsl(271, 70%, 35%))}.personal{background-color:var(--ngx-schedule-personal-bg, hsl(180, 70%, 96%));border-color:var(--ngx-schedule-personal-border, hsl(180, 60%, 85%));color:var(--ngx-schedule-personal-text, hsl(180, 60%, 28%))}.ngx-scheduler-wrapper.dark{border-color:#1f2937;background:#0f172a;color:#f8fafc}.ngx-scheduler-wrapper.dark .scheduler-toolbar{background:#1e293b;border-bottom-color:#1f2937}.ngx-scheduler-wrapper.dark .tool-btn,.ngx-scheduler-wrapper.dark .view-btn{background:#0f172a;border-color:#1f2937;color:#94a3b8}.ngx-scheduler-wrapper.dark .tool-btn:hover{background:#1e293b;color:#f8fafc}.ngx-scheduler-wrapper.dark .view-btn.active{background:var(--primary-gradient, linear-gradient(135deg, #6366f1 0%, #a855f7 100%));color:#fff}.ngx-scheduler-wrapper.dark .time-grid-header,.ngx-scheduler-wrapper.dark .time-axis-labels,.ngx-scheduler-wrapper.dark .month-grid-header{background:#1e293b;border-color:#1f2937}.ngx-scheduler-wrapper.dark .column-header-cell,.ngx-scheduler-wrapper.dark .time-axis-header,.ngx-scheduler-wrapper.dark .time-label{border-color:#1f2937;color:#94a3b8}.ngx-scheduler-wrapper.dark .column-header-cell.today{background:#6366f10d}.ngx-scheduler-wrapper.dark .day-num{color:#e2e8f0}.ngx-scheduler-wrapper.dark .grid-line{border-bottom-color:#1f2937}.ngx-scheduler-wrapper.dark .column-body-cell{border-right-color:#1f2937}.ngx-scheduler-wrapper.dark .month-header-cell{border-right-color:#1f2937;color:#94a3b8}.ngx-scheduler-wrapper.dark .month-day-cell{border-right-color:#1f2937;border-bottom-color:#1f2937}.ngx-scheduler-wrapper.dark .month-day-cell:hover{background:#6366f105}.ngx-scheduler-wrapper.dark .month-day-cell.today{background:#6366f10d}.ngx-scheduler-wrapper.dark .month-day-number{color:#94a3b8}.ngx-scheduler-wrapper.dark .meeting{background-color:var(--ngx-schedule-meeting-dark-bg, hsl(207, 80%, 10%));border-color:var(--ngx-schedule-meeting-dark-border, hsl(207, 70%, 18%));color:var(--ngx-schedule-meeting-dark-text, hsl(207, 90%, 75%))}.ngx-scheduler-wrapper.dark .task{background-color:var(--ngx-schedule-task-dark-bg, hsl(142, 60%, 8%));border-color:var(--ngx-schedule-task-dark-border, hsl(142, 50%, 16%));color:var(--ngx-schedule-task-dark-text, hsl(142, 70%, 70%))}.ngx-scheduler-wrapper.dark .important{background-color:var(--ngx-schedule-important-dark-bg, hsl(0, 70%, 9%));border-color:var(--ngx-schedule-important-dark-border, hsl(0, 60%, 18%));color:var(--ngx-schedule-important-dark-text, hsl(0, 80%, 75%))}.ngx-scheduler-wrapper.dark .warning{background-color:var(--ngx-schedule-warning-dark-bg, hsl(38, 70%, 8%));border-color:var(--ngx-schedule-warning-dark-border, hsl(38, 60%, 16%));color:var(--ngx-schedule-warning-dark-text, hsl(38, 80%, 70%))}.ngx-scheduler-wrapper.dark .milestone{background-color:var(--ngx-schedule-milestone-dark-bg, hsl(271, 70%, 10%));border-color:var(--ngx-schedule-milestone-dark-border, hsl(271, 60%, 18%));color:var(--ngx-schedule-milestone-dark-text, hsl(271, 80%, 75%))}.ngx-scheduler-wrapper.dark .personal{background-color:var(--ngx-schedule-personal-dark-bg, hsl(180, 60%, 8%));border-color:var(--ngx-schedule-personal-dark-border, hsl(180, 50%, 16%));color:var(--ngx-schedule-personal-dark-text, hsl(180, 70%, 70%))}\n"] }]
|
|
1392
|
+
}], ctorParameters: () => [] });
|
|
1393
|
+
|
|
1394
|
+
class VirtualListComponent {
|
|
1395
|
+
scrollContainer;
|
|
1396
|
+
// ---------- Inputs ----------
|
|
1397
|
+
items = input([]);
|
|
1398
|
+
itemHeight = input(48);
|
|
1399
|
+
containerHeight = input(400);
|
|
1400
|
+
overscan = input(5);
|
|
1401
|
+
striped = input(false);
|
|
1402
|
+
showCount = input(true);
|
|
1403
|
+
emptyText = input('No items to display');
|
|
1404
|
+
labelKey = input('label');
|
|
1405
|
+
renderTemplate = input(null);
|
|
1406
|
+
// ---------- Outputs ----------
|
|
1407
|
+
itemClick = output();
|
|
1408
|
+
// ---------- Internal state ----------
|
|
1409
|
+
scrollTop = signal(0);
|
|
1410
|
+
selectedIndex = signal(-1);
|
|
1411
|
+
// ---------- Computed ----------
|
|
1412
|
+
totalHeight = computed(() => this.items().length * this.itemHeight());
|
|
1413
|
+
startIndex = computed(() => {
|
|
1414
|
+
const raw = Math.floor(this.scrollTop() / this.itemHeight());
|
|
1415
|
+
return Math.max(0, raw - this.overscan());
|
|
1416
|
+
});
|
|
1417
|
+
endIndex = computed(() => {
|
|
1418
|
+
const visible = Math.ceil(this.containerHeight() / this.itemHeight());
|
|
1419
|
+
const raw = Math.floor(this.scrollTop() / this.itemHeight()) + visible;
|
|
1420
|
+
return Math.min(this.items().length - 1, raw + this.overscan());
|
|
1421
|
+
});
|
|
1422
|
+
visibleItems = computed(() => {
|
|
1423
|
+
const arr = [];
|
|
1424
|
+
const start = this.startIndex();
|
|
1425
|
+
const end = this.endIndex();
|
|
1426
|
+
const all = this.items();
|
|
1427
|
+
for (let i = start; i <= end; i++) {
|
|
1428
|
+
arr.push({ item: all[i], index: i });
|
|
1429
|
+
}
|
|
1430
|
+
return arr;
|
|
1431
|
+
});
|
|
1432
|
+
offsetY = computed(() => this.startIndex() * this.itemHeight());
|
|
1433
|
+
// ---------- Event handlers ----------
|
|
1434
|
+
onScroll() {
|
|
1435
|
+
const el = this.scrollContainer?.nativeElement;
|
|
1436
|
+
if (el) {
|
|
1437
|
+
this.scrollTop.set(el.scrollTop);
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
handleItemClick(item, index) {
|
|
1441
|
+
this.selectedIndex.set(index);
|
|
1442
|
+
this.itemClick.emit({ item, index });
|
|
1443
|
+
}
|
|
1444
|
+
getLabel(item) {
|
|
1445
|
+
const key = this.labelKey();
|
|
1446
|
+
const val = item[key];
|
|
1447
|
+
return val != null ? String(val) : String(item['id'] ?? '');
|
|
1448
|
+
}
|
|
1449
|
+
ngOnDestroy() { }
|
|
1450
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: VirtualListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1451
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: VirtualListComponent, isStandalone: true, selector: "ngx-virtual-list", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, itemHeight: { classPropertyName: "itemHeight", publicName: "itemHeight", isSignal: true, isRequired: false, transformFunction: null }, containerHeight: { classPropertyName: "containerHeight", publicName: "containerHeight", isSignal: true, isRequired: false, transformFunction: null }, overscan: { classPropertyName: "overscan", publicName: "overscan", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, showCount: { classPropertyName: "showCount", publicName: "showCount", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, labelKey: { classPropertyName: "labelKey", publicName: "labelKey", isSignal: true, isRequired: false, transformFunction: null }, renderTemplate: { classPropertyName: "renderTemplate", publicName: "renderTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollContainer"], descendants: true }], ngImport: i0, template: `
|
|
1452
|
+
<div
|
|
1453
|
+
#scrollContainer
|
|
1454
|
+
class="vl-container"
|
|
1455
|
+
[style.height]="containerHeight() + 'px'"
|
|
1456
|
+
(scroll)="onScroll()"
|
|
1457
|
+
>
|
|
1458
|
+
<!-- Total height spacer -->
|
|
1459
|
+
<div class="vl-spacer" [style.height]="totalHeight() + 'px'"></div>
|
|
1460
|
+
|
|
1461
|
+
<!-- Visible items absolute-positioned window -->
|
|
1462
|
+
<div
|
|
1463
|
+
class="vl-window"
|
|
1464
|
+
[style.transform]="'translateY(' + offsetY() + 'px)'"
|
|
1465
|
+
>
|
|
1466
|
+
@for (entry of visibleItems(); track entry.index) {
|
|
1467
|
+
<div
|
|
1468
|
+
class="vl-row"
|
|
1469
|
+
[class.vl-row--selected]="selectedIndex() === entry.index"
|
|
1470
|
+
[class.vl-row--striped]="striped() && entry.index % 2 !== 0"
|
|
1471
|
+
[style.height]="itemHeight() + 'px'"
|
|
1472
|
+
(click)="handleItemClick(entry.item, entry.index)"
|
|
1473
|
+
>
|
|
1474
|
+
@if (renderTemplate()) {
|
|
1475
|
+
<ng-container *ngTemplateOutlet="renderTemplate()!; context: { $implicit: entry.item, index: entry.index }"></ng-container>
|
|
1476
|
+
} @else {
|
|
1477
|
+
<span class="vl-default-label">{{ getLabel(entry.item) }}</span>
|
|
1478
|
+
}
|
|
1479
|
+
</div>
|
|
1480
|
+
}
|
|
1481
|
+
</div>
|
|
1482
|
+
|
|
1483
|
+
<!-- Empty state -->
|
|
1484
|
+
@if (items().length === 0) {
|
|
1485
|
+
<div class="vl-empty">
|
|
1486
|
+
<span class="vl-empty-icon">📋</span>
|
|
1487
|
+
<span>{{ emptyText() }}</span>
|
|
1488
|
+
</div>
|
|
1489
|
+
}
|
|
1490
|
+
</div>
|
|
1491
|
+
|
|
1492
|
+
<!-- Footer info bar -->
|
|
1493
|
+
@if (showCount()) {
|
|
1494
|
+
<div class="vl-footer">
|
|
1495
|
+
<span>Showing {{ visibleItems().length }} of {{ items().length }} items</span>
|
|
1496
|
+
</div>
|
|
1497
|
+
}
|
|
1498
|
+
`, isInline: true, styles: [":host{display:block;font-family:inherit}.vl-container{position:relative;overflow-y:auto;overflow-x:hidden;border:1px solid var(--border-color, #e2e8f0);border-radius:10px;background:var(--bg-primary, #ffffff);scroll-behavior:auto}.vl-container::-webkit-scrollbar{width:6px}.vl-container::-webkit-scrollbar-track{background:transparent}.vl-container::-webkit-scrollbar-thumb{background:var(--border-color, #cbd5e1);border-radius:3px}.vl-container::-webkit-scrollbar-thumb:hover{background:var(--text-secondary, #94a3b8)}.vl-spacer{position:absolute;top:0;left:0;width:1px;pointer-events:none}.vl-window{position:absolute;top:0;left:0;right:0;will-change:transform}.vl-row{display:flex;align-items:center;padding:0 16px;cursor:pointer;border-bottom:1px solid var(--border-color, #f1f5f9);transition:background-color .12s ease;box-sizing:border-box;gap:12px}.vl-row:hover{background:var(--bg-hover, rgba(79, 70, 229, .04))}.vl-row--selected{background:var(--primary-glow, rgba(79, 70, 229, .08));border-left:3px solid var(--primary-color, #4f46e5)}.vl-row--striped:not(.vl-row--selected){background:var(--bg-secondary, #f8fafc)}.vl-default-label{font-size:13px;color:var(--text-primary, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vl-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--text-secondary, #64748b);font-size:14px}.vl-empty-icon{font-size:36px;opacity:.6}.vl-footer{padding:8px 16px;background:var(--bg-secondary, #f8fafc);border:1px solid var(--border-color, #e2e8f0);border-top:none;border-radius:0 0 10px 10px;font-size:12px;color:var(--text-secondary, #64748b)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1499
|
+
}
|
|
1500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: VirtualListComponent, decorators: [{
|
|
1501
|
+
type: Component,
|
|
1502
|
+
args: [{ selector: 'ngx-virtual-list', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule], template: `
|
|
1503
|
+
<div
|
|
1504
|
+
#scrollContainer
|
|
1505
|
+
class="vl-container"
|
|
1506
|
+
[style.height]="containerHeight() + 'px'"
|
|
1507
|
+
(scroll)="onScroll()"
|
|
1508
|
+
>
|
|
1509
|
+
<!-- Total height spacer -->
|
|
1510
|
+
<div class="vl-spacer" [style.height]="totalHeight() + 'px'"></div>
|
|
1511
|
+
|
|
1512
|
+
<!-- Visible items absolute-positioned window -->
|
|
1513
|
+
<div
|
|
1514
|
+
class="vl-window"
|
|
1515
|
+
[style.transform]="'translateY(' + offsetY() + 'px)'"
|
|
1516
|
+
>
|
|
1517
|
+
@for (entry of visibleItems(); track entry.index) {
|
|
1518
|
+
<div
|
|
1519
|
+
class="vl-row"
|
|
1520
|
+
[class.vl-row--selected]="selectedIndex() === entry.index"
|
|
1521
|
+
[class.vl-row--striped]="striped() && entry.index % 2 !== 0"
|
|
1522
|
+
[style.height]="itemHeight() + 'px'"
|
|
1523
|
+
(click)="handleItemClick(entry.item, entry.index)"
|
|
1524
|
+
>
|
|
1525
|
+
@if (renderTemplate()) {
|
|
1526
|
+
<ng-container *ngTemplateOutlet="renderTemplate()!; context: { $implicit: entry.item, index: entry.index }"></ng-container>
|
|
1527
|
+
} @else {
|
|
1528
|
+
<span class="vl-default-label">{{ getLabel(entry.item) }}</span>
|
|
1529
|
+
}
|
|
1530
|
+
</div>
|
|
1531
|
+
}
|
|
1532
|
+
</div>
|
|
1533
|
+
|
|
1534
|
+
<!-- Empty state -->
|
|
1535
|
+
@if (items().length === 0) {
|
|
1536
|
+
<div class="vl-empty">
|
|
1537
|
+
<span class="vl-empty-icon">📋</span>
|
|
1538
|
+
<span>{{ emptyText() }}</span>
|
|
1539
|
+
</div>
|
|
1540
|
+
}
|
|
1541
|
+
</div>
|
|
1542
|
+
|
|
1543
|
+
<!-- Footer info bar -->
|
|
1544
|
+
@if (showCount()) {
|
|
1545
|
+
<div class="vl-footer">
|
|
1546
|
+
<span>Showing {{ visibleItems().length }} of {{ items().length }} items</span>
|
|
1547
|
+
</div>
|
|
1548
|
+
}
|
|
1549
|
+
`, styles: [":host{display:block;font-family:inherit}.vl-container{position:relative;overflow-y:auto;overflow-x:hidden;border:1px solid var(--border-color, #e2e8f0);border-radius:10px;background:var(--bg-primary, #ffffff);scroll-behavior:auto}.vl-container::-webkit-scrollbar{width:6px}.vl-container::-webkit-scrollbar-track{background:transparent}.vl-container::-webkit-scrollbar-thumb{background:var(--border-color, #cbd5e1);border-radius:3px}.vl-container::-webkit-scrollbar-thumb:hover{background:var(--text-secondary, #94a3b8)}.vl-spacer{position:absolute;top:0;left:0;width:1px;pointer-events:none}.vl-window{position:absolute;top:0;left:0;right:0;will-change:transform}.vl-row{display:flex;align-items:center;padding:0 16px;cursor:pointer;border-bottom:1px solid var(--border-color, #f1f5f9);transition:background-color .12s ease;box-sizing:border-box;gap:12px}.vl-row:hover{background:var(--bg-hover, rgba(79, 70, 229, .04))}.vl-row--selected{background:var(--primary-glow, rgba(79, 70, 229, .08));border-left:3px solid var(--primary-color, #4f46e5)}.vl-row--striped:not(.vl-row--selected){background:var(--bg-secondary, #f8fafc)}.vl-default-label{font-size:13px;color:var(--text-primary, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vl-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--text-secondary, #64748b);font-size:14px}.vl-empty-icon{font-size:36px;opacity:.6}.vl-footer{padding:8px 16px;background:var(--bg-secondary, #f8fafc);border:1px solid var(--border-color, #e2e8f0);border-top:none;border-radius:0 0 10px 10px;font-size:12px;color:var(--text-secondary, #64748b)}\n"] }]
|
|
1550
|
+
}], propDecorators: { scrollContainer: [{
|
|
1551
|
+
type: ViewChild,
|
|
1552
|
+
args: ['scrollContainer']
|
|
1553
|
+
}] } });
|
|
1554
|
+
|
|
1555
|
+
class ImageCompareComponent {
|
|
1556
|
+
// Inputs
|
|
1557
|
+
beforeImage = input.required();
|
|
1558
|
+
afterImage = input.required();
|
|
1559
|
+
beforeLabel = input('Before');
|
|
1560
|
+
afterLabel = input('After');
|
|
1561
|
+
startOffset = input(50);
|
|
1562
|
+
orientation = input('horizontal');
|
|
1563
|
+
theme = input('light');
|
|
1564
|
+
id = input('ngx-img-compare-' + Math.random().toString(36).substring(2, 9));
|
|
1565
|
+
// Internal Signals
|
|
1566
|
+
sliderPos = signal(50);
|
|
1567
|
+
isDragging = signal(false);
|
|
1568
|
+
// Computed clip-path style based on slide percent
|
|
1569
|
+
clipPathStyle = computed(() => {
|
|
1570
|
+
const pos = this.sliderPos();
|
|
1571
|
+
if (this.orientation() === 'horizontal') {
|
|
1572
|
+
return `inset(0 ${100 - pos}% 0 0)`;
|
|
1573
|
+
}
|
|
1574
|
+
else {
|
|
1575
|
+
return `inset(0 0 ${100 - pos}% 0)`;
|
|
1576
|
+
}
|
|
1577
|
+
});
|
|
1578
|
+
ngOnInit() {
|
|
1579
|
+
this.sliderPos.set(Math.max(0, Math.min(100, this.startOffset())));
|
|
1580
|
+
}
|
|
1581
|
+
onDragStart(event) {
|
|
1582
|
+
event.preventDefault();
|
|
1583
|
+
this.isDragging.set(true);
|
|
1584
|
+
this.updatePositionFromEvent(event.clientX, event.clientY);
|
|
1585
|
+
}
|
|
1586
|
+
onTouchStart(event) {
|
|
1587
|
+
this.isDragging.set(true);
|
|
1588
|
+
this.updatePositionFromEvent(event.touches[0].clientX, event.touches[0].clientY);
|
|
1589
|
+
}
|
|
1590
|
+
onMouseMove(event) {
|
|
1591
|
+
if (!this.isDragging())
|
|
1592
|
+
return;
|
|
1593
|
+
this.updatePositionFromEvent(event.clientX, event.clientY);
|
|
1594
|
+
}
|
|
1595
|
+
onTouchMove(event) {
|
|
1596
|
+
if (!this.isDragging())
|
|
1597
|
+
return;
|
|
1598
|
+
this.updatePositionFromEvent(event.touches[0].clientX, event.touches[0].clientY);
|
|
1599
|
+
}
|
|
1600
|
+
onDragEnd() {
|
|
1601
|
+
this.isDragging.set(false);
|
|
1602
|
+
}
|
|
1603
|
+
updatePositionFromEvent(clientX, clientY) {
|
|
1604
|
+
const host = document.getElementById(this.id());
|
|
1605
|
+
if (!host)
|
|
1606
|
+
return;
|
|
1607
|
+
const rect = host.getBoundingClientRect();
|
|
1608
|
+
this.updateSliderPosition(clientX, clientY, rect);
|
|
1609
|
+
}
|
|
1610
|
+
updateSliderPosition(clientX, clientY, rect) {
|
|
1611
|
+
let pos = 50;
|
|
1612
|
+
if (this.orientation() === 'horizontal') {
|
|
1613
|
+
const x = clientX - rect.left;
|
|
1614
|
+
pos = (x / rect.width) * 100;
|
|
1615
|
+
}
|
|
1616
|
+
else {
|
|
1617
|
+
const y = clientY - rect.top;
|
|
1618
|
+
pos = (y / rect.height) * 100;
|
|
1619
|
+
}
|
|
1620
|
+
this.sliderPos.set(Math.max(0, Math.min(100, pos)));
|
|
1621
|
+
}
|
|
1622
|
+
onKeyDown(event) {
|
|
1623
|
+
if (event.key === 'ArrowLeft' || event.key === 'ArrowUp') {
|
|
1624
|
+
this.sliderPos.set(Math.max(0, this.sliderPos() - 2));
|
|
1625
|
+
event.preventDefault();
|
|
1626
|
+
}
|
|
1627
|
+
else if (event.key === 'ArrowRight' || event.key === 'ArrowDown') {
|
|
1628
|
+
this.sliderPos.set(Math.min(100, this.sliderPos() + 2));
|
|
1629
|
+
event.preventDefault();
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ImageCompareComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1633
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: ImageCompareComponent, isStandalone: true, selector: "ngx-image-compare", inputs: { beforeImage: { classPropertyName: "beforeImage", publicName: "beforeImage", isSignal: true, isRequired: true, transformFunction: null }, afterImage: { classPropertyName: "afterImage", publicName: "afterImage", isSignal: true, isRequired: true, transformFunction: null }, beforeLabel: { classPropertyName: "beforeLabel", publicName: "beforeLabel", isSignal: true, isRequired: false, transformFunction: null }, afterLabel: { classPropertyName: "afterLabel", publicName: "afterLabel", isSignal: true, isRequired: false, transformFunction: null }, startOffset: { classPropertyName: "startOffset", publicName: "startOffset", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mousedown": "onDragStart($event)", "touchstart": "onTouchStart($event)", "document:mousemove": "onMouseMove($event)", "document:touchmove": "onTouchMove($event)", "document:mouseup": "onDragEnd()", "document:touchend": "onDragEnd()" } }, ngImport: i0, template: `
|
|
1634
|
+
<div
|
|
1635
|
+
class="ngx-image-compare"
|
|
1636
|
+
[class.dark]="theme() === 'dark'"
|
|
1637
|
+
[class.dragging]="isDragging()"
|
|
1638
|
+
[attr.id]="id()"
|
|
1639
|
+
tabindex="0"
|
|
1640
|
+
(keydown)="onKeyDown($event)"
|
|
1641
|
+
aria-label="Image comparison slider"
|
|
1642
|
+
>
|
|
1643
|
+
<!-- After Image (Background layer) -->
|
|
1644
|
+
<div class="ngx-image-compare__layer after">
|
|
1645
|
+
<img [src]="afterImage()" class="ngx-image-compare__image" alt="After image" />
|
|
1646
|
+
@if (afterLabel()) {
|
|
1647
|
+
<div class="ngx-image-compare__label after">{{ afterLabel() }}</div>
|
|
1648
|
+
}
|
|
1649
|
+
</div>
|
|
1650
|
+
|
|
1651
|
+
<!-- Before Image (Overlay layer clipped dynamically) -->
|
|
1652
|
+
<div
|
|
1653
|
+
class="ngx-image-compare__layer before"
|
|
1654
|
+
[style.clipPath]="clipPathStyle()"
|
|
1655
|
+
>
|
|
1656
|
+
<img [src]="beforeImage()" class="ngx-image-compare__image" alt="Before image" />
|
|
1657
|
+
@if (beforeLabel()) {
|
|
1658
|
+
<div class="ngx-image-compare__label before">{{ beforeLabel() }}</div>
|
|
1659
|
+
}
|
|
1660
|
+
</div>
|
|
1661
|
+
|
|
1662
|
+
<!-- Drag Divider Handle -->
|
|
1663
|
+
<div
|
|
1664
|
+
class="ngx-image-compare__handle"
|
|
1665
|
+
[class.vertical]="orientation() === 'vertical'"
|
|
1666
|
+
[style.left.%]="orientation() === 'horizontal' ? sliderPos() : 50"
|
|
1667
|
+
[style.top.%]="orientation() === 'vertical' ? sliderPos() : 50"
|
|
1668
|
+
>
|
|
1669
|
+
<div class="ngx-image-compare__line"></div>
|
|
1670
|
+
<div class="ngx-image-compare__circle">
|
|
1671
|
+
<svg class="handle-arrow-icon" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.5">
|
|
1672
|
+
@if (orientation() === 'horizontal') {
|
|
1673
|
+
<polyline points="8 18 2 12 8 6" />
|
|
1674
|
+
<polyline points="16 6 22 12 16 18" />
|
|
1675
|
+
} @else {
|
|
1676
|
+
<polyline points="18 8 12 2 6 8" />
|
|
1677
|
+
<polyline points="6 16 12 22 18 16" />
|
|
1678
|
+
}
|
|
1679
|
+
</svg>
|
|
1680
|
+
</div>
|
|
1681
|
+
<div class="ngx-image-compare__line"></div>
|
|
1682
|
+
</div>
|
|
1683
|
+
</div>
|
|
1684
|
+
`, isInline: true, styles: [":host{display:block;width:100%;user-select:none;-webkit-user-select:none}.ngx-image-compare{position:relative;width:100%;height:450px;border-radius:16px;overflow:hidden;cursor:ew-resize;background:#f1f5f9;box-shadow:0 10px 25px -5px #0000000d,0 8px 10px -6px #0000000d;border:1px solid rgba(0,0,0,.04);font-family:var(--ngx-font-family, system-ui, sans-serif);transition:box-shadow .2s ease}.ngx-image-compare:focus-visible{outline:none;box-shadow:0 0 0 3px var(--primary-color, #3b82f6)}.ngx-image-compare.dragging{cursor:ew-resize!important}.ngx-image-compare.dark{background:#0f172a;border-color:#ffffff0f}.ngx-image-compare__layer{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.ngx-image-compare__layer.before{z-index:2}.ngx-image-compare__layer.after{z-index:1}.ngx-image-compare__image{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}.ngx-image-compare__label{position:absolute;bottom:20px;padding:6px 12px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;border-radius:6px;background:#ffffffa6;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.4);color:#0f172a;z-index:5}.ngx-image-compare__label.before{left:20px}.ngx-image-compare__label.after{right:20px}.dark .ngx-image-compare__label{background:#0f172aa6;border-color:#ffffff14;color:#f1f5f9}.ngx-image-compare__handle{position:absolute;z-index:10;display:flex;align-items:center;justify-content:center;pointer-events:none;transition:box-shadow .2s ease}.ngx-image-compare__handle:not(.vertical){top:0;bottom:0;width:2px;flex-direction:column;transform:translate(-50%)}.ngx-image-compare__handle.vertical{left:0;right:0;height:2px;flex-direction:row;transform:translateY(-50%);cursor:ns-resize}.ngx-image-compare:has(.ngx-image-compare__handle.vertical){cursor:ns-resize}.ngx-image-compare__line{flex-grow:1;background:#ffffffe6;box-shadow:0 0 6px #0003}.ngx-image-compare__handle:not(.vertical) .ngx-image-compare__line{width:2px}.ngx-image-compare__handle.vertical .ngx-image-compare__line{height:2px}.ngx-image-compare__circle{width:36px;height:36px;border-radius:50%;background:#ffffffd9;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:2px solid #ffffff;color:#0f172a;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 10px #00000026,inset 0 1px #fffc;z-index:11;transition:all .2s cubic-bezier(.2,.8,.2,1)}.ngx-image-compare:hover .ngx-image-compare__circle{transform:scale(1.08);box-shadow:0 0 0 4px #ffffff40,0 8px 16px #0003}.ngx-image-compare.dragging .ngx-image-compare__circle{transform:scale(1.15);background:var(--primary-color, #3b82f6);border-color:var(--primary-color, #3b82f6);color:#fff;box-shadow:0 0 0 6px #3b82f640,0 12px 24px #00000040}.dark .ngx-image-compare__circle{background:#0f172ad9;border-color:#ffffff1a;color:#cbd5e1}.dark .ngx-image-compare.dragging .ngx-image-compare__circle{background:var(--primary-color, #3b82f6);border-color:var(--primary-color, #3b82f6);color:#fff}.handle-arrow-icon{transition:transform .2s ease}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1685
|
+
}
|
|
1686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ImageCompareComponent, decorators: [{
|
|
1687
|
+
type: Component,
|
|
1688
|
+
args: [{ selector: 'ngx-image-compare', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1689
|
+
<div
|
|
1690
|
+
class="ngx-image-compare"
|
|
1691
|
+
[class.dark]="theme() === 'dark'"
|
|
1692
|
+
[class.dragging]="isDragging()"
|
|
1693
|
+
[attr.id]="id()"
|
|
1694
|
+
tabindex="0"
|
|
1695
|
+
(keydown)="onKeyDown($event)"
|
|
1696
|
+
aria-label="Image comparison slider"
|
|
1697
|
+
>
|
|
1698
|
+
<!-- After Image (Background layer) -->
|
|
1699
|
+
<div class="ngx-image-compare__layer after">
|
|
1700
|
+
<img [src]="afterImage()" class="ngx-image-compare__image" alt="After image" />
|
|
1701
|
+
@if (afterLabel()) {
|
|
1702
|
+
<div class="ngx-image-compare__label after">{{ afterLabel() }}</div>
|
|
1703
|
+
}
|
|
1704
|
+
</div>
|
|
1705
|
+
|
|
1706
|
+
<!-- Before Image (Overlay layer clipped dynamically) -->
|
|
1707
|
+
<div
|
|
1708
|
+
class="ngx-image-compare__layer before"
|
|
1709
|
+
[style.clipPath]="clipPathStyle()"
|
|
1710
|
+
>
|
|
1711
|
+
<img [src]="beforeImage()" class="ngx-image-compare__image" alt="Before image" />
|
|
1712
|
+
@if (beforeLabel()) {
|
|
1713
|
+
<div class="ngx-image-compare__label before">{{ beforeLabel() }}</div>
|
|
1714
|
+
}
|
|
1715
|
+
</div>
|
|
1716
|
+
|
|
1717
|
+
<!-- Drag Divider Handle -->
|
|
1718
|
+
<div
|
|
1719
|
+
class="ngx-image-compare__handle"
|
|
1720
|
+
[class.vertical]="orientation() === 'vertical'"
|
|
1721
|
+
[style.left.%]="orientation() === 'horizontal' ? sliderPos() : 50"
|
|
1722
|
+
[style.top.%]="orientation() === 'vertical' ? sliderPos() : 50"
|
|
1723
|
+
>
|
|
1724
|
+
<div class="ngx-image-compare__line"></div>
|
|
1725
|
+
<div class="ngx-image-compare__circle">
|
|
1726
|
+
<svg class="handle-arrow-icon" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.5">
|
|
1727
|
+
@if (orientation() === 'horizontal') {
|
|
1728
|
+
<polyline points="8 18 2 12 8 6" />
|
|
1729
|
+
<polyline points="16 6 22 12 16 18" />
|
|
1730
|
+
} @else {
|
|
1731
|
+
<polyline points="18 8 12 2 6 8" />
|
|
1732
|
+
<polyline points="6 16 12 22 18 16" />
|
|
1733
|
+
}
|
|
1734
|
+
</svg>
|
|
1735
|
+
</div>
|
|
1736
|
+
<div class="ngx-image-compare__line"></div>
|
|
1737
|
+
</div>
|
|
1738
|
+
</div>
|
|
1739
|
+
`, styles: [":host{display:block;width:100%;user-select:none;-webkit-user-select:none}.ngx-image-compare{position:relative;width:100%;height:450px;border-radius:16px;overflow:hidden;cursor:ew-resize;background:#f1f5f9;box-shadow:0 10px 25px -5px #0000000d,0 8px 10px -6px #0000000d;border:1px solid rgba(0,0,0,.04);font-family:var(--ngx-font-family, system-ui, sans-serif);transition:box-shadow .2s ease}.ngx-image-compare:focus-visible{outline:none;box-shadow:0 0 0 3px var(--primary-color, #3b82f6)}.ngx-image-compare.dragging{cursor:ew-resize!important}.ngx-image-compare.dark{background:#0f172a;border-color:#ffffff0f}.ngx-image-compare__layer{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.ngx-image-compare__layer.before{z-index:2}.ngx-image-compare__layer.after{z-index:1}.ngx-image-compare__image{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}.ngx-image-compare__label{position:absolute;bottom:20px;padding:6px 12px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;border-radius:6px;background:#ffffffa6;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.4);color:#0f172a;z-index:5}.ngx-image-compare__label.before{left:20px}.ngx-image-compare__label.after{right:20px}.dark .ngx-image-compare__label{background:#0f172aa6;border-color:#ffffff14;color:#f1f5f9}.ngx-image-compare__handle{position:absolute;z-index:10;display:flex;align-items:center;justify-content:center;pointer-events:none;transition:box-shadow .2s ease}.ngx-image-compare__handle:not(.vertical){top:0;bottom:0;width:2px;flex-direction:column;transform:translate(-50%)}.ngx-image-compare__handle.vertical{left:0;right:0;height:2px;flex-direction:row;transform:translateY(-50%);cursor:ns-resize}.ngx-image-compare:has(.ngx-image-compare__handle.vertical){cursor:ns-resize}.ngx-image-compare__line{flex-grow:1;background:#ffffffe6;box-shadow:0 0 6px #0003}.ngx-image-compare__handle:not(.vertical) .ngx-image-compare__line{width:2px}.ngx-image-compare__handle.vertical .ngx-image-compare__line{height:2px}.ngx-image-compare__circle{width:36px;height:36px;border-radius:50%;background:#ffffffd9;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:2px solid #ffffff;color:#0f172a;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 10px #00000026,inset 0 1px #fffc;z-index:11;transition:all .2s cubic-bezier(.2,.8,.2,1)}.ngx-image-compare:hover .ngx-image-compare__circle{transform:scale(1.08);box-shadow:0 0 0 4px #ffffff40,0 8px 16px #0003}.ngx-image-compare.dragging .ngx-image-compare__circle{transform:scale(1.15);background:var(--primary-color, #3b82f6);border-color:var(--primary-color, #3b82f6);color:#fff;box-shadow:0 0 0 6px #3b82f640,0 12px 24px #00000040}.dark .ngx-image-compare__circle{background:#0f172ad9;border-color:#ffffff1a;color:#cbd5e1}.dark .ngx-image-compare.dragging .ngx-image-compare__circle{background:var(--primary-color, #3b82f6);border-color:var(--primary-color, #3b82f6);color:#fff}.handle-arrow-icon{transition:transform .2s ease}\n"] }]
|
|
1740
|
+
}], propDecorators: { onDragStart: [{
|
|
1741
|
+
type: HostListener,
|
|
1742
|
+
args: ['mousedown', ['$event']]
|
|
1743
|
+
}], onTouchStart: [{
|
|
1744
|
+
type: HostListener,
|
|
1745
|
+
args: ['touchstart', ['$event']]
|
|
1746
|
+
}], onMouseMove: [{
|
|
1747
|
+
type: HostListener,
|
|
1748
|
+
args: ['document:mousemove', ['$event']]
|
|
1749
|
+
}], onTouchMove: [{
|
|
1750
|
+
type: HostListener,
|
|
1751
|
+
args: ['document:touchmove', ['$event']]
|
|
1752
|
+
}], onDragEnd: [{
|
|
1753
|
+
type: HostListener,
|
|
1754
|
+
args: ['document:mouseup']
|
|
1755
|
+
}, {
|
|
1756
|
+
type: HostListener,
|
|
1757
|
+
args: ['document:touchend']
|
|
1758
|
+
}] } });
|
|
1759
|
+
|
|
1760
|
+
class KeyValueListComponent {
|
|
1761
|
+
// Inputs
|
|
1762
|
+
items = input([]);
|
|
1763
|
+
layout = input('horizontal');
|
|
1764
|
+
striped = input(false);
|
|
1765
|
+
searchable = input(false);
|
|
1766
|
+
theme = input('light');
|
|
1767
|
+
id = input('ngx-kv-list-' + Math.random().toString(36).substring(2, 9));
|
|
1768
|
+
// Outputs
|
|
1769
|
+
valueClick = output();
|
|
1770
|
+
// Internal signals
|
|
1771
|
+
searchTerm = signal('');
|
|
1772
|
+
copiedKey = signal(null);
|
|
1773
|
+
collapsedGroups = signal(new Set());
|
|
1774
|
+
// Search filtering
|
|
1775
|
+
filteredItems = computed(() => {
|
|
1776
|
+
const term = this.searchTerm().toLowerCase().trim();
|
|
1777
|
+
const rawItems = this.items() || [];
|
|
1778
|
+
if (!term)
|
|
1779
|
+
return rawItems;
|
|
1780
|
+
return rawItems.filter(item => item.label.toLowerCase().includes(term) ||
|
|
1781
|
+
String(item.value).toLowerCase().includes(term));
|
|
1782
|
+
});
|
|
1783
|
+
// Group calculations
|
|
1784
|
+
groupedFilteredItems = computed(() => {
|
|
1785
|
+
const list = this.filteredItems();
|
|
1786
|
+
const groups = {};
|
|
1787
|
+
list.forEach(item => {
|
|
1788
|
+
const gName = item.group || '';
|
|
1789
|
+
if (!groups[gName]) {
|
|
1790
|
+
groups[gName] = [];
|
|
1791
|
+
}
|
|
1792
|
+
groups[gName].push(item);
|
|
1793
|
+
});
|
|
1794
|
+
return groups;
|
|
1795
|
+
});
|
|
1796
|
+
groupKeys = computed(() => {
|
|
1797
|
+
return Object.keys(this.groupedFilteredItems());
|
|
1798
|
+
});
|
|
1799
|
+
toggleGroup(group) {
|
|
1800
|
+
this.collapsedGroups.update(set => {
|
|
1801
|
+
const next = new Set(set);
|
|
1802
|
+
if (next.has(group)) {
|
|
1803
|
+
next.delete(group);
|
|
1804
|
+
}
|
|
1805
|
+
else {
|
|
1806
|
+
next.add(group);
|
|
1807
|
+
}
|
|
1808
|
+
return next;
|
|
1809
|
+
});
|
|
1810
|
+
}
|
|
1811
|
+
isGroupExpanded(group) {
|
|
1812
|
+
return !this.collapsedGroups().has(group);
|
|
1813
|
+
}
|
|
1814
|
+
copyValue(val, key, event) {
|
|
1815
|
+
event.stopPropagation(); // Avoid triggering row clicks
|
|
1816
|
+
const textStr = String(val);
|
|
1817
|
+
navigator.clipboard.writeText(textStr).then(() => {
|
|
1818
|
+
this.copiedKey.set(key);
|
|
1819
|
+
setTimeout(() => {
|
|
1820
|
+
if (this.copiedKey() === key) {
|
|
1821
|
+
this.copiedKey.set(null);
|
|
1822
|
+
}
|
|
1823
|
+
}, 2000);
|
|
1824
|
+
});
|
|
1825
|
+
}
|
|
1826
|
+
onRowClick(item) {
|
|
1827
|
+
this.valueClick.emit({ key: item.key, value: item.value });
|
|
1828
|
+
}
|
|
1829
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: KeyValueListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1830
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: KeyValueListComponent, isStandalone: true, selector: "ngx-key-value-list", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueClick: "valueClick" }, ngImport: i0, template: `
|
|
1831
|
+
<div
|
|
1832
|
+
class="ngx-key-value-list"
|
|
1833
|
+
[class.dark]="theme() === 'dark'"
|
|
1834
|
+
[class.striped]="striped()"
|
|
1835
|
+
[class.layout-vertical]="layout() === 'vertical'"
|
|
1836
|
+
>
|
|
1837
|
+
<!-- Search Input Header -->
|
|
1838
|
+
@if (searchable()) {
|
|
1839
|
+
<div class="ngx-key-value-list__search-wrap">
|
|
1840
|
+
<svg class="search-icon" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
|
|
1841
|
+
<circle cx="11" cy="11" r="8"/>
|
|
1842
|
+
<line x1="21" y1="21" x2="16.65" y2="16.65"/>
|
|
1843
|
+
</svg>
|
|
1844
|
+
<input
|
|
1845
|
+
type="text"
|
|
1846
|
+
class="ngx-key-value-list__search-input"
|
|
1847
|
+
placeholder="Search properties..."
|
|
1848
|
+
[ngModel]="searchTerm()"
|
|
1849
|
+
(ngModelChange)="searchTerm.set($event)"
|
|
1850
|
+
/>
|
|
1851
|
+
@if (searchTerm()) {
|
|
1852
|
+
<button class="clear-search" (click)="searchTerm.set('')" aria-label="Clear search">✕</button>
|
|
1853
|
+
}
|
|
1854
|
+
</div>
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
<!-- Groups List -->
|
|
1858
|
+
@if (groupKeys().length === 0) {
|
|
1859
|
+
<div class="ngx-key-value-list__empty">No properties match search filter</div>
|
|
1860
|
+
} @else {
|
|
1861
|
+
<div class="ngx-key-value-list__groups">
|
|
1862
|
+
@for (group of groupKeys(); track group) {
|
|
1863
|
+
<div class="ngx-key-value-list__group-card" [class.collapsed]="!isGroupExpanded(group)">
|
|
1864
|
+
<!-- Group Header (Only show if group is not empty string) -->
|
|
1865
|
+
@if (group) {
|
|
1866
|
+
<div
|
|
1867
|
+
class="ngx-key-value-list__group-header"
|
|
1868
|
+
(click)="toggleGroup(group)"
|
|
1869
|
+
role="button"
|
|
1870
|
+
tabindex="0"
|
|
1871
|
+
(keydown.enter)="toggleGroup(group)"
|
|
1872
|
+
>
|
|
1873
|
+
<span class="group-title">{{ group }}</span>
|
|
1874
|
+
<span class="group-count">({{ groupedFilteredItems()[group].length }})</span>
|
|
1875
|
+
<svg class="chevron-icon" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
|
|
1876
|
+
<polyline points="6 9 12 15 18 9"></polyline>
|
|
1877
|
+
</svg>
|
|
1878
|
+
</div>
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
<!-- Group Rows -->
|
|
1882
|
+
@if (isGroupExpanded(group)) {
|
|
1883
|
+
<div class="ngx-key-value-list__rows">
|
|
1884
|
+
@for (item of groupedFilteredItems()[group]; track item.key) {
|
|
1885
|
+
<div
|
|
1886
|
+
class="ngx-key-value-list__row"
|
|
1887
|
+
(click)="onRowClick(item)"
|
|
1888
|
+
>
|
|
1889
|
+
<!-- Key Label -->
|
|
1890
|
+
<div class="ngx-key-value-list__label">{{ item.label }}</div>
|
|
1891
|
+
|
|
1892
|
+
<!-- Value Renderer -->
|
|
1893
|
+
<div class="ngx-key-value-list__value-container">
|
|
1894
|
+
<div class="ngx-key-value-list__value-wrapper">
|
|
1895
|
+
@switch (item.type) {
|
|
1896
|
+
@case ('badge') {
|
|
1897
|
+
<span
|
|
1898
|
+
class="ngx-key-value-list__badge"
|
|
1899
|
+
[class]="item.badgeVariant || 'default'"
|
|
1900
|
+
>
|
|
1901
|
+
{{ item.value }}
|
|
1902
|
+
</span>
|
|
1903
|
+
}
|
|
1904
|
+
@case ('code') {
|
|
1905
|
+
<code class="ngx-key-value-list__code">{{ item.value }}</code>
|
|
1906
|
+
}
|
|
1907
|
+
@default {
|
|
1908
|
+
<span class="ngx-key-value-list__text">{{ item.value }}</span>
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
<!-- Copy Action Button -->
|
|
1913
|
+
@if (item.copyable) {
|
|
1914
|
+
<button
|
|
1915
|
+
class="ngx-key-value-list__copy-btn"
|
|
1916
|
+
(click)="copyValue(item.value, item.key, $event)"
|
|
1917
|
+
[class.copied]="copiedKey() === item.key"
|
|
1918
|
+
[attr.aria-label]="'Copy ' + item.label"
|
|
1919
|
+
>
|
|
1920
|
+
@if (copiedKey() === item.key) {
|
|
1921
|
+
<span class="copied-tooltip">Copied!</span>
|
|
1922
|
+
<svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.5">
|
|
1923
|
+
<polyline points="20 6 9 17 4 12"></polyline>
|
|
1924
|
+
</svg>
|
|
1925
|
+
} @else {
|
|
1926
|
+
<svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2">
|
|
1927
|
+
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
|
|
1928
|
+
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
|
|
1929
|
+
</svg>
|
|
1930
|
+
}
|
|
1931
|
+
</button>
|
|
1932
|
+
}
|
|
1933
|
+
</div>
|
|
1934
|
+
</div>
|
|
1935
|
+
</div>
|
|
1936
|
+
}
|
|
1937
|
+
</div>
|
|
1938
|
+
}
|
|
1939
|
+
</div>
|
|
1940
|
+
}
|
|
1941
|
+
</div>
|
|
1942
|
+
}
|
|
1943
|
+
</div>
|
|
1944
|
+
`, isInline: true, styles: [":host{display:block;width:100%}.ngx-key-value-list{width:100%;font-family:var(--ngx-font-family, system-ui, sans-serif);color:#334155}.ngx-key-value-list.dark{color:#cbd5e1}.ngx-key-value-list__search-wrap{position:relative;width:100%;margin-bottom:16px;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:#94a3b8}.ngx-key-value-list__search-input{width:100%;padding:8px 36px;font-size:13px;border-radius:8px;border:1px solid #cbd5e1;background:#ffffffb3;outline:none;transition:all .2s ease}.ngx-key-value-list__search-input:focus{border-color:var(--primary-color, #3b82f6);box-shadow:0 0 0 3px #3b82f61a}.dark .ngx-key-value-list__search-input{border-color:#ffffff14;background:#0f172a66;color:#f1f5f9}.clear-search{position:absolute;right:12px;border:none;background:transparent;color:#94a3b8;cursor:pointer;font-size:11px;padding:4px}.ngx-key-value-list__empty{padding:24px;text-align:center;font-size:13px;color:#64748b;background:#00000005;border-radius:8px}.dark .ngx-key-value-list__empty{color:#94a3b8;background:#ffffff05}.ngx-key-value-list__groups{display:flex;flex-direction:column;gap:12px}.ngx-key-value-list__group-card{border-radius:12px;background:#fff6;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(0,0,0,.04);box-shadow:0 1px 3px #00000005;overflow:hidden;transition:all .2s ease}.dark .ngx-key-value-list__group-card{background:#1e203059;border-color:#ffffff0d}.ngx-key-value-list__group-header{padding:12px 18px;display:flex;align-items:center;gap:8px;cursor:pointer;background:#00000005;border-bottom:1px solid rgba(0,0,0,.03);-webkit-user-select:none;user-select:none;outline:none}.dark .ngx-key-value-list__group-header{background:#ffffff05;border-bottom-color:#ffffff08}.group-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#475569}.dark .group-title{color:#94a3b8}.group-count{font-size:11px;color:#94a3b8}.chevron-icon{margin-left:auto;color:#94a3b8;transition:transform .2s ease}.collapsed .chevron-icon{transform:rotate(-90deg)}.collapsed .ngx-key-value-list__group-header{border-bottom-color:transparent}.ngx-key-value-list__rows{display:flex;flex-direction:column}.ngx-key-value-list__row{display:flex;align-items:center;padding:10px 18px;border-bottom:1px solid rgba(0,0,0,.03);font-size:13px;min-height:42px;box-sizing:border-box}.ngx-key-value-list__row:last-child{border-bottom:none}.dark .ngx-key-value-list__row{border-bottom-color:#ffffff08}.ngx-key-value-list__label{width:35%;font-weight:600;color:#64748b;padding-right:16px;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dark .ngx-key-value-list__label{color:#94a3b8}.ngx-key-value-list__value-container{width:65%;display:flex;align-items:center}.ngx-key-value-list__value-wrapper{display:flex;align-items:center;gap:8px;max-width:100%}.ngx-key-value-list__text{color:#0f172a;font-weight:500}.dark .ngx-key-value-list__text{color:#f1f5f9}.striped .ngx-key-value-list__row:nth-child(2n){background:#00000004}.dark.striped .ngx-key-value-list__row:nth-child(2n){background:#ffffff03}.ngx-key-value-list__badge{display:inline-flex;font-size:10px;font-weight:700;padding:2px 8px;border-radius:4px;text-transform:capitalize}.ngx-key-value-list__badge.default{background:#f1f5f9;color:#475569}.ngx-key-value-list__badge.success{background:#10b9811a;color:#10b981}.ngx-key-value-list__badge.danger{background:#ef44441a;color:#ef4444}.ngx-key-value-list__badge.warning{background:#f59e0b1a;color:#f59e0b}.ngx-key-value-list__badge.info{background:#3b82f61a;color:#3b82f6}.dark .ngx-key-value-list__badge.default{background:#ffffff14;color:#cbd5e1}.ngx-key-value-list__code{font-family:monospace;font-size:12px;background:#f1f5f9;padding:2px 6px;border-radius:4px;color:#e11d48;border:1px solid rgba(0,0,0,.04)}.dark .ngx-key-value-list__code{background:#0f172a80;border-color:#ffffff0a;color:#f43f5e}.ngx-key-value-list__copy-btn{position:relative;border:none;background:transparent;color:#94a3b8;padding:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s ease}.ngx-key-value-list__copy-btn:hover{background:#0000000a;color:#475569}.ngx-key-value-list__copy-btn.copied{color:#10b981!important}.dark .ngx-key-value-list__copy-btn:hover{background:#ffffff0d;color:#e2e8f0}.copied-tooltip{position:absolute;bottom:22px;left:50%;transform:translate(-50%);font-size:10px;background:#0f172a;color:#fff;padding:2px 6px;border-radius:4px;font-family:var(--ngx-font-family, system-ui, sans-serif);white-space:nowrap;pointer-events:none;animation:tooltipPop .15s ease-out forwards}@keyframes tooltipPop{0%{opacity:0;transform:translate(-50%) translateY(4px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.layout-vertical .ngx-key-value-list__row{flex-direction:column;align-items:flex-start;gap:4px;padding:12px 18px}.layout-vertical .ngx-key-value-list__label{width:100%;padding-right:0}.layout-vertical .ngx-key-value-list__value-container{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1945
|
+
}
|
|
1946
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: KeyValueListComponent, decorators: [{
|
|
1947
|
+
type: Component,
|
|
1948
|
+
args: [{ selector: 'ngx-key-value-list', standalone: true, imports: [CommonModule, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1949
|
+
<div
|
|
1950
|
+
class="ngx-key-value-list"
|
|
1951
|
+
[class.dark]="theme() === 'dark'"
|
|
1952
|
+
[class.striped]="striped()"
|
|
1953
|
+
[class.layout-vertical]="layout() === 'vertical'"
|
|
1954
|
+
>
|
|
1955
|
+
<!-- Search Input Header -->
|
|
1956
|
+
@if (searchable()) {
|
|
1957
|
+
<div class="ngx-key-value-list__search-wrap">
|
|
1958
|
+
<svg class="search-icon" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
|
|
1959
|
+
<circle cx="11" cy="11" r="8"/>
|
|
1960
|
+
<line x1="21" y1="21" x2="16.65" y2="16.65"/>
|
|
1961
|
+
</svg>
|
|
1962
|
+
<input
|
|
1963
|
+
type="text"
|
|
1964
|
+
class="ngx-key-value-list__search-input"
|
|
1965
|
+
placeholder="Search properties..."
|
|
1966
|
+
[ngModel]="searchTerm()"
|
|
1967
|
+
(ngModelChange)="searchTerm.set($event)"
|
|
1968
|
+
/>
|
|
1969
|
+
@if (searchTerm()) {
|
|
1970
|
+
<button class="clear-search" (click)="searchTerm.set('')" aria-label="Clear search">✕</button>
|
|
1971
|
+
}
|
|
1972
|
+
</div>
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
<!-- Groups List -->
|
|
1976
|
+
@if (groupKeys().length === 0) {
|
|
1977
|
+
<div class="ngx-key-value-list__empty">No properties match search filter</div>
|
|
1978
|
+
} @else {
|
|
1979
|
+
<div class="ngx-key-value-list__groups">
|
|
1980
|
+
@for (group of groupKeys(); track group) {
|
|
1981
|
+
<div class="ngx-key-value-list__group-card" [class.collapsed]="!isGroupExpanded(group)">
|
|
1982
|
+
<!-- Group Header (Only show if group is not empty string) -->
|
|
1983
|
+
@if (group) {
|
|
1984
|
+
<div
|
|
1985
|
+
class="ngx-key-value-list__group-header"
|
|
1986
|
+
(click)="toggleGroup(group)"
|
|
1987
|
+
role="button"
|
|
1988
|
+
tabindex="0"
|
|
1989
|
+
(keydown.enter)="toggleGroup(group)"
|
|
1990
|
+
>
|
|
1991
|
+
<span class="group-title">{{ group }}</span>
|
|
1992
|
+
<span class="group-count">({{ groupedFilteredItems()[group].length }})</span>
|
|
1993
|
+
<svg class="chevron-icon" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
|
|
1994
|
+
<polyline points="6 9 12 15 18 9"></polyline>
|
|
1995
|
+
</svg>
|
|
1996
|
+
</div>
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
<!-- Group Rows -->
|
|
2000
|
+
@if (isGroupExpanded(group)) {
|
|
2001
|
+
<div class="ngx-key-value-list__rows">
|
|
2002
|
+
@for (item of groupedFilteredItems()[group]; track item.key) {
|
|
2003
|
+
<div
|
|
2004
|
+
class="ngx-key-value-list__row"
|
|
2005
|
+
(click)="onRowClick(item)"
|
|
2006
|
+
>
|
|
2007
|
+
<!-- Key Label -->
|
|
2008
|
+
<div class="ngx-key-value-list__label">{{ item.label }}</div>
|
|
2009
|
+
|
|
2010
|
+
<!-- Value Renderer -->
|
|
2011
|
+
<div class="ngx-key-value-list__value-container">
|
|
2012
|
+
<div class="ngx-key-value-list__value-wrapper">
|
|
2013
|
+
@switch (item.type) {
|
|
2014
|
+
@case ('badge') {
|
|
2015
|
+
<span
|
|
2016
|
+
class="ngx-key-value-list__badge"
|
|
2017
|
+
[class]="item.badgeVariant || 'default'"
|
|
2018
|
+
>
|
|
2019
|
+
{{ item.value }}
|
|
2020
|
+
</span>
|
|
2021
|
+
}
|
|
2022
|
+
@case ('code') {
|
|
2023
|
+
<code class="ngx-key-value-list__code">{{ item.value }}</code>
|
|
2024
|
+
}
|
|
2025
|
+
@default {
|
|
2026
|
+
<span class="ngx-key-value-list__text">{{ item.value }}</span>
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
<!-- Copy Action Button -->
|
|
2031
|
+
@if (item.copyable) {
|
|
2032
|
+
<button
|
|
2033
|
+
class="ngx-key-value-list__copy-btn"
|
|
2034
|
+
(click)="copyValue(item.value, item.key, $event)"
|
|
2035
|
+
[class.copied]="copiedKey() === item.key"
|
|
2036
|
+
[attr.aria-label]="'Copy ' + item.label"
|
|
2037
|
+
>
|
|
2038
|
+
@if (copiedKey() === item.key) {
|
|
2039
|
+
<span class="copied-tooltip">Copied!</span>
|
|
2040
|
+
<svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.5">
|
|
2041
|
+
<polyline points="20 6 9 17 4 12"></polyline>
|
|
2042
|
+
</svg>
|
|
2043
|
+
} @else {
|
|
2044
|
+
<svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2">
|
|
2045
|
+
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
|
|
2046
|
+
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
|
|
2047
|
+
</svg>
|
|
2048
|
+
}
|
|
2049
|
+
</button>
|
|
2050
|
+
}
|
|
2051
|
+
</div>
|
|
2052
|
+
</div>
|
|
2053
|
+
</div>
|
|
2054
|
+
}
|
|
2055
|
+
</div>
|
|
2056
|
+
}
|
|
2057
|
+
</div>
|
|
2058
|
+
}
|
|
2059
|
+
</div>
|
|
2060
|
+
}
|
|
2061
|
+
</div>
|
|
2062
|
+
`, styles: [":host{display:block;width:100%}.ngx-key-value-list{width:100%;font-family:var(--ngx-font-family, system-ui, sans-serif);color:#334155}.ngx-key-value-list.dark{color:#cbd5e1}.ngx-key-value-list__search-wrap{position:relative;width:100%;margin-bottom:16px;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:#94a3b8}.ngx-key-value-list__search-input{width:100%;padding:8px 36px;font-size:13px;border-radius:8px;border:1px solid #cbd5e1;background:#ffffffb3;outline:none;transition:all .2s ease}.ngx-key-value-list__search-input:focus{border-color:var(--primary-color, #3b82f6);box-shadow:0 0 0 3px #3b82f61a}.dark .ngx-key-value-list__search-input{border-color:#ffffff14;background:#0f172a66;color:#f1f5f9}.clear-search{position:absolute;right:12px;border:none;background:transparent;color:#94a3b8;cursor:pointer;font-size:11px;padding:4px}.ngx-key-value-list__empty{padding:24px;text-align:center;font-size:13px;color:#64748b;background:#00000005;border-radius:8px}.dark .ngx-key-value-list__empty{color:#94a3b8;background:#ffffff05}.ngx-key-value-list__groups{display:flex;flex-direction:column;gap:12px}.ngx-key-value-list__group-card{border-radius:12px;background:#fff6;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(0,0,0,.04);box-shadow:0 1px 3px #00000005;overflow:hidden;transition:all .2s ease}.dark .ngx-key-value-list__group-card{background:#1e203059;border-color:#ffffff0d}.ngx-key-value-list__group-header{padding:12px 18px;display:flex;align-items:center;gap:8px;cursor:pointer;background:#00000005;border-bottom:1px solid rgba(0,0,0,.03);-webkit-user-select:none;user-select:none;outline:none}.dark .ngx-key-value-list__group-header{background:#ffffff05;border-bottom-color:#ffffff08}.group-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#475569}.dark .group-title{color:#94a3b8}.group-count{font-size:11px;color:#94a3b8}.chevron-icon{margin-left:auto;color:#94a3b8;transition:transform .2s ease}.collapsed .chevron-icon{transform:rotate(-90deg)}.collapsed .ngx-key-value-list__group-header{border-bottom-color:transparent}.ngx-key-value-list__rows{display:flex;flex-direction:column}.ngx-key-value-list__row{display:flex;align-items:center;padding:10px 18px;border-bottom:1px solid rgba(0,0,0,.03);font-size:13px;min-height:42px;box-sizing:border-box}.ngx-key-value-list__row:last-child{border-bottom:none}.dark .ngx-key-value-list__row{border-bottom-color:#ffffff08}.ngx-key-value-list__label{width:35%;font-weight:600;color:#64748b;padding-right:16px;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dark .ngx-key-value-list__label{color:#94a3b8}.ngx-key-value-list__value-container{width:65%;display:flex;align-items:center}.ngx-key-value-list__value-wrapper{display:flex;align-items:center;gap:8px;max-width:100%}.ngx-key-value-list__text{color:#0f172a;font-weight:500}.dark .ngx-key-value-list__text{color:#f1f5f9}.striped .ngx-key-value-list__row:nth-child(2n){background:#00000004}.dark.striped .ngx-key-value-list__row:nth-child(2n){background:#ffffff03}.ngx-key-value-list__badge{display:inline-flex;font-size:10px;font-weight:700;padding:2px 8px;border-radius:4px;text-transform:capitalize}.ngx-key-value-list__badge.default{background:#f1f5f9;color:#475569}.ngx-key-value-list__badge.success{background:#10b9811a;color:#10b981}.ngx-key-value-list__badge.danger{background:#ef44441a;color:#ef4444}.ngx-key-value-list__badge.warning{background:#f59e0b1a;color:#f59e0b}.ngx-key-value-list__badge.info{background:#3b82f61a;color:#3b82f6}.dark .ngx-key-value-list__badge.default{background:#ffffff14;color:#cbd5e1}.ngx-key-value-list__code{font-family:monospace;font-size:12px;background:#f1f5f9;padding:2px 6px;border-radius:4px;color:#e11d48;border:1px solid rgba(0,0,0,.04)}.dark .ngx-key-value-list__code{background:#0f172a80;border-color:#ffffff0a;color:#f43f5e}.ngx-key-value-list__copy-btn{position:relative;border:none;background:transparent;color:#94a3b8;padding:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s ease}.ngx-key-value-list__copy-btn:hover{background:#0000000a;color:#475569}.ngx-key-value-list__copy-btn.copied{color:#10b981!important}.dark .ngx-key-value-list__copy-btn:hover{background:#ffffff0d;color:#e2e8f0}.copied-tooltip{position:absolute;bottom:22px;left:50%;transform:translate(-50%);font-size:10px;background:#0f172a;color:#fff;padding:2px 6px;border-radius:4px;font-family:var(--ngx-font-family, system-ui, sans-serif);white-space:nowrap;pointer-events:none;animation:tooltipPop .15s ease-out forwards}@keyframes tooltipPop{0%{opacity:0;transform:translate(-50%) translateY(4px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.layout-vertical .ngx-key-value-list__row{flex-direction:column;align-items:flex-start;gap:4px;padding:12px 18px}.layout-vertical .ngx-key-value-list__label{width:100%;padding-right:0}.layout-vertical .ngx-key-value-list__value-container{width:100%}\n"] }]
|
|
2063
|
+
}] });
|
|
2064
|
+
|
|
442
2065
|
/*
|
|
443
2066
|
* Public API Surface — secondary entry point: ngx-core-components/views
|
|
444
2067
|
*/
|
|
@@ -448,5 +2071,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
448
2071
|
* Generated bundle index. Do not edit.
|
|
449
2072
|
*/
|
|
450
2073
|
|
|
451
|
-
export { ListViewComponent, TreeViewComponent };
|
|
2074
|
+
export { ImageCompareComponent, KanbanComponent, KeyValueListComponent, ListViewComponent, SchedulerComponent, TimelineComponent, TreeViewComponent, VirtualListComponent };
|
|
452
2075
|
//# sourceMappingURL=ngx-core-components-views.mjs.map
|