ngx-core-components 0.3.13 → 0.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/charts/area-chart/area-chart.component.d.ts +2 -0
- package/charts/bar-chart/bar-chart.component.d.ts +23 -6
- package/charts/box-plot-chart/box-plot-chart.component.d.ts +68 -0
- package/charts/candlestick-chart/candlestick-chart.component.d.ts +58 -0
- package/charts/funnel-chart/funnel-chart.component.d.ts +3 -1
- package/charts/line-chart/line-chart.component.d.ts +15 -1
- package/charts/pie-chart/pie-chart.component.d.ts +14 -1
- package/charts/public-api.d.ts +8 -0
- package/charts/radial-bar-chart/radial-bar-chart.component.d.ts +35 -0
- package/charts/waterfall-chart/waterfall-chart.component.d.ts +62 -0
- package/fesm2022/ngx-core-components-charts.mjs +2024 -142
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +182 -38
- 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 +186 -22
- package/fesm2022/ngx-core-components-navigation.mjs.map +1 -1
- package/fesm2022/ngx-core-components-views.mjs +521 -123
- package/fesm2022/ngx-core-components-views.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs +2 -2
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/grid/data-grid/data-grid.component.d.ts +4 -0
- 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/command-palette/command-palette.component.d.ts +1 -0
- package/navigation/context-menu/context-menu.component.d.ts +11 -0
- package/package.json +1 -1
- package/public-api.d.ts +9 -1
- package/views/public-api.d.ts +2 -2
- package/views/scheduler/scheduler.component.d.ts +13 -3
- 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,44 +1173,146 @@ 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
|
-
</div>
|
|
1215
|
+
</div>
|
|
1056
1216
|
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
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>
|
|
1229
|
+
|
|
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'];
|
|
@@ -1114,6 +1346,51 @@ class SchedulerComponent {
|
|
|
1114
1346
|
dragSelectStart = signal(null);
|
|
1115
1347
|
dragSelectCurrent = signal(null);
|
|
1116
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
|
+
}
|
|
1117
1394
|
// Live Current-Time Indicator State
|
|
1118
1395
|
now = signal(new Date());
|
|
1119
1396
|
timeIntervalId;
|
|
@@ -1754,7 +2031,7 @@ class SchedulerComponent {
|
|
|
1754
2031
|
return [5, 10, 15, 20, 30, 60].includes(minutes) ? minutes : 60;
|
|
1755
2032
|
}
|
|
1756
2033
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SchedulerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1757
|
-
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: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: `
|
|
1758
2035
|
<div class="ngx-scheduler-wrapper" [class.dark]="theme() === 'dark'">
|
|
1759
2036
|
|
|
1760
2037
|
<!-- Scheduler Toolbar -->
|
|
@@ -1839,7 +2116,7 @@ class SchedulerComponent {
|
|
|
1839
2116
|
</div>
|
|
1840
2117
|
|
|
1841
2118
|
<!-- Scheduler Body -->
|
|
1842
|
-
<div class="scheduler-body" (click)="showExportDropdown.set(false)">
|
|
2119
|
+
<div class="scheduler-body" (click)="showExportDropdown.set(false); activeMonthPopoverDate.set(null)">
|
|
1843
2120
|
@if (activeMode() === 'day' || activeMode() === 'week') {
|
|
1844
2121
|
<div class="time-grid-container">
|
|
1845
2122
|
|
|
@@ -1990,7 +2267,9 @@ class SchedulerComponent {
|
|
|
1990
2267
|
(dragstart)="onEventDragStart($event, layout)"
|
|
1991
2268
|
(dragend)="onEventDragEnd()"
|
|
1992
2269
|
(click)="clickEvent(layout.event)"
|
|
2270
|
+
(keydown.enter)="clickEvent(layout.event)"
|
|
1993
2271
|
[title]="eventTitle(layout)"
|
|
2272
|
+
tabindex="0"
|
|
1994
2273
|
>
|
|
1995
2274
|
<button
|
|
1996
2275
|
class="resize-handle resize-start"
|
|
@@ -2000,40 +2279,44 @@ class SchedulerComponent {
|
|
|
2000
2279
|
(pointerdown)="startResize($event, layout, 'start')"
|
|
2001
2280
|
></button>
|
|
2002
2281
|
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
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
|
+
}
|
|
2013
2295
|
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
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>
|
|
2020
2310
|
</div>
|
|
2021
|
-
|
|
2022
|
-
<span class="event-time">
|
|
2023
|
-
{{ formatEventTime(layout.start, layout.end) }}
|
|
2024
|
-
@if (layout.event.resourceId; as resId) {
|
|
2025
|
-
• {{ getResourceName(resId) }}
|
|
2026
|
-
}
|
|
2027
|
-
</span>
|
|
2028
|
-
</div>
|
|
2029
2311
|
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
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
|
+
}
|
|
2037
2320
|
|
|
2038
2321
|
<button
|
|
2039
2322
|
class="resize-handle resize-end"
|
|
@@ -2070,7 +2353,7 @@ class SchedulerComponent {
|
|
|
2070
2353
|
<span class="month-day-number">{{ formatDate(cell.date, { day: 'numeric' }) }}</span>
|
|
2071
2354
|
|
|
2072
2355
|
<div class="month-day-events-list">
|
|
2073
|
-
@for (evt of getEventsForDate(cell.date); track evt.id) {
|
|
2356
|
+
@for (evt of getEventsForDate(cell.date).slice(0, 2); track evt.id) {
|
|
2074
2357
|
<div
|
|
2075
2358
|
class="month-event-item"
|
|
2076
2359
|
[class.meeting]="evt.event.category === 'meeting'"
|
|
@@ -2082,15 +2365,68 @@ class SchedulerComponent {
|
|
|
2082
2365
|
[class.completed]="evt.event.completed"
|
|
2083
2366
|
[ngStyle]="getEventStyles(evt.event)"
|
|
2084
2367
|
(click)="clickEvent(evt.event); $event.stopPropagation()"
|
|
2368
|
+
(keydown.enter)="clickEvent(evt.event); $event.stopPropagation()"
|
|
2085
2369
|
[title]="evt.event.title"
|
|
2370
|
+
tabindex="0"
|
|
2086
2371
|
>
|
|
2087
2372
|
@if (evt.event.recurrence) {
|
|
2088
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>
|
|
2089
2374
|
}
|
|
2090
|
-
|
|
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
|
+
}
|
|
2091
2380
|
</div>
|
|
2092
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
|
+
}
|
|
2093
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
|
+
}
|
|
2094
2430
|
</div>
|
|
2095
2431
|
}
|
|
2096
2432
|
</div>
|
|
@@ -2098,7 +2434,7 @@ class SchedulerComponent {
|
|
|
2098
2434
|
}
|
|
2099
2435
|
</div>
|
|
2100
2436
|
</div>
|
|
2101
|
-
`, 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 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}.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.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: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;display:flex;align-items:center}.month-event-item:hover{transform:scale(1.02)}.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}.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 .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}@keyframes slideDown{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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" }] });
|
|
2102
2438
|
}
|
|
2103
2439
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SchedulerComponent, decorators: [{
|
|
2104
2440
|
type: Component,
|
|
@@ -2187,7 +2523,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2187
2523
|
</div>
|
|
2188
2524
|
|
|
2189
2525
|
<!-- Scheduler Body -->
|
|
2190
|
-
<div class="scheduler-body" (click)="showExportDropdown.set(false)">
|
|
2526
|
+
<div class="scheduler-body" (click)="showExportDropdown.set(false); activeMonthPopoverDate.set(null)">
|
|
2191
2527
|
@if (activeMode() === 'day' || activeMode() === 'week') {
|
|
2192
2528
|
<div class="time-grid-container">
|
|
2193
2529
|
|
|
@@ -2338,7 +2674,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2338
2674
|
(dragstart)="onEventDragStart($event, layout)"
|
|
2339
2675
|
(dragend)="onEventDragEnd()"
|
|
2340
2676
|
(click)="clickEvent(layout.event)"
|
|
2677
|
+
(keydown.enter)="clickEvent(layout.event)"
|
|
2341
2678
|
[title]="eventTitle(layout)"
|
|
2679
|
+
tabindex="0"
|
|
2342
2680
|
>
|
|
2343
2681
|
<button
|
|
2344
2682
|
class="resize-handle resize-start"
|
|
@@ -2348,40 +2686,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2348
2686
|
(pointerdown)="startResize($event, layout, 'start')"
|
|
2349
2687
|
></button>
|
|
2350
2688
|
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
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
|
+
}
|
|
2361
2702
|
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
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>
|
|
2368
2717
|
</div>
|
|
2369
|
-
|
|
2370
|
-
<span class="event-time">
|
|
2371
|
-
{{ formatEventTime(layout.start, layout.end) }}
|
|
2372
|
-
@if (layout.event.resourceId; as resId) {
|
|
2373
|
-
• {{ getResourceName(resId) }}
|
|
2374
|
-
}
|
|
2375
|
-
</span>
|
|
2376
|
-
</div>
|
|
2377
2718
|
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
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
|
+
}
|
|
2385
2727
|
|
|
2386
2728
|
<button
|
|
2387
2729
|
class="resize-handle resize-end"
|
|
@@ -2418,7 +2760,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2418
2760
|
<span class="month-day-number">{{ formatDate(cell.date, { day: 'numeric' }) }}</span>
|
|
2419
2761
|
|
|
2420
2762
|
<div class="month-day-events-list">
|
|
2421
|
-
@for (evt of getEventsForDate(cell.date); track evt.id) {
|
|
2763
|
+
@for (evt of getEventsForDate(cell.date).slice(0, 2); track evt.id) {
|
|
2422
2764
|
<div
|
|
2423
2765
|
class="month-event-item"
|
|
2424
2766
|
[class.meeting]="evt.event.category === 'meeting'"
|
|
@@ -2430,15 +2772,68 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2430
2772
|
[class.completed]="evt.event.completed"
|
|
2431
2773
|
[ngStyle]="getEventStyles(evt.event)"
|
|
2432
2774
|
(click)="clickEvent(evt.event); $event.stopPropagation()"
|
|
2775
|
+
(keydown.enter)="clickEvent(evt.event); $event.stopPropagation()"
|
|
2433
2776
|
[title]="evt.event.title"
|
|
2777
|
+
tabindex="0"
|
|
2434
2778
|
>
|
|
2435
2779
|
@if (evt.event.recurrence) {
|
|
2436
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>
|
|
2437
2781
|
}
|
|
2438
|
-
|
|
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
|
+
}
|
|
2439
2787
|
</div>
|
|
2440
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
|
+
}
|
|
2441
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
|
+
}
|
|
2442
2837
|
</div>
|
|
2443
2838
|
}
|
|
2444
2839
|
</div>
|
|
@@ -2446,8 +2841,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2446
2841
|
}
|
|
2447
2842
|
</div>
|
|
2448
2843
|
</div>
|
|
2449
|
-
`, 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 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}.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.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: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;display:flex;align-items:center}.month-event-item:hover{transform:scale(1.02)}.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}.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 .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}@keyframes slideDown{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}\n"] }]
|
|
2450
|
-
}], 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: [{
|
|
2451
2849
|
type: HostListener,
|
|
2452
2850
|
args: ['window:pointerup', ['$event']]
|
|
2453
2851
|
}], finishResize: [{
|
|
@@ -3335,5 +3733,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
3335
3733
|
* Generated bundle index. Do not edit.
|
|
3336
3734
|
*/
|
|
3337
3735
|
|
|
3338
|
-
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 };
|
|
3339
3737
|
//# sourceMappingURL=ngx-core-components-views.mjs.map
|