@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
|
@@ -17,7 +17,7 @@ function EventDialogComponent_cal_event_history_3_Template(rf, ctx) { if (rf & 1
|
|
|
17
17
|
function EventDialogComponent_ng_container_4_div_12_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
18
18
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
19
19
|
i0.ɵɵelementStart(0, "div", 36)(1, "span", 37);
|
|
20
|
-
i0.ɵɵtext(2
|
|
20
|
+
i0.ɵɵtext(2);
|
|
21
21
|
i0.ɵɵelementEnd();
|
|
22
22
|
i0.ɵɵelementStart(3, "input", 38);
|
|
23
23
|
i0.ɵɵlistener("input", function EventDialogComponent_ng_container_4_div_12_div_5_Template_input_input_3_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onRecInterval($event)); });
|
|
@@ -25,59 +25,77 @@ function EventDialogComponent_ng_container_4_div_12_div_5_Template(rf, ctx) { if
|
|
|
25
25
|
i0.ɵɵelementStart(4, "select", 21);
|
|
26
26
|
i0.ɵɵlistener("change", function EventDialogComponent_ng_container_4_div_12_div_5_Template_select_change_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onRecFreq($event)); });
|
|
27
27
|
i0.ɵɵelementStart(5, "option", 39);
|
|
28
|
-
i0.ɵɵtext(6
|
|
28
|
+
i0.ɵɵtext(6);
|
|
29
29
|
i0.ɵɵelementEnd();
|
|
30
30
|
i0.ɵɵelementStart(7, "option", 40);
|
|
31
|
-
i0.ɵɵtext(8
|
|
31
|
+
i0.ɵɵtext(8);
|
|
32
32
|
i0.ɵɵelementEnd();
|
|
33
33
|
i0.ɵɵelementStart(9, "option", 41);
|
|
34
|
-
i0.ɵɵtext(10
|
|
34
|
+
i0.ɵɵtext(10);
|
|
35
35
|
i0.ɵɵelementEnd();
|
|
36
36
|
i0.ɵɵelementStart(11, "option", 42);
|
|
37
|
-
i0.ɵɵtext(12
|
|
37
|
+
i0.ɵɵtext(12);
|
|
38
38
|
i0.ɵɵelementEnd()();
|
|
39
39
|
i0.ɵɵelementStart(13, "label", 43)(14, "span", 37);
|
|
40
|
-
i0.ɵɵtext(15
|
|
40
|
+
i0.ɵɵtext(15);
|
|
41
41
|
i0.ɵɵelementEnd();
|
|
42
42
|
i0.ɵɵelementStart(16, "input", 17);
|
|
43
43
|
i0.ɵɵlistener("input", function EventDialogComponent_ng_container_4_div_12_div_5_Template_input_input_16_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onRecUntil($event)); });
|
|
44
44
|
i0.ɵɵelementEnd()()();
|
|
45
45
|
} if (rf & 2) {
|
|
46
46
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
47
|
-
i0.ɵɵadvance(
|
|
47
|
+
i0.ɵɵadvance(2);
|
|
48
|
+
i0.ɵɵtextInterpolate(ctx_r2.config.locale.recurEvery);
|
|
49
|
+
i0.ɵɵadvance();
|
|
48
50
|
i0.ɵɵproperty("value", ctx_r2.draft.recInterval);
|
|
49
51
|
i0.ɵɵadvance(2);
|
|
50
52
|
i0.ɵɵproperty("selected", ctx_r2.draft.recFreq === "daily");
|
|
51
|
-
i0.ɵɵadvance(
|
|
53
|
+
i0.ɵɵadvance();
|
|
54
|
+
i0.ɵɵtextInterpolate(ctx_r2.config.locale.recurUnits.daily);
|
|
55
|
+
i0.ɵɵadvance();
|
|
52
56
|
i0.ɵɵproperty("selected", ctx_r2.draft.recFreq === "weekly");
|
|
53
|
-
i0.ɵɵadvance(
|
|
57
|
+
i0.ɵɵadvance();
|
|
58
|
+
i0.ɵɵtextInterpolate(ctx_r2.config.locale.recurUnits.weekly);
|
|
59
|
+
i0.ɵɵadvance();
|
|
54
60
|
i0.ɵɵproperty("selected", ctx_r2.draft.recFreq === "monthly");
|
|
55
|
-
i0.ɵɵadvance(
|
|
61
|
+
i0.ɵɵadvance();
|
|
62
|
+
i0.ɵɵtextInterpolate(ctx_r2.config.locale.recurUnits.monthly);
|
|
63
|
+
i0.ɵɵadvance();
|
|
56
64
|
i0.ɵɵproperty("selected", ctx_r2.draft.recFreq === "yearly");
|
|
57
|
-
i0.ɵɵadvance(
|
|
65
|
+
i0.ɵɵadvance();
|
|
66
|
+
i0.ɵɵtextInterpolate(ctx_r2.config.locale.recurUnits.yearly);
|
|
67
|
+
i0.ɵɵadvance(3);
|
|
68
|
+
i0.ɵɵtextInterpolate(ctx_r2.config.locale.recurUntil);
|
|
69
|
+
i0.ɵɵadvance();
|
|
58
70
|
i0.ɵɵproperty("value", ctx_r2.draft.recUntil);
|
|
59
71
|
} }
|
|
60
72
|
function EventDialogComponent_ng_container_4_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
61
73
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
62
74
|
i0.ɵɵelementStart(0, "div", 34)(1, "label", 11)(2, "span");
|
|
63
|
-
i0.ɵɵtext(3
|
|
75
|
+
i0.ɵɵtext(3);
|
|
64
76
|
i0.ɵɵelementEnd();
|
|
65
77
|
i0.ɵɵelementStart(4, "input", 12);
|
|
66
78
|
i0.ɵɵlistener("change", function EventDialogComponent_ng_container_4_div_12_Template_input_change_4_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onRecurring($event)); });
|
|
67
79
|
i0.ɵɵelementEnd()();
|
|
68
|
-
i0.ɵɵtemplate(5, EventDialogComponent_ng_container_4_div_12_div_5_Template, 17,
|
|
80
|
+
i0.ɵɵtemplate(5, EventDialogComponent_ng_container_4_div_12_div_5_Template, 17, 12, "div", 35);
|
|
69
81
|
i0.ɵɵelementEnd();
|
|
70
82
|
} if (rf & 2) {
|
|
71
83
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
72
|
-
i0.ɵɵadvance(
|
|
84
|
+
i0.ɵɵadvance(3);
|
|
85
|
+
i0.ɵɵtextInterpolate(ctx_r2.config.locale.recurrence);
|
|
86
|
+
i0.ɵɵadvance();
|
|
73
87
|
i0.ɵɵproperty("checked", ctx_r2.draft.recurring);
|
|
74
88
|
i0.ɵɵadvance();
|
|
75
89
|
i0.ɵɵproperty("ngIf", ctx_r2.draft.recurring);
|
|
76
90
|
} }
|
|
77
91
|
function EventDialogComponent_ng_container_4_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
78
92
|
i0.ɵɵelementStart(0, "div", 44);
|
|
79
|
-
i0.ɵɵtext(1
|
|
93
|
+
i0.ɵɵtext(1);
|
|
80
94
|
i0.ɵɵelementEnd();
|
|
95
|
+
} if (rf & 2) {
|
|
96
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
97
|
+
i0.ɵɵadvance();
|
|
98
|
+
i0.ɵɵtextInterpolate1(" \u21BB ", ctx_r2.config.locale.recurringInstanceNote, " ");
|
|
81
99
|
} }
|
|
82
100
|
function EventDialogComponent_ng_container_4_input_19_Template(rf, ctx) { if (rf & 1) {
|
|
83
101
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
@@ -134,7 +152,7 @@ function EventDialogComponent_ng_container_4_label_33_Template(rf, ctx) { if (rf
|
|
|
134
152
|
} if (rf & 2) {
|
|
135
153
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
136
154
|
i0.ɵɵadvance(2);
|
|
137
|
-
i0.ɵɵtextInterpolate(ctx_r2.config.locale.resources
|
|
155
|
+
i0.ɵɵtextInterpolate(ctx_r2.config.locale.resources);
|
|
138
156
|
i0.ɵɵadvance(2);
|
|
139
157
|
i0.ɵɵproperty("selected", ctx_r2.draft.resourceId === "");
|
|
140
158
|
i0.ɵɵadvance(2);
|
|
@@ -199,7 +217,7 @@ function EventDialogComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
199
217
|
i0.ɵɵelementStart(11, "input", 12);
|
|
200
218
|
i0.ɵɵlistener("change", function EventDialogComponent_ng_container_4_Template_input_change_11_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onAllDay($event)); });
|
|
201
219
|
i0.ɵɵelementEnd()();
|
|
202
|
-
i0.ɵɵtemplate(12, EventDialogComponent_ng_container_4_div_12_Template, 6,
|
|
220
|
+
i0.ɵɵtemplate(12, EventDialogComponent_ng_container_4_div_12_Template, 6, 3, "div", 13)(13, EventDialogComponent_ng_container_4_div_13_Template, 2, 1, "div", 14);
|
|
203
221
|
i0.ɵɵelementStart(14, "div", 15)(15, "label", 16)(16, "span");
|
|
204
222
|
i0.ɵɵtext(17);
|
|
205
223
|
i0.ɵɵelementEnd();
|
|
@@ -385,7 +403,7 @@ export class EventDialogComponent {
|
|
|
385
403
|
} if (rf & 2) {
|
|
386
404
|
let _t;
|
|
387
405
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dialogEl = _t.first);
|
|
388
|
-
} }, hostAttrs: [2, "display", "contents"], inputs: { dialog: "dialog", config: "config", history: "history" }, outputs: { setDraft: "setDraft", save: "save", deleteEvent: "deleteEvent", close: "close" }, decls: 5, vars: 4, consts: [["dialogEl", ""], [1, "
|
|
406
|
+
} }, hostAttrs: [2, "display", "contents"], inputs: { dialog: "dialog", config: "config", history: "history" }, outputs: { setDraft: "setDraft", save: "save", deleteEvent: "deleteEvent", close: "close" }, decls: 5, vars: 4, consts: [["dialogEl", ""], [1, "bm-cal__dialog-backdrop", 3, "click"], ["role", "dialog", "aria-modal", "true", "bmFocusTrap", "", 1, "bm-cal__dialog", 3, "keydown", "bmFocusTrapOnEscape"], [3, "eventId", "history", "locale", "back", 4, "ngIf"], [4, "ngIf"], [3, "back", "eventId", "history", "locale"], [1, "bm-cal__dialog-header"], [1, "bm-cal__dialog-title"], [1, "bm-cal__dialog-close", 3, "click"], [1, "bm-cal__dialog-body"], ["type", "text", 1, "bm-cal__dialog-input", "bm-cal__dialog-input--title", 3, "input", "placeholder", "value"], [1, "bm-cal__dialog-toggle"], ["type", "checkbox", 3, "change", "checked"], ["class", "bm-cal__dialog-recurrence", 4, "ngIf"], ["style", "font-size: 12px; color: var(--cal-color-text-muted); padding: 4px 0;", 4, "ngIf"], [1, "bm-cal__dialog-row"], [1, "bm-cal__dialog-label"], ["type", "date", 1, "bm-cal__dialog-input", 3, "input", "value"], ["class", "bm-cal__dialog-input bm-cal__dialog-input--time", "type", "time", 3, "value", "input", 4, "ngIf"], ["type", "date", 1, "bm-cal__dialog-input", 3, "input", "value", "min"], [1, "bm-cal__dialog-category-row"], [1, "bm-cal__dialog-input", 3, "change"], [3, "value", "selected", 4, "ngFor", "ngForOf"], [1, "bm-cal__category-dot"], ["class", "bm-cal__dialog-label", 4, "ngIf"], ["type", "text", 1, "bm-cal__dialog-input", 3, "input", "value"], [1, "bm-cal__dialog-input", "bm-cal__dialog-input--description", 3, "input", "value"], ["class", "bm-cal__dialog-errors", 4, "ngIf"], [1, "bm-cal__dialog-footer"], ["class", "bm-cal__dialog-btn bm-cal__dialog-btn--delete", 3, "click", 4, "ngIf"], ["class", "bm-cal__dialog-btn bm-cal__dialog-btn--history", 3, "click", 4, "ngIf"], [1, "bm-cal__dialog-footer-right"], [1, "bm-cal__dialog-btn", "bm-cal__dialog-btn--cancel", 3, "click"], [1, "bm-cal__dialog-btn", "bm-cal__dialog-btn--save", 3, "click", "disabled"], [1, "bm-cal__dialog-recurrence"], ["class", "bm-cal__dialog-row", "style", "gap: 8px; align-items: center;", 4, "ngIf"], [1, "bm-cal__dialog-row", 2, "gap", "8px", "align-items", "center"], [2, "font-size", "13px"], ["type", "number", "min", "1", "max", "99", 1, "bm-cal__dialog-input", 2, "width", "50px", 3, "input", "value"], ["value", "daily", 3, "selected"], ["value", "weekly", 3, "selected"], ["value", "monthly", 3, "selected"], ["value", "yearly", 3, "selected"], [1, "bm-cal__dialog-label", 2, "flex-direction", "row", "align-items", "center", "gap", "6px"], [2, "font-size", "12px", "color", "var(--cal-color-text-muted)", "padding", "4px 0"], ["type", "time", 1, "bm-cal__dialog-input", "bm-cal__dialog-input--time", 3, "input", "value"], [3, "value", "selected"], ["value", "", 3, "selected"], [3, "value", "selected", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "bm-cal__dialog-errors"], ["class", "bm-cal__dialog-error", 4, "ngFor", "ngForOf"], [1, "bm-cal__dialog-error"], [1, "bm-cal__dialog-btn", "bm-cal__dialog-btn--delete", 3, "click"], [1, "bm-cal__dialog-btn", "bm-cal__dialog-btn--history", 3, "click"]], template: function EventDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
389
407
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
390
408
|
i0.ɵɵelementStart(0, "div", 1);
|
|
391
409
|
i0.ɵɵlistener("click", function EventDialogComponent_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.close.emit()); });
|
|
@@ -412,8 +430,8 @@ export class EventDialogComponent {
|
|
|
412
430
|
host: { style: 'display: contents' },
|
|
413
431
|
imports: [CommonModule, EventHistoryComponent, FocusTrapDirective],
|
|
414
432
|
template: `
|
|
415
|
-
<div class="
|
|
416
|
-
<div #dialogEl class="
|
|
433
|
+
<div class="bm-cal__dialog-backdrop" (click)="close.emit()"></div>
|
|
434
|
+
<div #dialogEl class="bm-cal__dialog" role="dialog" aria-modal="true"
|
|
417
435
|
[attr.aria-label]="isNew ? config.locale.newEvent : config.locale.editEvent"
|
|
418
436
|
(keydown)="handleKeyDown($event)"
|
|
419
437
|
bmFocusTrap [bmFocusTrapOnEscape]="onEscape">
|
|
@@ -425,108 +443,108 @@ export class EventDialogComponent {
|
|
|
425
443
|
</cal-event-history>
|
|
426
444
|
|
|
427
445
|
<ng-container *ngIf="!showHistory || !event">
|
|
428
|
-
<div class="
|
|
429
|
-
<span class="
|
|
430
|
-
<button class="
|
|
446
|
+
<div class="bm-cal__dialog-header">
|
|
447
|
+
<span class="bm-cal__dialog-title">{{ isNew ? config.locale.newEvent : config.locale.editEvent }}</span>
|
|
448
|
+
<button class="bm-cal__dialog-close" [attr.aria-label]="config.locale.close" (click)="close.emit()">×</button>
|
|
431
449
|
</div>
|
|
432
450
|
|
|
433
|
-
<div class="
|
|
434
|
-
<input class="
|
|
451
|
+
<div class="bm-cal__dialog-body">
|
|
452
|
+
<input class="bm-cal__dialog-input bm-cal__dialog-input--title" type="text"
|
|
435
453
|
[placeholder]="config.locale.titlePlaceholder"
|
|
436
454
|
[value]="draft.title" (input)="onTitle($event)" />
|
|
437
455
|
|
|
438
|
-
<label class="
|
|
456
|
+
<label class="bm-cal__dialog-toggle">
|
|
439
457
|
<span>{{ config.locale.allDay }}</span>
|
|
440
458
|
<input type="checkbox" [checked]="draft.allDay" (change)="onAllDay($event)" />
|
|
441
459
|
</label>
|
|
442
460
|
|
|
443
|
-
<div class="
|
|
444
|
-
<label class="
|
|
445
|
-
<span>
|
|
461
|
+
<div class="bm-cal__dialog-recurrence" *ngIf="!isInstance">
|
|
462
|
+
<label class="bm-cal__dialog-toggle">
|
|
463
|
+
<span>{{ config.locale.recurrence }}</span>
|
|
446
464
|
<input type="checkbox" [checked]="draft.recurring" (change)="onRecurring($event)" />
|
|
447
465
|
</label>
|
|
448
|
-
<div *ngIf="draft.recurring" class="
|
|
449
|
-
<span style="font-size: 13px;">
|
|
450
|
-
<input class="
|
|
466
|
+
<div *ngIf="draft.recurring" class="bm-cal__dialog-row" style="gap: 8px; align-items: center;">
|
|
467
|
+
<span style="font-size: 13px;">{{ config.locale.recurEvery }}</span>
|
|
468
|
+
<input class="bm-cal__dialog-input" type="number" min="1" max="99" style="width: 50px;"
|
|
451
469
|
[value]="draft.recInterval" (input)="onRecInterval($event)" />
|
|
452
|
-
<select class="
|
|
453
|
-
<option value="daily" [selected]="draft.recFreq === 'daily'">
|
|
454
|
-
<option value="weekly" [selected]="draft.recFreq === 'weekly'">
|
|
455
|
-
<option value="monthly" [selected]="draft.recFreq === 'monthly'">
|
|
456
|
-
<option value="yearly" [selected]="draft.recFreq === 'yearly'">
|
|
470
|
+
<select class="bm-cal__dialog-input" (change)="onRecFreq($event)">
|
|
471
|
+
<option value="daily" [selected]="draft.recFreq === 'daily'">{{ config.locale.recurUnits.daily }}</option>
|
|
472
|
+
<option value="weekly" [selected]="draft.recFreq === 'weekly'">{{ config.locale.recurUnits.weekly }}</option>
|
|
473
|
+
<option value="monthly" [selected]="draft.recFreq === 'monthly'">{{ config.locale.recurUnits.monthly }}</option>
|
|
474
|
+
<option value="yearly" [selected]="draft.recFreq === 'yearly'">{{ config.locale.recurUnits.yearly }}</option>
|
|
457
475
|
</select>
|
|
458
|
-
<label class="
|
|
459
|
-
<span style="font-size: 13px;">
|
|
460
|
-
<input class="
|
|
476
|
+
<label class="bm-cal__dialog-label" style="flex-direction: row; align-items: center; gap: 6px;">
|
|
477
|
+
<span style="font-size: 13px;">{{ config.locale.recurUntil }}</span>
|
|
478
|
+
<input class="bm-cal__dialog-input" type="date" [value]="draft.recUntil" (input)="onRecUntil($event)" />
|
|
461
479
|
</label>
|
|
462
480
|
</div>
|
|
463
481
|
</div>
|
|
464
482
|
|
|
465
483
|
<div *ngIf="isInstance" style="font-size: 12px; color: var(--cal-color-text-muted); padding: 4px 0;">
|
|
466
|
-
↻
|
|
484
|
+
↻ {{ config.locale.recurringInstanceNote }}
|
|
467
485
|
</div>
|
|
468
486
|
|
|
469
|
-
<div class="
|
|
470
|
-
<label class="
|
|
487
|
+
<div class="bm-cal__dialog-row">
|
|
488
|
+
<label class="bm-cal__dialog-label">
|
|
471
489
|
<span>{{ config.locale.from }}</span>
|
|
472
|
-
<input class="
|
|
490
|
+
<input class="bm-cal__dialog-input" type="date" [value]="draft.startDate" (input)="onStartDate($event)" />
|
|
473
491
|
</label>
|
|
474
|
-
<input *ngIf="!draft.allDay" class="
|
|
492
|
+
<input *ngIf="!draft.allDay" class="bm-cal__dialog-input bm-cal__dialog-input--time" type="time"
|
|
475
493
|
[value]="draft.startTime" (input)="onStartTime($event)" />
|
|
476
494
|
</div>
|
|
477
495
|
|
|
478
|
-
<div class="
|
|
479
|
-
<label class="
|
|
496
|
+
<div class="bm-cal__dialog-row">
|
|
497
|
+
<label class="bm-cal__dialog-label">
|
|
480
498
|
<span>{{ config.locale.to }}</span>
|
|
481
|
-
<input class="
|
|
499
|
+
<input class="bm-cal__dialog-input" type="date" [value]="draft.endDate" [min]="draft.startDate" (input)="onEndDate($event)" />
|
|
482
500
|
</label>
|
|
483
|
-
<input *ngIf="!draft.allDay" class="
|
|
501
|
+
<input *ngIf="!draft.allDay" class="bm-cal__dialog-input bm-cal__dialog-input--time" type="time"
|
|
484
502
|
[value]="draft.endTime" (input)="onEndTime($event)" />
|
|
485
503
|
</div>
|
|
486
504
|
|
|
487
|
-
<label class="
|
|
505
|
+
<label class="bm-cal__dialog-label">
|
|
488
506
|
<span>{{ config.locale.category }}</span>
|
|
489
|
-
<div class="
|
|
490
|
-
<select class="
|
|
507
|
+
<div class="bm-cal__dialog-category-row">
|
|
508
|
+
<select class="bm-cal__dialog-input" (change)="onCategory($event)">
|
|
491
509
|
<option *ngFor="let cat of config.categories" [value]="cat.name" [selected]="cat.name === draft.category">{{ cat.name }}</option>
|
|
492
510
|
</select>
|
|
493
|
-
<span class="
|
|
511
|
+
<span class="bm-cal__category-dot" [style.background-color]="draft.color"></span>
|
|
494
512
|
</div>
|
|
495
513
|
</label>
|
|
496
514
|
|
|
497
|
-
<label class="
|
|
498
|
-
<span>{{ config.locale.resources
|
|
499
|
-
<select class="
|
|
515
|
+
<label class="bm-cal__dialog-label" *ngIf="config.resources.length > 0">
|
|
516
|
+
<span>{{ config.locale.resources }}</span>
|
|
517
|
+
<select class="bm-cal__dialog-input" (change)="onResourceId($event)">
|
|
500
518
|
<option value="" [selected]="draft.resourceId === ''">—</option>
|
|
501
519
|
<option *ngFor="let r of config.resources; trackBy: trackResource" [value]="r.id" [selected]="r.id === draft.resourceId">{{ r.name }}</option>
|
|
502
520
|
</select>
|
|
503
521
|
</label>
|
|
504
522
|
|
|
505
|
-
<label class="
|
|
523
|
+
<label class="bm-cal__dialog-label">
|
|
506
524
|
<span>{{ config.locale.location }}</span>
|
|
507
|
-
<input class="
|
|
525
|
+
<input class="bm-cal__dialog-input" type="text" [value]="draft.location" (input)="onLocation($event)" />
|
|
508
526
|
</label>
|
|
509
527
|
|
|
510
|
-
<label class="
|
|
528
|
+
<label class="bm-cal__dialog-label">
|
|
511
529
|
<span>{{ config.locale.description }}</span>
|
|
512
|
-
<textarea class="
|
|
530
|
+
<textarea class="bm-cal__dialog-input bm-cal__dialog-input--description" [value]="draft.description" (input)="onDescription($event)"></textarea>
|
|
513
531
|
</label>
|
|
514
532
|
</div>
|
|
515
533
|
|
|
516
|
-
<div class="
|
|
517
|
-
<div *ngFor="let err of validationErrors" class="
|
|
534
|
+
<div class="bm-cal__dialog-errors" *ngIf="validationErrors.length > 0">
|
|
535
|
+
<div *ngFor="let err of validationErrors" class="bm-cal__dialog-error">{{ err }}</div>
|
|
518
536
|
</div>
|
|
519
537
|
|
|
520
|
-
<div class="
|
|
521
|
-
<button *ngIf="!isNew && config.locale.delete !== false" class="
|
|
538
|
+
<div class="bm-cal__dialog-footer">
|
|
539
|
+
<button *ngIf="!isNew && config.locale.delete !== false" class="bm-cal__dialog-btn bm-cal__dialog-btn--delete" (click)="deleteEvent.emit(event!.id)">
|
|
522
540
|
{{ config.locale.delete }}
|
|
523
541
|
</button>
|
|
524
|
-
<button *ngIf="!isNew && history.length > 0" class="
|
|
542
|
+
<button *ngIf="!isNew && history.length > 0" class="bm-cal__dialog-btn bm-cal__dialog-btn--history" (click)="openHistory()">
|
|
525
543
|
{{ config.locale.history }}
|
|
526
544
|
</button>
|
|
527
|
-
<div class="
|
|
528
|
-
<button class="
|
|
529
|
-
<button class="
|
|
545
|
+
<div class="bm-cal__dialog-footer-right">
|
|
546
|
+
<button class="bm-cal__dialog-btn bm-cal__dialog-btn--cancel" (click)="close.emit()">{{ config.locale.cancel }}</button>
|
|
547
|
+
<button class="bm-cal__dialog-btn bm-cal__dialog-btn--save" (click)="handleSave()" [disabled]="!draft.title.trim()">
|
|
530
548
|
{{ isNew ? config.locale.create : config.locale.save }}
|
|
531
549
|
</button>
|
|
532
550
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventDialog.js","sourceRoot":"","sources":["../../src/components/EventDialog.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;AAG/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD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AAoB;;;;;;;YA3H7B,8BAA4D;YAAvB,oIAAS,gBAAY,KAAC;YAAC,iBAAM;YAClE,iCAG+C;YAD7C,8IAAW,yBAAqB,KAAC;YASjC,AAPA,iGAIyB,4EAGoB;YA4G/C,iBAAM;;YApHQ,cAAgC;YAAhC,kDAAgC;;YACxB,eAA0B;YAA1B,mDAA0B;YAO/B,cAA4B;YAA5B,qDAA4B;4BAdrC,YAAY,uBAAE,qBAAqB,EAAE,kBAAkB;;iFA6HtD,oBAAoB;cAjIhC,SAAS;eAAC;gBACT,QAAQ,EAAE,kBAAkB;gBAC5B,UAAU,EAAE,IAAI;gBAChB,IAAI,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE;gBACpC,OAAO,EAAE,CAAC,YAAY,EAAE,qBAAqB,EAAE,kBAAkB,CAAC;gBAClE,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0HT;aACF;gBAGU,MAAM;kBAAd,KAAK;YACG,MAAM;kBAAd,KAAK;YACG,OAAO;kBAAf,KAAK;YAEI,QAAQ;kBAAjB,MAAM;YAEG,IAAI;kBAAb,MAAM;YACG,WAAW;kBAApB,MAAM;YACG,KAAK;kBAAd,MAAM;YAEgB,QAAQ;kBAA9B,SAAS;mBAAC,UAAU;;kFAZV,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventHistory.d.ts","sourceRoot":"","sources":["../../src/components/EventHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"EventHistory.d.ts","sourceRoot":"","sources":["../../src/components/EventHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;;AAS1D,qBAoCa,qBAAqB;IACvB,OAAO,SAAM;IACb,OAAO,EAAE,WAAW,EAAE,CAAM;IAC5B,MAAM,EAAG,cAAc,CAAC;IACvB,IAAI,qBAA4B;IAE1C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI9B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI9B,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAIrC,UAAU,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM;yCAlB3B,qBAAqB;2CAArB,qBAAqB;CAkCjC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { formatHistoryTimestamp } from '@bimetal/calendar-core';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
import * as i1 from "@angular/common";
|
|
5
6
|
function EventHistoryComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -71,10 +72,7 @@ export class EventHistoryComponent {
|
|
|
71
72
|
return this.locale.historyEventTypes[type] ?? type;
|
|
72
73
|
}
|
|
73
74
|
formatTime(timestamp) {
|
|
74
|
-
return
|
|
75
|
-
day: '2-digit', month: '2-digit', year: 'numeric',
|
|
76
|
-
hour: '2-digit', minute: '2-digit',
|
|
77
|
-
});
|
|
75
|
+
return formatHistoryTimestamp(timestamp, this.locale.code);
|
|
78
76
|
}
|
|
79
77
|
getSummary(event) {
|
|
80
78
|
const payload = event.payload;
|
|
@@ -94,7 +92,7 @@ export class EventHistoryComponent {
|
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
94
|
static ɵfac = function EventHistoryComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EventHistoryComponent)(); };
|
|
97
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventHistoryComponent, selectors: [["cal-event-history"]], hostAttrs: [2, "display", "contents"], inputs: { eventId: "eventId", history: "history", locale: "locale" }, outputs: { back: "back" }, decls: 9, vars: 3, consts: [[1, "event-history"], [1, "event-history__header"], [1, "event-history__back", 3, "click"], [1, "event-history__title"], ["class", "event-history__loading", 4, "ngIf"], [1, "event-history__timeline"], ["class", "event-history__entry", 4, "ngFor", "ngForOf"], [1, "event-history__loading"], [1, "event-history__entry"], [1, "event-history__dot-col"], [1, "event-history__dot"], ["class", "event-history__line", 4, "ngIf"], [1, "event-history__content"], [1, "event-history__entry-header"], [1, "event-history__badge"], [1, "event-history__time"], ["class", "event-history__summary", 4, "ngIf"], [1, "event-history__line"], [1, "event-history__summary"]], template: function EventHistoryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
95
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventHistoryComponent, selectors: [["cal-event-history"]], hostAttrs: [2, "display", "contents"], inputs: { eventId: "eventId", history: "history", locale: "locale" }, outputs: { back: "back" }, decls: 9, vars: 3, consts: [[1, "bm-cal-event-history"], [1, "bm-cal-event-history__header"], [1, "bm-cal-event-history__back", 3, "click"], [1, "bm-cal-event-history__title"], ["class", "bm-cal-event-history__loading", 4, "ngIf"], [1, "bm-cal-event-history__timeline"], ["class", "bm-cal-event-history__entry", 4, "ngFor", "ngForOf"], [1, "bm-cal-event-history__loading"], [1, "bm-cal-event-history__entry"], [1, "bm-cal-event-history__dot-col"], [1, "bm-cal-event-history__dot"], ["class", "bm-cal-event-history__line", 4, "ngIf"], [1, "bm-cal-event-history__content"], [1, "bm-cal-event-history__entry-header"], [1, "bm-cal-event-history__badge"], [1, "bm-cal-event-history__time"], ["class", "bm-cal-event-history__summary", 4, "ngIf"], [1, "bm-cal-event-history__line"], [1, "bm-cal-event-history__summary"]], template: function EventHistoryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
98
96
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "button", 2);
|
|
99
97
|
i0.ɵɵlistener("click", function EventHistoryComponent_Template_button_click_2_listener() { return ctx.back.emit(); });
|
|
100
98
|
i0.ɵɵtext(3, "\u2190");
|
|
@@ -123,30 +121,30 @@ export class EventHistoryComponent {
|
|
|
123
121
|
host: { style: 'display: contents' },
|
|
124
122
|
imports: [CommonModule],
|
|
125
123
|
template: `
|
|
126
|
-
<div class="event-history">
|
|
127
|
-
<div class="event-history__header">
|
|
128
|
-
<button class="event-history__back" (click)="back.emit()">←</button>
|
|
129
|
-
<span class="event-history__title">{{ locale.historyTitle }}</span>
|
|
124
|
+
<div class="bm-cal-event-history">
|
|
125
|
+
<div class="bm-cal-event-history__header">
|
|
126
|
+
<button class="bm-cal-event-history__back" (click)="back.emit()">←</button>
|
|
127
|
+
<span class="bm-cal-event-history__title">{{ locale.historyTitle }}</span>
|
|
130
128
|
</div>
|
|
131
129
|
|
|
132
|
-
<div class="event-history__loading" *ngIf="history.length === 0">
|
|
130
|
+
<div class="bm-cal-event-history__loading" *ngIf="history.length === 0">
|
|
133
131
|
{{ locale.historyLoading }}
|
|
134
132
|
</div>
|
|
135
133
|
|
|
136
|
-
<div class="event-history__timeline">
|
|
137
|
-
<div *ngFor="let entry of history; let idx = index; let last = last" class="event-history__entry">
|
|
138
|
-
<div class="event-history__dot-col">
|
|
139
|
-
<div class="event-history__dot" [style.background-color]="getColor(entry.type)"></div>
|
|
140
|
-
<div class="event-history__line" *ngIf="!last"></div>
|
|
134
|
+
<div class="bm-cal-event-history__timeline">
|
|
135
|
+
<div *ngFor="let entry of history; let idx = index; let last = last" class="bm-cal-event-history__entry">
|
|
136
|
+
<div class="bm-cal-event-history__dot-col">
|
|
137
|
+
<div class="bm-cal-event-history__dot" [style.background-color]="getColor(entry.type)"></div>
|
|
138
|
+
<div class="bm-cal-event-history__line" *ngIf="!last"></div>
|
|
141
139
|
</div>
|
|
142
|
-
<div class="event-history__content">
|
|
143
|
-
<div class="event-history__entry-header">
|
|
144
|
-
<span class="event-history__badge" [style.background-color]="getColor(entry.type)">
|
|
140
|
+
<div class="bm-cal-event-history__content">
|
|
141
|
+
<div class="bm-cal-event-history__entry-header">
|
|
142
|
+
<span class="bm-cal-event-history__badge" [style.background-color]="getColor(entry.type)">
|
|
145
143
|
{{ getLabel(entry.type) }}
|
|
146
144
|
</span>
|
|
147
|
-
<span class="event-history__time">{{ formatTime(entry.envelope.timestamp) }}</span>
|
|
145
|
+
<span class="bm-cal-event-history__time">{{ formatTime(entry.envelope.timestamp) }}</span>
|
|
148
146
|
</div>
|
|
149
|
-
<div class="event-history__summary" *ngIf="getSummary(entry) as summary">{{ summary }}</div>
|
|
147
|
+
<div class="bm-cal-event-history__summary" *ngIf="getSummary(entry) as summary">{{ summary }}</div>
|
|
150
148
|
</div>
|
|
151
149
|
</div>
|
|
152
150
|
</div>
|
|
@@ -162,5 +160,5 @@ export class EventHistoryComponent {
|
|
|
162
160
|
}], back: [{
|
|
163
161
|
type: Output
|
|
164
162
|
}] }); })();
|
|
165
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EventHistoryComponent, { className: "EventHistoryComponent", filePath: "components/eventhistory.ts", lineNumber:
|
|
163
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EventHistoryComponent, { className: "EventHistoryComponent", filePath: "components/eventhistory.ts", lineNumber: 50 }); })();
|
|
166
164
|
//# sourceMappingURL=EventHistory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventHistory.js","sourceRoot":"","sources":["../../src/components/EventHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"EventHistory.js","sourceRoot":"","sources":["../../src/components/EventHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;;;;IAsB1D,8BAAwE;IACtE,YACF;IAAA,iBAAM;;;IADJ,cACF;IADE,6DACF;;;IAMM,0BAA4D;;;IAS5D,+BAAgF;IAAA,YAAa;IAAA,iBAAM;;;IAAnB,cAAa;IAAb,gCAAa;;;IAX/F,AADF,8BAAyG,aAC5D;IACzC,0BAA6F;IAC7F,6EAAsD;IACxD,iBAAM;IAGF,AADF,AADF,+BAA2C,cACO,eAC4C;IACxF,YACF;IAAA,iBAAO;IACP,gCAAyC;IAAA,YAA0C;IACrF,AADqF,iBAAO,EACtF;IACN,+EAAgF;IAEpF,AADE,iBAAM,EACF;;;;;IAZqC,eAA+C;IAA/C,kEAA+C;IAC7C,cAAW;IAAX,+BAAW;IAIR,eAA+C;IAA/C,kEAA+C;IACvF,cACF;IADE,+DACF;IACyC,eAA0C;IAA1C,oEAA0C;IAEzC,cAAwB;IAAxB,kDAAwB;;AApChF,MAAM,eAAe,GAA2B;IAC9C,uCAAuC,EAAE,SAAS;IAClD,uCAAuC,EAAE,SAAS;IAClD,uCAAuC,EAAE,SAAS;IAClD,wCAAwC,EAAE,SAAS;CACpD,CAAC;AAsCF,MAAM,OAAO,qBAAqB;IACvB,OAAO,GAAG,EAAE,CAAC;IACb,OAAO,GAAkB,EAAE,CAAC;IAC5B,MAAM,CAAkB;IACvB,IAAI,GAAG,IAAI,YAAY,EAAQ,CAAC;IAE1C,QAAQ,CAAC,IAAY;QACnB,OAAO,eAAe,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC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B,UAAU,EAAE,IAAI;gBAChB,IAAI,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE;gBACpC,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BT;aACF;gBAEU,OAAO;kBAAf,KAAK;YACG,OAAO;kBAAf,KAAK;YACG,MAAM;kBAAd,KAAK;YACI,IAAI;kBAAb,MAAM;;kFAJI,qBAAqB"}
|
|
@@ -11,7 +11,7 @@ function ResourceFilterComponent_div_0_button_1_Template(rf, ctx) { if (rf & 1)
|
|
|
11
11
|
} if (rf & 2) {
|
|
12
12
|
const r_r2 = ctx.$implicit;
|
|
13
13
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
14
|
-
i0.ɵɵclassMap("resource-filter__pill" + (ctx_r2.hiddenResources.has(r_r2.id) ? " resource-filter__pill--hidden" : ""));
|
|
14
|
+
i0.ɵɵclassMap("bm-cal-resource-filter__pill" + (ctx_r2.hiddenResources.has(r_r2.id) ? " bm-cal-resource-filter__pill--hidden" : ""));
|
|
15
15
|
i0.ɵɵstyleProp("border-left-color", r_r2.color || "transparent");
|
|
16
16
|
i0.ɵɵadvance();
|
|
17
17
|
i0.ɵɵtextInterpolate1(" ", r_r2.name, " ");
|
|
@@ -31,7 +31,7 @@ export class ResourceFilterComponent {
|
|
|
31
31
|
toggle = new EventEmitter();
|
|
32
32
|
trackById(_, r) { return r.id; }
|
|
33
33
|
static ɵfac = function ResourceFilterComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ResourceFilterComponent)(); };
|
|
34
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ResourceFilterComponent, selectors: [["cal-resource-filter"]], inputs: { resources: "resources", hiddenResources: "hiddenResources" }, outputs: { toggle: "toggle" }, decls: 1, vars: 1, consts: [["class", "resource-filter", 4, "ngIf"], [1, "resource-filter"], ["type", "button", 3, "class", "border-left-color", "click", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["type", "button", 3, "click"]], template: function ResourceFilterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
34
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ResourceFilterComponent, selectors: [["cal-resource-filter"]], inputs: { resources: "resources", hiddenResources: "hiddenResources" }, outputs: { toggle: "toggle" }, decls: 1, vars: 1, consts: [["class", "bm-cal-resource-filter", 4, "ngIf"], [1, "bm-cal-resource-filter"], ["type", "button", 3, "class", "border-left-color", "click", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["type", "button", 3, "click"]], template: function ResourceFilterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
35
35
|
i0.ɵɵtemplate(0, ResourceFilterComponent_div_0_Template, 2, 2, "div", 0);
|
|
36
36
|
} if (rf & 2) {
|
|
37
37
|
i0.ɵɵproperty("ngIf", ctx.resources.length > 0);
|
|
@@ -44,11 +44,11 @@ export class ResourceFilterComponent {
|
|
|
44
44
|
standalone: true,
|
|
45
45
|
imports: [CommonModule],
|
|
46
46
|
template: `
|
|
47
|
-
<div *ngIf="resources.length > 0" class="resource-filter">
|
|
47
|
+
<div *ngIf="resources.length > 0" class="bm-cal-resource-filter">
|
|
48
48
|
<button
|
|
49
49
|
*ngFor="let r of resources; trackBy: trackById"
|
|
50
50
|
type="button"
|
|
51
|
-
[class]="'resource-filter__pill' + (hiddenResources.has(r.id) ? ' resource-filter__pill--hidden' : '')"
|
|
51
|
+
[class]="'bm-cal-resource-filter__pill' + (hiddenResources.has(r.id) ? ' bm-cal-resource-filter__pill--hidden' : '')"
|
|
52
52
|
[style.border-left-color]="r.color || 'transparent'"
|
|
53
53
|
(click)="toggle.emit(r.id)">
|
|
54
54
|
{{ r.name }}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceFilter.js","sourceRoot":"","sources":["../../src/components/ResourceFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;;;;IASzC,iCAK8B;IAA5B,oNAAS,2BAAiB,KAAC;IAC3B,YACF;IAAA,iBAAS;;;;IAJP,
|
|
1
|
+
{"version":3,"file":"ResourceFilter.js","sourceRoot":"","sources":["../../src/components/ResourceFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;;;;IASzC,iCAK8B;IAA5B,oNAAS,2BAAiB,KAAC;IAC3B,YACF;IAAA,iBAAS;;;;IAJP,oIAAqH;IACrH,gEAAoD;IAEpD,cACF;IADE,0CACF;;;IARF,8BAAiE;IAC/D,oFAK8B;IAGhC,iBAAM;;;IAPY,cAAc;IAAA,AAAd,0CAAc,kCAAkB;;AAUtD,MAAM,OAAO,uBAAuB;IACzB,SAAS,GAAe,EAAE,CAAC;IAC3B,eAAe,GAAwB,IAAI,GAAG,EAAE,CAAC;IAChD,MAAM,GAAG,IAAI,YAAY,EAAU,CAAC;IAC9C,SAAS,CAAC,CAAS,EAAE,CAAW,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;iHAJvC,uBAAuB;6DAAvB,uBAAuB;YAZhC,wEAAiE;;YAA3D,+CAA0B;4BAFxB,YAAY;;iFAcX,uBAAuB;cAjBnC,SAAS;eAAC;gBACT,QAAQ,EAAE,qBAAqB;gBAC/B,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,QAAQ,EAAE;;;;;;;;;;;GAWT;aACF;gBAEU,SAAS;kBAAjB,KAAK;YACG,eAAe;kBAAvB,KAAK;YACI,MAAM;kBAAf,MAAM;;kFAHI,uBAAuB"}
|
|
@@ -17,12 +17,11 @@ function UndoToastComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
17
17
|
i0.ɵɵtext(6, "\u00D7");
|
|
18
18
|
i0.ɵɵelementEnd()();
|
|
19
19
|
} if (rf & 2) {
|
|
20
|
-
let tmp_2_0;
|
|
21
20
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
22
21
|
i0.ɵɵadvance(2);
|
|
23
22
|
i0.ɵɵtextInterpolate(ctx_r1.lastAction.description);
|
|
24
23
|
i0.ɵɵadvance(2);
|
|
25
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
24
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.locale == null ? null : ctx_r1.locale.undo, " ");
|
|
26
25
|
} }
|
|
27
26
|
export class UndoToastComponent {
|
|
28
27
|
lastAction = null;
|
|
@@ -54,7 +53,7 @@ export class UndoToastComponent {
|
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
static ɵfac = function UndoToastComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UndoToastComponent)(); };
|
|
57
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UndoToastComponent, selectors: [["cal-undo-toast"]], hostAttrs: [2, "display", "contents"], inputs: { lastAction: "lastAction", locale: "locale" }, outputs: { undoAction: "undoAction", dismiss: "dismiss" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "
|
|
56
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UndoToastComponent, selectors: [["cal-undo-toast"]], hostAttrs: [2, "display", "contents"], inputs: { lastAction: "lastAction", locale: "locale" }, outputs: { undoAction: "undoAction", dismiss: "dismiss" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "bm-cal__toast", "role", "status", 4, "ngIf"], ["role", "status", 1, "bm-cal__toast"], [1, "bm-cal__toast-text"], [1, "bm-cal__toast-btn", 3, "click"], [1, "bm-cal__toast-dismiss", 3, "click"]], template: function UndoToastComponent_Template(rf, ctx) { if (rf & 1) {
|
|
58
57
|
i0.ɵɵtemplate(0, UndoToastComponent_div_0_Template, 7, 2, "div", 0);
|
|
59
58
|
} if (rf & 2) {
|
|
60
59
|
i0.ɵɵproperty("ngIf", ctx.lastAction);
|
|
@@ -68,12 +67,12 @@ export class UndoToastComponent {
|
|
|
68
67
|
host: { style: 'display: contents' },
|
|
69
68
|
imports: [CommonModule],
|
|
70
69
|
template: `
|
|
71
|
-
<div class="
|
|
72
|
-
<span class="
|
|
73
|
-
<button class="
|
|
74
|
-
{{ locale?.undo
|
|
70
|
+
<div class="bm-cal__toast" role="status" *ngIf="lastAction">
|
|
71
|
+
<span class="bm-cal__toast-text">{{ lastAction.description }}</span>
|
|
72
|
+
<button class="bm-cal__toast-btn" (click)="handleUndo()">
|
|
73
|
+
{{ locale?.undo }}
|
|
75
74
|
</button>
|
|
76
|
-
<button class="
|
|
75
|
+
<button class="bm-cal__toast-dismiss" (click)="dismiss.emit()">×</button>
|
|
77
76
|
</div>
|
|
78
77
|
`,
|
|
79
78
|
}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UndoToast.js","sourceRoot":"","sources":["../../src/components/UndoToast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAuC,MAAM,eAAe,CAAC;AAC5G,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;;;;;IAS/D,AADF,
|
|
1
|
+
{"version":3,"file":"UndoToast.js","sourceRoot":"","sources":["../../src/components/UndoToast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAuC,MAAM,eAAe,CAAC;AAC5G,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC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