mn-angular-lib 2.0.16 → 2.0.17
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.
|
@@ -93,7 +93,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
93
93
|
const mnCardVariants = tv({
|
|
94
94
|
slots: {
|
|
95
95
|
root: 'relative flex overflow-hidden border border-base-300 ' +
|
|
96
|
-
'bg-(--color-base-card,var(--color-base-100))
|
|
96
|
+
'bg-(--color-base-card,var(--color-base-100)) ' +
|
|
97
|
+
// Only what a hover changes. `transition-all` also animated padding, radius and border
|
|
98
|
+
// width from their initial values whenever a card mounted.
|
|
99
|
+
'transition-[translate,box-shadow,border-color] duration-200 motion-reduce:transition-none',
|
|
97
100
|
accent: 'absolute inset-x-0 top-0 h-1',
|
|
98
101
|
header: 'flex flex-wrap items-center gap-3',
|
|
99
102
|
title: 'text-lg font-semibold text-base-content',
|
|
@@ -127,7 +130,8 @@ const mnCardVariants = tv({
|
|
|
127
130
|
* Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
|
|
128
131
|
* defines them (a short rise-in, delayed per card through
|
|
129
132
|
* {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
|
|
130
|
-
* never see it.
|
|
133
|
+
* never see it. Off by default: a rise belongs to a card that is one of a list, so a
|
|
134
|
+
* page's static cards do not all move at once.
|
|
131
135
|
*/
|
|
132
136
|
enter: {
|
|
133
137
|
none: {},
|
|
@@ -164,7 +168,7 @@ const mnCardVariants = tv({
|
|
|
164
168
|
padding: 'sm',
|
|
165
169
|
layout: 'column',
|
|
166
170
|
hover: 'shadow',
|
|
167
|
-
enter: '
|
|
171
|
+
enter: 'none',
|
|
168
172
|
borderRadius: 'two_xl',
|
|
169
173
|
color: 'primary',
|
|
170
174
|
},
|
|
@@ -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)) transition-all 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.\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: 'rise',\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,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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AuB;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. `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,EAAE,EAAE,sBAAsB;AAC1B,YAAA,EAAE,EAA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AAA,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
|
@@ -59,7 +59,8 @@ declare const mnCardVariants: tailwind_variants.TVReturnType<{
|
|
|
59
59
|
* Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
|
|
60
60
|
* defines them (a short rise-in, delayed per card through
|
|
61
61
|
* {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
|
|
62
|
-
* never see it.
|
|
62
|
+
* never see it. Off by default: a rise belongs to a card that is one of a list, so a
|
|
63
|
+
* page's static cards do not all move at once.
|
|
63
64
|
*/
|
|
64
65
|
enter: {
|
|
65
66
|
none: {};
|
|
@@ -173,7 +174,8 @@ declare const mnCardVariants: tailwind_variants.TVReturnType<{
|
|
|
173
174
|
* Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
|
|
174
175
|
* defines them (a short rise-in, delayed per card through
|
|
175
176
|
* {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
|
|
176
|
-
* never see it.
|
|
177
|
+
* never see it. Off by default: a rise belongs to a card that is one of a list, so a
|
|
178
|
+
* page's static cards do not all move at once.
|
|
177
179
|
*/
|
|
178
180
|
enter: {
|
|
179
181
|
none: {};
|
|
@@ -287,7 +289,8 @@ declare const mnCardVariants: tailwind_variants.TVReturnType<{
|
|
|
287
289
|
* Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
|
|
288
290
|
* defines them (a short rise-in, delayed per card through
|
|
289
291
|
* {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
|
|
290
|
-
* never see it.
|
|
292
|
+
* never see it. Off by default: a rise belongs to a card that is one of a list, so a
|
|
293
|
+
* page's static cards do not all move at once.
|
|
291
294
|
*/
|
|
292
295
|
enter: {
|
|
293
296
|
none: {};
|
|
@@ -433,32 +436,32 @@ declare class MnCard {
|
|
|
433
436
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
434
437
|
layout?: "column" | "row" | undefined;
|
|
435
438
|
hover?: "shadow" | "none" | "lift" | undefined;
|
|
436
|
-
enter?: "
|
|
437
|
-
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "
|
|
439
|
+
enter?: "none" | "rise" | undefined;
|
|
440
|
+
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
438
441
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
439
442
|
accent: (slotProps?: ({
|
|
440
443
|
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
441
444
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
442
445
|
layout?: "column" | "row" | undefined;
|
|
443
446
|
hover?: "shadow" | "none" | "lift" | undefined;
|
|
444
|
-
enter?: "
|
|
445
|
-
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "
|
|
447
|
+
enter?: "none" | "rise" | undefined;
|
|
448
|
+
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
446
449
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
447
450
|
header: (slotProps?: ({
|
|
448
451
|
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
449
452
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
450
453
|
layout?: "column" | "row" | undefined;
|
|
451
454
|
hover?: "shadow" | "none" | "lift" | undefined;
|
|
452
|
-
enter?: "
|
|
453
|
-
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "
|
|
455
|
+
enter?: "none" | "rise" | undefined;
|
|
456
|
+
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
454
457
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
455
458
|
title: (slotProps?: ({
|
|
456
459
|
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
457
460
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
458
461
|
layout?: "column" | "row" | undefined;
|
|
459
462
|
hover?: "shadow" | "none" | "lift" | undefined;
|
|
460
|
-
enter?: "
|
|
461
|
-
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "
|
|
463
|
+
enter?: "none" | "rise" | undefined;
|
|
464
|
+
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
462
465
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
463
466
|
} & {
|
|
464
467
|
root: (slotProps?: ({
|
|
@@ -466,32 +469,32 @@ declare class MnCard {
|
|
|
466
469
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
467
470
|
layout?: "column" | "row" | undefined;
|
|
468
471
|
hover?: "shadow" | "none" | "lift" | undefined;
|
|
469
|
-
enter?: "
|
|
470
|
-
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "
|
|
472
|
+
enter?: "none" | "rise" | undefined;
|
|
473
|
+
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
471
474
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
472
475
|
accent: (slotProps?: ({
|
|
473
476
|
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
474
477
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
475
478
|
layout?: "column" | "row" | undefined;
|
|
476
479
|
hover?: "shadow" | "none" | "lift" | undefined;
|
|
477
|
-
enter?: "
|
|
478
|
-
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "
|
|
480
|
+
enter?: "none" | "rise" | undefined;
|
|
481
|
+
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
479
482
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
480
483
|
header: (slotProps?: ({
|
|
481
484
|
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
482
485
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
483
486
|
layout?: "column" | "row" | undefined;
|
|
484
487
|
hover?: "shadow" | "none" | "lift" | undefined;
|
|
485
|
-
enter?: "
|
|
486
|
-
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "
|
|
488
|
+
enter?: "none" | "rise" | undefined;
|
|
489
|
+
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
487
490
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
488
491
|
title: (slotProps?: ({
|
|
489
492
|
color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
|
|
490
493
|
padding?: "md" | "sm" | "lg" | undefined;
|
|
491
494
|
layout?: "column" | "row" | undefined;
|
|
492
495
|
hover?: "shadow" | "none" | "lift" | undefined;
|
|
493
|
-
enter?: "
|
|
494
|
-
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "
|
|
496
|
+
enter?: "none" | "rise" | undefined;
|
|
497
|
+
borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
|
|
495
498
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
496
499
|
} & {};
|
|
497
500
|
/** The card element's own classes; the consumer's static classes merge with them. */
|