mn-angular-lib 2.0.2 → 2.0.4

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.
@@ -1,12 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { HostBinding, Input, Component, inject, EventEmitter, Output, ElementRef, Directive, InjectionToken, ChangeDetectorRef, DestroyRef } from '@angular/core';
3
- import { MnTranslatePipe, MnLanguageService, lucideIcons, provideMnComponentConfig } from 'mn-angular-lib/core';
2
+ import { HostBinding, Input, Component, inject, EventEmitter, Output, ElementRef, Directive } from '@angular/core';
3
+ import { MnTranslatePipe, MnLanguageService, lucideIcons } from 'mn-angular-lib/core';
4
4
  import { tv } from 'tailwind-variants';
5
5
  import { LucideDynamicIcon } from '@lucide/angular';
6
6
  import * as lucide from 'lucide';
7
7
  import { DomSanitizer } from '@angular/platform-browser';
8
- import { NgClass, NgOptimizedImage } from '@angular/common';
9
- import { skip } from 'rxjs';
10
8
 
11
9
  /**
12
10
  * Styling for {@link MnIconChip}: one 10% wash of the colour behind an icon drawn in
@@ -678,85 +676,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
678
676
  }]
679
677
  }] });
680
678
 
681
- const mnInformationCardVariants = tv({
682
- base: '',
683
- variants: {
684
- bottomBorder: {
685
- true: 'border-b border-b-2 border-primary-500',
686
- },
687
- shadow: {
688
- true: 'shadow-xl',
689
- },
690
- textPosition: {
691
- left: 'text-left',
692
- center: 'text-center',
693
- right: 'text-right',
694
- },
695
- borderRadius: {
696
- none: 'rounded-none',
697
- xs: 'rounded-xs',
698
- sm: 'rounded-sm',
699
- md: 'rounded-md',
700
- lg: 'rounded-lg',
701
- xl: 'rounded-xl',
702
- two_xl: 'rounded-2xl',
703
- three_xl: 'rounded-3xl',
704
- four_xl: 'rounded-4xl',
705
- },
706
- },
707
- });
708
-
709
- class MnInformationCard {
710
- data;
711
- get hostClasses() {
712
- return mnInformationCardVariants({
713
- bottomBorder: this.data.bottomBorder,
714
- shadow: this.data.shadow,
715
- textPosition: this.data.textPosition,
716
- borderRadius: this.data.borderRadius,
717
- });
718
- }
719
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MnInformationCard, deps: [], target: i0.ɵɵFactoryTarget.Component });
720
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: MnInformationCard, isStandalone: true, selector: "mn-lib-information-card", inputs: { data: "data" }, ngImport: i0, template: "<div class=\"flex flex-col items-center gap-y-4 p-4 size-full\" [ngClass]=\"hostClasses\">\n<ng-content select=\"[header]\"></ng-content>\n<ng-content></ng-content>\n<ng-content select=\"[footer]\"></ng-content>\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
721
- }
722
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MnInformationCard, decorators: [{
723
- type: Component,
724
- args: [{ selector: 'mn-lib-information-card', standalone: true, imports: [NgClass], template: "<div class=\"flex flex-col items-center gap-y-4 p-4 size-full\" [ngClass]=\"hostClasses\">\n<ng-content select=\"[header]\"></ng-content>\n<ng-content></ng-content>\n<ng-content select=\"[footer]\"></ng-content>\n</div>\n" }]
725
- }], propDecorators: { data: [{
726
- type: Input,
727
- args: [{ required: true }]
728
- }] } });
729
-
730
- const MN_LIB_DUAL_HORIZONTAL_IMAGE = new InjectionToken('MN_LIB_DUAL_HORIZONTAL_IMAGE');
731
- class MnDualHorizontalImage {
732
- componentConfig = inject(MN_LIB_DUAL_HORIZONTAL_IMAGE);
733
- /** Marks the view when a locale change rewrites the injected config (see the constructor). */
734
- cdr = inject(ChangeDetectorRef);
735
- lang = inject(MnLanguageService);
736
- destroyRef = inject(DestroyRef);
737
- constructor() {
738
- // `provideMnComponentConfig` resolves `$translate` markers by mutating the injected object
739
- // in place, which change detection cannot see. Every other config-reading component already
740
- // re-resolves on a locale change; this one only has to repaint.
741
- const sub = this.lang.locale$.pipe(skip(1)).subscribe(() => this.cdr.markForCheck());
742
- this.destroyRef.onDestroy(() => sub.unsubscribe());
743
- }
744
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MnDualHorizontalImage, deps: [], target: i0.ɵɵFactoryTarget.Component });
745
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: MnDualHorizontalImage, isStandalone: true, selector: "mn-lib-dual-horizontal-image", host: { classAttribute: "block" }, providers: [
746
- provideMnComponentConfig(MN_LIB_DUAL_HORIZONTAL_IMAGE, 'mn-dual-horizontal-image'),
747
- ], ngImport: i0, template: "<div class=\"flex flex-col w-full -space-y-16 md:-space-y-24 lg:-space-y-24\">\n@for (image of componentConfig.images; track image.id) {\n <div\n class=\"relative aspect-3/2 w-[75%] md:w-[65%]\n overflow-hidden rounded-3xl shadow-md\n first:self-start last:self-end\"\n >\n <img\n [ngSrc]=\"image.url\"\n fill\n class=\"object-cover\"\n [alt]=\"image.alt\"\n />\n </div>\n } @empty {\n <p>{{ componentConfig.noImagesFound ?? 'No images found' }}</p>\n }\n</div>\n\n", dependencies: [{ kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }] });
748
- }
749
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MnDualHorizontalImage, decorators: [{
750
- type: Component,
751
- args: [{ selector: 'mn-lib-dual-horizontal-image', standalone: true, imports: [NgOptimizedImage], providers: [
752
- provideMnComponentConfig(MN_LIB_DUAL_HORIZONTAL_IMAGE, 'mn-dual-horizontal-image'),
753
- ], host: {
754
- class: 'block',
755
- }, template: "<div class=\"flex flex-col w-full -space-y-16 md:-space-y-24 lg:-space-y-24\">\n@for (image of componentConfig.images; track image.id) {\n <div\n class=\"relative aspect-3/2 w-[75%] md:w-[65%]\n overflow-hidden rounded-3xl shadow-md\n first:self-start last:self-end\"\n >\n <img\n [ngSrc]=\"image.url\"\n fill\n class=\"object-cover\"\n [alt]=\"image.alt\"\n />\n </div>\n } @empty {\n <p>{{ componentConfig.noImagesFound ?? 'No images found' }}</p>\n }\n</div>\n\n" }]
756
- }], ctorParameters: () => [] });
757
-
758
679
  /**
759
- * Public API of the `mn-angular-lib/display` entry point: display components (card, breadcrumbs, icon, information card, dual image).
680
+ * Public API of the `mn-angular-lib/display` entry point: display components (card, breadcrumbs, icon).
760
681
  *
761
682
  * Each entry point is its own module in the published package, so a consumer's bundler
762
683
  * splits it into the chunk that uses it instead of loading the whole library at startup.
@@ -767,5 +688,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
767
688
  * Generated bundle index. Do not edit.
768
689
  */
769
690
 
770
- export { MN_ICON_MAP, MN_LIB_DUAL_HORIZONTAL_IMAGE, MnBreadcrumbs, MnCard, MnDualHorizontalImage, MnIcon, MnIconAttributes, MnIconChip, MnInformationCard, MnProportionBar, MnStatTile, mnBreadcrumbsVariants, mnCardVariants, mnIconChipVariants, mnIconVariants, mnInformationCardVariants };
691
+ export { MN_ICON_MAP, MnBreadcrumbs, MnCard, MnIcon, MnIconAttributes, MnIconChip, MnProportionBar, MnStatTile, mnBreadcrumbsVariants, mnCardVariants, mnIconChipVariants, mnIconVariants };
771
692
  //# sourceMappingURL=mn-angular-lib-display.mjs.map
@@ -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/src/mn-information-card/mn-information-cardVariants.ts","../../../projects/mn-angular-lib/display/src/mn-information-card/mn-information-card.ts","../../../projects/mn-angular-lib/display/src/mn-information-card/mn-information-card.html","../../../projects/mn-angular-lib/display/src/mn-dual-horizontal-image/mn-dual-horizontal-image.ts","../../../projects/mn-angular-lib/display/src/mn-dual-horizontal-image/mn-dual-horizontal-image.html","../../../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 */\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 /** 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);\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","import { tv, type VariantProps } from 'tailwind-variants';\n\nexport const mnInformationCardVariants = tv({\n base: '',\n variants: {\n bottomBorder: {\n true: 'border-b border-b-2 border-primary-500',\n },\n shadow: {\n true: 'shadow-xl',\n },\n textPosition: {\n left: 'text-left',\n center: 'text-center',\n right: 'text-right',\n },\n borderRadius: {\n none: 'rounded-none',\n xs: 'rounded-xs',\n sm: 'rounded-sm',\n md: 'rounded-md',\n lg: 'rounded-lg',\n xl: 'rounded-xl',\n two_xl: 'rounded-2xl',\n three_xl: 'rounded-3xl',\n four_xl: 'rounded-4xl',\n },\n },\n});\n\nexport type MnInformationCardVariants = VariantProps<typeof mnInformationCardVariants>;\n","import { Component, Input } from '@angular/core';\nimport { MnInformationCardData } from './mn-information-cardTypes';\nimport { mnInformationCardVariants } from './mn-information-cardVariants';\nimport { NgClass } from '@angular/common';\n\n@Component({\n selector: 'mn-lib-information-card',\n standalone: true,\n imports: [NgClass],\n templateUrl: './mn-information-card.html',\n})\nexport class MnInformationCard<TExtra = unknown> {\n @Input({ required: true }) data!: MnInformationCardData<TExtra>;\n\n get hostClasses(): string {\n return mnInformationCardVariants({\n bottomBorder: this.data.bottomBorder,\n shadow: this.data.shadow,\n textPosition: this.data.textPosition,\n borderRadius: this.data.borderRadius,\n });\n }\n}\n","<div class=\"flex flex-col items-center gap-y-4 p-4 size-full\" [ngClass]=\"hostClasses\">\n<ng-content select=\"[header]\"></ng-content>\n<ng-content></ng-content>\n<ng-content select=\"[footer]\"></ng-content>\n</div>\n","import { ChangeDetectorRef, Component, DestroyRef, inject, InjectionToken } from '@angular/core';\nimport { NgOptimizedImage } from '@angular/common';\nimport { skip } from 'rxjs';\nimport { MnDualHorizontalImageTypes } from './mn-dual-horizontal-imageTypes';\nimport { MnLanguageService, provideMnComponentConfig } from 'mn-angular-lib/core';\n\nexport type MnDualHorizontalImageConfig = {\n images?: MnDualHorizontalImageTypes[];\n noImagesFound?: string;\n};\n\nexport const MN_LIB_DUAL_HORIZONTAL_IMAGE = new InjectionToken<MnDualHorizontalImageConfig>(\n 'MN_LIB_DUAL_HORIZONTAL_IMAGE',\n);\n\n@Component({\n selector: 'mn-lib-dual-horizontal-image',\n standalone: true,\n imports: [NgOptimizedImage],\n providers: [\n provideMnComponentConfig<MnDualHorizontalImageConfig>(\n MN_LIB_DUAL_HORIZONTAL_IMAGE,\n 'mn-dual-horizontal-image',\n ),\n ],\n templateUrl: './mn-dual-horizontal-image.html',\n host: {\n class: 'block',\n },\n})\nexport class MnDualHorizontalImage {\n protected readonly componentConfig = inject(MN_LIB_DUAL_HORIZONTAL_IMAGE);\n\n /** Marks the view when a locale change rewrites the injected config (see the constructor). */\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly lang = inject(MnLanguageService);\n private readonly destroyRef = inject(DestroyRef);\n\n constructor() {\n // `provideMnComponentConfig` resolves `$translate` markers by mutating the injected object\n // in place, which change detection cannot see. Every other config-reading component already\n // re-resolves on a locale change; this one only has to repaint.\n const sub = this.lang.locale$.pipe(skip(1)).subscribe(() => this.cdr.markForCheck());\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n }\n}\n","<div class=\"flex flex-col w-full -space-y-16 md:-space-y-24 lg:-space-y-24\">\n@for (image of componentConfig.images; track image.id) {\n <div\n class=\"relative aspect-3/2 w-[75%] md:w-[65%]\n overflow-hidden rounded-3xl shadow-md\n first:self-start last:self-end\"\n >\n <img\n [ngSrc]=\"image.url\"\n fill\n class=\"object-cover\"\n [alt]=\"image.alt\"\n />\n </div>\n } @empty {\n <p>{{ componentConfig.noImagesFound ?? 'No images found' }}</p>\n }\n</div>\n\n","/**\n * Public API of the `mn-angular-lib/display` entry point: display components (card, breadcrumbs, icon, information card, dual image).\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';\nexport * from './src/mn-information-card';\nexport * from './src/mn-dual-horizontal-image';\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;AACf,QAAA,IAAI,EAAE,IAAI;AACV,QAAA,KAAK,EAAE,SAAS;AACjB,KAAA;AACF,CAAA;;ACjCD;;;;;;;;;;;;;AAaG;MAOU,UAAU,CAAA;;IAEZ,IAAI,GAA6B,EAAE;;AAG5C,IAAA,IACI,WAAW,GAAA;AACb,QAAA,OAAO,kBAAkB,CAAC;AACxB,YAAA,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI;AACpB,YAAA,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK;AACvB,SAAA,CAAC;IACJ;uGAXW,UAAU,EA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AA,mBAAA,EAAA,KAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAYf,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAfjC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,8BAA8B,cAC5B,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,CAAC,EAAA,SAAA,EAChB;AACT,wBAAA,wBAAwB,CACtB,4BAA4B,EAC5B,0BAA0B,CAC3B;qBACF,EAAA,IAAA,EAEK;AACJ,wBAAA,KAAK,EAAE,OAAO;AACf,qBAAA,EAAA,QAAA,EAAA,wgBAAA,EAAA;;;AE5BH;;;;;;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)) 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 */\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 /** 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);\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,YAA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S;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;ACPD;;;;;;AAMG;;ACNH;;AAEG;;"}
@@ -1,11 +1,17 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ChangeDetectorRef, EventEmitter, isSignal, Output, Input, ViewChild, Component } from '@angular/core';
2
+ import { inject, ChangeDetectorRef, signal, EventEmitter, isSignal, Output, Input, ViewChild, Component } from '@angular/core';
3
3
  import { Router, ActivatedRoute } from '@angular/router';
4
- import { MnTranslatePipe } from 'mn-angular-lib/core';
4
+ import { LucideDynamicIcon } from '@lucide/angular';
5
+ import * as lucide from 'lucide';
6
+ import { lucideIcons, MnTranslatePipe } from 'mn-angular-lib/core';
5
7
  import { MnCollectionState } from 'mn-angular-lib/collection';
6
8
  import { CommonModule } from '@angular/common';
7
9
  import { MnBadge, MnSkeleton } from 'mn-angular-lib/button';
8
10
 
11
+ /** Lucide icons this file renders. */
12
+ const ICONS = lucideIcons({ ChevronLeft: lucide.ChevronLeft, ChevronRight: lucide.ChevronRight });
13
+ /** Share of the visible width one chevron press scrolls, so the last tab in view stays as an anchor. */
14
+ const CHEVRON_SCROLL_RATIO = 0.75;
9
15
  /** Fallback number of skeleton tabs when no items are known and no count is given. */
10
16
  const DEFAULT_SKELETON_TAB_COUNT = 3;
11
17
  /** Query parameter the active tab is mirrored in unless the data source names another. */
@@ -109,6 +115,17 @@ class MnTabComponent {
109
115
  * Defaults to false, so tabs only take as much space as their content.
110
116
  */
111
117
  justified = false;
118
+ /** Icons rendered by the template. */
119
+ icons = ICONS;
120
+ /**
121
+ * Whether tabs are scrolled out of view past the start edge, which shows the start chevron.
122
+ * A signal, so a write from the scroll handler or the resize observer marks the view by itself.
123
+ */
124
+ canScrollStart = signal(false, /* @ts-ignore */
125
+ ...(ngDevMode ? [{ debugName: "canScrollStart" }] : /* istanbul ignore next */ []));
126
+ /** Whether tabs are hidden past the end edge, which shows the end chevron. */
127
+ canScrollEnd = signal(false, /* @ts-ignore */
128
+ ...(ngDevMode ? [{ debugName: "canScrollEnd" }] : /* istanbul ignore next */ []));
112
129
  /** Emits the newly activated tab item whenever the active tab changes. */
113
130
  activeChange = new EventEmitter();
114
131
  /** The currently active tab item. */
@@ -212,6 +229,12 @@ class MnTabComponent {
212
229
  * dissolve that reads as "more this way", the affordance a hidden scrollbar
213
230
  * otherwise costs us. Uses a mask (content → transparent) rather than a
214
231
  * background-coloured overlay, so it needs no knowledge of the theme.
232
+ *
233
+ * The fade alone only reads as "more" when it dissolves a tab cut off
234
+ * mid-label. When a tab boundary lands exactly on the edge it merely softens
235
+ * a complete label and the hidden tabs go unnoticed, so the same overflow
236
+ * also shows a chevron in the faded strip ({@link canScrollStart},
237
+ * {@link canScrollEnd}).
215
238
  */
216
239
  updateEdgeFades() {
217
240
  const el = this.scrollContainer?.nativeElement;
@@ -219,6 +242,8 @@ class MnTabComponent {
219
242
  return;
220
243
  const fadeStart = el.scrollLeft > 1;
221
244
  const fadeEnd = el.scrollLeft + el.clientWidth < el.scrollWidth - 1;
245
+ this.canScrollStart.set(this.scrollable && fadeStart);
246
+ this.canScrollEnd.set(this.scrollable && fadeEnd);
222
247
  const f = MnTabComponent.FADE;
223
248
  let mask = '';
224
249
  if (this.scrollable && fadeStart && fadeEnd) {
@@ -233,6 +258,22 @@ class MnTabComponent {
233
258
  el.style.maskImage = mask;
234
259
  el.style.setProperty('-webkit-mask-image', mask);
235
260
  }
261
+ /**
262
+ * Scrolls the bar by most of its visible width towards one edge, from a chevron press. The
263
+ * scroll event that follows moves the fade and hides the chevron whose edge has been reached.
264
+ * Jumps instead of gliding for a user who asked for reduced motion.
265
+ * @param direction - -1 towards the start, 1 towards the end.
266
+ */
267
+ scrollTabs(direction) {
268
+ const el = this.scrollContainer?.nativeElement;
269
+ if (!el)
270
+ return;
271
+ const reduceMotion = window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;
272
+ el.scrollBy({
273
+ left: direction * el.clientWidth * CHEVRON_SCROLL_RATIO,
274
+ behavior: reduceMotion ? 'auto' : 'smooth',
275
+ });
276
+ }
236
277
  /**
237
278
  * Sets the given tab item as active, invoking deactivate/activate callbacks,
238
279
  * and records the selection in the URL so it survives a reload or a share.
@@ -541,11 +582,11 @@ class MnTabComponent {
541
582
  return keys;
542
583
  }
543
584
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MnTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
544
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: MnTabComponent, isStandalone: true, selector: "mn-tab", inputs: { dataSource: "dataSource", scrollable: "scrollable", justified: "justified" }, outputs: { activeChange: "activeChange" }, viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollContainer"], descendants: true }, { propertyName: "tabList", first: true, predicate: ["tabList"], descendants: true }, { propertyName: "indicator", first: true, predicate: ["indicator"], descendants: true }], ngImport: i0, template: "<div class=\"mb-10\">\n <div\n #scrollContainer\n (scroll)=\"updateEdgeFades()\"\n class=\"flex justify-start scrollbar-hide\"\n [class.overflow-x-auto]=\"scrollable\"\n [class.overflow-y-hidden]=\"scrollable\"\n >\n <div\n #tabList\n role=\"tablist\"\n class=\"tabs relative flex flex-nowrap -mb-[1px] border-b border-base-300\"\n [class.w-full]=\"justified\"\n >\n <!--\n Shared sliding indicator: a single underline that travels to the active\n tab, rather than each tab flipping its own border on/off (which snaps).\n Pinned to left-0/top-auto so offsetLeft maps 1:1 regardless of the\n flex justify-content or the justified full-width layout; position and\n width are measured and set from TS. Sits on the same baseline as the\n hover ::after so hover \u2192 select reads as one continuous underline.\n -->\n <div\n #indicator\n aria-hidden=\"true\"\n class=\"pointer-events-none absolute left-0 top-auto bottom-0 h-[2px] w-0 bg-primary opacity-0 transition-[transform,width] duration-300 ease-out motion-reduce:transition-none\"\n ></div>\n @if (isLoadingState) {\n @for (i of skeletonTabs; track i) {\n <div\n [class.flex-1]=\"justified\"\n class=\"tab px-4 py-2 border-b-2 border-transparent flex items-center justify-center\"\n >\n <mn-skeleton [data]=\"{ shape: 'rectangle', width: '4.5rem', height: '1rem' }\"></mn-skeleton>\n </div>\n }\n } @else {\n @for (item of dataSource.items; track item.label) {\n <!-- One Tab stop per bar (the active tab); the arrow keys, Home and End move between\n tabs and activate them, the WAI-ARIA tabs pattern. Every tab used to be its own\n Tab stop with no arrow keys, so crossing an eight-tab bar took eight presses. -->\n <div\n (click)=\"setActive(item)\"\n (keydown)=\"onTabKeydown($event, item)\"\n [attr.aria-selected]=\"currentActive === item\"\n [attr.tabindex]=\"isTabStop(item) ? 0 : -1\"\n [class.hover:after:scale-x-100]=\"currentActive !== item\"\n [class.flex-1]=\"justified\"\n [class.font-bold]=\"currentActive === item\"\n [class.text-base-content]=\"currentActive !== item\"\n [class.text-primary]=\"currentActive === item\"\n class=\"tab relative px-4 py-2 border-b-2 border-transparent cursor-pointer select-none transition-colors whitespace-nowrap text-center flex items-center gap-2 after:content-[''] after:absolute after:inset-x-0 after:-bottom-[2px] after:h-[2px] after:bg-primary/60 after:origin-center after:scale-x-0 after:transition-transform after:duration-300 after:ease-out\"\n role=\"tab\"\n >\n {{ item.label | mnTranslate }}\n @let badge = getBadge(item);\n @if (badge && badge > 0) {\n <span [data]=\"{ size: 'sm', color: 'accent', variant: 'fill' }\" mnBadge>{{ badge }}</span>\n }\n </div>\n }\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: MnBadge, selector: "span[mnBadge]", inputs: ["data"] }, { kind: "component", type: MnSkeleton, selector: "mn-skeleton", inputs: ["data"] }, { kind: "pipe", type: MnTranslatePipe, name: "mnTranslate" }] });
585
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: MnTabComponent, isStandalone: true, selector: "mn-tab", inputs: { dataSource: "dataSource", scrollable: "scrollable", justified: "justified" }, outputs: { activeChange: "activeChange" }, viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollContainer"], descendants: true }, { propertyName: "tabList", first: true, predicate: ["tabList"], descendants: true }, { propertyName: "indicator", first: true, predicate: ["indicator"], descendants: true }], ngImport: i0, template: "<div class=\"relative mb-10\">\n <!--\n Scroll chevrons, one per edge that hides tabs. They sit in the 2rem strip the edge fade\n dissolves, so they cover nothing still legible. aria-hidden and out of the Tab order: the\n arrow keys already move between tabs (and scroll them into view), and a screen reader reads\n every tab whether scrolled into view or not. mousedown is cancelled so a press does not\n take focus away from the active tab.\n -->\n @if (canScrollStart()) {\n <button\n (click)=\"scrollTabs(-1)\"\n (mousedown)=\"$event.preventDefault()\"\n aria-hidden=\"true\"\n class=\"absolute inset-y-0 left-0 z-10 flex w-8 cursor-pointer items-center justify-start text-base-content hover:text-primary\"\n data-mn-tab-scroll=\"start\"\n tabindex=\"-1\"\n type=\"button\"\n >\n <svg [size]=\"18\" [lucideIcon]=\"icons.ChevronLeft\"></svg>\n </button>\n }\n @if (canScrollEnd()) {\n <button\n (click)=\"scrollTabs(1)\"\n (mousedown)=\"$event.preventDefault()\"\n aria-hidden=\"true\"\n class=\"absolute inset-y-0 right-0 z-10 flex w-8 cursor-pointer items-center justify-end text-base-content hover:text-primary\"\n data-mn-tab-scroll=\"end\"\n tabindex=\"-1\"\n type=\"button\"\n >\n <svg [size]=\"18\" [lucideIcon]=\"icons.ChevronRight\"></svg>\n </button>\n }\n <div\n #scrollContainer\n (scroll)=\"updateEdgeFades()\"\n class=\"flex justify-start scrollbar-hide\"\n [class.overflow-x-auto]=\"scrollable\"\n [class.overflow-y-hidden]=\"scrollable\"\n >\n <div\n #tabList\n role=\"tablist\"\n class=\"tabs relative flex flex-nowrap -mb-[1px] border-b border-base-300\"\n [class.w-full]=\"justified\"\n >\n <!--\n Shared sliding indicator: a single underline that travels to the active\n tab, rather than each tab flipping its own border on/off (which snaps).\n Pinned to left-0/top-auto so offsetLeft maps 1:1 regardless of the\n flex justify-content or the justified full-width layout; position and\n width are measured and set from TS. Sits on the same baseline as the\n hover ::after so hover \u2192 select reads as one continuous underline.\n -->\n <div\n #indicator\n aria-hidden=\"true\"\n class=\"pointer-events-none absolute left-0 top-auto bottom-0 h-[2px] w-0 bg-primary opacity-0 transition-[transform,width] duration-300 ease-out motion-reduce:transition-none\"\n ></div>\n @if (isLoadingState) {\n @for (i of skeletonTabs; track i) {\n <div\n [class.flex-1]=\"justified\"\n class=\"tab px-4 py-2 border-b-2 border-transparent flex items-center justify-center\"\n >\n <mn-skeleton [data]=\"{ shape: 'rectangle', width: '4.5rem', height: '1rem' }\"></mn-skeleton>\n </div>\n }\n } @else {\n @for (item of dataSource.items; track item.label) {\n <!-- One Tab stop per bar (the active tab); the arrow keys, Home and End move between\n tabs and activate them, the WAI-ARIA tabs pattern. Every tab used to be its own\n Tab stop with no arrow keys, so crossing an eight-tab bar took eight presses. -->\n <div\n (click)=\"setActive(item)\"\n (keydown)=\"onTabKeydown($event, item)\"\n [attr.aria-selected]=\"currentActive === item\"\n [attr.tabindex]=\"isTabStop(item) ? 0 : -1\"\n [class.hover:after:scale-x-100]=\"currentActive !== item\"\n [class.flex-1]=\"justified\"\n [class.font-bold]=\"currentActive === item\"\n [class.text-base-content]=\"currentActive !== item\"\n [class.text-primary]=\"currentActive === item\"\n class=\"tab relative px-4 py-2 border-b-2 border-transparent cursor-pointer select-none transition-colors whitespace-nowrap text-center flex items-center gap-2 after:content-[''] after:absolute after:inset-x-0 after:-bottom-[2px] after:h-[2px] after:bg-primary/60 after:origin-center after:scale-x-0 after:transition-transform after:duration-300 after:ease-out\"\n role=\"tab\"\n >\n {{ item.label | mnTranslate }}\n @let badge = getBadge(item);\n @if (badge && badge > 0) {\n <span [data]=\"{ size: 'sm', color: 'accent', variant: 'fill' }\" mnBadge>{{ badge }}</span>\n }\n </div>\n }\n }\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: MnBadge, selector: "span[mnBadge]", inputs: ["data"] }, { kind: "component", type: MnSkeleton, selector: "mn-skeleton", inputs: ["data"] }, { kind: "component", type: LucideDynamicIcon, selector: "svg[lucideIcon]", inputs: ["lucideIcon"] }, { kind: "pipe", type: MnTranslatePipe, name: "mnTranslate" }] });
545
586
  }
546
587
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MnTabComponent, decorators: [{
547
588
  type: Component,
548
- args: [{ selector: 'mn-tab', standalone: true, imports: [MnTranslatePipe, CommonModule, MnBadge, MnSkeleton], template: "<div class=\"mb-10\">\n <div\n #scrollContainer\n (scroll)=\"updateEdgeFades()\"\n class=\"flex justify-start scrollbar-hide\"\n [class.overflow-x-auto]=\"scrollable\"\n [class.overflow-y-hidden]=\"scrollable\"\n >\n <div\n #tabList\n role=\"tablist\"\n class=\"tabs relative flex flex-nowrap -mb-[1px] border-b border-base-300\"\n [class.w-full]=\"justified\"\n >\n <!--\n Shared sliding indicator: a single underline that travels to the active\n tab, rather than each tab flipping its own border on/off (which snaps).\n Pinned to left-0/top-auto so offsetLeft maps 1:1 regardless of the\n flex justify-content or the justified full-width layout; position and\n width are measured and set from TS. Sits on the same baseline as the\n hover ::after so hover \u2192 select reads as one continuous underline.\n -->\n <div\n #indicator\n aria-hidden=\"true\"\n class=\"pointer-events-none absolute left-0 top-auto bottom-0 h-[2px] w-0 bg-primary opacity-0 transition-[transform,width] duration-300 ease-out motion-reduce:transition-none\"\n ></div>\n @if (isLoadingState) {\n @for (i of skeletonTabs; track i) {\n <div\n [class.flex-1]=\"justified\"\n class=\"tab px-4 py-2 border-b-2 border-transparent flex items-center justify-center\"\n >\n <mn-skeleton [data]=\"{ shape: 'rectangle', width: '4.5rem', height: '1rem' }\"></mn-skeleton>\n </div>\n }\n } @else {\n @for (item of dataSource.items; track item.label) {\n <!-- One Tab stop per bar (the active tab); the arrow keys, Home and End move between\n tabs and activate them, the WAI-ARIA tabs pattern. Every tab used to be its own\n Tab stop with no arrow keys, so crossing an eight-tab bar took eight presses. -->\n <div\n (click)=\"setActive(item)\"\n (keydown)=\"onTabKeydown($event, item)\"\n [attr.aria-selected]=\"currentActive === item\"\n [attr.tabindex]=\"isTabStop(item) ? 0 : -1\"\n [class.hover:after:scale-x-100]=\"currentActive !== item\"\n [class.flex-1]=\"justified\"\n [class.font-bold]=\"currentActive === item\"\n [class.text-base-content]=\"currentActive !== item\"\n [class.text-primary]=\"currentActive === item\"\n class=\"tab relative px-4 py-2 border-b-2 border-transparent cursor-pointer select-none transition-colors whitespace-nowrap text-center flex items-center gap-2 after:content-[''] after:absolute after:inset-x-0 after:-bottom-[2px] after:h-[2px] after:bg-primary/60 after:origin-center after:scale-x-0 after:transition-transform after:duration-300 after:ease-out\"\n role=\"tab\"\n >\n {{ item.label | mnTranslate }}\n @let badge = getBadge(item);\n @if (badge && badge > 0) {\n <span [data]=\"{ size: 'sm', color: 'accent', variant: 'fill' }\" mnBadge>{{ badge }}</span>\n }\n </div>\n }\n }\n </div>\n </div>\n</div>\n" }]
589
+ args: [{ selector: 'mn-tab', standalone: true, imports: [MnTranslatePipe, CommonModule, MnBadge, MnSkeleton, LucideDynamicIcon], template: "<div class=\"relative mb-10\">\n <!--\n Scroll chevrons, one per edge that hides tabs. They sit in the 2rem strip the edge fade\n dissolves, so they cover nothing still legible. aria-hidden and out of the Tab order: the\n arrow keys already move between tabs (and scroll them into view), and a screen reader reads\n every tab whether scrolled into view or not. mousedown is cancelled so a press does not\n take focus away from the active tab.\n -->\n @if (canScrollStart()) {\n <button\n (click)=\"scrollTabs(-1)\"\n (mousedown)=\"$event.preventDefault()\"\n aria-hidden=\"true\"\n class=\"absolute inset-y-0 left-0 z-10 flex w-8 cursor-pointer items-center justify-start text-base-content hover:text-primary\"\n data-mn-tab-scroll=\"start\"\n tabindex=\"-1\"\n type=\"button\"\n >\n <svg [size]=\"18\" [lucideIcon]=\"icons.ChevronLeft\"></svg>\n </button>\n }\n @if (canScrollEnd()) {\n <button\n (click)=\"scrollTabs(1)\"\n (mousedown)=\"$event.preventDefault()\"\n aria-hidden=\"true\"\n class=\"absolute inset-y-0 right-0 z-10 flex w-8 cursor-pointer items-center justify-end text-base-content hover:text-primary\"\n data-mn-tab-scroll=\"end\"\n tabindex=\"-1\"\n type=\"button\"\n >\n <svg [size]=\"18\" [lucideIcon]=\"icons.ChevronRight\"></svg>\n </button>\n }\n <div\n #scrollContainer\n (scroll)=\"updateEdgeFades()\"\n class=\"flex justify-start scrollbar-hide\"\n [class.overflow-x-auto]=\"scrollable\"\n [class.overflow-y-hidden]=\"scrollable\"\n >\n <div\n #tabList\n role=\"tablist\"\n class=\"tabs relative flex flex-nowrap -mb-[1px] border-b border-base-300\"\n [class.w-full]=\"justified\"\n >\n <!--\n Shared sliding indicator: a single underline that travels to the active\n tab, rather than each tab flipping its own border on/off (which snaps).\n Pinned to left-0/top-auto so offsetLeft maps 1:1 regardless of the\n flex justify-content or the justified full-width layout; position and\n width are measured and set from TS. Sits on the same baseline as the\n hover ::after so hover \u2192 select reads as one continuous underline.\n -->\n <div\n #indicator\n aria-hidden=\"true\"\n class=\"pointer-events-none absolute left-0 top-auto bottom-0 h-[2px] w-0 bg-primary opacity-0 transition-[transform,width] duration-300 ease-out motion-reduce:transition-none\"\n ></div>\n @if (isLoadingState) {\n @for (i of skeletonTabs; track i) {\n <div\n [class.flex-1]=\"justified\"\n class=\"tab px-4 py-2 border-b-2 border-transparent flex items-center justify-center\"\n >\n <mn-skeleton [data]=\"{ shape: 'rectangle', width: '4.5rem', height: '1rem' }\"></mn-skeleton>\n </div>\n }\n } @else {\n @for (item of dataSource.items; track item.label) {\n <!-- One Tab stop per bar (the active tab); the arrow keys, Home and End move between\n tabs and activate them, the WAI-ARIA tabs pattern. Every tab used to be its own\n Tab stop with no arrow keys, so crossing an eight-tab bar took eight presses. -->\n <div\n (click)=\"setActive(item)\"\n (keydown)=\"onTabKeydown($event, item)\"\n [attr.aria-selected]=\"currentActive === item\"\n [attr.tabindex]=\"isTabStop(item) ? 0 : -1\"\n [class.hover:after:scale-x-100]=\"currentActive !== item\"\n [class.flex-1]=\"justified\"\n [class.font-bold]=\"currentActive === item\"\n [class.text-base-content]=\"currentActive !== item\"\n [class.text-primary]=\"currentActive === item\"\n class=\"tab relative px-4 py-2 border-b-2 border-transparent cursor-pointer select-none transition-colors whitespace-nowrap text-center flex items-center gap-2 after:content-[''] after:absolute after:inset-x-0 after:-bottom-[2px] after:h-[2px] after:bg-primary/60 after:origin-center after:scale-x-0 after:transition-transform after:duration-300 after:ease-out\"\n role=\"tab\"\n >\n {{ item.label | mnTranslate }}\n @let badge = getBadge(item);\n @if (badge && badge > 0) {\n <span [data]=\"{ size: 'sm', color: 'accent', variant: 'fill' }\" mnBadge>{{ badge }}</span>\n }\n </div>\n }\n }\n </div>\n </div>\n</div>\n" }]
549
590
  }], ctorParameters: () => [], propDecorators: { scrollContainer: [{
550
591
  type: ViewChild,
551
592
  args: ['scrollContainer']
@@ -1 +1 @@
1
- {"version":3,"file":"mn-angular-lib-tab.mjs","sources":["../../../projects/mn-angular-lib/tab/src/mn-tab/mn-tab.component.ts","../../../projects/mn-angular-lib/tab/src/mn-tab/mn-tab.component.html","../../../projects/mn-angular-lib/tab/public-api.ts","../../../projects/mn-angular-lib/tab/mn-angular-lib-tab.ts"],"sourcesContent":["import {\n AfterViewChecked,\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n DoCheck,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n isSignal,\n OnDestroy,\n Output,\n ViewChild,\n} from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { Subscription } from 'rxjs';\nimport { MnTranslatePipe } from 'mn-angular-lib/core';\nimport { MnCollectionState } from 'mn-angular-lib/collection';\nimport { MnTabDataSource, MnTabItem } from './mn-tab.types';\nimport { CommonModule } from '@angular/common';\nimport { MnBadge } from 'mn-angular-lib/button';\nimport { MnSkeleton } from 'mn-angular-lib/button';\n\n/** Fallback number of skeleton tabs when no items are known and no count is given. */\nconst DEFAULT_SKELETON_TAB_COUNT = 3;\n\n/** Query parameter the active tab is mirrored in unless the data source names another. */\nconst DEFAULT_TAB_URL_PARAM = 'tab';\n\n/** Key used for a label that slugs to nothing (e.g. punctuation only). */\nconst FALLBACK_TAB_URL_KEY = 'tab';\n\n/**\n * Slugs a tab label into the value it takes in the URL: the last segment of a\n * translation key, kebab-cased. `matches.hub.tab.entrants` → `entrants`,\n * `members.tabMembers` → `tab-members`.\n * @param label - The tab's label or translation key.\n */\nfunction tabUrlKey(label: string): string {\n const segment = label.split('.').pop() ?? label;\n const slug = segment\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2')\n .replace(/[^a-zA-Z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '')\n .toLowerCase();\n return slug || FALLBACK_TAB_URL_KEY;\n}\n\n/**\n * Tab component that renders a horizontal tab bar.\n * Supports translation keys for labels via MnTranslatePipe.\n *\n * The active tab is mirrored in the URL query string by default, so a reload,\n * a back button or a shared link lands on the same tab; see\n * {@link MnTabDataSource.urlParam} to rename that parameter or switch it off.\n */\n@Component({\n selector: 'mn-tab',\n standalone: true,\n imports: [MnTranslatePipe, CommonModule, MnBadge, MnSkeleton],\n templateUrl: './mn-tab.component.html',\n})\nexport class MnTabComponent implements DoCheck, AfterViewInit, AfterViewChecked, OnDestroy {\n /**\n * Router the active tab is written to. Optional: a tab bar used outside a\n * routed application still works, it just has no URL to mirror into.\n */\n private readonly router = inject(Router, { optional: true });\n\n /** Route the tab value is read back from; absent for the same reason as {@link router}. */\n private readonly route = inject(ActivatedRoute, { optional: true });\n\n /**\n * Marks the view whenever {@link currentActive} moves. The selection changes from three\n * places Angular does not notice under OnPush: the query-parameter subscription, the\n * {@link ngDoCheck} re-resolve, and a stale item being dropped — only a click arrives\n * through a listener that dirties the view by itself.\n */\n private readonly cdr = inject(ChangeDetectorRef);\n\n /** Watches the URL so a deep link, a back button or an in-app link moves the tab bar. */\n private readonly queryParamsSub?: Subscription;\n\n /**\n * URL keys of the current items, memoised on the items array so a slug is\n * computed once per tab set rather than on every change-detection pass.\n */\n private urlKeyCache?: { items: MnTabItem[]; keys: string[] };\n\n /** URL key of {@link currentActive}, so a rebuilt tab set can be recognised as the same tab. */\n private currentKey?: string;\n\n /**\n * Key of a selection whose URL write has not landed yet. Navigation is\n * asynchronous, so a consumer that rebuilds its tabs in response to the click\n * can be resolved against a URL that still names the previous tab; until the\n * write completes, this is the truth about what the user picked.\n */\n private pendingKey?: string;\n\n /** Set on destroy so a deferred restore can't announce a tab nobody is showing. */\n private destroyed = false;\n\n /** The horizontally-scrolling wrapper the edge fade is painted onto. */\n @ViewChild('scrollContainer') private scrollContainer?: ElementRef<HTMLElement>;\n\n /** The tab row; queried for the active tab so the indicator can measure it. */\n @ViewChild('tabList') private tabList?: ElementRef<HTMLElement>;\n\n /** The shared underline that slides to the active tab. */\n @ViewChild('indicator') private indicator?: ElementRef<HTMLElement>;\n\n /** Pending indicator remeasure, cancelled on destroy so a post-destroy frame can't read a detached ref. */\n private indicatorFrame?: number;\n\n /**\n * True while a click-initiated slide is animating. The active tab's\n * `font-bold` widens the row, which fires {@link resizeObserver}; without\n * this guard the observer's snap ({@link updateIndicator} with `animate:\n * false`) would land the indicator at its target the same frame the slide\n * starts, so the transition never paints. Set synchronously in\n * {@link setActive} — before the frame runs — so the guard doesn't depend on\n * rAF-vs-ResizeObserver callback ordering.\n */\n private sliding = false;\n\n /** Clears {@link sliding} after the slide finishes; re-armed per click, cancelled on destroy. */\n private slidingTimer?: number;\n\n /** Slide duration in ms; matches the indicator's `duration-300` transition. */\n private static readonly SLIDE_MS = 300;\n\n /** How far the fade reaches in from each overflowing edge. */\n private static readonly FADE = '2rem';\n /** Data source containing tab items and default active index. */\n @Input() dataSource!: MnTabDataSource;\n\n /**\n * Whether to enable horizontal scrolling when items overflow.\n * When true, tabs scroll horizontally instead of overflowing their container.\n *\n * Defaults to `true`: the tab bar never wraps (`flex-nowrap`), so without\n * scrolling an overflowing bar would clip its last tabs or push the page width\n * on narrow screens. When the tabs already fit, `overflow-x-auto` is a no-op,\n * so this default only ever changes behaviour for the overflow case it fixes.\n */\n @Input() scrollable = true;\n\n /**\n * Whether tabs should stretch to fill the available width.\n * Defaults to false, so tabs only take as much space as their content.\n */\n @Input() justified = false;\n\n /** Emits the newly activated tab item whenever the active tab changes. */\n @Output() activeChange = new EventEmitter<MnTabItem>();\n\n /** The currently active tab item. */\n currentActive?: MnTabItem;\n\n /** Watches the wrapper and the tab row so the fade re-evaluates on width or content changes. */\n private resizeObserver?: ResizeObserver;\n\n /**\n * Whether the tab bar is loading and should render skeleton tabs, from\n * {@link MnTabDataSource.state}.\n */\n get isLoadingState(): boolean {\n return this.dataSource.state === MnCollectionState.LOADING;\n }\n\n /**\n * Index array sizing the loading skeleton: `skeletonCount` when provided,\n * otherwise the number of known items, falling back to a default when none.\n */\n get skeletonTabs(): number[] {\n const count =\n this.dataSource.skeletonCount ?? (this.dataSource.items.length || DEFAULT_SKELETON_TAB_COUNT);\n return Array.from({ length: count }, (_, index) => index);\n }\n\n constructor() {\n // The URL is a second source of truth for the selection: a deep link, an\n // in-app link into another tab of the page already on screen, or the back\n // button all change it without a click landing on this component.\n this.queryParamsSub = this.route?.queryParamMap.subscribe((params) => {\n const param = this.urlParam();\n if (param) this.activateUrlKey(params.get(param));\n });\n }\n\n /**\n * Re-resolves the active tab on every change-detection pass.\n *\n * The data source is often populated or rebuilt asynchronously (tabs that\n * depend on fetched data or permissions). Resolving the active tab only once\n * at init would leave {@link currentActive} pointing at a stale item — the\n * tab bar would then highlight nothing and swallow the first click — so the\n * selection is kept in sync with whatever the data source currently holds.\n */\n ngDoCheck(): void {\n this.syncActiveTab();\n }\n\n /**\n * Starts watching the scroll wrapper so the edge fade stays honest. A scroll\n * moves the fade to whichever side now hides tabs; a resize (viewport change)\n * or a change to the tab row's width (tabs added, relabelled, skeleton →\n * loaded) re-checks whether either edge overflows at all.\n */\n ngAfterViewInit(): void {\n const el = this.scrollContainer?.nativeElement;\n if (!el) return;\n this.resizeObserver = new ResizeObserver(() => {\n this.updateEdgeFades();\n // Tabs may have reflowed (viewport change, justified widths); snap the\n // indicator to the new geometry — animating a resize tick reads as jank.\n // But skip the snap mid-slide: a click's own `font-bold` resizes the row\n // and fires this observer, and snapping there kills the slide it triggered.\n if (!this.sliding) this.updateIndicator(false);\n });\n this.resizeObserver.observe(el);\n if (el.firstElementChild) this.resizeObserver.observe(el.firstElementChild);\n this.updateEdgeFades();\n // Place the indicator on the default tab without a slide-in from zero.\n this.updateIndicator(false);\n }\n\n /** Wrapper geometry (`scrollWidth:clientWidth`) at the last fade evaluation. */\n private lastFadeGeometry = '';\n\n /**\n * Re-evaluates the edge fade when the wrapper's scrollable extent changes without its box\n * changing. {@link resizeObserver} only sees border-box changes, and the tab row is a\n * block-level flex container that keeps its parent's width while its tabs overflow inside it,\n * so tabs that arrive after init (permission-gated tabs, badge counts, skeleton → loaded) grow\n * `scrollWidth` without firing it; until a resize or scroll the fade stayed off. Two property\n * reads per pass; the repaint only runs when they moved.\n */\n ngAfterViewChecked(): void {\n const el = this.scrollContainer?.nativeElement;\n if (!el) return;\n const geometry = `${el.scrollWidth}:${el.clientWidth}`;\n if (geometry === this.lastFadeGeometry) return;\n this.lastFadeGeometry = geometry;\n this.updateEdgeFades();\n }\n\n ngOnDestroy(): void {\n this.destroyed = true;\n this.queryParamsSub?.unsubscribe();\n this.resizeObserver?.disconnect();\n if (this.indicatorFrame !== undefined) cancelAnimationFrame(this.indicatorFrame);\n if (this.slidingTimer !== undefined) clearTimeout(this.slidingTimer);\n }\n\n /**\n * Paints a fade over whichever edge has tabs scrolled out of view — a soft\n * dissolve that reads as \"more this way\", the affordance a hidden scrollbar\n * otherwise costs us. Uses a mask (content → transparent) rather than a\n * background-coloured overlay, so it needs no knowledge of the theme.\n */\n updateEdgeFades(): void {\n const el = this.scrollContainer?.nativeElement;\n if (!el) return;\n const fadeStart = el.scrollLeft > 1;\n const fadeEnd = el.scrollLeft + el.clientWidth < el.scrollWidth - 1;\n const f = MnTabComponent.FADE;\n let mask = '';\n if (this.scrollable && fadeStart && fadeEnd) {\n mask = `linear-gradient(to right, transparent 0, #000 ${f}, #000 calc(100% - ${f}), transparent 100%)`;\n } else if (this.scrollable && fadeStart) {\n mask = `linear-gradient(to right, transparent 0, #000 ${f}, #000 100%)`;\n } else if (this.scrollable && fadeEnd) {\n mask = `linear-gradient(to right, #000 0, #000 calc(100% - ${f}), transparent 100%)`;\n }\n el.style.maskImage = mask;\n el.style.setProperty('-webkit-mask-image', mask);\n }\n\n /**\n * Sets the given tab item as active, invoking deactivate/activate callbacks,\n * and records the selection in the URL so it survives a reload or a share.\n * @param item - The tab item to activate.\n */\n setActive(item: MnTabItem): void {\n if (this.currentActive === item) {\n return;\n }\n this.activate(item);\n this.writeUrl(item);\n }\n\n /**\n * Whether a tab is the bar's single Tab stop: the active tab, or the first tab while none is\n * active yet. Every other tab is reached with the arrow keys, so Tab leaves the bar in one press.\n * @param item - The tab to check.\n * @returns True for the one tab that keeps `tabindex=\"0\"`.\n */\n isTabStop(item: MnTabItem): boolean {\n return this.currentActive ? this.currentActive === item : this.dataSource?.items[0] === item;\n }\n\n /**\n * Keyboard handling on a tab. Left and Right move to the previous or next tab and wrap at the\n * ends, Home and End jump to the first and last; the tab moved to is activated at once\n * (automatic activation) and receives focus. Enter and Space activate the focused tab, handled\n * on keydown so Space does not scroll the page first. Other keys are left alone.\n * @param event - The keydown on a tab.\n * @param item - The tab the key was pressed on.\n */\n onTabKeydown(event: KeyboardEvent, item: MnTabItem): void {\n const items = this.dataSource?.items ?? [];\n const index = items.indexOf(item);\n if (index < 0) return;\n\n let target: number;\n switch (event.key) {\n case 'ArrowRight':\n target = (index + 1) % items.length;\n break;\n case 'ArrowLeft':\n target = (index - 1 + items.length) % items.length;\n break;\n case 'Home':\n target = 0;\n break;\n case 'End':\n target = items.length - 1;\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n this.setActive(item);\n return;\n default:\n return;\n }\n\n event.preventDefault();\n this.setActive(items[target]);\n this.focusTab(target);\n }\n\n /**\n * Moves focus to the tab at `index` and scrolls it into view inside a scrollable bar. Focusing\n * works before change detection has moved `tabindex=\"0\"` onto it, because a script may focus an\n * element with `tabindex=\"-1\"`.\n * @param index - Position of the tab in the data source's items.\n */\n private focusTab(index: number): void {\n const tabs = this.tabList?.nativeElement.querySelectorAll<HTMLElement>('[role=\"tab\"]');\n const tab = tabs?.[index];\n if (!tab) return;\n tab.focus();\n tab.scrollIntoView?.({ block: 'nearest', inline: 'nearest' });\n }\n\n /**\n * Moves the selection to `item` and tells the consumer about it: the\n * deactivate/activate/emit sequence a click produces, shared by the click\n * path and the URL-driven ones (deep link, back button), which owe the\n * consumer the same notifications.\n * @param item - The tab item to activate.\n */\n private activate(item: MnTabItem): void {\n this.currentActive?.onDeactivate?.();\n item.onClick?.();\n this.select(item);\n this.activeChange.emit(item);\n // Slide the underline to the new tab. Measure on the next frame, after\n // change detection has applied the active tab's `font-bold` (which widens\n // it) so the indicator lands on the final, bolded geometry. Guard the slide\n // against the resize snap the same `font-bold` triggers (see {@link sliding}).\n this.beginSlide();\n this.scheduleIndicator(true);\n }\n\n /**\n * Marks a click-driven slide as in progress and schedules the guard to lift\n * once the transition has finished. A timeout (not `transitionend`) so the\n * flag still clears under `motion-reduce`, where no transition event fires.\n */\n private beginSlide(): void {\n this.sliding = true;\n if (this.slidingTimer !== undefined) clearTimeout(this.slidingTimer);\n this.slidingTimer = setTimeout(() => {\n this.slidingTimer = undefined;\n this.sliding = false;\n }, MnTabComponent.SLIDE_MS) as unknown as number;\n }\n\n /**\n * Moves the shared underline to the active tab. When `animate` is false the\n * move is snapped (no slide) by disabling the transition for one reflow —\n * used on init, async selection and resize, where a slide would read as jank.\n * @param animate - Whether the move should slide (true) or snap (false).\n */\n private updateIndicator(animate: boolean): void {\n const bar = this.indicator?.nativeElement;\n const list = this.tabList?.nativeElement;\n if (!bar || !list) return;\n const active = list.querySelector<HTMLElement>('[role=\"tab\"][aria-selected=\"true\"]');\n if (!active) {\n bar.style.opacity = '0';\n return;\n }\n if (!animate) bar.style.transition = 'none';\n bar.style.opacity = '1';\n bar.style.width = `${active.offsetWidth}px`;\n bar.style.transform = `translateX(${active.offsetLeft}px)`;\n if (!animate) {\n // Force a reflow so the snapped values apply before the transition is\n // restored, then hand animation back to the CSS class.\n void bar.offsetWidth;\n bar.style.transition = '';\n }\n }\n\n /**\n * Remeasures the indicator on the next animation frame, so the read happens\n * after layout reflects the latest active-tab classes. Coalesces bursts and\n * is cancellable on destroy.\n * @param animate - Whether the resulting move should slide.\n */\n private scheduleIndicator(animate: boolean): void {\n if (this.indicatorFrame !== undefined) cancelAnimationFrame(this.indicatorFrame);\n this.indicatorFrame = requestAnimationFrame(() => {\n this.indicatorFrame = undefined;\n this.updateIndicator(animate);\n });\n }\n\n /**\n * Returns the resolved badge value for a tab item, supporting both plain numbers and Signal<number>.\n * @param item - The tab item whose badge to resolve.\n */\n getBadge(item: MnTabItem): number | undefined {\n if (isSignal(item.badge)) return item.badge();\n return item.badge;\n }\n\n /**\n * Ensures {@link currentActive} references a tab that still exists in the data\n * source, preferring the tab named in the URL and falling back to the\n * configured default tab when the current selection is missing or stale\n * (e.g. after the items array is replaced).\n */\n private syncActiveTab(): void {\n const items = this.dataSource?.items;\n if (!items || items.length === 0) {\n if (this.currentActive !== undefined) {\n this.currentActive = undefined;\n this.currentKey = undefined;\n this.cdr.markForCheck();\n this.scheduleIndicator(false);\n }\n return;\n }\n if (this.currentActive && items.includes(this.currentActive)) {\n return;\n }\n const defaultIndex = this.dataSource.defaultActive;\n const index = defaultIndex >= 0 && defaultIndex < items.length ? defaultIndex : 0;\n const fallback = items[index];\n const restored = this.itemFromUrl(items);\n const previousKey = this.currentKey;\n this.select(restored ?? fallback);\n // Selection resolved from data (not a user click): snap, don't slide.\n this.scheduleIndicator(false);\n if (restored && restored !== fallback && this.currentKey !== previousKey) {\n // The URL asks for a tab the consumer has not rendered, so this selection\n // has to be announced like a click's would be — but only the first time,\n // or a consumer that rebuilds its items array would re-run the tab's\n // callbacks on every rebuild. Deferred out of the change-detection pass\n // that resolved it: the consumer will flip its own state in response, and\n // doing that mid-pass writes to bindings that have already been checked.\n queueMicrotask(() => this.announceRestored(restored));\n }\n }\n\n /**\n * Records `item` as the selection, remembering its URL key so the same tab is\n * recognised after the consumer rebuilds the items array.\n * @param item - The newly selected tab.\n */\n private select(item: MnTabItem): void {\n const items = this.dataSource.items;\n this.currentActive = item;\n this.currentKey = this.urlKeys(items)[items.indexOf(item)];\n this.cdr.markForCheck();\n }\n\n /**\n * Runs the restored tab's callbacks a change-detection pass later, unless the\n * selection moved on in the meantime (a click, or another tab set arriving).\n * @param item - The tab restored from the URL.\n */\n private announceRestored(item: MnTabItem): void {\n if (this.destroyed || this.currentActive !== item) return;\n item.onClick?.();\n this.activeChange.emit(item);\n }\n\n /**\n * Activates the tab a URL value names, when it is not the tab already on\n * screen. Values naming no known tab are ignored: another tab bar on the page\n * may own that parameter, and a stale link should leave the default standing.\n * @param key - The value read from the query parameter, if any.\n */\n private activateUrlKey(key: string | null): void {\n const items = this.dataSource?.items;\n if (!key || !items?.length) return;\n const item = items[this.urlKeys(items).indexOf(key)];\n if (!item || item === this.currentActive) return;\n this.activate(item);\n }\n\n /**\n * The query parameter this tab bar mirrors into, or undefined when there is\n * nothing to mirror into (no router) or the consumer switched it off.\n */\n private urlParam(): string | undefined {\n if (!this.router || !this.route) return undefined;\n const param = this.dataSource?.urlParam ?? DEFAULT_TAB_URL_PARAM;\n return param === false || param === '' ? undefined : param;\n }\n\n /**\n * The tab the current URL asks for, if it names one of `items`.\n * @param items - The tab set to resolve the URL value against.\n */\n private itemFromUrl(items: MnTabItem[]): MnTabItem | undefined {\n const param = this.urlParam();\n if (!param) return undefined;\n const key = this.pendingKey ?? this.route?.snapshot.queryParamMap.get(param);\n if (!key) return undefined;\n const index = this.urlKeys(items).indexOf(key);\n return index === -1 ? undefined : items[index];\n }\n\n /**\n * Records the active tab in the query string, replacing the current history\n * entry: switching tabs is not a navigation to walk back through, and back\n * should leave the page rather than retrace its tabs.\n * @param item - The tab that just became active.\n */\n private writeUrl(item: MnTabItem): void {\n const param = this.urlParam();\n if (!param || !this.router) return;\n const items = this.dataSource.items;\n const key = this.urlKeys(items)[items.indexOf(item)];\n if (!key) return;\n this.pendingKey = key;\n // No path commands and no `relativeTo`, so only the query string changes.\n // That holds wherever the tab bar sits, including a modal body, which has\n // no route of its own to be relative to.\n void this.router\n .navigate([], {\n queryParams: { [param]: key },\n queryParamsHandling: 'merge',\n replaceUrl: true,\n })\n .catch(() => undefined)\n .then(() => {\n // Only clear our own write; a later click already owns the pending key.\n if (this.pendingKey === key) this.pendingKey = undefined;\n });\n }\n\n /**\n * The URL key of every tab, in item order: the item's `id`, else a slug of\n * its label. Repeats are numbered so each tab still round-trips through the\n * URL; give such tabs an explicit `id` to choose the value yourself.\n * @param items - The tab set to key.\n */\n private urlKeys(items: MnTabItem[]): string[] {\n if (this.urlKeyCache?.items === items) return this.urlKeyCache.keys;\n const used = new Map<string, number>();\n const keys = items.map((item) => {\n const base = item.id ?? tabUrlKey(item.label);\n const taken = used.get(base) ?? 0;\n used.set(base, taken + 1);\n return taken === 0 ? base : `${base}-${taken + 1}`;\n });\n this.urlKeyCache = { items, keys };\n return keys;\n }\n}\n","<div class=\"mb-10\">\n <div\n #scrollContainer\n (scroll)=\"updateEdgeFades()\"\n class=\"flex justify-start scrollbar-hide\"\n [class.overflow-x-auto]=\"scrollable\"\n [class.overflow-y-hidden]=\"scrollable\"\n >\n <div\n #tabList\n role=\"tablist\"\n class=\"tabs relative flex flex-nowrap -mb-[1px] border-b border-base-300\"\n [class.w-full]=\"justified\"\n >\n <!--\n Shared sliding indicator: a single underline that travels to the active\n tab, rather than each tab flipping its own border on/off (which snaps).\n Pinned to left-0/top-auto so offsetLeft maps 1:1 regardless of the\n flex justify-content or the justified full-width layout; position and\n width are measured and set from TS. Sits on the same baseline as the\n hover ::after so hover → select reads as one continuous underline.\n -->\n <div\n #indicator\n aria-hidden=\"true\"\n class=\"pointer-events-none absolute left-0 top-auto bottom-0 h-[2px] w-0 bg-primary opacity-0 transition-[transform,width] duration-300 ease-out motion-reduce:transition-none\"\n ></div>\n @if (isLoadingState) {\n @for (i of skeletonTabs; track i) {\n <div\n [class.flex-1]=\"justified\"\n class=\"tab px-4 py-2 border-b-2 border-transparent flex items-center justify-center\"\n >\n <mn-skeleton [data]=\"{ shape: 'rectangle', width: '4.5rem', height: '1rem' }\"></mn-skeleton>\n </div>\n }\n } @else {\n @for (item of dataSource.items; track item.label) {\n <!-- One Tab stop per bar (the active tab); the arrow keys, Home and End move between\n tabs and activate them, the WAI-ARIA tabs pattern. Every tab used to be its own\n Tab stop with no arrow keys, so crossing an eight-tab bar took eight presses. -->\n <div\n (click)=\"setActive(item)\"\n (keydown)=\"onTabKeydown($event, item)\"\n [attr.aria-selected]=\"currentActive === item\"\n [attr.tabindex]=\"isTabStop(item) ? 0 : -1\"\n [class.hover:after:scale-x-100]=\"currentActive !== item\"\n [class.flex-1]=\"justified\"\n [class.font-bold]=\"currentActive === item\"\n [class.text-base-content]=\"currentActive !== item\"\n [class.text-primary]=\"currentActive === item\"\n class=\"tab relative px-4 py-2 border-b-2 border-transparent cursor-pointer select-none transition-colors whitespace-nowrap text-center flex items-center gap-2 after:content-[''] after:absolute after:inset-x-0 after:-bottom-[2px] after:h-[2px] after:bg-primary/60 after:origin-center after:scale-x-0 after:transition-transform after:duration-300 after:ease-out\"\n role=\"tab\"\n >\n {{ item.label | mnTranslate }}\n @let badge = getBadge(item);\n @if (badge && badge > 0) {\n <span [data]=\"{ size: 'sm', color: 'accent', variant: 'fill' }\" mnBadge>{{ badge }}</span>\n }\n </div>\n }\n }\n </div>\n </div>\n</div>\n","/**\n * Public API of the `mn-angular-lib/tab` entry point: tabs.\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-tab';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAwBA;AACA,MAAM,0BAA0B,GAAG,CAAC;AAEpC;AACA,MAAM,qBAAqB,GAAG,KAAK;AAEnC;AACA,MAAM,oBAAoB,GAAG,KAAK;AAElC;;;;;AAKG;AACH,SAAS,SAAS,CAAC,KAAa,EAAA;AAC9B,IAAA,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK;IAC/C,MAAM,IAAI,GAAG;AACV,SAAA,OAAO,CAAC,oBAAoB,EAAE,OAAO;AACrC,SAAA,OAAO,CAAC,gBAAgB,EAAE,GAAG;AAC7B,SAAA,OAAO,CAAC,UAAU,EAAE,EAAE;AACtB,SAAA,WAAW,EAAE;IAChB,OAAO,IAAI,IAAI,oBAAoB;AACrC;AAEA;;;;;;;AAOG;MAOU,cAAc,CAAA;AACzB;;;AAGG;IACc,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;IAG3C,KAAK,GAAG,MAAM,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAEnE;;;;;AAKG;AACc,IAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;;AAG/B,IAAA,cAAc;AAE/B;;;AAGG;AACK,IAAA,WAAW;;AAGX,IAAA,UAAU;AAElB;;;;;AAKG;AACK,IAAA,UAAU;;IAGV,SAAS,GAAG,KAAK;;AAGa,IAAA,eAAe;;AAGvB,IAAA,OAAO;;AAGL,IAAA,SAAS;;AAGjC,IAAA,cAAc;AAEtB;;;;;;;;AAQG;IACK,OAAO,GAAG,KAAK;;AAGf,IAAA,YAAY;;AAGZ,IAAA,OAAgB,QAAQ,G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,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDL6B,YAAY,+BAAE,OAAO,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,UAAU,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAlD,eAAe,EAAA,IAAA,EAAA,aAAA,EAAA,CAAA,EAAA,CAAA;;2FAGd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,SAAS;+BACE,QAAQ,EAAA,UAAA,EACN,IAAI,EAAA,OAAA,EACP,CAAC,eAAe,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,CAAC,EAAA,QAAA,EAAA,mnGAAA,EAAA;;sBA6C5D,SAAS;uBAAC,iBAAiB;;sBAG3B,SAAS;uBAAC,SAAS;;sBAGnB,SAAS;uBAAC,WAAW;;sBAyBrB;;sBAWA;;sBAMA;;sBAGA;;;AE5JH;;;;;;AAMG;;ACNH;;AAEG;;"}
1
+ {"version":3,"file":"mn-angular-lib-tab.mjs","sources":["../../../projects/mn-angular-lib/tab/src/mn-tab/mn-tab.component.ts","../../../projects/mn-angular-lib/tab/src/mn-tab/mn-tab.component.html","../../../projects/mn-angular-lib/tab/public-api.ts","../../../projects/mn-angular-lib/tab/mn-angular-lib-tab.ts"],"sourcesContent":["import {\n AfterViewChecked,\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n DoCheck,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n isSignal,\n OnDestroy,\n Output,\n signal,\n ViewChild,\n} from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { Subscription } from 'rxjs';\nimport { LucideDynamicIcon } from '@lucide/angular';\nimport * as lucide from 'lucide';\nimport { lucideIcons, MnTranslatePipe } from 'mn-angular-lib/core';\nimport { MnCollectionState } from 'mn-angular-lib/collection';\nimport { MnTabDataSource, MnTabItem } from './mn-tab.types';\nimport { CommonModule } from '@angular/common';\nimport { MnBadge } from 'mn-angular-lib/button';\nimport { MnSkeleton } from 'mn-angular-lib/button';\n\n/** Lucide icons this file renders. */\nconst ICONS = lucideIcons({ ChevronLeft: lucide.ChevronLeft, ChevronRight: lucide.ChevronRight });\n\n/** Share of the visible width one chevron press scrolls, so the last tab in view stays as an anchor. */\nconst CHEVRON_SCROLL_RATIO = 0.75;\n\n/** Fallback number of skeleton tabs when no items are known and no count is given. */\nconst DEFAULT_SKELETON_TAB_COUNT = 3;\n\n/** Query parameter the active tab is mirrored in unless the data source names another. */\nconst DEFAULT_TAB_URL_PARAM = 'tab';\n\n/** Key used for a label that slugs to nothing (e.g. punctuation only). */\nconst FALLBACK_TAB_URL_KEY = 'tab';\n\n/**\n * Slugs a tab label into the value it takes in the URL: the last segment of a\n * translation key, kebab-cased. `matches.hub.tab.entrants` → `entrants`,\n * `members.tabMembers` → `tab-members`.\n * @param label - The tab's label or translation key.\n */\nfunction tabUrlKey(label: string): string {\n const segment = label.split('.').pop() ?? label;\n const slug = segment\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2')\n .replace(/[^a-zA-Z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '')\n .toLowerCase();\n return slug || FALLBACK_TAB_URL_KEY;\n}\n\n/**\n * Tab component that renders a horizontal tab bar.\n * Supports translation keys for labels via MnTranslatePipe.\n *\n * The active tab is mirrored in the URL query string by default, so a reload,\n * a back button or a shared link lands on the same tab; see\n * {@link MnTabDataSource.urlParam} to rename that parameter or switch it off.\n */\n@Component({\n selector: 'mn-tab',\n standalone: true,\n imports: [MnTranslatePipe, CommonModule, MnBadge, MnSkeleton, LucideDynamicIcon],\n templateUrl: './mn-tab.component.html',\n})\nexport class MnTabComponent implements DoCheck, AfterViewInit, AfterViewChecked, OnDestroy {\n /**\n * Router the active tab is written to. Optional: a tab bar used outside a\n * routed application still works, it just has no URL to mirror into.\n */\n private readonly router = inject(Router, { optional: true });\n\n /** Route the tab value is read back from; absent for the same reason as {@link router}. */\n private readonly route = inject(ActivatedRoute, { optional: true });\n\n /**\n * Marks the view whenever {@link currentActive} moves. The selection changes from three\n * places Angular does not notice under OnPush: the query-parameter subscription, the\n * {@link ngDoCheck} re-resolve, and a stale item being dropped — only a click arrives\n * through a listener that dirties the view by itself.\n */\n private readonly cdr = inject(ChangeDetectorRef);\n\n /** Watches the URL so a deep link, a back button or an in-app link moves the tab bar. */\n private readonly queryParamsSub?: Subscription;\n\n /**\n * URL keys of the current items, memoised on the items array so a slug is\n * computed once per tab set rather than on every change-detection pass.\n */\n private urlKeyCache?: { items: MnTabItem[]; keys: string[] };\n\n /** URL key of {@link currentActive}, so a rebuilt tab set can be recognised as the same tab. */\n private currentKey?: string;\n\n /**\n * Key of a selection whose URL write has not landed yet. Navigation is\n * asynchronous, so a consumer that rebuilds its tabs in response to the click\n * can be resolved against a URL that still names the previous tab; until the\n * write completes, this is the truth about what the user picked.\n */\n private pendingKey?: string;\n\n /** Set on destroy so a deferred restore can't announce a tab nobody is showing. */\n private destroyed = false;\n\n /** The horizontally-scrolling wrapper the edge fade is painted onto. */\n @ViewChild('scrollContainer') private scrollContainer?: ElementRef<HTMLElement>;\n\n /** The tab row; queried for the active tab so the indicator can measure it. */\n @ViewChild('tabList') private tabList?: ElementRef<HTMLElement>;\n\n /** The shared underline that slides to the active tab. */\n @ViewChild('indicator') private indicator?: ElementRef<HTMLElement>;\n\n /** Pending indicator remeasure, cancelled on destroy so a post-destroy frame can't read a detached ref. */\n private indicatorFrame?: number;\n\n /**\n * True while a click-initiated slide is animating. The active tab's\n * `font-bold` widens the row, which fires {@link resizeObserver}; without\n * this guard the observer's snap ({@link updateIndicator} with `animate:\n * false`) would land the indicator at its target the same frame the slide\n * starts, so the transition never paints. Set synchronously in\n * {@link setActive} — before the frame runs — so the guard doesn't depend on\n * rAF-vs-ResizeObserver callback ordering.\n */\n private sliding = false;\n\n /** Clears {@link sliding} after the slide finishes; re-armed per click, cancelled on destroy. */\n private slidingTimer?: number;\n\n /** Slide duration in ms; matches the indicator's `duration-300` transition. */\n private static readonly SLIDE_MS = 300;\n\n /** How far the fade reaches in from each overflowing edge. */\n private static readonly FADE = '2rem';\n /** Data source containing tab items and default active index. */\n @Input() dataSource!: MnTabDataSource;\n\n /**\n * Whether to enable horizontal scrolling when items overflow.\n * When true, tabs scroll horizontally instead of overflowing their container.\n *\n * Defaults to `true`: the tab bar never wraps (`flex-nowrap`), so without\n * scrolling an overflowing bar would clip its last tabs or push the page width\n * on narrow screens. When the tabs already fit, `overflow-x-auto` is a no-op,\n * so this default only ever changes behaviour for the overflow case it fixes.\n */\n @Input() scrollable = true;\n\n /**\n * Whether tabs should stretch to fill the available width.\n * Defaults to false, so tabs only take as much space as their content.\n */\n @Input() justified = false;\n\n /** Icons rendered by the template. */\n protected readonly icons = ICONS;\n\n /**\n * Whether tabs are scrolled out of view past the start edge, which shows the start chevron.\n * A signal, so a write from the scroll handler or the resize observer marks the view by itself.\n */\n readonly canScrollStart = signal(false);\n\n /** Whether tabs are hidden past the end edge, which shows the end chevron. */\n readonly canScrollEnd = signal(false);\n\n /** Emits the newly activated tab item whenever the active tab changes. */\n @Output() activeChange = new EventEmitter<MnTabItem>();\n\n /** The currently active tab item. */\n currentActive?: MnTabItem;\n\n /** Watches the wrapper and the tab row so the fade re-evaluates on width or content changes. */\n private resizeObserver?: ResizeObserver;\n\n /**\n * Whether the tab bar is loading and should render skeleton tabs, from\n * {@link MnTabDataSource.state}.\n */\n get isLoadingState(): boolean {\n return this.dataSource.state === MnCollectionState.LOADING;\n }\n\n /**\n * Index array sizing the loading skeleton: `skeletonCount` when provided,\n * otherwise the number of known items, falling back to a default when none.\n */\n get skeletonTabs(): number[] {\n const count =\n this.dataSource.skeletonCount ?? (this.dataSource.items.length || DEFAULT_SKELETON_TAB_COUNT);\n return Array.from({ length: count }, (_, index) => index);\n }\n\n constructor() {\n // The URL is a second source of truth for the selection: a deep link, an\n // in-app link into another tab of the page already on screen, or the back\n // button all change it without a click landing on this component.\n this.queryParamsSub = this.route?.queryParamMap.subscribe((params) => {\n const param = this.urlParam();\n if (param) this.activateUrlKey(params.get(param));\n });\n }\n\n /**\n * Re-resolves the active tab on every change-detection pass.\n *\n * The data source is often populated or rebuilt asynchronously (tabs that\n * depend on fetched data or permissions). Resolving the active tab only once\n * at init would leave {@link currentActive} pointing at a stale item — the\n * tab bar would then highlight nothing and swallow the first click — so the\n * selection is kept in sync with whatever the data source currently holds.\n */\n ngDoCheck(): void {\n this.syncActiveTab();\n }\n\n /**\n * Starts watching the scroll wrapper so the edge fade stays honest. A scroll\n * moves the fade to whichever side now hides tabs; a resize (viewport change)\n * or a change to the tab row's width (tabs added, relabelled, skeleton →\n * loaded) re-checks whether either edge overflows at all.\n */\n ngAfterViewInit(): void {\n const el = this.scrollContainer?.nativeElement;\n if (!el) return;\n this.resizeObserver = new ResizeObserver(() => {\n this.updateEdgeFades();\n // Tabs may have reflowed (viewport change, justified widths); snap the\n // indicator to the new geometry — animating a resize tick reads as jank.\n // But skip the snap mid-slide: a click's own `font-bold` resizes the row\n // and fires this observer, and snapping there kills the slide it triggered.\n if (!this.sliding) this.updateIndicator(false);\n });\n this.resizeObserver.observe(el);\n if (el.firstElementChild) this.resizeObserver.observe(el.firstElementChild);\n this.updateEdgeFades();\n // Place the indicator on the default tab without a slide-in from zero.\n this.updateIndicator(false);\n }\n\n /** Wrapper geometry (`scrollWidth:clientWidth`) at the last fade evaluation. */\n private lastFadeGeometry = '';\n\n /**\n * Re-evaluates the edge fade when the wrapper's scrollable extent changes without its box\n * changing. {@link resizeObserver} only sees border-box changes, and the tab row is a\n * block-level flex container that keeps its parent's width while its tabs overflow inside it,\n * so tabs that arrive after init (permission-gated tabs, badge counts, skeleton → loaded) grow\n * `scrollWidth` without firing it; until a resize or scroll the fade stayed off. Two property\n * reads per pass; the repaint only runs when they moved.\n */\n ngAfterViewChecked(): void {\n const el = this.scrollContainer?.nativeElement;\n if (!el) return;\n const geometry = `${el.scrollWidth}:${el.clientWidth}`;\n if (geometry === this.lastFadeGeometry) return;\n this.lastFadeGeometry = geometry;\n this.updateEdgeFades();\n }\n\n ngOnDestroy(): void {\n this.destroyed = true;\n this.queryParamsSub?.unsubscribe();\n this.resizeObserver?.disconnect();\n if (this.indicatorFrame !== undefined) cancelAnimationFrame(this.indicatorFrame);\n if (this.slidingTimer !== undefined) clearTimeout(this.slidingTimer);\n }\n\n /**\n * Paints a fade over whichever edge has tabs scrolled out of view — a soft\n * dissolve that reads as \"more this way\", the affordance a hidden scrollbar\n * otherwise costs us. Uses a mask (content → transparent) rather than a\n * background-coloured overlay, so it needs no knowledge of the theme.\n *\n * The fade alone only reads as \"more\" when it dissolves a tab cut off\n * mid-label. When a tab boundary lands exactly on the edge it merely softens\n * a complete label and the hidden tabs go unnoticed, so the same overflow\n * also shows a chevron in the faded strip ({@link canScrollStart},\n * {@link canScrollEnd}).\n */\n updateEdgeFades(): void {\n const el = this.scrollContainer?.nativeElement;\n if (!el) return;\n const fadeStart = el.scrollLeft > 1;\n const fadeEnd = el.scrollLeft + el.clientWidth < el.scrollWidth - 1;\n this.canScrollStart.set(this.scrollable && fadeStart);\n this.canScrollEnd.set(this.scrollable && fadeEnd);\n const f = MnTabComponent.FADE;\n let mask = '';\n if (this.scrollable && fadeStart && fadeEnd) {\n mask = `linear-gradient(to right, transparent 0, #000 ${f}, #000 calc(100% - ${f}), transparent 100%)`;\n } else if (this.scrollable && fadeStart) {\n mask = `linear-gradient(to right, transparent 0, #000 ${f}, #000 100%)`;\n } else if (this.scrollable && fadeEnd) {\n mask = `linear-gradient(to right, #000 0, #000 calc(100% - ${f}), transparent 100%)`;\n }\n el.style.maskImage = mask;\n el.style.setProperty('-webkit-mask-image', mask);\n }\n\n /**\n * Scrolls the bar by most of its visible width towards one edge, from a chevron press. The\n * scroll event that follows moves the fade and hides the chevron whose edge has been reached.\n * Jumps instead of gliding for a user who asked for reduced motion.\n * @param direction - -1 towards the start, 1 towards the end.\n */\n scrollTabs(direction: -1 | 1): void {\n const el = this.scrollContainer?.nativeElement;\n if (!el) return;\n const reduceMotion = window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n el.scrollBy({\n left: direction * el.clientWidth * CHEVRON_SCROLL_RATIO,\n behavior: reduceMotion ? 'auto' : 'smooth',\n });\n }\n\n /**\n * Sets the given tab item as active, invoking deactivate/activate callbacks,\n * and records the selection in the URL so it survives a reload or a share.\n * @param item - The tab item to activate.\n */\n setActive(item: MnTabItem): void {\n if (this.currentActive === item) {\n return;\n }\n this.activate(item);\n this.writeUrl(item);\n }\n\n /**\n * Whether a tab is the bar's single Tab stop: the active tab, or the first tab while none is\n * active yet. Every other tab is reached with the arrow keys, so Tab leaves the bar in one press.\n * @param item - The tab to check.\n * @returns True for the one tab that keeps `tabindex=\"0\"`.\n */\n isTabStop(item: MnTabItem): boolean {\n return this.currentActive ? this.currentActive === item : this.dataSource?.items[0] === item;\n }\n\n /**\n * Keyboard handling on a tab. Left and Right move to the previous or next tab and wrap at the\n * ends, Home and End jump to the first and last; the tab moved to is activated at once\n * (automatic activation) and receives focus. Enter and Space activate the focused tab, handled\n * on keydown so Space does not scroll the page first. Other keys are left alone.\n * @param event - The keydown on a tab.\n * @param item - The tab the key was pressed on.\n */\n onTabKeydown(event: KeyboardEvent, item: MnTabItem): void {\n const items = this.dataSource?.items ?? [];\n const index = items.indexOf(item);\n if (index < 0) return;\n\n let target: number;\n switch (event.key) {\n case 'ArrowRight':\n target = (index + 1) % items.length;\n break;\n case 'ArrowLeft':\n target = (index - 1 + items.length) % items.length;\n break;\n case 'Home':\n target = 0;\n break;\n case 'End':\n target = items.length - 1;\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n this.setActive(item);\n return;\n default:\n return;\n }\n\n event.preventDefault();\n this.setActive(items[target]);\n this.focusTab(target);\n }\n\n /**\n * Moves focus to the tab at `index` and scrolls it into view inside a scrollable bar. Focusing\n * works before change detection has moved `tabindex=\"0\"` onto it, because a script may focus an\n * element with `tabindex=\"-1\"`.\n * @param index - Position of the tab in the data source's items.\n */\n private focusTab(index: number): void {\n const tabs = this.tabList?.nativeElement.querySelectorAll<HTMLElement>('[role=\"tab\"]');\n const tab = tabs?.[index];\n if (!tab) return;\n tab.focus();\n tab.scrollIntoView?.({ block: 'nearest', inline: 'nearest' });\n }\n\n /**\n * Moves the selection to `item` and tells the consumer about it: the\n * deactivate/activate/emit sequence a click produces, shared by the click\n * path and the URL-driven ones (deep link, back button), which owe the\n * consumer the same notifications.\n * @param item - The tab item to activate.\n */\n private activate(item: MnTabItem): void {\n this.currentActive?.onDeactivate?.();\n item.onClick?.();\n this.select(item);\n this.activeChange.emit(item);\n // Slide the underline to the new tab. Measure on the next frame, after\n // change detection has applied the active tab's `font-bold` (which widens\n // it) so the indicator lands on the final, bolded geometry. Guard the slide\n // against the resize snap the same `font-bold` triggers (see {@link sliding}).\n this.beginSlide();\n this.scheduleIndicator(true);\n }\n\n /**\n * Marks a click-driven slide as in progress and schedules the guard to lift\n * once the transition has finished. A timeout (not `transitionend`) so the\n * flag still clears under `motion-reduce`, where no transition event fires.\n */\n private beginSlide(): void {\n this.sliding = true;\n if (this.slidingTimer !== undefined) clearTimeout(this.slidingTimer);\n this.slidingTimer = setTimeout(() => {\n this.slidingTimer = undefined;\n this.sliding = false;\n }, MnTabComponent.SLIDE_MS) as unknown as number;\n }\n\n /**\n * Moves the shared underline to the active tab. When `animate` is false the\n * move is snapped (no slide) by disabling the transition for one reflow —\n * used on init, async selection and resize, where a slide would read as jank.\n * @param animate - Whether the move should slide (true) or snap (false).\n */\n private updateIndicator(animate: boolean): void {\n const bar = this.indicator?.nativeElement;\n const list = this.tabList?.nativeElement;\n if (!bar || !list) return;\n const active = list.querySelector<HTMLElement>('[role=\"tab\"][aria-selected=\"true\"]');\n if (!active) {\n bar.style.opacity = '0';\n return;\n }\n if (!animate) bar.style.transition = 'none';\n bar.style.opacity = '1';\n bar.style.width = `${active.offsetWidth}px`;\n bar.style.transform = `translateX(${active.offsetLeft}px)`;\n if (!animate) {\n // Force a reflow so the snapped values apply before the transition is\n // restored, then hand animation back to the CSS class.\n void bar.offsetWidth;\n bar.style.transition = '';\n }\n }\n\n /**\n * Remeasures the indicator on the next animation frame, so the read happens\n * after layout reflects the latest active-tab classes. Coalesces bursts and\n * is cancellable on destroy.\n * @param animate - Whether the resulting move should slide.\n */\n private scheduleIndicator(animate: boolean): void {\n if (this.indicatorFrame !== undefined) cancelAnimationFrame(this.indicatorFrame);\n this.indicatorFrame = requestAnimationFrame(() => {\n this.indicatorFrame = undefined;\n this.updateIndicator(animate);\n });\n }\n\n /**\n * Returns the resolved badge value for a tab item, supporting both plain numbers and Signal<number>.\n * @param item - The tab item whose badge to resolve.\n */\n getBadge(item: MnTabItem): number | undefined {\n if (isSignal(item.badge)) return item.badge();\n return item.badge;\n }\n\n /**\n * Ensures {@link currentActive} references a tab that still exists in the data\n * source, preferring the tab named in the URL and falling back to the\n * configured default tab when the current selection is missing or stale\n * (e.g. after the items array is replaced).\n */\n private syncActiveTab(): void {\n const items = this.dataSource?.items;\n if (!items || items.length === 0) {\n if (this.currentActive !== undefined) {\n this.currentActive = undefined;\n this.currentKey = undefined;\n this.cdr.markForCheck();\n this.scheduleIndicator(false);\n }\n return;\n }\n if (this.currentActive && items.includes(this.currentActive)) {\n return;\n }\n const defaultIndex = this.dataSource.defaultActive;\n const index = defaultIndex >= 0 && defaultIndex < items.length ? defaultIndex : 0;\n const fallback = items[index];\n const restored = this.itemFromUrl(items);\n const previousKey = this.currentKey;\n this.select(restored ?? fallback);\n // Selection resolved from data (not a user click): snap, don't slide.\n this.scheduleIndicator(false);\n if (restored && restored !== fallback && this.currentKey !== previousKey) {\n // The URL asks for a tab the consumer has not rendered, so this selection\n // has to be announced like a click's would be — but only the first time,\n // or a consumer that rebuilds its items array would re-run the tab's\n // callbacks on every rebuild. Deferred out of the change-detection pass\n // that resolved it: the consumer will flip its own state in response, and\n // doing that mid-pass writes to bindings that have already been checked.\n queueMicrotask(() => this.announceRestored(restored));\n }\n }\n\n /**\n * Records `item` as the selection, remembering its URL key so the same tab is\n * recognised after the consumer rebuilds the items array.\n * @param item - The newly selected tab.\n */\n private select(item: MnTabItem): void {\n const items = this.dataSource.items;\n this.currentActive = item;\n this.currentKey = this.urlKeys(items)[items.indexOf(item)];\n this.cdr.markForCheck();\n }\n\n /**\n * Runs the restored tab's callbacks a change-detection pass later, unless the\n * selection moved on in the meantime (a click, or another tab set arriving).\n * @param item - The tab restored from the URL.\n */\n private announceRestored(item: MnTabItem): void {\n if (this.destroyed || this.currentActive !== item) return;\n item.onClick?.();\n this.activeChange.emit(item);\n }\n\n /**\n * Activates the tab a URL value names, when it is not the tab already on\n * screen. Values naming no known tab are ignored: another tab bar on the page\n * may own that parameter, and a stale link should leave the default standing.\n * @param key - The value read from the query parameter, if any.\n */\n private activateUrlKey(key: string | null): void {\n const items = this.dataSource?.items;\n if (!key || !items?.length) return;\n const item = items[this.urlKeys(items).indexOf(key)];\n if (!item || item === this.currentActive) return;\n this.activate(item);\n }\n\n /**\n * The query parameter this tab bar mirrors into, or undefined when there is\n * nothing to mirror into (no router) or the consumer switched it off.\n */\n private urlParam(): string | undefined {\n if (!this.router || !this.route) return undefined;\n const param = this.dataSource?.urlParam ?? DEFAULT_TAB_URL_PARAM;\n return param === false || param === '' ? undefined : param;\n }\n\n /**\n * The tab the current URL asks for, if it names one of `items`.\n * @param items - The tab set to resolve the URL value against.\n */\n private itemFromUrl(items: MnTabItem[]): MnTabItem | undefined {\n const param = this.urlParam();\n if (!param) return undefined;\n const key = this.pendingKey ?? this.route?.snapshot.queryParamMap.get(param);\n if (!key) return undefined;\n const index = this.urlKeys(items).indexOf(key);\n return index === -1 ? undefined : items[index];\n }\n\n /**\n * Records the active tab in the query string, replacing the current history\n * entry: switching tabs is not a navigation to walk back through, and back\n * should leave the page rather than retrace its tabs.\n * @param item - The tab that just became active.\n */\n private writeUrl(item: MnTabItem): void {\n const param = this.urlParam();\n if (!param || !this.router) return;\n const items = this.dataSource.items;\n const key = this.urlKeys(items)[items.indexOf(item)];\n if (!key) return;\n this.pendingKey = key;\n // No path commands and no `relativeTo`, so only the query string changes.\n // That holds wherever the tab bar sits, including a modal body, which has\n // no route of its own to be relative to.\n void this.router\n .navigate([], {\n queryParams: { [param]: key },\n queryParamsHandling: 'merge',\n replaceUrl: true,\n })\n .catch(() => undefined)\n .then(() => {\n // Only clear our own write; a later click already owns the pending key.\n if (this.pendingKey === key) this.pendingKey = undefined;\n });\n }\n\n /**\n * The URL key of every tab, in item order: the item's `id`, else a slug of\n * its label. Repeats are numbered so each tab still round-trips through the\n * URL; give such tabs an explicit `id` to choose the value yourself.\n * @param items - The tab set to key.\n */\n private urlKeys(items: MnTabItem[]): string[] {\n if (this.urlKeyCache?.items === items) return this.urlKeyCache.keys;\n const used = new Map<string, number>();\n const keys = items.map((item) => {\n const base = item.id ?? tabUrlKey(item.label);\n const taken = used.get(base) ?? 0;\n used.set(base, taken + 1);\n return taken === 0 ? base : `${base}-${taken + 1}`;\n });\n this.urlKeyCache = { items, keys };\n return keys;\n }\n}\n","<div class=\"relative mb-10\">\n <!--\n Scroll chevrons, one per edge that hides tabs. They sit in the 2rem strip the edge fade\n dissolves, so they cover nothing still legible. aria-hidden and out of the Tab order: the\n arrow keys already move between tabs (and scroll them into view), and a screen reader reads\n every tab whether scrolled into view or not. mousedown is cancelled so a press does not\n take focus away from the active tab.\n -->\n @if (canScrollStart()) {\n <button\n (click)=\"scrollTabs(-1)\"\n (mousedown)=\"$event.preventDefault()\"\n aria-hidden=\"true\"\n class=\"absolute inset-y-0 left-0 z-10 flex w-8 cursor-pointer items-center justify-start text-base-content hover:text-primary\"\n data-mn-tab-scroll=\"start\"\n tabindex=\"-1\"\n type=\"button\"\n >\n <svg [size]=\"18\" [lucideIcon]=\"icons.ChevronLeft\"></svg>\n </button>\n }\n @if (canScrollEnd()) {\n <button\n (click)=\"scrollTabs(1)\"\n (mousedown)=\"$event.preventDefault()\"\n aria-hidden=\"true\"\n class=\"absolute inset-y-0 right-0 z-10 flex w-8 cursor-pointer items-center justify-end text-base-content hover:text-primary\"\n data-mn-tab-scroll=\"end\"\n tabindex=\"-1\"\n type=\"button\"\n >\n <svg [size]=\"18\" [lucideIcon]=\"icons.ChevronRight\"></svg>\n </button>\n }\n <div\n #scrollContainer\n (scroll)=\"updateEdgeFades()\"\n class=\"flex justify-start scrollbar-hide\"\n [class.overflow-x-auto]=\"scrollable\"\n [class.overflow-y-hidden]=\"scrollable\"\n >\n <div\n #tabList\n role=\"tablist\"\n class=\"tabs relative flex flex-nowrap -mb-[1px] border-b border-base-300\"\n [class.w-full]=\"justified\"\n >\n <!--\n Shared sliding indicator: a single underline that travels to the active\n tab, rather than each tab flipping its own border on/off (which snaps).\n Pinned to left-0/top-auto so offsetLeft maps 1:1 regardless of the\n flex justify-content or the justified full-width layout; position and\n width are measured and set from TS. Sits on the same baseline as the\n hover ::after so hover → select reads as one continuous underline.\n -->\n <div\n #indicator\n aria-hidden=\"true\"\n class=\"pointer-events-none absolute left-0 top-auto bottom-0 h-[2px] w-0 bg-primary opacity-0 transition-[transform,width] duration-300 ease-out motion-reduce:transition-none\"\n ></div>\n @if (isLoadingState) {\n @for (i of skeletonTabs; track i) {\n <div\n [class.flex-1]=\"justified\"\n class=\"tab px-4 py-2 border-b-2 border-transparent flex items-center justify-center\"\n >\n <mn-skeleton [data]=\"{ shape: 'rectangle', width: '4.5rem', height: '1rem' }\"></mn-skeleton>\n </div>\n }\n } @else {\n @for (item of dataSource.items; track item.label) {\n <!-- One Tab stop per bar (the active tab); the arrow keys, Home and End move between\n tabs and activate them, the WAI-ARIA tabs pattern. Every tab used to be its own\n Tab stop with no arrow keys, so crossing an eight-tab bar took eight presses. -->\n <div\n (click)=\"setActive(item)\"\n (keydown)=\"onTabKeydown($event, item)\"\n [attr.aria-selected]=\"currentActive === item\"\n [attr.tabindex]=\"isTabStop(item) ? 0 : -1\"\n [class.hover:after:scale-x-100]=\"currentActive !== item\"\n [class.flex-1]=\"justified\"\n [class.font-bold]=\"currentActive === item\"\n [class.text-base-content]=\"currentActive !== item\"\n [class.text-primary]=\"currentActive === item\"\n class=\"tab relative px-4 py-2 border-b-2 border-transparent cursor-pointer select-none transition-colors whitespace-nowrap text-center flex items-center gap-2 after:content-[''] after:absolute after:inset-x-0 after:-bottom-[2px] after:h-[2px] after:bg-primary/60 after:origin-center after:scale-x-0 after:transition-transform after:duration-300 after:ease-out\"\n role=\"tab\"\n >\n {{ item.label | mnTranslate }}\n @let badge = getBadge(item);\n @if (badge && badge > 0) {\n <span [data]=\"{ size: 'sm', color: 'accent', variant: 'fill' }\" mnBadge>{{ badge }}</span>\n }\n </div>\n }\n }\n </div>\n </div>\n</div>\n","/**\n * Public API of the `mn-angular-lib/tab` entry point: tabs.\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-tab';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;AA2BA;AACA,MAAM,KAAK,GAAG,WAAW,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC;AAEjG;AACA,MAAM,oBAAoB,GAAG,IAAI;AAEjC;AACA,MAAM,0BAA0B,GAAG,CAAC;AAEpC;AACA,MAAM,qBAAqB,GAAG,KAAK;AAEnC;AACA,MAAM,oBAAoB,GAAG,KAAK;AAElC;;;;;AAKG;AACH,SAAS,SAAS,CAAC,KAAa,EAAA;AAC9B,IAAA,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK;IAC/C,MAAM,IAAI,GAAG;AACV,SAAA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2
2
  "name": "mn-angular-lib",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.1.7",
6
6
  "@angular/core": "^22.1.7",
@@ -2,10 +2,9 @@ import * as tailwind_variants from 'tailwind-variants';
2
2
  import { VariantProps } from 'tailwind-variants';
3
3
  import * as tailwind_merge from 'tailwind-merge';
4
4
  import * as i0 from '@angular/core';
5
- import { EventEmitter, OnChanges, OnInit, InjectionToken } from '@angular/core';
5
+ import { EventEmitter, OnChanges, OnInit } from '@angular/core';
6
6
  import * as _lucide_angular from '@lucide/angular';
7
7
  import { SafeHtml } from '@angular/platform-browser';
8
- export { MnImageType } from 'mn-angular-lib/core';
9
8
 
10
9
  /**
11
10
  * Styling for {@link MnCard}, as tailwind-variants slots: `root` is the card element
@@ -1036,117 +1035,5 @@ declare class MnIconAttributes {
1036
1035
  static ɵdir: i0.ɵɵDirectiveDeclaration<MnIconAttributes, "mn-icon[mnIconPistol]", never, {}, {}, never, never, true, never>;
1037
1036
  }
1038
1037
 
1039
- declare const mnInformationCardVariants: tailwind_variants.TVReturnType<{
1040
- bottomBorder: {
1041
- true: string;
1042
- };
1043
- shadow: {
1044
- true: string;
1045
- };
1046
- textPosition: {
1047
- left: string;
1048
- center: string;
1049
- right: string;
1050
- };
1051
- borderRadius: {
1052
- none: string;
1053
- xs: string;
1054
- sm: string;
1055
- md: string;
1056
- lg: string;
1057
- xl: string;
1058
- two_xl: string;
1059
- three_xl: string;
1060
- four_xl: string;
1061
- };
1062
- }, undefined, "", {
1063
- bottomBorder: {
1064
- true: string;
1065
- };
1066
- shadow: {
1067
- true: string;
1068
- };
1069
- textPosition: {
1070
- left: string;
1071
- center: string;
1072
- right: string;
1073
- };
1074
- borderRadius: {
1075
- none: string;
1076
- xs: string;
1077
- sm: string;
1078
- md: string;
1079
- lg: string;
1080
- xl: string;
1081
- two_xl: string;
1082
- three_xl: string;
1083
- four_xl: string;
1084
- };
1085
- }, undefined, tailwind_variants.TVReturnType<{
1086
- bottomBorder: {
1087
- true: string;
1088
- };
1089
- shadow: {
1090
- true: string;
1091
- };
1092
- textPosition: {
1093
- left: string;
1094
- center: string;
1095
- right: string;
1096
- };
1097
- borderRadius: {
1098
- none: string;
1099
- xs: string;
1100
- sm: string;
1101
- md: string;
1102
- lg: string;
1103
- xl: string;
1104
- two_xl: string;
1105
- three_xl: string;
1106
- four_xl: string;
1107
- };
1108
- }, undefined, "", unknown, unknown, undefined>>;
1109
- type MnInformationCardVariants = VariantProps<typeof mnInformationCardVariants>;
1110
-
1111
- type MnInformationCardBaseData = {
1112
- id: number;
1113
- bottomBorder?: MnInformationCardVariants['bottomBorder'];
1114
- shadow?: MnInformationCardVariants['shadow'];
1115
- textPosition?: MnInformationCardVariants['textPosition'];
1116
- borderRadius: MnInformationCardVariants['borderRadius'];
1117
- title: string;
1118
- description: string;
1119
- };
1120
- type MnInformationCardData<TExtra = unknown> = MnInformationCardBaseData & TExtra;
1121
-
1122
- declare class MnInformationCard<TExtra = unknown> {
1123
- data: MnInformationCardData<TExtra>;
1124
- get hostClasses(): string;
1125
- static ɵfac: i0.ɵɵFactoryDeclaration<MnInformationCard<any>, never>;
1126
- static ɵcmp: i0.ɵɵComponentDeclaration<MnInformationCard<any>, "mn-lib-information-card", never, { "data": { "alias": "data"; "required": true; }; }, {}, never, ["[header]", "*", "[footer]"], true, never>;
1127
- }
1128
-
1129
- type MnDualHorizontalImageTypes = {
1130
- id: string;
1131
- url: string;
1132
- alt?: string;
1133
- };
1134
-
1135
- type MnDualHorizontalImageConfig = {
1136
- images?: MnDualHorizontalImageTypes[];
1137
- noImagesFound?: string;
1138
- };
1139
- declare const MN_LIB_DUAL_HORIZONTAL_IMAGE: InjectionToken<MnDualHorizontalImageConfig>;
1140
- declare class MnDualHorizontalImage {
1141
- protected readonly componentConfig: MnDualHorizontalImageConfig;
1142
- /** Marks the view when a locale change rewrites the injected config (see the constructor). */
1143
- private readonly cdr;
1144
- private readonly lang;
1145
- private readonly destroyRef;
1146
- constructor();
1147
- static ɵfac: i0.ɵɵFactoryDeclaration<MnDualHorizontalImage, never>;
1148
- static ɵcmp: i0.ɵɵComponentDeclaration<MnDualHorizontalImage, "mn-lib-dual-horizontal-image", never, {}, {}, never, never, true, never>;
1149
- }
1150
-
1151
- export { MN_ICON_MAP, MN_LIB_DUAL_HORIZONTAL_IMAGE, MnBreadcrumbs, MnCard, MnDualHorizontalImage, MnIcon, MnIconAttributes, MnIconChip, MnInformationCard, MnProportionBar, MnStatTile, mnBreadcrumbsVariants, mnCardVariants, mnIconChipVariants, mnIconVariants, mnInformationCardVariants };
1152
- export type { MnBreadcrumbItem, MnBreadcrumbsData, MnBreadcrumbsVariants, MnCardTypes, MnCardVariants, MnDualHorizontalImageConfig, MnDualHorizontalImageTypes, MnIconChipTypes, MnIconChipVariants, MnIconTypes, MnIconVariants, MnInformationCardBaseData, MnInformationCardData, MnInformationCardVariants, MnProportionBarTypes, MnProportionSegment, MnRenderedProportionSegment, MnStatTileTypes };
1038
+ export { MN_ICON_MAP, MnBreadcrumbs, MnCard, MnIcon, MnIconAttributes, MnIconChip, MnProportionBar, MnStatTile, mnBreadcrumbsVariants, mnCardVariants, mnIconChipVariants, mnIconVariants };
1039
+ export type { MnBreadcrumbItem, MnBreadcrumbsData, MnBreadcrumbsVariants, MnCardTypes, MnCardVariants, MnIconChipTypes, MnIconChipVariants, MnIconTypes, MnIconVariants, MnProportionBarTypes, MnProportionSegment, MnRenderedProportionSegment, MnStatTileTypes };
@@ -1,5 +1,6 @@
1
- import * as i0 from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
2
  import { Signal, DoCheck, AfterViewInit, AfterViewChecked, OnDestroy, EventEmitter } from '@angular/core';
3
+ import * as _lucide_angular from '@lucide/angular';
3
4
  import { MnCollectionState } from 'mn-angular-lib/collection';
4
5
 
5
6
  /**
@@ -147,6 +148,15 @@ declare class MnTabComponent implements DoCheck, AfterViewInit, AfterViewChecked
147
148
  * Defaults to false, so tabs only take as much space as their content.
148
149
  */
149
150
  justified: boolean;
151
+ /** Icons rendered by the template. */
152
+ protected readonly icons: Record<"ChevronLeft" | "ChevronRight", _lucide_angular.LucideIconData>;
153
+ /**
154
+ * Whether tabs are scrolled out of view past the start edge, which shows the start chevron.
155
+ * A signal, so a write from the scroll handler or the resize observer marks the view by itself.
156
+ */
157
+ readonly canScrollStart: _angular_core.WritableSignal<boolean>;
158
+ /** Whether tabs are hidden past the end edge, which shows the end chevron. */
159
+ readonly canScrollEnd: _angular_core.WritableSignal<boolean>;
150
160
  /** Emits the newly activated tab item whenever the active tab changes. */
151
161
  activeChange: EventEmitter<MnTabItem>;
152
162
  /** The currently active tab item. */
@@ -198,8 +208,21 @@ declare class MnTabComponent implements DoCheck, AfterViewInit, AfterViewChecked
198
208
  * dissolve that reads as "more this way", the affordance a hidden scrollbar
199
209
  * otherwise costs us. Uses a mask (content → transparent) rather than a
200
210
  * background-coloured overlay, so it needs no knowledge of the theme.
211
+ *
212
+ * The fade alone only reads as "more" when it dissolves a tab cut off
213
+ * mid-label. When a tab boundary lands exactly on the edge it merely softens
214
+ * a complete label and the hidden tabs go unnoticed, so the same overflow
215
+ * also shows a chevron in the faded strip ({@link canScrollStart},
216
+ * {@link canScrollEnd}).
201
217
  */
202
218
  updateEdgeFades(): void;
219
+ /**
220
+ * Scrolls the bar by most of its visible width towards one edge, from a chevron press. The
221
+ * scroll event that follows moves the fade and hides the chevron whose edge has been reached.
222
+ * Jumps instead of gliding for a user who asked for reduced motion.
223
+ * @param direction - -1 towards the start, 1 towards the end.
224
+ */
225
+ scrollTabs(direction: -1 | 1): void;
203
226
  /**
204
227
  * Sets the given tab item as active, invoking deactivate/activate callbacks,
205
228
  * and records the selection in the URL so it survives a reload or a share.
@@ -312,8 +335,8 @@ declare class MnTabComponent implements DoCheck, AfterViewInit, AfterViewChecked
312
335
  * @param items - The tab set to key.
313
336
  */
314
337
  private urlKeys;
315
- static ɵfac: i0.ɵɵFactoryDeclaration<MnTabComponent, never>;
316
- static ɵcmp: i0.ɵɵComponentDeclaration<MnTabComponent, "mn-tab", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "justified": { "alias": "justified"; "required": false; }; }, { "activeChange": "activeChange"; }, never, never, true, never>;
338
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MnTabComponent, never>;
339
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MnTabComponent, "mn-tab", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "justified": { "alias": "justified"; "required": false; }; }, { "activeChange": "activeChange"; }, never, never, true, never>;
317
340
  }
318
341
 
319
342
  export { MnTabComponent };