@bimetal/calendar-angular-components 0.29.0 → 0.32.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/dist/components/Calendar.d.ts +31 -6
- package/dist/components/Calendar.d.ts.map +1 -1
- package/dist/components/Calendar.js +104 -42
- package/dist/components/Calendar.js.map +1 -1
- package/dist/components/CalendarHeader.js +11 -11
- package/dist/components/CalendarHeader.js.map +1 -1
- package/dist/components/CategoryFilter.js +4 -4
- package/dist/components/CategoryFilter.js.map +1 -1
- package/dist/components/EventBar.d.ts +23 -10
- package/dist/components/EventBar.d.ts.map +1 -1
- package/dist/components/EventBar.js +73 -44
- package/dist/components/EventBar.js.map +1 -1
- package/dist/components/EventDialog.js +86 -68
- package/dist/components/EventDialog.js.map +1 -1
- package/dist/components/EventHistory.d.ts.map +1 -1
- package/dist/components/EventHistory.js +19 -21
- package/dist/components/EventHistory.js.map +1 -1
- package/dist/components/ResourceFilter.js +4 -4
- package/dist/components/ResourceFilter.js.map +1 -1
- package/dist/components/UndoToast.js +7 -8
- package/dist/components/UndoToast.js.map +1 -1
- package/dist/views/agenda/AgendaView.d.ts +29 -30
- package/dist/views/agenda/AgendaView.d.ts.map +1 -1
- package/dist/views/agenda/AgendaView.js +189 -196
- package/dist/views/agenda/AgendaView.js.map +1 -1
- package/dist/views/day/DayView.d.ts.map +1 -1
- package/dist/views/day/DayView.js +30 -27
- package/dist/views/day/DayView.js.map +1 -1
- package/dist/views/month/MonthView.js +5 -5
- package/dist/views/month/MonthView.js.map +1 -1
- package/dist/views/month/WeekRow.d.ts.map +1 -1
- package/dist/views/month/WeekRow.js +36 -32
- package/dist/views/month/WeekRow.js.map +1 -1
- package/dist/views/resource/ResourceView.d.ts +1 -0
- package/dist/views/resource/ResourceView.d.ts.map +1 -1
- package/dist/views/resource/ResourceView.js +35 -27
- package/dist/views/resource/ResourceView.js.map +1 -1
- package/dist/views/timeline/TimelineView.d.ts +1 -0
- package/dist/views/timeline/TimelineView.d.ts.map +1 -1
- package/dist/views/timeline/TimelineView.js +31 -22
- package/dist/views/timeline/TimelineView.js.map +1 -1
- package/dist/views/week/AllDayRow.d.ts +1 -0
- package/dist/views/week/AllDayRow.d.ts.map +1 -1
- package/dist/views/week/AllDayRow.js +21 -11
- package/dist/views/week/AllDayRow.js.map +1 -1
- package/dist/views/week/TimeEvent.d.ts +13 -6
- package/dist/views/week/TimeEvent.d.ts.map +1 -1
- package/dist/views/week/TimeEvent.js +57 -33
- package/dist/views/week/TimeEvent.js.map +1 -1
- package/dist/views/week/WeekView.d.ts +1 -0
- package/dist/views/week/WeekView.d.ts.map +1 -1
- package/dist/views/week/WeekView.js +33 -26
- package/dist/views/week/WeekView.js.map +1 -1
- package/dist/views/year/YearView.js +12 -12
- package/dist/views/year/YearView.js.map +1 -1
- package/package.json +9 -8
- package/dist/binding/utils/date-strings.d.ts +0 -16
- package/dist/binding/utils/date-strings.d.ts.map +0 -1
- package/dist/binding/utils/date-strings.js +0 -30
- package/dist/binding/utils/date-strings.js.map +0 -1
- package/dist/binding/utils/gridUtils.d.ts +0 -6
- package/dist/binding/utils/gridUtils.d.ts.map +0 -1
- package/dist/binding/utils/gridUtils.js +0 -13
- package/dist/binding/utils/gridUtils.js.map +0 -1
|
@@ -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,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGT;aACF;;sBAsCc,QAAQ;qBApCZ,SAAS;kBAAjB,KAAK;YACG,KAAK;kBAAb,KAAK;YACG,UAAU;kBAAlB,KAAK;YACG,WAAW;kBAAnB,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"}
|
|
@@ -73,6 +73,7 @@ export declare class ResourceViewComponent implements AfterViewInit {
|
|
|
73
73
|
isOffHour(h: number): boolean;
|
|
74
74
|
formatHour(h: number): string;
|
|
75
75
|
onColClick(e: MouseEvent): void;
|
|
76
|
+
isTimeSelected(ev: CalendarEvent): boolean;
|
|
76
77
|
onColDoubleClick(e: MouseEvent, resourceId: string): void;
|
|
77
78
|
onGridDragOver(e: DragEvent): void;
|
|
78
79
|
onGridDrop(e: DragEvent): void;
|
|
@@ -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,EAA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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component, Input, Output, EventEmitter, ViewChild, ElementRef } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { isSameDay, now, startOfDay, addDays, getHours, getMinutes, createTimeRange, overlaps, formatDateTime, segmentTimed, layoutTimed, } from '@bimetal/calendar-core';
|
|
3
|
+
import { isSameDay, now, startOfDay, addDays, getHours, getMinutes, createTimeRange, overlaps, formatDateTime, segmentTimed, layoutTimed, getRecurrenceInstanceMetadata, } from '@bimetal/calendar-core';
|
|
4
4
|
import { snapTimeFromMouseY } from '../../binding/index.js';
|
|
5
5
|
import { DEFAULT_HOUR_HEIGHT, DEFAULT_TIME_LABEL_WIDTH_DAY, DEFAULT_SCROLL_HOUR, createClickIntent } from '@bimetal/calendar-headless';
|
|
6
6
|
import { TimeEventComponent } from '../week/TimeEvent.js';
|
|
@@ -45,7 +45,7 @@ function ResourceViewComponent_ng_template_1_div_11_Template(rf, ctx) { if (rf &
|
|
|
45
45
|
} if (rf & 2) {
|
|
46
46
|
const h_r4 = ctx.$implicit;
|
|
47
47
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
48
|
-
i0.ɵɵclassMap("
|
|
48
|
+
i0.ɵɵclassMap("bm-cal-resource__hour-row" + (ctx_r0.isOffHour(h_r4) ? " bm-cal__hour-slot--off" : ""));
|
|
49
49
|
i0.ɵɵstyleProp("top", h_r4 * ctx_r0.hourHeight, "px")("height", ctx_r0.hourHeight, "px");
|
|
50
50
|
i0.ɵɵadvance(2);
|
|
51
51
|
i0.ɵɵtextInterpolate(h_r4 > 0 ? ctx_r0.formatHour(h_r4) : "");
|
|
@@ -68,7 +68,7 @@ function ResourceViewComponent_ng_template_1_cal_time_event_13_Template(rf, ctx)
|
|
|
68
68
|
} if (rf & 2) {
|
|
69
69
|
const entry_r9 = ctx.$implicit;
|
|
70
70
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
71
|
-
i0.ɵɵproperty("event", entry_r9.event)("layout", entry_r9.layout)("dayDate", ctx_r0.currentDate)("hourHeight", ctx_r0.hourHeight)("timeLabelWidth", ctx_r0.timeLabelWidth)("ghost", (ctx_r0.previewEvent == null ? null : ctx_r0.previewEvent.id) === entry_r9.event.id)("clickThresholdMs", ctx_r0.config.clickThresholdMs)("locale", ctx_r0.config.locale)("snapMinutes", ctx_r0.config.core.granularity.day.minutes)("
|
|
71
|
+
i0.ɵɵproperty("event", entry_r9.event)("dayCol", entry_r9.layout.dayCol)("dayCount", entry_r9.layout.dayCount)("lane", entry_r9.layout.lane)("laneCount", entry_r9.layout.laneCount)("startOffset", entry_r9.layout.startOffset)("endOffset", entry_r9.layout.endOffset)("dayDate", ctx_r0.currentDate)("hourHeight", ctx_r0.hourHeight)("timeLabelWidth", ctx_r0.timeLabelWidth)("ghost", (ctx_r0.previewEvent == null ? null : ctx_r0.previewEvent.id) === entry_r9.event.id)("clickThresholdMs", ctx_r0.config.clickThresholdMs)("locale", ctx_r0.config.locale)("snapMinutes", ctx_r0.config.core.granularity.day.minutes)("isSelected", ctx_r0.isTimeSelected(entry_r9.event));
|
|
72
72
|
} }
|
|
73
73
|
function ResourceViewComponent_ng_template_1_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
74
74
|
i0.ɵɵelementStart(0, "div", 24);
|
|
@@ -89,7 +89,7 @@ function ResourceViewComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
89
89
|
i0.ɵɵelementEnd()();
|
|
90
90
|
i0.ɵɵelementStart(7, "div", 11, 1)(9, "div", 12, 2);
|
|
91
91
|
i0.ɵɵlistener("dragover", function ResourceViewComponent_ng_template_1_Template_div_dragover_9_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onGridDragOver($event)); })("drop", function ResourceViewComponent_ng_template_1_Template_div_drop_9_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onGridDrop($event)); })("dragleave", function ResourceViewComponent_ng_template_1_Template_div_dragleave_9_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onGridDragLeave($event)); });
|
|
92
|
-
i0.ɵɵtemplate(11, ResourceViewComponent_ng_template_1_div_11_Template, 3, 7, "div", 13)(12, ResourceViewComponent_ng_template_1_div_12_Template, 1, 4, "div", 14)(13, ResourceViewComponent_ng_template_1_cal_time_event_13_Template, 1,
|
|
92
|
+
i0.ɵɵtemplate(11, ResourceViewComponent_ng_template_1_div_11_Template, 3, 7, "div", 13)(12, ResourceViewComponent_ng_template_1_div_12_Template, 1, 4, "div", 14)(13, ResourceViewComponent_ng_template_1_cal_time_event_13_Template, 1, 15, "cal-time-event", 15)(14, ResourceViewComponent_ng_template_1_div_14_Template, 2, 4, "div", 16);
|
|
93
93
|
i0.ɵɵelementEnd()()();
|
|
94
94
|
} if (rf & 2) {
|
|
95
95
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -212,18 +212,23 @@ export class ResourceViewComponent {
|
|
|
212
212
|
onColClick(e) {
|
|
213
213
|
if (!this.click.accept(this.config.clickThresholdMs))
|
|
214
214
|
return;
|
|
215
|
-
if (e.target.closest('.time-event'))
|
|
215
|
+
if (e.target.closest('.bm-cal-time-event'))
|
|
216
216
|
return;
|
|
217
217
|
// Single click deselects; create-dialog moves to dblclick.
|
|
218
218
|
if (this.selectedEventId !== null)
|
|
219
219
|
this.clearSelection.emit();
|
|
220
220
|
}
|
|
221
|
+
// v0.30 Slice 3: per-leaf selection computed here, passed to TimeEvent as `isSelected`.
|
|
222
|
+
isTimeSelected(ev) {
|
|
223
|
+
return this.selectedEventId === ev.id
|
|
224
|
+
&& this.selectedInstanceDate === (getRecurrenceInstanceMetadata(ev)?.instanceDate);
|
|
225
|
+
}
|
|
221
226
|
onColDoubleClick(e, resourceId) {
|
|
222
227
|
if (!this.click.accept(this.config.clickThresholdMs))
|
|
223
228
|
return;
|
|
224
229
|
if (!this.gridInnerEl?.nativeElement)
|
|
225
230
|
return;
|
|
226
|
-
if (e.target.closest('.time-event'))
|
|
231
|
+
if (e.target.closest('.bm-cal-time-event'))
|
|
227
232
|
return;
|
|
228
233
|
const time = snapTimeFromMouseY(e.clientY, this.gridInnerEl.nativeElement.getBoundingClientRect(), DEFAULT_HOUR_HEIGHT, this.config.core.granularity.day.minutes);
|
|
229
234
|
const rect = e.currentTarget.getBoundingClientRect();
|
|
@@ -266,7 +271,7 @@ export class ResourceViewComponent {
|
|
|
266
271
|
let _t;
|
|
267
272
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.timeGridEl = _t.first);
|
|
268
273
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.gridInnerEl = _t.first);
|
|
269
|
-
} }, hostAttrs: [2, "display", "contents"], inputs: { currentDate: "currentDate", events: "events", visibleResources: "visibleResources", config: "config", previewEvent: "previewEvent", selectedEventId: "selectedEventId", selectedInstanceDate: "selectedInstanceDate" }, outputs: { eventClick: "eventClick", selectEvent: "selectEvent", clearSelection: "clearSelection", resourceCellClick: "resourceCellClick", resourceDrop: "resourceDrop", dragOverDateTime: "dragOverDateTime", hidePreviewEv: "hidePreviewEv", dragEnd: "dragEnd", dragStartEv: "dragStartEv" }, decls: 3, vars: 2, consts: [["withResources", ""], ["timeGridEl", ""], ["gridInnerEl", ""], [4, "ngIf", "ngIfElse"], [1, "resource
|
|
274
|
+
} }, hostAttrs: [2, "display", "contents"], inputs: { currentDate: "currentDate", events: "events", visibleResources: "visibleResources", config: "config", previewEvent: "previewEvent", selectedEventId: "selectedEventId", selectedInstanceDate: "selectedInstanceDate" }, outputs: { eventClick: "eventClick", selectEvent: "selectEvent", clearSelection: "clearSelection", resourceCellClick: "resourceCellClick", resourceDrop: "resourceDrop", dragOverDateTime: "dragOverDateTime", hidePreviewEv: "hidePreviewEv", dragEnd: "dragEnd", dragStartEv: "dragStartEv" }, decls: 3, vars: 2, consts: [["withResources", ""], ["timeGridEl", ""], ["gridInnerEl", ""], [4, "ngIf", "ngIfElse"], [1, "bm-cal-resource", "bm-cal-resource--empty"], [1, "bm-cal-resource"], [1, "bm-cal-resource__header"], [1, "bm-cal-resource__day-name"], [1, "bm-cal-resource__resources"], [1, "bm-cal-resource__time-spacer"], ["class", "bm-cal-resource__resource-header", "style", "flex: 1 1 0; min-width: 0;", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "bm-cal-resource__time-grid"], [1, "bm-cal-resource__time-grid-inner", 3, "dragover", "drop", "dragleave"], [3, "class", "top", "height", 4, "ngFor", "ngForOf"], ["class", "bm-cal-resource__resource-col", 3, "left", "width", "mousedown", "click", "dblclick", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "event", "dayCol", "dayCount", "lane", "laneCount", "startOffset", "endOffset", "dayDate", "hourHeight", "timeLabelWidth", "ghost", "clickThresholdMs", "locale", "snapMinutes", "isSelected", "eventClick", "selectEvent", "dragStart", "dragEnd", 4, "ngFor", "ngForOf"], ["class", "bm-cal-resource__now-line", 3, "top", "left", 4, "ngIf"], [1, "bm-cal-resource__resource-header", 2, "flex", "1 1 0", "min-width", "0"], ["class", "bm-cal-resource__resource-dot", 3, "background-color", 4, "ngIf"], [1, "bm-cal-resource__resource-name"], [1, "bm-cal-resource__resource-dot"], [1, "bm-cal-resource__hour-label"], [1, "bm-cal-resource__resource-col", 3, "mousedown", "click", "dblclick"], [3, "eventClick", "selectEvent", "dragStart", "dragEnd", "event", "dayCol", "dayCount", "lane", "laneCount", "startOffset", "endOffset", "dayDate", "hourHeight", "timeLabelWidth", "ghost", "clickThresholdMs", "locale", "snapMinutes", "isSelected"], [1, "bm-cal-resource__now-line"], [1, "bm-cal-resource__now-dot"]], template: function ResourceViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
270
275
|
i0.ɵɵtemplate(0, ResourceViewComponent_ng_container_0_Template, 3, 1, "ng-container", 3)(1, ResourceViewComponent_ng_template_1_Template, 15, 12, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
271
276
|
} if (rf & 2) {
|
|
272
277
|
const withResources_r10 = i0.ɵɵreference(2);
|
|
@@ -282,38 +287,38 @@ export class ResourceViewComponent {
|
|
|
282
287
|
imports: [CommonModule, TimeEventComponent],
|
|
283
288
|
template: `
|
|
284
289
|
<ng-container *ngIf="visibleResources.length === 0; else withResources">
|
|
285
|
-
<div class="resource-
|
|
290
|
+
<div class="bm-cal-resource bm-cal-resource--empty">{{ config.locale.unassigned || 'No resource selected' }}</div>
|
|
286
291
|
</ng-container>
|
|
287
292
|
<ng-template #withResources>
|
|
288
|
-
<div class="resource
|
|
289
|
-
<div class="
|
|
290
|
-
<div class="
|
|
291
|
-
<div class="
|
|
292
|
-
<div class="
|
|
293
|
+
<div class="bm-cal-resource">
|
|
294
|
+
<div class="bm-cal-resource__header">
|
|
295
|
+
<div class="bm-cal-resource__day-name">{{ dayName }}</div>
|
|
296
|
+
<div class="bm-cal-resource__resources">
|
|
297
|
+
<div class="bm-cal-resource__time-spacer" [style.width.px]="timeLabelWidth"></div>
|
|
293
298
|
<div *ngFor="let r of visibleResources; trackBy: trackResource"
|
|
294
|
-
class="
|
|
299
|
+
class="bm-cal-resource__resource-header"
|
|
295
300
|
style="flex: 1 1 0; min-width: 0;">
|
|
296
|
-
<span *ngIf="r.color" class="
|
|
297
|
-
<span class="
|
|
301
|
+
<span *ngIf="r.color" class="bm-cal-resource__resource-dot" [style.background-color]="r.color"></span>
|
|
302
|
+
<span class="bm-cal-resource__resource-name">{{ r.name }}</span>
|
|
298
303
|
</div>
|
|
299
304
|
</div>
|
|
300
305
|
</div>
|
|
301
306
|
|
|
302
|
-
<div #timeGridEl class="
|
|
303
|
-
<div #gridInnerEl class="
|
|
307
|
+
<div #timeGridEl class="bm-cal-resource__time-grid">
|
|
308
|
+
<div #gridInnerEl class="bm-cal-resource__time-grid-inner"
|
|
304
309
|
[style.height.px]="24 * hourHeight"
|
|
305
310
|
(dragover)="onGridDragOver($event)"
|
|
306
311
|
(drop)="onGridDrop($event)"
|
|
307
312
|
(dragleave)="onGridDragLeave($event)">
|
|
308
313
|
<div *ngFor="let h of hours"
|
|
309
|
-
[class]="'
|
|
314
|
+
[class]="'bm-cal-resource__hour-row' + (isOffHour(h) ? ' bm-cal__hour-slot--off' : '')"
|
|
310
315
|
[style.top.px]="h * hourHeight" [style.height.px]="hourHeight">
|
|
311
|
-
<div class="
|
|
316
|
+
<div class="bm-cal-resource__hour-label">{{ h > 0 ? formatHour(h) : '' }}</div>
|
|
312
317
|
</div>
|
|
313
318
|
|
|
314
319
|
<!-- Click-target columns; drag handlers live on the grid-inner above -->
|
|
315
320
|
<div *ngFor="let r of visibleResources; let i = index; trackBy: trackResource"
|
|
316
|
-
class="
|
|
321
|
+
class="bm-cal-resource__resource-col"
|
|
317
322
|
[style.left]="colLeft(i)"
|
|
318
323
|
[style.width]="colWidth"
|
|
319
324
|
(mousedown)="click.markMouseDown()"
|
|
@@ -322,22 +327,25 @@ export class ResourceViewComponent {
|
|
|
322
327
|
</div>
|
|
323
328
|
<!-- Events as siblings: TimeEvent positions relative to the full grid -->
|
|
324
329
|
<cal-time-event *ngFor="let entry of timedEntries"
|
|
325
|
-
[event]="entry.event"
|
|
330
|
+
[event]="entry.event"
|
|
331
|
+
[dayCol]="entry.layout.dayCol" [dayCount]="entry.layout.dayCount"
|
|
332
|
+
[lane]="entry.layout.lane" [laneCount]="entry.layout.laneCount"
|
|
333
|
+
[startOffset]="entry.layout.startOffset" [endOffset]="entry.layout.endOffset"
|
|
334
|
+
[dayDate]="currentDate"
|
|
326
335
|
[hourHeight]="hourHeight" [timeLabelWidth]="timeLabelWidth"
|
|
327
336
|
[ghost]="previewEvent?.id === entry.event.id"
|
|
328
337
|
[clickThresholdMs]="config.clickThresholdMs" [locale]="config.locale"
|
|
329
338
|
[snapMinutes]="config.core.granularity.day.minutes"
|
|
330
|
-
[
|
|
331
|
-
[selectedInstanceDate]="selectedInstanceDate"
|
|
339
|
+
[isSelected]="isTimeSelected(entry.event)"
|
|
332
340
|
(eventClick)="eventClick.emit($event)"
|
|
333
341
|
(selectEvent)="selectEvent.emit($event)"
|
|
334
342
|
(dragStart)="dragStartEv.emit($event)"
|
|
335
343
|
(dragEnd)="dragEnd.emit()">
|
|
336
344
|
</cal-time-event>
|
|
337
345
|
|
|
338
|
-
<div *ngIf="isToday" class="
|
|
346
|
+
<div *ngIf="isToday" class="bm-cal-resource__now-line"
|
|
339
347
|
[style.top.px]="nowHours * hourHeight" [style.left.px]="timeLabelWidth">
|
|
340
|
-
<div class="
|
|
348
|
+
<div class="bm-cal-resource__now-dot"></div>
|
|
341
349
|
</div>
|
|
342
350
|
</div>
|
|
343
351
|
</div>
|
|
@@ -384,5 +392,5 @@ export class ResourceViewComponent {
|
|
|
384
392
|
type: ViewChild,
|
|
385
393
|
args: ['gridInnerEl']
|
|
386
394
|
}] }); })();
|
|
387
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResourceViewComponent, { className: "ResourceViewComponent", filePath: "views/resource/resourceview.ts", lineNumber:
|
|
395
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ResourceViewComponent, { className: "ResourceViewComponent", filePath: "views/resource/resourceview.ts", lineNumber: 90 }); })();
|
|
388
396
|
//# sourceMappingURL=ResourceView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceView.js","sourceRoot":"","sources":["../../../src/views/resource/ResourceView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAiB,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EACL,SAAS,EAAE,GAAG,EAAE,UA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
trackResource(_: number, r: Resource): string;
|
|
64
64
|
trackDate(_: number, d: CalendarDateTime): number;
|
|
65
65
|
trackItem(_: number, item: LayoutItem): string;
|
|
66
|
+
isSelected(ev: CalendarEvent): boolean;
|
|
66
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineViewComponent, never>;
|
|
67
68
|
static ɵcmp: i0.ɵɵComponentDeclaration<TimelineViewComponent, "cal-timeline-view", never, { "currentDate": { "alias": "currentDate"; "required": false; }; "days": { "alias": "days"; "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"; "timelineCellClick": "timelineCellClick"; "timelineDrop": "timelineDrop"; "dragOverDate": "dragOverDate"; "hidePreviewEv": "hidePreviewEv"; "dragEnd": "dragEnd"; "dragStartEv": "dragStartEv"; }, never, never, true, never>;
|
|
68
69
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimelineView.d.ts","sourceRoot":"","sources":["../../../src/views/timeline/TimelineView.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAA2B,MAAM,eAAe,CAAC;AAEhG,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAKpG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;;AAK3D,
|
|
1
|
+
{"version":3,"file":"TimelineView.d.ts","sourceRoot":"","sources":["../../../src/views/timeline/TimelineView.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAA2B,MA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,CAInC;IAED,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,EAAE;IAM1C,OAAO,CAAC,QAAQ;IAQhB,cAAc,CAAC,CAAC,EAAE,SAAS;IAO3B,UAAU,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM;IAM3C,eAAe,CAAC,CAAC,EAAE,SAAS;IAS5B,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAKtC,SAAS,mDAAuB;IAEhC,WAAW;IAMX,iBAAiB,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM;IAM3E,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ;IACpC,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,gBAAgB;IACxC,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU;IAErC,UAAU,CAAC,EAAE,EAAE,aAAa,GAAG,OAAO;yCApH3B,qBAAqB;2CAArB,qBAAqB;CAwHjC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { startOfDay, addDays, isSameDay, now, segmentInRange, layoutAllDay, maxLanes, } from '@bimetal/calendar-core';
|
|
3
|
+
import { startOfDay, addDays, isSameDay, now, segmentInRange, layoutAllDay, maxLanes, getRecurrenceInstanceMetadata, } from '@bimetal/calendar-core';
|
|
4
4
|
import { DEFAULT_RESOURCE_LABEL_WIDTH, createClickIntent } from '@bimetal/calendar-headless';
|
|
5
5
|
import { EventBarComponent } from '../../components/EventBar.js';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -23,7 +23,7 @@ function TimelineViewComponent_ng_template_1_div_3_Template(rf, ctx) { if (rf &
|
|
|
23
23
|
} if (rf & 2) {
|
|
24
24
|
const d_r2 = ctx.$implicit;
|
|
25
25
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
26
|
-
i0.ɵɵclassMap("
|
|
26
|
+
i0.ɵɵclassMap("bm-cal-timeline__date-header" + (ctx_r0.isToday(d_r2) ? " bm-cal-timeline__date-header--today" : ""));
|
|
27
27
|
i0.ɵɵadvance();
|
|
28
28
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.formatDate(d_r2), " ");
|
|
29
29
|
} }
|
|
@@ -42,7 +42,7 @@ function TimelineViewComponent_ng_template_1_div_5_button_6_Template(rf, ctx) {
|
|
|
42
42
|
const d_r6 = ctx.$implicit;
|
|
43
43
|
const i_r7 = ctx.index;
|
|
44
44
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
45
|
-
i0.ɵɵclassMap("
|
|
45
|
+
i0.ɵɵclassMap("bm-cal-timeline__cell" + (ctx_r0.isToday(d_r6) ? " bm-cal-timeline__cell--today" : ""));
|
|
46
46
|
i0.ɵɵstyleProp("grid-column", i_r7 + 1)("grid-row", "1 / -1");
|
|
47
47
|
} }
|
|
48
48
|
function TimelineViewComponent_ng_template_1_div_5_cal_event_bar_7_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -53,7 +53,7 @@ function TimelineViewComponent_ng_template_1_div_5_cal_event_bar_7_Template(rf,
|
|
|
53
53
|
} if (rf & 2) {
|
|
54
54
|
const item_r9 = ctx.$implicit;
|
|
55
55
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
56
|
-
i0.ɵɵproperty("
|
|
56
|
+
i0.ɵɵproperty("event", item_r9.segment.event)("isStart", item_r9.segment.isStart)("isEnd", item_r9.segment.isEnd)("dayIndex", item_r9.dayIndex)("daySpan", item_r9.daySpan)("column", item_r9.column)("weekDates", ctx_r0.dates)("ghost", (ctx_r0.previewEvent == null ? null : ctx_r0.previewEvent.id) === item_r9.segment.event.id)("clickThresholdMs", ctx_r0.config.clickThresholdMs)("isSelected", ctx_r0.isSelected(item_r9.segment.event));
|
|
57
57
|
} }
|
|
58
58
|
function TimelineViewComponent_ng_template_1_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
59
59
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
@@ -64,7 +64,7 @@ function TimelineViewComponent_ng_template_1_div_5_Template(rf, ctx) { if (rf &
|
|
|
64
64
|
i0.ɵɵelementEnd()();
|
|
65
65
|
i0.ɵɵelementStart(5, "div", 13);
|
|
66
66
|
i0.ɵɵlistener("dragover", function TimelineViewComponent_ng_template_1_div_5_Template_div_dragover_5_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onLaneDragOver($event)); })("drop", function TimelineViewComponent_ng_template_1_div_5_Template_div_drop_5_listener($event) { const r_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onLaneDrop($event, r_r4.id)); })("dragleave", function TimelineViewComponent_ng_template_1_div_5_Template_div_dragleave_5_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onLaneDragLeave($event)); });
|
|
67
|
-
i0.ɵɵtemplate(6, TimelineViewComponent_ng_template_1_div_5_button_6_Template, 1, 6, "button", 14)(7, TimelineViewComponent_ng_template_1_div_5_cal_event_bar_7_Template, 1,
|
|
67
|
+
i0.ɵɵtemplate(6, TimelineViewComponent_ng_template_1_div_5_button_6_Template, 1, 6, "button", 14)(7, TimelineViewComponent_ng_template_1_div_5_cal_event_bar_7_Template, 1, 10, "cal-event-bar", 15);
|
|
68
68
|
i0.ɵɵelementEnd()();
|
|
69
69
|
} if (rf & 2) {
|
|
70
70
|
const r_r4 = ctx.$implicit;
|
|
@@ -202,8 +202,13 @@ export class TimelineViewComponent {
|
|
|
202
202
|
trackResource(_, r) { return r.id; }
|
|
203
203
|
trackDate(_, d) { return d.epochMs; }
|
|
204
204
|
trackItem(_, item) { return item.segment.event.id; }
|
|
205
|
+
// v0.30 Slice 3: per-leaf selection computed here, passed to EventBar as `isSelected`.
|
|
206
|
+
isSelected(ev) {
|
|
207
|
+
return this.selectedEventId === ev.id
|
|
208
|
+
&& this.selectedInstanceDate === (getRecurrenceInstanceMetadata(ev)?.instanceDate);
|
|
209
|
+
}
|
|
205
210
|
static ɵfac = function TimelineViewComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TimelineViewComponent)(); };
|
|
206
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimelineViewComponent, selectors: [["cal-timeline-view"]], inputs: { currentDate: "currentDate", days: "days", events: "events", visibleResources: "visibleResources", config: "config", previewEvent: "previewEvent", selectedEventId: "selectedEventId", selectedInstanceDate: "selectedInstanceDate" }, outputs: { eventClick: "eventClick", selectEvent: "selectEvent", clearSelection: "clearSelection", timelineCellClick: "timelineCellClick", timelineDrop: "timelineDrop", dragOverDate: "dragOverDate", hidePreviewEv: "hidePreviewEv", dragEnd: "dragEnd", dragStartEv: "dragStartEv" }, decls: 3, vars: 2, consts: [["withResources", ""], [4, "ngIf", "ngIfElse"], [1, "timeline
|
|
211
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimelineViewComponent, selectors: [["cal-timeline-view"]], inputs: { currentDate: "currentDate", days: "days", events: "events", visibleResources: "visibleResources", config: "config", previewEvent: "previewEvent", selectedEventId: "selectedEventId", selectedInstanceDate: "selectedInstanceDate" }, outputs: { eventClick: "eventClick", selectEvent: "selectEvent", clearSelection: "clearSelection", timelineCellClick: "timelineCellClick", timelineDrop: "timelineDrop", dragOverDate: "dragOverDate", hidePreviewEv: "hidePreviewEv", dragEnd: "dragEnd", dragStartEv: "dragStartEv" }, decls: 3, vars: 2, consts: [["withResources", ""], [4, "ngIf", "ngIfElse"], [1, "bm-cal-timeline", "bm-cal-timeline--empty"], [1, "bm-cal-timeline"], [1, "bm-cal-timeline__header"], [1, "bm-cal-timeline__corner"], [3, "class", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "bm-cal-timeline__body"], ["class", "bm-cal-timeline__lane", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "bm-cal-timeline__lane"], [1, "bm-cal-timeline__resource-label"], ["class", "bm-cal-timeline__resource-dot", 3, "background-color", 4, "ngIf"], [1, "bm-cal-timeline__resource-name"], [1, "bm-cal-timeline__lane-content", 3, "dragover", "drop", "dragleave"], ["type", "button", 3, "class", "grid-column", "grid-row", "mousedown", "click", "dblclick", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "event", "isStart", "isEnd", "dayIndex", "daySpan", "column", "weekDates", "ghost", "clickThresholdMs", "isSelected", "eventClick", "selectEvent", "dragStart", "dragEnd", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "bm-cal-timeline__resource-dot"], ["type", "button", 3, "mousedown", "click", "dblclick"], [3, "eventClick", "selectEvent", "dragStart", "dragEnd", "event", "isStart", "isEnd", "dayIndex", "daySpan", "column", "weekDates", "ghost", "clickThresholdMs", "isSelected"]], template: function TimelineViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
207
212
|
i0.ɵɵtemplate(0, TimelineViewComponent_ng_container_0_Template, 3, 1, "ng-container", 1)(1, TimelineViewComponent_ng_template_1_Template, 6, 6, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
208
213
|
} if (rf & 2) {
|
|
209
214
|
const withResources_r10 = i0.ɵɵreference(2);
|
|
@@ -219,27 +224,27 @@ export class TimelineViewComponent {
|
|
|
219
224
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
220
225
|
template: `
|
|
221
226
|
<ng-container *ngIf="visibleResources.length === 0; else withResources">
|
|
222
|
-
<div class="timeline-
|
|
227
|
+
<div class="bm-cal-timeline bm-cal-timeline--empty">
|
|
223
228
|
{{ config.locale.unassigned || 'No resource selected' }}
|
|
224
229
|
</div>
|
|
225
230
|
</ng-container>
|
|
226
231
|
<ng-template #withResources>
|
|
227
|
-
<div class="timeline
|
|
228
|
-
<div class="
|
|
229
|
-
<div class="
|
|
232
|
+
<div class="bm-cal-timeline">
|
|
233
|
+
<div class="bm-cal-timeline__header" [style.grid-template-columns]="colTemplate">
|
|
234
|
+
<div class="bm-cal-timeline__corner"></div>
|
|
230
235
|
<div *ngFor="let d of dates; trackBy: trackDate"
|
|
231
|
-
[class]="'
|
|
236
|
+
[class]="'bm-cal-timeline__date-header' + (isToday(d) ? ' bm-cal-timeline__date-header--today' : '')">
|
|
232
237
|
{{ formatDate(d) }}
|
|
233
238
|
</div>
|
|
234
239
|
</div>
|
|
235
240
|
|
|
236
|
-
<div class="
|
|
237
|
-
<div *ngFor="let r of visibleResources; trackBy: trackResource" class="
|
|
238
|
-
<div class="
|
|
239
|
-
<span *ngIf="r.color" class="
|
|
240
|
-
<span class="
|
|
241
|
+
<div class="bm-cal-timeline__body">
|
|
242
|
+
<div *ngFor="let r of visibleResources; trackBy: trackResource" class="bm-cal-timeline__lane">
|
|
243
|
+
<div class="bm-cal-timeline__resource-label" [style.width.px]="resourceLabelW">
|
|
244
|
+
<span *ngIf="r.color" class="bm-cal-timeline__resource-dot" [style.background-color]="r.color"></span>
|
|
245
|
+
<span class="bm-cal-timeline__resource-name">{{ r.name }}</span>
|
|
241
246
|
</div>
|
|
242
|
-
<div class="
|
|
247
|
+
<div class="bm-cal-timeline__lane-content"
|
|
243
248
|
[style.display]="'grid'"
|
|
244
249
|
[style.grid-template-columns]="'repeat(' + days + ', 1fr)'"
|
|
245
250
|
[style.grid-auto-rows]="'32px'"
|
|
@@ -249,7 +254,7 @@ export class TimelineViewComponent {
|
|
|
249
254
|
(dragleave)="onLaneDragLeave($event)">
|
|
250
255
|
<button *ngFor="let d of dates; let i = index; trackBy: trackDate"
|
|
251
256
|
type="button"
|
|
252
|
-
[class]="'
|
|
257
|
+
[class]="'bm-cal-timeline__cell' + (isToday(d) ? ' bm-cal-timeline__cell--today' : '')"
|
|
253
258
|
[style.grid-column]="i + 1"
|
|
254
259
|
[style.grid-row]="'1 / -1'"
|
|
255
260
|
(mousedown)="cellClick.markMouseDown()"
|
|
@@ -257,12 +262,16 @@ export class TimelineViewComponent {
|
|
|
257
262
|
(dblclick)="onCellDoubleClick($event, d, r.id)">
|
|
258
263
|
</button>
|
|
259
264
|
<cal-event-bar *ngFor="let item of itemsFor(r.id); let idx = index; trackBy: trackItem"
|
|
260
|
-
[
|
|
265
|
+
[event]="item.segment.event"
|
|
266
|
+
[isStart]="item.segment.isStart"
|
|
267
|
+
[isEnd]="item.segment.isEnd"
|
|
268
|
+
[dayIndex]="item.dayIndex"
|
|
269
|
+
[daySpan]="item.daySpan"
|
|
270
|
+
[column]="item.column"
|
|
261
271
|
[weekDates]="dates"
|
|
262
272
|
[ghost]="previewEvent?.id === item.segment.event.id"
|
|
263
273
|
[clickThresholdMs]="config.clickThresholdMs"
|
|
264
|
-
[
|
|
265
|
-
[selectedInstanceDate]="selectedInstanceDate"
|
|
274
|
+
[isSelected]="isSelected(item.segment.event)"
|
|
266
275
|
(eventClick)="eventClick.emit($event)"
|
|
267
276
|
(selectEvent)="selectEvent.emit($event)"
|
|
268
277
|
(dragStart)="dragStartEv.emit($event)"
|
|
@@ -310,5 +319,5 @@ export class TimelineViewComponent {
|
|
|
310
319
|
}], dragStartEv: [{
|
|
311
320
|
type: Output
|
|
312
321
|
}] }); })();
|
|
313
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TimelineViewComponent, { className: "TimelineViewComponent", filePath: "views/timeline/timelineview.ts", lineNumber:
|
|
322
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TimelineViewComponent, { className: "TimelineViewComponent", filePath: "views/timeline/timelineview.ts", lineNumber: 81 }); })();
|
|
314
323
|
//# sourceMappingURL=TimelineView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimelineView.js","sourceRoot":"","sources":["../../../src/views/timeline/TimelineView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EACL,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EACnC,cAAc,EAAE,YAAY,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"TimelineView.js","sourceRoot":"","sources":["../../../src/views/timeline/TimelineView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EACL,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EACnC,cAAc,EAAE,YAAY,EAAE,QAAQ,EAAE,6BAA6B,GACtE,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,4BAA4B,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;;;;IAS7D,6BAAwE;IACtE,8BAAoD;IAClD,YACF;IAAA,iBAAM;;;;IADJ,eACF;IADE,0FACF;;;IAMI,2BAC2G;IACzG,YACF;IAAA,iBAAM;;;;IAFD,oHAAqG;IACxG,cACF;IADE,wDACF;;;IAMI,2BAAsG;;;IAA1C,8CAAkC;;;;IAW9F,kCAOwD;IAAhD,AADA,AADA,iNAAa,gCAAyB,KAAC,4LAC9B,oBAAa,KAAC,0QACX,+CAAkC,KAAC;IACvD,iBAAS;;;;;IAND,sGAAuF;IAEvF,AADA,uCAA2B,sBACA;;;;IAKnC,yCAc6B;IAA3B,AADA,AADA,AADA,uOAAc,8BAAuB,KAAC,4NACvB,+BAAwB,KAAC,wNAC3B,+BAAwB,KAA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AE,CAAC,EAAE,YAAY,CAAC,CAAC;IACvF,CAAC;+GAvHU,qBAAqB;6DAArB,qBAAqB;YAxD9B,AALA,wFAAwE,0GAK5C;;;YALwB,AAArC,wDAAqC,+BAAkB;4BAH9D,YAAY,uBAAE,iBAAiB;;iFAgE9B,qBAAqB;cAnEjC,SAAS;eAAC;gBACT,QAAQ,EAAE,mBAAmB;gBAC7B,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,YAAY,EAAE,iBAAiB,CAAC;gBAC1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DT;aACF;gBAEU,WAAW;kBAAnB,KAAK;YACG,IAAI;kBAAZ,KAAK;YACG,MAAM;kBAAd,KAAK;YACG,gBAAgB;kBAAxB,KAAK;YACG,MAAM;kBAAd,KAAK;YAEG,YAAY;kBAApB,KAAK;YACG,eAAe;kBAAvB,KAAK;YACG,oBAAoB;kBAA5B,KAAK;YACI,UAAU;kBAAnB,MAAM;YACG,WAAW;kBAApB,MAAM;YACG,cAAc;kBAAvB,MAAM;YACG,iBAAiB;kBAA1B,MAAM;YACG,YAAY;kBAArB,MAAM;YACG,YAAY;kBAArB,MAAM;YAEG,aAAa;kBAAtB,MAAM;YAEG,OAAO;kBAAhB,MAAM;YACG,WAAW;kBAApB,MAAM;;kFApBI,qBAAqB"}
|
|
@@ -29,6 +29,7 @@ export declare class AllDayRowComponent {
|
|
|
29
29
|
dragStartEv: EventEmitter<any>;
|
|
30
30
|
rowEl?: ElementRef<HTMLDivElement>;
|
|
31
31
|
get lanes(): number;
|
|
32
|
+
isSelected(ev: CalendarEvent): boolean;
|
|
32
33
|
handleDragOver(e: DragEvent): void;
|
|
33
34
|
handleDrop(e: DragEvent): void;
|
|
34
35
|
handleDragLeave(e: DragEvent): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllDayRow.d.ts","sourceRoot":"","sources":["../../../src/views/week/AllDayRow.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAa,UAAU,EAAE,MAAM,eAAe,CAAC;AAE9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;;AAK1F,
|
|
1
|
+
{"version":3,"file":"AllDayRow.d.ts","sourceRoot":"","sources":["../../../src/views/week/AllDayRow.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAa,UAAU,EAAE,MAAM,eAAe,CAAC;AAE9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;;AAK1F,qBA8Ba,kBAAkB;IACpB,SAAS,EAAE,gBAAgB,EAAE,CAAM;IACnC,KAAK,EAAE,UAAU,EAAE,CAAM;IACzB,WAAW,SAAa;IAExB,YAAY,EAAE,aAAa,GAAG,IAAI,CAAQ;IAC1C,eAAe,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAa;IACpD,UAAU;iBAA+B,MAAM;cAAQ,OAAO;uBAAiB,MAAM;OAAM;IAC3F,WAAW;iBAA+B,MAAM;uBAAiB,MAAM;OAAM;IAC7E,SAAS;eAA6B,SAAS;cAAQ,gBAAgB;OAAM;IAC7E,QAAQ,iCAAwC;IAC1D,yEAAyE;IAC/D,aAAa,qBAA4B;IACnD,sEAAsE;IAC5D,OAAO,qBAA4B;IACnC,WAAW,oBAA2B;IAE5B,KAAK,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IAEvD,IAAI,KAAK,WAAmC;IAG5C,UAAU,CAAC,EAAE,EAAE,aAAa,GAAG,OAAO;IAKtC,cAAc,CAAC,CAAC,EAAE,SAAS;IAQ3B,UAAU,CAAC,CAAC,EAAE,SAAS;IAOvB,eAAe,CAAC,CAAC,EAAE,SA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