mn-angular-lib 1.0.178 → 1.0.179

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 (66) hide show
  1. package/fesm2022/mn-angular-lib-alert.mjs +535 -0
  2. package/fesm2022/mn-angular-lib-alert.mjs.map +1 -0
  3. package/fesm2022/mn-angular-lib-bottom-sheet.mjs +356 -0
  4. package/fesm2022/mn-angular-lib-bottom-sheet.mjs.map +1 -0
  5. package/fesm2022/mn-angular-lib-button.mjs +382 -0
  6. package/fesm2022/mn-angular-lib-button.mjs.map +1 -0
  7. package/fesm2022/mn-angular-lib-calendar-core.mjs +377 -0
  8. package/fesm2022/mn-angular-lib-calendar-core.mjs.map +1 -0
  9. package/fesm2022/mn-angular-lib-calendar.mjs +1513 -0
  10. package/fesm2022/mn-angular-lib-calendar.mjs.map +1 -0
  11. package/fesm2022/mn-angular-lib-collection.mjs +2277 -0
  12. package/fesm2022/mn-angular-lib-collection.mjs.map +1 -0
  13. package/fesm2022/mn-angular-lib-core.mjs +1232 -0
  14. package/fesm2022/mn-angular-lib-core.mjs.map +1 -0
  15. package/fesm2022/mn-angular-lib-display.mjs +728 -0
  16. package/fesm2022/mn-angular-lib-display.mjs.map +1 -0
  17. package/fesm2022/mn-angular-lib-forms.mjs +4260 -0
  18. package/fesm2022/mn-angular-lib-forms.mjs.map +1 -0
  19. package/fesm2022/mn-angular-lib-keyboard.mjs +195 -0
  20. package/fesm2022/mn-angular-lib-keyboard.mjs.map +1 -0
  21. package/fesm2022/mn-angular-lib-modal-core.mjs +945 -0
  22. package/fesm2022/mn-angular-lib-modal-core.mjs.map +1 -0
  23. package/fesm2022/mn-angular-lib-modal-ui.mjs +2016 -0
  24. package/fesm2022/mn-angular-lib-modal-ui.mjs.map +1 -0
  25. package/fesm2022/mn-angular-lib-modal.mjs +126 -0
  26. package/fesm2022/mn-angular-lib-modal.mjs.map +1 -0
  27. package/fesm2022/mn-angular-lib-rich-text-editor.mjs +275 -0
  28. package/fesm2022/mn-angular-lib-rich-text-editor.mjs.map +1 -0
  29. package/fesm2022/mn-angular-lib-segmented.mjs +246 -0
  30. package/fesm2022/mn-angular-lib-segmented.mjs.map +1 -0
  31. package/fesm2022/mn-angular-lib-tab.mjs +573 -0
  32. package/fesm2022/mn-angular-lib-tab.mjs.map +1 -0
  33. package/fesm2022/mn-angular-lib.mjs +21 -15517
  34. package/fesm2022/mn-angular-lib.mjs.map +1 -1
  35. package/package.json +66 -1
  36. package/src/lib/styles/index.css +2 -2
  37. package/types/mn-angular-lib-alert.d.ts +258 -0
  38. package/types/mn-angular-lib-bottom-sheet.d.ts +173 -0
  39. package/types/mn-angular-lib-button.d.ts +318 -0
  40. package/types/mn-angular-lib-calendar-core.d.ts +378 -0
  41. package/types/mn-angular-lib-calendar.d.ts +636 -0
  42. package/types/mn-angular-lib-collection.d.ts +1550 -0
  43. package/types/mn-angular-lib-core.d.ts +756 -0
  44. package/types/mn-angular-lib-display.d.ts +1075 -0
  45. package/types/mn-angular-lib-forms.d.ts +3235 -0
  46. package/types/mn-angular-lib-keyboard.d.ts +128 -0
  47. package/types/mn-angular-lib-modal-core.d.ts +1130 -0
  48. package/types/mn-angular-lib-modal-ui.d.ts +492 -0
  49. package/types/mn-angular-lib-modal.d.ts +27 -0
  50. package/types/mn-angular-lib-rich-text-editor.d.ts +157 -0
  51. package/types/mn-angular-lib-segmented.d.ts +395 -0
  52. package/types/mn-angular-lib-tab.d.ts +313 -0
  53. package/types/mn-angular-lib.d.ts +16 -10822
  54. /package/{src/lib/features → alert/src}/mn-alert/mn-alert-outlet/mn-alert-outlet.css +0 -0
  55. /package/{src/lib/features → bottom-sheet/src}/mn-bottom-sheet/mn-bottom-sheet.component.css +0 -0
  56. /package/{src/lib/features → button/src}/mn-skeleton/mn-skeleton.css +0 -0
  57. /package/{src/lib/features → collection/src}/mn-list/mn-list.component.css +0 -0
  58. /package/{src/lib/features → forms/src}/mn-checkbox/mn-checkbox.css +0 -0
  59. /package/{src/lib/features → forms/src}/mn-dropdown/mn-dropdown.css +0 -0
  60. /package/{src/lib/features → forms/src}/mn-multi-select/mn-multi-select.css +0 -0
  61. /package/{src/lib/features → keyboard/src}/mn-keyboard/mn-keyboard.component.css +0 -0
  62. /package/{src/lib/features → modal-ui/src}/mn-modal/components/mn-confirmation-body/mn-confirmation-body.component.css +0 -0
  63. /package/{src/lib/features → modal-ui/src}/mn-modal/components/mn-form-body/mn-form-body.component.css +0 -0
  64. /package/{src/lib/features → modal-ui/src}/mn-modal/components/mn-modal-shell/mn-modal-shell.component.css +0 -0
  65. /package/{src/lib/features → modal-ui/src}/mn-modal/components/mn-wizard-body/mn-wizard-body.component.css +0 -0
  66. /package/{src/lib/features → rich-text-editor/src}/mn-rich-text-editor/mn-rich-text-editor.component.css +0 -0
@@ -0,0 +1,318 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as i0 from '@angular/core';
4
+
5
+ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
6
+ size: {
7
+ sm: string;
8
+ md: string;
9
+ lg: string;
10
+ };
11
+ variant: {
12
+ fill: string;
13
+ outline: string;
14
+ text: string;
15
+ textUnderline: string;
16
+ ghost: string;
17
+ };
18
+ color: {
19
+ primary: string;
20
+ secondary: string;
21
+ danger: string;
22
+ warning: string;
23
+ success: string;
24
+ accent: string;
25
+ gray: string;
26
+ };
27
+ borderRadius: {
28
+ none: string;
29
+ xs: string;
30
+ sm: string;
31
+ md: string;
32
+ lg: string;
33
+ xl: string;
34
+ two_xl: string;
35
+ three_xl: string;
36
+ four_xl: string;
37
+ full: string;
38
+ };
39
+ shape: {
40
+ default: string;
41
+ circle: string;
42
+ square: string;
43
+ };
44
+ disabled: {
45
+ true: string;
46
+ };
47
+ loading: {
48
+ true: string;
49
+ };
50
+ wrap: {
51
+ true: string;
52
+ false: string;
53
+ };
54
+ hover: {
55
+ true: string;
56
+ };
57
+ }, undefined, "inline-flex items-center justify-center hover:cursor-pointer transition-all duration-300 ease-in-out", {
58
+ size: {
59
+ sm: string;
60
+ md: string;
61
+ lg: string;
62
+ };
63
+ variant: {
64
+ fill: string;
65
+ outline: string;
66
+ text: string;
67
+ textUnderline: string;
68
+ ghost: string;
69
+ };
70
+ color: {
71
+ primary: string;
72
+ secondary: string;
73
+ danger: string;
74
+ warning: string;
75
+ success: string;
76
+ accent: string;
77
+ gray: string;
78
+ };
79
+ borderRadius: {
80
+ none: string;
81
+ xs: string;
82
+ sm: string;
83
+ md: string;
84
+ lg: string;
85
+ xl: string;
86
+ two_xl: string;
87
+ three_xl: string;
88
+ four_xl: string;
89
+ full: string;
90
+ };
91
+ shape: {
92
+ default: string;
93
+ circle: string;
94
+ square: string;
95
+ };
96
+ disabled: {
97
+ true: string;
98
+ };
99
+ loading: {
100
+ true: string;
101
+ };
102
+ wrap: {
103
+ true: string;
104
+ false: string;
105
+ };
106
+ hover: {
107
+ true: string;
108
+ };
109
+ }, undefined, tailwind_variants.TVReturnType<{
110
+ size: {
111
+ sm: string;
112
+ md: string;
113
+ lg: string;
114
+ };
115
+ variant: {
116
+ fill: string;
117
+ outline: string;
118
+ text: string;
119
+ textUnderline: string;
120
+ ghost: string;
121
+ };
122
+ color: {
123
+ primary: string;
124
+ secondary: string;
125
+ danger: string;
126
+ warning: string;
127
+ success: string;
128
+ accent: string;
129
+ gray: string;
130
+ };
131
+ borderRadius: {
132
+ none: string;
133
+ xs: string;
134
+ sm: string;
135
+ md: string;
136
+ lg: string;
137
+ xl: string;
138
+ two_xl: string;
139
+ three_xl: string;
140
+ four_xl: string;
141
+ full: string;
142
+ };
143
+ shape: {
144
+ default: string;
145
+ circle: string;
146
+ square: string;
147
+ };
148
+ disabled: {
149
+ true: string;
150
+ };
151
+ loading: {
152
+ true: string;
153
+ };
154
+ wrap: {
155
+ true: string;
156
+ false: string;
157
+ };
158
+ hover: {
159
+ true: string;
160
+ };
161
+ }, undefined, "inline-flex items-center justify-center hover:cursor-pointer transition-all duration-300 ease-in-out", unknown, unknown, undefined>>;
162
+ type MnButtonVariants = VariantProps<typeof mnButtonVariants>;
163
+
164
+ type MnButtonTypes = {
165
+ size: MnButtonVariants['size'];
166
+ variant: MnButtonVariants['variant'];
167
+ borderRadius: MnButtonVariants['borderRadius'];
168
+ shape?: MnButtonVariants['shape'];
169
+ color: MnButtonVariants['color'];
170
+ disabled?: MnButtonVariants['disabled'];
171
+ loading?: MnButtonVariants['loading'];
172
+ wrap?: MnButtonVariants['wrap'];
173
+ hover?: MnButtonVariants['hover'];
174
+ };
175
+
176
+ declare class MnButton {
177
+ data: Partial<MnButtonTypes>;
178
+ get hostClasses(): string;
179
+ get ariaBusy(): "true" | null;
180
+ get ariaDisabled(): "true" | null;
181
+ get disabledAttr(): "" | null;
182
+ get tabIndex(): "-1" | null;
183
+ private get isBlocked();
184
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnButton, never>;
185
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnButton, "button[mnButton], a[mnButton]", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, ["*"], true, never>;
186
+ }
187
+
188
+ declare const mnBadgeVariants: tailwind_variants.TVReturnType<{
189
+ size: {
190
+ sm: string;
191
+ md: string;
192
+ lg: string;
193
+ xl: string;
194
+ };
195
+ variant: {
196
+ default: string;
197
+ fill: string;
198
+ };
199
+ wrap: {
200
+ true: string;
201
+ false: string;
202
+ };
203
+ color: {
204
+ primary: string;
205
+ secondary: string;
206
+ danger: string;
207
+ warning: string;
208
+ success: string;
209
+ accent: string;
210
+ lightgray: string;
211
+ };
212
+ }, undefined, "inline-flex items-center rounded-md border font-semibold", {
213
+ size: {
214
+ sm: string;
215
+ md: string;
216
+ lg: string;
217
+ xl: string;
218
+ };
219
+ variant: {
220
+ default: string;
221
+ fill: string;
222
+ };
223
+ wrap: {
224
+ true: string;
225
+ false: string;
226
+ };
227
+ color: {
228
+ primary: string;
229
+ secondary: string;
230
+ danger: string;
231
+ warning: string;
232
+ success: string;
233
+ accent: string;
234
+ lightgray: string;
235
+ };
236
+ }, undefined, tailwind_variants.TVReturnType<{
237
+ size: {
238
+ sm: string;
239
+ md: string;
240
+ lg: string;
241
+ xl: string;
242
+ };
243
+ variant: {
244
+ default: string;
245
+ fill: string;
246
+ };
247
+ wrap: {
248
+ true: string;
249
+ false: string;
250
+ };
251
+ color: {
252
+ primary: string;
253
+ secondary: string;
254
+ danger: string;
255
+ warning: string;
256
+ success: string;
257
+ accent: string;
258
+ lightgray: string;
259
+ };
260
+ }, undefined, "inline-flex items-center rounded-md border font-semibold", unknown, unknown, undefined>>;
261
+ type MnBadgeVariants = VariantProps<typeof mnBadgeVariants>;
262
+
263
+ type MnBadgeTypes = {
264
+ size: MnBadgeVariants['size'];
265
+ variant: MnBadgeVariants['variant'];
266
+ color: MnBadgeVariants['color'];
267
+ wrap: MnBadgeVariants['wrap'];
268
+ };
269
+
270
+ declare class MnBadge {
271
+ data: Partial<MnBadgeTypes>;
272
+ get hostClasses(): string;
273
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnBadge, never>;
274
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnBadge, "span[mnBadge]", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, ["*"], true, never>;
275
+ }
276
+
277
+ type MnSkeletonShape = 'rectangle' | 'circle' | 'text';
278
+ type MnSkeletonProps = {
279
+ shape?: MnSkeletonShape;
280
+ animated?: boolean;
281
+ width?: string;
282
+ height?: string;
283
+ };
284
+
285
+ declare class MnSkeleton {
286
+ data: Partial<MnSkeletonProps>;
287
+ readonly ariaHidden = "true";
288
+ get hostClasses(): string;
289
+ get width(): string | null;
290
+ get height(): string | null;
291
+ get isAnimated(): boolean;
292
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnSkeleton, never>;
293
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnSkeleton, "mn-skeleton", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
294
+ }
295
+
296
+ declare const mnSkeletonVariants: tailwind_variants.TVReturnType<{
297
+ shape: {
298
+ rectangle: string;
299
+ circle: string;
300
+ text: string;
301
+ };
302
+ }, undefined, "bg-base-300 relative overflow-hidden", {
303
+ shape: {
304
+ rectangle: string;
305
+ circle: string;
306
+ text: string;
307
+ };
308
+ }, undefined, tailwind_variants.TVReturnType<{
309
+ shape: {
310
+ rectangle: string;
311
+ circle: string;
312
+ text: string;
313
+ };
314
+ }, undefined, "bg-base-300 relative overflow-hidden", unknown, unknown, undefined>>;
315
+ type MnSkeletonVariantProps = VariantProps<typeof mnSkeletonVariants>;
316
+
317
+ export { MnBadge, MnButton, MnSkeleton, mnBadgeVariants, mnButtonVariants, mnSkeletonVariants };
318
+ export type { MnBadgeTypes, MnBadgeVariants, MnButtonTypes, MnButtonVariants, MnSkeletonProps, MnSkeletonShape, MnSkeletonVariantProps };
@@ -0,0 +1,378 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Type, InjectionToken } from '@angular/core';
3
+ import { MnButtonTypes } from 'mn-angular-lib/button';
4
+ import { Observable } from 'rxjs';
5
+
6
+ /**
7
+ * Colour scheme applied to calendar events.
8
+ *
9
+ * `primaryColor` is used for the left border accent; `secondaryColor` for the
10
+ * background fill. Both should be valid CSS colour values.
11
+ */
12
+ type ColorPreset = {
13
+ /** Unique identifier. */
14
+ id: string;
15
+ /** Human-readable colour name (e.g. "Blue"). */
16
+ colorName: string;
17
+ /** Accent / border colour (e.g. "#3b82f6"). */
18
+ primaryColor: string;
19
+ /** Background fill colour (e.g. "#dbeafe"). */
20
+ secondaryColor: string;
21
+ };
22
+
23
+ /**
24
+ * Represents a single calendar event.
25
+ *
26
+ * Consumer-facing properties (`id` through `data`) are set by the application.
27
+ * Layout properties (`column`, `width`, `continued`, `continuedEnd`) are
28
+ * computed by {@link CalendarEventLayoutService} and should not be set manually.
29
+ */
30
+ type CalendarEvent = {
31
+ /** Unique identifier for the event. */
32
+ id: string;
33
+ /** Display title. */
34
+ title: string;
35
+ /** Optional description shown below the title. */
36
+ description: string;
37
+ /** Event start date/time. */
38
+ startTime: Date;
39
+ /** Event end date/time. */
40
+ endTime: Date;
41
+ /** Colour scheme used for rendering. */
42
+ color: ColorPreset;
43
+ /** Optional custom component type to render this event (overrides the default renderer). */
44
+ component?: Type<unknown>;
45
+ /** Arbitrary payload attached to the event (passed through to custom renderers). */
46
+ data?: unknown;
47
+ /** Zero-based column index within overlapping event groups. */
48
+ column?: number;
49
+ /** Number of sub-columns this event spans. */
50
+ width?: number;
51
+ /** `true` when this segment is a continuation from a previous day (multi-day events). */
52
+ continued?: boolean;
53
+ /** `true` when this segment continues into the next day (multi-day events). */
54
+ continuedEnd?: boolean;
55
+ };
56
+ /**
57
+ * Represents a button displayed in the calendar toolbar's top-right area.
58
+ */
59
+ type CalendarButton = {
60
+ /** Display label for the button. */
61
+ label: string;
62
+ /** Button styling configuration passed to the mnButton directive. */
63
+ buttonData?: Partial<MnButtonTypes>;
64
+ /** Callback invoked when the button is clicked. */
65
+ onClick: () => void;
66
+ };
67
+ /**
68
+ * Represents the "current time" indicator rendered as a line in week/day views.
69
+ */
70
+ type CurrentTimeCalendarEvent = {
71
+ id: 'current-time';
72
+ title: string;
73
+ startTime: Date;
74
+ endTime: Date;
75
+ column: number;
76
+ width: number;
77
+ };
78
+
79
+ /**
80
+ * Contract for pluggable event renderer components.
81
+ *
82
+ * Any component that implements this interface can be used as a custom
83
+ * event template inside the calendar. Pass the component type via
84
+ * `[CalendarEventComponent]` on `<mn-calendar-view>`.
85
+ *
86
+ * The calendar will set the `event` property after creating the component
87
+ * dynamically via `ViewContainerRef.createComponent()`.
88
+ */
89
+ type CalendarEventData = {
90
+ /** The calendar event to render. Set by the calendar after component creation. */
91
+ event: CalendarEvent;
92
+ };
93
+
94
+ /**
95
+ * Available calendar view modes.
96
+ */
97
+ declare enum CalendarView {
98
+ MONTH = "MONTH",
99
+ WEEK = "WEEK",
100
+ DAY = "DAY"
101
+ }
102
+ /**
103
+ * Configuration for the calendar component.
104
+ * All properties are optional — sensible defaults are provided.
105
+ * Can be supplied via the `CALENDAR_CONFIG` injection token or through
106
+ * the `provideMnComponentConfig` helper using component name `'mn-calendar'`.
107
+ */
108
+ type CalendarConfig = {
109
+ /** First visible hour in week/day views (0–23). Default: `7`. */
110
+ startHour: number;
111
+ /** Last visible hour in week/day views (1–24, exclusive). Default: `22`. */
112
+ endHour: number;
113
+ /** BCP 47 locale tag used for date/time formatting (e.g. `'en-US'`, `'nl-NL'`). Default: `'en-US'`. */
114
+ locale: string;
115
+ /** Label for the "Today" navigation button. Default: `'Today'`. */
116
+ todayLabel: string;
117
+ /** Placeholder for the toolbar's date picker. Default: `'Pick a date'`. */
118
+ pickDateLabel: string;
119
+ /** Accessible name for the toolbar's back arrow. Default: `'Previous'`. */
120
+ previousLabel: string;
121
+ /** Accessible name for the toolbar's forward arrow. Default: `'Next'`. */
122
+ nextLabel: string;
123
+ /** Title shown above the upcoming-events sidebar. Default: `'Upcoming events'`. */
124
+ upcomingEventsTitle: string;
125
+ /** Message shown when there are no upcoming events. Default: `'No upcoming events'`. */
126
+ noUpcomingEvents: string;
127
+ /** Word after the "+N" overflow count in a month cell — "+3 more". Default: `'more'`. */
128
+ moreEventsLabel: string;
129
+ /** Display labels for each calendar view mode. */
130
+ viewLabels: Record<string, string>;
131
+ /** Abbreviated day names starting from Monday (length 7). Derived from `locale` when not set. */
132
+ shortDayNames: string[];
133
+ /** Full day names starting from Monday (length 7). Derived from `locale` when not set. */
134
+ longDayNames: string[];
135
+ /** Screen-width breakpoint (px) below which only day view is shown. Default: `768`. */
136
+ mobileBreakpoint: number;
137
+ };
138
+ /** Default calendar configuration values. */
139
+ declare const DEFAULT_CALENDAR_CONFIG: CalendarConfig;
140
+ /**
141
+ * Injection token for the resolved calendar configuration.
142
+ *
143
+ * Prefer using {@link MN_CALENDAR_CONFIG} with `provideMnComponentConfig`
144
+ * so that settings can be managed via `mn-config.json5`. This token is
145
+ * kept for backward compatibility and manual `providers` usage.
146
+ *
147
+ * @example
148
+ * ```ts
149
+ * providers: [
150
+ * { provide: CALENDAR_CONFIG, useValue: { startHour: 8, endHour: 20, locale: 'nl-NL' } }
151
+ * ]
152
+ * ```
153
+ */
154
+ declare const CALENDAR_CONFIG: InjectionToken<CalendarConfig>;
155
+ /**
156
+ * Injection token resolved via `MnConfigService` (the `mn-config.json5` system).
157
+ *
158
+ * Use the helper {@link provideMnCalendarConfig} in the component's `providers`
159
+ * array so that calendar settings are read from the config file and support
160
+ * `$translate` markers, section scoping, and instance-id overrides.
161
+ *
162
+ * Component name in the config file: `'mn-calendar'`.
163
+ *
164
+ * @example
165
+ * ```json5
166
+ * // mn-config.json5
167
+ * {
168
+ * defaults: {
169
+ * "mn-calendar": {
170
+ * startHour: 8,
171
+ * endHour: 20,
172
+ * locale: "nl-NL",
173
+ * todayLabel: { $translate: "calendar.today" }
174
+ * }
175
+ * }
176
+ * }
177
+ * ```
178
+ */
179
+ declare const MN_CALENDAR_CONFIG: InjectionToken<CalendarConfig>;
180
+ /** Component name used to look up calendar settings in `mn-config.json5`. */
181
+ declare const MN_CALENDAR_COMPONENT_NAME = "mn-calendar";
182
+ /**
183
+ * Provider helper that wires the calendar into the `mn-config` system.
184
+ *
185
+ * Add this to the `providers` array of the component (or module) that hosts
186
+ * `<mn-calendar-view>`. It reads defaults and overrides from `mn-config.json5`
187
+ * under the key `"mn-calendar"` and provides them via {@link MN_CALENDAR_CONFIG}.
188
+ *
189
+ * @param initial — optional partial defaults merged before config-file values.
190
+ */
191
+ declare function provideMnCalendarConfig(initial?: Partial<CalendarConfig>): i0.Provider;
192
+ /**
193
+ * Merges a partial config with defaults, re-deriving day names from locale when needed.
194
+ */
195
+ declare function resolveCalendarConfig(partial?: Partial<CalendarConfig>): CalendarConfig;
196
+ /**
197
+ * Represents a half-hour row in the week/day time grid.
198
+ */
199
+ type HourRow = {
200
+ /** The hour value (e.g. 7, 8, …). */
201
+ hour: number;
202
+ /** CSS grid row start (1-based). */
203
+ topRow: number;
204
+ /** CSS grid row end (1-based, exclusive). */
205
+ bottomRow: number;
206
+ };
207
+ /**
208
+ * Represents a single day column in the week view header.
209
+ */
210
+ type ColumnDay = {
211
+ /** The date this column represents. */
212
+ date: Date;
213
+ /** Abbreviated day name (e.g. "Mon"). */
214
+ dayName: string;
215
+ /** Day-of-month number (1–31). */
216
+ dayNumber: number;
217
+ /** Whether this column is today. */
218
+ isToday: boolean;
219
+ };
220
+ /**
221
+ * Represents a single cell in the month grid.
222
+ */
223
+ type MonthItem = {
224
+ /** The date this cell represents. */
225
+ date: Date;
226
+ /** Day-of-month number (1–31). */
227
+ dayNumber: number;
228
+ /** Whether this date belongs to the currently focused month. */
229
+ isCurrentMonth: boolean;
230
+ /** Whether this date is today. */
231
+ isToday: boolean;
232
+ /** Events occurring on this date. */
233
+ events: CalendarEvent[];
234
+ };
235
+
236
+ /**
237
+ * Abstraction for date/time formatting used by calendar components.
238
+ *
239
+ * The library ships a default implementation ({@link DefaultCalendarDateFormatter})
240
+ * that uses `Intl.DateTimeFormat`. Consumers can provide their own implementation
241
+ * (e.g. wrapping `@ngx-translate`) via the {@link CALENDAR_DATE_FORMATTER} token.
242
+ *
243
+ * Locale-independent settings (day names, view labels, "Today" label) have been
244
+ * moved to {@link CalendarConfig} so they can be configured declaratively.
245
+ */
246
+ type CalendarDateFormatter = {
247
+ /** Formats an hour + minute pair (e.g. `9, 0` → `"09:00 AM"`). */
248
+ formatTimeI(hour: number, minute: number): Promise<string>;
249
+ /** Formats the time portion of a Date. Returns `''` for `undefined`. */
250
+ formatTime(date: Date | undefined): Promise<string>;
251
+ /** Formats a full date-time string as an Observable. */
252
+ formatDateTime(date: Date): Observable<string>;
253
+ /** Formats a date-only string as an Observable. */
254
+ formatDate(date: Date): Observable<string>;
255
+ /** Formats a Date as `YYYY-MM-DD` for `<input type="date">`. */
256
+ formatDateForFormControl(date: Date): string;
257
+ /** Returns `true` when both dates fall on the same calendar day. */
258
+ isSameDay(date1: Date, date2: Date): boolean;
259
+ /** Formats a Date as "Month Year" (e.g. "January 2026"). */
260
+ formatMonthName(date: Date): Promise<string>;
261
+ };
262
+ /**
263
+ * Injection token for the calendar date formatter.
264
+ *
265
+ * @example
266
+ * ```ts
267
+ * providers: [
268
+ * { provide: CALENDAR_DATE_FORMATTER, useClass: MyCustomFormatter }
269
+ * ]
270
+ * ```
271
+ */
272
+ declare const CALENDAR_DATE_FORMATTER: InjectionToken<CalendarDateFormatter>;
273
+
274
+ /**
275
+ * Default implementation of {@link CalendarDateFormatter} that uses the
276
+ * browser's `Intl.DateTimeFormat` API for locale-aware formatting.
277
+ *
278
+ * The locale is read from the injected {@link CALENDAR_CONFIG}. If no config
279
+ * is provided, `'en-US'` is used as the fallback.
280
+ *
281
+ * This service has no dependency on `@ngx-translate` or any other i18n library,
282
+ * so the calendar library works out of the box. Consumers can replace it with
283
+ * their own implementation via the `CALENDAR_DATE_FORMATTER` injection token.
284
+ */
285
+ declare class DefaultCalendarDateFormatter implements CalendarDateFormatter {
286
+ private readonly locale;
287
+ constructor();
288
+ /** Formats an hour and minute pair into a locale time string (e.g. "09:00 AM"). */
289
+ formatTimeI(hour: number, minute: number): Promise<string>;
290
+ /** Formats the time portion of a Date (e.g. "2:30 PM"). Returns empty string for undefined. */
291
+ formatTime(date: Date | undefined): Promise<string>;
292
+ /** Formats a Date as a full date-time string (e.g. "May 15, 2026, 02:30 PM"). */
293
+ formatDateTime(date: Date): Observable<string>;
294
+ /** Formats a Date as a date-only string (e.g. "May 15, 2026"). */
295
+ formatDate(date: Date): Observable<string>;
296
+ /** Formats a Date as `YYYY-MM-DD` for use in `<input type="date">` controls. */
297
+ formatDateForFormControl(date: Date): string;
298
+ /** Returns `true` if both dates fall on the same calendar day. */
299
+ isSameDay(date1: Date, date2: Date): boolean;
300
+ /** Formats a Date as "Month Year" (e.g. "January 2026"). */
301
+ formatMonthName(date: Date): Promise<string>;
302
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultCalendarDateFormatter, never>;
303
+ static ɵprov: i0.ɵɵInjectableDeclaration<DefaultCalendarDateFormatter>;
304
+ }
305
+
306
+ /**
307
+ * Service that computes the visual layout of calendar events within a
308
+ * time-grid (week or day view).
309
+ *
310
+ * Responsibilities:
311
+ * - Splitting multi-day events into per-day segments.
312
+ * - Assigning non-overlapping column indices to concurrent events.
313
+ * - Computing the width (column span) each event should occupy.
314
+ *
315
+ * This service is stateless — all state is passed via method parameters.
316
+ * Provide it per-component (not root) so each view gets its own instance.
317
+ */
318
+ declare class CalendarEventLayoutService {
319
+ /**
320
+ * Returns `true` when two time ranges overlap (exclusive boundaries).
321
+ */
322
+ eventsOverlap(startA: Date, endA: Date, startB: Date, endB: Date): boolean;
323
+ /**
324
+ * Returns all events whose time range overlaps the given `[start, end)` window.
325
+ */
326
+ getAllEventsOnSpecificTime(events: CalendarEvent[], start: Date, end: Date): CalendarEvent[];
327
+ /**
328
+ * Splits multi-day events into per-day segments that fit within the
329
+ * visible hour range (`startHour`–`endHour`) and date range.
330
+ *
331
+ * Single-day events are shallow-copied as-is. Multi-day events produce
332
+ * one segment per day with `continued` / `continuedEnd` flags set.
333
+ */
334
+ calculateMultiDayEvents(events: CalendarEvent[], startHour: number, endHour: number, rangeStart: Date, rangeEnd: Date): CalendarEvent[];
335
+ /**
336
+ * Assigns a zero-based `column` index to each event so that overlapping
337
+ * events occupy different columns.
338
+ *
339
+ * Events are processed in start-time order (longest duration first for ties).
340
+ * Each event gets the earliest column not already occupied by an overlapping event.
341
+ */
342
+ assignColumnsToEvents(events: CalendarEvent[]): void;
343
+ /**
344
+ * Assigns a `width` (column span) to each event, expanding it to fill
345
+ * unused columns to its right within the overlapping group.
346
+ */
347
+ assignWidthsToEvents(events: CalendarEvent[], scanStart: Date, scanEnd: Date): void;
348
+ /** Finds the lowest column index not occupied by any overlapping event. */
349
+ private findEarliestPossibleColumn;
350
+ /** Computes the maximum width an event can span without overlapping a neighbour to its right. */
351
+ private findBiggestPossibleWidth;
352
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalendarEventLayoutService, never>;
353
+ static ɵprov: i0.ɵɵInjectableDeclaration<CalendarEventLayoutService>;
354
+ }
355
+
356
+ /**
357
+ * Static utility methods for calendar grid positioning.
358
+ */
359
+ declare class CalendarUtility {
360
+ /**
361
+ * Converts a weekday (from `Date.getDay()`) to a 1-based Monday-first column index.
362
+ * Monday = 1, Tuesday = 2, …, Sunday = 7.
363
+ */
364
+ static getCorrectColumn(date: Date): number;
365
+ /**
366
+ * Converts an hour + minute pair to a 1-based CSS grid row index
367
+ * within a half-hour grid starting at `startHour`.
368
+ *
369
+ * Each hour occupies two rows (one per 30-minute slot).
370
+ * Formula: `(hour - startHour) * 2 + (minute >= 30 ? 1 : 0) + 1`
371
+ *
372
+ * @returns Grid row number (minimum 1).
373
+ */
374
+ static getCorrectRow(hour: number, minute: number, startHour: number): number;
375
+ }
376
+
377
+ export { CALENDAR_CONFIG, CALENDAR_DATE_FORMATTER, CalendarEventLayoutService, CalendarUtility, CalendarView, DEFAULT_CALENDAR_CONFIG, DefaultCalendarDateFormatter, MN_CALENDAR_COMPONENT_NAME, MN_CALENDAR_CONFIG, provideMnCalendarConfig, resolveCalendarConfig };
378
+ export type { CalendarButton, CalendarConfig, CalendarDateFormatter, CalendarEvent, CalendarEventData, ColorPreset, ColumnDay, CurrentTimeCalendarEvent, HourRow, MonthItem };