mn-angular-lib 1.0.117 → 1.0.119
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
|
@@ -2139,6 +2139,16 @@ type MnDatetimeProps = {
|
|
|
2139
2139
|
fullWidth?: MnDatetimeVariants['fullWidth'];
|
|
2140
2140
|
/** Whether to apply hover effect (cursor pointer and background change) */
|
|
2141
2141
|
hover?: MnDatetimeVariants['hover'];
|
|
2142
|
+
/**
|
|
2143
|
+
* Render the control as an icon-only button — a calendar icon in a bordered box
|
|
2144
|
+
* — instead of the full input that shows the value. The native picker still
|
|
2145
|
+
* opens on click and the field stays a working form control; only the display
|
|
2146
|
+
* collapses to the icon. Off by default.
|
|
2147
|
+
*
|
|
2148
|
+
* There is no visible text to name the control, so supply a `label`,
|
|
2149
|
+
* `ariaLabel`, or `placeholder` for its accessible name.
|
|
2150
|
+
*/
|
|
2151
|
+
iconOnly?: boolean;
|
|
2142
2152
|
/** Custom error messages mapped by validator error key */
|
|
2143
2153
|
errorMessages?: MnDatetimeErrorMessagesData;
|
|
2144
2154
|
/** Fallback error message when no specific message is found for an error */
|
|
@@ -2199,7 +2209,24 @@ declare class MnDatetime implements OnInit {
|
|
|
2199
2209
|
get resolvedId(): string;
|
|
2200
2210
|
get resolvedName(): string | null;
|
|
2201
2211
|
get resolvedMode(): MnDatetimeMode;
|
|
2212
|
+
/** Whether the control renders as an icon-only button rather than a full input. */
|
|
2213
|
+
get iconOnly(): boolean;
|
|
2214
|
+
/**
|
|
2215
|
+
* Accessible name for the input. Prefers an explicit ariaLabel/label; for the
|
|
2216
|
+
* icon-only variant — which has no visible text — it falls back to the
|
|
2217
|
+
* placeholder so the button is never left unnamed.
|
|
2218
|
+
*/
|
|
2219
|
+
get resolvedAriaLabel(): string | null;
|
|
2220
|
+
/** Lucide icon size (px) tracking the field size, used only in the icon-only variant. */
|
|
2221
|
+
get iconSize(): number;
|
|
2202
2222
|
get inputClasses(): string;
|
|
2223
|
+
/**
|
|
2224
|
+
* Classes for the icon-only box: the same border/background/radius/hover the full
|
|
2225
|
+
* input would wear (reused from the variant), made a positioning context for the
|
|
2226
|
+
* overlaid input, with a `focus-within` ring standing in for the transparent
|
|
2227
|
+
* input's own focus outline.
|
|
2228
|
+
*/
|
|
2229
|
+
get iconBoxClasses(): string;
|
|
2203
2230
|
static ɵfac: i0.ɵɵFactoryDeclaration<MnDatetime, never>;
|
|
2204
2231
|
static ɵcmp: i0.ɵɵComponentDeclaration<MnDatetime, "mn-lib-datetime", never, { "props": { "alias": "props"; "required": true; }; }, {}, never, never, true, never>;
|
|
2205
2232
|
}
|
|
@@ -5395,6 +5422,8 @@ type CalendarConfig = {
|
|
|
5395
5422
|
upcomingEventsTitle: string;
|
|
5396
5423
|
/** Message shown when there are no upcoming events. Default: `'No upcoming events'`. */
|
|
5397
5424
|
noUpcomingEvents: string;
|
|
5425
|
+
/** Word after the "+N" overflow count in a month cell — "+3 more". Default: `'more'`. */
|
|
5426
|
+
moreEventsLabel: string;
|
|
5398
5427
|
/** Display labels for each calendar view mode. */
|
|
5399
5428
|
viewLabels: Record<string, string>;
|
|
5400
5429
|
/** Abbreviated day names starting from Monday (length 7). Derived from `locale` when not set. */
|
|
@@ -5645,6 +5674,8 @@ declare class CalendarWeekComponent implements OnInit, OnDestroy {
|
|
|
5645
5674
|
totalRows: number;
|
|
5646
5675
|
currentTimeRow: number;
|
|
5647
5676
|
currentTimeCol: string;
|
|
5677
|
+
/** The current time, formatted for the label riding the now-line. */
|
|
5678
|
+
currentTimeLabel: string;
|
|
5648
5679
|
gridTemplateColumns: string;
|
|
5649
5680
|
private dayColumnMap;
|
|
5650
5681
|
private events;
|
|
@@ -5712,6 +5743,8 @@ declare class CalendarDayComponent implements OnInit, OnDestroy {
|
|
|
5712
5743
|
totalRows: number;
|
|
5713
5744
|
totalColumns: number;
|
|
5714
5745
|
currentTimeRow: number;
|
|
5746
|
+
/** The current time, formatted for the label riding the now-line. */
|
|
5747
|
+
currentTimeLabel: string;
|
|
5715
5748
|
isToday: boolean;
|
|
5716
5749
|
dayName: string;
|
|
5717
5750
|
private events;
|
|
@@ -5761,7 +5794,10 @@ declare class CalendarMonthComponent implements OnInit, OnDestroy {
|
|
|
5761
5794
|
/** Emits the date of a clicked day cell. */
|
|
5762
5795
|
dayClicked: EventEmitter<Date>;
|
|
5763
5796
|
monthItems: MonthItem[];
|
|
5764
|
-
|
|
5797
|
+
/** Short weekday column headers (e.g. "Mon"), kept compact for the narrow columns. */
|
|
5798
|
+
weekdayLabels: string[];
|
|
5799
|
+
/** Word shown after the "+N" overflow count (e.g. "more"), from config. */
|
|
5800
|
+
moreEventsLabel: string;
|
|
5765
5801
|
private events;
|
|
5766
5802
|
private destroy$;
|
|
5767
5803
|
private formatter;
|