mn-angular-lib 1.0.118 → 1.0.120

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.118",
3
+ "version": "1.0.120",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.3",
6
6
  "@angular/core": "^21.1.3"
@@ -244,6 +244,7 @@ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
244
244
  outline: string;
245
245
  text: string;
246
246
  textUnderline: string;
247
+ ghost: string;
247
248
  };
248
249
  color: {
249
250
  primary: string;
@@ -265,6 +266,11 @@ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
265
266
  three_xl: string;
266
267
  four_xl: string;
267
268
  };
269
+ shape: {
270
+ default: string;
271
+ circle: string;
272
+ square: string;
273
+ };
268
274
  disabled: {
269
275
  true: string;
270
276
  };
@@ -289,6 +295,7 @@ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
289
295
  outline: string;
290
296
  text: string;
291
297
  textUnderline: string;
298
+ ghost: string;
292
299
  };
293
300
  color: {
294
301
  primary: string;
@@ -310,6 +317,11 @@ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
310
317
  three_xl: string;
311
318
  four_xl: string;
312
319
  };
320
+ shape: {
321
+ default: string;
322
+ circle: string;
323
+ square: string;
324
+ };
313
325
  disabled: {
314
326
  true: string;
315
327
  };
@@ -334,6 +346,7 @@ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
334
346
  outline: string;
335
347
  text: string;
336
348
  textUnderline: string;
349
+ ghost: string;
337
350
  };
338
351
  color: {
339
352
  primary: string;
@@ -355,6 +368,11 @@ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
355
368
  three_xl: string;
356
369
  four_xl: string;
357
370
  };
371
+ shape: {
372
+ default: string;
373
+ circle: string;
374
+ square: string;
375
+ };
358
376
  disabled: {
359
377
  true: string;
360
378
  };
@@ -375,6 +393,7 @@ type MnButtonTypes = {
375
393
  size: MnButtonVariants['size'];
376
394
  variant: MnButtonVariants['variant'];
377
395
  borderRadius: MnButtonVariants['borderRadius'];
396
+ shape?: MnButtonVariants['shape'];
378
397
  color: MnButtonVariants['color'];
379
398
  disabled?: MnButtonVariants['disabled'];
380
399
  loading?: MnButtonVariants['loading'];
@@ -2139,6 +2158,16 @@ type MnDatetimeProps = {
2139
2158
  fullWidth?: MnDatetimeVariants['fullWidth'];
2140
2159
  /** Whether to apply hover effect (cursor pointer and background change) */
2141
2160
  hover?: MnDatetimeVariants['hover'];
2161
+ /**
2162
+ * Render the control as an icon-only button — a calendar icon in a bordered box
2163
+ * — instead of the full input that shows the value. The native picker still
2164
+ * opens on click and the field stays a working form control; only the display
2165
+ * collapses to the icon. Off by default.
2166
+ *
2167
+ * There is no visible text to name the control, so supply a `label`,
2168
+ * `ariaLabel`, or `placeholder` for its accessible name.
2169
+ */
2170
+ iconOnly?: boolean;
2142
2171
  /** Custom error messages mapped by validator error key */
2143
2172
  errorMessages?: MnDatetimeErrorMessagesData;
2144
2173
  /** Fallback error message when no specific message is found for an error */
@@ -2199,7 +2228,24 @@ declare class MnDatetime implements OnInit {
2199
2228
  get resolvedId(): string;
2200
2229
  get resolvedName(): string | null;
2201
2230
  get resolvedMode(): MnDatetimeMode;
2231
+ /** Whether the control renders as an icon-only button rather than a full input. */
2232
+ get iconOnly(): boolean;
2233
+ /**
2234
+ * Accessible name for the input. Prefers an explicit ariaLabel/label; for the
2235
+ * icon-only variant — which has no visible text — it falls back to the
2236
+ * placeholder so the button is never left unnamed.
2237
+ */
2238
+ get resolvedAriaLabel(): string | null;
2239
+ /** Lucide icon size (px) tracking the field size, used only in the icon-only variant. */
2240
+ get iconSize(): number;
2202
2241
  get inputClasses(): string;
2242
+ /**
2243
+ * Classes for the icon-only box: the same border/background/radius/hover the full
2244
+ * input would wear (reused from the variant), made a positioning context for the
2245
+ * overlaid input, with a `focus-within` ring standing in for the transparent
2246
+ * input's own focus outline.
2247
+ */
2248
+ get iconBoxClasses(): string;
2203
2249
  static ɵfac: i0.ɵɵFactoryDeclaration<MnDatetime, never>;
2204
2250
  static ɵcmp: i0.ɵɵComponentDeclaration<MnDatetime, "mn-lib-datetime", never, { "props": { "alias": "props"; "required": true; }; }, {}, never, never, true, never>;
2205
2251
  }
@@ -5395,6 +5441,8 @@ type CalendarConfig = {
5395
5441
  upcomingEventsTitle: string;
5396
5442
  /** Message shown when there are no upcoming events. Default: `'No upcoming events'`. */
5397
5443
  noUpcomingEvents: string;
5444
+ /** Word after the "+N" overflow count in a month cell — "+3 more". Default: `'more'`. */
5445
+ moreEventsLabel: string;
5398
5446
  /** Display labels for each calendar view mode. */
5399
5447
  viewLabels: Record<string, string>;
5400
5448
  /** Abbreviated day names starting from Monday (length 7). Derived from `locale` when not set. */
@@ -5645,6 +5693,8 @@ declare class CalendarWeekComponent implements OnInit, OnDestroy {
5645
5693
  totalRows: number;
5646
5694
  currentTimeRow: number;
5647
5695
  currentTimeCol: string;
5696
+ /** The current time, formatted for the label riding the now-line. */
5697
+ currentTimeLabel: string;
5648
5698
  gridTemplateColumns: string;
5649
5699
  private dayColumnMap;
5650
5700
  private events;
@@ -5712,6 +5762,8 @@ declare class CalendarDayComponent implements OnInit, OnDestroy {
5712
5762
  totalRows: number;
5713
5763
  totalColumns: number;
5714
5764
  currentTimeRow: number;
5765
+ /** The current time, formatted for the label riding the now-line. */
5766
+ currentTimeLabel: string;
5715
5767
  isToday: boolean;
5716
5768
  dayName: string;
5717
5769
  private events;
@@ -5761,7 +5813,10 @@ declare class CalendarMonthComponent implements OnInit, OnDestroy {
5761
5813
  /** Emits the date of a clicked day cell. */
5762
5814
  dayClicked: EventEmitter<Date>;
5763
5815
  monthItems: MonthItem[];
5764
- longDayNames: string[];
5816
+ /** Short weekday column headers (e.g. "Mon"), kept compact for the narrow columns. */
5817
+ weekdayLabels: string[];
5818
+ /** Word shown after the "+N" overflow count (e.g. "more"), from config. */
5819
+ moreEventsLabel: string;
5765
5820
  private events;
5766
5821
  private destroy$;
5767
5822
  private formatter;