mn-angular-lib 1.0.175 → 1.0.177

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.177",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.3",
6
6
  "@angular/core": "^21.1.3",
@@ -4880,6 +4880,8 @@ declare abstract class MnCollectionBase<T, DS extends MnCollectionDataSource<T>>
4880
4880
  get collectionState(): MnCollectionState;
4881
4881
  /** Whether the collection is currently loading (skeleton placeholders shown). */
4882
4882
  get isLoadingState(): boolean;
4883
+ /** Accessible name for the loading placeholder, and the text the status region announces. */
4884
+ get loadingLabel(): string;
4883
4885
  /** Whether loading failed (the error placeholder is shown instead of rows/empty). */
4884
4886
  get isErrorState(): boolean;
4885
4887
  /** Whether the component delegates search to the consumer (server-side). */
@@ -7592,6 +7594,14 @@ declare class MnList<T = unknown> extends MnSelectableCollectionBase<T, ListData
7592
7594
  /** Skeleton lines rendered for each placeholder item, falling back to the default two-bar layout. */
7593
7595
  get skeletonLines(): Partial<MnSkeletonProps>[];
7594
7596
  onItemClick(item: T): void;
7597
+ /**
7598
+ * Keyboard activation of a clickable item: Enter and Space open it, as they would a button.
7599
+ * Handled on keydown so Space does not scroll the page first, and only when the item itself has
7600
+ * focus, so a checkbox or button inside the item keeps its own keys.
7601
+ * @param event - The keydown on the item.
7602
+ * @param item - The item the key was pressed on.
7603
+ */
7604
+ onItemKeydown(event: KeyboardEvent, item: T): void;
7595
7605
  /**
7596
7606
  * The toolbar template the base class watches for identity changes. Prefers the
7597
7607
  * left slot, then the right, then the deprecated `toolbarTemplate`, so a list
@@ -7711,11 +7721,17 @@ declare class MnGrid<T = unknown> extends MnCollectionBase<T, GridDataSource<T>>
7711
7721
  protected get trackedToolbarTemplate(): TemplateRef<unknown> | undefined;
7712
7722
  protected collectionBody?: ElementRef<HTMLElement>;
7713
7723
  onItemClick(item: T): void;
7724
+ /**
7725
+ * Keyboard activation of a clickable item: Enter and Space open it, as they would a button.
7726
+ * Handled on keydown so Space does not scroll the page first, and only when the item itself has
7727
+ * focus, so a checkbox or button inside the item keeps its own keys.
7728
+ * @param event - The keydown on the item.
7729
+ * @param item - The item the key was pressed on.
7730
+ */
7731
+ onItemKeydown(event: KeyboardEvent, item: T): void;
7714
7732
  protected applyFilter(searchForItems: boolean): void;
7715
7733
  /** Accessible name for the scrollable grid region. */
7716
7734
  get gridRegionLabel(): string;
7717
- /** Accessible name for the loading placeholder. */
7718
- get loadingLabel(): string;
7719
7735
  static ɵfac: i0.ɵɵFactoryDeclaration<MnGrid<any>, never>;
7720
7736
  static ɵcmp: i0.ɵɵComponentDeclaration<MnGrid<any>, "mn-grid", never, {}, { "itemClick": "itemClick"; }, never, never, true, never>;
7721
7737
  }
@@ -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 = {