mn-angular-lib 1.0.171 → 1.0.172

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.
@@ -9473,6 +9473,681 @@ declare class MnSegmented {
9473
9473
  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
9474
  }
9475
9475
 
9476
+ /**
9477
+ * Styling for {@link MnCard}, as tailwind-variants slots: `root` is the card element
9478
+ * itself, `accent` the optional bar along its top edge, `header` the heading row and
9479
+ * `title` the `h2` inside it.
9480
+ *
9481
+ * Theme tokens only, so the card holds up in light and dark. The surface reads the
9482
+ * consumer's `--color-base-card` when it defines one (a card ground a step off the
9483
+ * page background) and falls back to `base-100` otherwise, the same fallback device
9484
+ * `mnBadge` uses for its `-text` tokens.
9485
+ */
9486
+ declare const mnCardVariants: tailwind_variants.TVReturnType<{
9487
+ /**
9488
+ * Inner padding, and with it the gap between the card's children: a tile needs
9489
+ * less air than a section card, and a section card that had to say `gap-4` on
9490
+ * every use would drift.
9491
+ */
9492
+ padding: {
9493
+ sm: {
9494
+ root: string;
9495
+ };
9496
+ md: {
9497
+ root: string;
9498
+ };
9499
+ lg: {
9500
+ root: string;
9501
+ };
9502
+ };
9503
+ /** How the children flow: stacked (the default) or on one line, centred. */
9504
+ layout: {
9505
+ column: {
9506
+ root: string;
9507
+ };
9508
+ row: {
9509
+ root: string;
9510
+ };
9511
+ };
9512
+ /**
9513
+ * Hover response. `shadow` is a little depth for a card that only sits there;
9514
+ * `lift` promises a destination and belongs on a card that is a link.
9515
+ */
9516
+ hover: {
9517
+ none: {};
9518
+ shadow: {
9519
+ root: string;
9520
+ };
9521
+ lift: {
9522
+ root: string;
9523
+ };
9524
+ };
9525
+ /**
9526
+ * Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
9527
+ * defines them (a short rise-in, delayed per card through
9528
+ * {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
9529
+ * never see it.
9530
+ */
9531
+ enter: {
9532
+ none: {};
9533
+ rise: {
9534
+ root: string;
9535
+ };
9536
+ };
9537
+ /** Corner rounding, in mn-button's radius tokens. */
9538
+ borderRadius: {
9539
+ none: {
9540
+ root: string;
9541
+ };
9542
+ xs: {
9543
+ root: string;
9544
+ };
9545
+ sm: {
9546
+ root: string;
9547
+ };
9548
+ md: {
9549
+ root: string;
9550
+ };
9551
+ lg: {
9552
+ root: string;
9553
+ };
9554
+ xl: {
9555
+ root: string;
9556
+ };
9557
+ two_xl: {
9558
+ root: string;
9559
+ };
9560
+ three_xl: {
9561
+ root: string;
9562
+ };
9563
+ four_xl: {
9564
+ root: string;
9565
+ };
9566
+ };
9567
+ /**
9568
+ * Colour of the accent bar and of the heading's icon chip: the same palette as
9569
+ * mn-button and the icon chip. What the colour *means* (a kind, a status, a
9570
+ * module) is the consumer's choice; the card only renders it.
9571
+ */
9572
+ color: {
9573
+ primary: {
9574
+ accent: string;
9575
+ };
9576
+ secondary: {
9577
+ accent: string;
9578
+ };
9579
+ accent: {
9580
+ accent: string;
9581
+ };
9582
+ success: {
9583
+ accent: string;
9584
+ };
9585
+ warning: {
9586
+ accent: string;
9587
+ };
9588
+ danger: {
9589
+ accent: string;
9590
+ };
9591
+ gray: {
9592
+ accent: string;
9593
+ };
9594
+ };
9595
+ }, {
9596
+ root: string;
9597
+ accent: string;
9598
+ header: string;
9599
+ title: string;
9600
+ }, undefined, {
9601
+ /**
9602
+ * Inner padding, and with it the gap between the card's children: a tile needs
9603
+ * less air than a section card, and a section card that had to say `gap-4` on
9604
+ * every use would drift.
9605
+ */
9606
+ padding: {
9607
+ sm: {
9608
+ root: string;
9609
+ };
9610
+ md: {
9611
+ root: string;
9612
+ };
9613
+ lg: {
9614
+ root: string;
9615
+ };
9616
+ };
9617
+ /** How the children flow: stacked (the default) or on one line, centred. */
9618
+ layout: {
9619
+ column: {
9620
+ root: string;
9621
+ };
9622
+ row: {
9623
+ root: string;
9624
+ };
9625
+ };
9626
+ /**
9627
+ * Hover response. `shadow` is a little depth for a card that only sits there;
9628
+ * `lift` promises a destination and belongs on a card that is a link.
9629
+ */
9630
+ hover: {
9631
+ none: {};
9632
+ shadow: {
9633
+ root: string;
9634
+ };
9635
+ lift: {
9636
+ root: string;
9637
+ };
9638
+ };
9639
+ /**
9640
+ * Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
9641
+ * defines them (a short rise-in, delayed per card through
9642
+ * {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
9643
+ * never see it.
9644
+ */
9645
+ enter: {
9646
+ none: {};
9647
+ rise: {
9648
+ root: string;
9649
+ };
9650
+ };
9651
+ /** Corner rounding, in mn-button's radius tokens. */
9652
+ borderRadius: {
9653
+ none: {
9654
+ root: string;
9655
+ };
9656
+ xs: {
9657
+ root: string;
9658
+ };
9659
+ sm: {
9660
+ root: string;
9661
+ };
9662
+ md: {
9663
+ root: string;
9664
+ };
9665
+ lg: {
9666
+ root: string;
9667
+ };
9668
+ xl: {
9669
+ root: string;
9670
+ };
9671
+ two_xl: {
9672
+ root: string;
9673
+ };
9674
+ three_xl: {
9675
+ root: string;
9676
+ };
9677
+ four_xl: {
9678
+ root: string;
9679
+ };
9680
+ };
9681
+ /**
9682
+ * Colour of the accent bar and of the heading's icon chip: the same palette as
9683
+ * mn-button and the icon chip. What the colour *means* (a kind, a status, a
9684
+ * module) is the consumer's choice; the card only renders it.
9685
+ */
9686
+ color: {
9687
+ primary: {
9688
+ accent: string;
9689
+ };
9690
+ secondary: {
9691
+ accent: string;
9692
+ };
9693
+ accent: {
9694
+ accent: string;
9695
+ };
9696
+ success: {
9697
+ accent: string;
9698
+ };
9699
+ warning: {
9700
+ accent: string;
9701
+ };
9702
+ danger: {
9703
+ accent: string;
9704
+ };
9705
+ gray: {
9706
+ accent: string;
9707
+ };
9708
+ };
9709
+ }, {
9710
+ root: string;
9711
+ accent: string;
9712
+ header: string;
9713
+ title: string;
9714
+ }, tailwind_variants.TVReturnType<{
9715
+ /**
9716
+ * Inner padding, and with it the gap between the card's children: a tile needs
9717
+ * less air than a section card, and a section card that had to say `gap-4` on
9718
+ * every use would drift.
9719
+ */
9720
+ padding: {
9721
+ sm: {
9722
+ root: string;
9723
+ };
9724
+ md: {
9725
+ root: string;
9726
+ };
9727
+ lg: {
9728
+ root: string;
9729
+ };
9730
+ };
9731
+ /** How the children flow: stacked (the default) or on one line, centred. */
9732
+ layout: {
9733
+ column: {
9734
+ root: string;
9735
+ };
9736
+ row: {
9737
+ root: string;
9738
+ };
9739
+ };
9740
+ /**
9741
+ * Hover response. `shadow` is a little depth for a card that only sits there;
9742
+ * `lift` promises a destination and belongs on a card that is a link.
9743
+ */
9744
+ hover: {
9745
+ none: {};
9746
+ shadow: {
9747
+ root: string;
9748
+ };
9749
+ lift: {
9750
+ root: string;
9751
+ };
9752
+ };
9753
+ /**
9754
+ * Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
9755
+ * defines them (a short rise-in, delayed per card through
9756
+ * {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
9757
+ * never see it.
9758
+ */
9759
+ enter: {
9760
+ none: {};
9761
+ rise: {
9762
+ root: string;
9763
+ };
9764
+ };
9765
+ /** Corner rounding, in mn-button's radius tokens. */
9766
+ borderRadius: {
9767
+ none: {
9768
+ root: string;
9769
+ };
9770
+ xs: {
9771
+ root: string;
9772
+ };
9773
+ sm: {
9774
+ root: string;
9775
+ };
9776
+ md: {
9777
+ root: string;
9778
+ };
9779
+ lg: {
9780
+ root: string;
9781
+ };
9782
+ xl: {
9783
+ root: string;
9784
+ };
9785
+ two_xl: {
9786
+ root: string;
9787
+ };
9788
+ three_xl: {
9789
+ root: string;
9790
+ };
9791
+ four_xl: {
9792
+ root: string;
9793
+ };
9794
+ };
9795
+ /**
9796
+ * Colour of the accent bar and of the heading's icon chip: the same palette as
9797
+ * mn-button and the icon chip. What the colour *means* (a kind, a status, a
9798
+ * module) is the consumer's choice; the card only renders it.
9799
+ */
9800
+ color: {
9801
+ primary: {
9802
+ accent: string;
9803
+ };
9804
+ secondary: {
9805
+ accent: string;
9806
+ };
9807
+ accent: {
9808
+ accent: string;
9809
+ };
9810
+ success: {
9811
+ accent: string;
9812
+ };
9813
+ warning: {
9814
+ accent: string;
9815
+ };
9816
+ danger: {
9817
+ accent: string;
9818
+ };
9819
+ gray: {
9820
+ accent: string;
9821
+ };
9822
+ };
9823
+ }, {
9824
+ root: string;
9825
+ accent: string;
9826
+ header: string;
9827
+ title: string;
9828
+ }, undefined, unknown, unknown, undefined>>;
9829
+ type MnCardVariants = VariantProps<typeof mnCardVariants>;
9830
+
9831
+ /**
9832
+ * Configuration of one {@link MnCard}. Every field is optional; the defaults give the
9833
+ * compact stacked tile with a soft hover, which is what most cards are.
9834
+ */
9835
+ type MnCardTypes = {
9836
+ /** Inner padding and child gap. `sm` for tiles, `md` for section cards, `lg` for hero cards. */
9837
+ padding: MnCardVariants['padding'];
9838
+ /** Stacked children (`column`, the default) or one centred line (`row`). */
9839
+ layout: MnCardVariants['layout'];
9840
+ /** Hover response: `shadow` (default), `lift` for a card that is a link, or `none`. */
9841
+ hover: MnCardVariants['hover'];
9842
+ /** Entrance animation: `rise` (default, needs the consumer's `--animate-rise`) or `none`. */
9843
+ enter: MnCardVariants['enter'];
9844
+ /** Corner rounding. Defaults to `two_xl`. */
9845
+ borderRadius: MnCardVariants['borderRadius'];
9846
+ /** Colour of the accent bar and the heading's icon chip. Defaults to `primary`. */
9847
+ color: MnCardVariants['color'];
9848
+ /** Whether to draw the accent bar along the top edge. Defaults to false. */
9849
+ accent: boolean;
9850
+ };
9851
+
9852
+ /**
9853
+ * The card: a rounded surface with a hairline border, a hover response and an
9854
+ * optional accent bar along its top edge. The body is whatever the consumer projects,
9855
+ * so a booking, a competition and a pending-action tile share one look without
9856
+ * sharing a view model.
9857
+ *
9858
+ * It is an attribute as well as an element, like `mnButton` and `mnBadge`: `<mn-card>`
9859
+ * for a plain surface, `<a mnCard [routerLink]>` for a card that is a link,
9860
+ * `<section mnCard>` when the landmark matters. Extra classes on the host merge with
9861
+ * the card's own, so sizing it (`min-w-0 flex-1`, `lg:w-80`) is ordinary CSS on the
9862
+ * element, not an input.
9863
+ *
9864
+ * A **section card** passes a {@link heading}: the card then renders the shared header
9865
+ * row, an {@link MnIconChip} beside an `h2`, then whatever trails the title (a badge, a
9866
+ * button). Project the icon with the `cardIcon` attribute and group the trailing content
9867
+ * in one `cardHeaderEnd` container, so the template reads icon, header end, body:
9868
+ *
9869
+ * ```html
9870
+ * <mn-card [data]="{ padding: 'md', color: 'primary' }" heading="meetings.agenda.title">
9871
+ * <svg cardIcon lucideListOrdered [size]="20"></svg>
9872
+ * <ng-container cardHeaderEnd>
9873
+ * <span mnBadge [data]="{ size: 'sm', color: 'warning' }">Draft</span>
9874
+ * </ng-container>
9875
+ * ...body...
9876
+ * </mn-card>
9877
+ * ```
9878
+ *
9879
+ * The other members of the family build on this shell: {@link MnStatTile} for one
9880
+ * figure at a glance, and {@link MnProportionBar} for the bar inside a card.
9881
+ */
9882
+ declare class MnCard {
9883
+ /** Padding, layout, hover, entrance, radius, colour and accent; see {@link MnCardTypes}. */
9884
+ data: Partial<MnCardTypes>;
9885
+ /**
9886
+ * Section title, as a translation key or a literal. When set, the header row with
9887
+ * the icon chip and `h2` renders above the body. Deliberately not called `title`: a
9888
+ * static `title="..."` on the host would also become a browser tooltip.
9889
+ */
9890
+ heading?: string;
9891
+ /**
9892
+ * Delay before the entrance animation starts, in milliseconds, so a row of cards
9893
+ * can rise one after another. Ignored when {@link MnCardTypes.enter} is `none`.
9894
+ */
9895
+ enterDelayMs: number;
9896
+ /** Resolved slot classes for the current configuration. */
9897
+ get styles(): {
9898
+ root: (slotProps?: ({
9899
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9900
+ hover?: "none" | "shadow" | "lift" | undefined;
9901
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9902
+ padding?: "sm" | "md" | "lg" | undefined;
9903
+ layout?: "column" | "row" | undefined;
9904
+ enter?: "none" | "rise" | undefined;
9905
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9906
+ accent: (slotProps?: ({
9907
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9908
+ hover?: "none" | "shadow" | "lift" | undefined;
9909
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9910
+ padding?: "sm" | "md" | "lg" | undefined;
9911
+ layout?: "column" | "row" | undefined;
9912
+ enter?: "none" | "rise" | undefined;
9913
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9914
+ header: (slotProps?: ({
9915
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9916
+ hover?: "none" | "shadow" | "lift" | undefined;
9917
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9918
+ padding?: "sm" | "md" | "lg" | undefined;
9919
+ layout?: "column" | "row" | undefined;
9920
+ enter?: "none" | "rise" | undefined;
9921
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9922
+ title: (slotProps?: ({
9923
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9924
+ hover?: "none" | "shadow" | "lift" | undefined;
9925
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9926
+ padding?: "sm" | "md" | "lg" | undefined;
9927
+ layout?: "column" | "row" | undefined;
9928
+ enter?: "none" | "rise" | undefined;
9929
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9930
+ } & {
9931
+ root: (slotProps?: ({
9932
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9933
+ hover?: "none" | "shadow" | "lift" | undefined;
9934
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9935
+ padding?: "sm" | "md" | "lg" | undefined;
9936
+ layout?: "column" | "row" | undefined;
9937
+ enter?: "none" | "rise" | undefined;
9938
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9939
+ accent: (slotProps?: ({
9940
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9941
+ hover?: "none" | "shadow" | "lift" | undefined;
9942
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9943
+ padding?: "sm" | "md" | "lg" | undefined;
9944
+ layout?: "column" | "row" | undefined;
9945
+ enter?: "none" | "rise" | undefined;
9946
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9947
+ header: (slotProps?: ({
9948
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9949
+ hover?: "none" | "shadow" | "lift" | undefined;
9950
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9951
+ padding?: "sm" | "md" | "lg" | undefined;
9952
+ layout?: "column" | "row" | undefined;
9953
+ enter?: "none" | "rise" | undefined;
9954
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9955
+ title: (slotProps?: ({
9956
+ color?: "success" | "warning" | "accent" | "primary" | "secondary" | "danger" | "gray" | undefined;
9957
+ hover?: "none" | "shadow" | "lift" | undefined;
9958
+ borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | undefined;
9959
+ padding?: "sm" | "md" | "lg" | undefined;
9960
+ layout?: "column" | "row" | undefined;
9961
+ enter?: "none" | "rise" | undefined;
9962
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
9963
+ } & {};
9964
+ /** The card element's own classes; the consumer's static classes merge with them. */
9965
+ get hostClasses(): string;
9966
+ /** Staggers the entrance per card. */
9967
+ get animationDelay(): string;
9968
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnCard, never>;
9969
+ 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>;
9970
+ }
9971
+
9972
+ /**
9973
+ * Styling for {@link MnIconChip}: one 10% wash of the colour behind an icon drawn in
9974
+ * the consumer's `--color-<colour>-text` token when it defines one (the shade it uses
9975
+ * for readable coloured text on a tinted ground) and in the base colour otherwise, the
9976
+ * same device `mnBadge` uses. The radius grows with the box so the corner reads the
9977
+ * same at every size.
9978
+ */
9979
+ declare const mnIconChipVariants: tailwind_variants.TVReturnType<{
9980
+ /** `sm` for list rows, `md` for section-card headers and stat tiles, `lg` for page headers. */
9981
+ size: {
9982
+ sm: string;
9983
+ md: string;
9984
+ lg: string;
9985
+ };
9986
+ color: {
9987
+ primary: string;
9988
+ secondary: string;
9989
+ accent: string;
9990
+ success: string;
9991
+ warning: string;
9992
+ danger: string;
9993
+ gray: string;
9994
+ };
9995
+ }, undefined, "inline-flex shrink-0 items-center justify-center", {
9996
+ /** `sm` for list rows, `md` for section-card headers and stat tiles, `lg` for page headers. */
9997
+ size: {
9998
+ sm: string;
9999
+ md: string;
10000
+ lg: string;
10001
+ };
10002
+ color: {
10003
+ primary: string;
10004
+ secondary: string;
10005
+ accent: string;
10006
+ success: string;
10007
+ warning: string;
10008
+ danger: string;
10009
+ gray: string;
10010
+ };
10011
+ }, undefined, tailwind_variants.TVReturnType<{
10012
+ /** `sm` for list rows, `md` for section-card headers and stat tiles, `lg` for page headers. */
10013
+ size: {
10014
+ sm: string;
10015
+ md: string;
10016
+ lg: string;
10017
+ };
10018
+ color: {
10019
+ primary: string;
10020
+ secondary: string;
10021
+ accent: string;
10022
+ success: string;
10023
+ warning: string;
10024
+ danger: string;
10025
+ gray: string;
10026
+ };
10027
+ }, undefined, "inline-flex shrink-0 items-center justify-center", unknown, unknown, undefined>>;
10028
+ type MnIconChipVariants = VariantProps<typeof mnIconChipVariants>;
10029
+
10030
+ /** Configuration of one {@link MnIconChip}. Both fields are optional. */
10031
+ type MnIconChipTypes = {
10032
+ /** Box size. Defaults to `md`. */
10033
+ size: MnIconChipVariants['size'];
10034
+ /** Colour of the wash and the icon. Defaults to `primary`. */
10035
+ color: MnIconChipVariants['color'];
10036
+ };
10037
+
10038
+ /**
10039
+ * The tinted square that carries an icon in front of a card title, a stat or a list
10040
+ * row: the one place a colour says "what kind of thing this is". Project the icon as
10041
+ * content; the chip sizes and tints itself and never grows with the row.
10042
+ *
10043
+ * Decorative for assistive technology: the title or label beside it carries the
10044
+ * meaning, so the chip is `aria-hidden` and a screen reader never meets a bare icon.
10045
+ *
10046
+ * ```html
10047
+ * <mn-icon-chip [data]="{ color: 'success', size: 'md' }">
10048
+ * <svg lucideCheck [size]="20"></svg>
10049
+ * </mn-icon-chip>
10050
+ * ```
10051
+ */
10052
+ declare class MnIconChip {
10053
+ /** Size and colour; see {@link MnIconChipTypes}. */
10054
+ data: Partial<MnIconChipTypes>;
10055
+ /** The chip's own classes; the consumer's static classes merge with them. */
10056
+ get hostClasses(): string;
10057
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnIconChip, never>;
10058
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnIconChip, "mn-icon-chip", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, ["*"], true, never>;
10059
+ }
10060
+
10061
+ /** Configuration of one {@link MnStatTile}. */
10062
+ type MnStatTileTypes = {
10063
+ /** Colour of the chip; the number itself stays in the base text colour. Defaults to `primary`. */
10064
+ color: MnIconChipVariants['color'];
10065
+ };
10066
+ /**
10067
+ * One fact at a glance: a tinted icon chip, a muted label and a large tabular number,
10068
+ * on the {@link MnCard} shell, in a tile that shares a row with its siblings as
10069
+ * `flex-1`. Project the icon as content; project a badge or a short note into the
10070
+ * `trailing` slot when the number needs a qualifier.
10071
+ *
10072
+ * ```html
10073
+ * <div class="flex flex-wrap gap-4">
10074
+ * <mn-stat-tile label="meetings.attending" [value]="yesCount" [data]="{ color: 'success' }">
10075
+ * <svg lucideCheck [size]="20"></svg>
10076
+ * </mn-stat-tile>
10077
+ * </div>
10078
+ * ```
10079
+ */
10080
+ declare class MnStatTile {
10081
+ /** Caption under the number, as a translation key or a literal. */
10082
+ label: string;
10083
+ /** The figure, already formatted for display. */
10084
+ value: string | number;
10085
+ /** Colour of the chip; see {@link MnStatTileTypes}. */
10086
+ data: Partial<MnStatTileTypes>;
10087
+ /** Grows to share its row and never forces the row wider than its siblings. */
10088
+ readonly hostClasses = "flex flex-1 basis-40 min-w-0";
10089
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnStatTile, never>;
10090
+ 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>;
10091
+ }
10092
+
10093
+ /** One coloured run of a {@link MnProportionBar}: how much of the whole it covers, and in which colour. */
10094
+ type MnProportionSegment = {
10095
+ /** Amount in the same unit as the other segments and the total. */
10096
+ value: number;
10097
+ /** Colour of this run; `gray` for the part that has no answer yet. */
10098
+ color: NonNullable<MnIconChipVariants['color']>;
10099
+ };
10100
+ /** Configuration of one {@link MnProportionBar}. */
10101
+ type MnProportionBarTypes = {
10102
+ /** Track thickness: `sm` inside dense rows, `md` (default) under a section title. */
10103
+ height: 'sm' | 'md';
10104
+ };
10105
+
10106
+ /** A segment resolved to a rendered width. */
10107
+ type MnRenderedProportionSegment = {
10108
+ /** Percentage of the track this run covers. */
10109
+ widthPct: number;
10110
+ /** Fill class for the run. */
10111
+ fillClass: string;
10112
+ };
10113
+ /**
10114
+ * The proportional bar every turnout, budget, capacity and collection figure draws:
10115
+ * a rounded track with one coloured run per segment, widths from the values. Empty
10116
+ * segments are skipped so a zero never leaves a hairline. Announced as one image with
10117
+ * the caller's label, because the numbers it visualises are always written out next
10118
+ * to it.
10119
+ *
10120
+ * ```html
10121
+ * <mn-proportion-bar
10122
+ * [segments]="[{ value: yes, color: 'success' }, { value: maybe, color: 'warning' }]"
10123
+ * [total]="invited"
10124
+ * ariaLabel="meetings.responses.title">
10125
+ * </mn-proportion-bar>
10126
+ * ```
10127
+ */
10128
+ declare class MnProportionBar {
10129
+ /** The coloured runs, in draw order from the left. */
10130
+ segments: MnProportionSegment[];
10131
+ /** The whole the segments are measured against; defaults to their sum. */
10132
+ total?: number | null;
10133
+ /** Accessible name for the bar as a whole, as a translation key or a literal. */
10134
+ ariaLabel: string;
10135
+ /** Track thickness; see {@link MnProportionBarTypes}. */
10136
+ data: Partial<MnProportionBarTypes>;
10137
+ /** Resolves the accessible name against the app's bundle. */
10138
+ private readonly lang;
10139
+ /** The translated accessible name. */
10140
+ get label(): string;
10141
+ /** Every class on the track element. */
10142
+ get trackClass(): string;
10143
+ /** The denominator actually used: the explicit total when positive, else the segment sum. */
10144
+ private get denominator();
10145
+ /** Segments with a width, empty ones dropped. */
10146
+ get rendered(): MnRenderedProportionSegment[];
10147
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnProportionBar, never>;
10148
+ 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>;
10149
+ }
10150
+
9476
10151
  /**
9477
10152
  * Types for mn-lib configuration.
9478
10153
  */
@@ -9966,5 +10641,5 @@ type MnPreviewMessage = {
9966
10641
  */
9967
10642
  declare function enableMnPreviewMode(configService: MnConfigService, langService: MnLanguageService, allowedOrigins?: string[]): void;
9968
10643
 
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 };
10644
+ 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 };
10645
+ 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 };