mn-angular-lib 1.0.114 → 1.0.116

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": "1.0.114",
3
+ "version": "1.0.116",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.3",
6
6
  "@angular/core": "^21.1.3"
@@ -537,6 +537,11 @@ type MnInputBaseProps = {
537
537
  label?: string;
538
538
  /** Placeholder text (overrides uiConfig.placeholder when provided) */
539
539
  placeholder?: string;
540
+ /**
541
+ * ARIA label for screen readers (overrides uiConfig.ariaLabel when provided).
542
+ * Use it to give an accessible name to an input rendered without a visible label.
543
+ */
544
+ ariaLabel?: string;
540
545
  /** Input mask (e.g., '(000) 000-0000') */
541
546
  mask?: string;
542
547
  /** Autocomplete attribute */
@@ -5378,8 +5383,12 @@ type CalendarConfig = {
5378
5383
  locale: string;
5379
5384
  /** Label for the "Today" navigation button. Default: `'Today'`. */
5380
5385
  todayLabel: string;
5381
- /** Placeholder for the date picker the selector bar shows on narrow screens. Default: `'Pick a date'`. */
5386
+ /** Placeholder for the toolbar's date picker. Default: `'Pick a date'`. */
5382
5387
  pickDateLabel: string;
5388
+ /** Accessible name for the toolbar's back arrow. Default: `'Previous'`. */
5389
+ previousLabel: string;
5390
+ /** Accessible name for the toolbar's forward arrow. Default: `'Next'`. */
5391
+ nextLabel: string;
5383
5392
  /** Title shown above the upcoming-events sidebar. Default: `'Upcoming events'`. */
5384
5393
  upcomingEventsTitle: string;
5385
5394
  /** Message shown when there are no upcoming events. Default: `'No upcoming events'`. */
@@ -5533,6 +5542,8 @@ declare class CalendarViewComponent implements OnInit, OnDestroy {
5533
5542
  /** Emits when the action button is clicked. */
5534
5543
  ButtonClickedEvent: EventEmitter<void>;
5535
5544
  readonly CalendarView: typeof CalendarView;
5545
+ /** Ties the view tabs to the panel they control, uniquely per calendar. */
5546
+ readonly panelId: string;
5536
5547
  currentView: CalendarView;
5537
5548
  focusDay: Date;
5538
5549
  viewOptions: {
@@ -5557,8 +5568,27 @@ declare class CalendarViewComponent implements OnInit, OnDestroy {
5557
5568
  ngOnDestroy(): void;
5558
5569
  /** Switches the active view. On mobile, forces day view. */
5559
5570
  switchView(view: CalendarView): void;
5560
- /** Handles a day selection from the date-selector bar. */
5561
- onDateStripChange(date: Date): void;
5571
+ /**
5572
+ * Names the stretch of time on screen — the day, the week, or the month. It is
5573
+ * the toolbar's orientation: without it, navigating leaves you somewhere with
5574
+ * no label. Announced politely, so stepping through says where you landed.
5575
+ */
5576
+ get periodLabel(): string;
5577
+ /** The focus day as YYYY-MM-DD, for the toolbar's date picker. */
5578
+ get focusDayString(): string;
5579
+ /**
5580
+ * Steps the calendar by one unit of whatever is on screen: a day in day view,
5581
+ * a week in week view, a month in month view. Navigating by the visible unit is
5582
+ * what makes one pair of arrows serve all three.
5583
+ */
5584
+ navigate(step: number): void;
5585
+ /** Returns the calendar to today. */
5586
+ goToToday(): void;
5587
+ /**
5588
+ * Handles the toolbar date picker.
5589
+ * @param value The date string in YYYY-MM-DD format.
5590
+ */
5591
+ onPickDate(value: string): void;
5562
5592
  /** Handles a day click from the month view — switches to day view. */
5563
5593
  onMonthDayClick(date: Date): void;
5564
5594
  /** Forwards a child event click to the parent output. */
@@ -5570,6 +5600,13 @@ declare class CalendarViewComponent implements OnInit, OnDestroy {
5570
5600
  /** Rebuilds view options and labels from the current config. */
5571
5601
  private rebuildFromConfig;
5572
5602
  private checkMobileView;
5603
+ /**
5604
+ * Adds months without the end-of-month overflow `setMonth` alone produces —
5605
+ * 31 January plus one month is 28 February, not 3 March.
5606
+ */
5607
+ private addMonths;
5608
+ /** Monday of the week containing `date`, matching the grid the views draw. */
5609
+ private startOfWeek;
5573
5610
  private setFocusDay;
5574
5611
  static ɵfac: i0.ɵɵFactoryDeclaration<CalendarViewComponent, never>;
5575
5612
  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>;