mn-angular-lib 1.0.114 → 1.0.115
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
|
@@ -5378,8 +5378,12 @@ type CalendarConfig = {
|
|
|
5378
5378
|
locale: string;
|
|
5379
5379
|
/** Label for the "Today" navigation button. Default: `'Today'`. */
|
|
5380
5380
|
todayLabel: string;
|
|
5381
|
-
/** Placeholder for the date picker
|
|
5381
|
+
/** Placeholder for the toolbar's date picker. Default: `'Pick a date'`. */
|
|
5382
5382
|
pickDateLabel: string;
|
|
5383
|
+
/** Accessible name for the toolbar's back arrow. Default: `'Previous'`. */
|
|
5384
|
+
previousLabel: string;
|
|
5385
|
+
/** Accessible name for the toolbar's forward arrow. Default: `'Next'`. */
|
|
5386
|
+
nextLabel: string;
|
|
5383
5387
|
/** Title shown above the upcoming-events sidebar. Default: `'Upcoming events'`. */
|
|
5384
5388
|
upcomingEventsTitle: string;
|
|
5385
5389
|
/** Message shown when there are no upcoming events. Default: `'No upcoming events'`. */
|
|
@@ -5533,6 +5537,8 @@ declare class CalendarViewComponent implements OnInit, OnDestroy {
|
|
|
5533
5537
|
/** Emits when the action button is clicked. */
|
|
5534
5538
|
ButtonClickedEvent: EventEmitter<void>;
|
|
5535
5539
|
readonly CalendarView: typeof CalendarView;
|
|
5540
|
+
/** Ties the view tabs to the panel they control, uniquely per calendar. */
|
|
5541
|
+
readonly panelId: string;
|
|
5536
5542
|
currentView: CalendarView;
|
|
5537
5543
|
focusDay: Date;
|
|
5538
5544
|
viewOptions: {
|
|
@@ -5557,8 +5563,27 @@ declare class CalendarViewComponent implements OnInit, OnDestroy {
|
|
|
5557
5563
|
ngOnDestroy(): void;
|
|
5558
5564
|
/** Switches the active view. On mobile, forces day view. */
|
|
5559
5565
|
switchView(view: CalendarView): void;
|
|
5560
|
-
/**
|
|
5561
|
-
|
|
5566
|
+
/**
|
|
5567
|
+
* Names the stretch of time on screen — the day, the week, or the month. It is
|
|
5568
|
+
* the toolbar's orientation: without it, navigating leaves you somewhere with
|
|
5569
|
+
* no label. Announced politely, so stepping through says where you landed.
|
|
5570
|
+
*/
|
|
5571
|
+
get periodLabel(): string;
|
|
5572
|
+
/** The focus day as YYYY-MM-DD, for the toolbar's date picker. */
|
|
5573
|
+
get focusDayString(): string;
|
|
5574
|
+
/**
|
|
5575
|
+
* Steps the calendar by one unit of whatever is on screen: a day in day view,
|
|
5576
|
+
* a week in week view, a month in month view. Navigating by the visible unit is
|
|
5577
|
+
* what makes one pair of arrows serve all three.
|
|
5578
|
+
*/
|
|
5579
|
+
navigate(step: number): void;
|
|
5580
|
+
/** Returns the calendar to today. */
|
|
5581
|
+
goToToday(): void;
|
|
5582
|
+
/**
|
|
5583
|
+
* Handles the toolbar date picker.
|
|
5584
|
+
* @param value The date string in YYYY-MM-DD format.
|
|
5585
|
+
*/
|
|
5586
|
+
onPickDate(value: string): void;
|
|
5562
5587
|
/** Handles a day click from the month view — switches to day view. */
|
|
5563
5588
|
onMonthDayClick(date: Date): void;
|
|
5564
5589
|
/** Forwards a child event click to the parent output. */
|
|
@@ -5570,6 +5595,13 @@ declare class CalendarViewComponent implements OnInit, OnDestroy {
|
|
|
5570
5595
|
/** Rebuilds view options and labels from the current config. */
|
|
5571
5596
|
private rebuildFromConfig;
|
|
5572
5597
|
private checkMobileView;
|
|
5598
|
+
/**
|
|
5599
|
+
* Adds months without the end-of-month overflow `setMonth` alone produces —
|
|
5600
|
+
* 31 January plus one month is 28 February, not 3 March.
|
|
5601
|
+
*/
|
|
5602
|
+
private addMonths;
|
|
5603
|
+
/** Monday of the week containing `date`, matching the grid the views draw. */
|
|
5604
|
+
private startOfWeek;
|
|
5573
5605
|
private setFocusDay;
|
|
5574
5606
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarViewComponent, never>;
|
|
5575
5607
|
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>;
|