mn-angular-lib 1.0.175 → 1.0.176

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.175",
3
+ "version": "1.0.176",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.3",
6
6
  "@angular/core": "^21.1.3",
@@ -7592,6 +7592,14 @@ declare class MnList<T = unknown> extends MnSelectableCollectionBase<T, ListData
7592
7592
  /** Skeleton lines rendered for each placeholder item, falling back to the default two-bar layout. */
7593
7593
  get skeletonLines(): Partial<MnSkeletonProps>[];
7594
7594
  onItemClick(item: T): void;
7595
+ /**
7596
+ * Keyboard activation of a clickable item: Enter and Space open it, as they would a button.
7597
+ * Handled on keydown so Space does not scroll the page first, and only when the item itself has
7598
+ * focus, so a checkbox or button inside the item keeps its own keys.
7599
+ * @param event - The keydown on the item.
7600
+ * @param item - The item the key was pressed on.
7601
+ */
7602
+ onItemKeydown(event: KeyboardEvent, item: T): void;
7595
7603
  /**
7596
7604
  * The toolbar template the base class watches for identity changes. Prefers the
7597
7605
  * left slot, then the right, then the deprecated `toolbarTemplate`, so a list
@@ -7711,6 +7719,14 @@ declare class MnGrid<T = unknown> extends MnCollectionBase<T, GridDataSource<T>>
7711
7719
  protected get trackedToolbarTemplate(): TemplateRef<unknown> | undefined;
7712
7720
  protected collectionBody?: ElementRef<HTMLElement>;
7713
7721
  onItemClick(item: T): void;
7722
+ /**
7723
+ * Keyboard activation of a clickable item: Enter and Space open it, as they would a button.
7724
+ * Handled on keydown so Space does not scroll the page first, and only when the item itself has
7725
+ * focus, so a checkbox or button inside the item keeps its own keys.
7726
+ * @param event - The keydown on the item.
7727
+ * @param item - The item the key was pressed on.
7728
+ */
7729
+ onItemKeydown(event: KeyboardEvent, item: T): void;
7714
7730
  protected applyFilter(searchForItems: boolean): void;
7715
7731
  /** Accessible name for the scrollable grid region. */
7716
7732
  get gridRegionLabel(): string;
@@ -10111,11 +10127,16 @@ declare class MnCard {
10111
10127
  * same at every size.
10112
10128
  */
10113
10129
  declare const mnIconChipVariants: tailwind_variants.TVReturnType<{
10114
- /** `sm` for list rows, `md` for section-card headers and stat tiles, `lg` for page headers. */
10130
+ /**
10131
+ * `xs` for compact rows and inline labels, `sm` for list rows, `md` for section-card headers
10132
+ * and stat tiles, `lg` for page headers, `xl` for a lone hero or empty-state icon.
10133
+ */
10115
10134
  size: {
10135
+ xs: string;
10116
10136
  sm: string;
10117
10137
  md: string;
10118
10138
  lg: string;
10139
+ xl: string;
10119
10140
  };
10120
10141
  color: {
10121
10142
  primary: string;
@@ -10127,11 +10148,16 @@ declare const mnIconChipVariants: tailwind_variants.TVReturnType<{
10127
10148
  gray: string;
10128
10149
  };
10129
10150
  }, undefined, "inline-flex shrink-0 items-center justify-center", {
10130
- /** `sm` for list rows, `md` for section-card headers and stat tiles, `lg` for page headers. */
10151
+ /**
10152
+ * `xs` for compact rows and inline labels, `sm` for list rows, `md` for section-card headers
10153
+ * and stat tiles, `lg` for page headers, `xl` for a lone hero or empty-state icon.
10154
+ */
10131
10155
  size: {
10156
+ xs: string;
10132
10157
  sm: string;
10133
10158
  md: string;
10134
10159
  lg: string;
10160
+ xl: string;
10135
10161
  };
10136
10162
  color: {
10137
10163
  primary: string;
@@ -10143,11 +10169,16 @@ declare const mnIconChipVariants: tailwind_variants.TVReturnType<{
10143
10169
  gray: string;
10144
10170
  };
10145
10171
  }, undefined, tailwind_variants.TVReturnType<{
10146
- /** `sm` for list rows, `md` for section-card headers and stat tiles, `lg` for page headers. */
10172
+ /**
10173
+ * `xs` for compact rows and inline labels, `sm` for list rows, `md` for section-card headers
10174
+ * and stat tiles, `lg` for page headers, `xl` for a lone hero or empty-state icon.
10175
+ */
10147
10176
  size: {
10177
+ xs: string;
10148
10178
  sm: string;
10149
10179
  md: string;
10150
10180
  lg: string;
10181
+ xl: string;
10151
10182
  };
10152
10183
  color: {
10153
10184
  primary: string;
@@ -10230,6 +10261,12 @@ type MnProportionSegment = {
10230
10261
  value: number;
10231
10262
  /** Colour of this run; `gray` for the part that has no answer yet. */
10232
10263
  color: NonNullable<MnIconChipVariants['color']>;
10264
+ /**
10265
+ * Draw the run as a pale tint of its colour instead of solid. For a part that is on its way but
10266
+ * not there yet, next to a solid run of the same colour: spots asked about but not answered,
10267
+ * payments announced but not received.
10268
+ */
10269
+ soft?: boolean;
10233
10270
  };
10234
10271
  /** Configuration of one {@link MnProportionBar}. */
10235
10272
  type MnProportionBarTypes = {