ngx-core-components 0.3.12 → 0.3.14
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/README.md +1070 -89
- package/fesm2022/ngx-core-components-grid.mjs +503 -130
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-layout.mjs +353 -70
- package/fesm2022/ngx-core-components-layout.mjs.map +1 -1
- package/fesm2022/ngx-core-components-navigation.mjs +170 -18
- package/fesm2022/ngx-core-components-navigation.mjs.map +1 -1
- package/fesm2022/ngx-core-components-views.mjs +1209 -145
- package/fesm2022/ngx-core-components-views.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs +1 -1
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/grid/data-grid/data-grid.component.d.ts +18 -1
- package/layout/accordion/accordion.component.d.ts +17 -1
- package/layout/card/card.component.d.ts +1 -1
- package/layout/public-api.d.ts +2 -2
- package/layout/stepper/stepper.component.d.ts +12 -1
- package/layout/tab-strip/tab-strip.component.d.ts +12 -3
- package/navigation/breadcrumb/breadcrumb.component.d.ts +9 -1
- package/navigation/context-menu/context-menu.component.d.ts +11 -0
- package/package.json +5 -5
- package/public-api.d.ts +1 -1
- package/views/public-api.d.ts +3 -3
- package/views/scheduler/models.d.ts +16 -0
- package/views/scheduler/scheduler.component.d.ts +86 -8
- package/views/timeline/timeline.component.d.ts +22 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, output, signal, ChangeDetectionStrategy, Component, computed, effect, ContentChild, ViewChildren, HostListener, ViewChild } from '@angular/core';
|
|
2
|
+
import { input, output, signal, ChangeDetectionStrategy, Component, computed, effect, ContentChild, ViewChildren, Directive, contentChild, inject, TemplateRef, HostListener, ViewChild } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { NgTemplateOutlet, CommonModule } from '@angular/common';
|
|
5
5
|
import * as i1$1 from '@angular/forms';
|
|
@@ -951,18 +951,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
951
951
|
args: ['titleInput']
|
|
952
952
|
}] } });
|
|
953
953
|
|
|
954
|
+
class NgxTimelineMarkerTemplateDirective {
|
|
955
|
+
templateRef;
|
|
956
|
+
constructor(templateRef) {
|
|
957
|
+
this.templateRef = templateRef;
|
|
958
|
+
}
|
|
959
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: NgxTimelineMarkerTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
960
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.20", type: NgxTimelineMarkerTemplateDirective, isStandalone: true, selector: "[ngxTimelineMarkerTemplate]", ngImport: i0 });
|
|
961
|
+
}
|
|
962
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: NgxTimelineMarkerTemplateDirective, decorators: [{
|
|
963
|
+
type: Directive,
|
|
964
|
+
args: [{
|
|
965
|
+
selector: '[ngxTimelineMarkerTemplate]',
|
|
966
|
+
standalone: true
|
|
967
|
+
}]
|
|
968
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
969
|
+
class NgxTimelineCardTemplateDirective {
|
|
970
|
+
templateRef;
|
|
971
|
+
constructor(templateRef) {
|
|
972
|
+
this.templateRef = templateRef;
|
|
973
|
+
}
|
|
974
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: NgxTimelineCardTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
975
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.20", type: NgxTimelineCardTemplateDirective, isStandalone: true, selector: "[ngxTimelineCardTemplate]", ngImport: i0 });
|
|
976
|
+
}
|
|
977
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: NgxTimelineCardTemplateDirective, decorators: [{
|
|
978
|
+
type: Directive,
|
|
979
|
+
args: [{
|
|
980
|
+
selector: '[ngxTimelineCardTemplate]',
|
|
981
|
+
standalone: true
|
|
982
|
+
}]
|
|
983
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
954
984
|
class TimelineComponent {
|
|
955
985
|
items = input([]);
|
|
956
986
|
orientation = input('vertical');
|
|
957
987
|
alternating = input(false);
|
|
988
|
+
clickable = input(false);
|
|
989
|
+
selectedItem = input(null);
|
|
990
|
+
itemClick = output();
|
|
991
|
+
markerTemplate = contentChild(NgxTimelineMarkerTemplateDirective);
|
|
992
|
+
cardTemplate = contentChild(NgxTimelineCardTemplateDirective);
|
|
958
993
|
isDate(val) {
|
|
959
994
|
return val instanceof Date;
|
|
960
995
|
}
|
|
961
996
|
asDate(val) {
|
|
962
997
|
return val;
|
|
963
998
|
}
|
|
999
|
+
onItemClick(item) {
|
|
1000
|
+
if (this.clickable()) {
|
|
1001
|
+
this.itemClick.emit(item);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
964
1004
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TimelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
965
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: TimelineComponent, isStandalone: true, selector: "ngx-timeline", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, alternating: { classPropertyName: "alternating", publicName: "alternating", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
1005
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: TimelineComponent, isStandalone: true, selector: "ngx-timeline", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, alternating: { classPropertyName: "alternating", publicName: "alternating", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, selectedItem: { classPropertyName: "selectedItem", publicName: "selectedItem", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, queries: [{ propertyName: "markerTemplate", first: true, predicate: NgxTimelineMarkerTemplateDirective, descendants: true, isSignal: true }, { propertyName: "cardTemplate", first: true, predicate: NgxTimelineCardTemplateDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
966
1006
|
<div
|
|
967
1007
|
class="ngx-timeline"
|
|
968
1008
|
[class.orientation-horizontal]="orientation() === 'horizontal'"
|
|
@@ -974,7 +1014,7 @@ class TimelineComponent {
|
|
|
974
1014
|
|
|
975
1015
|
<!-- Timeline Items List -->
|
|
976
1016
|
<div class="timeline-items">
|
|
977
|
-
@for (item of items(); track item.title; let i = $index) {
|
|
1017
|
+
@for (item of items(); track item.id || item.title; let i = $index) {
|
|
978
1018
|
<div
|
|
979
1019
|
class="timeline-item"
|
|
980
1020
|
[class.align-left]="alternating() && i % 2 === 0"
|
|
@@ -983,42 +1023,132 @@ class TimelineComponent {
|
|
|
983
1023
|
[class.status-warning]="item.status === 'warning'"
|
|
984
1024
|
[class.status-error]="item.status === 'error'"
|
|
985
1025
|
[class.status-info]="item.status === 'info'"
|
|
1026
|
+
[class.clickable]="clickable()"
|
|
1027
|
+
[class.active-item]="item.active"
|
|
1028
|
+
[class.item-selected]="selectedItem() === item"
|
|
986
1029
|
[style.--item-color]="item.color || 'var(--primary-color)'"
|
|
1030
|
+
[style.--item-index]="i"
|
|
1031
|
+
[attr.tabindex]="clickable() ? 0 : null"
|
|
1032
|
+
(click)="onItemClick(item)"
|
|
1033
|
+
(keydown.enter)="onItemClick(item)"
|
|
1034
|
+
(keydown.space)="$event.preventDefault(); onItemClick(item)"
|
|
987
1035
|
>
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
<
|
|
991
|
-
@if (
|
|
992
|
-
|
|
1036
|
+
@if (orientation() === 'horizontal') {
|
|
1037
|
+
<!-- UPPER HALF -->
|
|
1038
|
+
<div class="timeline-item-half upper-half">
|
|
1039
|
+
@if (!alternating() || i % 2 === 0) {
|
|
1040
|
+
<!-- Card Template -->
|
|
1041
|
+
@if (cardTemplate()) {
|
|
1042
|
+
<ng-container *ngTemplateOutlet="cardTemplate()!.templateRef; context: { $implicit: item, item: item, index: i }" />
|
|
1043
|
+
} @else {
|
|
1044
|
+
<div class="timeline-card">
|
|
1045
|
+
<div class="card-arrow"></div>
|
|
1046
|
+
<div class="card-header">
|
|
1047
|
+
<span class="item-time">
|
|
1048
|
+
@if (isDate(item.timestamp)) {
|
|
1049
|
+
{{ asDate(item.timestamp) | date:'mediumDate' }}
|
|
1050
|
+
} @else {
|
|
1051
|
+
{{ item.timestamp }}
|
|
1052
|
+
}
|
|
1053
|
+
</span>
|
|
1054
|
+
@if (item.subtitle) {
|
|
1055
|
+
<span class="item-subtitle">{{ item.subtitle }}</span>
|
|
1056
|
+
}
|
|
1057
|
+
</div>
|
|
1058
|
+
<h4 class="item-title">{{ item.title }}</h4>
|
|
1059
|
+
@if (item.description) {
|
|
1060
|
+
<p class="item-desc">{{ item.description }}</p>
|
|
1061
|
+
}
|
|
1062
|
+
</div>
|
|
1063
|
+
}
|
|
993
1064
|
}
|
|
994
|
-
</
|
|
995
|
-
</div>
|
|
1065
|
+
</div>
|
|
996
1066
|
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1067
|
+
<!-- MIDDLE MARKER -->
|
|
1068
|
+
<div class="timeline-marker">
|
|
1069
|
+
@if (markerTemplate()) {
|
|
1070
|
+
<ng-container *ngTemplateOutlet="markerTemplate()!.templateRef; context: { $implicit: item, item: item, index: i }" />
|
|
1071
|
+
} @else {
|
|
1072
|
+
<span class="marker-dot" [class.marker-dot-active]="item.active">
|
|
1073
|
+
@if (item.icon) {
|
|
1074
|
+
<span class="marker-icon">{{ item.icon }}</span>
|
|
1075
|
+
}
|
|
1076
|
+
</span>
|
|
1077
|
+
}
|
|
1078
|
+
</div>
|
|
1079
|
+
|
|
1080
|
+
<!-- LOWER HALF -->
|
|
1081
|
+
<div class="timeline-item-half lower-half">
|
|
1082
|
+
@if (alternating() && i % 2 !== 0) {
|
|
1083
|
+
<!-- Card Template -->
|
|
1084
|
+
@if (cardTemplate()) {
|
|
1085
|
+
<ng-container *ngTemplateOutlet="cardTemplate()!.templateRef; context: { $implicit: item, item: item, index: i }" />
|
|
1004
1086
|
} @else {
|
|
1005
|
-
|
|
1087
|
+
<div class="timeline-card">
|
|
1088
|
+
<div class="card-arrow"></div>
|
|
1089
|
+
<div class="card-header">
|
|
1090
|
+
<span class="item-time">
|
|
1091
|
+
@if (isDate(item.timestamp)) {
|
|
1092
|
+
{{ asDate(item.timestamp) | date:'mediumDate' }}
|
|
1093
|
+
} @else {
|
|
1094
|
+
{{ item.timestamp }}
|
|
1095
|
+
}
|
|
1096
|
+
</span>
|
|
1097
|
+
@if (item.subtitle) {
|
|
1098
|
+
<span class="item-subtitle">{{ item.subtitle }}</span>
|
|
1099
|
+
}
|
|
1100
|
+
</div>
|
|
1101
|
+
<h4 class="item-title">{{ item.title }}</h4>
|
|
1102
|
+
@if (item.description) {
|
|
1103
|
+
<p class="item-desc">{{ item.description }}</p>
|
|
1104
|
+
}
|
|
1105
|
+
</div>
|
|
1006
1106
|
}
|
|
1007
|
-
</span>
|
|
1008
|
-
@if (item.subtitle) {
|
|
1009
|
-
<span class="item-subtitle">{{ item.subtitle }}</span>
|
|
1010
1107
|
}
|
|
1011
1108
|
</div>
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1109
|
+
} @else {
|
|
1110
|
+
<!-- VERTICAL LAYOUT -->
|
|
1111
|
+
<div class="timeline-marker">
|
|
1112
|
+
@if (markerTemplate()) {
|
|
1113
|
+
<ng-container *ngTemplateOutlet="markerTemplate()!.templateRef; context: { $implicit: item, item: item, index: i }" />
|
|
1114
|
+
} @else {
|
|
1115
|
+
<span class="marker-dot" [class.marker-dot-active]="item.active">
|
|
1116
|
+
@if (item.icon) {
|
|
1117
|
+
<span class="marker-icon">{{ item.icon }}</span>
|
|
1118
|
+
}
|
|
1119
|
+
</span>
|
|
1120
|
+
}
|
|
1121
|
+
</div>
|
|
1122
|
+
|
|
1123
|
+
@if (cardTemplate()) {
|
|
1124
|
+
<ng-container *ngTemplateOutlet="cardTemplate()!.templateRef; context: { $implicit: item, item: item, index: i }" />
|
|
1125
|
+
} @else {
|
|
1126
|
+
<div class="timeline-card">
|
|
1127
|
+
<div class="card-arrow"></div>
|
|
1128
|
+
<div class="card-header">
|
|
1129
|
+
<span class="item-time">
|
|
1130
|
+
@if (isDate(item.timestamp)) {
|
|
1131
|
+
{{ asDate(item.timestamp) | date:'mediumDate' }}
|
|
1132
|
+
} @else {
|
|
1133
|
+
{{ item.timestamp }}
|
|
1134
|
+
}
|
|
1135
|
+
</span>
|
|
1136
|
+
@if (item.subtitle) {
|
|
1137
|
+
<span class="item-subtitle">{{ item.subtitle }}</span>
|
|
1138
|
+
}
|
|
1139
|
+
</div>
|
|
1140
|
+
<h4 class="item-title">{{ item.title }}</h4>
|
|
1141
|
+
@if (item.description) {
|
|
1142
|
+
<p class="item-desc">{{ item.description }}</p>
|
|
1143
|
+
}
|
|
1144
|
+
</div>
|
|
1015
1145
|
}
|
|
1016
|
-
|
|
1146
|
+
}
|
|
1017
1147
|
</div>
|
|
1018
1148
|
}
|
|
1019
1149
|
</div>
|
|
1020
1150
|
</div>
|
|
1021
|
-
`, isInline: true, styles: [":host{display:block;width:100%}.ngx-timeline{position:relative;width:100%;box-sizing:border-box;padding:
|
|
1151
|
+
`, isInline: true, styles: [":host{display:block;width:100%}.ngx-timeline{position:relative;width:100%;box-sizing:border-box;padding:24px 0}.timeline-track{position:absolute;background:var(--border-color, #e2e8f0);z-index:1;transition:background-color .2s ease}.orientation-vertical .timeline-track{top:0;bottom:0;left:20px;width:4px;transform:translate(-50%)}.orientation-vertical.alternating .timeline-track{left:50%}.orientation-horizontal .timeline-track{left:0;right:0;top:50%;height:4px;transform:translateY(-50%)}.timeline-items{display:flex;position:relative;z-index:2}.orientation-vertical .timeline-items{flex-direction:column;gap:28px}.orientation-horizontal .timeline-items{flex-direction:row;justify-content:flex-start;gap:24px;width:max-content;padding:24px 16px}.timeline-item{position:relative;display:flex;box-sizing:border-box;outline:none;opacity:0;animation:timelineItemEntrance .6s cubic-bezier(.16,1,.3,1) forwards;animation-delay:calc(var(--item-index, 0) * .08s)}@keyframes timelineItemEntrance{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.orientation-vertical .timeline-item{padding-left:48px;width:100%}.orientation-vertical.alternating .timeline-item{padding-left:0;width:50%}.orientation-vertical.alternating .timeline-item.align-left{align-self:flex-start;padding-right:36px;flex-direction:row-reverse}.orientation-vertical.alternating .timeline-item.align-right{align-self:flex-end;padding-left:36px}.orientation-horizontal .timeline-item{flex-direction:column;align-items:center;width:240px;min-width:240px;height:320px}.timeline-item.clickable{cursor:pointer}.timeline-marker{position:absolute;z-index:5;display:flex;align-items:center;justify-content:center}.orientation-vertical .timeline-marker{left:20px;top:14px;transform:translate(-50%)}.orientation-vertical.alternating .timeline-marker{left:100%;top:18px}.orientation-vertical.alternating .timeline-item.align-left .timeline-marker{left:100%;transform:translate(-50%)}.orientation-vertical.alternating .timeline-item.align-right .timeline-marker{left:0;transform:translate(-50%)}.orientation-horizontal .timeline-marker{top:50%;left:50%;transform:translate(-50%,-50%);height:30px;width:100%}.marker-dot{width:18px;height:18px;border-radius:50%;background:var(--bg-secondary, #ffffff);border:3px solid var(--item-color);box-shadow:0 0 0 3px #fff,var(--shadow-sm);display:flex;align-items:center;justify-content:center;transition:all .25s cubic-bezier(.4,0,.2,1)}.timeline-item:hover .marker-dot{transform:scale(1.18);box-shadow:0 0 0 4px #fff,0 0 0 6px var(--item-color),var(--shadow-md);background:var(--item-color);color:#fff}.marker-icon{font-size:9px;line-height:1;display:block}.marker-dot-active{position:relative}.marker-dot-active:after{content:\"\";position:absolute;inset:-6px;border-radius:50%;border:2px solid var(--item-color);animation:markerPulse 1.8s infinite ease-out;opacity:0;pointer-events:none}@keyframes markerPulse{0%{transform:scale(.85);opacity:.6}to{transform:scale(1.6);opacity:0}}.timeline-card{background:var(--ngx-timeline-card-bg, rgba(255, 255, 255, .7));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--ngx-timeline-card-border, rgba(226, 232, 240, .8));border-radius:12px;padding:16px 18px;box-shadow:var(--shadow-sm, 0 4px 6px -1px rgba(0, 0, 0, .05), 0 2px 4px -1px rgba(0, 0, 0, .03));position:relative;width:100%;box-sizing:border-box;transition:all .25s cubic-bezier(.4,0,.2,1)}.timeline-item:hover .timeline-card{transform:translateY(-4px);box-shadow:var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -2px rgba(0, 0, 0, .04));border-color:var(--item-color)}.timeline-item.item-selected .timeline-card{border-color:var(--item-color);box-shadow:0 0 0 3px #4f46e526,var(--shadow-md);background:var(--ngx-timeline-card-selected-bg, rgba(255, 255, 255, .95))}.timeline-item.clickable:focus-visible .timeline-card{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--item-color)}.card-arrow{position:absolute;width:8px;height:8px;background:inherit;border:1px solid inherit;border-color:inherit;border-style:solid;z-index:2}.orientation-vertical .timeline-card .card-arrow{top:18px;left:-5px;border-width:0 0 1px 1px;transform:rotate(45deg)}.orientation-vertical.alternating .timeline-item.align-left .timeline-card .card-arrow{left:auto;right:-5px;border-width:1px 1px 0 0;transform:rotate(45deg)}.orientation-horizontal .timeline-item-half{height:145px;width:100%;display:flex;justify-content:center;box-sizing:border-box}.orientation-horizontal .upper-half{align-items:flex-end;padding-bottom:12px}.orientation-horizontal .lower-half{align-items:flex-start;padding-top:12px}.orientation-horizontal .upper-half .timeline-card .card-arrow{bottom:-5px;left:50%;transform:translate(-50%) rotate(45deg);border-width:0 1px 1px 0}.orientation-horizontal .lower-half .timeline-card .card-arrow{top:-5px;left:50%;transform:translate(-50%) rotate(45deg);border-width:1px 0 0 1px}.card-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.item-time{font-size:11px;font-weight:700;color:var(--text-secondary, #64748b);text-transform:uppercase;letter-spacing:.5px}.item-subtitle{font-size:11px;font-weight:600;color:var(--item-color);background:var(--border-light, #f1f5f9);padding:2px 6px;border-radius:4px;transition:background-color .2s ease}.item-title{margin:0 0 6px;font-size:14px;font-weight:750;color:var(--text-primary, #0f172a)}.item-desc{margin:0;font-size:12px;color:var(--text-secondary, #64748b);line-height:1.5}.orientation-vertical.alternating .timeline-item.align-left .timeline-card{text-align:right}.orientation-vertical.alternating .timeline-item.align-left .card-header{flex-direction:row-reverse}.status-success{--item-color: #10b981 !important}.status-warning{--item-color: #f59e0b !important}.status-error{--item-color: #ef4444 !important}.status-info{--item-color: #3b82f6 !important}.ngx-timeline.dark .timeline-track{background:#334155}.ngx-timeline.dark .timeline-card{background:var(--ngx-timeline-card-bg-dark, rgba(30, 41, 59, .7));border-color:var(--ngx-timeline-card-border-dark, rgba(71, 85, 105, .8))}.ngx-timeline.dark .item-subtitle{background:#334155}.ngx-timeline.dark .item-title{color:#f8fafc}.ngx-timeline.dark .item-desc,.ngx-timeline.dark .item-time{color:#94a3b8}.ngx-timeline.dark .timeline-item.item-selected .timeline-card{background:var(--ngx-timeline-card-selected-bg-dark, rgba(30, 41, 59, .95))}\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 });
|
|
1022
1152
|
}
|
|
1023
1153
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TimelineComponent, decorators: [{
|
|
1024
1154
|
type: Component,
|
|
@@ -1034,7 +1164,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
1034
1164
|
|
|
1035
1165
|
<!-- Timeline Items List -->
|
|
1036
1166
|
<div class="timeline-items">
|
|
1037
|
-
@for (item of items(); track item.title; let i = $index) {
|
|
1167
|
+
@for (item of items(); track item.id || item.title; let i = $index) {
|
|
1038
1168
|
<div
|
|
1039
1169
|
class="timeline-item"
|
|
1040
1170
|
[class.align-left]="alternating() && i % 2 === 0"
|
|
@@ -1043,47 +1173,150 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
1043
1173
|
[class.status-warning]="item.status === 'warning'"
|
|
1044
1174
|
[class.status-error]="item.status === 'error'"
|
|
1045
1175
|
[class.status-info]="item.status === 'info'"
|
|
1176
|
+
[class.clickable]="clickable()"
|
|
1177
|
+
[class.active-item]="item.active"
|
|
1178
|
+
[class.item-selected]="selectedItem() === item"
|
|
1046
1179
|
[style.--item-color]="item.color || 'var(--primary-color)'"
|
|
1180
|
+
[style.--item-index]="i"
|
|
1181
|
+
[attr.tabindex]="clickable() ? 0 : null"
|
|
1182
|
+
(click)="onItemClick(item)"
|
|
1183
|
+
(keydown.enter)="onItemClick(item)"
|
|
1184
|
+
(keydown.space)="$event.preventDefault(); onItemClick(item)"
|
|
1047
1185
|
>
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
<
|
|
1051
|
-
@if (
|
|
1052
|
-
|
|
1186
|
+
@if (orientation() === 'horizontal') {
|
|
1187
|
+
<!-- UPPER HALF -->
|
|
1188
|
+
<div class="timeline-item-half upper-half">
|
|
1189
|
+
@if (!alternating() || i % 2 === 0) {
|
|
1190
|
+
<!-- Card Template -->
|
|
1191
|
+
@if (cardTemplate()) {
|
|
1192
|
+
<ng-container *ngTemplateOutlet="cardTemplate()!.templateRef; context: { $implicit: item, item: item, index: i }" />
|
|
1193
|
+
} @else {
|
|
1194
|
+
<div class="timeline-card">
|
|
1195
|
+
<div class="card-arrow"></div>
|
|
1196
|
+
<div class="card-header">
|
|
1197
|
+
<span class="item-time">
|
|
1198
|
+
@if (isDate(item.timestamp)) {
|
|
1199
|
+
{{ asDate(item.timestamp) | date:'mediumDate' }}
|
|
1200
|
+
} @else {
|
|
1201
|
+
{{ item.timestamp }}
|
|
1202
|
+
}
|
|
1203
|
+
</span>
|
|
1204
|
+
@if (item.subtitle) {
|
|
1205
|
+
<span class="item-subtitle">{{ item.subtitle }}</span>
|
|
1206
|
+
}
|
|
1207
|
+
</div>
|
|
1208
|
+
<h4 class="item-title">{{ item.title }}</h4>
|
|
1209
|
+
@if (item.description) {
|
|
1210
|
+
<p class="item-desc">{{ item.description }}</p>
|
|
1211
|
+
}
|
|
1212
|
+
</div>
|
|
1213
|
+
}
|
|
1053
1214
|
}
|
|
1054
|
-
</
|
|
1055
|
-
|
|
1215
|
+
</div>
|
|
1216
|
+
|
|
1217
|
+
<!-- MIDDLE MARKER -->
|
|
1218
|
+
<div class="timeline-marker">
|
|
1219
|
+
@if (markerTemplate()) {
|
|
1220
|
+
<ng-container *ngTemplateOutlet="markerTemplate()!.templateRef; context: { $implicit: item, item: item, index: i }" />
|
|
1221
|
+
} @else {
|
|
1222
|
+
<span class="marker-dot" [class.marker-dot-active]="item.active">
|
|
1223
|
+
@if (item.icon) {
|
|
1224
|
+
<span class="marker-icon">{{ item.icon }}</span>
|
|
1225
|
+
}
|
|
1226
|
+
</span>
|
|
1227
|
+
}
|
|
1228
|
+
</div>
|
|
1056
1229
|
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
{{ asDate(item.timestamp) | date:'mediumDate' }}
|
|
1230
|
+
<!-- LOWER HALF -->
|
|
1231
|
+
<div class="timeline-item-half lower-half">
|
|
1232
|
+
@if (alternating() && i % 2 !== 0) {
|
|
1233
|
+
<!-- Card Template -->
|
|
1234
|
+
@if (cardTemplate()) {
|
|
1235
|
+
<ng-container *ngTemplateOutlet="cardTemplate()!.templateRef; context: { $implicit: item, item: item, index: i }" />
|
|
1064
1236
|
} @else {
|
|
1065
|
-
|
|
1237
|
+
<div class="timeline-card">
|
|
1238
|
+
<div class="card-arrow"></div>
|
|
1239
|
+
<div class="card-header">
|
|
1240
|
+
<span class="item-time">
|
|
1241
|
+
@if (isDate(item.timestamp)) {
|
|
1242
|
+
{{ asDate(item.timestamp) | date:'mediumDate' }}
|
|
1243
|
+
} @else {
|
|
1244
|
+
{{ item.timestamp }}
|
|
1245
|
+
}
|
|
1246
|
+
</span>
|
|
1247
|
+
@if (item.subtitle) {
|
|
1248
|
+
<span class="item-subtitle">{{ item.subtitle }}</span>
|
|
1249
|
+
}
|
|
1250
|
+
</div>
|
|
1251
|
+
<h4 class="item-title">{{ item.title }}</h4>
|
|
1252
|
+
@if (item.description) {
|
|
1253
|
+
<p class="item-desc">{{ item.description }}</p>
|
|
1254
|
+
}
|
|
1255
|
+
</div>
|
|
1066
1256
|
}
|
|
1067
|
-
</span>
|
|
1068
|
-
@if (item.subtitle) {
|
|
1069
|
-
<span class="item-subtitle">{{ item.subtitle }}</span>
|
|
1070
1257
|
}
|
|
1071
1258
|
</div>
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1259
|
+
} @else {
|
|
1260
|
+
<!-- VERTICAL LAYOUT -->
|
|
1261
|
+
<div class="timeline-marker">
|
|
1262
|
+
@if (markerTemplate()) {
|
|
1263
|
+
<ng-container *ngTemplateOutlet="markerTemplate()!.templateRef; context: { $implicit: item, item: item, index: i }" />
|
|
1264
|
+
} @else {
|
|
1265
|
+
<span class="marker-dot" [class.marker-dot-active]="item.active">
|
|
1266
|
+
@if (item.icon) {
|
|
1267
|
+
<span class="marker-icon">{{ item.icon }}</span>
|
|
1268
|
+
}
|
|
1269
|
+
</span>
|
|
1270
|
+
}
|
|
1271
|
+
</div>
|
|
1272
|
+
|
|
1273
|
+
@if (cardTemplate()) {
|
|
1274
|
+
<ng-container *ngTemplateOutlet="cardTemplate()!.templateRef; context: { $implicit: item, item: item, index: i }" />
|
|
1275
|
+
} @else {
|
|
1276
|
+
<div class="timeline-card">
|
|
1277
|
+
<div class="card-arrow"></div>
|
|
1278
|
+
<div class="card-header">
|
|
1279
|
+
<span class="item-time">
|
|
1280
|
+
@if (isDate(item.timestamp)) {
|
|
1281
|
+
{{ asDate(item.timestamp) | date:'mediumDate' }}
|
|
1282
|
+
} @else {
|
|
1283
|
+
{{ item.timestamp }}
|
|
1284
|
+
}
|
|
1285
|
+
</span>
|
|
1286
|
+
@if (item.subtitle) {
|
|
1287
|
+
<span class="item-subtitle">{{ item.subtitle }}</span>
|
|
1288
|
+
}
|
|
1289
|
+
</div>
|
|
1290
|
+
<h4 class="item-title">{{ item.title }}</h4>
|
|
1291
|
+
@if (item.description) {
|
|
1292
|
+
<p class="item-desc">{{ item.description }}</p>
|
|
1293
|
+
}
|
|
1294
|
+
</div>
|
|
1075
1295
|
}
|
|
1076
|
-
|
|
1296
|
+
}
|
|
1077
1297
|
</div>
|
|
1078
1298
|
}
|
|
1079
1299
|
</div>
|
|
1080
1300
|
</div>
|
|
1081
|
-
`, styles: [":host{display:block;width:100%}.ngx-timeline{position:relative;width:100%;box-sizing:border-box;padding:
|
|
1301
|
+
`, styles: [":host{display:block;width:100%}.ngx-timeline{position:relative;width:100%;box-sizing:border-box;padding:24px 0}.timeline-track{position:absolute;background:var(--border-color, #e2e8f0);z-index:1;transition:background-color .2s ease}.orientation-vertical .timeline-track{top:0;bottom:0;left:20px;width:4px;transform:translate(-50%)}.orientation-vertical.alternating .timeline-track{left:50%}.orientation-horizontal .timeline-track{left:0;right:0;top:50%;height:4px;transform:translateY(-50%)}.timeline-items{display:flex;position:relative;z-index:2}.orientation-vertical .timeline-items{flex-direction:column;gap:28px}.orientation-horizontal .timeline-items{flex-direction:row;justify-content:flex-start;gap:24px;width:max-content;padding:24px 16px}.timeline-item{position:relative;display:flex;box-sizing:border-box;outline:none;opacity:0;animation:timelineItemEntrance .6s cubic-bezier(.16,1,.3,1) forwards;animation-delay:calc(var(--item-index, 0) * .08s)}@keyframes timelineItemEntrance{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.orientation-vertical .timeline-item{padding-left:48px;width:100%}.orientation-vertical.alternating .timeline-item{padding-left:0;width:50%}.orientation-vertical.alternating .timeline-item.align-left{align-self:flex-start;padding-right:36px;flex-direction:row-reverse}.orientation-vertical.alternating .timeline-item.align-right{align-self:flex-end;padding-left:36px}.orientation-horizontal .timeline-item{flex-direction:column;align-items:center;width:240px;min-width:240px;height:320px}.timeline-item.clickable{cursor:pointer}.timeline-marker{position:absolute;z-index:5;display:flex;align-items:center;justify-content:center}.orientation-vertical .timeline-marker{left:20px;top:14px;transform:translate(-50%)}.orientation-vertical.alternating .timeline-marker{left:100%;top:18px}.orientation-vertical.alternating .timeline-item.align-left .timeline-marker{left:100%;transform:translate(-50%)}.orientation-vertical.alternating .timeline-item.align-right .timeline-marker{left:0;transform:translate(-50%)}.orientation-horizontal .timeline-marker{top:50%;left:50%;transform:translate(-50%,-50%);height:30px;width:100%}.marker-dot{width:18px;height:18px;border-radius:50%;background:var(--bg-secondary, #ffffff);border:3px solid var(--item-color);box-shadow:0 0 0 3px #fff,var(--shadow-sm);display:flex;align-items:center;justify-content:center;transition:all .25s cubic-bezier(.4,0,.2,1)}.timeline-item:hover .marker-dot{transform:scale(1.18);box-shadow:0 0 0 4px #fff,0 0 0 6px var(--item-color),var(--shadow-md);background:var(--item-color);color:#fff}.marker-icon{font-size:9px;line-height:1;display:block}.marker-dot-active{position:relative}.marker-dot-active:after{content:\"\";position:absolute;inset:-6px;border-radius:50%;border:2px solid var(--item-color);animation:markerPulse 1.8s infinite ease-out;opacity:0;pointer-events:none}@keyframes markerPulse{0%{transform:scale(.85);opacity:.6}to{transform:scale(1.6);opacity:0}}.timeline-card{background:var(--ngx-timeline-card-bg, rgba(255, 255, 255, .7));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--ngx-timeline-card-border, rgba(226, 232, 240, .8));border-radius:12px;padding:16px 18px;box-shadow:var(--shadow-sm, 0 4px 6px -1px rgba(0, 0, 0, .05), 0 2px 4px -1px rgba(0, 0, 0, .03));position:relative;width:100%;box-sizing:border-box;transition:all .25s cubic-bezier(.4,0,.2,1)}.timeline-item:hover .timeline-card{transform:translateY(-4px);box-shadow:var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -2px rgba(0, 0, 0, .04));border-color:var(--item-color)}.timeline-item.item-selected .timeline-card{border-color:var(--item-color);box-shadow:0 0 0 3px #4f46e526,var(--shadow-md);background:var(--ngx-timeline-card-selected-bg, rgba(255, 255, 255, .95))}.timeline-item.clickable:focus-visible .timeline-card{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--item-color)}.card-arrow{position:absolute;width:8px;height:8px;background:inherit;border:1px solid inherit;border-color:inherit;border-style:solid;z-index:2}.orientation-vertical .timeline-card .card-arrow{top:18px;left:-5px;border-width:0 0 1px 1px;transform:rotate(45deg)}.orientation-vertical.alternating .timeline-item.align-left .timeline-card .card-arrow{left:auto;right:-5px;border-width:1px 1px 0 0;transform:rotate(45deg)}.orientation-horizontal .timeline-item-half{height:145px;width:100%;display:flex;justify-content:center;box-sizing:border-box}.orientation-horizontal .upper-half{align-items:flex-end;padding-bottom:12px}.orientation-horizontal .lower-half{align-items:flex-start;padding-top:12px}.orientation-horizontal .upper-half .timeline-card .card-arrow{bottom:-5px;left:50%;transform:translate(-50%) rotate(45deg);border-width:0 1px 1px 0}.orientation-horizontal .lower-half .timeline-card .card-arrow{top:-5px;left:50%;transform:translate(-50%) rotate(45deg);border-width:1px 0 0 1px}.card-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.item-time{font-size:11px;font-weight:700;color:var(--text-secondary, #64748b);text-transform:uppercase;letter-spacing:.5px}.item-subtitle{font-size:11px;font-weight:600;color:var(--item-color);background:var(--border-light, #f1f5f9);padding:2px 6px;border-radius:4px;transition:background-color .2s ease}.item-title{margin:0 0 6px;font-size:14px;font-weight:750;color:var(--text-primary, #0f172a)}.item-desc{margin:0;font-size:12px;color:var(--text-secondary, #64748b);line-height:1.5}.orientation-vertical.alternating .timeline-item.align-left .timeline-card{text-align:right}.orientation-vertical.alternating .timeline-item.align-left .card-header{flex-direction:row-reverse}.status-success{--item-color: #10b981 !important}.status-warning{--item-color: #f59e0b !important}.status-error{--item-color: #ef4444 !important}.status-info{--item-color: #3b82f6 !important}.ngx-timeline.dark .timeline-track{background:#334155}.ngx-timeline.dark .timeline-card{background:var(--ngx-timeline-card-bg-dark, rgba(30, 41, 59, .7));border-color:var(--ngx-timeline-card-border-dark, rgba(71, 85, 105, .8))}.ngx-timeline.dark .item-subtitle{background:#334155}.ngx-timeline.dark .item-title{color:#f8fafc}.ngx-timeline.dark .item-desc,.ngx-timeline.dark .item-time{color:#94a3b8}.ngx-timeline.dark .timeline-item.item-selected .timeline-card{background:var(--ngx-timeline-card-selected-bg-dark, rgba(30, 41, 59, .95))}\n"] }]
|
|
1082
1302
|
}] });
|
|
1083
1303
|
|
|
1304
|
+
class NgxSchedulerEventTemplateDirective {
|
|
1305
|
+
templateRef = inject(TemplateRef);
|
|
1306
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: NgxSchedulerEventTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1307
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.20", type: NgxSchedulerEventTemplateDirective, isStandalone: true, selector: "[ngxSchedulerEventTemplate]", ngImport: i0 });
|
|
1308
|
+
}
|
|
1309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: NgxSchedulerEventTemplateDirective, decorators: [{
|
|
1310
|
+
type: Directive,
|
|
1311
|
+
args: [{
|
|
1312
|
+
selector: '[ngxSchedulerEventTemplate]',
|
|
1313
|
+
standalone: true
|
|
1314
|
+
}]
|
|
1315
|
+
}] });
|
|
1084
1316
|
class SchedulerComponent {
|
|
1085
1317
|
hourHeight = 60;
|
|
1086
1318
|
viewModes = ['day', 'week', 'month'];
|
|
1319
|
+
// Component inputs
|
|
1087
1320
|
events = input([]);
|
|
1088
1321
|
currentDate = input(new Date());
|
|
1089
1322
|
viewMode = input('week');
|
|
@@ -1093,11 +1326,74 @@ class SchedulerComponent {
|
|
|
1093
1326
|
weekStartsOn = input(0);
|
|
1094
1327
|
timeZone = input(undefined);
|
|
1095
1328
|
slotMinutes = input(60);
|
|
1329
|
+
// New Enterprise feature inputs
|
|
1330
|
+
resources = input([]);
|
|
1331
|
+
enableDragToCreate = input(true);
|
|
1332
|
+
showSearch = input(true);
|
|
1333
|
+
showWorkHoursOnly = input(true);
|
|
1334
|
+
// Component outputs
|
|
1096
1335
|
eventClick = output();
|
|
1097
1336
|
slotClick = output();
|
|
1098
1337
|
eventTimeChange = output();
|
|
1338
|
+
slotRangeSelect = output();
|
|
1339
|
+
eventDelete = output();
|
|
1340
|
+
currentDateChange = output();
|
|
1341
|
+
// State Management
|
|
1099
1342
|
activeDate = signal(new Date());
|
|
1100
1343
|
activeMode = signal('week');
|
|
1344
|
+
selectedResourceId = signal(null);
|
|
1345
|
+
searchQuery = signal('');
|
|
1346
|
+
dragSelectStart = signal(null);
|
|
1347
|
+
dragSelectCurrent = signal(null);
|
|
1348
|
+
showExportDropdown = signal(false);
|
|
1349
|
+
activeMonthPopoverDate = signal(null);
|
|
1350
|
+
eventTemplate = contentChild(NgxSchedulerEventTemplateDirective);
|
|
1351
|
+
openMonthPopover(event, date) {
|
|
1352
|
+
event.stopPropagation();
|
|
1353
|
+
this.activeMonthPopoverDate.set(date);
|
|
1354
|
+
}
|
|
1355
|
+
closeMonthPopover(event) {
|
|
1356
|
+
event.stopPropagation();
|
|
1357
|
+
this.activeMonthPopoverDate.set(null);
|
|
1358
|
+
}
|
|
1359
|
+
handleKeyDown(event) {
|
|
1360
|
+
const activeEl = document.activeElement;
|
|
1361
|
+
if (activeEl) {
|
|
1362
|
+
const tagName = activeEl.tagName.toLowerCase();
|
|
1363
|
+
if (tagName === 'input' || tagName === 'textarea' || tagName === 'select' || activeEl.getAttribute('contenteditable') === 'true') {
|
|
1364
|
+
return;
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
switch (event.key.toLowerCase()) {
|
|
1368
|
+
case 't':
|
|
1369
|
+
this.goToToday();
|
|
1370
|
+
event.preventDefault();
|
|
1371
|
+
break;
|
|
1372
|
+
case 'd':
|
|
1373
|
+
this.activeMode.set('day');
|
|
1374
|
+
event.preventDefault();
|
|
1375
|
+
break;
|
|
1376
|
+
case 'w':
|
|
1377
|
+
this.activeMode.set('week');
|
|
1378
|
+
event.preventDefault();
|
|
1379
|
+
break;
|
|
1380
|
+
case 'm':
|
|
1381
|
+
this.activeMode.set('month');
|
|
1382
|
+
event.preventDefault();
|
|
1383
|
+
break;
|
|
1384
|
+
case 'arrowleft':
|
|
1385
|
+
this.navigate(-1);
|
|
1386
|
+
event.preventDefault();
|
|
1387
|
+
break;
|
|
1388
|
+
case 'arrowright':
|
|
1389
|
+
this.navigate(1);
|
|
1390
|
+
event.preventDefault();
|
|
1391
|
+
break;
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
// Live Current-Time Indicator State
|
|
1395
|
+
now = signal(new Date());
|
|
1396
|
+
timeIntervalId;
|
|
1101
1397
|
activeDragEvent = signal(null);
|
|
1102
1398
|
resizeState = null;
|
|
1103
1399
|
constructor() {
|
|
@@ -1108,9 +1404,50 @@ class SchedulerComponent {
|
|
|
1108
1404
|
this.activeMode.set(this.viewMode());
|
|
1109
1405
|
}, { allowSignalWrites: true });
|
|
1110
1406
|
}
|
|
1407
|
+
ngOnInit() {
|
|
1408
|
+
if (typeof window !== 'undefined') {
|
|
1409
|
+
this.timeIntervalId = setInterval(() => {
|
|
1410
|
+
this.now.set(new Date());
|
|
1411
|
+
}, 30000);
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
ngOnDestroy() {
|
|
1415
|
+
if (this.timeIntervalId) {
|
|
1416
|
+
clearInterval(this.timeIntervalId);
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
// Filter events based on keyword and resource selector
|
|
1420
|
+
filteredEvents = computed(() => {
|
|
1421
|
+
let list = this.events();
|
|
1422
|
+
const query = this.searchQuery().toLowerCase().trim();
|
|
1423
|
+
if (query) {
|
|
1424
|
+
list = list.filter(evt => evt.title.toLowerCase().includes(query) ||
|
|
1425
|
+
(evt.description && evt.description.toLowerCase().includes(query)) ||
|
|
1426
|
+
(evt.category && evt.category.toLowerCase().includes(query)));
|
|
1427
|
+
}
|
|
1428
|
+
const selectedRes = this.selectedResourceId();
|
|
1429
|
+
const mode = this.activeMode();
|
|
1430
|
+
if (selectedRes && mode !== 'day') {
|
|
1431
|
+
list = list.filter(evt => evt.resourceId === selectedRes);
|
|
1432
|
+
}
|
|
1433
|
+
return list;
|
|
1434
|
+
});
|
|
1435
|
+
hasAllDayEvents = computed(() => {
|
|
1436
|
+
return this.filteredEvents().some(evt => evt.isAllDay === true);
|
|
1437
|
+
});
|
|
1438
|
+
currentTimeTop = computed(() => {
|
|
1439
|
+
const currentTime = this.now();
|
|
1440
|
+
const startHour = this.showWorkHoursOnly() ? this.normalizedStartHour() : 0;
|
|
1441
|
+
const endHour = this.showWorkHoursOnly() ? this.normalizedEndHour() : 24;
|
|
1442
|
+
const hour = currentTime.getHours() + currentTime.getMinutes() / 60;
|
|
1443
|
+
if (hour < startHour || hour > endHour)
|
|
1444
|
+
return null;
|
|
1445
|
+
const pct = ((hour - startHour) / (endHour - startHour)) * 100;
|
|
1446
|
+
return pct;
|
|
1447
|
+
});
|
|
1111
1448
|
hours = computed(() => {
|
|
1112
|
-
const start = this.normalizedStartHour();
|
|
1113
|
-
const end = this.normalizedEndHour();
|
|
1449
|
+
const start = this.showWorkHoursOnly() ? this.normalizedStartHour() : 0;
|
|
1450
|
+
const end = this.showWorkHoursOnly() ? this.normalizedEndHour() : 24;
|
|
1114
1451
|
const list = [];
|
|
1115
1452
|
for (let i = start; i < end; i++)
|
|
1116
1453
|
list.push(i);
|
|
@@ -1129,11 +1466,19 @@ class SchedulerComponent {
|
|
|
1129
1466
|
activeColumns = computed(() => {
|
|
1130
1467
|
const mode = this.activeMode();
|
|
1131
1468
|
const date = this.activeDate();
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1469
|
+
const resList = this.resources();
|
|
1470
|
+
if (mode === 'day') {
|
|
1471
|
+
if (resList.length > 0) {
|
|
1472
|
+
return resList.map(res => ({ date, resource: res }));
|
|
1473
|
+
}
|
|
1474
|
+
return [{ date }];
|
|
1475
|
+
}
|
|
1476
|
+
if (mode === 'week') {
|
|
1477
|
+
const days = this.getWeekDays(this.getStartOfWeek(date));
|
|
1478
|
+
return days.map(d => ({ date: d }));
|
|
1479
|
+
}
|
|
1480
|
+
const monthDays = this.getMonthDays(date);
|
|
1481
|
+
return monthDays.map(d => ({ date: d }));
|
|
1137
1482
|
});
|
|
1138
1483
|
weekDayLabels = computed(() => {
|
|
1139
1484
|
const base = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
|
|
@@ -1148,8 +1493,8 @@ class SchedulerComponent {
|
|
|
1148
1493
|
}
|
|
1149
1494
|
if (mode === 'week') {
|
|
1150
1495
|
const cols = this.activeColumns();
|
|
1151
|
-
const start = cols[0];
|
|
1152
|
-
const end = cols[6];
|
|
1496
|
+
const start = cols[0].date;
|
|
1497
|
+
const end = cols[6].date;
|
|
1153
1498
|
if (start.getMonth() === end.getMonth()) {
|
|
1154
1499
|
return `${this.formatDate(start, { month: 'long' })} ${this.formatDate(start, { year: 'numeric' })}`;
|
|
1155
1500
|
}
|
|
@@ -1170,17 +1515,44 @@ class SchedulerComponent {
|
|
|
1170
1515
|
else
|
|
1171
1516
|
current.setMonth(current.getMonth() + direction);
|
|
1172
1517
|
this.activeDate.set(current);
|
|
1518
|
+
this.currentDateChange.emit(current);
|
|
1173
1519
|
}
|
|
1174
1520
|
goToToday() {
|
|
1175
|
-
|
|
1521
|
+
const today = new Date();
|
|
1522
|
+
this.activeDate.set(today);
|
|
1523
|
+
this.currentDateChange.emit(today);
|
|
1176
1524
|
}
|
|
1177
1525
|
getEventsForDate(date) {
|
|
1178
|
-
return this.
|
|
1526
|
+
return this.filteredEvents()
|
|
1179
1527
|
.flatMap(event => this.resolveEventForDate(event, date))
|
|
1180
1528
|
.sort((a, b) => a.start.getTime() - b.start.getTime());
|
|
1181
1529
|
}
|
|
1182
|
-
|
|
1183
|
-
|
|
1530
|
+
getEventsForColumn(col) {
|
|
1531
|
+
return this.filteredEvents()
|
|
1532
|
+
.filter(evt => !evt.isAllDay)
|
|
1533
|
+
.flatMap(event => this.resolveEventForDate(event, col.date))
|
|
1534
|
+
.filter(resolved => {
|
|
1535
|
+
if (col.resource) {
|
|
1536
|
+
return resolved.event.resourceId === col.resource.id;
|
|
1537
|
+
}
|
|
1538
|
+
return true;
|
|
1539
|
+
})
|
|
1540
|
+
.sort((a, b) => a.start.getTime() - b.start.getTime());
|
|
1541
|
+
}
|
|
1542
|
+
getAllDayEventsForColumn(col) {
|
|
1543
|
+
return this.filteredEvents()
|
|
1544
|
+
.filter(evt => evt.isAllDay === true)
|
|
1545
|
+
.flatMap(event => this.resolveEventForDate(event, col.date))
|
|
1546
|
+
.filter(resolved => {
|
|
1547
|
+
if (col.resource) {
|
|
1548
|
+
return resolved.event.resourceId === col.resource.id;
|
|
1549
|
+
}
|
|
1550
|
+
return true;
|
|
1551
|
+
})
|
|
1552
|
+
.sort((a, b) => a.start.getTime() - b.start.getTime());
|
|
1553
|
+
}
|
|
1554
|
+
getEventLayoutsForColumn(col) {
|
|
1555
|
+
const events = this.getEventsForColumn(col);
|
|
1184
1556
|
const groups = [];
|
|
1185
1557
|
let group = [];
|
|
1186
1558
|
let groupEnd = 0;
|
|
@@ -1202,10 +1574,123 @@ class SchedulerComponent {
|
|
|
1202
1574
|
clickEvent(event) {
|
|
1203
1575
|
this.eventClick.emit(event);
|
|
1204
1576
|
}
|
|
1205
|
-
clickSlot(date, hour, minute = 0) {
|
|
1577
|
+
clickSlot(date, hour, minute = 0, resourceId) {
|
|
1206
1578
|
const targetDate = new Date(date);
|
|
1207
1579
|
targetDate.setHours(hour, minute, 0, 0);
|
|
1208
|
-
this.slotClick.emit({ date: targetDate, hour, minute });
|
|
1580
|
+
this.slotClick.emit({ date: targetDate, hour, minute, resourceId });
|
|
1581
|
+
}
|
|
1582
|
+
deleteEvent(event, clickEvent) {
|
|
1583
|
+
clickEvent.stopPropagation();
|
|
1584
|
+
this.eventDelete.emit(event);
|
|
1585
|
+
}
|
|
1586
|
+
toggleTaskCompletion(event, clickEvent) {
|
|
1587
|
+
const isChecked = clickEvent.target.checked;
|
|
1588
|
+
this.eventTimeChange.emit({
|
|
1589
|
+
event: { ...event, completed: isChecked },
|
|
1590
|
+
start: event.start,
|
|
1591
|
+
end: event.end
|
|
1592
|
+
});
|
|
1593
|
+
}
|
|
1594
|
+
getEventStyles(event) {
|
|
1595
|
+
const styles = {};
|
|
1596
|
+
if (event.color) {
|
|
1597
|
+
const color = event.color;
|
|
1598
|
+
if (color.startsWith('#')) {
|
|
1599
|
+
styles['background-color'] = `${color}12`;
|
|
1600
|
+
styles['border-color'] = `${color}33`;
|
|
1601
|
+
styles['color'] = color;
|
|
1602
|
+
styles['border-left'] = `4px solid ${color}`;
|
|
1603
|
+
}
|
|
1604
|
+
else {
|
|
1605
|
+
styles['background-color'] = color;
|
|
1606
|
+
styles['color'] = '#ffffff';
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
return styles;
|
|
1610
|
+
}
|
|
1611
|
+
onSearchInput(event) {
|
|
1612
|
+
const val = event.target.value;
|
|
1613
|
+
this.searchQuery.set(val);
|
|
1614
|
+
}
|
|
1615
|
+
onResourceFilterChange(event) {
|
|
1616
|
+
const val = event.target.value;
|
|
1617
|
+
this.selectedResourceId.set(val || null);
|
|
1618
|
+
}
|
|
1619
|
+
isNonBusinessHour(hour) {
|
|
1620
|
+
return hour < this.normalizedStartHour() || hour >= this.normalizedEndHour();
|
|
1621
|
+
}
|
|
1622
|
+
// Pointer drag-to-create handlers
|
|
1623
|
+
onSlotPointerDown(event, date, hour, minute, resourceId) {
|
|
1624
|
+
if (!this.enableDragToCreate() || event.button !== 0)
|
|
1625
|
+
return;
|
|
1626
|
+
const target = event.target;
|
|
1627
|
+
if (target.closest('.scheduler-event-card'))
|
|
1628
|
+
return;
|
|
1629
|
+
event.preventDefault();
|
|
1630
|
+
event.target.setPointerCapture(event.pointerId);
|
|
1631
|
+
this.dragSelectStart.set({ date, hour, minute, resourceId });
|
|
1632
|
+
this.dragSelectCurrent.set({ date, hour, minute, resourceId });
|
|
1633
|
+
}
|
|
1634
|
+
onSlotPointerEnter(event, date, hour, minute, resourceId) {
|
|
1635
|
+
const start = this.dragSelectStart();
|
|
1636
|
+
if (!start)
|
|
1637
|
+
return;
|
|
1638
|
+
if (this.dateKey(start.date) === this.dateKey(date) && start.resourceId === resourceId) {
|
|
1639
|
+
this.dragSelectCurrent.set({ date, hour, minute, resourceId });
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
onWindowPointerUp(event) {
|
|
1643
|
+
const start = this.dragSelectStart();
|
|
1644
|
+
const current = this.dragSelectCurrent();
|
|
1645
|
+
if (start && current) {
|
|
1646
|
+
try {
|
|
1647
|
+
const capturedEl = document.querySelector(':focus') || event.target;
|
|
1648
|
+
if (capturedEl && 'releasePointerCapture' in capturedEl) {
|
|
1649
|
+
capturedEl.releasePointerCapture(event.pointerId);
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
catch (e) { }
|
|
1653
|
+
const colDate = new Date(start.date);
|
|
1654
|
+
const startMinutes = start.hour * 60 + start.minute;
|
|
1655
|
+
const currentMinutes = current.hour * 60 + current.minute;
|
|
1656
|
+
const minMinutes = Math.min(startMinutes, currentMinutes);
|
|
1657
|
+
const maxMinutes = Math.max(startMinutes, currentMinutes) + this.normalizedSlotMinutes();
|
|
1658
|
+
const startDate = new Date(colDate);
|
|
1659
|
+
startDate.setHours(Math.floor(minMinutes / 60), minMinutes % 60, 0, 0);
|
|
1660
|
+
const endDate = new Date(colDate);
|
|
1661
|
+
endDate.setHours(Math.floor(maxMinutes / 60), maxMinutes % 60, 0, 0);
|
|
1662
|
+
this.slotRangeSelect.emit({
|
|
1663
|
+
start: startDate,
|
|
1664
|
+
end: endDate,
|
|
1665
|
+
resourceId: start.resourceId
|
|
1666
|
+
});
|
|
1667
|
+
this.dragSelectStart.set(null);
|
|
1668
|
+
this.dragSelectCurrent.set(null);
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
getDragSelectionLayout(col) {
|
|
1672
|
+
const start = this.dragSelectStart();
|
|
1673
|
+
const current = this.dragSelectCurrent();
|
|
1674
|
+
if (!start || !current)
|
|
1675
|
+
return null;
|
|
1676
|
+
if (this.dateKey(start.date) !== this.dateKey(col.date) || start.resourceId !== col.resource?.id) {
|
|
1677
|
+
return null;
|
|
1678
|
+
}
|
|
1679
|
+
const startMinutes = start.hour * 60 + start.minute;
|
|
1680
|
+
const currentMinutes = current.hour * 60 + current.minute;
|
|
1681
|
+
const minMinutes = Math.min(startMinutes, currentMinutes);
|
|
1682
|
+
const maxMinutes = Math.max(startMinutes, currentMinutes) + this.normalizedSlotMinutes();
|
|
1683
|
+
const startRange = this.showWorkHoursOnly() ? this.normalizedStartHour() : 0;
|
|
1684
|
+
const endRange = this.showWorkHoursOnly() ? this.normalizedEndHour() : 24;
|
|
1685
|
+
const totalHours = endRange - startRange;
|
|
1686
|
+
const startHourFraction = minMinutes / 60;
|
|
1687
|
+
const endHourFraction = maxMinutes / 60;
|
|
1688
|
+
const top = ((startHourFraction - startRange) / totalHours) * 100;
|
|
1689
|
+
const height = ((endHourFraction - startHourFraction) / totalHours) * 100;
|
|
1690
|
+
return {
|
|
1691
|
+
top: Math.max(0, Math.min(100, top)),
|
|
1692
|
+
height: Math.max(2, Math.min(100 - top, height))
|
|
1693
|
+
};
|
|
1209
1694
|
}
|
|
1210
1695
|
onSlotDragOver(event) {
|
|
1211
1696
|
if (this.activeDragEvent())
|
|
@@ -1221,7 +1706,7 @@ class SchedulerComponent {
|
|
|
1221
1706
|
onEventDragEnd() {
|
|
1222
1707
|
this.activeDragEvent.set(null);
|
|
1223
1708
|
}
|
|
1224
|
-
onSlotDrop(event, date, hour, minute = 0) {
|
|
1709
|
+
onSlotDrop(event, date, hour, minute = 0, resourceId) {
|
|
1225
1710
|
event.preventDefault();
|
|
1226
1711
|
const dragged = this.activeDragEvent();
|
|
1227
1712
|
if (!dragged)
|
|
@@ -1230,8 +1715,12 @@ class SchedulerComponent {
|
|
|
1230
1715
|
const start = new Date(date);
|
|
1231
1716
|
start.setHours(hour, minute, 0, 0);
|
|
1232
1717
|
const end = new Date(start.getTime() + duration);
|
|
1718
|
+
const updatedEvent = { ...dragged.event };
|
|
1719
|
+
if (resourceId !== undefined) {
|
|
1720
|
+
updatedEvent.resourceId = resourceId;
|
|
1721
|
+
}
|
|
1233
1722
|
this.eventTimeChange.emit({
|
|
1234
|
-
event:
|
|
1723
|
+
event: updatedEvent,
|
|
1235
1724
|
start,
|
|
1236
1725
|
end,
|
|
1237
1726
|
occurrenceStart: dragged.start,
|
|
@@ -1321,6 +1810,79 @@ class SchedulerComponent {
|
|
|
1321
1810
|
return `${date.getFullYear()}-${date.getMonth()}-${date.getDate()}`;
|
|
1322
1811
|
}
|
|
1323
1812
|
}
|
|
1813
|
+
getInitials(name) {
|
|
1814
|
+
if (!name)
|
|
1815
|
+
return '';
|
|
1816
|
+
return name.split(' ').map(n => n[0]).join('').toUpperCase().slice(0, 2);
|
|
1817
|
+
}
|
|
1818
|
+
getResourceName(resourceId) {
|
|
1819
|
+
const res = this.resources().find(r => r.id === resourceId);
|
|
1820
|
+
return res ? res.name : '';
|
|
1821
|
+
}
|
|
1822
|
+
// Export methods
|
|
1823
|
+
exportToICS() {
|
|
1824
|
+
const evts = this.filteredEvents();
|
|
1825
|
+
let ics = [
|
|
1826
|
+
'BEGIN:VCALENDAR',
|
|
1827
|
+
'VERSION:2.0',
|
|
1828
|
+
'PRODID:-//Antigravity//NGX Core Components Scheduler//EN',
|
|
1829
|
+
'CALSCALE:GREGORIAN',
|
|
1830
|
+
'METHOD:PUBLISH'
|
|
1831
|
+
];
|
|
1832
|
+
for (const e of evts) {
|
|
1833
|
+
const pad = (num) => String(num).padStart(2, '0');
|
|
1834
|
+
const formatICSDate = (d) => {
|
|
1835
|
+
return `${d.getUTCFullYear()}${pad(d.getUTCMonth() + 1)}${pad(d.getUTCDate())}T${pad(d.getUTCHours())}${pad(d.getUTCMinutes())}${pad(d.getUTCSeconds())}Z`;
|
|
1836
|
+
};
|
|
1837
|
+
ics.push('BEGIN:VEVENT');
|
|
1838
|
+
ics.push(`UID:${e.id}`);
|
|
1839
|
+
ics.push(`DTSTAMP:${formatICSDate(new Date())}`);
|
|
1840
|
+
ics.push(`DTSTART:${formatICSDate(e.start)}`);
|
|
1841
|
+
ics.push(`DTEND:${formatICSDate(e.end)}`);
|
|
1842
|
+
ics.push(`SUMMARY:${e.title.replace(/[,;]/g, '\\$&')}`);
|
|
1843
|
+
if (e.description) {
|
|
1844
|
+
ics.push(`DESCRIPTION:${e.description.replace(/[,;]/g, '\\$&')}`);
|
|
1845
|
+
}
|
|
1846
|
+
if (e.category) {
|
|
1847
|
+
ics.push(`CATEGORIES:${e.category.toUpperCase()}`);
|
|
1848
|
+
}
|
|
1849
|
+
ics.push('END:VEVENT');
|
|
1850
|
+
}
|
|
1851
|
+
ics.push('END:VCALENDAR');
|
|
1852
|
+
this.downloadFile(ics.join('\r\n'), 'calendar.ics', 'text/calendar');
|
|
1853
|
+
}
|
|
1854
|
+
exportToJSON() {
|
|
1855
|
+
const evts = this.filteredEvents();
|
|
1856
|
+
const data = JSON.stringify(evts, null, 2);
|
|
1857
|
+
this.downloadFile(data, 'calendar_events.json', 'application/json');
|
|
1858
|
+
}
|
|
1859
|
+
exportToCSV() {
|
|
1860
|
+
const evts = this.filteredEvents();
|
|
1861
|
+
const headers = ['ID', 'Title', 'Description', 'Start', 'End', 'Category', 'Resource ID', 'All Day'];
|
|
1862
|
+
const rows = evts.map(e => [
|
|
1863
|
+
e.id,
|
|
1864
|
+
`"${e.title.replace(/"/g, '""')}"`,
|
|
1865
|
+
`"${(e.description || '').replace(/"/g, '""')}"`,
|
|
1866
|
+
e.start.toISOString(),
|
|
1867
|
+
e.end.toISOString(),
|
|
1868
|
+
e.category || '',
|
|
1869
|
+
e.resourceId || '',
|
|
1870
|
+
e.isAllDay ? 'TRUE' : 'FALSE'
|
|
1871
|
+
]);
|
|
1872
|
+
const csvContent = [headers.join(','), ...rows.map(r => r.join(','))].join('\n');
|
|
1873
|
+
this.downloadFile(csvContent, 'calendar_events.csv', 'text/csv');
|
|
1874
|
+
}
|
|
1875
|
+
downloadFile(content, filename, contentType) {
|
|
1876
|
+
const blob = new Blob([content], { type: contentType });
|
|
1877
|
+
const url = URL.createObjectURL(blob);
|
|
1878
|
+
const link = document.createElement('a');
|
|
1879
|
+
link.href = url;
|
|
1880
|
+
link.download = filename;
|
|
1881
|
+
document.body.appendChild(link);
|
|
1882
|
+
link.click();
|
|
1883
|
+
document.body.removeChild(link);
|
|
1884
|
+
URL.revokeObjectURL(url);
|
|
1885
|
+
}
|
|
1324
1886
|
layoutOverlapGroup(events) {
|
|
1325
1887
|
const columnEnds = [];
|
|
1326
1888
|
const placements = events.map(event => {
|
|
@@ -1403,14 +1965,18 @@ class SchedulerComponent {
|
|
|
1403
1965
|
}
|
|
1404
1966
|
getEventTop(start) {
|
|
1405
1967
|
const startHour = start.getHours() + start.getMinutes() / 60;
|
|
1406
|
-
const
|
|
1407
|
-
const
|
|
1968
|
+
const startRange = this.showWorkHoursOnly() ? this.normalizedStartHour() : 0;
|
|
1969
|
+
const endRange = this.showWorkHoursOnly() ? this.normalizedEndHour() : 24;
|
|
1970
|
+
const totalHours = endRange - startRange;
|
|
1971
|
+
const pct = ((startHour - startRange) / totalHours) * 100;
|
|
1408
1972
|
return Math.max(0, Math.min(100, pct));
|
|
1409
1973
|
}
|
|
1410
1974
|
getEventHeight(start, end) {
|
|
1411
1975
|
const startHour = start.getHours() + start.getMinutes() / 60;
|
|
1412
1976
|
const endHour = end.getHours() + end.getMinutes() / 60;
|
|
1413
|
-
const
|
|
1977
|
+
const startRange = this.showWorkHoursOnly() ? this.normalizedStartHour() : 0;
|
|
1978
|
+
const endRange = this.showWorkHoursOnly() ? this.normalizedEndHour() : 24;
|
|
1979
|
+
const totalHours = endRange - startRange;
|
|
1414
1980
|
const pct = ((endHour - startHour) / totalHours) * 100;
|
|
1415
1981
|
return Math.max(8, Math.min(100 - this.getEventTop(start), pct));
|
|
1416
1982
|
}
|
|
@@ -1465,45 +2031,170 @@ class SchedulerComponent {
|
|
|
1465
2031
|
return [5, 10, 15, 20, 30, 60].includes(minutes) ? minutes : 60;
|
|
1466
2032
|
}
|
|
1467
2033
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SchedulerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1468
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: SchedulerComponent, isStandalone: true, selector: "ngx-scheduler", inputs: { events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, currentDate: { classPropertyName: "currentDate", publicName: "currentDate", isSignal: true, isRequired: false, transformFunction: null }, viewMode: { classPropertyName: "viewMode", publicName: "viewMode", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, businessHoursStart: { classPropertyName: "businessHoursStart", publicName: "businessHoursStart", isSignal: true, isRequired: false, transformFunction: null }, businessHoursEnd: { classPropertyName: "businessHoursEnd", publicName: "businessHoursEnd", isSignal: true, isRequired: false, transformFunction: null }, weekStartsOn: { classPropertyName: "weekStartsOn", publicName: "weekStartsOn", isSignal: true, isRequired: false, transformFunction: null }, timeZone: { classPropertyName: "timeZone", publicName: "timeZone", isSignal: true, isRequired: false, transformFunction: null }, slotMinutes: { classPropertyName: "slotMinutes", publicName: "slotMinutes", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { eventClick: "eventClick", slotClick: "slotClick", eventTimeChange: "eventTimeChange" }, host: { listeners: { "window:pointerup": "finishResize($event)", "window:pointercancel": "cancelResize()" } }, ngImport: i0, template: `
|
|
2034
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: SchedulerComponent, isStandalone: true, selector: "ngx-scheduler", inputs: { events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, currentDate: { classPropertyName: "currentDate", publicName: "currentDate", isSignal: true, isRequired: false, transformFunction: null }, viewMode: { classPropertyName: "viewMode", publicName: "viewMode", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, businessHoursStart: { classPropertyName: "businessHoursStart", publicName: "businessHoursStart", isSignal: true, isRequired: false, transformFunction: null }, businessHoursEnd: { classPropertyName: "businessHoursEnd", publicName: "businessHoursEnd", isSignal: true, isRequired: false, transformFunction: null }, weekStartsOn: { classPropertyName: "weekStartsOn", publicName: "weekStartsOn", isSignal: true, isRequired: false, transformFunction: null }, timeZone: { classPropertyName: "timeZone", publicName: "timeZone", isSignal: true, isRequired: false, transformFunction: null }, slotMinutes: { classPropertyName: "slotMinutes", publicName: "slotMinutes", isSignal: true, isRequired: false, transformFunction: null }, resources: { classPropertyName: "resources", publicName: "resources", isSignal: true, isRequired: false, transformFunction: null }, enableDragToCreate: { classPropertyName: "enableDragToCreate", publicName: "enableDragToCreate", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, showWorkHoursOnly: { classPropertyName: "showWorkHoursOnly", publicName: "showWorkHoursOnly", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { eventClick: "eventClick", slotClick: "slotClick", eventTimeChange: "eventTimeChange", slotRangeSelect: "slotRangeSelect", eventDelete: "eventDelete", currentDateChange: "currentDateChange" }, host: { listeners: { "window:keydown": "handleKeyDown($event)", "window:pointerup": "finishResize($event)", "window:pointercancel": "cancelResize()" } }, queries: [{ propertyName: "eventTemplate", first: true, predicate: NgxSchedulerEventTemplateDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1469
2035
|
<div class="ngx-scheduler-wrapper" [class.dark]="theme() === 'dark'">
|
|
2036
|
+
|
|
2037
|
+
<!-- Scheduler Toolbar -->
|
|
1470
2038
|
<div class="scheduler-toolbar">
|
|
1471
2039
|
<div class="nav-controls">
|
|
1472
|
-
<
|
|
1473
|
-
|
|
1474
|
-
|
|
2040
|
+
<div class="nav-buttons-group">
|
|
2041
|
+
<button class="tool-btn nav-arrow" type="button" (click)="navigate(-1)" aria-label="Previous period">
|
|
2042
|
+
<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
|
+
</button>
|
|
2044
|
+
<button class="tool-btn today-btn" type="button" (click)="goToToday()">Today</button>
|
|
2045
|
+
<button class="tool-btn nav-arrow" type="button" (click)="navigate(1)" aria-label="Next period">
|
|
2046
|
+
<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
|
+
</button>
|
|
2048
|
+
</div>
|
|
1475
2049
|
<h2 class="current-period-label">{{ periodLabel() }}</h2>
|
|
1476
2050
|
</div>
|
|
1477
2051
|
|
|
1478
|
-
<div class="
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
class="
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
2052
|
+
<div class="toolbar-actions">
|
|
2053
|
+
<!-- Keyword Search -->
|
|
2054
|
+
@if (showSearch()) {
|
|
2055
|
+
<div class="search-box-container">
|
|
2056
|
+
<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
|
+
<input type="text"
|
|
2058
|
+
class="search-input"
|
|
2059
|
+
placeholder="Search events..."
|
|
2060
|
+
[value]="searchQuery()"
|
|
2061
|
+
(input)="onSearchInput($event)" />
|
|
2062
|
+
</div>
|
|
1488
2063
|
}
|
|
2064
|
+
|
|
2065
|
+
<!-- Resource Select Filter (Week/Month View) -->
|
|
2066
|
+
@if (resources().length > 0 && activeMode() !== 'day') {
|
|
2067
|
+
<div class="resource-filter-container">
|
|
2068
|
+
<select class="resource-select" [value]="selectedResourceId() || ''" (change)="onResourceFilterChange($event)">
|
|
2069
|
+
<option value="">All Resources</option>
|
|
2070
|
+
@for (res of resources(); track res.id) {
|
|
2071
|
+
<option [value]="res.id">{{ res.name }}</option>
|
|
2072
|
+
}
|
|
2073
|
+
</select>
|
|
2074
|
+
</div>
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
<!-- Export Dropdown -->
|
|
2078
|
+
<div class="export-dropdown-wrapper">
|
|
2079
|
+
<button class="tool-btn export-toggle-btn" type="button" (click)="showExportDropdown.set(!showExportDropdown())">
|
|
2080
|
+
<span>Export</span>
|
|
2081
|
+
<svg class="dropdown-arrow-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M7 10l5 5 5-5z"/></svg>
|
|
2082
|
+
</button>
|
|
2083
|
+
|
|
2084
|
+
@if (showExportDropdown()) {
|
|
2085
|
+
<div class="export-menu-dropdown">
|
|
2086
|
+
<button class="export-item" (click)="exportToICS(); showExportDropdown.set(false)">
|
|
2087
|
+
<svg class="export-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>
|
|
2088
|
+
<span>iCalendar (.ics)</span>
|
|
2089
|
+
</button>
|
|
2090
|
+
<button class="export-item" (click)="exportToJSON(); showExportDropdown.set(false)">
|
|
2091
|
+
<svg class="export-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>
|
|
2092
|
+
<span>JSON format</span>
|
|
2093
|
+
</button>
|
|
2094
|
+
<button class="export-item" (click)="exportToCSV(); showExportDropdown.set(false)">
|
|
2095
|
+
<svg class="export-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/></svg>
|
|
2096
|
+
<span>CSV document</span>
|
|
2097
|
+
</button>
|
|
2098
|
+
</div>
|
|
2099
|
+
}
|
|
2100
|
+
</div>
|
|
2101
|
+
|
|
2102
|
+
<!-- View Switches -->
|
|
2103
|
+
<div class="view-switch-controls">
|
|
2104
|
+
@for (mode of viewModes; track mode) {
|
|
2105
|
+
<button
|
|
2106
|
+
type="button"
|
|
2107
|
+
class="view-btn"
|
|
2108
|
+
[class.active]="activeMode() === mode"
|
|
2109
|
+
(click)="activeMode.set(mode)"
|
|
2110
|
+
>
|
|
2111
|
+
{{ mode | titlecase }}
|
|
2112
|
+
</button>
|
|
2113
|
+
}
|
|
2114
|
+
</div>
|
|
1489
2115
|
</div>
|
|
1490
2116
|
</div>
|
|
1491
2117
|
|
|
1492
|
-
|
|
2118
|
+
<!-- Scheduler Body -->
|
|
2119
|
+
<div class="scheduler-body" (click)="showExportDropdown.set(false); activeMonthPopoverDate.set(null)">
|
|
1493
2120
|
@if (activeMode() === 'day' || activeMode() === 'week') {
|
|
1494
2121
|
<div class="time-grid-container">
|
|
2122
|
+
|
|
2123
|
+
<!-- Grid Header -->
|
|
1495
2124
|
<div class="time-grid-header">
|
|
1496
2125
|
<div class="time-axis-header"></div>
|
|
1497
2126
|
<div class="columns-headers-wrap">
|
|
1498
|
-
@for (col of activeColumns(); track dateKey(col)) {
|
|
1499
|
-
<div class="column-header-cell" [class.today]="isToday(col)">
|
|
1500
|
-
|
|
1501
|
-
|
|
2127
|
+
@for (col of activeColumns(); track col.resource ? col.resource.id : dateKey(col.date)) {
|
|
2128
|
+
<div class="column-header-cell" [class.today]="isToday(col.date)">
|
|
2129
|
+
@if (col.resource) {
|
|
2130
|
+
<div class="resource-header-card">
|
|
2131
|
+
@if (col.resource.avatarUrl) {
|
|
2132
|
+
<img [src]="col.resource.avatarUrl" [alt]="col.resource.name" class="resource-avatar" />
|
|
2133
|
+
} @else {
|
|
2134
|
+
<div class="resource-initials" [style.background-color]="col.resource.color || 'var(--primary-color)'">
|
|
2135
|
+
{{ getInitials(col.resource.name) }}
|
|
2136
|
+
</div>
|
|
2137
|
+
}
|
|
2138
|
+
<div class="resource-info">
|
|
2139
|
+
<span class="resource-name">{{ col.resource.name }}</span>
|
|
2140
|
+
<span class="resource-desc">{{ col.resource.description || 'Team Member' }}</span>
|
|
2141
|
+
</div>
|
|
2142
|
+
</div>
|
|
2143
|
+
} @else {
|
|
2144
|
+
<span class="day-name">{{ formatDate(col.date, { weekday: 'short' }) }}</span>
|
|
2145
|
+
<span class="day-num">{{ formatDate(col.date, { day: 'numeric' }) }}</span>
|
|
2146
|
+
}
|
|
1502
2147
|
</div>
|
|
1503
2148
|
}
|
|
1504
2149
|
</div>
|
|
1505
2150
|
</div>
|
|
1506
2151
|
|
|
2152
|
+
<!-- All-Day Events row -->
|
|
2153
|
+
@if (hasAllDayEvents()) {
|
|
2154
|
+
<div class="all-day-row-container">
|
|
2155
|
+
<div class="all-day-label-cell">All day</div>
|
|
2156
|
+
<div class="all-day-columns-wrap">
|
|
2157
|
+
@for (col of activeColumns(); track col.resource ? col.resource.id : dateKey(col.date)) {
|
|
2158
|
+
<div class="all-day-column-cell">
|
|
2159
|
+
@for (evt of getAllDayEventsForColumn(col); track evt.id) {
|
|
2160
|
+
<div class="all-day-event-block"
|
|
2161
|
+
[class.meeting]="evt.event.category === 'meeting'"
|
|
2162
|
+
[class.task]="evt.event.category === 'task'"
|
|
2163
|
+
[class.important]="evt.event.category === 'important'"
|
|
2164
|
+
[class.warning]="evt.event.category === 'warning'"
|
|
2165
|
+
[class.milestone]="evt.event.category === 'milestone'"
|
|
2166
|
+
[class.personal]="evt.event.category === 'personal'"
|
|
2167
|
+
[class.completed]="evt.event.completed"
|
|
2168
|
+
[ngStyle]="getEventStyles(evt.event)"
|
|
2169
|
+
(click)="clickEvent(evt.event); $event.stopPropagation()"
|
|
2170
|
+
[title]="evt.event.title"
|
|
2171
|
+
>
|
|
2172
|
+
<div class="all-day-event-indicator"></div>
|
|
2173
|
+
|
|
2174
|
+
@if (evt.event.category === 'task') {
|
|
2175
|
+
<input type="checkbox"
|
|
2176
|
+
class="task-completion-checkbox all-day-task-checkbox"
|
|
2177
|
+
[checked]="evt.event.completed || false"
|
|
2178
|
+
(click)="$event.stopPropagation()"
|
|
2179
|
+
(change)="toggleTaskCompletion(evt.event, $event)" />
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
<span class="all-day-event-title">{{ evt.event.title }}</span>
|
|
2183
|
+
<button class="event-delete-btn all-day-del"
|
|
2184
|
+
type="button"
|
|
2185
|
+
aria-label="Delete event"
|
|
2186
|
+
(click)="deleteEvent(evt.event, $event)">
|
|
2187
|
+
<svg class="delete-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12z"/></svg>
|
|
2188
|
+
</button>
|
|
2189
|
+
</div>
|
|
2190
|
+
}
|
|
2191
|
+
</div>
|
|
2192
|
+
}
|
|
2193
|
+
</div>
|
|
2194
|
+
</div>
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
<!-- Grid Body -->
|
|
1507
2198
|
<div class="time-grid-body">
|
|
1508
2199
|
<div class="time-axis-labels">
|
|
1509
2200
|
@for (h of hours(); track h) {
|
|
@@ -1518,21 +2209,46 @@ class SchedulerComponent {
|
|
|
1518
2209
|
}
|
|
1519
2210
|
</div>
|
|
1520
2211
|
|
|
1521
|
-
@for (col of activeColumns(); track dateKey(col)) {
|
|
2212
|
+
@for (col of activeColumns(); track col.resource ? col.resource.id : dateKey(col.date)) {
|
|
1522
2213
|
<div class="column-body-cell">
|
|
2214
|
+
|
|
2215
|
+
<!-- Interactive Slot Overlay -->
|
|
1523
2216
|
<div class="interactive-slots-overlay">
|
|
1524
2217
|
@for (slot of timeSlots(); track slot.key) {
|
|
1525
2218
|
<div
|
|
1526
2219
|
class="slot-trigger"
|
|
2220
|
+
[class.non-business-slot]="isNonBusinessHour(slot.hour)"
|
|
1527
2221
|
[style.height.px]="slotHeight()"
|
|
1528
|
-
(click)="clickSlot(col, slot.hour, slot.minute)"
|
|
2222
|
+
(click)="clickSlot(col.date, slot.hour, slot.minute, col.resource?.id)"
|
|
2223
|
+
(pointerdown)="onSlotPointerDown($event, col.date, slot.hour, slot.minute, col.resource?.id)"
|
|
2224
|
+
(pointerenter)="onSlotPointerEnter($event, col.date, slot.hour, slot.minute, col.resource?.id)"
|
|
1529
2225
|
(dragover)="onSlotDragOver($event)"
|
|
1530
|
-
(drop)="onSlotDrop($event, col, slot.hour, slot.minute)"
|
|
2226
|
+
(drop)="onSlotDrop($event, col.date, slot.hour, slot.minute, col.resource?.id)"
|
|
1531
2227
|
></div>
|
|
1532
2228
|
}
|
|
1533
2229
|
</div>
|
|
1534
2230
|
|
|
1535
|
-
|
|
2231
|
+
<!-- Live Current Time Indicator Line -->
|
|
2232
|
+
@if (isToday(col.date) && currentTimeTop(); as lineTop) {
|
|
2233
|
+
<div class="current-time-line" [style.top.%]="lineTop">
|
|
2234
|
+
<div class="line-dot"></div>
|
|
2235
|
+
</div>
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
<!-- Drag Select Preview Block -->
|
|
2239
|
+
@if (getDragSelectionLayout(col); as previewLayout) {
|
|
2240
|
+
<div class="drag-select-preview"
|
|
2241
|
+
[style.top.%]="previewLayout.top"
|
|
2242
|
+
[style.height.%]="previewLayout.height">
|
|
2243
|
+
<div class="preview-inner">
|
|
2244
|
+
<svg class="plus-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
|
|
2245
|
+
<span>Create Event</span>
|
|
2246
|
+
</div>
|
|
2247
|
+
</div>
|
|
2248
|
+
}
|
|
2249
|
+
|
|
2250
|
+
<!-- Event Cards -->
|
|
2251
|
+
@for (layout of getEventLayoutsForColumn(col); track layout.id) {
|
|
1536
2252
|
<div
|
|
1537
2253
|
class="scheduler-event-card"
|
|
1538
2254
|
[class.meeting]="layout.event.category === 'meeting'"
|
|
@@ -1541,16 +2257,19 @@ class SchedulerComponent {
|
|
|
1541
2257
|
[class.warning]="layout.event.category === 'warning'"
|
|
1542
2258
|
[class.milestone]="layout.event.category === 'milestone'"
|
|
1543
2259
|
[class.personal]="layout.event.category === 'personal'"
|
|
2260
|
+
[class.completed]="layout.event.completed"
|
|
1544
2261
|
[style.top.%]="layout.top"
|
|
1545
2262
|
[style.height.%]="layout.height"
|
|
1546
2263
|
[style.left.%]="layout.left"
|
|
1547
2264
|
[style.width.%]="layout.width"
|
|
1548
|
-
[
|
|
2265
|
+
[ngStyle]="getEventStyles(layout.event)"
|
|
1549
2266
|
draggable="true"
|
|
1550
2267
|
(dragstart)="onEventDragStart($event, layout)"
|
|
1551
2268
|
(dragend)="onEventDragEnd()"
|
|
1552
2269
|
(click)="clickEvent(layout.event)"
|
|
2270
|
+
(keydown.enter)="clickEvent(layout.event)"
|
|
1553
2271
|
[title]="eventTitle(layout)"
|
|
2272
|
+
tabindex="0"
|
|
1554
2273
|
>
|
|
1555
2274
|
<button
|
|
1556
2275
|
class="resize-handle resize-start"
|
|
@@ -1559,11 +2278,46 @@ class SchedulerComponent {
|
|
|
1559
2278
|
(click)="$event.stopPropagation()"
|
|
1560
2279
|
(pointerdown)="startResize($event, layout, 'start')"
|
|
1561
2280
|
></button>
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
<
|
|
1565
|
-
|
|
1566
|
-
|
|
2281
|
+
|
|
2282
|
+
@if (eventTemplate()) {
|
|
2283
|
+
<ng-container *ngTemplateOutlet="eventTemplate()!.templateRef; context: { $implicit: layout.event, event: layout.event, layout: layout }" />
|
|
2284
|
+
} @else {
|
|
2285
|
+
<div class="event-color-indicator"></div>
|
|
2286
|
+
|
|
2287
|
+
<!-- Task Completion Checkbox -->
|
|
2288
|
+
@if (layout.event.category === 'task') {
|
|
2289
|
+
<input type="checkbox"
|
|
2290
|
+
class="task-completion-checkbox"
|
|
2291
|
+
[checked]="layout.event.completed || false"
|
|
2292
|
+
(click)="$event.stopPropagation()"
|
|
2293
|
+
(change)="toggleTaskCompletion(layout.event, $event)" />
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
<div class="event-details">
|
|
2297
|
+
<div class="event-header-row">
|
|
2298
|
+
<span class="event-title">{{ layout.event.title }}</span>
|
|
2299
|
+
@if (layout.event.recurrence) {
|
|
2300
|
+
<svg class="recurrence-icon-svg" viewBox="0 0 24 24" title="Recurring series"><path fill="currentColor" d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L4.7 18.7c-1.07-1.63-1.7-3.6-1.7-5.7 0-5.52 4.48-10 10-10zm7.76 5.74L18.3 10.3c1.07 1.63 1.7 3.6 1.7 5.7 0 5.52-4.48 10-10 10v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"/></svg>
|
|
2301
|
+
}
|
|
2302
|
+
</div>
|
|
2303
|
+
|
|
2304
|
+
<span class="event-time">
|
|
2305
|
+
{{ formatEventTime(layout.start, layout.end) }}
|
|
2306
|
+
@if (layout.event.resourceId; as resId) {
|
|
2307
|
+
• {{ getResourceName(resId) }}
|
|
2308
|
+
}
|
|
2309
|
+
</span>
|
|
2310
|
+
</div>
|
|
2311
|
+
|
|
2312
|
+
<!-- Card Delete Quick Action -->
|
|
2313
|
+
<button class="event-delete-btn"
|
|
2314
|
+
type="button"
|
|
2315
|
+
aria-label="Delete event"
|
|
2316
|
+
(click)="deleteEvent(layout.event, $event)">
|
|
2317
|
+
<svg class="delete-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12z"/></svg>
|
|
2318
|
+
</button>
|
|
2319
|
+
}
|
|
2320
|
+
|
|
1567
2321
|
<button
|
|
1568
2322
|
class="resize-handle resize-end"
|
|
1569
2323
|
type="button"
|
|
@@ -1589,17 +2343,17 @@ class SchedulerComponent {
|
|
|
1589
2343
|
</div>
|
|
1590
2344
|
|
|
1591
2345
|
<div class="month-grid-body">
|
|
1592
|
-
@for (cell of activeColumns(); track dateKey(cell)) {
|
|
2346
|
+
@for (cell of activeColumns(); track dateKey(cell.date)) {
|
|
1593
2347
|
<div
|
|
1594
2348
|
class="month-day-cell"
|
|
1595
|
-
[class.today]="isToday(cell)"
|
|
1596
|
-
[class.other-month]="isOtherMonth(cell)"
|
|
1597
|
-
(click)="clickSlot(cell, 9, 0)"
|
|
2349
|
+
[class.today]="isToday(cell.date)"
|
|
2350
|
+
[class.other-month]="isOtherMonth(cell.date)"
|
|
2351
|
+
(click)="clickSlot(cell.date, 9, 0)"
|
|
1598
2352
|
>
|
|
1599
|
-
<span class="month-day-number">{{ formatDate(cell, { day: 'numeric' }) }}</span>
|
|
2353
|
+
<span class="month-day-number">{{ formatDate(cell.date, { day: 'numeric' }) }}</span>
|
|
1600
2354
|
|
|
1601
2355
|
<div class="month-day-events-list">
|
|
1602
|
-
@for (evt of getEventsForDate(cell); track evt.id) {
|
|
2356
|
+
@for (evt of getEventsForDate(cell.date).slice(0, 2); track evt.id) {
|
|
1603
2357
|
<div
|
|
1604
2358
|
class="month-event-item"
|
|
1605
2359
|
[class.meeting]="evt.event.category === 'meeting'"
|
|
@@ -1608,13 +2362,71 @@ class SchedulerComponent {
|
|
|
1608
2362
|
[class.warning]="evt.event.category === 'warning'"
|
|
1609
2363
|
[class.milestone]="evt.event.category === 'milestone'"
|
|
1610
2364
|
[class.personal]="evt.event.category === 'personal'"
|
|
2365
|
+
[class.completed]="evt.event.completed"
|
|
2366
|
+
[ngStyle]="getEventStyles(evt.event)"
|
|
1611
2367
|
(click)="clickEvent(evt.event); $event.stopPropagation()"
|
|
2368
|
+
(keydown.enter)="clickEvent(evt.event); $event.stopPropagation()"
|
|
1612
2369
|
[title]="evt.event.title"
|
|
2370
|
+
tabindex="0"
|
|
1613
2371
|
>
|
|
1614
|
-
|
|
2372
|
+
@if (evt.event.recurrence) {
|
|
2373
|
+
<svg class="month-recurrence-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L4.7 18.7c-1.07-1.63-1.7-3.6-1.7-5.7 0-5.52 4.48-10 10-10zm7.76 5.74L18.3 10.3c1.07 1.63 1.7 3.6 1.7 5.7 0 5.52-4.48 10-10 10v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"/></svg>
|
|
2374
|
+
}
|
|
2375
|
+
@if (eventTemplate()) {
|
|
2376
|
+
<ng-container *ngTemplateOutlet="eventTemplate()!.templateRef; context: { $implicit: evt.event, event: evt.event, layout: evt }" />
|
|
2377
|
+
} @else {
|
|
2378
|
+
{{ evt.event.title }}
|
|
2379
|
+
}
|
|
1615
2380
|
</div>
|
|
1616
2381
|
}
|
|
2382
|
+
@if (getEventsForDate(cell.date).length > 2) {
|
|
2383
|
+
<button
|
|
2384
|
+
class="month-more-indicator"
|
|
2385
|
+
type="button"
|
|
2386
|
+
(click)="openMonthPopover($event, cell.date)"
|
|
2387
|
+
>
|
|
2388
|
+
+{{ getEventsForDate(cell.date).length - 2 }} more
|
|
2389
|
+
</button>
|
|
2390
|
+
}
|
|
1617
2391
|
</div>
|
|
2392
|
+
|
|
2393
|
+
<!-- Month Events Popover -->
|
|
2394
|
+
@if (activeMonthPopoverDate() && isSameDate(activeMonthPopoverDate()!, cell.date)) {
|
|
2395
|
+
<div class="month-events-popover" (click)="$event.stopPropagation()">
|
|
2396
|
+
<div class="popover-header">
|
|
2397
|
+
<span class="popover-date">{{ formatDate(cell.date, { weekday: 'short', month: 'short', day: 'numeric' }) }}</span>
|
|
2398
|
+
<button class="popover-close" type="button" (click)="closeMonthPopover($event)">×</button>
|
|
2399
|
+
</div>
|
|
2400
|
+
<div class="popover-body">
|
|
2401
|
+
@for (evt of getEventsForDate(cell.date); track evt.id) {
|
|
2402
|
+
<div
|
|
2403
|
+
class="month-event-item popover-event-item"
|
|
2404
|
+
[class.meeting]="evt.event.category === 'meeting'"
|
|
2405
|
+
[class.task]="evt.event.category === 'task'"
|
|
2406
|
+
[class.important]="evt.event.category === 'important'"
|
|
2407
|
+
[class.warning]="evt.event.category === 'warning'"
|
|
2408
|
+
[class.milestone]="evt.event.category === 'milestone'"
|
|
2409
|
+
[class.personal]="evt.event.category === 'personal'"
|
|
2410
|
+
[class.completed]="evt.event.completed"
|
|
2411
|
+
[ngStyle]="getEventStyles(evt.event)"
|
|
2412
|
+
(click)="clickEvent(evt.event); activeMonthPopoverDate.set(null); $event.stopPropagation()"
|
|
2413
|
+
(keydown.enter)="clickEvent(evt.event); activeMonthPopoverDate.set(null); $event.stopPropagation()"
|
|
2414
|
+
[title]="evt.event.title"
|
|
2415
|
+
tabindex="0"
|
|
2416
|
+
>
|
|
2417
|
+
@if (evt.event.recurrence) {
|
|
2418
|
+
<svg class="month-recurrence-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L4.7 18.7c-1.07-1.63-1.7-3.6-1.7-5.7 0-5.52 4.48-10 10-10zm7.76 5.74L18.3 10.3c1.07 1.63 1.7 3.6 1.7 5.7 0 5.52-4.48 10-10 10v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"/></svg>
|
|
2419
|
+
}
|
|
2420
|
+
@if (eventTemplate()) {
|
|
2421
|
+
<ng-container *ngTemplateOutlet="eventTemplate()!.templateRef; context: { $implicit: evt.event, event: evt.event, layout: evt }" />
|
|
2422
|
+
} @else {
|
|
2423
|
+
{{ evt.event.title }}
|
|
2424
|
+
}
|
|
2425
|
+
</div>
|
|
2426
|
+
}
|
|
2427
|
+
</div>
|
|
2428
|
+
</div>
|
|
2429
|
+
}
|
|
1618
2430
|
</div>
|
|
1619
2431
|
}
|
|
1620
2432
|
</div>
|
|
@@ -1622,49 +2434,174 @@ class SchedulerComponent {
|
|
|
1622
2434
|
}
|
|
1623
2435
|
</div>
|
|
1624
2436
|
</div>
|
|
1625
|
-
`, isInline: true, styles: [":host{display:block;width:100%;height:100%}.ngx-scheduler-wrapper{display:flex;flex-direction:column;height:100%;min-height:500px;border:1px solid var(--border-color, #cbd5e1);border-radius:var(--radius-md, 12px);background:var(--bg-secondary, #ffffff);color:var(--text-primary, #0f172a);box-shadow:var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, .08));font-family:var(--ngx-font-family, sans-serif);overflow:hidden;transition:all .25s}.scheduler-toolbar{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;background:var(--border-light, #f1f5f9);border-bottom:1px solid var(--border-color, #cbd5e1);gap:16px;flex-wrap:wrap}.nav-controls{display:flex;align-items:center;gap:10px}.current-period-label{margin:0;font-size:16px;font-weight:750;min-width:180px}.tool-btn{background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #cbd5e1);border-radius:6px;padding:6px 12px;font-size:12px;font-weight:650;cursor:pointer;color:var(--text-primary, #0f172a);transition:all .2s}.tool-btn:hover,.tool-btn:focus-visible{background:var(--border-light, #f1f5f9);border-color:var(--primary-color, #4f46e5);outline:none}.today-btn{font-weight:750}.view-switch-controls{display:flex;border:1px solid var(--border-color, #cbd5e1);border-radius:6px;overflow:hidden}.view-btn{background:var(--bg-secondary, #ffffff);border:none;border-right:1px solid var(--border-color, #cbd5e1);padding:6px 14px;font-size:12px;font-weight:650;color:var(--text-secondary, #475569);cursor:pointer;transition:all .2s}.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;padding:10px 0;border-right:1px solid var(--border-color, #e2e8f0)}.column-header-cell:last-child{border-right:none}.column-header-cell.today{background:var(--primary-glow, rgba(79, 70, 229, .03))}.column-header-cell.today .day-num{background:var(--primary-color, #4f46e5);color:#fff;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;margin-top:2px}.day-name{font-size:11px;font-weight: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)}.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))}.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}.scheduler-event-card:hover{transform:translateY(-1px);box-shadow:var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, .1));z-index:4}.event-color-indicator{width:3px;height:100%;border-radius:2px;flex-shrink:0;background:currentColor}.event-details{display:flex;flex-direction:column;gap:2px;overflow:hidden;min-width:0}.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}.resize-handle{position:absolute;left:0;right:0;height:6px;border:0;background:transparent;cursor:ns-resize}.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}.month-event-item:hover{transform:scale(1.02)}.meeting{background-color:var(--ngx-schedule-meeting-bg, hsl(207, 95%, 97%));border-color:var(--ngx-schedule-meeting-border, hsl(207, 90%, 88%));color:var(--ngx-schedule-meeting-text, hsl(207, 90%, 30%))}.task{background-color:var(--ngx-schedule-task-bg, hsl(142, 70%, 97%));border-color:var(--ngx-schedule-task-border, hsl(142, 60%, 88%));color:var(--ngx-schedule-task-text, hsl(142, 60%, 25%))}.important{background-color:var(--ngx-schedule-important-bg, hsl(0, 90%, 97%));border-color:var(--ngx-schedule-important-border, hsl(0, 80%, 88%));color:var(--ngx-schedule-important-text, hsl(0, 80%, 35%))}.warning{background-color:var(--ngx-schedule-warning-bg, hsl(38, 90%, 97%));border-color:var(--ngx-schedule-warning-border, hsl(38, 80%, 88%));color:var(--ngx-schedule-warning-text, hsl(38, 80%, 28%))}.milestone{background-color:var(--ngx-schedule-milestone-bg, hsl(271, 80%, 97%));border-color:var(--ngx-schedule-milestone-border, hsl(271, 70%, 88%));color:var(--ngx-schedule-milestone-text, hsl(271, 70%, 35%))}.personal{background-color:var(--ngx-schedule-personal-bg, hsl(180, 70%, 96%));border-color:var(--ngx-schedule-personal-border, hsl(180, 60%, 85%));color:var(--ngx-schedule-personal-text, hsl(180, 60%, 28%))}.ngx-scheduler-wrapper.dark{border-color:#1f2937;background:#0f172a;color:#f8fafc}.ngx-scheduler-wrapper.dark .scheduler-toolbar,.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 .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}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.TitleCasePipe, name: "titlecase" }] });
|
|
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" }] });
|
|
1626
2438
|
}
|
|
1627
2439
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SchedulerComponent, decorators: [{
|
|
1628
2440
|
type: Component,
|
|
1629
2441
|
args: [{ selector: 'ngx-scheduler', standalone: true, imports: [CommonModule], template: `
|
|
1630
2442
|
<div class="ngx-scheduler-wrapper" [class.dark]="theme() === 'dark'">
|
|
2443
|
+
|
|
2444
|
+
<!-- Scheduler Toolbar -->
|
|
1631
2445
|
<div class="scheduler-toolbar">
|
|
1632
2446
|
<div class="nav-controls">
|
|
1633
|
-
<
|
|
1634
|
-
|
|
1635
|
-
|
|
2447
|
+
<div class="nav-buttons-group">
|
|
2448
|
+
<button class="tool-btn nav-arrow" type="button" (click)="navigate(-1)" aria-label="Previous period">
|
|
2449
|
+
<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
|
+
</button>
|
|
2451
|
+
<button class="tool-btn today-btn" type="button" (click)="goToToday()">Today</button>
|
|
2452
|
+
<button class="tool-btn nav-arrow" type="button" (click)="navigate(1)" aria-label="Next period">
|
|
2453
|
+
<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
|
+
</button>
|
|
2455
|
+
</div>
|
|
1636
2456
|
<h2 class="current-period-label">{{ periodLabel() }}</h2>
|
|
1637
2457
|
</div>
|
|
1638
2458
|
|
|
1639
|
-
<div class="
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
class="
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
2459
|
+
<div class="toolbar-actions">
|
|
2460
|
+
<!-- Keyword Search -->
|
|
2461
|
+
@if (showSearch()) {
|
|
2462
|
+
<div class="search-box-container">
|
|
2463
|
+
<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
|
+
<input type="text"
|
|
2465
|
+
class="search-input"
|
|
2466
|
+
placeholder="Search events..."
|
|
2467
|
+
[value]="searchQuery()"
|
|
2468
|
+
(input)="onSearchInput($event)" />
|
|
2469
|
+
</div>
|
|
1649
2470
|
}
|
|
2471
|
+
|
|
2472
|
+
<!-- Resource Select Filter (Week/Month View) -->
|
|
2473
|
+
@if (resources().length > 0 && activeMode() !== 'day') {
|
|
2474
|
+
<div class="resource-filter-container">
|
|
2475
|
+
<select class="resource-select" [value]="selectedResourceId() || ''" (change)="onResourceFilterChange($event)">
|
|
2476
|
+
<option value="">All Resources</option>
|
|
2477
|
+
@for (res of resources(); track res.id) {
|
|
2478
|
+
<option [value]="res.id">{{ res.name }}</option>
|
|
2479
|
+
}
|
|
2480
|
+
</select>
|
|
2481
|
+
</div>
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
<!-- Export Dropdown -->
|
|
2485
|
+
<div class="export-dropdown-wrapper">
|
|
2486
|
+
<button class="tool-btn export-toggle-btn" type="button" (click)="showExportDropdown.set(!showExportDropdown())">
|
|
2487
|
+
<span>Export</span>
|
|
2488
|
+
<svg class="dropdown-arrow-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M7 10l5 5 5-5z"/></svg>
|
|
2489
|
+
</button>
|
|
2490
|
+
|
|
2491
|
+
@if (showExportDropdown()) {
|
|
2492
|
+
<div class="export-menu-dropdown">
|
|
2493
|
+
<button class="export-item" (click)="exportToICS(); showExportDropdown.set(false)">
|
|
2494
|
+
<svg class="export-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>
|
|
2495
|
+
<span>iCalendar (.ics)</span>
|
|
2496
|
+
</button>
|
|
2497
|
+
<button class="export-item" (click)="exportToJSON(); showExportDropdown.set(false)">
|
|
2498
|
+
<svg class="export-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>
|
|
2499
|
+
<span>JSON format</span>
|
|
2500
|
+
</button>
|
|
2501
|
+
<button class="export-item" (click)="exportToCSV(); showExportDropdown.set(false)">
|
|
2502
|
+
<svg class="export-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/></svg>
|
|
2503
|
+
<span>CSV document</span>
|
|
2504
|
+
</button>
|
|
2505
|
+
</div>
|
|
2506
|
+
}
|
|
2507
|
+
</div>
|
|
2508
|
+
|
|
2509
|
+
<!-- View Switches -->
|
|
2510
|
+
<div class="view-switch-controls">
|
|
2511
|
+
@for (mode of viewModes; track mode) {
|
|
2512
|
+
<button
|
|
2513
|
+
type="button"
|
|
2514
|
+
class="view-btn"
|
|
2515
|
+
[class.active]="activeMode() === mode"
|
|
2516
|
+
(click)="activeMode.set(mode)"
|
|
2517
|
+
>
|
|
2518
|
+
{{ mode | titlecase }}
|
|
2519
|
+
</button>
|
|
2520
|
+
}
|
|
2521
|
+
</div>
|
|
1650
2522
|
</div>
|
|
1651
2523
|
</div>
|
|
1652
2524
|
|
|
1653
|
-
|
|
2525
|
+
<!-- Scheduler Body -->
|
|
2526
|
+
<div class="scheduler-body" (click)="showExportDropdown.set(false); activeMonthPopoverDate.set(null)">
|
|
1654
2527
|
@if (activeMode() === 'day' || activeMode() === 'week') {
|
|
1655
2528
|
<div class="time-grid-container">
|
|
2529
|
+
|
|
2530
|
+
<!-- Grid Header -->
|
|
1656
2531
|
<div class="time-grid-header">
|
|
1657
2532
|
<div class="time-axis-header"></div>
|
|
1658
2533
|
<div class="columns-headers-wrap">
|
|
1659
|
-
@for (col of activeColumns(); track dateKey(col)) {
|
|
1660
|
-
<div class="column-header-cell" [class.today]="isToday(col)">
|
|
1661
|
-
|
|
1662
|
-
|
|
2534
|
+
@for (col of activeColumns(); track col.resource ? col.resource.id : dateKey(col.date)) {
|
|
2535
|
+
<div class="column-header-cell" [class.today]="isToday(col.date)">
|
|
2536
|
+
@if (col.resource) {
|
|
2537
|
+
<div class="resource-header-card">
|
|
2538
|
+
@if (col.resource.avatarUrl) {
|
|
2539
|
+
<img [src]="col.resource.avatarUrl" [alt]="col.resource.name" class="resource-avatar" />
|
|
2540
|
+
} @else {
|
|
2541
|
+
<div class="resource-initials" [style.background-color]="col.resource.color || 'var(--primary-color)'">
|
|
2542
|
+
{{ getInitials(col.resource.name) }}
|
|
2543
|
+
</div>
|
|
2544
|
+
}
|
|
2545
|
+
<div class="resource-info">
|
|
2546
|
+
<span class="resource-name">{{ col.resource.name }}</span>
|
|
2547
|
+
<span class="resource-desc">{{ col.resource.description || 'Team Member' }}</span>
|
|
2548
|
+
</div>
|
|
2549
|
+
</div>
|
|
2550
|
+
} @else {
|
|
2551
|
+
<span class="day-name">{{ formatDate(col.date, { weekday: 'short' }) }}</span>
|
|
2552
|
+
<span class="day-num">{{ formatDate(col.date, { day: 'numeric' }) }}</span>
|
|
2553
|
+
}
|
|
1663
2554
|
</div>
|
|
1664
2555
|
}
|
|
1665
2556
|
</div>
|
|
1666
2557
|
</div>
|
|
1667
2558
|
|
|
2559
|
+
<!-- All-Day Events row -->
|
|
2560
|
+
@if (hasAllDayEvents()) {
|
|
2561
|
+
<div class="all-day-row-container">
|
|
2562
|
+
<div class="all-day-label-cell">All day</div>
|
|
2563
|
+
<div class="all-day-columns-wrap">
|
|
2564
|
+
@for (col of activeColumns(); track col.resource ? col.resource.id : dateKey(col.date)) {
|
|
2565
|
+
<div class="all-day-column-cell">
|
|
2566
|
+
@for (evt of getAllDayEventsForColumn(col); track evt.id) {
|
|
2567
|
+
<div class="all-day-event-block"
|
|
2568
|
+
[class.meeting]="evt.event.category === 'meeting'"
|
|
2569
|
+
[class.task]="evt.event.category === 'task'"
|
|
2570
|
+
[class.important]="evt.event.category === 'important'"
|
|
2571
|
+
[class.warning]="evt.event.category === 'warning'"
|
|
2572
|
+
[class.milestone]="evt.event.category === 'milestone'"
|
|
2573
|
+
[class.personal]="evt.event.category === 'personal'"
|
|
2574
|
+
[class.completed]="evt.event.completed"
|
|
2575
|
+
[ngStyle]="getEventStyles(evt.event)"
|
|
2576
|
+
(click)="clickEvent(evt.event); $event.stopPropagation()"
|
|
2577
|
+
[title]="evt.event.title"
|
|
2578
|
+
>
|
|
2579
|
+
<div class="all-day-event-indicator"></div>
|
|
2580
|
+
|
|
2581
|
+
@if (evt.event.category === 'task') {
|
|
2582
|
+
<input type="checkbox"
|
|
2583
|
+
class="task-completion-checkbox all-day-task-checkbox"
|
|
2584
|
+
[checked]="evt.event.completed || false"
|
|
2585
|
+
(click)="$event.stopPropagation()"
|
|
2586
|
+
(change)="toggleTaskCompletion(evt.event, $event)" />
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
<span class="all-day-event-title">{{ evt.event.title }}</span>
|
|
2590
|
+
<button class="event-delete-btn all-day-del"
|
|
2591
|
+
type="button"
|
|
2592
|
+
aria-label="Delete event"
|
|
2593
|
+
(click)="deleteEvent(evt.event, $event)">
|
|
2594
|
+
<svg class="delete-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12z"/></svg>
|
|
2595
|
+
</button>
|
|
2596
|
+
</div>
|
|
2597
|
+
}
|
|
2598
|
+
</div>
|
|
2599
|
+
}
|
|
2600
|
+
</div>
|
|
2601
|
+
</div>
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
<!-- Grid Body -->
|
|
1668
2605
|
<div class="time-grid-body">
|
|
1669
2606
|
<div class="time-axis-labels">
|
|
1670
2607
|
@for (h of hours(); track h) {
|
|
@@ -1679,21 +2616,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
1679
2616
|
}
|
|
1680
2617
|
</div>
|
|
1681
2618
|
|
|
1682
|
-
@for (col of activeColumns(); track dateKey(col)) {
|
|
2619
|
+
@for (col of activeColumns(); track col.resource ? col.resource.id : dateKey(col.date)) {
|
|
1683
2620
|
<div class="column-body-cell">
|
|
2621
|
+
|
|
2622
|
+
<!-- Interactive Slot Overlay -->
|
|
1684
2623
|
<div class="interactive-slots-overlay">
|
|
1685
2624
|
@for (slot of timeSlots(); track slot.key) {
|
|
1686
2625
|
<div
|
|
1687
2626
|
class="slot-trigger"
|
|
2627
|
+
[class.non-business-slot]="isNonBusinessHour(slot.hour)"
|
|
1688
2628
|
[style.height.px]="slotHeight()"
|
|
1689
|
-
(click)="clickSlot(col, slot.hour, slot.minute)"
|
|
2629
|
+
(click)="clickSlot(col.date, slot.hour, slot.minute, col.resource?.id)"
|
|
2630
|
+
(pointerdown)="onSlotPointerDown($event, col.date, slot.hour, slot.minute, col.resource?.id)"
|
|
2631
|
+
(pointerenter)="onSlotPointerEnter($event, col.date, slot.hour, slot.minute, col.resource?.id)"
|
|
1690
2632
|
(dragover)="onSlotDragOver($event)"
|
|
1691
|
-
(drop)="onSlotDrop($event, col, slot.hour, slot.minute)"
|
|
2633
|
+
(drop)="onSlotDrop($event, col.date, slot.hour, slot.minute, col.resource?.id)"
|
|
1692
2634
|
></div>
|
|
1693
2635
|
}
|
|
1694
2636
|
</div>
|
|
1695
2637
|
|
|
1696
|
-
|
|
2638
|
+
<!-- Live Current Time Indicator Line -->
|
|
2639
|
+
@if (isToday(col.date) && currentTimeTop(); as lineTop) {
|
|
2640
|
+
<div class="current-time-line" [style.top.%]="lineTop">
|
|
2641
|
+
<div class="line-dot"></div>
|
|
2642
|
+
</div>
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
<!-- Drag Select Preview Block -->
|
|
2646
|
+
@if (getDragSelectionLayout(col); as previewLayout) {
|
|
2647
|
+
<div class="drag-select-preview"
|
|
2648
|
+
[style.top.%]="previewLayout.top"
|
|
2649
|
+
[style.height.%]="previewLayout.height">
|
|
2650
|
+
<div class="preview-inner">
|
|
2651
|
+
<svg class="plus-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
|
|
2652
|
+
<span>Create Event</span>
|
|
2653
|
+
</div>
|
|
2654
|
+
</div>
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
<!-- Event Cards -->
|
|
2658
|
+
@for (layout of getEventLayoutsForColumn(col); track layout.id) {
|
|
1697
2659
|
<div
|
|
1698
2660
|
class="scheduler-event-card"
|
|
1699
2661
|
[class.meeting]="layout.event.category === 'meeting'"
|
|
@@ -1702,16 +2664,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
1702
2664
|
[class.warning]="layout.event.category === 'warning'"
|
|
1703
2665
|
[class.milestone]="layout.event.category === 'milestone'"
|
|
1704
2666
|
[class.personal]="layout.event.category === 'personal'"
|
|
2667
|
+
[class.completed]="layout.event.completed"
|
|
1705
2668
|
[style.top.%]="layout.top"
|
|
1706
2669
|
[style.height.%]="layout.height"
|
|
1707
2670
|
[style.left.%]="layout.left"
|
|
1708
2671
|
[style.width.%]="layout.width"
|
|
1709
|
-
[
|
|
2672
|
+
[ngStyle]="getEventStyles(layout.event)"
|
|
1710
2673
|
draggable="true"
|
|
1711
2674
|
(dragstart)="onEventDragStart($event, layout)"
|
|
1712
2675
|
(dragend)="onEventDragEnd()"
|
|
1713
2676
|
(click)="clickEvent(layout.event)"
|
|
2677
|
+
(keydown.enter)="clickEvent(layout.event)"
|
|
1714
2678
|
[title]="eventTitle(layout)"
|
|
2679
|
+
tabindex="0"
|
|
1715
2680
|
>
|
|
1716
2681
|
<button
|
|
1717
2682
|
class="resize-handle resize-start"
|
|
@@ -1720,11 +2685,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
1720
2685
|
(click)="$event.stopPropagation()"
|
|
1721
2686
|
(pointerdown)="startResize($event, layout, 'start')"
|
|
1722
2687
|
></button>
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
<
|
|
1726
|
-
|
|
1727
|
-
|
|
2688
|
+
|
|
2689
|
+
@if (eventTemplate()) {
|
|
2690
|
+
<ng-container *ngTemplateOutlet="eventTemplate()!.templateRef; context: { $implicit: layout.event, event: layout.event, layout: layout }" />
|
|
2691
|
+
} @else {
|
|
2692
|
+
<div class="event-color-indicator"></div>
|
|
2693
|
+
|
|
2694
|
+
<!-- Task Completion Checkbox -->
|
|
2695
|
+
@if (layout.event.category === 'task') {
|
|
2696
|
+
<input type="checkbox"
|
|
2697
|
+
class="task-completion-checkbox"
|
|
2698
|
+
[checked]="layout.event.completed || false"
|
|
2699
|
+
(click)="$event.stopPropagation()"
|
|
2700
|
+
(change)="toggleTaskCompletion(layout.event, $event)" />
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
<div class="event-details">
|
|
2704
|
+
<div class="event-header-row">
|
|
2705
|
+
<span class="event-title">{{ layout.event.title }}</span>
|
|
2706
|
+
@if (layout.event.recurrence) {
|
|
2707
|
+
<svg class="recurrence-icon-svg" viewBox="0 0 24 24" title="Recurring series"><path fill="currentColor" d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L4.7 18.7c-1.07-1.63-1.7-3.6-1.7-5.7 0-5.52 4.48-10 10-10zm7.76 5.74L18.3 10.3c1.07 1.63 1.7 3.6 1.7 5.7 0 5.52-4.48 10-10 10v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"/></svg>
|
|
2708
|
+
}
|
|
2709
|
+
</div>
|
|
2710
|
+
|
|
2711
|
+
<span class="event-time">
|
|
2712
|
+
{{ formatEventTime(layout.start, layout.end) }}
|
|
2713
|
+
@if (layout.event.resourceId; as resId) {
|
|
2714
|
+
• {{ getResourceName(resId) }}
|
|
2715
|
+
}
|
|
2716
|
+
</span>
|
|
2717
|
+
</div>
|
|
2718
|
+
|
|
2719
|
+
<!-- Card Delete Quick Action -->
|
|
2720
|
+
<button class="event-delete-btn"
|
|
2721
|
+
type="button"
|
|
2722
|
+
aria-label="Delete event"
|
|
2723
|
+
(click)="deleteEvent(layout.event, $event)">
|
|
2724
|
+
<svg class="delete-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12z"/></svg>
|
|
2725
|
+
</button>
|
|
2726
|
+
}
|
|
2727
|
+
|
|
1728
2728
|
<button
|
|
1729
2729
|
class="resize-handle resize-end"
|
|
1730
2730
|
type="button"
|
|
@@ -1750,17 +2750,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
1750
2750
|
</div>
|
|
1751
2751
|
|
|
1752
2752
|
<div class="month-grid-body">
|
|
1753
|
-
@for (cell of activeColumns(); track dateKey(cell)) {
|
|
2753
|
+
@for (cell of activeColumns(); track dateKey(cell.date)) {
|
|
1754
2754
|
<div
|
|
1755
2755
|
class="month-day-cell"
|
|
1756
|
-
[class.today]="isToday(cell)"
|
|
1757
|
-
[class.other-month]="isOtherMonth(cell)"
|
|
1758
|
-
(click)="clickSlot(cell, 9, 0)"
|
|
2756
|
+
[class.today]="isToday(cell.date)"
|
|
2757
|
+
[class.other-month]="isOtherMonth(cell.date)"
|
|
2758
|
+
(click)="clickSlot(cell.date, 9, 0)"
|
|
1759
2759
|
>
|
|
1760
|
-
<span class="month-day-number">{{ formatDate(cell, { day: 'numeric' }) }}</span>
|
|
2760
|
+
<span class="month-day-number">{{ formatDate(cell.date, { day: 'numeric' }) }}</span>
|
|
1761
2761
|
|
|
1762
2762
|
<div class="month-day-events-list">
|
|
1763
|
-
@for (evt of getEventsForDate(cell); track evt.id) {
|
|
2763
|
+
@for (evt of getEventsForDate(cell.date).slice(0, 2); track evt.id) {
|
|
1764
2764
|
<div
|
|
1765
2765
|
class="month-event-item"
|
|
1766
2766
|
[class.meeting]="evt.event.category === 'meeting'"
|
|
@@ -1769,13 +2769,71 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
1769
2769
|
[class.warning]="evt.event.category === 'warning'"
|
|
1770
2770
|
[class.milestone]="evt.event.category === 'milestone'"
|
|
1771
2771
|
[class.personal]="evt.event.category === 'personal'"
|
|
2772
|
+
[class.completed]="evt.event.completed"
|
|
2773
|
+
[ngStyle]="getEventStyles(evt.event)"
|
|
1772
2774
|
(click)="clickEvent(evt.event); $event.stopPropagation()"
|
|
2775
|
+
(keydown.enter)="clickEvent(evt.event); $event.stopPropagation()"
|
|
1773
2776
|
[title]="evt.event.title"
|
|
2777
|
+
tabindex="0"
|
|
1774
2778
|
>
|
|
1775
|
-
|
|
2779
|
+
@if (evt.event.recurrence) {
|
|
2780
|
+
<svg class="month-recurrence-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L4.7 18.7c-1.07-1.63-1.7-3.6-1.7-5.7 0-5.52 4.48-10 10-10zm7.76 5.74L18.3 10.3c1.07 1.63 1.7 3.6 1.7 5.7 0 5.52-4.48 10-10 10v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"/></svg>
|
|
2781
|
+
}
|
|
2782
|
+
@if (eventTemplate()) {
|
|
2783
|
+
<ng-container *ngTemplateOutlet="eventTemplate()!.templateRef; context: { $implicit: evt.event, event: evt.event, layout: evt }" />
|
|
2784
|
+
} @else {
|
|
2785
|
+
{{ evt.event.title }}
|
|
2786
|
+
}
|
|
1776
2787
|
</div>
|
|
1777
2788
|
}
|
|
2789
|
+
@if (getEventsForDate(cell.date).length > 2) {
|
|
2790
|
+
<button
|
|
2791
|
+
class="month-more-indicator"
|
|
2792
|
+
type="button"
|
|
2793
|
+
(click)="openMonthPopover($event, cell.date)"
|
|
2794
|
+
>
|
|
2795
|
+
+{{ getEventsForDate(cell.date).length - 2 }} more
|
|
2796
|
+
</button>
|
|
2797
|
+
}
|
|
1778
2798
|
</div>
|
|
2799
|
+
|
|
2800
|
+
<!-- Month Events Popover -->
|
|
2801
|
+
@if (activeMonthPopoverDate() && isSameDate(activeMonthPopoverDate()!, cell.date)) {
|
|
2802
|
+
<div class="month-events-popover" (click)="$event.stopPropagation()">
|
|
2803
|
+
<div class="popover-header">
|
|
2804
|
+
<span class="popover-date">{{ formatDate(cell.date, { weekday: 'short', month: 'short', day: 'numeric' }) }}</span>
|
|
2805
|
+
<button class="popover-close" type="button" (click)="closeMonthPopover($event)">×</button>
|
|
2806
|
+
</div>
|
|
2807
|
+
<div class="popover-body">
|
|
2808
|
+
@for (evt of getEventsForDate(cell.date); track evt.id) {
|
|
2809
|
+
<div
|
|
2810
|
+
class="month-event-item popover-event-item"
|
|
2811
|
+
[class.meeting]="evt.event.category === 'meeting'"
|
|
2812
|
+
[class.task]="evt.event.category === 'task'"
|
|
2813
|
+
[class.important]="evt.event.category === 'important'"
|
|
2814
|
+
[class.warning]="evt.event.category === 'warning'"
|
|
2815
|
+
[class.milestone]="evt.event.category === 'milestone'"
|
|
2816
|
+
[class.personal]="evt.event.category === 'personal'"
|
|
2817
|
+
[class.completed]="evt.event.completed"
|
|
2818
|
+
[ngStyle]="getEventStyles(evt.event)"
|
|
2819
|
+
(click)="clickEvent(evt.event); activeMonthPopoverDate.set(null); $event.stopPropagation()"
|
|
2820
|
+
(keydown.enter)="clickEvent(evt.event); activeMonthPopoverDate.set(null); $event.stopPropagation()"
|
|
2821
|
+
[title]="evt.event.title"
|
|
2822
|
+
tabindex="0"
|
|
2823
|
+
>
|
|
2824
|
+
@if (evt.event.recurrence) {
|
|
2825
|
+
<svg class="month-recurrence-icon-svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L4.7 18.7c-1.07-1.63-1.7-3.6-1.7-5.7 0-5.52 4.48-10 10-10zm7.76 5.74L18.3 10.3c1.07 1.63 1.7 3.6 1.7 5.7 0 5.52-4.48 10-10 10v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"/></svg>
|
|
2826
|
+
}
|
|
2827
|
+
@if (eventTemplate()) {
|
|
2828
|
+
<ng-container *ngTemplateOutlet="eventTemplate()!.templateRef; context: { $implicit: evt.event, event: evt.event, layout: evt }" />
|
|
2829
|
+
} @else {
|
|
2830
|
+
{{ evt.event.title }}
|
|
2831
|
+
}
|
|
2832
|
+
</div>
|
|
2833
|
+
}
|
|
2834
|
+
</div>
|
|
2835
|
+
</div>
|
|
2836
|
+
}
|
|
1779
2837
|
</div>
|
|
1780
2838
|
}
|
|
1781
2839
|
</div>
|
|
@@ -1783,8 +2841,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
1783
2841
|
}
|
|
1784
2842
|
</div>
|
|
1785
2843
|
</div>
|
|
1786
|
-
`, styles: [":host{display:block;width:100%;height:100%}.ngx-scheduler-wrapper{display:flex;flex-direction:column;height:100%;min-height:500px;border:1px solid var(--border-color, #cbd5e1);border-radius:var(--radius-md, 12px);background:var(--bg-secondary, #ffffff);color:var(--text-primary, #0f172a);box-shadow:var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, .08));font-family:var(--ngx-font-family, sans-serif);overflow:hidden;transition:all .25s}.scheduler-toolbar{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;background:var(--border-light, #f1f5f9);border-bottom:1px solid var(--border-color, #cbd5e1);gap:16px;flex-wrap:wrap}.nav-controls{display:flex;align-items:center;gap:10px}.current-period-label{margin:0;font-size:16px;font-weight:750;min-width:180px}.tool-btn{background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #cbd5e1);border-radius:6px;padding:6px 12px;font-size:12px;font-weight:650;cursor:pointer;color:var(--text-primary, #0f172a);transition:all .2s}.tool-btn:hover,.tool-btn:focus-visible{background:var(--border-light, #f1f5f9);border-color:var(--primary-color, #4f46e5);outline:none}.today-btn{font-weight:750}.view-switch-controls{display:flex;border:1px solid var(--border-color, #cbd5e1);border-radius:6px;overflow:hidden}.view-btn{background:var(--bg-secondary, #ffffff);border:none;border-right:1px solid var(--border-color, #cbd5e1);padding:6px 14px;font-size:12px;font-weight:650;color:var(--text-secondary, #475569);cursor:pointer;transition:all .2s}.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;padding:10px 0;border-right:1px solid var(--border-color, #e2e8f0)}.column-header-cell:last-child{border-right:none}.column-header-cell.today{background:var(--primary-glow, rgba(79, 70, 229, .03))}.column-header-cell.today .day-num{background:var(--primary-color, #4f46e5);color:#fff;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;margin-top:2px}.day-name{font-size:11px;font-weight: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)}.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))}.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}.scheduler-event-card:hover{transform:translateY(-1px);box-shadow:var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, .1));z-index:4}.event-color-indicator{width:3px;height:100%;border-radius:2px;flex-shrink:0;background:currentColor}.event-details{display:flex;flex-direction:column;gap:2px;overflow:hidden;min-width:0}.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}.resize-handle{position:absolute;left:0;right:0;height:6px;border:0;background:transparent;cursor:ns-resize}.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}.month-event-item:hover{transform:scale(1.02)}.meeting{background-color:var(--ngx-schedule-meeting-bg, hsl(207, 95%, 97%));border-color:var(--ngx-schedule-meeting-border, hsl(207, 90%, 88%));color:var(--ngx-schedule-meeting-text, hsl(207, 90%, 30%))}.task{background-color:var(--ngx-schedule-task-bg, hsl(142, 70%, 97%));border-color:var(--ngx-schedule-task-border, hsl(142, 60%, 88%));color:var(--ngx-schedule-task-text, hsl(142, 60%, 25%))}.important{background-color:var(--ngx-schedule-important-bg, hsl(0, 90%, 97%));border-color:var(--ngx-schedule-important-border, hsl(0, 80%, 88%));color:var(--ngx-schedule-important-text, hsl(0, 80%, 35%))}.warning{background-color:var(--ngx-schedule-warning-bg, hsl(38, 90%, 97%));border-color:var(--ngx-schedule-warning-border, hsl(38, 80%, 88%));color:var(--ngx-schedule-warning-text, hsl(38, 80%, 28%))}.milestone{background-color:var(--ngx-schedule-milestone-bg, hsl(271, 80%, 97%));border-color:var(--ngx-schedule-milestone-border, hsl(271, 70%, 88%));color:var(--ngx-schedule-milestone-text, hsl(271, 70%, 35%))}.personal{background-color:var(--ngx-schedule-personal-bg, hsl(180, 70%, 96%));border-color:var(--ngx-schedule-personal-border, hsl(180, 60%, 85%));color:var(--ngx-schedule-personal-text, hsl(180, 60%, 28%))}.ngx-scheduler-wrapper.dark{border-color:#1f2937;background:#0f172a;color:#f8fafc}.ngx-scheduler-wrapper.dark .scheduler-toolbar,.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 .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}\n"] }]
|
|
1787
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
2844
|
+
`, 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"] }]
|
|
2845
|
+
}], ctorParameters: () => [], propDecorators: { handleKeyDown: [{
|
|
2846
|
+
type: HostListener,
|
|
2847
|
+
args: ['window:keydown', ['$event']]
|
|
2848
|
+
}], onWindowPointerUp: [{
|
|
2849
|
+
type: HostListener,
|
|
2850
|
+
args: ['window:pointerup', ['$event']]
|
|
2851
|
+
}], finishResize: [{
|
|
1788
2852
|
type: HostListener,
|
|
1789
2853
|
args: ['window:pointerup', ['$event']]
|
|
1790
2854
|
}], cancelResize: [{
|
|
@@ -2669,5 +3733,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2669
3733
|
* Generated bundle index. Do not edit.
|
|
2670
3734
|
*/
|
|
2671
3735
|
|
|
2672
|
-
export { ImageCompareComponent, JsonViewerComponent, KanbanComponent, KeyValueListComponent, ListViewComponent, OrgChartComponent, SchedulerComponent, TimelineComponent, TreeViewComponent, VirtualListComponent };
|
|
3736
|
+
export { ImageCompareComponent, JsonViewerComponent, KanbanComponent, KeyValueListComponent, ListViewComponent, NgxSchedulerEventTemplateDirective, NgxTimelineCardTemplateDirective, NgxTimelineMarkerTemplateDirective, OrgChartComponent, SchedulerComponent, TimelineComponent, TreeViewComponent, VirtualListComponent };
|
|
2673
3737
|
//# sourceMappingURL=ngx-core-components-views.mjs.map
|