@bimetal/calendar-angular-components 0.34.0 → 0.36.0
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/LICENSE +57 -129
- package/README.md +1 -1
- package/dist/binding/controller.d.ts +10 -1
- package/dist/binding/controller.d.ts.map +1 -1
- package/dist/binding/controller.js +11 -1
- package/dist/binding/controller.js.map +1 -1
- package/dist/binding/index.d.ts +5 -5
- package/dist/binding/index.d.ts.map +1 -1
- package/dist/binding/index.js +5 -5
- package/dist/binding/index.js.map +1 -1
- package/dist/binding/services/event-render.service.d.ts +9 -0
- package/dist/binding/services/event-render.service.d.ts.map +1 -1
- package/dist/binding/services/event-render.service.js +11 -0
- package/dist/binding/services/event-render.service.js.map +1 -1
- package/dist/binding/services/pointer-gesture.service.d.ts +26 -0
- package/dist/binding/services/pointer-gesture.service.d.ts.map +1 -0
- package/dist/binding/services/pointer-gesture.service.js +37 -0
- package/dist/binding/services/pointer-gesture.service.js.map +1 -0
- package/dist/components/Calendar.d.ts +47 -8
- package/dist/components/Calendar.d.ts.map +1 -1
- package/dist/components/Calendar.js +183 -63
- package/dist/components/Calendar.js.map +1 -1
- package/dist/components/CalendarHeader.d.ts +12 -1
- package/dist/components/CalendarHeader.d.ts.map +1 -1
- package/dist/components/CalendarHeader.js +66 -14
- package/dist/components/CalendarHeader.js.map +1 -1
- package/dist/components/CategoryFilter.d.ts +4 -0
- package/dist/components/CategoryFilter.d.ts.map +1 -1
- package/dist/components/CategoryFilter.js +10 -5
- package/dist/components/CategoryFilter.js.map +1 -1
- package/dist/components/EventBar.d.ts +15 -4
- package/dist/components/EventBar.d.ts.map +1 -1
- package/dist/components/EventBar.js +108 -37
- package/dist/components/EventBar.js.map +1 -1
- package/dist/components/EventDialog.d.ts +11 -4
- package/dist/components/EventDialog.d.ts.map +1 -1
- package/dist/components/EventDialog.js +86 -44
- package/dist/components/EventDialog.js.map +1 -1
- package/dist/components/EventHistory.d.ts +14 -9
- package/dist/components/EventHistory.d.ts.map +1 -1
- package/dist/components/EventHistory.js +59 -55
- package/dist/components/EventHistory.js.map +1 -1
- package/dist/components/UndoToast.d.ts +9 -5
- package/dist/components/UndoToast.d.ts.map +1 -1
- package/dist/components/UndoToast.js +16 -27
- package/dist/components/UndoToast.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css.d.ts +3 -0
- package/dist/views/agenda/AgendaView.d.ts +1 -0
- package/dist/views/agenda/AgendaView.d.ts.map +1 -1
- package/dist/views/agenda/AgendaView.js +9 -2
- package/dist/views/agenda/AgendaView.js.map +1 -1
- package/dist/views/day/DayView.d.ts +30 -4
- package/dist/views/day/DayView.d.ts.map +1 -1
- package/dist/views/day/DayView.js +61 -17
- package/dist/views/day/DayView.js.map +1 -1
- package/dist/views/month/MonthView.d.ts +21 -4
- package/dist/views/month/MonthView.d.ts.map +1 -1
- package/dist/views/month/MonthView.js +66 -12
- package/dist/views/month/MonthView.js.map +1 -1
- package/dist/views/month/WeekRow.d.ts +28 -4
- package/dist/views/month/WeekRow.d.ts.map +1 -1
- package/dist/views/month/WeekRow.js +100 -29
- package/dist/views/month/WeekRow.js.map +1 -1
- package/dist/views/resource/ResourceView.d.ts +32 -1
- package/dist/views/resource/ResourceView.d.ts.map +1 -1
- package/dist/views/resource/ResourceView.js +84 -22
- package/dist/views/resource/ResourceView.js.map +1 -1
- package/dist/views/timeline/TimelineView.d.ts +29 -3
- package/dist/views/timeline/TimelineView.d.ts.map +1 -1
- package/dist/views/timeline/TimelineView.js +83 -17
- package/dist/views/timeline/TimelineView.js.map +1 -1
- package/dist/views/week/AllDayRow.d.ts +21 -3
- package/dist/views/week/AllDayRow.d.ts.map +1 -1
- package/dist/views/week/AllDayRow.js +60 -13
- package/dist/views/week/AllDayRow.js.map +1 -1
- package/dist/views/week/TimeEvent.d.ts +20 -4
- package/dist/views/week/TimeEvent.d.ts.map +1 -1
- package/dist/views/week/TimeEvent.js +101 -31
- package/dist/views/week/TimeEvent.js.map +1 -1
- package/dist/views/week/WeekView.d.ts +25 -2
- package/dist/views/week/WeekView.d.ts.map +1 -1
- package/dist/views/week/WeekView.js +69 -21
- package/dist/views/week/WeekView.js.map +1 -1
- package/dist/views/year/YearView.d.ts +11 -4
- package/dist/views/year/YearView.d.ts.map +1 -1
- package/dist/views/year/YearView.js +26 -5
- package/dist/views/year/YearView.js.map +1 -1
- package/package.json +16 -13
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Component, Input, Output, EventEmitter, ElementRef, ViewChild, Optional } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { isSameDay, getDayOfMonth, getMonth,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { isSameDay, getDayOfMonth, getMonth, startOfDay, formatDayLabel } from '@bimetal/temporal';
|
|
4
|
+
import { calendarWeekNumber, maxLanes, lanesPerDay, getRecurrenceInstanceMetadata } from '@bimetal/calendar-core';
|
|
5
|
+
import { getColFromX, EventRenderService, CalendarPointerGestureService, formatTime } from '../../binding/index.js';
|
|
6
|
+
import { createClickIntent, maxVisibleTimedInMonth, buildDragInfo, writeCalendarDragData } from '@bimetal/calendar-headless';
|
|
6
7
|
import { EventBarComponent } from '../../components/EventBar.js';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
import * as i1 from "../../binding/index.js";
|
|
@@ -54,15 +55,16 @@ function WeekRowComponent_div_4_ng_container_4_div_1_div_1_ng_container_4_Templa
|
|
|
54
55
|
function WeekRowComponent_div_4_ng_container_4_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
55
56
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
56
57
|
i0.ɵɵelementStart(0, "div", 17);
|
|
57
|
-
i0.ɵɵlistener("mousedown", function WeekRowComponent_div_4_ng_container_4_div_1_div_1_Template_div_mousedown_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.handleTimedMouseDown()); })("click", function WeekRowComponent_div_4_ng_container_4_div_1_div_1_Template_div_click_0_listener($event) { const ev_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.handleTimedClick($event, ev_r6)); })("dblclick", function WeekRowComponent_div_4_ng_container_4_div_1_div_1_Template_div_dblclick_0_listener($event) { const ev_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.handleTimedDoubleClick($event, ev_r6)); });
|
|
58
|
+
i0.ɵɵlistener("pointerdown", function WeekRowComponent_div_4_ng_container_4_div_1_div_1_Template_div_pointerdown_0_listener($event) { const ev_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.handleTimedPointerDown($event, ev_r6)); })("dragstart", function WeekRowComponent_div_4_ng_container_4_div_1_div_1_Template_div_dragstart_0_listener($event) { const ev_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.pointerMode || ctx_r2.handleTimedDragStart($event, ev_r6)); })("dragend", function WeekRowComponent_div_4_ng_container_4_div_1_div_1_Template_div_dragend_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.pointerMode || ctx_r2.dragEnd.emit()); })("mousedown", function WeekRowComponent_div_4_ng_container_4_div_1_div_1_Template_div_mousedown_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.pointerMode || ctx_r2.handleTimedMouseDown()); })("click", function WeekRowComponent_div_4_ng_container_4_div_1_div_1_Template_div_click_0_listener($event) { const ev_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.handleTimedClick($event, ev_r6)); })("dblclick", function WeekRowComponent_div_4_ng_container_4_div_1_div_1_Template_div_dblclick_0_listener($event) { const ev_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.handleTimedDoubleClick($event, ev_r6)); });
|
|
58
59
|
i0.ɵɵtemplate(1, WeekRowComponent_div_4_ng_container_4_div_1_div_1_ng_container_1_Template, 2, 2, "ng-container", 18)(2, WeekRowComponent_div_4_ng_container_4_div_1_div_1_ng_template_2_Template, 5, 4, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(4, WeekRowComponent_div_4_ng_container_4_div_1_div_1_ng_container_4_Template, 2, 2, "ng-container", 11);
|
|
59
60
|
i0.ɵɵelementEnd();
|
|
60
61
|
} if (rf & 2) {
|
|
61
62
|
const ev_r6 = ctx.$implicit;
|
|
62
63
|
const defaultTimed_r7 = i0.ɵɵreference(3);
|
|
63
64
|
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
64
|
-
i0.ɵɵclassMap("bm-cal-timed-entry" + (ctx_r2.isTimedSelected(ev_r6) ? " bm-cal-timed-entry--selected" : "") + ctx_r2.slotsClassName(ev_r6));
|
|
65
|
+
i0.ɵɵclassMap("bm-cal-timed-entry" + (ctx_r2.isTimedSelected(ev_r6) ? " bm-cal-timed-entry--selected" : "") + ctx_r2.timedStateClass(ev_r6) + (ctx_r2.pointerMode && ctx_r2.timedCanDrag(ev_r6) ? " bm-cal-timed-entry--pointer" : "") + ctx_r2.slotsClassName(ev_r6));
|
|
65
66
|
i0.ɵɵproperty("ngStyle", ctx_r2.slotsStyle(ev_r6))("title", ctx_r2.renderedTitle(ev_r6));
|
|
67
|
+
i0.ɵɵattribute("draggable", ctx_r2.pointerMode ? null : ctx_r2.timedCanDrag(ev_r6));
|
|
66
68
|
i0.ɵɵadvance();
|
|
67
69
|
i0.ɵɵproperty("ngIf", ctx_r2.contentTpl)("ngIfElse", defaultTimed_r7);
|
|
68
70
|
i0.ɵɵadvance(3);
|
|
@@ -83,7 +85,7 @@ function WeekRowComponent_div_4_ng_container_4_div_1_div_2_Template(rf, ctx) { i
|
|
|
83
85
|
} }
|
|
84
86
|
function WeekRowComponent_div_4_ng_container_4_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
85
87
|
i0.ɵɵelementStart(0, "div", 14);
|
|
86
|
-
i0.ɵɵtemplate(1, WeekRowComponent_div_4_ng_container_4_div_1_div_1_Template, 5,
|
|
88
|
+
i0.ɵɵtemplate(1, WeekRowComponent_div_4_ng_container_4_div_1_div_1_Template, 5, 8, "div", 15)(2, WeekRowComponent_div_4_ng_container_4_div_1_div_2_Template, 2, 2, "div", 16);
|
|
87
89
|
i0.ɵɵelementEnd();
|
|
88
90
|
} if (rf & 2) {
|
|
89
91
|
const timed_r9 = i0.ɵɵnextContext().ngIf;
|
|
@@ -92,7 +94,7 @@ function WeekRowComponent_div_4_ng_container_4_div_1_Template(rf, ctx) { if (rf
|
|
|
92
94
|
const colIdx_r10 = ctx_r10.index;
|
|
93
95
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
94
96
|
i0.ɵɵadvance();
|
|
95
|
-
i0.ɵɵproperty("ngForOf", ctx_r2.getVisibleTimed(timed_r9, colIdx_r10, date_r4));
|
|
97
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.getVisibleTimed(timed_r9, colIdx_r10, date_r4))("ngForTrackBy", ctx_r2.trackEvent);
|
|
96
98
|
i0.ɵɵadvance();
|
|
97
99
|
i0.ɵɵproperty("ngIf", ctx_r2.hasOverflow(timed_r9, colIdx_r10) && !ctx_r2.isExpanded(date_r4));
|
|
98
100
|
} }
|
|
@@ -142,15 +144,16 @@ function WeekRowComponent_div_4_ng_container_4_div_2_div_4_ng_container_4_Templa
|
|
|
142
144
|
function WeekRowComponent_div_4_ng_container_4_div_2_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
143
145
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
144
146
|
i0.ɵɵelementStart(0, "div", 17);
|
|
145
|
-
i0.ɵɵlistener("mousedown", function WeekRowComponent_div_4_ng_container_4_div_2_div_4_Template_div_mousedown_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.handleTimedMouseDown()); })("click", function WeekRowComponent_div_4_ng_container_4_div_2_div_4_Template_div_click_0_listener($event) { const ev_r14 = i0.ɵɵrestoreView(_r13).$implicit; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.handleTimedClick($event, ev_r14)); })("dblclick", function WeekRowComponent_div_4_ng_container_4_div_2_div_4_Template_div_dblclick_0_listener($event) { const ev_r14 = i0.ɵɵrestoreView(_r13).$implicit; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.handleTimedDoubleClick($event, ev_r14)); });
|
|
147
|
+
i0.ɵɵlistener("pointerdown", function WeekRowComponent_div_4_ng_container_4_div_2_div_4_Template_div_pointerdown_0_listener($event) { const ev_r14 = i0.ɵɵrestoreView(_r13).$implicit; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.handleTimedPointerDown($event, ev_r14)); })("dragstart", function WeekRowComponent_div_4_ng_container_4_div_2_div_4_Template_div_dragstart_0_listener($event) { const ev_r14 = i0.ɵɵrestoreView(_r13).$implicit; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.pointerMode || ctx_r2.handleTimedDragStart($event, ev_r14)); })("dragend", function WeekRowComponent_div_4_ng_container_4_div_2_div_4_Template_div_dragend_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.pointerMode || ctx_r2.dragEnd.emit()); })("mousedown", function WeekRowComponent_div_4_ng_container_4_div_2_div_4_Template_div_mousedown_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.pointerMode || ctx_r2.handleTimedMouseDown()); })("click", function WeekRowComponent_div_4_ng_container_4_div_2_div_4_Template_div_click_0_listener($event) { const ev_r14 = i0.ɵɵrestoreView(_r13).$implicit; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.handleTimedClick($event, ev_r14)); })("dblclick", function WeekRowComponent_div_4_ng_container_4_div_2_div_4_Template_div_dblclick_0_listener($event) { const ev_r14 = i0.ɵɵrestoreView(_r13).$implicit; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.handleTimedDoubleClick($event, ev_r14)); });
|
|
146
148
|
i0.ɵɵtemplate(1, WeekRowComponent_div_4_ng_container_4_div_2_div_4_ng_container_1_Template, 2, 2, "ng-container", 18)(2, WeekRowComponent_div_4_ng_container_4_div_2_div_4_ng_template_2_Template, 5, 4, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor)(4, WeekRowComponent_div_4_ng_container_4_div_2_div_4_ng_container_4_Template, 2, 2, "ng-container", 11);
|
|
147
149
|
i0.ɵɵelementEnd();
|
|
148
150
|
} if (rf & 2) {
|
|
149
151
|
const ev_r14 = ctx.$implicit;
|
|
150
152
|
const defaultTimedExp_r15 = i0.ɵɵreference(3);
|
|
151
153
|
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
152
|
-
i0.ɵɵclassMap("bm-cal-timed-entry" + (ctx_r2.isTimedSelected(ev_r14) ? " bm-cal-timed-entry--selected" : "") + ctx_r2.slotsClassName(ev_r14));
|
|
154
|
+
i0.ɵɵclassMap("bm-cal-timed-entry" + (ctx_r2.isTimedSelected(ev_r14) ? " bm-cal-timed-entry--selected" : "") + ctx_r2.timedStateClass(ev_r14) + (ctx_r2.pointerMode && ctx_r2.timedCanDrag(ev_r14) ? " bm-cal-timed-entry--pointer" : "") + ctx_r2.slotsClassName(ev_r14));
|
|
153
155
|
i0.ɵɵproperty("ngStyle", ctx_r2.slotsStyle(ev_r14))("title", ctx_r2.renderedTitle(ev_r14));
|
|
156
|
+
i0.ɵɵattribute("draggable", ctx_r2.pointerMode ? null : ctx_r2.timedCanDrag(ev_r14));
|
|
154
157
|
i0.ɵɵadvance();
|
|
155
158
|
i0.ɵɵproperty("ngIf", ctx_r2.contentTpl)("ngIfElse", defaultTimedExp_r15);
|
|
156
159
|
i0.ɵɵadvance(3);
|
|
@@ -163,7 +166,7 @@ function WeekRowComponent_div_4_ng_container_4_div_2_Template(rf, ctx) { if (rf
|
|
|
163
166
|
i0.ɵɵelementStart(1, "div", 10)(2, "span");
|
|
164
167
|
i0.ɵɵtext(3);
|
|
165
168
|
i0.ɵɵelementEnd()();
|
|
166
|
-
i0.ɵɵtemplate(4, WeekRowComponent_div_4_ng_container_4_div_2_div_4_Template, 5,
|
|
169
|
+
i0.ɵɵtemplate(4, WeekRowComponent_div_4_ng_container_4_div_2_div_4_Template, 5, 8, "div", 15);
|
|
167
170
|
i0.ɵɵelementEnd();
|
|
168
171
|
} if (rf & 2) {
|
|
169
172
|
const timed_r9 = i0.ɵɵnextContext().ngIf;
|
|
@@ -174,11 +177,11 @@ function WeekRowComponent_div_4_ng_container_4_div_2_Template(rf, ctx) { if (rf
|
|
|
174
177
|
i0.ɵɵadvance();
|
|
175
178
|
i0.ɵɵtextInterpolate(ctx_r2.getDayOfMonth(date_r4));
|
|
176
179
|
i0.ɵɵadvance();
|
|
177
|
-
i0.ɵɵproperty("ngForOf", timed_r9);
|
|
180
|
+
i0.ɵɵproperty("ngForOf", timed_r9)("ngForTrackBy", ctx_r2.trackEvent);
|
|
178
181
|
} }
|
|
179
182
|
function WeekRowComponent_div_4_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
180
183
|
i0.ɵɵelementContainerStart(0);
|
|
181
|
-
i0.ɵɵtemplate(1, WeekRowComponent_div_4_ng_container_4_div_1_Template, 3,
|
|
184
|
+
i0.ɵɵtemplate(1, WeekRowComponent_div_4_ng_container_4_div_1_Template, 3, 3, "div", 12)(2, WeekRowComponent_div_4_ng_container_4_div_2_Template, 5, 5, "div", 13);
|
|
182
185
|
i0.ɵɵelementContainerEnd();
|
|
183
186
|
} if (rf & 2) {
|
|
184
187
|
const timed_r9 = ctx.ngIf;
|
|
@@ -221,10 +224,15 @@ function WeekRowComponent_cal_event_bar_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
221
224
|
} if (rf & 2) {
|
|
222
225
|
const layoutItem_r17 = ctx.$implicit;
|
|
223
226
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
224
|
-
i0.ɵɵproperty("event", layoutItem_r17.segment.event)("isStart", layoutItem_r17.segment.isStart)("isEnd", layoutItem_r17.segment.isEnd)("dayIndex", layoutItem_r17.dayIndex)("daySpan", layoutItem_r17.daySpan)("column", layoutItem_r17.column)("weekDates", ctx_r2.weekDates)("ghost", ctx_r2.isDragged(layoutItem_r17))("clickThresholdMs", ctx_r2.config.clickThresholdMs)("isSelected", ctx_r2.isTimedSelected(layoutItem_r17.segment.event));
|
|
227
|
+
i0.ɵɵproperty("config", ctx_r2.config)("event", layoutItem_r17.segment.event)("isStart", layoutItem_r17.segment.isStart)("isEnd", layoutItem_r17.segment.isEnd)("dayIndex", layoutItem_r17.dayIndex)("daySpan", layoutItem_r17.daySpan)("column", layoutItem_r17.column)("weekDates", ctx_r2.weekDates)("ghost", ctx_r2.isDragged(layoutItem_r17))("clickThresholdMs", ctx_r2.config.clickThresholdMs)("isSelected", ctx_r2.isTimedSelected(layoutItem_r17.segment.event));
|
|
225
228
|
} }
|
|
229
|
+
/**
|
|
230
|
+
* A single week's row in the month grid: renders day cells, timed-event chips
|
|
231
|
+
* (with hover-expand overflow), and the all-day event bars overlay for that week.
|
|
232
|
+
*/
|
|
226
233
|
export class WeekRowComponent {
|
|
227
234
|
renderService;
|
|
235
|
+
gesture;
|
|
228
236
|
weekDates = [];
|
|
229
237
|
items = [];
|
|
230
238
|
timedByDay = new Map();
|
|
@@ -258,9 +266,13 @@ export class WeekRowComponent {
|
|
|
258
266
|
click = createClickIntent();
|
|
259
267
|
timedClick = createClickIntent();
|
|
260
268
|
getDayOfMonth = getDayOfMonth;
|
|
261
|
-
constructor(renderService
|
|
269
|
+
constructor(renderService,
|
|
270
|
+
// mcp-57 dual-mode (see TimeEvent.ts).
|
|
271
|
+
gesture) {
|
|
262
272
|
this.renderService = renderService;
|
|
273
|
+
this.gesture = gesture;
|
|
263
274
|
}
|
|
275
|
+
get pointerMode() { return !!this.gesture; }
|
|
264
276
|
get badgesTpl() { return this.renderService?.eventBadgesTpl; }
|
|
265
277
|
get contentTpl() { return this.renderService?.eventContentTpl; }
|
|
266
278
|
tplCtx(ev) { return this.renderService?.buildTemplateContext(ev); }
|
|
@@ -282,6 +294,21 @@ export class WeekRowComponent {
|
|
|
282
294
|
onCollapse() { this.collapseMonthCell.emit(); }
|
|
283
295
|
isToday(date) { return isSameDay(date, this.today); }
|
|
284
296
|
inMonth(date) { return getMonth(date) === this.currentMonth; }
|
|
297
|
+
/**
|
|
298
|
+
* Stable identity for the event-bar layout items (drag-survival, not just perf).
|
|
299
|
+
*
|
|
300
|
+
* The wrappers are minted fresh per snapshot, so without trackBy the ngFor
|
|
301
|
+
* differ sees all-new objects and re-creates every `cal-event-bar` on any items
|
|
302
|
+
* change. Chromium cancels a native HTML5 drag whose source node is destroyed
|
|
303
|
+
* in the dragstart task — exactly what happened here on Angular only, because
|
|
304
|
+
* the other stacks key by event identity. Keyed by event + the segment's day,
|
|
305
|
+
* because a multi-week event renders one bar per week row.
|
|
306
|
+
*/
|
|
307
|
+
trackItem(_i, li) {
|
|
308
|
+
return li.segment.event.id + '@' + li.dayIndex;
|
|
309
|
+
}
|
|
310
|
+
/** Same rule for the timed chips — the event object is the identity. */
|
|
311
|
+
trackEvent(_i, ev) { return ev.id; }
|
|
285
312
|
// Stable identity for the day cells: without trackBy, any change-detection pass
|
|
286
313
|
// that yields fresh CalendarDateTime objects (e.g. a click → markChanged → grid
|
|
287
314
|
// recompute) re-creates the cell nodes mid-gesture, dropping the in-flight
|
|
@@ -303,7 +330,7 @@ export class WeekRowComponent {
|
|
|
303
330
|
return ev.metadata.color ?? '#007AFF';
|
|
304
331
|
}
|
|
305
332
|
formatTime(ev) {
|
|
306
|
-
return
|
|
333
|
+
return formatTime(ev.timeRange.start, this.config.locale.code, this.config.core.timezone);
|
|
307
334
|
}
|
|
308
335
|
isDragged(item) {
|
|
309
336
|
return this.previewEvent?.id === item.segment.event.id;
|
|
@@ -313,7 +340,7 @@ export class WeekRowComponent {
|
|
|
313
340
|
e.dataTransfer.dropEffect = 'move';
|
|
314
341
|
if (!this.rowEl)
|
|
315
342
|
return;
|
|
316
|
-
const col = getColFromX(e.clientX, this.rowEl.nativeElement.getBoundingClientRect());
|
|
343
|
+
const col = getColFromX(e.clientX, this.rowEl.nativeElement.getBoundingClientRect(), 7, getComputedStyle(this.rowEl.nativeElement).direction === 'rtl');
|
|
317
344
|
this.dragOver.emit(this.weekDates[col]);
|
|
318
345
|
}
|
|
319
346
|
handleDragLeave(e) {
|
|
@@ -327,7 +354,7 @@ export class WeekRowComponent {
|
|
|
327
354
|
e.preventDefault();
|
|
328
355
|
if (!this.rowEl)
|
|
329
356
|
return;
|
|
330
|
-
const col = getColFromX(e.clientX, this.rowEl.nativeElement.getBoundingClientRect());
|
|
357
|
+
const col = getColFromX(e.clientX, this.rowEl.nativeElement.getBoundingClientRect(), 7, getComputedStyle(this.rowEl.nativeElement).direction === 'rtl');
|
|
331
358
|
this.dropEvent.emit({ event: e, date: this.weekDates[col] });
|
|
332
359
|
}
|
|
333
360
|
handleDayCellClick(e, date) {
|
|
@@ -347,6 +374,39 @@ export class WeekRowComponent {
|
|
|
347
374
|
handleTimedMouseDown() {
|
|
348
375
|
this.timedClick.markMouseDown();
|
|
349
376
|
}
|
|
377
|
+
// ticket-29: day-grain move of a month timed entry (mirrors cal-event-bar; markDragged so the
|
|
378
|
+
// drop doesn't also select). dayOffset 0 — always single-day in its cell.
|
|
379
|
+
handleTimedPointerDown(e, ev) {
|
|
380
|
+
if (!this.pointerMode)
|
|
381
|
+
return;
|
|
382
|
+
e.stopPropagation();
|
|
383
|
+
this.timedClick.markMouseDown();
|
|
384
|
+
if (!this.timedCanDrag(ev))
|
|
385
|
+
return;
|
|
386
|
+
try {
|
|
387
|
+
e.currentTarget.setPointerCapture?.(e.pointerId);
|
|
388
|
+
}
|
|
389
|
+
catch { /* synthetic */ }
|
|
390
|
+
const info = buildDragInfo(ev, 'move', { dayOffset: 0 });
|
|
391
|
+
this.gesture.onPointerDown(info, e.pointerId, e.clientX, e.clientY, () => this.timedClick.markDragged());
|
|
392
|
+
}
|
|
393
|
+
handleTimedDragStart(e, ev) {
|
|
394
|
+
this.timedClick.markDragged();
|
|
395
|
+
const info = buildDragInfo(ev, 'move', { dayOffset: 0 });
|
|
396
|
+
writeCalendarDragData(e.dataTransfer, info);
|
|
397
|
+
this.dragStartEv.emit(info);
|
|
398
|
+
}
|
|
399
|
+
// ticket-29 + ticket-19: affordance from the SAME resolver the controller enforces on.
|
|
400
|
+
timedPolicy(ev) {
|
|
401
|
+
return this.renderService?.resolveInteraction(ev)
|
|
402
|
+
?? { draggable: true, resizable: true, editable: true, deletable: true };
|
|
403
|
+
}
|
|
404
|
+
timedCanDrag(ev) { return this.timedPolicy(ev).draggable; }
|
|
405
|
+
timedStateClass(ev) {
|
|
406
|
+
const p = this.timedPolicy(ev);
|
|
407
|
+
return (!p.draggable ? ' bm-cal-timed-entry--static' : '')
|
|
408
|
+
+ ((!p.draggable && !p.resizable && !p.editable && !p.deletable) ? ' bm-cal-timed-entry--locked' : '');
|
|
409
|
+
}
|
|
350
410
|
handleTimedClick(e, ev) {
|
|
351
411
|
e.stopPropagation();
|
|
352
412
|
if (!this.timedClick.accept(this.config.clickThresholdMs))
|
|
@@ -366,13 +426,13 @@ export class WeekRowComponent {
|
|
|
366
426
|
const id = getRecurrenceInstanceMetadata(ev)?.instanceDate;
|
|
367
427
|
return this.selectedEventId === ev.id && this.selectedInstanceDate === id;
|
|
368
428
|
}
|
|
369
|
-
static ɵfac = function WeekRowComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WeekRowComponent)(i0.ɵɵdirectiveInject(i1.EventRenderService, 8)); };
|
|
429
|
+
static ɵfac = function WeekRowComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WeekRowComponent)(i0.ɵɵdirectiveInject(i1.EventRenderService, 8), i0.ɵɵdirectiveInject(i1.CalendarPointerGestureService, 8)); };
|
|
370
430
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WeekRowComponent, selectors: [["cal-week-row"]], viewQuery: function WeekRowComponent_Query(rf, ctx) { if (rf & 1) {
|
|
371
431
|
i0.ɵɵviewQuery(_c0, 5);
|
|
372
432
|
} if (rf & 2) {
|
|
373
433
|
let _t;
|
|
374
434
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.rowEl = _t.first);
|
|
375
|
-
} }, hostAttrs: [2, "display", "contents"], inputs: { weekDates: "weekDates", items: "items", timedByDay: "timedByDay", currentYear: "currentYear", currentMonth: "currentMonth", config: "config", today: "today", previewEvent: "previewEvent", expandedMonthDay: "expandedMonthDay", selectedEventId: "selectedEventId", selectedInstanceDate: "selectedInstanceDate" }, outputs: { eventClick: "eventClick", selectEvent: "selectEvent", clearSelection: "clearSelection", dayCellClick: "dayCellClick", dropEvent: "dropEvent", dragOver: "dragOver", hidePreviewEv: "hidePreviewEv", dragEnd: "dragEnd", dragStartEv: "dragStartEv", expandMonthCell: "expandMonthCell", collapseMonthCell: "collapseMonthCell" }, decls: 8, vars:
|
|
435
|
+
} }, hostAttrs: [2, "display", "contents"], inputs: { weekDates: "weekDates", items: "items", timedByDay: "timedByDay", currentYear: "currentYear", currentMonth: "currentMonth", config: "config", today: "today", previewEvent: "previewEvent", expandedMonthDay: "expandedMonthDay", selectedEventId: "selectedEventId", selectedInstanceDate: "selectedInstanceDate" }, outputs: { eventClick: "eventClick", selectEvent: "selectEvent", clearSelection: "clearSelection", dayCellClick: "dayCellClick", dropEvent: "dropEvent", dragOver: "dragOver", hidePreviewEv: "hidePreviewEv", dragEnd: "dragEnd", dragStartEv: "dragStartEv", expandMonthCell: "expandMonthCell", collapseMonthCell: "collapseMonthCell" }, decls: 8, vars: 7, consts: [["rowEl", ""], ["defaultTimed", ""], ["defaultTimedExp", ""], [1, "bm-cal__week-row", 3, "dragover", "dragleave", "drop"], [1, "bm-cal__week-number"], [3, "class", "grid-column", "grid-row", "--lane-count", "mousedown", "click", "dblclick", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "bm-cal__events-overlay"], [1, "bm-cal__events-grid"], [3, "config", "event", "isStart", "isEnd", "dayIndex", "daySpan", "column", "weekDates", "ghost", "clickThresholdMs", "isSelected", "eventClick", "selectEvent", "dragStart", "dragEnd", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "mousedown", "click", "dblclick"], [1, "bm-cal__day-number-container"], [4, "ngIf"], ["class", "bm-cal__day-timed", 4, "ngIf"], ["class", "bm-cal__day-expand-overlay", 3, "mouseleave", 4, "ngIf"], [1, "bm-cal__day-timed"], [3, "class", "ngStyle", "title", "pointerdown", "dragstart", "dragend", "mousedown", "click", "dblclick", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "bm-cal__timed-overflow", 3, "mouseenter", 4, "ngIf"], [3, "pointerdown", "dragstart", "dragend", "mousedown", "click", "dblclick", "ngStyle", "title"], [4, "ngIf", "ngIfElse"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "bm-cal-timed-entry__dot"], [1, "bm-cal-timed-entry__time"], [1, "bm-cal-timed-entry__title"], [1, "bm-cal__timed-overflow", 3, "mouseenter"], [1, "bm-cal__day-expand-overlay", 3, "mouseleave"], [3, "eventClick", "selectEvent", "dragStart", "dragEnd", "config", "event", "isStart", "isEnd", "dayIndex", "daySpan", "column", "weekDates", "ghost", "clickThresholdMs", "isSelected"]], template: function WeekRowComponent_Template(rf, ctx) { if (rf & 1) {
|
|
376
436
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
377
437
|
i0.ɵɵelementStart(0, "div", 3, 0);
|
|
378
438
|
i0.ɵɵlistener("dragover", function WeekRowComponent_Template_div_dragover_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleDragOver($event)); })("dragleave", function WeekRowComponent_Template_div_dragleave_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleDragLeave($event)); })("drop", function WeekRowComponent_Template_div_drop_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleDrop($event)); });
|
|
@@ -381,7 +441,7 @@ export class WeekRowComponent {
|
|
|
381
441
|
i0.ɵɵelementEnd();
|
|
382
442
|
i0.ɵɵtemplate(4, WeekRowComponent_div_4_Template, 5, 12, "div", 5);
|
|
383
443
|
i0.ɵɵelementStart(5, "div", 6)(6, "div", 7);
|
|
384
|
-
i0.ɵɵtemplate(7, WeekRowComponent_cal_event_bar_7_Template, 1,
|
|
444
|
+
i0.ɵɵtemplate(7, WeekRowComponent_cal_event_bar_7_Template, 1, 11, "cal-event-bar", 8);
|
|
385
445
|
i0.ɵɵelementEnd()()();
|
|
386
446
|
} if (rf & 2) {
|
|
387
447
|
i0.ɵɵstyleProp("--lane-count", ctx.lanes);
|
|
@@ -390,7 +450,7 @@ export class WeekRowComponent {
|
|
|
390
450
|
i0.ɵɵadvance();
|
|
391
451
|
i0.ɵɵproperty("ngForOf", ctx.weekDates)("ngForTrackBy", ctx.trackDay);
|
|
392
452
|
i0.ɵɵadvance(3);
|
|
393
|
-
i0.ɵɵproperty("ngForOf", ctx.items);
|
|
453
|
+
i0.ɵɵproperty("ngForOf", ctx.items)("ngForTrackBy", ctx.trackItem);
|
|
394
454
|
} }, dependencies: [CommonModule, i2.NgForOf, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, EventBarComponent], encapsulation: 2 });
|
|
395
455
|
}
|
|
396
456
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WeekRowComponent, [{
|
|
@@ -423,10 +483,14 @@ export class WeekRowComponent {
|
|
|
423
483
|
</div>
|
|
424
484
|
<ng-container *ngIf="getTimedEvents(date) as timed">
|
|
425
485
|
<div *ngIf="timed.length > 0" class="bm-cal__day-timed">
|
|
426
|
-
<div *ngFor="let ev of getVisibleTimed(timed, colIdx, date)"
|
|
427
|
-
[class]="'bm-cal-timed-entry' + (isTimedSelected(ev) ? ' bm-cal-timed-entry--selected' : '') + slotsClassName(ev)"
|
|
486
|
+
<div *ngFor="let ev of getVisibleTimed(timed, colIdx, date); trackBy: trackEvent"
|
|
487
|
+
[class]="'bm-cal-timed-entry' + (isTimedSelected(ev) ? ' bm-cal-timed-entry--selected' : '') + timedStateClass(ev) + (pointerMode && timedCanDrag(ev) ? ' bm-cal-timed-entry--pointer' : '') + slotsClassName(ev)"
|
|
428
488
|
[ngStyle]="slotsStyle(ev)"
|
|
429
|
-
|
|
489
|
+
[attr.draggable]="pointerMode ? null : timedCanDrag(ev)"
|
|
490
|
+
(pointerdown)="handleTimedPointerDown($event, ev)"
|
|
491
|
+
(dragstart)="pointerMode || handleTimedDragStart($event, ev)"
|
|
492
|
+
(dragend)="pointerMode || dragEnd.emit()"
|
|
493
|
+
(mousedown)="pointerMode || handleTimedMouseDown()"
|
|
430
494
|
(click)="handleTimedClick($event, ev)"
|
|
431
495
|
(dblclick)="handleTimedDoubleClick($event, ev)"
|
|
432
496
|
[title]="renderedTitle(ev)">
|
|
@@ -452,10 +516,14 @@ export class WeekRowComponent {
|
|
|
452
516
|
<div class="bm-cal__day-number-container">
|
|
453
517
|
<span [class]="'bm-cal__day-number' + (isToday(date) ? ' bm-cal__today' : '')">{{ getDayOfMonth(date) }}</span>
|
|
454
518
|
</div>
|
|
455
|
-
<div *ngFor="let ev of timed"
|
|
456
|
-
[class]="'bm-cal-timed-entry' + (isTimedSelected(ev) ? ' bm-cal-timed-entry--selected' : '') + slotsClassName(ev)"
|
|
519
|
+
<div *ngFor="let ev of timed; trackBy: trackEvent"
|
|
520
|
+
[class]="'bm-cal-timed-entry' + (isTimedSelected(ev) ? ' bm-cal-timed-entry--selected' : '') + timedStateClass(ev) + (pointerMode && timedCanDrag(ev) ? ' bm-cal-timed-entry--pointer' : '') + slotsClassName(ev)"
|
|
457
521
|
[ngStyle]="slotsStyle(ev)"
|
|
458
|
-
|
|
522
|
+
[attr.draggable]="pointerMode ? null : timedCanDrag(ev)"
|
|
523
|
+
(pointerdown)="handleTimedPointerDown($event, ev)"
|
|
524
|
+
(dragstart)="pointerMode || handleTimedDragStart($event, ev)"
|
|
525
|
+
(dragend)="pointerMode || dragEnd.emit()"
|
|
526
|
+
(mousedown)="pointerMode || handleTimedMouseDown()"
|
|
459
527
|
(click)="handleTimedClick($event, ev)"
|
|
460
528
|
(dblclick)="handleTimedDoubleClick($event, ev)"
|
|
461
529
|
[title]="renderedTitle(ev)">
|
|
@@ -477,7 +545,8 @@ export class WeekRowComponent {
|
|
|
477
545
|
|
|
478
546
|
<div class="bm-cal__events-overlay">
|
|
479
547
|
<div class="bm-cal__events-grid">
|
|
480
|
-
<cal-event-bar *ngFor="let layoutItem of items; let idx = index"
|
|
548
|
+
<cal-event-bar *ngFor="let layoutItem of items; let idx = index; trackBy: trackItem"
|
|
549
|
+
[config]="config"
|
|
481
550
|
[event]="layoutItem.segment.event"
|
|
482
551
|
[isStart]="layoutItem.segment.isStart"
|
|
483
552
|
[isEnd]="layoutItem.segment.isEnd"
|
|
@@ -500,6 +569,8 @@ export class WeekRowComponent {
|
|
|
500
569
|
}]
|
|
501
570
|
}], () => [{ type: i1.EventRenderService, decorators: [{
|
|
502
571
|
type: Optional
|
|
572
|
+
}] }, { type: i1.CalendarPointerGestureService, decorators: [{
|
|
573
|
+
type: Optional
|
|
503
574
|
}] }], { weekDates: [{
|
|
504
575
|
type: Input
|
|
505
576
|
}], items: [{
|
|
@@ -548,5 +619,5 @@ export class WeekRowComponent {
|
|
|
548
619
|
type: ViewChild,
|
|
549
620
|
args: ['rowEl']
|
|
550
621
|
}] }); })();
|
|
551
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WeekRowComponent, { className: "WeekRowComponent", filePath: "views/month/weekrow.ts", lineNumber:
|
|
622
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WeekRowComponent, { className: "WeekRowComponent", filePath: "views/month/weekrow.ts", lineNumber: 127 }); })();
|
|
552
623
|
//# sourceMappingURL=WeekRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WeekRow.js","sourceRoot":"","sources":["../../../src/views/month/WeekRow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACxG,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EACL,SAAS,EAAE,aAAa,EAAE,QAAQ,EAClC,kBAAkB,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc,EACrE,6BAA6B,GAC9B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAClG,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;;;;;;IAsCjD,wBAAiF;;;IADnF,6BAAoD;IAClD,oIAAkE;;;;;IAAnD,cAA8B;IAAA,AAA9B,oDAA8B,iDAAmB;;;IAGhE,2BAAqF;IACrF,gCAAuC;IAAA,YAAo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,KAAK;YACG,YAAY;kBAApB,KAAK;YACG,MAAM;kBAAd,KAAK;YACG,KAAK;kBAAb,KAAK;YAEG,YAAY;kBAApB,KAAK;YAIG,gBAAgB;kBAAxB,KAAK;YACG,eAAe;kBAAvB,KAAK;YACG,oBAAoB;kBAA5B,KAAK;YACI,UAAU;kBAAnB,MAAM;YACG,WAAW;kBAApB,MAAM;YACG,cAAc;kBAAvB,MAAM;YACG,YAAY;kBAArB,MAAM;YACG,SAAS;kBAAlB,MAAM;YACG,QAAQ;kBAAjB,MAAM;YAEG,aAAa;kBAAtB,MAAM;YAEG,OAAO;kBAAhB,MAAM;YACG,WAAW;kBAApB,MAAM;YAEG,eAAe;kBAAxB,MAAM;YACG,iBAAiB;kBAA1B,MAAM;YAEa,KAAK;kBAAxB,SAAS;mBAAC,OAAO;;kFA/BP,gBAAgB"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
+
import type { DragInfo } from '@bimetal/calendar-headless';
|
|
1
2
|
import { EventEmitter, AfterViewInit, ElementRef } from '@angular/core';
|
|
2
3
|
import type { CalendarEvent, CalendarDateTime, Resource } from '@bimetal/calendar-core';
|
|
3
4
|
import type { CalendarConfig } from '../../binding/index.js';
|
|
5
|
+
import { CalendarPointerGestureService } from '../../binding/index.js';
|
|
4
6
|
import { type TimeEventLayout } from '../week/TimeEvent.js';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* Single-day, multi-resource time grid: one column per visible resource, each
|
|
10
|
+
* with its own overlap-lane layout of timed events.
|
|
11
|
+
*/
|
|
6
12
|
export declare class ResourceViewComponent implements AfterViewInit {
|
|
13
|
+
private gesture;
|
|
14
|
+
constructor(gesture: CalendarPointerGestureService);
|
|
7
15
|
currentDate: CalendarDateTime;
|
|
8
16
|
events: CalendarEvent[];
|
|
9
17
|
visibleResources: readonly Resource[];
|
|
@@ -41,6 +49,12 @@ export declare class ResourceViewComponent implements AfterViewInit {
|
|
|
41
49
|
hidePreviewEv: EventEmitter<void>;
|
|
42
50
|
/** Native `dragend` der Source — Drag-Session vollständig beendet. */
|
|
43
51
|
dragEnd: EventEmitter<void>;
|
|
52
|
+
resourceDropInfo: EventEmitter<{
|
|
53
|
+
info: DragInfo;
|
|
54
|
+
date: CalendarDateTime;
|
|
55
|
+
time: string;
|
|
56
|
+
resourceId: string;
|
|
57
|
+
}>;
|
|
44
58
|
dragStartEv: EventEmitter<any>;
|
|
45
59
|
timeGridEl: ElementRef<HTMLDivElement>;
|
|
46
60
|
gridInnerEl: ElementRef<HTMLDivElement>;
|
|
@@ -65,10 +79,27 @@ export declare class ResourceViewComponent implements AfterViewInit {
|
|
|
65
79
|
* dayCol = Resource-Index, lane/laneCount aus layoutTimed pro Resource
|
|
66
80
|
* — Überlapper in r1 dürfen die Spalte r2 nicht halbieren.
|
|
67
81
|
*/
|
|
82
|
+
/**
|
|
83
|
+
* CACHED PER INPUT IDENTITY, not per call (mcp-130 — the resource-view twin of
|
|
84
|
+
* mcp-129). As a plain getter this ran the full segment/lane layout and minted
|
|
85
|
+
* fresh {event, layout} wrappers on EVERY change-detection pass; Zone runs CD
|
|
86
|
+
* after every DOM event, so the dragstart itself handed the un-trackBy'd *ngFor
|
|
87
|
+
* all-new identities, every cal-time-event was re-created, and Chromium
|
|
88
|
+
* cancelled the native drag whose source died in its own dragstart task. The
|
|
89
|
+
* dragstart-survival fence in e2e/calendar.spec.ts went red on exactly this
|
|
90
|
+
* view before the cache + trackBy below.
|
|
91
|
+
*/
|
|
92
|
+
private timedCache;
|
|
68
93
|
get timedEntries(): {
|
|
69
94
|
event: CalendarEvent;
|
|
70
95
|
layout: TimeEventLayout;
|
|
71
96
|
}[];
|
|
97
|
+
/** Same identity rule the week view pins (`trackTimed`): event + column. */
|
|
98
|
+
trackTimed(_i: number, entry: {
|
|
99
|
+
event: CalendarEvent;
|
|
100
|
+
layout: TimeEventLayout;
|
|
101
|
+
}): string;
|
|
102
|
+
private buildTimedEntries;
|
|
72
103
|
resourceFromX(clientX: number, gridInner: HTMLElement): string | null;
|
|
73
104
|
isOffHour(h: number): boolean;
|
|
74
105
|
formatHour(h: number): string;
|
|
@@ -81,6 +112,6 @@ export declare class ResourceViewComponent implements AfterViewInit {
|
|
|
81
112
|
trackResource(_: number, r: Resource): string;
|
|
82
113
|
trackEvent(_: number, ev: CalendarEvent): string;
|
|
83
114
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceViewComponent, never>;
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceViewComponent, "cal-resource-view", never, { "currentDate": { "alias": "currentDate"; "required": false; }; "events": { "alias": "events"; "required": false; }; "visibleResources": { "alias": "visibleResources"; "required": false; }; "config": { "alias": "config"; "required": false; }; "previewEvent": { "alias": "previewEvent"; "required": false; }; "selectedEventId": { "alias": "selectedEventId"; "required": false; }; "selectedInstanceDate": { "alias": "selectedInstanceDate"; "required": false; }; }, { "eventClick": "eventClick"; "selectEvent": "selectEvent"; "clearSelection": "clearSelection"; "resourceCellClick": "resourceCellClick"; "resourceDrop": "resourceDrop"; "dragOverDateTime": "dragOverDateTime"; "hidePreviewEv": "hidePreviewEv"; "dragEnd": "dragEnd"; "dragStartEv": "dragStartEv"; }, never, never, true, never>;
|
|
115
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceViewComponent, "cal-resource-view", never, { "currentDate": { "alias": "currentDate"; "required": false; }; "events": { "alias": "events"; "required": false; }; "visibleResources": { "alias": "visibleResources"; "required": false; }; "config": { "alias": "config"; "required": false; }; "previewEvent": { "alias": "previewEvent"; "required": false; }; "selectedEventId": { "alias": "selectedEventId"; "required": false; }; "selectedInstanceDate": { "alias": "selectedInstanceDate"; "required": false; }; }, { "eventClick": "eventClick"; "selectEvent": "selectEvent"; "clearSelection": "clearSelection"; "resourceCellClick": "resourceCellClick"; "resourceDrop": "resourceDrop"; "dragOverDateTime": "dragOverDateTime"; "hidePreviewEv": "hidePreviewEv"; "dragEnd": "dragEnd"; "resourceDropInfo": "resourceDropInfo"; "dragStartEv": "dragStartEv"; }, never, never, true, never>;
|
|
85
116
|
}
|
|
86
117
|
//# sourceMappingURL=ResourceView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceView.d.ts","sourceRoot":"","sources":["../../../src/views/resource/ResourceView.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,aAAa,EAAa,UAAU,EAAE,MAAM,eAAe,CAAC;AAE7G,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ResourceView.d.ts","sourceRoot":"","sources":["../../../src/views/resource/ResourceView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAA4B,YAAY,EAAE,aAAa,EAAa,UAAU,EAAE,MAAM,eAAe,CAAC;AAE7G,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAuB,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAE5F,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;;AAIhF;;;GAGG;AACH,qBA2Ea,qBAAsB,YAAW,aAAa;IAC7C,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,6BAA6B;IACjD,WAAW,EAAG,gBAAgB,CAAC;IAC/B,MAAM,EAAE,aAAa,EAAE,CAAM;IAC7B,gBAAgB,EAAE,SAAS,QAAQ,EAAE,CAAM;IAC3C,MAAM,EAAG,cAAc,CAAC;IAExB,YAAY,EAAE,aAAa,GAAG,IAAI,CAAQ;IAC1C,eAAe,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,oBAAoB,EAAE,MAAM,GAAG,SAAS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