ngx-core-components 0.3.19 → 0.3.21
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/charts/adjacency-matrix/adjacency-matrix.component.d.ts +51 -0
- package/charts/bar-chart/bar-chart.component.d.ts +16 -2
- package/charts/biplot/biplot.component.d.ts +67 -0
- package/charts/bullet-chart/bullet-chart.component.d.ts +37 -0
- package/charts/chord-diagram/chord-diagram.component.d.ts +56 -0
- package/charts/dependency-wheel/dependency-wheel.component.d.ts +56 -0
- package/charts/dumbbell-chart/dumbbell-chart.component.d.ts +61 -0
- package/charts/gantt-chart/gantt-chart.component.d.ts +1 -0
- package/charts/kagi-chart/kagi-chart.component.d.ts +59 -0
- package/charts/line-chart/line-chart.component.d.ts +17 -2
- package/charts/lollipop-chart/lollipop-chart.component.d.ts +46 -0
- package/charts/marimekko-chart/marimekko-chart.component.d.ts +61 -0
- package/charts/pareto-chart/pareto-chart.component.d.ts +52 -0
- package/charts/point-figure-chart/point-figure-chart.component.d.ts +56 -0
- package/charts/polar-area-chart/polar-area-chart.component.d.ts +67 -0
- package/charts/public-api.d.ts +33 -0
- package/charts/renko-chart/renko-chart.component.d.ts +58 -0
- package/charts/ridgeline-chart/ridgeline-chart.component.d.ts +59 -0
- package/charts/sankey-chart/sankey-chart.component.d.ts +74 -0
- package/charts/slope-chart/slope-chart.component.d.ts +52 -0
- package/charts/violin-plot/violin-plot.component.d.ts +64 -0
- package/charts/wind-rose/wind-rose.component.d.ts +68 -0
- package/dialog/dialog-container.component.d.ts +4 -0
- package/dialog/dialog.service.d.ts +1 -0
- package/fesm2022/ngx-core-components-charts.mjs +7795 -48
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-dialog.mjs +78 -11
- package/fesm2022/ngx-core-components-dialog.mjs.map +1 -1
- package/fesm2022/ngx-core-components-feedback.mjs +8 -4
- package/fesm2022/ngx-core-components-feedback.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +143 -115
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-i18n.mjs +149 -0
- package/fesm2022/ngx-core-components-i18n.mjs.map +1 -0
- package/fesm2022/ngx-core-components-inputs.mjs +152 -77
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components-layout.mjs +12 -8
- package/fesm2022/ngx-core-components-layout.mjs.map +1 -1
- package/fesm2022/ngx-core-components-views.mjs +617 -221
- package/fesm2022/ngx-core-components-views.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs +2 -1
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/grid/data-grid/data-grid.component.d.ts +4 -104
- package/grid/data-grid/grid-export.service.d.ts +26 -0
- package/grid/data-grid/models.d.ts +105 -0
- package/grid/public-api.d.ts +2 -1
- package/i18n/index.d.ts +5 -0
- package/i18n/ngx-core-i18n.d.ts +111 -0
- package/i18n/public-api.d.ts +2 -0
- package/inputs/autocomplete/autocomplete.component.d.ts +3 -1
- package/inputs/date-picker/date-picker.component.d.ts +4 -2
- package/inputs/dropdown/dropdown.component.d.ts +3 -1
- package/inputs/file-upload/file-upload.component.d.ts +1 -0
- package/inputs/multi-select/multi-select.component.d.ts +3 -1
- package/inputs/tag-input/tag-input.component.d.ts +2 -0
- package/layout/accordion/accordion.component.d.ts +1 -0
- package/layout/drawer/drawer.component.d.ts +1 -0
- package/package.json +30 -12
- package/public-api.d.ts +35 -0
- package/schematics/collection.json +7 -1
- package/schematics/grid/index.js +68 -0
- package/schematics/grid/schema.json +19 -0
- package/schematics/ng-add/index.js +177 -9
- package/schematics/ng-add/schema.json +29 -0
- package/themes/theme.css +118 -26
- package/views/calendar/calendar.component.d.ts +28 -1
- package/views/kanban/kanban.component.d.ts +1 -0
- package/views/list-view/list-view.component.d.ts +1 -0
- package/views/scheduler/scheduler.component.d.ts +2 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, output, signal, ChangeDetectionStrategy, Component, computed, effect, ContentChild, ViewChildren, Directive, contentChild,
|
|
2
|
+
import { input, output, signal, ChangeDetectionStrategy, Component, inject, computed, effect, ContentChild, ViewChildren, Directive, contentChild, TemplateRef, HostListener, ViewChild, model } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { NgTemplateOutlet, CommonModule } from '@angular/common';
|
|
5
|
+
import { NGX_CORE_I18N } from 'ngx-core-components/i18n';
|
|
5
6
|
import * as i1$1 from '@angular/forms';
|
|
6
7
|
import { FormsModule } from '@angular/forms';
|
|
7
8
|
|
|
@@ -243,6 +244,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
243
244
|
}] });
|
|
244
245
|
|
|
245
246
|
class ListViewComponent {
|
|
247
|
+
i18n = inject(NGX_CORE_I18N);
|
|
246
248
|
items = input([]);
|
|
247
249
|
selectable = input(true);
|
|
248
250
|
multiselect = input(false);
|
|
@@ -351,10 +353,10 @@ class ListViewComponent {
|
|
|
351
353
|
@if (loading()) {
|
|
352
354
|
<div class="lv-loading">
|
|
353
355
|
<div class="lv-spinner"></div>
|
|
354
|
-
<span>
|
|
356
|
+
<span>{{ i18n.common.loading }}</span>
|
|
355
357
|
</div>
|
|
356
358
|
} @else if (totalItems() === 0) {
|
|
357
|
-
<div class="lv-empty">
|
|
359
|
+
<div class="lv-empty">{{ i18n.common.noData }}</div>
|
|
358
360
|
} @else {
|
|
359
361
|
<div class="lv-list" role="listbox" [attr.aria-multiselectable]="multiselect()">
|
|
360
362
|
@for (item of visibleItems(); track trackFn(item, pageStartIndex() + $index); let i = $index) {
|
|
@@ -377,9 +379,9 @@ class ListViewComponent {
|
|
|
377
379
|
|
|
378
380
|
@if (pageSize() > 0 && totalPages() > 1) {
|
|
379
381
|
<div class="lv-pager">
|
|
380
|
-
<button class="lv-pager-btn" type="button" [disabled]="currentPage() === 1" (click)="goToPreviousPage()">
|
|
381
|
-
<div class="lv-pager-meta">
|
|
382
|
-
<button class="lv-pager-btn" type="button" [disabled]="currentPage() === totalPages()" (click)="goToNextPage()">
|
|
382
|
+
<button class="lv-pager-btn" type="button" [disabled]="currentPage() === 1" (click)="goToPreviousPage()">{{ i18n.pagination.previousPage }}</button>
|
|
383
|
+
<div class="lv-pager-meta">{{ i18n.pagination.page }} {{ currentPage() }} {{ i18n.pagination.of }} {{ totalPages() }} <span class="lv-pager-count">{{ totalItems() }} items</span></div>
|
|
384
|
+
<button class="lv-pager-btn" type="button" [disabled]="currentPage() === totalPages()" (click)="goToNextPage()">{{ i18n.pagination.nextPage }}</button>
|
|
383
385
|
</div>
|
|
384
386
|
}
|
|
385
387
|
}
|
|
@@ -400,10 +402,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
400
402
|
@if (loading()) {
|
|
401
403
|
<div class="lv-loading">
|
|
402
404
|
<div class="lv-spinner"></div>
|
|
403
|
-
<span>
|
|
405
|
+
<span>{{ i18n.common.loading }}</span>
|
|
404
406
|
</div>
|
|
405
407
|
} @else if (totalItems() === 0) {
|
|
406
|
-
<div class="lv-empty">
|
|
408
|
+
<div class="lv-empty">{{ i18n.common.noData }}</div>
|
|
407
409
|
} @else {
|
|
408
410
|
<div class="lv-list" role="listbox" [attr.aria-multiselectable]="multiselect()">
|
|
409
411
|
@for (item of visibleItems(); track trackFn(item, pageStartIndex() + $index); let i = $index) {
|
|
@@ -426,9 +428,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
426
428
|
|
|
427
429
|
@if (pageSize() > 0 && totalPages() > 1) {
|
|
428
430
|
<div class="lv-pager">
|
|
429
|
-
<button class="lv-pager-btn" type="button" [disabled]="currentPage() === 1" (click)="goToPreviousPage()">
|
|
430
|
-
<div class="lv-pager-meta">
|
|
431
|
-
<button class="lv-pager-btn" type="button" [disabled]="currentPage() === totalPages()" (click)="goToNextPage()">
|
|
431
|
+
<button class="lv-pager-btn" type="button" [disabled]="currentPage() === 1" (click)="goToPreviousPage()">{{ i18n.pagination.previousPage }}</button>
|
|
432
|
+
<div class="lv-pager-meta">{{ i18n.pagination.page }} {{ currentPage() }} {{ i18n.pagination.of }} {{ totalPages() }} <span class="lv-pager-count">{{ totalItems() }} items</span></div>
|
|
433
|
+
<button class="lv-pager-btn" type="button" [disabled]="currentPage() === totalPages()" (click)="goToNextPage()">{{ i18n.pagination.nextPage }}</button>
|
|
432
434
|
</div>
|
|
433
435
|
}
|
|
434
436
|
}
|
|
@@ -495,6 +497,46 @@ class KanbanComponent {
|
|
|
495
497
|
this.activeDraggingCardId.set(null);
|
|
496
498
|
this.activeDropTarget.set(null);
|
|
497
499
|
}
|
|
500
|
+
onCardKeyDown(event, card, currentColumnId, laneId, currentIndex) {
|
|
501
|
+
const keys = ['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown'];
|
|
502
|
+
if (!keys.includes(event.key))
|
|
503
|
+
return;
|
|
504
|
+
event.preventDefault();
|
|
505
|
+
event.stopPropagation();
|
|
506
|
+
const colIndex = this.columns().findIndex(c => c.id === currentColumnId);
|
|
507
|
+
let targetColumnId = currentColumnId;
|
|
508
|
+
let targetIndex = currentIndex;
|
|
509
|
+
if (event.key === 'ArrowLeft') {
|
|
510
|
+
if (colIndex > 0) {
|
|
511
|
+
targetColumnId = this.columns()[colIndex - 1].id;
|
|
512
|
+
targetIndex = 0;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
else if (event.key === 'ArrowRight') {
|
|
516
|
+
if (colIndex < this.columns().length - 1) {
|
|
517
|
+
targetColumnId = this.columns()[colIndex + 1].id;
|
|
518
|
+
targetIndex = 0;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
else if (event.key === 'ArrowUp') {
|
|
522
|
+
if (currentIndex > 0) {
|
|
523
|
+
targetIndex = currentIndex - 1;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
else if (event.key === 'ArrowDown') {
|
|
527
|
+
const colCards = this.getCardsForColumn(currentColumnId, laneId);
|
|
528
|
+
if (currentIndex < colCards.length - 1) {
|
|
529
|
+
targetIndex = currentIndex + 2; // moveCard adjustedIndex adjustment
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
if (targetColumnId !== currentColumnId || targetIndex !== currentIndex) {
|
|
533
|
+
this.moveCard(card.id, targetColumnId, laneId, targetIndex);
|
|
534
|
+
setTimeout(() => {
|
|
535
|
+
const elementId = this.dragHandleOnly() ? `k-handle-${card.id}` : `k-card-${card.id}`;
|
|
536
|
+
document.getElementById(elementId)?.focus();
|
|
537
|
+
}, 0);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
498
540
|
onColumnDragOver(event, columnId, laneId) {
|
|
499
541
|
event.preventDefault();
|
|
500
542
|
event.dataTransfer?.setData('text/target-column', columnId);
|
|
@@ -714,24 +756,31 @@ class KanbanComponent {
|
|
|
714
756
|
|
|
715
757
|
@for (card of getCardsForColumn(col.id, lane.id); track card.id; let cardIndex = $index) {
|
|
716
758
|
<article
|
|
759
|
+
[attr.id]="'k-card-' + card.id"
|
|
717
760
|
class="kanban-card"
|
|
718
761
|
[draggable]="!dragHandleOnly()"
|
|
719
762
|
[class.dragging]="activeDraggingCardId() === card.id"
|
|
763
|
+
[attr.tabindex]="dragHandleOnly() ? -1 : 0"
|
|
764
|
+
[attr.aria-grabbed]="activeDraggingCardId() === card.id"
|
|
720
765
|
(dragstart)="onDragStart($event, card)"
|
|
721
766
|
(dragover)="onCardDragOver($event)"
|
|
722
767
|
(drop)="onCardDrop($event, col.id, lane.id, cardIndex)"
|
|
723
768
|
(dragend)="onDragEnd()"
|
|
724
769
|
(click)="onCardClick(card)"
|
|
770
|
+
(keydown)="onCardKeyDown($event, card, col.id, lane.id, cardIndex)"
|
|
725
771
|
>
|
|
726
772
|
<div class="card-topline">
|
|
727
773
|
<button
|
|
774
|
+
[attr.id]="'k-handle-' + card.id"
|
|
728
775
|
class="drag-handle"
|
|
729
776
|
type="button"
|
|
730
777
|
draggable="true"
|
|
731
778
|
title="Drag card"
|
|
779
|
+
[attr.tabindex]="dragHandleOnly() ? 0 : -1"
|
|
732
780
|
(click)="$event.stopPropagation()"
|
|
733
781
|
(dragstart)="onDragStart($event, card)"
|
|
734
782
|
(dragend)="onDragEnd()"
|
|
783
|
+
(keydown)="onCardKeyDown($event, card, col.id, lane.id, cardIndex)"
|
|
735
784
|
>::</button>
|
|
736
785
|
|
|
737
786
|
@if (card.priority || (card.tags && card.tags.length > 0)) {
|
|
@@ -864,24 +913,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
864
913
|
|
|
865
914
|
@for (card of getCardsForColumn(col.id, lane.id); track card.id; let cardIndex = $index) {
|
|
866
915
|
<article
|
|
916
|
+
[attr.id]="'k-card-' + card.id"
|
|
867
917
|
class="kanban-card"
|
|
868
918
|
[draggable]="!dragHandleOnly()"
|
|
869
919
|
[class.dragging]="activeDraggingCardId() === card.id"
|
|
920
|
+
[attr.tabindex]="dragHandleOnly() ? -1 : 0"
|
|
921
|
+
[attr.aria-grabbed]="activeDraggingCardId() === card.id"
|
|
870
922
|
(dragstart)="onDragStart($event, card)"
|
|
871
923
|
(dragover)="onCardDragOver($event)"
|
|
872
924
|
(drop)="onCardDrop($event, col.id, lane.id, cardIndex)"
|
|
873
925
|
(dragend)="onDragEnd()"
|
|
874
926
|
(click)="onCardClick(card)"
|
|
927
|
+
(keydown)="onCardKeyDown($event, card, col.id, lane.id, cardIndex)"
|
|
875
928
|
>
|
|
876
929
|
<div class="card-topline">
|
|
877
930
|
<button
|
|
931
|
+
[attr.id]="'k-handle-' + card.id"
|
|
878
932
|
class="drag-handle"
|
|
879
933
|
type="button"
|
|
880
934
|
draggable="true"
|
|
881
935
|
title="Drag card"
|
|
936
|
+
[attr.tabindex]="dragHandleOnly() ? 0 : -1"
|
|
882
937
|
(click)="$event.stopPropagation()"
|
|
883
938
|
(dragstart)="onDragStart($event, card)"
|
|
884
939
|
(dragend)="onDragEnd()"
|
|
940
|
+
(keydown)="onCardKeyDown($event, card, col.id, lane.id, cardIndex)"
|
|
885
941
|
>::</button>
|
|
886
942
|
|
|
887
943
|
@if (card.priority || (card.tags && card.tags.length > 0)) {
|
|
@@ -1314,6 +1370,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
1314
1370
|
}]
|
|
1315
1371
|
}] });
|
|
1316
1372
|
class SchedulerComponent {
|
|
1373
|
+
i18n = inject(NGX_CORE_I18N);
|
|
1374
|
+
getViewModeLabel(mode) {
|
|
1375
|
+
if (mode === 'day')
|
|
1376
|
+
return this.i18n.scheduler.day;
|
|
1377
|
+
if (mode === 'week')
|
|
1378
|
+
return this.i18n.scheduler.week;
|
|
1379
|
+
if (mode === 'month')
|
|
1380
|
+
return this.i18n.scheduler.month;
|
|
1381
|
+
return mode;
|
|
1382
|
+
}
|
|
1317
1383
|
hourHeight = 60;
|
|
1318
1384
|
viewModes = ['day', 'week', 'month'];
|
|
1319
1385
|
// Component inputs
|
|
@@ -2041,7 +2107,7 @@ class SchedulerComponent {
|
|
|
2041
2107
|
<button class="tool-btn nav-arrow" type="button" (click)="navigate(-1)" aria-label="Previous period">
|
|
2042
2108
|
<svg class="icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>
|
|
2043
2109
|
</button>
|
|
2044
|
-
<button class="tool-btn today-btn" type="button" (click)="goToToday()">
|
|
2110
|
+
<button class="tool-btn today-btn" type="button" (click)="goToToday()">{{ i18n.scheduler.today }}</button>
|
|
2045
2111
|
<button class="tool-btn nav-arrow" type="button" (click)="navigate(1)" aria-label="Next period">
|
|
2046
2112
|
<svg class="icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>
|
|
2047
2113
|
</button>
|
|
@@ -2056,7 +2122,7 @@ class SchedulerComponent {
|
|
|
2056
2122
|
<svg class="search-icon" viewBox="0 0 24 24"><path fill="currentColor" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>
|
|
2057
2123
|
<input type="text"
|
|
2058
2124
|
class="search-input"
|
|
2059
|
-
placeholder="
|
|
2125
|
+
[placeholder]="i18n.common.search"
|
|
2060
2126
|
[value]="searchQuery()"
|
|
2061
2127
|
(input)="onSearchInput($event)" />
|
|
2062
2128
|
</div>
|
|
@@ -2108,7 +2174,7 @@ class SchedulerComponent {
|
|
|
2108
2174
|
[class.active]="activeMode() === mode"
|
|
2109
2175
|
(click)="activeMode.set(mode)"
|
|
2110
2176
|
>
|
|
2111
|
-
{{ mode
|
|
2177
|
+
{{ getViewModeLabel(mode) }}
|
|
2112
2178
|
</button>
|
|
2113
2179
|
}
|
|
2114
2180
|
</div>
|
|
@@ -2152,7 +2218,7 @@ class SchedulerComponent {
|
|
|
2152
2218
|
<!-- All-Day Events row -->
|
|
2153
2219
|
@if (hasAllDayEvents()) {
|
|
2154
2220
|
<div class="all-day-row-container">
|
|
2155
|
-
<div class="all-day-label-cell">
|
|
2221
|
+
<div class="all-day-label-cell">{{ i18n.scheduler.allDay }}</div>
|
|
2156
2222
|
<div class="all-day-columns-wrap">
|
|
2157
2223
|
@for (col of activeColumns(); track col.resource ? col.resource.id : dateKey(col.date)) {
|
|
2158
2224
|
<div class="all-day-column-cell">
|
|
@@ -2434,7 +2500,7 @@ class SchedulerComponent {
|
|
|
2434
2500
|
}
|
|
2435
2501
|
</div>
|
|
2436
2502
|
</div>
|
|
2437
|
-
`, 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:14px}.nav-buttons-group{display:flex;align-items:center;border:1px solid var(--border-color, #cbd5e1);border-radius:8px;overflow:hidden;background:var(--bg-secondary, #ffffff);box-shadow:var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, .05))}.tool-btn{background:var(--bg-secondary, #ffffff);border:none;border-right:1px solid var(--border-color, #cbd5e1);padding:6px 12px;font-size:12px;font-weight:650;cursor:pointer;color:var(--text-primary, #0f172a);transition:all .2s;display:flex;align-items:center;justify-content:center}.tool-btn:last-child{border-right:none}.tool-btn:hover,.tool-btn:focus-visible{background:var(--border-light, #f1f5f9);color:var(--primary-color, #4f46e5);outline:none}.tool-btn.nav-arrow{padding:8px 10px}.today-btn{font-weight:750}.icon-svg,.dropdown-arrow-svg,.export-icon-svg,.recurrence-icon-svg,.month-recurrence-icon-svg,.delete-icon-svg,.plus-icon-svg{width:16px;height:16px;display:inline-block;vertical-align:middle}.current-period-label{margin:0;font-size:16px;font-weight:800;min-width:180px}.toolbar-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.search-box-container{display:flex;align-items:center;background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #cbd5e1);border-radius:8px;padding:5px 12px;min-width:200px;gap:8px;box-shadow:var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05))}.search-icon{width:15px;height:15px;color:var(--text-secondary, #64748b)}.search-input{border:none;background:transparent;font-size:12px;color:var(--text-primary, #0f172a);outline:none;width:100%;font-family:inherit}.search-input::placeholder{color:var(--text-secondary, #94a3b8)}.resource-filter-container{display:flex;align-items:center;background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #cbd5e1);border-radius:8px;padding:5px 10px;box-shadow:var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05))}.resource-select{border:none;background:transparent;font-size:12px;font-weight:650;color:var(--text-primary, #0f172a);outline:none;cursor:pointer;font-family:inherit}.export-dropdown-wrapper{position:relative}.export-toggle-btn{display:flex;align-items:center;gap:6px;font-weight:650;border:1px solid var(--border-color, #cbd5e1);border-radius:8px;box-shadow:var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05))}.dropdown-arrow-svg{width:14px;height:14px;opacity:.7}.export-menu-dropdown{position:absolute;top:calc(100% + 4px);right:0;background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #cbd5e1);border-radius:8px;box-shadow:var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1));z-index:100;min-width:170px;display:flex;flex-direction:column;padding:4px;overflow:hidden;animation:slideDown .15s ease-out}.export-item{display:flex;align-items:center;gap:10px;border:none;background:none;padding:8px 12px;font-size:12px;text-align:left;cursor:pointer;color:var(--text-primary, #334155);border-radius:6px;font-family:inherit;font-weight:600;transition:background .15s}.export-item:hover{background:var(--border-light, #f1f5f9);color:var(--primary-color, #4f46e5)}.export-icon-svg{width:14px;height:14px;color:var(--text-secondary, #64748b)}.view-switch-controls{display:flex;border:1px solid var(--border-color, #cbd5e1);border-radius:8px;overflow:hidden;box-shadow:var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, .05))}.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:650;color:var(--text-secondary, #475569);cursor:pointer;transition:all .2s;font-family:inherit}.view-btn:last-child{border-right:none}.view-btn.active{background:var(--primary-color, #4f46e5);color:#fff}.scheduler-body{flex:1;overflow: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;justify-content:center;padding:10px 0;border-right:1px solid var(--border-color, #e2e8f0);min-width:120px}.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:650;color:var(--text-secondary, #64748b);text-transform:uppercase;letter-spacing:.5px}.day-num{font-size:14px;margin-top:4px;color:var(--text-primary, #0f172a)}.resource-header-card{display:flex;align-items:center;gap:10px;padding:4px 12px;width:100%;text-align:left}.resource-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;border:2px solid var(--border-light, #e2e8f0)}.resource-initials{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:750;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.2)}.resource-info{display:flex;flex-direction:column;gap:1px;min-width:0}.resource-name{font-size:13px;font-weight:750;color:var(--text-primary, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resource-desc{font-size:10px;color:var(--text-secondary, #64748b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.all-day-row-container{display:flex;background:var(--border-light, #f8fafc);border-bottom:1px solid var(--border-color, #cbd5e1);z-index:8;position:relative}.all-day-label-cell{width:70px;flex-shrink:0;border-right:1px solid var(--border-color, #cbd5e1);font-size:10px;font-weight:750;color:var(--text-secondary, #64748b);display:flex;align-items:center;justify-content:flex-end;padding-right:10px;text-transform:uppercase;letter-spacing:.5px}.all-day-columns-wrap{flex:1;display:flex;min-height:38px;padding:4px 0}.all-day-column-cell{flex:1;display:flex;flex-direction:column;gap:4px;padding:0 4px;border-right:1px solid var(--border-light, #e2e8f0);min-width:120px;box-sizing:border-box;justify-content:center}.all-day-column-cell:last-child{border-right:none}.all-day-event-block{display:flex;align-items:center;gap:6px;border-radius:6px;padding:4px 8px;font-size:11px;font-weight:700;cursor:pointer;border:1px solid transparent;box-shadow:var(--shadow-sm);position:relative;overflow:hidden;min-height:22px;transition:transform .15s}.all-day-event-block:hover{transform:translateY(-1px)}.all-day-event-block.completed .all-day-event-title{text-decoration:line-through;opacity:.65}.all-day-event-indicator{width:4px;height:12px;border-radius:2px;background:currentColor;flex-shrink:0}.all-day-event-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.event-delete-btn.all-day-del{opacity:0;position:absolute;right:4px;top:2px;width:18px;height:18px}.all-day-event-block:hover .event-delete-btn.all-day-del{opacity:1}.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:650;color:var(--text-secondary, #64748b);text-align:right;padding-right:10px;margin-top:-6px}.columns-body-wrap{flex:1;display:flex;position:relative}.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;min-width:120px}.column-body-cell:last-child{border-right:none}.interactive-slots-overlay{position:absolute;inset:0;display:flex;flex-direction:column;z-index:1}.slot-trigger{flex:0 0 auto;cursor:cell;transition:background .15s}.slot-trigger:hover{background:var(--primary-glow, rgba(79, 70, 229, .02))}.slot-trigger.non-business-slot{background:var(--border-light, #f8fafc);opacity:.85;background-image:repeating-linear-gradient(45deg,transparent,transparent 10px,rgba(148,163,184,.04) 10px,rgba(148,163,184,.04) 20px)}.task-completion-checkbox{width:14px;height:14px;margin:0;cursor:pointer;flex-shrink:0;accent-color:var(--primary-color, #4f46e5);border-radius:4px;border:1px solid var(--border-color, #cbd5e1);outline:none;align-self:center;transition:accent-color .15s;z-index:5}.all-day-task-checkbox{width:12px;height:12px}.current-time-line{position:absolute;left:0;right:0;height:2px;background:#ef4444;z-index:10;pointer-events:none}.line-dot{position:absolute;left:-4px;top:-3px;width:8px;height:8px;border-radius:50%;background:#ef4444;box-shadow:0 0 6px #ef4444cc;animation:pulse-glow 2s infinite}@keyframes pulse-glow{0%{transform:scale(1);box-shadow:0 0 4px #ef4444cc}50%{transform:scale(1.35);box-shadow:0 0 12px 4px #ef444473}to{transform:scale(1);box-shadow:0 0 4px #ef4444cc}}.drag-select-preview{position:absolute;left:4px;right:4px;border:2px dashed var(--primary-color, #4f46e5);border-radius:8px;background:#4f46e514;z-index:5;pointer-events:none;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.preview-inner{display:flex;align-items:center;gap:6px;color:var(--primary-color, #4f46e5);font-size:11px;font-weight:750;background:#fff;padding:4px 10px;border-radius:20px;box-shadow:var(--shadow-sm);border:1px solid rgba(79,70,229,.2)}.plus-icon-svg{color:var(--primary-color, #4f46e5);width:14px;height:14px}.scheduler-event-card{position:absolute;right:auto;border-radius:8px;padding:8px 10px;font-size:12px;line-height:1.4;cursor:grab;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;min-height:28px;outline:none}.scheduler-event-card:hover{transform:translateY(-1px);box-shadow:var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, .1));z-index:4}.scheduler-event-card:focus-visible{border-color:var(--primary-color, #4f46e5);box-shadow:0 0 0 2px #4f46e540}.scheduler-event-card.completed .event-title{text-decoration:line-through;opacity:.65}.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;min-width:0;flex:1}.event-header-row{display:flex;justify-content:space-between;align-items:flex-start;gap:4px;width:100%}.event-title{font-weight:750;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-time{font-size:10px;opacity:.82;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recurrence-icon-svg{color:currentColor;opacity:.65;width:13px;height:13px;flex-shrink:0;margin-top:1px}.event-delete-btn{position:absolute;top:6px;right:6px;border:none;background:#ffffffbf;border-radius:4px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--ngx-schedule-important-text, #ef4444);opacity:0;transition:opacity .15s,background .15s}.event-delete-btn:hover{background:#fff;color:#dc2626;transform:scale(1.05)}.scheduler-event-card:hover .event-delete-btn{opacity:1}.delete-icon-svg{width:12px;height:12px}.resize-handle{position:absolute;left:0;right:0;height:8px;border:0;background:transparent;cursor:ns-resize;display:flex;align-items:center;justify-content:center;z-index:10;transition:background .15s}.resize-handle:after{content:\"\";width:24px;height:2px;background:#00000026;border-radius:1px;opacity:0;transition:opacity .15s}.ngx-scheduler-wrapper.dark .resize-handle:after{background:#ffffff40}.scheduler-event-card:hover .resize-handle:after{opacity:1}.resize-handle:hover{background:#0000000d}.ngx-scheduler-wrapper.dark .resize-handle:hover{background:#ffffff0d}.resize-start{top:0}.resize-end{bottom:0}.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,minmax(110px,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:650;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:650;padding:2px 6px;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;transition:transform .1s;display:flex;align-items:center;outline:none}.month-event-item:hover{transform:scale(1.02)}.month-event-item:focus-visible{box-shadow:0 0 0 2px var(--primary-color, #4f46e5)}.month-event-item.completed{text-decoration:line-through;opacity:.65}.month-recurrence-icon-svg{color:currentColor;opacity:.8;width:11px;height:11px;margin-right:3px;display:inline-block;flex-shrink:0}.month-more-indicator{background:var(--primary-glow, rgba(79, 70, 229, .08));color:var(--primary-color, #4f46e5);border:none;border-radius:4px;font-size:10px;font-weight:700;padding:3px 6px;cursor:pointer;text-align:left;transition:background .15s;width:100%;outline:none}.month-more-indicator:hover{background:#4f46e526}.month-more-indicator:focus-visible{box-shadow:0 0 0 2px var(--primary-color, #4f46e5)}.month-events-popover{position:absolute;top:4px;left:4px;right:4px;background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #cbd5e1);border-radius:8px;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000001a;z-index:100;display:flex;flex-direction:column;padding:8px;min-width:180px;animation:popoverFadeIn .15s ease-out}.popover-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;border-bottom:1px solid var(--border-light, #e2e8f0);padding-bottom:4px}.popover-date{font-size:11px;font-weight:750;color:var(--text-secondary, #475569)}.popover-close{background:none;border:none;font-size:16px;font-weight:700;color:#94a3b8;cursor:pointer;line-height:1;padding:0 2px}.popover-close:hover{color:#475569}.popover-body{display:flex;flex-direction:column;gap:4px;max-height:200px;overflow-y:auto}.popover-event-item{margin-bottom:2px}@keyframes popoverFadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.meeting{background-color:var(--ngx-schedule-meeting-bg, rgba(59, 130, 246, .07));border-color:var(--ngx-schedule-meeting-border, rgba(59, 130, 246, .15));color:var(--ngx-schedule-meeting-text, #2563eb);border-left:4px solid #3b82f6!important}.task{background-color:var(--ngx-schedule-task-bg, rgba(16, 185, 129, .07));border-color:var(--ngx-schedule-task-border, rgba(16, 185, 129, .15));color:var(--ngx-schedule-task-text, #059669);border-left:4px solid #10b981!important}.important{background-color:var(--ngx-schedule-important-bg, rgba(239, 68, 68, .07));border-color:var(--ngx-schedule-important-border, rgba(239, 68, 68, .15));color:var(--ngx-schedule-important-text, #dc2626);border-left:4px solid #ef4444!important}.warning{background-color:var(--ngx-schedule-warning-bg, rgba(245, 158, 11, .07));border-color:var(--ngx-schedule-warning-border, rgba(245, 158, 11, .15));color:var(--ngx-schedule-warning-text, #d97706);border-left:4px solid #f59e0b!important}.milestone{background-color:var(--ngx-schedule-milestone-bg, rgba(139, 92, 246, .07));border-color:var(--ngx-schedule-milestone-border, rgba(139, 92, 246, .15));color:var(--ngx-schedule-milestone-text, #7c3aed);border-left:4px solid #8b5cf6!important}.personal{background-color:var(--ngx-schedule-personal-bg, rgba(20, 184, 166, .07));border-color:var(--ngx-schedule-personal-border, rgba(20, 184, 166, .15));color:var(--ngx-schedule-personal-text, #0d9488);border-left:4px solid #14b8a6!important}.ngx-scheduler-wrapper.dark{border-color:#1f2937;background:#0f172a;color:#f8fafc}.ngx-scheduler-wrapper.dark .scheduler-toolbar,.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 .nav-buttons-group,.ngx-scheduler-wrapper.dark .search-box-container,.ngx-scheduler-wrapper.dark .resource-filter-container,.ngx-scheduler-wrapper.dark .export-menu-dropdown{background:#0f172a;border-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 .view-btn.active{background:var(--primary-color, #6366f1);color:#fff}.ngx-scheduler-wrapper.dark .grid-line,.ngx-scheduler-wrapper.dark .column-body-cell,.ngx-scheduler-wrapper.dark .month-day-cell{border-color:#1f2937}.ngx-scheduler-wrapper.dark .search-input,.ngx-scheduler-wrapper.dark .resource-select{color:#f8fafc}.ngx-scheduler-wrapper.dark .export-item{color:#cbd5e1}.ngx-scheduler-wrapper.dark .export-item:hover{background:#1e293b;color:#6366f1}.ngx-scheduler-wrapper.dark .resource-name{color:#f8fafc}.ngx-scheduler-wrapper.dark .resource-desc{color:#94a3b8}.ngx-scheduler-wrapper.dark .all-day-row-container{background:#1e293b;border-color:#1f2937}.ngx-scheduler-wrapper.dark .all-day-column-cell{border-color:#1f2937}.ngx-scheduler-wrapper.dark .all-day-event-block{border-color:transparent}.ngx-scheduler-wrapper.dark .slot-trigger.non-business-slot{background:#0f172a;background-image:repeating-linear-gradient(45deg,transparent,transparent 10px,rgba(31,41,55,.25) 10px,rgba(31,41,55,.25) 20px)}.ngx-scheduler-wrapper.dark .preview-inner{background:#0f172a;border-color:#6366f166;color:#818cf8}.ngx-scheduler-wrapper.dark .plus-icon-svg{color:#818cf8}.ngx-scheduler-wrapper.dark .event-delete-btn{background:#0f172a99;color:#f87171}.ngx-scheduler-wrapper.dark .event-delete-btn:hover{background:#1e293b}.ngx-scheduler-wrapper.dark .task-completion-checkbox{border-color:#374151;background:#1f2937}.ngx-scheduler-wrapper.dark .month-events-popover{background:#1e293b;border-color:#374151}.ngx-scheduler-wrapper.dark .popover-date{color:#94a3b8}.ngx-scheduler-wrapper.dark .popover-header{border-color:#374151}@keyframes slideDown{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i1.TitleCasePipe, name: "titlecase" }] });
|
|
2503
|
+
`, 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:14px}.nav-buttons-group{display:flex;align-items:center;border:1px solid var(--border-color, #cbd5e1);border-radius:8px;overflow:hidden;background:var(--bg-secondary, #ffffff);box-shadow:var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, .05))}.tool-btn{background:var(--bg-secondary, #ffffff);border:none;border-right:1px solid var(--border-color, #cbd5e1);padding:6px 12px;font-size:12px;font-weight:650;cursor:pointer;color:var(--text-primary, #0f172a);transition:all .2s;display:flex;align-items:center;justify-content:center}.tool-btn:last-child{border-right:none}.tool-btn:hover,.tool-btn:focus-visible{background:var(--border-light, #f1f5f9);color:var(--primary-color, #4f46e5);outline:none}.tool-btn.nav-arrow{padding:8px 10px}.today-btn{font-weight:750}.icon-svg,.dropdown-arrow-svg,.export-icon-svg,.recurrence-icon-svg,.month-recurrence-icon-svg,.delete-icon-svg,.plus-icon-svg{width:16px;height:16px;display:inline-block;vertical-align:middle}.current-period-label{margin:0;font-size:16px;font-weight:800;min-width:180px}.toolbar-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.search-box-container{display:flex;align-items:center;background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #cbd5e1);border-radius:8px;padding:5px 12px;min-width:200px;gap:8px;box-shadow:var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05))}.search-icon{width:15px;height:15px;color:var(--text-secondary, #64748b)}.search-input{border:none;background:transparent;font-size:12px;color:var(--text-primary, #0f172a);outline:none;width:100%;font-family:inherit}.search-input::placeholder{color:var(--text-secondary, #94a3b8)}.resource-filter-container{display:flex;align-items:center;background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #cbd5e1);border-radius:8px;padding:5px 10px;box-shadow:var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05))}.resource-select{border:none;background:transparent;font-size:12px;font-weight:650;color:var(--text-primary, #0f172a);outline:none;cursor:pointer;font-family:inherit}.export-dropdown-wrapper{position:relative}.export-toggle-btn{display:flex;align-items:center;gap:6px;font-weight:650;border:1px solid var(--border-color, #cbd5e1);border-radius:8px;box-shadow:var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05))}.dropdown-arrow-svg{width:14px;height:14px;opacity:.7}.export-menu-dropdown{position:absolute;top:calc(100% + 4px);right:0;background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #cbd5e1);border-radius:8px;box-shadow:var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1));z-index:100;min-width:170px;display:flex;flex-direction:column;padding:4px;overflow:hidden;animation:slideDown .15s ease-out}.export-item{display:flex;align-items:center;gap:10px;border:none;background:none;padding:8px 12px;font-size:12px;text-align:left;cursor:pointer;color:var(--text-primary, #334155);border-radius:6px;font-family:inherit;font-weight:600;transition:background .15s}.export-item:hover{background:var(--border-light, #f1f5f9);color:var(--primary-color, #4f46e5)}.export-icon-svg{width:14px;height:14px;color:var(--text-secondary, #64748b)}.view-switch-controls{display:flex;border:1px solid var(--border-color, #cbd5e1);border-radius:8px;overflow:hidden;box-shadow:var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, .05))}.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:650;color:var(--text-secondary, #475569);cursor:pointer;transition:all .2s;font-family:inherit}.view-btn:last-child{border-right:none}.view-btn.active{background:var(--primary-color, #4f46e5);color:#fff}.scheduler-body{flex:1;overflow: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;justify-content:center;padding:10px 0;border-right:1px solid var(--border-color, #e2e8f0);min-width:120px}.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:650;color:var(--text-secondary, #64748b);text-transform:uppercase;letter-spacing:.5px}.day-num{font-size:14px;margin-top:4px;color:var(--text-primary, #0f172a)}.resource-header-card{display:flex;align-items:center;gap:10px;padding:4px 12px;width:100%;text-align:left}.resource-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;border:2px solid var(--border-light, #e2e8f0)}.resource-initials{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:750;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.2)}.resource-info{display:flex;flex-direction:column;gap:1px;min-width:0}.resource-name{font-size:13px;font-weight:750;color:var(--text-primary, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resource-desc{font-size:10px;color:var(--text-secondary, #64748b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.all-day-row-container{display:flex;background:var(--border-light, #f8fafc);border-bottom:1px solid var(--border-color, #cbd5e1);z-index:8;position:relative}.all-day-label-cell{width:70px;flex-shrink:0;border-right:1px solid var(--border-color, #cbd5e1);font-size:10px;font-weight:750;color:var(--text-secondary, #64748b);display:flex;align-items:center;justify-content:flex-end;padding-right:10px;text-transform:uppercase;letter-spacing:.5px}.all-day-columns-wrap{flex:1;display:flex;min-height:38px;padding:4px 0}.all-day-column-cell{flex:1;display:flex;flex-direction:column;gap:4px;padding:0 4px;border-right:1px solid var(--border-light, #e2e8f0);min-width:120px;box-sizing:border-box;justify-content:center}.all-day-column-cell:last-child{border-right:none}.all-day-event-block{display:flex;align-items:center;gap:6px;border-radius:6px;padding:4px 8px;font-size:11px;font-weight:700;cursor:pointer;border:1px solid transparent;box-shadow:var(--shadow-sm);position:relative;overflow:hidden;min-height:22px;transition:transform .15s}.all-day-event-block:hover{transform:translateY(-1px)}.all-day-event-block.completed .all-day-event-title{text-decoration:line-through;opacity:.65}.all-day-event-indicator{width:4px;height:12px;border-radius:2px;background:currentColor;flex-shrink:0}.all-day-event-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.event-delete-btn.all-day-del{opacity:0;position:absolute;right:4px;top:2px;width:18px;height:18px}.all-day-event-block:hover .event-delete-btn.all-day-del{opacity:1}.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:650;color:var(--text-secondary, #64748b);text-align:right;padding-right:10px;margin-top:-6px}.columns-body-wrap{flex:1;display:flex;position:relative}.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;min-width:120px}.column-body-cell:last-child{border-right:none}.interactive-slots-overlay{position:absolute;inset:0;display:flex;flex-direction:column;z-index:1}.slot-trigger{flex:0 0 auto;cursor:cell;transition:background .15s}.slot-trigger:hover{background:var(--primary-glow, rgba(79, 70, 229, .02))}.slot-trigger.non-business-slot{background:var(--border-light, #f8fafc);opacity:.85;background-image:repeating-linear-gradient(45deg,transparent,transparent 10px,rgba(148,163,184,.04) 10px,rgba(148,163,184,.04) 20px)}.task-completion-checkbox{width:14px;height:14px;margin:0;cursor:pointer;flex-shrink:0;accent-color:var(--primary-color, #4f46e5);border-radius:4px;border:1px solid var(--border-color, #cbd5e1);outline:none;align-self:center;transition:accent-color .15s;z-index:5}.all-day-task-checkbox{width:12px;height:12px}.current-time-line{position:absolute;left:0;right:0;height:2px;background:#ef4444;z-index:10;pointer-events:none}.line-dot{position:absolute;left:-4px;top:-3px;width:8px;height:8px;border-radius:50%;background:#ef4444;box-shadow:0 0 6px #ef4444cc;animation:pulse-glow 2s infinite}@keyframes pulse-glow{0%{transform:scale(1);box-shadow:0 0 4px #ef4444cc}50%{transform:scale(1.35);box-shadow:0 0 12px 4px #ef444473}to{transform:scale(1);box-shadow:0 0 4px #ef4444cc}}.drag-select-preview{position:absolute;left:4px;right:4px;border:2px dashed var(--primary-color, #4f46e5);border-radius:8px;background:#4f46e514;z-index:5;pointer-events:none;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.preview-inner{display:flex;align-items:center;gap:6px;color:var(--primary-color, #4f46e5);font-size:11px;font-weight:750;background:#fff;padding:4px 10px;border-radius:20px;box-shadow:var(--shadow-sm);border:1px solid rgba(79,70,229,.2)}.plus-icon-svg{color:var(--primary-color, #4f46e5);width:14px;height:14px}.scheduler-event-card{position:absolute;right:auto;border-radius:8px;padding:8px 10px;font-size:12px;line-height:1.4;cursor:grab;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;min-height:28px;outline:none}.scheduler-event-card:hover{transform:translateY(-1px);box-shadow:var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, .1));z-index:4}.scheduler-event-card:focus-visible{border-color:var(--primary-color, #4f46e5);box-shadow:0 0 0 2px #4f46e540}.scheduler-event-card.completed .event-title{text-decoration:line-through;opacity:.65}.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;min-width:0;flex:1}.event-header-row{display:flex;justify-content:space-between;align-items:flex-start;gap:4px;width:100%}.event-title{font-weight:750;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-time{font-size:10px;opacity:.82;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recurrence-icon-svg{color:currentColor;opacity:.65;width:13px;height:13px;flex-shrink:0;margin-top:1px}.event-delete-btn{position:absolute;top:6px;right:6px;border:none;background:#ffffffbf;border-radius:4px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--ngx-schedule-important-text, #ef4444);opacity:0;transition:opacity .15s,background .15s}.event-delete-btn:hover{background:#fff;color:#dc2626;transform:scale(1.05)}.scheduler-event-card:hover .event-delete-btn{opacity:1}.delete-icon-svg{width:12px;height:12px}.resize-handle{position:absolute;left:0;right:0;height:8px;border:0;background:transparent;cursor:ns-resize;display:flex;align-items:center;justify-content:center;z-index:10;transition:background .15s}.resize-handle:after{content:\"\";width:24px;height:2px;background:#00000026;border-radius:1px;opacity:0;transition:opacity .15s}.ngx-scheduler-wrapper.dark .resize-handle:after{background:#ffffff40}.scheduler-event-card:hover .resize-handle:after{opacity:1}.resize-handle:hover{background:#0000000d}.ngx-scheduler-wrapper.dark .resize-handle:hover{background:#ffffff0d}.resize-start{top:0}.resize-end{bottom:0}.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,minmax(110px,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:650;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:650;padding:2px 6px;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;transition:transform .1s;display:flex;align-items:center;outline:none}.month-event-item:hover{transform:scale(1.02)}.month-event-item:focus-visible{box-shadow:0 0 0 2px var(--primary-color, #4f46e5)}.month-event-item.completed{text-decoration:line-through;opacity:.65}.month-recurrence-icon-svg{color:currentColor;opacity:.8;width:11px;height:11px;margin-right:3px;display:inline-block;flex-shrink:0}.month-more-indicator{background:var(--primary-glow, rgba(79, 70, 229, .08));color:var(--primary-color, #4f46e5);border:none;border-radius:4px;font-size:10px;font-weight:700;padding:3px 6px;cursor:pointer;text-align:left;transition:background .15s;width:100%;outline:none}.month-more-indicator:hover{background:#4f46e526}.month-more-indicator:focus-visible{box-shadow:0 0 0 2px var(--primary-color, #4f46e5)}.month-events-popover{position:absolute;top:4px;left:4px;right:4px;background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #cbd5e1);border-radius:8px;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000001a;z-index:100;display:flex;flex-direction:column;padding:8px;min-width:180px;animation:popoverFadeIn .15s ease-out}.popover-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;border-bottom:1px solid var(--border-light, #e2e8f0);padding-bottom:4px}.popover-date{font-size:11px;font-weight:750;color:var(--text-secondary, #475569)}.popover-close{background:none;border:none;font-size:16px;font-weight:700;color:#94a3b8;cursor:pointer;line-height:1;padding:0 2px}.popover-close:hover{color:#475569}.popover-body{display:flex;flex-direction:column;gap:4px;max-height:200px;overflow-y:auto}.popover-event-item{margin-bottom:2px}@keyframes popoverFadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.meeting{background-color:var(--ngx-schedule-meeting-bg, rgba(59, 130, 246, .07));border-color:var(--ngx-schedule-meeting-border, rgba(59, 130, 246, .15));color:var(--ngx-schedule-meeting-text, #2563eb);border-left:4px solid #3b82f6!important}.task{background-color:var(--ngx-schedule-task-bg, rgba(16, 185, 129, .07));border-color:var(--ngx-schedule-task-border, rgba(16, 185, 129, .15));color:var(--ngx-schedule-task-text, #059669);border-left:4px solid #10b981!important}.important{background-color:var(--ngx-schedule-important-bg, rgba(239, 68, 68, .07));border-color:var(--ngx-schedule-important-border, rgba(239, 68, 68, .15));color:var(--ngx-schedule-important-text, #dc2626);border-left:4px solid #ef4444!important}.warning{background-color:var(--ngx-schedule-warning-bg, rgba(245, 158, 11, .07));border-color:var(--ngx-schedule-warning-border, rgba(245, 158, 11, .15));color:var(--ngx-schedule-warning-text, #d97706);border-left:4px solid #f59e0b!important}.milestone{background-color:var(--ngx-schedule-milestone-bg, rgba(139, 92, 246, .07));border-color:var(--ngx-schedule-milestone-border, rgba(139, 92, 246, .15));color:var(--ngx-schedule-milestone-text, #7c3aed);border-left:4px solid #8b5cf6!important}.personal{background-color:var(--ngx-schedule-personal-bg, rgba(20, 184, 166, .07));border-color:var(--ngx-schedule-personal-border, rgba(20, 184, 166, .15));color:var(--ngx-schedule-personal-text, #0d9488);border-left:4px solid #14b8a6!important}.ngx-scheduler-wrapper.dark{border-color:#1f2937;background:#0f172a;color:#f8fafc}.ngx-scheduler-wrapper.dark .scheduler-toolbar,.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 .nav-buttons-group,.ngx-scheduler-wrapper.dark .search-box-container,.ngx-scheduler-wrapper.dark .resource-filter-container,.ngx-scheduler-wrapper.dark .export-menu-dropdown{background:#0f172a;border-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 .view-btn.active{background:var(--primary-color, #6366f1);color:#fff}.ngx-scheduler-wrapper.dark .grid-line,.ngx-scheduler-wrapper.dark .column-body-cell,.ngx-scheduler-wrapper.dark .month-day-cell{border-color:#1f2937}.ngx-scheduler-wrapper.dark .search-input,.ngx-scheduler-wrapper.dark .resource-select{color:#f8fafc}.ngx-scheduler-wrapper.dark .export-item{color:#cbd5e1}.ngx-scheduler-wrapper.dark .export-item:hover{background:#1e293b;color:#6366f1}.ngx-scheduler-wrapper.dark .resource-name{color:#f8fafc}.ngx-scheduler-wrapper.dark .resource-desc{color:#94a3b8}.ngx-scheduler-wrapper.dark .all-day-row-container{background:#1e293b;border-color:#1f2937}.ngx-scheduler-wrapper.dark .all-day-column-cell{border-color:#1f2937}.ngx-scheduler-wrapper.dark .all-day-event-block{border-color:transparent}.ngx-scheduler-wrapper.dark .slot-trigger.non-business-slot{background:#0f172a;background-image:repeating-linear-gradient(45deg,transparent,transparent 10px,rgba(31,41,55,.25) 10px,rgba(31,41,55,.25) 20px)}.ngx-scheduler-wrapper.dark .preview-inner{background:#0f172a;border-color:#6366f166;color:#818cf8}.ngx-scheduler-wrapper.dark .plus-icon-svg{color:#818cf8}.ngx-scheduler-wrapper.dark .event-delete-btn{background:#0f172a99;color:#f87171}.ngx-scheduler-wrapper.dark .event-delete-btn:hover{background:#1e293b}.ngx-scheduler-wrapper.dark .task-completion-checkbox{border-color:#374151;background:#1f2937}.ngx-scheduler-wrapper.dark .month-events-popover{background:#1e293b;border-color:#374151}.ngx-scheduler-wrapper.dark .popover-date{color:#94a3b8}.ngx-scheduler-wrapper.dark .popover-header{border-color:#374151}@keyframes slideDown{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
2438
2504
|
}
|
|
2439
2505
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SchedulerComponent, decorators: [{
|
|
2440
2506
|
type: Component,
|
|
@@ -2448,7 +2514,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2448
2514
|
<button class="tool-btn nav-arrow" type="button" (click)="navigate(-1)" aria-label="Previous period">
|
|
2449
2515
|
<svg class="icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>
|
|
2450
2516
|
</button>
|
|
2451
|
-
<button class="tool-btn today-btn" type="button" (click)="goToToday()">
|
|
2517
|
+
<button class="tool-btn today-btn" type="button" (click)="goToToday()">{{ i18n.scheduler.today }}</button>
|
|
2452
2518
|
<button class="tool-btn nav-arrow" type="button" (click)="navigate(1)" aria-label="Next period">
|
|
2453
2519
|
<svg class="icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>
|
|
2454
2520
|
</button>
|
|
@@ -2463,7 +2529,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2463
2529
|
<svg class="search-icon" viewBox="0 0 24 24"><path fill="currentColor" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>
|
|
2464
2530
|
<input type="text"
|
|
2465
2531
|
class="search-input"
|
|
2466
|
-
placeholder="
|
|
2532
|
+
[placeholder]="i18n.common.search"
|
|
2467
2533
|
[value]="searchQuery()"
|
|
2468
2534
|
(input)="onSearchInput($event)" />
|
|
2469
2535
|
</div>
|
|
@@ -2515,7 +2581,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2515
2581
|
[class.active]="activeMode() === mode"
|
|
2516
2582
|
(click)="activeMode.set(mode)"
|
|
2517
2583
|
>
|
|
2518
|
-
{{ mode
|
|
2584
|
+
{{ getViewModeLabel(mode) }}
|
|
2519
2585
|
</button>
|
|
2520
2586
|
}
|
|
2521
2587
|
</div>
|
|
@@ -2559,7 +2625,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2559
2625
|
<!-- All-Day Events row -->
|
|
2560
2626
|
@if (hasAllDayEvents()) {
|
|
2561
2627
|
<div class="all-day-row-container">
|
|
2562
|
-
<div class="all-day-label-cell">
|
|
2628
|
+
<div class="all-day-label-cell">{{ i18n.scheduler.allDay }}</div>
|
|
2563
2629
|
<div class="all-day-columns-wrap">
|
|
2564
2630
|
@for (col of activeColumns(); track col.resource ? col.resource.id : dateKey(col.date)) {
|
|
2565
2631
|
<div class="all-day-column-cell">
|
|
@@ -3726,18 +3792,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
3726
3792
|
|
|
3727
3793
|
class CalendarComponent {
|
|
3728
3794
|
value = model(null);
|
|
3795
|
+
rangeStart = model(null);
|
|
3796
|
+
rangeEnd = model(null);
|
|
3729
3797
|
events = input([]);
|
|
3730
3798
|
readonly = input(false);
|
|
3799
|
+
selectionMode = input('single');
|
|
3800
|
+
min = input(null);
|
|
3801
|
+
max = input(null);
|
|
3731
3802
|
// Content Projection for custom cell
|
|
3732
3803
|
dayTemplateSignal;
|
|
3733
3804
|
dayTemplate = computed(() => this.dayTemplateSignal);
|
|
3734
3805
|
activeMonthDate = signal(new Date());
|
|
3735
3806
|
focusedDate = signal(new Date());
|
|
3807
|
+
currentView = signal('month');
|
|
3808
|
+
yearPickerStart = signal(new Date().getFullYear() - 5);
|
|
3736
3809
|
dateSelect = output();
|
|
3810
|
+
rangeSelect = output();
|
|
3737
3811
|
monthChange = output();
|
|
3812
|
+
eventClick = output();
|
|
3738
3813
|
weekDays = signal([
|
|
3739
3814
|
'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'
|
|
3740
3815
|
]);
|
|
3816
|
+
monthsList = signal([
|
|
3817
|
+
'January', 'February', 'March', 'April', 'May', 'June',
|
|
3818
|
+
'July', 'August', 'September', 'October', 'November', 'December'
|
|
3819
|
+
]);
|
|
3741
3820
|
cellElements;
|
|
3742
3821
|
monthLabel = computed(() => {
|
|
3743
3822
|
return this.activeMonthDate().toLocaleDateString('en-US', {
|
|
@@ -3745,6 +3824,10 @@ class CalendarComponent {
|
|
|
3745
3824
|
year: 'numeric'
|
|
3746
3825
|
});
|
|
3747
3826
|
});
|
|
3827
|
+
yearPickerYears = computed(() => {
|
|
3828
|
+
const start = this.yearPickerStart();
|
|
3829
|
+
return Array.from({ length: 12 }, (_, i) => start + i);
|
|
3830
|
+
});
|
|
3748
3831
|
// Flat 42 cell list computed signal
|
|
3749
3832
|
gridCells = computed(() => {
|
|
3750
3833
|
const activeDate = this.activeMonthDate();
|
|
@@ -3757,22 +3840,24 @@ class CalendarComponent {
|
|
|
3757
3840
|
const cells = [];
|
|
3758
3841
|
const selectedVal = this.value();
|
|
3759
3842
|
const focusedVal = this.focusedDate();
|
|
3843
|
+
const rangeStartVal = this.rangeStart();
|
|
3844
|
+
const rangeEndVal = this.rangeEnd();
|
|
3760
3845
|
// Previous month cells
|
|
3761
3846
|
for (let i = startDayOfWeek - 1; i >= 0; i--) {
|
|
3762
3847
|
const day = prevMonthTotalDays - i;
|
|
3763
3848
|
const date = new Date(year, month - 1, day);
|
|
3764
|
-
cells.push(this.createCellObj(date, day, false, selectedVal, focusedVal));
|
|
3849
|
+
cells.push(this.createCellObj(date, day, false, selectedVal, focusedVal, rangeStartVal, rangeEndVal));
|
|
3765
3850
|
}
|
|
3766
3851
|
// Current month cells
|
|
3767
3852
|
for (let day = 1; day <= totalDays; day++) {
|
|
3768
3853
|
const date = new Date(year, month, day);
|
|
3769
|
-
cells.push(this.createCellObj(date, day, true, selectedVal, focusedVal));
|
|
3854
|
+
cells.push(this.createCellObj(date, day, true, selectedVal, focusedVal, rangeStartVal, rangeEndVal));
|
|
3770
3855
|
}
|
|
3771
3856
|
// Next month cells
|
|
3772
3857
|
const remainingCells = 42 - cells.length;
|
|
3773
3858
|
for (let day = 1; day <= remainingCells; day++) {
|
|
3774
3859
|
const date = new Date(year, month + 1, day);
|
|
3775
|
-
cells.push(this.createCellObj(date, day, false, selectedVal, focusedVal));
|
|
3860
|
+
cells.push(this.createCellObj(date, day, false, selectedVal, focusedVal, rangeStartVal, rangeEndVal));
|
|
3776
3861
|
}
|
|
3777
3862
|
return cells;
|
|
3778
3863
|
});
|
|
@@ -3785,15 +3870,25 @@ class CalendarComponent {
|
|
|
3785
3870
|
}
|
|
3786
3871
|
return rows;
|
|
3787
3872
|
});
|
|
3788
|
-
createCellObj(date, dayNumber, isCurrentMonth, selectedVal, focusedVal) {
|
|
3873
|
+
createCellObj(date, dayNumber, isCurrentMonth, selectedVal, focusedVal, rangeStartVal, rangeEndVal) {
|
|
3874
|
+
const isRangeStart = rangeStartVal ? this.isSameDay(date, rangeStartVal) : false;
|
|
3875
|
+
const isRangeEnd = rangeEndVal ? this.isSameDay(date, rangeEndVal) : false;
|
|
3876
|
+
const isInRange = rangeStartVal && rangeEndVal && date >= rangeStartVal && date <= rangeEndVal;
|
|
3877
|
+
const isDisabled = this.isDateDisabled(date);
|
|
3789
3878
|
return {
|
|
3790
3879
|
date,
|
|
3791
3880
|
dayNumber,
|
|
3792
3881
|
isCurrentMonth,
|
|
3793
3882
|
isToday: this.isSameDay(date, new Date()),
|
|
3794
|
-
isSelected:
|
|
3883
|
+
isSelected: this.selectionMode() === 'range'
|
|
3884
|
+
? (isRangeStart || isRangeEnd)
|
|
3885
|
+
: (selectedVal ? this.isSameDay(date, selectedVal) : false),
|
|
3795
3886
|
isFocused: this.isSameDay(date, focusedVal),
|
|
3796
|
-
events: this.getEventsForDate(date)
|
|
3887
|
+
events: this.getEventsForDate(date),
|
|
3888
|
+
isRangeStart,
|
|
3889
|
+
isRangeEnd,
|
|
3890
|
+
isInRange: !!isInRange,
|
|
3891
|
+
isDisabled
|
|
3797
3892
|
};
|
|
3798
3893
|
}
|
|
3799
3894
|
isSameDay(d1, d2) {
|
|
@@ -3801,6 +3896,25 @@ class CalendarComponent {
|
|
|
3801
3896
|
d1.getMonth() === d2.getMonth() &&
|
|
3802
3897
|
d1.getDate() === d2.getDate());
|
|
3803
3898
|
}
|
|
3899
|
+
isDateDisabled(date) {
|
|
3900
|
+
const minVal = this.min();
|
|
3901
|
+
const maxVal = this.max();
|
|
3902
|
+
// Reset times for exact day comparisons
|
|
3903
|
+
const checkDate = new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
3904
|
+
if (minVal) {
|
|
3905
|
+
const minDate = typeof minVal === 'string' ? new Date(minVal) : minVal;
|
|
3906
|
+
const minCheck = new Date(minDate.getFullYear(), minDate.getMonth(), minDate.getDate());
|
|
3907
|
+
if (checkDate < minCheck)
|
|
3908
|
+
return true;
|
|
3909
|
+
}
|
|
3910
|
+
if (maxVal) {
|
|
3911
|
+
const maxDate = typeof maxVal === 'string' ? new Date(maxVal) : maxVal;
|
|
3912
|
+
const maxCheck = new Date(maxDate.getFullYear(), maxDate.getMonth(), maxDate.getDate());
|
|
3913
|
+
if (checkDate > maxCheck)
|
|
3914
|
+
return true;
|
|
3915
|
+
}
|
|
3916
|
+
return false;
|
|
3917
|
+
}
|
|
3804
3918
|
getEventsForDate(date) {
|
|
3805
3919
|
return this.events().filter(e => {
|
|
3806
3920
|
const eDate = typeof e.date === 'string' ? new Date(e.date) : e.date;
|
|
@@ -3830,11 +3944,34 @@ class CalendarComponent {
|
|
|
3830
3944
|
this.emitMonthChange();
|
|
3831
3945
|
}
|
|
3832
3946
|
selectCell(cell) {
|
|
3833
|
-
if (this.readonly())
|
|
3947
|
+
if (this.readonly() || cell.isDisabled)
|
|
3834
3948
|
return;
|
|
3835
|
-
this.
|
|
3949
|
+
if (this.selectionMode() === 'range') {
|
|
3950
|
+
const clickedDate = cell.date;
|
|
3951
|
+
const start = this.rangeStart();
|
|
3952
|
+
const end = this.rangeEnd();
|
|
3953
|
+
if (!start || (start && end)) {
|
|
3954
|
+
this.rangeStart.set(clickedDate);
|
|
3955
|
+
this.rangeEnd.set(null);
|
|
3956
|
+
this.rangeSelect.emit({ start: clickedDate, end: null });
|
|
3957
|
+
}
|
|
3958
|
+
else {
|
|
3959
|
+
if (clickedDate < start) {
|
|
3960
|
+
this.rangeStart.set(clickedDate);
|
|
3961
|
+
this.rangeEnd.set(start);
|
|
3962
|
+
this.rangeSelect.emit({ start: clickedDate, end: start });
|
|
3963
|
+
}
|
|
3964
|
+
else {
|
|
3965
|
+
this.rangeEnd.set(clickedDate);
|
|
3966
|
+
this.rangeSelect.emit({ start, end: clickedDate });
|
|
3967
|
+
}
|
|
3968
|
+
}
|
|
3969
|
+
}
|
|
3970
|
+
else {
|
|
3971
|
+
this.value.set(cell.date);
|
|
3972
|
+
this.dateSelect.emit(cell.date);
|
|
3973
|
+
}
|
|
3836
3974
|
this.focusedDate.set(cell.date);
|
|
3837
|
-
this.dateSelect.emit(cell.date);
|
|
3838
3975
|
// If clicked other month day, snap page view
|
|
3839
3976
|
if (!cell.isCurrentMonth) {
|
|
3840
3977
|
this.activeMonthDate.set(new Date(cell.date.getFullYear(), cell.date.getMonth(), 1));
|
|
@@ -3848,9 +3985,54 @@ class CalendarComponent {
|
|
|
3848
3985
|
month: active.getMonth()
|
|
3849
3986
|
});
|
|
3850
3987
|
}
|
|
3988
|
+
setView(view) {
|
|
3989
|
+
this.currentView.set(view);
|
|
3990
|
+
if (view === 'year-picker') {
|
|
3991
|
+
const year = this.activeMonthDate().getFullYear();
|
|
3992
|
+
this.yearPickerStart.set(year - 5);
|
|
3993
|
+
}
|
|
3994
|
+
}
|
|
3995
|
+
isCurrentActiveMonth(monthIdx) {
|
|
3996
|
+
return this.activeMonthDate().getMonth() === monthIdx;
|
|
3997
|
+
}
|
|
3998
|
+
isCurrentActiveYear(year) {
|
|
3999
|
+
return this.activeMonthDate().getFullYear() === year;
|
|
4000
|
+
}
|
|
4001
|
+
selectMonth(monthIdx) {
|
|
4002
|
+
const current = this.activeMonthDate();
|
|
4003
|
+
const updated = new Date(current.getFullYear(), monthIdx, 1);
|
|
4004
|
+
this.activeMonthDate.set(updated);
|
|
4005
|
+
this.focusedDate.set(updated);
|
|
4006
|
+
this.setView('month');
|
|
4007
|
+
this.emitMonthChange();
|
|
4008
|
+
}
|
|
4009
|
+
selectYear(year) {
|
|
4010
|
+
const current = this.activeMonthDate();
|
|
4011
|
+
const updated = new Date(year, current.getMonth(), 1);
|
|
4012
|
+
this.activeMonthDate.set(updated);
|
|
4013
|
+
this.focusedDate.set(updated);
|
|
4014
|
+
this.setView('month-picker');
|
|
4015
|
+
this.emitMonthChange();
|
|
4016
|
+
}
|
|
4017
|
+
changeYear(delta) {
|
|
4018
|
+
const current = this.activeMonthDate();
|
|
4019
|
+
const updated = new Date(current.getFullYear() + delta, current.getMonth(), 1);
|
|
4020
|
+
this.activeMonthDate.set(updated);
|
|
4021
|
+
this.focusedDate.set(updated);
|
|
4022
|
+
this.emitMonthChange();
|
|
4023
|
+
}
|
|
4024
|
+
changeYearRange(delta) {
|
|
4025
|
+
this.yearPickerStart.update(start => start + delta);
|
|
4026
|
+
}
|
|
4027
|
+
onEventClick(event, calEvent) {
|
|
4028
|
+
event.stopPropagation();
|
|
4029
|
+
if (this.readonly())
|
|
4030
|
+
return;
|
|
4031
|
+
this.eventClick.emit(calEvent);
|
|
4032
|
+
}
|
|
3851
4033
|
// Keyboard navigation
|
|
3852
4034
|
onCellKeyDown(event, cell) {
|
|
3853
|
-
if (this.readonly())
|
|
4035
|
+
if (this.readonly() || cell.isDisabled)
|
|
3854
4036
|
return;
|
|
3855
4037
|
let handled = false;
|
|
3856
4038
|
const currentFocus = new Date(this.focusedDate());
|
|
@@ -3879,6 +4061,10 @@ class CalendarComponent {
|
|
|
3879
4061
|
}
|
|
3880
4062
|
if (handled) {
|
|
3881
4063
|
event.preventDefault();
|
|
4064
|
+
// Prevent moving focus to a disabled date
|
|
4065
|
+
if (this.isDateDisabled(currentFocus)) {
|
|
4066
|
+
return;
|
|
4067
|
+
}
|
|
3882
4068
|
this.focusedDate.set(currentFocus);
|
|
3883
4069
|
// Check if we navigated to a date outside the current active month, and auto-snap activeMonth
|
|
3884
4070
|
const active = this.activeMonthDate();
|
|
@@ -3897,7 +4083,7 @@ class CalendarComponent {
|
|
|
3897
4083
|
}
|
|
3898
4084
|
}
|
|
3899
4085
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: CalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3900
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: CalendarComponent, isStandalone: true, selector: "ngx-calendar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", dateSelect: "dateSelect", monthChange: "monthChange" }, queries: [{ propertyName: "dayTemplateSignal", first: true, predicate: ["dayTemplate"], descendants: true }], viewQueries: [{ propertyName: "cellElements", predicate: ["cellEl"], descendants: true }], ngImport: i0, template: `
|
|
4086
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: CalendarComponent, isStandalone: true, selector: "ngx-calendar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, rangeStart: { classPropertyName: "rangeStart", publicName: "rangeStart", isSignal: true, isRequired: false, transformFunction: null }, rangeEnd: { classPropertyName: "rangeEnd", publicName: "rangeEnd", isSignal: true, isRequired: false, transformFunction: null }, events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", rangeStart: "rangeStartChange", rangeEnd: "rangeEndChange", dateSelect: "dateSelect", rangeSelect: "rangeSelect", monthChange: "monthChange", eventClick: "eventClick" }, queries: [{ propertyName: "dayTemplateSignal", first: true, predicate: ["dayTemplate"], descendants: true }], viewQueries: [{ propertyName: "cellElements", predicate: ["cellEl"], descendants: true }], ngImport: i0, template: `
|
|
3901
4087
|
<div
|
|
3902
4088
|
class="ngx-calendar-container"
|
|
3903
4089
|
role="application"
|
|
@@ -3906,115 +4092,220 @@ class CalendarComponent {
|
|
|
3906
4092
|
<!-- HEADER -->
|
|
3907
4093
|
<div class="ngx-calendar-header">
|
|
3908
4094
|
<h2 class="ngx-calendar-title" aria-live="polite">
|
|
3909
|
-
|
|
4095
|
+
@if (currentView() === 'month') {
|
|
4096
|
+
<button class="ngx-calendar-title-link" (click)="setView('month-picker')" type="button">
|
|
4097
|
+
{{ monthLabel() }}
|
|
4098
|
+
</button>
|
|
4099
|
+
} @else if (currentView() === 'month-picker') {
|
|
4100
|
+
<button class="ngx-calendar-title-link" (click)="setView('year-picker')" type="button">
|
|
4101
|
+
{{ activeMonthDate().getFullYear() }}
|
|
4102
|
+
</button>
|
|
4103
|
+
} @else {
|
|
4104
|
+
<span class="ngx-calendar-title-static">
|
|
4105
|
+
Select Year
|
|
4106
|
+
</span>
|
|
4107
|
+
}
|
|
3910
4108
|
</h2>
|
|
3911
4109
|
<div class="ngx-calendar-actions">
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
‹
|
|
3919
|
-
</button>
|
|
3920
|
-
<button
|
|
3921
|
-
class="ngx-cal-btn today-btn"
|
|
3922
|
-
(click)="goToToday()"
|
|
3923
|
-
type="button"
|
|
3924
|
-
aria-label="Go to Today"
|
|
3925
|
-
>
|
|
3926
|
-
Today
|
|
3927
|
-
</button>
|
|
3928
|
-
<button
|
|
3929
|
-
class="ngx-cal-btn next-btn"
|
|
3930
|
-
(click)="nextMonth()"
|
|
3931
|
-
type="button"
|
|
3932
|
-
aria-label="Next Month"
|
|
3933
|
-
>
|
|
3934
|
-
›
|
|
3935
|
-
</button>
|
|
3936
|
-
</div>
|
|
3937
|
-
</div>
|
|
3938
|
-
|
|
3939
|
-
<!-- GRID -->
|
|
3940
|
-
<div
|
|
3941
|
-
class="ngx-calendar-grid"
|
|
3942
|
-
role="grid"
|
|
3943
|
-
[attr.aria-label]="monthLabel()"
|
|
3944
|
-
>
|
|
3945
|
-
<!-- WEEKDAYS HEADER -->
|
|
3946
|
-
<div class="ngx-calendar-row weekdays-row" role="row">
|
|
3947
|
-
@for (day of weekDays(); track day) {
|
|
3948
|
-
<div
|
|
3949
|
-
class="ngx-calendar-weekday"
|
|
3950
|
-
role="columnheader"
|
|
3951
|
-
[attr.aria-label]="day"
|
|
4110
|
+
@if (currentView() === 'month') {
|
|
4111
|
+
<button
|
|
4112
|
+
class="ngx-cal-btn prev-btn"
|
|
4113
|
+
(click)="prevMonth()"
|
|
4114
|
+
type="button"
|
|
4115
|
+
aria-label="Previous Month"
|
|
3952
4116
|
>
|
|
3953
|
-
|
|
3954
|
-
</
|
|
4117
|
+
‹
|
|
4118
|
+
</button>
|
|
4119
|
+
<button
|
|
4120
|
+
class="ngx-cal-btn today-btn"
|
|
4121
|
+
(click)="goToToday()"
|
|
4122
|
+
type="button"
|
|
4123
|
+
aria-label="Go to Today"
|
|
4124
|
+
>
|
|
4125
|
+
Today
|
|
4126
|
+
</button>
|
|
4127
|
+
<button
|
|
4128
|
+
class="ngx-cal-btn next-btn"
|
|
4129
|
+
(click)="nextMonth()"
|
|
4130
|
+
type="button"
|
|
4131
|
+
aria-label="Next Month"
|
|
4132
|
+
>
|
|
4133
|
+
›
|
|
4134
|
+
</button>
|
|
4135
|
+
} @else if (currentView() === 'month-picker') {
|
|
4136
|
+
<button
|
|
4137
|
+
class="ngx-cal-btn prev-btn"
|
|
4138
|
+
(click)="changeYear(-1)"
|
|
4139
|
+
type="button"
|
|
4140
|
+
aria-label="Previous Year"
|
|
4141
|
+
>
|
|
4142
|
+
‹
|
|
4143
|
+
</button>
|
|
4144
|
+
<button
|
|
4145
|
+
class="ngx-cal-btn back-btn"
|
|
4146
|
+
(click)="setView('month')"
|
|
4147
|
+
type="button"
|
|
4148
|
+
>
|
|
4149
|
+
Back
|
|
4150
|
+
</button>
|
|
4151
|
+
<button
|
|
4152
|
+
class="ngx-cal-btn next-btn"
|
|
4153
|
+
(click)="changeYear(1)"
|
|
4154
|
+
type="button"
|
|
4155
|
+
aria-label="Next Year"
|
|
4156
|
+
>
|
|
4157
|
+
›
|
|
4158
|
+
</button>
|
|
4159
|
+
} @else {
|
|
4160
|
+
<button
|
|
4161
|
+
class="ngx-cal-btn prev-btn"
|
|
4162
|
+
(click)="changeYearRange(-12)"
|
|
4163
|
+
type="button"
|
|
4164
|
+
aria-label="Previous Years"
|
|
4165
|
+
>
|
|
4166
|
+
‹
|
|
4167
|
+
</button>
|
|
4168
|
+
<button
|
|
4169
|
+
class="ngx-cal-btn back-btn"
|
|
4170
|
+
(click)="setView('month-picker')"
|
|
4171
|
+
type="button"
|
|
4172
|
+
>
|
|
4173
|
+
Back
|
|
4174
|
+
</button>
|
|
4175
|
+
<button
|
|
4176
|
+
class="ngx-cal-btn next-btn"
|
|
4177
|
+
(click)="changeYearRange(12)"
|
|
4178
|
+
type="button"
|
|
4179
|
+
aria-label="Next Years"
|
|
4180
|
+
>
|
|
4181
|
+
›
|
|
4182
|
+
</button>
|
|
3955
4183
|
}
|
|
3956
4184
|
</div>
|
|
4185
|
+
</div>
|
|
3957
4186
|
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
4187
|
+
<!-- MAIN VIEW AREA -->
|
|
4188
|
+
<div class="ngx-calendar-view-area">
|
|
4189
|
+
<!-- MONTH VIEW (GRID) -->
|
|
4190
|
+
@if (currentView() === 'month') {
|
|
4191
|
+
<div
|
|
4192
|
+
class="ngx-calendar-grid"
|
|
4193
|
+
role="grid"
|
|
4194
|
+
[attr.aria-label]="monthLabel()"
|
|
4195
|
+
>
|
|
4196
|
+
<!-- WEEKDAYS HEADER -->
|
|
4197
|
+
<div class="ngx-calendar-row weekdays-row" role="row">
|
|
4198
|
+
@for (day of weekDays(); track day) {
|
|
3963
4199
|
<div
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
[
|
|
3967
|
-
[class.other-month]="!cell.isCurrentMonth"
|
|
3968
|
-
[class.today]="cell.isToday"
|
|
3969
|
-
[class.selected]="cell.isSelected"
|
|
3970
|
-
[class.focused]="cell.isFocused"
|
|
3971
|
-
[class.has-events]="cell.events.length > 0"
|
|
3972
|
-
role="gridcell"
|
|
3973
|
-
[attr.aria-selected]="cell.isSelected"
|
|
3974
|
-
[attr.aria-label]="cell.date | date:'longDate'"
|
|
3975
|
-
[attr.tabindex]="cell.isFocused && !readonly() ? '0' : '-1'"
|
|
3976
|
-
(click)="selectCell(cell)"
|
|
3977
|
-
(keydown)="onCellKeyDown($event, cell)"
|
|
4200
|
+
class="ngx-calendar-weekday"
|
|
4201
|
+
role="columnheader"
|
|
4202
|
+
[attr.aria-label]="day"
|
|
3978
4203
|
>
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
<span class="today-indicator" aria-hidden="true"></span>
|
|
3984
|
-
}
|
|
3985
|
-
</div>
|
|
4204
|
+
{{ day.slice(0, 3) }}
|
|
4205
|
+
</div>
|
|
4206
|
+
}
|
|
4207
|
+
</div>
|
|
3986
4208
|
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4209
|
+
<!-- DAYS GRID -->
|
|
4210
|
+
<div class="ngx-calendar-body">
|
|
4211
|
+
@for (row of gridRows(); track $index) {
|
|
4212
|
+
<div class="ngx-calendar-row" role="row">
|
|
4213
|
+
@for (cell of row; track cell.date.getTime()) {
|
|
4214
|
+
<div
|
|
4215
|
+
#cellEl
|
|
4216
|
+
class="ngx-calendar-cell"
|
|
4217
|
+
[class.current-month]="cell.isCurrentMonth"
|
|
4218
|
+
[class.other-month]="!cell.isCurrentMonth"
|
|
4219
|
+
[class.today]="cell.isToday"
|
|
4220
|
+
[class.selected]="cell.isSelected"
|
|
4221
|
+
[class.focused]="cell.isFocused"
|
|
4222
|
+
[class.has-events]="cell.events.length > 0"
|
|
4223
|
+
[class.range-start]="cell.isRangeStart"
|
|
4224
|
+
[class.range-end]="cell.isRangeEnd"
|
|
4225
|
+
[class.in-range]="cell.isInRange"
|
|
4226
|
+
[class.disabled]="cell.isDisabled"
|
|
4227
|
+
role="gridcell"
|
|
4228
|
+
[attr.aria-selected]="cell.isSelected"
|
|
4229
|
+
[attr.aria-disabled]="cell.isDisabled"
|
|
4230
|
+
[attr.aria-label]="cell.date | date:'longDate'"
|
|
4231
|
+
[attr.tabindex]="cell.isFocused && !readonly() && !cell.isDisabled ? '0' : '-1'"
|
|
4232
|
+
(click)="selectCell(cell)"
|
|
4233
|
+
(keydown)="onCellKeyDown($event, cell)"
|
|
4234
|
+
>
|
|
4235
|
+
<!-- Cell Header (Day Number) -->
|
|
4236
|
+
<div class="cell-header">
|
|
4237
|
+
<span class="day-number">{{ cell.dayNumber }}</span>
|
|
4238
|
+
@if (cell.isToday) {
|
|
4239
|
+
<span class="today-indicator" aria-hidden="true"></span>
|
|
4240
|
+
}
|
|
4241
|
+
</div>
|
|
4242
|
+
|
|
4243
|
+
<!-- Events List or Custom Day Template -->
|
|
4244
|
+
<div class="cell-content">
|
|
4245
|
+
@if (dayTemplate()) {
|
|
4246
|
+
<ng-container
|
|
4247
|
+
*ngTemplateOutlet="dayTemplate()!; context: { $implicit: cell.date, events: cell.events }"
|
|
4248
|
+
></ng-container>
|
|
4249
|
+
} @else {
|
|
4250
|
+
@for (event of cell.events.slice(0, 3); track event.title) {
|
|
4251
|
+
<div
|
|
4252
|
+
class="calendar-event-pill"
|
|
4253
|
+
[style.border-left-color]="event.color || '#4f46e5'"
|
|
4254
|
+
[attr.title]="event.title + (event.description ? ': ' + event.description : '')"
|
|
4255
|
+
(click)="onEventClick($event, event)"
|
|
4256
|
+
>
|
|
4257
|
+
{{ event.title }}
|
|
4258
|
+
</div>
|
|
4259
|
+
}
|
|
4260
|
+
@if (cell.events.length > 3) {
|
|
4261
|
+
<div class="events-overflow-indicator">
|
|
4262
|
+
+{{ cell.events.length - 3 }} more
|
|
4263
|
+
</div>
|
|
4264
|
+
}
|
|
4265
|
+
}
|
|
4266
|
+
</div>
|
|
4267
|
+
</div>
|
|
4268
|
+
}
|
|
4010
4269
|
</div>
|
|
4011
4270
|
}
|
|
4012
4271
|
</div>
|
|
4013
|
-
|
|
4014
|
-
|
|
4272
|
+
</div>
|
|
4273
|
+
}
|
|
4274
|
+
|
|
4275
|
+
<!-- MONTH PICKER GRID -->
|
|
4276
|
+
@if (currentView() === 'month-picker') {
|
|
4277
|
+
<div class="ngx-calendar-picker-grid month-picker-grid">
|
|
4278
|
+
@for (month of monthsList(); track $index) {
|
|
4279
|
+
<button
|
|
4280
|
+
class="ngx-picker-item"
|
|
4281
|
+
[class.active]="isCurrentActiveMonth($index)"
|
|
4282
|
+
(click)="selectMonth($index)"
|
|
4283
|
+
type="button"
|
|
4284
|
+
>
|
|
4285
|
+
{{ month.slice(0, 3) }}
|
|
4286
|
+
</button>
|
|
4287
|
+
}
|
|
4288
|
+
</div>
|
|
4289
|
+
}
|
|
4290
|
+
|
|
4291
|
+
<!-- YEAR PICKER GRID -->
|
|
4292
|
+
@if (currentView() === 'year-picker') {
|
|
4293
|
+
<div class="ngx-calendar-picker-grid year-picker-grid">
|
|
4294
|
+
@for (year of yearPickerYears(); track year) {
|
|
4295
|
+
<button
|
|
4296
|
+
class="ngx-picker-item"
|
|
4297
|
+
[class.active]="isCurrentActiveYear(year)"
|
|
4298
|
+
(click)="selectYear(year)"
|
|
4299
|
+
type="button"
|
|
4300
|
+
>
|
|
4301
|
+
{{ year }}
|
|
4302
|
+
</button>
|
|
4303
|
+
}
|
|
4304
|
+
</div>
|
|
4305
|
+
}
|
|
4015
4306
|
</div>
|
|
4016
4307
|
</div>
|
|
4017
|
-
`, isInline: true, styles: [":host{display:block;width:100%;--ngx-calendar-border: #cbd5e1;--ngx-calendar-bg: #ffffff;--ngx-calendar-header-bg: #f8fafc;--ngx-calendar-text: #0f172a;--ngx-calendar-text-muted: #64748b;--ngx-calendar-cell-other-bg: #f8fafc;--ngx-calendar-hover-bg: #f1f5f9;--ngx-calendar-focus-shadow: 0 0 0 3px rgba(79, 70, 229, .2);--ngx-calendar-active-color: #4f46e5;--ngx-calendar-selected-bg: rgba(79, 70, 229, .05);--ngx-calendar-selected-border: #4f46e5;--event-pill-bg: #f1f5f9;--event-pill-text: #334155}:host-context(body.dark),:host-context(.dark),:host-context(.dark-theme){--ngx-calendar-border: #334155;--ngx-calendar-bg: #0f172a;--ngx-calendar-header-bg: #1e293b;--ngx-calendar-text: #f8fafc;--ngx-calendar-text-muted: #94a3b8;--ngx-calendar-cell-other-bg: #0b0f19;--ngx-calendar-hover-bg: #1e293b;--ngx-calendar-focus-shadow: 0 0 0 3px rgba(129, 140, 248, .25);--ngx-calendar-active-color: #818cf8;--ngx-calendar-selected-bg: rgba(129, 140, 248, .08);--ngx-calendar-selected-border: #818cf8;--event-pill-bg: #1e293b;--event-pill-text: #cbd5e1}.ngx-calendar-container{display:flex;flex-direction:column;border:1px solid var(--ngx-calendar-border);border-radius:12px;background:var(--ngx-calendar-bg);color:var(--ngx-calendar-text);font-family:inherit;overflow:hidden;box-shadow:0 4px 20px -2px #0000000d;transition:all .3s cubic-bezier(.4,0,.2,1)}.ngx-calendar-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;background:var(--ngx-calendar-header-bg);border-bottom:1px solid var(--ngx-calendar-border)}.ngx-calendar-title{margin:0;font-size:18px;font-weight:700;letter-spacing:-.3px}.ngx-calendar-actions{display:flex;align-items:center;gap:6px}.ngx-cal-btn{background:var(--ngx-calendar-bg);border:1px solid var(--ngx-calendar-border);border-radius:8px;color:var(--ngx-calendar-text);font-size:13px;font-weight:600;padding:6px 12px;cursor:pointer;font-family:inherit;transition:all .2s ease;display:inline-flex;align-items:center;justify-content:center}.ngx-cal-btn:hover{background:var(--ngx-calendar-hover-bg);border-color:var(--ngx-calendar-active-color);color:var(--ngx-calendar-active-color)}.prev-btn,.next-btn{font-size:16px;width:32px;height:32px;padding:0}.ngx-calendar-grid{display:flex;flex-direction:column;width:100%}.ngx-calendar-row{display:grid;grid-template-columns:repeat(7,1fr);width:100%}.weekdays-row{border-bottom:1px solid var(--ngx-calendar-border);background:var(--ngx-calendar-header-bg)}.ngx-calendar-weekday{padding:12px 6px;text-align:center;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--ngx-calendar-text-muted)}.ngx-calendar-body{display:flex;flex-direction:column}.ngx-calendar-cell{min-height:100px;border-right:1px solid var(--ngx-calendar-border);border-bottom:1px solid var(--ngx-calendar-border);padding:8px;display:flex;flex-direction:column;gap:6px;transition:all .2s cubic-bezier(.4,0,.2,1);position:relative;outline:none;background:var(--ngx-calendar-bg)}.ngx-calendar-row .ngx-calendar-cell:last-child{border-right:none}.ngx-calendar-body .ngx-calendar-row:last-child .ngx-calendar-cell{border-bottom:none}.ngx-calendar-cell.other-month{background:var(--ngx-calendar-cell-other-bg)}.ngx-calendar-cell.other-month .day-number{color:var(--ngx-calendar-text-muted);opacity:.6}.ngx-calendar-cell:not(.selected):hover{background:var(--ngx-calendar-hover-bg);cursor:pointer}.ngx-calendar-cell.selected{background:var(--ngx-calendar-selected-bg)}.ngx-calendar-cell.selected:after{content:\"\";position:absolute;inset:0;border:2px solid var(--ngx-calendar-selected-border);border-radius:4px;pointer-events:none;animation:select-pulse .25s ease-out}.ngx-calendar-cell.focused{z-index:2}.ngx-calendar-cell.focused:focus-visible{box-shadow:var(--ngx-calendar-focus-shadow);border-color:var(--ngx-calendar-active-color)}.cell-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.day-number{font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;transition:all .2s ease}.today .day-number{background:var(--ngx-calendar-active-color);color:#fff!important;box-shadow:0 2px 8px #4f46e54d}.today-indicator{width:5px;height:5px;border-radius:50%;background:var(--ngx-calendar-active-color);margin-right:4px}.cell-content{flex:1;display:flex;flex-direction:column;gap:3px;overflow:hidden}.calendar-event-pill{font-size:11px;font-weight:550;padding:3px 6px;border-radius:4px;border-left:3px solid #4f46e5;background:var(--event-pill-bg);color:var(--event-pill-text);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:transform .15s ease,background-color .15s ease}.calendar-event-pill:hover{transform:translate(2px);background:var(--ngx-calendar-hover-bg)}.events-overflow-indicator{font-size:10px;font-weight:700;color:var(--ngx-calendar-active-color);padding-left:6px;margin-top:2px}@keyframes select-pulse{0%{transform:scale(.98);opacity:.7}to{transform:scale(1);opacity:1}}@media (max-width: 768px){.ngx-calendar-cell{min-height:70px;padding:4px}.calendar-event-pill{display:none}.ngx-calendar-cell.has-events:after{content:\"\\2022\";position:absolute;bottom:2px;left:50%;transform:translate(-50%);color:var(--ngx-calendar-active-color);font-size:16px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4308
|
+
`, isInline: true, styles: [":host{display:block;width:100%;--ngx-calendar-border: #cbd5e1;--ngx-calendar-bg: #ffffff;--ngx-calendar-header-bg: #f8fafc;--ngx-calendar-text: #0f172a;--ngx-calendar-text-muted: #64748b;--ngx-calendar-cell-other-bg: #f8fafc;--ngx-calendar-hover-bg: #f1f5f9;--ngx-calendar-focus-shadow: 0 0 0 3px rgba(79, 70, 229, .2);--ngx-calendar-active-color: #4f46e5;--ngx-calendar-selected-bg: rgba(79, 70, 229, .05);--ngx-calendar-selected-border: #4f46e5;--event-pill-bg: #f1f5f9;--event-pill-text: #334155}:host-context(body.dark),:host-context(.dark),:host-context(.dark-theme){--ngx-calendar-border: #334155;--ngx-calendar-bg: #0f172a;--ngx-calendar-header-bg: #1e293b;--ngx-calendar-text: #f8fafc;--ngx-calendar-text-muted: #94a3b8;--ngx-calendar-cell-other-bg: #0b0f19;--ngx-calendar-hover-bg: #1e293b;--ngx-calendar-focus-shadow: 0 0 0 3px rgba(129, 140, 248, .25);--ngx-calendar-active-color: #818cf8;--ngx-calendar-selected-bg: rgba(129, 140, 248, .08);--ngx-calendar-selected-border: #818cf8;--event-pill-bg: #1e293b;--event-pill-text: #cbd5e1}.ngx-calendar-container{display:flex;flex-direction:column;border:1px solid var(--ngx-calendar-border);border-radius:12px;background:var(--ngx-calendar-bg);color:var(--ngx-calendar-text);font-family:inherit;overflow:hidden;box-shadow:0 4px 20px -2px #0000000d;transition:all .3s cubic-bezier(.4,0,.2,1)}.ngx-calendar-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;background:var(--ngx-calendar-header-bg);border-bottom:1px solid var(--ngx-calendar-border)}.ngx-calendar-title{margin:0;font-size:18px;font-weight:700;letter-spacing:-.3px}.ngx-calendar-title-link{background:none;border:none;font-size:inherit;font-weight:inherit;color:inherit;cursor:pointer;padding:0;font-family:inherit;transition:color .2s ease;display:inline-flex;align-items:center}.ngx-calendar-title-link:hover{color:var(--ngx-calendar-active-color)}.ngx-calendar-title-static{font-size:inherit;font-weight:inherit;color:inherit}.ngx-calendar-actions{display:flex;align-items:center;gap:6px}.ngx-cal-btn{background:var(--ngx-calendar-bg);border:1px solid var(--ngx-calendar-border);border-radius:8px;color:var(--ngx-calendar-text);font-size:13px;font-weight:600;padding:6px 12px;cursor:pointer;font-family:inherit;transition:all .2s ease;display:inline-flex;align-items:center;justify-content:center}.ngx-cal-btn:hover{background:var(--ngx-calendar-hover-bg);border-color:var(--ngx-calendar-active-color);color:var(--ngx-calendar-active-color)}.prev-btn,.next-btn{font-size:16px;width:32px;height:32px;padding:0}.ngx-calendar-view-area{position:relative;width:100%;background:var(--ngx-calendar-bg)}.ngx-calendar-grid{display:flex;flex-direction:column;width:100%}.ngx-calendar-row{display:grid;grid-template-columns:repeat(7,1fr);width:100%}.weekdays-row{border-bottom:1px solid var(--ngx-calendar-border);background:var(--ngx-calendar-header-bg)}.ngx-calendar-weekday{padding:12px 6px;text-align:center;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--ngx-calendar-text-muted)}.ngx-calendar-body{display:flex;flex-direction:column}.ngx-calendar-cell{min-height:100px;border-right:1px solid var(--ngx-calendar-border);border-bottom:1px solid var(--ngx-calendar-border);padding:8px;display:flex;flex-direction:column;gap:6px;transition:all .2s cubic-bezier(.4,0,.2,1);position:relative;outline:none;background:var(--ngx-calendar-bg)}.ngx-calendar-row .ngx-calendar-cell:last-child{border-right:none}.ngx-calendar-body .ngx-calendar-row:last-child .ngx-calendar-cell{border-bottom:none}.ngx-calendar-cell.other-month{background:var(--ngx-calendar-cell-other-bg)}.ngx-calendar-cell.other-month .day-number{color:var(--ngx-calendar-text-muted);opacity:.6}.ngx-calendar-cell:not(.selected):not(.disabled):hover{background:var(--ngx-calendar-hover-bg);cursor:pointer}.ngx-calendar-cell.selected{background:var(--ngx-calendar-selected-bg)}.ngx-calendar-cell.selected:after{content:\"\";position:absolute;inset:0;border:2px solid var(--ngx-calendar-selected-border);border-radius:4px;pointer-events:none;animation:select-pulse .25s ease-out}.ngx-calendar-cell.focused{z-index:2}.ngx-calendar-cell.focused:focus-visible{box-shadow:var(--ngx-calendar-focus-shadow);border-color:var(--ngx-calendar-active-color)}.ngx-calendar-cell.in-range{background:var(--ngx-calendar-selected-bg)!important}.ngx-calendar-cell.range-start{border-top-left-radius:8px;border-bottom-left-radius:8px;background:var(--ngx-calendar-selected-bg)!important}.ngx-calendar-cell.range-end{border-top-right-radius:8px;border-bottom-right-radius:8px;background:var(--ngx-calendar-selected-bg)!important}.ngx-calendar-cell.range-start:after{content:\"\";position:absolute;inset:0;border:2px solid var(--ngx-calendar-selected-border);border-radius:8px 0 0 8px;pointer-events:none}.ngx-calendar-cell.range-end:after{content:\"\";position:absolute;inset:0;border:2px solid var(--ngx-calendar-selected-border);border-radius:0 8px 8px 0;pointer-events:none}.ngx-calendar-cell.disabled{opacity:.35;pointer-events:none;background:var(--ngx-calendar-cell-other-bg);cursor:not-allowed}.ngx-calendar-cell.disabled .day-number{text-decoration:line-through;color:var(--ngx-calendar-text-muted)}.cell-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.day-number{font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;transition:all .2s ease}.today .day-number{background:var(--ngx-calendar-active-color);color:#fff!important;box-shadow:0 2px 8px #4f46e54d}.today-indicator{width:5px;height:5px;border-radius:50%;background:var(--ngx-calendar-active-color);margin-right:4px}.cell-content{flex:1;display:flex;flex-direction:column;gap:3px;overflow:hidden}.calendar-event-pill{font-size:11px;font-weight:550;padding:3px 6px;border-radius:4px;border-left:3px solid #4f46e5;background:var(--event-pill-bg);color:var(--event-pill-text);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:transform .15s ease,background-color .15s ease}.calendar-event-pill:hover{transform:translate(2px);background:var(--ngx-calendar-hover-bg)}.events-overflow-indicator{font-size:10px;font-weight:700;color:var(--ngx-calendar-active-color);padding-left:6px;margin-top:2px}.ngx-calendar-picker-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:24px;background:var(--ngx-calendar-bg);animation:view-fade-in .25s cubic-bezier(.4,0,.2,1)}@keyframes view-fade-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}.ngx-picker-item{background:var(--ngx-calendar-bg);border:1px solid var(--ngx-calendar-border);border-radius:8px;color:var(--ngx-calendar-text);padding:16px 8px;font-size:14px;font-weight:600;cursor:pointer;text-align:center;font-family:inherit;transition:all .2s cubic-bezier(.4,0,.2,1)}.ngx-picker-item:hover{background:var(--ngx-calendar-hover-bg);border-color:var(--ngx-calendar-active-color);color:var(--ngx-calendar-active-color);transform:translateY(-1px)}.ngx-picker-item.active{background:var(--ngx-calendar-active-color);color:#fff;border-color:var(--ngx-calendar-active-color);box-shadow:0 4px 12px #4f46e540}@keyframes select-pulse{0%{transform:scale(.98);opacity:.7}to{transform:scale(1);opacity:1}}@media (max-width: 768px){.ngx-calendar-cell{min-height:70px;padding:4px}.calendar-event-pill{display:none}.ngx-calendar-cell.has-events:after{content:\"\\2022\";position:absolute;bottom:2px;left:50%;transform:translate(-50%);color:var(--ngx-calendar-active-color);font-size:16px}.ngx-calendar-picker-grid{grid-template-columns:repeat(3,1fr)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4018
4309
|
}
|
|
4019
4310
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: CalendarComponent, decorators: [{
|
|
4020
4311
|
type: Component,
|
|
@@ -4027,115 +4318,220 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
4027
4318
|
<!-- HEADER -->
|
|
4028
4319
|
<div class="ngx-calendar-header">
|
|
4029
4320
|
<h2 class="ngx-calendar-title" aria-live="polite">
|
|
4030
|
-
|
|
4321
|
+
@if (currentView() === 'month') {
|
|
4322
|
+
<button class="ngx-calendar-title-link" (click)="setView('month-picker')" type="button">
|
|
4323
|
+
{{ monthLabel() }}
|
|
4324
|
+
</button>
|
|
4325
|
+
} @else if (currentView() === 'month-picker') {
|
|
4326
|
+
<button class="ngx-calendar-title-link" (click)="setView('year-picker')" type="button">
|
|
4327
|
+
{{ activeMonthDate().getFullYear() }}
|
|
4328
|
+
</button>
|
|
4329
|
+
} @else {
|
|
4330
|
+
<span class="ngx-calendar-title-static">
|
|
4331
|
+
Select Year
|
|
4332
|
+
</span>
|
|
4333
|
+
}
|
|
4031
4334
|
</h2>
|
|
4032
4335
|
<div class="ngx-calendar-actions">
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
‹
|
|
4040
|
-
</button>
|
|
4041
|
-
<button
|
|
4042
|
-
class="ngx-cal-btn today-btn"
|
|
4043
|
-
(click)="goToToday()"
|
|
4044
|
-
type="button"
|
|
4045
|
-
aria-label="Go to Today"
|
|
4046
|
-
>
|
|
4047
|
-
Today
|
|
4048
|
-
</button>
|
|
4049
|
-
<button
|
|
4050
|
-
class="ngx-cal-btn next-btn"
|
|
4051
|
-
(click)="nextMonth()"
|
|
4052
|
-
type="button"
|
|
4053
|
-
aria-label="Next Month"
|
|
4054
|
-
>
|
|
4055
|
-
›
|
|
4056
|
-
</button>
|
|
4057
|
-
</div>
|
|
4058
|
-
</div>
|
|
4059
|
-
|
|
4060
|
-
<!-- GRID -->
|
|
4061
|
-
<div
|
|
4062
|
-
class="ngx-calendar-grid"
|
|
4063
|
-
role="grid"
|
|
4064
|
-
[attr.aria-label]="monthLabel()"
|
|
4065
|
-
>
|
|
4066
|
-
<!-- WEEKDAYS HEADER -->
|
|
4067
|
-
<div class="ngx-calendar-row weekdays-row" role="row">
|
|
4068
|
-
@for (day of weekDays(); track day) {
|
|
4069
|
-
<div
|
|
4070
|
-
class="ngx-calendar-weekday"
|
|
4071
|
-
role="columnheader"
|
|
4072
|
-
[attr.aria-label]="day"
|
|
4336
|
+
@if (currentView() === 'month') {
|
|
4337
|
+
<button
|
|
4338
|
+
class="ngx-cal-btn prev-btn"
|
|
4339
|
+
(click)="prevMonth()"
|
|
4340
|
+
type="button"
|
|
4341
|
+
aria-label="Previous Month"
|
|
4073
4342
|
>
|
|
4074
|
-
|
|
4075
|
-
</
|
|
4343
|
+
‹
|
|
4344
|
+
</button>
|
|
4345
|
+
<button
|
|
4346
|
+
class="ngx-cal-btn today-btn"
|
|
4347
|
+
(click)="goToToday()"
|
|
4348
|
+
type="button"
|
|
4349
|
+
aria-label="Go to Today"
|
|
4350
|
+
>
|
|
4351
|
+
Today
|
|
4352
|
+
</button>
|
|
4353
|
+
<button
|
|
4354
|
+
class="ngx-cal-btn next-btn"
|
|
4355
|
+
(click)="nextMonth()"
|
|
4356
|
+
type="button"
|
|
4357
|
+
aria-label="Next Month"
|
|
4358
|
+
>
|
|
4359
|
+
›
|
|
4360
|
+
</button>
|
|
4361
|
+
} @else if (currentView() === 'month-picker') {
|
|
4362
|
+
<button
|
|
4363
|
+
class="ngx-cal-btn prev-btn"
|
|
4364
|
+
(click)="changeYear(-1)"
|
|
4365
|
+
type="button"
|
|
4366
|
+
aria-label="Previous Year"
|
|
4367
|
+
>
|
|
4368
|
+
‹
|
|
4369
|
+
</button>
|
|
4370
|
+
<button
|
|
4371
|
+
class="ngx-cal-btn back-btn"
|
|
4372
|
+
(click)="setView('month')"
|
|
4373
|
+
type="button"
|
|
4374
|
+
>
|
|
4375
|
+
Back
|
|
4376
|
+
</button>
|
|
4377
|
+
<button
|
|
4378
|
+
class="ngx-cal-btn next-btn"
|
|
4379
|
+
(click)="changeYear(1)"
|
|
4380
|
+
type="button"
|
|
4381
|
+
aria-label="Next Year"
|
|
4382
|
+
>
|
|
4383
|
+
›
|
|
4384
|
+
</button>
|
|
4385
|
+
} @else {
|
|
4386
|
+
<button
|
|
4387
|
+
class="ngx-cal-btn prev-btn"
|
|
4388
|
+
(click)="changeYearRange(-12)"
|
|
4389
|
+
type="button"
|
|
4390
|
+
aria-label="Previous Years"
|
|
4391
|
+
>
|
|
4392
|
+
‹
|
|
4393
|
+
</button>
|
|
4394
|
+
<button
|
|
4395
|
+
class="ngx-cal-btn back-btn"
|
|
4396
|
+
(click)="setView('month-picker')"
|
|
4397
|
+
type="button"
|
|
4398
|
+
>
|
|
4399
|
+
Back
|
|
4400
|
+
</button>
|
|
4401
|
+
<button
|
|
4402
|
+
class="ngx-cal-btn next-btn"
|
|
4403
|
+
(click)="changeYearRange(12)"
|
|
4404
|
+
type="button"
|
|
4405
|
+
aria-label="Next Years"
|
|
4406
|
+
>
|
|
4407
|
+
›
|
|
4408
|
+
</button>
|
|
4076
4409
|
}
|
|
4077
4410
|
</div>
|
|
4411
|
+
</div>
|
|
4078
4412
|
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4413
|
+
<!-- MAIN VIEW AREA -->
|
|
4414
|
+
<div class="ngx-calendar-view-area">
|
|
4415
|
+
<!-- MONTH VIEW (GRID) -->
|
|
4416
|
+
@if (currentView() === 'month') {
|
|
4417
|
+
<div
|
|
4418
|
+
class="ngx-calendar-grid"
|
|
4419
|
+
role="grid"
|
|
4420
|
+
[attr.aria-label]="monthLabel()"
|
|
4421
|
+
>
|
|
4422
|
+
<!-- WEEKDAYS HEADER -->
|
|
4423
|
+
<div class="ngx-calendar-row weekdays-row" role="row">
|
|
4424
|
+
@for (day of weekDays(); track day) {
|
|
4084
4425
|
<div
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
[
|
|
4088
|
-
[class.other-month]="!cell.isCurrentMonth"
|
|
4089
|
-
[class.today]="cell.isToday"
|
|
4090
|
-
[class.selected]="cell.isSelected"
|
|
4091
|
-
[class.focused]="cell.isFocused"
|
|
4092
|
-
[class.has-events]="cell.events.length > 0"
|
|
4093
|
-
role="gridcell"
|
|
4094
|
-
[attr.aria-selected]="cell.isSelected"
|
|
4095
|
-
[attr.aria-label]="cell.date | date:'longDate'"
|
|
4096
|
-
[attr.tabindex]="cell.isFocused && !readonly() ? '0' : '-1'"
|
|
4097
|
-
(click)="selectCell(cell)"
|
|
4098
|
-
(keydown)="onCellKeyDown($event, cell)"
|
|
4426
|
+
class="ngx-calendar-weekday"
|
|
4427
|
+
role="columnheader"
|
|
4428
|
+
[attr.aria-label]="day"
|
|
4099
4429
|
>
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
<span class="today-indicator" aria-hidden="true"></span>
|
|
4105
|
-
}
|
|
4106
|
-
</div>
|
|
4430
|
+
{{ day.slice(0, 3) }}
|
|
4431
|
+
</div>
|
|
4432
|
+
}
|
|
4433
|
+
</div>
|
|
4107
4434
|
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4435
|
+
<!-- DAYS GRID -->
|
|
4436
|
+
<div class="ngx-calendar-body">
|
|
4437
|
+
@for (row of gridRows(); track $index) {
|
|
4438
|
+
<div class="ngx-calendar-row" role="row">
|
|
4439
|
+
@for (cell of row; track cell.date.getTime()) {
|
|
4440
|
+
<div
|
|
4441
|
+
#cellEl
|
|
4442
|
+
class="ngx-calendar-cell"
|
|
4443
|
+
[class.current-month]="cell.isCurrentMonth"
|
|
4444
|
+
[class.other-month]="!cell.isCurrentMonth"
|
|
4445
|
+
[class.today]="cell.isToday"
|
|
4446
|
+
[class.selected]="cell.isSelected"
|
|
4447
|
+
[class.focused]="cell.isFocused"
|
|
4448
|
+
[class.has-events]="cell.events.length > 0"
|
|
4449
|
+
[class.range-start]="cell.isRangeStart"
|
|
4450
|
+
[class.range-end]="cell.isRangeEnd"
|
|
4451
|
+
[class.in-range]="cell.isInRange"
|
|
4452
|
+
[class.disabled]="cell.isDisabled"
|
|
4453
|
+
role="gridcell"
|
|
4454
|
+
[attr.aria-selected]="cell.isSelected"
|
|
4455
|
+
[attr.aria-disabled]="cell.isDisabled"
|
|
4456
|
+
[attr.aria-label]="cell.date | date:'longDate'"
|
|
4457
|
+
[attr.tabindex]="cell.isFocused && !readonly() && !cell.isDisabled ? '0' : '-1'"
|
|
4458
|
+
(click)="selectCell(cell)"
|
|
4459
|
+
(keydown)="onCellKeyDown($event, cell)"
|
|
4460
|
+
>
|
|
4461
|
+
<!-- Cell Header (Day Number) -->
|
|
4462
|
+
<div class="cell-header">
|
|
4463
|
+
<span class="day-number">{{ cell.dayNumber }}</span>
|
|
4464
|
+
@if (cell.isToday) {
|
|
4465
|
+
<span class="today-indicator" aria-hidden="true"></span>
|
|
4466
|
+
}
|
|
4467
|
+
</div>
|
|
4468
|
+
|
|
4469
|
+
<!-- Events List or Custom Day Template -->
|
|
4470
|
+
<div class="cell-content">
|
|
4471
|
+
@if (dayTemplate()) {
|
|
4472
|
+
<ng-container
|
|
4473
|
+
*ngTemplateOutlet="dayTemplate()!; context: { $implicit: cell.date, events: cell.events }"
|
|
4474
|
+
></ng-container>
|
|
4475
|
+
} @else {
|
|
4476
|
+
@for (event of cell.events.slice(0, 3); track event.title) {
|
|
4477
|
+
<div
|
|
4478
|
+
class="calendar-event-pill"
|
|
4479
|
+
[style.border-left-color]="event.color || '#4f46e5'"
|
|
4480
|
+
[attr.title]="event.title + (event.description ? ': ' + event.description : '')"
|
|
4481
|
+
(click)="onEventClick($event, event)"
|
|
4482
|
+
>
|
|
4483
|
+
{{ event.title }}
|
|
4484
|
+
</div>
|
|
4485
|
+
}
|
|
4486
|
+
@if (cell.events.length > 3) {
|
|
4487
|
+
<div class="events-overflow-indicator">
|
|
4488
|
+
+{{ cell.events.length - 3 }} more
|
|
4489
|
+
</div>
|
|
4490
|
+
}
|
|
4491
|
+
}
|
|
4492
|
+
</div>
|
|
4493
|
+
</div>
|
|
4494
|
+
}
|
|
4131
4495
|
</div>
|
|
4132
4496
|
}
|
|
4133
4497
|
</div>
|
|
4134
|
-
|
|
4135
|
-
|
|
4498
|
+
</div>
|
|
4499
|
+
}
|
|
4500
|
+
|
|
4501
|
+
<!-- MONTH PICKER GRID -->
|
|
4502
|
+
@if (currentView() === 'month-picker') {
|
|
4503
|
+
<div class="ngx-calendar-picker-grid month-picker-grid">
|
|
4504
|
+
@for (month of monthsList(); track $index) {
|
|
4505
|
+
<button
|
|
4506
|
+
class="ngx-picker-item"
|
|
4507
|
+
[class.active]="isCurrentActiveMonth($index)"
|
|
4508
|
+
(click)="selectMonth($index)"
|
|
4509
|
+
type="button"
|
|
4510
|
+
>
|
|
4511
|
+
{{ month.slice(0, 3) }}
|
|
4512
|
+
</button>
|
|
4513
|
+
}
|
|
4514
|
+
</div>
|
|
4515
|
+
}
|
|
4516
|
+
|
|
4517
|
+
<!-- YEAR PICKER GRID -->
|
|
4518
|
+
@if (currentView() === 'year-picker') {
|
|
4519
|
+
<div class="ngx-calendar-picker-grid year-picker-grid">
|
|
4520
|
+
@for (year of yearPickerYears(); track year) {
|
|
4521
|
+
<button
|
|
4522
|
+
class="ngx-picker-item"
|
|
4523
|
+
[class.active]="isCurrentActiveYear(year)"
|
|
4524
|
+
(click)="selectYear(year)"
|
|
4525
|
+
type="button"
|
|
4526
|
+
>
|
|
4527
|
+
{{ year }}
|
|
4528
|
+
</button>
|
|
4529
|
+
}
|
|
4530
|
+
</div>
|
|
4531
|
+
}
|
|
4136
4532
|
</div>
|
|
4137
4533
|
</div>
|
|
4138
|
-
`, styles: [":host{display:block;width:100%;--ngx-calendar-border: #cbd5e1;--ngx-calendar-bg: #ffffff;--ngx-calendar-header-bg: #f8fafc;--ngx-calendar-text: #0f172a;--ngx-calendar-text-muted: #64748b;--ngx-calendar-cell-other-bg: #f8fafc;--ngx-calendar-hover-bg: #f1f5f9;--ngx-calendar-focus-shadow: 0 0 0 3px rgba(79, 70, 229, .2);--ngx-calendar-active-color: #4f46e5;--ngx-calendar-selected-bg: rgba(79, 70, 229, .05);--ngx-calendar-selected-border: #4f46e5;--event-pill-bg: #f1f5f9;--event-pill-text: #334155}:host-context(body.dark),:host-context(.dark),:host-context(.dark-theme){--ngx-calendar-border: #334155;--ngx-calendar-bg: #0f172a;--ngx-calendar-header-bg: #1e293b;--ngx-calendar-text: #f8fafc;--ngx-calendar-text-muted: #94a3b8;--ngx-calendar-cell-other-bg: #0b0f19;--ngx-calendar-hover-bg: #1e293b;--ngx-calendar-focus-shadow: 0 0 0 3px rgba(129, 140, 248, .25);--ngx-calendar-active-color: #818cf8;--ngx-calendar-selected-bg: rgba(129, 140, 248, .08);--ngx-calendar-selected-border: #818cf8;--event-pill-bg: #1e293b;--event-pill-text: #cbd5e1}.ngx-calendar-container{display:flex;flex-direction:column;border:1px solid var(--ngx-calendar-border);border-radius:12px;background:var(--ngx-calendar-bg);color:var(--ngx-calendar-text);font-family:inherit;overflow:hidden;box-shadow:0 4px 20px -2px #0000000d;transition:all .3s cubic-bezier(.4,0,.2,1)}.ngx-calendar-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;background:var(--ngx-calendar-header-bg);border-bottom:1px solid var(--ngx-calendar-border)}.ngx-calendar-title{margin:0;font-size:18px;font-weight:700;letter-spacing:-.3px}.ngx-calendar-actions{display:flex;align-items:center;gap:6px}.ngx-cal-btn{background:var(--ngx-calendar-bg);border:1px solid var(--ngx-calendar-border);border-radius:8px;color:var(--ngx-calendar-text);font-size:13px;font-weight:600;padding:6px 12px;cursor:pointer;font-family:inherit;transition:all .2s ease;display:inline-flex;align-items:center;justify-content:center}.ngx-cal-btn:hover{background:var(--ngx-calendar-hover-bg);border-color:var(--ngx-calendar-active-color);color:var(--ngx-calendar-active-color)}.prev-btn,.next-btn{font-size:16px;width:32px;height:32px;padding:0}.ngx-calendar-grid{display:flex;flex-direction:column;width:100%}.ngx-calendar-row{display:grid;grid-template-columns:repeat(7,1fr);width:100%}.weekdays-row{border-bottom:1px solid var(--ngx-calendar-border);background:var(--ngx-calendar-header-bg)}.ngx-calendar-weekday{padding:12px 6px;text-align:center;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--ngx-calendar-text-muted)}.ngx-calendar-body{display:flex;flex-direction:column}.ngx-calendar-cell{min-height:100px;border-right:1px solid var(--ngx-calendar-border);border-bottom:1px solid var(--ngx-calendar-border);padding:8px;display:flex;flex-direction:column;gap:6px;transition:all .2s cubic-bezier(.4,0,.2,1);position:relative;outline:none;background:var(--ngx-calendar-bg)}.ngx-calendar-row .ngx-calendar-cell:last-child{border-right:none}.ngx-calendar-body .ngx-calendar-row:last-child .ngx-calendar-cell{border-bottom:none}.ngx-calendar-cell.other-month{background:var(--ngx-calendar-cell-other-bg)}.ngx-calendar-cell.other-month .day-number{color:var(--ngx-calendar-text-muted);opacity:.6}.ngx-calendar-cell:not(.selected):hover{background:var(--ngx-calendar-hover-bg);cursor:pointer}.ngx-calendar-cell.selected{background:var(--ngx-calendar-selected-bg)}.ngx-calendar-cell.selected:after{content:\"\";position:absolute;inset:0;border:2px solid var(--ngx-calendar-selected-border);border-radius:4px;pointer-events:none;animation:select-pulse .25s ease-out}.ngx-calendar-cell.focused{z-index:2}.ngx-calendar-cell.focused:focus-visible{box-shadow:var(--ngx-calendar-focus-shadow);border-color:var(--ngx-calendar-active-color)}.cell-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.day-number{font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;transition:all .2s ease}.today .day-number{background:var(--ngx-calendar-active-color);color:#fff!important;box-shadow:0 2px 8px #4f46e54d}.today-indicator{width:5px;height:5px;border-radius:50%;background:var(--ngx-calendar-active-color);margin-right:4px}.cell-content{flex:1;display:flex;flex-direction:column;gap:3px;overflow:hidden}.calendar-event-pill{font-size:11px;font-weight:550;padding:3px 6px;border-radius:4px;border-left:3px solid #4f46e5;background:var(--event-pill-bg);color:var(--event-pill-text);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:transform .15s ease,background-color .15s ease}.calendar-event-pill:hover{transform:translate(2px);background:var(--ngx-calendar-hover-bg)}.events-overflow-indicator{font-size:10px;font-weight:700;color:var(--ngx-calendar-active-color);padding-left:6px;margin-top:2px}@keyframes select-pulse{0%{transform:scale(.98);opacity:.7}to{transform:scale(1);opacity:1}}@media (max-width: 768px){.ngx-calendar-cell{min-height:70px;padding:4px}.calendar-event-pill{display:none}.ngx-calendar-cell.has-events:after{content:\"\\2022\";position:absolute;bottom:2px;left:50%;transform:translate(-50%);color:var(--ngx-calendar-active-color);font-size:16px}}\n"] }]
|
|
4534
|
+
`, styles: [":host{display:block;width:100%;--ngx-calendar-border: #cbd5e1;--ngx-calendar-bg: #ffffff;--ngx-calendar-header-bg: #f8fafc;--ngx-calendar-text: #0f172a;--ngx-calendar-text-muted: #64748b;--ngx-calendar-cell-other-bg: #f8fafc;--ngx-calendar-hover-bg: #f1f5f9;--ngx-calendar-focus-shadow: 0 0 0 3px rgba(79, 70, 229, .2);--ngx-calendar-active-color: #4f46e5;--ngx-calendar-selected-bg: rgba(79, 70, 229, .05);--ngx-calendar-selected-border: #4f46e5;--event-pill-bg: #f1f5f9;--event-pill-text: #334155}:host-context(body.dark),:host-context(.dark),:host-context(.dark-theme){--ngx-calendar-border: #334155;--ngx-calendar-bg: #0f172a;--ngx-calendar-header-bg: #1e293b;--ngx-calendar-text: #f8fafc;--ngx-calendar-text-muted: #94a3b8;--ngx-calendar-cell-other-bg: #0b0f19;--ngx-calendar-hover-bg: #1e293b;--ngx-calendar-focus-shadow: 0 0 0 3px rgba(129, 140, 248, .25);--ngx-calendar-active-color: #818cf8;--ngx-calendar-selected-bg: rgba(129, 140, 248, .08);--ngx-calendar-selected-border: #818cf8;--event-pill-bg: #1e293b;--event-pill-text: #cbd5e1}.ngx-calendar-container{display:flex;flex-direction:column;border:1px solid var(--ngx-calendar-border);border-radius:12px;background:var(--ngx-calendar-bg);color:var(--ngx-calendar-text);font-family:inherit;overflow:hidden;box-shadow:0 4px 20px -2px #0000000d;transition:all .3s cubic-bezier(.4,0,.2,1)}.ngx-calendar-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;background:var(--ngx-calendar-header-bg);border-bottom:1px solid var(--ngx-calendar-border)}.ngx-calendar-title{margin:0;font-size:18px;font-weight:700;letter-spacing:-.3px}.ngx-calendar-title-link{background:none;border:none;font-size:inherit;font-weight:inherit;color:inherit;cursor:pointer;padding:0;font-family:inherit;transition:color .2s ease;display:inline-flex;align-items:center}.ngx-calendar-title-link:hover{color:var(--ngx-calendar-active-color)}.ngx-calendar-title-static{font-size:inherit;font-weight:inherit;color:inherit}.ngx-calendar-actions{display:flex;align-items:center;gap:6px}.ngx-cal-btn{background:var(--ngx-calendar-bg);border:1px solid var(--ngx-calendar-border);border-radius:8px;color:var(--ngx-calendar-text);font-size:13px;font-weight:600;padding:6px 12px;cursor:pointer;font-family:inherit;transition:all .2s ease;display:inline-flex;align-items:center;justify-content:center}.ngx-cal-btn:hover{background:var(--ngx-calendar-hover-bg);border-color:var(--ngx-calendar-active-color);color:var(--ngx-calendar-active-color)}.prev-btn,.next-btn{font-size:16px;width:32px;height:32px;padding:0}.ngx-calendar-view-area{position:relative;width:100%;background:var(--ngx-calendar-bg)}.ngx-calendar-grid{display:flex;flex-direction:column;width:100%}.ngx-calendar-row{display:grid;grid-template-columns:repeat(7,1fr);width:100%}.weekdays-row{border-bottom:1px solid var(--ngx-calendar-border);background:var(--ngx-calendar-header-bg)}.ngx-calendar-weekday{padding:12px 6px;text-align:center;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--ngx-calendar-text-muted)}.ngx-calendar-body{display:flex;flex-direction:column}.ngx-calendar-cell{min-height:100px;border-right:1px solid var(--ngx-calendar-border);border-bottom:1px solid var(--ngx-calendar-border);padding:8px;display:flex;flex-direction:column;gap:6px;transition:all .2s cubic-bezier(.4,0,.2,1);position:relative;outline:none;background:var(--ngx-calendar-bg)}.ngx-calendar-row .ngx-calendar-cell:last-child{border-right:none}.ngx-calendar-body .ngx-calendar-row:last-child .ngx-calendar-cell{border-bottom:none}.ngx-calendar-cell.other-month{background:var(--ngx-calendar-cell-other-bg)}.ngx-calendar-cell.other-month .day-number{color:var(--ngx-calendar-text-muted);opacity:.6}.ngx-calendar-cell:not(.selected):not(.disabled):hover{background:var(--ngx-calendar-hover-bg);cursor:pointer}.ngx-calendar-cell.selected{background:var(--ngx-calendar-selected-bg)}.ngx-calendar-cell.selected:after{content:\"\";position:absolute;inset:0;border:2px solid var(--ngx-calendar-selected-border);border-radius:4px;pointer-events:none;animation:select-pulse .25s ease-out}.ngx-calendar-cell.focused{z-index:2}.ngx-calendar-cell.focused:focus-visible{box-shadow:var(--ngx-calendar-focus-shadow);border-color:var(--ngx-calendar-active-color)}.ngx-calendar-cell.in-range{background:var(--ngx-calendar-selected-bg)!important}.ngx-calendar-cell.range-start{border-top-left-radius:8px;border-bottom-left-radius:8px;background:var(--ngx-calendar-selected-bg)!important}.ngx-calendar-cell.range-end{border-top-right-radius:8px;border-bottom-right-radius:8px;background:var(--ngx-calendar-selected-bg)!important}.ngx-calendar-cell.range-start:after{content:\"\";position:absolute;inset:0;border:2px solid var(--ngx-calendar-selected-border);border-radius:8px 0 0 8px;pointer-events:none}.ngx-calendar-cell.range-end:after{content:\"\";position:absolute;inset:0;border:2px solid var(--ngx-calendar-selected-border);border-radius:0 8px 8px 0;pointer-events:none}.ngx-calendar-cell.disabled{opacity:.35;pointer-events:none;background:var(--ngx-calendar-cell-other-bg);cursor:not-allowed}.ngx-calendar-cell.disabled .day-number{text-decoration:line-through;color:var(--ngx-calendar-text-muted)}.cell-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.day-number{font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;transition:all .2s ease}.today .day-number{background:var(--ngx-calendar-active-color);color:#fff!important;box-shadow:0 2px 8px #4f46e54d}.today-indicator{width:5px;height:5px;border-radius:50%;background:var(--ngx-calendar-active-color);margin-right:4px}.cell-content{flex:1;display:flex;flex-direction:column;gap:3px;overflow:hidden}.calendar-event-pill{font-size:11px;font-weight:550;padding:3px 6px;border-radius:4px;border-left:3px solid #4f46e5;background:var(--event-pill-bg);color:var(--event-pill-text);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:transform .15s ease,background-color .15s ease}.calendar-event-pill:hover{transform:translate(2px);background:var(--ngx-calendar-hover-bg)}.events-overflow-indicator{font-size:10px;font-weight:700;color:var(--ngx-calendar-active-color);padding-left:6px;margin-top:2px}.ngx-calendar-picker-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:24px;background:var(--ngx-calendar-bg);animation:view-fade-in .25s cubic-bezier(.4,0,.2,1)}@keyframes view-fade-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}.ngx-picker-item{background:var(--ngx-calendar-bg);border:1px solid var(--ngx-calendar-border);border-radius:8px;color:var(--ngx-calendar-text);padding:16px 8px;font-size:14px;font-weight:600;cursor:pointer;text-align:center;font-family:inherit;transition:all .2s cubic-bezier(.4,0,.2,1)}.ngx-picker-item:hover{background:var(--ngx-calendar-hover-bg);border-color:var(--ngx-calendar-active-color);color:var(--ngx-calendar-active-color);transform:translateY(-1px)}.ngx-picker-item.active{background:var(--ngx-calendar-active-color);color:#fff;border-color:var(--ngx-calendar-active-color);box-shadow:0 4px 12px #4f46e540}@keyframes select-pulse{0%{transform:scale(.98);opacity:.7}to{transform:scale(1);opacity:1}}@media (max-width: 768px){.ngx-calendar-cell{min-height:70px;padding:4px}.calendar-event-pill{display:none}.ngx-calendar-cell.has-events:after{content:\"\\2022\";position:absolute;bottom:2px;left:50%;transform:translate(-50%);color:var(--ngx-calendar-active-color);font-size:16px}.ngx-calendar-picker-grid{grid-template-columns:repeat(3,1fr)}}\n"] }]
|
|
4139
4535
|
}], propDecorators: { dayTemplateSignal: [{
|
|
4140
4536
|
type: ContentChild,
|
|
4141
4537
|
args: ['dayTemplate']
|