mn-angular-lib 2.0.17 → 2.0.19
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/fesm2022/mn-angular-lib-collection.mjs +22 -6
- package/fesm2022/mn-angular-lib-collection.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-display.mjs +23 -7
- package/fesm2022/mn-angular-lib-display.mjs.map +1 -1
- package/package.json +1 -1
- package/types/mn-angular-lib-collection.d.ts +14 -1
- package/types/mn-angular-lib-display.d.ts +35 -19
|
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { HostBinding, Input, Component, inject, EventEmitter, Output, ElementRef, Directive } from '@angular/core';
|
|
3
3
|
import { MnTranslatePipe, MnLanguageService, lucideIcons } from 'mn-angular-lib/core';
|
|
4
4
|
import { tv } from 'tailwind-variants';
|
|
5
|
+
import { MnSkeleton } from 'mn-angular-lib/button';
|
|
5
6
|
import { LucideDynamicIcon } from '@lucide/angular';
|
|
6
7
|
import * as lucide from 'lucide';
|
|
7
8
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
@@ -118,13 +119,19 @@ const mnCardVariants = tv({
|
|
|
118
119
|
row: { root: 'flex-row items-center' },
|
|
119
120
|
},
|
|
120
121
|
/**
|
|
121
|
-
* Hover response.
|
|
122
|
-
*
|
|
122
|
+
* Hover response. None by default: a hover promises that a click does something, and
|
|
123
|
+
* most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
|
|
124
|
+
* destination and belongs on a card that is a link or a button; it brings the matching
|
|
125
|
+
* keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
|
|
126
|
+
* kept for a consumer that already asks for it.
|
|
123
127
|
*/
|
|
124
128
|
hover: {
|
|
125
129
|
none: {},
|
|
126
130
|
shadow: { root: 'hover:shadow-md' },
|
|
127
|
-
lift: {
|
|
131
|
+
lift: {
|
|
132
|
+
root: 'cursor-pointer hover:-translate-y-1 hover:shadow-lg motion-reduce:hover:translate-y-0 ' +
|
|
133
|
+
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary',
|
|
134
|
+
},
|
|
128
135
|
},
|
|
129
136
|
/**
|
|
130
137
|
* Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
|
|
@@ -167,7 +174,7 @@ const mnCardVariants = tv({
|
|
|
167
174
|
defaultVariants: {
|
|
168
175
|
padding: 'sm',
|
|
169
176
|
layout: 'column',
|
|
170
|
-
hover: '
|
|
177
|
+
hover: 'none',
|
|
171
178
|
enter: 'none',
|
|
172
179
|
borderRadius: 'two_xl',
|
|
173
180
|
color: 'primary',
|
|
@@ -261,7 +268,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
261
268
|
* One fact at a glance: a tinted icon chip, a muted label and a large tabular number,
|
|
262
269
|
* on the {@link MnCard} shell, in a tile that shares a row with its siblings as
|
|
263
270
|
* `flex-1`. Project the icon as content; project a badge or a short note into the
|
|
264
|
-
* `trailing` slot when the number needs a qualifier.
|
|
271
|
+
* `trailing` slot when the number needs a qualifier. Set `loading` while the figure is still on
|
|
272
|
+
* its way: the tile keeps its label and icon and holds a skeleton where the number goes, so a
|
|
273
|
+
* count that has not arrived never reads as a zero.
|
|
265
274
|
*
|
|
266
275
|
* ```html
|
|
267
276
|
* <div class="flex flex-wrap gap-4">
|
|
@@ -276,22 +285,29 @@ class MnStatTile {
|
|
|
276
285
|
label;
|
|
277
286
|
/** The figure, already formatted for display. */
|
|
278
287
|
value;
|
|
288
|
+
/**
|
|
289
|
+
* The figure has not arrived yet: a skeleton takes the number's place, the trailing slot is
|
|
290
|
+
* held back and the tile is marked busy. Label and icon stay, so nothing moves when it lands.
|
|
291
|
+
*/
|
|
292
|
+
loading = false;
|
|
279
293
|
/** Colour of the chip; see {@link MnStatTileTypes}. */
|
|
280
294
|
data = {};
|
|
281
295
|
/** Grows to share its row and never forces the row wider than its siblings. */
|
|
282
296
|
hostClasses = 'flex flex-1 basis-40 min-w-0';
|
|
283
297
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MnStatTile, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
284
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
298
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: MnStatTile, isStandalone: true, selector: "mn-stat-tile", inputs: { label: "label", value: "value", loading: "loading", data: "data" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<!-- The card is a row: chip, then label over number. The muted label reads the\n consumer's muted-text token when it has one and plain base text otherwise. -->\n<div mnCard class=\"w-full\" [data]=\"{ layout: 'row' }\" [attr.aria-busy]=\"loading || null\">\n <mn-icon-chip [data]=\"{ color: data.color }\">\n <ng-content></ng-content>\n </mn-icon-chip>\n <div class=\"flex min-w-0 flex-1 flex-col gap-0.5\">\n <span class=\"text-sm text-(--color-base-content-muted,var(--color-base-content))\">{{ label | mnTranslate }}</span>\n <div class=\"flex flex-wrap items-baseline gap-2\">\n <!-- The skeleton is the height of the number's line box, so the tile keeps its height when it lands. -->\n @if (loading) {\n <mn-skeleton [data]=\"{ width: '2.5rem', height: '1.5rem' }\"></mn-skeleton>\n } @else {\n <span class=\"text-2xl font-bold leading-none tabular-nums text-base-content\">{{ value }}</span>\n <ng-content select=\"[trailing]\"></ng-content>\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: MnCard, selector: "mn-card, [mnCard]", inputs: ["data", "heading", "enterDelayMs"] }, { kind: "component", type: MnIconChip, selector: "mn-icon-chip", inputs: ["data"] }, { kind: "component", type: MnSkeleton, selector: "mn-skeleton", inputs: ["data"] }, { kind: "pipe", type: MnTranslatePipe, name: "mnTranslate" }] });
|
|
285
299
|
}
|
|
286
300
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MnStatTile, decorators: [{
|
|
287
301
|
type: Component,
|
|
288
|
-
args: [{ selector: 'mn-stat-tile', standalone: true, imports: [MnCard, MnIconChip, MnTranslatePipe], template: "<!-- The card is a row: chip, then label over number. The muted label reads the\n consumer's muted-text token when it has one and plain base text otherwise. -->\n<div mnCard class=\"w-full\" [data]=\"{ layout: 'row' }\">\n <mn-icon-chip [data]=\"{ color: data.color }\">\n <ng-content></ng-content>\n </mn-icon-chip>\n <div class=\"flex min-w-0 flex-1 flex-col gap-0.5\">\n <span class=\"text-sm text-(--color-base-content-muted,var(--color-base-content))\">{{ label | mnTranslate }}</span>\n <div class=\"flex flex-wrap items-baseline gap-2\">\n <span class=\"text-2xl font-bold leading-none tabular-nums text-base-content\">{{ value }}</span>\n
|
|
302
|
+
args: [{ selector: 'mn-stat-tile', standalone: true, imports: [MnCard, MnIconChip, MnSkeleton, MnTranslatePipe], template: "<!-- The card is a row: chip, then label over number. The muted label reads the\n consumer's muted-text token when it has one and plain base text otherwise. -->\n<div mnCard class=\"w-full\" [data]=\"{ layout: 'row' }\" [attr.aria-busy]=\"loading || null\">\n <mn-icon-chip [data]=\"{ color: data.color }\">\n <ng-content></ng-content>\n </mn-icon-chip>\n <div class=\"flex min-w-0 flex-1 flex-col gap-0.5\">\n <span class=\"text-sm text-(--color-base-content-muted,var(--color-base-content))\">{{ label | mnTranslate }}</span>\n <div class=\"flex flex-wrap items-baseline gap-2\">\n <!-- The skeleton is the height of the number's line box, so the tile keeps its height when it lands. -->\n @if (loading) {\n <mn-skeleton [data]=\"{ width: '2.5rem', height: '1.5rem' }\"></mn-skeleton>\n } @else {\n <span class=\"text-2xl font-bold leading-none tabular-nums text-base-content\">{{ value }}</span>\n <ng-content select=\"[trailing]\"></ng-content>\n }\n </div>\n </div>\n</div>\n" }]
|
|
289
303
|
}], propDecorators: { label: [{
|
|
290
304
|
type: Input,
|
|
291
305
|
args: [{ required: true }]
|
|
292
306
|
}], value: [{
|
|
293
307
|
type: Input,
|
|
294
308
|
args: [{ required: true }]
|
|
309
|
+
}], loading: [{
|
|
310
|
+
type: Input
|
|
295
311
|
}], data: [{
|
|
296
312
|
type: Input
|
|
297
313
|
}], hostClasses: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mn-angular-lib-display.mjs","sources":["../../../projects/mn-angular-lib/display/src/mn-card/mn-icon-chipVariants.ts","../../../projects/mn-angular-lib/display/src/mn-card/mn-icon-chip.ts","../../../projects/mn-angular-lib/display/src/mn-card/mn-icon-chip.html","../../../projects/mn-angular-lib/display/src/mn-card/mn-cardVariants.ts","../../../projects/mn-angular-lib/display/src/mn-card/mn-card.ts","../../../projects/mn-angular-lib/display/src/mn-card/mn-card.html","../../../projects/mn-angular-lib/display/src/mn-card/mn-stat-tile.ts","../../../projects/mn-angular-lib/display/src/mn-card/mn-stat-tile.html","../../../projects/mn-angular-lib/display/src/mn-card/mn-proportion-bar.ts","../../../projects/mn-angular-lib/display/src/mn-card/mn-proportion-bar.html","../../../projects/mn-angular-lib/display/src/mn-breadcrumbs/mn-breadcrumbsVariants.ts","../../../projects/mn-angular-lib/display/src/mn-breadcrumbs/mn-breadcrumbs.ts","../../../projects/mn-angular-lib/display/src/mn-breadcrumbs/mn-breadcrumbs.html","../../../projects/mn-angular-lib/display/src/mn-icon/mn-iconVariants.ts","../../../projects/mn-angular-lib/display/src/mn-icon/mn-icon-map.ts","../../../projects/mn-angular-lib/display/src/mn-icon/mn-icon.ts","../../../projects/mn-angular-lib/display/src/mn-icon/mn-icon.html","../../../projects/mn-angular-lib/display/src/mn-icon/mn-icon-attributes.directive.ts","../../../projects/mn-angular-lib/display/public-api.ts","../../../projects/mn-angular-lib/display/mn-angular-lib-display.ts"],"sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\n/**\n * Styling for {@link MnIconChip}: one 10% wash of the colour behind an icon drawn in\n * the consumer's `--color-<colour>-text` token when it defines one (the shade it uses\n * for readable coloured text on a tinted ground) and in the base colour otherwise, the\n * same device `mnBadge` uses. The radius grows with the box so the corner reads the\n * same at every size.\n */\nexport const mnIconChipVariants = tv({\n base: 'inline-flex shrink-0 items-center justify-center',\n variants: {\n /**\n * `xs` for compact rows and inline labels, `sm` for list rows, `md` for section-card headers\n * and stat tiles, `lg` for page headers, `xl` for a lone hero or empty-state icon.\n */\n size: {\n xs: 'h-8 w-8 rounded-lg',\n sm: 'h-9 w-9 rounded-lg',\n md: 'h-10 w-10 rounded-xl',\n lg: 'h-12 w-12 rounded-2xl',\n xl: 'h-14 w-14 rounded-2xl',\n },\n color: {\n primary: 'bg-primary/10 text-(--color-primary-text,var(--color-primary))',\n secondary: 'bg-secondary/10 text-(--color-secondary-text,var(--color-secondary))',\n accent: 'bg-accent/10 text-(--color-accent-text,var(--color-accent))',\n success: 'bg-success/10 text-(--color-success-text,var(--color-success))',\n warning: 'bg-warning/10 text-(--color-warning-text,var(--color-warning))',\n danger: 'bg-error/10 text-(--color-error-text,var(--color-error))',\n gray: 'bg-base-content/10 text-base-content/70',\n },\n },\n defaultVariants: {\n size: 'md',\n color: 'primary',\n },\n});\n\nexport type MnIconChipVariants = VariantProps<typeof mnIconChipVariants>;\n","import { Component, HostBinding, Input } from '@angular/core';\nimport { MnIconChipTypes } from './mn-icon-chipTypes';\nimport { mnIconChipVariants } from './mn-icon-chipVariants';\n\n/**\n * The tinted square that carries an icon in front of a card title, a stat or a list\n * row: the one place a colour says \"what kind of thing this is\". Project the icon as\n * content; the chip sizes and tints itself and never grows with the row.\n *\n * Decorative for assistive technology: the title or label beside it carries the\n * meaning, so the chip is `aria-hidden` and a screen reader never meets a bare icon.\n *\n * ```html\n * <mn-icon-chip [data]=\"{ color: 'success', size: 'md' }\">\n * <svg lucideCheck [size]=\"20\"></svg>\n * </mn-icon-chip>\n * ```\n */\n@Component({\n selector: 'mn-icon-chip',\n standalone: true,\n templateUrl: './mn-icon-chip.html',\n host: { 'aria-hidden': 'true' },\n})\nexport class MnIconChip {\n /** Size and colour; see {@link MnIconChipTypes}. */\n @Input() data: Partial<MnIconChipTypes> = {};\n\n /** The chip's own classes; the consumer's static classes merge with them. */\n @HostBinding('class')\n get hostClasses(): string {\n return mnIconChipVariants({\n size: this.data.size,\n color: this.data.color,\n });\n }\n}\n","<ng-content></ng-content>\n","import { tv, type VariantProps } from 'tailwind-variants';\n\n/**\n * Styling for {@link MnCard}, as tailwind-variants slots: `root` is the card element\n * itself, `accent` the optional bar along its top edge, `header` the heading row and\n * `title` the `h2` inside it.\n *\n * Theme tokens only, so the card holds up in light and dark. The surface reads the\n * consumer's `--color-base-card` when it defines one (a card ground a step off the\n * page background) and falls back to `base-100` otherwise, the same fallback device\n * `mnBadge` uses for its `-text` tokens.\n */\nexport const mnCardVariants = tv({\n slots: {\n root:\n 'relative flex overflow-hidden border border-base-300 ' +\n 'bg-(--color-base-card,var(--color-base-100)) ' +\n // Only what a hover changes. `transition-all` also animated padding, radius and border\n // width from their initial values whenever a card mounted.\n 'transition-[translate,box-shadow,border-color] duration-200 motion-reduce:transition-none',\n accent: 'absolute inset-x-0 top-0 h-1',\n header: 'flex flex-wrap items-center gap-3',\n title: 'text-lg font-semibold text-base-content',\n },\n variants: {\n /**\n * Inner padding, and with it the gap between the card's children: a tile needs\n * less air than a section card, and a section card that had to say `gap-4` on\n * every use would drift.\n */\n padding: {\n sm: { root: 'p-4 gap-3' },\n md: { root: 'p-5 gap-4' },\n lg: { root: 'p-6 gap-5' },\n },\n /** How the children flow: stacked (the default) or on one line, centred. */\n layout: {\n column: { root: 'flex-col' },\n row: { root: 'flex-row items-center' },\n },\n /**\n * Hover response. `shadow` is a little depth for a card that only sits there;\n * `lift` promises a destination and belongs on a card that is a link.\n */\n hover: {\n none: {},\n shadow: { root: 'hover:shadow-md' },\n lift: { root: 'hover:-translate-y-1 hover:shadow-lg' },\n },\n /**\n * Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme\n * defines them (a short rise-in, delayed per card through\n * {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users\n * never see it. Off by default: a rise belongs to a card that is one of a list, so a\n * page's static cards do not all move at once.\n */\n enter: {\n none: {},\n rise: { root: 'animate-rise motion-reduce:animate-none' },\n },\n /** Corner rounding, in mn-button's radius tokens. */\n borderRadius: {\n none: { root: 'rounded-none' },\n xs: { root: 'rounded-xs' },\n sm: { root: 'rounded-sm' },\n md: { root: 'rounded-md' },\n lg: { root: 'rounded-lg' },\n xl: { root: 'rounded-xl' },\n two_xl: { root: 'rounded-2xl' },\n three_xl: { root: 'rounded-3xl' },\n four_xl: { root: 'rounded-4xl' },\n },\n /**\n * Colour of the accent bar and of the heading's icon chip: the same palette as\n * mn-button and the icon chip. What the colour *means* (a kind, a status, a\n * module) is the consumer's choice; the card only renders it.\n */\n color: {\n primary: { accent: 'bg-primary' },\n secondary: { accent: 'bg-secondary' },\n accent: { accent: 'bg-accent' },\n success: { accent: 'bg-success' },\n warning: { accent: 'bg-warning' },\n danger: { accent: 'bg-error' },\n gray: { accent: 'bg-base-content/30' },\n },\n },\n defaultVariants: {\n padding: 'sm',\n layout: 'column',\n hover: 'shadow',\n enter: 'none',\n borderRadius: 'two_xl',\n color: 'primary',\n },\n});\n\nexport type MnCardVariants = VariantProps<typeof mnCardVariants>;\n","import { Component, HostBinding, Input } from '@angular/core';\nimport { MnTranslatePipe } from 'mn-angular-lib/core';\nimport { MnIconChip } from './mn-icon-chip';\nimport { MnCardTypes } from './mn-cardTypes';\nimport { mnCardVariants } from './mn-cardVariants';\n\n/**\n * The card: a rounded surface with a hairline border, a hover response and an\n * optional accent bar along its top edge. The body is whatever the consumer projects,\n * so a booking, a competition and a pending-action tile share one look without\n * sharing a view model.\n *\n * It is an attribute as well as an element, like `mnButton` and `mnBadge`: `<mn-card>`\n * for a plain surface, `<a mnCard [routerLink]>` for a card that is a link,\n * `<section mnCard>` when the landmark matters. Extra classes on the host merge with\n * the card's own, so sizing it (`min-w-0 flex-1`, `lg:w-80`) is ordinary CSS on the\n * element, not an input.\n *\n * A **section card** passes a {@link heading}: the card then renders the shared header\n * row, an {@link MnIconChip} beside an `h2`, then whatever trails the title (a badge, a\n * button). Project the icon with the `cardIcon` attribute and group the trailing content\n * in one `cardHeaderEnd` container, so the template reads icon, header end, body:\n *\n * ```html\n * <mn-card [data]=\"{ padding: 'md', color: 'primary' }\" heading=\"meetings.agenda.title\">\n * <svg cardIcon lucideListOrdered [size]=\"20\"></svg>\n * <ng-container cardHeaderEnd>\n * <span mnBadge [data]=\"{ size: 'sm', color: 'warning' }\">Draft</span>\n * </ng-container>\n * ...body...\n * </mn-card>\n * ```\n *\n * The other members of the family build on this shell: {@link MnStatTile} for one\n * figure at a glance, and {@link MnProportionBar} for the bar inside a card.\n */\n@Component({\n selector: 'mn-card, [mnCard]',\n standalone: true,\n imports: [MnIconChip, MnTranslatePipe],\n templateUrl: './mn-card.html',\n})\nexport class MnCard {\n /** Padding, layout, hover, entrance, radius, colour and accent; see {@link MnCardTypes}. */\n @Input() data: Partial<MnCardTypes> = {};\n\n /**\n * Section title, as a translation key or a literal. When set, the header row with\n * the icon chip and `h2` renders above the body. Deliberately not called `title`: a\n * static `title=\"...\"` on the host would also become a browser tooltip.\n */\n @Input() heading?: string;\n\n /**\n * Delay before the entrance animation starts, in milliseconds, so a row of cards\n * can rise one after another. Ignored when {@link MnCardTypes.enter} is `none`.\n */\n @Input() enterDelayMs = 0;\n\n /** Resolved slot classes for the current configuration. */\n get styles() {\n return mnCardVariants({\n padding: this.data.padding,\n layout: this.data.layout,\n hover: this.data.hover,\n enter: this.data.enter,\n borderRadius: this.data.borderRadius,\n color: this.data.color,\n });\n }\n\n /** The card element's own classes; the consumer's static classes merge with them. */\n @HostBinding('class')\n get hostClasses(): string {\n return this.styles.root();\n }\n\n /** Staggers the entrance per card. */\n @HostBinding('style.animation-delay')\n get animationDelay(): string {\n return `${this.enterDelayMs}ms`;\n }\n}\n","<!-- The accent bar sits on the card's top edge, clipped by the host's overflow-hidden\n into the corner radius. Decorative: the colour's meaning is in the content. -->\n@if (data.accent) {\n <span [class]=\"styles.accent()\" aria-hidden=\"true\"></span>\n}\n<!-- The section header: chip, title, then whatever the consumer marks cardHeaderEnd.\n Wraps on narrow screens so a full-width button drops under the title. -->\n@if (heading; as text) {\n <div [class]=\"styles.header()\">\n <mn-icon-chip [data]=\"{ color: data.color }\">\n <ng-content select=\"[cardIcon]\"></ng-content>\n </mn-icon-chip>\n <h2 [class]=\"styles.title()\">{{ text | mnTranslate }}</h2>\n <ng-content select=\"[cardHeaderEnd]\"></ng-content>\n </div>\n}\n<ng-content></ng-content>\n","import { Component, HostBinding, Input } from '@angular/core';\nimport { MnTranslatePipe } from 'mn-angular-lib/core';\nimport { MnCard } from './mn-card';\nimport { MnIconChip } from './mn-icon-chip';\nimport { MnIconChipVariants } from './mn-icon-chipVariants';\n\n/** Configuration of one {@link MnStatTile}. */\nexport type MnStatTileTypes = {\n /** Colour of the chip; the number itself stays in the base text colour. Defaults to `primary`. */\n color: MnIconChipVariants['color'];\n};\n\n/**\n * One fact at a glance: a tinted icon chip, a muted label and a large tabular number,\n * on the {@link MnCard} shell, in a tile that shares a row with its siblings as\n * `flex-1`. Project the icon as content; project a badge or a short note into the\n * `trailing` slot when the number needs a qualifier.\n *\n * ```html\n * <div class=\"flex flex-wrap gap-4\">\n * <mn-stat-tile label=\"meetings.attending\" [value]=\"yesCount\" [data]=\"{ color: 'success' }\">\n * <svg lucideCheck [size]=\"20\"></svg>\n * </mn-stat-tile>\n * </div>\n * ```\n */\n@Component({\n selector: 'mn-stat-tile',\n standalone: true,\n imports: [MnCard, MnIconChip, MnTranslatePipe],\n templateUrl: './mn-stat-tile.html',\n})\nexport class MnStatTile {\n /** Caption under the number, as a translation key or a literal. */\n @Input({ required: true }) label!: string;\n\n /** The figure, already formatted for display. */\n @Input({ required: true }) value!: string | number;\n\n /** Colour of the chip; see {@link MnStatTileTypes}. */\n @Input() data: Partial<MnStatTileTypes> = {};\n\n /** Grows to share its row and never forces the row wider than its siblings. */\n @HostBinding('class')\n readonly hostClasses = 'flex flex-1 basis-40 min-w-0';\n}\n","<!-- The card is a row: chip, then label over number. The muted label reads the\n consumer's muted-text token when it has one and plain base text otherwise. -->\n<div mnCard class=\"w-full\" [data]=\"{ layout: 'row' }\">\n <mn-icon-chip [data]=\"{ color: data.color }\">\n <ng-content></ng-content>\n </mn-icon-chip>\n <div class=\"flex min-w-0 flex-1 flex-col gap-0.5\">\n <span class=\"text-sm text-(--color-base-content-muted,var(--color-base-content))\">{{ label | mnTranslate }}</span>\n <div class=\"flex flex-wrap items-baseline gap-2\">\n <span class=\"text-2xl font-bold leading-none tabular-nums text-base-content\">{{ value }}</span>\n <ng-content select=\"[trailing]\"></ng-content>\n </div>\n </div>\n</div>\n","import { Component, inject, Input } from '@angular/core';\nimport { MnLanguageService } from 'mn-angular-lib/core';\nimport { MnProportionBarTypes, MnProportionSegment } from './mn-proportion-barTypes';\n\n/** Fill class per colour, spelled out so Tailwind's scanner finds every one. */\nconst SEGMENT_CLASS: Record<MnProportionSegment['color'], string> = {\n primary: 'bg-primary',\n secondary: 'bg-secondary',\n accent: 'bg-accent',\n success: 'bg-success',\n warning: 'bg-warning',\n danger: 'bg-error',\n gray: 'bg-base-content/25',\n};\n\n/** Tinted fill class per colour for a `soft` segment, spelled out for the same reason. */\nconst SOFT_SEGMENT_CLASS: Record<MnProportionSegment['color'], string> = {\n primary: 'bg-primary/30',\n secondary: 'bg-secondary/30',\n accent: 'bg-accent/30',\n success: 'bg-success/30',\n warning: 'bg-warning/30',\n danger: 'bg-error/30',\n gray: 'bg-base-content/15',\n};\n\n/** Track height per size. */\nconst HEIGHT_CLASS: Record<MnProportionBarTypes['height'], string> = {\n sm: 'h-2',\n md: 'h-2.5',\n};\n\n/** A segment resolved to a rendered width. */\nexport type MnRenderedProportionSegment = {\n /** Percentage of the track this run covers. */\n widthPct: number;\n /** Fill class for the run. */\n fillClass: string;\n};\n\n/**\n * The proportional bar every turnout, budget, capacity and collection figure draws:\n * a rounded track with one coloured run per segment, widths from the values. Empty\n * segments are skipped so a zero never leaves a hairline. Announced as one image with\n * the caller's label, because the numbers it visualises are always written out next\n * to it.\n *\n * ```html\n * <mn-proportion-bar\n * [segments]=\"[{ value: yes, color: 'success' }, { value: maybe, color: 'warning' }]\"\n * [total]=\"invited\"\n * ariaLabel=\"meetings.responses.title\">\n * </mn-proportion-bar>\n *\n * <mn-proportion-bar\n * [segments]=\"[{ value: filled, color: 'primary' }]\"\n * [total]=\"capacity\"\n * ariaLabel=\"volunteers.filledOf\"\n * [ariaLabelParams]=\"{ filled, total: capacity }\">\n * </mn-proportion-bar>\n * ```\n */\n@Component({\n selector: 'mn-proportion-bar',\n standalone: true,\n templateUrl: './mn-proportion-bar.html',\n})\nexport class MnProportionBar {\n /** The coloured runs, in draw order from the left. */\n @Input({ required: true }) segments!: MnProportionSegment[];\n\n /** The whole the segments are measured against; defaults to their sum. */\n @Input() total?: number | null;\n\n /** Accessible name for the bar as a whole, as a translation key or a literal. */\n @Input({ required: true }) ariaLabel!: string;\n\n /**\n * `{{name}}` interpolation values for {@link ariaLabel}, so a name that quotes the figures\n * (\"3 of 8 places filled\") can still be passed as a key and translated here, in the active\n * locale, rather than as a sentence the caller translated up front. A `count` selects the\n * plural wording like any other `translate` call.\n */\n @Input() ariaLabelParams?: Record<string, string | number>;\n\n /** Track thickness; see {@link MnProportionBarTypes}. */\n @Input() data: Partial<MnProportionBarTypes> = {};\n\n /** Resolves the accessible name against the app's bundle. */\n private readonly lang = inject(MnLanguageService);\n\n /** The translated accessible name. */\n get label(): string {\n return this.lang.translate(this.ariaLabel, this.ariaLabelParams);\n }\n\n /** Every class on the track element. */\n get trackClass(): string {\n return `flex w-full overflow-hidden rounded-full bg-base-content/10 ${HEIGHT_CLASS[this.data.height ?? 'md']}`;\n }\n\n /** The denominator actually used: the explicit total when positive, else the segment sum. */\n private get denominator(): number {\n const explicit = this.total;\n if (explicit !== null && explicit !== undefined && explicit > 0) return explicit;\n return this.segments.reduce((sum, segment) => sum + Math.max(0, segment.value), 0);\n }\n\n /** Segments with a width, empty ones dropped. */\n get rendered(): MnRenderedProportionSegment[] {\n const denominator = this.denominator;\n if (denominator <= 0) return [];\n return this.segments\n .filter((segment) => segment.value > 0)\n .map((segment) => ({\n widthPct: Math.min(100, (segment.value / denominator) * 100),\n fillClass: (segment.soft ? SOFT_SEGMENT_CLASS : SEGMENT_CLASS)[segment.color],\n }));\n }\n}\n","<!-- One labelled image: the runs are decoration, the numbers live in the caller's text. -->\n<div role=\"img\" [attr.aria-label]=\"label\" [class]=\"trackClass\">\n @for (segment of rendered; track $index) {\n <span\n class=\"h-full transition-[width] duration-300 ease-out motion-reduce:transition-none\"\n [class]=\"segment.fillClass\"\n [style.width.%]=\"segment.widthPct\"\n ></span>\n }\n</div>\n","import { tv, type VariantProps } from 'tailwind-variants';\n\n/**\n * Styling for {@link MnBreadcrumbs}, expressed as tailwind-variants slots so the\n * template can pull one class string per role. Theme tokens only, so the trail\n * reads correctly in both light and dark. Links and the Back control are native\n * `<button>`/`<a>` elements reset to look like plain text with a hover accent.\n *\n * A crumb carries vertical padding that the list takes back with a negative\n * margin, so the row keeps the height it always had while each crumb is a\n * target you can hit rather than the bare height of its text. The collapsed\n * control replaces the trail on a phone, where it is the only way up, so it\n * takes a full 44px.\n */\nexport const mnBreadcrumbsVariants = tv({\n slots: {\n root: 'flex items-center',\n list: 'flex flex-wrap items-center -my-1.5',\n link:\n 'inline-flex items-center bg-transparent border-0 px-1 -mx-1 py-1.5 rounded-md cursor-pointer ' +\n 'text-base-content/60 hover:text-primary transition-colors ' +\n 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary',\n current: 'inline-flex items-center py-1.5 font-semibold text-base-content',\n separator: 'inline-flex shrink-0 text-base-content/40',\n back:\n 'inline-flex items-center gap-1 bg-transparent border-0 p-0 rounded-md cursor-pointer ' +\n 'text-base-content/70 hover:text-primary transition-colors ' +\n 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary',\n collapsed:\n 'inline-flex min-h-11 items-center gap-1 bg-transparent border-0 px-1 -mx-1 rounded-md cursor-pointer ' +\n 'text-base-content/70 hover:text-primary transition-colors sm:hidden ' +\n 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary',\n },\n variants: {\n size: {\n // Text size lives on the root so every crumb, separator and the Back\n // control inherit it; only the inter-crumb gap changes per slot.\n sm: { root: 'text-xs', list: 'gap-1' },\n md: { root: 'text-sm', list: 'gap-1.5' },\n },\n /** Whether the parent crumb takes the trail's place below `sm`. */\n collapsible: {\n true: { list: 'hidden sm:flex' },\n false: {},\n },\n },\n defaultVariants: {\n size: 'md',\n collapsible: false,\n },\n});\n\nexport type MnBreadcrumbsVariants = VariantProps<typeof mnBreadcrumbsVariants>;\n","import {\n Component,\n EventEmitter,\n inject,\n Input,\n Output,\n} from '@angular/core';\nimport { LucideDynamicIcon } from '@lucide/angular';\nimport { MnLanguageService, MnTranslatePipe } from 'mn-angular-lib/core';\nimport { MnBreadcrumbItem, MnBreadcrumbsData } from './mn-breadcrumbsTypes';\nimport { mnBreadcrumbsVariants } from './mn-breadcrumbsVariants';\nimport * as lucide from 'lucide';\nimport { lucideIcons } from 'mn-angular-lib/core';\n\n/** Lucide icons this file renders. */\nconst ICONS = lucideIcons({ ChevronLeft: lucide.ChevronLeft, ChevronRight: lucide.ChevronRight });\n\n/**\n * A flexible breadcrumb trail.\n *\n * Given crumbs it renders a linkable trail (`root › … › current`) where the last\n * crumb is the current page and is never a link. Given no crumbs it degrades to\n * a single \"Back\" control — the two are mutually exclusive.\n *\n * The one thing a width decides is how much of the trail shows: below `sm` the\n * crumbs give way to the parent crumb alone, drawn as a back control, unless\n * `data.collapse` is `'never'`. That measures nothing — both renderings sit in\n * the DOM and a Tailwind breakpoint hides one — and there is deliberately no\n * scroll machinery: on a phone a hierarchy is a way up rather than a map, and a\n * trail that scrolls sideways buries the one link anybody reaches for.\n *\n * Navigation stays router- and history-agnostic where possible: a crumb (or the\n * Back control) with an `href` renders a plain `<a>` and navigates natively;\n * otherwise clicks emit outputs for the app to handle. Only the Back fallback\n * with no `href` reaches for `history.back()`.\n */\n@Component({\n selector: 'mn-breadcrumbs',\n standalone: true,\n imports: [MnTranslatePipe, LucideDynamicIcon],\n templateUrl: './mn-breadcrumbs.html',\n})\nexport class MnBreadcrumbs {\n /** Lucide icons the template renders. */\n protected readonly icons = ICONS;\n\n /** Trail crumbs and Back-fallback configuration. */\n @Input() data: MnBreadcrumbsData = { items: [] };\n\n /** Emits the crumb that was clicked (non-current crumbs only). */\n @Output() crumbClick = new EventEmitter<MnBreadcrumbItem>();\n\n /** Emits when the fallback \"Back\" control is activated. */\n @Output() back = new EventEmitter<void>();\n\n /** Conventional key an app defines to translate the Back control's label. */\n private static readonly BACK_LABEL_KEY = 'mnBreadcrumbs.back';\n /** Conventional key an app defines to name the navigation landmark. */\n private static readonly NAV_LABEL_KEY = 'mnBreadcrumbs.label';\n /** Resolves this component's own labels against the app's bundle. */\n private readonly lang = inject(MnLanguageService);\n\n /** Resolved tailwind-variants slot functions for the current size. */\n get styles() {\n return mnBreadcrumbsVariants({ size: this.data.size, collapsible: this.collapsesToParent });\n }\n\n /** Whether the parent crumb replaces the trail below `sm`. */\n get collapsesToParent(): boolean {\n return this.data.collapse !== 'never' && (this.data.items?.length ?? 0) > 1;\n }\n\n /**\n * The crumb one level above the current page, or `null` when the trail stays\n * whole: a single crumb has nowhere to go up to, and `'never'` asks for every\n * crumb at every width.\n */\n get parentCrumb(): MnBreadcrumbItem | null {\n if (!this.collapsesToParent) {\n return null;\n }\n return this.data.items[this.data.items.length - 2];\n }\n\n /**\n * Accessible name of the `<nav>` landmark.\n *\n * A landmark's name is announced verbatim, so leaving it as a hardcoded English\n * \"Breadcrumb\" put one English word into every page of a translated app — in the\n * one place only screen-reader users hear.\n */\n get navLabel(): string {\n return this.lang.translateIfPresent(MnBreadcrumbs.NAV_LABEL_KEY) ?? 'Breadcrumb';\n }\n\n /** Whether a linkable trail should render (vs the Back fallback). */\n get hasTrail(): boolean {\n return (this.data.items?.length ?? 0) > 0;\n }\n\n /**\n * Text of the Back control, already translated.\n *\n * `data.backLabel` is a key (or a literal, which `translate` passes through\n * unchanged). Without one this falls back to the conventional key and then to\n * English — never to a raw key: the old default was the bare key `'back'`, which\n * the template's translate pipe echoed as lowercase \"back\" in every app that had\n * not happened to define it.\n */\n get backLabel(): string {\n if (this.data.backLabel) {\n return this.lang.translate(this.data.backLabel);\n }\n return this.lang.translateIfPresent(MnBreadcrumbs.BACK_LABEL_KEY) ?? 'Back';\n }\n\n /** The last crumb is the current page and is rendered as plain text. */\n isCurrent(index: number): boolean {\n return index === this.data.items.length - 1;\n }\n\n /** Runs a crumb's own callback and notifies listeners of the click. */\n onCrumb(item: MnBreadcrumbItem): void {\n item.onClick?.();\n this.crumbClick.emit(item);\n }\n\n /**\n * Fallback Back action. Always emits `back` for listeners; when no `backHref`\n * anchor is carrying the navigation, steps back through browser history.\n */\n onBack(): void {\n this.back.emit();\n if (!this.data.backHref) {\n window.history.back();\n }\n }\n}\n","<nav [attr.aria-label]=\"navLabel\" [class]=\"styles.root()\">\n @if (hasTrail) {\n <ol [class]=\"styles.list()\">\n @for (item of data.items; track $index; let first = $first) {\n @if (!first) {\n <li aria-hidden=\"true\" [class]=\"styles.separator()\">\n <svg [size]=\"14\" [lucideIcon]=\"icons.ChevronRight\"></svg>\n </li>\n }\n <li class=\"inline-flex items-center\">\n @if (isCurrent($index)) {\n <span aria-current=\"page\" [class]=\"styles.current()\">{{ item.label | mnTranslate }}</span>\n } @else if (item.href) {\n <a [attr.href]=\"item.href\" [class]=\"styles.link()\" (click)=\"onCrumb(item)\">{{ item.label | mnTranslate }}</a>\n } @else {\n <button type=\"button\" [class]=\"styles.link()\" (click)=\"onCrumb(item)\">{{ item.label | mnTranslate }}</button>\n }\n </li>\n }\n </ol>\n <!--\n Below `sm` the trail above is hidden and this takes its place: the parent\n crumb as a back control. Both sit in the DOM and CSS decides which one is\n there for the reader, so nothing has to measure a width.\n -->\n @if (parentCrumb; as parent) {\n @if (parent.href) {\n <a [attr.href]=\"parent.href\" [class]=\"styles.collapsed()\" (click)=\"onCrumb(parent)\">\n <svg [size]=\"16\" [lucideIcon]=\"icons.ChevronLeft\"></svg>\n {{ parent.label | mnTranslate }}\n </a>\n } @else {\n <button type=\"button\" [class]=\"styles.collapsed()\" (click)=\"onCrumb(parent)\">\n <svg [size]=\"16\" [lucideIcon]=\"icons.ChevronLeft\"></svg>\n {{ parent.label | mnTranslate }}\n </button>\n }\n }\n } @else if (data.backHref) {\n <a [attr.href]=\"data.backHref\" [class]=\"styles.back()\" (click)=\"onBack()\">\n <svg [size]=\"16\" [lucideIcon]=\"icons.ChevronLeft\"></svg>\n {{ backLabel }}\n </a>\n } @else {\n <button type=\"button\" [class]=\"styles.back()\" (click)=\"onBack()\">\n <svg [size]=\"16\" [lucideIcon]=\"icons.ChevronLeft\"></svg>\n {{ backLabel }}\n </button>\n }\n</nav>\n","import { tv, type VariantProps } from 'tailwind-variants';\n\nexport const mnIconVariants = tv({\n base: 'inline-flex shrink-0',\n variants: {\n color: {\n current: 'text-current',\n primary: 'text-primary',\n secondary: 'text-secondary',\n danger: 'text-error',\n warning: 'text-warning',\n success: 'text-success',\n accent: 'text-accent',\n },\n },\n\n defaultVariants: {\n color: 'current',\n },\n});\n\nexport type MnIconVariants = VariantProps<typeof mnIconVariants>;\n","// Custom SVGs that are NOT available in lucide (https://lucide.dev).\n// For any lucide icon, render lucide icon data instead — e.g.\n// `<svg [lucideIcon]=\"icons.X\" [size]=\"18\"></svg>` with `lucideIcons()` — rather than adding it here.\n// Sourced from the .svg files in the ./icons/ directory.\nconst pistolSvg = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M8.72 14.56 9 10h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v4c2.5 0 1 4 1 4-4 6-1 6-1 6h3.38a1 1 0 0 0 .89-.55za1 1 0 0 1 .9-.56H13a2 2 0 0 0 2-2v-1a1 1 0 0 1 1-1\" /></svg>`;\n\nexport const MN_ICON_MAP: Record<string, string> = {\n pistol: pistolSvg,\n};\n","import {\n Component,\n HostBinding,\n Input,\n OnChanges,\n OnInit,\n inject,\n ElementRef,\n} from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { MnIconTypes } from './mn-iconTypes';\nimport { mnIconVariants } from './mn-iconVariants';\nimport { MN_ICON_MAP } from './mn-icon-map';\n\n@Component({\n selector: 'mn-icon',\n standalone: true,\n templateUrl: './mn-icon.html',\n})\nexport class MnIcon implements OnChanges, OnInit {\n @Input() data: Partial<MnIconTypes> = {};\n\n private sanitizer = inject(DomSanitizer);\n private el = inject(ElementRef);\n\n svgContent: SafeHtml = '';\n\n get iconSize(): number {\n return this.data.size ?? 24;\n }\n\n @HostBinding('class')\n get hostClasses(): string {\n return mnIconVariants({\n color: this.data.color,\n });\n }\n\n private resolvedName: string | null = null;\n\n ngOnInit(): void {\n const attrs = this.el.nativeElement.attributes;\n for (const item of Array.from<Attr>(attrs)) {\n const attr = item.name.toLowerCase();\n if (attr.startsWith('mnicon')) {\n const iconKey = attr.slice('mnicon'.length);\n for (const key of Object.keys(MN_ICON_MAP)) {\n if (key.toLowerCase() === iconKey) {\n this.resolvedName = key;\n break;\n }\n }\n if (this.resolvedName) break;\n }\n }\n this.updateContent();\n }\n\n ngOnChanges(): void {\n this.updateContent();\n }\n\n private updateContent(): void {\n const name = this.data.name ?? this.resolvedName;\n if (name) {\n const raw = MN_ICON_MAP[name];\n if (raw) {\n const size = this.iconSize;\n const isFullSvg = raw.trim().startsWith('<svg');\n if (isFullSvg) {\n const sized = raw.replace(/<svg([^>]*)>/, (_match: string, attrs: string) => {\n let updated = attrs.replace(/width=\"[^\"]*\"/, `width=\"${size}\"`);\n updated = updated.replace(/height=\"[^\"]*\"/, `height=\"${size}\"`);\n if (!attrs.includes('width=')) updated += ` width=\"${size}\"`;\n if (!attrs.includes('height=')) updated += ` height=\"${size}\"`;\n return `<svg${updated}>`;\n });\n this.svgContent = this.sanitizer.bypassSecurityTrustHtml(sized);\n } else {\n const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${size}\" height=\"${size}\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">${raw}</svg>`;\n this.svgContent = this.sanitizer.bypassSecurityTrustHtml(svg);\n }\n } else {\n this.svgContent = '';\n }\n } else {\n this.svgContent = '';\n }\n }\n}\n","<span\n [style.width.px]=\"iconSize\"\n [style.height.px]=\"iconSize\"\n style=\"display: inline-flex; align-items: center; justify-content: center;\"\n [innerHTML]=\"svgContent\"\n></span>\n","import { Directive } from '@angular/core';\n\n// AUTO-GENERATED — do not edit manually.\n// Run `npm run generate:icons` to regenerate after modifying MN_ICON_MAP.\n@Directive({\n selector: 'mn-icon[mnIconPistol]',\n standalone: true,\n})\nexport class MnIconAttributes {}\n","/**\n * Public API of the `mn-angular-lib/display` entry point: display components (card, breadcrumbs, icon).\n *\n * Each entry point is its own module in the published package, so a consumer's bundler\n * splits it into the chunk that uses it instead of loading the whole library at startup.\n * The root `mn-angular-lib` entry re-exports every entry point.\n */\nexport * from './src/mn-card';\nexport * from './src/mn-breadcrumbs';\nexport * from './src/mn-icon';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAEA;;;;;;AAMG;AACI,MAAM,kBAAkB,GAAG,EAAE,CAAC;AACnC,IAAA,IAAI,EAAE,kDAAkD;AACxD,IAAA,QAAQ,EAAE;AACR;;;AAGG;AACH,QAAA,IAAI,EAAE;AACJ,YAAA,EAAE,EAAE,oBAAoB;AACxB,YAAA,EAAE,EAAE,oBAAoB;AACxB,YAAA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B,CAAA;uGAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;ACPD;;;;;;AAMG;;ACNH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"mn-angular-lib-display.mjs","sources":["../../../projects/mn-angular-lib/display/src/mn-card/mn-icon-chipVariants.ts","../../../projects/mn-angular-lib/display/src/mn-card/mn-icon-chip.ts","../../../projects/mn-angular-lib/display/src/mn-card/mn-icon-chip.html","../../../projects/mn-angular-lib/display/src/mn-card/mn-cardVariants.ts","../../../projects/mn-angular-lib/display/src/mn-card/mn-card.ts","../../../projects/mn-angular-lib/display/src/mn-card/mn-card.html","../../../projects/mn-angular-lib/display/src/mn-card/mn-stat-tile.ts","../../../projects/mn-angular-lib/display/src/mn-card/mn-stat-tile.html","../../../projects/mn-angular-lib/display/src/mn-card/mn-proportion-bar.ts","../../../projects/mn-angular-lib/display/src/mn-card/mn-proportion-bar.html","../../../projects/mn-angular-lib/display/src/mn-breadcrumbs/mn-breadcrumbsVariants.ts","../../../projects/mn-angular-lib/display/src/mn-breadcrumbs/mn-breadcrumbs.ts","../../../projects/mn-angular-lib/display/src/mn-breadcrumbs/mn-breadcrumbs.html","../../../projects/mn-angular-lib/display/src/mn-icon/mn-iconVariants.ts","../../../projects/mn-angular-lib/display/src/mn-icon/mn-icon-map.ts","../../../projects/mn-angular-lib/display/src/mn-icon/mn-icon.ts","../../../projects/mn-angular-lib/display/src/mn-icon/mn-icon.html","../../../projects/mn-angular-lib/display/src/mn-icon/mn-icon-attributes.directive.ts","../../../projects/mn-angular-lib/display/public-api.ts","../../../projects/mn-angular-lib/display/mn-angular-lib-display.ts"],"sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\n/**\n * Styling for {@link MnIconChip}: one 10% wash of the colour behind an icon drawn in\n * the consumer's `--color-<colour>-text` token when it defines one (the shade it uses\n * for readable coloured text on a tinted ground) and in the base colour otherwise, the\n * same device `mnBadge` uses. The radius grows with the box so the corner reads the\n * same at every size.\n */\nexport const mnIconChipVariants = tv({\n base: 'inline-flex shrink-0 items-center justify-center',\n variants: {\n /**\n * `xs` for compact rows and inline labels, `sm` for list rows, `md` for section-card headers\n * and stat tiles, `lg` for page headers, `xl` for a lone hero or empty-state icon.\n */\n size: {\n xs: 'h-8 w-8 rounded-lg',\n sm: 'h-9 w-9 rounded-lg',\n md: 'h-10 w-10 rounded-xl',\n lg: 'h-12 w-12 rounded-2xl',\n xl: 'h-14 w-14 rounded-2xl',\n },\n color: {\n primary: 'bg-primary/10 text-(--color-primary-text,var(--color-primary))',\n secondary: 'bg-secondary/10 text-(--color-secondary-text,var(--color-secondary))',\n accent: 'bg-accent/10 text-(--color-accent-text,var(--color-accent))',\n success: 'bg-success/10 text-(--color-success-text,var(--color-success))',\n warning: 'bg-warning/10 text-(--color-warning-text,var(--color-warning))',\n danger: 'bg-error/10 text-(--color-error-text,var(--color-error))',\n gray: 'bg-base-content/10 text-base-content/70',\n },\n },\n defaultVariants: {\n size: 'md',\n color: 'primary',\n },\n});\n\nexport type MnIconChipVariants = VariantProps<typeof mnIconChipVariants>;\n","import { Component, HostBinding, Input } from '@angular/core';\nimport { MnIconChipTypes } from './mn-icon-chipTypes';\nimport { mnIconChipVariants } from './mn-icon-chipVariants';\n\n/**\n * The tinted square that carries an icon in front of a card title, a stat or a list\n * row: the one place a colour says \"what kind of thing this is\". Project the icon as\n * content; the chip sizes and tints itself and never grows with the row.\n *\n * Decorative for assistive technology: the title or label beside it carries the\n * meaning, so the chip is `aria-hidden` and a screen reader never meets a bare icon.\n *\n * ```html\n * <mn-icon-chip [data]=\"{ color: 'success', size: 'md' }\">\n * <svg lucideCheck [size]=\"20\"></svg>\n * </mn-icon-chip>\n * ```\n */\n@Component({\n selector: 'mn-icon-chip',\n standalone: true,\n templateUrl: './mn-icon-chip.html',\n host: { 'aria-hidden': 'true' },\n})\nexport class MnIconChip {\n /** Size and colour; see {@link MnIconChipTypes}. */\n @Input() data: Partial<MnIconChipTypes> = {};\n\n /** The chip's own classes; the consumer's static classes merge with them. */\n @HostBinding('class')\n get hostClasses(): string {\n return mnIconChipVariants({\n size: this.data.size,\n color: this.data.color,\n });\n }\n}\n","<ng-content></ng-content>\n","import { tv, type VariantProps } from 'tailwind-variants';\n\n/**\n * Styling for {@link MnCard}, as tailwind-variants slots: `root` is the card element\n * itself, `accent` the optional bar along its top edge, `header` the heading row and\n * `title` the `h2` inside it.\n *\n * Theme tokens only, so the card holds up in light and dark. The surface reads the\n * consumer's `--color-base-card` when it defines one (a card ground a step off the\n * page background) and falls back to `base-100` otherwise, the same fallback device\n * `mnBadge` uses for its `-text` tokens.\n */\nexport const mnCardVariants = tv({\n slots: {\n root:\n 'relative flex overflow-hidden border border-base-300 ' +\n 'bg-(--color-base-card,var(--color-base-100)) ' +\n // Only what a hover changes. `transition-all` also animated padding, radius and border\n // width from their initial values whenever a card mounted.\n 'transition-[translate,box-shadow,border-color] duration-200 motion-reduce:transition-none',\n accent: 'absolute inset-x-0 top-0 h-1',\n header: 'flex flex-wrap items-center gap-3',\n title: 'text-lg font-semibold text-base-content',\n },\n variants: {\n /**\n * Inner padding, and with it the gap between the card's children: a tile needs\n * less air than a section card, and a section card that had to say `gap-4` on\n * every use would drift.\n */\n padding: {\n sm: { root: 'p-4 gap-3' },\n md: { root: 'p-5 gap-4' },\n lg: { root: 'p-6 gap-5' },\n },\n /** How the children flow: stacked (the default) or on one line, centred. */\n layout: {\n column: { root: 'flex-col' },\n row: { root: 'flex-row items-center' },\n },\n /**\n * Hover response. None by default: a hover promises that a click does something, and\n * most cards are settings, forms or facts that do nothing when clicked. `lift` promises a\n * destination and belongs on a card that is a link or a button; it brings the matching\n * keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is\n * kept for a consumer that already asks for it.\n */\n hover: {\n none: {},\n shadow: { root: 'hover:shadow-md' },\n lift: {\n root:\n 'cursor-pointer hover:-translate-y-1 hover:shadow-lg motion-reduce:hover:translate-y-0 ' +\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary',\n },\n },\n /**\n * Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme\n * defines them (a short rise-in, delayed per card through\n * {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users\n * never see it. Off by default: a rise belongs to a card that is one of a list, so a\n * page's static cards do not all move at once.\n */\n enter: {\n none: {},\n rise: { root: 'animate-rise motion-reduce:animate-none' },\n },\n /** Corner rounding, in mn-button's radius tokens. */\n borderRadius: {\n none: { root: 'rounded-none' },\n xs: { root: 'rounded-xs' },\n sm: { root: 'rounded-sm' },\n md: { root: 'rounded-md' },\n lg: { root: 'rounded-lg' },\n xl: { root: 'rounded-xl' },\n two_xl: { root: 'rounded-2xl' },\n three_xl: { root: 'rounded-3xl' },\n four_xl: { root: 'rounded-4xl' },\n },\n /**\n * Colour of the accent bar and of the heading's icon chip: the same palette as\n * mn-button and the icon chip. What the colour *means* (a kind, a status, a\n * module) is the consumer's choice; the card only renders it.\n */\n color: {\n primary: { accent: 'bg-primary' },\n secondary: { accent: 'bg-secondary' },\n accent: { accent: 'bg-accent' },\n success: { accent: 'bg-success' },\n warning: { accent: 'bg-warning' },\n danger: { accent: 'bg-error' },\n gray: { accent: 'bg-base-content/30' },\n },\n },\n defaultVariants: {\n padding: 'sm',\n layout: 'column',\n hover: 'none',\n enter: 'none',\n borderRadius: 'two_xl',\n color: 'primary',\n },\n});\n\nexport type MnCardVariants = VariantProps<typeof mnCardVariants>;\n","import { Component, HostBinding, Input } from '@angular/core';\nimport { MnTranslatePipe } from 'mn-angular-lib/core';\nimport { MnIconChip } from './mn-icon-chip';\nimport { MnCardTypes } from './mn-cardTypes';\nimport { mnCardVariants } from './mn-cardVariants';\n\n/**\n * The card: a rounded surface with a hairline border, a hover response and an\n * optional accent bar along its top edge. The body is whatever the consumer projects,\n * so a booking, a competition and a pending-action tile share one look without\n * sharing a view model.\n *\n * It is an attribute as well as an element, like `mnButton` and `mnBadge`: `<mn-card>`\n * for a plain surface, `<a mnCard [routerLink]>` for a card that is a link,\n * `<section mnCard>` when the landmark matters. Extra classes on the host merge with\n * the card's own, so sizing it (`min-w-0 flex-1`, `lg:w-80`) is ordinary CSS on the\n * element, not an input.\n *\n * A **section card** passes a {@link heading}: the card then renders the shared header\n * row, an {@link MnIconChip} beside an `h2`, then whatever trails the title (a badge, a\n * button). Project the icon with the `cardIcon` attribute and group the trailing content\n * in one `cardHeaderEnd` container, so the template reads icon, header end, body:\n *\n * ```html\n * <mn-card [data]=\"{ padding: 'md', color: 'primary' }\" heading=\"meetings.agenda.title\">\n * <svg cardIcon lucideListOrdered [size]=\"20\"></svg>\n * <ng-container cardHeaderEnd>\n * <span mnBadge [data]=\"{ size: 'sm', color: 'warning' }\">Draft</span>\n * </ng-container>\n * ...body...\n * </mn-card>\n * ```\n *\n * The other members of the family build on this shell: {@link MnStatTile} for one\n * figure at a glance, and {@link MnProportionBar} for the bar inside a card.\n */\n@Component({\n selector: 'mn-card, [mnCard]',\n standalone: true,\n imports: [MnIconChip, MnTranslatePipe],\n templateUrl: './mn-card.html',\n})\nexport class MnCard {\n /** Padding, layout, hover, entrance, radius, colour and accent; see {@link MnCardTypes}. */\n @Input() data: Partial<MnCardTypes> = {};\n\n /**\n * Section title, as a translation key or a literal. When set, the header row with\n * the icon chip and `h2` renders above the body. Deliberately not called `title`: a\n * static `title=\"...\"` on the host would also become a browser tooltip.\n */\n @Input() heading?: string;\n\n /**\n * Delay before the entrance animation starts, in milliseconds, so a row of cards\n * can rise one after another. Ignored when {@link MnCardTypes.enter} is `none`.\n */\n @Input() enterDelayMs = 0;\n\n /** Resolved slot classes for the current configuration. */\n get styles() {\n return mnCardVariants({\n padding: this.data.padding,\n layout: this.data.layout,\n hover: this.data.hover,\n enter: this.data.enter,\n borderRadius: this.data.borderRadius,\n color: this.data.color,\n });\n }\n\n /** The card element's own classes; the consumer's static classes merge with them. */\n @HostBinding('class')\n get hostClasses(): string {\n return this.styles.root();\n }\n\n /** Staggers the entrance per card. */\n @HostBinding('style.animation-delay')\n get animationDelay(): string {\n return `${this.enterDelayMs}ms`;\n }\n}\n","<!-- The accent bar sits on the card's top edge, clipped by the host's overflow-hidden\n into the corner radius. Decorative: the colour's meaning is in the content. -->\n@if (data.accent) {\n <span [class]=\"styles.accent()\" aria-hidden=\"true\"></span>\n}\n<!-- The section header: chip, title, then whatever the consumer marks cardHeaderEnd.\n Wraps on narrow screens so a full-width button drops under the title. -->\n@if (heading; as text) {\n <div [class]=\"styles.header()\">\n <mn-icon-chip [data]=\"{ color: data.color }\">\n <ng-content select=\"[cardIcon]\"></ng-content>\n </mn-icon-chip>\n <h2 [class]=\"styles.title()\">{{ text | mnTranslate }}</h2>\n <ng-content select=\"[cardHeaderEnd]\"></ng-content>\n </div>\n}\n<ng-content></ng-content>\n","import { Component, HostBinding, Input } from '@angular/core';\nimport { MnSkeleton } from 'mn-angular-lib/button';\nimport { MnTranslatePipe } from 'mn-angular-lib/core';\nimport { MnCard } from './mn-card';\nimport { MnIconChip } from './mn-icon-chip';\nimport { MnIconChipVariants } from './mn-icon-chipVariants';\n\n/** Configuration of one {@link MnStatTile}. */\nexport type MnStatTileTypes = {\n /** Colour of the chip; the number itself stays in the base text colour. Defaults to `primary`. */\n color: MnIconChipVariants['color'];\n};\n\n/**\n * One fact at a glance: a tinted icon chip, a muted label and a large tabular number,\n * on the {@link MnCard} shell, in a tile that shares a row with its siblings as\n * `flex-1`. Project the icon as content; project a badge or a short note into the\n * `trailing` slot when the number needs a qualifier. Set `loading` while the figure is still on\n * its way: the tile keeps its label and icon and holds a skeleton where the number goes, so a\n * count that has not arrived never reads as a zero.\n *\n * ```html\n * <div class=\"flex flex-wrap gap-4\">\n * <mn-stat-tile label=\"meetings.attending\" [value]=\"yesCount\" [data]=\"{ color: 'success' }\">\n * <svg lucideCheck [size]=\"20\"></svg>\n * </mn-stat-tile>\n * </div>\n * ```\n */\n@Component({\n selector: 'mn-stat-tile',\n standalone: true,\n imports: [MnCard, MnIconChip, MnSkeleton, MnTranslatePipe],\n templateUrl: './mn-stat-tile.html',\n})\nexport class MnStatTile {\n /** Caption under the number, as a translation key or a literal. */\n @Input({ required: true }) label!: string;\n\n /** The figure, already formatted for display. */\n @Input({ required: true }) value!: string | number;\n\n /**\n * The figure has not arrived yet: a skeleton takes the number's place, the trailing slot is\n * held back and the tile is marked busy. Label and icon stay, so nothing moves when it lands.\n */\n @Input() loading = false;\n\n /** Colour of the chip; see {@link MnStatTileTypes}. */\n @Input() data: Partial<MnStatTileTypes> = {};\n\n /** Grows to share its row and never forces the row wider than its siblings. */\n @HostBinding('class')\n readonly hostClasses = 'flex flex-1 basis-40 min-w-0';\n}\n","<!-- The card is a row: chip, then label over number. The muted label reads the\n consumer's muted-text token when it has one and plain base text otherwise. -->\n<div mnCard class=\"w-full\" [data]=\"{ layout: 'row' }\" [attr.aria-busy]=\"loading || null\">\n <mn-icon-chip [data]=\"{ color: data.color }\">\n <ng-content></ng-content>\n </mn-icon-chip>\n <div class=\"flex min-w-0 flex-1 flex-col gap-0.5\">\n <span class=\"text-sm text-(--color-base-content-muted,var(--color-base-content))\">{{ label | mnTranslate }}</span>\n <div class=\"flex flex-wrap items-baseline gap-2\">\n <!-- The skeleton is the height of the number's line box, so the tile keeps its height when it lands. -->\n @if (loading) {\n <mn-skeleton [data]=\"{ width: '2.5rem', height: '1.5rem' }\"></mn-skeleton>\n } @else {\n <span class=\"text-2xl font-bold leading-none tabular-nums text-base-content\">{{ value }}</span>\n <ng-content select=\"[trailing]\"></ng-content>\n }\n </div>\n </div>\n</div>\n","import { Component, inject, Input } from '@angular/core';\nimport { MnLanguageService } from 'mn-angular-lib/core';\nimport { MnProportionBarTypes, MnProportionSegment } from './mn-proportion-barTypes';\n\n/** Fill class per colour, spelled out so Tailwind's scanner finds every one. */\nconst SEGMENT_CLASS: Record<MnProportionSegment['color'], string> = {\n primary: 'bg-primary',\n secondary: 'bg-secondary',\n accent: 'bg-accent',\n success: 'bg-success',\n warning: 'bg-warning',\n danger: 'bg-error',\n gray: 'bg-base-content/25',\n};\n\n/** Tinted fill class per colour for a `soft` segment, spelled out for the same reason. */\nconst SOFT_SEGMENT_CLASS: Record<MnProportionSegment['color'], string> = {\n primary: 'bg-primary/30',\n secondary: 'bg-secondary/30',\n accent: 'bg-accent/30',\n success: 'bg-success/30',\n warning: 'bg-warning/30',\n danger: 'bg-error/30',\n gray: 'bg-base-content/15',\n};\n\n/** Track height per size. */\nconst HEIGHT_CLASS: Record<MnProportionBarTypes['height'], string> = {\n sm: 'h-2',\n md: 'h-2.5',\n};\n\n/** A segment resolved to a rendered width. */\nexport type MnRenderedProportionSegment = {\n /** Percentage of the track this run covers. */\n widthPct: number;\n /** Fill class for the run. */\n fillClass: string;\n};\n\n/**\n * The proportional bar every turnout, budget, capacity and collection figure draws:\n * a rounded track with one coloured run per segment, widths from the values. Empty\n * segments are skipped so a zero never leaves a hairline. Announced as one image with\n * the caller's label, because the numbers it visualises are always written out next\n * to it.\n *\n * ```html\n * <mn-proportion-bar\n * [segments]=\"[{ value: yes, color: 'success' }, { value: maybe, color: 'warning' }]\"\n * [total]=\"invited\"\n * ariaLabel=\"meetings.responses.title\">\n * </mn-proportion-bar>\n *\n * <mn-proportion-bar\n * [segments]=\"[{ value: filled, color: 'primary' }]\"\n * [total]=\"capacity\"\n * ariaLabel=\"volunteers.filledOf\"\n * [ariaLabelParams]=\"{ filled, total: capacity }\">\n * </mn-proportion-bar>\n * ```\n */\n@Component({\n selector: 'mn-proportion-bar',\n standalone: true,\n templateUrl: './mn-proportion-bar.html',\n})\nexport class MnProportionBar {\n /** The coloured runs, in draw order from the left. */\n @Input({ required: true }) segments!: MnProportionSegment[];\n\n /** The whole the segments are measured against; defaults to their sum. */\n @Input() total?: number | null;\n\n /** Accessible name for the bar as a whole, as a translation key or a literal. */\n @Input({ required: true }) ariaLabel!: string;\n\n /**\n * `{{name}}` interpolation values for {@link ariaLabel}, so a name that quotes the figures\n * (\"3 of 8 places filled\") can still be passed as a key and translated here, in the active\n * locale, rather than as a sentence the caller translated up front. A `count` selects the\n * plural wording like any other `translate` call.\n */\n @Input() ariaLabelParams?: Record<string, string | number>;\n\n /** Track thickness; see {@link MnProportionBarTypes}. */\n @Input() data: Partial<MnProportionBarTypes> = {};\n\n /** Resolves the accessible name against the app's bundle. */\n private readonly lang = inject(MnLanguageService);\n\n /** The translated accessible name. */\n get label(): string {\n return this.lang.translate(this.ariaLabel, this.ariaLabelParams);\n }\n\n /** Every class on the track element. */\n get trackClass(): string {\n return `flex w-full overflow-hidden rounded-full bg-base-content/10 ${HEIGHT_CLASS[this.data.height ?? 'md']}`;\n }\n\n /** The denominator actually used: the explicit total when positive, else the segment sum. */\n private get denominator(): number {\n const explicit = this.total;\n if (explicit !== null && explicit !== undefined && explicit > 0) return explicit;\n return this.segments.reduce((sum, segment) => sum + Math.max(0, segment.value), 0);\n }\n\n /** Segments with a width, empty ones dropped. */\n get rendered(): MnRenderedProportionSegment[] {\n const denominator = this.denominator;\n if (denominator <= 0) return [];\n return this.segments\n .filter((segment) => segment.value > 0)\n .map((segment) => ({\n widthPct: Math.min(100, (segment.value / denominator) * 100),\n fillClass: (segment.soft ? SOFT_SEGMENT_CLASS : SEGMENT_CLASS)[segment.color],\n }));\n }\n}\n","<!-- One labelled image: the runs are decoration, the numbers live in the caller's text. -->\n<div role=\"img\" [attr.aria-label]=\"label\" [class]=\"trackClass\">\n @for (segment of rendered; track $index) {\n <span\n class=\"h-full transition-[width] duration-300 ease-out motion-reduce:transition-none\"\n [class]=\"segment.fillClass\"\n [style.width.%]=\"segment.widthPct\"\n ></span>\n }\n</div>\n","import { tv, type VariantProps } from 'tailwind-variants';\n\n/**\n * Styling for {@link MnBreadcrumbs}, expressed as tailwind-variants slots so the\n * template can pull one class string per role. Theme tokens only, so the trail\n * reads correctly in both light and dark. Links and the Back control are native\n * `<button>`/`<a>` elements reset to look like plain text with a hover accent.\n *\n * A crumb carries vertical padding that the list takes back with a negative\n * margin, so the row keeps the height it always had while each crumb is a\n * target you can hit rather than the bare height of its text. The collapsed\n * control replaces the trail on a phone, where it is the only way up, so it\n * takes a full 44px.\n */\nexport const mnBreadcrumbsVariants = tv({\n slots: {\n root: 'flex items-center',\n list: 'flex flex-wrap items-center -my-1.5',\n link:\n 'inline-flex items-center bg-transparent border-0 px-1 -mx-1 py-1.5 rounded-md cursor-pointer ' +\n 'text-base-content/60 hover:text-primary transition-colors ' +\n 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary',\n current: 'inline-flex items-center py-1.5 font-semibold text-base-content',\n separator: 'inline-flex shrink-0 text-base-content/40',\n back:\n 'inline-flex items-center gap-1 bg-transparent border-0 p-0 rounded-md cursor-pointer ' +\n 'text-base-content/70 hover:text-primary transition-colors ' +\n 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary',\n collapsed:\n 'inline-flex min-h-11 items-center gap-1 bg-transparent border-0 px-1 -mx-1 rounded-md cursor-pointer ' +\n 'text-base-content/70 hover:text-primary transition-colors sm:hidden ' +\n 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary',\n },\n variants: {\n size: {\n // Text size lives on the root so every crumb, separator and the Back\n // control inherit it; only the inter-crumb gap changes per slot.\n sm: { root: 'text-xs', list: 'gap-1' },\n md: { root: 'text-sm', list: 'gap-1.5' },\n },\n /** Whether the parent crumb takes the trail's place below `sm`. */\n collapsible: {\n true: { list: 'hidden sm:flex' },\n false: {},\n },\n },\n defaultVariants: {\n size: 'md',\n collapsible: false,\n },\n});\n\nexport type MnBreadcrumbsVariants = VariantProps<typeof mnBreadcrumbsVariants>;\n","import {\n Component,\n EventEmitter,\n inject,\n Input,\n Output,\n} from '@angular/core';\nimport { LucideDynamicIcon } from '@lucide/angular';\nimport { MnLanguageService, MnTranslatePipe } from 'mn-angular-lib/core';\nimport { MnBreadcrumbItem, MnBreadcrumbsData } from './mn-breadcrumbsTypes';\nimport { mnBreadcrumbsVariants } from './mn-breadcrumbsVariants';\nimport * as lucide from 'lucide';\nimport { lucideIcons } from 'mn-angular-lib/core';\n\n/** Lucide icons this file renders. */\nconst ICONS = lucideIcons({ ChevronLeft: lucide.ChevronLeft, ChevronRight: lucide.ChevronRight });\n\n/**\n * A flexible breadcrumb trail.\n *\n * Given crumbs it renders a linkable trail (`root › … › current`) where the last\n * crumb is the current page and is never a link. Given no crumbs it degrades to\n * a single \"Back\" control — the two are mutually exclusive.\n *\n * The one thing a width decides is how much of the trail shows: below `sm` the\n * crumbs give way to the parent crumb alone, drawn as a back control, unless\n * `data.collapse` is `'never'`. That measures nothing — both renderings sit in\n * the DOM and a Tailwind breakpoint hides one — and there is deliberately no\n * scroll machinery: on a phone a hierarchy is a way up rather than a map, and a\n * trail that scrolls sideways buries the one link anybody reaches for.\n *\n * Navigation stays router- and history-agnostic where possible: a crumb (or the\n * Back control) with an `href` renders a plain `<a>` and navigates natively;\n * otherwise clicks emit outputs for the app to handle. Only the Back fallback\n * with no `href` reaches for `history.back()`.\n */\n@Component({\n selector: 'mn-breadcrumbs',\n standalone: true,\n imports: [MnTranslatePipe, LucideDynamicIcon],\n templateUrl: './mn-breadcrumbs.html',\n})\nexport class MnBreadcrumbs {\n /** Lucide icons the template renders. */\n protected readonly icons = ICONS;\n\n /** Trail crumbs and Back-fallback configuration. */\n @Input() data: MnBreadcrumbsData = { items: [] };\n\n /** Emits the crumb that was clicked (non-current crumbs only). */\n @Output() crumbClick = new EventEmitter<MnBreadcrumbItem>();\n\n /** Emits when the fallback \"Back\" control is activated. */\n @Output() back = new EventEmitter<void>();\n\n /** Conventional key an app defines to translate the Back control's label. */\n private static readonly BACK_LABEL_KEY = 'mnBreadcrumbs.back';\n /** Conventional key an app defines to name the navigation landmark. */\n private static readonly NAV_LABEL_KEY = 'mnBreadcrumbs.label';\n /** Resolves this component's own labels against the app's bundle. */\n private readonly lang = inject(MnLanguageService);\n\n /** Resolved tailwind-variants slot functions for the current size. */\n get styles() {\n return mnBreadcrumbsVariants({ size: this.data.size, collapsible: this.collapsesToParent });\n }\n\n /** Whether the parent crumb replaces the trail below `sm`. */\n get collapsesToParent(): boolean {\n return this.data.collapse !== 'never' && (this.data.items?.length ?? 0) > 1;\n }\n\n /**\n * The crumb one level above the current page, or `null` when the trail stays\n * whole: a single crumb has nowhere to go up to, and `'never'` asks for every\n * crumb at every width.\n */\n get parentCrumb(): MnBreadcrumbItem | null {\n if (!this.collapsesToParent) {\n return null;\n }\n return this.data.items[this.data.items.length - 2];\n }\n\n /**\n * Accessible name of the `<nav>` landmark.\n *\n * A landmark's name is announced verbatim, so leaving it as a hardcoded English\n * \"Breadcrumb\" put one English word into every page of a translated app — in the\n * one place only screen-reader users hear.\n */\n get navLabel(): string {\n return this.lang.translateIfPresent(MnBreadcrumbs.NAV_LABEL_KEY) ?? 'Breadcrumb';\n }\n\n /** Whether a linkable trail should render (vs the Back fallback). */\n get hasTrail(): boolean {\n return (this.data.items?.length ?? 0) > 0;\n }\n\n /**\n * Text of the Back control, already translated.\n *\n * `data.backLabel` is a key (or a literal, which `translate` passes through\n * unchanged). Without one this falls back to the conventional key and then to\n * English — never to a raw key: the old default was the bare key `'back'`, which\n * the template's translate pipe echoed as lowercase \"back\" in every app that had\n * not happened to define it.\n */\n get backLabel(): string {\n if (this.data.backLabel) {\n return this.lang.translate(this.data.backLabel);\n }\n return this.lang.translateIfPresent(MnBreadcrumbs.BACK_LABEL_KEY) ?? 'Back';\n }\n\n /** The last crumb is the current page and is rendered as plain text. */\n isCurrent(index: number): boolean {\n return index === this.data.items.length - 1;\n }\n\n /** Runs a crumb's own callback and notifies listeners of the click. */\n onCrumb(item: MnBreadcrumbItem): void {\n item.onClick?.();\n this.crumbClick.emit(item);\n }\n\n /**\n * Fallback Back action. Always emits `back` for listeners; when no `backHref`\n * anchor is carrying the navigation, steps back through browser history.\n */\n onBack(): void {\n this.back.emit();\n if (!this.data.backHref) {\n window.history.back();\n }\n }\n}\n","<nav [attr.aria-label]=\"navLabel\" [class]=\"styles.root()\">\n @if (hasTrail) {\n <ol [class]=\"styles.list()\">\n @for (item of data.items; track $index; let first = $first) {\n @if (!first) {\n <li aria-hidden=\"true\" [class]=\"styles.separator()\">\n <svg [size]=\"14\" [lucideIcon]=\"icons.ChevronRight\"></svg>\n </li>\n }\n <li class=\"inline-flex items-center\">\n @if (isCurrent($index)) {\n <span aria-current=\"page\" [class]=\"styles.current()\">{{ item.label | mnTranslate }}</span>\n } @else if (item.href) {\n <a [attr.href]=\"item.href\" [class]=\"styles.link()\" (click)=\"onCrumb(item)\">{{ item.label | mnTranslate }}</a>\n } @else {\n <button type=\"button\" [class]=\"styles.link()\" (click)=\"onCrumb(item)\">{{ item.label | mnTranslate }}</button>\n }\n </li>\n }\n </ol>\n <!--\n Below `sm` the trail above is hidden and this takes its place: the parent\n crumb as a back control. Both sit in the DOM and CSS decides which one is\n there for the reader, so nothing has to measure a width.\n -->\n @if (parentCrumb; as parent) {\n @if (parent.href) {\n <a [attr.href]=\"parent.href\" [class]=\"styles.collapsed()\" (click)=\"onCrumb(parent)\">\n <svg [size]=\"16\" [lucideIcon]=\"icons.ChevronLeft\"></svg>\n {{ parent.label | mnTranslate }}\n </a>\n } @else {\n <button type=\"button\" [class]=\"styles.collapsed()\" (click)=\"onCrumb(parent)\">\n <svg [size]=\"16\" [lucideIcon]=\"icons.ChevronLeft\"></svg>\n {{ parent.label | mnTranslate }}\n </button>\n }\n }\n } @else if (data.backHref) {\n <a [attr.href]=\"data.backHref\" [class]=\"styles.back()\" (click)=\"onBack()\">\n <svg [size]=\"16\" [lucideIcon]=\"icons.ChevronLeft\"></svg>\n {{ backLabel }}\n </a>\n } @else {\n <button type=\"button\" [class]=\"styles.back()\" (click)=\"onBack()\">\n <svg [size]=\"16\" [lucideIcon]=\"icons.ChevronLeft\"></svg>\n {{ backLabel }}\n </button>\n }\n</nav>\n","import { tv, type VariantProps } from 'tailwind-variants';\n\nexport const mnIconVariants = tv({\n base: 'inline-flex shrink-0',\n variants: {\n color: {\n current: 'text-current',\n primary: 'text-primary',\n secondary: 'text-secondary',\n danger: 'text-error',\n warning: 'text-warning',\n success: 'text-success',\n accent: 'text-accent',\n },\n },\n\n defaultVariants: {\n color: 'current',\n },\n});\n\nexport type MnIconVariants = VariantProps<typeof mnIconVariants>;\n","// Custom SVGs that are NOT available in lucide (https://lucide.dev).\n// For any lucide icon, render lucide icon data instead — e.g.\n// `<svg [lucideIcon]=\"icons.X\" [size]=\"18\"></svg>` with `lucideIcons()` — rather than adding it here.\n// Sourced from the .svg files in the ./icons/ directory.\nconst pistolSvg = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M8.72 14.56 9 10h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v4c2.5 0 1 4 1 4-4 6-1 6-1 6h3.38a1 1 0 0 0 .89-.55za1 1 0 0 1 .9-.56H13a2 2 0 0 0 2-2v-1a1 1 0 0 1 1-1\" /></svg>`;\n\nexport const MN_ICON_MAP: Record<string, string> = {\n pistol: pistolSvg,\n};\n","import {\n Component,\n HostBinding,\n Input,\n OnChanges,\n OnInit,\n inject,\n ElementRef,\n} from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { MnIconTypes } from './mn-iconTypes';\nimport { mnIconVariants } from './mn-iconVariants';\nimport { MN_ICON_MAP } from './mn-icon-map';\n\n@Component({\n selector: 'mn-icon',\n standalone: true,\n templateUrl: './mn-icon.html',\n})\nexport class MnIcon implements OnChanges, OnInit {\n @Input() data: Partial<MnIconTypes> = {};\n\n private sanitizer = inject(DomSanitizer);\n private el = inject(ElementRef);\n\n svgContent: SafeHtml = '';\n\n get iconSize(): number {\n return this.data.size ?? 24;\n }\n\n @HostBinding('class')\n get hostClasses(): string {\n return mnIconVariants({\n color: this.data.color,\n });\n }\n\n private resolvedName: string | null = null;\n\n ngOnInit(): void {\n const attrs = this.el.nativeElement.attributes;\n for (const item of Array.from<Attr>(attrs)) {\n const attr = item.name.toLowerCase();\n if (attr.startsWith('mnicon')) {\n const iconKey = attr.slice('mnicon'.length);\n for (const key of Object.keys(MN_ICON_MAP)) {\n if (key.toLowerCase() === iconKey) {\n this.resolvedName = key;\n break;\n }\n }\n if (this.resolvedName) break;\n }\n }\n this.updateContent();\n }\n\n ngOnChanges(): void {\n this.updateContent();\n }\n\n private updateContent(): void {\n const name = this.data.name ?? this.resolvedName;\n if (name) {\n const raw = MN_ICON_MAP[name];\n if (raw) {\n const size = this.iconSize;\n const isFullSvg = raw.trim().startsWith('<svg');\n if (isFullSvg) {\n const sized = raw.replace(/<svg([^>]*)>/, (_match: string, attrs: string) => {\n let updated = attrs.replace(/width=\"[^\"]*\"/, `width=\"${size}\"`);\n updated = updated.replace(/height=\"[^\"]*\"/, `height=\"${size}\"`);\n if (!attrs.includes('width=')) updated += ` width=\"${size}\"`;\n if (!attrs.includes('height=')) updated += ` height=\"${size}\"`;\n return `<svg${updated}>`;\n });\n this.svgContent = this.sanitizer.bypassSecurityTrustHtml(sized);\n } else {\n const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${size}\" height=\"${size}\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">${raw}</svg>`;\n this.svgContent = this.sanitizer.bypassSecurityTrustHtml(svg);\n }\n } else {\n this.svgContent = '';\n }\n } else {\n this.svgContent = '';\n }\n }\n}\n","<span\n [style.width.px]=\"iconSize\"\n [style.height.px]=\"iconSize\"\n style=\"display: inline-flex; align-items: center; justify-content: center;\"\n [innerHTML]=\"svgContent\"\n></span>\n","import { Directive } from '@angular/core';\n\n// AUTO-GENERATED — do not edit manually.\n// Run `npm run generate:icons` to regenerate after modifying MN_ICON_MAP.\n@Directive({\n selector: 'mn-icon[mnIconPistol]',\n standalone: true,\n})\nexport class MnIconAttributes {}\n","/**\n * Public API of the `mn-angular-lib/display` entry point: display components (card, breadcrumbs, icon).\n *\n * Each entry point is its own module in the published package, so a consumer's bundler\n * splits it into the chunk that uses it instead of loading the whole library at startup.\n * The root `mn-angular-lib` entry re-exports every entry point.\n */\nexport * from './src/mn-card';\nexport * from './src/mn-breadcrumbs';\nexport * from './src/mn-icon';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAEA;;;;;;AAMG;AACI,MAAM,kBAAkB,GAAG,EAAE,CAAC;AACnC,IAAA,IAAI,EAAE,kDAAkD;AACxD,IAAA,QAAQ,EAAE;AACR;;;AAGG;AACH,QAAA,IAAI,EAAE;AACJ,YAAA,EAAE,EAAE,oBAAoB;AACxB,YAAA,EAAE,EAAE,oBAAoB;AACxB,YAAA,EAAE,EAAE,sBAAsB;AAC1B,YAAA,EAAE,EAAE,uBAAuB;AAC3B,YAAA,EAAE,EAAE,uBAAuB;AAC5B,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,OAAO,EAAE,gEAAgE;AACzE,YAAA,SAAS,EAAE,sEAAsE;AACjF,YAAA,MAAM,EAAE,6DAA6D;AACrE,YAAA,OAAO,EAAE,gEAAgE;AACzE,YAAA,OAAO,EAAE,gEAAgE;AACzE,YAAA,MAAM,EAAE,0DAA0D;AAClE,YAAA,IAAI,EAAE,yCAAyC;AAChD,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE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AA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;ACPD;;;;;;AAMG;;ACNH;;AAEG;;"}
|
package/package.json
CHANGED
|
@@ -614,6 +614,7 @@ type SortState = {
|
|
|
614
614
|
};
|
|
615
615
|
type TableAppearance = {
|
|
616
616
|
striped?: boolean;
|
|
617
|
+
/** Hover wash on clickable rows (on by default); rows that do nothing on click never get one. */
|
|
617
618
|
hover?: boolean;
|
|
618
619
|
compact?: boolean;
|
|
619
620
|
bordered?: boolean;
|
|
@@ -1010,6 +1011,13 @@ declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDat
|
|
|
1010
1011
|
*/
|
|
1011
1012
|
private updateFilterLayout;
|
|
1012
1013
|
sort(column: ColumnDefinition<T>): void;
|
|
1014
|
+
/**
|
|
1015
|
+
* Whether clicking a row does anything: a data-source `onRowClick`, a bound `(rowClick)`,
|
|
1016
|
+
* or row selection. Only then does a row get the hover wash and the pointer, so a plain
|
|
1017
|
+
* list does not look like one that opens something. `appearance.hover: false` still turns
|
|
1018
|
+
* the wash off on a clickable table.
|
|
1019
|
+
*/
|
|
1020
|
+
get rowsClickable(): boolean;
|
|
1013
1021
|
onRowClick(row: T): void;
|
|
1014
1022
|
/**
|
|
1015
1023
|
* Resolves the skeleton placeholder config for a column's cells.
|
|
@@ -1397,7 +1405,7 @@ type ListSkeleton = {
|
|
|
1397
1405
|
type ListAppearance = {
|
|
1398
1406
|
/** Show a divider between items. Defaults to true. */
|
|
1399
1407
|
dividers?: boolean;
|
|
1400
|
-
/** Highlight item on hover. Defaults to true. */
|
|
1408
|
+
/** Highlight a clickable item on hover. Defaults to true; items that do nothing on click never get it. */
|
|
1401
1409
|
hover?: boolean;
|
|
1402
1410
|
/** Use compact (smaller) padding. */
|
|
1403
1411
|
compact?: boolean;
|
|
@@ -1430,6 +1438,11 @@ declare class MnList<T = unknown> extends MnSelectableCollectionBase<T, ListData
|
|
|
1430
1438
|
protected readonly componentName = "MnList";
|
|
1431
1439
|
/** Skeleton lines rendered for each placeholder item, falling back to the default two-bar layout. */
|
|
1432
1440
|
get skeletonLines(): Partial<MnSkeletonProps>[];
|
|
1441
|
+
/**
|
|
1442
|
+
* Whether clicking an item does anything: a data-source `onItemClick` or a bound
|
|
1443
|
+
* `(itemClick)`. Only then does an item get the hover wash and the pointer.
|
|
1444
|
+
*/
|
|
1445
|
+
get itemsClickable(): boolean;
|
|
1433
1446
|
onItemClick(item: T): void;
|
|
1434
1447
|
/**
|
|
1435
1448
|
* Keyboard activation of a clickable item: Enter and Space open it, as they would a button.
|
|
@@ -43,8 +43,11 @@ declare const mnCardVariants: tailwind_variants.TVReturnType<{
|
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
|
-
* Hover response.
|
|
47
|
-
*
|
|
46
|
+
* Hover response. None by default: a hover promises that a click does something, and
|
|
47
|
+
* most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
|
|
48
|
+
* destination and belongs on a card that is a link or a button; it brings the matching
|
|
49
|
+
* keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
|
|
50
|
+
* kept for a consumer that already asks for it.
|
|
48
51
|
*/
|
|
49
52
|
hover: {
|
|
50
53
|
none: {};
|
|
@@ -158,8 +161,11 @@ declare const mnCardVariants: tailwind_variants.TVReturnType<{
|
|
|
158
161
|
};
|
|
159
162
|
};
|
|
160
163
|
/**
|
|
161
|
-
* Hover response.
|
|
162
|
-
*
|
|
164
|
+
* Hover response. None by default: a hover promises that a click does something, and
|
|
165
|
+
* most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
|
|
166
|
+
* destination and belongs on a card that is a link or a button; it brings the matching
|
|
167
|
+
* keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
|
|
168
|
+
* kept for a consumer that already asks for it.
|
|
163
169
|
*/
|
|
164
170
|
hover: {
|
|
165
171
|
none: {};
|
|
@@ -273,8 +279,11 @@ declare const mnCardVariants: tailwind_variants.TVReturnType<{
|
|
|
273
279
|
};
|
|
274
280
|
};
|
|
275
281
|
/**
|
|
276
|
-
* Hover response.
|
|
277
|
-
*
|
|
282
|
+
* Hover response. None by default: a hover promises that a click does something, and
|
|
283
|
+
* most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
|
|
284
|
+
* destination and belongs on a card that is a link or a button; it brings the matching
|
|
285
|
+
* keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
|
|
286
|
+
* kept for a consumer that already asks for it.
|
|
278
287
|
*/
|
|
279
288
|
hover: {
|
|
280
289
|
none: {};
|
|
@@ -366,16 +375,16 @@ type MnCardVariants = VariantProps<typeof mnCardVariants>;
|
|
|
366
375
|
|
|
367
376
|
/**
|
|
368
377
|
* Configuration of one {@link MnCard}. Every field is optional; the defaults give the
|
|
369
|
-
* compact stacked tile
|
|
378
|
+
* compact stacked tile that does not react to the pointer, which is what most cards are.
|
|
370
379
|
*/
|
|
371
380
|
type MnCardTypes = {
|
|
372
381
|
/** Inner padding and child gap. `sm` for tiles, `md` for section cards, `lg` for hero cards. */
|
|
373
382
|
padding: MnCardVariants['padding'];
|
|
374
383
|
/** Stacked children (`column`, the default) or one centred line (`row`). */
|
|
375
384
|
layout: MnCardVariants['layout'];
|
|
376
|
-
/** Hover response: `
|
|
385
|
+
/** Hover response: `none` (default), `lift` for a card that is a link or a button, or `shadow`. */
|
|
377
386
|
hover: MnCardVariants['hover'];
|
|
378
|
-
/** Entrance animation: `
|
|
387
|
+
/** Entrance animation: `none` (default) or `rise` (needs the consumer's `--animate-rise`). */
|
|
379
388
|
enter: MnCardVariants['enter'];
|
|
380
389
|
/** Corner rounding. Defaults to `two_xl`. */
|
|
381
390
|
borderRadius: MnCardVariants['borderRadius'];
|
|
@@ -435,7 +444,7 @@ declare class MnCard {
|
|
|
435
444
|
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
436
445
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
437
446
|
layout?: "column" | "row" | undefined;
|
|
438
|
-
hover?: "
|
|
447
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
439
448
|
enter?: "none" | "rise" | undefined;
|
|
440
449
|
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
441
450
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
@@ -443,7 +452,7 @@ declare class MnCard {
|
|
|
443
452
|
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
444
453
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
445
454
|
layout?: "column" | "row" | undefined;
|
|
446
|
-
hover?: "
|
|
455
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
447
456
|
enter?: "none" | "rise" | undefined;
|
|
448
457
|
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
449
458
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
@@ -451,7 +460,7 @@ declare class MnCard {
|
|
|
451
460
|
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
452
461
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
453
462
|
layout?: "column" | "row" | undefined;
|
|
454
|
-
hover?: "
|
|
463
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
455
464
|
enter?: "none" | "rise" | undefined;
|
|
456
465
|
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
457
466
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
@@ -459,7 +468,7 @@ declare class MnCard {
|
|
|
459
468
|
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
460
469
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
461
470
|
layout?: "column" | "row" | undefined;
|
|
462
|
-
hover?: "
|
|
471
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
463
472
|
enter?: "none" | "rise" | undefined;
|
|
464
473
|
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
465
474
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
@@ -468,7 +477,7 @@ declare class MnCard {
|
|
|
468
477
|
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
469
478
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
470
479
|
layout?: "column" | "row" | undefined;
|
|
471
|
-
hover?: "
|
|
480
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
472
481
|
enter?: "none" | "rise" | undefined;
|
|
473
482
|
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
474
483
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
@@ -476,7 +485,7 @@ declare class MnCard {
|
|
|
476
485
|
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
477
486
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
478
487
|
layout?: "column" | "row" | undefined;
|
|
479
|
-
hover?: "
|
|
488
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
480
489
|
enter?: "none" | "rise" | undefined;
|
|
481
490
|
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
482
491
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
@@ -484,7 +493,7 @@ declare class MnCard {
|
|
|
484
493
|
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
485
494
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
486
495
|
layout?: "column" | "row" | undefined;
|
|
487
|
-
hover?: "
|
|
496
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
488
497
|
enter?: "none" | "rise" | undefined;
|
|
489
498
|
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
490
499
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
@@ -492,7 +501,7 @@ declare class MnCard {
|
|
|
492
501
|
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
493
502
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
494
503
|
layout?: "column" | "row" | undefined;
|
|
495
|
-
hover?: "
|
|
504
|
+
hover?: "none" | "shadow" | "lift" | undefined;
|
|
496
505
|
enter?: "none" | "rise" | undefined;
|
|
497
506
|
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
498
507
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
@@ -618,7 +627,9 @@ type MnStatTileTypes = {
|
|
|
618
627
|
* One fact at a glance: a tinted icon chip, a muted label and a large tabular number,
|
|
619
628
|
* on the {@link MnCard} shell, in a tile that shares a row with its siblings as
|
|
620
629
|
* `flex-1`. Project the icon as content; project a badge or a short note into the
|
|
621
|
-
* `trailing` slot when the number needs a qualifier.
|
|
630
|
+
* `trailing` slot when the number needs a qualifier. Set `loading` while the figure is still on
|
|
631
|
+
* its way: the tile keeps its label and icon and holds a skeleton where the number goes, so a
|
|
632
|
+
* count that has not arrived never reads as a zero.
|
|
622
633
|
*
|
|
623
634
|
* ```html
|
|
624
635
|
* <div class="flex flex-wrap gap-4">
|
|
@@ -633,12 +644,17 @@ declare class MnStatTile {
|
|
|
633
644
|
label: string;
|
|
634
645
|
/** The figure, already formatted for display. */
|
|
635
646
|
value: string | number;
|
|
647
|
+
/**
|
|
648
|
+
* The figure has not arrived yet: a skeleton takes the number's place, the trailing slot is
|
|
649
|
+
* held back and the tile is marked busy. Label and icon stay, so nothing moves when it lands.
|
|
650
|
+
*/
|
|
651
|
+
loading: boolean;
|
|
636
652
|
/** Colour of the chip; see {@link MnStatTileTypes}. */
|
|
637
653
|
data: Partial<MnStatTileTypes>;
|
|
638
654
|
/** Grows to share its row and never forces the row wider than its siblings. */
|
|
639
655
|
readonly hostClasses = "flex flex-1 basis-40 min-w-0";
|
|
640
656
|
static ɵfac: i0.ɵɵFactoryDeclaration<MnStatTile, never>;
|
|
641
|
-
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>;
|
|
657
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MnStatTile, "mn-stat-tile", never, { "label": { "alias": "label"; "required": true; }; "value": { "alias": "value"; "required": true; }; "loading": { "alias": "loading"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, ["*", "[trailing]"], true, never>;
|
|
642
658
|
}
|
|
643
659
|
|
|
644
660
|
/** One coloured run of a {@link MnProportionBar}: how much of the whole it covers, and in which colour. */
|