mn-angular-lib 2.0.48 → 2.0.50

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.48",
3
+ "version": "2.0.50",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.1.7",
6
6
  "@angular/core": "^22.1.7",
@@ -361,8 +361,23 @@ export declare class CalendarUtility {
361
361
  * Each hour occupies two rows (one per 30-minute slot).
362
362
  * Formula: `(hour - startHour) * 2 + (minute >= 30 ? 1 : 0) + 1`
363
363
  *
364
+ * Times before `startHour` clamp to row 1 so an event that began earlier still
365
+ * paints from the top of the visible grid. For the now-marker use
366
+ * {@link getCurrentTimeRow} instead — clamping there pinned a pre-open clock
367
+ * on the first row (l2tTCjLe / s1DBWlDE).
368
+ *
364
369
  * @returns Grid row number (minimum 1).
365
370
  */
366
371
  static getCorrectRow(hour: number, minute: number, startHour: number): number;
372
+ /**
373
+ * Grid row for the live now-marker, or `0` (hide) when “now” is outside the
374
+ * visible `[startHour, endHour)` window (l2tTCjLe / s1DBWlDE / G6pB4jWN family).
375
+ * @param hour Local hour of day (0–23).
376
+ * @param minute Local minute.
377
+ * @param startHour Inclusive first visible hour.
378
+ * @param endHour Exclusive last visible hour (grid ends when this hour begins).
379
+ * @returns A positive row, or 0 to hide the marker.
380
+ */
381
+ static getCurrentTimeRow(hour: number, minute: number, startHour: number, endHour: number): number;
367
382
  }
368
383
  export type { CalendarButton, CalendarConfig, CalendarDateFormatter, CalendarEvent, CalendarEventData, ColorPreset, ColumnDay, CurrentTimeCalendarEvent, HourRow, MonthItem };