mn-angular-lib 2.0.34 → 2.0.36

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.
Files changed (52) hide show
  1. package/fesm2022/mn-angular-lib-alert.mjs +515 -527
  2. package/fesm2022/mn-angular-lib-alert.mjs.map +1 -1
  3. package/fesm2022/mn-angular-lib-bottom-sheet.mjs +264 -357
  4. package/fesm2022/mn-angular-lib-bottom-sheet.mjs.map +1 -1
  5. package/fesm2022/mn-angular-lib-button.mjs +819 -382
  6. package/fesm2022/mn-angular-lib-button.mjs.map +1 -1
  7. package/fesm2022/mn-angular-lib-calendar-core.mjs +240 -365
  8. package/fesm2022/mn-angular-lib-calendar-core.mjs.map +1 -1
  9. package/fesm2022/mn-angular-lib-calendar.mjs +1691 -1545
  10. package/fesm2022/mn-angular-lib-calendar.mjs.map +1 -1
  11. package/fesm2022/mn-angular-lib-collection.mjs +2367 -2796
  12. package/fesm2022/mn-angular-lib-collection.mjs.map +1 -1
  13. package/fesm2022/mn-angular-lib-core.mjs +693 -1241
  14. package/fesm2022/mn-angular-lib-core.mjs.map +1 -1
  15. package/fesm2022/mn-angular-lib-display.mjs +679 -712
  16. package/fesm2022/mn-angular-lib-display.mjs.map +1 -1
  17. package/fesm2022/mn-angular-lib-forms.mjs +3671 -4647
  18. package/fesm2022/mn-angular-lib-forms.mjs.map +1 -1
  19. package/fesm2022/mn-angular-lib-keyboard.mjs +221 -190
  20. package/fesm2022/mn-angular-lib-keyboard.mjs.map +1 -1
  21. package/fesm2022/mn-angular-lib-modal-core.mjs +711 -896
  22. package/fesm2022/mn-angular-lib-modal-core.mjs.map +1 -1
  23. package/fesm2022/mn-angular-lib-modal-ui.mjs +2089 -2035
  24. package/fesm2022/mn-angular-lib-modal-ui.mjs.map +1 -1
  25. package/fesm2022/mn-angular-lib-modal.mjs +76 -121
  26. package/fesm2022/mn-angular-lib-modal.mjs.map +1 -1
  27. package/fesm2022/mn-angular-lib-rich-text-editor.mjs +289 -277
  28. package/fesm2022/mn-angular-lib-rich-text-editor.mjs.map +1 -1
  29. package/fesm2022/mn-angular-lib-segmented.mjs +189 -241
  30. package/fesm2022/mn-angular-lib-segmented.mjs.map +1 -1
  31. package/fesm2022/mn-angular-lib-tab.mjs +409 -642
  32. package/fesm2022/mn-angular-lib-tab.mjs.map +1 -1
  33. package/fesm2022/mn-angular-lib.mjs +16 -29
  34. package/package.json +1 -1
  35. package/types/mn-angular-lib-alert.d.ts +239 -241
  36. package/types/mn-angular-lib-bottom-sheet.d.ts +190 -150
  37. package/types/mn-angular-lib-button.d.ts +319 -317
  38. package/types/mn-angular-lib-calendar-core.d.ts +199 -209
  39. package/types/mn-angular-lib-calendar.d.ts +656 -511
  40. package/types/mn-angular-lib-collection.d.ts +1649 -1585
  41. package/types/mn-angular-lib-core.d.ts +524 -535
  42. package/types/mn-angular-lib-display.d.ts +946 -886
  43. package/types/mn-angular-lib-forms.d.ts +3012 -3013
  44. package/types/mn-angular-lib-keyboard.d.ts +125 -85
  45. package/types/mn-angular-lib-modal-core.d.ts +978 -994
  46. package/types/mn-angular-lib-modal-ui.d.ts +541 -493
  47. package/types/mn-angular-lib-modal.d.ts +24 -27
  48. package/types/mn-angular-lib-rich-text-editor.d.ts +131 -98
  49. package/types/mn-angular-lib-segmented.d.ts +354 -341
  50. package/types/mn-angular-lib-tab.d.ts +345 -336
  51. package/types/mn-angular-lib.d.ts +16 -16
  52. package/fesm2022/mn-angular-lib.mjs.map +0 -1
@@ -1,9 +1,7 @@
1
- import * as _lucide_angular from '@lucide/angular';
2
- import * as i0 from '@angular/core';
3
- import { OnInit, OnDestroy, Type, EventEmitter, AfterViewInit, OnChanges, ViewContainerRef, SimpleChanges } from '@angular/core';
4
- import { BehaviorSubject, Subject, Observable } from 'rxjs';
5
- import { CalendarButton, CalendarEventData, CalendarEvent, CalendarView, CalendarConfig, ColumnDay, HourRow, MonthItem } from 'mn-angular-lib/calendar-core';
6
-
1
+ import * as i0 from "@angular/core";
2
+ import { AfterViewInit, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, Type, ViewContainerRef } from "@angular/core";
3
+ import { BehaviorSubject, Observable, Subject } from "rxjs";
4
+ import { CalendarButton, CalendarConfig, CalendarEvent, CalendarEventData, CalendarView, ColumnDay, HourRow, MonthItem } from "mn-angular-lib/calendar-core";
7
5
  /**
8
6
  * Main calendar orchestrator component.
9
7
  *
@@ -28,105 +26,129 @@ import { CalendarButton, CalendarEventData, CalendarEvent, CalendarView, Calenda
28
26
  * </mn-calendar-view>
29
27
  * ```
30
28
  */
31
- declare class CalendarViewComponent implements OnInit, OnDestroy {
32
- /** Lucide icons the template renders. */
33
- protected readonly icons: Record<"ChevronLeft" | "ChevronRight", _lucide_angular.LucideIconData>;
34
- /**
35
- * Accessible name for this control. Resolved through the conventional
36
- * `mnCalendar.calendarView` key so an app can translate it, falling back to English when the
37
- * key is not defined rather than leaking the raw key into the UI.
38
- */
39
- get calendarViewLabel(): string;
40
- /** Whether to show the action button in the toolbar. */
41
- showButton: boolean;
42
- /** Label text for the action button. */
43
- buttonTitle: string;
44
- /** Array of buttons to display in the toolbar's top-right area. */
45
- buttons: CalendarButton[];
46
- /** Custom event renderer component type. */
47
- CalendarEventComponent?: Type<CalendarEventData>;
48
- /** Observable or EventEmitter that pushes new event arrays into the calendar. */
49
- NewCalendarItemsEvent?: EventEmitter<CalendarEvent[]>;
50
- /** Emits when the calendar needs fresh event data (e.g. after navigation). */
51
- RequestNewCalendarItemsEvent: EventEmitter<Date>;
52
- /** Emits when a calendar event is clicked. */
53
- CalendarItemClickedEvent: EventEmitter<CalendarEvent>;
54
- /** Emits when the action button is clicked. */
55
- ButtonClickedEvent: EventEmitter<void>;
56
- readonly CalendarView: typeof CalendarView;
57
- /** Ties the view tabs to the panel they control, uniquely per calendar. */
58
- readonly panelId: string;
59
- currentView: CalendarView;
60
- focusDay: Date;
61
- viewOptions: {
62
- value: CalendarView;
63
- label: string;
64
- }[];
65
- isMobileView: boolean;
66
- /** BehaviorSubject so late-subscribing child views receive the last emitted events. */
67
- internalEventsChanged: BehaviorSubject<CalendarEvent[]>;
68
- /** Subject for broadcasting focus-day changes to child views. */
69
- internalFocusDayChanged: Subject<Date>;
70
- private destroy$;
71
- protected config: CalendarConfig;
72
- /** Reference to the injected mn-config object (mutated in-place on locale change). */
73
- private readonly mnConfigRef;
74
- private readonly destroyRef;
75
- private readonly lang;
76
- private readonly cdr;
77
- constructor();
78
- onResize(): void;
79
- ngOnInit(): void;
80
- ngOnDestroy(): void;
81
- /** Switches the active view. On mobile, forces day view. */
82
- switchView(view: CalendarView): void;
83
- /**
84
- * Names the stretch of time on screen — the day, the week, or the month. It is
85
- * the toolbar's orientation: without it, navigating leaves you somewhere with
86
- * no label. Announced politely, so stepping through says where you landed.
87
- */
88
- get periodLabel(): string;
89
- /** The focus day as YYYY-MM-DD, for the toolbar's date picker. */
90
- get focusDayString(): string;
91
- /**
92
- * Steps the calendar by one unit of whatever is on screen: a day in day view,
93
- * a week in week view, a month in month view. Navigating by the visible unit is
94
- * what makes one pair of arrows serve all three.
95
- */
96
- navigate(step: number): void;
97
- /** Returns the calendar to today. */
98
- goToToday(): void;
99
- /**
100
- * Handles the toolbar date picker.
101
- * @param value The date string in YYYY-MM-DD format.
102
- */
103
- onPickDate(value: string): void;
104
- /** Handles a day click from the month view — switches to day view. */
105
- onMonthDayClick(date: Date): void;
106
- /** Forwards a child event click to the parent output. */
107
- onEventClick(event: CalendarEvent): void;
108
- /** trackBy for view option buttons. */
109
- trackByView(_index: number, item: {
110
- value: CalendarView;
111
- }): string;
112
- /** Rebuilds view options and labels from the current config. */
113
- private rebuildFromConfig;
114
- private checkMobileView;
115
- /**
116
- * Adds months without the end-of-month overflow `setMonth` alone produces —
117
- * 31 January plus one month is 28 February, not 3 March.
118
- */
119
- private addMonths;
120
- /** Monday of the week containing `date`, matching the grid the views draw. */
121
- private startOfWeek;
122
- private setFocusDay;
123
- static ɵfac: i0.ɵɵFactoryDeclaration<CalendarViewComponent, never>;
124
- static ɵcmp: i0.ɵɵComponentDeclaration<CalendarViewComponent, "mn-calendar-view", never, { "showButton": { "alias": "showButton"; "required": false; }; "buttonTitle": { "alias": "buttonTitle"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "CalendarEventComponent": { "alias": "CalendarEventComponent"; "required": false; }; "NewCalendarItemsEvent": { "alias": "NewCalendarItemsEvent"; "required": false; }; }, { "RequestNewCalendarItemsEvent": "RequestNewCalendarItemsEvent"; "CalendarItemClickedEvent": "CalendarItemClickedEvent"; "ButtonClickedEvent": "ButtonClickedEvent"; }, never, never, true, never>;
29
+ export declare class CalendarViewComponent implements OnInit, OnDestroy {
30
+ /** Lucide icons the template renders. */
31
+ protected readonly icons: Record<"ChevronLeft" | "ChevronRight", import("@lucide/angular").LucideIconData>;
32
+ /**
33
+ * Accessible name for this control. Resolved through the conventional
34
+ * `mnCalendar.calendarView` key so an app can translate it, falling back to English when the
35
+ * key is not defined rather than leaking the raw key into the UI.
36
+ */
37
+ get calendarViewLabel(): string;
38
+ /** Whether to show the action button in the toolbar. */
39
+ showButton: boolean;
40
+ /** Label text for the action button. */
41
+ buttonTitle: string;
42
+ /** Array of buttons to display in the toolbar's top-right area. */
43
+ buttons: CalendarButton[];
44
+ /** Custom event renderer component type. */
45
+ CalendarEventComponent?: Type<CalendarEventData>;
46
+ /** Observable or EventEmitter that pushes new event arrays into the calendar. */
47
+ NewCalendarItemsEvent?: EventEmitter<CalendarEvent[]>;
48
+ /** Emits when the calendar needs fresh event data (e.g. after navigation). */
49
+ RequestNewCalendarItemsEvent: EventEmitter<Date>;
50
+ /** Emits when a calendar event is clicked. */
51
+ CalendarItemClickedEvent: EventEmitter<CalendarEvent>;
52
+ /** Emits when the action button is clicked. */
53
+ ButtonClickedEvent: EventEmitter<void>;
54
+ readonly CalendarView: typeof CalendarView;
55
+ /** Ties the view tabs to the panel they control, uniquely per calendar. */
56
+ readonly panelId: string;
57
+ currentView: CalendarView;
58
+ focusDay: Date;
59
+ viewOptions: {
60
+ value: CalendarView;
61
+ label: string;
62
+ }[];
63
+ isMobileView: boolean;
64
+ /** BehaviorSubject so late-subscribing child views receive the last emitted events. */
65
+ internalEventsChanged: BehaviorSubject<CalendarEvent[]>;
66
+ /** Subject for broadcasting focus-day changes to child views. */
67
+ internalFocusDayChanged: Subject<Date>;
68
+ private destroy$;
69
+ protected config: CalendarConfig;
70
+ /** Reference to the injected mn-config object (mutated in-place on locale change). */
71
+ private readonly mnConfigRef;
72
+ private readonly destroyRef;
73
+ private readonly lang;
74
+ private readonly cdr;
75
+ constructor();
76
+ onResize(): void;
77
+ ngOnInit(): void;
78
+ ngOnDestroy(): void;
79
+ /** Switches the active view. On mobile, forces day view. */
80
+ switchView(view: CalendarView): void;
81
+ /**
82
+ * Names the stretch of time on screen — the day, the week, or the month. It is
83
+ * the toolbar's orientation: without it, navigating leaves you somewhere with
84
+ * no label. Announced politely, so stepping through says where you landed.
85
+ */
86
+ get periodLabel(): string;
87
+ /** The focus day as YYYY-MM-DD, for the toolbar's date picker. */
88
+ get focusDayString(): string;
89
+ /**
90
+ * Steps the calendar by one unit of whatever is on screen: a day in day view,
91
+ * a week in week view, a month in month view. Navigating by the visible unit is
92
+ * what makes one pair of arrows serve all three.
93
+ */
94
+ navigate(step: number): void;
95
+ /** Returns the calendar to today. */
96
+ goToToday(): void;
97
+ /**
98
+ * Handles the toolbar date picker.
99
+ * @param value The date string in YYYY-MM-DD format.
100
+ */
101
+ onPickDate(value: string): void;
102
+ /** Handles a day click from the month view — switches to day view. */
103
+ onMonthDayClick(date: Date): void;
104
+ /** Forwards a child event click to the parent output. */
105
+ onEventClick(event: CalendarEvent): void;
106
+ /** trackBy for view option buttons. */
107
+ trackByView(_index: number, item: {
108
+ value: CalendarView;
109
+ }): string;
110
+ /** Rebuilds view options and labels from the current config. */
111
+ private rebuildFromConfig;
112
+ private checkMobileView;
113
+ /**
114
+ * Adds months without the end-of-month overflow `setMonth` alone produces —
115
+ * 31 January plus one month is 28 February, not 3 March.
116
+ */
117
+ private addMonths;
118
+ /** Monday of the week containing `date`, matching the grid the views draw. */
119
+ private startOfWeek;
120
+ private setFocusDay;
121
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalendarViewComponent, never>;
122
+ static ɵcmp: i0.ɵɵComponentDeclaration<CalendarViewComponent, "mn-calendar-view", never, {
123
+ "showButton": {
124
+ "alias": "showButton";
125
+ "required": false;
126
+ };
127
+ "buttonTitle": {
128
+ "alias": "buttonTitle";
129
+ "required": false;
130
+ };
131
+ "buttons": {
132
+ "alias": "buttons";
133
+ "required": false;
134
+ };
135
+ "CalendarEventComponent": {
136
+ "alias": "CalendarEventComponent";
137
+ "required": false;
138
+ };
139
+ "NewCalendarItemsEvent": {
140
+ "alias": "NewCalendarItemsEvent";
141
+ "required": false;
142
+ };
143
+ }, {
144
+ "RequestNewCalendarItemsEvent": "RequestNewCalendarItemsEvent";
145
+ "CalendarItemClickedEvent": "CalendarItemClickedEvent";
146
+ "ButtonClickedEvent": "ButtonClickedEvent";
147
+ }, never, never, true, never>;
125
148
  }
126
-
127
149
  /** Extended hour row with a pre-resolved display label. */
128
150
  type DisplayHourRow$1 = {
129
- hourLabel: string;
151
+ hourLabel: string;
130
152
  } & HourRow;
131
153
  /**
132
154
  * Week grid view showing 7 day columns with half-hour time slots.
@@ -134,76 +156,98 @@ type DisplayHourRow$1 = {
134
156
  * Overlapping events within the same day are laid out in sub-columns
135
157
  * so they appear side-by-side rather than stacked.
136
158
  */
137
- declare class CalendarWeekComponent implements OnInit, OnDestroy {
138
- private readonly lang;
139
- /**
140
- * Accessible name for this control. Resolved through the conventional
141
- * `mnCalendar.weekView` key so an app can translate it, falling back to English when the
142
- * key is not defined rather than leaking the raw key into the UI.
143
- */
144
- get weekViewLabel(): string;
145
- private layoutService;
146
- private cdr;
147
- /** The date around which the week is centred. */
148
- focusDay: Date;
149
- /** Observable that emits the full event list whenever it changes. */
150
- eventsChanged: Observable<CalendarEvent[]>;
151
- /** Observable that emits when the focus day changes. */
152
- focusDayChanged: Observable<Date>;
153
- /** Resolved calendar configuration passed from the parent view. */
154
- config?: CalendarConfig;
155
- /** Optional custom event renderer component. */
156
- calendarEventComponent?: Type<CalendarEventData>;
157
- /** Emits when a calendar event is clicked. */
158
- eventClicked: EventEmitter<CalendarEvent>;
159
- columns: ColumnDay[];
160
- hourRows: DisplayHourRow$1[];
161
- displayEvents: CalendarEvent[];
162
- totalRows: number;
163
- currentTimeRow: number;
164
- currentTimeCol: string;
165
- /** The current time, formatted for the label riding the now-line. */
166
- currentTimeLabel: string;
167
- gridTemplateColumns: string;
168
- private dayColumnMap;
169
- private events;
170
- private destroy$;
171
- private formatter;
172
- private resolvedConfig;
173
- private currentTimeInterval?;
174
- constructor();
175
- ngOnInit(): void;
176
- ngOnDestroy(): void;
177
- /** Returns the CSS `grid-row` value for an event based on its start/end times. */
178
- getEventRow(event: CalendarEvent): string;
179
- /** Returns the CSS `grid-column` span for a day header, accounting for sub-columns. */
180
- getHeaderColumn(dayIndex: number): string;
181
- /** Returns the CSS `grid-column` value for an event within its day's sub-columns. */
182
- getEventColumn(event: CalendarEvent): string;
183
- /** Forwards event click to parent. */
184
- onEventClick(event: CalendarEvent): void;
185
- /** trackBy for hour rows. */
186
- trackByHour(_index: number, row: DisplayHourRow$1): number;
187
- /** trackBy for day columns. */
188
- trackByColumn(_index: number, col: ColumnDay): number;
189
- /** trackBy for events. */
190
- trackByEvent(_index: number, event: CalendarEvent): string;
191
- private buildHourRows;
192
- /** Builds the 7 day columns for the current week (Monday–Sunday). */
193
- private buildColumns;
194
- /** Filters, splits, and lays out events for the current week. */
195
- private refreshEvents;
196
- /** Computes the CSS grid-template-columns string based on per-day sub-column counts. */
197
- private buildGridColumns;
198
- /** Updates the current-time red line position. */
199
- private updateCurrentTime;
200
- static ɵfac: i0.ɵɵFactoryDeclaration<CalendarWeekComponent, never>;
201
- static ɵcmp: i0.ɵɵComponentDeclaration<CalendarWeekComponent, "mn-calendar-week", never, { "focusDay": { "alias": "focusDay"; "required": false; }; "eventsChanged": { "alias": "eventsChanged"; "required": false; }; "focusDayChanged": { "alias": "focusDayChanged"; "required": false; }; "config": { "alias": "config"; "required": false; }; "calendarEventComponent": { "alias": "calendarEventComponent"; "required": false; }; }, { "eventClicked": "eventClicked"; }, never, never, true, never>;
159
+ export declare class CalendarWeekComponent implements OnInit, OnDestroy {
160
+ private readonly lang;
161
+ /**
162
+ * Accessible name for this control. Resolved through the conventional
163
+ * `mnCalendar.weekView` key so an app can translate it, falling back to English when the
164
+ * key is not defined rather than leaking the raw key into the UI.
165
+ */
166
+ get weekViewLabel(): string;
167
+ private layoutService;
168
+ private cdr;
169
+ /** The date around which the week is centred. */
170
+ focusDay: Date;
171
+ /** Observable that emits the full event list whenever it changes. */
172
+ eventsChanged: Observable<CalendarEvent[]>;
173
+ /** Observable that emits when the focus day changes. */
174
+ focusDayChanged: Observable<Date>;
175
+ /** Resolved calendar configuration passed from the parent view. */
176
+ config?: CalendarConfig;
177
+ /** Optional custom event renderer component. */
178
+ calendarEventComponent?: Type<CalendarEventData>;
179
+ /** Emits when a calendar event is clicked. */
180
+ eventClicked: EventEmitter<CalendarEvent>;
181
+ columns: ColumnDay[];
182
+ hourRows: DisplayHourRow$1[];
183
+ displayEvents: CalendarEvent[];
184
+ totalRows: number;
185
+ currentTimeRow: number;
186
+ currentTimeCol: string;
187
+ /** The current time, formatted for the label riding the now-line. */
188
+ currentTimeLabel: string;
189
+ gridTemplateColumns: string;
190
+ private dayColumnMap;
191
+ private events;
192
+ private destroy$;
193
+ private formatter;
194
+ private resolvedConfig;
195
+ private currentTimeInterval?;
196
+ constructor();
197
+ ngOnInit(): void;
198
+ ngOnDestroy(): void;
199
+ /** Returns the CSS `grid-row` value for an event based on its start/end times. */
200
+ getEventRow(event: CalendarEvent): string;
201
+ /** Returns the CSS `grid-column` span for a day header, accounting for sub-columns. */
202
+ getHeaderColumn(dayIndex: number): string;
203
+ /** Returns the CSS `grid-column` value for an event within its day's sub-columns. */
204
+ getEventColumn(event: CalendarEvent): string;
205
+ /** Forwards event click to parent. */
206
+ onEventClick(event: CalendarEvent): void;
207
+ /** trackBy for hour rows. */
208
+ trackByHour(_index: number, row: DisplayHourRow$1): number;
209
+ /** trackBy for day columns. */
210
+ trackByColumn(_index: number, col: ColumnDay): number;
211
+ /** trackBy for events. */
212
+ trackByEvent(_index: number, event: CalendarEvent): string;
213
+ private buildHourRows;
214
+ /** Builds the 7 day columns for the current week (Monday–Sunday). */
215
+ private buildColumns;
216
+ /** Filters, splits, and lays out events for the current week. */
217
+ private refreshEvents;
218
+ /** Computes the CSS grid-template-columns string based on per-day sub-column counts. */
219
+ private buildGridColumns;
220
+ /** Updates the current-time red line position. */
221
+ private updateCurrentTime;
222
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalendarWeekComponent, never>;
223
+ static ɵcmp: i0.ɵɵComponentDeclaration<CalendarWeekComponent, "mn-calendar-week", never, {
224
+ "focusDay": {
225
+ "alias": "focusDay";
226
+ "required": false;
227
+ };
228
+ "eventsChanged": {
229
+ "alias": "eventsChanged";
230
+ "required": false;
231
+ };
232
+ "focusDayChanged": {
233
+ "alias": "focusDayChanged";
234
+ "required": false;
235
+ };
236
+ "config": {
237
+ "alias": "config";
238
+ "required": false;
239
+ };
240
+ "calendarEventComponent": {
241
+ "alias": "calendarEventComponent";
242
+ "required": false;
243
+ };
244
+ }, {
245
+ "eventClicked": "eventClicked";
246
+ }, never, never, true, never>;
202
247
  }
203
-
204
248
  /** Extended hour row with a pre-resolved display label. */
205
249
  type DisplayHourRow = {
206
- hourLabel: string;
250
+ hourLabel: string;
207
251
  } & HourRow;
208
252
  /**
209
253
  * Day grid view showing a single day with half-hour time slots.
@@ -211,117 +255,157 @@ type DisplayHourRow = {
211
255
  * Shares the same layout algorithm as the week view via
212
256
  * {@link CalendarEventLayoutService}.
213
257
  */
214
- declare class CalendarDayComponent implements OnInit, OnDestroy {
215
- private readonly lang;
216
- /**
217
- * Accessible name for this control. Resolved through the conventional
218
- * `mnCalendar.dayView` key so an app can translate it, falling back to English when the
219
- * key is not defined rather than leaking the raw key into the UI.
220
- */
221
- get dayViewLabel(): string;
222
- private layoutService;
223
- private cdr;
224
- /** The date to display. */
225
- focusDay: Date;
226
- /** Observable that emits the full event list whenever it changes. */
227
- eventsChanged: Observable<CalendarEvent[]>;
228
- /** Observable that emits when the focus day changes. */
229
- focusDayChanged: Observable<Date>;
230
- /** Resolved calendar configuration passed from the parent view. */
231
- config?: CalendarConfig;
232
- /** Optional custom event renderer component. */
233
- calendarEventComponent?: Type<CalendarEventData>;
234
- /** Emits when a calendar event is clicked. */
235
- eventClicked: EventEmitter<CalendarEvent>;
236
- hourRows: DisplayHourRow[];
237
- displayEvents: CalendarEvent[];
238
- totalRows: number;
239
- totalColumns: number;
240
- currentTimeRow: number;
241
- /** The current time, formatted for the label riding the now-line. */
242
- currentTimeLabel: string;
243
- isToday: boolean;
244
- dayName: string;
245
- private events;
246
- private destroy$;
247
- private formatter;
248
- private resolvedConfig;
249
- private currentTimeInterval?;
250
- constructor();
251
- ngOnInit(): void;
252
- ngOnDestroy(): void;
253
- /** Returns the CSS `grid-row` value for an event. */
254
- getEventRow(event: CalendarEvent): string;
255
- /** Returns the CSS `grid-column` value for an event within its sub-columns. */
256
- getEventColumn(event: CalendarEvent): string;
257
- /** Forwards event click to parent. */
258
- onEventClick(event: CalendarEvent): void;
259
- /** trackBy for hour rows. */
260
- trackByHour(_index: number, row: DisplayHourRow): number;
261
- /** trackBy for events. */
262
- trackByEvent(_index: number, event: CalendarEvent): string;
263
- private buildHourRows;
264
- /** Updates the day name and isToday flag. */
265
- private updateDayInfo;
266
- /** Filters, splits, and lays out events for the focus day. */
267
- private refreshEvents;
268
- /** Updates the current-time red line position. */
269
- private updateCurrentTime;
270
- static ɵfac: i0.ɵɵFactoryDeclaration<CalendarDayComponent, never>;
271
- static ɵcmp: i0.ɵɵComponentDeclaration<CalendarDayComponent, "mn-calendar-day", never, { "focusDay": { "alias": "focusDay"; "required": false; }; "eventsChanged": { "alias": "eventsChanged"; "required": false; }; "focusDayChanged": { "alias": "focusDayChanged"; "required": false; }; "config": { "alias": "config"; "required": false; }; "calendarEventComponent": { "alias": "calendarEventComponent"; "required": false; }; }, { "eventClicked": "eventClicked"; }, never, never, true, never>;
258
+ export declare class CalendarDayComponent implements OnInit, OnDestroy {
259
+ private readonly lang;
260
+ /**
261
+ * Accessible name for this control. Resolved through the conventional
262
+ * `mnCalendar.dayView` key so an app can translate it, falling back to English when the
263
+ * key is not defined rather than leaking the raw key into the UI.
264
+ */
265
+ get dayViewLabel(): string;
266
+ private layoutService;
267
+ private cdr;
268
+ /** The date to display. */
269
+ focusDay: Date;
270
+ /** Observable that emits the full event list whenever it changes. */
271
+ eventsChanged: Observable<CalendarEvent[]>;
272
+ /** Observable that emits when the focus day changes. */
273
+ focusDayChanged: Observable<Date>;
274
+ /** Resolved calendar configuration passed from the parent view. */
275
+ config?: CalendarConfig;
276
+ /** Optional custom event renderer component. */
277
+ calendarEventComponent?: Type<CalendarEventData>;
278
+ /** Emits when a calendar event is clicked. */
279
+ eventClicked: EventEmitter<CalendarEvent>;
280
+ hourRows: DisplayHourRow[];
281
+ displayEvents: CalendarEvent[];
282
+ totalRows: number;
283
+ totalColumns: number;
284
+ currentTimeRow: number;
285
+ /** The current time, formatted for the label riding the now-line. */
286
+ currentTimeLabel: string;
287
+ isToday: boolean;
288
+ dayName: string;
289
+ private events;
290
+ private destroy$;
291
+ private formatter;
292
+ private resolvedConfig;
293
+ private currentTimeInterval?;
294
+ constructor();
295
+ ngOnInit(): void;
296
+ ngOnDestroy(): void;
297
+ /** Returns the CSS `grid-row` value for an event. */
298
+ getEventRow(event: CalendarEvent): string;
299
+ /** Returns the CSS `grid-column` value for an event within its sub-columns. */
300
+ getEventColumn(event: CalendarEvent): string;
301
+ /** Forwards event click to parent. */
302
+ onEventClick(event: CalendarEvent): void;
303
+ /** trackBy for hour rows. */
304
+ trackByHour(_index: number, row: DisplayHourRow): number;
305
+ /** trackBy for events. */
306
+ trackByEvent(_index: number, event: CalendarEvent): string;
307
+ private buildHourRows;
308
+ /** Updates the day name and isToday flag. */
309
+ private updateDayInfo;
310
+ /** Filters, splits, and lays out events for the focus day. */
311
+ private refreshEvents;
312
+ /** Updates the current-time red line position. */
313
+ private updateCurrentTime;
314
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalendarDayComponent, never>;
315
+ static ɵcmp: i0.ɵɵComponentDeclaration<CalendarDayComponent, "mn-calendar-day", never, {
316
+ "focusDay": {
317
+ "alias": "focusDay";
318
+ "required": false;
319
+ };
320
+ "eventsChanged": {
321
+ "alias": "eventsChanged";
322
+ "required": false;
323
+ };
324
+ "focusDayChanged": {
325
+ "alias": "focusDayChanged";
326
+ "required": false;
327
+ };
328
+ "config": {
329
+ "alias": "config";
330
+ "required": false;
331
+ };
332
+ "calendarEventComponent": {
333
+ "alias": "calendarEventComponent";
334
+ "required": false;
335
+ };
336
+ }, {
337
+ "eventClicked": "eventClicked";
338
+ }, never, never, true, never>;
272
339
  }
273
-
274
340
  /**
275
341
  * Month grid view showing a 7×6 grid of day cells.
276
342
  *
277
343
  * Each cell displays the day number and up to 3 coloured dots representing
278
344
  * events on that day. Clicking a cell emits `dayClicked`.
279
345
  */
280
- declare class CalendarMonthComponent implements OnInit, OnDestroy {
281
- private readonly lang;
282
- private readonly cdr;
283
- /**
284
- * Accessible name for this control. Resolved through the conventional
285
- * `mnCalendar.monthView` key so an app can translate it, falling back to English when the
286
- * key is not defined rather than leaking the raw key into the UI.
287
- */
288
- get monthViewLabel(): string;
289
- /** The date whose month is displayed. */
290
- focusDay: Date;
291
- /** Observable that emits the full event list whenever it changes. */
292
- eventsChanged: Observable<CalendarEvent[]>;
293
- /** Observable that emits when the focus day changes. */
294
- focusDayChanged: Observable<Date>;
295
- /** Resolved calendar configuration passed from the parent view. */
296
- config?: CalendarConfig;
297
- /** Emits the date of a clicked day cell. */
298
- dayClicked: EventEmitter<Date>;
299
- monthItems: MonthItem[];
300
- /** Short weekday column headers (e.g. "Mon"), kept compact for the narrow columns. */
301
- weekdayLabels: string[];
302
- /** Word shown after the "+N" overflow count (e.g. "more"), from config. */
303
- moreEventsLabel: string;
304
- private events;
305
- private destroy$;
306
- private formatter;
307
- constructor();
308
- ngOnInit(): void;
309
- ngOnDestroy(): void;
310
- /** Emits the clicked day's date. */
311
- onDayClick(date: Date): void;
312
- /** trackBy for day name headers. */
313
- trackByDayName(index: number): number;
314
- /** trackBy for month grid cells. */
315
- trackByMonthItem(_index: number, item: MonthItem): number;
316
- /** trackBy for event dots. */
317
- trackByEventDot(_index: number, event: CalendarEvent): string;
318
- /** Builds the 42-cell month grid (6 rows × 7 columns). */
319
- private buildMonth;
320
- private createMonthItem;
321
- static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonthComponent, never>;
322
- static ɵcmp: i0.ɵɵComponentDeclaration<CalendarMonthComponent, "mn-calendar-month", never, { "focusDay": { "alias": "focusDay"; "required": false; }; "eventsChanged": { "alias": "eventsChanged"; "required": false; }; "focusDayChanged": { "alias": "focusDayChanged"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "dayClicked": "dayClicked"; }, never, never, true, never>;
346
+ export declare class CalendarMonthComponent implements OnInit, OnDestroy {
347
+ private readonly lang;
348
+ private readonly cdr;
349
+ /**
350
+ * Accessible name for this control. Resolved through the conventional
351
+ * `mnCalendar.monthView` key so an app can translate it, falling back to English when the
352
+ * key is not defined rather than leaking the raw key into the UI.
353
+ */
354
+ get monthViewLabel(): string;
355
+ /** The date whose month is displayed. */
356
+ focusDay: Date;
357
+ /** Observable that emits the full event list whenever it changes. */
358
+ eventsChanged: Observable<CalendarEvent[]>;
359
+ /** Observable that emits when the focus day changes. */
360
+ focusDayChanged: Observable<Date>;
361
+ /** Resolved calendar configuration passed from the parent view. */
362
+ config?: CalendarConfig;
363
+ /** Emits the date of a clicked day cell. */
364
+ dayClicked: EventEmitter<Date>;
365
+ monthItems: MonthItem[];
366
+ /** Short weekday column headers (e.g. "Mon"), kept compact for the narrow columns. */
367
+ weekdayLabels: string[];
368
+ /** Word shown after the "+N" overflow count (e.g. "more"), from config. */
369
+ moreEventsLabel: string;
370
+ private events;
371
+ private destroy$;
372
+ private formatter;
373
+ constructor();
374
+ ngOnInit(): void;
375
+ ngOnDestroy(): void;
376
+ /** Emits the clicked day's date. */
377
+ onDayClick(date: Date): void;
378
+ /** trackBy for day name headers. */
379
+ trackByDayName(index: number): number;
380
+ /** trackBy for month grid cells. */
381
+ trackByMonthItem(_index: number, item: MonthItem): number;
382
+ /** trackBy for event dots. */
383
+ trackByEventDot(_index: number, event: CalendarEvent): string;
384
+ /** Builds the 42-cell month grid (6 rows × 7 columns). */
385
+ private buildMonth;
386
+ private createMonthItem;
387
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonthComponent, never>;
388
+ static ɵcmp: i0.ɵɵComponentDeclaration<CalendarMonthComponent, "mn-calendar-month", never, {
389
+ "focusDay": {
390
+ "alias": "focusDay";
391
+ "required": false;
392
+ };
393
+ "eventsChanged": {
394
+ "alias": "eventsChanged";
395
+ "required": false;
396
+ };
397
+ "focusDayChanged": {
398
+ "alias": "focusDayChanged";
399
+ "required": false;
400
+ };
401
+ "config": {
402
+ "alias": "config";
403
+ "required": false;
404
+ };
405
+ }, {
406
+ "dayClicked": "dayClicked";
407
+ }, never, never, true, never>;
323
408
  }
324
-
325
409
  /**
326
410
  * Dynamic event renderer that injects a custom or default event component
327
411
  * into its view container.
@@ -331,96 +415,121 @@ declare class CalendarMonthComponent implements OnInit, OnDestroy {
331
415
  * 2. `event.component` (per-event override)
332
416
  * 3. {@link CalendarEventDefaultComponent} (library default)
333
417
  */
334
- declare class CalendarEventComponent implements AfterViewInit, OnChanges {
335
- /** The event data to render. */
336
- event: CalendarEvent;
337
- /** Optional custom component type that overrides the default renderer. */
338
- customComponent?: Type<CalendarEventData>;
339
- /** Emits when the rendered event is clicked. */
340
- eventClicked: EventEmitter<CalendarEvent>;
341
- eventContainer: ViewContainerRef;
342
- private rendered;
343
- ngAfterViewInit(): void;
344
- ngOnChanges(changes: SimpleChanges): void;
345
- /** Emits the event click. */
346
- onEventClick(): void;
347
- /** Creates the event component dynamically and sets its `event` property. */
348
- private renderComponent;
349
- static ɵfac: i0.ɵɵFactoryDeclaration<CalendarEventComponent, never>;
350
- static ɵcmp: i0.ɵɵComponentDeclaration<CalendarEventComponent, "mn-calendar-event", never, { "event": { "alias": "event"; "required": false; }; "customComponent": { "alias": "customComponent"; "required": false; }; }, { "eventClicked": "eventClicked"; }, never, never, true, never>;
418
+ export declare class CalendarEventComponent implements AfterViewInit, OnChanges {
419
+ /** The event data to render. */
420
+ event: CalendarEvent;
421
+ /** Optional custom component type that overrides the default renderer. */
422
+ customComponent?: Type<CalendarEventData>;
423
+ /** Emits when the rendered event is clicked. */
424
+ eventClicked: EventEmitter<CalendarEvent>;
425
+ eventContainer: ViewContainerRef;
426
+ private rendered;
427
+ ngAfterViewInit(): void;
428
+ ngOnChanges(changes: SimpleChanges): void;
429
+ /** Emits the event click. */
430
+ onEventClick(): void;
431
+ /** Creates the event component dynamically and sets its `event` property. */
432
+ private renderComponent;
433
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalendarEventComponent, never>;
434
+ static ɵcmp: i0.ɵɵComponentDeclaration<CalendarEventComponent, "mn-calendar-event", never, {
435
+ "event": {
436
+ "alias": "event";
437
+ "required": false;
438
+ };
439
+ "customComponent": {
440
+ "alias": "customComponent";
441
+ "required": false;
442
+ };
443
+ }, {
444
+ "eventClicked": "eventClicked";
445
+ }, never, never, true, never>;
351
446
  }
352
-
353
447
  /**
354
448
  * Default event renderer used when no custom component is provided.
355
449
  *
356
450
  * Displays the event title, formatted time range, and optional description
357
451
  * with the event's colour scheme applied as background and left-border accent.
358
452
  */
359
- declare class CalendarEventDefaultComponent implements CalendarEventData, OnInit {
360
- private cdr;
361
- /** The event to render. Set by {@link CalendarEventComponent} after creation. */
362
- event: CalendarEvent;
363
- formattedTime: string;
364
- private formatter;
365
- constructor();
366
- ngOnInit(): Promise<void>;
367
- static ɵfac: i0.ɵɵFactoryDeclaration<CalendarEventDefaultComponent, never>;
368
- static ɵcmp: i0.ɵɵComponentDeclaration<CalendarEventDefaultComponent, "mn-calendar-event-default", never, {}, {}, never, never, true, never>;
453
+ export declare class CalendarEventDefaultComponent implements CalendarEventData, OnInit {
454
+ private cdr;
455
+ /** The event to render. Set by {@link CalendarEventComponent} after creation. */
456
+ event: CalendarEvent;
457
+ formattedTime: string;
458
+ private formatter;
459
+ constructor();
460
+ ngOnInit(): Promise<void>;
461
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalendarEventDefaultComponent, never>;
462
+ static ɵcmp: i0.ɵɵComponentDeclaration<CalendarEventDefaultComponent, "mn-calendar-event-default", never, {}, {}, never, never, true, never>;
369
463
  }
370
-
371
464
  /**
372
465
  * Sidebar component that lists the next 10 upcoming events
373
466
  * (events whose end time is in the future), sorted by start time.
374
467
  */
375
- declare class UpcomingEventsComponent implements OnInit, OnChanges, OnDestroy {
376
- private readonly lang;
377
- private readonly cdr;
378
- /**
379
- * Accessible name for this control. Resolved through the conventional
380
- * `mnCalendar.upcomingEvents` key so an app can translate it, falling back to English when the
381
- * key is not defined rather than leaking the raw key into the UI.
382
- */
383
- get upcomingEventsLabel(): string;
384
- /** Observable that emits the full event list whenever it changes. */
385
- eventsChanged: Observable<CalendarEvent[]>;
386
- /** Resolved calendar configuration passed from the parent view. */
387
- config?: CalendarConfig;
388
- /** Emits when an upcoming event row is clicked. */
389
- eventClicked: EventEmitter<CalendarEvent>;
390
- upcomingEvents: CalendarEvent[];
391
- title: string;
392
- noEventsMessage: string;
393
- private destroy$;
394
- constructor();
395
- /** Re-read labels when the config input changes (e.g. after a locale switch). */
396
- ngOnChanges(changes: SimpleChanges): void;
397
- ngOnInit(): void;
398
- ngOnDestroy(): void;
399
- /** trackBy for upcoming event rows. */
400
- trackByEvent(_index: number, event: CalendarEvent): string;
401
- static ɵfac: i0.ɵɵFactoryDeclaration<UpcomingEventsComponent, never>;
402
- static ɵcmp: i0.ɵɵComponentDeclaration<UpcomingEventsComponent, "mn-upcoming-events", never, { "eventsChanged": { "alias": "eventsChanged"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "eventClicked": "eventClicked"; }, never, never, true, never>;
468
+ export declare class UpcomingEventsComponent implements OnInit, OnChanges, OnDestroy {
469
+ private readonly lang;
470
+ private readonly cdr;
471
+ /**
472
+ * Accessible name for this control. Resolved through the conventional
473
+ * `mnCalendar.upcomingEvents` key so an app can translate it, falling back to English when the
474
+ * key is not defined rather than leaking the raw key into the UI.
475
+ */
476
+ get upcomingEventsLabel(): string;
477
+ /** Observable that emits the full event list whenever it changes. */
478
+ eventsChanged: Observable<CalendarEvent[]>;
479
+ /** Resolved calendar configuration passed from the parent view. */
480
+ config?: CalendarConfig;
481
+ /** Emits when an upcoming event row is clicked. */
482
+ eventClicked: EventEmitter<CalendarEvent>;
483
+ upcomingEvents: CalendarEvent[];
484
+ title: string;
485
+ noEventsMessage: string;
486
+ private destroy$;
487
+ constructor();
488
+ /** Re-read labels when the config input changes (e.g. after a locale switch). */
489
+ ngOnChanges(changes: SimpleChanges): void;
490
+ ngOnInit(): void;
491
+ ngOnDestroy(): void;
492
+ /** trackBy for upcoming event rows. */
493
+ trackByEvent(_index: number, event: CalendarEvent): string;
494
+ static ɵfac: i0.ɵɵFactoryDeclaration<UpcomingEventsComponent, never>;
495
+ static ɵcmp: i0.ɵɵComponentDeclaration<UpcomingEventsComponent, "mn-upcoming-events", never, {
496
+ "eventsChanged": {
497
+ "alias": "eventsChanged";
498
+ "required": false;
499
+ };
500
+ "config": {
501
+ "alias": "config";
502
+ "required": false;
503
+ };
504
+ }, {
505
+ "eventClicked": "eventClicked";
506
+ }, never, never, true, never>;
403
507
  }
404
-
405
508
  /**
406
509
  * Renders a single row in the upcoming-events sidebar.
407
510
  * Shows the event title, formatted date/time, and optional description.
408
511
  */
409
- declare class UpcomingEventRowComponent implements OnInit {
410
- /** The event to display. */
411
- event: CalendarEvent;
412
- /** Emits the event when this row is clicked. */
413
- eventClicked: EventEmitter<CalendarEvent>;
414
- formattedDate: string;
415
- private formatter;
416
- /** Marks the view when the awaited time string lands (see {@link ngOnInit}). */
417
- private readonly cdr;
418
- constructor();
419
- ngOnInit(): Promise<void>;
420
- static ɵfac: i0.ɵɵFactoryDeclaration<UpcomingEventRowComponent, never>;
421
- static ɵcmp: i0.ɵɵComponentDeclaration<UpcomingEventRowComponent, "mn-upcoming-event-row", never, { "event": { "alias": "event"; "required": false; }; }, { "eventClicked": "eventClicked"; }, never, never, true, never>;
512
+ export declare class UpcomingEventRowComponent implements OnInit {
513
+ /** The event to display. */
514
+ event: CalendarEvent;
515
+ /** Emits the event when this row is clicked. */
516
+ eventClicked: EventEmitter<CalendarEvent>;
517
+ formattedDate: string;
518
+ private formatter;
519
+ /** Marks the view when the awaited time string lands (see {@link ngOnInit}). */
520
+ private readonly cdr;
521
+ constructor();
522
+ ngOnInit(): Promise<void>;
523
+ static ɵfac: i0.ɵɵFactoryDeclaration<UpcomingEventRowComponent, never>;
524
+ static ɵcmp: i0.ɵɵComponentDeclaration<UpcomingEventRowComponent, "mn-upcoming-event-row", never, {
525
+ "event": {
526
+ "alias": "event";
527
+ "required": false;
528
+ };
529
+ }, {
530
+ "eventClicked": "eventClicked";
531
+ }, never, never, true, never>;
422
532
  }
423
-
424
533
  /**
425
534
  * How the bar arranges itself at its current width.
426
535
  *
@@ -433,29 +542,29 @@ declare class UpcomingEventRowComponent implements OnInit {
433
542
  * Resolved from the bar's own width — not the viewport — so a bar in a narrow
434
543
  * sidebar lays itself out like a phone even on a wide screen.
435
544
  */
436
- type DateSelectorBarLayout = 'compact' | 'inline';
545
+ export type DateSelectorBarLayout = 'compact' | 'inline';
437
546
  /** Represents a single day tile in the date selector. */
438
- type DayTile = {
439
- /** The full date object (at midnight). */
440
- date: Date;
441
- /** Short day name (e.g. 'ma', 'Mon'). */
442
- dayName: string;
443
- /** Day-of-month number. */
444
- dayNumber: number;
445
- /** Short month name (e.g. 'mei', 'Jun'). */
446
- monthName: string;
447
- /**
448
- * Whether this tile is the first day of a month within the visible strip. The
449
- * days either side of it move apart, so the break is visible without a label —
450
- * the month header above the strip names both months.
451
- */
452
- startsNewMonth: boolean;
453
- /** Whether this tile is the currently selected date. */
454
- isSelected: boolean;
455
- /** Whether this tile represents today. */
456
- isToday: boolean;
457
- /** Full, locale-formatted date used as the tile's accessible name. */
458
- accessibleLabel: string;
547
+ export type DayTile = {
548
+ /** The full date object (at midnight). */
549
+ date: Date;
550
+ /** Short day name (e.g. 'ma', 'Mon'). */
551
+ dayName: string;
552
+ /** Day-of-month number. */
553
+ dayNumber: number;
554
+ /** Short month name (e.g. 'mei', 'Jun'). */
555
+ monthName: string;
556
+ /**
557
+ * Whether this tile is the first day of a month within the visible strip. The
558
+ * days either side of it move apart, so the break is visible without a label —
559
+ * the month header above the strip names both months.
560
+ */
561
+ startsNewMonth: boolean;
562
+ /** Whether this tile is the currently selected date. */
563
+ isSelected: boolean;
564
+ /** Whether this tile represents today. */
565
+ isToday: boolean;
566
+ /** Full, locale-formatted date used as the tile's accessible name. */
567
+ accessibleLabel: string;
459
568
  };
460
569
  /**
461
570
  * Reusable, responsive date selector bar.
@@ -490,149 +599,185 @@ type DayTile = {
490
599
  * </mn-date-selector-bar>
491
600
  * ```
492
601
  */
493
- declare class MnDateSelectorBar implements OnInit {
494
- /** Lucide icons the template renders. */
495
- protected readonly icons: Record<"ChevronLeft" | "ChevronRight", _lucide_angular.LucideIconData>;
496
- /** The currently selected date, provided by the parent. */
497
- readonly selectedDate: i0.InputSignal<Date>;
498
- /** Label for the "Today" button. */
499
- readonly todayLabel: i0.InputSignal<string>;
500
- /** Placeholder for the date picker shown in place of a too-cramped week strip. */
501
- readonly pickDateLabel: i0.InputSignal<string>;
502
- /** Accessible name for the previous-week arrow. */
503
- readonly previousLabel: i0.InputSignal<string>;
504
- /** Accessible name for the next-week arrow. */
505
- readonly nextLabel: i0.InputSignal<string>;
506
- /** Accessible name for the day strip as a whole. */
507
- readonly dayStripLabel: i0.InputSignal<string>;
508
- /**
509
- * BCP 47 locale used to format day/month names. When empty, the active
510
- * {@link MnLanguageService} locale is used.
511
- */
512
- readonly locale: i0.InputSignal<string>;
513
- /** Emits when the user selects a new date. */
514
- readonly dateSelected: i0.OutputEmitterRef<Date>;
515
- /** Unique id for this instance's date picker, so several bars can coexist. */
516
- readonly pickerId: string;
517
- private readonly destroyRef;
518
- private readonly injector;
519
- private readonly host;
520
- private readonly lang;
521
- private readonly tileButtons;
522
- /** The bar's own width in px, tracked so the layout follows its container. */
523
- private readonly containerWidth;
524
- /** Bumped whenever the active language changes so name formatting re-runs. */
525
- private readonly localeTick;
526
- /** How the bar is arranged at the current width. */
527
- readonly layout: i0.Signal<DateSelectorBarLayout>;
528
- /** Whether the day strip is shown, or the picker has taken its place. */
529
- readonly showDayStrip: i0.Signal<boolean>;
530
- /**
531
- * Days in the visible strip: a full week where there's room, fewer as the bar
532
- * narrows. The bar drops days rather than adding a second row, so it stays one
533
- * line at every width it can.
534
- */
535
- readonly tileCount: i0.Signal<number>;
536
- /** Effective locale: explicit input, else the active app locale. */
537
- private readonly effectiveLocale;
538
- /**
539
- * First day of the visible strip — the week's Monday when a whole week is on
540
- * show, otherwise whatever start keeps the selection in view.
541
- *
542
- * The strip holds still while the selection stays on screen; a selection
543
- * outside it moves to where that day is. The arrows write here directly to page
544
- * away from the selection.
545
- */
546
- private readonly windowStart;
547
- /**
548
- * Index of the tile that is currently keyboard-reachable (roving tabindex).
549
- * Tracks the selection so Tab lands on the selected day, falling back to Monday
550
- * when the selection has been paged out of sight.
551
- */
552
- private readonly focusedIndex;
553
- /** The visible days, derived from the window start and the current selection. */
554
- readonly dayTiles: i0.Signal<DayTile[]>;
555
- /**
556
- * The month the strip is currently in, spelled out for the header that titles
557
- * the bar — so the days below are never just loose numbers. Reads as a range
558
- * when the strip straddles two months, and carries both years when it straddles
559
- * two of those.
560
- */
561
- readonly monthCaption: i0.Signal<string>;
562
- /** The selected date formatted as YYYY-MM-DD for the date-picker input. */
563
- readonly selectedDateString: i0.Signal<string>;
564
- /**
565
- * Props for the compact-layout date picker. Sized to match the Today button it
566
- * sits beside, and filling the rest of the row so it stays an easy tap target.
567
- */
568
- readonly pickerProps: i0.Signal<{
569
- id: string;
570
- mode: "date";
571
- placeholder: string;
572
- size: "md";
573
- borderRadius: "lg";
574
- hover: boolean;
575
- fullWidth: boolean;
576
- }>;
577
- ngOnInit(): void;
578
- /** Shows the days before the visible ones, without changing the selection. */
579
- navigatePrevious(): void;
580
- /** Shows the days after the visible ones, without changing the selection. */
581
- navigateNext(): void;
582
- /** Returns to today: brings today into the strip and selects it. */
583
- goToToday(): void;
584
- /** Selects a date and emits it, unless it is already the selected day. */
585
- selectDate(date: Date): void;
586
- /**
587
- * Handles the date-picker model change: shows the picked day's week and emits
588
- * it (unless it is already the selected day).
589
- * @param value The date string in YYYY-MM-DD format.
590
- */
591
- onDateModelChanged(value: string): void;
592
- /** Whether the tile at `index` is the one reachable with Tab. */
593
- isTabbable(index: number): boolean;
594
- /** Remembers which tile last held focus, so Tab returns to it. */
595
- onTileFocus(index: number): void;
596
- /**
597
- * Moves focus across the week with the arrow keys. Running off either end turns
598
- * the page to the neighbouring week and lands on the day that continues the run,
599
- * so the weeks read as one continuous calendar.
600
- */
601
- onTileKeydown(event: KeyboardEvent, index: number): void;
602
- /** trackBy key for day tiles. */
603
- trackByTile(_index: number, tile: DayTile): number;
604
- /**
605
- * Moves the strip by `pages` of whatever it is currently showing. Paging by the
606
- * visible count is what keeps a full week Monday-aligned — seven days forward
607
- * from a Monday is the next Monday.
608
- */
609
- private shiftWindow;
610
- /** Focuses the tile at `index` once the week has rendered. */
611
- private moveFocusTo;
612
- /** Index of the selected day within the visible week, or -1 when off-week. */
613
- private indexOfSelected;
614
- /**
615
- * Where the strip should start to show `date` among `count` days: the week's
616
- * Monday when a whole week is on show, otherwise centred on the day, since a
617
- * partial strip has no week to align to.
618
- */
619
- private anchorFor;
620
- /**
621
- * Returns the Monday of the week containing `date`. `getDay()` counts from
622
- * Sunday, so the shift maps Sunday to the end of the week rather than the start.
623
- */
624
- private startOfWeek;
625
- /** Whole calendar days from `from` to `to`, ignoring time of day and DST. */
626
- private daysBetween;
627
- /** Tracks the bar's own width so the layout responds to its container. */
628
- private observeOwnWidth;
629
- /** Returns a Date object for today at midnight. */
630
- private getToday;
631
- /** Checks whether two dates fall on the same calendar day. */
632
- private isSameDay;
633
- static ɵfac: i0.ɵɵFactoryDeclaration<MnDateSelectorBar, never>;
634
- static ɵcmp: i0.ɵɵComponentDeclaration<MnDateSelectorBar, "mn-date-selector-bar", never, { "selectedDate": { "alias": "selectedDate"; "required": false; "isSignal": true; }; "todayLabel": { "alias": "todayLabel"; "required": false; "isSignal": true; }; "pickDateLabel": { "alias": "pickDateLabel"; "required": false; "isSignal": true; }; "previousLabel": { "alias": "previousLabel"; "required": false; "isSignal": true; }; "nextLabel": { "alias": "nextLabel"; "required": false; "isSignal": true; }; "dayStripLabel": { "alias": "dayStripLabel"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; }, { "dateSelected": "dateSelected"; }, never, never, true, never>;
602
+ export declare class MnDateSelectorBar implements OnInit {
603
+ /** Lucide icons the template renders. */
604
+ protected readonly icons: Record<"ChevronLeft" | "ChevronRight", import("@lucide/angular").LucideIconData>;
605
+ /** The currently selected date, provided by the parent. */
606
+ readonly selectedDate: import("@angular/core").InputSignal<Date>;
607
+ /** Label for the "Today" button. */
608
+ readonly todayLabel: import("@angular/core").InputSignal<string>;
609
+ /** Placeholder for the date picker shown in place of a too-cramped week strip. */
610
+ readonly pickDateLabel: import("@angular/core").InputSignal<string>;
611
+ /** Accessible name for the previous-week arrow. */
612
+ readonly previousLabel: import("@angular/core").InputSignal<string>;
613
+ /** Accessible name for the next-week arrow. */
614
+ readonly nextLabel: import("@angular/core").InputSignal<string>;
615
+ /** Accessible name for the day strip as a whole. */
616
+ readonly dayStripLabel: import("@angular/core").InputSignal<string>;
617
+ /**
618
+ * BCP 47 locale used to format day/month names. When empty, the active
619
+ * {@link MnLanguageService} locale is used.
620
+ */
621
+ readonly locale: import("@angular/core").InputSignal<string>;
622
+ /** Emits when the user selects a new date. */
623
+ readonly dateSelected: import("@angular/core").OutputEmitterRef<Date>;
624
+ /** Unique id for this instance's date picker, so several bars can coexist. */
625
+ readonly pickerId: string;
626
+ private readonly destroyRef;
627
+ private readonly injector;
628
+ private readonly host;
629
+ private readonly lang;
630
+ private readonly tileButtons;
631
+ /** The bar's own width in px, tracked so the layout follows its container. */
632
+ private readonly containerWidth;
633
+ /** Bumped whenever the active language changes so name formatting re-runs. */
634
+ private readonly localeTick;
635
+ /** How the bar is arranged at the current width. */
636
+ readonly layout: import("@angular/core").Signal<DateSelectorBarLayout>;
637
+ /** Whether the day strip is shown, or the picker has taken its place. */
638
+ readonly showDayStrip: import("@angular/core").Signal<boolean>;
639
+ /**
640
+ * Days in the visible strip: a full week where there's room, fewer as the bar
641
+ * narrows. The bar drops days rather than adding a second row, so it stays one
642
+ * line at every width it can.
643
+ */
644
+ readonly tileCount: import("@angular/core").Signal<number>;
645
+ /** Effective locale: explicit input, else the active app locale. */
646
+ private readonly effectiveLocale;
647
+ /**
648
+ * First day of the visible strip — the week's Monday when a whole week is on
649
+ * show, otherwise whatever start keeps the selection in view.
650
+ *
651
+ * The strip holds still while the selection stays on screen; a selection
652
+ * outside it moves to where that day is. The arrows write here directly to page
653
+ * away from the selection.
654
+ */
655
+ private readonly windowStart;
656
+ /**
657
+ * Index of the tile that is currently keyboard-reachable (roving tabindex).
658
+ * Tracks the selection so Tab lands on the selected day, falling back to Monday
659
+ * when the selection has been paged out of sight.
660
+ */
661
+ private readonly focusedIndex;
662
+ /** The visible days, derived from the window start and the current selection. */
663
+ readonly dayTiles: import("@angular/core").Signal<DayTile[]>;
664
+ /**
665
+ * The month the strip is currently in, spelled out for the header that titles
666
+ * the bar — so the days below are never just loose numbers. Reads as a range
667
+ * when the strip straddles two months, and carries both years when it straddles
668
+ * two of those.
669
+ */
670
+ readonly monthCaption: import("@angular/core").Signal<string>;
671
+ /** The selected date formatted as YYYY-MM-DD for the date-picker input. */
672
+ readonly selectedDateString: import("@angular/core").Signal<string>;
673
+ /**
674
+ * Props for the compact-layout date picker. Sized to match the Today button it
675
+ * sits beside, and filling the rest of the row so it stays an easy tap target.
676
+ */
677
+ readonly pickerProps: import("@angular/core").Signal<{
678
+ id: string;
679
+ mode: "date";
680
+ placeholder: string;
681
+ size: "md";
682
+ borderRadius: "lg";
683
+ hover: boolean;
684
+ fullWidth: boolean;
685
+ }>;
686
+ ngOnInit(): void;
687
+ /** Shows the days before the visible ones, without changing the selection. */
688
+ navigatePrevious(): void;
689
+ /** Shows the days after the visible ones, without changing the selection. */
690
+ navigateNext(): void;
691
+ /** Returns to today: brings today into the strip and selects it. */
692
+ goToToday(): void;
693
+ /** Selects a date and emits it, unless it is already the selected day. */
694
+ selectDate(date: Date): void;
695
+ /**
696
+ * Handles the date-picker model change: shows the picked day's week and emits
697
+ * it (unless it is already the selected day).
698
+ * @param value The date string in YYYY-MM-DD format.
699
+ */
700
+ onDateModelChanged(value: string): void;
701
+ /** Whether the tile at `index` is the one reachable with Tab. */
702
+ isTabbable(index: number): boolean;
703
+ /** Remembers which tile last held focus, so Tab returns to it. */
704
+ onTileFocus(index: number): void;
705
+ /**
706
+ * Moves focus across the week with the arrow keys. Running off either end turns
707
+ * the page to the neighbouring week and lands on the day that continues the run,
708
+ * so the weeks read as one continuous calendar.
709
+ */
710
+ onTileKeydown(event: KeyboardEvent, index: number): void;
711
+ /** trackBy key for day tiles. */
712
+ trackByTile(_index: number, tile: DayTile): number;
713
+ /**
714
+ * Moves the strip by `pages` of whatever it is currently showing. Paging by the
715
+ * visible count is what keeps a full week Monday-aligned — seven days forward
716
+ * from a Monday is the next Monday.
717
+ */
718
+ private shiftWindow;
719
+ /** Focuses the tile at `index` once the week has rendered. */
720
+ private moveFocusTo;
721
+ /** Index of the selected day within the visible week, or -1 when off-week. */
722
+ private indexOfSelected;
723
+ /**
724
+ * Where the strip should start to show `date` among `count` days: the week's
725
+ * Monday when a whole week is on show, otherwise centred on the day, since a
726
+ * partial strip has no week to align to.
727
+ */
728
+ private anchorFor;
729
+ /**
730
+ * Returns the Monday of the week containing `date`. `getDay()` counts from
731
+ * Sunday, so the shift maps Sunday to the end of the week rather than the start.
732
+ */
733
+ private startOfWeek;
734
+ /** Whole calendar days from `from` to `to`, ignoring time of day and DST. */
735
+ private daysBetween;
736
+ /** Tracks the bar's own width so the layout responds to its container. */
737
+ private observeOwnWidth;
738
+ /** Returns a Date object for today at midnight. */
739
+ private getToday;
740
+ /** Checks whether two dates fall on the same calendar day. */
741
+ private isSameDay;
742
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnDateSelectorBar, never>;
743
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnDateSelectorBar, "mn-date-selector-bar", never, {
744
+ "selectedDate": {
745
+ "alias": "selectedDate";
746
+ "required": false;
747
+ "isSignal": true;
748
+ };
749
+ "todayLabel": {
750
+ "alias": "todayLabel";
751
+ "required": false;
752
+ "isSignal": true;
753
+ };
754
+ "pickDateLabel": {
755
+ "alias": "pickDateLabel";
756
+ "required": false;
757
+ "isSignal": true;
758
+ };
759
+ "previousLabel": {
760
+ "alias": "previousLabel";
761
+ "required": false;
762
+ "isSignal": true;
763
+ };
764
+ "nextLabel": {
765
+ "alias": "nextLabel";
766
+ "required": false;
767
+ "isSignal": true;
768
+ };
769
+ "dayStripLabel": {
770
+ "alias": "dayStripLabel";
771
+ "required": false;
772
+ "isSignal": true;
773
+ };
774
+ "locale": {
775
+ "alias": "locale";
776
+ "required": false;
777
+ "isSignal": true;
778
+ };
779
+ }, {
780
+ "dateSelected": "dateSelected";
781
+ }, never, never, true, never>;
635
782
  }
636
-
637
- export { CalendarDayComponent, CalendarEventComponent, CalendarEventDefaultComponent, CalendarMonthComponent, CalendarViewComponent, CalendarWeekComponent, MnDateSelectorBar, UpcomingEventRowComponent, UpcomingEventsComponent };
638
- export type { DateSelectorBarLayout, DayTile };
783
+ export {};