mn-angular-lib 1.0.158 → 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.158",
3
+ "version": "1.0.159",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.3",
6
6
  "@angular/core": "^21.1.3",
@@ -3165,6 +3165,15 @@ type MnDropdownAction = {
3165
3165
  run: () => void;
3166
3166
  /** When true the item is shown dimmed and cannot be chosen. */
3167
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;
3168
3177
  /**
3169
3178
  * Tints the item's label and icon. When omitted the item uses the default foreground
3170
3179
  * ({@link danger} still forces the destructive red). Lets a host carry a per-item
@@ -3311,6 +3320,8 @@ declare const MN_DROPDOWN_CONFIG: InjectionToken<MnDropdownUIConfig>;
3311
3320
  declare class MnDropdown implements OnInit {
3312
3321
  datasource: MnDropdownProps;
3313
3322
  protected uiConfig: MnDropdownUIConfig;
3323
+ /** Lucide data for the trailing check shown on the {@link MnDropdownAction.active} row. */
3324
+ protected readonly checkIcon: LucideIconData;
3314
3325
  private readonly configService;
3315
3326
  private readonly sectionPath;
3316
3327
  private readonly explicitInstanceId;
@@ -4810,7 +4821,7 @@ type MnTableRowAction<T> = {
4810
4821
  /** Predicate deciding whether the action is disabled (shown but non-interactive) for a row. */
4811
4822
  disabled?: (row: T) => boolean;
4812
4823
  /**
4813
- * 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
4814
4825
  * `'danger'` when {@link danger} is set), matching the built-in look. Whatever colour
4815
4826
  * an action shows inline is carried into the collapsed bottom-sheet item too.
4816
4827
  */
@@ -5227,7 +5238,7 @@ declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDat
5227
5238
  /**
5228
5239
  * The effective colour for an action, used identically by the inline button and the
5229
5240
  * collapsed ⋯-menu item so the two never diverge: an explicit `color`, else `'danger'`
5230
- * for a destructive action, else the default `'secondary'`.
5241
+ * for a destructive action, else the default `'primary'`.
5231
5242
  */
5232
5243
  rowActionColor(action: MnTableRowAction<T>, row: T): MnDropdownActionColor;
5233
5244
  /** Invokes an action for a row. */