@forgeroute/ui 0.5.30 → 0.5.32

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.
Files changed (38) hide show
  1. package/fesm2022/forgeroute-ui-address-input.mjs +10 -2
  2. package/fesm2022/forgeroute-ui-address-input.mjs.map +1 -1
  3. package/fesm2022/forgeroute-ui-core.mjs +4 -4
  4. package/fesm2022/forgeroute-ui-core.mjs.map +1 -1
  5. package/fesm2022/forgeroute-ui-data-table-core.mjs +21 -7
  6. package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -1
  7. package/fesm2022/forgeroute-ui-form-row.mjs +54 -18
  8. package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -1
  9. package/fesm2022/forgeroute-ui-form-section.mjs +32 -4
  10. package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -1
  11. package/fesm2022/forgeroute-ui-kpi-card.mjs +20 -4
  12. package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -1
  13. package/fesm2022/forgeroute-ui-list-item.mjs +2 -2
  14. package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -1
  15. package/fesm2022/forgeroute-ui-map.mjs +10 -2
  16. package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
  17. package/fesm2022/forgeroute-ui-messaging.mjs +30 -6
  18. package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
  19. package/fesm2022/forgeroute-ui-payments.mjs +26 -5
  20. package/fesm2022/forgeroute-ui-payments.mjs.map +1 -1
  21. package/fesm2022/forgeroute-ui-quickbooks.mjs +11 -2
  22. package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
  23. package/fesm2022/forgeroute-ui-share-menu.mjs +46 -15
  24. package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -1
  25. package/fesm2022/forgeroute-ui-square.mjs +1 -0
  26. package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
  27. package/fesm2022/forgeroute-ui-stripe.mjs +21 -4
  28. package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
  29. package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -1
  30. package/package.json +1 -1
  31. package/types/forgeroute-ui-core.d.ts +8 -7
  32. package/types/forgeroute-ui-data-table-core.d.ts +5 -0
  33. package/types/forgeroute-ui-form-row.d.ts +14 -0
  34. package/types/forgeroute-ui-form-section.d.ts +8 -1
  35. package/types/forgeroute-ui-kpi-card.d.ts +7 -0
  36. package/types/forgeroute-ui-list-item.d.ts +1 -1
  37. package/types/forgeroute-ui-share-menu.d.ts +20 -11
  38. package/types/forgeroute-ui-table-types.d.ts +7 -0
@@ -1 +1 @@
1
- {"version":3,"file":"forgeroute-ui-list-item.mjs","names":[],"sources":["../../../projects/forgeroute-ui/list-item/src/lib/list-item/list-item.component.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { Component, ChangeDetectionStrategy, AfterContentChecked, ElementRef, inject, input, output, signal, HostBinding, ViewEncapsulation } from '@angular/core';\nimport { iconPath } from '@forgeroute/ui/icon';\nimport { BadgeComponent } from '@forgeroute/ui/badge';\nimport { BadgeVariant } from '@forgeroute/ui/table-types';\n\n/**\n * Fixed-layout list item with an optional leading radio/checkbox, a title + badge,\n * and a secondary detail row rendered from a string array. All layout is handled\n * internally — pass inputs only; the one optional projection is the row-end action slot\n * (`list-item-action`, alias `li-action`, see below).\n *\n * Usage:\n * <ui-list-item\n * leading=\"radio\"\n * inputName=\"survivor-group1\"\n * [inputId]=\"'row-' + c.id\"\n * [checked]=\"selected\"\n * [highlighted]=\"selected\"\n * [title]=\"c.firstName + ' ' + c.lastName\"\n * badge=\"KEEP\"\n * badgeVariant=\"green\"\n * [details]=\"[c.email, c.phone, 'Added ' + (c.createdAt | date:'MMM d, y')]\"\n * (select)=\"onSelect(c.id)\" />\n *\n * Read-only row with actions (2026-10-19): `[interactive]=\"false\"` renders a plain row (no label, no leading\n * input, no pointer cursor, no hover tint, nothing focusable) and `[alwaysShowBadge]=\"true\"` shows the badge\n * without needing `checked`. Elements carrying `list-item-action` (alias `li-action`) are projected at the\n * row end, vertically centred, after the text; they sit outside the row's label so clicking them never emits\n * `select`. Absent = no extra DOM. Example:\n * <ui-list-item [interactive]=\"false\" [bordered]=\"true\" [title]=\"d.name\" [details]=\"[d.fileName]\"\n * badge=\"Archived\" badgeVariant=\"gray\" [alwaysShowBadge]=\"true\">\n * <ui-button list-item-action variant=\"icon\" ariaLabel=\"Remove\" (click)=\"remove(d)\">…</ui-button>\n * </ui-list-item>\n *\n * Library source 2026-11-05, not yet published: row-end content slot. An element with the `list-item-end` attribute (a `<ui-star-rating>`, a badge, a price...) is\n * projected at the END of the row, after the text and before the busy spinner and the `list-item-action` buttons, vertically centred, at its own size. Like the action\n * slot it sits outside the row's label: clicks inside it never emit `select` (also on a plain pressable row), and Enter / Space inside it are not treated as a row\n * press. Absent = no extra DOM, nothing changes. Accessibility note: a plain pressable row (`leading=\"none\"`, interactive) is `role=\"button\"`, whose children are presentational, so\n * INTERACTIVE content in this slot (a `<ui-star-rating>`, a button) should go on a row with `[interactive]=\"false\"` (no role, nothing pressable); a badge or other static text is fine on any row.\n * <ui-list-item [title]=\"r.name\" [details]=\"[r.date]\"><ui-star-rating list-item-end [readonly]=\"true\" [value]=\"r.rating\" [size]=\"16\" /></ui-list-item>\n *\n * Library source 2026-11-04, not yet published: `[disabled]` (aria-disabled, not focusable, never emits `select`, non-colour cue), `[busy]`\n * (aria-busy, spinner, presses ignored) and a leading image slot, `<img list-item-image>` / `<ui-image list-item-image>`, rendered in front of\n * the text and instead of the icon tile (clicks on it select a plain row; on a radio / checkbox row they do not, because the image sits outside\n * the label). An interactive image (`<ui-image list-item-image [interactive]=\"true\" (activate)=...>`) inside a plain pressable row: a click emits the\n * image's `activate` AND selects the row (the click bubbles); Enter / Space on the image emit `activate` only (the row's key handler ignores keys\n * whose target is not the row itself). Row-end actions stay in `list-item-action`.\n * <ui-list-item [title]=\"p.name\" [details]=\"[p.price]\" [disabled]=\"p.soldOut\" [busy]=\"adding() === p.id\" (select)=\"add(p)\">\n * <ui-image list-item-image [src]=\"p.photo\" [alt]=\"p.name\" width=\"48px\" height=\"48px\" fit=\"cover\" radius=\"md\" />\n * </ui-list-item>\n */\n/** One secondary line under the title: plain text, or text with a small icon and a tone (`danger` red, `warning` amber). */\nexport type ListItemDetail = string | { text?: string; segments?: ListItemSegment[]; icon?: string; tone?: 'default' | 'warning' | 'danger' };\n/**\n * One piece of a rich detail line (library source 2026-11-04, not yet published): plain text, or text shown in bold and/or as inline code. Rich text\n * is structured data, never HTML, so nothing is injected. `{ segments: ['Click ', { text: 'Connect', bold: true }, ' and copy ', { text: 'client_id', code: true }] }`\n * renders `Click <strong>Connect</strong> and copy <code>client_id</code>`. A detail with `segments` ignores `text` for display (when `text` is empty\n * the segments' plain text is used, e.g. for the visible-line check).\n */\nexport type ListItemSegment = string | { text: string; bold?: boolean; code?: boolean };\n/** Colour of the optional leading icon tile. */\nexport type ListItemIconColor = 'slate' | 'amber' | 'red' | 'blue' | 'green' | 'purple' | 'teal' | 'orange';\n\n@Component({\n selector: 'ui-list-item',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [BadgeComponent, NgTemplateOutlet],\n template: `\n <ng-template #tile>\n @if (iconD(); as d) {\n <span class=\"li-icon\" [class]=\"'li-icon li-icon--' + iconColor()\" aria-hidden=\"true\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" focusable=\"false\"><path [attr.d]=\"d\" /></svg>\n </span>\n }\n </ng-template>\n <ng-template #content>\n <div class=\"li-title-row\">\n <span class=\"li-title\" data-testid=\"list-item-title\">{{ title() }}</span>\n @if (badge() && (checked() || alwaysShowBadge())) {\n <ui-badge [label]=\"badge()!\" [variant]=\"badgeVariant()\" />\n }\n </div>\n @if (visibleDetails().length) {\n <div class=\"li-details\">\n @for (detail of visibleDetails(); track $index) {\n <span class=\"li-detail\" [class.li-detail--warning]=\"detail.tone === 'warning'\" [class.li-detail--danger]=\"detail.tone === 'danger'\">\n @if (detail.d) {\n <svg class=\"li-detail-icon\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"detail.d\" /></svg>\n }\n <span class=\"li-detail-text\" data-testid=\"list-item-detail\">\n @if (detail.segs; as segs) {\n @for (seg of segs; track $index) {\n @if (seg.bold && seg.code) { <strong><code class=\"li-code\">{{ seg.text }}</code></strong> }\n @else if (seg.bold) { <strong>{{ seg.text }}</strong> }\n @else if (seg.code) { <code class=\"li-code\">{{ seg.text }}</code> }\n @else { <ng-container>{{ seg.text }}</ng-container> }\n }\n } @else { <ng-container>{{ detail.text }}</ng-container> }\n </span>\n </span>\n }\n </div>\n }\n </ng-template>\n\n <div class=\"li-row\" [class.li-row--highlighted]=\"highlighted()\" [class.li-row--pressable]=\"pressable()\"\n [class.li-row--disabled]=\"disabled()\" [class.li-row--busy]=\"busy()\"\n [attr.role]=\"pressable() ? 'button' : null\" [attr.tabindex]=\"pressable() && !disabled() ? 0 : null\"\n [attr.aria-disabled]=\"disabled() && pressable() ? 'true' : null\" [attr.aria-busy]=\"busy() ? 'true' : null\"\n (click)=\"onRowClick($event)\" (keydown.enter)=\"onRowKey($event)\" (keydown.space)=\"onRowKey($event)\" [class.li-row--static]=\"!interactive()\" [class.li-row--wrap]=\"wrapText() || !interactive()\">\n\n @if (interactive() && leading() === 'radio') {\n <input\n type=\"radio\"\n class=\"li-input\"\n [id]=\"inputId()\"\n [name]=\"inputName()\"\n [checked]=\"checked()\"\n [disabled]=\"disabled()\"\n (click)=\"onInputClick($event)\"\n (keydown)=\"onInputKey($event)\"\n (change)=\"onInputChange($event)\"\n />\n } @else if (interactive() && leading() === 'checkbox') {\n <input\n type=\"checkbox\"\n class=\"li-input\"\n [id]=\"inputId()\"\n [checked]=\"checked()\"\n [disabled]=\"disabled()\"\n (click)=\"onInputClick($event)\"\n (keydown)=\"onInputKey($event)\"\n (change)=\"onInputChange($event)\"\n />\n }\n\n <!-- Leading image slot (library source 2026-11-04): a product photo in front of the text. Replaces the icon tile. -->\n <ng-content select=\"[list-item-image]\" />\n @if (!hasImage()) { <ng-container [ngTemplateOutlet]=\"tile\" /> }\n @if (!interactive()) {\n <div class=\"li-body li-body--static\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n } @else {\n <label class=\"li-body\" [attr.for]=\"inputId() || null\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </label>\n }\n\n <!-- Row-end content slot (library source 2026-11-05): a rating, a badge... after the text. Outside the label, so it never selects the row. -->\n <ng-content select=\"[list-item-end]\" />\n\n @if (busy()) {\n <span class=\"li-spinner\" aria-hidden=\"true\"></span>\n }\n <ng-content select=\"[list-item-action], [li-action]\" />\n\n </div>\n `,\n styles: [`\n ui-list-item { display: block; }\n /* Bordered card: a soft outline and shadow that darken on hover, so each row reads as its own card. (Plain class selector: the\n earlier \"ui-list-item(.li-bordered)\" form is not valid CSS, so the card styling was never applied.) */\n ui-list-item.li-bordered {\n border: 1px solid var(--border, #e2e8f0);\n border-radius: 12px;\n overflow: hidden;\n background: var(--surface, #fff);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);\n margin-bottom: 8px;\n transition: border-color 0.15s ease, box-shadow 0.15s ease;\n &:last-child { margin-bottom: 0; }\n }\n ui-list-item.li-bordered:hover { border-color: #cbd5e1; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.07); }\n @media (prefers-reduced-motion: reduce) { ui-list-item.li-bordered { transition: none; } }\n\n .li-row {\n display: flex;\n align-items: flex-start;\n gap: 14px;\n padding: 12px 16px;\n border-bottom: 1px solid var(--border, #e2e8f0);\n transition: background 0.12s;\n\n &:last-child { border-bottom: none; }\n &:hover { background: var(--surface-hover, #f8fafc); }\n }\n ui-list-item.li-bordered .li-row { border-bottom: none; padding: 14px 16px; }\n /* Modifier written out: plain CSS nesting cannot append a suffix to the parent (&--x is not valid). */\n .li-row.li-row--highlighted { background: #f0fdf4; }\n .li-row.li-row--highlighted:hover { background: #dcfce7; }\n\n /* interactive=false: a plain row — no hover tint, no pointer. */\n .li-row.li-row--static:hover { background: transparent; }\n .li-row.li-row--static.li-row--highlighted,\n .li-row.li-row--static.li-row--highlighted:hover { background: #f0fdf4; }\n /* leading=\"none\" rows have no input to click, so the whole row is the button. */\n .li-row.li-row--pressable { cursor: pointer; }\n .li-row.li-row--pressable:focus-visible { outline: 2px solid var(--primary, #2563eb); outline-offset: -2px; }\n .li-body.li-body--static { cursor: default; }\n\n /* Row-end action slot: projected nodes are direct flex children of .li-row (no wrapper, so no gap when unused). */\n .li-row [list-item-action], .li-row [li-action] { flex-shrink: 0; align-self: center; }\n\n /* Row-end content slot (library source 2026-11-05): a direct flex child after the text, kept at its own size, centred against the text. */\n .li-row > [list-item-end] { flex: 0 0 auto; align-self: center; }\n\n /* Leading image slot (library source 2026-11-04): the projected photo is a direct flex child, kept at its own size, centred against the text. */\n .li-row > [list-item-image] { flex: 0 0 auto; align-self: center; }\n\n /* disabled (library source 2026-11-04): not colour alone - dimmed text (still >= 4.5:1 on white), diagonal hatching, a not-allowed cursor and, on a\n bordered card, a dashed outline. No hover tint. */\n .li-row.li-row--disabled,\n .li-row.li-row--disabled:hover {\n opacity: 0.72; cursor: not-allowed;\n background-color: var(--surface-muted, #f8fafc);\n background-image: repeating-linear-gradient(135deg, transparent 0, transparent 6px, rgba(100, 116, 139, 0.1) 6px, rgba(100, 116, 139, 0.1) 12px);\n }\n .li-row.li-row--disabled .li-body, .li-row.li-row--disabled .li-input, .li-row.li-row--disabled.li-row--pressable { cursor: not-allowed; }\n ui-list-item.li-disabled.li-bordered, ui-list-item.li-disabled.li-bordered:hover { border-style: dashed; box-shadow: none; }\n\n /* busy (library source 2026-11-04): a small decorative spinner at the row end; the press is ignored. */\n .li-row.li-row--busy, .li-row.li-row--busy .li-body { cursor: progress; }\n .li-spinner {\n flex: 0 0 auto; align-self: center; box-sizing: border-box; width: 16px; height: 16px;\n border: 2px solid rgba(100, 116, 139, 0.3); border-top-color: var(--text-secondary, #475569); border-radius: 50%;\n animation: li-spin 0.6s linear infinite;\n }\n @keyframes li-spin { to { transform: rotate(360deg); } }\n @media (prefers-reduced-motion: reduce) { .li-spinner { animation-duration: 2s; } }\n\n .li-input {\n margin-top: 3px;\n flex-shrink: 0;\n accent-color: #16a34a;\n width: 1rem;\n height: 1rem;\n cursor: pointer;\n }\n\n /* Optional leading icon tile (the \"icon\" input): a soft tinted square with a coloured icon, aligned with the title. */\n .li-icon {\n flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;\n width: 40px; height: 40px; border-radius: 12px;\n }\n .li-icon--slate { background: #f1f5f9; color: #475569; }\n .li-icon--amber { background: #fef3c7; color: #b45309; }\n .li-icon--orange { background: #ffedd5; color: #c2410c; }\n .li-icon--red { background: #fee2e2; color: #b91c1c; }\n .li-icon--blue { background: #dbeafe; color: #1d4ed8; }\n .li-icon--green { background: #dcfce7; color: #15803d; }\n .li-icon--purple { background: #f3e8ff; color: #7e22ce; }\n .li-icon--teal { background: #ccfbf1; color: #0f766e; }\n\n .li-body {\n flex: 1;\n min-width: 0;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n gap: 6px;\n }\n\n .li-title-row {\n display: flex;\n align-items: center;\n gap: 6px;\n flex-wrap: wrap;\n }\n\n .li-title {\n font-size: 0.9375rem;\n font-weight: 600;\n line-height: 1.4;\n letter-spacing: -0.005em;\n color: var(--text-primary, #0f172a);\n }\n /* Opt-in (wrapText, or any non-interactive row): long unbroken text (file names, e-mails) wraps instead of pushing the row-end\n actions out of a 320px screen. Default rows are unchanged. */\n .li-row--wrap .li-title {\n min-width: 0;\n word-break: break-word; /* older Safari (< 15.4) has no overflow-wrap: anywhere */\n overflow-wrap: anywhere;\n }\n\n /* Secondary lines: one per line, small and grey, so the title stands out and each fact reads on its own. */\n .li-details {\n display: flex;\n flex-direction: column;\n gap: 3px;\n font-size: 0.8125rem;\n line-height: 1.4;\n color: var(--text-secondary, #64748b);\n }\n .li-detail { display: flex; align-items: center; gap: 6px; min-width: 0; }\n .li-detail-icon { flex: 0 0 auto; color: #94a3b8; }\n .li-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: #f1f5f9; border-radius: 4px; padding: 1px 4px; }\n .li-detail--warning, .li-detail--warning .li-detail-icon { color: #b45309; }\n .li-detail--danger, .li-detail--danger .li-detail-icon { color: #b91c1c; }\n .li-row--wrap .li-detail-text { min-width: 0; word-break: break-word; overflow-wrap: anywhere; }\n `],\n})\nexport class ListItemComponent implements AfterContentChecked {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** Show a radio button, checkbox, or nothing on the left. */\n readonly leading = input<'radio' | 'checkbox' | 'none'>('none');\n /** `name` attribute for the radio/checkbox (groups radios together). */\n readonly inputName = input('');\n /** `id` attribute for the radio/checkbox (links the label). */\n readonly inputId = input('');\n /** Whether this item is currently selected/checked. */\n readonly checked = input(false);\n /** Highlights the row (e.g. green tint for the selected \"keep\" row). */\n readonly highlighted = input(false);\n /** Wraps the item in a bordered card (border + border-radius). */\n readonly bordered = input(false);\n /**\n * `true` (default) = today's behaviour: clickable label, optional radio/checkbox, hover tint, pointer cursor.\n * `false` = plain row: no label, no leading input (`leading` is ignored), no hover tint, no pointer, `select` never\n * fires. Title, details, badge, `bordered` and `highlighted` look the same. Only projected actions stay focusable.\n */\n readonly interactive = input(true);\n /** Show the badge even when the row is not `checked` (for non-interactive rows with a status badge). Default false. */\n readonly alwaysShowBadge = input(false);\n /**\n * Break long unbroken title / detail text (file names, e-mails) inside the text column instead of letting it overflow; use it\n * on a row with `list-item-action` projections so the actions stay on screen at 320px. Default `false` = today's rendering.\n * Rows with `[interactive]=\"false\"` always wrap (new in 2026-10-19, nothing to preserve).\n */\n readonly wrapText = input(false);\n /**\n * Library source 2026-11-04, not yet published. `true` = the row cannot be used right now: the native radio / checkbox is `disabled` (that carries\n * the state for assistive tech), a plain pressable row (`role=\"button\"`) gets `aria-disabled=\"true\"` and loses its `tabindex` (not a tab stop). A row\n * without a role (radio / checkbox row wrapper, non-interactive row) gets NO `aria-disabled` (it is not valid on a role-less div); it only\n * gets the classes. Clicks, Enter and Space never emit `select`, and the row looks disabled without relying on colour alone (dimmed, muted\n * surface, `not-allowed` cursor, a dashed outline on a bordered card). Projected row-end actions (`list-item-action`) are NOT disabled by this\n * input; disable them yourself. Default `false` = unchanged.\n */\n readonly disabled = input(false);\n /**\n * Library source 2026-11-04, not yet published. `true` = the row is working on a request: `aria-busy=\"true\"`, a small spinner (decorative)\n * at the row end, and presses (click, Enter, Space, radio / checkbox change) are ignored: `select` never emits and a radio / checkbox keeps\n * its state (the click is cancelled, so a sibling radio of the same `name` stays checked too; arrow keys on a busy radio are blocked).\n * The row stays focusable. Default `false` = unchanged.\n */\n readonly busy = input(false);\n\n @HostBinding('class.li-bordered') get _borderedClass() { return this.bordered(); }\n @HostBinding('class.li-disabled') get _disabledClass() { return this.disabled(); }\n\n /** Primary label. */\n readonly title = input('');\n /** Badge shown next to the title — only visible when the item is checked, unless `alwaysShowBadge` is set. */\n readonly badge = input<string | null>(null);\n readonly badgeVariant = input<BadgeVariant>('green');\n\n /**\n * Secondary detail strings rendered inline below the title.\n * Pass whatever is relevant — email, phone, date, role, address, etc.\n * Falsy entries (null, undefined, '') are filtered out automatically.\n */\n readonly details = input<(ListItemDetail | null | undefined)[]>([]);\n\n /** Optional leading icon: an icon key of `<ui-icon>` (e.g. `bell`, `task`, `email`) drawn in a tinted tile before the text. Default none. */\n readonly icon = input('');\n /** Colour of the icon tile. */\n readonly iconColor = input<ListItemIconColor>('slate');\n protected readonly iconD = () => (this.icon() ? iconPath(this.icon()) ?? null : null);\n\n /** Emitted when the radio/checkbox changes. */\n readonly select = output<void>();\n\n /** A plain interactive row (no radio/checkbox) is itself clickable: click, Enter or Space emit `select`. */\n protected readonly pressable = () => this.interactive() && this.leading() === 'none';\n\n /**\n * True while the leading image slot (`<img list-item-image>` / any element with the `list-item-image` attribute) holds content.\n * The slot is projected, so this is read from the DOM after every content check; the icon tile is not rendered while it is true.\n */\n protected readonly hasImage = signal(false);\n\n ngAfterContentChecked(): void {\n // Cheap check on every cycle: look at the row's direct children only (no selector query, no :scope, nothing allocated).\n const kids = this.host.nativeElement.firstElementChild?.children;\n let has = false;\n if (kids) for (let i = 0; i < kids.length; i++) if (kids[i].hasAttribute('list-item-image')) { has = true; break; }\n if (has !== this.hasImage()) this.hasImage.set(has);\n }\n\n /**\n * Radio / checkbox click while busy or disabled: cancelled, so the browser restores the checkedness of the clicked input AND of the other radios of\n * the same `name` group (clicking or arrowing onto this radio would otherwise uncheck the sibling that the model still holds as checked).\n */\n protected onInputClick(e: Event): void {\n if (this.disabled() || this.busy()) e.preventDefault();\n }\n\n /** Arrow keys on a busy / disabled radio would move the selection to a sibling of the group: blocked. (Arriving at it from a sibling is stopped by `onInputClick`.) */\n protected onInputKey(e: KeyboardEvent): void {\n if ((this.disabled() || this.busy()) && (e.key === 'ArrowUp' || e.key === 'ArrowDown' || e.key === 'ArrowLeft' || e.key === 'ArrowRight')) e.preventDefault();\n }\n\n /** Radio / checkbox change: never while disabled (the input is disabled anyway); ignored while busy. Safety net after `onInputClick`: the input is put back to `checked`. */\n protected onInputChange(e: Event): void {\n const input = e.target as HTMLInputElement;\n if (this.disabled() || this.busy()) {\n input.checked = this.checked();\n return;\n }\n this.select.emit();\n }\n\n protected onRowClick(e: Event): void {\n if (!this.pressable() || this.disabled() || this.busy()) return;\n // clicks on projected row-end actions (buttons, links) never select the row\n // (also content in the row-end slot, `list-item-end`, e.g. a star rating: it handles its own clicks)\n if ((e.target as HTMLElement).closest('[list-item-action], [li-action], [list-item-end]')) return;\n this.select.emit();\n }\n\n protected onRowKey(e: Event): void {\n if (!this.pressable() || e.target !== e.currentTarget) return;\n e.preventDefault();\n if (this.disabled() || this.busy()) return;\n this.select.emit();\n }\n\n protected readonly visibleDetails = () =>\n this.details()\n .map((d) => {\n if (typeof d === 'string') return { text: d, segs: null as { text: string; bold: boolean; code: boolean }[] | null, d: null as string | null, tone: 'default' as const };\n if (!d) return null;\n const segs = d.segments?.length ? d.segments.map((g) => (typeof g === 'string' ? { text: g, bold: false, code: false } : { text: g.text, bold: !!g.bold, code: !!g.code })) : null;\n const text = segs ? segs.map((g) => g.text).join('') : (d.text ?? '');\n return { text, segs, d: d.icon ? iconPath(d.icon) ?? null : null, tone: d.tone ?? 'default' };\n })\n .filter((d): d is { text: string; segs: { text: string; bold: boolean; code: boolean }[] | null; d: string | null; tone: 'default' | 'warning' | 'danger' } => !!d && !!d.text);\n}\n"],"mappings":";;;;;AAiTA,IAAa,oBAAb,MAAa,kBAAiB;CAjP9B,cAAA;EAkPmB,KAAA,OAAO,OAAgC,UAAU;EAEzD,KAAA,UAAU,MAAqC,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAEtD,KAAA,YAAY,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAErB,KAAA,UAAU,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAEnB,KAAA,UAAU,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAEtB,KAAA,cAAc,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;EAE1B,KAAA,WAAW,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EAMvB,KAAA,cAAc,MAAM,MAAK,GAAA,YAAA,CAAA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;;;;;;;;;;;;;;GA2FT,UAAA;GAAA,QAAA,CAAA,61HAAA;GAAA,cAAA,CAAA;IAAA,MAAA;IAAA,MA5FS;IAAc,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;IAAA;GAAA,GAAA;IAAA,MAAA;IAAA,MAAE;IAAgB,UAAA;IAAA,QAAA;KAAA;KAAA;KAAA;IAAA;GAAA,CAAA;GAAA,iBAAA,GAAA,wBAAA;GAAA,eAAA,GAAA,kBAAA;EAAA,CAAA;CAAA;;AA4O/B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA;EAjP7B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAc,YACZ;GAAI,iBACC,wBAAwB;GAAM,eAChC,kBAAkB;GAAI,SAC5B,CAAC,gBAAgB,gBAAgB;GAAC,UACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FT,QAAA,CAAA,61HAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6LA,MAAA;GAAY,MAAA,CAAA,mBAAmB;;;GAC/B,MAAA;GAAY,MAAA,CAAA,mBAAmB"}
1
+ {"version":3,"file":"forgeroute-ui-list-item.mjs","names":[],"sources":["../../../projects/forgeroute-ui/list-item/src/lib/list-item/list-item.component.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { Component, ChangeDetectionStrategy, AfterContentChecked, ElementRef, inject, input, output, signal, HostBinding, ViewEncapsulation } from '@angular/core';\nimport { iconPath } from '@forgeroute/ui/icon';\nimport { BadgeComponent } from '@forgeroute/ui/badge';\nimport { BadgeVariant } from '@forgeroute/ui/table-types';\n\n/**\n * Fixed-layout list item with an optional leading radio/checkbox, a title + badge,\n * and a secondary detail row rendered from a string array. All layout is handled\n * internally — pass inputs only; the one optional projection is the row-end action slot\n * (`list-item-action`, alias `li-action`, see below).\n *\n * Usage:\n * <ui-list-item\n * leading=\"radio\"\n * inputName=\"survivor-group1\"\n * [inputId]=\"'row-' + c.id\"\n * [checked]=\"selected\"\n * [highlighted]=\"selected\"\n * [title]=\"c.firstName + ' ' + c.lastName\"\n * badge=\"KEEP\"\n * badgeVariant=\"green\"\n * [details]=\"[c.email, c.phone, 'Added ' + (c.createdAt | date:'MMM d, y')]\"\n * (select)=\"onSelect(c.id)\" />\n *\n * Read-only row with actions (2026-10-19): `[interactive]=\"false\"` renders a plain row (no label, no leading\n * input, no pointer cursor, no hover tint, nothing focusable) and `[alwaysShowBadge]=\"true\"` shows the badge\n * without needing `checked`. Elements carrying `list-item-action` (alias `li-action`) are projected at the\n * row end, vertically centred, after the text; they sit outside the row's label so clicking them never emits\n * `select`. Absent = no extra DOM. Example:\n * <ui-list-item [interactive]=\"false\" [bordered]=\"true\" [title]=\"d.name\" [details]=\"[d.fileName]\"\n * badge=\"Archived\" badgeVariant=\"gray\" [alwaysShowBadge]=\"true\">\n * <ui-button list-item-action variant=\"icon\" ariaLabel=\"Remove\" (click)=\"remove(d)\">…</ui-button>\n * </ui-list-item>\n *\n * Library source 2026-11-05, not yet published: row-end content slot. An element with the `list-item-end` attribute (a `<ui-star-rating>`, a badge, a price...) is\n * projected at the END of the row, after the text and before the busy spinner and the `list-item-action` buttons, in the upper right corner (top aligned), at its own size. Like the action\n * slot it sits outside the row's label: clicks inside it never emit `select` (also on a plain pressable row), and Enter / Space inside it are not treated as a row\n * press. Absent = no extra DOM, nothing changes. Accessibility note: a plain pressable row (`leading=\"none\"`, interactive) is `role=\"button\"`, whose children are presentational, so\n * INTERACTIVE content in this slot (a `<ui-star-rating>`, a button) should go on a row with `[interactive]=\"false\"` (no role, nothing pressable); a badge or other static text is fine on any row.\n * <ui-list-item [title]=\"r.name\" [details]=\"[r.date]\"><ui-star-rating list-item-end [readonly]=\"true\" [value]=\"r.rating\" [size]=\"16\" /></ui-list-item>\n *\n * Library source 2026-11-04, not yet published: `[disabled]` (aria-disabled, not focusable, never emits `select`, non-colour cue), `[busy]`\n * (aria-busy, spinner, presses ignored) and a leading image slot, `<img list-item-image>` / `<ui-image list-item-image>`, rendered in front of\n * the text and instead of the icon tile (clicks on it select a plain row; on a radio / checkbox row they do not, because the image sits outside\n * the label). An interactive image (`<ui-image list-item-image [interactive]=\"true\" (activate)=...>`) inside a plain pressable row: a click emits the\n * image's `activate` AND selects the row (the click bubbles); Enter / Space on the image emit `activate` only (the row's key handler ignores keys\n * whose target is not the row itself). Row-end actions stay in `list-item-action`.\n * <ui-list-item [title]=\"p.name\" [details]=\"[p.price]\" [disabled]=\"p.soldOut\" [busy]=\"adding() === p.id\" (select)=\"add(p)\">\n * <ui-image list-item-image [src]=\"p.photo\" [alt]=\"p.name\" width=\"48px\" height=\"48px\" fit=\"cover\" radius=\"md\" />\n * </ui-list-item>\n */\n/** One secondary line under the title: plain text, or text with a small icon and a tone (`danger` red, `warning` amber). */\nexport type ListItemDetail = string | { text?: string; segments?: ListItemSegment[]; icon?: string; tone?: 'default' | 'warning' | 'danger' };\n/**\n * One piece of a rich detail line (library source 2026-11-04, not yet published): plain text, or text shown in bold and/or as inline code. Rich text\n * is structured data, never HTML, so nothing is injected. `{ segments: ['Click ', { text: 'Connect', bold: true }, ' and copy ', { text: 'client_id', code: true }] }`\n * renders `Click <strong>Connect</strong> and copy <code>client_id</code>`. A detail with `segments` ignores `text` for display (when `text` is empty\n * the segments' plain text is used, e.g. for the visible-line check).\n */\nexport type ListItemSegment = string | { text: string; bold?: boolean; code?: boolean };\n/** Colour of the optional leading icon tile. */\nexport type ListItemIconColor = 'slate' | 'amber' | 'red' | 'blue' | 'green' | 'purple' | 'teal' | 'orange';\n\n@Component({\n selector: 'ui-list-item',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [BadgeComponent, NgTemplateOutlet],\n template: `\n <ng-template #tile>\n @if (iconD(); as d) {\n <span class=\"li-icon\" [class]=\"'li-icon li-icon--' + iconColor()\" aria-hidden=\"true\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" focusable=\"false\"><path [attr.d]=\"d\" /></svg>\n </span>\n }\n </ng-template>\n <ng-template #content>\n <div class=\"li-title-row\">\n <span class=\"li-title\" data-testid=\"list-item-title\">{{ title() }}</span>\n @if (badge() && (checked() || alwaysShowBadge())) {\n <ui-badge [label]=\"badge()!\" [variant]=\"badgeVariant()\" />\n }\n </div>\n @if (visibleDetails().length) {\n <div class=\"li-details\">\n @for (detail of visibleDetails(); track $index) {\n <span class=\"li-detail\" [class.li-detail--warning]=\"detail.tone === 'warning'\" [class.li-detail--danger]=\"detail.tone === 'danger'\">\n @if (detail.d) {\n <svg class=\"li-detail-icon\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"detail.d\" /></svg>\n }\n <span class=\"li-detail-text\" data-testid=\"list-item-detail\">\n @if (detail.segs; as segs) {\n @for (seg of segs; track $index) {\n @if (seg.bold && seg.code) { <strong><code class=\"li-code\">{{ seg.text }}</code></strong> }\n @else if (seg.bold) { <strong>{{ seg.text }}</strong> }\n @else if (seg.code) { <code class=\"li-code\">{{ seg.text }}</code> }\n @else { <ng-container>{{ seg.text }}</ng-container> }\n }\n } @else { <ng-container>{{ detail.text }}</ng-container> }\n </span>\n </span>\n }\n </div>\n }\n </ng-template>\n\n <div class=\"li-row\" [class.li-row--highlighted]=\"highlighted()\" [class.li-row--pressable]=\"pressable()\"\n [class.li-row--disabled]=\"disabled()\" [class.li-row--busy]=\"busy()\"\n [attr.role]=\"pressable() ? 'button' : null\" [attr.tabindex]=\"pressable() && !disabled() ? 0 : null\"\n [attr.aria-disabled]=\"disabled() && pressable() ? 'true' : null\" [attr.aria-busy]=\"busy() ? 'true' : null\"\n (click)=\"onRowClick($event)\" (keydown.enter)=\"onRowKey($event)\" (keydown.space)=\"onRowKey($event)\" [class.li-row--static]=\"!interactive()\" [class.li-row--wrap]=\"wrapText() || !interactive()\">\n\n @if (interactive() && leading() === 'radio') {\n <input\n type=\"radio\"\n class=\"li-input\"\n [id]=\"inputId()\"\n [name]=\"inputName()\"\n [checked]=\"checked()\"\n [disabled]=\"disabled()\"\n (click)=\"onInputClick($event)\"\n (keydown)=\"onInputKey($event)\"\n (change)=\"onInputChange($event)\"\n />\n } @else if (interactive() && leading() === 'checkbox') {\n <input\n type=\"checkbox\"\n class=\"li-input\"\n [id]=\"inputId()\"\n [checked]=\"checked()\"\n [disabled]=\"disabled()\"\n (click)=\"onInputClick($event)\"\n (keydown)=\"onInputKey($event)\"\n (change)=\"onInputChange($event)\"\n />\n }\n\n <!-- Leading image slot (library source 2026-11-04): a product photo in front of the text. Replaces the icon tile. -->\n <ng-content select=\"[list-item-image]\" />\n @if (!hasImage()) { <ng-container [ngTemplateOutlet]=\"tile\" /> }\n @if (!interactive()) {\n <div class=\"li-body li-body--static\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </div>\n } @else {\n <label class=\"li-body\" [attr.for]=\"inputId() || null\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </label>\n }\n\n <!-- Row-end content slot (library source 2026-11-05): a rating, a badge... after the text. Outside the label, so it never selects the row. -->\n <ng-content select=\"[list-item-end]\" />\n\n @if (busy()) {\n <span class=\"li-spinner\" aria-hidden=\"true\"></span>\n }\n <ng-content select=\"[list-item-action], [li-action]\" />\n\n </div>\n `,\n styles: [`\n ui-list-item { display: block; }\n /* Bordered card: a soft outline and shadow that darken on hover, so each row reads as its own card. (Plain class selector: the\n earlier \"ui-list-item(.li-bordered)\" form is not valid CSS, so the card styling was never applied.) */\n ui-list-item.li-bordered {\n border: 1px solid var(--border, #e2e8f0);\n border-radius: 12px;\n overflow: hidden;\n background: var(--surface, #fff);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);\n margin-bottom: 8px;\n transition: border-color 0.15s ease, box-shadow 0.15s ease;\n &:last-child { margin-bottom: 0; }\n }\n ui-list-item.li-bordered:hover { border-color: #cbd5e1; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.07); }\n @media (prefers-reduced-motion: reduce) { ui-list-item.li-bordered { transition: none; } }\n\n .li-row {\n display: flex;\n align-items: flex-start;\n gap: 14px;\n padding: 12px 16px;\n border-bottom: 1px solid var(--border, #e2e8f0);\n transition: background 0.12s;\n\n &:last-child { border-bottom: none; }\n &:hover { background: var(--surface-hover, #f8fafc); }\n }\n ui-list-item.li-bordered .li-row { border-bottom: none; padding: 14px 16px; }\n /* Modifier written out: plain CSS nesting cannot append a suffix to the parent (&--x is not valid). */\n .li-row.li-row--highlighted { background: #f0fdf4; }\n .li-row.li-row--highlighted:hover { background: #dcfce7; }\n\n /* interactive=false: a plain row — no hover tint, no pointer. */\n .li-row.li-row--static:hover { background: transparent; }\n .li-row.li-row--static.li-row--highlighted,\n .li-row.li-row--static.li-row--highlighted:hover { background: #f0fdf4; }\n /* leading=\"none\" rows have no input to click, so the whole row is the button. */\n .li-row.li-row--pressable { cursor: pointer; }\n .li-row.li-row--pressable:focus-visible { outline: 2px solid var(--primary, #2563eb); outline-offset: -2px; }\n .li-body.li-body--static { cursor: default; }\n\n /* Row-end action slot: projected nodes are direct flex children of .li-row (no wrapper, so no gap when unused). They sit in the UPPER right corner of the row\n (top aligned with the first line of text), not centred on its height: a badge and a view icon stay together at the top of a tall, multi-line item. */\n .li-row [list-item-action], .li-row [li-action] { flex-shrink: 0; align-self: flex-start; }\n\n /* Row-end content slot (library source 2026-11-05): a direct flex child after the text, kept at its own size, in the upper right corner of the row like the actions. */\n .li-row > [list-item-end] { flex: 0 0 auto; align-self: flex-start; }\n\n /* Leading image slot (library source 2026-11-04): the projected photo is a direct flex child, kept at its own size, centred against the text. */\n .li-row > [list-item-image] { flex: 0 0 auto; align-self: center; }\n\n /* disabled (library source 2026-11-04): not colour alone - dimmed text (still >= 4.5:1 on white), diagonal hatching, a not-allowed cursor and, on a\n bordered card, a dashed outline. No hover tint. */\n .li-row.li-row--disabled,\n .li-row.li-row--disabled:hover {\n opacity: 0.72; cursor: not-allowed;\n background-color: var(--surface-muted, #f8fafc);\n background-image: repeating-linear-gradient(135deg, transparent 0, transparent 6px, rgba(100, 116, 139, 0.1) 6px, rgba(100, 116, 139, 0.1) 12px);\n }\n .li-row.li-row--disabled .li-body, .li-row.li-row--disabled .li-input, .li-row.li-row--disabled.li-row--pressable { cursor: not-allowed; }\n ui-list-item.li-disabled.li-bordered, ui-list-item.li-disabled.li-bordered:hover { border-style: dashed; box-shadow: none; }\n\n /* busy (library source 2026-11-04): a small decorative spinner at the row end; the press is ignored. */\n .li-row.li-row--busy, .li-row.li-row--busy .li-body { cursor: progress; }\n .li-spinner {\n flex: 0 0 auto; align-self: center; box-sizing: border-box; width: 16px; height: 16px;\n border: 2px solid rgba(100, 116, 139, 0.3); border-top-color: var(--text-secondary, #475569); border-radius: 50%;\n animation: li-spin 0.6s linear infinite;\n }\n @keyframes li-spin { to { transform: rotate(360deg); } }\n @media (prefers-reduced-motion: reduce) { .li-spinner { animation-duration: 2s; } }\n\n .li-input {\n margin-top: 3px;\n flex-shrink: 0;\n accent-color: #16a34a;\n width: 1rem;\n height: 1rem;\n cursor: pointer;\n }\n\n /* Optional leading icon tile (the \"icon\" input): a soft tinted square with a coloured icon, aligned with the title. */\n .li-icon {\n flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;\n width: 40px; height: 40px; border-radius: 12px;\n }\n .li-icon--slate { background: #f1f5f9; color: #475569; }\n .li-icon--amber { background: #fef3c7; color: #b45309; }\n .li-icon--orange { background: #ffedd5; color: #c2410c; }\n .li-icon--red { background: #fee2e2; color: #b91c1c; }\n .li-icon--blue { background: #dbeafe; color: #1d4ed8; }\n .li-icon--green { background: #dcfce7; color: #15803d; }\n .li-icon--purple { background: #f3e8ff; color: #7e22ce; }\n .li-icon--teal { background: #ccfbf1; color: #0f766e; }\n\n .li-body {\n flex: 1;\n min-width: 0;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n gap: 6px;\n }\n\n .li-title-row {\n display: flex;\n align-items: center;\n gap: 6px;\n flex-wrap: wrap;\n }\n\n .li-title {\n font-size: 0.9375rem;\n font-weight: 600;\n line-height: 1.4;\n letter-spacing: -0.005em;\n color: var(--text-primary, #0f172a);\n }\n /* Opt-in (wrapText, or any non-interactive row): long unbroken text (file names, e-mails) wraps instead of pushing the row-end\n actions out of a 320px screen. Default rows are unchanged. */\n .li-row--wrap .li-title {\n min-width: 0;\n word-break: break-word; /* older Safari (< 15.4) has no overflow-wrap: anywhere */\n overflow-wrap: anywhere;\n }\n\n /* Secondary lines: one per line, small and grey, so the title stands out and each fact reads on its own. */\n .li-details {\n display: flex;\n flex-direction: column;\n gap: 3px;\n font-size: 0.8125rem;\n line-height: 1.4;\n color: var(--text-secondary, #64748b);\n }\n .li-detail { display: flex; align-items: center; gap: 6px; min-width: 0; }\n .li-detail-icon { flex: 0 0 auto; color: #94a3b8; }\n .li-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: #f1f5f9; border-radius: 4px; padding: 1px 4px; }\n .li-detail--warning, .li-detail--warning .li-detail-icon { color: #b45309; }\n .li-detail--danger, .li-detail--danger .li-detail-icon { color: #b91c1c; }\n .li-row--wrap .li-detail-text { min-width: 0; word-break: break-word; overflow-wrap: anywhere; }\n `],\n})\nexport class ListItemComponent implements AfterContentChecked {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** Show a radio button, checkbox, or nothing on the left. */\n readonly leading = input<'radio' | 'checkbox' | 'none'>('none');\n /** `name` attribute for the radio/checkbox (groups radios together). */\n readonly inputName = input('');\n /** `id` attribute for the radio/checkbox (links the label). */\n readonly inputId = input('');\n /** Whether this item is currently selected/checked. */\n readonly checked = input(false);\n /** Highlights the row (e.g. green tint for the selected \"keep\" row). */\n readonly highlighted = input(false);\n /** Wraps the item in a bordered card (border + border-radius). */\n readonly bordered = input(false);\n /**\n * `true` (default) = today's behaviour: clickable label, optional radio/checkbox, hover tint, pointer cursor.\n * `false` = plain row: no label, no leading input (`leading` is ignored), no hover tint, no pointer, `select` never\n * fires. Title, details, badge, `bordered` and `highlighted` look the same. Only projected actions stay focusable.\n */\n readonly interactive = input(true);\n /** Show the badge even when the row is not `checked` (for non-interactive rows with a status badge). Default false. */\n readonly alwaysShowBadge = input(false);\n /**\n * Break long unbroken title / detail text (file names, e-mails) inside the text column instead of letting it overflow; use it\n * on a row with `list-item-action` projections so the actions stay on screen at 320px. Default `false` = today's rendering.\n * Rows with `[interactive]=\"false\"` always wrap (new in 2026-10-19, nothing to preserve).\n */\n readonly wrapText = input(false);\n /**\n * Library source 2026-11-04, not yet published. `true` = the row cannot be used right now: the native radio / checkbox is `disabled` (that carries\n * the state for assistive tech), a plain pressable row (`role=\"button\"`) gets `aria-disabled=\"true\"` and loses its `tabindex` (not a tab stop). A row\n * without a role (radio / checkbox row wrapper, non-interactive row) gets NO `aria-disabled` (it is not valid on a role-less div); it only\n * gets the classes. Clicks, Enter and Space never emit `select`, and the row looks disabled without relying on colour alone (dimmed, muted\n * surface, `not-allowed` cursor, a dashed outline on a bordered card). Projected row-end actions (`list-item-action`) are NOT disabled by this\n * input; disable them yourself. Default `false` = unchanged.\n */\n readonly disabled = input(false);\n /**\n * Library source 2026-11-04, not yet published. `true` = the row is working on a request: `aria-busy=\"true\"`, a small spinner (decorative)\n * at the row end, and presses (click, Enter, Space, radio / checkbox change) are ignored: `select` never emits and a radio / checkbox keeps\n * its state (the click is cancelled, so a sibling radio of the same `name` stays checked too; arrow keys on a busy radio are blocked).\n * The row stays focusable. Default `false` = unchanged.\n */\n readonly busy = input(false);\n\n @HostBinding('class.li-bordered') get _borderedClass() { return this.bordered(); }\n @HostBinding('class.li-disabled') get _disabledClass() { return this.disabled(); }\n\n /** Primary label. */\n readonly title = input('');\n /** Badge shown next to the title — only visible when the item is checked, unless `alwaysShowBadge` is set. */\n readonly badge = input<string | null>(null);\n readonly badgeVariant = input<BadgeVariant>('green');\n\n /**\n * Secondary detail strings rendered inline below the title.\n * Pass whatever is relevant — email, phone, date, role, address, etc.\n * Falsy entries (null, undefined, '') are filtered out automatically.\n */\n readonly details = input<(ListItemDetail | null | undefined)[]>([]);\n\n /** Optional leading icon: an icon key of `<ui-icon>` (e.g. `bell`, `task`, `email`) drawn in a tinted tile before the text. Default none. */\n readonly icon = input('');\n /** Colour of the icon tile. */\n readonly iconColor = input<ListItemIconColor>('slate');\n protected readonly iconD = () => (this.icon() ? iconPath(this.icon()) ?? null : null);\n\n /** Emitted when the radio/checkbox changes. */\n readonly select = output<void>();\n\n /** A plain interactive row (no radio/checkbox) is itself clickable: click, Enter or Space emit `select`. */\n protected readonly pressable = () => this.interactive() && this.leading() === 'none';\n\n /**\n * True while the leading image slot (`<img list-item-image>` / any element with the `list-item-image` attribute) holds content.\n * The slot is projected, so this is read from the DOM after every content check; the icon tile is not rendered while it is true.\n */\n protected readonly hasImage = signal(false);\n\n ngAfterContentChecked(): void {\n // Cheap check on every cycle: look at the row's direct children only (no selector query, no :scope, nothing allocated).\n const kids = this.host.nativeElement.firstElementChild?.children;\n let has = false;\n if (kids) for (let i = 0; i < kids.length; i++) if (kids[i].hasAttribute('list-item-image')) { has = true; break; }\n if (has !== this.hasImage()) this.hasImage.set(has);\n }\n\n /**\n * Radio / checkbox click while busy or disabled: cancelled, so the browser restores the checkedness of the clicked input AND of the other radios of\n * the same `name` group (clicking or arrowing onto this radio would otherwise uncheck the sibling that the model still holds as checked).\n */\n protected onInputClick(e: Event): void {\n if (this.disabled() || this.busy()) e.preventDefault();\n }\n\n /** Arrow keys on a busy / disabled radio would move the selection to a sibling of the group: blocked. (Arriving at it from a sibling is stopped by `onInputClick`.) */\n protected onInputKey(e: KeyboardEvent): void {\n if ((this.disabled() || this.busy()) && (e.key === 'ArrowUp' || e.key === 'ArrowDown' || e.key === 'ArrowLeft' || e.key === 'ArrowRight')) e.preventDefault();\n }\n\n /** Radio / checkbox change: never while disabled (the input is disabled anyway); ignored while busy. Safety net after `onInputClick`: the input is put back to `checked`. */\n protected onInputChange(e: Event): void {\n const input = e.target as HTMLInputElement;\n if (this.disabled() || this.busy()) {\n input.checked = this.checked();\n return;\n }\n this.select.emit();\n }\n\n protected onRowClick(e: Event): void {\n if (!this.pressable() || this.disabled() || this.busy()) return;\n // clicks on projected row-end actions (buttons, links) never select the row\n // (also content in the row-end slot, `list-item-end`, e.g. a star rating: it handles its own clicks)\n if ((e.target as HTMLElement).closest('[list-item-action], [li-action], [list-item-end]')) return;\n this.select.emit();\n }\n\n protected onRowKey(e: Event): void {\n if (!this.pressable() || e.target !== e.currentTarget) return;\n e.preventDefault();\n if (this.disabled() || this.busy()) return;\n this.select.emit();\n }\n\n protected readonly visibleDetails = () =>\n this.details()\n .map((d) => {\n if (typeof d === 'string') return { text: d, segs: null as { text: string; bold: boolean; code: boolean }[] | null, d: null as string | null, tone: 'default' as const };\n if (!d) return null;\n const segs = d.segments?.length ? d.segments.map((g) => (typeof g === 'string' ? { text: g, bold: false, code: false } : { text: g.text, bold: !!g.bold, code: !!g.code })) : null;\n const text = segs ? segs.map((g) => g.text).join('') : (d.text ?? '');\n return { text, segs, d: d.icon ? iconPath(d.icon) ?? null : null, tone: d.tone ?? 'default' };\n })\n .filter((d): d is { text: string; segs: { text: string; bold: boolean; code: boolean }[] | null; d: string | null; tone: 'default' | 'warning' | 'danger' } => !!d && !!d.text);\n}\n"],"mappings":";;;;;AAkTA,IAAa,oBAAb,MAAa,kBAAiB;CAlP9B,cAAA;EAmPmB,KAAA,OAAO,OAAgC,UAAU;EAEzD,KAAA,UAA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;;;;;;;;;;;;GA2FT,QAAA,CAAA,q2HAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8LA,MAAA;GAAY,MAAA,CAAA,mBAAmB;;;GAC/B,MAAA;GAAY,MAAA,CAAA,mBAAmB"}
@@ -2602,13 +2602,21 @@ var MapAreaFormComponent = class MapAreaFormComponent {
2602
2602
  kind: "component",
2603
2603
  type: FormRowComponent,
2604
2604
  selector: "ui-form-row",
2605
- inputs: ["cols"]
2605
+ inputs: [
2606
+ "cols",
2607
+ "autoLast",
2608
+ "align"
2609
+ ]
2606
2610
  },
2607
2611
  {
2608
2612
  kind: "component",
2609
2613
  type: FormSectionComponent,
2610
2614
  selector: "ui-form-section",
2611
- inputs: ["label", "divider"]
2615
+ inputs: [
2616
+ "label",
2617
+ "divider",
2618
+ "hint"
2619
+ ]
2612
2620
  },
2613
2621
  {
2614
2622
  kind: "component",