mn-angular-lib 1.0.171 → 1.0.173

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.
@@ -5513,6 +5513,16 @@ declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDat
5513
5513
  * @param column - The filtered column.
5514
5514
  */
5515
5515
  filterLabel(column: ColumnDefinition<T>): string;
5516
+ /**
5517
+ * A string column's header text. `headerKey` is translated here, at render time, rather than
5518
+ * only in `resolveTranslationKeys`: that runs on init and on a locale change, so a column a
5519
+ * consumer adds afterwards (a permission-gated actions or image column) kept an empty header,
5520
+ * which a screen reader announces as a nameless column.
5521
+ * @param column - The column whose header is shown.
5522
+ * @returns The translated key when the column has one, otherwise its literal header, or an
5523
+ * empty string for a template header (rendered through its own outlet instead).
5524
+ */
5525
+ headerText(column: ColumnDefinition<T>): string;
5516
5526
  isSortable(column: ColumnDefinition<T>): boolean;
5517
5527
  constructor();
5518
5528
  /**
@@ -5527,6 +5537,8 @@ declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDat
5527
5537
  get selectionSummaryToggleLabel(): string;
5528
5538
  /** Placeholder and accessible name for the search box. */
5529
5539
  get searchPlaceholderLabel(): string;
5540
+ /** Screen-reader-only header text of the selection column, so that column is never nameless. */
5541
+ get selectionColumnLabel(): string;
5530
5542
  /** Accessible name for the scrollable table region. */
5531
5543
  get tableRegionLabel(): string;
5532
5544
  /**
@@ -9473,6 +9485,681 @@ declare class MnSegmented {
9473
9485
  static ɵcmp: i0.ɵɵComponentDeclaration<MnSegmented, "mn-segmented", never, { "dataSource": { "alias": "dataSource"; "required": true; }; "value": { "alias": "value"; "required": false; }; "justified": { "alias": "justified"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
9474
9486
  }
9475
9487
 
9488
+ /**
9489
+ * Styling for {@link MnCard}, as tailwind-variants slots: `root` is the card element
9490
+ * itself, `accent` the optional bar along its top edge, `header` the heading row and
9491
+ * `title` the `h2` inside it.
9492
+ *
9493
+ * Theme tokens only, so the card holds up in light and dark. The surface reads the
9494
+ * consumer's `--color-base-card` when it defines one (a card ground a step off the
9495
+ * page background) and falls back to `base-100` otherwise, the same fallback device
9496
+ * `mnBadge` uses for its `-text` tokens.
9497
+ */
9498
+ declare const mnCardVariants: tailwind_variants.TVReturnType<{
9499
+ /**
9500
+ * Inner padding, and with it the gap between the card's children: a tile needs
9501
+ * less air than a section card, and a section card that had to say `gap-4` on
9502
+ * every use would drift.
9503
+ */
9504
+ padding: {
9505
+ sm: {
9506
+ root: string;
9507
+ };
9508
+ md: {
9509
+ root: string;
9510
+ };
9511
+ lg: {
9512
+ root: string;
9513
+ };
9514
+ };
9515
+ /** How the children flow: stacked (the default) or on one line, centred. */
9516
+ layout: {
9517
+ column: {
9518
+ root: string;
9519
+ };
9520
+ row: {
9521
+ root: string;
9522
+ };
9523
+ };
9524
+ /**
9525
+ * Hover response. `shadow` is a little depth for a card that only sits there;
9526
+ * `lift` promises a destination and belongs on a card that is a link.
9527
+ */
9528
+ hover: {
9529
+ none: {};
9530
+ shadow: {
9531
+ root: string;
9532
+ };
9533
+ lift: {
9534
+ root: string;
9535
+ };
9536
+ };
9537
+ /**
9538
+ * Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
9539
+ * defines them (a short rise-in, delayed per card through
9540
+ * {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
9541
+ * never see it.
9542
+ */
9543
+ enter: {
9544
+ none: {};
9545
+ rise: {
9546
+ root: string;
9547
+ };
9548
+ };
9549
+ /** Corner rounding, in mn-button's radius tokens. */
9550
+ borderRadius: {
9551
+ none: {
9552
+ root: string;
9553
+ };
9554
+ xs: {
9555
+ root: string;
9556
+ };
9557
+ sm: {
9558
+ root: string;
9559
+ };
9560
+ md: {
9561
+ root: string;
9562
+ };
9563
+ lg: {
9564
+ root: string;
9565
+ };
9566
+ xl: {
9567
+ root: string;
9568
+ };
9569
+ two_xl: {
9570
+ root: string;
9571
+ };
9572
+ three_xl: {
9573
+ root: string;
9574
+ };
9575
+ four_xl: {
9576
+ root: string;
9577
+ };
9578
+ };
9579
+ /**
9580
+ * Colour of the accent bar and of the heading's icon chip: the same palette as
9581
+ * mn-button and the icon chip. What the colour *means* (a kind, a status, a
9582
+ * module) is the consumer's choice; the card only renders it.
9583
+ */
9584
+ color: {
9585
+ primary: {
9586
+ accent: string;
9587
+ };
9588
+ secondary: {
9589
+ accent: string;
9590
+ };
9591
+ accent: {
9592
+ accent: string;
9593
+ };
9594
+ success: {
9595
+ accent: string;
9596
+ };
9597
+ warning: {
9598
+ accent: string;
9599
+ };
9600
+ danger: {
9601
+ accent: string;
9602
+ };
9603
+ gray: {
9604
+ accent: string;
9605
+ };
9606
+ };
9607
+ }, {
9608
+ root: string;
9609
+ accent: string;
9610
+ header: string;
9611
+ title: string;
9612
+ }, undefined, {
9613
+ /**
9614
+ * Inner padding, and with it the gap between the card's children: a tile needs
9615
+ * less air than a section card, and a section card that had to say `gap-4` on
9616
+ * every use would drift.
9617
+ */
9618
+ padding: {
9619
+ sm: {
9620
+ root: string;
9621
+ };
9622
+ md: {
9623
+ root: string;
9624
+ };
9625
+ lg: {
9626
+ root: string;
9627
+ };
9628
+ };
9629
+ /** How the children flow: stacked (the default) or on one line, centred. */
9630
+ layout: {
9631
+ column: {
9632
+ root: string;
9633
+ };
9634
+ row: {
9635
+ root: string;
9636
+ };
9637
+ };
9638
+ /**
9639
+ * Hover response. `shadow` is a little depth for a card that only sits there;
9640
+ * `lift` promises a destination and belongs on a card that is a link.
9641
+ */
9642
+ hover: {
9643
+ none: {};
9644
+ shadow: {
9645
+ root: string;
9646
+ };
9647
+ lift: {
9648
+ root: string;
9649
+ };
9650
+ };
9651
+ /**
9652
+ * Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
9653
+ * defines them (a short rise-in, delayed per card through
9654
+ * {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
9655
+ * never see it.
9656
+ */
9657
+ enter: {
9658
+ none: {};
9659
+ rise: {
9660
+ root: string;
9661
+ };
9662
+ };
9663
+ /** Corner rounding, in mn-button's radius tokens. */
9664
+ borderRadius: {
9665
+ none: {
9666
+ root: string;
9667
+ };
9668
+ xs: {
9669
+ root: string;
9670
+ };
9671
+ sm: {
9672
+ root: string;
9673
+ };
9674
+ md: {
9675
+ root: string;
9676
+ };
9677
+ lg: {
9678
+ root: string;
9679
+ };
9680
+ xl: {
9681
+ root: string;
9682
+ };
9683
+ two_xl: {
9684
+ root: string;
9685
+ };
9686
+ three_xl: {
9687
+ root: string;
9688
+ };
9689
+ four_xl: {
9690
+ root: string;
9691
+ };
9692
+ };
9693
+ /**
9694
+ * Colour of the accent bar and of the heading's icon chip: the same palette as
9695
+ * mn-button and the icon chip. What the colour *means* (a kind, a status, a
9696
+ * module) is the consumer's choice; the card only renders it.
9697
+ */
9698
+ color: {
9699
+ primary: {
9700
+ accent: string;
9701
+ };
9702
+ secondary: {
9703
+ accent: string;
9704
+ };
9705
+ accent: {
9706
+ accent: string;
9707
+ };
9708
+ success: {
9709
+ accent: string;
9710
+ };
9711
+ warning: {
9712
+ accent: string;
9713
+ };
9714
+ danger: {
9715
+ accent: string;
9716
+ };
9717
+ gray: {
9718
+ accent: string;
9719
+ };
9720
+ };
9721
+ }, {
9722
+ root: string;
9723
+ accent: string;
9724
+ header: string;
9725
+ title: string;
9726
+ }, tailwind_variants.TVReturnType<{
9727
+ /**
9728
+ * Inner padding, and with it the gap between the card's children: a tile needs
9729
+ * less air than a section card, and a section card that had to say `gap-4` on
9730
+ * every use would drift.
9731
+ */
9732
+ padding: {
9733
+ sm: {
9734
+ root: string;
9735
+ };
9736
+ md: {
9737
+ root: string;
9738
+ };
9739
+ lg: {
9740
+ root: string;
9741
+ };
9742
+ };
9743
+ /** How the children flow: stacked (the default) or on one line, centred. */
9744
+ layout: {
9745
+ column: {
9746
+ root: string;
9747
+ };
9748
+ row: {
9749
+ root: string;
9750
+ };
9751
+ };
9752
+ /**
9753
+ * Hover response. `shadow` is a little depth for a card that only sits there;
9754
+ * `lift` promises a destination and belongs on a card that is a link.
9755
+ */
9756
+ hover: {
9757
+ none: {};
9758
+ shadow: {
9759
+ root: string;
9760
+ };
9761
+ lift: {
9762
+ root: string;
9763
+ };
9764
+ };
9765
+ /**
9766
+ * Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
9767
+ * defines them (a short rise-in, delayed per card through
9768
+ * {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
9769
+ * never see it.
9770
+ */
9771
+ enter: {
9772
+ none: {};
9773
+ rise: {
9774
+ root: string;
9775
+ };
9776
+ };
9777
+ /** Corner rounding, in mn-button's radius tokens. */
9778
+ borderRadius: {
9779
+ none: {
9780
+ root: string;
9781
+ };
9782
+ xs: {
9783
+ root: string;
9784
+ };
9785
+ sm: {
9786
+ root: string;
9787
+ };
9788
+ md: {
9789
+ root: string;
9790
+ };
9791
+ lg: {
9792
+ root: string;
9793
+ };
9794
+ xl: {
9795
+ root: string;
9796
+ };
9797
+ two_xl: {
9798
+ root: string;
9799
+ };
9800
+ three_xl: {
9801
+ root: string;
9802
+ };
9803
+ four_xl: {
9804
+ root: string;
9805
+ };
9806
+ };
9807
+ /**
9808
+ * Colour of the accent bar and of the heading's icon chip: the same palette as
9809
+ * mn-button and the icon chip. What the colour *means* (a kind, a status, a
9810
+ * module) is the consumer's choice; the card only renders it.
9811
+ */
9812
+ color: {
9813
+ primary: {
9814
+ accent: string;
9815
+ };
9816
+ secondary: {
9817
+ accent: string;
9818
+ };
9819
+ accent: {
9820
+ accent: string;
9821
+ };
9822
+ success: {
9823
+ accent: string;
9824
+ };
9825
+ warning: {
9826
+ accent: string;
9827
+ };
9828
+ danger: {
9829
+ accent: string;
9830
+ };
9831
+ gray: {
9832
+ accent: string;
9833
+ };
9834
+ };
9835
+ }, {
9836
+ root: string;
9837
+ accent: string;
9838
+ header: string;
9839
+ title: string;
9840
+ }, undefined, unknown, unknown, undefined>>;
9841
+ type MnCardVariants = VariantProps<typeof mnCardVariants>;
9842
+
9843
+ /**
9844
+ * Configuration of one {@link MnCard}. Every field is optional; the defaults give the
9845
+ * compact stacked tile with a soft hover, which is what most cards are.
9846
+ */
9847
+ type MnCardTypes = {
9848
+ /** Inner padding and child gap. `sm` for tiles, `md` for section cards, `lg` for hero cards. */
9849
+ padding: MnCardVariants['padding'];
9850
+ /** Stacked children (`column`, the default) or one centred line (`row`). */
9851
+ layout: MnCardVariants['layout'];
9852
+ /** Hover response: `shadow` (default), `lift` for a card that is a link, or `none`. */
9853
+ hover: MnCardVariants['hover'];
9854
+ /** Entrance animation: `rise` (default, needs the consumer's `--animate-rise`) or `none`. */
9855
+ enter: MnCardVariants['enter'];
9856
+ /** Corner rounding. Defaults to `two_xl`. */
9857
+ borderRadius: MnCardVariants['borderRadius'];
9858
+ /** Colour of the accent bar and the heading's icon chip. Defaults to `primary`. */
9859
+ color: MnCardVariants['color'];
9860
+ /** Whether to draw the accent bar along the top edge. Defaults to false. */
9861
+ accent: boolean;
9862
+ };
9863
+
9864
+ /**
9865
+ * The card: a rounded surface with a hairline border, a hover response and an
9866
+ * optional accent bar along its top edge. The body is whatever the consumer projects,
9867
+ * so a booking, a competition and a pending-action tile share one look without
9868
+ * sharing a view model.
9869
+ *
9870
+ * It is an attribute as well as an element, like `mnButton` and `mnBadge`: `<mn-card>`
9871
+ * for a plain surface, `<a mnCard [routerLink]>` for a card that is a link,
9872
+ * `<section mnCard>` when the landmark matters. Extra classes on the host merge with
9873
+ * the card's own, so sizing it (`min-w-0 flex-1`, `lg:w-80`) is ordinary CSS on the
9874
+ * element, not an input.
9875
+ *
9876
+ * A **section card** passes a {@link heading}: the card then renders the shared header
9877
+ * row, an {@link MnIconChip} beside an `h2`, then whatever trails the title (a badge, a
9878
+ * button). Project the icon with the `cardIcon` attribute and group the trailing content
9879
+ * in one `cardHeaderEnd` container, so the template reads icon, header end, body:
9880
+ *
9881
+ * ```html
9882
+ * <mn-card [data]="{ padding: 'md', color: 'primary' }" heading="meetings.agenda.title">
9883
+ * <svg cardIcon lucideListOrdered [size]="20"></svg>
9884
+ * <ng-container cardHeaderEnd>
9885
+ * <span mnBadge [data]="{ size: 'sm', color: 'warning' }">Draft</span>
9886
+ * </ng-container>
9887
+ * ...body...
9888
+ * </mn-card>
9889
+ * ```
9890
+ *
9891
+ * The other members of the family build on this shell: {@link MnStatTile} for one
9892
+ * figure at a glance, and {@link MnProportionBar} for the bar inside a card.
9893
+ */
9894
+ declare class MnCard {
9895
+ /** Padding, layout, hover, entrance, radius, colour and accent; see {@link MnCardTypes}. */
9896
+ data: Partial<MnCardTypes>;
9897
+ /**
9898
+ * Section title, as a translation key or a literal. When set, the header row with
9899
+ * the icon chip and `h2` renders above the body. Deliberately not called `title`: a
9900
+ * static `title="..."` on the host would also become a browser tooltip.
9901
+ */
9902
+ heading?: string;
9903
+ /**
9904
+ * Delay before the entrance animation starts, in milliseconds, so a row of cards
9905
+ * can rise one after another. Ignored when {@link MnCardTypes.enter} is `none`.
9906
+ */
9907
+ enterDelayMs: number;
9908
+ /** Resolved slot classes for the current configuration. */
9909
+ get styles(): {
9910
+ root: (slotProps?: ({
9911
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9912
+ hover?: "none" | "shadow" | "lift" | undefined;
9913
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9914
+ padding?: "sm" | "md" | "lg" | undefined;
9915
+ layout?: "column" | "row" | undefined;
9916
+ enter?: "none" | "rise" | undefined;
9917
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9918
+ accent: (slotProps?: ({
9919
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9920
+ hover?: "none" | "shadow" | "lift" | undefined;
9921
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9922
+ padding?: "sm" | "md" | "lg" | undefined;
9923
+ layout?: "column" | "row" | undefined;
9924
+ enter?: "none" | "rise" | undefined;
9925
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9926
+ header: (slotProps?: ({
9927
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9928
+ hover?: "none" | "shadow" | "lift" | undefined;
9929
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9930
+ padding?: "sm" | "md" | "lg" | undefined;
9931
+ layout?: "column" | "row" | undefined;
9932
+ enter?: "none" | "rise" | undefined;
9933
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9934
+ title: (slotProps?: ({
9935
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9936
+ hover?: "none" | "shadow" | "lift" | undefined;
9937
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9938
+ padding?: "sm" | "md" | "lg" | undefined;
9939
+ layout?: "column" | "row" | undefined;
9940
+ enter?: "none" | "rise" | undefined;
9941
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9942
+ } & {
9943
+ root: (slotProps?: ({
9944
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9945
+ hover?: "none" | "shadow" | "lift" | undefined;
9946
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9947
+ padding?: "sm" | "md" | "lg" | undefined;
9948
+ layout?: "column" | "row" | undefined;
9949
+ enter?: "none" | "rise" | undefined;
9950
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9951
+ accent: (slotProps?: ({
9952
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9953
+ hover?: "none" | "shadow" | "lift" | undefined;
9954
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9955
+ padding?: "sm" | "md" | "lg" | undefined;
9956
+ layout?: "column" | "row" | undefined;
9957
+ enter?: "none" | "rise" | undefined;
9958
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9959
+ header: (slotProps?: ({
9960
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9961
+ hover?: "none" | "shadow" | "lift" | undefined;
9962
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9963
+ padding?: "sm" | "md" | "lg" | undefined;
9964
+ layout?: "column" | "row" | undefined;
9965
+ enter?: "none" | "rise" | undefined;
9966
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9967
+ title: (slotProps?: ({
9968
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9969
+ hover?: "none" | "shadow" | "lift" | undefined;
9970
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9971
+ padding?: "sm" | "md" | "lg" | undefined;
9972
+ layout?: "column" | "row" | undefined;
9973
+ enter?: "none" | "rise" | undefined;
9974
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9975
+ } & {};
9976
+ /** The card element's own classes; the consumer's static classes merge with them. */
9977
+ get hostClasses(): string;
9978
+ /** Staggers the entrance per card. */
9979
+ get animationDelay(): string;
9980
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnCard, never>;
9981
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnCard, "mn-card, [mnCard]", never, { "data": { "alias": "data"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "enterDelayMs": { "alias": "enterDelayMs"; "required": false; }; }, {}, never, ["[cardIcon]", "[cardHeaderEnd]", "*"], true, never>;
9982
+ }
9983
+
9984
+ /**
9985
+ * Styling for {@link MnIconChip}: one 10% wash of the colour behind an icon drawn in
9986
+ * the consumer's `--color-<colour>-text` token when it defines one (the shade it uses
9987
+ * for readable coloured text on a tinted ground) and in the base colour otherwise, the
9988
+ * same device `mnBadge` uses. The radius grows with the box so the corner reads the
9989
+ * same at every size.
9990
+ */
9991
+ declare const mnIconChipVariants: tailwind_variants.TVReturnType<{
9992
+ /** `sm` for list rows, `md` for section-card headers and stat tiles, `lg` for page headers. */
9993
+ size: {
9994
+ sm: string;
9995
+ md: string;
9996
+ lg: string;
9997
+ };
9998
+ color: {
9999
+ primary: string;
10000
+ secondary: string;
10001
+ accent: string;
10002
+ success: string;
10003
+ warning: string;
10004
+ danger: string;
10005
+ gray: string;
10006
+ };
10007
+ }, undefined, "inline-flex shrink-0 items-center justify-center", {
10008
+ /** `sm` for list rows, `md` for section-card headers and stat tiles, `lg` for page headers. */
10009
+ size: {
10010
+ sm: string;
10011
+ md: string;
10012
+ lg: string;
10013
+ };
10014
+ color: {
10015
+ primary: string;
10016
+ secondary: string;
10017
+ accent: string;
10018
+ success: string;
10019
+ warning: string;
10020
+ danger: string;
10021
+ gray: string;
10022
+ };
10023
+ }, undefined, tailwind_variants.TVReturnType<{
10024
+ /** `sm` for list rows, `md` for section-card headers and stat tiles, `lg` for page headers. */
10025
+ size: {
10026
+ sm: string;
10027
+ md: string;
10028
+ lg: string;
10029
+ };
10030
+ color: {
10031
+ primary: string;
10032
+ secondary: string;
10033
+ accent: string;
10034
+ success: string;
10035
+ warning: string;
10036
+ danger: string;
10037
+ gray: string;
10038
+ };
10039
+ }, undefined, "inline-flex shrink-0 items-center justify-center", unknown, unknown, undefined>>;
10040
+ type MnIconChipVariants = VariantProps<typeof mnIconChipVariants>;
10041
+
10042
+ /** Configuration of one {@link MnIconChip}. Both fields are optional. */
10043
+ type MnIconChipTypes = {
10044
+ /** Box size. Defaults to `md`. */
10045
+ size: MnIconChipVariants['size'];
10046
+ /** Colour of the wash and the icon. Defaults to `primary`. */
10047
+ color: MnIconChipVariants['color'];
10048
+ };
10049
+
10050
+ /**
10051
+ * The tinted square that carries an icon in front of a card title, a stat or a list
10052
+ * row: the one place a colour says "what kind of thing this is". Project the icon as
10053
+ * content; the chip sizes and tints itself and never grows with the row.
10054
+ *
10055
+ * Decorative for assistive technology: the title or label beside it carries the
10056
+ * meaning, so the chip is `aria-hidden` and a screen reader never meets a bare icon.
10057
+ *
10058
+ * ```html
10059
+ * <mn-icon-chip [data]="{ color: 'success', size: 'md' }">
10060
+ * <svg lucideCheck [size]="20"></svg>
10061
+ * </mn-icon-chip>
10062
+ * ```
10063
+ */
10064
+ declare class MnIconChip {
10065
+ /** Size and colour; see {@link MnIconChipTypes}. */
10066
+ data: Partial<MnIconChipTypes>;
10067
+ /** The chip's own classes; the consumer's static classes merge with them. */
10068
+ get hostClasses(): string;
10069
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnIconChip, never>;
10070
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnIconChip, "mn-icon-chip", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, ["*"], true, never>;
10071
+ }
10072
+
10073
+ /** Configuration of one {@link MnStatTile}. */
10074
+ type MnStatTileTypes = {
10075
+ /** Colour of the chip; the number itself stays in the base text colour. Defaults to `primary`. */
10076
+ color: MnIconChipVariants['color'];
10077
+ };
10078
+ /**
10079
+ * One fact at a glance: a tinted icon chip, a muted label and a large tabular number,
10080
+ * on the {@link MnCard} shell, in a tile that shares a row with its siblings as
10081
+ * `flex-1`. Project the icon as content; project a badge or a short note into the
10082
+ * `trailing` slot when the number needs a qualifier.
10083
+ *
10084
+ * ```html
10085
+ * <div class="flex flex-wrap gap-4">
10086
+ * <mn-stat-tile label="meetings.attending" [value]="yesCount" [data]="{ color: 'success' }">
10087
+ * <svg lucideCheck [size]="20"></svg>
10088
+ * </mn-stat-tile>
10089
+ * </div>
10090
+ * ```
10091
+ */
10092
+ declare class MnStatTile {
10093
+ /** Caption under the number, as a translation key or a literal. */
10094
+ label: string;
10095
+ /** The figure, already formatted for display. */
10096
+ value: string | number;
10097
+ /** Colour of the chip; see {@link MnStatTileTypes}. */
10098
+ data: Partial<MnStatTileTypes>;
10099
+ /** Grows to share its row and never forces the row wider than its siblings. */
10100
+ readonly hostClasses = "flex flex-1 basis-40 min-w-0";
10101
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnStatTile, never>;
10102
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnStatTile, "mn-stat-tile", never, { "label": { "alias": "label"; "required": true; }; "value": { "alias": "value"; "required": true; }; "data": { "alias": "data"; "required": false; }; }, {}, never, ["*", "[trailing]"], true, never>;
10103
+ }
10104
+
10105
+ /** One coloured run of a {@link MnProportionBar}: how much of the whole it covers, and in which colour. */
10106
+ type MnProportionSegment = {
10107
+ /** Amount in the same unit as the other segments and the total. */
10108
+ value: number;
10109
+ /** Colour of this run; `gray` for the part that has no answer yet. */
10110
+ color: NonNullable<MnIconChipVariants['color']>;
10111
+ };
10112
+ /** Configuration of one {@link MnProportionBar}. */
10113
+ type MnProportionBarTypes = {
10114
+ /** Track thickness: `sm` inside dense rows, `md` (default) under a section title. */
10115
+ height: 'sm' | 'md';
10116
+ };
10117
+
10118
+ /** A segment resolved to a rendered width. */
10119
+ type MnRenderedProportionSegment = {
10120
+ /** Percentage of the track this run covers. */
10121
+ widthPct: number;
10122
+ /** Fill class for the run. */
10123
+ fillClass: string;
10124
+ };
10125
+ /**
10126
+ * The proportional bar every turnout, budget, capacity and collection figure draws:
10127
+ * a rounded track with one coloured run per segment, widths from the values. Empty
10128
+ * segments are skipped so a zero never leaves a hairline. Announced as one image with
10129
+ * the caller's label, because the numbers it visualises are always written out next
10130
+ * to it.
10131
+ *
10132
+ * ```html
10133
+ * <mn-proportion-bar
10134
+ * [segments]="[{ value: yes, color: 'success' }, { value: maybe, color: 'warning' }]"
10135
+ * [total]="invited"
10136
+ * ariaLabel="meetings.responses.title">
10137
+ * </mn-proportion-bar>
10138
+ * ```
10139
+ */
10140
+ declare class MnProportionBar {
10141
+ /** The coloured runs, in draw order from the left. */
10142
+ segments: MnProportionSegment[];
10143
+ /** The whole the segments are measured against; defaults to their sum. */
10144
+ total?: number | null;
10145
+ /** Accessible name for the bar as a whole, as a translation key or a literal. */
10146
+ ariaLabel: string;
10147
+ /** Track thickness; see {@link MnProportionBarTypes}. */
10148
+ data: Partial<MnProportionBarTypes>;
10149
+ /** Resolves the accessible name against the app's bundle. */
10150
+ private readonly lang;
10151
+ /** The translated accessible name. */
10152
+ get label(): string;
10153
+ /** Every class on the track element. */
10154
+ get trackClass(): string;
10155
+ /** The denominator actually used: the explicit total when positive, else the segment sum. */
10156
+ private get denominator();
10157
+ /** Segments with a width, empty ones dropped. */
10158
+ get rendered(): MnRenderedProportionSegment[];
10159
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnProportionBar, never>;
10160
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnProportionBar, "mn-proportion-bar", never, { "segments": { "alias": "segments"; "required": true; }; "total": { "alias": "total"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": true; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
10161
+ }
10162
+
9476
10163
  /**
9477
10164
  * Types for mn-lib configuration.
9478
10165
  */
@@ -9966,5 +10653,5 @@ type MnPreviewMessage = {
9966
10653
  */
9967
10654
  declare function enableMnPreviewMode(configService: MnConfigService, langService: MnLanguageService, allowedOrigins?: string[]): void;
9968
10655
 
9969
- export { API_BASE_URL, ActionStyle, BackdropMode, BaseModalBuilder, CALENDAR_CONFIG, CALENDAR_DATE_FORMATTER, CalendarDayComponent, CalendarEventComponent, CalendarEventDefaultComponent, CalendarEventLayoutService, CalendarMonthComponent, CalendarUtility, CalendarView, CalendarViewComponent, CalendarWeekComponent, CloseMode, ColumnSortType, ConfirmationModalBuilder, ConfirmationTone, CrudService, CustomModalBuilder, DEFAULT_CALENDAR_CONFIG, DEFAULT_MN_ALERT_CONFIG, DefaultCalendarDateFormatter, FieldAppearance, FieldKind, FormLayoutMode, FormModalBuilder, KeyboardMode, MN_ALERT_CONFIG, MN_CALENDAR_COMPONENT_NAME, MN_CALENDAR_CONFIG, MN_CHECKBOX_CONFIG, MN_DATETIME_CONFIG, MN_DROPDOWN_CONFIG, MN_HAPTICS, MN_ICON_MAP, MN_INPUT_FIELD_CONFIG, MN_INSTANCE_ID, MN_LIB_DUAL_HORIZONTAL_IMAGE, MN_MODAL_ACTION_ICONS, MN_MULTI_SELECT_CONFIG, MN_SECTION_PATH, MN_SELECT_CONFIG, MN_TEXTAREA_CONFIG, MODAL_ACTION_ICON_SIZE, MODAL_ACTION_ICON_SIZE_SM, MnAlertOutletComponent, MnAlertService, MnAlertStore, MnBadge, MnBottomSheet, MnBreadcrumbs, MnButton, MnCheckbox, MnCollectionBase, MnCollectionPagination, MnCollectionState, MnConfigService, MnConfirmationBodyComponent, MnCustomBodyHostComponent, MnDateSelectorBar, MnDatetime, MnDropdown, MnDualHorizontalImage, MnFileInput, MnFormBodyComponent, MnGrid, MnHiddenBelowDirective, MnHttpService, MnIcon, MnIconAttributes, MnInformationCard, MnInputField, MnInstanceDirective, MnKeyboard, MnLanguageService, MnList, MnModalRef, MnModalService, MnModalShellComponent, MnMultiSelect, MnRichTextEditor, MnSectionDirective, MnSegmented, MnSelect, MnSelectableCollectionBase, MnShowAboveDirective, MnShowBelowDirective, MnSkeleton, MnTabComponent, MnTable, MnTextarea, MnTranslatePipe, MnWizardBodyComponent, ModalBuilder, ModalCloseReason, ModalIntent, ModalKind, ModalSize, NavigationDirection, OptionState, SelectionMode, StepBuilder, StepState, SubmitMode, UpcomingEventRowComponent, UpcomingEventsComponent, ValidationCode, ValidationStatus, WizardFlowMode, WizardModalBuilder, dateTimeAdapter, defaultFilterPredicate, defaultIconForStyle, defaultTextAdapter, emptyFilterValue, enableMnPreviewMode, isFilterValueActive, isTranslatable, matchesColumnFilter, mnAlertVariants, mnBadgeVariants, mnBreadcrumbsVariants, mnButtonVariants, mnCheckboxVariants, mnCheckboxWrapperVariants, mnDatetimeVariants, mnDropdownTriggerVariants, mnFileInputVariants, mnIconVariants, mnInformationCardVariants, mnInputFieldVariants, mnMultiSelectVariants, mnSegmentedVariants, mnSelectVariants, mnSkeletonVariants, mnTextareaVariants, numberAdapter, pickAdapter, provideMnAlerts, provideMnCalendarConfig, provideMnComponentConfig, provideMnConfig, provideMnLanguage, resolveCalendarConfig, resolveFilterableValue };
9970
- export type { AnimationOptions, ApiError, BaseModalConfig, CalendarButton, CalendarConfig, CalendarDateFormatter, CalendarEvent, CalendarEventData, CancellationActionConfig, CheckboxFieldConfig, ColorFieldConfig, ColorPreset, ColumnBase, ColumnDay, ColumnDefinition, ColumnFilterOption, ColumnFilterState, ColumnFilterType, ColumnFilterValue, ColumnSkeleton, ConfirmationActionConfig, ConfirmationModalConfig, CrudConfig, CurrentTimeCalendarEvent, CursorPaginationStrategy, CustomFieldConfig, CustomModalConfig, DateFieldConfig, DateSelectorBarLayout, DatetimeFieldConfig, DayTile, FailureResult, FieldDataSource, FieldRequiredCondition, FieldValidator, FieldVisibilityCondition, FileFieldConfig, FormFieldConfig, FormFieldGroup, FormModalConfig, FormRow, FormRowField, FormValidator, GridDataSource, GridLayout, GridSkeleton, HourRow, ListAppearance, ListDataSource, ListLabels, ListSkeleton, MnActionIcon, MnAlert, MnAlertConfig, MnAlertId, MnAlertKind, MnAlertTemplateContext, MnAlertVariants, MnBadgeTypes, MnBadgeVariants, MnBreadcrumbItem, MnBreadcrumbsData, MnBreadcrumbsVariants, MnButtonTypes, MnButtonVariants, MnCheckboxErrorMessageData, MnCheckboxErrorMessagesData, MnCheckboxProps, MnCheckboxUIConfig, MnCheckboxVariants, MnCheckboxWrapperVariants, MnCollectionDataSource, MnCollectionLabels, MnColumnFilter, MnConfigFile, MnConfigSettings, MnConfigValue, MnDatetimeErrorMessageData, MnDatetimeErrorMessagesData, MnDatetimeMode, MnDatetimeProps, MnDatetimeUIConfig, MnDatetimeVariants, MnDomAttrs, MnDropdownAction, MnDropdownActionColor, MnDropdownItem, MnDropdownProps, MnDropdownSeparator, MnDropdownTriggerVariants, MnDropdownUIConfig, MnDualHorizontalImageConfig, MnDualHorizontalImageTypes, MnErrorMessageData, MnErrorMessageFn, MnErrorMessagesData, MnFileDisplayItem, MnFileInputDisplayMode, MnFileInputErrorMessageData, MnFileInputErrorMessagesData, MnFileInputProps, MnFileInputUIConfig, MnFileInputVariants, MnHapticStyle, MnHapticsHandler, MnIconTypes, MnIconVariants, MnImageType, MnInformationCardBaseData, MnInformationCardData, MnInformationCardVariants, MnInputAdapter, MnInputBaseProps, MnInputDateTimeProps, MnInputFieldProps, MnInputFieldUIConfig, MnInputProps, MnInputType, MnInputVariants, MnKeyboardLabels, MnKeyboardLayout, MnKeyboardPresentation, MnLanguageConfig, MnMultiSelectErrorMessageData, MnMultiSelectErrorMessagesData, MnMultiSelectOption, MnMultiSelectProps, MnMultiSelectUIConfig, MnMultiSelectVariants, MnPageSlot, MnPreviewMessage, MnQueryParams, MnRichTextEditorControl, MnRichTextEditorLabels, MnRichTextEditorToolbar, MnRowValue, MnSegmentedDataSource, MnSegmentedItem, MnSegmentedVariants, MnSelectErrorMessageData, MnSelectErrorMessagesData, MnSelectOption, MnSelectProps, MnSelectUIConfig, MnSelectVariants, MnSelectableCollectionDataSource, MnShowInput, MnSkeletonProps, MnSkeletonShape, MnSkeletonVariantProps, MnTabDataSource, MnTabItem, MnTableFilterLabels, MnTableRowAction, MnTextareaErrorMessageData, MnTextareaErrorMessagesData, MnTextareaProps, MnTextareaUIConfig, MnTextareaVariants, MnTranslatable, MnTranslationMap, MnTranslations, MnValidationErrorArgs, ModalCancelHandler, ModalCloseEvent, ModalConfig, ModalFooterAction, ModalI18nLabels, ModalInputMap, ModalPollingConfig, ModalRef, ModalResultHandler, ModalStepId, MonthItem, MultiSelectFieldConfig, MultiSelectTableFieldConfig, NumberFieldConfig, OffsetPaginationStrategy, PaginationMode, PaginationStrategy, PasswordFieldConfig, Primitive, QueryParams, QueryValue, RatingFieldConfig, Result, ResultMeta, SelectFieldConfig, SelectOption, SingleSelectTableFieldConfig, SliderFieldConfig, SortState, StepBodyConfig, StepGuard, StepValidator, SuccessResult, TableAppearance, TableDataSource, TableLabels, TextFieldConfig, TextareaFieldConfig, ValidationResult, WizardBeforeCompleteValidator, WizardModalConfig, WizardResult, WizardStepChangeEvent, WizardStepChangeHandler, WizardStepConfig };
10656
+ export { API_BASE_URL, ActionStyle, BackdropMode, BaseModalBuilder, CALENDAR_CONFIG, CALENDAR_DATE_FORMATTER, CalendarDayComponent, CalendarEventComponent, CalendarEventDefaultComponent, CalendarEventLayoutService, CalendarMonthComponent, CalendarUtility, CalendarView, CalendarViewComponent, CalendarWeekComponent, CloseMode, ColumnSortType, ConfirmationModalBuilder, ConfirmationTone, CrudService, CustomModalBuilder, DEFAULT_CALENDAR_CONFIG, DEFAULT_MN_ALERT_CONFIG, DefaultCalendarDateFormatter, FieldAppearance, FieldKind, FormLayoutMode, FormModalBuilder, KeyboardMode, MN_ALERT_CONFIG, MN_CALENDAR_COMPONENT_NAME, MN_CALENDAR_CONFIG, MN_CHECKBOX_CONFIG, MN_DATETIME_CONFIG, MN_DROPDOWN_CONFIG, MN_HAPTICS, MN_ICON_MAP, MN_INPUT_FIELD_CONFIG, MN_INSTANCE_ID, MN_LIB_DUAL_HORIZONTAL_IMAGE, MN_MODAL_ACTION_ICONS, MN_MULTI_SELECT_CONFIG, MN_SECTION_PATH, MN_SELECT_CONFIG, MN_TEXTAREA_CONFIG, MODAL_ACTION_ICON_SIZE, MODAL_ACTION_ICON_SIZE_SM, MnAlertOutletComponent, MnAlertService, MnAlertStore, MnBadge, MnBottomSheet, MnBreadcrumbs, MnButton, MnCard, MnCheckbox, MnCollectionBase, MnCollectionPagination, MnCollectionState, MnConfigService, MnConfirmationBodyComponent, MnCustomBodyHostComponent, MnDateSelectorBar, MnDatetime, MnDropdown, MnDualHorizontalImage, MnFileInput, MnFormBodyComponent, MnGrid, MnHiddenBelowDirective, MnHttpService, MnIcon, MnIconAttributes, MnIconChip, MnInformationCard, MnInputField, MnInstanceDirective, MnKeyboard, MnLanguageService, MnList, MnModalRef, MnModalService, MnModalShellComponent, MnMultiSelect, MnProportionBar, MnRichTextEditor, MnSectionDirective, MnSegmented, MnSelect, MnSelectableCollectionBase, MnShowAboveDirective, MnShowBelowDirective, MnSkeleton, MnStatTile, MnTabComponent, MnTable, MnTextarea, MnTranslatePipe, MnWizardBodyComponent, ModalBuilder, ModalCloseReason, ModalIntent, ModalKind, ModalSize, NavigationDirection, OptionState, SelectionMode, StepBuilder, StepState, SubmitMode, UpcomingEventRowComponent, UpcomingEventsComponent, ValidationCode, ValidationStatus, WizardFlowMode, WizardModalBuilder, dateTimeAdapter, defaultFilterPredicate, defaultIconForStyle, defaultTextAdapter, emptyFilterValue, enableMnPreviewMode, isFilterValueActive, isTranslatable, matchesColumnFilter, mnAlertVariants, mnBadgeVariants, mnBreadcrumbsVariants, mnButtonVariants, mnCardVariants, mnCheckboxVariants, mnCheckboxWrapperVariants, mnDatetimeVariants, mnDropdownTriggerVariants, mnFileInputVariants, mnIconChipVariants, mnIconVariants, mnInformationCardVariants, mnInputFieldVariants, mnMultiSelectVariants, mnSegmentedVariants, mnSelectVariants, mnSkeletonVariants, mnTextareaVariants, numberAdapter, pickAdapter, provideMnAlerts, provideMnCalendarConfig, provideMnComponentConfig, provideMnConfig, provideMnLanguage, resolveCalendarConfig, resolveFilterableValue };
10657
+ export type { AnimationOptions, ApiError, BaseModalConfig, CalendarButton, CalendarConfig, CalendarDateFormatter, CalendarEvent, CalendarEventData, CancellationActionConfig, CheckboxFieldConfig, ColorFieldConfig, ColorPreset, ColumnBase, ColumnDay, ColumnDefinition, ColumnFilterOption, ColumnFilterState, ColumnFilterType, ColumnFilterValue, ColumnSkeleton, ConfirmationActionConfig, ConfirmationModalConfig, CrudConfig, CurrentTimeCalendarEvent, CursorPaginationStrategy, CustomFieldConfig, CustomModalConfig, DateFieldConfig, DateSelectorBarLayout, DatetimeFieldConfig, DayTile, FailureResult, FieldDataSource, FieldRequiredCondition, FieldValidator, FieldVisibilityCondition, FileFieldConfig, FormFieldConfig, FormFieldGroup, FormModalConfig, FormRow, FormRowField, FormValidator, GridDataSource, GridLayout, GridSkeleton, HourRow, ListAppearance, ListDataSource, ListLabels, ListSkeleton, MnActionIcon, MnAlert, MnAlertConfig, MnAlertId, MnAlertKind, MnAlertTemplateContext, MnAlertVariants, MnBadgeTypes, MnBadgeVariants, MnBreadcrumbItem, MnBreadcrumbsData, MnBreadcrumbsVariants, MnButtonTypes, MnButtonVariants, MnCardTypes, MnCardVariants, MnCheckboxErrorMessageData, MnCheckboxErrorMessagesData, MnCheckboxProps, MnCheckboxUIConfig, MnCheckboxVariants, MnCheckboxWrapperVariants, MnCollectionDataSource, MnCollectionLabels, MnColumnFilter, MnConfigFile, MnConfigSettings, MnConfigValue, MnDatetimeErrorMessageData, MnDatetimeErrorMessagesData, MnDatetimeMode, MnDatetimeProps, MnDatetimeUIConfig, MnDatetimeVariants, MnDomAttrs, MnDropdownAction, MnDropdownActionColor, MnDropdownItem, MnDropdownProps, MnDropdownSeparator, MnDropdownTriggerVariants, MnDropdownUIConfig, MnDualHorizontalImageConfig, MnDualHorizontalImageTypes, MnErrorMessageData, MnErrorMessageFn, MnErrorMessagesData, MnFileDisplayItem, MnFileInputDisplayMode, MnFileInputErrorMessageData, MnFileInputErrorMessagesData, MnFileInputProps, MnFileInputUIConfig, MnFileInputVariants, MnHapticStyle, MnHapticsHandler, MnIconChipTypes, MnIconChipVariants, MnIconTypes, MnIconVariants, MnImageType, MnInformationCardBaseData, MnInformationCardData, MnInformationCardVariants, MnInputAdapter, MnInputBaseProps, MnInputDateTimeProps, MnInputFieldProps, MnInputFieldUIConfig, MnInputProps, MnInputType, MnInputVariants, MnKeyboardLabels, MnKeyboardLayout, MnKeyboardPresentation, MnLanguageConfig, MnMultiSelectErrorMessageData, MnMultiSelectErrorMessagesData, MnMultiSelectOption, MnMultiSelectProps, MnMultiSelectUIConfig, MnMultiSelectVariants, MnPageSlot, MnPreviewMessage, MnProportionBarTypes, MnProportionSegment, MnQueryParams, MnRenderedProportionSegment, MnRichTextEditorControl, MnRichTextEditorLabels, MnRichTextEditorToolbar, MnRowValue, MnSegmentedDataSource, MnSegmentedItem, MnSegmentedVariants, MnSelectErrorMessageData, MnSelectErrorMessagesData, MnSelectOption, MnSelectProps, MnSelectUIConfig, MnSelectVariants, MnSelectableCollectionDataSource, MnShowInput, MnSkeletonProps, MnSkeletonShape, MnSkeletonVariantProps, MnStatTileTypes, MnTabDataSource, MnTabItem, MnTableFilterLabels, MnTableRowAction, MnTextareaErrorMessageData, MnTextareaErrorMessagesData, MnTextareaProps, MnTextareaUIConfig, MnTextareaVariants, MnTranslatable, MnTranslationMap, MnTranslations, MnValidationErrorArgs, ModalCancelHandler, ModalCloseEvent, ModalConfig, ModalFooterAction, ModalI18nLabels, ModalInputMap, ModalPollingConfig, ModalRef, ModalResultHandler, ModalStepId, MonthItem, MultiSelectFieldConfig, MultiSelectTableFieldConfig, NumberFieldConfig, OffsetPaginationStrategy, PaginationMode, PaginationStrategy, PasswordFieldConfig, Primitive, QueryParams, QueryValue, RatingFieldConfig, Result, ResultMeta, SelectFieldConfig, SelectOption, SingleSelectTableFieldConfig, SliderFieldConfig, SortState, StepBodyConfig, StepGuard, StepValidator, SuccessResult, TableAppearance, TableDataSource, TableLabels, TextFieldConfig, TextareaFieldConfig, ValidationResult, WizardBeforeCompleteValidator, WizardModalConfig, WizardResult, WizardStepChangeEvent, WizardStepChangeHandler, WizardStepConfig };