mn-angular-lib 1.0.157 → 1.0.159

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.157",
3
+ "version": "1.0.159",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.3",
6
6
  "@angular/core": "^21.1.3",
@@ -2826,8 +2826,6 @@ type MnMultiSelectUIConfig = {
2826
2826
  errorMessages?: Record<string, string>;
2827
2827
  /** Text shown when no options match the search filter */
2828
2828
  noOptionsFound?: string;
2829
- /** Accessible label for the mobile sheet's close button (falls back to 'Close') */
2830
- closeLabel?: string;
2831
2829
  };
2832
2830
 
2833
2831
  declare const MN_MULTI_SELECT_CONFIG: InjectionToken<MnMultiSelectUIConfig>;
@@ -3167,6 +3165,15 @@ type MnDropdownAction = {
3167
3165
  run: () => void;
3168
3166
  /** When true the item is shown dimmed and cannot be chosen. */
3169
3167
  disabled?: boolean;
3168
+ /**
3169
+ * Marks this item as the current choice — e.g. the active language in a language
3170
+ * picker. Display-only: the item still {@link run}s and closes on choice like any
3171
+ * other, but it renders highlighted with a trailing check so the user can see which
3172
+ * one is selected without reading. The caller owns the flag (there is no single
3173
+ * source of truth inside this command menu, which holds no value); typically at most
3174
+ * one action carries it, though the component does not enforce that.
3175
+ */
3176
+ active?: boolean;
3170
3177
  /**
3171
3178
  * Tints the item's label and icon. When omitted the item uses the default foreground
3172
3179
  * ({@link danger} still forces the destructive red). Lets a host carry a per-item
@@ -3292,8 +3299,6 @@ type MnDropdownUIConfig = {
3292
3299
  ariaLabel?: string;
3293
3300
  /** Default heading for the menu/sheet. */
3294
3301
  menuLabel?: string;
3295
- /** Accessible label for the mobile sheet's close button (falls back to "Close"). */
3296
- closeLabel?: string;
3297
3302
  /** Default placeholder for the search input (falls back to "Search..."). */
3298
3303
  searchPlaceholder?: string;
3299
3304
  /** Default empty-state text when the filter matches nothing (falls back to "No results"). */
@@ -3315,6 +3320,8 @@ declare const MN_DROPDOWN_CONFIG: InjectionToken<MnDropdownUIConfig>;
3315
3320
  declare class MnDropdown implements OnInit {
3316
3321
  datasource: MnDropdownProps;
3317
3322
  protected uiConfig: MnDropdownUIConfig;
3323
+ /** Lucide data for the trailing check shown on the {@link MnDropdownAction.active} row. */
3324
+ protected readonly checkIcon: LucideIconData;
3318
3325
  private readonly configService;
3319
3326
  private readonly sectionPath;
3320
3327
  private readonly explicitInstanceId;
@@ -3502,8 +3509,6 @@ declare class MnDropdown implements OnInit {
3502
3509
  } | null;
3503
3510
  /** Heading shown above the menu/sheet, or null when none is configured. */
3504
3511
  get menuLabel(): string | null;
3505
- /** Accessible label for the sheet's close button. */
3506
- get closeLabel(): string;
3507
3512
  /** Placeholder shown in the search input, preferring a resolved translation key. */
3508
3513
  get searchPlaceholder(): string;
3509
3514
  /** Text shown in place of the list when the filter matches no actions. */
@@ -4816,7 +4821,7 @@ type MnTableRowAction<T> = {
4816
4821
  /** Predicate deciding whether the action is disabled (shown but non-interactive) for a row. */
4817
4822
  disabled?: (row: T) => boolean;
4818
4823
  /**
4819
- * Tints the action's button and its ⋯-menu item. Defaults to `'secondary'` (or
4824
+ * Tints the action's button and its ⋯-menu item. Defaults to `'primary'` (or
4820
4825
  * `'danger'` when {@link danger} is set), matching the built-in look. Whatever colour
4821
4826
  * an action shows inline is carried into the collapsed bottom-sheet item too.
4822
4827
  */
@@ -5233,7 +5238,7 @@ declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDat
5233
5238
  /**
5234
5239
  * The effective colour for an action, used identically by the inline button and the
5235
5240
  * collapsed ⋯-menu item so the two never diverge: an explicit `color`, else `'danger'`
5236
- * for a destructive action, else the default `'secondary'`.
5241
+ * for a destructive action, else the default `'primary'`.
5237
5242
  */
5238
5243
  rowActionColor(action: MnTableRowAction<T>, row: T): MnDropdownActionColor;
5239
5244
  /** Invokes an action for a row. */