mn-angular-lib 2.0.46 → 2.0.48

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mn-angular-lib",
3
- "version": "2.0.46",
3
+ "version": "2.0.48",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.1.7",
6
6
  "@angular/core": "^22.1.7",
@@ -508,18 +508,32 @@ export declare class UpcomingEventsComponent implements OnInit, OnChanges, OnDes
508
508
  /**
509
509
  * Renders a single row in the upcoming-events sidebar.
510
510
  * Shows the event title, formatted date/time, and optional description.
511
+ *
512
+ * Times are reformatted whenever the `event` input changes and whenever the
513
+ * locale changes: parents often reuse the row with `@for (…; track $index)`, so
514
+ * formatting only in `ngOnInit` left stale times on the rail after a day switch.
511
515
  */
512
- export declare class UpcomingEventRowComponent implements OnInit {
516
+ export declare class UpcomingEventRowComponent implements OnInit, OnChanges {
513
517
  /** The event to display. */
514
518
  event: CalendarEvent;
515
519
  /** Emits the event when this row is clicked. */
516
520
  eventClicked: EventEmitter<CalendarEvent>;
517
521
  formattedDate: string;
518
522
  private formatter;
519
- /** Marks the view when the awaited time string lands (see {@link ngOnInit}). */
523
+ /** Marks the view when the awaited time string lands (see {@link refreshFormattedDate}). */
520
524
  private readonly cdr;
525
+ private readonly lang;
526
+ private readonly destroyRef;
527
+ /** Bumps so an in-flight format from a previous event/locale is ignored. */
528
+ private formatGeneration;
521
529
  constructor();
522
- ngOnInit(): Promise<void>;
530
+ ngOnInit(): void;
531
+ ngOnChanges(changes: SimpleChanges): void;
532
+ /**
533
+ * Formats the current event's start/end times into {@link formattedDate}.
534
+ * Generation-guarded so a slow format for an older event cannot overwrite a newer one.
535
+ */
536
+ private refreshFormattedDate;
523
537
  static ɵfac: i0.ɵɵFactoryDeclaration<UpcomingEventRowComponent, never>;
524
538
  static ɵcmp: i0.ɵɵComponentDeclaration<UpcomingEventRowComponent, "mn-upcoming-event-row", never, {
525
539
  "event": {